pitroom 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +23 -0
- package/README.md +5 -5
- package/dist/pitroom.mjs +43 -24
- package/dist/ui/app.css +1 -1
- package/dist/ui/app.js +12 -12
- package/package.json +1 -1
package/dist/ui/app.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var $U=Object.create;var av=Object.defineProperty;var eH=Object.getOwnPropertyDescriptor;var tH=Object.getOwnPropertyNames;var aH=Object.getPrototypeOf,oH=Object.prototype.hasOwnProperty;var co=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ka=(e,t)=>{for(var a in t)av(e,a,{get:t[a],enumerable:!0})},nH=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tH(t))!oH.call(e,n)&&n!==a&&av(e,n,{get:()=>t[n],enumerable:!(o=eH(t,n))||o.enumerable});return e};var I=(e,t,a)=>(a=e!=null?$U(aH(e)):{},nH(t||!e||!e.__esModule?av(a,"default",{value:e,enumerable:!0}):a,e));var uw=co(Ee=>{"use strict";var rv=Symbol.for("react.transitional.element"),rH=Symbol.for("react.portal"),iH=Symbol.for("react.fragment"),sH=Symbol.for("react.strict_mode"),lH=Symbol.for("react.profiler"),uH=Symbol.for("react.consumer"),cH=Symbol.for("react.context"),fH=Symbol.for("react.forward_ref"),dH=Symbol.for("react.suspense"),mH=Symbol.for("react.memo"),tw=Symbol.for("react.lazy"),pH=Symbol.for("react.activity"),hH=Symbol.for("react.view_transition"),QT=Symbol.iterator;function gH(e){return e===null||typeof e!="object"?null:(e=QT&&e[QT]||e["@@iterator"],typeof e=="function"?e:null)}var aw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ow=Object.assign,nw={};function Bu(e,t,a){this.props=e,this.context=t,this.refs=nw,this.updater=a||aw}Bu.prototype.isReactComponent={};Bu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Bu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rw(){}rw.prototype=Bu.prototype;function iv(e,t,a){this.props=e,this.context=t,this.refs=nw,this.updater=a||aw}var sv=iv.prototype=new rw;sv.constructor=iv;ow(sv,Bu.prototype);sv.isPureReactComponent=!0;var JT=Array.isArray;function nv(){}var xt={H:null,A:null,T:null,S:null},iw=Object.prototype.hasOwnProperty;function lv(e,t,a){var o=a.ref;return{$$typeof:rv,type:e,key:t,ref:o!==void 0?o:null,props:a}}function xH(e,t){return lv(e.type,t,e.props)}function uv(e){return typeof e=="object"&&e!==null&&e.$$typeof===rv}function yH(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var $T=/\/+/g;function ov(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yH(""+e.key):t.toString(36)}function SH(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(nv,nv):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Nu(e,t,a,o,n){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(r){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case rv:case rH:i=!0;break;case tw:return i=e._init,Nu(i(e._payload),t,a,o,n)}}if(i)return n=n(e),i=o===""?"."+ov(e,0):o,JT(n)?(a="",i!=null&&(a=i.replace($T,"$&/")+"/"),Nu(n,t,a,"",function(u){return u})):n!=null&&(uv(n)&&(n=xH(n,a+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace($T,"$&/")+"/")+i)),t.push(n)),1;i=0;var s=o===""?".":o+":";if(JT(e))for(var l=0;l<e.length;l++)o=e[l],r=s+ov(o,l),i+=Nu(o,t,a,r,n);else if(l=gH(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,r=s+ov(o,l++),i+=Nu(o,t,a,r,n);else if(r==="object"){if(typeof e.then=="function")return Nu(SH(e),t,a,o,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function lh(e,t,a){if(e==null)return e;var o=[],n=0;return Nu(e,o,"","",function(r){return t.call(a,r,n++)}),o}function bH(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o))},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o))}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var ew=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function sw(e){var t=xt.T,a={};a.types=t!==null?t.types:null,xt.T=a;try{var o=e(),n=xt.S;n!==null&&n(a,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(nv,ew)}catch(r){ew(r)}finally{t!==null&&a.types!==null&&(t.types=a.types),xt.T=t}}function lw(e){var t=xt.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else sw(lw.bind(null,e))}var vH={map:lh,forEach:function(e,t,a){lh(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return lh(e,function(){t++}),t},toArray:function(e){return lh(e,function(t){return t})||[]},only:function(e){if(!uv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ee.Activity=pH;Ee.Children=vH;Ee.Component=Bu;Ee.Fragment=iH;Ee.Profiler=lH;Ee.PureComponent=iv;Ee.StrictMode=sH;Ee.Suspense=dH;Ee.ViewTransition=hH;Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;Ee.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xt.H.useMemoCache(e)}};Ee.addTransitionType=lw;Ee.cache=function(e){return function(){return e.apply(null,arguments)}};Ee.cacheSignal=function(){return null};Ee.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=ow({},e.props),n=e.key;if(t!=null)for(r in t.key!==void 0&&(n=""+t.key),t)!iw.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(o[r]=t[r]);var r=arguments.length-2;if(r===1)o.children=a;else if(1<r){for(var i=Array(r),s=0;s<r;s++)i[s]=arguments[s+2];o.children=i}return lv(e.type,n,o)};Ee.createContext=function(e){return e={$$typeof:cH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:uH,_context:e},e};Ee.createElement=function(e,t,a){var o,n={},r=null;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)iw.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(n[o]=t[o]);var i=arguments.length-2;if(i===1)n.children=a;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];n.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)n[o]===void 0&&(n[o]=i[o]);return lv(e,r,n)};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(e){return{$$typeof:fH,render:e}};Ee.isValidElement=uv;Ee.lazy=function(e){return{$$typeof:tw,_payload:{_status:-1,_result:e},_init:bH}};Ee.memo=function(e,t){return{$$typeof:mH,type:e,compare:t===void 0?null:t}};Ee.startTransition=sw;Ee.unstable_useCacheRefresh=function(){return xt.H.useCacheRefresh()};Ee.use=function(e){return xt.H.use(e)};Ee.useActionState=function(e,t,a){return xt.H.useActionState(e,t,a)};Ee.useCallback=function(e,t){return xt.H.useCallback(e,t)};Ee.useContext=function(e){return xt.H.useContext(e)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(e,t){return xt.H.useDeferredValue(e,t)};Ee.useEffect=function(e,t){return xt.H.useEffect(e,t)};Ee.useEffectEvent=function(e){return xt.H.useEffectEvent(e)};Ee.useId=function(){return xt.H.useId()};Ee.useImperativeHandle=function(e,t,a){return xt.H.useImperativeHandle(e,t,a)};Ee.useInsertionEffect=function(e,t){return xt.H.useInsertionEffect(e,t)};Ee.useLayoutEffect=function(e,t){return xt.H.useLayoutEffect(e,t)};Ee.useMemo=function(e,t){return xt.H.useMemo(e,t)};Ee.useOptimistic=function(e,t){return xt.H.useOptimistic(e,t)};Ee.useReducer=function(e,t,a){return xt.H.useReducer(e,t,a)};Ee.useRef=function(e){return xt.H.useRef(e)};Ee.useState=function(e){return xt.H.useState(e)};Ee.useSyncExternalStore=function(e,t,a){return xt.H.useSyncExternalStore(e,t,a)};Ee.useTransition=function(){return xt.H.useTransition()};Ee.version="19.3.0"});var P=co((Q9,cw)=>{"use strict";cw.exports=uw()});var bw=co(It=>{"use strict";function mv(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,n=e[o];if(0<uh(n,t))e[o]=t,e[a]=n,a=o;else break e}}function jn(e){return e.length===0?null:e[0]}function fh(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,n=e.length,r=n>>>1;o<r;){var i=2*(o+1)-1,s=e[i],l=i+1,u=e[l];if(0>uh(s,a))l<n&&0>uh(u,s)?(e[o]=u,e[l]=a,o=l):(e[o]=s,e[i]=a,o=i);else if(l<n&&0>uh(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function uh(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}It.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(fw=performance,It.unstable_now=function(){return fw.now()}):(cv=Date,dw=cv.now(),It.unstable_now=function(){return cv.now()-dw});var fw,cv,dw,Pr=[],xi=[],CH=1,Zo=null,Na=3,pv=!1,sd=!1,ld=!1,hv=!1,hw=typeof setTimeout=="function"?setTimeout:null,gw=typeof clearTimeout=="function"?clearTimeout:null,mw=typeof setImmediate<"u"?setImmediate:null;function ch(e){for(var t=jn(xi);t!==null;){if(t.callback===null)fh(xi);else if(t.startTime<=e)fh(xi),t.sortIndex=t.expirationTime,mv(Pr,t);else break;t=jn(xi)}}function gv(e){if(ld=!1,ch(e),!sd)if(jn(Pr)!==null)sd=!0,Fu||(Fu=!0,Vu());else{var t=jn(xi);t!==null&&xv(gv,t.startTime-e)}}var Fu=!1,ud=-1,xw=5,yw=-1;function Sw(){return hv?!0:!(It.unstable_now()-yw<xw)}function fv(){if(hv=!1,Fu){var e=It.unstable_now();yw=e;var t=!0;try{e:{sd=!1,ld&&(ld=!1,gw(ud),ud=-1),pv=!0;var a=Na;try{t:{for(ch(e),Zo=jn(Pr);Zo!==null&&!(Zo.expirationTime>e&&Sw());){var o=Zo.callback;if(typeof o=="function"){Zo.callback=null,Na=Zo.priorityLevel;var n=o(Zo.expirationTime<=e);if(e=It.unstable_now(),typeof n=="function"){Zo.callback=n,ch(e),t=!0;break t}Zo===jn(Pr)&&fh(Pr),ch(e)}else fh(Pr);Zo=jn(Pr)}if(Zo!==null)t=!0;else{var r=jn(xi);r!==null&&xv(gv,r.startTime-e),t=!1}}break e}finally{Zo=null,Na=a,pv=!1}t=void 0}}finally{t?Vu():Fu=!1}}}var Vu;typeof mw=="function"?Vu=function(){mw(fv)}:typeof MessageChannel<"u"?(dv=new MessageChannel,pw=dv.port2,dv.port1.onmessage=fv,Vu=function(){pw.postMessage(null)}):Vu=function(){hw(fv,0)};var dv,pw;function xv(e,t){ud=hw(function(){e(It.unstable_now())},t)}It.unstable_IdlePriority=5;It.unstable_ImmediatePriority=1;It.unstable_LowPriority=4;It.unstable_NormalPriority=3;It.unstable_Profiling=null;It.unstable_UserBlockingPriority=2;It.unstable_cancelCallback=function(e){e.callback=null};It.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xw=0<e?Math.floor(1e3/e):5};It.unstable_getCurrentPriorityLevel=function(){return Na};It.unstable_next=function(e){switch(Na){case 1:case 2:case 3:var t=3;break;default:t=Na}var a=Na;Na=t;try{return e()}finally{Na=a}};It.unstable_requestPaint=function(){hv=!0};It.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Na;Na=e;try{return t()}finally{Na=a}};It.unstable_scheduleCallback=function(e,t,a){var o=It.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=a+n,e={id:CH++,callback:t,priorityLevel:e,startTime:a,expirationTime:n,sortIndex:-1},a>o?(e.sortIndex=a,mv(xi,e),jn(Pr)===null&&e===jn(xi)&&(ld?(gw(ud),ud=-1):ld=!0,xv(gv,a-o))):(e.sortIndex=n,mv(Pr,e),sd||pv||(sd=!0,Fu||(Fu=!0,Vu()))),e};It.unstable_shouldYield=Sw;It.unstable_wrapCallback=function(e){var t=Na;return function(){var a=Na;Na=t;try{return e.apply(this,arguments)}finally{Na=a}}}});var Cw=co(($9,vw)=>{"use strict";vw.exports=bw()});var Iw=co(Ba=>{"use strict";var LH=P();function Rw(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function yi(){}var Ka={d:{f:yi,r:function(){throw Error(Rw(522))},D:yi,C:yi,L:yi,m:yi,X:yi,S:yi,M:yi},p:0,findDOMNode:null},RH=Symbol.for("react.portal"),IH=Symbol.for("react.recoverable"),Lw=Symbol.for("react.optimistic_key");function TH(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:RH,key:o==null?null:o===Lw?Lw:""+o,children:e,containerInfo:t,implementation:a}}var cd=LH.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function dh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ba.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ka;Ba.browser=function(e){return{$$typeof:IH,_reason:e}};Ba.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Rw(299));return TH(e,t,null,a)};Ba.flushSync=function(e){var t=cd.T,a=Ka.p;try{if(cd.T=null,Ka.p=2,e)return e()}finally{cd.T=t,Ka.p=a,Ka.d.f()}};Ba.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ka.d.C(e,t))};Ba.prefetchDNS=function(e){typeof e=="string"&&Ka.d.D(e)};Ba.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,o=dh(a,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Ka.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:n,fetchPriority:r}):a==="script"&&Ka.d.X(e,{crossOrigin:o,integrity:n,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ba.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=dh(t.as,t.crossOrigin);Ka.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Ka.d.M(e)};Ba.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,o=dh(a,t.crossOrigin);Ka.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ba.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=dh(t.as,t.crossOrigin);Ka.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Ka.d.m(e)};Ba.requestFormReset=function(e){Ka.d.r(e)};Ba.unstable_batchedUpdates=function(e,t){return e(t)};Ba.useFormState=function(e,t,a){return cd.H.useFormState(e,t,a)};Ba.useFormStatus=function(){return cd.H.useHostTransitionStatus()};Ba.version="19.3.0"});var Xn=co((tY,ww)=>{"use strict";function Tw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tw)}catch(e){console.error(e)}}Tw(),ww.exports=Iw()});var m1=co(Yg=>{"use strict";var oa=Cw(),dA=P(),wH=Xn();function X(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function mA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qd(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function pA(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hA(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ew(e){if(Qd(e)!==e)throw Error(X(188))}function EH(e){var t=e.alternate;if(!t){if(t=Qd(e),t===null)throw Error(X(188));return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var r=n.alternate;if(r===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===a)return Ew(n),e;if(r===o)return Ew(n),t;r=r.sibling}throw Error(X(188))}if(a.return!==o.return)a=n,o=r;else{for(var i=!1,s=n.child;s;){if(s===a){i=!0,a=n,o=r;break}if(s===o){i=!0,o=n,a=r;break}s=s.sibling}if(!i){for(s=r.child;s;){if(s===a){i=!0,a=r,o=n;break}if(s===o){i=!0,o=r,a=n;break}s=s.sibling}if(!i)throw Error(X(189))}}if(a.alternate!==o)throw Error(X(190))}if(a.tag!==3)throw Error(X(188));return a.stateNode.current===a?e:t}function gA(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=gA(e),t!==null)return t;e=e.sibling}return null}function xo(e,t,a,o,n,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,n,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&xo(e.child,t,a,o,n,r))return!0;e=e.sibling}return!1}function yl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Aw(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function xA(e){var t=[null,null],a=yl(e);return a===null||yA(t,e,a.child,{foundSelf:!1}),t}function yA(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&yA(e,t,a.child,o))return!0;a=a.sibling}return!1}function aa(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(X(559))}}var ju=null,Kv=null;function AH(e,t,a){return e===a?!0:e===t?(ju=e,!0):!1}function DH(e,t,a){return e===a?(Kv=e,!1):e===t?(Kv!==null&&(ju=e),!0):!1}function Dw(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Zv(e,t,a){for(var o=0,n=e;n;n=a(n))o++;n=0;for(var r=t;r;r=a(r))n++;for(;0<o-n;)e=a(e),o--;for(;0<n-o;)t=a(t),n--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var gt=Object.assign,PH=Symbol.for("react.element"),mh=Symbol.for("react.transitional.element"),xd=Symbol.for("react.portal"),Xu=Symbol.for("react.fragment"),SA=Symbol.for("react.strict_mode"),Qv=Symbol.for("react.profiler"),bA=Symbol.for("react.consumer"),Jn=Symbol.for("react.context"),iL=Symbol.for("react.forward_ref"),Jv=Symbol.for("react.suspense"),$v=Symbol.for("react.suspense_list"),sL=Symbol.for("react.memo"),Ci=Symbol.for("react.lazy");Symbol.for("react.scope");var eC=Symbol.for("react.activity"),MH=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var OH=Symbol.for("react.memo_cache_sentinel"),tC=Symbol.for("react.view_transition"),kH=Symbol.for("react.recoverable"),Pw=Symbol.iterator;function fd(e){return e===null||typeof e!="object"?null:(e=Pw&&e[Pw]||e["@@iterator"],typeof e=="function"?e:null)}var NH=Symbol.for("react.client.reference");function aC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===NH?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xu:return"Fragment";case Qv:return"Profiler";case SA:return"StrictMode";case Jv:return"Suspense";case $v:return"SuspenseList";case eC:return"Activity";case tC:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case xd:return"Portal";case Jn:return e.displayName||"Context";case bA:return(e._context.displayName||"Context")+".Consumer";case iL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sL:return t=e.displayName||null,t!==null?t:aC(e.type)||"Memo";case Ci:t=e._payload,e=e._init;try{return aC(e(t))}catch{}}return null}var yd=Array.isArray,Te=dA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et=wH.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rl={pending:!1,data:null,method:null,action:null},oC=[],Yu=-1;function rr(e){return{current:e}}function Ia(e){0>Yu||(e.current=oC[Yu],oC[Yu]=null,Yu--)}function bt(e,t){Yu++,oC[Yu]=e.current,e.current=t}var ar=rr(null),Nd=rr(null),Pi=rr(null),$h=rr(null);function eg(e,t){switch(bt(Pi,t),bt(Nd,e),bt(ar,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jE(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jE(t),e=HP(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ia(ar),bt(ar,e)}function mc(){Ia(ar),Ia(Nd),Ia(Pi)}function nC(e){var t=e.memoizedState;t!==null&&(Lc._currentValue=t.memoizedState,bt($h,e)),t=ar.current;var a=HP(t,e.type);t!==a&&(bt(Nd,e),bt(ar,a))}function tg(e){Nd.current===e&&(Ia(ar),Ia(Nd)),$h.current===e&&(Ia($h),Lc._currentValue=rl)}var yv,Mw;function bi(e){if(yv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);yv=t&&t[1]||"",Mw=-1<a.stack.indexOf(`
|
|
1
|
+
var l3=Object.create;var Cv=Object.defineProperty;var u3=Object.getOwnPropertyDescriptor;var c3=Object.getOwnPropertyNames;var f3=Object.getPrototypeOf,d3=Object.prototype.hasOwnProperty;var go=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Aa=(e,t)=>{for(var a in t)Cv(e,a,{get:t[a],enumerable:!0})},m3=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c3(t))!d3.call(e,r)&&r!==a&&Cv(e,r,{get:()=>t[r],enumerable:!(o=u3(t,r))||o.enumerable});return e};var R=(e,t,a)=>(a=e!=null?l3(f3(e)):{},m3(t||!e||!e.__esModule?Cv(a,"default",{value:e,enumerable:!0}):a,e));var kw=go(Oe=>{"use strict";var Iv=Symbol.for("react.transitional.element"),p3=Symbol.for("react.portal"),h3=Symbol.for("react.fragment"),g3=Symbol.for("react.strict_mode"),x3=Symbol.for("react.profiler"),y3=Symbol.for("react.consumer"),S3=Symbol.for("react.context"),b3=Symbol.for("react.forward_ref"),v3=Symbol.for("react.suspense"),C3=Symbol.for("react.memo"),Tw=Symbol.for("react.lazy"),L3=Symbol.for("react.activity"),R3=Symbol.for("react.view_transition"),Cw=Symbol.iterator;function I3(e){return e===null||typeof e!="object"?null:(e=Cw&&e[Cw]||e["@@iterator"],typeof e=="function"?e:null)}var ww={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ew=Object.assign,Aw={};function ju(e,t,a){this.props=e,this.context=t,this.refs=Aw,this.updater=a||ww}ju.prototype.isReactComponent={};ju.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ju.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dw(){}Dw.prototype=ju.prototype;function Tv(e,t,a){this.props=e,this.context=t,this.refs=Aw,this.updater=a||ww}var wv=Tv.prototype=new Dw;wv.constructor=Tv;Ew(wv,ju.prototype);wv.isPureReactComponent=!0;var Lw=Array.isArray;function Rv(){}var vt={H:null,A:null,T:null,S:null},Mw=Object.prototype.hasOwnProperty;function Ev(e,t,a){var o=a.ref;return{$$typeof:Iv,type:e,key:t,ref:o!==void 0?o:null,props:a}}function T3(e,t){return Ev(e.type,t,e.props)}function Av(e){return typeof e=="object"&&e!==null&&e.$$typeof===Iv}function w3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Rw=/\/+/g;function Lv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?w3(""+e.key):t.toString(36)}function E3(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Rv,Rv):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Gu(e,t,a,o,r){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Iv:case p3:s=!0;break;case Tw:return s=e._init,Gu(s(e._payload),t,a,o,r)}}if(s)return r=r(e),s=o===""?"."+Lv(e,0):o,Lw(r)?(a="",s!=null&&(a=s.replace(Rw,"$&/")+"/"),Gu(r,t,a,"",function(u){return u})):r!=null&&(Av(r)&&(r=T3(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Rw,"$&/")+"/")+s)),t.push(r)),1;s=0;var i=o===""?".":o+":";if(Lw(e))for(var l=0;l<e.length;l++)o=e[l],n=i+Lv(o,l),s+=Gu(o,t,a,n,r);else if(l=I3(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=i+Lv(o,l++),s+=Gu(o,t,a,n,r);else if(n==="object"){if(typeof e.then=="function")return Gu(E3(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function yh(e,t,a){if(e==null)return e;var o=[],r=0;return Gu(e,o,"","",function(n){return t.call(a,n,r++)}),o}function A3(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o))},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o))}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Iw=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Pw(e){var t=vt.T,a={};a.types=t!==null?t.types:null,vt.T=a;try{var o=e(),r=vt.S;r!==null&&r(a,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Rv,Iw)}catch(n){Iw(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),vt.T=t}}function Ow(e){var t=vt.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else Pw(Ow.bind(null,e))}var D3={map:yh,forEach:function(e,t,a){yh(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return yh(e,function(){t++}),t},toArray:function(e){return yh(e,function(t){return t})||[]},only:function(e){if(!Av(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oe.Activity=L3;Oe.Children=D3;Oe.Component=ju;Oe.Fragment=h3;Oe.Profiler=x3;Oe.PureComponent=Tv;Oe.StrictMode=g3;Oe.Suspense=v3;Oe.ViewTransition=R3;Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=vt;Oe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return vt.H.useMemoCache(e)}};Oe.addTransitionType=Ow;Oe.cache=function(e){return function(){return e.apply(null,arguments)}};Oe.cacheSignal=function(){return null};Oe.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Ew({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!Mw.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var s=Array(n),i=0;i<n;i++)s[i]=arguments[i+2];o.children=s}return Ev(e.type,r,o)};Oe.createContext=function(e){return e={$$typeof:S3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:y3,_context:e},e};Oe.createElement=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)Mw.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=a;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return Ev(e,n,r)};Oe.createRef=function(){return{current:null}};Oe.forwardRef=function(e){return{$$typeof:b3,render:e}};Oe.isValidElement=Av;Oe.lazy=function(e){return{$$typeof:Tw,_payload:{_status:-1,_result:e},_init:A3}};Oe.memo=function(e,t){return{$$typeof:C3,type:e,compare:t===void 0?null:t}};Oe.startTransition=Pw;Oe.unstable_useCacheRefresh=function(){return vt.H.useCacheRefresh()};Oe.use=function(e){return vt.H.use(e)};Oe.useActionState=function(e,t,a){return vt.H.useActionState(e,t,a)};Oe.useCallback=function(e,t){return vt.H.useCallback(e,t)};Oe.useContext=function(e){return vt.H.useContext(e)};Oe.useDebugValue=function(){};Oe.useDeferredValue=function(e,t){return vt.H.useDeferredValue(e,t)};Oe.useEffect=function(e,t){return vt.H.useEffect(e,t)};Oe.useEffectEvent=function(e){return vt.H.useEffectEvent(e)};Oe.useId=function(){return vt.H.useId()};Oe.useImperativeHandle=function(e,t,a){return vt.H.useImperativeHandle(e,t,a)};Oe.useInsertionEffect=function(e,t){return vt.H.useInsertionEffect(e,t)};Oe.useLayoutEffect=function(e,t){return vt.H.useLayoutEffect(e,t)};Oe.useMemo=function(e,t){return vt.H.useMemo(e,t)};Oe.useOptimistic=function(e,t){return vt.H.useOptimistic(e,t)};Oe.useReducer=function(e,t,a){return vt.H.useReducer(e,t,a)};Oe.useRef=function(e){return vt.H.useRef(e)};Oe.useState=function(e){return vt.H.useState(e)};Oe.useSyncExternalStore=function(e,t,a){return vt.H.useSyncExternalStore(e,t,a)};Oe.useTransition=function(){return vt.H.useTransition()};Oe.version="19.3.0"});var M=go((SW,Nw)=>{"use strict";Nw.exports=kw()});var jw=go(Pt=>{"use strict";function Ov(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<Sh(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Xr(e){return e.length===0?null:e[0]}function vh(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var s=2*(o+1)-1,i=e[s],l=s+1,u=e[l];if(0>Sh(i,a))l<r&&0>Sh(u,i)?(e[o]=u,e[l]=a,o=l):(e[o]=i,e[s]=a,o=s);else if(l<r&&0>Sh(u,a))e[o]=u,e[l]=a,o=l;else break e}}return t}function Sh(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Pt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Vw=performance,Pt.unstable_now=function(){return Vw.now()}):(Dv=Date,Bw=Dv.now(),Pt.unstable_now=function(){return Dv.now()-Bw});var Vw,Dv,Bw,kn=[],bs=[],M3=1,er=null,Ha=3,kv=!1,gd=!1,xd=!1,Nv=!1,zw=typeof setTimeout=="function"?setTimeout:null,Hw=typeof clearTimeout=="function"?clearTimeout:null,Fw=typeof setImmediate<"u"?setImmediate:null;function bh(e){for(var t=Xr(bs);t!==null;){if(t.callback===null)vh(bs);else if(t.startTime<=e)vh(bs),t.sortIndex=t.expirationTime,Ov(kn,t);else break;t=Xr(bs)}}function Vv(e){if(xd=!1,bh(e),!gd)if(Xr(kn)!==null)gd=!0,Yu||(Yu=!0,Xu());else{var t=Xr(bs);t!==null&&Bv(Vv,t.startTime-e)}}var Yu=!1,yd=-1,Uw=5,qw=-1;function Gw(){return Nv?!0:!(Pt.unstable_now()-qw<Uw)}function Mv(){if(Nv=!1,Yu){var e=Pt.unstable_now();qw=e;var t=!0;try{e:{gd=!1,xd&&(xd=!1,Hw(yd),yd=-1),kv=!0;var a=Ha;try{t:{for(bh(e),er=Xr(kn);er!==null&&!(er.expirationTime>e&&Gw());){var o=er.callback;if(typeof o=="function"){er.callback=null,Ha=er.priorityLevel;var r=o(er.expirationTime<=e);if(e=Pt.unstable_now(),typeof r=="function"){er.callback=r,bh(e),t=!0;break t}er===Xr(kn)&&vh(kn),bh(e)}else vh(kn);er=Xr(kn)}if(er!==null)t=!0;else{var n=Xr(bs);n!==null&&Bv(Vv,n.startTime-e),t=!1}}break e}finally{er=null,Ha=a,kv=!1}t=void 0}}finally{t?Xu():Yu=!1}}}var Xu;typeof Fw=="function"?Xu=function(){Fw(Mv)}:typeof MessageChannel<"u"?(Pv=new MessageChannel,_w=Pv.port2,Pv.port1.onmessage=Mv,Xu=function(){_w.postMessage(null)}):Xu=function(){zw(Mv,0)};var Pv,_w;function Bv(e,t){yd=zw(function(){e(Pt.unstable_now())},t)}Pt.unstable_IdlePriority=5;Pt.unstable_ImmediatePriority=1;Pt.unstable_LowPriority=4;Pt.unstable_NormalPriority=3;Pt.unstable_Profiling=null;Pt.unstable_UserBlockingPriority=2;Pt.unstable_cancelCallback=function(e){e.callback=null};Pt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Uw=0<e?Math.floor(1e3/e):5};Pt.unstable_getCurrentPriorityLevel=function(){return Ha};Pt.unstable_next=function(e){switch(Ha){case 1:case 2:case 3:var t=3;break;default:t=Ha}var a=Ha;Ha=t;try{return e()}finally{Ha=a}};Pt.unstable_requestPaint=function(){Nv=!0};Pt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Ha;Ha=e;try{return t()}finally{Ha=a}};Pt.unstable_scheduleCallback=function(e,t,a){var o=Pt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:M3++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,Ov(bs,e),Xr(kn)===null&&e===Xr(bs)&&(xd?(Hw(yd),yd=-1):xd=!0,Bv(Vv,a-o))):(e.sortIndex=r,Ov(kn,e),gd||kv||(gd=!0,Yu||(Yu=!0,Xu()))),e};Pt.unstable_shouldYield=Gw;Pt.unstable_wrapCallback=function(e){var t=Ha;return function(){var a=Ha;Ha=t;try{return e.apply(this,arguments)}finally{Ha=a}}}});var Yw=go((vW,Xw)=>{"use strict";Xw.exports=jw()});var Zw=go(Ua=>{"use strict";var P3=M();function Kw(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vs(){}var eo={d:{f:vs,r:function(){throw Error(Kw(522))},D:vs,C:vs,L:vs,m:vs,X:vs,S:vs,M:vs},p:0,findDOMNode:null},O3=Symbol.for("react.portal"),k3=Symbol.for("react.recoverable"),Ww=Symbol.for("react.optimistic_key");function N3(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O3,key:o==null?null:o===Ww?Ww:""+o,children:e,containerInfo:t,implementation:a}}var Sd=P3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ch(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=eo;Ua.browser=function(e){return{$$typeof:k3,_reason:e}};Ua.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Kw(299));return N3(e,t,null,a)};Ua.flushSync=function(e){var t=Sd.T,a=eo.p;try{if(Sd.T=null,eo.p=2,e)return e()}finally{Sd.T=t,eo.p=a,eo.d.f()}};Ua.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,eo.d.C(e,t))};Ua.prefetchDNS=function(e){typeof e=="string"&&eo.d.D(e)};Ua.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,o=Ch(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?eo.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:n}):a==="script"&&eo.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ua.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Ch(t.as,t.crossOrigin);eo.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&eo.d.M(e)};Ua.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,o=Ch(a,t.crossOrigin);eo.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ua.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Ch(t.as,t.crossOrigin);eo.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else eo.d.m(e)};Ua.requestFormReset=function(e){eo.d.r(e)};Ua.unstable_batchedUpdates=function(e,t){return e(t)};Ua.useFormState=function(e,t,a){return Sd.H.useFormState(e,t,a)};Ua.useFormStatus=function(){return Sd.H.useHostTransitionStatus()};Ua.version="19.3.0"});var Yr=go((LW,Jw)=>{"use strict";function Qw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qw)}catch(e){console.error(e)}}Qw(),Jw.exports=Zw()});var FP=go(ox=>{"use strict";var ua=Yw(),BA=M(),V3=Yr();function Z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function FA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sm(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function _A(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zA(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $w(e){if(sm(e)!==e)throw Error(Z(188))}function B3(e){var t=e.alternate;if(!t){if(t=sm(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return $w(r),e;if(n===o)return $w(r),t;n=n.sibling}throw Error(Z(188))}if(a.return!==o.return)a=r,o=n;else{for(var s=!1,i=r.child;i;){if(i===a){s=!0,a=r,o=n;break}if(i===o){s=!0,o=r,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,o=r;break}if(i===o){s=!0,o=n,a=r;break}i=i.sibling}if(!s)throw Error(Z(189))}}if(a.alternate!==o)throw Error(Z(190))}if(a.tag!==3)throw Error(Z(188));return a.stateNode.current===a?e:t}function HA(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=HA(e),t!==null)return t;e=e.sibling}return null}function Co(e,t,a,o,r,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,r,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Co(e.child,t,a,o,r,n))return!0;e=e.sibling}return!1}function Ll(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function eE(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function UA(e){var t=[null,null],a=Ll(e);return a===null||qA(t,e,a.child,{foundSelf:!1}),t}function qA(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&qA(e,t,a.child,o))return!0;a=a.sibling}return!1}function la(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(Z(559))}}var ec=null,hC=null;function F3(e,t,a){return e===a?!0:e===t?(ec=e,!0):!1}function _3(e,t,a){return e===a?(hC=e,!1):e===t?(hC!==null&&(ec=e),!0):!1}function tE(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function gC(e,t,a){for(var o=0,r=e;r;r=a(r))o++;r=0;for(var n=t;n;n=a(n))r++;for(;0<o-r;)e=a(e),o--;for(;0<r-o;)t=a(t),r--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var St=Object.assign,z3=Symbol.for("react.element"),Lh=Symbol.for("react.transitional.element"),Td=Symbol.for("react.portal"),tc=Symbol.for("react.fragment"),GA=Symbol.for("react.strict_mode"),xC=Symbol.for("react.profiler"),jA=Symbol.for("react.consumer"),$r=Symbol.for("react.context"),TL=Symbol.for("react.forward_ref"),yC=Symbol.for("react.suspense"),SC=Symbol.for("react.suspense_list"),wL=Symbol.for("react.memo"),Is=Symbol.for("react.lazy");Symbol.for("react.scope");var bC=Symbol.for("react.activity"),H3=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var U3=Symbol.for("react.memo_cache_sentinel"),vC=Symbol.for("react.view_transition"),q3=Symbol.for("react.recoverable"),aE=Symbol.iterator;function bd(e){return e===null||typeof e!="object"?null:(e=aE&&e[aE]||e["@@iterator"],typeof e=="function"?e:null)}var G3=Symbol.for("react.client.reference");function CC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===G3?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tc:return"Fragment";case xC:return"Profiler";case GA:return"StrictMode";case yC:return"Suspense";case SC:return"SuspenseList";case bC:return"Activity";case vC:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Td:return"Portal";case $r:return e.displayName||"Context";case jA:return(e._context.displayName||"Context")+".Consumer";case TL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wL:return t=e.displayName||null,t!==null?t:CC(e.type)||"Memo";case Is:t=e._payload,e=e._init;try{return CC(e(t))}catch{}}return null}var wd=Array.isArray,Ae=BA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=V3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cl={pending:!1,data:null,method:null,action:null},LC=[],ac=-1;function sn(e){return{current:e}}function Oa(e){0>ac||(e.current=LC[ac],LC[ac]=null,ac--)}function Rt(e,t){ac++,LC[ac]=e.current,e.current=t}var on=sn(null),Gd=sn(null),ks=sn(null),ug=sn(null);function cg(e,t){switch(Rt(ks,t),Rt(Gd,e),Rt(on,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gA(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gA(t),e=mP(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oa(on),Rt(on,e)}function Cc(){Oa(on),Oa(Gd),Oa(ks)}function RC(e){var t=e.memoizedState;t!==null&&(Pc._currentValue=t.memoizedState,Rt(ug,e)),t=on.current;var a=mP(t,e.type);t!==a&&(Rt(Gd,e),Rt(on,a))}function fg(e){Gd.current===e&&(Oa(on),Oa(Gd)),ug.current===e&&(Oa(ug),Pc._currentValue=cl)}var Fv,oE;function Ls(e){if(Fv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Fv=t&&t[1]||"",oE=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),u=
|
|
5
|
-
`);for(
|
|
6
|
-
`+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=
|
|
3
|
+
`+Fv+e+oE}var _v=!1;function zv(e,t){if(!e||_v)return"";_v=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}d=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),s=n[0],i=n[1];if(s&&i){var l=s.split(`
|
|
4
|
+
`),u=i.split(`
|
|
5
|
+
`);for(r=o=0;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===l.length||r===u.length)for(o=l.length-1,r=u.length-1;1<=o&&0<=r&&l[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(l[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||l[o]!==u[r]){var c=`
|
|
6
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{_v=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ls(a):""}function j3(e,t){switch(e.tag){case 26:case 27:case 5:return Ls(e.type);case 16:return Ls("Lazy");case 13:return e.child!==t&&t!==null?Ls("Suspense Fallback"):Ls("Suspense");case 19:return Ls("SuspenseList");case 0:case 15:return zv(e.type,!1);case 11:return zv(e.type.render,!1);case 1:return zv(e.type,!0);case 31:return Ls("Activity");case 30:return Ls("ViewTransition");default:return""}}function rE(e){try{var t="",a=null;do t+=j3(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var rC=Object.prototype.hasOwnProperty,lL=oa.unstable_scheduleCallback,vv=oa.unstable_cancelCallback,VH=oa.unstable_shouldYield,FH=oa.unstable_requestPaint,No=oa.unstable_now,_H=oa.unstable_getCurrentPriorityLevel,vA=oa.unstable_ImmediatePriority,CA=oa.unstable_UserBlockingPriority,ag=oa.unstable_NormalPriority,zH=oa.unstable_LowPriority,LA=oa.unstable_IdlePriority,UH=oa.log,HH=oa.unstable_setDisableYieldValue,Jd=null,Bo=null;function Ii(e){if(typeof UH=="function"&&HH(e),Bo&&typeof Bo.setStrictMode=="function")try{Bo.setStrictMode(Jd,e)}catch{}}var Vo=Math.clz32?Math.clz32:jH,qH=Math.log,GH=Math.LN2;function jH(e){return e>>>=0,e===0?32:31-(qH(e)/GH|0)|0}var ph=256,hh=262144,gh=4194304;function el(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Eg(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~r,o!==0?n=el(o):(i&=s,i!==0?n=el(i):a||(a=s&~e,a!==0&&(n=el(a))))):(s=o&~r,s!==0?n=el(s):i!==0?n=el(i):a||(a=o&~e,a!==0&&(n=el(a)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:n}function $d(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function RA(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Vo(a),n=1<<o;t|=e[o],a&=~n}return t}function XH(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function IA(){var e=gh;return gh<<=1,(gh&62914560)===0&&(gh=4194304),e}function Cv(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function em(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function YH(e,t,a,o,n,r){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-Vo(a),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}a&=~d}o!==0&&TA(e,o,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(i&~t))}function TA(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Vo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function wA(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Vo(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function EA(e,t){var a=t&-t;return a=(a&42)!==0?1:uL(a),(a&(e.suspendedLanes|t))!==0?0:a}function uL(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cL(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function AA(){var e=et.p;return e!==0?e:(e=window.event,e===void 0?32:c1(e.type))}function kw(e,t){var a=et.p;try{return et.p=e,t()}finally{et.p=a}}var Gr=Math.random().toString(36).slice(2),La="__reactFiber$"+Gr,yo="__reactProps$"+Gr,Tc="__reactContainer$"+Gr,Nw="__reactEvents$"+Gr,WH="__reactListeners$"+Gr,KH="__reactHandles$"+Gr,Bw="__reactResources$"+Gr,tm="__reactMarker$"+Gr,og="__reactLoad$"+Gr;function Ag(e){delete e[La],delete e[yo],delete e[WH],delete e[KH]}function ol(e){var t;if(t=e[La])return t;for(var a=e.parentNode;a;){if(t=a[Tc]||a[La]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=$E(e);e!==null;){if(a=e[La])return a;e=$E(e)}return t}e=a,a=e.parentNode}return null}function wc(e){if(e=e[La]||e[Tc]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Sd(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(X(33))}function oc(e){var t=e[Bw];return t||(t=e[Bw]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function fa(e){e[tm]=!0}function DA(e){e[og]=void 0}var PA=new Set,MA={};function Sl(e,t){pc(e,t),pc(e+"Capture",t)}function pc(e,t){for(MA[e]=t,e=0;e<t.length;e++)PA.add(t[e])}var ZH=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vw={},Fw={};function QH(e){return rC.call(Fw,e)?!0:rC.call(Vw,e)?!1:ZH.test(e)?Fw[e]=!0:(Vw[e]=!0,!1)}var Qe=!1;function _w(){var e=Qe;return Qe=!1,e}function kh(e,t,a){if(QH(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function xh(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Mr(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Po(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function OA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JH(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var n=o.get,r=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,r.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iC(e){if(!e._valueTracker){var t=OA(e)?"checked":"value";e._valueTracker=JH(e,t,""+e[t])}}function kA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=OA(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}var $H=/[\n"\\]/g;function tn(e){return e.replace($H,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function sC(e,t,a,o,n,r,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Po(t)):e.value!==""+Po(t)&&(e.value=""+Po(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?Lv(e,Po(e.value)):Lv(e,Po(t)):a!=null?Lv(e,Po(a)):o!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Po(s):e.removeAttribute("name")}function NA(e,t,a,o,n,r,i,s){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){iC(e);return}a=a!=null?""+Po(a):"",t=t!=null?""+Po(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??n,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),iC(e)}function Lv(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function nc(e,t,a,o){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Po(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function BA(e,t,a){if(t!=null&&(t=""+Po(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Po(a):""}function VA(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(X(92));if(yd(o)){if(1<o.length)throw Error(X(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Po(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),iC(e)}function hc(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var e3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zw(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||e3.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function FA(e,t,a){if(t!=null&&typeof t!="object")throw Error(X(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",Qe=!0);for(var n in t)o=t[n],t.hasOwnProperty(n)&&a[n]!==o&&(zw(e,n,o),Qe=!0)}else for(var r in t)t.hasOwnProperty(r)&&zw(e,r,t[r])}function fL(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var t3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),a3=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nh(e){return a3.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $n(){}var lC=null;function dL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wu=null,rc=null;function Uw(e){var t=wc(e);if(t&&(e=t.stateNode)){var a=e[yo]||null;e:switch(e=t.stateNode,t.type){case"input":if(sC(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[yo]||null;if(!n)throw Error(X(90));sC(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&kA(o)}break e;case"textarea":BA(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&nc(e,!!a.multiple,t,!1)}}}var Rv=!1;function _A(e,t,a){if(Rv)return e(t,a);Rv=!0;try{var o=e(t);return o}finally{if(Rv=!1,(Wu!==null||rc!==null)&&(qg(),Wu&&(t=Wu,e=rc,rc=Wu=null,Uw(t),e)))for(t=0;t<e.length;t++)Uw(e[t])}}function Bd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[yo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(X(231,t,typeof a));return a}var Fr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uC=!1;if(Fr)try{_u={},Object.defineProperty(_u,"passive",{get:function(){uC=!0}}),window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{uC=!1}var _u,Ti=null,mL=null,Bh=null;function zA(){if(Bh)return Bh;var e,t=mL,a=t.length,o,n="value"in Ti?Ti.value:Ti.textContent,r=n.length;for(e=0;e<a&&t[e]===n[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===n[r-o];o++);return Bh=n.slice(e,1<o?1-o:void 0)}function Vh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yh(){return!0}function Hw(){return!1}function $a(e){function t(a,o,n,r,i){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=r,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(r):r[s]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?yh:Hw,this.isPropagationStopped=Hw,this}return gt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=yh)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=yh)},persist:function(){},isPersistent:yh}),t}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dg=$a(Xi),am=gt({},Xi,{view:0,detail:0}),o3=$a(am),Iv,Tv,dd,Pg=gt({},am,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pL,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dd&&(dd&&e.type==="mousemove"?(Iv=e.screenX-dd.screenX,Tv=e.screenY-dd.screenY):Tv=Iv=0,dd=e),Iv)},movementY:function(e){return"movementY"in e?e.movementY:Tv}}),qw=$a(Pg),n3=gt({},Pg,{dataTransfer:0}),r3=$a(n3),i3=gt({},am,{relatedTarget:0}),wv=$a(i3),s3=gt({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),l3=$a(s3),u3=gt({},Xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),c3=$a(u3),f3=gt({},Xi,{data:0}),Gw=$a(f3),d3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},p3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p3[e])?!!t[e]:!1}function pL(){return h3}var g3=gt({},am,{key:function(e){if(e.key){var t=d3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?m3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pL,charCode:function(e){return e.type==="keypress"?Vh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x3=$a(g3),y3=gt({},Pg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jw=$a(y3),S3=gt({},Xi,{submitter:0}),b3=$a(S3),v3=gt({},am,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pL}),C3=$a(v3),L3=gt({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),R3=$a(L3),I3=gt({},Pg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T3=$a(I3),w3=gt({},Xi,{newState:0,oldState:0,source:0}),E3=$a(w3),A3=[9,13,27,32],hL=Fr&&"CompositionEvent"in window,Cd=null;Fr&&"documentMode"in document&&(Cd=document.documentMode);var D3=Fr&&"TextEvent"in window&&!Cd,UA=Fr&&(!hL||Cd&&8<Cd&&11>=Cd),Xw=" ",Yw=!1;function HA(e,t){switch(e){case"keyup":return A3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ku=!1;function P3(e,t){switch(e){case"compositionend":return qA(t);case"keypress":return t.which!==32?null:(Yw=!0,Xw);case"textInput":return e=t.data,e===Xw&&Yw?null:e;default:return null}}function M3(e,t){if(Ku)return e==="compositionend"||!hL&&HA(e,t)?(e=zA(),Bh=mL=Ti=null,Ku=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return UA&&t.locale!=="ko"?null:t.data;default:return null}}var O3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ww(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!O3[e.type]:t==="textarea"}function GA(e,t,a,o){Wu?rc?rc.push(o):rc=[o]:Wu=o,t=Ig(t,"onChange"),0<t.length&&(a=new Dg("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Ld=null,Vd=null;function k3(e){_P(e,0)}function Mg(e){var t=Sd(e);if(kA(t))return e}function Kw(e,t){if(e==="change")return t}var jA=!1;Fr&&(Fr?(bh="oninput"in document,bh||(Ev=document.createElement("div"),Ev.setAttribute("oninput","return;"),bh=typeof Ev.oninput=="function"),Sh=bh):Sh=!1,jA=Sh&&(!document.documentMode||9<document.documentMode));var Sh,bh,Ev;function Zw(){Ld&&(Ld.detachEvent("onpropertychange",XA),Vd=Ld=null)}function XA(e){if(e.propertyName==="value"&&Mg(Vd)){var t=[];GA(t,Vd,e,dL(e)),_A(k3,t)}}function N3(e,t,a){e==="focusin"?(Zw(),Ld=t,Vd=a,Ld.attachEvent("onpropertychange",XA)):e==="focusout"&&Zw()}function B3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mg(Vd)}function V3(e,t){if(e==="click")return Mg(t)}function F3(e,t){if(e==="input"||e==="change")return Mg(t)}function _3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _o=typeof Object.is=="function"?Object.is:_3;function Fd(e,t){if(_o(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!rC.call(t,n)||!_o(e[n],t[n]))return!1}return!0}function cC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jw(e,t){var a=Qw(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Qw(a)}}function YA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function WA(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cC(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=cC(e.document)}return t}function gL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var z3=Fr&&"documentMode"in document&&11>=document.documentMode,Zu=null,fC=null,Rd=null,dC=!1;function $w(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;dC||Zu==null||Zu!==cC(o)||(o=Zu,"selectionStart"in o&&gL(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Rd&&Fd(Rd,o)||(Rd=o,o=Ig(fC,"onSelect"),0<o.length&&(t=new Dg("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Zu)))}function Js(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Qu={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionrun:Js("Transition","TransitionRun"),transitionstart:Js("Transition","TransitionStart"),transitioncancel:Js("Transition","TransitionCancel"),transitionend:Js("Transition","TransitionEnd")},Av={},KA={};Fr&&(KA=document.createElement("div").style,"AnimationEvent"in window||(delete Qu.animationend.animation,delete Qu.animationiteration.animation,delete Qu.animationstart.animation),"TransitionEvent"in window||delete Qu.transitionend.transition);function bl(e){if(Av[e])return Av[e];if(!Qu[e])return e;var t=Qu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in KA)return Av[e]=t[a];return e}var ZA=bl("animationend"),QA=bl("animationiteration"),JA=bl("animationstart"),U3=bl("transitionrun"),H3=bl("transitionstart"),q3=bl("transitioncancel"),$A=bl("transitionend"),eD=new Map,mC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");mC.push("scrollEnd");function Mn(e,t){eD.set(e,t),Sl(t,[e])}var G3=0;function _r(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Pn.identifierPrefix;var a=G3++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function eE(e){if(e==null||typeof e=="string")return e;var t=null,a=dc;if(a!==null)for(var o=0;o<a.length;o++){var n=e[a[o]];if(n!=null){if(n==="none")return"none";t=t==null?n:t+(" "+n)}}return t??e.default}function jr(e,t){return e=eE(e),t=eE(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var ng=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jo=[],Ju=0,xL=0;function Og(){for(var e=Ju,t=xL=Ju=0;t<e;){var a=Jo[t];Jo[t++]=null;var o=Jo[t];Jo[t++]=null;var n=Jo[t];Jo[t++]=null;var r=Jo[t];if(Jo[t++]=null,o!==null&&n!==null){var i=o.pending;i===null?n.next=n:(n.next=i.next,i.next=n),o.pending=n}r!==0&&tD(a,n,r)}}function kg(e,t,a,o){Jo[Ju++]=e,Jo[Ju++]=t,Jo[Ju++]=a,Jo[Ju++]=o,xL|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function yL(e,t,a,o){return kg(e,t,a,o),rg(e)}function vl(e,t){return kg(e,null,null,t),rg(e)}function tD(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,r=e.return;r!==null;)r.childLanes|=a,o=r.alternate,o!==null&&(o.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-Vo(a),e=r.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),r):null}function rg(e){if(50<kd)throw kd=0,Yh=null,Error(X(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $u={};function j3(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(e,t,a,o){return new j3(e,t,a,o)}function SL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Br(e,t){var a=e.alternate;return a===null?(a=ho(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function aD(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fh(e,t,a,o,n,r){var i=0;if(o=e,typeof o=="function")SL(o)&&(i=1);else if(typeof o=="string")i=x4(e,a,ar.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case eC:return e=ho(31,a,t,n),e.elementType=eC,e.lanes=r,e;case Xu:return il(a.children,n,r,t);case SA:i=8,n|=24;break;case Qv:return e=ho(12,a,t,n|2),e.elementType=Qv,e.lanes=r,e;case Jv:return e=ho(13,a,t,n),e.elementType=Jv,e.lanes=r,e;case $v:return e=ho(19,a,t,n),e.elementType=$v,e.lanes=r,e;case MH:case tC:return e=n|32,e=ho(30,a,t,e),e.elementType=tC,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Jn:i=10;break e;case bA:i=9;break e;case iL:i=11;break e;case sL:i=14;break e;case Ci:i=16,o=null;break e}i=29,a=Error(X(130,e===null?"null":typeof e,"")),o=null}return t=ho(i,a,t,n),t.elementType=e,t.type=o,t.lanes=r,t}function il(e,t,a,o){return e=ho(7,e,o,t),e.lanes=a,e}function Dv(e,t,a){return e=ho(6,e,null,t),e.lanes=a,e}function oD(e){var t=ho(18,null,null,0);return t.stateNode=e,t}function Pv(e,t,a){return t=ho(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var tE=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var a=tE.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ow(t)},tE.set(e,t),t)}return{value:e,source:t,stack:Ow(t)}}var ec=[],tc=0,ig=null,_d=0,$o=[],en=0,Ui=null,er=1,tr="";function kr(e,t){ec[tc++]=_d,ec[tc++]=ig,ig=e,_d=t}function nD(e,t,a){$o[en++]=er,$o[en++]=tr,$o[en++]=Ui,Ui=e;var o=er;e=tr;var n=32-Vo(o)-1;o&=~(1<<n),a+=1;var r=32-Vo(t)+n;if(30<r){var i=n-n%5;r=(o&(1<<i)-1).toString(32),o>>=i,n-=i,er=1<<32-Vo(t)+n|a<<n|o,tr=r+e}else er=1<<r|a<<n|o,tr=e}function Ng(e){e.return!==null&&(kr(e,1),nD(e,1,0))}function bL(e){for(;e===ig;)ig=ec[--tc],ec[tc]=null,_d=ec[--tc],ec[tc]=null;for(;e===Ui;)Ui=$o[--en],$o[en]=null,tr=$o[--en],$o[en]=null,er=$o[--en],$o[en]=null}function rD(e,t){$o[en++]=er,$o[en++]=tr,$o[en++]=Ui,er=t.id,tr=t.overflow,Ui=e}var da=null,St=null,ze=!1,Mi=null,on=!1,pC=Error(X(519));function Hi(e){var t=Error(X(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zd(an(t,e)),pC}function aE(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[La]=e,t[yo]=o,a){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(a=0;a<Gd.length;a++)Ge(Gd[a],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ge("invalid",t),NA(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ge("invalid",t);break;case"textarea":Ge("invalid",t),VA(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||UP(t.textContent,a)?(o.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),o.onScroll!=null&&Ge("scroll",t),o.onScrollEnd!=null&&Ge("scrollend",t),o.onClick!=null&&(t.onclick=$n),t=!0):t=!1,t||Hi(e,!0)}function sg(e){for(da=e.return;da;)switch(da.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:da=da.return}}function zu(e){if(e!==da)return!1;if(!ze)return sg(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||JC(e.type,e.memoizedProps)),a=!a),a&&St&&Hi(e),sg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));St=JE(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));St=JE(e)}else t===27?(t=St,Yi(e.type)?(e=aL,aL=null,St=e):St=t):St=da?nn(e.stateNode.nextSibling):null;return!0}function cl(){St=da=null,ze=!1}function Mv(){var e=Mi;return e!==null&&(mo===null?mo=e:mo.push.apply(mo,e),Mi=null),e}function zd(e){Mi===null?Mi=[e]:Mi.push(e)}var hC=rr(null),Cl=null,Nr=null;function wi(e,t,a){bt(hC,t._currentValue),t._currentValue=a}function Vr(e){e._currentValue=hC.current,Ia(hC)}function _h(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function gC(e,t,a,o){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var r=n.dependencies;if(r!==null){var i=n.child;r=r.firstContext;e:for(;r!==null;){var s=r;r=n;for(var l=0;l<t.length;l++)if(s.context===t[l]){r.lanes|=a,s=r.alternate,s!==null&&(s.lanes|=a),_h(r.return,a,e),o||(i=null);break e}r=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(X(341));i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),_h(i,a,e),i=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=a,i=n.alternate,i!==null&&(i.lanes|=a),_h(n.return,a,e),i=n.child,i=i!==null?i.sibling:null):i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function fl(e,t,a,o){e=null;for(var n=t,r=!1;n!==null;){if(!r){if((n.flags&524288)!==0)r=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(X(387));if(i=i.memoizedProps,i!==null){var s=n.type;_o(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===$h.current){if(i=n.alternate,i===null)throw Error(X(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Lc):e=[Lc])}n=n.return}return e!==null&&gC(t,e,a,o),t.flags|=262144,e!==null}function lg(e){for(e=e.firstContext;e!==null;){if(!_o(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dl(e){Cl=e,Nr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ra(e){return iD(Cl,e)}function vh(e,t){return Cl===null&&dl(e),iD(e,t)}function iD(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nr===null){if(e===null)throw Error(X(308));Nr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nr=Nr.next=t;return a}var X3=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Y3=oa.unstable_scheduleCallback,W3=oa.unstable_NormalPriority,Wt={$$typeof:Jn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vL(){return{controller:new X3,data:new Map,refCount:0}}function om(e){e.refCount--,e.refCount===0&&Y3(W3,function(){e.controller.abort()})}function oE(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}var bd=null;function K3(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Id=null,xC=0,ml=0,ic=null;function Z3(e,t){if(Id===null){var a=Id=[];xC=0,ml=KL(),ic={status:"pending",value:void 0,then:function(o){a.push(o)}}}return xC++,t.then(nE,nE),t}function nE(){if(--xC===0&&(bd=null,Id!==null)){ic!==null&&(ic.status="fulfilled");var e=Id;Id=null,ml=0,ic=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Q3(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(o.status="rejected",o.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),o}var rE=Te.S;Te.S=function(e,t){if(RP=No(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Z3(e,t),bd!==null)for(var a=bc;a!==null;)oE(a,bd),a=a.next;if(a=e.types,a!==null){for(var o=bc;o!==null;)oE(o,a),o=o.next;if(ml!==0){o=bd,o===null&&(o=bd=[]);for(var n=0;n<a.length;n++){var r=a[n];o.indexOf(r)===-1&&o.push(r)}}}rE!==null&&rE(e,t)};var sl=rr(null);function CL(){var e=sl.current;return e!==null?e:ht.pooledCache}function zh(e,t){t===null?bt(sl,sl.current):bt(sl,t.pool)}function sD(){var e=CL();return e===null?null:{parent:Wt._currentValue,pool:e}}var Ec=Error(X(460)),LL=Error(X(474)),Bg=Error(X(542)),ug={then:function(){}};function iE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lD(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($n,$n),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lE(e),e===void 0&&!("reason"in t)?Error(X(600)):e;default:if(typeof t.status=="string")t.then($n,$n);else{if(e=ht,e!==null&&100<e.shellSuspendCounter)throw Error(X(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=o}},function(o){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lE(e),e}throw ll=t,Ec}}function tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ll=a,Ec):a}}var ll=null;function sE(){if(ll===null)throw Error(X(459));var e=ll;return ll=null,e}function lE(e){if(e===Ec||e===Bg)throw Error(X(483))}var sc=null,Ud=0;function Ch(e){var t=Ud;return Ud+=1,sc===null&&(sc=[]),lD(sc,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Lh(e,t){throw t.$$typeof===PH?Error(X(525)):(e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uD(e){function t(g,h){if(e){var x=g.deletions;x===null?(g.deletions=[h],g.flags|=16):x.push(h)}}function a(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function o(g){for(var h=new Map;g!==null;)g.key===null?h.set(g.index,g):h.set(g.key,g),g=g.sibling;return h}function n(g,h){return g=Br(g,h),g.index=0,g.sibling=null,g}function r(g,h,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<h?(g.flags|=2,h):x):(g.flags|=134217730,h)):(g.flags|=1048576,h)}function i(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function s(g,h,x,S){return h===null||h.tag!==6?(h=Dv(x,g.mode,S),h.return=g,h):(h=n(h,x),h.return=g,h)}function l(g,h,x,S){var v=x.type;return v===Xu?(g=c(g,h,x.props.children,S,x.key),Si(g,x),g):h!==null&&(h.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Ci&&tl(v)===h.type)?(h=n(h,x.props),Si(h,x),h.return=g,h):(h=Fh(x.type,x.key,x.props,null,g.mode,S),Si(h,x),h.return=g,h)}function u(g,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Pv(x,g.mode,S),h.return=g,h):(h=n(h,x.children||[]),h.return=g,h)}function c(g,h,x,S,v){return h===null||h.tag!==7?(h=il(x,g.mode,S,v),h.return=g,h):(h=n(h,x),h.return=g,h)}function d(g,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Dv(""+h,g.mode,x),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case mh:return x=Fh(h.type,h.key,h.props,null,g.mode,x),Si(x,h),x.return=g,x;case xd:return h=Pv(h,g.mode,x),h.return=g,h;case Ci:return h=tl(h),d(g,h,x)}if(yd(h)||fd(h))return h=il(h,g.mode,x,null),h.return=g,h;if(typeof h.then=="function")return d(g,Ch(h),x);if(h.$$typeof===Jn)return d(g,vh(g,h),x);Lh(g,h)}return null}function f(g,h,x,S){var v=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return v!==null?null:s(g,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case mh:return x.key===v?l(g,h,x,S):null;case xd:return x.key===v?u(g,h,x,S):null;case Ci:return x=tl(x),f(g,h,x,S)}if(yd(x)||fd(x))return v!==null?null:c(g,h,x,S,null);if(typeof x.then=="function")return f(g,h,Ch(x),S);if(x.$$typeof===Jn)return f(g,h,vh(g,x),S);Lh(g,x)}return null}function m(g,h,x,S,v){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return g=g.get(x)||null,s(h,g,""+S,v);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case mh:return g=g.get(S.key===null?x:S.key)||null,l(h,g,S,v);case xd:return g=g.get(S.key===null?x:S.key)||null,u(h,g,S,v);case Ci:return S=tl(S),m(g,h,x,S,v)}if(yd(S)||fd(S))return g=g.get(x)||null,c(h,g,S,v,null);if(typeof S.then=="function")return m(g,h,x,Ch(S),v);if(S.$$typeof===Jn)return m(g,h,x,vh(h,S),v);Lh(h,S)}return null}function p(g,h,x,S){for(var v=null,R=null,L=h,C=h=0,T=null;L!==null&&C<x.length;C++){L.index>C?(T=L,L=null):T=L.sibling;var w=f(g,L,x[C],S);if(w===null){L===null&&(L=T);break}e&&L&&w.alternate===null&&t(g,L),h=r(w,h,C),R===null?v=w:R.sibling=w,R=w,L=T}if(C===x.length)return a(g,L),ze&&kr(g,C),v;if(L===null){for(;C<x.length;C++)L=d(g,x[C],S),L!==null&&(h=r(L,h,C),R===null?v=L:R.sibling=L,R=L);return ze&&kr(g,C),v}for(L=o(L);C<x.length;C++)T=m(L,g,C,x[C],S),T!==null&&(e&&(w=T.alternate,w!==null&&L.delete(w.key===null?C:w.key)),h=r(T,h,C),R===null?v=T:R.sibling=T,R=T);return e&&L.forEach(function(A){return t(g,A)}),ze&&kr(g,C),v}function y(g,h,x,S){if(x==null)throw Error(X(151));for(var v=null,R=null,L=h,C=h=0,T=null,w=x.next();L!==null&&!w.done;C++,w=x.next()){L.index>C?(T=L,L=null):T=L.sibling;var A=f(g,L,w.value,S);if(A===null){L===null&&(L=T);break}e&&L&&A.alternate===null&&t(g,L),h=r(A,h,C),R===null?v=A:R.sibling=A,R=A,L=T}if(w.done)return a(g,L),ze&&kr(g,C),v;if(L===null){for(;!w.done;C++,w=x.next())w=d(g,w.value,S),w!==null&&(h=r(w,h,C),R===null?v=w:R.sibling=w,R=w);return ze&&kr(g,C),v}for(L=o(L);!w.done;C++,w=x.next())w=m(L,g,C,w.value,S),w!==null&&(e&&(T=w.alternate,T!==null&&L.delete(T.key===null?C:T.key)),h=r(w,h,C),R===null?v=w:R.sibling=w,R=w);return e&&L.forEach(function(N){return t(g,N)}),ze&&kr(g,C),v}function b(g,h,x,S){if(typeof x=="object"&&x!==null&&x.type===Xu&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case mh:e:{for(var v=x.key;h!==null;){if(h.key===v){if(v=x.type,v===Xu){if(h.tag===7){a(g,h.sibling),S=n(h,x.props.children),Si(S,x),S.return=g,g=S;break e}}else if(h.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Ci&&tl(v)===h.type){a(g,h.sibling),S=n(h,x.props),Si(S,x),S.return=g,g=S;break e}a(g,h);break}else t(g,h);h=h.sibling}x.type===Xu?(S=il(x.props.children,g.mode,S,x.key),Si(S,x),S.return=g,g=S):(S=Fh(x.type,x.key,x.props,null,g.mode,S),Si(S,x),S.return=g,g=S)}return i(g);case xd:e:{for(v=x.key;h!==null;){if(h.key===v)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(g,h.sibling),S=n(h,x.children||[]),S.return=g,g=S;break e}else{a(g,h);break}else t(g,h);h=h.sibling}S=Pv(x,g.mode,S),S.return=g,g=S}return i(g);case Ci:return x=tl(x),b(g,h,x,S)}if(yd(x))return p(g,h,x,S);if(fd(x)){if(v=fd(x),typeof v!="function")throw Error(X(150));return x=v.call(x),y(g,h,x,S)}if(typeof x.then=="function")return b(g,h,Ch(x),S);if(x.$$typeof===Jn)return b(g,h,vh(g,x),S);Lh(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(a(g,h.sibling),S=n(h,x),S.return=g,g=S):(a(g,h),S=Dv(x,g.mode,S),S.return=g,g=S),i(g)):a(g,h)}return function(g,h,x,S){try{Ud=0;var v=b(g,h,x,S);return sc=null,v}catch(L){if(L===Ec||L===Bg)throw L;var R=ho(29,L,null,g.mode);return R.lanes=S,R.return=g,R}finally{}}}var pl=uD(!0),cD=uD(!1),Li=!1;function RL(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Oi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ki(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=rg(e),tD(e,null,a),t}return kg(e,o,t,a),rg(e)}function Td(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wA(e,a)}}function Ov(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?n=r=i:r=r.next=i,a=a.next}while(a!==null);r===null?n=r=t:r=r.next=t}else n=r=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var SC=!1;function wd(){if(SC){var e=ic;if(e!==null)throw e}}function Ed(e,t,a,o){SC=!1;var n=e.updateQueue;Li=!1;var r=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?r=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(r!==null){var d=n.baseState;i=0,c=u=l=null,s=r;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Xe&f)===f:(o&f)===f){f!==0&&f===ml&&(SC=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var p=e,y=s;f=t;var b=a;switch(y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(b,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(b,d,f):p,f==null)break e;d=gt({},d,f);break e;case 2:Li=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=n.callbacks,m===null?n.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,i|=f;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;m=s,s=m.next,m.next=null,n.lastBaseUpdate=m,n.shared.pending=null}}while(!0);c===null&&(l=d),n.baseState=l,n.firstBaseUpdate=u,n.lastBaseUpdate=c,r===null&&(n.shared.lanes=0),ji|=i,e.lanes=i,e.memoizedState=d}}function fD(e,t){if(typeof e!="function")throw Error(X(191,e));e.call(t)}function dD(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fD(a[e],t)}var qi=rr(null),cg=rr(0);function uE(e,t){e=qr,bt(cg,e),bt(qi,t),qr=e|t.baseLanes}function bC(){bt(cg,qr),bt(qi,qi.current)}function IL(){qr=cg.current,Ia(qi),Ia(cg)}var Ea=rr(null),Va=null;function Ni(e){var t=e.alternate;bt(Ta,Ta.current&1),bt(Ea,e),Va===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(Va=e)}function vC(e){bt(Ta,Ta.current),bt(Ea,e),Va===null&&(Va=e)}function mD(e){e.tag===22?(bt(Ta,Ta.current),bt(Ea,e),Va===null&&(Va=e)):Bi()}function Bi(){bt(Ta,Ta.current),bt(Ea,Ea.current)}function Mo(e){Ia(Ea),Va===e&&(Va=null),Ia(Ta)}var Ta=rr(0);function Hd(e,t){bt(Ea,Ea.current),bt(Ta,t)}function TL(e){Ia(Ta),Ia(Ea),Va===e&&(Va=null)}function fg(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||tL(a)||$L(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zr=0,Oe=null,ft=null,Yt=null,dg=!1,lc=!1,hl=!1,mg=0,qd=0,uc=null,J3=0;function Nt(){throw Error(X(321))}function wL(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_o(e[a],t[a]))return!1;return!0}function EL(e,t,a,o,n,r){return zr=r,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Te.H=e===null||e.memoizedState===null?GD:jD,hl=!1,r=a(o,n),hl=!1,lc&&(r=hD(t,a,o,n)),pD(e),r}function pD(e){Te.H=pg;var t=ft!==null&&ft.next!==null;if(zr=0,Yt=ft=Oe=null,dg=!1,qd=0,uc=null,t)throw Error(X(300));e===null||Kt||(e=e.dependencies,e!==null&&lg(e)&&(Kt=!0))}function hD(e,t,a,o){Oe=e;var n=0;do{if(lc&&(uc=null),qd=0,lc=!1,25<=n)throw Error(X(301));if(n+=1,Yt=ft=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Te.H=iq,r=t(a,o)}while(lc);return r}function $3(){var e=Te.H,t=e.useState()[0];return t=typeof t.then=="function"?nm(t):t,e=e.useState()[0],(ft!==null?ft.memoizedState:null)!==e&&(Oe.flags|=1024),t}function AL(){var e=mg!==0;return mg=0,e}function DL(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function PL(e){if(dg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}dg=!1}zr=0,Yt=ft=Oe=null,lc=!1,qd=mg=0,uc=null}function Ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Oe.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function _t(){if(ft===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=ft.next;var t=Yt===null?Oe.memoizedState:Yt.next;if(t!==null)Yt=t,ft=e;else{if(e===null)throw Oe.alternate===null?Error(X(467)):Error(X(310));ft=e,e={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Yt===null?Oe.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Vg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nm(e){var t=qd;return qd+=1,uc===null&&(uc=[]),e=lD(uc,e,t),t=Oe,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,Te.H=t===null||t.memoizedState===null?GD:jD),e}function Fg(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nm(e);if(e.$$typeof===kH)return;if(e.$$typeof===Jn)return Ra(e)}throw Error(X(438,String(e)))}function ML(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Oe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Vg(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=OH;return t.index++,a}function Ur(e,t){return typeof t=="function"?t(e):t}function Uh(e){var t=_t();return OL(t,ft,e)}function OL(e,t,a){var o=e.queue;if(o===null)throw Error(X(311));o.lastRenderedReducer=a;var n=e.baseQueue,r=o.pending;if(r!==null){if(n!==null){var i=n.next;n.next=r.next,r.next=i}t.baseQueue=n=r,o.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var s=i=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Xe&d)===d:(zr&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===ml&&(c=!0);else if((zr&f)===f){u=u.next,f===ml&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,i=r):l=l.next=d,Oe.lanes|=f,ji|=f;d=u.action,hl&&a(r,d),r=u.hasEagerState?u.eagerState:a(r,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,i=r):l=l.next=f,Oe.lanes|=d,ji|=d;u=u.next}while(u!==null&&u!==t);if(l===null?i=r:l.next=s,!_o(r,e.memoizedState)&&(Kt=!0,c&&(a=ic,a!==null)))throw a;e.memoizedState=r,e.baseState=i,e.baseQueue=l,o.lastRenderedState=r}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function kv(e){var t=_t(),a=t.queue;if(a===null)throw Error(X(311));a.lastRenderedReducer=e;var o=a.dispatch,n=a.pending,r=t.memoizedState;if(n!==null){a.pending=null;var i=n=n.next;do r=e(r,i.action),i=i.next;while(i!==n);_o(r,t.memoizedState)||(Kt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,o]}function gD(e,t,a){var o=Oe,n=_t(),r=ze;if(r){if(a===void 0)throw Error(X(407));a=a()}else a=t();var i=!_o((ft||n).memoizedState,a);if(i&&(n.memoizedState=a,Kt=!0),n=n.queue,kL(SD.bind(null,o,n,e),[e]),e=n.getSnapshot!==t||i||Yt!==null&&(Yt.memoizedState.tag&1)!==0,gc(e?9:8,{destroy:void 0},yD.bind(null,o,n,a,t),null),e){if(o.flags|=2048,ht===null)throw Error(X(349));r||(zr&127)!==0||xD(o,t,a)}return a}function xD(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=Vg(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function yD(e,t,a,o){t.value=a,t.getSnapshot=o,bD(t)&&vD(e)}function SD(e,t,a){return a(function(){bD(t)&&vD(e)})}function bD(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_o(e,a)}catch{return!0}}function vD(e){var t=vl(e,2);t!==null&&go(t,e,2)}function CC(e){var t=Ja();if(typeof e=="function"){var a=e;if(e=a(),hl){Ii(!0);try{a()}finally{Ii(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:e},t}function CD(e,t,a,o){return e.baseState=a,OL(e,ft,typeof o=="function"?o:Ur)}function eq(e,t,a,o,n){if(zg(e))throw Error(X(485));if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){r.listeners.push(i)}};Te.T!==null?a(!0):r.isTransition=!1,o(r),a=t.pending,a===null?(r.next=t.pending=r,LD(t,r)):(r.next=a.next,t.pending=a.next=r)}}function LD(e,t){var a=t.action,o=t.payload,n=e.state;if(t.isTransition){var r=Te.T,i={};i.types=r!==null?r.types:null,Te.T=i;try{var s=a(n,o),l=Te.S;l!==null&&l(i,s),cE(e,t,s)}catch(u){LC(e,t,u)}finally{r!==null&&i.types!==null&&(r.types=i.types),Te.T=r}}else try{r=a(n,o),cE(e,t,r)}catch(u){LC(e,t,u)}}function cE(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){fE(e,t,o)},function(o){return LC(e,t,o)}):fE(e,t,a)}function fE(e,t,a){t.status="fulfilled",t.value=a,RD(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,LD(e,a)))}function LC(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,RD(t),t=t.next;while(t!==o)}e.action=null}function RD(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ID(e,t){return t}function dE(e,t){if(ze){var a=ht.formState;if(a!==null){e:{var o=Oe;if(ze){if(St){t:{for(var n=St,r=on;n.nodeType!==8;){if(!r){n=null;break t}if(n=nn(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r==="F!"||r==="F"?n:null}if(n){St=nn(n.nextSibling),o=n.data==="F!";break e}}Hi(o)}o=!1}o&&(t=a[0])}}return a=Ja(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ID,lastRenderedState:t},a.queue=o,a=UD.bind(null,Oe,o),o.dispatch=a,o=CC(!1),r=FL.bind(null,Oe,!1,o.queue),o=Ja(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=eq.bind(null,Oe,n,r,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function mE(e){var t=_t();return TD(t,ft,e)}function TD(e,t,a){if(t=OL(e,t,ID)[0],e=Uh(Ur)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=nm(t)}catch(i){throw i===Ec?Bg:i}else o=t;t=_t();var n=t.queue,r=n.dispatch;return a!==t.memoizedState&&(Oe.flags|=2048,gc(9,{destroy:void 0},tq.bind(null,n,a),null)),[o,r,e]}function tq(e,t){e.action=t}function pE(e){var t=_t(),a=ft;if(a!==null)return TD(t,a,e);_t(),t=t.memoizedState,a=_t();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function gc(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=Vg(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function wD(){return _t().memoizedState}function Hh(e,t,a,o){var n=Ja();Oe.flags|=e,n.memoizedState=gc(1|t,{destroy:void 0},a,o===void 0?null:o)}function _g(e,t,a,o){var n=_t();o=o===void 0?null:o;var r=n.memoizedState.inst;ft!==null&&o!==null&&wL(o,ft.memoizedState.deps)?n.memoizedState=gc(t,r,a,o):(Oe.flags|=e,n.memoizedState=gc(1|t,r,a,o))}function hE(e,t){Hh(8390656,8,e,t)}function kL(e,t){_g(2048,8,e,t)}function aq(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=Vg(),Oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ED(e){var t=_t().memoizedState;return aq({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(X(440));return t.impl.apply(void 0,arguments)}}function AD(e,t){return _g(4,2,e,t)}function DD(e,t){return _g(4,4,e,t)}function PD(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function MD(e,t,a){a=a!=null?a.concat([e]):null,_g(4,4,PD.bind(null,t,e),a)}function NL(){}function OD(e,t){var a=_t();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&wL(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function kD(e,t){var a=_t();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&wL(t,o[1]))return o[0];if(o=e(),hl){Ii(!0);try{e()}finally{Ii(!1)}}return a.memoizedState=[o,t],o}function BL(e,t,a){return a===void 0||(zr&1073741824)!==0&&(Xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=TP(),Oe.lanes|=e,ji|=e,a)}function ND(e,t,a,o){return _o(a,t)?a:qi.current!==null?(e=BL(e,a,o),_o(e,t)||(Kt=!0),e):(zr&106)===0||(zr&1073741824)!==0&&(Xe&261930)===0?(Kt=!0,e.memoizedState=a):(e=TP(),Oe.lanes|=e,ji|=e,t)}function BD(e,t,a,o,n){var r=et.p;et.p=r!==0&&8>r?r:8;var i=Te.T,s={};s.types=i!==null?i.types:null,Te.T=s,FL(e,!1,t,a);try{var l=n(),u=Te.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=Q3(l,o);Ad(e,t,c,Fo(e))}else Ad(e,t,o,Fo(e))}catch(d){Ad(e,t,{then:function(){},status:"rejected",reason:d},Fo())}finally{et.p=r,i!==null&&s.types!==null&&(i.types=s.types),Te.T=i}}function oq(){}function RC(e,t,a,o){if(e.tag!==5)throw Error(X(476));var n=VD(e).queue;BD(e,n,t,rl,a===null?oq:function(){return FD(e),a(o)})}function VD(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:rl,baseState:rl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:rl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ur,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function FD(e){var t=VD(e);t.next===null&&(t=e.alternate.memoizedState),Ad(e,t.next.queue,{},Fo())}function VL(){return Ra(Lc)}function _D(){return _t().memoizedState}function zD(){return _t().memoizedState}function nq(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Fo();e=Oi(a);var o=ki(t,e,a);o!==null&&(go(o,t,a),Td(o,t,a)),t={cache:vL()},e.payload=t;return}t=t.return}}function rq(e,t,a){var o=Fo();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zg(e)?HD(t,a):(a=yL(e,t,a,o),a!==null&&(go(a,e,o),qD(a,t,o)))}function UD(e,t,a){var o=Fo();Ad(e,t,a,o)}function Ad(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(zg(e))HD(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var i=t.lastRenderedState,s=r(i,a);if(n.hasEagerState=!0,n.eagerState=s,_o(s,i))return kg(e,t,n,0),ht===null&&Og(),!1}catch{}finally{}if(a=yL(e,t,n,o),a!==null)return go(a,e,o),qD(a,t,o),!0}return!1}function FL(e,t,a,o){if(o={lane:2,revertLane:KL(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},zg(e)){if(t)throw Error(X(479))}else t=yL(e,a,o,2),t!==null&&go(t,e,2)}function zg(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function HD(e,t){lc=dg=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qD(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wA(e,a)}}var pg={readContext:Ra,use:Fg,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt,useEffectEvent:Nt},GD={readContext:Ra,use:Fg,useCallback:function(e,t){return Ja().memoizedState=[e,t===void 0?null:t],e},useContext:Ra,useEffect:hE,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hh(4194308,4,PD.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hh(4194308,4,e,t)},useInsertionEffect:function(e,t){Hh(4,2,e,t)},useMemo:function(e,t){var a=Ja();t=t===void 0?null:t;var o=e();if(hl){Ii(!0);try{e()}finally{Ii(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Ja();if(a!==void 0){var n=a(t);if(hl){Ii(!0);try{a(t)}finally{Ii(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=rq.bind(null,Oe,e),[o.memoizedState,e]},useRef:function(e){var t=Ja();return e={current:e},t.memoizedState=e},useState:function(e){e=CC(e);var t=e.queue,a=UD.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:NL,useDeferredValue:function(e,t){var a=Ja();return BL(a,e,t)},useTransition:function(){var e=CC(!1);return e=BD.bind(null,Oe,e.queue,!0,!1),Ja().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Oe,n=Ja();if(ze){if(a===void 0)throw Error(X(407));a=a()}else{if(a=t(),ht===null)throw Error(X(349));(Xe&127)!==0||xD(o,t,a)}n.memoizedState=a;var r={value:a,getSnapshot:t};return n.queue=r,hE(SD.bind(null,o,r,e),[e]),o.flags|=2048,gc(9,{destroy:void 0},yD.bind(null,o,r,a,t),null),a},useId:function(){var e=Ja(),t=ht.identifierPrefix;if(ze){var a=tr,o=er;a=(o&~(1<<32-Vo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=mg++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=J3++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:VL,useFormState:dE,useActionState:dE,useOptimistic:function(e){var t=Ja();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=FL.bind(null,Oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:ML,useCacheRefresh:function(){return Ja().memoizedState=nq.bind(null,Oe)},useEffectEvent:function(e){var t=Ja(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(X(440));return a.impl.apply(void 0,arguments)}}},jD={readContext:Ra,use:Fg,useCallback:OD,useContext:Ra,useEffect:kL,useImperativeHandle:MD,useInsertionEffect:AD,useLayoutEffect:DD,useMemo:kD,useReducer:Uh,useRef:wD,useState:function(){return Uh(Ur)},useDebugValue:NL,useDeferredValue:function(e,t){var a=_t();return ND(a,ft.memoizedState,e,t)},useTransition:function(){var e=Uh(Ur)[0],t=_t().memoizedState;return[typeof e=="boolean"?e:nm(e),t]},useSyncExternalStore:gD,useId:_D,useHostTransitionStatus:VL,useFormState:mE,useActionState:mE,useOptimistic:function(e,t){var a=_t();return CD(a,ft,e,t)},useMemoCache:ML,useCacheRefresh:zD,useEffectEvent:ED},iq={readContext:Ra,use:Fg,useCallback:OD,useContext:Ra,useEffect:kL,useImperativeHandle:MD,useInsertionEffect:AD,useLayoutEffect:DD,useMemo:kD,useReducer:kv,useRef:wD,useState:function(){return kv(Ur)},useDebugValue:NL,useDeferredValue:function(e,t){var a=_t();return ft===null?BL(a,e,t):ND(a,ft.memoizedState,e,t)},useTransition:function(){var e=kv(Ur)[0],t=_t().memoizedState;return[typeof e=="boolean"?e:nm(e),t]},useSyncExternalStore:gD,useId:_D,useHostTransitionStatus:VL,useFormState:pE,useActionState:pE,useOptimistic:function(e,t){var a=_t();return ft!==null?CD(a,ft,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ML,useCacheRefresh:zD,useEffectEvent:ED};function Nv(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:gt({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var IC={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Fo(),n=Oi(o);n.payload=t,a!=null&&(n.callback=a),t=ki(e,n,o),t!==null&&(go(t,e,o),Td(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Fo(),n=Oi(o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=ki(e,n,o),t!==null&&(go(t,e,o),Td(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Fo(),o=Oi(a);o.tag=2,t!=null&&(o.callback=t),t=ki(e,o,a),t!==null&&(go(t,e,a),Td(t,e,a))}};function gE(e,t,a,o,n,r,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,r,i):t.prototype&&t.prototype.isPureReactComponent?!Fd(a,o)||!Fd(n,r):!0}function xE(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&IC.enqueueReplaceState(t,t.state,null)}function gl(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=gt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function XD(e){ng(e)}function YD(e){console.error(e)}function WD(e){ng(e)}function hg(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function yE(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function TC(e,t,a){return a=Oi(a),a.tag=3,a.payload={element:null},a.callback=function(){hg(e,t)},a}function KD(e){return e=Oi(e),e.tag=3,e}function ZD(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var r=o.value;e.payload=function(){return n(r)},e.callback=function(){yE(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){yE(t,a,o),typeof n!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function sq(e,t,a,o,n){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&fl(t,a,n,!0),a=Ea.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Va===null?Lg():a.alternate===null&&Bt===0&&(Bt=3),a.flags&=-257,a.flags|=65536,a.lanes=n,o===ug?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Hv(e,o,n)),!1;case 22:return a.flags|=65536,o===ug?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Hv(e,o,n)),!1}throw Error(X(435,a.tag))}return Hv(e,o,n),Lg(),!1}if(ze)return t=Ea.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==pC&&(e=Error(X(422),{cause:o}),zd(an(e,a)))):(o!==pC&&(t=Error(X(423),{cause:o}),zd(an(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=an(o,a),n=TC(e.stateNode,o,n),Ov(e,n),Bt!==4&&(Bt=2)),!1;var r=Error(X(520),{cause:o});if(r=an(r,a),Od===null?Od=[r]:Od.push(r),Bt!==4&&(Bt=2),t===null)return!0;o=an(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=TC(a.stateNode,o,e),Ov(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Vi===null||!Vi.has(r))))return a.flags|=65536,n&=-n,a.lanes|=n,n=KD(n),ZD(n,e,a,o),Ov(a,n),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var _L=Error(X(461)),Kt=!1;function ta(e,t,a,o){t.child=e===null?cD(t,null,a,o):pl(t,e.child,a,o)}function SE(e,t,a,o,n){a=a.render;var r=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;return dl(t),o=EL(e,t,a,i,r,n),s=AL(),e!==null&&!Kt?(DL(e,t,n),Hr(e,t,n)):(ze&&s&&Ng(t),t.flags|=1,ta(e,t,o,n),t.child)}function bE(e,t,a,o,n){if(e===null){var r=a.type;return typeof r=="function"&&!SL(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,QD(e,t,r,o,n)):(e=Fh(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!UL(e,n)){var i=r.memoizedProps;if(a=a.compare,a=a!==null?a:Fd,a(i,o)&&e.ref===t.ref)return Hr(e,t,n)}return t.flags|=1,e=Br(r,o),e.ref=t.ref,e.return=t,t.child=e}function QD(e,t,a,o,n){if(e!==null){var r=e.memoizedProps;if(Fd(r,o)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=o=r,UL(e,n))(e.flags&131072)!==0&&(Kt=!0);else return t.lanes=e.lanes,Hr(e,t,n)}return wC(e,t,a,o,n)}function JD(e,t,a,o){var n=o.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(o=t.child=e.child,n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~r}else o=0,t.child=null;return vE(e,t,r,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zh(t,r!==null?r.cachePool:null),r!==null?uE(t,r):bC(),mD(t);else return o=t.lanes=536870912,vE(e,t,r!==null?r.baseLanes|a:a,a,o)}else r!==null?(zh(t,r.cachePool),uE(t,r),Bi(),t.memoizedState=null):(e!==null&&zh(t,null),bC(),Bi());return ta(e,t,n,a),t.child}function Dd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vE(e,t,a,o,n){var r=CL();return r=r===null?null:{parent:Wt._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&zh(t,null),bC(),mD(t),e!==null&&fl(e,t,o,!0),t.childLanes=n,null}function qh(e,t){return t=Ug({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function CE(e,t,a){return pl(t,e.child,null,a),e=qh(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function lq(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=qh(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Dd(null,e);if(vC(t),(e=St)?(e=JP(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},a=oD(e),a.return=t,t.child=a,da=t,St=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return qh(t,o)}var r=e.memoizedState;if(r!==null){var i=r.dehydrated;if(vC(t),n)if(t.flags&256)t.flags&=-257,t=CE(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(X(558));else if(Kt||fl(e,t,a,!1),n=(a&e.childLanes)!==0,Kt||n){if(qi.current===null){if(o=ht,o!==null&&(i=EA(o,a),i!==0&&i!==r.retryLane))throw r.retryLane=i,vl(e,i),go(o,e,i),_L;Lg()}t=CE(e,t,a)}else e=r.treeContext,St=nn(i.nextSibling),da=t,ze=!0,Mi=null,on=!1,e!==null&&rD(t,e),t=qh(t,o),t.flags|=134221824;return t}return e=Br(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(X(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function wC(e,t,a,o,n){return dl(t),a=EL(e,t,a,o,void 0,n),o=AL(),e!==null&&!Kt?(DL(e,t,n),Hr(e,t,n)):(ze&&o&&Ng(t),t.flags|=1,ta(e,t,a,n),t.child)}function LE(e,t,a,o,n,r){return dl(t),t.updateQueue=null,a=hD(t,o,a,n),pD(e),o=AL(),e!==null&&!Kt?(DL(e,t,r),Hr(e,t,r)):(ze&&o&&Ng(t),t.flags|=1,ta(e,t,a,r),t.child)}function RE(e,t,a,o,n){if(dl(t),t.stateNode===null){var r=$u,i=a.contextType;typeof i=="object"&&i!==null&&(r=Ra(i)),r=new a(o,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=IC,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=o,r.state=t.memoizedState,r.refs={},RL(t),i=a.contextType,r.context=typeof i=="object"&&i!==null?Ra(i):$u,r.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Nv(t,a,i,o),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(i=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),i!==r.state&&IC.enqueueReplaceState(r,r.state,null),Ed(t,o,r,n),wd(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){r=t.stateNode;var s=t.memoizedProps,l=gl(a,s);r.props=l;var u=r.context,c=a.contextType;i=$u,typeof c=="object"&&c!==null&&(i=Ra(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s||u!==i)&&xE(t,r,o,i),Li=!1;var f=t.memoizedState;r.state=f,Ed(t,o,r,n),wd(),u=t.memoizedState,s||f!==u||Li?(typeof d=="function"&&(Nv(t,a,d,o),u=t.memoizedState),(l=Li||gE(t,a,l,o,f,u,i))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),r.props=o,r.state=u,r.context=i,o=l):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{r=t.stateNode,yC(e,t),i=t.memoizedProps,c=gl(a,i),r.props=c,d=t.pendingProps,f=r.context,u=a.contextType,l=$u,typeof u=="object"&&u!==null&&(l=Ra(u)),s=a.getDerivedStateFromProps,(u=typeof s=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i!==d||f!==l)&&xE(t,r,o,l),Li=!1,f=t.memoizedState,r.state=f,Ed(t,o,r,n),wd();var m=t.memoizedState;i!==d||f!==m||Li||e!==null&&e.dependencies!==null&&lg(e.dependencies)?(typeof s=="function"&&(Nv(t,a,s,o),m=t.memoizedState),(c=Li||gE(t,a,c,o,f,m,l)||e!==null&&e.dependencies!==null&&lg(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(o,m,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(o,m,l)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),r.props=o,r.state=m,r.context=l,o=c):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return r=o,Hu(e,t),o=(t.flags&128)!==0,r||o?(r=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&o?(t.child=pl(t,e.child,null,n),t.child=pl(t,null,a,n)):ta(e,t,a,n),t.memoizedState=r.state,e=t.child):e=Hr(e,t,n),e}function IE(e,t,a,o){return cl(),t.flags|=256,ta(e,t,a,o),t.child}var EC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function AC(e){return{baseLanes:e,cachePool:sD()}}function DC(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ko),e}function $D(e,t,a){var o=t.pendingProps,n=!1,r=(t.flags&128)!==0,i;if((i=r)||(i=e!==null&&e.memoizedState===null?!1:(Ta.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(n?Ni(t):Bi(),(e=St)?(e=JP(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},a=oD(e),a.return=t,t.child=a,da=t,St=null)):e=null,e===null)throw Hi(t);return $L(e)?t.lanes=32:t.lanes=536870912,null}return r=o.children,o=o.fallback,n?(Bi(),n=t.mode,r=Ug({mode:"hidden",children:r},n),o=il(o,n,a,null),r.return=t,o.return=t,r.sibling=o,t.child=r,o=t.child,o.memoizedState=AC(a),o.childLanes=DC(e,i,a),t.memoizedState=EC,Dd(null,o)):(Ni(t),zL(t,r))}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return uq(e,t,r,i,o,l,s,a)}return n?(Bi(),n=o.fallback,r=t.mode,s=e.child,l=s.sibling,o=Br(s,{mode:"hidden",children:o.children}),o.subtreeFlags=s.subtreeFlags&1206910976,l!==null?n=Br(l,n):(n=il(n,r,a,null),n.flags|=2),n.return=t,o.return=t,o.sibling=n,t.child=o,Dd(null,o),o=t.child,n=e.child.memoizedState,n===null?n=AC(a):(r=n.cachePool,r!==null?(s=Wt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=sD(),n={baseLanes:n.baseLanes|a,cachePool:r}),o.memoizedState=n,o.childLanes=DC(e,i,a),t.memoizedState=EC,Dd(e.child,o)):(Ni(t),a=e.child,e=a.sibling,a=Br(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function zL(e,t){return t=Ug({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ug(e,t){return e=ho(22,e,null,t),e.lanes=0,e}function Rh(e,t,a){return pl(t,e.child,null,a),e=zL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uq(e,t,a,o,n,r,i,s){if(a)return t.flags&256?(Ni(t),t.flags&=-257,Rh(e,t,s)):t.memoizedState!==null?(Bi(),t.child=e.child,t.flags|=128,null):(Bi(),r=n.fallback,i=t.mode,n=Ug({mode:"visible",children:n.children},i),r=il(r,i,s,null),r.flags|=2,n.return=t,r.return=t,n.sibling=r,t.child=n,pl(t,e.child,null,s),n=t.child,n.memoizedState=AC(s),n.childLanes=DC(e,o,s),t.memoizedState=EC,Dd(null,n));if(Ni(t),$L(r)){if(o=r.nextSibling&&r.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(n=Error(X(419)),n.stack="",n.digest=o,zd({value:n,source:null,stack:null})),Rh(e,t,s)}if(Kt||fl(e,t,s,!1),o=(s&e.childLanes)!==0,Kt||o){if(qi.current!==null)return Rh(e,t,s);if(o=ht,o!==null&&(n=EA(o,s),n!==0&&n!==i.retryLane))throw i.retryLane=n,vl(e,n),go(o,e,n),_L;return tL(r)||Lg(),Rh(e,t,s)}return tL(r)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,St=nn(r.nextSibling),da=t,ze=!0,Mi=null,on=!1,e!==null&&rD(t,e),t=zL(t,n.children),t.flags|=134221824,t)}function TE(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),_h(e.return,t,a)}function wE(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&fg(a)===null&&(t=e),e=e.sibling}return t}function Ih(e,t,a,o,n,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=n,i.treeForkCount=r)}function Bv(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function PC(e,t,a){var o=t.pendingProps,n=o.revealOrder,r=o.tail;o=o.children;var i=Ta.current;if(t.flags&128)return Hd(t,i),null;var s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,Hd(t,i),n==="backwards"&&e!==null?(Bv(e),ta(e,t,o,a),Bv(e)):ta(e,t,o,a),o=ze?_d:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&TE(e,a,t);else if(e.tag===19)TE(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"backwards":a=wE(t.child),a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null,Bv(t)),Ih(t,!0,n,null,r,o);break;case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&fg(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Ih(t,!0,a,null,r,o);break;case"together":Ih(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=wE(t.child),a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Ih(t,!1,n,a,r,o)}return t.child}function EE(e,t,a){var o=t.pendingProps;return wi(t,t.type,o.value),ta(e,t,o.children,a),t.child}function Hr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ji|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,a=Br(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Br(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function UL(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lg(e)))}function cq(e,t,a){switch(t.tag){case 3:eg(t,t.stateNode.containerInfo),wi(t,Wt,e.memoizedState.cache),cl();break;case 27:case 5:nC(t);break;case 4:eg(t,t.stateNode.containerInfo);break;case 10:wi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vC(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Ni(t),t.flags|=128,null;o=fl(e,t,a,!1);var n=t.child.childLanes;return o||(a&n)!==0?$D(e,t,a):(Ni(t),e=Hr(e,t,a),e!==null?e.sibling:null)}Ni(t);break;case 19:if(t.flags&128)return PC(e,t,a);if(n=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(fl(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return PC(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Hd(t,Ta.current),o)break;return null;case 22:return t.lanes=0,JD(e,t,a,t.pendingProps);case 24:wi(t,Wt,e.memoizedState.cache)}return Hr(e,t,a)}function eP(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Kt=!0;else{if(!UL(e,a)&&(t.flags&128)===0)return Kt=!1,cq(e,t,a);Kt=(e.flags&131072)!==0}else Kt=!1,ze&&(t.flags&1048576)!==0&&nD(t,_d,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=tl(t.elementType),t.type=e,typeof e=="function")SL(e)?(o=gl(e,o),t.tag=1,t=RE(null,t,e,o,a)):(t.tag=0,t=wC(null,t,e,o,a));else{if(e!=null){var n=e.$$typeof;if(n===iL){t.tag=11,t=SE(null,t,e,o,a);break e}else if(n===sL){t.tag=14,t=bE(null,t,e,o,a);break e}else if(n===Jn){t.tag=10,t.type=e,t=EE(null,t,a);break e}}throw t=aC(e)||e,Error(X(306,t,""))}}return t;case 0:return wC(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=gl(o,t.pendingProps),RE(e,t,o,n,a);case 3:e:{if(eg(t,t.stateNode.containerInfo),e===null)throw Error(X(387));o=t.pendingProps;var r=t.memoizedState;n=r.element,yC(e,t),Ed(t,o,null,a);var i=t.memoizedState;if(o=i.cache,wi(t,Wt,o),o!==r.cache&&gC(t,[Wt],a,!0),wd(),o=i.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=IE(e,t,o,a);break e}else if(o!==n){n=an(Error(X(424)),t),zd(n),t=IE(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(St=nn(e.firstChild),da=t,ze=!0,Mi=null,on=!0,a=cD(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(cl(),o===n){t=Hr(e,t,a);break e}ta(e,t,o,a)}t=t.child}return t;case 26:return Hu(e,t),e===null?(a=tA(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(t.stateNode=qP(t.type,t.pendingProps,Pi.current,t)):t.memoizedState=tA(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nC(t),e===null&&ze&&(o=t.stateNode=$P(t.type,t.pendingProps,Pi.current),da=t,on=!0,n=St,Yi(t.type)?(aL=n,St=nn(o.firstChild)):St=n),ta(e,t,t.pendingProps.children,a),Hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((n=o=St)&&(o=a4(o,t.type,t.pendingProps,on),o!==null?(t.stateNode=o,da=t,St=nn(o.firstChild),on=!1,n=!0):n=!1),n||Hi(t)),nC(t),n=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,JC(n,r)?o=null:i!==null&&JC(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=EL(e,t,$3,null,null,a),Lc._currentValue=n),Hu(e,t),ta(e,t,o,a),t.child;case 6:return e===null&&ze&&((e=a=St)&&(a=o4(a,t.pendingProps,on),a!==null?(t.stateNode=a,da=t,St=null,e=!0):e=!1),e||Hi(t)),null;case 13:return $D(e,t,a);case 4:return eg(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=pl(t,null,o,a):ta(e,t,o,a),t.child;case 11:return SE(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,Hu(e,t),ta(e,t,o,a),t.child;case 8:return ta(e,t,t.pendingProps.children,a),t.child;case 12:return ta(e,t,t.pendingProps.children,a),t.child;case 10:return EE(e,t,a);case 9:return n=t.type._context,o=t.pendingProps.children,dl(t),n=Ra(n),o=o(n),t.flags|=1,ta(e,t,o,a),t.child;case 14:return bE(e,t,t.type,t.pendingProps,a);case 15:return QD(e,t,t.type,t.pendingProps,a);case 19:return PC(e,t,a);case 31:return lq(e,t,a);case 22:return JD(e,t,a,t.pendingProps);case 24:return dl(t),o=Ra(Wt),e===null?(n=CL(),n===null&&(n=ht,r=vL(),n.pooledCache=r,r.refCount++,r!==null&&(n.pooledCacheLanes|=a),n=r),t.memoizedState={parent:o,cache:n},RL(t),wi(t,Wt,n)):((e.lanes&a)!==0&&(yC(e,t),Ed(t,null,null,a),wd()),n=e.memoizedState,r=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),wi(t,Wt,o)):(o=r.cache,wi(t,Wt,o),o!==n.cache&&gC(t,[Wt],a,!0))),ta(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:ze&&Ng(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:Hu(e,t),ta(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(X(156,t.tag))}function Or(e){e.flags|=4}function Vv(e,t,a,o,n){var r;if((r=(e.mode&32)!==0)&&(r=a===null?nA(t,o):nA(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),r){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(AP())e.flags|=8192;else throw ll=ug,LL}else e.flags&=-16777217}function AE(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!o1(t))if(AP())e.flags|=8192;else throw ll=ug,LL}function Th(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?IA():536870912,e.lanes|=t,xc|=t)}function md(e,t){if(!ze)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&1206910976,o|=n.flags&1206910976,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function fq(e,t,a){var o=t.pendingProps;switch(bL(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return yt(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Vr(Wt),mc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zu(t)?Or(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mv())),yt(t),null;case 26:var n=t.type,r=t.memoizedState;return e===null?(Or(t),r!==null?(yt(t),AE(t,r)):(yt(t),Vv(t,n,null,o,a))):r?r!==e.memoizedState?(Or(t),yt(t),AE(t,r)):(yt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Or(t),yt(t),Vv(t,n,e,o,a)),null;case 27:if(tg(t),a=Pi.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Or(t);else{if(!o){if(t.stateNode===null)throw Error(X(166));return yt(t),t.subtreeFlags&=-33554433,null}e=ar.current,zu(t)?aE(t,e):(e=$P(n,o,a),t.stateNode=e,Or(t))}return yt(t),t.subtreeFlags&=-33554433,null;case 5:if(tg(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Or(t);else{if(!o){if(t.stateNode===null)throw Error(X(166));return yt(t),t.subtreeFlags&=-33554433,null}if(r=ar.current,zu(t))aE(t,r);else{var i=Xd(Pi.current);switch(r){case 1:r=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:r=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":r=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":r=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":r=i.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof o.is=="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?r.multiple=!0:o.size&&(r.size=o.size);break;default:r=typeof o.is=="string"?i.createElement(n,{is:o.is}):i.createElement(n)}}r[La]=t,r[yo]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)r.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=r;e:switch(wa(r,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Or(t)}}return yt(t),t.subtreeFlags&=-33554433,Vv(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Or(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(X(166));if(e=Pi.current,zu(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,n=da,n!==null)switch(n.tag){case 27:case 5:o=n.memoizedProps}e[La]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||UP(e.nodeValue,a)),e||Hi(t,!0)}else e=Xd(e).createTextNode(o),e[La]=t,t.stateNode=e}return yt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=zu(t),a!==null){if(e===null){if(!o)throw Error(X(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(557));e[La]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),e=!1}else a=Mv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if((t.flags&128)!==0)throw Error(X(558))}return yt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=zu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!n)throw Error(X(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(X(317));n[La]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),n=!1}else n=Mv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Th(t,t.updateQueue),yt(t),null);case 4:return mc(),e===null&&ZL(t.stateNode.containerInfo),t.flags|=67108864,yt(t),null;case 10:return Vr(t.type),yt(t),null;case 19:if(TL(t),o=t.memoizedState,o===null)return yt(t),null;if(n=(t.flags&128)!==0,r=o.rendering,r===null)if(n)md(o,!1);else{if(Bt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=fg(e),r!==null){for(t.flags|=128,md(o,!1),e=r.updateQueue,t.updateQueue=e,Th(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)aD(a,e),a=a.sibling;return Hd(t,Ta.current&1|2),ze&&kr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&No()>vg&&(t.flags|=128,n=!0,md(o,!1),t.lanes=4194304)}else{if(!n)if(e=fg(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Th(t,e),md(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!r.alternate&&!ze)return yt(t),null}else 2*No()-o.renderingStartTime>vg&&a!==536870912&&(t.flags|=128,n=!0,md(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=No(),e.sibling=null,r=Ta.current,r=n?r&1|2:r&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||ze?Hd(t,r):(a=r,bt(Ea,t),bt(Ta,a),Va===null&&(Va=t)),ze&&kr(t,o.treeForkCount),e}return yt(t),null;case 22:case 23:return Mo(t),IL(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),a=t.updateQueue,a!==null&&Th(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ia(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vr(Wt),yt(t),null;case 25:return null;case 30:return t.flags|=33554432,yt(t),null}throw Error(X(156,t.tag))}function dq(e,t){switch(bL(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(Wt),mc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tg(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(X(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return TL(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return mc(),null;case 10:return Vr(t.type),null;case 22:case 23:return Mo(t),IL(),e!==null&&Ia(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vr(Wt),null;case 25:return null;default:return null}}function tP(e,t){switch(bL(t),t.tag){case 3:Vr(Wt),mc();break;case 26:case 27:case 5:tg(t);break;case 4:mc();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:TL(t);break;case 10:Vr(t.type);break;case 22:case 23:Mo(t),IL(),e!==null&&Ia(sl);break;case 24:Vr(Wt)}}function rm(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e){o=void 0;var r=a.create,i=a.inst;o=r(),i.destroy=o}a=a.next}while(a!==n)}}catch(s){lt(t,t.return,s)}}function Gi(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var r=n.next;o=r;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var l=a,u=s;try{u()}catch(c){lt(n,l,c)}}}o=o.next}while(o!==r)}}catch(c){lt(t,t.return,c)}}function aP(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dD(t,a)}catch(o){lt(e,e.return,o)}}}function oP(e,t,a){a.props=gl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){lt(e,t,o)}}function Zn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var n=e.stateNode,r=_r(e.memoizedProps,n);(n.ref===null||n.ref.name!==r)&&(n.ref=YP(r)),o=n.ref;break;case 7:if(e.stateNode===null){var i=new zo(e);xo(e.child,!1,e4,i,void 0,void 0),e.stateNode=i}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(s){lt(e,t,s)}}function Ca(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(n){lt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){lt(e,t,n)}else a.current=null}function gg(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)QP(e.stateNode,t[a])}function DE(e){for(var t=e.return;t!==null&&(qL(t)&&QP(e.stateNode,t.stateNode),!HL(t));)t=t.return}function Pd(e){for(var t=e.return;t!==null&&(qL(t)&&t4(e.stateNode,t.stateNode),!HL(t));)t=t.return}function HL(e){return e.tag===5||e.tag===3||e.tag===27}function qL(e){return e&&e.tag===7&&e.stateNode!==null}function MC(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(n){lt(e,e.return,n)}}function Fv(e,t,a){try{var o=e.stateNode;Bq(o,e.type,a,t),o[yo]=t}catch(n){lt(e,e.return,n)}}function nP(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yi(e.type)||e.tag===4}function _v(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Yi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function OC(e,t,a,o){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(n),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$n)),gg(e,o),Qe=!0;else if(n!==4&&(n===27&&(gg(e,o),o=null,Yi(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(OC(e,t,a,o),e=e.sibling;e!==null;)OC(e,t,a,o),e=e.sibling}function xg(e,t,a,o){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?a.insertBefore(n,t):a.appendChild(n),gg(e,o),Qe=!0;else if(n!==4&&(n===27&&(gg(e,o),o=null,Yi(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(xg(e,t,a,o),e=e.sibling;e!==null;)xg(e,t,a,o),e=e.sibling}function rP(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);wa(t,o,a),t[La]=e,t[yo]=a}catch(r){lt(e,e.return,r)}}var yg=!1,Oo=null;function PE(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(yg=!0)}var Qn=null;function ME(){var e=Qn;return Qn=null,e}var po=0;function Ac(e,t,a,o,n){return po=0,iP(e.child,t,a,o,n)}function iP(e,t,a,o,n){for(var r=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(o!==null){var s=$C(i);o.push(s),s.view&&(r=!0)}else r||$C(i).view&&(r=!0);yg=!0,GP(i,po===0?t:t+"_"+po,a),po++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||iP(e.child,t,a,o,n)&&(r=!0));e=e.sibling}return r}function nr(e,t){for(;e!==null;)e.tag===5?jP(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||nr(e.child,t)),e=e.sibling}function Gh(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Gh(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(X(544));var a=t.name;t=jr(t.default,t.share),t!=="none"&&(Ac(e,a,t,null,!1)||nr(e.child,!1))}e=e.sibling}}function kC(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,n=_r(o,a),r=jr(o.default,a.paired?o.share:o.enter);r!=="none"?Ac(e,n,r,null,!1)?(Gh(e),a.paired||t||yc(e,o.onEnter)):nr(e.child,!1):Gh(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)kC(e,t),e=e.sibling;else Gh(e)}function NC(e){if(Oo!==null&&Oo.size!==0){var t=Oo;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var n=t.get(o);if(n!==void 0){var r=jr(a.default,a.share);if(r!=="none"&&(Ac(e,o,r,null,!1)?(r=e.stateNode,n.paired=r,r.paired=n,yc(e,a.onShare)):nr(e.child,!1)),t.delete(o),t.size===0)break}}}NC(e)}e=e.sibling}}}function BC(e){if(e.tag===30){var t=e.memoizedProps,a=_r(t,e.stateNode),o=Oo!==null?Oo.get(a):void 0,n=jr(t.default,o!==void 0?t.share:t.exit);n!=="none"&&(Ac(e,a,n,null,!1)?o!==void 0?(n=e.stateNode,o.paired=n,n.paired=o,Oo.delete(a),yc(e,t.onShare)):yc(e,t.onExit):nr(e.child,!1)),Oo!==null&&NC(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)BC(e),e=e.sibling;else Oo!==null&&NC(e)}function sP(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=_r(t,e.stateNode);t=jr(t.default,t.update),e.flags&=-5,t!=="none"&&Ac(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&sP(e);e=e.sibling}}function VC(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,nr(e.child,!1))}VC(e)}e=e.sibling}}function jh(e){if(e.tag===30)e.stateNode.paired=null,nr(e.child,!1),VC(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)jh(e),e=e.sibling;else VC(e)}function lP(e){for(e=e.child;e!==null;)e.tag===30?nr(e.child,!1):(e.subtreeFlags&33554432)!==0&&lP(e),e=e.sibling}function GL(e,t,a,o,n,r,i){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(r!==null&&po<r.length){var u=r[po],c=$C(l);(u.view||c.view)&&(s=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&GP(l,po===0?a:a+"_"+po,n),s&&(e.flags&4)!==0||(Qn===null&&(Qn=[]),Qn.push(l,po===0?o:o+"_"+po,t.memoizedProps)),po++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:GL(e,t.child,a,o,n,r,i)&&(s=!0));t=t.sibling}return s}function uP(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,n=_r(a,o),r=jr(a.default,a.update);if(t){o=o.clones;var i=o===null?null:o.map(Hq)}else i=e.memoizedState,e.memoizedState=null;o=e;var s=e.child;po=0,n=GL(o,s,n,n,r,i,!1),(e.flags&4)!==0&&n&&(t||yc(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&uP(e,t);e=e.sibling}}var ua=!1,ot=!1,Yn=!1,zv=!1,OE=typeof WeakSet=="function"?WeakSet:Set,ca=null,Wn=!1,vd=!1,Sg=!1,FC=!1;function mq(e,t,a){if(e=e.containerInfo,ZC=Rc,e=WA(e),gL(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var n=o.getSelection&&o.getSelection();if(n&&n.rangeCount!==0){o=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{o.nodeType,i.nodeType}catch{o=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==o||r!==0&&f.nodeType!==3||(l=s+r),f!==i||n!==0&&f.nodeType!==3||(u=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===o&&++c===r&&(l=s),m===i&&++d===n&&(u=s),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;for(QC={focusedElem:e,selectionRange:o},Rc=!1,a=(a&335544064)===a,ca=t,t=a?9270:1024;ca!==null;){if(e=ca,a&&(o=e.deletions,o!==null))for(r=0;r<o.length;r++)a&&BC(o[r]);if(e.alternate===null&&(e.flags&2)!==0)a&&PE(e),wh(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&BC(o),wh(a);continue}else if(o!==null&&o.memoizedState!==null){a&&PE(e),wh(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,ca=o):(a&&sP(e),wh(a))}}Oo=null}function wh(e){for(;ca!==null;){var t=ca,a=e,o=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&o!==null){a=void 0,n=o.memoizedProps,o=o.memoizedState;var r=t.stateNode;try{var i=gl(t.type,n);a=r.getSnapshotBeforeUpdate(i,o),r.__reactInternalSnapshotBeforeUpdate=a}catch(s){lt(t,t.return,s)}}break;case 3:if((n&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)eL(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":eL(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=_r(o.memoizedProps,o.stateNode),n=t.memoizedProps,n=jr(n.default,n.update),n!=="none"&&Ac(o,a,n,o.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(X(163))}if(o=t.sibling,o!==null){o.return=t.return,ca=o;break}ca=t.return}}function cP(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Kn(e,a),o&4&&rm(5,a);break;case 1:if(Kn(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){lt(a,a.return,i)}else{var n=gl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){lt(a,a.return,i)}}o&64&&aP(a),o&512&&Zn(a,a.return);break;case 3:if(Kn(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{dD(e,t)}catch(i){lt(a,a.return,i)}}break;case 27:t===null&&o&4&&rP(a);case 26:case 5:Kn(e,a),t===null&&o&4&&MC(a),o&512&&Zn(a,a.return);break;case 12:Kn(e,a);break;case 31:Kn(e,a),o&4&&pP(e,a);break;case 13:Kn(e,a),o&4&&hP(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Iq.bind(null,a),n4(e,a))));break;case 22:if(o=a.memoizedState!==null||ua,!o){var r=t!==null&&t.memoizedState!==null||ot;t=ua,n=ot,ua=o,(ot=r)&&!n?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),En(e,a,o)):Kn(e,a),ua=t,ot=n}break;case 30:Kn(e,a),o&512&&Zn(a,a.return);break;case 7:o&512&&Zn(a,a.return);default:Kn(e,a)}}function _C(e,t){for(e=e.child;e!==null;)fP(e,t),e=e.sibling}function fP(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}else{var n=e.stateNode,r=e.memoizedProps.style,i=r!=null&&r.hasOwnProperty("display")?r.display:null;n.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(l){lt(e,e.return,l)}zC(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Qe=!0}catch(l){lt(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?KE(s,!0):KE(e.stateNode,!1)}catch(l){lt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&_C(e,t);break;default:_C(e,t)}}function zC(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:fP(a,o);break e;case 22:a.memoizedState===null&&zC(a,o);break e;default:zC(a,o)}}e=e.sibling}}function dP(e){var t=e.alternate;t!==null&&(e.alternate=null,dP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ag(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Tt=null,fo=!1;function wn(e,t,a){for(a=a.child;a!==null;)mP(e,t,a),a=a.sibling}function mP(e,t,a){if(Bo&&typeof Bo.onCommitFiberUnmount=="function")try{Bo.onCommitFiberUnmount(Jd,a)}catch{}switch(a.tag){case 26:ot||Ca(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!ot&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ot||Ca(a,t),Pd(a);var o=Tt,n=fo;Yi(a.type)&&(Tt=a.stateNode,fo=!1),wn(e,t,a),e1(a.stateNode,a.type,a.memoizedProps),Tt=o,fo=n;break;case 5:ot||Ca(a,t),Pd(a);case 6:if(a.tag===6&&Pd(a),o=Tt,n=fo,Tt=null,wn(e,t,a),Tt=o,fo=n,Tt!==null)if(fo)try{(Tt.nodeType===9?Tt.body:Tt.nodeName==="HTML"?Tt.ownerDocument.body:Tt).removeChild(a.stateNode),Qe=!0}catch(r){lt(a,t,r)}else try{Tt.removeChild(a.stateNode),Qe=!0}catch(r){lt(a,t,r)}break;case 18:Tt!==null&&(fo?(e=Tt,WE(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ic(e)):WE(Tt,a.stateNode));break;case 4:o=Tt,n=fo,Tt=a.stateNode.containerInfo,fo=!0,wn(e,t,a),Tt=o,fo=n;break;case 0:case 11:case 14:case 15:Gi(2,a,t),ot||Gi(4,a,t),wn(e,t,a);break;case 1:ot||(Ca(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&oP(a,t,o)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:ot=(o=ot)||a.memoizedState!==null,wn(e,t,a),ot=o;break;case 30:Ca(a,t),wn(e,t,a);break;case 7:ot||Ca(a,t),wn(e,t,a);break;default:wn(e,t,a)}}function pP(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ic(e)}catch(a){lt(t,t.return,a)}}}function hP(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ic(e)}catch(a){lt(t,t.return,a)}}function pq(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new OE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new OE),t;default:throw Error(X(435,e.tag))}}function Eh(e,t){var a=pq(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var n=Tq.bind(null,e,o);o.then(n,n)}})}function Za(e,t,a){var o=t.deletions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n],i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Yi(l.type)){Tt=l.stateNode,fo=!1;break e}break;case 5:Tt=l.stateNode,fo=!1;break e;case 3:case 4:Tt=l.stateNode.containerInfo,fo=!0;break e}l=l.return}if(Tt===null)throw Error(X(160));mP(i,s,r),Tt=null,fo=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gP(t,e,a),t=t.sibling}var An=null;function gP(e,t,a){var o=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(n&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var r=0;r<o.length;r++){var i=o[r];i.ref.impl=i.nextImpl}Za(t,e,a),Qa(e),n&4&&(Gi(3,e,e.return),rm(3,e),Gi(5,e,e.return));break;case 1:Za(t,e,a),Qa(e),n&512&&(ot||o===null||Ca(o,o.return)),n&64&&ua&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(r=An,Za(t,e,a),Qa(e),n&512&&(ot||o===null||Ca(o,o.return)),n&4)if(n=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(ua)e.stateNode=qP(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,n=r.ownerDocument||r;t:switch(t){case"title":o=n.getElementsByTagName("title")[0],(!o||o[tm]||o[La]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=n.createElement(t),n.head.insertBefore(o,n.querySelector("head > title"))),wa(o,t,a),o[La]=e,fa(o),t=o;break e;case"link":if(r=oA("link","href",n).get(t+(a.href||""))){for(i=0;i<r.length;i++)if(o=r[i],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(i,1);break t}}o=n.createElement(t),wa(o,t,a),n.head.appendChild(o);break;case"meta":if(r=oA("meta","content",n).get(t+(a.content||""))){for(i=0;i<r.length;i++)if(o=r[i],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(i,1);break t}}o=n.createElement(t),wa(o,t,a),n.head.appendChild(o);break;default:throw Error(X(468,t))}o[La]=e,fa(o),t=o}e.stateNode=t}else ua||oL(r,e.type,e.stateNode);else e.stateNode=aA(r,a,e.memoizedProps);else n!==a?(n===null?(t=o.stateNode,t===null||ot||t.parentNode.removeChild(t)):n.count--,a===null?ua||oL(r,e.type,e.stateNode):aA(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Fv(e,e.memoizedProps,o.memoizedProps);break;case 27:Za(t,e,a),Qa(e),n&512&&(ot||o===null||Ca(o,o.return)),o!==null&&n&4&&Fv(e,e.memoizedProps,o.memoizedProps);break;case 5:if(r=Yn,Yn=!1,Za(t,e,a),Yn=r,Qa(e),n&512&&(ot||o===null||Ca(o,o.return)),e.flags&32){t=e.stateNode;try{hc(t,""),Qe=!0}catch(c){lt(e,e.return,c)}}n&4&&e.stateNode!=null&&(t=e.memoizedProps,Fv(e,t,o!==null?o.memoizedProps:t)),n&1024&&(zv=!0);break;case 6:if(Za(t,e,a),Qa(e),n&4){if(e.stateNode===null)throw Error(X(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,Qe=!0}catch(c){lt(e,e.return,c)}}break;case 3:if(Qe=!1,Kh=null,r=An,An=Yd(t.containerInfo),Za(t,e,a),An=r,Qa(e),n&4&&o!==null&&o.memoizedState.isDehydrated)try{Ic(t.containerInfo)}catch(c){lt(e,e.return,c)}zv&&(zv=!1,xP(e)),Qe=!1;break;case 4:n=Yn,Yn=ua,o=_w(),r=An,An=Yd(e.stateNode.containerInfo),Za(t,e,a),Qa(e),An=r,Qe&&vd&&(Sg=!0),Qe=o,Yn=n;break;case 12:Za(t,e,a),Qa(e);break;case 31:Za(t,e,a),Qa(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eh(e,t)));break;case 13:Za(t,e,a),Qa(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Hg=No()),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eh(e,t)));break;case 22:r=e.memoizedState!==null,i=o!==null&&o.memoizedState!==null;var s=ua,l=ot,u=Yn;ua=s||r,Yn=u||r,ot=l||i,Za(t,e,a),ot=l,Yn=u,ua=s,Qa(e),n&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||o===null||i||ua||ot||(t=i||ot,a=ua,o=ot,ua=r||ua,ot=t,vi(e,2),ua=a,ot=o),!r&&Yn||_C(e,r)),n&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Eh(e,a))));break;case 19:Za(t,e,a),Qa(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eh(e,t)));break;case 30:n&512&&(ot||o===null||Ca(o,o.return)),n=_w(),r=vd,i=(a&335544064)===a,s=e.memoizedProps,vd=i&&jr(s.default,s.update)!=="none",Za(t,e,a),Qa(e),i&&o!==null&&Qe&&(e.flags|=4),vd=r,Qe=n;break;case 21:break;case 7:n&512&&(ot||o===null||Ca(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:Za(t,e,a),Qa(e)}}function Qa(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(nP(o)){a=o;break}o=o.return}o=null;for(var n=e.return;n!==null;){if(qL(n)){var r=n.stateNode;o===null?o=[r]:o.push(r)}if(HL(n))break;n=n.return}var i=o;if(a==null)throw Error(X(160));switch(a.tag){case 27:var s=a.stateNode,l=_v(e);xg(e,l,s,i);break;case 5:var u=a.stateNode;a.flags&32&&(hc(u,""),a.flags&=-33);var c=_v(e);xg(e,c,u,i);break;case 3:case 4:var d=a.stateNode.containerInfo,f=_v(e);OC(e,f,d,i);break;default:throw Error(X(161))}}catch(m){lt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xP(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xP(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Rc=!0,t.reset(),Rc=!1),e=e.sibling}}function Uu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)yP(t,e),t=t.sibling;else uP(t,!1)}function yP(e,t){var a=e.alternate;if(a===null)kC(e,!1);else switch(e.tag){case 3:if(FC=Wn=!1,ME(),Uu(t,e),!Wn&&!Sg){if(e=Qn,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var n=e[o+1];jP(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),FC=!0}Qn=null;break;case 5:Uu(t,e);break;case 4:o=Wn,Wn=!1,Uu(t,e),Wn&&(Sg=!0),Wn=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?kC(e,!1):Uu(t,e));break;case 30:o=Wn,n=ME(),Wn=!1,Uu(t,e),Wn&&(e.flags|=4);var r=e.memoizedProps,i=e.stateNode;t=_r(r,i),i=_r(a.memoizedProps,i);var s=jr(r.default,r.update);s==="none"?t=!1:(r=a.memoizedState,a.memoizedState=null,a=e.child,po=0,t=GL(e,a,t,i,s,r,!0),po!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(yc(e,e.memoizedProps.onUpdate),Qn=n):n!==null&&(n.push.apply(n,Qn),Qn=n),Wn=(e.flags&32)!==0?!0:o;break;default:Uu(t,e)}}function Kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cP(e,t.alternate,t),t=t.sibling}function vi(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:Gi(4,a,a.return),vi(a,o);break;case 1:Ca(a,a.return);var n=a.stateNode;typeof n.componentWillUnmount=="function"&&oP(a,a.return,n),vi(a,o);break;case 27:(o&2)!==0&&e1(a.stateNode,a.type,a.memoizedProps);case 5:Ca(a,a.return),a.tag!==5&&a.tag!==27||Pd(a),vi(a,o);break;case 6:Pd(a);break;case 26:Ca(a,a.return),n=a.stateNode,a.memoizedState!==null||n===null||ot||n.parentNode.removeChild(n),vi(a,o);break;case 22:a.memoizedState===null&&vi(a,o);break;case 30:Ca(a,a.return),vi(a,o);break;case 7:Ca(a,a.return);default:vi(a,o)}e=e.sibling}}function En(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var o=t.alternate,n=e,r=t,i=r.flags,s=(a&1)!==0;switch(r.tag){case 0:case 11:case 15:En(n,r,a),rm(4,r);break;case 1:if(En(n,r,a),o=r,n=o.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(c){lt(o,o.return,c)}if(o=r,n=o.updateQueue,n!==null){var l=o.stateNode;try{var u=n.shared.hiddenCallbacks;if(u!==null)for(n.shared.hiddenCallbacks=null,n=0;n<u.length;n++)fD(u[n],l)}catch(c){lt(o,o.return,c)}}s&&i&64&&aP(r),Zn(r,r.return);break;case 27:(a&2)!==0&&rP(r);case 5:r.tag!==5&&r.tag!==27||DE(r),En(n,r,a),s&&o===null&&i&4&&MC(r),Zn(r,r.return);break;case 6:DE(r);break;case 26:l=r.stateNode,r.memoizedState!==null||l===null||ua||oL(Yd(l.ownerDocument),r.type,l),En(n,r,a),s&&o===null&&i&4&&MC(r),Zn(r,r.return);break;case 12:En(n,r,a);break;case 31:En(n,r,a),s&&i&4&&pP(n,r);break;case 13:En(n,r,a),s&&i&4&&hP(n,r);break;case 22:r.memoizedState===null&&En(n,r,a),Zn(r,r.return);break;case 30:En(n,r,a),Zn(r,r.return);break;case 7:Zn(r,r.return);default:En(n,r,a)}t=t.sibling}}function jL(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&om(a))}function XL(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&om(e))}function Qo(e,t,a,o){var n=(a&335544064)===a;if(t.subtreeFlags&(n?10262:10256))for(t=t.child;t!==null;)SP(e,t,a,o),t=t.sibling;else n&&lP(t)}function SP(e,t,a,o){var n=(a&335544064)===a;n&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&jh(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:Qo(e,t,a,o),r&2048&&rm(9,t);break;case 1:Qo(e,t,a,o);break;case 3:Qo(e,t,a,o),n&&FC&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&om(r)));break;case 12:if(r&2048){Qo(e,t,a,o),r=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;typeof l=="function"&&l(s,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(u){lt(t,t.return,u)}}else Qo(e,t,a,o);break;case 31:Qo(e,t,a,o);break;case 13:Qo(e,t,a,o);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?(n&&s!==null&&s.memoizedState===null&&jh(s),i._visibility&2?Qo(e,t,a,o):Md(e,t)):(n&&s!==null&&s.memoizedState!==null&&jh(t),i._visibility&2?Qo(e,t,a,o):(i._visibility|=2,qu(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),r&2048&&jL(s,t);break;case 24:Qo(e,t,a,o),r&2048&&XL(t.alternate,t);break;case 30:n&&(r=t.alternate,r!==null&&(nr(r.child,!0),nr(t.child,!0))),Qo(e,t,a,o);break;default:Qo(e,t,a,o)}}function qu(e,t,a,o,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,i=t,s=a,l=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:qu(r,i,s,l,n),rm(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?qu(r,i,s,l,n):Md(r,i):(c._visibility|=2,qu(r,i,s,l,n)),n&&u&2048&&jL(i.alternate,i);break;case 24:qu(r,i,s,l,n),n&&u&2048&&XL(i.alternate,i);break;default:qu(r,i,s,l,n)}t=t.sibling}}function Md(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,n=o.flags;switch(o.tag){case 22:Md(a,o),n&2048&&jL(o.alternate,o);break;case 24:Md(a,o),n&2048&&XL(o.alternate,o);break;default:Md(a,o)}t=t.sibling}}var al=8192;function $s(e,t,a){if(e.subtreeFlags&al)for(e=e.child;e!==null;)bP(e,t,a),e=e.sibling}function bP(e,t,a){switch(e.tag){case 26:$s(e,t,a),e.flags&al&&(e.memoizedState!==null?y4(a,An,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&rA(a,e)));break;case 5:$s(e,t,a),e.flags&al&&(e=e.stateNode,(t&335544128)===t&&rA(a,e));break;case 3:case 4:var o=An;An=Yd(e.stateNode.containerInfo),$s(e,t,a),An=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=al,al=16777216,$s(e,t,a),al=o):$s(e,t,a));break;case 30:if((e.flags&al)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var n=e.stateNode;n.paired=null,Oo===null&&(Oo=new Map),Oo.set(o,n)}$s(e,t,a);break;default:$s(e,t,a)}}function vP(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];ca=o,LP(o,e)}vP(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)CP(e),e=e.sibling}function CP(e){switch(e.tag){case 0:case 11:case 15:pd(e),e.flags&2048&&Gi(9,e,e.return);break;case 3:pd(e);break;case 12:pd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xh(e)):pd(e);break;default:pd(e)}}function Xh(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];ca=o,LP(o,e)}vP(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gi(8,t,t.return),Xh(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Xh(t));break;default:Xh(t)}e=e.sibling}}function LP(e,t){for(;ca!==null;){var a=ca;switch(a.tag){case 0:case 11:case 15:Gi(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:om(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,ca=o;else e:for(a=e;ca!==null;){o=ca;var n=o.sibling,r=o.return;if(dP(o),o===a){ca=null;break e}if(n!==null){n.return=r,ca=n;break e}ca=r}}}var hq={getCacheForType:function(e){var t=Ra(Wt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ra(Wt).controller.signal}},gq=typeof WeakMap=="function"?WeakMap:Map,$e=0,ht=null,je=null,Xe=0,it=0,Do=null,Ei=!1,Dc=!1,YL=!1,qr=0,Bt=0,ji=0,ul=0,bg=0,ko=0,xc=0,Od=null,mo=null,UC=!1,Hg=0,RP=0,vg=1/0,Cg=null,Vi=null,Pt=0,Pn=null,xl=null,or=0,HC=0,qC=null,IP=null,cc=null,fc=null,dc=null,kd=0,Yh=null;function Fo(){return($e&2)!==0&&Xe!==0?Xe&-Xe:Te.T!==null?KL():AA()}function TP(){if(ko===0)if((Xe&536870912)===0||ze){var e=hh;hh<<=1,(hh&3932160)===0&&(hh=262144),ko=e}else ko=536870912;return e=Ea.current,e!==null&&(e.flags|=32),ko}function yc(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=YP(_r(e.memoizedProps,a))),fc===null&&(fc=[]),fc.push(t.bind(null,o))}}function go(e,t,a){(e===ht&&(it===2||it===9)||e.cancelPendingCommit!==null)&&(Sc(e,0),Ai(e,Xe,ko,!1)),em(e,a),(($e&2)===0||e!==ht)&&(e===ht&&(($e&2)===0&&(ul|=a),Bt===4&&Ai(e,Xe,ko,!1)),ir(e))}function wP(e,t,a){if(($e&6)!==0)throw Error(X(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||$d(e,t),n=o?Sq(e,t):Uv(e,t,!0),r=o;do{if(n===0){Dc&&!o&&Ai(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!xq(a)){n=Uv(e,t,!1),r=!1;continue}if(n===2){if(r=t,e.errorRecoveryDisabledLanes&r)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;n=Od;var l=s.current.memoizedState.isDehydrated;if(l&&(Sc(s,i).flags|=256),i=Uv(s,i,!1),i!==2&&i!==6){if(YL&&!l){s.errorRecoveryDisabledLanes|=r,ul|=r,n=4;break e}r=mo,mo=n,r!==null&&(mo===null?mo=r:mo.push.apply(mo,r))}n=i}if(r=!1,n!==2)continue}}if(n===1){Sc(e,0),Ai(e,t,0,!0);break}e:{switch(o=e,r=n,r){case 0:case 1:throw Error(X(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ai(o,t,ko,!Ei);break e;case 2:mo=null;break;case 3:case 5:break;default:throw Error(X(329))}if((t&62914560)===t&&(n=Hg+300-No(),10<n)){if(Ai(o,t,ko,!Ei),Eg(o,0,!0)!==0)break e;or=t,o.timeoutHandle=QL(kE.bind(null,o,a,mo,Cg,UC,t,ko,ul,xc,Ei,r,"Throttled",-0,0),n);break e}kE(o,a,mo,Cg,UC,t,ko,ul,xc,Ei,r,null,-0,0)}}break}while(!0);ir(e)}function kE(e,t,a,o,n,r,i,s,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,y=(r&335544064)===r;if(d=null,(y||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},Oo=null,bP(t,r,d),y&&(p=d,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(p.count++,p.waitingForViewTransition=!0,p=Wd.bind(p),y.finished.then(p,p))),p=(r&62914560)===r?Hg-No():(r&4194048)===r?RP-No():0,p=S4(d,p),p!==null)){or=r,e.cancelPendingCommit=p(BE.bind(null,e,t,r,a,o,n,i,s,l,u,c,d,null,f,m)),Ai(e,r,i,!u);return}BE(e,t,r,a,o,n,i,s,l,u,c,d)}function xq(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var n=a[o],r=n.getSnapshot;n=n.value;try{if(!_o(r(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ai(e,t,a,o){t=RA(e,t),t&=~bg,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var r=31-Vo(n),i=1<<r;o[r]=-1,n&=~i}a!==0&&TA(e,a,t)}function qg(){return($e&6)===0?(im(0,!1),!1):!0}function WL(){if(je!==null){if(it===0)var e=je.return;else e=je,Nr=Cl=null,PL(e),sc=null,Ud=0,e=je;for(;e!==null;)tP(e.alternate,e),e=e.return;je=null}}function Sc(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,_q(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),or=0,WL(),ht=e,je=a=Br(e.current,null),Xe=t,it=0,Do=null,Ei=!1,Dc=$d(e,t),YL=!1,xc=ko=bg=ul=ji=Bt=0,mo=Od=null,UC=!1,qr=RA(e,t),Og(),a}function EP(e,t){Oe=null,Te.H=pg,t===Ec||t===Bg?(t=sE(),it=3):t===LL?(t=sE(),it=4):it=t===_L?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Do=t,je===null&&(Bt=1,hg(e,an(t,e.current)))}function AP(){var e=Ea.current;return e===null?!0:(Xe&4194048)===Xe?Va===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?e===Va:!1}function DP(){var e=Te.H;return Te.H=pg,e===null?pg:e}function PP(){var e=Te.A;return Te.A=hq,e}function Lg(){Bt=4,Ei||(Xe&4194048)!==Xe&&Ea.current!==null||(Dc=!0),(ji&134217727)===0&&(ul&134217727)===0||ht===null||Ai(ht,Xe,ko,!1)}function Uv(e,t,a){var o=$e;$e|=2;var n=DP(),r=PP();(ht!==e||Xe!==t)&&(Cg=null,Sc(e,t)),t=!1;var i=Bt;e:do try{if(it!==0&&je!==null){var s=je,l=Do;switch(it){case 8:WL(),i=6;break e;case 3:case 2:case 9:case 6:Ea.current===null&&(t=!0);var u=it;if(it=0,Do=null,ac(e,s,l,u),a&&Dc){i=0;break e}break;default:u=it,it=0,Do=null,ac(e,s,l,u)}}yq(),i=Bt;break}catch(c){EP(e,c)}while(!0);return t&&e.shellSuspendCounter++,Nr=Cl=null,$e=o,Te.H=n,Te.A=r,je===null&&(ht=null,Xe=0,Og()),i}function yq(){for(;je!==null;)MP(je)}function Sq(e,t){var a=$e;$e|=2;var o=DP(),n=PP();ht!==e||Xe!==t?(Cg=null,vg=No()+500,Sc(e,t)):Dc=$d(e,t);e:do try{if(it!==0&&je!==null){t=je;var r=Do;t:switch(it){case 1:it=0,Do=null,ac(e,t,r,1);break;case 2:case 9:if(iE(r)){it=0,Do=null,NE(t);break}t=function(){it!==2&&it!==9||ht!==e||(it=7),ir(e)},r.then(t,t);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:iE(r)?(it=0,Do=null,NE(t)):(it=0,Do=null,ac(e,t,r,7));break;case 5:var i=null;switch(je.tag){case 26:i=je.memoizedState;case 5:case 27:var s=je;if(i?o1(i):s.stateNode.complete){it=0,Do=null;var l=s.sibling;if(l!==null)je=l;else{var u=s.return;u!==null?(je=u,Gg(u)):je=null}break t}}it=0,Do=null,ac(e,t,r,5);break;case 6:it=0,Do=null,ac(e,t,r,6);break;case 8:WL(),Bt=6;break e;default:throw Error(X(462))}}bq();break}catch(c){EP(e,c)}while(!0);return Nr=Cl=null,Te.H=o,Te.A=n,$e=a,je!==null?0:(ht=null,Xe=0,Og(),Bt)}function bq(){for(;je!==null&&!VH();)MP(je)}function MP(e){var t=eP(e.alternate,e,qr);e.memoizedProps=e.pendingProps,t===null?Gg(e):je=t}function NE(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=LE(a,t,t.pendingProps,t.type,void 0,Xe);break;case 11:t=LE(a,t,t.pendingProps,t.type.render,t.ref,Xe);break;case 5:PL(t);var o=t;o===da&&(ze?(sg(o),o.tag===5&&o.stateNode!=null&&(St=o.stateNode)):(sg(o),ze=!0));default:tP(a,t),t=je=aD(t,qr),t=eP(a,t,qr)}e.memoizedProps=e.pendingProps,t===null?Gg(e):je=t}function ac(e,t,a,o){Nr=Cl=null,PL(t),sc=null,Ud=0;var n=t.return;try{if(sq(e,n,t,a,Xe)){Bt=1,hg(e,an(a,e.current)),je=null;return}}catch(r){if(n!==null)throw je=n,r;Bt=1,hg(e,an(a,e.current)),je=null;return}t.flags&32768?(ze||o===1?e=!0:Dc||(Xe&536870912)!==0?e=!1:(Ei=e=!0,(o===2||o===9||o===3||o===6)&&(o=Ea.current,o!==null&&o.tag===13&&(o.flags|=16384))),OP(t,e)):Gg(t)}function Gg(e){var t=e;do{if((t.flags&32768)!==0){OP(t,Ei);return}e=t.return;var a=fq(t.alternate,t,qr);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Bt===0&&(Bt=5)}function OP(e,t){do{var a=dq(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);Bt=6,je=null}function BE(e,t,a,o,n,r,i,s,l,u,c,d){e.cancelPendingCommit=null;do jg();while(Pt!==0);if(($e&6)!==0)throw Error(X(327));if(t!==null){if(t===e.current)throw Error(X(177));e===ht&&(je=ht=null,Xe=0),xl=t,Pn=e,or=a,qC=n,IP=o,vq(e,t,a,i,s,l,d)}}function vq(e,t,a,o,n,r,i){var s=t.lanes|t.childLanes;if(HC=s,s|=xL,YH(e,a,s,o,n,r),fc=null,(a&335544064)===a?(dc=K3(e),o=10262):(dc=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,wq(ag,function(){return YC(),null})):(e.callbackNode=null,e.callbackPriority=0),yg=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Te.T,Te.T=null,n=et.p,et.p=2,r=$e,$e|=4;try{mq(e,t,a)}finally{$e=r,et.p=n,Te.T=o}}Pt=1,yg?cc=jq(i,e.containerInfo,dc,GC,jC,Lq,XC,YC,Cq,null,null):(GC(),jC(),XC())}function Cq(e){if(Pt!==0){var t=Pn.onRecoverableError;t(e,{componentStack:null})}}function Lq(){Pt===3&&(Pt=0,yP(xl,Pn),Pt=4)}function GC(){if(Pt===1){Pt=0;var e=Pn,t=xl,a=or,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=Te.T,Te.T=null;var n=et.p;et.p=2;var r=$e;$e|=4;try{vd=Sg=!1,gP(t,e,a),a=QC;var i=WA(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&YA(s.ownerDocument.documentElement,s)){if(l!==null&&gL(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=s.textContent.length,y=Math.min(l.start,p),b=l.end===void 0?y:Math.min(l.end,p);!m.extend&&y>b&&(i=b,b=y,y=i);var g=Jw(s,y),h=Jw(s,b);if(g&&h&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var x=d.createRange();x.setStart(g.node,g.offset),m.removeAllRanges(),y>b?(m.addRange(x),m.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),m.addRange(x))}}}}for(d=[],m=s;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var S=d[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Rc=!!ZC,QC=ZC=null}finally{$e=r,et.p=n,Te.T=o}}e.current=t,Pt=2}}function jC(){if(Pt===2){Pt=0;var e=Pn,t=xl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Te.T,Te.T=null;var o=et.p;et.p=2;var n=$e;$e|=4;try{cP(e,t.alternate,t)}finally{$e=n,et.p=o,Te.T=a}}Pt=3}}function XC(){if(Pt===4||Pt===3){Pt=0;var e=cc;cc=null,FH();var t=Pn,a=xl,o=or,n=IP,r=(o&335544064)===o?10262:10256;if((a.subtreeFlags&r)!==0||(a.flags&r)!==0?Pt=5:(Pt=0,xl=Pn=null,kP(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(Vi=null),cL(o),a=a.stateNode,Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(Jd,a,void 0,(a.current.flags&128)===128)}catch{}if(n!==null){a=Te.T,r=et.p,et.p=2,Te.T=null;try{for(var i=t.onRecoverableError,s=0;s<n.length;s++){var l=n[s];i(l.value,{componentStack:l.stack})}}finally{Te.T=a,et.p=r}}if(n=fc,i=dc,dc=null,n!==null&&(fc=null,i===null&&(i=[]),e!==null))for(l=0;l<n.length;l++)a=(0,n[l])(i),a!==void 0&&e.finished.finally(a);(or&3)!==0&&jg(),ir(t),r=t.pendingLanes,(o&261930)!==0&&(r&42)!==0?t===Yh?kd++:(kd=0,Yh=t):(kd=0,Yh=null),im(0,!1)}}function kP(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,om(t)))}function jg(){return cc!==null&&(cc.skipTransition(),cc=null),GC(),jC(),XC(),YC()}function YC(){if(Pt!==5)return!1;var e=Pn,t=HC;HC=0;var a=cL(or),o=Te.T,n=et.p;try{et.p=32>a?32:a,Te.T=null,a=qC,qC=null;var r=Pn,i=or;if(Pt=0,xl=Pn=null,or=0,($e&6)!==0)throw Error(X(331));var s=$e;if($e|=4,CP(r.current),SP(r,r.current,i,a),$e=s,im(0,!1),Bo&&typeof Bo.onPostCommitFiberRoot=="function")try{Bo.onPostCommitFiberRoot(Jd,r)}catch{}return!0}finally{et.p=n,Te.T=o,kP(e,t)}}function VE(e,t,a){t=an(a,t),t=TC(e.stateNode,t,2),e=ki(e,t,2),e!==null&&(em(e,2),ir(e))}function lt(e,t,a){if(e.tag===3)VE(e,e,a);else for(;t!==null;){if(t.tag===3){VE(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Vi===null||!Vi.has(o))){e=an(a,e),a=KD(2),o=ki(t,a,2),o!==null&&(ZD(a,o,t,e),em(o,2),ir(o));break}}t=t.return}}function Hv(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new gq;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(YL=!0,n.add(a),e=Rq.bind(null,e,t,a),t.then(e,e))}function Rq(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ht===e&&(Xe&a)===a&&((Bt===4||Bt===3&&(Xe&62914560)===Xe&&300>No()-Hg)&&($e&2)===0?Sc(e,0):bg|=a,xc===Xe&&(xc=0)),ir(e)}function NP(e,t){t===0&&(t=IA()),e=vl(e,t),e!==null&&(em(e,t),ir(e))}function Iq(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),NP(e,a)}function Tq(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(X(314))}o!==null&&o.delete(t),NP(e,a)}function wq(e,t){return lL(e,t)}var bc=null,Gu=null,WC=!1,Rg=!1,qv=!1,Di=0;function ir(e){e!==Gu&&e.next===null&&(Gu===null?bc=Gu=e:Gu=Gu.next=e),Rg=!0,WC||(WC=!0,Aq())}function im(e,t){if(!qv&&Rg){qv=!0;do for(var a=!1,o=bc;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var r=0;else{var i=o.suspendedLanes,s=o.pingedLanes;r=(1<<31-Vo(42|e)+1)-1,r&=n&~(i&~s),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,FE(o,r))}else r=Xe,r=Eg(o,o===ht?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(r&3)===0||$d(o,r)||(a=!0,FE(o,r));o=o.next}while(a);qv=!1}}function Eq(){BP()}function BP(){Rg=WC=!1;var e=0;Di!==0&&Fq()&&(e=Di);for(var t=No(),a=null,o=bc;o!==null;){var n=o.next,r=VP(o,t);r===0?(o.next=null,a===null?bc=n:a.next=n,n===null&&(Gu=a)):(a=o,(e!==0||(r&3)!==0)&&(Rg=!0)),o=n}Pt!==0&&Pt!==5||im(e,!1),Di!==0&&(Di=0)}function VP(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var i=31-Vo(r),s=1<<i,l=n[i];l===-1?((s&a)===0||(s&o)!==0)&&(n[i]=XH(s,t)):l<=t&&(e.expiredLanes|=s),r&=~s}if(t=ht,a=Xe,a=Eg(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(it===2||it===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&vv(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||$d(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&vv(o),cL(a)){case 2:case 8:a=CA;break;case 32:a=ag;break;case 268435456:a=LA;break;default:a=ag}return o=FP.bind(null,e),a=lL(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&vv(o),e.callbackPriority=2,e.callbackNode=null,2}function FP(e,t){if(Pt!==0&&Pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(jg()&&e.callbackNode!==a)return null;var o=Xe;return o=Eg(e,e===ht?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(wP(e,o,t),VP(e,No()),e.callbackNode!=null&&e.callbackNode===a?FP.bind(null,e):null)}function FE(e,t){if(jg())return null;wP(e,t,!0)}function Aq(){zq(function(){($e&6)!==0?lL(vA,Eq):BP()})}function KL(){if(Di===0){var e=ml;e===0&&(e=ph,ph<<=1,(ph&261888)===0&&(ph=256)),Di=e}return Di}function _E(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nh(e)}function Dq(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var r=_E((n[yo]||null).action),i=o.submitter;i&&(t=(t=i[yo]||null)?_E(t.formAction):i.getAttribute("formAction"),t!==null&&(r=t,i=null));var s=new Dg("action","action",null,o,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Di!==0){var l=new FormData(n,i);RC(a,{pending:!0,data:l,method:n.method,action:r},null,l)}}else typeof r=="function"&&(s.preventDefault(),l=new FormData(n,i),RC(a,{pending:!0,data:l,method:n.method,action:r},r,l))},currentTarget:n}]})}}for(Ah=0;Ah<mC.length;Ah++)Dh=mC[Ah],zE=Dh.toLowerCase(),UE=Dh[0].toUpperCase()+Dh.slice(1),Mn(zE,"on"+UE);var Dh,zE,UE,Ah;Mn(ZA,"onAnimationEnd");Mn(QA,"onAnimationIteration");Mn(JA,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(U3,"onTransitionRun");Mn(H3,"onTransitionStart");Mn(q3,"onTransitionCancel");Mn($A,"onTransitionEnd");pc("onMouseEnter",["mouseout","mouseover"]);pc("onMouseLeave",["mouseout","mouseover"]);pc("onPointerEnter",["pointerout","pointerover"]);pc("onPointerLeave",["pointerout","pointerover"]);Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gd));function _P(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],n=o.event;o=o.listeners;e:{var r=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==r&&n.isPropagationStopped())break e;r=s,n.currentTarget=u;try{r(n)}catch(c){ng(c)}n.currentTarget=null,r=l}else for(i=0;i<o.length;i++){if(s=o[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==r&&n.isPropagationStopped())break e;r=s,n.currentTarget=u;try{r(n)}catch(c){ng(c)}n.currentTarget=null,r=l}}}}function Ge(e,t){var a=t[Nw];a===void 0&&(a=t[Nw]=new Set);var o=e+"__bubble";a.has(o)||(zP(t,e,2,!1),a.add(o))}function Gv(e,t,a){var o=0;t&&(o|=4),zP(a,e,o,t)}var Ph="_reactListening"+Math.random().toString(36).slice(2);function ZL(e){if(!e[Ph]){e[Ph]=!0,PA.forEach(function(a){a!=="selectionchange"&&(Pq.has(a)||Gv(a,!1,e),Gv(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ph]||(t[Ph]=!0,Gv("selectionchange",!1,t))}}function zP(e,t,a,o){switch(c1(t)){case 2:var n=L4;break;case 8:n=R4;break;default:n=oR}a=n.bind(null,t,a,e),n=void 0,!uC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function jv(e,t,a,o,n){var r=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=ol(s),i===null)return;if(l=i.tag,l===5||l===6||l===26||l===27){o=r=i;continue e}s=s.parentNode}}o=o.return}_A(function(){var u=r,c=dL(a),d=[];e:{var f=eD.get(e);if(f!==void 0){var m=Dg,p=e;switch(e){case"keypress":if(Vh(a)===0)break e;case"keydown":case"keyup":m=x3;break;case"focusin":p="focus",m=wv;break;case"focusout":p="blur",m=wv;break;case"beforeblur":case"afterblur":m=wv;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=qw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=r3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=C3;break;case ZA:case QA:case JA:m=l3;break;case $A:m=R3;break;case"scroll":case"scrollend":m=o3;break;case"wheel":m=T3;break;case"copy":case"cut":case"paste":m=c3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=jw;break;case"submit":m=b3;break;case"toggle":case"beforetoggle":m=E3}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),g=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,x;h!==null;){var S=h;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||g===null||(S=Bd(h,g),S!=null&&y.push(jd(h,S,x))),b)break;h=h.return}0<y.length&&(f=new m(f,p,null,a,c),d.push({event:f,listeners:y}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&a!==lC&&(p=a.relatedTarget||a.fromElement)&&(ol(p)||p[Tc]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?ol(m):null,m!==null&&(b=Qd(m),y=m.tag,m!==b||y!==5&&y!==27&&y!==6)&&(m=null)):(f=null,m=u),f!==m&&(y=qw,S="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=jw,S="onPointerLeave",g="onPointerEnter",h="pointer"),b=f==null?p:Sd(f),x=m==null?p:Sd(m),p=new y(S,h+"leave",f,a,c),p.target=b,p.relatedTarget=x,S=null,ol(c)===u&&(y=new y(g,h+"enter",m,a,c),y.target=x,y.relatedTarget=b,S=y),b=S,y=f&&m?Zv(f,m,Mq):null,f!==null&&HE(d,p,f,y,!1),m!==null&&b!==null&&HE(d,b,m,y,!0)))}e:{if(f=u?Sd(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var v=Kw;else if(Ww(f))if(jA)v=F3;else{v=B3;var R=N3}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&fL(u.elementType)&&(v=Kw):v=V3;if(v&&(v=v(e,u))){GA(d,v,a,c);break e}R&&R(e,f,u)}switch(R=u?Sd(u):window,e){case"focusin":(Ww(R)||R.contentEditable==="true")&&(Zu=R,fC=u,Rd=null);break;case"focusout":Rd=fC=Zu=null;break;case"mousedown":dC=!0;break;case"contextmenu":case"mouseup":case"dragend":dC=!1,$w(d,a,c);break;case"selectionchange":if(z3)break;case"keydown":case"keyup":$w(d,a,c)}var L;if(hL)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Ku?HA(e,a)&&(C="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(C="onCompositionStart");C&&(UA&&a.locale!=="ko"&&(Ku||C!=="onCompositionStart"?C==="onCompositionEnd"&&Ku&&(L=zA()):(Ti=c,mL="value"in Ti?Ti.value:Ti.textContent,Ku=!0)),R=Ig(u,C),0<R.length&&(C=new Gw(C,e,null,a,c),d.push({event:C,listeners:R}),L?C.data=L:(L=qA(a),L!==null&&(C.data=L)))),(L=D3?P3(e,a):M3(e,a))&&(C=Ig(u,"onBeforeInput"),0<C.length&&(R=new Gw("onBeforeInput","beforeinput",null,a,c),d.push({event:R,listeners:C}),R.data=L)),Dq(d,e,u,a,c)}_P(d,t)})}function jd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ig(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=Bd(e,a),n!=null&&o.unshift(jd(e,n,r)),n=Bd(e,t),n!=null&&o.push(jd(e,n,r))),e.tag===3)return o;e=e.return}return[]}function Mq(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function HE(e,t,a,o,n){for(var r=t._reactName,i=[];a!==null&&a!==o;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||u===null||(l=u,n?(u=Bd(a,r),u!=null&&i.unshift(jd(a,u,l))):n||(u=Bd(a,r),u!=null&&i.push(jd(a,u,l)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var Oq=/\r\n?/g,kq=/\u0000|\uFFFD/g;function qE(e){return(typeof e=="string"?e:""+e).replace(Oq,`
|
|
9
|
-
`).replace(kq,"")}function UP(e,t){return t=qE(t),qE(e)===t}function st(e,t,a,o,n,r){switch(a){case"children":if(typeof o=="string")t==="body"||t==="textarea"&&o===""||hc(e,o);else if(typeof o=="number"||typeof o=="bigint")t!=="body"&&hc(e,""+o);else return;break;case"className":xh(e,"class",o);break;case"tabIndex":xh(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":xh(e,a,o);break;case"style":FA(e,o,r);return;case"data":if(t!=="object"){xh(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Nh(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&st(e,t,"name",n.name,n,null),st(e,t,"formEncType",n.formEncType,n,null),st(e,t,"formMethod",n.formMethod,n,null),st(e,t,"formTarget",n.formTarget,n,null)):(st(e,t,"encType",n.encType,n,null),st(e,t,"method",n.method,n,null),st(e,t,"target",n.target,n,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Nh(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=$n);return;case"onScroll":o!=null&&Ge("scroll",e);return;case"onScrollEnd":o!=null&&Ge("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(X(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(X(60));r?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Nh(o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),kh(e,"popover",o);break;case"xlinkActuate":Mr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Mr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Mr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Mr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Mr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Mr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":kh(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=t3.get(a)||a,kh(e,a,o);else return}Qe=!0}function KC(e,t,a,o,n,r){switch(a){case"style":FA(e,o,r);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(X(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(X(60));r?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")hc(e,o);else if(typeof o=="number"||typeof o=="bigint")hc(e,""+o);else return;break;case"onScroll":o!=null&&Ge("scroll",e);return;case"onScrollEnd":o!=null&&Ge("scrollend",e);return;case"onClick":o!=null&&(e.onclick=$n);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!MA.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),r=a.slice(2,n?a.length-7:void 0),t=e[yo]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(r,t,n),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(r,o,n);break e}Qe=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):kh(e,a,o)}return}Qe=!0}function wa(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var o=!1,n=!1,r;for(r in a)if(a.hasOwnProperty(r)){var i=a[r];if(i!=null)switch(r){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(X(137,t));default:st(e,t,r,i,a,null)}}n&&st(e,t,"srcSet",a.srcSet,a,null),o&&st(e,t,"src",a.src,a,null);return;case"input":Ge("invalid",e);var s=r=i=n=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":n=c;break;case"type":i=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(X(137,t));break;default:st(e,t,o,c,a,null)}}NA(e,r,s,l,u,i,n,!1);return;case"select":Ge("invalid",e),o=i=r=null;for(n in a)if(a.hasOwnProperty(n)&&(s=a[n],s!=null))switch(n){case"value":r=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:st(e,t,n,s,a,null)}t=r,a=i,e.multiple=!!o,t!=null?nc(e,!!o,t,!1):a!=null&&nc(e,!!o,a,!0);return;case"textarea":Ge("invalid",e),r=n=o=null;for(i in a)if(a.hasOwnProperty(i)&&(s=a[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":n=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(X(91));break;default:st(e,t,i,s,a,null)}VA(e,o,n,r);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:st(e,t,l,o,a,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(o=0;o<Gd.length;o++)Ge(Gd[o],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(X(137,t));default:st(e,t,u,o,a,null)}return;default:if(fL(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&KC(e,t,c,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&st(e,t,s,o,a,null))}var Nq={};function Bq(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,r=null,i=null,s=null,l=null,u=null,c=null;for(m in a){var d=a[m];if(a.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:o.hasOwnProperty(m)||st(e,t,m,null,o,d)}}for(var f in o){var m=o[f];if(d=a[f],o.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(Qe=!0),r=m;break;case"name":m!==d&&(Qe=!0),n=m;break;case"checked":m!==d&&(Qe=!0),u=m;break;case"defaultChecked":m!==d&&(Qe=!0),c=m;break;case"value":m!==d&&(Qe=!0),i=m;break;case"defaultValue":m!==d&&(Qe=!0),s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(X(137,t));break;default:m!==d&&st(e,t,f,m,o,d)}}sC(e,i,s,l,u,c,r,n);return;case"select":m=i=s=f=null;for(r in a)if(l=a[r],a.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":m=l;default:o.hasOwnProperty(r)||st(e,t,r,null,o,l)}for(n in o)if(r=o[n],l=a[n],o.hasOwnProperty(n)&&(r!=null||l!=null))switch(n){case"value":r!==l&&(Qe=!0),f=r;break;case"defaultValue":r!==l&&(Qe=!0),s=r;break;case"multiple":r!==l&&(Qe=!0),i=r;default:r!==l&&st(e,t,n,r,o,l)}t=s,a=i,o=m,f!=null?nc(e,!!a,f,!1):!!o!=!!a&&(t!=null?nc(e,!!a,t,!0):nc(e,!!a,a?[]:"",!1));return;case"textarea":m=f=null;for(s in a)if(n=a[s],a.hasOwnProperty(s)&&n!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:st(e,t,s,null,o,n)}for(i in o)if(n=o[i],r=a[i],o.hasOwnProperty(i)&&(n!=null||r!=null))switch(i){case"value":n!==r&&(Qe=!0),f=n;break;case"defaultValue":n!==r&&(Qe=!0),m=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(X(91));break;default:n!==r&&st(e,t,i,n,o,r)}BA(e,f,m);return;case"option":for(var p in a)if(f=a[p],a.hasOwnProperty(p)&&f!=null&&!o.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:st(e,t,p,null,o,f)}for(l in o)if(f=o[l],m=a[l],o.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(Qe=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:st(e,t,l,f,o,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in a)f=a[y],a.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&st(e,t,y,null,o,f);for(u in o)if(f=o[u],m=a[u],o.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(X(137,t));break;default:st(e,t,u,f,o,m)}return;default:if(fL(t)){for(var b in a)f=a[b],a.hasOwnProperty(b)&&f!==void 0&&!o.hasOwnProperty(b)&&KC(e,t,b,void 0,o,f);for(c in o)f=o[c],m=a[c],!o.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||KC(e,t,c,f,o,m);return}}for(var g in a)f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g)&&st(e,t,g,null,o,f);for(d in o)f=o[d],m=a[d],!o.hasOwnProperty(d)||f===m||f==null&&m==null||st(e,t,d,f,o,m)}function GE(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vq(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],r=n.transferSize,i=n.initiatorType,s=n.duration;if(r&&s&&GE(i)){for(i=0,s=n.responseEnd,o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&GE(d)&&(l=l.responseEnd,i+=c*(l<s?1:(s-u)/(l-u)))}if(--o,t+=8*(r+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ZC=null,QC=null;function Xd(e){return e.nodeType===9?e:e.ownerDocument}function jE(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function HP(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function qP(e,t,a,o){return a=Xd(a).createElement(e),a[La]=o,a[yo]=t,wa(a,e,t),fa(a),a}function JC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xv=null;function Fq(){var e=window.event;return e&&e.type==="popstate"?e===Xv?!1:(Xv=e,!0):(Xv=null,!1)}var QL=typeof setTimeout=="function"?setTimeout:void 0,_q=typeof clearTimeout=="function"?clearTimeout:void 0,XE=typeof Promise=="function"?Promise:void 0,YE=typeof requestAnimationFrame=="function"?requestAnimationFrame:QL,zq=typeof queueMicrotask=="function"?queueMicrotask:typeof XE<"u"?function(e){return XE.resolve(null).then(e).catch(Uq)}:QL;function Uq(e){setTimeout(function(){throw e})}function Yi(e){return e==="head"}function WE(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(n),Ic(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Wv(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wv(a);for(var r=a.firstChild;r;){var i=r.nextSibling,s=r.nodeName;r[tm]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=i}}else a==="body"&&Wv(e.ownerDocument.body);a=n}while(a);Ic(t)}function KE(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function GP(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var n=o=0;n<t.length;n++){var r=t[n];0<r.width&&0<r.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function jP(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function XP(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function $C(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return XP(t,a,e)}function Hq(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return XP(t,a,e)}function qq(e){return e.documentElement.clientHeight}function Gq(e){this.addEventListener("load",e),this.addEventListener("error",e)}function jq(e,t,a,o,n,r,i,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;o();var y=[];if(p==="loaded"&&(qq(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),p=y.length,e!==null)for(var b=e.suspenseyImages,g=0,h=0;h<b.length;h++){var x=b[h];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<f.innerHeight&&S.left<f.innerWidth){if(g+=n1(x),g>Zh){y.length=p;break}x=new Promise(Gq.bind(x)),y.push(x)}}}if(0<y.length)return f=Promise.race([Promise.all(y),new Promise(function(v){return setTimeout(v,500)})]).then(n,n),(m?Promise.allSettled([m.finished,f]):f).then(r,r);if(n(),m)return m.finished.then(r,r);r()},types:a});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],y=p.effect,b=y.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){d.push(p),p=y.getKeyframes();for(var g=b=void 0,h=!0,x=0;x<p.length;x++){var S=p[x],v=S.width;if(b===void 0)b=v;else if(b!==v){h=!1;break}if(v=S.height,g===void 0)g=v;else if(g!==v){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&b!==void 0&&g!==void 0&&(y.setKeyframes(p),h=getComputedStyle(y.target,y.pseudoElement),h.width!==b||h.height!==g)&&(h=p[0],h.width=b,h.height=g,h=p[p.length-1],h.width=b,h.height=g,y.setKeyframes(p))}}i()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{o(),n(),i()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return o(),n(),i(),null}}function nl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}nl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:gt({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};nl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],n=0;n<a.length;n++){var r=a[n].effect;r!==null&&r.target===e&&r.pseudoElement===t&&o.push(a[n])}return o};nl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function YP(e){return{name:e,group:new nl("group",e),imagePair:new nl("image-pair",e),old:new nl("old",e),new:new nl("new",e)}}function zo(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zo.prototype.addEventListener=function(e,t,a){var o=null,n=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(WP(r,e,t,a)===-1){var i=this,s=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(s=function(l){i.removeEventListener(e,t,a),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(n=i.removeEventListener.bind(i,e,t,a),o.addEventListener("abort",n,{once:!0}),n=o.removeEventListener.bind(o,"abort",n)),o=vc(a),r.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:s,cleanup:n}),xo(this._fragmentFiber.child,!1,Xq,e,s,o)}this._eventListeners=r}};function Xq(e,t,a,o){return aa(e).addEventListener(t,a,o),!1}zo.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=WP(o,e,t,a),t!==-1)){var n=o[t];a=n.attachedListener;var r=n.cleanup;n=vc(n.optionsOrUseCapture),xo(this._fragmentFiber.child,!1,Yq,e,a,n),o.splice(t,1),r!==null&&r()}};function Yq(e,t,a,o){return aa(e).removeEventListener(t,a,o),!1}function vc(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function ZE(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function WP(e,t,a,o){if(e.length===0)return-1;o=ZE(o);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===t&&r.listener===a&&ZE(r.optionsOrUseCapture)===o)return n}return-1}zo.prototype.dispatchEvent=function(e){var t=yl(this._fragmentFiber);if(t===null)return!0;t=aa(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var n=0;n<a.length;n++){var r=a[n];o.addEventListener(r.type,r.attachedListener,vc(r.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(n=0;n<a.length;n++)r=a[n],o.removeEventListener(r.type,r.attachedListener,vc(r.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};zo.prototype.focus=function(e){xo(this._fragmentFiber.child,!0,KP,e,void 0,void 0)};function KP(e,t){return e.tag===6?!1:(e=aa(e),r4(e,t))}zo.prototype.focusLast=function(e){var t=[];xo(this._fragmentFiber.child,!0,JL,t,void 0,void 0);for(var a=t.length-1;0<=a&&!KP(t[a],e);a--);};function JL(e,t){return t.push(e),!1}zo.prototype.blur=function(){var e=yl(this._fragmentFiber);e!==null&&(e=aa(e),e=Xd(e).activeElement,e!==null&&xo(this._fragmentFiber.child,!1,Wq,e,void 0,void 0))};function Wq(e,t){return e.tag===6?!1:(e=aa(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zo.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),xo(this._fragmentFiber.child,!1,Kq,e,void 0,void 0)};function Kq(e,t){return e.tag===6||(e=aa(e),t.observe(e)),!1}zo.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),xo(this._fragmentFiber.child,!1,Zq,e,void 0,void 0);for(var a=t=0;a<Dn.length;a++){var o=Dn[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Dn[t++]=o}Dn.length=t}};function Zq(e,t){return e.tag===6||(e=aa(e),t.unobserve(e)),!1}var Dn=[],Yv=!1;function Qq(e,t,a){Dn.push({fragmentInstance:e,observer:t,instance:a}),Yv||(Yv=!0,i4(function(){Yv=!1;var o=Dn;Dn=[];for(var n=0;n<o.length;n++){var r=o[n];r.observer.unobserve(r.instance)}}))}zo.prototype.getClientRects=function(){var e=[];return xo(this._fragmentFiber.child,!1,Jq,e,void 0,void 0),e};function Jq(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=aa(e),t.push.apply(t,e.getClientRects());return!1}zo.prototype.getRootNode=function(e){var t=yl(this._fragmentFiber);return t===null?this:aa(t).getRootNode(e)};zo.prototype.compareDocumentPosition=function(e){var t=yl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];xo(this._fragmentFiber.child,!1,JL,a,void 0,void 0);var o=aa(t);if(a.length===0){if(a=o,Aw(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var n=o=a.compareDocumentPosition(e);return a===e?n=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=xA(t)[1],a===null?n=Node.DOCUMENT_POSITION_PRECEDING:(e=aa(a).compareDocumentPosition(e),n=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=aa(a[0]),n=aa(a[a.length-1]);var r=Aw(this._fragmentFiber)?t.parentElement:o;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),s=n.compareDocumentPosition(e),l=i&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=o&&r&&i&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||r&&n===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!r&&n===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$q(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $q(e,t,a,o,n){var r=ol(n);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){a=!0;break e}r=r.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=n.ownerDocument,n===r||n===r.documentElement||n===r.body;e:{for(r=t,t=yl(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===a)&&(t=Zv(a,r,Dw),t===null?t=!1:(xo(t,!0,AH,r,a),r=ju,ju=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===o)&&(t=Zv(o,r,Dw),t===null?t=!1:(xo(t,!0,DH,r,o),r=ju,Kv=ju=null,t=r!==null)),t):!1}function QE(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zo.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(X(566));var t=[];xo(this._fragmentFiber.child,!1,JL,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=xA(this._fragmentFiber);if(o=a?o[1]||o[0]||yl(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=aa(o),QE(e,a);return}if(o=aa(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var n=t[o];n.tag===6?(n=aa(n),QE(n,a)):aa(n).scrollIntoView(e),o+=a?-1:1}};function e4(e,t){return e=aa(e),ZP(e,t),!1}function ZP(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function QP(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var n=a[o];e.addEventListener(n.type,n.attachedListener,vc(n.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){for(var i=0,s=0;s<Dn.length;s++){var l=Dn[s];(l.fragmentInstance!==t||l.observer!==r||l.instance!==e)&&(Dn[i++]=l)}Dn.length=i,r.observe(e)}),ZP(e,t))}function t4(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var n=a[o];e.removeEventListener(n.type,n.attachedListener,vc(n.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){typeof r.rootMargin=="string"?Qq(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function eL(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":eL(a),Ag(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function a4(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[tm])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function o4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function JP(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nn(e.nextSibling),e===null))return null;return e}function tL(e){return e.data==="$?"||e.data==="$~"}function $L(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function n4(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var aL=null;function JE(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return nn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function $E(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function r4(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function i4(e){YE(function(){YE(function(t){return e(t)})})}function $P(e,t,a){switch(t=Xd(a),e){case"html":if(e=t.documentElement,!e)throw Error(X(452));return e;case"head":if(e=t.head,!e)throw Error(X(453));return e;case"body":if(e=t.body,!e)throw Error(X(454));return e;default:throw Error(X(451))}}function e1(e,t,a){for(var o in a){var n=a[o];a.hasOwnProperty(o)&&n!=null&&st(e,t,o,null,Nq,n)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===$n&&(e.onclick=null),Ag(e)}function Wv(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ag(e)}var rn=new Map,eA=new Set;function Yd(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Xr=et.d;et.d={f:s4,r:l4,D:u4,C:c4,L:f4,m:d4,X:p4,S:m4,M:h4};function s4(){var e=Xr.f(),t=qg();return e||t}function l4(e){var t=wc(e);t!==null&&t.tag===5&&t.type==="form"?FD(t):Xr.r(e)}var Pc=typeof document>"u"?null:document;function t1(e,t,a){var o=Pc;if(o&&typeof t=="string"&&t){var n=tn(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),eA.has(n)||(eA.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),wa(t,"link",e),fa(t),o.head.appendChild(t)))}}function u4(e){Xr.D(e),t1("dns-prefetch",e,null)}function c4(e,t){Xr.C(e,t),t1("preconnect",e,t)}function f4(e,t,a){Xr.L(e,t,a);var o=Pc;if(o&&e&&t){var n='link[rel="preload"][as="'+tn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+tn(a.imageSizes)+'"]')):n+='[href="'+tn(e)+'"]';var r=n;switch(t){case"style":r=Cc(e);break;case"script":r=Mc(e)}if(!(rn.has(r)||(e=gt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),rn.set(r,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(sm(r))||t==="script"&&o.querySelector(lm(r))))){var i=o.createElement("link");wa(i,"link",e),t==="style"&&(i[og]=!0,i.onload=i.onerror=function(){DA(i)}),fa(i),o.head.appendChild(i)}}}function d4(e,t){Xr.m(e,t);var a=Pc;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+tn(o)+'"][href="'+tn(e)+'"]',r=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Mc(e)}if(!rn.has(r)&&(e=gt({rel:"modulepreload",href:e},t),rn.set(r,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(lm(r)))return}o=a.createElement("link"),wa(o,"link",e),fa(o),a.head.appendChild(o)}}}function m4(e,t,a){Xr.S(e,t,a);var o=Pc;if(o&&e){var n=oc(o).hoistableStyles,r=Cc(e);t=t||"default";var i=n.get(r);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(sm(r)))s.loading=5;else{e=gt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=rn.get(r))&&eR(e,a);var l=i=o.createElement("link");fa(l),wa(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Wh(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(r,i)}}}function p4(e,t){Xr.X(e,t);var a=Pc;if(a&&e){var o=oc(a).hoistableScripts,n=Mc(e),r=o.get(n);r||(r=a.querySelector(lm(n)),r||(e=gt({src:e,async:!0},t),(t=rn.get(n))&&tR(e,t),r=a.createElement("script"),fa(r),wa(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}}function h4(e,t){Xr.M(e,t);var a=Pc;if(a&&e){var o=oc(a).hoistableScripts,n=Mc(e),r=o.get(n);r||(r=a.querySelector(lm(n)),r||(e=gt({src:e,async:!0,type:"module"},t),(t=rn.get(n))&&tR(e,t),r=a.createElement("script"),fa(r),wa(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}}function tA(e,t,a,o){var n=(n=Pi.current)?Yd(n):null;if(!n)throw Error(X(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Cc(a.href),t=oc(n).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cc(a.href);var r=oc(n).hoistableStyles,i=r.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,i),(r=n.querySelector(sm(e)))?r._p||(i.instance=r,i.state.loading=5):(r=rn.get(e),r||(r={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(e,r)),g4(n,e,r,i.state))),t&&o===null)throw Error(X(528,""));return i}if(t&&o!==null)throw Error(X(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Mc(a),t=oc(n).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(X(444,e))}}function Cc(e){return'href="'+tn(e)+'"'}function sm(e){return'link[rel="stylesheet"]['+e+"]"}function a1(e){return gt({},e,{"data-precedence":e.precedence,precedence:null})}function g4(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[og]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[og]=!0,t.onload=t.onerror=DA.bind(null,t),wa(t,"link",a),fa(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Mc(e){return'[src="'+tn(e)+'"]'}function lm(e){return"script[async]"+e}function aA(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+tn(a.href)+'"]');if(o)return t.instance=o,fa(o),o;var n=gt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),fa(o),wa(o,"style",n),Wh(o,a.precedence,e),t.instance=o;case"stylesheet":n=Cc(a.href);var r=e.querySelector(sm(n));if(r)return t.state.loading|=4,t.instance=r,fa(r),r;o=a1(a),(n=rn.get(n))&&eR(o,n),r=(e.ownerDocument||e).createElement("link"),fa(r);var i=r;return i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),wa(r,"link",o),t.state.loading|=4,Wh(r,a.precedence,e),t.instance=r;case"script":return r=Mc(a.src),(n=e.querySelector(lm(r)))?(t.instance=n,fa(n),n):(o=a,(n=rn.get(r))&&(o=gt({},a),tR(o,n)),e=e.ownerDocument||e,n=e.createElement("script"),fa(n),wa(n,"link",o),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(X(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Wh(o,a.precedence,e));return t.instance}function Wh(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,r=n,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)r=s;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function eR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function tR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Kh=null;function oA(e,t,a){if(Kh===null){var o=new Map,n=Kh=new Map;n.set(a,o)}else n=Kh,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var r=a[n];if(!(r[tm]||r[La]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var i=r.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(r):o.set(i,[r])}}return o}function oL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function x4(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function nA(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function o1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n1(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function rA(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=n1(t),e.suspenseyImages.push(t)),e=b4.bind(e),t.decode().then(e,e))}function y4(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Cc(o.href),r=t.querySelector(sm(n));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wd.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,fa(r);return}r=t.ownerDocument||t,o=a1(o),(n=rn.get(n))&&eR(o,n),r=r.createElement("link"),fa(r);var i=r;i._p=new Promise(function(s,l){i.onload=s,i.onerror=l}),wa(r,"link",o),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Wd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zh=0;function S4(e,t){return e.stylesheets&&e.count===0&&Qh(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Qh(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Zh===0&&(Zh=62500*Vq());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qh(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Zh?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function r1(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Qh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Wd(){this.count--,r1(this)}function b4(){this.imgCount--,r1(this)}var Tg=null;function Qh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tg=new Map,t.forEach(v4,e),Tg=null,Wd.call(e))}function v4(e,t){if(!(t.state.loading&4)){var a=Tg.get(e);if(a)var o=a.get(null);else{a=new Map,Tg.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var i=n[r];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),o=i)}o&&a.set(null,o)}n=t.instance,i=n.getAttribute("data-precedence"),r=a.get(i)||o,r===o&&a.set(null,n),a.set(i,n),this.count++,o=Wd.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Lc={$$typeof:Jn,Provider:null,Consumer:null,_currentValue:rl,_currentValue2:rl,_threadCount:0};function C4(e,t,a,o,n,r,i,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Cv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cv(0),this.hiddenUpdates=Cv(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function i1(e,t,a,o,n,r,i,s,l,u,c,d){return e=new C4(e,t,a,i,l,u,c,d,s),t=1,r===!0&&(t|=24),r=ho(3,null,null,t),e.current=r,r.stateNode=e,t=vL(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:o,isDehydrated:a,cache:t},RL(r),e}function s1(e){return e?(e=$u,e):$u}function l1(e,t,a,o,n,r){n=s1(n),o.context===null?o.context=n:o.pendingContext=n,o=Oi(t),o.payload={element:a},r=r===void 0?null:r,r!==null&&(o.callback=r),a=ki(e,o,t),a!==null&&(go(a,e,t),Td(a,e,t))}function iA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function aR(e,t){iA(e,t),(e=e.alternate)&&iA(e,t)}function u1(e){if(e.tag===13||e.tag===31){var t=vl(e,67108864);t!==null&&go(t,e,67108864),aR(e,67108864)}}function sA(e){if(e.tag===13||e.tag===31){var t=Fo();t=uL(t);var a=vl(e,t);a!==null&&go(a,e,t),aR(e,t)}}var Rc=!0;function L4(e,t,a,o){var n=Te.T;Te.T=null;var r=et.p;try{et.p=2,oR(e,t,a,o)}finally{et.p=r,Te.T=n}}function R4(e,t,a,o){var n=Te.T;Te.T=null;var r=et.p;try{et.p=8,oR(e,t,a,o)}finally{et.p=r,Te.T=n}}function oR(e,t,a,o){if(Rc){var n=nL(o);if(n===null)jv(e,t,o,wg,a),lA(e,o);else if(T4(n,e,t,a,o))o.stopPropagation();else if(lA(e,o),t&4&&-1<I4.indexOf(e)){for(;n!==null;){var r=wc(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var i=el(r.pendingLanes);if(i!==0){var s=r;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-Vo(i);s.entanglements[1]|=l,i&=~l}ir(r),($e&6)===0&&(vg=No()+500,im(0,!1))}}break;case 31:case 13:s=vl(r,2),s!==null&&go(s,r,2),qg(),aR(r,2)}if(r=nL(o),r===null&&jv(e,t,o,wg,a),r===n)break;n=r}n!==null&&o.stopPropagation()}else jv(e,t,o,null,a)}}function nL(e){return e=dL(e),nR(e)}var wg=null;function nR(e){if(wg=null,e=ol(e),e!==null){var t=Qd(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=pA(t),e!==null)return e;e=null}else if(a===31){if(e=hA(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wg=e,null}function c1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_H()){case vA:return 2;case CA:return 8;case ag:case zH:return 32;case LA:return 268435456;default:return 32}default:return 32}}var rL=!1,Fi=null,_i=null,zi=null,Kd=new Map,Zd=new Map,Ri=[],I4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lA(e,t){switch(e){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":zi=null;break;case"pointerover":case"pointerout":Kd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zd.delete(t.pointerId)}}function hd(e,t,a,o,n,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:r,targetContainers:[n]},t!==null&&(t=wc(t),t!==null&&u1(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function T4(e,t,a,o,n){switch(t){case"focusin":return Fi=hd(Fi,e,t,a,o,n),!0;case"dragenter":return _i=hd(_i,e,t,a,o,n),!0;case"mouseover":return zi=hd(zi,e,t,a,o,n),!0;case"pointerover":var r=n.pointerId;return Kd.set(r,hd(Kd.get(r)||null,e,t,a,o,n)),!0;case"gotpointercapture":return r=n.pointerId,Zd.set(r,hd(Zd.get(r)||null,e,t,a,o,n)),!0}return!1}function f1(e){var t=ol(e.target);if(t!==null){var a=Qd(t);if(a!==null){if(t=a.tag,t===13){if(t=pA(a),t!==null){e.blockedOn=t,kw(e.priority,function(){sA(a)});return}}else if(t===31){if(t=hA(a),t!==null){e.blockedOn=t,kw(e.priority,function(){sA(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=nL(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);lC=o,a.target.dispatchEvent(o),lC=null}else return t=wc(a),t!==null&&u1(t),e.blockedOn=a,!1;t.shift()}return!0}function uA(e,t,a){Jh(e)&&a.delete(t)}function w4(){rL=!1,Fi!==null&&Jh(Fi)&&(Fi=null),_i!==null&&Jh(_i)&&(_i=null),zi!==null&&Jh(zi)&&(zi=null),Kd.forEach(uA),Zd.forEach(uA)}function Mh(e,t){e.blockedOn===t&&(e.blockedOn=null,rL||(rL=!0,oa.unstable_scheduleCallback(oa.unstable_NormalPriority,w4)))}var Oh=null;function cA(e){Oh!==e&&(Oh=e,oa.unstable_scheduleCallback(oa.unstable_NormalPriority,function(){Oh===e&&(Oh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!="function"){if(nR(o||a)===null)continue;break}var r=wc(a);r!==null&&(e.splice(t,3),t-=3,RC(r,{pending:!0,data:n,method:a.method,action:o},o,n))}}))}function Ic(e){function t(l){return Mh(l,e)}Fi!==null&&Mh(Fi,e),_i!==null&&Mh(_i,e),zi!==null&&Mh(zi,e),Kd.forEach(t),Zd.forEach(t);for(var a=0;a<Ri.length;a++){var o=Ri[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ri.length&&(a=Ri[0],a.blockedOn===null);)f1(a),a.blockedOn===null&&Ri.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],r=a[o+1],i=n[yo]||null;if(typeof r=="function")i||cA(a);else if(i){var s=null;if(r&&r.hasAttribute("formAction")){if(n=r,i=r[yo]||null)s=i.formAction;else if(nR(n)!==null)continue}else s=i.action;typeof s=="function"?a[o+1]=s:(a.splice(o,3),o-=3),cA(a)}}}function d1(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function rR(e){this._internalRoot=e}Xg.prototype.render=rR.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));var a=t.current,o=Fo();l1(a,o,e,t,null,null)};Xg.prototype.unmount=rR.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;l1(e.current,2,null,e,null,null),qg(),t[Tc]=null}};function Xg(e){this._internalRoot=e}Xg.prototype.unstable_scheduleHydration=function(e){if(e){var t=AA();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ri.length&&t!==0&&t<Ri[a].priority;a++);Ri.splice(a,0,e),a===0&&f1(e)}};var fA=dA.version;if(fA!=="19.3.0")throw Error(X(527,fA,"19.3.0"));et.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=EH(t),e=e!==null?gA(e):null,e=e===null?null:e.stateNode,e};var E4={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Te,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(gd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!gd.isDisabled&&gd.supportsFiber))try{Jd=gd.inject(E4),Bo=gd}catch{}var gd;Yg.createRoot=function(e,t){if(!mA(e))throw Error(X(299));var a=!1,o="",n=XD,r=YD,i=WD;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=i1(e,1,!1,null,null,a,o,null,n,r,i,d1),e[Tc]=t.current,ZL(e),new rR(t)};Yg.hydrateRoot=function(e,t,a){if(!mA(e))throw Error(X(299));var o=!1,n="",r=XD,i=YD,s=WD,l=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=i1(e,1,!0,t,a??null,o,n,l,r,i,s,d1),t.context=s1(null),a=t.current,o=Fo(),o=uL(o),n=Oi(o),n.callback=null,ki(a,n,o),a=o,t.current.lanes=a,em(t,a),ir(t),e[Tc]=t.current,ZL(e),new Xg(t)};Yg.version="19.3.0"});var g1=co((oY,h1)=>{"use strict";function p1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p1)}catch(e){console.error(e)}}p1(),h1.exports=m1()});var UM=co(tx=>{"use strict";var N5=Symbol.for("react.transitional.element"),B5=Symbol.for("react.fragment");function zM(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var n in t)n!=="key"&&(a[n]=t[n])}else a=t;return t=a.ref,{$$typeof:N5,type:e,key:o,ref:t!==void 0?t:null,props:a}}tx.Fragment=B5;tx.jsx=zM;tx.jsxs=zM});var Z=co((zK,HM)=>{"use strict";HM.exports=UM()});var i2=co(r2=>{"use strict";var Tf=P();function zX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UX=typeof Object.is=="function"?Object.is:zX,HX=Tf.useState,qX=Tf.useEffect,GX=Tf.useLayoutEffect,jX=Tf.useDebugValue;function XX(e,t){var a=t(),o=HX({inst:{value:a,getSnapshot:t}}),n=o[0].inst,r=o[1];return GX(function(){n.value=a,n.getSnapshot=t,DI(n)&&r({inst:n})},[e,a,t]),qX(function(){return DI(n)&&r({inst:n}),e(function(){DI(n)&&r({inst:n})})},[e]),jX(a),a}function DI(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!UX(e,a)}catch{return!0}}function YX(e,t){return t()}var WX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YX:XX;r2.useSyncExternalStore=Tf.useSyncExternalStore!==void 0?Tf.useSyncExternalStore:WX});var _p=co(($ge,s2)=>{"use strict";s2.exports=i2()});var u2=co(l2=>{"use strict";var oS=P(),KX=_p();function ZX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var QX=typeof Object.is=="function"?Object.is:ZX,JX=KX.useSyncExternalStore,$X=oS.useRef,e7=oS.useEffect,t7=oS.useMemo,a7=oS.useDebugValue;l2.useSyncExternalStoreWithSelector=function(e,t,a,o,n){var r=$X(null);if(r.current===null){var i={hasValue:!1,value:null};r.current=i}else i=r.current;r=t7(function(){function l(m){if(!u){if(u=!0,c=m,m=o(m),n!==void 0&&i.hasValue){var p=i.value;if(n(p,m))return d=p}return d=m}if(p=d,QX(c,m))return p;var y=o(m);return n!==void 0&&n(p,y)?(c=m,p):(c=m,d=y)}var u=!1,c,d,f=a===void 0?null:a;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,a,o,n]);var s=JX(e,r[0],r[1]);return e7(function(){i.hasValue=!0,i.value=s},[s]),a7(s),s}});var f2=co((txe,c2)=>{"use strict";c2.exports=u2()});var ZU=I(P(),1),QU=I(g1(),1);var Wg=I(P(),1);var x1=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function y1(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:x1(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var S1=e=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}t.length===0?t+=o.toLowerCase():t+=a?o.toUpperCase():o,a=!1}return t};var b1=e=>{let t=S1(e);return t.charAt(0).toUpperCase()+t.slice(1)};var cm=I(P(),1);var um=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Wi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function iR(e){return e!=null}function v1(e,t={}){let a=t.attributeNames??{},o=f=>a[f]??f,n=e.size??e.width??Wi.width,r=e.size??e.height??Wi.height,i=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...i],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?um(...l):um("lucide",...s,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??Wi["stroke-width"])*Number(e.size??e.width??Wi.width)/Number(t.size??t.width??Wi.width):t.strokeWidth??Wi["stroke-width"];return["svg",{...Object.entries(Wi).reduce((f,[m,p])=>(f[o(m)]=p,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&iR(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&iR(t.width)&&{[o("width")]:t.width},..."height"in t&&iR(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...u&&{[o("class")]:u},[o("viewBox")]:`0 0 ${n} ${r}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,y]=f,b=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...p}:p;return y?[m,b,y]:[m,b]})]}function C1(e,t={}){return v1(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var L1=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Oc=I(P(),1);var A4=(0,Oc.createContext)({});var R1=()=>(0,Oc.useContext)(A4);var I1=(0,cm.forwardRef)(({color:e,size:t,width:a,height:o,strokeWidth:n,absoluteStrokeWidth:r,nonScalingStroke:i,className:s="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:y=!1,nonScalingStroke:b=!1,color:g="currentColor",className:h=""}=R1()??{},x=!!l||L1(d),[S,v,R=[]]=C1(c,{color:e??g,width:a??t??m,height:o??t??m,strokeWidth:n??p,absoluteStrokeWidth:r??y,nonScalingStroke:i??b,className:um(h,s),hasA11yProp:x,attributes:d});return(0,cm.createElement)(S,{ref:f,...v},[...R.map(([L,C])=>(0,cm.createElement)(L,C)),...Array.isArray(l)?l:[l]])});function Ce(e,t=[],a=[]){let o=typeof e=="string"?y1(e,t,a):e,n=(0,Wg.forwardRef)(({className:r,...i},s)=>(0,Wg.createElement)(I1,{ref:s,icon:o,className:r,...i}));return o.name&&(n.displayName=b1(o.name)),n}var T1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};T1.node;var Yr=Ce(T1);var w1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};w1.node;var Ki=Ce(w1);var E1={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};E1.node;var fm=Ce(E1);var A1={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};A1.node;var Zi=Ce(A1);var D1={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};D1.node;var dm=Ce(D1);var P1={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};P1.node;var Qi=Ce(P1);var M1={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};M1.node;var mm=Ce(M1);var O1={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};O1.node;var pm=Ce(O1);var k1={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};k1.node;var hm=Ce(k1);var N1={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};N1.node;var Ji=Ce(N1);var B1={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};B1.node;var gm=Ce(B1);var V1={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};V1.node;var xm=Ce(V1);var F1={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};F1.node;var ym=Ce(F1);var _1={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};_1.node;var Sm=Ce(_1);var z1={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};z1.node;var bm=Ce(z1);var U1={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};U1.node;var vm=Ce(U1);var H1={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};H1.node;var $i=Ce(H1);var q1={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};q1.node;var Ll=Ce(q1);var G1={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};G1.node;var Cm=Ce(G1);var j1={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};j1.node;var es=Ce(j1);var X1={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};X1.node;var On=Ce(X1);var Y1={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Y1.node;var ts=Ce(Y1);var W1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};W1.node;var kn=Ce(W1);var K1={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};K1.node;var Lm=Ce(K1);var Z1={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};Z1.node;var as=Ce(Z1);var Q1={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Q1.node;var Rl=Ce(Q1);var Ou=I(P(),1);async function Kg(e,t={}){let a=new URLSearchParams;for(let[n,r]of Object.entries(t))r!==void 0&&r!==""&&a.set(n,String(r));let o=await fetch(`${e}${a.size?`?${a}`:""}`);if(!o.ok)throw new Error(`${e}: ${o.status}`);return o.json()}var sn={state:(e,t)=>Kg("/api/state",{limit:e,group:t}),run:e=>Kg(`/api/run/${e}`),history:e=>Kg("/api/history",e),stats:e=>Kg("/api/stats",{days:e})};var My=I(P(),1);function Rm(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var sR={};function Fa(e,t,a,o,n){if(!a&&!o&&!n&&!e)return Zg(t);let r=Zg(e);return t&&(r=Im(r,t)),a&&(r=Im(r,a)),o&&(r=Im(r,o)),n&&(r=Im(r,n)),r}function J1(e){if(e.length===0)return sR;if(e.length===1)return Zg(e[0]);let t=Zg(e[0]);for(let a=1;a<e.length;a+=1)t=Im(t,e[a]);return t}function Zg(e){return lR(e)?{...eM(e,sR)}:D4(e)}function Im(e,t){return lR(t)?eM(t,e):P4(e,t)}function D4(e){let t={...e};for(let a in t){let o=t[a];$1(a,o)&&(t[a]=tM(o))}return t}function P4(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=Rm(e.style,o);break}case"className":{e[a]=uR(e.className,o);break}default:$1(a,o)?e[a]=M4(e[a],o):e[a]=o}}return e}function $1(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return a===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function lR(e){return typeof e=="function"}function eM(e,t){return lR(e)?e(t):e??sR}function M4(e,t){return t?e?(...a)=>{let o=a[0];if(aM(o)){let r=o;Tm(r);let i=t(...a);return r.baseUIHandlerPrevented||e?.(...a),i}let n=t(...a);return e?.(...a),n}:tM(t):e}function tM(e){return e&&((...t)=>{let a=t[0];return aM(a)&&Tm(a),e(...t)})}function Tm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function uR(e,t){return t?e?t+" "+e:t:e}function aM(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function O4(e,t){return function(o,...n){let r=new URL(e);return r.searchParams.set("code",o.toString()),n.forEach(i=>r.searchParams.append("args[]",i)),`${t} error #${o}; visit ${r} for the full message.`}}var k4=O4("https://base-ui.com/production-error","Base UI"),ke=k4;var os=I(P(),1);var nM=I(P(),1),oM={};function Je(e,t){let a=nM.useRef(oM);return a.current===oM&&(a.current=e(t)),a}function ln(e,t,a,o){let n=Je(iM).current;return N4(n,e,t,a,o)&&sM(n,[e,t,a,o]),n.callback}function rM(e){let t=Je(iM).current;return B4(t,e)&&sM(t,e),t.callback}function iM(){return{callback:null,cleanup:null,refs:[]}}function N4(e,t,a,o,n){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==n}function B4(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function sM(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let r=t[n];if(r!=null)switch(typeof r){case"function":{let i=r(a);typeof i=="function"&&(o[n]=i);break}case"object":{r.current=a;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let r=t[n];if(r!=null)switch(typeof r){case"function":{let i=o[n];typeof i=="function"?i():r(null);break}case"object":{r.current=null;break}default:}}}}}}var uM=I(P(),1);var lM=I(P(),1),V4=parseInt(lM.version,10);function kc(e){return V4>=e}function cR(e){if(!uM.isValidElement(e))return null;let t=e,a=t.props;return(kc(19)?a?.ref:t.ref)??null}function Me(){}var So=Object.freeze([]),Ye=Object.freeze({});function cM(e,t){let a={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let r=t[o](n);r!=null&&Object.assign(a,r);continue}n===!0?a[`data-${o.toLowerCase()}`]="":n&&(a[`data-${o.toLowerCase()}`]=n.toString())}return a}function fM(e,t){return typeof e=="function"?e(t):e}function dM(e,t){return typeof e=="function"?e(t):e}var fR=I(P(),1);function Q(e,t,a={}){let o=t.render;a.enabled!==!1&&(o=U4(o));let n=F4(t,a,o);if(a.enabled===!1)return null;let r=a.state??Ye;return H4(e,o,n,r)}function F4(e,t,a){let{className:o,style:n}=e,{state:r=Ye,ref:i,props:s,stateAttributesMapping:l,enabled:u=!0}=t,c=u?fM(o,r):void 0,d=u?dM(n,r):void 0,f=u?cM(r,l):Ye,m=u&&s?_4(s):void 0,p=u?Rm(f,m)??{}:Ye;return typeof document<"u"&&(u?Array.isArray(i)?p.ref=rM([p.ref,cR(a),...i]):p.ref=ln(p.ref,cR(a),i):ln(null,null)),u?(c!==void 0&&(p.className=uR(p.className,c)),d!==void 0&&(p.style=Rm(p.style,d)),p):Ye}function _4(e){return Array.isArray(e)?J1(e):Fa(void 0,e)}var z4=Symbol.for("react.lazy");function U4(e){if(e?.$$typeof!==z4)return e;let t=os.Children.toArray(e)[0];return os.isValidElement(t)?t:e}function H4(e,t,a,o){if(t){if(typeof t=="function")return t(a,o);let n=Fa(a,t.props);return n.ref=a.ref,os.cloneElement(t,n)}if(e&&typeof e=="string")return q4(e,a);throw new Error(ke(8))}function q4(e,t){return e==="button"?(0,fR.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,fR.createElement)("img",{alt:"",...t,key:t.key}):os.createElement(e,t)}function mM(e){return Q(e.defaultTagName??"div",e,e)}function pM(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=pM(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function Qg(){for(var e,t,a=0,o="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=pM(e))&&(o&&(o+=" "),o+=t);return o}var hM=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gM=Qg,Nc=(e,t)=>a=>{var o;if(t?.variants==null)return gM(e,a?.class,a?.className);let{variants:n,defaultVariants:r}=t,i=Object.keys(n).map(u=>{let c=a?.[u],d=r?.[u];if(c===null)return null;let f=hM(c)||hM(d);return n[u][f]}),s=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[y,b]=p;return Array.isArray(b)?b.includes({...r,...s}[y]):{...r,...s}[y]===b})?[...u,d,f]:u},[]);return gM(e,i,l,a?.class,a?.className)};var G4=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},j4=(e,t)=>({classGroupId:e,validator:t}),CM=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var xM=[],X4="arbitrary..",Y4=e=>{let t=K4(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return W4(i);let s=i.split("-"),l=s[0]===""&&s.length>1?1:0;return LM(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let l=o[i],u=a[i];return l?u?G4(u,l):l:u||xM}return a[i]||xM}}},LM=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let n=e[t],r=a.nextPart.get(n);if(r){let u=LM(e,t+1,r);if(u)return u}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=i.length;for(let u=0;u<l;u++){let c=i[u];if(c.validator(s))return c.classGroupId}},W4=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?X4+o:void 0})(),K4=e=>{let{theme:t,classGroups:a}=e;return Z4(a,t)},Z4=(e,t)=>{let a=CM();for(let o in e){let n=e[o];mR(n,a,o,t)}return a},mR=(e,t,a,o)=>{let n=e.length;for(let r=0;r<n;r++){let i=e[r];Q4(i,t,a,o)}},Q4=(e,t,a,o)=>{if(typeof e=="string"){J4(e,t,a);return}if(typeof e=="function"){$4(e,t,a,o);return}e5(e,t,a,o)},J4=(e,t,a)=>{let o=e===""?t:RM(t,e);o.classGroupId=a},$4=(e,t,a,o)=>{if(t5(e)){mR(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(j4(a,e))},e5=(e,t,a,o)=>{let n=Object.entries(e),r=n.length;for(let i=0;i<r;i++){let[s,l]=n[i];mR(l,RM(t,s),a,o)}},RM=(e,t)=>{let a=e,o=t.split("-"),n=o.length;for(let r=0;r<n;r++){let i=o[r],s=a.nextPart.get(i);s||(s=CM(),a.nextPart.set(i,s)),a=s}return a},t5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,a5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),n=(r,i)=>{a[r]=i,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let i=a[r];if(i!==void 0)return i;if((i=o[r])!==void 0)return n(r,i),i},set(r,i){r in a?a[r]=i:n(r,i)}}};var o5=[],yM=(e,t,a,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:n}),n5=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=n=>{let r=[],i=0,s=0,l=0,u,c=n.length;for(let y=0;y<c;y++){let b=n[y];if(i===0&&s===0){if(b===":"){r.push(n.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}b==="["?i++:b==="]"?i--:b==="("?s++:b===")"&&s--}let d=r.length===0?n:n.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return yM(r,m,f,p)};if(t){let n=t+":",r=o;o=i=>i.startsWith(n)?r(i.slice(n.length)):yM(o5,!1,i,void 0,!0)}if(a){let n=o;o=r=>a({className:r,parseClassName:n})}return o},r5=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],n=[];for(let r=0;r<a.length;r++){let i=a[r],s=i[0]==="[",l=t.has(i);s||l?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},i5=e=>({cache:a5(e.cacheSize),parseClassName:n5(e),sortModifiers:r5(e),postfixLookupClassGroupIds:s5(e),...Y4(e)}),s5=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},l5=/\s+/,u5=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:r,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(l5),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:b}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let g=!!b,h;if(g){let L=y.substring(0,b);h=o(L);let C=h&&i[h]?o(y):void 0;C&&C!==h&&(h=C,g=!1)}else h=o(y);if(!h){if(!g){u=d+(u.length>0?" "+u:u);continue}if(h=o(y),!h){u=d+(u.length>0?" "+u:u);continue}g=!1}let x=m.length===0?"":m.length===1?m[0]:r(m).join(":"),S=p?x+"!":x,v=S+h;if(s.indexOf(v)>-1)continue;s.push(v);let R=n(h,g);for(let L=0;L<R.length;++L){let C=R[L];s.push(S+C)}u=d+(u.length>0?" "+u:u)}return u},c5=(...e)=>{let t=0,a,o,n="";for(;t<e.length;)(a=e[t++])&&(o=IM(a))&&(n&&(n+=" "),n+=o);return n},IM=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=IM(e[o]))&&(a&&(a+=" "),a+=t);return a},f5=(e,...t)=>{let a,o,n,r,i=l=>{let u=t.reduce((c,d)=>d(c),e());return a=i5(u),o=a.cache.get,n=a.cache.set,r=s,s(l)},s=l=>{let u=o(l);if(u)return u;let c=u5(l,a);return n(l,c),c};return r=i,(...l)=>r(c5(...l))},d5=[],na=e=>{let t=a=>a[e]||d5;return t.isThemeGetter=!0,t.themeKey=e,t},TM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,p5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h5=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,g5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,x5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ns=e=>m5.test(e),Ue=e=>!!e&&!Number.isNaN(Number(e)),sr=e=>!!e&&Number.isInteger(Number(e)),dR=e=>e.endsWith("%")&&Ue(e.slice(0,-1)),Wr=e=>p5.test(e),EM=()=>!0,S5=e=>h5.test(e)&&!g5.test(e),pR=()=>!1,b5=e=>x5.test(e),v5=e=>y5.test(e),C5=e=>!de(e)&&!me(e),L5=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),R5=e=>rs(e,PM,pR),de=e=>TM.test(e),Il=e=>rs(e,MM,S5),SM=e=>rs(e,M5,Ue),I5=e=>rs(e,kM,EM),T5=e=>rs(e,OM,pR),bM=e=>rs(e,AM,pR),w5=e=>rs(e,DM,v5),Jg=e=>rs(e,NM,b5),me=e=>wM.test(e),wm=e=>Tl(e,MM),E5=e=>Tl(e,OM),vM=e=>Tl(e,AM),A5=e=>Tl(e,PM),D5=e=>Tl(e,DM),$g=e=>Tl(e,NM,!0),P5=e=>Tl(e,kM,!0),rs=(e,t,a)=>{let o=TM.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Tl=(e,t,a=!1)=>{let o=wM.exec(e);return o?o[1]?t(o[1]):a:!1},AM=e=>e==="position"||e==="percentage",DM=e=>e==="image"||e==="url",PM=e=>e==="length"||e==="size"||e==="bg-size",MM=e=>e==="length",M5=e=>e==="number",OM=e=>e==="family-name",kM=e=>e==="number"||e==="weight",NM=e=>e==="shadow";var O5=()=>{let e=na("color"),t=na("font"),a=na("text"),o=na("font-weight"),n=na("tracking"),r=na("leading"),i=na("breakpoint"),s=na("container"),l=na("spacing"),u=na("radius"),c=na("shadow"),d=na("inset-shadow"),f=na("text-shadow"),m=na("drop-shadow"),p=na("blur"),y=na("perspective"),b=na("aspect"),g=na("ease"),h=na("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...S(),me,de],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],C=()=>[me,de,l],T=()=>[ns,"full","auto",...C()],w=()=>[sr,"none","subgrid",me,de],A=()=>["auto",{span:["full",sr,me,de]},sr,me,de],N=()=>[sr,"auto",me,de],D=()=>["auto","min","max","fr",me,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],k=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],H=()=>[ns,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],O=()=>[s,ns,"screen","full","dvw","lvw","svw","min","max","fit",...C()],B=()=>[ns,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],E=()=>[e,me,de],q=()=>[...S(),vM,bM,{position:[me,de]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",A5,R5,{size:[me,de]}],M=()=>[dR,wm,Il],z=()=>["","none","full",u,me,de],_=()=>["",Ue,wm,Il],$=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Ue,dR,vM,bM],se=()=>["","none",p,me,de],ge=()=>["none",Ue,me,de],ee=()=>["none",Ue,me,de],te=()=>[Ue,me,de],ye=()=>[ns,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wr],breakpoint:[Wr],color:[EM],container:[Wr],"drop-shadow":[Wr],ease:["in","out","in-out"],font:[C5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wr],shadow:[Wr],spacing:["px",Ue],text:[Wr],"text-shadow":[Wr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ns,de,me,b]}],container:["container"],"container-type":[{"@container":["","normal","size",me,de]}],"container-named":[L5],columns:[{columns:[Ue,"auto",de,me,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[sr,"auto",me,de]}],basis:[{basis:[ns,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,ns,"auto","initial","none",de]}],grow:[{grow:["",Ue,me,de]}],shrink:[{shrink:["",Ue,me,de]}],order:[{order:[sr,"first","last","none",me,de]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...k(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...k(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...k(),"baseline"]}],"place-self":[{"place-self":["auto",...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...B()]}],"min-block-size":[{"min-block":["auto",...B()]}],"max-block-size":[{"max-block":["none",...B()]}],w:[{w:[s,"screen",...H()]}],"min-w":[{"min-w":[s,"screen","none",...H()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh","none",...H()]}],"font-size":[{text:["base",a,wm,Il]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,P5,I5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dR,de]}],"font-family":[{font:[E5,T5,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,me,de]}],"line-clamp":[{"line-clamp":[Ue,"none",me,SM]}],leading:[{leading:["none",r,...C()]}],"list-image":[{"list-image":["none",me,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",me,Il]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Ue,"auto",me,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[sr,me,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sr,me,de],radial:["",me,de],conic:["",sr,me,de]},D5,w5]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-bs":[{"border-bs":_()}],"border-w-be":[{"border-be":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,me,de]}],"outline-w":[{outline:["",Ue,wm,Il]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","inner","none",c,$g,Jg]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,$g,Jg]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Ue,Il]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",f,$g,Jg]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Ue,me,de]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[me,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,de]}],filter:[{filter:["","none",me,de]}],blur:[{blur:se()}],brightness:[{brightness:[Ue,me,de]}],contrast:[{contrast:[Ue,me,de]}],"drop-shadow":[{"drop-shadow":["","none",m,$g,Jg]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Ue,me,de]}],"hue-rotate":[{"hue-rotate":[Ue,me,de]}],invert:[{invert:["",Ue,me,de]}],saturate:[{saturate:[Ue,me,de]}],sepia:[{sepia:["",Ue,me,de]}],"backdrop-filter":[{"backdrop-filter":["","none",me,de]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,me,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,me,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,me,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,me,de]}],"backdrop-invert":[{"backdrop-invert":["",Ue,me,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,me,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,me,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,me,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",me,de]}],ease:[{ease:["linear","initial",g,me,de]}],delay:[{delay:[Ue,me,de]}],animate:[{animate:["none",h,me,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,me,de]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[me,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],zoom:[{zoom:[sr,me,de]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,de]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Ue,wm,Il,SM]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var BM=f5(O5);function re(...e){return BM(Qg(e))}var k5=Nc("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function ex({className:e,variant:t="default",render:a,...o}){return mM({defaultTagName:"span",props:Fa({className:re(k5({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}var Kr=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),Zr=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),un=e=>`$${e.toFixed(2)}`;function VM(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function FM(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var _M={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)"};var wl=I(Z(),1);function Bc({worker:e,backend:t,model:a}){let o=e?FM(e):{backend:t??"",model:a};return(0,wl.jsxs)(ex,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,wl.jsx)("span",{className:"size-1.5 rounded-full",style:{background:_M[o.backend]??"var(--muted-foreground)"}}),o.backend,o.model&&(0,wl.jsx)("span",{className:"font-normal text-muted-foreground",children:o.model.split("/").pop()})]})}function ax({verdict:e}){let t=/PASS/.test(e)&&/APPROVED/.test(e),a=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,wl.jsx)(ex,{className:re("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:a})}function ox({children:e,tone:t}){return(0,wl.jsx)(ex,{variant:"secondary",className:re(t==="good"&&"bg-success/10 text-success"),children:e})}var fp=I(Z(),1),gr=I(P(),1);var qM=I(P(),1),Vc=(0,qM.createContext)({});var GM=I(P(),1);function is(e){let t=(0,GM.useRef)(null);return t.current===null&&(t.current=e()),t.current}var nx=I(P(),1);var jM=typeof window<"u";var ss=jM?nx.useLayoutEffect:nx.useEffect;var T0=I(Z(),1),fN=I(P(),1),Ss=I(P(),1);var XM=I(P(),1),ls=(0,XM.createContext)(null);var uN=I(Z(),1);function El(e,t){e.indexOf(t)===-1&&e.push(t)}function us(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var ra=(e,t,a)=>a>t?t:a<e?e:a;var Qr=()=>{},bo=()=>{};var Aa={};var Al=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Em=e=>typeof e=="object"&&e!==null;var Dl=e=>/^0[^.\s]+$/u.test(e);function Am(e){let t;return()=>(t===void 0&&(t=e()),t)}var zt=e=>e;var Nn=(...e)=>e.reduce((t,a)=>o=>a(t(o)));var lr=(e,t,a)=>{let o=t-e;return o?(a-e)/o:1};var ur=class{constructor(){this.subscriptions=[]}add(t){return El(this.subscriptions,t),()=>this.remove(t)}remove(t){us(this.subscriptions,t)}notify(t,a,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,a,o);else for(let r=0;r<n;r++){let i=this.subscriptions[r];i&&i(t,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Zt=e=>e*1e3,ma=e=>e/1e3;var Dm=(e,t)=>t?e*(1e3/t):0;var YM=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,V5=1e-7,F5=12;function _5(e,t,a,o,n){let r,i,s=0;do i=t+(a-t)/2,r=YM(i,o,n)-e,r>0?a=i:t=i;while(Math.abs(r)>V5&&++s<F5);return i}function cs(e,t,a,o){if(e===t&&a===o)return zt;let n=r=>_5(r,0,1,e,a);return r=>r===0||r===1?r:YM(n(r),t,o)}var rx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var ix=e=>t=>1-e(1-t);var sx=cs(.33,1.53,.69,.99),Fc=ix(sx),Pm=rx(Fc);var Mm=e=>e>=1?1:(e*=2)<1?.5*Fc(e):.5*(2-Math.pow(2,-10*(e-1)));var Om=e=>1-Math.sin(Math.acos(e)),km=ix(Om),Nm=rx(Om);var hR=cs(.42,0,1,1),gR=cs(0,0,.58,1),_c=cs(.42,0,.58,1);var xR=e=>Array.isArray(e)&&typeof e[0]!="number";var Bm=e=>Array.isArray(e)&&typeof e[0]=="number";var WM={linear:zt,easeIn:hR,easeInOut:_c,easeOut:gR,circIn:Om,circInOut:Nm,circOut:km,backIn:Fc,backInOut:Pm,backOut:sx,anticipate:Mm},z5=e=>typeof e=="string",lx=e=>{if(Bm(e)){bo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,a,o,n]=e;return cs(t,a,o,n)}else if(z5(e))return bo(WM[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),WM[e];return e};var vt={delta:0,timestamp:0,isProcessing:!1};var ux;function U5(){ux=void 0}var dt={now:()=>(ux===void 0&&dt.set(vt.isProcessing||Aa.useManualTiming?vt.timestamp:performance.now()),ux),set:e=>{ux=e,queueMicrotask(U5)}};var cr=e=>Math.round(e*1e5)/1e5;var KM=e=>t=>typeof t=="string"&&t.startsWith(e),cx=KM("--"),H5=KM("var(--"),zc=e=>H5(e)?q5.test(e.split("/*")[0].trim()):!1,q5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var fr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jr={...fr,transform:e=>ra(0,1,e)},Vm={...fr,default:1};var Uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZM(e){return e==null}var QM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Hc=(e,t)=>a=>!!(typeof a=="string"&&QM.test(a)&&a.startsWith(e)||t&&!ZM(a)&&Object.prototype.hasOwnProperty.call(a,t)),fx=(e,t,a)=>o=>{if(typeof o!="string")return o;let[n,r,i,s]=o.match(Uc);return{[e]:parseFloat(n),[t]:parseFloat(r),[a]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var G5=e=>ra(0,255,e),SR={...fr,transform:e=>Math.round(G5(e))},dr={test:Hc("rgb","red"),parse:fx("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:o=1})=>"rgba("+SR.transform(e)+", "+SR.transform(t)+", "+SR.transform(a)+", "+cr(Jr.transform(o))+")"};function j5(e){let t="",a="",o="",n="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,a+=a,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var Fm={test:Hc("#"),parse:j5,transform:dr.transform};var _m=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),cn=_m("deg"),_a=_m("%"),ie=_m("px"),bR=_m("vh"),vR=_m("vw"),dx={..._a,parse:e=>_a.parse(e)/100,transform:e=>_a.transform(e*100)};var fs={test:Hc("hsl","hue"),parse:fx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(e)+", "+_a.transform(cr(t))+", "+_a.transform(cr(a))+", "+cr(Jr.transform(o))+")"};var Vt={test:e=>dr.test(e)||Fm.test(e)||fs.test(e),parse:e=>dr.test(e)?dr.parse(e):fs.test(e)?fs.parse(e):Fm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dr.transform(e):fs.transform(e),getAnimatableNone:e=>{let t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}};var JM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var eO=new RegExp(Uc.source),tO=new RegExp(JM.source,"i");function X5(e){return isNaN(e)&&typeof e=="string"&&(eO.test(e)||tO.test(e))}var aO="number",oO="color",Y5="var",W5="var(",$M="${}",K5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function nO(e){let t=e.toString();return eO.test(t)||tO.test(t)}function qc(e){let t=e.toString(),a=[],o={color:[],number:[],var:[]},n=[],r=0,s=t.replace(K5,l=>(Vt.test(l)?(o.color.push(r),n.push(oO),a.push(Vt.parse(l))):l.startsWith(W5)?(o.var.push(r),n.push(Y5),a.push(l)):(o.number.push(r),n.push(aO),a.push(parseFloat(l))),++r,$M)).split($M);return{values:a,split:s,indexes:o,types:n}}function Z5(e){return qc(e).values}function rO({split:e,types:t}){let a=e.length;return o=>{let n="";for(let r=0;r<a;r++)if(n+=e[r],o[r]!==void 0){let i=t[r];i===aO?n+=cr(o[r]):i===oO?n+=Vt.transform(o[r]):n+=o[r]}return n}}function Q5(e){return rO(qc(e))}var J5=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e,$5=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:J5(e);function eG(e){let t=qc(e);return rO(t)(t.values.map((o,n)=>$5(o,t.split[n])))}var Ut={test:X5,parse:Z5,createTransformer:Q5,getAnimatableNone:eG};function CR(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function iO({hue:e,saturation:t,lightness:a,alpha:o}){e/=360,t/=100,a/=100;let n=0,r=0,i=0;if(!t)n=r=i=a;else{let s=a<.5?a*(1+t):a+t-a*t,l=2*a-s;n=CR(l,s,e+1/3),r=CR(l,s,e),i=CR(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(r*255),blue:Math.round(i*255),alpha:o}}function Gc(e,t){return a=>a>0?t:e}var Fe=(e,t,a)=>e+(t-e)*a;var LR=(e,t,a)=>{let o=e*e,n=a*(t*t-o)+o;return n<0?0:Math.sqrt(n)},tG=[Fm,dr,fs],aG=e=>tG.find(t=>t.test(e));function sO(e){let t=aG(e);if(!t)return Qr(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let a=t.parse(e);return t===fs&&(a=iO(a)),a}var RR=(e,t)=>{let a=sO(e),o=sO(t);if(!a||!o)return Gc(e,t);let n={...a};return r=>(n.red=LR(a.red,o.red,r),n.green=LR(a.green,o.green,r),n.blue=LR(a.blue,o.blue,r),n.alpha=Fe(a.alpha,o.alpha,r),dr.transform(n))};var mx=new Set(["none","hidden"]);function lO(e,t){return mx.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function oG(e,t){return a=>Fe(e,t,a)}function px(e){return typeof e=="number"?oG:typeof e=="string"?zc(e)?Gc:Vt.test(e)?RR:iG:Array.isArray(e)?uO:typeof e=="object"?Vt.test(e)?RR:nG:Gc}function uO(e,t){let a=[...e],o=a.length,n=e.map((r,i)=>px(r)(r,t[i]));return r=>{for(let i=0;i<o;i++)a[i]=n[i](r);return a}}function nG(e,t){let a={...e,...t},o={};for(let n in a)e[n]!==void 0&&t[n]!==void 0&&(o[n]=px(e[n])(e[n],t[n]));return n=>{for(let r in o)a[r]=o[r](n);return a}}function rG(e,t){let a=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],i=e.indexes[r][o[r]],s=e.values[i]??0;a[n]=s,o[r]++}return a}var iG=(e,t)=>{let a=Ut.createTransformer(t),o=qc(e),n=qc(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?mx.has(e)&&!n.values.length||mx.has(t)&&!o.values.length?lO(e,t):Nn(uO(rG(o,n),n.values),a):(Qr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Gc(e,t))};var cO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function sG(e,t){let a=cO.exec(e);if(!a)return;let o=cO.exec(t);if(!o||a[2]!==o[2])return;let n=a[2],r=parseFloat(a[1]),i=parseFloat(o[1]);return s=>cr(Fe(r,i,s))+n}function jc(e,t,a){if(typeof e=="number"&&typeof t=="number"&&typeof a=="number")return Fe(e,t,a);if(typeof e=="string"&&typeof t=="string"){let n=sG(e,t);if(n)return n}return px(e)(e,t)}var zm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fO(e){let t=new Set,a=new Set,o=!1,n=!1,r=new Set,i={delta:0,timestamp:0,isProcessing:!1};function s(u){r.has(u)&&(a.add(u),e()),u(i)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&o?t:a;return c&&r.add(u),m.add(u),u},cancel:u=>{a.delete(u),r.delete(u)},process:u=>{if(i=u,o){n=!0;return}o=!0;let c=t;t=a,a=c,t.forEach(s),t.clear(),o=!1,n&&(n=!1,l.process(u))}};return l}var lG=40;function hx(e,t,a={delta:0,timestamp:0,isProcessing:!1}){let o=!1,n=!0,r=()=>o=!0,i=zm.reduce((x,S)=>(x[S]=fO(r),x),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=i,y=()=>{let x=Aa.useManualTiming,S=x?a.timestamp:performance.now();o=!1,x||(a.delta=n?1e3/60:Math.max(Math.min(S-a.timestamp,lG),1)),a.timestamp=S,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),p.process(a),a.isProcessing=!1,o&&t&&(n=!1,e(y))},b=()=>{o=!0,n=!0,a.isProcessing||e(y)};return{schedule:zm.reduce((x,S)=>{let v=i[S];return x[S]=(R,L=!1,C=!1)=>(o||b(),v.schedule(R,L,C)),x},{}),cancel:x=>{for(let S=0;S<zm.length;S++)i[zm[S]].cancel(x)},state:a,steps:i}}var{schedule:Ne,cancel:vo,steps:Um}=hx(typeof requestAnimationFrame<"u"?requestAnimationFrame:zt,!0,vt);var dO=e=>{let t=({timestamp:a})=>e(a);return{start:(a=!0)=>Ne.update(t,a),stop:()=>vo(t),now:()=>vt.isProcessing?vt.timestamp:dt.now()}};var gx=(e,t,a=10)=>{let o="",n=Math.max(Math.round(t/a),2);for(let r=0;r<n;r++)o+=Math.round(e(r/(n-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function Xc(e,t=50,a=2e4,o){let n=0,r=e.next(n);for(o?.push(r.value);!r.done&&n<a;)n+=t,r=e.next(n),o?.push(r.value);return n>=a?1/0:n}function mO(e,t=100,a){let o=a({...e,keyframes:[0,t]}),n=Math.min(Xc(o),2e4);return{type:"keyframes",ease:r=>o.next(n*r).value/t,duration:ma(n)}}var pa={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},pO=e=>e<0?1/Math.max(1+e,pa.minDamping):Math.max(1-e,pa.minDamping);function hO(e,t){if(!(e>1))return 1;let a=Math.sqrt(e*e-1),o=e-a,n=e+a,r=2*a*Math.exp(-t)*(1+t);return gO(i=>n*Math.exp(-o*i)-o*Math.exp(-n*i)-r,i=>Math.exp(-n*i)-Math.exp(-o*i),t)/t}function ER(e,t){return e*Math.sqrt(1-t*t)}var uG=12;function gO(e,t,a){let o=a;for(let n=1;n<uG;n++)o=o-e(o)/t(o);return o}var TR=.001;function cG({duration:e=pa.duration,bounce:t=pa.bounce}){let a,o;Qr(e<=Zt(pa.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let n=pO(t);e=ra(pa.minDuration,pa.maxDuration,ma(e)),n<1?(a=u=>{let c=u*n,d=c*e,f=ER(u,n),m=Math.exp(-d);return TR-c/f*m},o=u=>{let d=u*n*e,f=n*n*u*u*e,m=Math.exp(-d),p=ER(u*u,n);return(-a(u)+TR>0?-1:1)*-f*m/p}):(a=u=>{let c=Math.exp(-u*e),d=u*e+1;return-TR+c*d},o=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let r=5/e,i=gO(a,o,r),s=i*hO(n,i*e),l=s*s;return{stiffness:l,damping:n*2*Math.sqrt(l),duration:Zt(e)}}var AR=(e,t)=>(t?e>=0:e>0)&&e<1/0;function wR(e,t){if(AR(e,t))return e}function fG(e){let t=wR(e.stiffness),a=wR(e.damping,!0),o=wR(e.mass),n={...e,stiffness:t??pa.stiffness,damping:a??pa.damping,mass:o??pa.mass,isResolvedFromDuration:!1,isTimeDefined:(t??a??o)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(n.isTimeDefined){if(e.visualDuration){let r=pO(e.bounce||0),i=2*Math.PI/(e.visualDuration*1.2)*hO(r,2*Math.PI/1.2);n.stiffness=i*i,n.damping=2*r*Math.sqrt(n.stiffness)}else Object.assign(n,cG(n)),n.isResolvedFromDuration=!0;(!AR(n.stiffness)||!AR(n.damping,!0))&&(n.stiffness=pa.stiffness,n.damping=pa.damping)}return n}function Yc(e=pa.visualDuration,t=pa.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,o=a.keyframes[0],n=a.keyframes[a.keyframes.length-1],r={done:!1,value:o},{stiffness:i,damping:s,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=fG({...a}),f=L=>d?0:-ma(L),m=s/(2*Math.sqrt(i*l)),p=ma(Math.sqrt(i/l)),y=m*p,b={target:n,delta:n-o,velocity:f(a.velocity||0)||0,restSpeed:0,restDelta:0},g=()=>{let L=Math.abs(b.delta)<5;b.restSpeed=a.restSpeed||(L?pa.restSpeed.granular:pa.restSpeed.default),b.restDelta=a.restDelta||(L?pa.restDelta.granular:pa.restDelta.default)};g();let h,x,S;if(m<1){let L=ER(p,m),C={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{C.A=(b.velocity+y*b.delta)/L,C.sinC=y*C.A+b.delta*L,C.cosC=y*b.delta-C.A*L};let T=w=>{w!==C.t&&(C.t=w,C.env=Math.exp(-y*w),C.sin=Math.sin(L*w),C.cos=Math.cos(L*w))};h=w=>(T(w),b.target-C.env*(C.A*C.sin+b.delta*C.cos)),x=w=>(T(w),C.env*(C.sinC*C.sin+C.cosC*C.cos))}else if(m===1){h=C=>b.target-Math.exp(-p*C)*(b.delta+(b.velocity+p*b.delta)*C);let L={C:0};S=()=>{L.C=b.velocity+p*b.delta},x=C=>Math.exp(-p*C)*(p*L.C*C-b.velocity)}else{let L=p*Math.sqrt(m*m-1),C=y-L,T=y+L,w=d?1/0:300/L,A=(D,V)=>Math.exp(V>w?-D*w-y*(V-w):-D*V),N={S:0,F:0};S=()=>{let D=(b.velocity+y*b.delta)/L;N.S=(b.delta+D)/2,N.F=(b.delta-D)/2},h=D=>b.target-N.S*A(C,D)-N.F*A(T,D),x=D=>C*N.S*A(C,D)+T*N.F*A(T,D)}S();let v=c&&u||null,R={calculatedDuration:v,retarget:(L,C)=>{b.target=L[L.length-1],b.delta=b.target-L[0],b.velocity=f(C),a.restSpeed&&a.restDelta||g(),R.calculatedDuration=v,r.done=!1,S()},velocity:L=>Zt(x(L)),next:L=>{let C=h(L);if(c)r.done=L>=u;else{let T=Zt(x(L));r.done=Math.abs(T)<=b.restSpeed&&Math.abs(b.target-C)<=b.restDelta}return r.value=r.done?b.target:C,r},toString:()=>{let L=Math.min(Xc(R),2e4),C=gx(T=>R.next(L*T).value,L,30);return L+"ms "+C},toTransition:()=>{}};return R}Yc.applyToOptions=e=>{let t=mO(e,100,Yc);return e.ease=t.ease,e.duration=Zt(t.duration),e.type="keyframes",e};function Hm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=L=>L<s||L>l,p=L=>s===void 0?l:l===void 0||Math.abs(s-L)<Math.abs(l-L)?s:l,y=a*t,b=d+y,g=i===void 0?b:i(b);g!==b&&(y=g-d);let h=L=>-y*Math.exp(-L/o),x=L=>{let C=h(L);f.done=Math.abs(C)<=u,f.value=f.done?g:g+C},S,v,R=L=>{m(f.value)&&(S=L,v=Yc({keyframes:[f.value,p(f.value)],velocity:-h(L)/o*1e3,damping:n,stiffness:r,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:L=>{let C=!1;return!v&&S===void 0&&(C=!0,x(L),R(L)),S!==void 0&&L>=S?v.next(L-S):(!C&&x(L),f)}}}function dG(e,t,a){let o=[],n=a||Aa.mix||jc,r=e.length-1;for(let i=0;i<r;i++){let s=n(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||zt:t;s=Nn(l,s)}o.push(s)}return o}function xO(e,t,{clamp:a=!0,ease:o,mixer:n}={}){let r=e.length;if(bo(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=dG(t,o,n),l=s.length,u=c=>{if(i&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=lr(e[d],e[d+1],c);return s[d](f)};return a?c=>u(ra(e[0],e[r-1],c)):u}function yO(e,t){let a=e[e.length-1];for(let o=1;o<=t;o++){let n=lr(0,t,o);e.push(Fe(a,1,n))}}function SO(e){let t=[0];return yO(t,e.length-1),t}function bO(e,t){return e.map(a=>a*t)}function mG(e,t){return e.map(()=>t||_c).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:a,ease:o="easeInOut"}){let n=xR(o)?o.map(lx):lx(o)||_c,r={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(n)&&(!a||a.length!==2||a[0]===0&&a[1]===1)){let[l,u]=t,c=l===u?void 0:(Aa.mix||jc)(l,u);return{calculatedDuration:e,next:d=>(r.value=c?c(n(e>0?ra(0,1,d/e):1)):u,r.done=d>=e,r)}}let i=bO(a&&a.length===t.length?a:SO(t),e),s=xO(i,t,{ease:Array.isArray(n)?n:mG(t,n)});return{calculatedDuration:e,next:l=>(r.value=s(l),r.done=l>=e,r)}}var pG=5;function hG(e,t,a){let o=Math.max(t-pG,0);return Dm(a-e(o),t-o)}function vO(e,t,a=0){return t<=0?a:e.velocity?e.velocity(t):hG(o=>e.next(o).value,t,e.next(t).value)}var gG=e=>e!==null;function ds(e,{repeat:t,repeatType:a="loop"},o,n=1){let r=e.filter(gG),s=n<0||t&&a!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}var xG={decay:Hm,inertia:Hm,tween:Pl,keyframes:Pl,spring:Yc};function xx(e){typeof e.type=="string"&&(e.type=xG[e.type])}function CO(e,t){return{kind:e,animation:t,timestamp:dt.now(),frameTimestamp:vt.timestamp,frameIsProcessing:vt.isProcessing}}function yx(e,t,a){let o=globalThis.__MOTION_INSPECT__;if(o)try{o({...CO("animation-start",e),options:a?{...t,...a}:t})}catch{}}function LO(e,t){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...CO("layout-animation-start",e),node:t})}catch{}}var ms=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,a){return this.finished.then(t,a)}};var yG=e=>e/100,$r=class extends ms{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),yx(this,this.options)}initAnimation(){let{options:t}=this;xx(t);let{type:a=Pl,repeat:o=0,repeatDelay:n=0,repeatType:r,velocity:i=0}=t,{keyframes:s}=t,l=a||Pl;l!==Pl&&typeof s[0]!="number"&&(this.mixKeyframes=Nn(yG,jc(s[0],s[1])),s=[0,100]);let u=l(s===t.keyframes?t:{...t,keyframes:s});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Xc(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=u}updateTime(t){let a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){let{generator:o,totalDuration:n,mixKeyframes:r,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let x=this.currentTime,S=o;if(d){let C=Math.min(this.currentTime,n)/s,T=Math.floor(C),w=C%1;!w&&C>=1&&(w=1),w===1&&T--,T=Math.min(T,d+1),!!(T%2)&&(f==="reverse"?(w=1-w,m&&(w-=m/s)):f==="mirror"&&(S=i)),x=ra(0,1,w)*s}let v;h?(this.delayState.value=c[0],v=this.delayState):v=S.next(x),r&&!h&&(v.value=r(v.value));let{done:R}=v;!h&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return L&&p!==Hm&&(v.value=ds(c,this.options,b,this.speed)),y&&y(v.value),L&&this.finish(),v}then(t,a){return this.finished.then(t,a)}get duration(){return ma(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ma(t)}get time(){return ma(this.currentTime)}set time(t){t=Zt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return vO(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(dt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=ma(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=dO,startTime:a}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=a??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var SG=new Set(["brightness","contrast","saturate","opacity"]);function bG(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=a.match(Uc)||[];if(!o)return e;let n=a.replace(o,""),r=SG.has(t)?1:0;return o!==a&&(r*=100),t+"("+r+n+")"}var vG=/\b([a-z-]*)\(.*?\)/gu,qm={...Ut,getAnimatableNone:e=>{let t=e.match(vG);return t?t.map(bG).join(" "):e}};var Gm={...Ut,getAnimatableNone:e=>{let t=Ut.parse(e);return Ut.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var DR={...fr,transform:Math.round};var RO={rotate:cn,pathRotation:cn,rotateX:cn,rotateY:cn,rotateZ:cn,scale:Vm,scaleX:Vm,scaleY:Vm,scaleZ:Vm,skew:cn,skewX:cn,skewY:cn,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:Jr,originX:dx,originY:dx,originZ:ie};var Ml={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,...RO,zIndex:DR,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:DR};var CG={...Ml,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:qm,WebkitFilter:qm,mask:Gm,WebkitMask:Gm},Sx=e=>CG[e];var LG=new Set([qm,Gm]);function Wc(e,t){let a=Sx(e);return LG.has(a)||(a=Ut),a.getAnimatableNone?a.getAnimatableNone(t):void 0}function IO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ol=e=>e*180/Math.PI,PR=e=>{let t=Ol(Math.atan2(e[1],e[0]));return MR(t)},RG={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:PR,rotateZ:PR,skewX:e=>Ol(Math.atan(e[1])),skewY:e=>Ol(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},MR=e=>(e=e%360,e<0&&(e+=360),e),TO=PR,wO=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),EO=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),IG={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wO,scaleY:EO,scale:e=>(wO(e)+EO(e))/2,rotateX:e=>MR(Ol(Math.atan2(e[6],e[5]))),rotateY:e=>MR(Ol(Math.atan2(-e[2],e[0]))),rotateZ:TO,rotate:TO,skewX:e=>Ol(Math.atan(e[4])),skewY:e=>Ol(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function kl(e){return e.includes("scale")?1:0}function bx(e,t){if(!e||e==="none")return kl(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(a)o=IG,n=a;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=RG,n=s}if(!n)return kl(t);let r=o[t],i=n[1].split(",").map(TG);return typeof r=="function"?r(i):i[r]}var AO=(e,t)=>{let{transform:a="none"}=getComputedStyle(e);return bx(a,t)};function TG(e){return parseFloat(e.trim())}var mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Co=new Set([...mr,"pathRotation"]);var OR=e=>e===fr||e===ie,wG=new Set(["x","y","z"]),EG=mr.filter(e=>!wG.has(e));function PO(e){let t=[];return EG.forEach(a=>{let o=e.getValue(a);if(o!==void 0){let n=o.get(),r=a.startsWith("scale")?1:0;if(n===r)return;t.push([a,n]),o.set(r)}}),t}var MO=new Set(["bottom","right"]);function DO(e,t,a,o,n,r){let i=parseFloat(e);if(!isNaN(i))return i;let{min:s,max:l}=t()[a],u=l-s;return r==="border-box"?u:u-parseFloat(o)-parseFloat(n)}var ps={width:({width:e,paddingLeft:t="0",paddingRight:a="0",boxSizing:o},n)=>DO(e,n,"x",t,a,o),height:({height:e,paddingTop:t="0",paddingBottom:a="0",boxSizing:o},n)=>DO(e,n,"y",t,a,o),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:a}=t();return parseFloat(e)+(a.max-a.min)},right:({left:e},t)=>{let{x:a}=t();return parseFloat(e)+(a.max-a.min)},x:({transform:e})=>bx(e,"x"),y:({transform:e})=>bx(e,"y")};ps.translateX=ps.x;ps.translateY=ps.y;var Nl=new Set,kR=!1,NR=!1,BR=!1;function OO(){if(NR){let e=[],t=new Set,a=new Set;Nl.forEach(n=>{n.needsMeasurement&&(e.push(n),t.add(n.element),MO.has(n.name)&&a.add(n.element))});let o=new Map;a.forEach(n=>{let r=PO(n);r.length&&(o.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let r=o.get(n);r&&r.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}NR=!1,kR=!1,Nl.forEach(e=>e.complete(BR)),Nl.clear()}function kO(){Nl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(NR=!0)})}function NO(){BR=!0,kO(),OO(),BR=!1}function AG(e,t,a){if(typeof e=="string"){if(Al(e)||Dl(e))return parseFloat(e);if(!Ut.test(e)&&Ut.test(a))return Wc(t,a)}return e??void 0}var hs=class{constructor(t,a,o,n,r,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=n,this.element=r,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Nl.add(this),kR||(kR=!0,Ne.read(kO),Ne.resolveKeyframes(OO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:o,motionValue:n}=this;if(t[0]===null){let r=n?.get(),i=t[t.length-1];if(r!==void 0)t[0]=r;else if(o&&a){let s=AG(o.readValue(a,i),a,i);s!==void 0&&(t[0]=s)}t[0]===void 0&&(t[0]=i),n&&r===void 0&&n.set(t[0])}IO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Nl.delete(this)}cancel(){this.state==="scheduled"&&(Nl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var BO=e=>e.startsWith("--");function vx(e,t,a){BO(t)?e.style.setProperty(t,a):e.style[t]=a}var VO={};function Cx(e,t){let a=Am(e);return()=>VO[t]??a()}var FO=Cx(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Lx=Cx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Bl=([e,t,a,o])=>`cubic-bezier(${e}, ${t}, ${a}, ${o})`;var VR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bl([0,.65,.55,1]),circOut:Bl([.55,0,1,.45]),backIn:Bl([.31,.01,.66,-.59]),backOut:Bl([.33,1.53,.69,.99])};function FR(e,t){if(e)return typeof e=="function"?Lx()?gx(e,t):"ease-out":Bm(e)?Bl(e):Array.isArray(e)?e.map(a=>FR(a,t)||VR.easeOut):VR[e]}function _O(e,t,a,{delay:o=0,duration:n=300,repeat:r=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[t]:a};l&&(c.offset=l);let d=FR(s,n);Array.isArray(d)&&(c.easing=d);let f={delay:o,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:i==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Rx(e){return typeof e=="function"&&"applyToOptions"in e}function zO({type:e,...t}){return Rx(e)&&Lx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Kc=class extends ms{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:a,name:o,keyframes:n,pseudoElement:r,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=i,this.options=t,bo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=zO(t);this.animation=_O(a,o,n,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let c=ds(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(c),vx(a,o,c),this.animation.cancel()}l?.(),this.notifyFinished()},yx(this,t,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return ma(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ma(t)}get time(){return ma(Number(this.animation.currentTime)||0)}set time(t){let a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Zt(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&FO()?(this.animation.timeline=t,a?.(this.animation),zt):o(this)}};var UO={anticipate:Mm,backInOut:Pm,circInOut:Nm};function DG(e){return e in UO}function HO(e){typeof e.ease=="string"&&DG(e.ease)&&(e.ease=UO[e.ease])}var _R=10,Ix=class extends Kc{constructor(t){HO(t),xx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:a,onUpdate:o,onComplete:n,element:r,...i}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}let s=new $r({...i,autoplay:!1}),l=Math.max(_R,dt.now()-this.startTime),u=ra(0,_R,l-_R),c=s.sample(l).value,{name:d}=this.options;r&&d&&vx(r,d,c),a.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}};var zR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ut.test(e)||e==="0")&&!e.startsWith("url("));function PG(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function qO(e,t,a,o){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],i=zR(n,t),s=zR(r,t);return!i||!s?(i!==s&&Qr(!1,`You are trying to animate ${t} from "${n}" to "${r}". "${i?r:n}" is not an animatable value.`,"value-not-animatable"),!1):PG(e)||(a==="spring"||Rx(a))&&o}function jm(e){e.duration=0,e.type="keyframes"}var Xm=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var MG=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function GO(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&MG.test(e[t]))return!0;return!1}var jO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),OG=Am(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function XO(e){let{motionValue:t,name:a,repeatDelay:o,repeatType:n,damping:r,type:i,keyframes:s}=e;if(!a||!(Xm.has(a)||jO.has(a)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return OG()&&(Xm.has(a)||jO.has(a)&&GO(s))&&(a!=="transform"||!c)&&!u&&!o&&n!=="mirror"&&r!==0&&i!=="inertia"}var kG=40,Tx=class extends ms{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=dt.now();let{keyframes:a,name:o,motionValue:n,element:r}=t,i=t;i.autoplay??(i.autoplay=!0),i.delay??(i.delay=0),i.type??(i.type="keyframes"),i.repeat??(i.repeat=0),i.repeatDelay??(i.repeatDelay=0),i.repeatType??(i.repeatType="loop");let s=r?.KeyframeResolver||hs;this.keyframeResolver=new s(a,(l,u,c)=>this.onKeyframesResolved(l,u,i,!c),o,n,r),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,n){this.keyframeResolver=void 0;let{name:r,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:c}=o;this.resolvedAt=dt.now();let d=!0;qO(t,r,i,s)||(d=!1,(Aa.instantAnimations||!l)&&c?.(ds(t,o,a)),t[0]=t[t.length-1],jm(o),o.repeat=0);let f=n?this.resolvedAt?this.resolvedAt-this.createdAt>kG?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=o;o.startTime??(o.startTime=f),o.finalKeyframe=a,o.keyframes=t,o.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&XO(o),y;if(p){o.element=o.motionValue?.owner?.current;try{y=new Ix(o)}catch{y=new $r(o)}}else y=new $r(o);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),NO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function wx(e,t,a,o=0,n=1){let r=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),i=e.size,s=(i-1)*o;return typeof a=="function"?a(r,i):n===1?r*o:s-r*o}var YO=30,NG=e=>!isNaN(parseFloat(e)),WO={current:void 0},UR=class{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=dt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){var o;return t==="change"?this.onChangeSubscribe(a):((o=this.events)[t]||(o[t]=new ur)).add(a)}onChangeSubscribe(t){let{events:a}=this;return!a.change&&!this.changeSubscriber?this.changeSubscriber=t:(a.change||(a.change=new ur,a.change.add(this.changeSubscriber),this.changeSubscriber=void 0),a.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:a.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){Ne.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:a}=this;a?a(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return WO.current&&WO.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>YO)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,YO);return Dm(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0;let o=!1,n;n=t(()=>{o=!0,this.events.animationComplete?.notify(),this.animation===n&&this.clearAnimation(),a()}),o||(this.animation=n),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Bn(e,t){return new UR(e,t)}function Vl(e,t){if(e?.inherit&&t){let{inherit:a,...o}=e;return{...t,...o}}return e}function Zc(e,t){let a=e?.[t]??e?.default??e;return a!==e?Vl(a,e):a}var BG={type:"spring",stiffness:500,damping:25,restSpeed:10},VG=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FG={type:"keyframes",duration:.8},_G={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},KO=(e,{keyframes:t})=>t.length>2?FG:Co.has(e)?e.startsWith("scale")?VG(t[1]):BG:_G;var zG=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ZO(e){for(let t in e)if(!zG.has(t))return!0;return!1}var Fl=(e,t,a,o={},n,r)=>i=>{let s=Zc(o,e)||{},l=s.delay||o.delay||0,{elapsed:u=0}=o;u=u-Zt(l);let c={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:r?void 0:n};ZO(s)||Object.assign(c,KO(e,c)),c.duration&&(c.duration=Zt(c.duration)),c.repeatDelay&&(c.repeatDelay=Zt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(jm(c),c.delay===0&&(d=!0)),(Aa.instantAnimations||Aa.skipAnimations||n?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jm(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!r&&t.get()!==void 0){let f=ds(c.keyframes,s);if(f!==void 0){Ne.update(()=>{c.onUpdate(f),c.onComplete()});return}}return s.isSync?new $r(c):new Tx(c)};var UG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HG(e){let t=UG.exec(e);if(!t)return[,];let[,a,o,n]=t;return[`--${a??o}`,n]}var qG=4;function HR(e,t,a=1){bo(a<=qG,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=HG(e);if(!o)return;let r=window.getComputedStyle(t).getPropertyValue(o);if(r){let i=r.trim();return Al(i)?parseFloat(i):i}return zc(n)?HR(n,t,a+1):n}function QO(e){let t=[{},{}];return e?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function _l(e,t,a,o){if(typeof t=="function"){let[n,r]=QO(o);t=t(a!==void 0?a:e.custom,n,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,r]=QO(o);t=t(a!==void 0?a:e.custom,n,r)}return t}function Uo(e,t,a){let o=e.getProps();return _l(o,t,a!==void 0?a:o.custom,e)}var Ex=new Set(["width","height","top","left","right","bottom",...mr]);var Ym=e=>Array.isArray(e);function GG(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Bn(a))}function jG(e){return Ym(e)?e[e.length-1]||0:e}function JO(e,t){let a=Uo(e,t),{transitionEnd:o={},transition:n={},...r}=a||{};r={...r,...o};for(let i in r){let s=jG(r[i]);GG(e,i,s)}}var ut=e=>!!(e&&e.getVelocity);function $O(e){return!!(ut(e)&&e.add)}function Qc(e,t){let a=e.getValue("willChange");if($O(a))return a.add(t);if(!a&&Aa.WillChange){let o=new Aa.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Jc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var ek="framerAppearId",Wm="data-"+Jc(ek);function Ax(e){return e.props[Wm]}var XG=typeof window<"u";function YG({protectedKeys:e,needsAnimating:t},a){let o=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function Dx(e,t,{delay:a=0,transitionOverride:o,type:n}={}){let{transition:r,transitionEnd:i,...s}=t,l=e.getDefaultTransition();r=r?Vl(r,l):l;let u=r?.reduceMotion,c=r?.skipAnimations;o&&(r=o);let d=[],f=n&&e.animationState&&e.animationState.getState()[n],m=r?.path;m&&m.animateVisualElement(e,s,r,a,d);for(let p in s){let y=e.getValue(p,e.latestValues[p]??null),b=s[p];if(b===void 0||f&&YG(f,p))continue;let g={delay:a,...Zc(r||{},p)};c&&(g.skipAnimations=!0);let h=y.get();if(h!==void 0&&!y.isAnimating()&&!Array.isArray(b)&&b===h&&!g.velocity){Ne.update(()=>y.set(b));continue}let x=!1;if(XG&&window.MotionHandoffAnimation){let R=Ax(e);if(R){let L=window.MotionHandoffAnimation(R,p,Ne);L!==null&&(g.startTime=L,x=!0)}}Qc(e,p);let S=u??e.shouldReduceMotion;y.start(Fl(p,y,b,S&&Ex.has(p)?{type:!1}:g,e,x));let v=y.animation;v&&d.push(v)}if(i){let p=()=>Ne.update(()=>{i&&JO(e,i)});d.length?Promise.all(d).then(p):p()}return d}function Px(e,t,a={}){let o=Uo(e,t,a.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(n=a.transitionOverride);let r=o?()=>Promise.all(Dx(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=n;return WG(e,t,l,u,c,d,a)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,u]=s==="beforeChildren"?[r,i]:[i,r];return l().then(()=>u())}else return Promise.all([r(),i(a.delay)])}function WG(e,t,a=0,o=0,n=0,r=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(Px(l,t,{...i,delay:a+(typeof o=="function"?0:o)+wx(e.variantChildren,l,o,n,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function tk(e,t,a={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(r=>Px(e,r,a));o=Promise.all(n)}else if(typeof t=="string")o=Px(e,t,a);else{let n=typeof t=="function"?Uo(e,t,a.custom):t;o=Promise.all(Dx(e,n,a))}return o.then(()=>{e.notify("AnimationComplete",t)})}var ak={test:e=>e==="auto",parse:e=>e};var ok=e=>t=>t.test(e);var KG=[fr,ie,_a,cn,vR,bR,ak],qR=e=>KG.find(ok(e));function nk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dl(e):!0}var ZG=new Set(["auto","none","0"]);function rk(e,t,a){let o=0,n;for(;o<e.length&&!n;){let r=e[o];typeof r=="string"&&!ZG.has(r)&&nO(r)&&(n=e[o]),o++}if(n&&a)for(let r of t)e[r]!==n&&(e[r]=Wc(a,n))}var Mx=class extends hs{constructor(t,a,o,n,r){super(t,a,o,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),zc(d))){let f=HR(d,a.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ex.has(o)||t.length!==2)return;let[n,r]=t;if(typeof n=="number"&&typeof r=="number")return;let i=qR(n),s=qR(r),l=yR(n),u=yR(r);if(l!==u&&ps[o]){this.needsMeasurement=!0;return}if(i!==s)if(OR(i)&&OR(s))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else ps[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,o=[];for(let n=0;n<t.length;n++)(t[n]===null||nk(t[n]))&&o.push(n);o.length&&rk(t,o,a)}measure(){let{element:t,name:a}=this;return ps[a](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),a[0]=this.measuredOrigin;let n=a[a.length-1];n!==void 0&&this.motionValue?.jump(n,!1)}measureEndState(){let{element:t,unresolvedKeyframes:a}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let o=a.length-1,n=a[o];a[o]=this.measure(),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([r,i])=>{t.getValue(r).set(i)}),this.resolveNoneKeyframes()}};var Km=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function zl(e){return Em(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function $c(e){return Em(e)&&"ownerSVGElement"in e}var Zm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ox(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=a?.[e]??o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(o=>o!=null)}var QG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JG=mr.length;function ik(e,t,a){let o="",n=!0;for(let i=0;i<JG;i++){let s=mr[i],l=e[s];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(s.startsWith("scale")?1:0);else{let c=parseFloat(l);u=s.startsWith("scale")?c===1:c===0}if(!u||a){let c=Zm(l,Ml[s]);if(!u){n=!1;let d=QG[s]||s;o+=`${d}(${c}) `}a&&(t[s]=c)}}let r=e.pathRotation;return r&&(n=!1,o+=`rotate(${Zm(r,Ml.pathRotation)}) `),o=o.trim(),a?o=a(t,n?"":o):n&&(o="none"),o}function Ul(e,t,a){let{style:o,vars:n,transformOrigin:r}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(Co.has(l)){i=!0;continue}else if(cx(l)){n[l]=u;continue}else{let c=Zm(u,Ml[l]);l.startsWith("origin")?(s=!0,r[l]=c):o[l]=c}}if(t.transform||(i||a?o.transform=ik(t,e.transform,a):o.transform&&(o.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;o.transformOrigin=`${l} ${u} ${c}`}}var $G={offset:"stroke-dashoffset",array:"stroke-dasharray"},e6={offset:"strokeDashoffset",array:"strokeDasharray"};function sk(e,t,a=1,o=0,n=!0){e.pathLength=1;let r=n?$G:e6;e[r.offset]=`${-o}`,e[r.array]=`${t} ${a}`}var GR=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Qm(e,{attrX:t,attrY:a,attrScale:o,pathLength:n,pathSpacing:r=1,pathOffset:i=0,...s},l,u,c){if(Ul(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of GR)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),a!==void 0&&(d.y=a),o!==void 0&&(d.scale=o),n!==void 0&&sk(d,n,r,i,!1)}function Jm({top:e,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:e,max:o}}}function jR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XR(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function YR(e){return e===void 0||e===1}function kx({scale:e,scaleX:t,scaleY:a}){return!YR(e)||!YR(t)||!YR(a)}function ei(e){return kx(e)||WR(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function WR(e){return lk(e.x)||lk(e.y)}function lk(e){return e&&e!=="0%"}function $m(e,t,a){let o=e-a,n=t*o;return a+n}function uk(e,t,a,o,n){return n!==void 0&&(e=$m(e,n,o)),$m(e,a,o)+t}function KR(e,t=0,a=1,o,n){e.min=uk(e.min,t,a,o,n),e.max=uk(e.max,t,a,o,n)}function ZR(e,{x:t,y:a}){KR(e.x,t.translate,t.scale,t.originPoint),KR(e.y,a.translate,a.scale,a.originPoint)}var ck=.999999999999,fk=1.0000000000001;function pk(e,t,a,o=!1){let n=a.length;if(!n)return;t.x=t.y=1;let r,i;for(let s=0;s<n;s++){r=a[s],i=r.projectionDelta;let{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(fn(e.x,-r.scroll.offset.x),fn(e.y,-r.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,ZR(e,i)),o&&ei(r.latestValues)&&ep(e,r.latestValues,r.layout?.layoutBox))}t.x<fk&&t.x>ck&&(t.x=1),t.y<fk&&t.y>ck&&(t.y=1)}function fn(e,t){e.min+=t,e.max+=t}function dk(e,t,a,o,n=.5){let r=Fe(e.min,e.max,n);KR(e,t,a,r,o)}function mk(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ep(e,t,a){let o=a??e;dk(e.x,mk(t.x,o.x),t.scaleX,t.scale,t.originX),dk(e.y,mk(t.y,o.y),t.scaleY,t.scale,t.originY)}function Nx(e,t){return Jm(XR(e.getBoundingClientRect(),t))}function QR(e,t,a){let o=Nx(e,a),{scroll:n}=t;return n&&(fn(o.x,n.offset.x),fn(o.y,n.offset.y)),o}var{schedule:Hl,cancel:t6}=hx(queueMicrotask,!1);var dn={x:!1,y:!1};function Bx(){return dn.x||dn.y}function JR(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function Vx(e,t){let a=Ox(e),o=new AbortController,n={passive:!0,...t,signal:o.signal};return[a,n,()=>o.abort()]}function a6(e){return!(e.pointerType==="touch"||Bx())}function $R(e,t,a={}){let[o,n,r]=Vx(e,a);return o.forEach(i=>{let s=!1,l=!1,u,c=()=>{i.removeEventListener("pointerleave",p)},d=b=>{u&&(u(b),u=void 0),c()},f=b=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(b))},m=()=>{s=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},p=b=>{if(b.pointerType!=="touch"){if(s){l=!0;return}d(b)}},y=b=>{if(!a6(b))return;l=!1;let g=t(i,b);typeof g=="function"&&(u=g,i.addEventListener("pointerleave",p,n))};i.addEventListener("pointerenter",y,n),i.addEventListener("pointerdown",m,n)}),r}var e0=(e,t)=>t?e===t?!0:e0(e,t.parentElement):!1;var ql=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var o6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function t0(e){return o6.has(e.tagName)||e.isContentEditable===!0}var n6=new Set(["INPUT","SELECT","TEXTAREA"]);function a0(e){return n6.has(e.tagName)||e.isContentEditable===!0}var ef=new WeakSet;function hk(e){return t=>{t.key==="Enter"&&e(t)}}function o0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var gk=(e,t)=>{let a=e.currentTarget;if(!a)return;let o=hk(()=>{if(ef.has(a))return;o0(a,"down");let n=hk(()=>{o0(a,"up")}),r=()=>o0(a,"cancel");a.addEventListener("keyup",n,t),a.addEventListener("blur",r,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function xk(e){return ql(e)&&!Bx()}var yk=new WeakSet;function n0(e,t,a={}){let[o,n,r]=Vx(e,a),i=s=>{let l=s.currentTarget;if(!xk(s)||yk.has(s))return;ef.add(l),a.stopPropagation&&yk.add(s);let u=t(l,s),c={...n,capture:!0},d=(p,y)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),ef.has(l)&&ef.delete(l),xk(p)&&typeof u=="function"&&u(p,{success:y})},f=p=>{d(p,l===window||l===document||a.useGlobalTarget||e0(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return o.forEach(s=>{(a.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),zl(s)&&(s.addEventListener("focus",u=>gk(u,n)),!t0(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),r}var Fx=new WeakMap,_x,Sk=(e,t,a)=>(o,n)=>n&&n[0]?n[0][e+"Size"]:$c(o)&&"getBBox"in o?o.getBBox()[t]:o[a],r6=Sk("inline","width","offsetWidth"),i6=Sk("block","height","offsetHeight");function s6({target:e,borderBoxSize:t}){Fx.get(e)?.forEach(a=>{a(e,{get width(){return r6(e,t)},get height(){return i6(e,t)}})})}function l6(e){e.forEach(s6)}function u6(){typeof ResizeObserver>"u"||(_x=new ResizeObserver(l6))}function bk(e,t){_x||u6();let a=Ox(e);return a.forEach(o=>{let n=Fx.get(o);n||(n=new Set,Fx.set(o,n)),n.add(t),_x?.observe(o)}),()=>{a.forEach(o=>{let n=Fx.get(o);n?.delete(t),n?.size||_x?.unobserve(o)})}}var zx=new Set,tf;function c6(){tf=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zx.forEach(t=>t(e))},window.addEventListener("resize",tf)}function vk(e){return zx.add(e),tf||c6(),()=>{zx.delete(e),!zx.size&&typeof tf=="function"&&(window.removeEventListener("resize",tf),tf=void 0)}}function Ux(e,t){return typeof e=="function"?vk(e):bk(e,t)}var Gl={value:null,addProjectionMetrics:null};function Ck(e){return $c(e)&&e.tagName==="svg"}var r0=e=>typeof e=="number"?e:parseFloat(e);var i0=()=>({translate:0,scale:1,origin:0,originPoint:0}),gs=()=>({x:i0(),y:i0()}),s0=()=>({min:0,max:0}),wt=()=>({x:s0(),y:s0()});var Lk=new WeakMap;function ti(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pr(e){return typeof e=="string"||Array.isArray(e)}var Hx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],af=["initial",...Hx];function xs(e){if(ti(e.animate))return!0;for(let t=0;t<af.length;t++)if(pr(e[af[t]]))return!0;return!1}function tp(e){return!!(xs(e)||e.variants)}function Rk(e,t,a){for(let o in t){let n=t[o],r=a[o];if(ut(n))e.addValue(o,n);else if(ut(r))e.addValue(o,Bn(n,{owner:e}));else if(r!==n)if(e.hasValue(o)){let i=e.getValue(o);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(o);e.addValue(o,Bn(i!==void 0?i:n,{owner:e}))}}for(let o in a)t[o]===void 0&&e.removeValue(o);return t}var ys={current:null},jl={current:!1};var f6=typeof window<"u";function ap(){if(jl.current=!0,!!f6)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ys.current=e.matches;e.addEventListener("change",t),t()}else ys.current=!1}var Ik=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qx={};function np(e){qx=e}function l0(){return qx}var op=class{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=dt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ne.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=a.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=a,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=xs(a),this.isVariantNode=tp(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&ut(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,Lk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(jl.current||ap(),this.shouldReduceMotion=ys.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),vo(this.notifyUpdate),vo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&Xm.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:l,ease:u,duration:c}=a.accelerate,d=new Kc({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:Zt(c)}),f=i(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let o=Co.has(t);o&&this.onBindTransform&&this.onBindTransform();let n=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Ne.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{n(),r&&r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qx){let a=qx[t];if(!a)continue;let{isEnabled:o,Feature:n}=a;if(!this.features[t]&&n&&o(this.props)&&(this.features[t]=new n(this)),this.features[t]){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<Ik.length;o++){let n=Ik[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r="on"+n,i=t[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Rk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let o=this.values.get(t);if(a!==o){o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a);let n=a.get();n!==void 0&&(this.latestValues[t]=n)}}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=Bn(a??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Al(o)||Dl(o))?o=parseFloat(o):typeof o!="number"&&!Ut.test(o)&&Ut.test(a)&&(o=Wc(t,a)),this.setBaseTarget(t,ut(o)?o.get():o)),ut(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){let{initial:a}=this.props,o;if(typeof a=="string"||typeof a=="object"){let r=_l(this.props,a,this.presenceContext?.custom);r&&(o=r[t])}if(a&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ut(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new ur),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Hl.render(this.render)}};var of=class extends op{constructor(){super(...arguments),this.KeyframeResolver=Mx}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){let o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ut(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};var ia=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Gx(e,{style:t,vars:a},o,n){let r=e.style,i;for(i in t)r[i]=t[i];n?.applyProjectionStyles(r,o);for(i in a)r.setProperty(i,a[i])}var Xl={};function rp(e,{layout:t,layoutId:a}){return Co.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Xl[e]||e==="opacity")}function Yl(e,t,a){let o=e.style,n=t?.style,r={};if(!o)return r;for(let i in o)(ut(o[i])||n&&ut(n[i])||rp(i,e)||a?.getValue(i)?.liveStyle!==void 0)&&(r[i]=o[i]);return r}function d6(e){return window.getComputedStyle(e)}var ip=class extends of{constructor(){super(...arguments),this.type="html",this.renderInstance=Gx}mount(t){bo(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,a){if(Co.has(a))return this.projection?.isProjecting?kl(a):AO(t,a);{let o=d6(t),n=(cx(a)?o.getPropertyValue(a):o[a])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:a}){return Nx(t,a)}build(t,a,o){Ul(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return Yl(t,a,o)}};var jx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var sp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Tk(e,t,a,o){Gx(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(jx.has(n)?n:Jc(n),t.attrs[n])}function lp(e,t,a){let o=Yl(e,t,a);for(let n in e)if(ut(e[n])||ut(t[n])){let r=mr.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[r]=e[n]}return o}var up=class extends of{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(t,a){return Co.has(a)?super.getBaseTargetFromProps(t,a)??kl(a):t[a]}getDefaultValue(t){return Co.has(t)?this.latestValues[t]??kl(t):void 0}readValueFromInstance(t,a){if(Co.has(a)){let o=Sx(a);return o&&o.default||0}if(GR.includes(a)){let n=getComputedStyle(t)[a];if(typeof n=="string"&&n)return n.trim()}return a=jx.has(a)?a:Jc(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return lp(t,a,o)}build(t,a,o){Qm(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,n){Tk(t,a,o,n)}mount(t){this.isSVGTag=sp(t.tagName),super.mount(t)}};var m6=af.length;function u0(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?u0(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<m6;a++){let o=af[a],n=e.props[o];(pr(n)||n===!1)&&(t[o]=n)}return t}function c0(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let o=0;o<a;o++)if(t[o]!==e[o])return!1;return!0}var p6=[...Hx].reverse(),h6=Hx.length;function g6(e){return t=>Promise.all(t.map(({animation:a,options:o})=>tk(e,a,o)))}function f0(e){let t=g6(e),a=wk(),o=!0,n=!1,r=u=>(c,d)=>{let f=Uo(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...y}=f;c={...c,...y,...p}}return c};function i(u){t=u(e)}function s(u){let{props:c}=e,d=u0(e.parent)||{},f=[],m=new Set,p={},y=1/0;for(let g=0;g<h6;g++){let h=p6[g],x=a[h],S=c[h]!==void 0?c[h]:d[h],v=pr(S),R=h===u?x.isActive:null;R===!1&&(y=g);let L=S===d[h]&&S!==c[h]&&v;if(L&&(o||n)&&e.manuallyAnimateOnMount&&(L=!1),x.protectedKeys={...p},!x.isActive&&R===null||!S&&!x.prevProp||ti(S)||typeof S=="boolean")continue;if(h==="exit"&&x.isActive&&R!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}let C=Ek(x.prevProp,S),T=C||h===u&&x.isActive&&!L&&v||g>y&&v,w=!1,A=Array.isArray(S)?S:[S],N=A.reduce(r(h),{});R===!1&&(N={});let{prevResolvedValues:D={}}=x,V={...D,...N},k=O=>{T=!0,m.has(O)&&(w=!0,m.delete(O)),x.needsAnimating[O]=!0;let B=e.getValue(O);B&&(B.liveStyle=!1)};for(let O in V){let B=N[O],E=D[O];if(p.hasOwnProperty(O))continue;let q=!1;Ym(B)&&Ym(E)?q=!c0(B,E)||C:q=B!==E,q?B!=null?k(O):m.add(O):B!==void 0&&m.has(O)?k(O):x.protectedKeys[O]=!0}x.prevProp=S,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),(o||n)&&e.blockInitialAnimation&&(T=!1);let F=L&&C;T&&(!F||w)&&f.push(...A.map(O=>{let B={type:h};if(typeof O=="string"&&(o||n)&&!F&&e.manuallyAnimateOnMount&&e.parent){let{parent:E}=e,q=Uo(E,O);if(E.enteringChildren&&q){let{delayChildren:G}=q.transition||{};B.delay=wx(E.enteringChildren,e,G)}}return{animation:O,options:B}}))}if(m.size){let g={};if(typeof c.initial!="boolean"){let h=Uo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(g.transition=h.transition)}m.forEach(h=>{let x=e.getBaseTarget(h),S=e.getValue(h);S&&(S.liveStyle=!0),g[h]=x??null}),f.push({animation:g})}let b=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,n=!1,b?t(f):Promise.resolve()}function l(u,c){if(a[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),a[u].isActive=c;let d=s(u);for(let f in a)a[f].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>a,reset:()=>{a=wk(),n=!0}}}function Ek(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!c0(t,e):!1}function Wl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wk(){return{animate:Wl(!0),whileInView:Wl(),whileHover:Wl(),whileTap:Wl(),whileDrag:Wl(),whileFocus:Wl(),exit:Wl()}}function Xx(e,t){e.min=t.min,e.max=t.max}function mn(e,t){Xx(e.x,t.x),Xx(e.y,t.y)}function d0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ak=1e-4,x6=1-Ak,y6=1+Ak,Dk=.01,S6=0-Dk,b6=0+Dk;function Qt(e){return e.max-e.min}function g0(e,t,a){return Math.abs(e-t)<=a}function m0(e,t,a,o=.5){e.origin=o,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=Qt(a)/Qt(t),e.translate=Fe(a.min,a.max,e.origin)-e.originPoint,(e.scale>=x6&&e.scale<=y6||isNaN(e.scale))&&(e.scale=1),(e.translate>=S6&&e.translate<=b6||isNaN(e.translate))&&(e.translate=0)}function Kl(e,t,a,o){m0(e.x,t.x,a.x,o?o.originX:void 0),m0(e.y,t.y,a.y,o?o.originY:void 0)}function p0(e,t,a,o=0){let n=o?Fe(a.min,a.max,o):a.min;e.min=n+t.min,e.max=e.min+Qt(t)}function x0(e,t,a,o){p0(e.x,t.x,a.x,o?.x),p0(e.y,t.y,a.y,o?.y)}function h0(e,t,a,o=0){let n=o?Fe(a.min,a.max,o):a.min;e.min=t.min-n,e.max=e.min+Qt(t)}function nf(e,t,a,o){h0(e.x,t.x,a.x,o?.x),h0(e.y,t.y,a.y,o?.y)}function Pk(e,t,a,o,n){return e-=t,e=$m(e,1/a,o),n!==void 0&&(e=$m(e,1/n,o)),e}function v6(e,t=0,a=1,o=.5,n,r=e,i=e){if(_a.test(t)&&(t=parseFloat(t),t=Fe(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Fe(r.min,r.max,o);e===r&&(s-=t),e.min=Pk(e.min,t,a,s,n),e.max=Pk(e.max,t,a,s,n)}function Mk(e,t,[a,o,n],r,i){v6(e,t[a],t[o],t[n],t.scale,r,i)}var C6=["x","scaleX","originX"],L6=["y","scaleY","originY"];function y0(e,t,a,o){Mk(e.x,t,C6,a?a.x:void 0,o?o.x:void 0),Mk(e.y,t,L6,a?a.y:void 0,o?o.y:void 0)}function Ok(e){return e.translate===0&&e.scale===1}function S0(e){return Ok(e.x)&&Ok(e.y)}function kk(e,t){return e.min===t.min&&e.max===t.max}function Bk(e,t){return kk(e.x,t.x)&&kk(e.y,t.y)}function Nk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function b0(e,t){return Nk(e.x,t.x)&&Nk(e.y,t.y)}function v0(e){return Qt(e.x)/Qt(e.y)}function C0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ho(e){return[e("x"),e("y")]}function Vk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var rf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;let a=Vk(e,t.target.x),o=Vk(e,t.target.y);return`${a}% ${o}%`}};var Fk={correct:(e,{treeScale:t,projectionDelta:a})=>{let o=e,n=Ut.parse(e);if(n.length>5)return o;let r=Ut.createTransformer(e),i=typeof n[0]!="number"?1:0,s=a.x.scale*t.x,l=a.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;let u=Fe(s,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=u),typeof n[3+i]=="number"&&(n[3+i]/=u),r(n)}};function _k(e,t,a){let o="",n=e.x.translate/t.x,r=e.y.translate/t.y,i=a?.z||0;if((n||r||i)&&(o=`translate3d(${n}px, ${r}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:y}=a;u&&(o=`perspective(${u}px) ${o}`),c&&(o+=`rotate(${c}deg) `),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),m&&(o+=`rotateY(${m}deg) `),p&&(o+=`skewX(${p}deg) `),y&&(o+=`skewY(${y}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}var R6=Km.length,zk=e=>typeof e=="number"||ie.test(e);function Hk(e,t,a,o,n,r){n?(e.opacity=Fe(0,a.opacity??1,I6(o)),e.opacityExit=Fe(t.opacity??1,0,T6(o))):r&&(e.opacity=Fe(t.opacity??1,a.opacity??1,o));for(let i=0;i<R6;i++){let s=Km[i],l=Uk(t,s),u=Uk(a,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||zk(l)===zk(u)?(e[s]=Math.max(Fe(r0(l),r0(u),o),0),(_a.test(u)||_a.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||a.rotate)&&(e.rotate=Fe(t.rotate||0,a.rotate||0,o))}function Uk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var I6=qk(0,.5,km),T6=qk(.5,.95,zt);function qk(e,t,a){return o=>o<e?0:o>t?1:a(lr(e,t,o))}function Gk(e,t,a){let o=ut(e)?e:Bn(e);return o.start(Fl("",o,t,a)),o.animation}function hr(e,t,a,o={passive:!0}){return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)}var jk=(e,t)=>e.depth-t.depth;var Yx=class{constructor(){this.children=[],this.isDirty=!1}add(t){El(this.children,t),this.isDirty=!0}remove(t){us(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jk),this.isDirty=!1,this.children.forEach(t)}};function Xk(e,t){let a=dt.now(),o=({timestamp:n})=>{let r=n-a;r>=t&&(vo(o),e(r-t))};return Ne.setup(o,!0),()=>vo(o)}function Zl(e){return ut(e)?e.get():e}var Wx=class{constructor(){this.members=[]}add(t){El(this.members,t);for(let a=this.members.length-1;a>=0;a--){let o=this.members[a];if(o===t||o===this.lead||o===this.prevLead)continue;let n=o.instance;(!n||n.isConnected===!1)&&!o.snapshot&&(us(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(us(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){let o=this.members[a];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,a){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=o.options,{layoutDependency:r}=t.options;(n===void 0||n!==r)&&(t.resumeFrom=o,a&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var Yk={borderRadius:{...rf,applyTo:[...Km]},borderTopLeftRadius:rf,borderTopRightRadius:rf,borderBottomLeftRadius:rf,borderBottomRightRadius:rf,boxShadow:Fk};var Ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Xl,{...Yk,...Xl});var Jl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},L0=["","X","Y","Z"],w6=1e3,E6=0;function R0(e,t,a,o){let{latestValues:n}=t;n[e]&&(a[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function aN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=Ax(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:n,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Ne,!(n||r))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&aN(o)}function Kx({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=E6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Gl.value&&(Jl.nodes=Jl.calculatedTargetDeltas=Jl.calculatedProjections=0),this.nodes.forEach(P6),this.nodes.forEach(F6),this.nodes.forEach(_6),this.nodes.forEach(M6),Gl.addProjectionMetrics&&Gl.addProjectionMetrics(Jl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yx)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ur),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=$c(i)&&!Ck(i),this.instance=i;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;Ne.read(()=>{d=window.innerWidth}),e(i,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=Xk(f,250),Ql.hasAnimatedSinceResize&&(Ql.hasAnimatedSinceResize=!1,this.nodes.forEach(Zk)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||G6,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!b0(this.targetLayout,m),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...Zc(p,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,h,x.path)}else d||Zk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(z6),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&aN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(k6),this.nodes.forEach(Wk);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Kk);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(N6),this.nodes.forEach(B6),this.nodes.forEach(V6),this.nodes.forEach(A6),this.nodes.forEach(D6)):this.nodes.forEach(Kk),this.clearAllSnapshots();let s=dt.now();vt.delta=ra(0,1e3/60,s-vt.timestamp),vt.timestamp=s,vt.isProcessing=!0,Um.update.process(vt),Um.preRender.process(vt),Um.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(O6),this.sharedNodes.forEach(U6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qt(this.snapshot.measuredBox.x)&&!Qt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=wt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){let l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!S0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&this.instance&&(s||ei(this.latestValues)||c)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),j6(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return wt();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(X6))){let{scroll:u}=this.root;u&&(fn(s.x,u.offset.x),fn(s.y,u.offset.y))}return s}removeElementScroll(i){let s=wt();if(mn(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&mn(s,i),fn(s.x,c.offset.x),fn(s.y,c.offset.y))}return s}applyTransform(i,s=!1,l){let u=l||wt();mn(u,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(fn(u.x,-d.scroll.offset.x),fn(u.y,-d.scroll.offset.y)),ei(d.latestValues)&&ep(u,d.latestValues,d.layout?.layoutBox)}return ei(this.latestValues)&&ep(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(i){let s=wt();mn(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!ei(u.latestValues))continue;let c;u.instance&&(kx(u.latestValues)&&u.updateSnapshot(),c=wt(),mn(c,u.measurePageBox())),y0(s,u.latestValues,u.snapshot?.layoutBox,c)}return ei(this.latestValues)&&y0(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=vt.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=wt(),this.targetWithTransforms=wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),x0(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):mn(this.target,this.layout.layoutBox),ZR(this.target,this.targetDelta)):mn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Gl.value&&Jl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||kx(this.parent.latestValues)||WR(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,s,l){this.relativeParent=i,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wt(),this.relativeTargetOrigin=wt(),nf(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),mn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;mn(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;pk(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=wt());let{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(d0(this.prevProjectionDelta.x,this.projectionDelta.x),d0(this.prevProjectionDelta.y,this.projectionDelta.y)),Kl(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!C0(this.projectionDelta.x,this.prevProjectionDelta.x)||!C0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Gl.value&&Jl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gs(),this.projectionDelta=gs(),this.projectionDeltaWithTransform=gs()}setAnimationOrigin(i,s=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=gs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let m=wt(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,b=p!==y,g=this.getStack(),h=!g||g.members.length<=1,x=!!(b&&!h&&this.options.crossfade===!0&&!this.path.some(q6));this.animationProgress=0;let S,v=l?.interpolateProjection(i);this.mixTargetDelta=R=>{let L=R/1e3,C=v?.(L);C?(f.x.translate=C.x,f.x.scale=Fe(i.x.scale,1,L),f.x.origin=i.x.origin,f.x.originPoint=i.x.originPoint,f.y.translate=C.y,f.y.scale=Fe(i.y.scale,1,L),f.y.origin=i.y.origin,f.y.originPoint=i.y.originPoint):(Qk(f.x,i.x,L),Qk(f.y,i.y,L)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),H6(this.relativeTarget,this.relativeTargetOrigin,m,L),S&&Bk(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=wt()),mn(S,this.relativeTarget)),b&&(this.animationValues=d,Hk(d,c,this.latestValues,L,x,h)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{Ql.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bn(0)),this.motionValue.jump(0,!1),this.currentAnimation=Gk(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),LO(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(w6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,layout:l,latestValues:u}=i,{target:c}=i;if(!(!s||!c||!l)){if(this!==i&&this.layout&&l&&oN(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||wt();let d=Qt(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+d;let f=Qt(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+f}mn(s,c),ep(s,u),Kl(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Wx),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&R0("z",i,u,this.animationValues);for(let c=0;c<L0.length;c++)R0(`rotate${L0[c]}`,i,u,this.animationValues),R0(`skew${L0[c]}`,i,u,this.animationValues);i.render();for(let c in u)i.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Zl(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Zl(s?.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=_k(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),i.transform=d;let{x:f,y:m}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:i.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in Xl){if(c[p]===void 0)continue;let{correct:y,applyTo:b,isCSSVariable:g}=Xl[p],h=d==="none"?c[p]:y(c[p],u);if(b){let x=b.length;for(let S=0;S<x;S++)i[b[S]]=h}else g?this.options.visualElement.renderState.vars[p]=h:i[p]=h}this.options.layoutId&&(i.pointerEvents=u===this?Zl(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Wk),this.root.sharedNodes.clear()}}}function A6(e){e.updateLayout()}function D6(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:o}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;if(n==="size")Ho(c=>{let d=r?t.measuredBox[c]:t.layoutBox[c],f=Qt(d);d.min=a[c].min,d.max=d.min+f});else if(n==="x"||n==="y"){let c=n==="x"?"y":"x";Xx(r?t.measuredBox[c]:t.layoutBox[c],a[c])}else oN(n,t.layoutBox,a)&&Ho(c=>{let d=r?t.measuredBox[c]:t.layoutBox[c],f=Qt(a[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let i=gs();Kl(i,a,t.layoutBox);let s=gs();r?Kl(s,e.applyTransform(o,!0),t.measuredBox):Kl(s,a,t.layoutBox);let l=!S0(i),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=wt();nf(p,t.layoutBox,d.layoutBox,m);let y=wt();nf(y,a,f.layoutBox,m),b0(p,y)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function P6(e){Gl.value&&Jl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function M6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function O6(e){e.clearSnapshot()}function Wk(e){e.clearMeasurements()}function k6(e){e.isLayoutDirty=!0,e.updateLayout()}function Kk(e){e.isLayoutDirty=!1}function N6(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function B6(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function V6(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function F6(e){e.resolveTargetDelta()}function _6(e){e.calcProjection()}function z6(e){e.resetSkewAndRotation()}function U6(e){e.removeLeadSnapshot()}function Qk(e,t,a){e.translate=Fe(t.translate,0,a),e.scale=Fe(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Jk(e,t,a,o){e.min=Fe(t.min,a.min,o),e.max=Fe(t.max,a.max,o)}function H6(e,t,a,o){Jk(e.x,t.x,a.x,o),Jk(e.y,t.y,a.y,o)}function q6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var G6={duration:.45,ease:[.4,0,.1,1]},$k=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eN=$k("applewebkit/")&&!$k("chrome/")?Math.round:zt;function tN(e){e.min=eN(e.min),e.max=eN(e.max)}function j6(e){tN(e.x),tN(e.y)}function oN(e,t,a){return e==="position"||e==="preserve-aspect"&&!g0(v0(t),v0(a),.2)}function X6(e){return e!==e.root&&e.scroll?.wasRoot}var nN=Kx({attachResizeListener:(e,t)=>hr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Zx={current:void 0},cp=Kx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zx.current){let e=new nN({});e.mount(window),e.setOptions({layoutScroll:!0}),Zx.current=e}return Zx.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Qx=I(P(),1),oi=I(P(),1);var rN=I(P(),1),ai=(0,rN.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var sN=I(P(),1);function iN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y6(...e){return t=>{let a=!1,o=e.map(n=>{let r=iN(n,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let n=0;n<o.length;n++){let r=o[n];typeof r=="function"?r():iN(e[n],null)}}}}function lN(...e){return sN.useCallback(Y6(...e),e)}var I0=class extends Qx.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(zl(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=a.offsetParent,n=zl(o)&&o.offsetWidth||0,r=zl(o)&&o.offsetHeight||0,i=getComputedStyle(a),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=a.offsetTop,s.left=a.offsetLeft,s.right=n-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function cN({children:e,isPresent:t,anchorX:a,anchorY:o,root:n,pop:r}){let i=(0,oi.useId)(),s=(0,oi.useRef)(null),l=(0,oi.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,oi.useContext)(ai),c=r!==!1?e.props?.ref??e?.ref:void 0,d=lN(s,c);return(0,oi.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:y,right:b,bottom:g,direction:h}=l.current;if(t||r===!1||!s.current||!f||!m)return;let x=h==="rtl",S=a==="left"?x?`right: ${b}`:`left: ${y}`:x?`left: ${y}`:`right: ${b}`,v=o==="bottom"?`bottom: ${g}`:`top: ${p}`;s.current.dataset.motionPopId=i;let R=document.createElement("style");u&&(R.nonce=u);let L=n??document.head;return L.appendChild(R),R.sheet&&R.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${
|
|
8
|
+
`+o.stack}}var IC=Object.prototype.hasOwnProperty,EL=ua.unstable_scheduleCallback,Hv=ua.unstable_cancelCallback,X3=ua.unstable_shouldYield,Y3=ua.unstable_requestPaint,zo=ua.unstable_now,W3=ua.unstable_getCurrentPriorityLevel,XA=ua.unstable_ImmediatePriority,YA=ua.unstable_UserBlockingPriority,dg=ua.unstable_NormalPriority,K3=ua.unstable_LowPriority,WA=ua.unstable_IdlePriority,Z3=ua.log,Q3=ua.unstable_setDisableYieldValue,im=null,Ho=null;function Es(e){if(typeof Z3=="function"&&Q3(e),Ho&&typeof Ho.setStrictMode=="function")try{Ho.setStrictMode(im,e)}catch{}}var Uo=Math.clz32?Math.clz32:e4,J3=Math.log,$3=Math.LN2;function e4(e){return e>>>=0,e===0?32:31-(J3(e)/$3|0)|0}var Rh=256,Ih=262144,Th=4194304;function nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fg(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var i=o&134217727;return i!==0?(o=i&~n,o!==0?r=nl(o):(s&=i,s!==0?r=nl(s):a||(a=i&~e,a!==0&&(r=nl(a))))):(i=o&~n,i!==0?r=nl(i):s!==0?r=nl(s):a||(a=o&~e,a!==0&&(r=nl(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function lm(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function KA(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Uo(a),r=1<<o;t|=e[o],a&=~r}return t}function t4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ZA(){var e=Th;return Th<<=1,(Th&62914560)===0&&(Th=4194304),e}function Uv(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function um(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a4(e,t,a,o,r,n){var s=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(a=s&~a;0<a;){var c=31-Uo(a),d=1<<c;i[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}a&=~d}o!==0&&QA(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function QA(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Uo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function JA(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Uo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function $A(e,t){var a=t&-t;return a=(a&42)!==0?1:AL(a),(a&(e.suspendedLanes|t))!==0?0:a}function AL(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function DL(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function eD(){var e=nt.p;return e!==0?e:(e=window.event,e===void 0?32:NP(e.type))}function nE(e,t){var a=nt.p;try{return nt.p=e,t()}finally{nt.p=a}}var Yn=Math.random().toString(36).slice(2),Ma="__reactFiber$"+Yn,Lo="__reactProps$"+Yn,Nc="__reactContainer$"+Yn,sE="__reactEvents$"+Yn,o4="__reactListeners$"+Yn,r4="__reactHandles$"+Yn,iE="__reactResources$"+Yn,cm="__reactMarker$"+Yn,mg="__reactLoad$"+Yn;function _g(e){delete e[Ma],delete e[Lo],delete e[o4],delete e[r4]}function ll(e){var t;if(t=e[Ma])return t;for(var a=e.parentNode;a;){if(t=a[Nc]||a[Ma]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=RA(e);e!==null;){if(a=e[Ma])return a;e=RA(e)}return t}e=a,a=e.parentNode}return null}function Vc(e){if(e=e[Ma]||e[Nc]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ed(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(Z(33))}function dc(e){var t=e[iE];return t||(t=e[iE]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ya(e){e[cm]=!0}function tD(e){e[mg]=void 0}var aD=new Set,oD={};function Rl(e,t){Lc(e,t),Lc(e+"Capture",t)}function Lc(e,t){for(oD[e]=t,e=0;e<t.length;e++)aD.add(t[e])}var n4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lE={},uE={};function s4(e){return IC.call(uE,e)?!0:IC.call(lE,e)?!1:n4.test(e)?uE[e]=!0:(lE[e]=!0,!1)}var et=!1;function cE(){var e=et;return et=!1,e}function Gh(e,t,a){if(s4(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function wh(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Nn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function Vo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i4(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function TC(e){if(!e._valueTracker){var t=rD(e)?"checked":"value";e._valueTracker=i4(e,t,""+e[t])}}function nD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=rD(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}var l4=/[\n"\\]/g;function nr(e){return e.replace(l4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wC(e,t,a,o,r,n,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vo(t)):e.value!==""+Vo(t)&&(e.value=""+Vo(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?qv(e,Vo(e.value)):qv(e,Vo(t)):a!=null?qv(e,Vo(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Vo(i):e.removeAttribute("name")}function sD(e,t,a,o,r,n,s,i){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){TC(e);return}a=a!=null?""+Vo(a):"",t=t!=null?""+Vo(t):a,i||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),TC(e)}function qv(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function mc(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Vo(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function iD(e,t,a){if(t!=null&&(t=""+Vo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Vo(a):""}function lD(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(Z(92));if(wd(o)){if(1<o.length)throw Error(Z(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=Vo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),TC(e)}function Rc(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var u4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fE(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||u4.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function uD(e,t,a){if(t!=null&&typeof t!="object")throw Error(Z(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",et=!0);for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&(fE(e,r,o),et=!0)}else for(var n in t)t.hasOwnProperty(n)&&fE(e,n,t[n])}function ML(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var c4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),f4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jh(e){return f4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function en(){}var EC=null;function PL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oc=null,pc=null;function dE(e){var t=Vc(e);if(t&&(e=t.stateNode)){var a=e[Lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(wC(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+nr(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[Lo]||null;if(!r)throw Error(Z(90));wC(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&nD(o)}break e;case"textarea":iD(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&mc(e,!!a.multiple,t,!1)}}}var Gv=!1;function cD(e,t,a){if(Gv)return e(t,a);Gv=!0;try{var o=e(t);return o}finally{if(Gv=!1,(oc!==null||pc!==null)&&($g(),oc&&(t=oc,e=pc,pc=oc=null,dE(t),e)))for(t=0;t<e.length;t++)dE(e[t])}}function jd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Lo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(Z(231,t,typeof a));return a}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),AC=!1;if(Hn)try{Wu={},Object.defineProperty(Wu,"passive",{get:function(){AC=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{AC=!1}var Wu,As=null,OL=null,Xh=null;function fD(){if(Xh)return Xh;var e,t=OL,a=t.length,o,r="value"in As?As.value:As.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===r[n-o];o++);return Xh=r.slice(e,1<o?1-o:void 0)}function Yh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Eh(){return!0}function mE(){return!1}function ro(e){function t(a,o,r,n,s){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Eh:mE,this.isPropagationStopped=mE,this}return St(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Eh)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Eh)},persist:function(){},isPersistent:Eh}),t}var Ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zg=ro(Ks),fm=St({},Ks,{view:0,detail:0}),d4=ro(fm),jv,Xv,vd,Hg=St({},fm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kL,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vd&&(vd&&e.type==="mousemove"?(jv=e.screenX-vd.screenX,Xv=e.screenY-vd.screenY):Xv=jv=0,vd=e),jv)},movementY:function(e){return"movementY"in e?e.movementY:Xv}}),pE=ro(Hg),m4=St({},Hg,{dataTransfer:0}),p4=ro(m4),h4=St({},fm,{relatedTarget:0}),Yv=ro(h4),g4=St({},Ks,{animationName:0,elapsedTime:0,pseudoElement:0}),x4=ro(g4),y4=St({},Ks,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S4=ro(y4),b4=St({},Ks,{data:0}),hE=ro(b4),v4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},L4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L4[e])?!!t[e]:!1}function kL(){return R4}var I4=St({},fm,{key:function(e){if(e.key){var t=v4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kL,charCode:function(e){return e.type==="keypress"?Yh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T4=ro(I4),w4=St({},Hg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gE=ro(w4),E4=St({},Ks,{submitter:0}),A4=ro(E4),D4=St({},fm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kL}),M4=ro(D4),P4=St({},Ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),O4=ro(P4),k4=St({},Hg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),N4=ro(k4),V4=St({},Ks,{newState:0,oldState:0,source:0}),B4=ro(V4),F4=[9,13,27,32],NL=Hn&&"CompositionEvent"in window,Md=null;Hn&&"documentMode"in document&&(Md=document.documentMode);var _4=Hn&&"TextEvent"in window&&!Md,dD=Hn&&(!NL||Md&&8<Md&&11>=Md),xE=" ",yE=!1;function mD(e,t){switch(e){case"keyup":return F4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rc=!1;function z4(e,t){switch(e){case"compositionend":return pD(t);case"keypress":return t.which!==32?null:(yE=!0,xE);case"textInput":return e=t.data,e===xE&&yE?null:e;default:return null}}function H4(e,t){if(rc)return e==="compositionend"||!NL&&mD(e,t)?(e=fD(),Xh=OL=As=null,rc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dD&&t.locale!=="ko"?null:t.data;default:return null}}var U4={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function SE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!U4[e.type]:t==="textarea"}function hD(e,t,a,o){oc?pc?pc.push(o):pc=[o]:oc=o,t=Ng(t,"onChange"),0<t.length&&(a=new zg("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Pd=null,Xd=null;function q4(e){cP(e,0)}function Ug(e){var t=Ed(e);if(nD(t))return e}function bE(e,t){if(e==="change")return t}var gD=!1;Hn&&(Hn?(Dh="oninput"in document,Dh||(Wv=document.createElement("div"),Wv.setAttribute("oninput","return;"),Dh=typeof Wv.oninput=="function"),Ah=Dh):Ah=!1,gD=Ah&&(!document.documentMode||9<document.documentMode));var Ah,Dh,Wv;function vE(){Pd&&(Pd.detachEvent("onpropertychange",xD),Xd=Pd=null)}function xD(e){if(e.propertyName==="value"&&Ug(Xd)){var t=[];hD(t,Xd,e,PL(e)),cD(q4,t)}}function G4(e,t,a){e==="focusin"?(vE(),Pd=t,Xd=a,Pd.attachEvent("onpropertychange",xD)):e==="focusout"&&vE()}function j4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ug(Xd)}function X4(e,t){if(e==="click")return Ug(t)}function Y4(e,t){if(e==="input"||e==="change")return Ug(t)}function W4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Go=typeof Object.is=="function"?Object.is:W4;function Yd(e,t){if(Go(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!IC.call(t,r)||!Go(e[r],t[r]))return!1}return!0}function DC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function CE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function LE(e,t){var a=CE(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=CE(a)}}function yD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SD(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=DC(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=DC(e.document)}return t}function VL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var K4=Hn&&"documentMode"in document&&11>=document.documentMode,nc=null,MC=null,Od=null,PC=!1;function RE(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;PC||nc==null||nc!==DC(o)||(o=nc,"selectionStart"in o&&VL(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Od&&Yd(Od,o)||(Od=o,o=Ng(MC,"onSelect"),0<o.length&&(t=new zg("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=nc)))}function ol(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var sc={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},Kv={},bD={};Hn&&(bD=document.createElement("div").style,"AnimationEvent"in window||(delete sc.animationend.animation,delete sc.animationiteration.animation,delete sc.animationstart.animation),"TransitionEvent"in window||delete sc.transitionend.transition);function Il(e){if(Kv[e])return Kv[e];if(!sc[e])return e;var t=sc[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bD)return Kv[e]=t[a];return e}var vD=Il("animationend"),CD=Il("animationiteration"),LD=Il("animationstart"),Z4=Il("transitionrun"),Q4=Il("transitionstart"),J4=Il("transitioncancel"),RD=Il("transitionend"),ID=new Map,OC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");OC.push("scrollEnd");function Or(e,t){ID.set(e,t),Rl(t,[e])}var $4=0;function Un(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Pr.identifierPrefix;var a=$4++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function IE(e){if(e==null||typeof e=="string")return e;var t=null,a=vc;if(a!==null)for(var o=0;o<a.length;o++){var r=e[a[o]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function Wn(e,t){return e=IE(e),t=IE(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var pg=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ar=[],ic=0,BL=0;function qg(){for(var e=ic,t=BL=ic=0;t<e;){var a=ar[t];ar[t++]=null;var o=ar[t];ar[t++]=null;var r=ar[t];ar[t++]=null;var n=ar[t];if(ar[t++]=null,o!==null&&r!==null){var s=o.pending;s===null?r.next=r:(r.next=s.next,s.next=r),o.pending=r}n!==0&&TD(a,r,n)}}function Gg(e,t,a,o){ar[ic++]=e,ar[ic++]=t,ar[ic++]=a,ar[ic++]=o,BL|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function FL(e,t,a,o){return Gg(e,t,a,o),hg(e)}function Tl(e,t){return Gg(e,null,null,t),hg(e)}function TD(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-Uo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function hg(e){if(50<qd)throw qd=0,og=null,Error(Z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var lc={};function eq(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bo(e,t,a,o){return new eq(e,t,a,o)}function _L(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _n(e,t){var a=e.alternate;return a===null?(a=bo(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function wD(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wh(e,t,a,o,r,n){var s=0;if(o=e,typeof o=="function")_L(o)&&(s=1);else if(typeof o=="string")s=T5(e,a,on.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case bC:return e=bo(31,a,t,r),e.elementType=bC,e.lanes=n,e;case tc:return fl(a.children,r,n,t);case GA:s=8,r|=24;break;case xC:return e=bo(12,a,t,r|2),e.elementType=xC,e.lanes=n,e;case yC:return e=bo(13,a,t,r),e.elementType=yC,e.lanes=n,e;case SC:return e=bo(19,a,t,r),e.elementType=SC,e.lanes=n,e;case H3:case vC:return e=r|32,e=bo(30,a,t,e),e.elementType=vC,e.lanes=n,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case $r:s=10;break e;case jA:s=9;break e;case TL:s=11;break e;case wL:s=14;break e;case Is:s=16,o=null;break e}s=29,a=Error(Z(130,e===null?"null":typeof e,"")),o=null}return t=bo(s,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function fl(e,t,a,o){return e=bo(7,e,o,t),e.lanes=a,e}function Zv(e,t,a){return e=bo(6,e,null,t),e.lanes=a,e}function ED(e){var t=bo(18,null,null,0);return t.stateNode=e,t}function Qv(e,t,a){return t=bo(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var TE=new WeakMap;function sr(e,t){if(typeof e=="object"&&e!==null){var a=TE.get(e);return a!==void 0?a:(t={value:e,source:t,stack:rE(t)},TE.set(e,t),t)}return{value:e,source:t,stack:rE(t)}}var uc=[],cc=0,gg=null,Wd=0,or=[],rr=0,Gs=null,tn=1,an="";function Bn(e,t){uc[cc++]=Wd,uc[cc++]=gg,gg=e,Wd=t}function AD(e,t,a){or[rr++]=tn,or[rr++]=an,or[rr++]=Gs,Gs=e;var o=tn;e=an;var r=32-Uo(o)-1;o&=~(1<<r),a+=1;var n=32-Uo(t)+r;if(30<n){var s=r-r%5;n=(o&(1<<s)-1).toString(32),o>>=s,r-=s,tn=1<<32-Uo(t)+r|a<<r|o,an=n+e}else tn=1<<n|a<<r|o,an=e}function jg(e){e.return!==null&&(Bn(e,1),AD(e,1,0))}function zL(e){for(;e===gg;)gg=uc[--cc],uc[cc]=null,Wd=uc[--cc],uc[cc]=null;for(;e===Gs;)Gs=or[--rr],or[rr]=null,an=or[--rr],or[rr]=null,tn=or[--rr],or[rr]=null}function DD(e,t){or[rr++]=tn,or[rr++]=an,or[rr++]=Gs,tn=t.id,an=t.overflow,Gs=e}var Sa=null,Lt=null,qe=!1,Ns=null,ir=!1,kC=Error(Z(519));function js(e){var t=Error(Z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kd(sr(t,e)),kC}function wE(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[Ma]=e,t[Lo]=o,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<$d.length;a++)je($d[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),sD(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),lD(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||dP(t.textContent,a)?(o.popover!=null&&(je("beforetoggle",t),je("toggle",t)),o.onScroll!=null&&je("scroll",t),o.onScrollEnd!=null&&je("scrollend",t),o.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||js(e,!0)}function xg(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:ir=!1;return;case 27:case 3:ir=!0;return;default:Sa=Sa.return}}function Ku(e){if(e!==Sa)return!1;if(!qe)return xg(e),qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||yL(e.type,e.memoizedProps)),a=!a),a&&Lt&&js(e),xg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Lt=LA(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));Lt=LA(e)}else t===27?(t=Lt,Zs(e.type)?(e=CL,CL=null,Lt=e):Lt=t):Lt=Sa?lr(e.stateNode.nextSibling):null;return!0}function hl(){Lt=Sa=null,qe=!1}function Jv(){var e=Ns;return e!==null&&(yo===null?yo=e:yo.push.apply(yo,e),Ns=null),e}function Kd(e){Ns===null?Ns=[e]:Ns.push(e)}var NC=sn(null),wl=null,Fn=null;function Ds(e,t,a){Rt(NC,t._currentValue),t._currentValue=a}function zn(e){e._currentValue=NC.current,Oa(NC)}function Kh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function VC(e,t,a,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var n=r.dependencies;if(n!==null){var s=r.child;n=n.firstContext;e:for(;n!==null;){var i=n;n=r;for(var l=0;l<t.length;l++)if(i.context===t[l]){n.lanes|=a,i=n.alternate,i!==null&&(i.lanes|=a),Kh(n.return,a,e),o||(s=null);break e}n=i.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(Z(341));s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),Kh(s,a,e),s=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,s=r.alternate,s!==null&&(s.lanes|=a),Kh(r.return,a,e),s=r.child,s=s!==null?s.sibling:null):s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function gl(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(Z(387));if(s=s.memoizedProps,s!==null){var i=r.type;Go(r.pendingProps.value,s.value)||(e!==null?e.push(i):e=[i])}}else if(r===ug.current){if(s=r.alternate,s===null)throw Error(Z(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Pc):e=[Pc])}r=r.return}return e!==null&&VC(t,e,a,o),t.flags|=262144,e!==null}function yg(e){for(e=e.firstContext;e!==null;){if(!Go(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xl(e){wl=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pa(e){return MD(wl,e)}function Mh(e,t){return wl===null&&xl(e),MD(e,t)}function MD(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fn===null){if(e===null)throw Error(Z(308));Fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fn=Fn.next=t;return a}var tq=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},aq=ua.unstable_scheduleCallback,oq=ua.unstable_NormalPriority,ta={$$typeof:$r,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function HL(){return{controller:new tq,data:new Map,refCount:0}}function dm(e){e.refCount--,e.refCount===0&&aq(oq,function(){e.controller.abort()})}function EE(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}var Ad=null;function rq(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var kd=null,BC=0,yl=0,hc=null;function nq(e,t){if(kd===null){var a=kd=[];BC=0,yl=hR(),hc={status:"pending",value:void 0,then:function(o){a.push(o)}}}return BC++,t.then(AE,AE),t}function AE(){if(--BC===0&&(Ad=null,kd!==null)){hc!==null&&(hc.status="fulfilled");var e=kd;kd=null,yl=0,hc=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sq(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),o}var DE=Ae.S;Ae.S=function(e,t){if(KM=zo(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nq(e,t),Ad!==null)for(var a=Ac;a!==null;)EE(a,Ad),a=a.next;if(a=e.types,a!==null){for(var o=Ac;o!==null;)EE(o,a),o=o.next;if(yl!==0){o=Ad,o===null&&(o=Ad=[]);for(var r=0;r<a.length;r++){var n=a[r];o.indexOf(n)===-1&&o.push(n)}}}DE!==null&&DE(e,t)};var dl=sn(null);function UL(){var e=dl.current;return e!==null?e:yt.pooledCache}function Zh(e,t){t===null?Rt(dl,dl.current):Rt(dl,t.pool)}function PD(){var e=UL();return e===null?null:{parent:ta._currentValue,pool:e}}var Bc=Error(Z(460)),qL=Error(Z(474)),Xg=Error(Z(542)),Sg={then:function(){}};function ME(e){return e=e.status,e==="fulfilled"||e==="rejected"}function OD(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(en,en),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,OE(e),e===void 0&&!("reason"in t)?Error(Z(600)):e;default:if(typeof t.status=="string")t.then(en,en);else{if(e=yt,e!==null&&100<e.shellSuspendCounter)throw Error(Z(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,OE(e),e}throw ml=t,Bc}}function sl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ml=a,Bc):a}}var ml=null;function PE(){if(ml===null)throw Error(Z(459));var e=ml;return ml=null,e}function OE(e){if(e===Bc||e===Xg)throw Error(Z(483))}var gc=null,Zd=0;function Ph(e){var t=Zd;return Zd+=1,gc===null&&(gc=[]),OD(gc,e,t)}function Cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Oh(e,t){throw t.$$typeof===z3?Error(Z(525)):(e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kD(e){function t(g,h){if(e){var x=g.deletions;x===null?(g.deletions=[h],g.flags|=16):x.push(h)}}function a(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function o(g){for(var h=new Map;g!==null;)g.key===null?h.set(g.index,g):h.set(g.key,g),g=g.sibling;return h}function r(g,h){return g=_n(g,h),g.index=0,g.sibling=null,g}function n(g,h,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<h?(g.flags|=2,h):x):(g.flags|=134217730,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=134217730),g}function i(g,h,x,S){return h===null||h.tag!==6?(h=Zv(x,g.mode,S),h.return=g,h):(h=r(h,x),h.return=g,h)}function l(g,h,x,S){var v=x.type;return v===tc?(g=c(g,h,x.props.children,S,x.key),Cs(g,x),g):h!==null&&(h.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Is&&sl(v)===h.type)?(h=r(h,x.props),Cs(h,x),h.return=g,h):(h=Wh(x.type,x.key,x.props,null,g.mode,S),Cs(h,x),h.return=g,h)}function u(g,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Qv(x,g.mode,S),h.return=g,h):(h=r(h,x.children||[]),h.return=g,h)}function c(g,h,x,S,v){return h===null||h.tag!==7?(h=fl(x,g.mode,S,v),h.return=g,h):(h=r(h,x),h.return=g,h)}function d(g,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Zv(""+h,g.mode,x),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Lh:return x=Wh(h.type,h.key,h.props,null,g.mode,x),Cs(x,h),x.return=g,x;case Td:return h=Qv(h,g.mode,x),h.return=g,h;case Is:return h=sl(h),d(g,h,x)}if(wd(h)||bd(h))return h=fl(h,g.mode,x,null),h.return=g,h;if(typeof h.then=="function")return d(g,Ph(h),x);if(h.$$typeof===$r)return d(g,Mh(g,h),x);Oh(g,h)}return null}function f(g,h,x,S){var v=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return v!==null?null:i(g,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Lh:return x.key===v?l(g,h,x,S):null;case Td:return x.key===v?u(g,h,x,S):null;case Is:return x=sl(x),f(g,h,x,S)}if(wd(x)||bd(x))return v!==null?null:c(g,h,x,S,null);if(typeof x.then=="function")return f(g,h,Ph(x),S);if(x.$$typeof===$r)return f(g,h,Mh(g,x),S);Oh(g,x)}return null}function m(g,h,x,S,v){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return g=g.get(x)||null,i(h,g,""+S,v);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Lh:return g=g.get(S.key===null?x:S.key)||null,l(h,g,S,v);case Td:return g=g.get(S.key===null?x:S.key)||null,u(h,g,S,v);case Is:return S=sl(S),m(g,h,x,S,v)}if(wd(S)||bd(S))return g=g.get(x)||null,c(h,g,S,v,null);if(typeof S.then=="function")return m(g,h,x,Ph(S),v);if(S.$$typeof===$r)return m(g,h,x,Mh(h,S),v);Oh(h,S)}return null}function p(g,h,x,S){for(var v=null,I=null,L=h,C=h=0,E=null;L!==null&&C<x.length;C++){L.index>C?(E=L,L=null):E=L.sibling;var T=f(g,L,x[C],S);if(T===null){L===null&&(L=E);break}e&&L&&T.alternate===null&&t(g,L),h=n(T,h,C),I===null?v=T:I.sibling=T,I=T,L=E}if(C===x.length)return a(g,L),qe&&Bn(g,C),v;if(L===null){for(;C<x.length;C++)L=d(g,x[C],S),L!==null&&(h=n(L,h,C),I===null?v=L:I.sibling=L,I=L);return qe&&Bn(g,C),v}for(L=o(L);C<x.length;C++)E=m(L,g,C,x[C],S),E!==null&&(e&&(T=E.alternate,T!==null&&L.delete(T.key===null?C:T.key)),h=n(E,h,C),I===null?v=E:I.sibling=E,I=E);return e&&L.forEach(function(A){return t(g,A)}),qe&&Bn(g,C),v}function y(g,h,x,S){if(x==null)throw Error(Z(151));for(var v=null,I=null,L=h,C=h=0,E=null,T=x.next();L!==null&&!T.done;C++,T=x.next()){L.index>C?(E=L,L=null):E=L.sibling;var A=f(g,L,T.value,S);if(A===null){L===null&&(L=E);break}e&&L&&A.alternate===null&&t(g,L),h=n(A,h,C),I===null?v=A:I.sibling=A,I=A,L=E}if(T.done)return a(g,L),qe&&Bn(g,C),v;if(L===null){for(;!T.done;C++,T=x.next())T=d(g,T.value,S),T!==null&&(h=n(T,h,C),I===null?v=T:I.sibling=T,I=T);return qe&&Bn(g,C),v}for(L=o(L);!T.done;C++,T=x.next())T=m(L,g,C,T.value,S),T!==null&&(e&&(E=T.alternate,E!==null&&L.delete(E.key===null?C:E.key)),h=n(T,h,C),I===null?v=T:I.sibling=T,I=T);return e&&L.forEach(function(N){return t(g,N)}),qe&&Bn(g,C),v}function b(g,h,x,S){if(typeof x=="object"&&x!==null&&x.type===tc&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Lh:e:{for(var v=x.key;h!==null;){if(h.key===v){if(v=x.type,v===tc){if(h.tag===7){a(g,h.sibling),S=r(h,x.props.children),Cs(S,x),S.return=g,g=S;break e}}else if(h.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Is&&sl(v)===h.type){a(g,h.sibling),S=r(h,x.props),Cs(S,x),S.return=g,g=S;break e}a(g,h);break}else t(g,h);h=h.sibling}x.type===tc?(S=fl(x.props.children,g.mode,S,x.key),Cs(S,x),S.return=g,g=S):(S=Wh(x.type,x.key,x.props,null,g.mode,S),Cs(S,x),S.return=g,g=S)}return s(g);case Td:e:{for(v=x.key;h!==null;){if(h.key===v)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(g,h.sibling),S=r(h,x.children||[]),S.return=g,g=S;break e}else{a(g,h);break}else t(g,h);h=h.sibling}S=Qv(x,g.mode,S),S.return=g,g=S}return s(g);case Is:return x=sl(x),b(g,h,x,S)}if(wd(x))return p(g,h,x,S);if(bd(x)){if(v=bd(x),typeof v!="function")throw Error(Z(150));return x=v.call(x),y(g,h,x,S)}if(typeof x.then=="function")return b(g,h,Ph(x),S);if(x.$$typeof===$r)return b(g,h,Mh(g,x),S);Oh(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(a(g,h.sibling),S=r(h,x),S.return=g,g=S):(a(g,h),S=Zv(x,g.mode,S),S.return=g,g=S),s(g)):a(g,h)}return function(g,h,x,S){try{Zd=0;var v=b(g,h,x,S);return gc=null,v}catch(L){if(L===Bc||L===Xg)throw L;var I=bo(29,L,null,g.mode);return I.lanes=S,I.return=g,I}finally{}}}var Sl=kD(!0),ND=kD(!1),Ts=!1;function GL(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function FC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Bs(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(rt&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=hg(e),TD(e,null,a),t}return Gg(e,o,t,a),hg(e)}function Nd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,JA(e,a)}}function $v(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var _C=!1;function Vd(){if(_C){var e=hc;if(e!==null)throw e}}function Bd(e,t,a,o){_C=!1;var r=e.updateQueue;Ts=!1;var n=r.firstBaseUpdate,s=r.lastBaseUpdate,i=r.shared.pending;if(i!==null){r.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(n!==null){var d=r.baseState;s=0,c=u=l=null,i=n;do{var f=i.lane&-536870913,m=f!==i.lane;if(m?(Ye&f)===f:(o&f)===f){f!==0&&f===yl&&(_C=!0),c!==null&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var p=e,y=i;f=t;var b=a;switch(y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(b,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(b,d,f):p,f==null)break e;d=St({},d,f);break e;case 2:Ts=!0}}f=i.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(i=i.next,i===null){if(i=r.shared.pending,i===null)break;m=i,i=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,n===null&&(r.shared.lanes=0),Ws|=s,e.lanes=s,e.memoizedState=d}}function VD(e,t){if(typeof e!="function")throw Error(Z(191,e));e.call(t)}function BD(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)VD(a[e],t)}var Xs=sn(null),bg=sn(0);function kE(e,t){e=Xn,Rt(bg,e),Rt(Xs,t),Xn=e|t.baseLanes}function zC(){Rt(bg,Xn),Rt(Xs,Xs.current)}function jL(){Xn=bg.current,Oa(Xs),Oa(bg)}var Va=sn(null),qa=null;function Fs(e){var t=e.alternate;Rt(ka,ka.current&1),Rt(Va,e),qa===null&&(t===null||Xs.current!==null||t.memoizedState!==null)&&(qa=e)}function HC(e){Rt(ka,ka.current),Rt(Va,e),qa===null&&(qa=e)}function FD(e){e.tag===22?(Rt(ka,ka.current),Rt(Va,e),qa===null&&(qa=e)):_s()}function _s(){Rt(ka,ka.current),Rt(Va,Va.current)}function Bo(e){Oa(Va),qa===e&&(qa=null),Oa(ka)}var ka=sn(0);function Qd(e,t){Rt(Va,Va.current),Rt(ka,t)}function XL(e){Oa(ka),Oa(Va),qa===e&&(qa=null)}function vg(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||vL(a)||SR(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qn=0,Fe=null,ht=null,ea=null,Cg=!1,xc=!1,bl=!1,Lg=0,Jd=0,yc=null,iq=0;function Ut(){throw Error(Z(321))}function YL(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Go(e[a],t[a]))return!1;return!0}function WL(e,t,a,o,r,n){return qn=n,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ae.H=e===null||e.memoizedState===null?hM:gM,bl=!1,n=a(o,r),bl=!1,xc&&(n=zD(t,a,o,r)),_D(e),n}function _D(e){Ae.H=Rg;var t=ht!==null&&ht.next!==null;if(qn=0,ea=ht=Fe=null,Cg=!1,Jd=0,yc=null,t)throw Error(Z(300));e===null||aa||(e=e.dependencies,e!==null&&yg(e)&&(aa=!0))}function zD(e,t,a,o){Fe=e;var r=0;do{if(xc&&(yc=null),Jd=0,xc=!1,25<=r)throw Error(Z(301));if(r+=1,ea=ht=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Ae.H=hq,n=t(a,o)}while(xc);return n}function lq(){var e=Ae.H,t=e.useState()[0];return t=typeof t.then=="function"?mm(t):t,e=e.useState()[0],(ht!==null?ht.memoizedState:null)!==e&&(Fe.flags|=1024),t}function KL(){var e=Lg!==0;return Lg=0,e}function ZL(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function QL(e){if(Cg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cg=!1}qn=0,ea=ht=Fe=null,xc=!1,Jd=Lg=0,yc=null}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?Fe.memoizedState=ea=e:ea=ea.next=e,ea}function jt(){if(ht===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=ea===null?Fe.memoizedState:ea.next;if(t!==null)ea=t,ht=e;else{if(e===null)throw Fe.alternate===null?Error(Z(467)):Error(Z(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},ea===null?Fe.memoizedState=ea=e:ea=ea.next=e}return ea}function Yg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mm(e){var t=Jd;return Jd+=1,yc===null&&(yc=[]),e=OD(yc,e,t),t=Fe,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,Ae.H=t===null||t.memoizedState===null?hM:gM),e}function Wg(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mm(e);if(e.$$typeof===q3)return;if(e.$$typeof===$r)return Pa(e)}throw Error(Z(438,String(e)))}function JL(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yg(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=U3;return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function Qh(e){var t=jt();return $L(t,ht,e)}function $L(e,t,a){var o=e.queue;if(o===null)throw Error(Z(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var s=r.next;r.next=n.next,n.next=s}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var i=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ye&d)===d:(qn&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===yl&&(c=!0);else if((qn&f)===f){u=u.next,f===yl&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=d,s=n):l=l.next=d,Fe.lanes|=f,Ws|=f;d=u.action,bl&&a(n,d),n=u.hasEagerState?u.eagerState:a(n,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=f,s=n):l=l.next=f,Fe.lanes|=d,Ws|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=n:l.next=i,!Go(n,e.memoizedState)&&(aa=!0,c&&(a=hc,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=l,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function eC(e){var t=jt(),a=t.queue;if(a===null)throw Error(Z(311));a.lastRenderedReducer=e;var o=a.dispatch,r=a.pending,n=t.memoizedState;if(r!==null){a.pending=null;var s=r=r.next;do n=e(n,s.action),s=s.next;while(s!==r);Go(n,t.memoizedState)||(aa=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function HD(e,t,a){var o=Fe,r=jt(),n=qe;if(n){if(a===void 0)throw Error(Z(407));a=a()}else a=t();var s=!Go((ht||r).memoizedState,a);if(s&&(r.memoizedState=a,aa=!0),r=r.queue,eR(GD.bind(null,o,r,e),[e]),e=r.getSnapshot!==t||s||ea!==null&&(ea.memoizedState.tag&1)!==0,Ic(e?9:8,{destroy:void 0},qD.bind(null,o,r,a,t),null),e){if(o.flags|=2048,yt===null)throw Error(Z(349));n||(qn&127)!==0||UD(o,t,a)}return a}function UD(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Yg(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qD(e,t,a,o){t.value=a,t.getSnapshot=o,jD(t)&&XD(e)}function GD(e,t,a){return a(function(){jD(t)&&XD(e)})}function jD(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Go(e,a)}catch{return!0}}function XD(e){var t=Tl(e,2);t!==null&&vo(t,e,2)}function UC(e){var t=oo();if(typeof e=="function"){var a=e;if(e=a(),bl){Es(!0);try{a()}finally{Es(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function YD(e,t,a,o){return e.baseState=a,$L(e,ht,typeof o=="function"?o:Gn)}function uq(e,t,a,o,r){if(Zg(e))throw Error(Z(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};Ae.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,WD(t,n)):(n.next=a.next,t.pending=a.next=n)}}function WD(e,t){var a=t.action,o=t.payload,r=e.state;if(t.isTransition){var n=Ae.T,s={};s.types=n!==null?n.types:null,Ae.T=s;try{var i=a(r,o),l=Ae.S;l!==null&&l(s,i),NE(e,t,i)}catch(u){qC(e,t,u)}finally{n!==null&&s.types!==null&&(n.types=s.types),Ae.T=n}}else try{n=a(r,o),NE(e,t,n)}catch(u){qC(e,t,u)}}function NE(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){VE(e,t,o)},function(o){return qC(e,t,o)}):VE(e,t,a)}function VE(e,t,a){t.status="fulfilled",t.value=a,KD(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,WD(e,a)))}function qC(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,KD(t),t=t.next;while(t!==o)}e.action=null}function KD(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ZD(e,t){return t}function BE(e,t){if(qe){var a=yt.formState;if(a!==null){e:{var o=Fe;if(qe){if(Lt){t:{for(var r=Lt,n=ir;r.nodeType!==8;){if(!n){r=null;break t}if(r=lr(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){Lt=lr(r.nextSibling),o=r.data==="F!";break e}}js(o)}o=!1}o&&(t=a[0])}}return a=oo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZD,lastRenderedState:t},a.queue=o,a=dM.bind(null,Fe,o),o.dispatch=a,o=UC(!1),n=rR.bind(null,Fe,!1,o.queue),o=oo(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=uq.bind(null,Fe,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function FE(e){var t=jt();return QD(t,ht,e)}function QD(e,t,a){if(t=$L(e,t,ZD)[0],e=Qh(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=mm(t)}catch(s){throw s===Bc?Xg:s}else o=t;t=jt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,Ic(9,{destroy:void 0},cq.bind(null,r,a),null)),[o,n,e]}function cq(e,t){e.action=t}function _E(e){var t=jt(),a=ht;if(a!==null)return QD(t,a,e);jt(),t=t.memoizedState,a=jt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ic(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Yg(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function JD(){return jt().memoizedState}function Jh(e,t,a,o){var r=oo();Fe.flags|=e,r.memoizedState=Ic(1|t,{destroy:void 0},a,o===void 0?null:o)}function Kg(e,t,a,o){var r=jt();o=o===void 0?null:o;var n=r.memoizedState.inst;ht!==null&&o!==null&&YL(o,ht.memoizedState.deps)?r.memoizedState=Ic(t,n,a,o):(Fe.flags|=e,r.memoizedState=Ic(1|t,n,a,o))}function zE(e,t){Jh(8390656,8,e,t)}function eR(e,t){Kg(2048,8,e,t)}function fq(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Yg(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function $D(e){var t=jt().memoizedState;return fq({ref:t,nextImpl:e}),function(){if((rt&2)!==0)throw Error(Z(440));return t.impl.apply(void 0,arguments)}}function eM(e,t){return Kg(4,2,e,t)}function tM(e,t){return Kg(4,4,e,t)}function aM(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oM(e,t,a){a=a!=null?a.concat([e]):null,Kg(4,4,aM.bind(null,t,e),a)}function tR(){}function rM(e,t){var a=jt();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&YL(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function nM(e,t){var a=jt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&YL(t,o[1]))return o[0];if(o=e(),bl){Es(!0);try{e()}finally{Es(!1)}}return a.memoizedState=[o,t],o}function aR(e,t,a){return a===void 0||(qn&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=QM(),Fe.lanes|=e,Ws|=e,a)}function sM(e,t,a,o){return Go(a,t)?a:Xs.current!==null?(e=aR(e,a,o),Go(e,t)||(aa=!0),e):(qn&106)===0||(qn&1073741824)!==0&&(Ye&261930)===0?(aa=!0,e.memoizedState=a):(e=QM(),Fe.lanes|=e,Ws|=e,t)}function iM(e,t,a,o,r){var n=nt.p;nt.p=n!==0&&8>n?n:8;var s=Ae.T,i={};i.types=s!==null?s.types:null,Ae.T=i,rR(e,!1,t,a);try{var l=r(),u=Ae.S;if(u!==null&&u(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=sq(l,o);Fd(e,t,c,qo(e))}else Fd(e,t,o,qo(e))}catch(d){Fd(e,t,{then:function(){},status:"rejected",reason:d},qo())}finally{nt.p=n,s!==null&&i.types!==null&&(s.types=i.types),Ae.T=s}}function dq(){}function GC(e,t,a,o){if(e.tag!==5)throw Error(Z(476));var r=lM(e).queue;iM(e,r,t,cl,a===null?dq:function(){return uM(e),a(o)})}function lM(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:cl,baseState:cl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:cl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function uM(e){var t=lM(e);t.next===null&&(t=e.alternate.memoizedState),Fd(e,t.next.queue,{},qo())}function oR(){return Pa(Pc)}function cM(){return jt().memoizedState}function fM(){return jt().memoizedState}function mq(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qo();e=Vs(a);var o=Bs(t,e,a);o!==null&&(vo(o,t,a),Nd(o,t,a)),t={cache:HL()},e.payload=t;return}t=t.return}}function pq(e,t,a){var o=qo();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zg(e)?mM(t,a):(a=FL(e,t,a,o),a!==null&&(vo(a,e,o),pM(a,t,o)))}function dM(e,t,a){var o=qo();Fd(e,t,a,o)}function Fd(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zg(e))mM(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(r.hasEagerState=!0,r.eagerState=i,Go(i,s))return Gg(e,t,r,0),yt===null&&qg(),!1}catch{}finally{}if(a=FL(e,t,r,o),a!==null)return vo(a,e,o),pM(a,t,o),!0}return!1}function rR(e,t,a,o){if(o={lane:2,revertLane:hR(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Zg(e)){if(t)throw Error(Z(479))}else t=FL(e,a,o,2),t!==null&&vo(t,e,2)}function Zg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function mM(e,t){xc=Cg=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function pM(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,JA(e,a)}}var Rg={readContext:Pa,use:Wg,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut,useEffectEvent:Ut},hM={readContext:Pa,use:Wg,useCallback:function(e,t){return oo().memoizedState=[e,t===void 0?null:t],e},useContext:Pa,useEffect:zE,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Jh(4194308,4,aM.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Jh(4194308,4,e,t)},useInsertionEffect:function(e,t){Jh(4,2,e,t)},useMemo:function(e,t){var a=oo();t=t===void 0?null:t;var o=e();if(bl){Es(!0);try{e()}finally{Es(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=oo();if(a!==void 0){var r=a(t);if(bl){Es(!0);try{a(t)}finally{Es(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=pq.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var t=oo();return e={current:e},t.memoizedState=e},useState:function(e){e=UC(e);var t=e.queue,a=dM.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:tR,useDeferredValue:function(e,t){var a=oo();return aR(a,e,t)},useTransition:function(){var e=UC(!1);return e=iM.bind(null,Fe,e.queue,!0,!1),oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Fe,r=oo();if(qe){if(a===void 0)throw Error(Z(407));a=a()}else{if(a=t(),yt===null)throw Error(Z(349));(Ye&127)!==0||UD(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,zE(GD.bind(null,o,n,e),[e]),o.flags|=2048,Ic(9,{destroy:void 0},qD.bind(null,o,n,a,t),null),a},useId:function(){var e=oo(),t=yt.identifierPrefix;if(qe){var a=an,o=tn;a=(o&~(1<<32-Uo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Lg++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=iq++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oR,useFormState:BE,useActionState:BE,useOptimistic:function(e){var t=oo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=rR.bind(null,Fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:JL,useCacheRefresh:function(){return oo().memoizedState=mq.bind(null,Fe)},useEffectEvent:function(e){var t=oo(),a={impl:e};return t.memoizedState=a,function(){if((rt&2)!==0)throw Error(Z(440));return a.impl.apply(void 0,arguments)}}},gM={readContext:Pa,use:Wg,useCallback:rM,useContext:Pa,useEffect:eR,useImperativeHandle:oM,useInsertionEffect:eM,useLayoutEffect:tM,useMemo:nM,useReducer:Qh,useRef:JD,useState:function(){return Qh(Gn)},useDebugValue:tR,useDeferredValue:function(e,t){var a=jt();return sM(a,ht.memoizedState,e,t)},useTransition:function(){var e=Qh(Gn)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:mm(e),t]},useSyncExternalStore:HD,useId:cM,useHostTransitionStatus:oR,useFormState:FE,useActionState:FE,useOptimistic:function(e,t){var a=jt();return YD(a,ht,e,t)},useMemoCache:JL,useCacheRefresh:fM,useEffectEvent:$D},hq={readContext:Pa,use:Wg,useCallback:rM,useContext:Pa,useEffect:eR,useImperativeHandle:oM,useInsertionEffect:eM,useLayoutEffect:tM,useMemo:nM,useReducer:eC,useRef:JD,useState:function(){return eC(Gn)},useDebugValue:tR,useDeferredValue:function(e,t){var a=jt();return ht===null?aR(a,e,t):sM(a,ht.memoizedState,e,t)},useTransition:function(){var e=eC(Gn)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:mm(e),t]},useSyncExternalStore:HD,useId:cM,useHostTransitionStatus:oR,useFormState:_E,useActionState:_E,useOptimistic:function(e,t){var a=jt();return ht!==null?YD(a,ht,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:JL,useCacheRefresh:fM,useEffectEvent:$D};function tC(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:St({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var jC={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=qo(),r=Vs(o);r.payload=t,a!=null&&(r.callback=a),t=Bs(e,r,o),t!==null&&(vo(t,e,o),Nd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=qo(),r=Vs(o);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Bs(e,r,o),t!==null&&(vo(t,e,o),Nd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qo(),o=Vs(a);o.tag=2,t!=null&&(o.callback=t),t=Bs(e,o,a),t!==null&&(vo(t,e,a),Nd(t,e,a))}};function HE(e,t,a,o,r,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,n,s):t.prototype&&t.prototype.isPureReactComponent?!Yd(a,o)||!Yd(r,n):!0}function UE(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&jC.enqueueReplaceState(t,t.state,null)}function vl(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=St({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function xM(e){pg(e)}function yM(e){console.error(e)}function SM(e){pg(e)}function Ig(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function qE(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function XC(e,t,a){return a=Vs(a),a.tag=3,a.payload={element:null},a.callback=function(){Ig(e,t)},a}function bM(e){return e=Vs(e),e.tag=3,e}function vM(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){qE(t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){qE(t,a,o),typeof r!="function"&&(zs===null?zs=new Set([this]):zs.add(this));var i=o.stack;this.componentDidCatch(o.value,{componentStack:i!==null?i:""})})}function gq(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&gl(t,a,r,!0),a=Va.current,a!==null){switch(a.tag){case 31:case 13:case 19:return qa===null?Og():a.alternate===null&&qt===0&&(qt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===Sg?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),lC(e,o,r)),!1;case 22:return a.flags|=65536,o===Sg?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),lC(e,o,r)),!1}throw Error(Z(435,a.tag))}return lC(e,o,r),Og(),!1}if(qe)return t=Va.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==kC&&(e=Error(Z(422),{cause:o}),Kd(sr(e,a)))):(o!==kC&&(t=Error(Z(423),{cause:o}),Kd(sr(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=sr(o,a),r=XC(e.stateNode,o,r),$v(e,r),qt!==4&&(qt=2)),!1;var n=Error(Z(520),{cause:o});if(n=sr(n,a),Ud===null?Ud=[n]:Ud.push(n),qt!==4&&(qt=2),t===null)return!0;o=sr(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=XC(a.stateNode,o,e),$v(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(zs===null||!zs.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=bM(r),vM(r,e,a,o),$v(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var nR=Error(Z(461)),aa=!1;function ia(e,t,a,o){t.child=e===null?ND(t,null,a,o):Sl(t,e.child,a,o)}function GE(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var i in o)i!=="ref"&&(s[i]=o[i])}else s=o;return xl(t),o=WL(e,t,a,s,n,r),i=KL(),e!==null&&!aa?(ZL(e,t,r),jn(e,t,r)):(qe&&i&&jg(t),t.flags|=1,ia(e,t,o,r),t.child)}function jE(e,t,a,o,r){if(e===null){var n=a.type;return typeof n=="function"&&!_L(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,CM(e,t,n,o,r)):(e=Wh(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!iR(e,r)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Yd,a(s,o)&&e.ref===t.ref)return jn(e,t,r)}return t.flags|=1,e=_n(n,o),e.ref=t.ref,e.return=t,t.child=e}function CM(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(Yd(n,o)&&e.ref===t.ref)if(aa=!1,t.pendingProps=o=n,iR(e,r))(e.flags&131072)!==0&&(aa=!0);else return t.lanes=e.lanes,jn(e,t,r)}return YC(e,t,a,o,r)}function LM(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return XE(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zh(t,n!==null?n.cachePool:null),n!==null?kE(t,n):zC(),FD(t);else return o=t.lanes=536870912,XE(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(Zh(t,n.cachePool),kE(t,n),_s(),t.memoizedState=null):(e!==null&&Zh(t,null),zC(),_s());return ia(e,t,r,a),t.child}function _d(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function XE(e,t,a,o,r){var n=UL();return n=n===null?null:{parent:ta._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Zh(t,null),zC(),FD(t),e!==null&&gl(e,t,o,!0),t.childLanes=r,null}function $h(e,t){return t=Qg({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function YE(e,t,a){return Sl(t,e.child,null,a),e=$h(t,t.pendingProps),e.flags|=2,Bo(t),t.memoizedState=null,e}function xq(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(o.mode==="hidden")return e=$h(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},_d(null,e);if(HC(t),(e=Lt)?(e=LP(e,ir),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gs!==null?{id:tn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},a=ED(e),a.return=t,t.child=a,Sa=t,Lt=null)):e=null,e===null)throw js(t);return t.lanes=536870912,null}return $h(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(HC(t),r)if(t.flags&256)t.flags&=-257,t=YE(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(Z(558));else if(aa||gl(e,t,a,!1),r=(a&e.childLanes)!==0,aa||r){if(Xs.current===null){if(o=yt,o!==null&&(s=$A(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,Tl(e,s),vo(o,e,s),nR;Og()}t=YE(e,t,a)}else e=n.treeContext,Lt=lr(s.nextSibling),Sa=t,qe=!0,Ns=null,ir=!1,e!==null&&DD(t,e),t=$h(t,o),t.flags|=134221824;return t}return e=_n(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(Z(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function YC(e,t,a,o,r){return xl(t),a=WL(e,t,a,o,void 0,r),o=KL(),e!==null&&!aa?(ZL(e,t,r),jn(e,t,r)):(qe&&o&&jg(t),t.flags|=1,ia(e,t,a,r),t.child)}function WE(e,t,a,o,r,n){return xl(t),t.updateQueue=null,a=zD(t,o,a,r),_D(e),o=KL(),e!==null&&!aa?(ZL(e,t,n),jn(e,t,n)):(qe&&o&&jg(t),t.flags|=1,ia(e,t,a,n),t.child)}function KE(e,t,a,o,r){if(xl(t),t.stateNode===null){var n=lc,s=a.contextType;typeof s=="object"&&s!==null&&(n=Pa(s)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=jC,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},GL(t),s=a.contextType,n.context=typeof s=="object"&&s!==null?Pa(s):lc,n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s=="function"&&(tC(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(s=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&jC.enqueueReplaceState(n,n.state,null),Bd(t,o,n,r),Vd(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var i=t.memoizedProps,l=vl(a,i);n.props=l;var u=n.context,c=a.contextType;s=lc,typeof c=="object"&&c!==null&&(s=Pa(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof n.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,c||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i||u!==s)&&UE(t,n,o,s),Ts=!1;var f=t.memoizedState;n.state=f,Bd(t,o,n,r),Vd(),u=t.memoizedState,i||f!==u||Ts?(typeof d=="function"&&(tC(t,a,d,o),u=t.memoizedState),(l=Ts||HE(t,a,l,o,f,u,s))?(c||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),n.props=o,n.state=u,n.context=s,o=l):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,FC(e,t),s=t.memoizedProps,c=vl(a,s),n.props=c,d=t.pendingProps,f=n.context,u=a.contextType,l=lc,typeof u=="object"&&u!==null&&(l=Pa(u)),i=a.getDerivedStateFromProps,(u=typeof i=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(s!==d||f!==l)&&UE(t,n,o,l),Ts=!1,f=t.memoizedState,n.state=f,Bd(t,o,n,r),Vd();var m=t.memoizedState;s!==d||f!==m||Ts||e!==null&&e.dependencies!==null&&yg(e.dependencies)?(typeof i=="function"&&(tC(t,a,i,o),m=t.memoizedState),(c=Ts||HE(t,a,c,o,f,m,l)||e!==null&&e.dependencies!==null&&yg(e.dependencies))?(u||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,m,l),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,m,l)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),n.props=o,n.state=m,n.context=l,o=c):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Qu(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=Sl(t,e.child,null,r),t.child=Sl(t,null,a,r)):ia(e,t,a,r),t.memoizedState=n.state,e=t.child):e=jn(e,t,r),e}function ZE(e,t,a,o){return hl(),t.flags|=256,ia(e,t,a,o),t.child}var WC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function KC(e){return{baseLanes:e,cachePool:PD()}}function ZC(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_o),e}function RM(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,s;if((s=n)||(s=e!==null&&e.memoizedState===null?!1:(ka.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(r?Fs(t):_s(),(e=Lt)?(e=LP(e,ir),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gs!==null?{id:tn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},a=ED(e),a.return=t,t.child=a,Sa=t,Lt=null)):e=null,e===null)throw js(t);return SR(e)?t.lanes=32:t.lanes=536870912,null}return n=o.children,o=o.fallback,r?(_s(),r=t.mode,n=Qg({mode:"hidden",children:n},r),o=fl(o,r,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=KC(a),o.childLanes=ZC(e,s,a),t.memoizedState=WC,_d(null,o)):(Fs(t),sR(t,n))}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(l!==null)return yq(e,t,n,s,o,l,i,a)}return r?(_s(),r=o.fallback,n=t.mode,i=e.child,l=i.sibling,o=_n(i,{mode:"hidden",children:o.children}),o.subtreeFlags=i.subtreeFlags&1206910976,l!==null?r=_n(l,r):(r=fl(r,n,a,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,_d(null,o),o=t.child,r=e.child.memoizedState,r===null?r=KC(a):(n=r.cachePool,n!==null?(i=ta._currentValue,n=n.parent!==i?{parent:i,pool:i}:n):n=PD(),r={baseLanes:r.baseLanes|a,cachePool:n}),o.memoizedState=r,o.childLanes=ZC(e,s,a),t.memoizedState=WC,_d(e.child,o)):(Fs(t),a=e.child,e=a.sibling,a=_n(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=a,t.memoizedState=null,a)}function sR(e,t){return t=Qg({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qg(e,t){return e=bo(22,e,null,t),e.lanes=0,e}function kh(e,t,a){return Sl(t,e.child,null,a),e=sR(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yq(e,t,a,o,r,n,s,i){if(a)return t.flags&256?(Fs(t),t.flags&=-257,kh(e,t,i)):t.memoizedState!==null?(_s(),t.child=e.child,t.flags|=128,null):(_s(),n=r.fallback,s=t.mode,r=Qg({mode:"visible",children:r.children},s),n=fl(n,s,i,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,Sl(t,e.child,null,i),r=t.child,r.memoizedState=KC(i),r.childLanes=ZC(e,o,i),t.memoizedState=WC,_d(null,r));if(Fs(t),SR(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,o!==""&&(r=Error(Z(419)),r.stack="",r.digest=o,Kd({value:r,source:null,stack:null})),kh(e,t,i)}if(aa||gl(e,t,i,!1),o=(i&e.childLanes)!==0,aa||o){if(Xs.current!==null)return kh(e,t,i);if(o=yt,o!==null&&(r=$A(o,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,Tl(e,r),vo(o,e,r),nR;return vL(n)||Og(),kh(e,t,i)}return vL(n)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Lt=lr(n.nextSibling),Sa=t,qe=!0,Ns=null,ir=!1,e!==null&&DD(t,e),t=sR(t,r.children),t.flags|=134221824,t)}function QE(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Kh(e.return,t,a)}function JE(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&vg(a)===null&&(t=e),e=e.sibling}return t}function Nh(e,t,a,o,r,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=r,s.treeForkCount=n)}function aC(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function QC(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var s=ka.current;if(t.flags&128)return Qd(t,s),null;var i=(s&2)!==0;if(i?(s=s&1|2,t.flags|=128):s&=1,Qd(t,s),r==="backwards"&&e!==null?(aC(e),ia(e,t,o,a),aC(e)):ia(e,t,o,a),o=qe?Wd:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&QE(e,a,t);else if(e.tag===19)QE(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"backwards":a=JE(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null,aC(t)),Nh(t,!0,r,null,n,o);break;case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&vg(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Nh(t,!0,a,null,n,o);break;case"together":Nh(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=JE(t.child),a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Nh(t,!1,r,a,n,o)}return t.child}function $E(e,t,a){var o=t.pendingProps;return Ds(t,t.type,o.value),ia(e,t,o.children,a),t.child}function jn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ws|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(gl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,a=_n(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=_n(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function iR(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yg(e)))}function Sq(e,t,a){switch(t.tag){case 3:cg(t,t.stateNode.containerInfo),Ds(t,ta,e.memoizedState.cache),hl();break;case 27:case 5:RC(t);break;case 4:cg(t,t.stateNode.containerInfo);break;case 10:Ds(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,HC(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Fs(t),t.flags|=128,null;o=gl(e,t,a,!1);var r=t.child.childLanes;return o||(a&r)!==0?RM(e,t,a):(Fs(t),e=jn(e,t,a),e!==null?e.sibling:null)}Fs(t);break;case 19:if(t.flags&128)return QC(e,t,a);if(r=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(gl(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return QC(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Qd(t,ka.current),o)break;return null;case 22:return t.lanes=0,LM(e,t,a,t.pendingProps);case 24:Ds(t,ta,e.memoizedState.cache)}return jn(e,t,a)}function IM(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)aa=!0;else{if(!iR(e,a)&&(t.flags&128)===0)return aa=!1,Sq(e,t,a);aa=(e.flags&131072)!==0}else aa=!1,qe&&(t.flags&1048576)!==0&&AD(t,Wd,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=sl(t.elementType),t.type=e,typeof e=="function")_L(e)?(o=vl(e,o),t.tag=1,t=KE(null,t,e,o,a)):(t.tag=0,t=YC(null,t,e,o,a));else{if(e!=null){var r=e.$$typeof;if(r===TL){t.tag=11,t=GE(null,t,e,o,a);break e}else if(r===wL){t.tag=14,t=jE(null,t,e,o,a);break e}else if(r===$r){t.tag=10,t.type=e,t=$E(null,t,a);break e}}throw t=CC(e)||e,Error(Z(306,t,""))}}return t;case 0:return YC(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=vl(o,t.pendingProps),KE(e,t,o,r,a);case 3:e:{if(cg(t,t.stateNode.containerInfo),e===null)throw Error(Z(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,FC(e,t),Bd(t,o,null,a);var s=t.memoizedState;if(o=s.cache,Ds(t,ta,o),o!==n.cache&&VC(t,[ta],a,!0),Vd(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=ZE(e,t,o,a);break e}else if(o!==r){r=sr(Error(Z(424)),t),Kd(r),t=ZE(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Lt=lr(e.firstChild),Sa=t,qe=!0,Ns=null,ir=!0,a=ND(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(hl(),o===r){t=jn(e,t,a);break e}ia(e,t,o,a)}t=t.child}return t;case 26:return Qu(e,t),e===null?(a=TA(t.type,null,t.pendingProps,null))?t.memoizedState=a:qe||(t.stateNode=pP(t.type,t.pendingProps,ks.current,t)):t.memoizedState=TA(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return RC(t),e===null&&qe&&(o=t.stateNode=RP(t.type,t.pendingProps,ks.current),Sa=t,ir=!0,r=Lt,Zs(t.type)?(CL=r,Lt=lr(o.firstChild)):Lt=r),ia(e,t,t.pendingProps.children,a),Qu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((r=o=Lt)&&(o=f5(o,t.type,t.pendingProps,ir),o!==null?(t.stateNode=o,Sa=t,Lt=lr(o.firstChild),ir=!1,r=!0):r=!1),r||js(t)),RC(t),r=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,yL(r,n)?o=null:s!==null&&yL(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=WL(e,t,lq,null,null,a),Pc._currentValue=r),Qu(e,t),ia(e,t,o,a),t.child;case 6:return e===null&&qe&&((e=a=Lt)&&(a=d5(a,t.pendingProps,ir),a!==null?(t.stateNode=a,Sa=t,Lt=null,e=!0):e=!1),e||js(t)),null;case 13:return RM(e,t,a);case 4:return cg(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Sl(t,null,o,a):ia(e,t,o,a),t.child;case 11:return GE(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,Qu(e,t),ia(e,t,o,a),t.child;case 8:return ia(e,t,t.pendingProps.children,a),t.child;case 12:return ia(e,t,t.pendingProps.children,a),t.child;case 10:return $E(e,t,a);case 9:return r=t.type._context,o=t.pendingProps.children,xl(t),r=Pa(r),o=o(r),t.flags|=1,ia(e,t,o,a),t.child;case 14:return jE(e,t,t.type,t.pendingProps,a);case 15:return CM(e,t,t.type,t.pendingProps,a);case 19:return QC(e,t,a);case 31:return xq(e,t,a);case 22:return LM(e,t,a,t.pendingProps);case 24:return xl(t),o=Pa(ta),e===null?(r=UL(),r===null&&(r=yt,n=HL(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},GL(t),Ds(t,ta,r)):((e.lanes&a)!==0&&(FC(e,t),Bd(t,null,null,a),Vd()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ds(t,ta,o)):(o=n.cache,Ds(t,ta,o),o!==r.cache&&VC(t,[ta],a,!0))),ia(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:qe&&jg(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:Qu(e,t),ia(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(Z(156,t.tag))}function Vn(e){e.flags|=4}function oC(e,t,a,o,r){var n;if((n=(e.mode&32)!==0)&&(n=a===null?AA(t,o):AA(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(eP())e.flags|=8192;else throw ml=Sg,qL}else e.flags&=-16777217}function eA(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!EP(t))if(eP())e.flags|=8192;else throw ml=Sg,qL}function Vh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ZA():536870912,e.lanes|=t,Tc|=t)}function Cd(e,t){if(!qe)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&1206910976,o|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function bq(e,t,a){var o=t.pendingProps;switch(zL(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Ct(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),zn(ta),Cc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ku(t)?Vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jv())),Ct(t),null;case 26:var r=t.type,n=t.memoizedState;return e===null?(Vn(t),n!==null?(Ct(t),eA(t,n)):(Ct(t),oC(t,r,null,o,a))):n?n!==e.memoizedState?(Vn(t),Ct(t),eA(t,n)):(Ct(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Vn(t),Ct(t),oC(t,r,e,o,a)),null;case 27:if(fg(t),a=ks.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Vn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Ct(t),t.subtreeFlags&=-33554433,null}e=on.current,Ku(t)?wE(t,e):(e=RP(r,o,a),t.stateNode=e,Vn(t))}return Ct(t),t.subtreeFlags&=-33554433,null;case 5:if(fg(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Vn(t);else{if(!o){if(t.stateNode===null)throw Error(Z(166));return Ct(t),t.subtreeFlags&=-33554433,null}if(n=on.current,Ku(t))wE(t,n);else{var s=tm(ks.current);switch(n){case 1:n=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=s.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?s.createElement(r,{is:o.is}):s.createElement(r)}}n[Ma]=t,n[Lo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch(Na(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Vn(t)}}return Ct(t),t.subtreeFlags&=-33554433,oC(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Vn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(Z(166));if(e=ks.current,Ku(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Sa,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Ma]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||dP(e.nodeValue,a)),e||js(t,!0)}else e=tm(e).createTextNode(o),e[Ma]=t,t.stateNode=e}return Ct(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Ku(t),a!==null){if(e===null){if(!o)throw Error(Z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(557));e[Ma]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ct(t),e=!1}else a=Jv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Bo(t),t):(Bo(t),null);if((t.flags&128)!==0)throw Error(Z(558))}return Ct(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ku(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(Z(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(Z(317));r[Ma]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ct(t),r=!1}else r=Jv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Bo(t),t):(Bo(t),null)}return Bo(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vh(t,t.updateQueue),Ct(t),null);case 4:return Cc(),e===null&&gR(t.stateNode.containerInfo),t.flags|=67108864,Ct(t),null;case 10:return zn(t.type),Ct(t),null;case 19:if(XL(t),o=t.memoizedState,o===null)return Ct(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)Cd(o,!1);else{if(qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=vg(e),n!==null){for(t.flags|=128,Cd(o,!1),e=n.updateQueue,t.updateQueue=e,Vh(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)wD(a,e),a=a.sibling;return Qd(t,ka.current&1|2),qe&&Bn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&zo()>Mg&&(t.flags|=128,r=!0,Cd(o,!1),t.lanes=4194304)}else{if(!r)if(e=vg(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Vh(t,e),Cd(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!qe)return Ct(t),null}else 2*zo()-o.renderingStartTime>Mg&&a!==536870912&&(t.flags|=128,r=!0,Cd(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=zo(),e.sibling=null,n=ka.current,n=r?n&1|2:n&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||qe?Qd(t,n):(a=n,Rt(Va,t),Rt(ka,a),qa===null&&(qa=t)),qe&&Bn(t,o.treeForkCount),e}return Ct(t),null;case 22:case 23:return Bo(t),jL(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),a=t.updateQueue,a!==null&&Vh(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Oa(dl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(ta),Ct(t),null;case 25:return null;case 30:return t.flags|=33554432,Ct(t),null}throw Error(Z(156,t.tag))}function vq(e,t){switch(zL(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(ta),Cc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fg(t),null;case 31:if(t.memoizedState!==null){if(Bo(t),t.alternate===null)throw Error(Z(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return XL(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Cc(),null;case 10:return zn(t.type),null;case 22:case 23:return Bo(t),jL(),e!==null&&Oa(dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(ta),null;case 25:return null;default:return null}}function TM(e,t){switch(zL(t),t.tag){case 3:zn(ta),Cc();break;case 26:case 27:case 5:fg(t);break;case 4:Cc();break;case 31:t.memoizedState!==null&&Bo(t);break;case 13:Bo(t);break;case 19:XL(t);break;case 10:zn(t.type);break;case 22:case 23:Bo(t),jL(),e!==null&&Oa(dl);break;case 24:zn(ta)}}function pm(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var n=a.create,s=a.inst;o=n(),s.destroy=o}a=a.next}while(a!==r)}}catch(i){dt(t,t.return,i)}}function Ys(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var s=o.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,r=t;var l=a,u=i;try{u()}catch(c){dt(r,l,c)}}}o=o.next}while(o!==n)}}catch(c){dt(t,t.return,c)}}function wM(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{BD(t,a)}catch(o){dt(e,e.return,o)}}}function EM(e,t,a){a.props=vl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){dt(e,t,o)}}function Qr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,n=Un(e.memoizedProps,r);(r.ref===null||r.ref.name!==n)&&(r.ref=yP(n)),o=r.ref;break;case 7:if(e.stateNode===null){var s=new jo(e);Co(e.child,!1,u5,s,void 0,void 0),e.stateNode=s}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(i){dt(e,t,i)}}function Da(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(r){dt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){dt(e,t,r)}else a.current=null}function Tg(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)CP(e.stateNode,t[a])}function tA(e){for(var t=e.return;t!==null&&(uR(t)&&CP(e.stateNode,t.stateNode),!lR(t));)t=t.return}function zd(e){for(var t=e.return;t!==null&&(uR(t)&&c5(e.stateNode,t.stateNode),!lR(t));)t=t.return}function lR(e){return e.tag===5||e.tag===3||e.tag===27}function uR(e){return e&&e.tag===7&&e.stateNode!==null}function JC(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){dt(e,e.return,r)}}function rC(e,t,a){try{var o=e.stateNode;jq(o,e.type,a,t),o[Lo]=t}catch(r){dt(e,e.return,r)}}function AM(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zs(e.type)||e.tag===4}function nC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zs(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $C(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(r),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=en)),Tg(e,o),et=!0;else if(r!==4&&(r===27&&(Tg(e,o),o=null,Zs(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for($C(e,t,a,o),e=e.sibling;e!==null;)$C(e,t,a,o),e=e.sibling}function wg(e,t,a,o){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?a.insertBefore(r,t):a.appendChild(r),Tg(e,o),et=!0;else if(r!==4&&(r===27&&(Tg(e,o),o=null,Zs(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(wg(e,t,a,o),e=e.sibling;e!==null;)wg(e,t,a,o),e=e.sibling}function DM(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Na(t,o,a),t[Ma]=e,t[Lo]=a}catch(n){dt(e,e.return,n)}}var Eg=!1,Fo=null;function aA(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Eg=!0)}var Jr=null;function oA(){var e=Jr;return Jr=null,e}var So=0;function Fc(e,t,a,o,r){return So=0,MM(e.child,t,a,o,r)}function MM(e,t,a,o,r){for(var n=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(o!==null){var i=SL(s);o.push(i),i.view&&(n=!0)}else n||SL(s).view&&(n=!0);Eg=!0,hP(s,So===0?t:t+"_"+So,a),So++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||MM(e.child,t,a,o,r)&&(n=!0));e=e.sibling}return n}function nn(e,t){for(;e!==null;)e.tag===5?gP(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||nn(e.child,t)),e=e.sibling}function eg(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(eg(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(Z(544));var a=t.name;t=Wn(t.default,t.share),t!=="none"&&(Fc(e,a,t,null,!1)||nn(e.child,!1))}e=e.sibling}}function eL(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,r=Un(o,a),n=Wn(o.default,a.paired?o.share:o.enter);n!=="none"?Fc(e,r,n,null,!1)?(eg(e),a.paired||t||wc(e,o.onEnter)):nn(e.child,!1):eg(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)eL(e,t),e=e.sibling;else eg(e)}function tL(e){if(Fo!==null&&Fo.size!==0){var t=Fo;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var r=t.get(o);if(r!==void 0){var n=Wn(a.default,a.share);if(n!=="none"&&(Fc(e,o,n,null,!1)?(n=e.stateNode,r.paired=n,n.paired=r,wc(e,a.onShare)):nn(e.child,!1)),t.delete(o),t.size===0)break}}}tL(e)}e=e.sibling}}}function aL(e){if(e.tag===30){var t=e.memoizedProps,a=Un(t,e.stateNode),o=Fo!==null?Fo.get(a):void 0,r=Wn(t.default,o!==void 0?t.share:t.exit);r!=="none"&&(Fc(e,a,r,null,!1)?o!==void 0?(r=e.stateNode,o.paired=r,r.paired=o,Fo.delete(a),wc(e,t.onShare)):wc(e,t.onExit):nn(e.child,!1)),Fo!==null&&tL(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)aL(e),e=e.sibling;else Fo!==null&&tL(e)}function PM(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Un(t,e.stateNode);t=Wn(t.default,t.update),e.flags&=-5,t!=="none"&&Fc(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&PM(e);e=e.sibling}}function oL(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,nn(e.child,!1))}oL(e)}e=e.sibling}}function tg(e){if(e.tag===30)e.stateNode.paired=null,nn(e.child,!1),oL(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)tg(e),e=e.sibling;else oL(e)}function OM(e){for(e=e.child;e!==null;)e.tag===30?nn(e.child,!1):(e.subtreeFlags&33554432)!==0&&OM(e),e=e.sibling}function cR(e,t,a,o,r,n,s){for(var i=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(n!==null&&So<n.length){var u=n[So],c=SL(l);(u.view||c.view)&&(i=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&hP(l,So===0?a:a+"_"+So,r),i&&(e.flags&4)!==0||(Jr===null&&(Jr=[]),Jr.push(l,So===0?o:o+"_"+So,t.memoizedProps)),So++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:cR(e,t.child,a,o,r,n,s)&&(i=!0));t=t.sibling}return i}function kM(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,r=Un(a,o),n=Wn(a.default,a.update);if(t){o=o.clones;var s=o===null?null:o.map(Qq)}else s=e.memoizedState,e.memoizedState=null;o=e;var i=e.child;So=0,r=cR(o,i,r,r,n,s,!1),(e.flags&4)!==0&&r&&(t||wc(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&kM(e,t);e=e.sibling}}var ga=!1,it=!1,Wr=!1,sC=!1,rA=typeof WeakSet=="function"?WeakSet:Set,xa=null,Kr=!1,Dd=!1,Ag=!1,rL=!1;function Cq(e,t,a){if(e=e.containerInfo,gL=Oc,e=SD(e),VL(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var n=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{o.nodeType,s.nodeType}catch{o=null;break e}var i=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==o||n!==0&&f.nodeType!==3||(l=i+n),f!==s||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===o&&++c===n&&(l=i),m===s&&++d===r&&(u=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}o=l===-1||u===-1?null:{start:l,end:u}}else o=null}o=o||{start:0,end:0}}else o=null;for(xL={focusedElem:e,selectionRange:o},Oc=!1,a=(a&335544064)===a,xa=t,t=a?9270:1024;xa!==null;){if(e=xa,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&aL(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&aA(e),Bh(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&aL(o),Bh(a);continue}else if(o!==null&&o.memoizedState!==null){a&&aA(e),Bh(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,xa=o):(a&&PM(e),Bh(a))}}Fo=null}function Bh(e){for(;xa!==null;){var t=xa,a=e,o=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&o!==null){a=void 0,r=o.memoizedProps,o=o.memoizedState;var n=t.stateNode;try{var s=vl(t.type,r);a=n.getSnapshotBeforeUpdate(s,o),n.__reactInternalSnapshotBeforeUpdate=a}catch(i){dt(t,t.return,i)}}break;case 3:if((r&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)bL(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":bL(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=Un(o.memoizedProps,o.stateNode),r=t.memoizedProps,r=Wn(r.default,r.update),r!=="none"&&Fc(o,a,r,o.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(Z(163))}if(o=t.sibling,o!==null){o.return=t.return,xa=o;break}xa=t.return}}function NM(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Zr(e,a),o&4&&pm(5,a);break;case 1:if(Zr(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(s){dt(a,a.return,s)}else{var r=vl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){dt(a,a.return,s)}}o&64&&wM(a),o&512&&Qr(a,a.return);break;case 3:if(Zr(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{BD(e,t)}catch(s){dt(a,a.return,s)}}break;case 27:t===null&&o&4&&DM(a);case 26:case 5:Zr(e,a),t===null&&o&4&&JC(a),o&512&&Qr(a,a.return);break;case 12:Zr(e,a);break;case 31:Zr(e,a),o&4&&_M(e,a);break;case 13:Zr(e,a),o&4&&zM(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=kq.bind(null,a),m5(e,a))));break;case 22:if(o=a.memoizedState!==null||ga,!o){var n=t!==null&&t.memoizedState!==null||it;t=ga,r=it,ga=o,(it=n)&&!r?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),Ar(e,a,o)):Zr(e,a),ga=t,it=r}break;case 30:Zr(e,a),o&512&&Qr(a,a.return);break;case 7:o&512&&Qr(a,a.return);default:Zr(e,a)}}function nL(e,t){for(e=e.child;e!==null;)VM(e,t),e=e.sibling}function VM(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}else{var r=e.stateNode,n=e.memoizedProps.style,s=n!=null&&n.hasOwnProperty("display")?n.display:null;r.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(l){dt(e,e.return,l)}sL(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,et=!0}catch(l){dt(e,e.return,l)}break;case 18:try{var i=e.stateNode;t?bA(i,!0):bA(e.stateNode,!1)}catch(l){dt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&nL(e,t);break;default:nL(e,t)}}function sL(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:VM(a,o);break e;case 22:a.memoizedState===null&&sL(a,o);break e;default:sL(a,o)}}e=e.sibling}}function BM(e){var t=e.alternate;t!==null&&(e.alternate=null,BM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_g(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ot=null,xo=!1;function Er(e,t,a){for(a=a.child;a!==null;)FM(e,t,a),a=a.sibling}function FM(e,t,a){if(Ho&&typeof Ho.onCommitFiberUnmount=="function")try{Ho.onCommitFiberUnmount(im,a)}catch{}switch(a.tag){case 26:it||Da(a,t),Er(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!it&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Da(a,t),zd(a);var o=Ot,r=xo;Zs(a.type)&&(Ot=a.stateNode,xo=!1),Er(e,t,a),IP(a.stateNode,a.type,a.memoizedProps),Ot=o,xo=r;break;case 5:it||Da(a,t),zd(a);case 6:if(a.tag===6&&zd(a),o=Ot,r=xo,Ot=null,Er(e,t,a),Ot=o,xo=r,Ot!==null)if(xo)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode),et=!0}catch(n){dt(a,t,n)}else try{Ot.removeChild(a.stateNode),et=!0}catch(n){dt(a,t,n)}break;case 18:Ot!==null&&(xo?(e=Ot,SA(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),kc(e)):SA(Ot,a.stateNode));break;case 4:o=Ot,r=xo,Ot=a.stateNode.containerInfo,xo=!0,Er(e,t,a),Ot=o,xo=r;break;case 0:case 11:case 14:case 15:Ys(2,a,t),it||Ys(4,a,t),Er(e,t,a);break;case 1:it||(Da(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&EM(a,t,o)),Er(e,t,a);break;case 21:Er(e,t,a);break;case 22:it=(o=it)||a.memoizedState!==null,Er(e,t,a),it=o;break;case 30:Da(a,t),Er(e,t,a);break;case 7:it||Da(a,t),Er(e,t,a);break;default:Er(e,t,a)}}function _M(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kc(e)}catch(a){dt(t,t.return,a)}}}function zM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kc(e)}catch(a){dt(t,t.return,a)}}function Lq(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rA),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rA),t;default:throw Error(Z(435,e.tag))}}function Fh(e,t){var a=Lq(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=Nq.bind(null,e,o);o.then(r,r)}})}function to(e,t,a){var o=t.deletions;if(o!==null)for(var r=0;r<o.length;r++){var n=o[r],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Zs(l.type)){Ot=l.stateNode,xo=!1;break e}break;case 5:Ot=l.stateNode,xo=!1;break e;case 3:case 4:Ot=l.stateNode.containerInfo,xo=!0;break e}l=l.return}if(Ot===null)throw Error(Z(160));FM(s,i,n),Ot=null,xo=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)HM(t,e,a),t=t.sibling}var Dr=null;function HM(e,t,a){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var n=0;n<o.length;n++){var s=o[n];s.ref.impl=s.nextImpl}to(t,e,a),ao(e),r&4&&(Ys(3,e,e.return),pm(3,e),Ys(5,e,e.return));break;case 1:to(t,e,a),ao(e),r&512&&(it||o===null||Da(o,o.return)),r&64&&ga&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(n=Dr,to(t,e,a),ao(e),r&512&&(it||o===null||Da(o,o.return)),r&4)if(r=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(ga)e.stateNode=pP(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,r=n.ownerDocument||n;t:switch(t){case"title":o=r.getElementsByTagName("title")[0],(!o||o[cm]||o[Ma]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(t),r.head.insertBefore(o,r.querySelector("head > title"))),Na(o,t,a),o[Ma]=e,ya(o),t=o;break e;case"link":if(n=EA("link","href",r).get(t+(a.href||""))){for(s=0;s<n.length;s++)if(o=n[s],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){n.splice(s,1);break t}}o=r.createElement(t),Na(o,t,a),r.head.appendChild(o);break;case"meta":if(n=EA("meta","content",r).get(t+(a.content||""))){for(s=0;s<n.length;s++)if(o=n[s],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){n.splice(s,1);break t}}o=r.createElement(t),Na(o,t,a),r.head.appendChild(o);break;default:throw Error(Z(468,t))}o[Ma]=e,ya(o),t=o}e.stateNode=t}else ga||LL(n,e.type,e.stateNode);else e.stateNode=wA(n,a,e.memoizedProps);else r!==a?(r===null?(t=o.stateNode,t===null||it||t.parentNode.removeChild(t)):r.count--,a===null?ga||LL(n,e.type,e.stateNode):wA(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&rC(e,e.memoizedProps,o.memoizedProps);break;case 27:to(t,e,a),ao(e),r&512&&(it||o===null||Da(o,o.return)),o!==null&&r&4&&rC(e,e.memoizedProps,o.memoizedProps);break;case 5:if(n=Wr,Wr=!1,to(t,e,a),Wr=n,ao(e),r&512&&(it||o===null||Da(o,o.return)),e.flags&32){t=e.stateNode;try{Rc(t,""),et=!0}catch(c){dt(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,rC(e,t,o!==null?o.memoizedProps:t)),r&1024&&(sC=!0);break;case 6:if(to(t,e,a),ao(e),r&4){if(e.stateNode===null)throw Error(Z(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,et=!0}catch(c){dt(e,e.return,c)}}break;case 3:if(et=!1,ng=null,n=Dr,Dr=am(t.containerInfo),to(t,e,a),Dr=n,ao(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{kc(t.containerInfo)}catch(c){dt(e,e.return,c)}sC&&(sC=!1,UM(e)),et=!1;break;case 4:r=Wr,Wr=ga,o=cE(),n=Dr,Dr=am(e.stateNode.containerInfo),to(t,e,a),ao(e),Dr=n,et&&Dd&&(Ag=!0),et=o,Wr=r;break;case 12:to(t,e,a),ao(e);break;case 31:to(t,e,a),ao(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fh(e,t)));break;case 13:to(t,e,a),ao(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Jg=zo()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fh(e,t)));break;case 22:n=e.memoizedState!==null,s=o!==null&&o.memoizedState!==null;var i=ga,l=it,u=Wr;ga=i||n,Wr=u||n,it=l||s,to(t,e,a),it=l,Wr=u,ga=i,ao(e),r&8192&&(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,!n||o===null||s||ga||it||(t=s||it,a=ga,o=it,ga=n||ga,it=t,Rs(e,2),ga=a,it=o),!n&&Wr||nL(e,n)),r&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Fh(e,a))));break;case 19:to(t,e,a),ao(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fh(e,t)));break;case 30:r&512&&(it||o===null||Da(o,o.return)),r=cE(),n=Dd,s=(a&335544064)===a,i=e.memoizedProps,Dd=s&&Wn(i.default,i.update)!=="none",to(t,e,a),ao(e),s&&o!==null&&et&&(e.flags|=4),Dd=n,et=r;break;case 21:break;case 7:r&512&&(it||o===null||Da(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:to(t,e,a),ao(e)}}function ao(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(AM(o)){a=o;break}o=o.return}o=null;for(var r=e.return;r!==null;){if(uR(r)){var n=r.stateNode;o===null?o=[n]:o.push(n)}if(lR(r))break;r=r.return}var s=o;if(a==null)throw Error(Z(160));switch(a.tag){case 27:var i=a.stateNode,l=nC(e);wg(e,l,i,s);break;case 5:var u=a.stateNode;a.flags&32&&(Rc(u,""),a.flags&=-33);var c=nC(e);wg(e,c,u,s);break;case 3:case 4:var d=a.stateNode.containerInfo,f=nC(e);$C(e,f,d,s);break;default:throw Error(Z(161))}}catch(m){dt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UM(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;UM(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Oc=!0,t.reset(),Oc=!1),e=e.sibling}}function Zu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)qM(t,e),t=t.sibling;else kM(t,!1)}function qM(e,t){var a=e.alternate;if(a===null)eL(e,!1);else switch(e.tag){case 3:if(rL=Kr=!1,oA(),Zu(t,e),!Kr&&!Ag){if(e=Jr,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var r=e[o+1];gP(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),rL=!0}Jr=null;break;case 5:Zu(t,e);break;case 4:o=Kr,Kr=!1,Zu(t,e),Kr&&(Ag=!0),Kr=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?eL(e,!1):Zu(t,e));break;case 30:o=Kr,r=oA(),Kr=!1,Zu(t,e),Kr&&(e.flags|=4);var n=e.memoizedProps,s=e.stateNode;t=Un(n,s),s=Un(a.memoizedProps,s);var i=Wn(n.default,n.update);i==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,So=0,t=cR(e,a,t,s,i,n,!0),So!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(wc(e,e.memoizedProps.onUpdate),Jr=r):r!==null&&(r.push.apply(r,Jr),Jr=r),Kr=(e.flags&32)!==0?!0:o;break;default:Zu(t,e)}}function Zr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)NM(e,t.alternate,t),t=t.sibling}function Rs(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:Ys(4,a,a.return),Rs(a,o);break;case 1:Da(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&EM(a,a.return,r),Rs(a,o);break;case 27:(o&2)!==0&&IP(a.stateNode,a.type,a.memoizedProps);case 5:Da(a,a.return),a.tag!==5&&a.tag!==27||zd(a),Rs(a,o);break;case 6:zd(a);break;case 26:Da(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||it||r.parentNode.removeChild(r),Rs(a,o);break;case 22:a.memoizedState===null&&Rs(a,o);break;case 30:Da(a,a.return),Rs(a,o);break;case 7:Da(a,a.return);default:Rs(a,o)}e=e.sibling}}function Ar(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var o=t.alternate,r=e,n=t,s=n.flags,i=(a&1)!==0;switch(n.tag){case 0:case 11:case 15:Ar(r,n,a),pm(4,n);break;case 1:if(Ar(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){dt(o,o.return,c)}if(o=n,r=o.updateQueue,r!==null){var l=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)VD(u[r],l)}catch(c){dt(o,o.return,c)}}i&&s&64&&wM(n),Qr(n,n.return);break;case 27:(a&2)!==0&&DM(n);case 5:n.tag!==5&&n.tag!==27||tA(n),Ar(r,n,a),i&&o===null&&s&4&&JC(n),Qr(n,n.return);break;case 6:tA(n);break;case 26:l=n.stateNode,n.memoizedState!==null||l===null||ga||LL(am(l.ownerDocument),n.type,l),Ar(r,n,a),i&&o===null&&s&4&&JC(n),Qr(n,n.return);break;case 12:Ar(r,n,a);break;case 31:Ar(r,n,a),i&&s&4&&_M(r,n);break;case 13:Ar(r,n,a),i&&s&4&&zM(r,n);break;case 22:n.memoizedState===null&&Ar(r,n,a),Qr(n,n.return);break;case 30:Ar(r,n,a),Qr(n,n.return);break;case 7:Qr(n,n.return);default:Ar(r,n,a)}t=t.sibling}}function fR(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&dm(a))}function dR(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dm(e))}function tr(e,t,a,o){var r=(a&335544064)===a;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)GM(e,t,a,o),t=t.sibling;else r&&OM(t)}function GM(e,t,a,o){var r=(a&335544064)===a;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tg(t);var n=t.flags;switch(t.tag){case 0:case 11:case 15:tr(e,t,a,o),n&2048&&pm(9,t);break;case 1:tr(e,t,a,o);break;case 3:tr(e,t,a,o),r&&rL&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),n&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(t.refCount++,n!=null&&dm(n)));break;case 12:if(n&2048){tr(e,t,a,o),n=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(u){dt(t,t.return,u)}}else tr(e,t,a,o);break;case 31:tr(e,t,a,o);break;case 13:tr(e,t,a,o);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?(r&&i!==null&&i.memoizedState===null&&tg(i),s._visibility&2?tr(e,t,a,o):Hd(e,t)):(r&&i!==null&&i.memoizedState!==null&&tg(t),s._visibility&2?tr(e,t,a,o):(s._visibility|=2,Ju(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),n&2048&&fR(i,t);break;case 24:tr(e,t,a,o),n&2048&&dR(t.alternate,t);break;case 30:r&&(n=t.alternate,n!==null&&(nn(n.child,!0),nn(t.child,!0))),tr(e,t,a,o);break;default:tr(e,t,a,o)}}function Ju(e,t,a,o,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,s=t,i=a,l=o,u=s.flags;switch(s.tag){case 0:case 11:case 15:Ju(n,s,i,l,r),pm(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Ju(n,s,i,l,r):Hd(n,s):(c._visibility|=2,Ju(n,s,i,l,r)),r&&u&2048&&fR(s.alternate,s);break;case 24:Ju(n,s,i,l,r),r&&u&2048&&dR(s.alternate,s);break;default:Ju(n,s,i,l,r)}t=t.sibling}}function Hd(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Hd(a,o),r&2048&&fR(o.alternate,o);break;case 24:Hd(a,o),r&2048&&dR(o.alternate,o);break;default:Hd(a,o)}t=t.sibling}}var il=8192;function rl(e,t,a){if(e.subtreeFlags&il)for(e=e.child;e!==null;)jM(e,t,a),e=e.sibling}function jM(e,t,a){switch(e.tag){case 26:rl(e,t,a),e.flags&il&&(e.memoizedState!==null?w5(a,Dr,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&DA(a,e)));break;case 5:rl(e,t,a),e.flags&il&&(e=e.stateNode,(t&335544128)===t&&DA(a,e));break;case 3:case 4:var o=Dr;Dr=am(e.stateNode.containerInfo),rl(e,t,a),Dr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=il,il=16777216,rl(e,t,a),il=o):rl(e,t,a));break;case 30:if((e.flags&il)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var r=e.stateNode;r.paired=null,Fo===null&&(Fo=new Map),Fo.set(o,r)}rl(e,t,a);break;default:rl(e,t,a)}}function XM(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ld(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,WM(o,e)}XM(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)YM(e),e=e.sibling}function YM(e){switch(e.tag){case 0:case 11:case 15:Ld(e),e.flags&2048&&Ys(9,e,e.return);break;case 3:Ld(e);break;case 12:Ld(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ag(e)):Ld(e);break;default:Ld(e)}}function ag(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];xa=o,WM(o,e)}XM(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ys(8,t,t.return),ag(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ag(t));break;default:ag(t)}e=e.sibling}}function WM(e,t){for(;xa!==null;){var a=xa;switch(a.tag){case 0:case 11:case 15:Ys(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:dm(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,xa=o;else e:for(a=e;xa!==null;){o=xa;var r=o.sibling,n=o.return;if(BM(o),o===a){xa=null;break e}if(r!==null){r.return=n,xa=r;break e}xa=n}}}var Rq={getCacheForType:function(e){var t=Pa(ta),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pa(ta).controller.signal}},Iq=typeof WeakMap=="function"?WeakMap:Map,rt=0,yt=null,Xe=null,Ye=0,ct=0,No=null,Ms=!1,_c=!1,mR=!1,Xn=0,qt=0,Ws=0,pl=0,Dg=0,_o=0,Tc=0,Ud=null,yo=null,iL=!1,Jg=0,KM=0,Mg=1/0,Pg=null,zs=null,Ft=0,Pr=null,Cl=null,rn=0,lL=0,uL=null,ZM=null,Sc=null,bc=null,vc=null,qd=0,og=null;function qo(){return(rt&2)!==0&&Ye!==0?Ye&-Ye:Ae.T!==null?hR():eD()}function QM(){if(_o===0)if((Ye&536870912)===0||qe){var e=Ih;Ih<<=1,(Ih&3932160)===0&&(Ih=262144),_o=e}else _o=536870912;return e=Va.current,e!==null&&(e.flags|=32),_o}function wc(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=yP(Un(e.memoizedProps,a))),bc===null&&(bc=[]),bc.push(t.bind(null,o))}}function vo(e,t,a){(e===yt&&(ct===2||ct===9)||e.cancelPendingCommit!==null)&&(Ec(e,0),Ps(e,Ye,_o,!1)),um(e,a),((rt&2)===0||e!==yt)&&(e===yt&&((rt&2)===0&&(pl|=a),qt===4&&Ps(e,Ye,_o,!1)),ln(e))}function JM(e,t,a){if((rt&6)!==0)throw Error(Z(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||lm(e,t),r=o?Eq(e,t):iC(e,t,!0),n=o;do{if(r===0){_c&&!o&&Ps(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!Tq(a)){r=iC(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=Ud;var l=i.current.memoizedState.isDehydrated;if(l&&(Ec(i,s).flags|=256),s=iC(i,s,!1),s!==2&&s!==6){if(mR&&!l){i.errorRecoveryDisabledLanes|=n,pl|=n,r=4;break e}n=yo,yo=r,n!==null&&(yo===null?yo=n:yo.push.apply(yo,n))}r=s}if(n=!1,r!==2)continue}}if(r===1){Ec(e,0),Ps(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(Z(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ps(o,t,_o,!Ms);break e;case 2:yo=null;break;case 3:case 5:break;default:throw Error(Z(329))}if((t&62914560)===t&&(r=Jg+300-zo(),10<r)){if(Ps(o,t,_o,!Ms),Fg(o,0,!0)!==0)break e;rn=t,o.timeoutHandle=xR(nA.bind(null,o,a,yo,Pg,iL,t,_o,pl,Tc,Ms,n,"Throttled",-0,0),r);break e}nA(o,a,yo,Pg,iL,t,_o,pl,Tc,Ms,n,null,-0,0)}}break}while(!0);ln(e)}function nA(e,t,a,o,r,n,s,i,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,y=(n&335544064)===n;if(d=null,(y||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Fo=null,jM(t,n,d),y&&(p=d,y=e.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(p.count++,p.waitingForViewTransition=!0,p=om.bind(p),y.finished.then(p,p))),p=(n&62914560)===n?Jg-zo():(n&4194048)===n?KM-zo():0,p=E5(d,p),p!==null)){rn=n,e.cancelPendingCommit=p(iA.bind(null,e,t,n,a,o,r,s,i,l,u,c,d,null,f,m)),Ps(e,n,s,!u);return}iA(e,t,n,a,o,r,s,i,l,u,c,d)}function Tq(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!Go(n(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ps(e,t,a,o){t=KA(e,t),t&=~Dg,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-Uo(r),s=1<<n;o[n]=-1,r&=~s}a!==0&&QA(e,a,t)}function $g(){return(rt&6)===0?(hm(0,!1),!1):!0}function pR(){if(Xe!==null){if(ct===0)var e=Xe.return;else e=Xe,Fn=wl=null,QL(e),gc=null,Zd=0,e=Xe;for(;e!==null;)TM(e.alternate,e),e=e.return;Xe=null}}function Ec(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,Wq(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rn=0,pR(),yt=e,Xe=a=_n(e.current,null),Ye=t,ct=0,No=null,Ms=!1,_c=lm(e,t),mR=!1,Tc=_o=Dg=pl=Ws=qt=0,yo=Ud=null,iL=!1,Xn=KA(e,t),qg(),a}function $M(e,t){Fe=null,Ae.H=Rg,t===Bc||t===Xg?(t=PE(),ct=3):t===qL?(t=PE(),ct=4):ct=t===nR?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,No=t,Xe===null&&(qt=1,Ig(e,sr(t,e.current)))}function eP(){var e=Va.current;return e===null?!0:(Ye&4194048)===Ye?qa===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===qa:!1}function tP(){var e=Ae.H;return Ae.H=Rg,e===null?Rg:e}function aP(){var e=Ae.A;return Ae.A=Rq,e}function Og(){qt=4,Ms||(Ye&4194048)!==Ye&&Va.current!==null||(_c=!0),(Ws&134217727)===0&&(pl&134217727)===0||yt===null||Ps(yt,Ye,_o,!1)}function iC(e,t,a){var o=rt;rt|=2;var r=tP(),n=aP();(yt!==e||Ye!==t)&&(Pg=null,Ec(e,t)),t=!1;var s=qt;e:do try{if(ct!==0&&Xe!==null){var i=Xe,l=No;switch(ct){case 8:pR(),s=6;break e;case 3:case 2:case 9:case 6:Va.current===null&&(t=!0);var u=ct;if(ct=0,No=null,fc(e,i,l,u),a&&_c){s=0;break e}break;default:u=ct,ct=0,No=null,fc(e,i,l,u)}}wq(),s=qt;break}catch(c){$M(e,c)}while(!0);return t&&e.shellSuspendCounter++,Fn=wl=null,rt=o,Ae.H=r,Ae.A=n,Xe===null&&(yt=null,Ye=0,qg()),s}function wq(){for(;Xe!==null;)oP(Xe)}function Eq(e,t){var a=rt;rt|=2;var o=tP(),r=aP();yt!==e||Ye!==t?(Pg=null,Mg=zo()+500,Ec(e,t)):_c=lm(e,t);e:do try{if(ct!==0&&Xe!==null){t=Xe;var n=No;t:switch(ct){case 1:ct=0,No=null,fc(e,t,n,1);break;case 2:case 9:if(ME(n)){ct=0,No=null,sA(t);break}t=function(){ct!==2&&ct!==9||yt!==e||(ct=7),ln(e)},n.then(t,t);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:ME(n)?(ct=0,No=null,sA(t)):(ct=0,No=null,fc(e,t,n,7));break;case 5:var s=null;switch(Xe.tag){case 26:s=Xe.memoizedState;case 5:case 27:var i=Xe;if(s?EP(s):i.stateNode.complete){ct=0,No=null;var l=i.sibling;if(l!==null)Xe=l;else{var u=i.return;u!==null?(Xe=u,ex(u)):Xe=null}break t}}ct=0,No=null,fc(e,t,n,5);break;case 6:ct=0,No=null,fc(e,t,n,6);break;case 8:pR(),qt=6;break e;default:throw Error(Z(462))}}Aq();break}catch(c){$M(e,c)}while(!0);return Fn=wl=null,Ae.H=o,Ae.A=r,rt=a,Xe!==null?0:(yt=null,Ye=0,qg(),qt)}function Aq(){for(;Xe!==null&&!X3();)oP(Xe)}function oP(e){var t=IM(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,t===null?ex(e):Xe=t}function sA(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=WE(a,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=WE(a,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:QL(t);var o=t;o===Sa&&(qe?(xg(o),o.tag===5&&o.stateNode!=null&&(Lt=o.stateNode)):(xg(o),qe=!0));default:TM(a,t),t=Xe=wD(t,Xn),t=IM(a,t,Xn)}e.memoizedProps=e.pendingProps,t===null?ex(e):Xe=t}function fc(e,t,a,o){Fn=wl=null,QL(t),gc=null,Zd=0;var r=t.return;try{if(gq(e,r,t,a,Ye)){qt=1,Ig(e,sr(a,e.current)),Xe=null;return}}catch(n){if(r!==null)throw Xe=r,n;qt=1,Ig(e,sr(a,e.current)),Xe=null;return}t.flags&32768?(qe||o===1?e=!0:_c||(Ye&536870912)!==0?e=!1:(Ms=e=!0,(o===2||o===9||o===3||o===6)&&(o=Va.current,o!==null&&o.tag===13&&(o.flags|=16384))),rP(t,e)):ex(t)}function ex(e){var t=e;do{if((t.flags&32768)!==0){rP(t,Ms);return}e=t.return;var a=bq(t.alternate,t,Xn);if(a!==null){Xe=a;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);qt===0&&(qt=5)}function rP(e,t){do{var a=vq(e.alternate,e);if(a!==null){a.flags&=32767,Xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Xe=e;return}Xe=e=a}while(e!==null);qt=6,Xe=null}function iA(e,t,a,o,r,n,s,i,l,u,c,d){e.cancelPendingCommit=null;do tx();while(Ft!==0);if((rt&6)!==0)throw Error(Z(327));if(t!==null){if(t===e.current)throw Error(Z(177));e===yt&&(Xe=yt=null,Ye=0),Cl=t,Pr=e,rn=a,uL=r,ZM=o,Dq(e,t,a,s,i,l,d)}}function Dq(e,t,a,o,r,n,s){var i=t.lanes|t.childLanes;if(lL=i,i|=BL,a4(e,a,i,o,r,n),bc=null,(a&335544064)===a?(vc=rq(e),o=10262):(vc=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,Vq(dg,function(){return mL(),null})):(e.callbackNode=null,e.callbackPriority=0),Eg=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Ae.T,Ae.T=null,r=nt.p,nt.p=2,n=rt,rt|=4;try{Cq(e,t,a)}finally{rt=n,nt.p=r,Ae.T=o}}Ft=1,Eg?Sc=e5(s,e.containerInfo,vc,cL,fL,Pq,dL,mL,Mq,null,null):(cL(),fL(),dL())}function Mq(e){if(Ft!==0){var t=Pr.onRecoverableError;t(e,{componentStack:null})}}function Pq(){Ft===3&&(Ft=0,qM(Cl,Pr),Ft=4)}function cL(){if(Ft===1){Ft=0;var e=Pr,t=Cl,a=rn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=Ae.T,Ae.T=null;var r=nt.p;nt.p=2;var n=rt;rt|=4;try{Dd=Ag=!1,HM(t,e,a),a=xL;var s=SD(e.containerInfo),i=a.focusedElem,l=a.selectionRange;if(s!==i&&i&&i.ownerDocument&&yD(i.ownerDocument.documentElement,i)){if(l!==null&&VL(i)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=i.textContent.length,y=Math.min(l.start,p),b=l.end===void 0?y:Math.min(l.end,p);!m.extend&&y>b&&(s=b,b=y,y=s);var g=LE(i,y),h=LE(i,b);if(g&&h&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var x=d.createRange();x.setStart(g.node,g.offset),m.removeAllRanges(),y>b?(m.addRange(x),m.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),m.addRange(x))}}}}for(d=[],m=i;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<d.length;i++){var S=d[i];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Oc=!!gL,xL=gL=null}finally{rt=n,nt.p=r,Ae.T=o}}e.current=t,Ft=2}}function fL(){if(Ft===2){Ft=0;var e=Pr,t=Cl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Ae.T,Ae.T=null;var o=nt.p;nt.p=2;var r=rt;rt|=4;try{NM(e,t.alternate,t)}finally{rt=r,nt.p=o,Ae.T=a}}Ft=3}}function dL(){if(Ft===4||Ft===3){Ft=0;var e=Sc;Sc=null,Y3();var t=Pr,a=Cl,o=rn,r=ZM,n=(o&335544064)===o?10262:10256;if((a.subtreeFlags&n)!==0||(a.flags&n)!==0?Ft=5:(Ft=0,Cl=Pr=null,nP(t,t.pendingLanes)),n=t.pendingLanes,n===0&&(zs=null),DL(o),a=a.stateNode,Ho&&typeof Ho.onCommitFiberRoot=="function")try{Ho.onCommitFiberRoot(im,a,void 0,(a.current.flags&128)===128)}catch{}if(r!==null){a=Ae.T,n=nt.p,nt.p=2,Ae.T=null;try{for(var s=t.onRecoverableError,i=0;i<r.length;i++){var l=r[i];s(l.value,{componentStack:l.stack})}}finally{Ae.T=a,nt.p=n}}if(r=bc,s=vc,vc=null,r!==null&&(bc=null,s===null&&(s=[]),e!==null))for(l=0;l<r.length;l++)a=(0,r[l])(s),a!==void 0&&e.finished.finally(a);(rn&3)!==0&&tx(),ln(t),n=t.pendingLanes,(o&261930)!==0&&(n&42)!==0?t===og?qd++:(qd=0,og=t):(qd=0,og=null),hm(0,!1)}}function nP(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dm(t)))}function tx(){return Sc!==null&&(Sc.skipTransition(),Sc=null),cL(),fL(),dL(),mL()}function mL(){if(Ft!==5)return!1;var e=Pr,t=lL;lL=0;var a=DL(rn),o=Ae.T,r=nt.p;try{nt.p=32>a?32:a,Ae.T=null,a=uL,uL=null;var n=Pr,s=rn;if(Ft=0,Cl=Pr=null,rn=0,(rt&6)!==0)throw Error(Z(331));var i=rt;if(rt|=4,YM(n.current),GM(n,n.current,s,a),rt=i,hm(0,!1),Ho&&typeof Ho.onPostCommitFiberRoot=="function")try{Ho.onPostCommitFiberRoot(im,n)}catch{}return!0}finally{nt.p=r,Ae.T=o,nP(e,t)}}function lA(e,t,a){t=sr(a,t),t=XC(e.stateNode,t,2),e=Bs(e,t,2),e!==null&&(um(e,2),ln(e))}function dt(e,t,a){if(e.tag===3)lA(e,e,a);else for(;t!==null;){if(t.tag===3){lA(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(zs===null||!zs.has(o))){e=sr(a,e),a=bM(2),o=Bs(t,a,2),o!==null&&(vM(a,o,t,e),um(o,2),ln(o));break}}t=t.return}}function lC(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new Iq;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(mR=!0,r.add(a),e=Oq.bind(null,e,t,a),t.then(e,e))}function Oq(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,yt===e&&(Ye&a)===a&&((qt===4||qt===3&&(Ye&62914560)===Ye&&300>zo()-Jg)&&(rt&2)===0?Ec(e,0):Dg|=a,Tc===Ye&&(Tc=0)),ln(e)}function sP(e,t){t===0&&(t=ZA()),e=Tl(e,t),e!==null&&(um(e,t),ln(e))}function kq(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sP(e,a)}function Nq(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(Z(314))}o!==null&&o.delete(t),sP(e,a)}function Vq(e,t){return EL(e,t)}var Ac=null,$u=null,pL=!1,kg=!1,uC=!1,Os=0;function ln(e){e!==$u&&e.next===null&&($u===null?Ac=$u=e:$u=$u.next=e),kg=!0,pL||(pL=!0,Fq())}function hm(e,t){if(!uC&&kg){uC=!0;do for(var a=!1,o=Ac;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var s=o.suspendedLanes,i=o.pingedLanes;n=(1<<31-Uo(42|e)+1)-1,n&=r&~(s&~i),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,uA(o,n))}else n=Ye,n=Fg(o,o===yt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||lm(o,n)||(a=!0,uA(o,n));o=o.next}while(a);uC=!1}}function Bq(){iP()}function iP(){kg=pL=!1;var e=0;Os!==0&&Yq()&&(e=Os);for(var t=zo(),a=null,o=Ac;o!==null;){var r=o.next,n=lP(o,t);n===0?(o.next=null,a===null?Ac=r:a.next=r,r===null&&($u=a)):(a=o,(e!==0||(n&3)!==0)&&(kg=!0)),o=r}Ft!==0&&Ft!==5||hm(e,!1),Os!==0&&(Os=0)}function lP(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var s=31-Uo(n),i=1<<s,l=r[s];l===-1?((i&a)===0||(i&o)!==0)&&(r[s]=t4(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}if(t=yt,a=Ye,a=Fg(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(ct===2||ct===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Hv(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||lm(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Hv(o),DL(a)){case 2:case 8:a=YA;break;case 32:a=dg;break;case 268435456:a=WA;break;default:a=dg}return o=uP.bind(null,e),a=EL(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Hv(o),e.callbackPriority=2,e.callbackNode=null,2}function uP(e,t){if(Ft!==0&&Ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(tx()&&e.callbackNode!==a)return null;var o=Ye;return o=Fg(e,e===yt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(JM(e,o,t),lP(e,zo()),e.callbackNode!=null&&e.callbackNode===a?uP.bind(null,e):null)}function uA(e,t){if(tx())return null;JM(e,t,!0)}function Fq(){Kq(function(){(rt&6)!==0?EL(XA,Bq):iP()})}function hR(){if(Os===0){var e=yl;e===0&&(e=Rh,Rh<<=1,(Rh&261888)===0&&(Rh=256)),Os=e}return Os}function cA(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jh(e)}function _q(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=cA((r[Lo]||null).action),s=o.submitter;s&&(t=(t=s[Lo]||null)?cA(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var i=new zg("action","action",null,o,r);e.push({event:i,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Os!==0){var l=new FormData(r,s);GC(a,{pending:!0,data:l,method:r.method,action:n},null,l)}}else typeof n=="function"&&(i.preventDefault(),l=new FormData(r,s),GC(a,{pending:!0,data:l,method:r.method,action:n},n,l))},currentTarget:r}]})}}for(_h=0;_h<OC.length;_h++)zh=OC[_h],fA=zh.toLowerCase(),dA=zh[0].toUpperCase()+zh.slice(1),Or(fA,"on"+dA);var zh,fA,dA,_h;Or(vD,"onAnimationEnd");Or(CD,"onAnimationIteration");Or(LD,"onAnimationStart");Or("dblclick","onDoubleClick");Or("focusin","onFocus");Or("focusout","onBlur");Or(Z4,"onTransitionRun");Or(Q4,"onTransitionStart");Or(J4,"onTransitionCancel");Or(RD,"onTransitionEnd");Lc("onMouseEnter",["mouseout","mouseover"]);Lc("onMouseLeave",["mouseout","mouseover"]);Lc("onPointerEnter",["pointerout","pointerover"]);Lc("onPointerLeave",["pointerout","pointerover"]);Rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $d="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($d));function cP(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var s=o.length-1;0<=s;s--){var i=o[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&r.isPropagationStopped())break e;n=i,r.currentTarget=u;try{n(r)}catch(c){pg(c)}r.currentTarget=null,n=l}else for(s=0;s<o.length;s++){if(i=o[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&r.isPropagationStopped())break e;n=i,r.currentTarget=u;try{n(r)}catch(c){pg(c)}r.currentTarget=null,n=l}}}}function je(e,t){var a=t[sE];a===void 0&&(a=t[sE]=new Set);var o=e+"__bubble";a.has(o)||(fP(t,e,2,!1),a.add(o))}function cC(e,t,a){var o=0;t&&(o|=4),fP(a,e,o,t)}var Hh="_reactListening"+Math.random().toString(36).slice(2);function gR(e){if(!e[Hh]){e[Hh]=!0,aD.forEach(function(a){a!=="selectionchange"&&(zq.has(a)||cC(a,!1,e),cC(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hh]||(t[Hh]=!0,cC("selectionchange",!1,t))}}function fP(e,t,a,o){switch(NP(t)){case 2:var r=P5;break;case 8:r=O5;break;default:r=LR}a=r.bind(null,t,a,e),r=void 0,!AC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function fC(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var i=o.stateNode.containerInfo;if(i===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;i!==null;){if(s=ll(i),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){o=n=s;continue e}i=i.parentNode}}o=o.return}cD(function(){var u=n,c=PL(a),d=[];e:{var f=ID.get(e);if(f!==void 0){var m=zg,p=e;switch(e){case"keypress":if(Yh(a)===0)break e;case"keydown":case"keyup":m=T4;break;case"focusin":p="focus",m=Yv;break;case"focusout":p="blur",m=Yv;break;case"beforeblur":case"afterblur":m=Yv;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=pE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=p4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=M4;break;case vD:case CD:case LD:m=x4;break;case RD:m=O4;break;case"scroll":case"scrollend":m=d4;break;case"wheel":m=N4;break;case"copy":case"cut":case"paste":m=S4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=gE;break;case"submit":m=A4;break;case"toggle":case"beforetoggle":m=B4}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),g=y?f!==null?f+"Capture":null:f;y=[];for(var h=u,x;h!==null;){var S=h;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||g===null||(S=jd(h,g),S!=null&&y.push(em(h,S,x))),b)break;h=h.return}0<y.length&&(f=new m(f,p,null,a,c),d.push({event:f,listeners:y}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&a!==EC&&(p=a.relatedTarget||a.fromElement)&&(ll(p)||p[Nc]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?ll(m):null,m!==null&&(b=sm(m),y=m.tag,m!==b||y!==5&&y!==27&&y!==6)&&(m=null)):(f=null,m=u),f!==m&&(y=pE,S="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=gE,S="onPointerLeave",g="onPointerEnter",h="pointer"),b=f==null?p:Ed(f),x=m==null?p:Ed(m),p=new y(S,h+"leave",f,a,c),p.target=b,p.relatedTarget=x,S=null,ll(c)===u&&(y=new y(g,h+"enter",m,a,c),y.target=x,y.relatedTarget=b,S=y),b=S,y=f&&m?gC(f,m,Hq):null,f!==null&&mA(d,p,f,y,!1),m!==null&&b!==null&&mA(d,b,m,y,!0)))}e:{if(f=u?Ed(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var v=bE;else if(SE(f))if(gD)v=Y4;else{v=j4;var I=G4}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&ML(u.elementType)&&(v=bE):v=X4;if(v&&(v=v(e,u))){hD(d,v,a,c);break e}I&&I(e,f,u)}switch(I=u?Ed(u):window,e){case"focusin":(SE(I)||I.contentEditable==="true")&&(nc=I,MC=u,Od=null);break;case"focusout":Od=MC=nc=null;break;case"mousedown":PC=!0;break;case"contextmenu":case"mouseup":case"dragend":PC=!1,RE(d,a,c);break;case"selectionchange":if(K4)break;case"keydown":case"keyup":RE(d,a,c)}var L;if(NL)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else rc?mD(e,a)&&(C="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(C="onCompositionStart");C&&(dD&&a.locale!=="ko"&&(rc||C!=="onCompositionStart"?C==="onCompositionEnd"&&rc&&(L=fD()):(As=c,OL="value"in As?As.value:As.textContent,rc=!0)),I=Ng(u,C),0<I.length&&(C=new hE(C,e,null,a,c),d.push({event:C,listeners:I}),L?C.data=L:(L=pD(a),L!==null&&(C.data=L)))),(L=_4?z4(e,a):H4(e,a))&&(C=Ng(u,"onBeforeInput"),0<C.length&&(I=new hE("onBeforeInput","beforeinput",null,a,c),d.push({event:I,listeners:C}),I.data=L)),_q(d,e,u,a,c)}cP(d,t)})}function em(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ng(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=jd(e,a),r!=null&&o.unshift(em(e,r,n)),r=jd(e,t),r!=null&&o.push(em(e,r,n))),e.tag===3)return o;e=e.return}return[]}function Hq(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mA(e,t,a,o,r){for(var n=t._reactName,s=[];a!==null&&a!==o;){var i=a,l=i.alternate,u=i.stateNode;if(i=i.tag,l!==null&&l===o)break;i!==5&&i!==26&&i!==27||u===null||(l=u,r?(u=jd(a,n),u!=null&&s.unshift(em(a,u,l))):r||(u=jd(a,n),u!=null&&s.push(em(a,u,l)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var Uq=/\r\n?/g,qq=/\u0000|\uFFFD/g;function pA(e){return(typeof e=="string"?e:""+e).replace(Uq,`
|
|
9
|
+
`).replace(qq,"")}function dP(e,t){return t=pA(t),pA(e)===t}function ft(e,t,a,o,r,n){switch(a){case"children":if(typeof o=="string")t==="body"||t==="textarea"&&o===""||Rc(e,o);else if(typeof o=="number"||typeof o=="bigint")t!=="body"&&Rc(e,""+o);else return;break;case"className":wh(e,"class",o);break;case"tabIndex":wh(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":wh(e,a,o);break;case"style":uD(e,o,n);return;case"data":if(t!=="object"){wh(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=jh(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(a==="formAction"?(t!=="input"&&ft(e,t,"name",r.name,r,null),ft(e,t,"formEncType",r.formEncType,r,null),ft(e,t,"formMethod",r.formMethod,r,null),ft(e,t,"formTarget",r.formTarget,r,null)):(ft(e,t,"encType",r.encType,r,null),ft(e,t,"method",r.method,r,null),ft(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=jh(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=en);return;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=jh(o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":je("beforetoggle",e),je("toggle",e),Gh(e,"popover",o);break;case"xlinkActuate":Nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Nn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Nn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Nn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Nn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Gh(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=c4.get(a)||a,Gh(e,a,o);else return}et=!0}function hL(e,t,a,o,r,n){switch(a){case"style":uD(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(Z(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(Z(60));n?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")Rc(e,o);else if(typeof o=="number"||typeof o=="bigint")Rc(e,""+o);else return;break;case"onScroll":o!=null&&je("scroll",e);return;case"onScrollEnd":o!=null&&je("scrollend",e);return;case"onClick":o!=null&&(e.onclick=en);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!oD.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),t=e[Lo]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(n,t,r),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,r);break e}et=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):Gh(e,a,o)}return}et=!0}function Na(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,n,s,a,null)}}r&&ft(e,t,"srcSet",a.srcSet,a,null),o&&ft(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var i=n=s=r=null,l=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":r=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":n=c;break;case"defaultValue":i=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Z(137,t));break;default:ft(e,t,o,c,a,null)}}sD(e,n,i,l,u,s,r,!1);return;case"select":je("invalid",e),o=s=n=null;for(r in a)if(a.hasOwnProperty(r)&&(i=a[r],i!=null))switch(r){case"value":n=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:ft(e,t,r,i,a,null)}t=n,a=s,e.multiple=!!o,t!=null?mc(e,!!o,t,!1):a!=null&&mc(e,!!o,a,!0);return;case"textarea":je("invalid",e),n=r=o=null;for(s in a)if(a.hasOwnProperty(s)&&(i=a[s],i!=null))switch(s){case"value":o=i;break;case"defaultValue":r=i;break;case"children":n=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Z(91));break;default:ft(e,t,s,i,a,null)}lD(e,o,r,n);return;case"option":for(l in a)if(a.hasOwnProperty(l)&&(o=a[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ft(e,t,l,o,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(o=0;o<$d.length;o++)je($d[o],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ft(e,t,u,o,a,null)}return;default:if(ML(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&hL(e,t,c,o,a,void 0));return}}for(i in a)a.hasOwnProperty(i)&&(o=a[i],o!=null&&ft(e,t,i,o,a,null))}var Gq={};function jq(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,s=null,i=null,l=null,u=null,c=null;for(m in a){var d=a[m];if(a.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:o.hasOwnProperty(m)||ft(e,t,m,null,o,d)}}for(var f in o){var m=o[f];if(d=a[f],o.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(et=!0),n=m;break;case"name":m!==d&&(et=!0),r=m;break;case"checked":m!==d&&(et=!0),u=m;break;case"defaultChecked":m!==d&&(et=!0),c=m;break;case"value":m!==d&&(et=!0),s=m;break;case"defaultValue":m!==d&&(et=!0),i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(Z(137,t));break;default:m!==d&&ft(e,t,f,m,o,d)}}wC(e,s,i,l,u,c,n,r);return;case"select":m=s=i=f=null;for(n in a)if(l=a[n],a.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":m=l;default:o.hasOwnProperty(n)||ft(e,t,n,null,o,l)}for(r in o)if(n=o[r],l=a[r],o.hasOwnProperty(r)&&(n!=null||l!=null))switch(r){case"value":n!==l&&(et=!0),f=n;break;case"defaultValue":n!==l&&(et=!0),i=n;break;case"multiple":n!==l&&(et=!0),s=n;default:n!==l&&ft(e,t,r,n,o,l)}t=i,a=s,o=m,f!=null?mc(e,!!a,f,!1):!!o!=!!a&&(t!=null?mc(e,!!a,t,!0):mc(e,!!a,a?[]:"",!1));return;case"textarea":m=f=null;for(i in a)if(r=a[i],a.hasOwnProperty(i)&&r!=null&&!o.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:ft(e,t,i,null,o,r)}for(s in o)if(r=o[s],n=a[s],o.hasOwnProperty(s)&&(r!=null||n!=null))switch(s){case"value":r!==n&&(et=!0),f=r;break;case"defaultValue":r!==n&&(et=!0),m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(Z(91));break;default:r!==n&&ft(e,t,s,r,o,n)}iD(e,f,m);return;case"option":for(var p in a)if(f=a[p],a.hasOwnProperty(p)&&f!=null&&!o.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:ft(e,t,p,null,o,f)}for(l in o)if(f=o[l],m=a[l],o.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(et=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:ft(e,t,l,f,o,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in a)f=a[y],a.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&ft(e,t,y,null,o,f);for(u in o)if(f=o[u],m=a[u],o.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(Z(137,t));break;default:ft(e,t,u,f,o,m)}return;default:if(ML(t)){for(var b in a)f=a[b],a.hasOwnProperty(b)&&f!==void 0&&!o.hasOwnProperty(b)&&hL(e,t,b,void 0,o,f);for(c in o)f=o[c],m=a[c],!o.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||hL(e,t,c,f,o,m);return}}for(var g in a)f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g)&&ft(e,t,g,null,o,f);for(d in o)f=o[d],m=a[d],!o.hasOwnProperty(d)||f===m||f==null&&m==null||ft(e,t,d,f,o,m)}function hA(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xq(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],n=r.transferSize,s=r.initiatorType,i=r.duration;if(n&&i&&hA(s)){for(s=0,i=r.responseEnd,o+=1;o<a.length;o++){var l=a[o],u=l.startTime;if(u>i)break;var c=l.transferSize,d=l.initiatorType;c&&hA(d)&&(l=l.responseEnd,s+=c*(l<i?1:(i-u)/(l-u)))}if(--o,t+=8*(n+s)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gL=null,xL=null;function tm(e){return e.nodeType===9?e:e.ownerDocument}function gA(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mP(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function pP(e,t,a,o){return a=tm(a).createElement(e),a[Ma]=o,a[Lo]=t,Na(a,e,t),ya(a),a}function yL(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dC=null;function Yq(){var e=window.event;return e&&e.type==="popstate"?e===dC?!1:(dC=e,!0):(dC=null,!1)}var xR=typeof setTimeout=="function"?setTimeout:void 0,Wq=typeof clearTimeout=="function"?clearTimeout:void 0,xA=typeof Promise=="function"?Promise:void 0,yA=typeof requestAnimationFrame=="function"?requestAnimationFrame:xR,Kq=typeof queueMicrotask=="function"?queueMicrotask:typeof xA<"u"?function(e){return xA.resolve(null).then(e).catch(Zq)}:xR;function Zq(e){setTimeout(function(){throw e})}function Zs(e){return e==="head"}function SA(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),kc(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")pC(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,pC(a);for(var n=a.firstChild;n;){var s=n.nextSibling,i=n.nodeName;n[cm]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a==="body"&&pC(e.ownerDocument.body);a=r}while(a);kc(t)}function bA(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function hP(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var r=o=0;r<t.length;r++){var n=t[r];0<n.width&&0<n.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function gP(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function xP(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function SL(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return xP(t,a,e)}function Qq(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return xP(t,a,e)}function Jq(e){return e.documentElement.clientHeight}function $q(e){this.addEventListener("load",e),this.addEventListener("error",e)}function e5(e,t,a,o,r,n,s,i,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;o();var y=[];if(p==="loaded"&&(Jq(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),p=y.length,e!==null)for(var b=e.suspenseyImages,g=0,h=0;h<b.length;h++){var x=b[h];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<f.innerHeight&&S.left<f.innerWidth){if(g+=AP(x),g>sg){y.length=p;break}x=new Promise($q.bind(x)),y.push(x)}}}if(0<y.length)return f=Promise.race([Promise.all(y),new Promise(function(v){return setTimeout(v,500)})]).then(r,r),(m?Promise.allSettled([m.finished,f]):f).then(n,n);if(r(),m)return m.finished.then(n,n);n()},types:a});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],y=p.effect,b=y.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){d.push(p),p=y.getKeyframes();for(var g=b=void 0,h=!0,x=0;x<p.length;x++){var S=p[x],v=S.width;if(b===void 0)b=v;else if(b!==v){h=!1;break}if(v=S.height,g===void 0)g=v;else if(g!==v){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&b!==void 0&&g!==void 0&&(y.setKeyframes(p),h=getComputedStyle(y.target,y.pseudoElement),h.width!==b||h.height!==g)&&(h=p[0],h.width=b,h.height=g,h=p[p.length-1],h.width=b,h.height=g,y.setKeyframes(p))}}s()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{o(),r(),s()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),i()}),c}catch{return o(),r(),s(),null}}function ul(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ul.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:St({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ul.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],r=0;r<a.length;r++){var n=a[r].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[r])}return o};ul.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function yP(e){return{name:e,group:new ul("group",e),imagePair:new ul("image-pair",e),old:new ul("old",e),new:new ul("new",e)}}function jo(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}jo.prototype.addEventListener=function(e,t,a){var o=null,r=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(SP(n,e,t,a)===-1){var s=this,i=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(i=function(l){s.removeEventListener(e,t,a),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),o!==null&&(r=s.removeEventListener.bind(s,e,t,a),o.addEventListener("abort",r,{once:!0}),r=o.removeEventListener.bind(o,"abort",r)),o=Dc(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:i,cleanup:r}),Co(this._fragmentFiber.child,!1,t5,e,i,o)}this._eventListeners=n}};function t5(e,t,a,o){return la(e).addEventListener(t,a,o),!1}jo.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=SP(o,e,t,a),t!==-1)){var r=o[t];a=r.attachedListener;var n=r.cleanup;r=Dc(r.optionsOrUseCapture),Co(this._fragmentFiber.child,!1,a5,e,a,r),o.splice(t,1),n!==null&&n()}};function a5(e,t,a,o){return la(e).removeEventListener(t,a,o),!1}function Dc(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function vA(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function SP(e,t,a,o){if(e.length===0)return-1;o=vA(o);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===t&&n.listener===a&&vA(n.optionsOrUseCapture)===o)return r}return-1}jo.prototype.dispatchEvent=function(e){var t=Ll(this._fragmentFiber);if(t===null)return!0;t=la(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var n=a[r];o.addEventListener(n.type,n.attachedListener,Dc(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(r=0;r<a.length;r++)n=a[r],o.removeEventListener(n.type,n.attachedListener,Dc(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};jo.prototype.focus=function(e){Co(this._fragmentFiber.child,!0,bP,e,void 0,void 0)};function bP(e,t){return e.tag===6?!1:(e=la(e),p5(e,t))}jo.prototype.focusLast=function(e){var t=[];Co(this._fragmentFiber.child,!0,yR,t,void 0,void 0);for(var a=t.length-1;0<=a&&!bP(t[a],e);a--);};function yR(e,t){return t.push(e),!1}jo.prototype.blur=function(){var e=Ll(this._fragmentFiber);e!==null&&(e=la(e),e=tm(e).activeElement,e!==null&&Co(this._fragmentFiber.child,!1,o5,e,void 0,void 0))};function o5(e,t){return e.tag===6?!1:(e=la(e),e===t||e.contains(t)?(t.blur(),!0):!1)}jo.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Co(this._fragmentFiber.child,!1,r5,e,void 0,void 0)};function r5(e,t){return e.tag===6||(e=la(e),t.observe(e)),!1}jo.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Co(this._fragmentFiber.child,!1,n5,e,void 0,void 0);for(var a=t=0;a<Mr.length;a++){var o=Mr[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Mr[t++]=o}Mr.length=t}};function n5(e,t){return e.tag===6||(e=la(e),t.unobserve(e)),!1}var Mr=[],mC=!1;function s5(e,t,a){Mr.push({fragmentInstance:e,observer:t,instance:a}),mC||(mC=!0,h5(function(){mC=!1;var o=Mr;Mr=[];for(var r=0;r<o.length;r++){var n=o[r];n.observer.unobserve(n.instance)}}))}jo.prototype.getClientRects=function(){var e=[];return Co(this._fragmentFiber.child,!1,i5,e,void 0,void 0),e};function i5(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=la(e),t.push.apply(t,e.getClientRects());return!1}jo.prototype.getRootNode=function(e){var t=Ll(this._fragmentFiber);return t===null?this:la(t).getRootNode(e)};jo.prototype.compareDocumentPosition=function(e){var t=Ll(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Co(this._fragmentFiber.child,!1,yR,a,void 0,void 0);var o=la(t);if(a.length===0){if(a=o,eE(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var r=o=a.compareDocumentPosition(e);return a===e?r=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=UA(t)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=la(a).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=la(a[0]),r=la(a[a.length-1]);var n=eE(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),i=r.compareDocumentPosition(e),l=s&Node.DOCUMENT_POSITION_CONTAINED_BY||i&Node.DOCUMENT_POSITION_CONTAINED_BY;return i=o&&n&&s&Node.DOCUMENT_POSITION_FOLLOWING&&i&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&r===e||l||i?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||l5(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function l5(e,t,a,o,r){var n=ll(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=r.ownerDocument,r===n||r===n.documentElement||r===n.body;e:{for(n=t,t=Ll(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=gC(a,n,tE),t===null?t=!1:(Co(t,!0,F3,n,a),n=ec,ec=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=gC(o,n,tE),t===null?t=!1:(Co(t,!0,_3,n,o),n=ec,hC=ec=null,t=n!==null)),t):!1}function CA(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}jo.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(Z(566));var t=[];Co(this._fragmentFiber.child,!1,yR,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=UA(this._fragmentFiber);if(o=a?o[1]||o[0]||Ll(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=la(o),CA(e,a);return}if(o=la(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var r=t[o];r.tag===6?(r=la(r),CA(r,a)):la(r).scrollIntoView(e),o+=a?-1:1}};function u5(e,t){return e=la(e),vP(e,t),!1}function vP(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function CP(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.addEventListener(r.type,r.attachedListener,Dc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var s=0,i=0;i<Mr.length;i++){var l=Mr[i];(l.fragmentInstance!==t||l.observer!==n||l.instance!==e)&&(Mr[s++]=l)}Mr.length=s,n.observe(e)}),vP(e,t))}function c5(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o];e.removeEventListener(r.type,r.attachedListener,Dc(r.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin=="string"?s5(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function bL(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":bL(a),_g(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function f5(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[cm])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=lr(e.nextSibling),e===null)break}return null}function d5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=lr(e.nextSibling),e===null))return null;return e}function LP(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=lr(e.nextSibling),e===null))return null;return e}function vL(e){return e.data==="$?"||e.data==="$~"}function SR(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function lr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var CL=null;function LA(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return lr(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function RA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function p5(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function h5(e){yA(function(){yA(function(t){return e(t)})})}function RP(e,t,a){switch(t=tm(a),e){case"html":if(e=t.documentElement,!e)throw Error(Z(452));return e;case"head":if(e=t.head,!e)throw Error(Z(453));return e;case"body":if(e=t.body,!e)throw Error(Z(454));return e;default:throw Error(Z(451))}}function IP(e,t,a){for(var o in a){var r=a[o];a.hasOwnProperty(o)&&r!=null&&ft(e,t,o,null,Gq,r)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===en&&(e.onclick=null),_g(e)}function pC(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_g(e)}var ur=new Map,IA=new Set;function am(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Kn=nt.d;nt.d={f:g5,r:x5,D:y5,C:S5,L:b5,m:v5,X:L5,S:C5,M:R5};function g5(){var e=Kn.f(),t=$g();return e||t}function x5(e){var t=Vc(e);t!==null&&t.tag===5&&t.type==="form"?uM(t):Kn.r(e)}var zc=typeof document>"u"?null:document;function TP(e,t,a){var o=zc;if(o&&typeof t=="string"&&t){var r=nr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),IA.has(r)||(IA.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Na(t,"link",e),ya(t),o.head.appendChild(t)))}}function y5(e){Kn.D(e),TP("dns-prefetch",e,null)}function S5(e,t){Kn.C(e,t),TP("preconnect",e,t)}function b5(e,t,a){Kn.L(e,t,a);var o=zc;if(o&&e&&t){var r='link[rel="preload"][as="'+nr(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+nr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+nr(a.imageSizes)+'"]')):r+='[href="'+nr(e)+'"]';var n=r;switch(t){case"style":n=Mc(e);break;case"script":n=Hc(e)}if(!(ur.has(n)||(e=St({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ur.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(gm(n))||t==="script"&&o.querySelector(xm(n))))){var s=o.createElement("link");Na(s,"link",e),t==="style"&&(s[mg]=!0,s.onload=s.onerror=function(){tD(s)}),ya(s),o.head.appendChild(s)}}}function v5(e,t){Kn.m(e,t);var a=zc;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+nr(o)+'"][href="'+nr(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Hc(e)}if(!ur.has(n)&&(e=St({rel:"modulepreload",href:e},t),ur.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xm(n)))return}o=a.createElement("link"),Na(o,"link",e),ya(o),a.head.appendChild(o)}}}function C5(e,t,a){Kn.S(e,t,a);var o=zc;if(o&&e){var r=dc(o).hoistableStyles,n=Mc(e);t=t||"default";var s=r.get(n);if(!s){var i={loading:0,preload:null};if(s=o.querySelector(gm(n)))i.loading=5;else{e=St({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ur.get(n))&&bR(e,a);var l=s=o.createElement("link");ya(l),Na(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,rg(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(n,s)}}}function L5(e,t){Kn.X(e,t);var a=zc;if(a&&e){var o=dc(a).hoistableScripts,r=Hc(e),n=o.get(r);n||(n=a.querySelector(xm(r)),n||(e=St({src:e,async:!0},t),(t=ur.get(r))&&vR(e,t),n=a.createElement("script"),ya(n),Na(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function R5(e,t){Kn.M(e,t);var a=zc;if(a&&e){var o=dc(a).hoistableScripts,r=Hc(e),n=o.get(r);n||(n=a.querySelector(xm(r)),n||(e=St({src:e,async:!0,type:"module"},t),(t=ur.get(r))&&vR(e,t),n=a.createElement("script"),ya(n),Na(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function TA(e,t,a,o){var r=(r=ks.current)?am(r):null;if(!r)throw Error(Z(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Mc(a.href),t=dc(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mc(a.href);var n=dc(r).hoistableStyles,s=n.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,s),(n=r.querySelector(gm(e)))?n._p||(s.instance=n,s.state.loading=5):(n=ur.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ur.set(e,n)),I5(r,e,n,s.state))),t&&o===null)throw Error(Z(528,""));return s}if(t&&o!==null)throw Error(Z(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Hc(a),t=dc(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(Z(444,e))}}function Mc(e){return'href="'+nr(e)+'"'}function gm(e){return'link[rel="stylesheet"]['+e+"]"}function wP(e){return St({},e,{"data-precedence":e.precedence,precedence:null})}function I5(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[mg]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[mg]=!0,t.onload=t.onerror=tD.bind(null,t),Na(t,"link",a),ya(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Hc(e){return'[src="'+nr(e)+'"]'}function xm(e){return"script[async]"+e}function wA(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+nr(a.href)+'"]');if(o)return t.instance=o,ya(o),o;var r=St({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ya(o),Na(o,"style",r),rg(o,a.precedence,e),t.instance=o;case"stylesheet":r=Mc(a.href);var n=e.querySelector(gm(r));if(n)return t.state.loading|=4,t.instance=n,ya(n),n;o=wP(a),(r=ur.get(r))&&bR(o,r),n=(e.ownerDocument||e).createElement("link"),ya(n);var s=n;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Na(n,"link",o),t.state.loading|=4,rg(n,a.precedence,e),t.instance=n;case"script":return n=Hc(a.src),(r=e.querySelector(xm(n)))?(t.instance=r,ya(r),r):(o=a,(r=ur.get(n))&&(o=St({},a),vR(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),ya(r),Na(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(Z(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,rg(o,a.precedence,e));return t.instance}function rg(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,s=0;s<o.length;s++){var i=o[s];if(i.dataset.precedence===t)n=i;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ng=null;function EA(e,t,a){if(ng===null){var o=new Map,r=ng=new Map;r.set(a,o)}else r=ng,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var n=a[r];if(!(n[cm]||n[Ma]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var s=n.getAttribute(t)||"";s=e+s;var i=o.get(s);i?i.push(n):o.set(s,[n])}}return o}function LL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function T5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function AA(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function EP(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function AP(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function DA(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=AP(t),e.suspenseyImages.push(t)),e=A5.bind(e),t.decode().then(e,e))}function w5(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Mc(o.href),n=t.querySelector(gm(r));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=om.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,ya(n);return}n=t.ownerDocument||t,o=wP(o),(r=ur.get(r))&&bR(o,r),n=n.createElement("link"),ya(n);var s=n;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Na(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=om.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var sg=0;function E5(e,t){return e.stylesheets&&e.count===0&&ig(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&ig(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&sg===0&&(sg=62500*Xq());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ig(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>sg?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function DP(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ig(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function om(){this.count--,DP(this)}function A5(){this.imgCount--,DP(this)}var Vg=null;function ig(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vg=new Map,t.forEach(D5,e),Vg=null,om.call(e))}function D5(e,t){if(!(t.state.loading&4)){var a=Vg.get(e);if(a)var o=a.get(null);else{a=new Map,Vg.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var s=r[n];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(a.set(s.dataset.precedence,s),o=s)}o&&a.set(null,o)}r=t.instance,s=r.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(null,r),a.set(s,r),this.count++,o=om.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Pc={$$typeof:$r,Provider:null,Consumer:null,_currentValue:cl,_currentValue2:cl,_threadCount:0};function M5(e,t,a,o,r,n,s,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uv(0),this.hiddenUpdates=Uv(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function MP(e,t,a,o,r,n,s,i,l,u,c,d){return e=new M5(e,t,a,s,l,u,c,d,i),t=1,n===!0&&(t|=24),n=bo(3,null,null,t),e.current=n,n.stateNode=e,t=HL(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},GL(n),e}function PP(e){return e?(e=lc,e):lc}function OP(e,t,a,o,r,n){r=PP(r),o.context===null?o.context=r:o.pendingContext=r,o=Vs(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=Bs(e,o,t),a!==null&&(vo(a,e,t),Nd(a,e,t))}function MA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function CR(e,t){MA(e,t),(e=e.alternate)&&MA(e,t)}function kP(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&vo(t,e,67108864),CR(e,67108864)}}function PA(e){if(e.tag===13||e.tag===31){var t=qo();t=AL(t);var a=Tl(e,t);a!==null&&vo(a,e,t),CR(e,t)}}var Oc=!0;function P5(e,t,a,o){var r=Ae.T;Ae.T=null;var n=nt.p;try{nt.p=2,LR(e,t,a,o)}finally{nt.p=n,Ae.T=r}}function O5(e,t,a,o){var r=Ae.T;Ae.T=null;var n=nt.p;try{nt.p=8,LR(e,t,a,o)}finally{nt.p=n,Ae.T=r}}function LR(e,t,a,o){if(Oc){var r=RL(o);if(r===null)fC(e,t,o,Bg,a),OA(e,o);else if(N5(r,e,t,a,o))o.stopPropagation();else if(OA(e,o),t&4&&-1<k5.indexOf(e)){for(;r!==null;){var n=Vc(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=nl(n.pendingLanes);if(s!==0){var i=n;for(i.pendingLanes|=2,i.entangledLanes|=2;s;){var l=1<<31-Uo(s);i.entanglements[1]|=l,s&=~l}ln(n),(rt&6)===0&&(Mg=zo()+500,hm(0,!1))}}break;case 31:case 13:i=Tl(n,2),i!==null&&vo(i,n,2),$g(),CR(n,2)}if(n=RL(o),n===null&&fC(e,t,o,Bg,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else fC(e,t,o,null,a)}}function RL(e){return e=PL(e),RR(e)}var Bg=null;function RR(e){if(Bg=null,e=ll(e),e!==null){var t=sm(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=_A(t),e!==null)return e;e=null}else if(a===31){if(e=zA(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bg=e,null}function NP(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(W3()){case XA:return 2;case YA:return 8;case dg:case K3:return 32;case WA:return 268435456;default:return 32}default:return 32}}var IL=!1,Hs=null,Us=null,qs=null,rm=new Map,nm=new Map,ws=[],k5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function OA(e,t){switch(e){case"focusin":case"focusout":Hs=null;break;case"dragenter":case"dragleave":Us=null;break;case"mouseover":case"mouseout":qs=null;break;case"pointerover":case"pointerout":rm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nm.delete(t.pointerId)}}function Rd(e,t,a,o,r,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Vc(t),t!==null&&kP(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function N5(e,t,a,o,r){switch(t){case"focusin":return Hs=Rd(Hs,e,t,a,o,r),!0;case"dragenter":return Us=Rd(Us,e,t,a,o,r),!0;case"mouseover":return qs=Rd(qs,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return rm.set(n,Rd(rm.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,nm.set(n,Rd(nm.get(n)||null,e,t,a,o,r)),!0}return!1}function VP(e){var t=ll(e.target);if(t!==null){var a=sm(t);if(a!==null){if(t=a.tag,t===13){if(t=_A(a),t!==null){e.blockedOn=t,nE(e.priority,function(){PA(a)});return}}else if(t===31){if(t=zA(a),t!==null){e.blockedOn=t,nE(e.priority,function(){PA(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=RL(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);EC=o,a.target.dispatchEvent(o),EC=null}else return t=Vc(a),t!==null&&kP(t),e.blockedOn=a,!1;t.shift()}return!0}function kA(e,t,a){lg(e)&&a.delete(t)}function V5(){IL=!1,Hs!==null&&lg(Hs)&&(Hs=null),Us!==null&&lg(Us)&&(Us=null),qs!==null&&lg(qs)&&(qs=null),rm.forEach(kA),nm.forEach(kA)}function Uh(e,t){e.blockedOn===t&&(e.blockedOn=null,IL||(IL=!0,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,V5)))}var qh=null;function NA(e){qh!==e&&(qh=e,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,function(){qh===e&&(qh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(RR(o||a)===null)continue;break}var n=Vc(a);n!==null&&(e.splice(t,3),t-=3,GC(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function kc(e){function t(l){return Uh(l,e)}Hs!==null&&Uh(Hs,e),Us!==null&&Uh(Us,e),qs!==null&&Uh(qs,e),rm.forEach(t),nm.forEach(t);for(var a=0;a<ws.length;a++){var o=ws[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ws.length&&(a=ws[0],a.blockedOn===null);)VP(a),a.blockedOn===null&&ws.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],s=r[Lo]||null;if(typeof n=="function")s||NA(a);else if(s){var i=null;if(n&&n.hasAttribute("formAction")){if(r=n,s=n[Lo]||null)i=s.formAction;else if(RR(r)!==null)continue}else i=s.action;typeof i=="function"?a[o+1]=i:(a.splice(o,3),o-=3),NA(a)}}}function BP(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return r=s})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function IR(e){this._internalRoot=e}ax.prototype.render=IR.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));var a=t.current,o=qo();OP(a,o,e,t,null,null)};ax.prototype.unmount=IR.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;OP(e.current,2,null,e,null,null),$g(),t[Nc]=null}};function ax(e){this._internalRoot=e}ax.prototype.unstable_scheduleHydration=function(e){if(e){var t=eD();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ws.length&&t!==0&&t<ws[a].priority;a++);ws.splice(a,0,e),a===0&&VP(e)}};var VA=BA.version;if(VA!=="19.3.0")throw Error(Z(527,VA,"19.3.0"));nt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=B3(t),e=e!==null?HA(e):null,e=e===null?null:e.stateNode,e};var B5={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ae,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Id=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Id.isDisabled&&Id.supportsFiber))try{im=Id.inject(B5),Ho=Id}catch{}var Id;ox.createRoot=function(e,t){if(!FA(e))throw Error(Z(299));var a=!1,o="",r=xM,n=yM,s=SM;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=MP(e,1,!1,null,null,a,o,null,r,n,s,BP),e[Nc]=t.current,gR(e),new IR(t)};ox.hydrateRoot=function(e,t,a){if(!FA(e))throw Error(Z(299));var o=!1,r="",n=xM,s=yM,i=SM,l=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(i=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),t=MP(e,1,!0,t,a??null,o,r,l,n,s,i,BP),t.context=PP(null),a=t.current,o=qo(),o=AL(o),r=Vs(o),r.callback=null,Bs(a,r,o),a=o,t.current.lanes=a,um(t,a),ln(t),e[Nc]=t.current,gR(e),new ax(t)};ox.version="19.3.0"});var HP=go((IW,zP)=>{"use strict";function _P(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_P)}catch(e){console.error(e)}}_P(),zP.exports=FP()});var mO=go(fx=>{"use strict";var GG=Symbol.for("react.transitional.element"),jG=Symbol.for("react.fragment");function dO(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:GG,type:e,key:o,ref:t!==void 0?t:null,props:a}}fx.Fragment=jG;fx.jsx=dO;fx.jsxs=dO});var Q=go((fQ,pO)=>{"use strict";pO.exports=mO()});var k2=go(O2=>{"use strict";var kf=M();function KY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ZY=typeof Object.is=="function"?Object.is:KY,QY=kf.useState,JY=kf.useEffect,$Y=kf.useLayoutEffect,e7=kf.useDebugValue;function t7(e,t){var a=t(),o=QY({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return $Y(function(){r.value=a,r.getSnapshot=t,QI(r)&&n({inst:r})},[e,a,t]),JY(function(){return QI(r)&&n({inst:r}),e(function(){QI(r)&&n({inst:r})})},[e]),e7(a),a}function QI(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ZY(e,a)}catch{return!0}}function a7(e,t){return t()}var o7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a7:t7;O2.useSyncExternalStore=kf.useSyncExternalStore!==void 0?kf.useSyncExternalStore:o7});var Kp=go((Aye,N2)=>{"use strict";N2.exports=k2()});var B2=go(V2=>{"use strict";var hS=M(),r7=Kp();function n7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var s7=typeof Object.is=="function"?Object.is:n7,i7=r7.useSyncExternalStore,l7=hS.useRef,u7=hS.useEffect,c7=hS.useMemo,f7=hS.useDebugValue;V2.useSyncExternalStoreWithSelector=function(e,t,a,o,r){var n=l7(null);if(n.current===null){var s={hasValue:!1,value:null};n.current=s}else s=n.current;n=c7(function(){function l(m){if(!u){if(u=!0,c=m,m=o(m),r!==void 0&&s.hasValue){var p=s.value;if(r(p,m))return d=p}return d=m}if(p=d,s7(c,m))return p;var y=o(m);return r!==void 0&&r(p,y)?(c=m,p):(c=m,d=y)}var u=!1,c,d,f=a===void 0?null:a;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,a,o,r]);var i=i7(e,n[0],n[1]);return u7(function(){s.hasValue=!0,s.value=i},[i]),f7(i),i}});var _2=go((Mye,F2)=>{"use strict";F2.exports=B2()});var n3=R(M(),1),s3=R(HP(),1);var rx=R(M(),1);var UP=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function qP(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:UP(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var GP=e=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}t.length===0?t+=o.toLowerCase():t+=a?o.toUpperCase():o,a=!1}return t};var jP=e=>{let t=GP(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Sm=R(M(),1);var ym=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Qs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function TR(e){return e!=null}function XP(e,t={}){let a=t.attributeNames??{},o=f=>a[f]??f,r=e.size??e.width??Qs.width,n=e.size??e.height??Qs.height,s=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],i=[...e.name?[`lucide-${e.name}`]:[],...s],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?ym(...l):ym("lucide",...i,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??Qs["stroke-width"])*Number(e.size??e.width??Qs.width)/Number(t.size??t.width??Qs.width):t.strokeWidth??Qs["stroke-width"];return["svg",{...Object.entries(Qs).reduce((f,[m,p])=>(f[o(m)]=p,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&TR(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&TR(t.width)&&{[o("width")]:t.width},..."height"in t&&TR(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...u&&{[o("class")]:u},[o("viewBox")]:`0 0 ${r} ${n}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,y]=f,b=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...p}:p;return y?[m,b,y]:[m,b]})]}function YP(e,t={}){return XP(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var WP=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Uc=R(M(),1);var F5=(0,Uc.createContext)({});var KP=()=>(0,Uc.useContext)(F5);var ZP=(0,Sm.forwardRef)(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:s,className:i="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:y=!1,nonScalingStroke:b=!1,color:g="currentColor",className:h=""}=KP()??{},x=!!l||WP(d),[S,v,I=[]]=YP(c,{color:e??g,width:a??t??m,height:o??t??m,strokeWidth:r??p,absoluteStrokeWidth:n??y,nonScalingStroke:s??b,className:ym(h,i),hasA11yProp:x,attributes:d});return(0,Sm.createElement)(S,{ref:f,...v},[...I.map(([L,C])=>(0,Sm.createElement)(L,C)),...Array.isArray(l)?l:[l]])});function ve(e,t=[],a=[]){let o=typeof e=="string"?qP(e,t,a):e,r=(0,rx.forwardRef)(({className:n,...s},i)=>(0,rx.createElement)(ZP,{ref:i,icon:o,className:n,...s}));return o.name&&(r.displayName=jP(o.name)),r}var QP={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};QP.node;var Zn=ve(QP);var JP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};JP.node;var Js=ve(JP);var $P={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};$P.node;var bm=ve($P);var e1={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};e1.node;var $s=ve(e1);var t1={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};t1.node;var vm=ve(t1);var a1={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a1.node;var ei=ve(a1);var o1={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};o1.node;var Cm=ve(o1);var r1={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r1.node;var Lm=ve(r1);var n1={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n1.node;var Rm=ve(n1);var s1={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};s1.node;var ti=ve(s1);var i1={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};i1.node;var Im=ve(i1);var l1={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};l1.node;var Tm=ve(l1);var u1={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};u1.node;var wm=ve(u1);var c1={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c1.node;var Em=ve(c1);var f1={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};f1.node;var Am=ve(f1);var d1={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};d1.node;var Dm=ve(d1);var m1={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};m1.node;var Mm=ve(m1);var p1={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};p1.node;var ai=ve(p1);var h1={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};h1.node;var El=ve(h1);var g1={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};g1.node;var Pm=ve(g1);var x1={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};x1.node;var oi=ve(x1);var y1={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};y1.node;var kr=ve(y1);var S1={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};S1.node;var ri=ve(S1);var b1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};b1.node;var Nr=ve(b1);var v1={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};v1.node;var Om=ve(v1);var C1={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};C1.node;var ni=ve(C1);var L1={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};L1.node;var Al=ve(L1);var Pn=R(M(),1);async function nx(e,t={}){let a=new URLSearchParams;for(let[r,n]of Object.entries(t))n!==void 0&&n!==""&&a.set(r,String(n));let o=await fetch(`${e}${a.size?`?${a}`:""}`);if(!o.ok)throw new Error(`${e}: ${o.status}`);return o.json()}var cr={state:(e,t)=>nx("/api/state",{limit:e,group:t}),run:e=>nx(`/api/run/${e}`),history:e=>nx("/api/history",e),stats:e=>nx("/api/stats",{days:e})};var Gy=R(M(),1);function km(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var wR={};function Ga(e,t,a,o,r){if(!a&&!o&&!r&&!e)return sx(t);let n=sx(e);return t&&(n=Nm(n,t)),a&&(n=Nm(n,a)),o&&(n=Nm(n,o)),r&&(n=Nm(n,r)),n}function R1(e){if(e.length===0)return wR;if(e.length===1)return sx(e[0]);let t=sx(e[0]);for(let a=1;a<e.length;a+=1)t=Nm(t,e[a]);return t}function sx(e){return ER(e)?{...T1(e,wR)}:_5(e)}function Nm(e,t){return ER(t)?T1(t,e):z5(e,t)}function _5(e){let t={...e};for(let a in t){let o=t[a];I1(a,o)&&(t[a]=w1(o))}return t}function z5(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=km(e.style,o);break}case"className":{e[a]=AR(e.className,o);break}default:I1(a,o)?e[a]=H5(e[a],o):e[a]=o}}return e}function I1(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return a===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function ER(e){return typeof e=="function"}function T1(e,t){return ER(e)?e(t):e??wR}function H5(e,t){return t?e?(...a)=>{let o=a[0];if(E1(o)){let n=o;Vm(n);let s=t(...a);return n.baseUIHandlerPrevented||e?.(...a),s}let r=t(...a);return e?.(...a),r}:w1(t):e}function w1(e){return e&&((...t)=>{let a=t[0];return E1(a)&&Vm(a),e(...t)})}function Vm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function AR(e,t){return t?e?t+" "+e:t:e}function E1(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function U5(e,t){return function(o,...r){let n=new URL(e);return n.searchParams.set("code",o.toString()),r.forEach(s=>n.searchParams.append("args[]",s)),`${t} error #${o}; visit ${n} for the full message.`}}var q5=U5("https://base-ui.com/production-error","Base UI"),De=q5;var si=R(M(),1);var D1=R(M(),1),A1={};function tt(e,t){let a=D1.useRef(A1);return a.current===A1&&(a.current=e(t)),a}function fr(e,t,a,o){let r=tt(P1).current;return G5(r,e,t,a,o)&&O1(r,[e,t,a,o]),r.callback}function M1(e){let t=tt(P1).current;return j5(t,e)&&O1(t,e),t.callback}function P1(){return{callback:null,cleanup:null,refs:[]}}function G5(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function j5(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function O1(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let s=n(a);typeof s=="function"&&(o[r]=s);break}case"object":{n.current=a;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let n=t[r];if(n!=null)switch(typeof n){case"function":{let s=o[r];typeof s=="function"?s():n(null);break}case"object":{n.current=null;break}default:}}}}}}var N1=R(M(),1);var k1=R(M(),1),X5=parseInt(k1.version,10);function qc(e){return X5>=e}function DR(e){if(!N1.isValidElement(e))return null;let t=e,a=t.props;return(qc(19)?a?.ref:t.ref)??null}function Ne(){}var Ro=Object.freeze([]),We=Object.freeze({});function V1(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let n=t[o](r);n!=null&&Object.assign(a,n);continue}r===!0?a[`data-${o.toLowerCase()}`]="":r&&(a[`data-${o.toLowerCase()}`]=r.toString())}return a}function B1(e,t){return typeof e=="function"?e(t):e}function F1(e,t){return typeof e=="function"?e(t):e}var MR=R(M(),1);function $(e,t,a={}){let o=t.render;a.enabled!==!1&&(o=Z5(o));let r=Y5(t,a,o);if(a.enabled===!1)return null;let n=a.state??We;return Q5(e,o,r,n)}function Y5(e,t,a){let{className:o,style:r}=e,{state:n=We,ref:s,props:i,stateAttributesMapping:l,enabled:u=!0}=t,c=u?B1(o,n):void 0,d=u?F1(r,n):void 0,f=u?V1(n,l):We,m=u&&i?W5(i):void 0,p=u?km(f,m)??{}:We;return typeof document<"u"&&(u?Array.isArray(s)?p.ref=M1([p.ref,DR(a),...s]):p.ref=fr(p.ref,DR(a),s):fr(null,null)),u?(c!==void 0&&(p.className=AR(p.className,c)),d!==void 0&&(p.style=km(p.style,d)),p):We}function W5(e){return Array.isArray(e)?R1(e):Ga(void 0,e)}var K5=Symbol.for("react.lazy");function Z5(e){if(e?.$$typeof!==K5)return e;let t=si.Children.toArray(e)[0];return si.isValidElement(t)?t:e}function Q5(e,t,a,o){if(t){if(typeof t=="function")return t(a,o);let r=Ga(a,t.props);return r.ref=a.ref,si.cloneElement(t,r)}if(e&&typeof e=="string")return J5(e,a);throw new Error(De(8))}function J5(e,t){return e==="button"?(0,MR.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,MR.createElement)("img",{alt:"",...t,key:t.key}):si.createElement(e,t)}function _1(e){return $(e.defaultTagName??"div",e,e)}function z1(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=z1(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function ix(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=z1(e))&&(o&&(o+=" "),o+=t);return o}var H1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,U1=ix,Gc=(e,t)=>a=>{var o;if(t?.variants==null)return U1(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,s=Object.keys(r).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=H1(c)||H1(d);return r[u][f]}),i=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[y,b]=p;return Array.isArray(b)?b.includes({...n,...i}[y]):{...n,...i}[y]===b})?[...u,d,f]:u},[]);return U1(e,s,l,a?.class,a?.className)};var $5=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},eG=(e,t)=>({classGroupId:e,validator:t}),W1=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var q1=[],tG="arbitrary..",aG=e=>{let t=rG(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return oG(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return K1(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=o[s],u=a[s];return l?u?$5(u,l):l:u||q1}return a[s]||q1}}},K1=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=K1(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},oG=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?tG+o:void 0})(),rG=e=>{let{theme:t,classGroups:a}=e;return nG(a,t)},nG=(e,t)=>{let a=W1();for(let o in e){let r=e[o];OR(r,a,o,t)}return a},OR=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let s=e[n];sG(s,t,a,o)}},sG=(e,t,a,o)=>{if(typeof e=="string"){iG(e,t,a);return}if(typeof e=="function"){lG(e,t,a,o);return}uG(e,t,a,o)},iG=(e,t,a)=>{let o=e===""?t:Z1(t,e);o.classGroupId=a},lG=(e,t,a,o)=>{if(cG(e)){OR(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(eG(a,e))},uG=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let s=0;s<n;s++){let[i,l]=r[s];OR(l,Z1(t,i),a,o)}},Z1=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let s=o[n],i=a.nextPart.get(s);i||(i=W1(),a.nextPart.set(s,i)),a=i}return a},cG=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,s)=>{a[n]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=o[n])!==void 0)return r(n,s),s},set(n,s){n in a?a[n]=s:r(n,s)}}};var dG=[],G1=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),mG=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],s=0,i=0,l=0,u,c=r.length;for(let y=0;y<c;y++){let b=r[y];if(s===0&&i===0){if(b===":"){n.push(r.slice(l,y)),l=y+1;continue}if(b==="/"){u=y;continue}}b==="["?s++:b==="]"?s--:b==="("?i++:b===")"&&i--}let d=n.length===0?r:r.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return G1(n,m,f,p)};if(t){let r=t+":",n=o;o=s=>s.startsWith(r)?n(s.slice(r.length)):G1(dG,!1,s,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},pG=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},hG=e=>({cache:fG(e.cacheSize),parseClassName:mG(e),sortModifiers:pG(e),postfixLookupClassGroupIds:gG(e),...aG(e)}),gG=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},xG=/\s+/,yG=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(xG),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:b}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let g=!!b,h;if(g){let L=y.substring(0,b);h=o(L);let C=h&&s[h]?o(y):void 0;C&&C!==h&&(h=C,g=!1)}else h=o(y);if(!h){if(!g){u=d+(u.length>0?" "+u:u);continue}if(h=o(y),!h){u=d+(u.length>0?" "+u:u);continue}g=!1}let x=m.length===0?"":m.length===1?m[0]:n(m).join(":"),S=p?x+"!":x,v=S+h;if(i.indexOf(v)>-1)continue;i.push(v);let I=r(h,g);for(let L=0;L<I.length;++L){let C=I[L];i.push(S+C)}u=d+(u.length>0?" "+u:u)}return u},SG=(...e)=>{let t=0,a,o,r="";for(;t<e.length;)(a=e[t++])&&(o=Q1(a))&&(r&&(r+=" "),r+=o);return r},Q1=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Q1(e[o]))&&(a&&(a+=" "),a+=t);return a},bG=(e,...t)=>{let a,o,r,n,s=l=>{let u=t.reduce((c,d)=>d(c),e());return a=hG(u),o=a.cache.get,r=a.cache.set,n=i,i(l)},i=l=>{let u=o(l);if(u)return u;let c=yG(l,a);return r(l,c),c};return n=s,(...l)=>n(SG(...l))},vG=[],ca=e=>{let t=a=>a[e]||vG;return t.isThemeGetter=!0,t.themeKey=e,t},J1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CG=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,IG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,TG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=e=>CG.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),un=e=>!!e&&Number.isInteger(Number(e)),PR=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Qn=e=>LG.test(e),eO=()=>!0,EG=e=>RG.test(e)&&!IG.test(e),kR=()=>!1,AG=e=>TG.test(e),DG=e=>wG.test(e),MG=e=>!xe(e)&&!ye(e),PG=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),OG=e=>li(e,oO,kR),xe=e=>J1.test(e),Dl=e=>li(e,rO,EG),j1=e=>li(e,HG,Ge),kG=e=>li(e,sO,eO),NG=e=>li(e,nO,kR),X1=e=>li(e,tO,kR),VG=e=>li(e,aO,DG),lx=e=>li(e,iO,AG),ye=e=>$1.test(e),Bm=e=>Ml(e,rO),BG=e=>Ml(e,nO),Y1=e=>Ml(e,tO),FG=e=>Ml(e,oO),_G=e=>Ml(e,aO),ux=e=>Ml(e,iO,!0),zG=e=>Ml(e,sO,!0),li=(e,t,a)=>{let o=J1.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Ml=(e,t,a=!1)=>{let o=$1.exec(e);return o?o[1]?t(o[1]):a:!1},tO=e=>e==="position"||e==="percentage",aO=e=>e==="image"||e==="url",oO=e=>e==="length"||e==="size"||e==="bg-size",rO=e=>e==="length",HG=e=>e==="number",nO=e=>e==="family-name",sO=e=>e==="number"||e==="weight",iO=e=>e==="shadow";var UG=()=>{let e=ca("color"),t=ca("font"),a=ca("text"),o=ca("font-weight"),r=ca("tracking"),n=ca("leading"),s=ca("breakpoint"),i=ca("container"),l=ca("spacing"),u=ca("radius"),c=ca("shadow"),d=ca("inset-shadow"),f=ca("text-shadow"),m=ca("drop-shadow"),p=ca("blur"),y=ca("perspective"),b=ca("aspect"),g=ca("ease"),h=ca("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...S(),ye,xe],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],C=()=>[ye,xe,l],E=()=>[ii,"full","auto",...C()],T=()=>[un,"none","subgrid",ye,xe],A=()=>["auto",{span:["full",un,ye,xe]},un,ye,xe],N=()=>[un,"auto",ye,xe],D=()=>["auto","min","max","fr",ye,xe],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],k=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...C()],q=()=>[ii,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],O=()=>[i,ii,"screen","full","dvw","lvw","svw","min","max","fit",...C()],V=()=>[ii,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],w=()=>[e,ye,xe],_=()=>[...S(),Y1,X1,{position:[ye,xe]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",FG,OG,{size:[ye,xe]}],P=()=>[PR,Bm,Dl],H=()=>["","none","full",u,ye,xe],B=()=>["",Ge,Bm,Dl],J=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Ge,PR,Y1,X1],ie=()=>["","none",p,ye,xe],ce=()=>["none",Ge,ye,xe],ee=()=>["none",Ge,ye,xe],ae=()=>[Ge,ye,xe],me=()=>[ii,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qn],breakpoint:[Qn],color:[eO],container:[Qn],"drop-shadow":[Qn],ease:["in","out","in-out"],font:[MG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qn],shadow:[Qn],spacing:["px",Ge],text:[Qn],"text-shadow":[Qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ii,xe,ye,b]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,xe]}],"container-named":[PG],columns:[{columns:[Ge,"auto",xe,ye,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[un,"auto",ye,xe]}],basis:[{basis:[ii,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,ii,"auto","initial","none",xe]}],grow:[{grow:["",Ge,ye,xe]}],shrink:[{shrink:["",Ge,ye,xe]}],order:[{order:[un,"first","last","none",ye,xe]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...k(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...k(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...k(),"baseline"]}],"place-self":[{"place-self":["auto",...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh","none",...q()]}],"font-size":[{text:["base",a,Bm,Dl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,zG,kG]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",PR,xe]}],"font-family":[{font:[BG,NG,t]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ye,xe]}],"line-clamp":[{"line-clamp":[Ge,"none",ye,j1]}],leading:[{leading:["none",n,...C()]}],"list-image":[{"list-image":["none",ye,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",ye,Dl]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Ge,"auto",ye,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[un,ye,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},un,ye,xe],radial:["",ye,xe],conic:["",un,ye,xe]},_G,VG]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,ye,xe]}],"outline-w":[{outline:["",Ge,Bm,Dl]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","inner","none",c,ux,lx]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,ux,lx]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Ge,Dl]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",f,ux,lx]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Ge,ye,xe]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[ye,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,xe]}],filter:[{filter:["","none",ye,xe]}],blur:[{blur:ie()}],brightness:[{brightness:[Ge,ye,xe]}],contrast:[{contrast:[Ge,ye,xe]}],"drop-shadow":[{"drop-shadow":["","none",m,ux,lx]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Ge,ye,xe]}],"hue-rotate":[{"hue-rotate":[Ge,ye,xe]}],invert:[{invert:["",Ge,ye,xe]}],saturate:[{saturate:[Ge,ye,xe]}],sepia:[{sepia:["",Ge,ye,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,xe]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,ye,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,ye,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,ye,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,ye,xe]}],"backdrop-invert":[{"backdrop-invert":["",Ge,ye,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,ye,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,ye,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,ye,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",ye,xe]}],ease:[{ease:["linear","initial",g,ye,xe]}],delay:[{delay:[Ge,ye,xe]}],animate:[{animate:["none",h,ye,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ye,xe]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[ye,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],zoom:[{zoom:[un,ye,xe]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,xe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Ge,Bm,Dl,j1]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var lO=bG(UG);function re(...e){return lO(ix(e))}var qG=Gc("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function cx({className:e,variant:t="default",render:a,...o}){return _1({defaultTagName:"span",props:Ga({className:re(qG({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}var Jn=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),Pl=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),cn=e=>`$${e.toFixed(2)}`;function uO(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function cO(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var fO={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)"};var Ol=R(Q(),1);function dx({worker:e,backend:t,model:a}){let o=e?cO(e):{backend:t??"",model:a};return(0,Ol.jsxs)(cx,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,Ol.jsx)("span",{className:"size-1.5 rounded-full",style:{background:fO[o.backend]??"var(--muted-foreground)"}}),o.backend,o.model&&(0,Ol.jsx)("span",{className:"font-normal text-muted-foreground",children:o.model.split("/").pop()})]})}function hO({verdict:e}){let t=/PASS/.test(e)&&/APPROVED/.test(e),a=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,Ol.jsx)(cx,{className:re("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:a})}function mx({children:e,tone:t}){return(0,Ol.jsx)(cx,{variant:"secondary",className:re(t==="good"&&"bg-success/10 text-success"),children:e})}var vp=R(Q(),1),Sn=R(M(),1);var gO=R(M(),1),jc=(0,gO.createContext)({});var xO=R(M(),1);function ui(e){let t=(0,xO.useRef)(null);return t.current===null&&(t.current=e()),t.current}var px=R(M(),1);var yO=typeof window<"u";var ci=yO?px.useLayoutEffect:px.useEffect;var X0=R(Q(),1),FN=R(M(),1),Ci=R(M(),1);var SO=R(M(),1),fi=(0,SO.createContext)(null);var VN=R(Q(),1);function kl(e,t){e.indexOf(t)===-1&&e.push(t)}function di(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var fa=(e,t,a)=>a>t?t:a<e?e:a;var $n=()=>{},Io=()=>{};var Ba={};var Nl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Fm=e=>typeof e=="object"&&e!==null;var Vl=e=>/^0[^.\s]+$/u.test(e);function _m(e){let t;return()=>(t===void 0&&(t=e()),t)}var Xt=e=>e;var Vr=(...e)=>e.reduce((t,a)=>o=>a(t(o)));var fn=(e,t,a)=>{let o=t-e;return o?(a-e)/o:1};var dn=class{constructor(){this.subscriptions=[]}add(t){return kl(this.subscriptions,t),()=>this.remove(t)}remove(t){di(this.subscriptions,t)}notify(t,a,o){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,o);else for(let n=0;n<r;n++){let s=this.subscriptions[n];s&&s(t,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var oa=e=>e*1e3,ba=e=>e/1e3;var zm=(e,t)=>t?e*(1e3/t):0;var bO=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,XG=1e-7,YG=12;function WG(e,t,a,o,r){let n,s,i=0;do s=t+(a-t)/2,n=bO(s,o,r)-e,n>0?a=s:t=s;while(Math.abs(n)>XG&&++i<YG);return s}function mi(e,t,a,o){if(e===t&&a===o)return Xt;let r=n=>WG(n,0,1,e,a);return n=>n===0||n===1?n:bO(r(n),t,o)}var hx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var gx=e=>t=>1-e(1-t);var xx=mi(.33,1.53,.69,.99),Xc=gx(xx),Hm=hx(Xc);var Um=e=>e>=1?1:(e*=2)<1?.5*Xc(e):.5*(2-Math.pow(2,-10*(e-1)));var qm=e=>1-Math.sin(Math.acos(e)),Gm=gx(qm),jm=hx(qm);var NR=mi(.42,0,1,1),VR=mi(0,0,.58,1),Yc=mi(.42,0,.58,1);var BR=e=>Array.isArray(e)&&typeof e[0]!="number";var Xm=e=>Array.isArray(e)&&typeof e[0]=="number";var vO={linear:Xt,easeIn:NR,easeInOut:Yc,easeOut:VR,circIn:qm,circInOut:jm,circOut:Gm,backIn:Xc,backInOut:Hm,backOut:xx,anticipate:Um},KG=e=>typeof e=="string",yx=e=>{if(Xm(e)){Io(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,a,o,r]=e;return mi(t,a,o,r)}else if(KG(e))return Io(vO[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),vO[e];return e};var It={delta:0,timestamp:0,isProcessing:!1};var Sx;function ZG(){Sx=void 0}var gt={now:()=>(Sx===void 0&>.set(It.isProcessing||Ba.useManualTiming?It.timestamp:performance.now()),Sx),set:e=>{Sx=e,queueMicrotask(ZG)}};var mn=e=>Math.round(e*1e5)/1e5;var CO=e=>t=>typeof t=="string"&&t.startsWith(e),bx=CO("--"),QG=CO("var(--"),Wc=e=>QG(e)?JG.test(e.split("/*")[0].trim()):!1,JG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function FR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var pn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},es={...pn,transform:e=>fa(0,1,e)},Ym={...pn,default:1};var Kc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function LO(e){return e==null}var RO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Zc=(e,t)=>a=>!!(typeof a=="string"&&RO.test(a)&&a.startsWith(e)||t&&!LO(a)&&Object.prototype.hasOwnProperty.call(a,t)),vx=(e,t,a)=>o=>{if(typeof o!="string")return o;let[r,n,s,i]=o.match(Kc);return{[e]:parseFloat(r),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var $G=e=>fa(0,255,e),_R={...pn,transform:e=>Math.round($G(e))},hn={test:Zc("rgb","red"),parse:vx("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:o=1})=>"rgba("+_R.transform(e)+", "+_R.transform(t)+", "+_R.transform(a)+", "+mn(es.transform(o))+")"};function e6(e){let t="",a="",o="",r="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,a+=a,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}var Wm={test:Zc("#"),parse:e6,transform:hn.transform};var Km=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dr=Km("deg"),ja=Km("%"),de=Km("px"),zR=Km("vh"),HR=Km("vw"),Cx={...ja,parse:e=>ja.parse(e)/100,transform:e=>ja.transform(e*100)};var pi={test:Zc("hsl","hue"),parse:vx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(e)+", "+ja.transform(mn(t))+", "+ja.transform(mn(a))+", "+mn(es.transform(o))+")"};var Gt={test:e=>hn.test(e)||Wm.test(e)||pi.test(e),parse:e=>hn.test(e)?hn.parse(e):pi.test(e)?pi.parse(e):Wm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hn.transform(e):pi.transform(e),getAnimatableNone:e=>{let t=Gt.parse(e);return t.alpha=0,Gt.transform(t)}};var IO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var wO=new RegExp(Kc.source),EO=new RegExp(IO.source,"i");function t6(e){return isNaN(e)&&typeof e=="string"&&(wO.test(e)||EO.test(e))}var AO="number",DO="color",a6="var",o6="var(",TO="${}",r6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function MO(e){let t=e.toString();return wO.test(t)||EO.test(t)}function Qc(e){let t=e.toString(),a=[],o={color:[],number:[],var:[]},r=[],n=0,i=t.replace(r6,l=>(Gt.test(l)?(o.color.push(n),r.push(DO),a.push(Gt.parse(l))):l.startsWith(o6)?(o.var.push(n),r.push(a6),a.push(l)):(o.number.push(n),r.push(AO),a.push(parseFloat(l))),++n,TO)).split(TO);return{values:a,split:i,indexes:o,types:r}}function n6(e){return Qc(e).values}function PO({split:e,types:t}){let a=e.length;return o=>{let r="";for(let n=0;n<a;n++)if(r+=e[n],o[n]!==void 0){let s=t[n];s===AO?r+=mn(o[n]):s===DO?r+=Gt.transform(o[n]):r+=o[n]}return r}}function s6(e){return PO(Qc(e))}var i6=e=>typeof e=="number"?0:Gt.test(e)?Gt.getAnimatableNone(e):e,l6=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:i6(e);function u6(e){let t=Qc(e);return PO(t)(t.values.map((o,r)=>l6(o,t.split[r])))}var Yt={test:t6,parse:n6,createTransformer:s6,getAnimatableNone:u6};function UR(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function OO({hue:e,saturation:t,lightness:a,alpha:o}){e/=360,t/=100,a/=100;let r=0,n=0,s=0;if(!t)r=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;r=UR(l,i,e+1/3),n=UR(l,i,e),s=UR(l,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:o}}function Jc(e,t){return a=>a>0?t:e}var Ue=(e,t,a)=>e+(t-e)*a;var qR=(e,t,a)=>{let o=e*e,r=a*(t*t-o)+o;return r<0?0:Math.sqrt(r)},c6=[Wm,hn,pi],f6=e=>c6.find(t=>t.test(e));function kO(e){let t=f6(e);if(!t)return $n(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let a=t.parse(e);return t===pi&&(a=OO(a)),a}var GR=(e,t)=>{let a=kO(e),o=kO(t);if(!a||!o)return Jc(e,t);let r={...a};return n=>(r.red=qR(a.red,o.red,n),r.green=qR(a.green,o.green,n),r.blue=qR(a.blue,o.blue,n),r.alpha=Ue(a.alpha,o.alpha,n),hn.transform(r))};var Lx=new Set(["none","hidden"]);function NO(e,t){return Lx.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function d6(e,t){return a=>Ue(e,t,a)}function Rx(e){return typeof e=="number"?d6:typeof e=="string"?Wc(e)?Jc:Gt.test(e)?GR:h6:Array.isArray(e)?VO:typeof e=="object"?Gt.test(e)?GR:m6:Jc}function VO(e,t){let a=[...e],o=a.length,r=e.map((n,s)=>Rx(n)(n,t[s]));return n=>{for(let s=0;s<o;s++)a[s]=r[s](n);return a}}function m6(e,t){let a={...e,...t},o={};for(let r in a)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Rx(e[r])(e[r],t[r]));return r=>{for(let n in o)a[n]=o[n](r);return a}}function p6(e,t){let a=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let n=t.types[r],s=e.indexes[n][o[n]],i=e.values[s]??0;a[r]=i,o[n]++}return a}var h6=(e,t)=>{let a=Yt.createTransformer(t),o=Qc(e),r=Qc(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Lx.has(e)&&!r.values.length||Lx.has(t)&&!o.values.length?NO(e,t):Vr(VO(p6(o,r),r.values),a):($n(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Jc(e,t))};var BO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function g6(e,t){let a=BO.exec(e);if(!a)return;let o=BO.exec(t);if(!o||a[2]!==o[2])return;let r=a[2],n=parseFloat(a[1]),s=parseFloat(o[1]);return i=>mn(Ue(n,s,i))+r}function $c(e,t,a){if(typeof e=="number"&&typeof t=="number"&&typeof a=="number")return Ue(e,t,a);if(typeof e=="string"&&typeof t=="string"){let r=g6(e,t);if(r)return r}return Rx(e)(e,t)}var Zm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function FO(e){let t=new Set,a=new Set,o=!1,r=!1,n=new Set,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(a.add(u),e()),u(s)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&o?t:a;return c&&n.add(u),m.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,o){r=!0;return}o=!0;let c=t;t=a,a=c,t.forEach(i),t.clear(),o=!1,r&&(r=!1,l.process(u))}};return l}var x6=40;function Ix(e,t,a={delta:0,timestamp:0,isProcessing:!1}){let o=!1,r=!0,n=()=>o=!0,s=Zm.reduce((x,S)=>(x[S]=FO(n),x),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=s,y=()=>{let x=Ba.useManualTiming,S=x?a.timestamp:performance.now();o=!1,x||(a.delta=r?1e3/60:Math.max(Math.min(S-a.timestamp,x6),1)),a.timestamp=S,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),p.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(y))},b=()=>{o=!0,r=!0,a.isProcessing||e(y)};return{schedule:Zm.reduce((x,S)=>{let v=s[S];return x[S]=(I,L=!1,C=!1)=>(o||b(),v.schedule(I,L,C)),x},{}),cancel:x=>{for(let S=0;S<Zm.length;S++)s[Zm[S]].cancel(x)},state:a,steps:s}}var{schedule:_e,cancel:To,steps:Qm}=Ix(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0,It);var _O=e=>{let t=({timestamp:a})=>e(a);return{start:(a=!0)=>_e.update(t,a),stop:()=>To(t),now:()=>It.isProcessing?It.timestamp:gt.now()}};var Tx=(e,t,a=10)=>{let o="",r=Math.max(Math.round(t/a),2);for(let n=0;n<r;n++)o+=Math.round(e(n/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function ef(e,t=50,a=2e4,o){let r=0,n=e.next(r);for(o?.push(n.value);!n.done&&r<a;)r+=t,n=e.next(r),o?.push(n.value);return r>=a?1/0:r}function zO(e,t=100,a){let o=a({...e,keyframes:[0,t]}),r=Math.min(ef(o),2e4);return{type:"keyframes",ease:n=>o.next(r*n).value/t,duration:ba(r)}}var va={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},HO=e=>e<0?1/Math.max(1+e,va.minDamping):Math.max(1-e,va.minDamping);function UO(e,t){if(!(e>1))return 1;let a=Math.sqrt(e*e-1),o=e-a,r=e+a,n=2*a*Math.exp(-t)*(1+t);return qO(s=>r*Math.exp(-o*s)-o*Math.exp(-r*s)-n,s=>Math.exp(-r*s)-Math.exp(-o*s),t)/t}function WR(e,t){return e*Math.sqrt(1-t*t)}var y6=12;function qO(e,t,a){let o=a;for(let r=1;r<y6;r++)o=o-e(o)/t(o);return o}var XR=.001;function S6({duration:e=va.duration,bounce:t=va.bounce}){let a,o;$n(e<=oa(va.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=HO(t);e=fa(va.minDuration,va.maxDuration,ba(e)),r<1?(a=u=>{let c=u*r,d=c*e,f=WR(u,r),m=Math.exp(-d);return XR-c/f*m},o=u=>{let d=u*r*e,f=r*r*u*u*e,m=Math.exp(-d),p=WR(u*u,r);return(-a(u)+XR>0?-1:1)*-f*m/p}):(a=u=>{let c=Math.exp(-u*e),d=u*e+1;return-XR+c*d},o=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let n=5/e,s=qO(a,o,n),i=s*UO(r,s*e),l=i*i;return{stiffness:l,damping:r*2*Math.sqrt(l),duration:oa(e)}}var KR=(e,t)=>(t?e>=0:e>0)&&e<1/0;function YR(e,t){if(KR(e,t))return e}function b6(e){let t=YR(e.stiffness),a=YR(e.damping,!0),o=YR(e.mass),r={...e,stiffness:t??va.stiffness,damping:a??va.damping,mass:o??va.mass,isResolvedFromDuration:!1,isTimeDefined:(t??a??o)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(r.isTimeDefined){if(e.visualDuration){let n=HO(e.bounce||0),s=2*Math.PI/(e.visualDuration*1.2)*UO(n,2*Math.PI/1.2);r.stiffness=s*s,r.damping=2*n*Math.sqrt(r.stiffness)}else Object.assign(r,S6(r)),r.isResolvedFromDuration=!0;(!KR(r.stiffness)||!KR(r.damping,!0))&&(r.stiffness=va.stiffness,r.damping=va.damping)}return r}function tf(e=va.visualDuration,t=va.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,o=a.keyframes[0],r=a.keyframes[a.keyframes.length-1],n={done:!1,value:o},{stiffness:s,damping:i,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=b6({...a}),f=L=>d?0:-ba(L),m=i/(2*Math.sqrt(s*l)),p=ba(Math.sqrt(s/l)),y=m*p,b={target:r,delta:r-o,velocity:f(a.velocity||0)||0,restSpeed:0,restDelta:0},g=()=>{let L=Math.abs(b.delta)<5;b.restSpeed=a.restSpeed||(L?va.restSpeed.granular:va.restSpeed.default),b.restDelta=a.restDelta||(L?va.restDelta.granular:va.restDelta.default)};g();let h,x,S;if(m<1){let L=WR(p,m),C={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{C.A=(b.velocity+y*b.delta)/L,C.sinC=y*C.A+b.delta*L,C.cosC=y*b.delta-C.A*L};let E=T=>{T!==C.t&&(C.t=T,C.env=Math.exp(-y*T),C.sin=Math.sin(L*T),C.cos=Math.cos(L*T))};h=T=>(E(T),b.target-C.env*(C.A*C.sin+b.delta*C.cos)),x=T=>(E(T),C.env*(C.sinC*C.sin+C.cosC*C.cos))}else if(m===1){h=C=>b.target-Math.exp(-p*C)*(b.delta+(b.velocity+p*b.delta)*C);let L={C:0};S=()=>{L.C=b.velocity+p*b.delta},x=C=>Math.exp(-p*C)*(p*L.C*C-b.velocity)}else{let L=p*Math.sqrt(m*m-1),C=y-L,E=y+L,T=d?1/0:300/L,A=(D,F)=>Math.exp(F>T?-D*T-y*(F-T):-D*F),N={S:0,F:0};S=()=>{let D=(b.velocity+y*b.delta)/L;N.S=(b.delta+D)/2,N.F=(b.delta-D)/2},h=D=>b.target-N.S*A(C,D)-N.F*A(E,D),x=D=>C*N.S*A(C,D)+E*N.F*A(E,D)}S();let v=c&&u||null,I={calculatedDuration:v,retarget:(L,C)=>{b.target=L[L.length-1],b.delta=b.target-L[0],b.velocity=f(C),a.restSpeed&&a.restDelta||g(),I.calculatedDuration=v,n.done=!1,S()},velocity:L=>oa(x(L)),next:L=>{let C=h(L);if(c)n.done=L>=u;else{let E=oa(x(L));n.done=Math.abs(E)<=b.restSpeed&&Math.abs(b.target-C)<=b.restDelta}return n.value=n.done?b.target:C,n},toString:()=>{let L=Math.min(ef(I),2e4),C=Tx(E=>I.next(L*E).value,L,30);return L+"ms "+C},toTransition:()=>{}};return I}tf.applyToOptions=e=>{let t=zO(e,100,tf);return e.ease=t.ease,e.duration=oa(t.duration),e.type="keyframes",e};function Jm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=L=>L<i||L>l,p=L=>i===void 0?l:l===void 0||Math.abs(i-L)<Math.abs(l-L)?i:l,y=a*t,b=d+y,g=s===void 0?b:s(b);g!==b&&(y=g-d);let h=L=>-y*Math.exp(-L/o),x=L=>{let C=h(L);f.done=Math.abs(C)<=u,f.value=f.done?g:g+C},S,v,I=L=>{m(f.value)&&(S=L,v=tf({keyframes:[f.value,p(f.value)],velocity:-h(L)/o*1e3,damping:r,stiffness:n,restDelta:u,restSpeed:c}))};return I(0),{calculatedDuration:null,next:L=>{let C=!1;return!v&&S===void 0&&(C=!0,x(L),I(L)),S!==void 0&&L>=S?v.next(L-S):(!C&&x(L),f)}}}function v6(e,t,a){let o=[],r=a||Ba.mix||$c,n=e.length-1;for(let s=0;s<n;s++){let i=r(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Xt:t;i=Vr(l,i)}o.push(i)}return o}function GO(e,t,{clamp:a=!0,ease:o,mixer:r}={}){let n=e.length;if(Io(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=v6(t,o,r),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=fn(e[d],e[d+1],c);return i[d](f)};return a?c=>u(fa(e[0],e[n-1],c)):u}function jO(e,t){let a=e[e.length-1];for(let o=1;o<=t;o++){let r=fn(0,t,o);e.push(Ue(a,1,r))}}function XO(e){let t=[0];return jO(t,e.length-1),t}function YO(e,t){return e.map(a=>a*t)}function C6(e,t){return e.map(()=>t||Yc).splice(0,e.length-1)}function Bl({duration:e=300,keyframes:t,times:a,ease:o="easeInOut"}){let r=BR(o)?o.map(yx):yx(o)||Yc,n={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(r)&&(!a||a.length!==2||a[0]===0&&a[1]===1)){let[l,u]=t,c=l===u?void 0:(Ba.mix||$c)(l,u);return{calculatedDuration:e,next:d=>(n.value=c?c(r(e>0?fa(0,1,d/e):1)):u,n.done=d>=e,n)}}let s=YO(a&&a.length===t.length?a:XO(t),e),i=GO(s,t,{ease:Array.isArray(r)?r:C6(t,r)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var L6=5;function R6(e,t,a){let o=Math.max(t-L6,0);return zm(a-e(o),t-o)}function WO(e,t,a=0){return t<=0?a:e.velocity?e.velocity(t):R6(o=>e.next(o).value,t,e.next(t).value)}var I6=e=>e!==null;function hi(e,{repeat:t,repeatType:a="loop"},o,r=1){let n=e.filter(I6),i=r<0||t&&a!=="loop"&&t%2===1?0:n.length-1;return!i||o===void 0?n[i]:o}var T6={decay:Jm,inertia:Jm,tween:Bl,keyframes:Bl,spring:tf};function wx(e){typeof e.type=="string"&&(e.type=T6[e.type])}function KO(e,t){return{kind:e,animation:t,timestamp:gt.now(),frameTimestamp:It.timestamp,frameIsProcessing:It.isProcessing}}function Ex(e,t,a){let o=globalThis.__MOTION_INSPECT__;if(o)try{o({...KO("animation-start",e),options:a?{...t,...a}:t})}catch{}}function ZO(e,t){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...KO("layout-animation-start",e),node:t})}catch{}}var gi=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,a){return this.finished.then(t,a)}};var w6=e=>e/100,ts=class extends gi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==gt.now()&&this.tick(gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),Ex(this,this.options)}initAnimation(){let{options:t}=this;wx(t);let{type:a=Bl,repeat:o=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=a||Bl;l!==Bl&&typeof i[0]!="number"&&(this.mixKeyframes=Vr(w6,$c(i[0],i[1])),i=[0,100]);let u=l(i===t.keyframes?t:{...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ef(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){let a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){let{generator:o,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(d){let C=Math.min(this.currentTime,r)/i,E=Math.floor(C),T=C%1;!T&&C>=1&&(T=1),T===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(f==="reverse"?(T=1-T,m&&(T-=m/i)):f==="mirror"&&(S=s)),x=fa(0,1,T)*i}let v;h?(this.delayState.value=c[0],v=this.delayState):v=S.next(x),n&&!h&&(v.value=n(v.value));let{done:I}=v;!h&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return L&&p!==Jm&&(v.value=hi(c,this.options,b,this.speed)),y&&y(v.value),L&&this.finish(),v}then(t,a){return this.finished.then(t,a)}get duration(){return ba(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ba(t)}get time(){return ba(this.currentTime)}set time(t){t=oa(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return WO(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(gt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=ba(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=_O,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=a??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};var E6=new Set(["brightness","contrast","saturate","opacity"]);function A6(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=a.match(Kc)||[];if(!o)return e;let r=a.replace(o,""),n=E6.has(t)?1:0;return o!==a&&(n*=100),t+"("+n+r+")"}var D6=/\b([a-z-]*)\(.*?\)/gu,$m={...Yt,getAnimatableNone:e=>{let t=e.match(D6);return t?t.map(A6).join(" "):e}};var ep={...Yt,getAnimatableNone:e=>{let t=Yt.parse(e);return Yt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var ZR={...pn,transform:Math.round};var QO={rotate:dr,pathRotation:dr,rotateX:dr,rotateY:dr,rotateZ:dr,scale:Ym,scaleX:Ym,scaleY:Ym,scaleZ:Ym,skew:dr,skewX:dr,skewY:dr,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:es,originX:Cx,originY:Cx,originZ:de};var Fl={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...QO,zIndex:ZR,fillOpacity:es,strokeOpacity:es,numOctaves:ZR};var M6={...Fl,color:Gt,backgroundColor:Gt,outlineColor:Gt,fill:Gt,stroke:Gt,borderColor:Gt,borderTopColor:Gt,borderRightColor:Gt,borderBottomColor:Gt,borderLeftColor:Gt,filter:$m,WebkitFilter:$m,mask:ep,WebkitMask:ep},Ax=e=>M6[e];var P6=new Set([$m,ep]);function af(e,t){let a=Ax(e);return P6.has(a)||(a=Yt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}function JO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var _l=e=>e*180/Math.PI,QR=e=>{let t=_l(Math.atan2(e[1],e[0]));return JR(t)},O6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:QR,rotateZ:QR,skewX:e=>_l(Math.atan(e[1])),skewY:e=>_l(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},JR=e=>(e=e%360,e<0&&(e+=360),e),$O=QR,ek=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),k6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ek,scaleY:tk,scale:e=>(ek(e)+tk(e))/2,rotateX:e=>JR(_l(Math.atan2(e[6],e[5]))),rotateY:e=>JR(_l(Math.atan2(-e[2],e[0]))),rotateZ:$O,rotate:$O,skewX:e=>_l(Math.atan(e[4])),skewY:e=>_l(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function zl(e){return e.includes("scale")?1:0}function Dx(e,t){if(!e||e==="none")return zl(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,r;if(a)o=k6,r=a;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=O6,r=i}if(!r)return zl(t);let n=o[t],s=r[1].split(",").map(N6);return typeof n=="function"?n(s):s[n]}var ak=(e,t)=>{let{transform:a="none"}=getComputedStyle(e);return Dx(a,t)};function N6(e){return parseFloat(e.trim())}var gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wo=new Set([...gn,"pathRotation"]);var $R=e=>e===pn||e===de,V6=new Set(["x","y","z"]),B6=gn.filter(e=>!V6.has(e));function rk(e){let t=[];return B6.forEach(a=>{let o=e.getValue(a);if(o!==void 0){let r=o.get(),n=a.startsWith("scale")?1:0;if(r===n)return;t.push([a,r]),o.set(n)}}),t}var nk=new Set(["bottom","right"]);function ok(e,t,a,o,r,n){let s=parseFloat(e);if(!isNaN(s))return s;let{min:i,max:l}=t()[a],u=l-i;return n==="border-box"?u:u-parseFloat(o)-parseFloat(r)}var xi={width:({width:e,paddingLeft:t="0",paddingRight:a="0",boxSizing:o},r)=>ok(e,r,"x",t,a,o),height:({height:e,paddingTop:t="0",paddingBottom:a="0",boxSizing:o},r)=>ok(e,r,"y",t,a,o),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:a}=t();return parseFloat(e)+(a.max-a.min)},right:({left:e},t)=>{let{x:a}=t();return parseFloat(e)+(a.max-a.min)},x:({transform:e})=>Dx(e,"x"),y:({transform:e})=>Dx(e,"y")};xi.translateX=xi.x;xi.translateY=xi.y;var Hl=new Set,e0=!1,t0=!1,a0=!1;function sk(){if(t0){let e=[],t=new Set,a=new Set;Hl.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),nk.has(r.name)&&a.add(r.element))});let o=new Map;a.forEach(r=>{let n=rk(r);n.length&&(o.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}t0=!1,e0=!1,Hl.forEach(e=>e.complete(a0)),Hl.clear()}function ik(){Hl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(t0=!0)})}function lk(){a0=!0,ik(),sk(),a0=!1}function F6(e,t,a){if(typeof e=="string"){if(Nl(e)||Vl(e))return parseFloat(e);if(!Yt.test(e)&&Yt.test(a))return af(t,a)}return e??void 0}var yi=class{constructor(t,a,o,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Hl.add(this),e0||(e0=!0,_e.read(ik),_e.resolveKeyframes(sk))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:o,motionValue:r}=this;if(t[0]===null){let n=r?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(o&&a){let i=F6(o.readValue(a,s),a,s);i!==void 0&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&n===void 0&&r.set(t[0])}JO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hl.delete(this)}cancel(){this.state==="scheduled"&&(Hl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var uk=e=>e.startsWith("--");function Mx(e,t,a){uk(t)?e.style.setProperty(t,a):e.style[t]=a}var ck={};function Px(e,t){let a=_m(e);return()=>ck[t]??a()}var fk=Px(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Ox=Px(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ul=([e,t,a,o])=>`cubic-bezier(${e}, ${t}, ${a}, ${o})`;var o0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ul([0,.65,.55,1]),circOut:Ul([.55,0,1,.45]),backIn:Ul([.31,.01,.66,-.59]),backOut:Ul([.33,1.53,.69,.99])};function r0(e,t){if(e)return typeof e=="function"?Ox()?Tx(e,t):"ease-out":Xm(e)?Ul(e):Array.isArray(e)?e.map(a=>r0(a,t)||o0.easeOut):o0[e]}function dk(e,t,a,{delay:o=0,duration:r=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:a};l&&(c.offset=l);let d=r0(i,r);Array.isArray(d)&&(c.easing=d);let f={delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function kx(e){return typeof e=="function"&&"applyToOptions"in e}function mk({type:e,...t}){return kx(e)&&Ox()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var of=class extends gi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:a,name:o,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,Io(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=mk(t);this.animation=dk(a,o,r,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=hi(r,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Mx(a,o,c),this.animation.cancel()}l?.(),this.notifyFinished()},Ex(this,t,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return ba(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ba(t)}get time(){return ba(Number(this.animation.currentTime)||0)}set time(t){let a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oa(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&fk()?(this.animation.timeline=t,a?.(this.animation),Xt):o(this)}};var pk={anticipate:Um,backInOut:Hm,circInOut:jm};function _6(e){return e in pk}function hk(e){typeof e.ease=="string"&&_6(e.ease)&&(e.ease=pk[e.ease])}var n0=10,Nx=class extends of{constructor(t){hk(t),wx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:a,onUpdate:o,onComplete:r,element:n,...s}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}let i=new ts({...s,autoplay:!1}),l=Math.max(n0,gt.now()-this.startTime),u=fa(0,n0,l-n0),c=i.sample(l).value,{name:d}=this.options;n&&d&&Mx(n,d,c),a.setWithVelocity(i.sample(Math.max(0,l-u)).value,c,u),i.stop()}};var s0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yt.test(e)||e==="0")&&!e.startsWith("url("));function z6(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function gk(e,t,a,o){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=s0(r,t),i=s0(n,t);return!s||!i?(s!==i&&$n(!1,`You are trying to animate ${t} from "${r}" to "${n}". "${s?n:r}" is not an animatable value.`,"value-not-animatable"),!1):z6(e)||(a==="spring"||kx(a))&&o}function tp(e){e.duration=0,e.type="keyframes"}var ap=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var H6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function xk(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&H6.test(e[t]))return!0;return!1}var yk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),U6=_m(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Sk(e){let{motionValue:t,name:a,repeatDelay:o,repeatType:r,damping:n,type:s,keyframes:i}=e;if(!a||!(ap.has(a)||yk.has(a)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return U6()&&(ap.has(a)||yk.has(a)&&xk(i))&&(a!=="transform"||!c)&&!u&&!o&&r!=="mirror"&&n!==0&&s!=="inertia"}var q6=40,Vx=class extends gi{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gt.now();let{keyframes:a,name:o,motionValue:r,element:n}=t,s=t;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let i=n?.KeyframeResolver||yi;this.keyframeResolver=new i(a,(l,u,c)=>this.onKeyframesResolved(l,u,s,!c),o,r,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=o;this.resolvedAt=gt.now();let d=!0;gk(t,n,s,i)||(d=!1,(Ba.instantAnimations||!l)&&c?.(hi(t,o,a)),t[0]=t[t.length-1],tp(o),o.repeat=0);let f=r?this.resolvedAt?this.resolvedAt-this.createdAt>q6?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=o;o.startTime??(o.startTime=f),o.finalKeyframe=a,o.keyframes=t,o.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&Sk(o),y;if(p){o.element=o.motionValue?.owner?.current;try{y=new Nx(o)}catch{y=new ts(o)}}else y=new ts(o);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),lk()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Bx(e,t,a,o=0,r=1){let n=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,i=(s-1)*o;return typeof a=="function"?a(n,s):r===1?n*o:i-n*o}var bk=30,G6=e=>!isNaN(parseFloat(e)),vk={current:void 0},i0=class{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let r=gt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=G6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){var o;return t==="change"?this.onChangeSubscribe(a):((o=this.events)[t]||(o[t]=new dn)).add(a)}onChangeSubscribe(t){let{events:a}=this;return!a.change&&!this.changeSubscriber?this.changeSubscriber=t:(a.change||(a.change=new dn,a.change.add(this.changeSubscriber),this.changeSubscriber=void 0),a.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:a.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){_e.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:a}=this;a?a(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return vk.current&&vk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bk)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,bk);return zm(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0;let o=!1,r;r=t(()=>{o=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),a()}),o||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Br(e,t){return new i0(e,t)}function ql(e,t){if(e?.inherit&&t){let{inherit:a,...o}=e;return{...t,...o}}return e}function rf(e,t){let a=e?.[t]??e?.default??e;return a!==e?ql(a,e):a}var j6={type:"spring",stiffness:500,damping:25,restSpeed:10},X6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Y6={type:"keyframes",duration:.8},W6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ck=(e,{keyframes:t})=>t.length>2?Y6:wo.has(e)?e.startsWith("scale")?X6(t[1]):j6:W6;var K6=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Lk(e){for(let t in e)if(!K6.has(t))return!0;return!1}var Gl=(e,t,a,o={},r,n)=>s=>{let i=rf(o,e)||{},l=i.delay||o.delay||0,{elapsed:u=0}=o;u=u-oa(l);let c={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:r};Lk(i)||Object.assign(c,Ck(e,c)),c.duration&&(c.duration=oa(c.duration)),c.repeatDelay&&(c.repeatDelay=oa(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(tp(c),c.delay===0&&(d=!0)),(Ba.instantAnimations||Ba.skipAnimations||r?.shouldSkipAnimations||i.skipAnimations)&&(d=!0,tp(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!n&&t.get()!==void 0){let f=hi(c.keyframes,i);if(f!==void 0){_e.update(()=>{c.onUpdate(f),c.onComplete()});return}}return i.isSync?new ts(c):new Vx(c)};var Z6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Q6(e){let t=Z6.exec(e);if(!t)return[,];let[,a,o,r]=t;return[`--${a??o}`,r]}var J6=4;function l0(e,t,a=1){Io(a<=J6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,r]=Q6(e);if(!o)return;let n=window.getComputedStyle(t).getPropertyValue(o);if(n){let s=n.trim();return Nl(s)?parseFloat(s):s}return Wc(r)?l0(r,t,a+1):r}function Rk(e){let t=[{},{}];return e?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function jl(e,t,a,o){if(typeof t=="function"){let[r,n]=Rk(o);t=t(a!==void 0?a:e.custom,r,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,n]=Rk(o);t=t(a!==void 0?a:e.custom,r,n)}return t}function Xo(e,t,a){let o=e.getProps();return jl(o,t,a!==void 0?a:o.custom,e)}var Fx=new Set(["width","height","top","left","right","bottom",...gn]);var op=e=>Array.isArray(e);function $6(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Br(a))}function e8(e){return op(e)?e[e.length-1]||0:e}function Ik(e,t){let a=Xo(e,t),{transitionEnd:o={},transition:r={},...n}=a||{};n={...n,...o};for(let s in n){let i=e8(n[s]);$6(e,s,i)}}var mt=e=>!!(e&&e.getVelocity);function Tk(e){return!!(mt(e)&&e.add)}function nf(e,t){let a=e.getValue("willChange");if(Tk(a))return a.add(t);if(!a&&Ba.WillChange){let o=new Ba.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function sf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var wk="framerAppearId",rp="data-"+sf(wk);function _x(e){return e.props[rp]}var t8=typeof window<"u";function a8({protectedKeys:e,needsAnimating:t},a){let o=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function zx(e,t,{delay:a=0,transitionOverride:o,type:r}={}){let{transition:n,transitionEnd:s,...i}=t,l=e.getDefaultTransition();n=n?ql(n,l):l;let u=n?.reduceMotion,c=n?.skipAnimations;o&&(n=o);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],m=n?.path;m&&m.animateVisualElement(e,i,n,a,d);for(let p in i){let y=e.getValue(p,e.latestValues[p]??null),b=i[p];if(b===void 0||f&&a8(f,p))continue;let g={delay:a,...rf(n||{},p)};c&&(g.skipAnimations=!0);let h=y.get();if(h!==void 0&&!y.isAnimating()&&!Array.isArray(b)&&b===h&&!g.velocity){_e.update(()=>y.set(b));continue}let x=!1;if(t8&&window.MotionHandoffAnimation){let I=_x(e);if(I){let L=window.MotionHandoffAnimation(I,p,_e);L!==null&&(g.startTime=L,x=!0)}}nf(e,p);let S=u??e.shouldReduceMotion;y.start(Gl(p,y,b,S&&Fx.has(p)?{type:!1}:g,e,x));let v=y.animation;v&&d.push(v)}if(s){let p=()=>_e.update(()=>{s&&Ik(e,s)});d.length?Promise.all(d).then(p):p()}return d}function Hx(e,t,a={}){let o=Xo(e,t,a.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(r=a.transitionOverride);let n=o?()=>Promise.all(zx(e,o,a)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return o8(e,t,l,u,c,d,a)}:()=>Promise.resolve(),{when:i}=r;if(i){let[l,u]=i==="beforeChildren"?[n,s]:[s,n];return l().then(()=>u())}else return Promise.all([n(),s(a.delay)])}function o8(e,t,a=0,o=0,r=0,n=1,s){let i=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),i.push(Hx(l,t,{...s,delay:a+(typeof o=="function"?0:o)+Bx(e.variantChildren,l,o,r,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function Ek(e,t,a={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let r=t.map(n=>Hx(e,n,a));o=Promise.all(r)}else if(typeof t=="string")o=Hx(e,t,a);else{let r=typeof t=="function"?Xo(e,t,a.custom):t;o=Promise.all(zx(e,r,a))}return o.then(()=>{e.notify("AnimationComplete",t)})}var Ak={test:e=>e==="auto",parse:e=>e};var Dk=e=>t=>t.test(e);var r8=[pn,de,ja,dr,HR,zR,Ak],u0=e=>r8.find(Dk(e));function Mk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vl(e):!0}var n8=new Set(["auto","none","0"]);function Pk(e,t,a){let o=0,r;for(;o<e.length&&!r;){let n=e[o];typeof n=="string"&&!n8.has(n)&&MO(n)&&(r=e[o]),o++}if(r&&a)for(let n of t)e[n]!==r&&(e[n]=af(a,r))}var Ux=class extends yi{constructor(t,a,o,r,n){super(t,a,o,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Wc(d))){let f=l0(d,a.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Fx.has(o)||t.length!==2)return;let[r,n]=t;if(typeof r=="number"&&typeof n=="number")return;let s=u0(r),i=u0(n),l=FR(r),u=FR(n);if(l!==u&&xi[o]){this.needsMeasurement=!0;return}if(s!==i)if($R(s)&&$R(i))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else xi[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Mk(t[r]))&&o.push(r);o.length&&Pk(t,o,a)}measure(){let{element:t,name:a}=this;return xi[a](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),a[0]=this.measuredOrigin;let r=a[a.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:a}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let o=a.length-1,r=a[o];a[o]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([n,s])=>{t.getValue(n).set(s)}),this.resolveNoneKeyframes()}};var np=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Xl(e){return Fm(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function lf(e){return Fm(e)&&"ownerSVGElement"in e}var sp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function qx(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let r=a?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}var s8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i8=gn.length;function Ok(e,t,a){let o="",r=!0;for(let s=0;s<i8;s++){let i=gn[s],l=e[i];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(i.startsWith("scale")?1:0);else{let c=parseFloat(l);u=i.startsWith("scale")?c===1:c===0}if(!u||a){let c=sp(l,Fl[i]);if(!u){r=!1;let d=s8[i]||i;o+=`${d}(${c}) `}a&&(t[i]=c)}}let n=e.pathRotation;return n&&(r=!1,o+=`rotate(${sp(n,Fl.pathRotation)}) `),o=o.trim(),a?o=a(t,r?"":o):r&&(o="none"),o}function Yl(e,t,a){let{style:o,vars:r,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(wo.has(l)){s=!0;continue}else if(bx(l)){r[l]=u;continue}else{let c=sp(u,Fl[l]);l.startsWith("origin")?(i=!0,n[l]=c):o[l]=c}}if(t.transform||(s||a?o.transform=Ok(t,e.transform,a):o.transform&&(o.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:c=0}=n;o.transformOrigin=`${l} ${u} ${c}`}}var l8={offset:"stroke-dashoffset",array:"stroke-dasharray"},u8={offset:"strokeDashoffset",array:"strokeDasharray"};function kk(e,t,a=1,o=0,r=!0){e.pathLength=1;let n=r?l8:u8;e[n.offset]=`${-o}`,e[n.array]=`${t} ${a}`}var c0=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ip(e,{attrX:t,attrY:a,attrScale:o,pathLength:r,pathSpacing:n=1,pathOffset:s=0,...i},l,u,c){if(Yl(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of c0)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),a!==void 0&&(d.y=a),o!==void 0&&(d.scale=o),r!==void 0&&kk(d,r,n,s,!1)}function lp({top:e,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:e,max:o}}}function f0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d0(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function m0(e){return e===void 0||e===1}function Gx({scale:e,scaleX:t,scaleY:a}){return!m0(e)||!m0(t)||!m0(a)}function as(e){return Gx(e)||p0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p0(e){return Nk(e.x)||Nk(e.y)}function Nk(e){return e&&e!=="0%"}function up(e,t,a){let o=e-a,r=t*o;return a+r}function Vk(e,t,a,o,r){return r!==void 0&&(e=up(e,r,o)),up(e,a,o)+t}function h0(e,t=0,a=1,o,r){e.min=Vk(e.min,t,a,o,r),e.max=Vk(e.max,t,a,o,r)}function g0(e,{x:t,y:a}){h0(e.x,t.translate,t.scale,t.originPoint),h0(e.y,a.translate,a.scale,a.originPoint)}var Bk=.999999999999,Fk=1.0000000000001;function Hk(e,t,a,o=!1){let r=a.length;if(!r)return;t.x=t.y=1;let n,s;for(let i=0;i<r;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(mr(e.x,-n.scroll.offset.x),mr(e.y,-n.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,g0(e,s)),o&&as(n.latestValues)&&cp(e,n.latestValues,n.layout?.layoutBox))}t.x<Fk&&t.x>Bk&&(t.x=1),t.y<Fk&&t.y>Bk&&(t.y=1)}function mr(e,t){e.min+=t,e.max+=t}function _k(e,t,a,o,r=.5){let n=Ue(e.min,e.max,r);h0(e,t,a,n,o)}function zk(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function cp(e,t,a){let o=a??e;_k(e.x,zk(t.x,o.x),t.scaleX,t.scale,t.originX),_k(e.y,zk(t.y,o.y),t.scaleY,t.scale,t.originY)}function jx(e,t){return lp(d0(e.getBoundingClientRect(),t))}function x0(e,t,a){let o=jx(e,a),{scroll:r}=t;return r&&(mr(o.x,r.offset.x),mr(o.y,r.offset.y)),o}var{schedule:Wl,cancel:c8}=Ix(queueMicrotask,!1);var pr={x:!1,y:!1};function Xx(){return pr.x||pr.y}function y0(e){return e==="x"||e==="y"?pr[e]?null:(pr[e]=!0,()=>{pr[e]=!1}):pr.x||pr.y?null:(pr.x=pr.y=!0,()=>{pr.x=pr.y=!1})}function Yx(e,t){let a=qx(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[a,r,()=>o.abort()]}function f8(e){return!(e.pointerType==="touch"||Xx())}function S0(e,t,a={}){let[o,r,n]=Yx(e,a);return o.forEach(s=>{let i=!1,l=!1,u,c=()=>{s.removeEventListener("pointerleave",p)},d=b=>{u&&(u(b),u=void 0),c()},f=b=>{i=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(b))},m=()=>{i=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},p=b=>{if(b.pointerType!=="touch"){if(i){l=!0;return}d(b)}},y=b=>{if(!f8(b))return;l=!1;let g=t(s,b);typeof g=="function"&&(u=g,s.addEventListener("pointerleave",p,r))};s.addEventListener("pointerenter",y,r),s.addEventListener("pointerdown",m,r)}),n}var b0=(e,t)=>t?e===t?!0:b0(e,t.parentElement):!1;var Kl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var d8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v0(e){return d8.has(e.tagName)||e.isContentEditable===!0}var m8=new Set(["INPUT","SELECT","TEXTAREA"]);function C0(e){return m8.has(e.tagName)||e.isContentEditable===!0}var uf=new WeakSet;function Uk(e){return t=>{t.key==="Enter"&&e(t)}}function L0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var qk=(e,t)=>{let a=e.currentTarget;if(!a)return;let o=Uk(()=>{if(uf.has(a))return;L0(a,"down");let r=Uk(()=>{L0(a,"up")}),n=()=>L0(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function Gk(e){return Kl(e)&&!Xx()}var jk=new WeakSet;function R0(e,t,a={}){let[o,r,n]=Yx(e,a),s=i=>{let l=i.currentTarget;if(!Gk(i)||jk.has(i))return;uf.add(l),a.stopPropagation&&jk.add(i);let u=t(l,i),c={...r,capture:!0},d=(p,y)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),uf.has(l)&&uf.delete(l),Gk(p)&&typeof u=="function"&&u(p,{success:y})},f=p=>{d(p,l===window||l===document||a.useGlobalTarget||b0(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return o.forEach(i=>{(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),Xl(i)&&(i.addEventListener("focus",u=>qk(u,r)),!v0(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}var Wx=new WeakMap,Kx,Xk=(e,t,a)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:lf(o)&&"getBBox"in o?o.getBBox()[t]:o[a],p8=Xk("inline","width","offsetWidth"),h8=Xk("block","height","offsetHeight");function g8({target:e,borderBoxSize:t}){Wx.get(e)?.forEach(a=>{a(e,{get width(){return p8(e,t)},get height(){return h8(e,t)}})})}function x8(e){e.forEach(g8)}function y8(){typeof ResizeObserver>"u"||(Kx=new ResizeObserver(x8))}function Yk(e,t){Kx||y8();let a=qx(e);return a.forEach(o=>{let r=Wx.get(o);r||(r=new Set,Wx.set(o,r)),r.add(t),Kx?.observe(o)}),()=>{a.forEach(o=>{let r=Wx.get(o);r?.delete(t),r?.size||Kx?.unobserve(o)})}}var Zx=new Set,cf;function S8(){cf=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zx.forEach(t=>t(e))},window.addEventListener("resize",cf)}function Wk(e){return Zx.add(e),cf||S8(),()=>{Zx.delete(e),!Zx.size&&typeof cf=="function"&&(window.removeEventListener("resize",cf),cf=void 0)}}function Qx(e,t){return typeof e=="function"?Wk(e):Yk(e,t)}var Zl={value:null,addProjectionMetrics:null};function Kk(e){return lf(e)&&e.tagName==="svg"}var I0=e=>typeof e=="number"?e:parseFloat(e);var T0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:T0(),y:T0()}),w0=()=>({min:0,max:0}),kt=()=>({x:w0(),y:w0()});var Zk=new WeakMap;function os(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function xn(e){return typeof e=="string"||Array.isArray(e)}var Jx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ff=["initial",...Jx];function bi(e){if(os(e.animate))return!0;for(let t=0;t<ff.length;t++)if(xn(e[ff[t]]))return!0;return!1}function fp(e){return!!(bi(e)||e.variants)}function Qk(e,t,a){for(let o in t){let r=t[o],n=a[o];if(mt(r))e.addValue(o,r);else if(mt(n))e.addValue(o,Br(r,{owner:e}));else if(n!==r)if(e.hasValue(o)){let s=e.getValue(o);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{let s=e.getStaticValue(o);e.addValue(o,Br(s!==void 0?s:r,{owner:e}))}}for(let o in a)t[o]===void 0&&e.removeValue(o);return t}var vi={current:null},Ql={current:!1};var b8=typeof window<"u";function dp(){if(Ql.current=!0,!!b8)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vi.current=e.matches;e.addEventListener("change",t),t()}else vi.current=!1}var Jk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$x={};function pp(e){$x=e}function E0(){return $x}var mp=class{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:i},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=gt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,_e.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=a.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=a,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=bi(a),this.isVariantNode=fp(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&mt(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,Zk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ql.current||dp(),this.shouldReduceMotion=vi.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),To(this.notifyUpdate),To(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&ap.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:i,times:l,ease:u,duration:c}=a.accelerate,d=new of({element:this.current,name:t,keyframes:i,times:l,ease:u,duration:oa(c)}),f=s(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let o=wo.has(t);o&&this.onBindTransform&&this.onBindTransform();let r=a.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&_e.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),n&&n()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $x){let a=$x[t];if(!a)continue;let{isEnabled:o,Feature:r}=a;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<Jk.length;o++){let r=Jk[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n="on"+r,s=t[n];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Qk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let o=this.values.get(t);if(a!==o){o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a);let r=a.get();r!==void 0&&(this.latestValues[t]=r)}}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=Br(a??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Nl(o)||Vl(o))?o=parseFloat(o):typeof o!="number"&&!Yt.test(o)&&Yt.test(a)&&(o=af(t,a)),this.setBaseTarget(t,mt(o)?o.get():o)),mt(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){let{initial:a}=this.props,o;if(typeof a=="string"||typeof a=="object"){let n=jl(this.props,a,this.presenceContext?.custom);n&&(o=n[t])}if(a&&o!==void 0)return o;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!mt(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new dn),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Wl.render(this.render)}};var df=class extends mp{constructor(){super(...arguments),this.KeyframeResolver=Ux}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){let o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};var da=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function ey(e,{style:t,vars:a},o,r){let n=e.style,s;for(s in t)n[s]=t[s];r?.applyProjectionStyles(n,o);for(s in a)n.setProperty(s,a[s])}var Jl={};function hp(e,{layout:t,layoutId:a}){return wo.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Jl[e]||e==="opacity")}function $l(e,t,a){let o=e.style,r=t?.style,n={};if(!o)return n;for(let s in o)(mt(o[s])||r&&mt(r[s])||hp(s,e)||a?.getValue(s)?.liveStyle!==void 0)&&(n[s]=o[s]);return n}function v8(e){return window.getComputedStyle(e)}var gp=class extends df{constructor(){super(...arguments),this.type="html",this.renderInstance=ey}mount(t){Io(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,a){if(wo.has(a))return this.projection?.isProjecting?zl(a):ak(t,a);{let o=v8(t),r=(bx(a)?o.getPropertyValue(a):o[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return jx(t,a)}build(t,a,o){Yl(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return $l(t,a,o)}};var ty=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var xp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $k(e,t,a,o){ey(e,t,void 0,o);for(let r in t.attrs)e.setAttribute(ty.has(r)?r:sf(r),t.attrs[r])}function yp(e,t,a){let o=$l(e,t,a);for(let r in e)if(mt(e[r])||mt(t[r])){let n=gn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[n]=e[r]}return o}var Sp=class extends df{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,a){return wo.has(a)?super.getBaseTargetFromProps(t,a)??zl(a):t[a]}getDefaultValue(t){return wo.has(t)?this.latestValues[t]??zl(t):void 0}readValueFromInstance(t,a){if(wo.has(a)){let o=Ax(a);return o&&o.default||0}if(c0.includes(a)){let r=getComputedStyle(t)[a];if(typeof r=="string"&&r)return r.trim()}return a=ty.has(a)?a:sf(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return yp(t,a,o)}build(t,a,o){ip(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,r){$k(t,a,o,r)}mount(t){this.isSVGTag=xp(t.tagName),super.mount(t)}};var C8=ff.length;function A0(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?A0(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<C8;a++){let o=ff[a],r=e.props[o];(xn(r)||r===!1)&&(t[o]=r)}return t}function D0(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let o=0;o<a;o++)if(t[o]!==e[o])return!1;return!0}var L8=[...Jx].reverse(),R8=Jx.length;function I8(e){return t=>Promise.all(t.map(({animation:a,options:o})=>Ek(e,a,o)))}function M0(e){let t=I8(e),a=eN(),o=!0,r=!1,n=u=>(c,d)=>{let f=Xo(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...y}=f;c={...c,...y,...p}}return c};function s(u){t=u(e)}function i(u){let{props:c}=e,d=A0(e.parent)||{},f=[],m=new Set,p={},y=1/0;for(let g=0;g<R8;g++){let h=L8[g],x=a[h],S=c[h]!==void 0?c[h]:d[h],v=xn(S),I=h===u?x.isActive:null;I===!1&&(y=g);let L=S===d[h]&&S!==c[h]&&v;if(L&&(o||r)&&e.manuallyAnimateOnMount&&(L=!1),x.protectedKeys={...p},!x.isActive&&I===null||!S&&!x.prevProp||os(S)||typeof S=="boolean")continue;if(h==="exit"&&x.isActive&&I!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}let C=tN(x.prevProp,S),E=C||h===u&&x.isActive&&!L&&v||g>y&&v,T=!1,A=Array.isArray(S)?S:[S],N=A.reduce(n(h),{});I===!1&&(N={});let{prevResolvedValues:D={}}=x,F={...D,...N},k=O=>{E=!0,m.has(O)&&(T=!0,m.delete(O)),x.needsAnimating[O]=!0;let V=e.getValue(O);V&&(V.liveStyle=!1)};for(let O in F){let V=N[O],w=D[O];if(p.hasOwnProperty(O))continue;let _=!1;op(V)&&op(w)?_=!D0(V,w)||C:_=V!==w,_?V!=null?k(O):m.add(O):V!==void 0&&m.has(O)?k(O):x.protectedKeys[O]=!0}x.prevProp=S,x.prevResolvedValues=N,x.isActive&&(p={...p,...N}),(o||r)&&e.blockInitialAnimation&&(E=!1);let z=L&&C;E&&(!z||T)&&f.push(...A.map(O=>{let V={type:h};if(typeof O=="string"&&(o||r)&&!z&&e.manuallyAnimateOnMount&&e.parent){let{parent:w}=e,_=Xo(w,O);if(w.enteringChildren&&_){let{delayChildren:U}=_.transition||{};V.delay=Bx(w.enteringChildren,e,U)}}return{animation:O,options:V}}))}if(m.size){let g={};if(typeof c.initial!="boolean"){let h=Xo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(g.transition=h.transition)}m.forEach(h=>{let x=e.getBaseTarget(h),S=e.getValue(h);S&&(S.liveStyle=!0),g[h]=x??null}),f.push({animation:g})}let b=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,r=!1,b?t(f):Promise.resolve()}function l(u,c){if(a[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),a[u].isActive=c;let d=i(u);for(let f in a)a[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:s,getState:()=>a,reset:()=>{a=eN(),r=!0}}}function tN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!D0(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eN(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}function ay(e,t){e.min=t.min,e.max=t.max}function hr(e,t){ay(e.x,t.x),ay(e.y,t.y)}function P0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var aN=1e-4,T8=1-aN,w8=1+aN,oN=.01,E8=0-oN,A8=0+oN;function ra(e){return e.max-e.min}function V0(e,t,a){return Math.abs(e-t)<=a}function O0(e,t,a,o=.5){e.origin=o,e.originPoint=Ue(t.min,t.max,e.origin),e.scale=ra(a)/ra(t),e.translate=Ue(a.min,a.max,e.origin)-e.originPoint,(e.scale>=T8&&e.scale<=w8||isNaN(e.scale))&&(e.scale=1),(e.translate>=E8&&e.translate<=A8||isNaN(e.translate))&&(e.translate=0)}function tu(e,t,a,o){O0(e.x,t.x,a.x,o?o.originX:void 0),O0(e.y,t.y,a.y,o?o.originY:void 0)}function k0(e,t,a,o=0){let r=o?Ue(a.min,a.max,o):a.min;e.min=r+t.min,e.max=e.min+ra(t)}function B0(e,t,a,o){k0(e.x,t.x,a.x,o?.x),k0(e.y,t.y,a.y,o?.y)}function N0(e,t,a,o=0){let r=o?Ue(a.min,a.max,o):a.min;e.min=t.min-r,e.max=e.min+ra(t)}function mf(e,t,a,o){N0(e.x,t.x,a.x,o?.x),N0(e.y,t.y,a.y,o?.y)}function rN(e,t,a,o,r){return e-=t,e=up(e,1/a,o),r!==void 0&&(e=up(e,1/r,o)),e}function D8(e,t=0,a=1,o=.5,r,n=e,s=e){if(ja.test(t)&&(t=parseFloat(t),t=Ue(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ue(n.min,n.max,o);e===n&&(i-=t),e.min=rN(e.min,t,a,i,r),e.max=rN(e.max,t,a,i,r)}function nN(e,t,[a,o,r],n,s){D8(e,t[a],t[o],t[r],t.scale,n,s)}var M8=["x","scaleX","originX"],P8=["y","scaleY","originY"];function F0(e,t,a,o){nN(e.x,t,M8,a?a.x:void 0,o?o.x:void 0),nN(e.y,t,P8,a?a.y:void 0,o?o.y:void 0)}function sN(e){return e.translate===0&&e.scale===1}function _0(e){return sN(e.x)&&sN(e.y)}function iN(e,t){return e.min===t.min&&e.max===t.max}function uN(e,t){return iN(e.x,t.x)&&iN(e.y,t.y)}function lN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function z0(e,t){return lN(e.x,t.x)&&lN(e.y,t.y)}function H0(e){return ra(e.x)/ra(e.y)}function U0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yo(e){return[e("x"),e("y")]}function cN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;let a=cN(e,t.target.x),o=cN(e,t.target.y);return`${a}% ${o}%`}};var fN={correct:(e,{treeScale:t,projectionDelta:a})=>{let o=e,r=Yt.parse(e);if(r.length>5)return o;let n=Yt.createTransformer(e),s=typeof r[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;r[0+s]/=i,r[1+s]/=l;let u=Ue(i,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),n(r)}};function dN(e,t,a){let o="",r=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((r||n||s)&&(o=`translate3d(${r}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:y}=a;u&&(o=`perspective(${u}px) ${o}`),c&&(o+=`rotate(${c}deg) `),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),m&&(o+=`rotateY(${m}deg) `),p&&(o+=`skewX(${p}deg) `),y&&(o+=`skewY(${y}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(o+=`scale(${i}, ${l})`),o||"none"}var O8=np.length,mN=e=>typeof e=="number"||de.test(e);function hN(e,t,a,o,r,n){r?(e.opacity=Ue(0,a.opacity??1,k8(o)),e.opacityExit=Ue(t.opacity??1,0,N8(o))):n&&(e.opacity=Ue(t.opacity??1,a.opacity??1,o));for(let s=0;s<O8;s++){let i=np[s],l=pN(t,i),u=pN(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||mN(l)===mN(u)?(e[i]=Math.max(Ue(I0(l),I0(u),o),0),(ja.test(u)||ja.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=Ue(t.rotate||0,a.rotate||0,o))}function pN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var k8=gN(0,.5,Gm),N8=gN(.5,.95,Xt);function gN(e,t,a){return o=>o<e?0:o>t?1:a(fn(e,t,o))}function xN(e,t,a){let o=mt(e)?e:Br(e);return o.start(Gl("",o,t,a)),o.animation}function yn(e,t,a,o={passive:!0}){return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)}var yN=(e,t)=>e.depth-t.depth;var oy=class{constructor(){this.children=[],this.isDirty=!1}add(t){kl(this.children,t),this.isDirty=!0}remove(t){di(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yN),this.isDirty=!1,this.children.forEach(t)}};function SN(e,t){let a=gt.now(),o=({timestamp:r})=>{let n=r-a;n>=t&&(To(o),e(n-t))};return _e.setup(o,!0),()=>To(o)}function au(e){return mt(e)?e.get():e}var ry=class{constructor(){this.members=[]}add(t){kl(this.members,t);for(let a=this.members.length-1;a>=0;a--){let o=this.members[a];if(o===t||o===this.lead||o===this.prevLead)continue;let r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(di(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(di(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){let o=this.members[a];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,a){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=o.options,{layoutDependency:n}=t.options;(r===void 0||r!==n)&&(t.resumeFrom=o,a&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var bN={borderRadius:{...pf,applyTo:[...np]},borderTopLeftRadius:pf,borderTopRightRadius:pf,borderBottomLeftRadius:pf,borderBottomRightRadius:pf,boxShadow:fN};var ou={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Jl,{...bN,...Jl});var ru={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},q0=["","X","Y","Z"],V8=1e3,B8=0;function G0(e,t,a,o){let{latestValues:r}=t;r[e]&&(a[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function AN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=_x(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:r,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",_e,!(r||n))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&AN(o)}function ny({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(s={},i=t?.()){this.id=B8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zl.value&&(ru.nodes=ru.calculatedTargetDeltas=ru.calculatedProjections=0),this.nodes.forEach(z8),this.nodes.forEach(Y8),this.nodes.forEach(W8),this.nodes.forEach(H8),Zl.addProjectionMetrics&&Zl.addProjectionMetrics(ru)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oy)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new dn),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=lf(s)&&!Kk(s),this.instance=s;let{layoutId:i,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;_e.read(()=>{d=window.innerWidth}),e(s,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=SN(f,250),ou.hasAnimatedSinceResize&&(ou.hasAnimatedSinceResize=!1,this.nodes.forEach(LN)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||$8,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!z0(this.targetLayout,m),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...rf(p,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,h,x.path)}else d||LN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),To(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(K8),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&AN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(q8),this.nodes.forEach(vN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(CN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(G8),this.nodes.forEach(j8),this.nodes.forEach(X8),this.nodes.forEach(F8),this.nodes.forEach(_8)):this.nodes.forEach(CN),this.clearAllSnapshots();let i=gt.now();It.delta=fa(0,1e3/60,i-It.timestamp),It.timestamp=i,It.isProcessing=!0,Qm.update.process(It),Qm.preRender.process(It),Qm.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(U8),this.sharedNodes.forEach(Z8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ra(this.snapshot.measuredBox.x)&&!ra(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){let l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!_0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||as(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),ej(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return kt();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tj))){let{scroll:u}=this.root;u&&(mr(i.x,u.offset.x),mr(i.y,u.offset.y))}return i}removeElementScroll(s){let i=kt();if(hr(i,s),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&hr(i,s),mr(i.x,c.offset.x),mr(i.y,c.offset.y))}return i}applyTransform(s,i=!1,l){let u=l||kt();hr(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(mr(u.x,-d.scroll.offset.x),mr(u.y,-d.scroll.offset.y)),as(d.latestValues)&&cp(u,d.latestValues,d.layout?.layoutBox)}return as(this.latestValues)&&cp(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){let i=kt();hr(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!as(u.latestValues))continue;let c;u.instance&&(Gx(u.latestValues)&&u.updateSnapshot(),c=kt(),hr(c,u.measurePageBox())),F0(i,u.latestValues,u.snapshot?.layoutBox,c)}return as(this.latestValues)&&F0(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==i;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=It.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B0(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):hr(this.target,this.layout.layoutBox),g0(this.target,this.targetDelta)):hr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Zl.value&&ru.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Gx(this.parent.latestValues)||p0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,i,l){this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),mf(this.relativeTargetOrigin,i,l,this.options.layoutAnchor||void 0),hr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let s=this.getLead(),i=!!this.resumingFrom||this!==s,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===It.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;hr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;Hk(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=kt());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(P0(this.prevProjectionDelta.x,this.projectionDelta.x),P0(this.prevProjectionDelta.y,this.projectionDelta.y)),tu(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!U0(this.projectionDelta.x,this.prevProjectionDelta.x)||!U0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Zl.value&&ru.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(s,i=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let m=kt(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,b=p!==y,g=this.getStack(),h=!g||g.members.length<=1,x=!!(b&&!h&&this.options.crossfade===!0&&!this.path.some(J8));this.animationProgress=0;let S,v=l?.interpolateProjection(s);this.mixTargetDelta=I=>{let L=I/1e3,C=v?.(L);C?(f.x.translate=C.x,f.x.scale=Ue(s.x.scale,1,L),f.x.origin=s.x.origin,f.x.originPoint=s.x.originPoint,f.y.translate=C.y,f.y.scale=Ue(s.y.scale,1,L),f.y.origin=s.y.origin,f.y.originPoint=s.y.originPoint):(RN(f.x,s.x,L),RN(f.y,s.y,L)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Q8(this.relativeTarget,this.relativeTargetOrigin,m,L),S&&uN(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=kt()),hr(S,this.relativeTarget)),b&&(this.animationValues=d,hN(d,c,this.latestValues,L,x,h)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(To(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{ou.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Br(0)),this.motionValue.jump(0,!1),this.currentAnimation=xN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),ZO(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(V8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,layout:l,latestValues:u}=s,{target:c}=s;if(!(!i||!c||!l)){if(this!==s&&this.layout&&l&&DN(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||kt();let d=ra(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;let f=ra(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}hr(i,c),cp(i,u),tu(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ry),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&G0("z",s,u,this.animationValues);for(let c=0;c<q0.length;c++)G0(`rotate${q0[c]}`,s,u,this.animationValues),G0(`skew${q0[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=au(i?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=au(i?.pointerEvents)||""),this.hasProjected&&!as(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=dN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;let{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in Jl){if(c[p]===void 0)continue;let{correct:y,applyTo:b,isCSSVariable:g}=Jl[p],h=d==="none"?c[p]:y(c[p],u);if(b){let x=b.length;for(let S=0;S<x;S++)s[b[S]]=h}else g?this.options.visualElement.renderState.vars[p]=h:s[p]=h}this.options.layoutId&&(s.pointerEvents=u===this?au(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(vN),this.root.sharedNodes.clear()}}}function F8(e){e.updateLayout()}function _8(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:o}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;if(r==="size")Yo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=ra(d);d.min=a[c].min,d.max=d.min+f});else if(r==="x"||r==="y"){let c=r==="x"?"y":"x";ay(n?t.measuredBox[c]:t.layoutBox[c],a[c])}else DN(r,t.layoutBox,a)&&Yo(c=>{let d=n?t.measuredBox[c]:t.layoutBox[c],f=ra(a[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let s=Si();tu(s,a,t.layoutBox);let i=Si();n?tu(i,e.applyTransform(o,!0),t.measuredBox):tu(i,a,t.layoutBox);let l=!_0(s),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=kt();mf(p,t.layoutBox,d.layoutBox,m);let y=kt();mf(y,a,f.layoutBox,m),z0(p,y)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function z8(e){Zl.value&&ru.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function H8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function U8(e){e.clearSnapshot()}function vN(e){e.clearMeasurements()}function q8(e){e.isLayoutDirty=!0,e.updateLayout()}function CN(e){e.isLayoutDirty=!1}function G8(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function j8(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function X8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function LN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Y8(e){e.resolveTargetDelta()}function W8(e){e.calcProjection()}function K8(e){e.resetSkewAndRotation()}function Z8(e){e.removeLeadSnapshot()}function RN(e,t,a){e.translate=Ue(t.translate,0,a),e.scale=Ue(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function IN(e,t,a,o){e.min=Ue(t.min,a.min,o),e.max=Ue(t.max,a.max,o)}function Q8(e,t,a,o){IN(e.x,t.x,a.x,o),IN(e.y,t.y,a.y,o)}function J8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var $8={duration:.45,ease:[.4,0,.1,1]},TN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wN=TN("applewebkit/")&&!TN("chrome/")?Math.round:Xt;function EN(e){e.min=wN(e.min),e.max=wN(e.max)}function ej(e){EN(e.x),EN(e.y)}function DN(e,t,a){return e==="position"||e==="preserve-aspect"&&!V0(H0(t),H0(a),.2)}function tj(e){return e!==e.root&&e.scroll?.wasRoot}var MN=ny({attachResizeListener:(e,t)=>yn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var sy={current:void 0},bp=ny({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sy.current){let e=new MN({});e.mount(window),e.setOptions({layoutScroll:!0}),sy.current=e}return sy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var iy=R(M(),1),ns=R(M(),1);var PN=R(M(),1),rs=(0,PN.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var kN=R(M(),1);function ON(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function aj(...e){return t=>{let a=!1,o=e.map(r=>{let n=ON(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():ON(e[r],null)}}}}function NN(...e){return kN.useCallback(aj(...e),e)}var j0=class extends iy.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(Xl(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=a.offsetParent,r=Xl(o)&&o.offsetWidth||0,n=Xl(o)&&o.offsetHeight||0,s=getComputedStyle(a),i=this.props.sizeRef.current;i.height=parseFloat(s.height),i.width=parseFloat(s.width),i.top=a.offsetTop,i.left=a.offsetLeft,i.right=r-i.width-i.left,i.bottom=n-i.height-i.top,i.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function BN({children:e,isPresent:t,anchorX:a,anchorY:o,root:r,pop:n}){let s=(0,ns.useId)(),i=(0,ns.useRef)(null),l=(0,ns.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,ns.useContext)(rs),c=n!==!1?e.props?.ref??e?.ref:void 0,d=NN(i,c);return(0,ns.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:y,right:b,bottom:g,direction:h}=l.current;if(t||n===!1||!i.current||!f||!m)return;let x=h==="rtl",S=a==="left"?x?`right: ${b}`:`left: ${y}`:x?`left: ${y}`:`right: ${b}`,v=o==="bottom"?`bottom: ${g}`:`top: ${p}`;i.current.dataset.motionPopId=s;let I=document.createElement("style");u&&(I.nonce=u);let L=r??document.head;return L.appendChild(I),I.sheet&&I.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${s}"] {
|
|
11
11
|
position: absolute !important;
|
|
12
12
|
width: ${f}px !important;
|
|
13
13
|
height: ${m}px !important;
|
|
14
14
|
${S}px !important;
|
|
15
15
|
${v}px !important;
|
|
16
16
|
}
|
|
17
|
-
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),L.contains(R)&&L.removeChild(R)}},[t]),(0,uN.jsx)(I0,{isPresent:t,childRef:s,sizeRef:l,pop:r,children:r===!1?e:Qx.cloneElement(e,{ref:d})})}var dN=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:n,presenceAffectsLayout:r,mode:i,anchorX:s,anchorY:l,root:u})=>{let c=is(W6),d=(0,Ss.useId)(),f=(0,Ss.useRef)(a),m=(0,Ss.useRef)(o);ss(()=>{f.current=a,m.current=o});let p=!0,y=(0,Ss.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:a,custom:n,onExitComplete:b=>{c.set(b,!0);for(let g of c.values())if(!g)return;o&&o()},register:b=>(c.set(b,!1),()=>{c.delete(b),!f.current&&!c.size&&m.current?.()})}),[a,c,o]);return r&&p&&(y={...y}),(0,Ss.useMemo)(()=>{c.forEach((b,g)=>c.set(g,!1))},[a]),fN.useEffect(()=>{!a&&!c.size&&o&&o()},[a]),e=(0,T0.jsx)(cN,{pop:i==="popLayout",isPresent:a,anchorX:s,anchorY:l,root:u,children:e}),(0,T0.jsx)(ls.Provider,{value:y,children:e})};function W6(){return new Map}var bs=I(P(),1);function Jx(e=!0){let t=(0,bs.useContext)(ls);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:o,register:n}=t,r=(0,bs.useId)();(0,bs.useEffect)(()=>{if(e)return n(r)},[e]);let i=(0,bs.useCallback)(()=>e&&o&&o(r),[r,o,e]);return!a&&o?[!1,i]:[!0]}var $x=I(P(),1),sf=e=>e.key||"";function w0(e){let t=[];return $x.Children.forEach(e,a=>{(0,$x.isValidElement)(a)&&t.push(a)}),t}var vs=({children:e,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:n=!0,mode:r="sync",propagate:i=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=Jx(i),f=(0,gr.useMemo)(()=>w0(e),[e]),m=i&&!c?[]:f.map(sf),p=(0,gr.useRef)(!0),y=is(()=>new Map),b=(0,gr.useRef)(new Set),[g,h]=(0,gr.useState)(f),[x,S]=(0,gr.useState)(f);ss(()=>{i&&!c&&!x.length&&d?.()},[c,i,x.length,d]),ss(()=>{p.current=!1;for(let L=0;L<x.length;L++){let C=sf(x[L]);m.includes(C)?(y.delete(C),b.current.delete(C)):y.get(C)!==!0&&y.set(C,!1)}},[x,m.length,m.join("-")]);let v=[];if(f!==g){let L=[...f],C=0;for(let T of x){let w=m.indexOf(sf(T));w===-1?(L.splice(C++,0,T),v.push(T)):C=w+v.length+1}return v.every(T=>y.get(sf(T)))?L=f:r==="wait"&&(L=v),S(w0(L)),h(f),null}let{forceRender:R}=(0,gr.useContext)(Vc);return(0,fp.jsx)(fp.Fragment,{children:x.map(L=>{let C=sf(L),T=i&&!c?!1:f===x||m.includes(C),w=()=>{if(b.current.has(C))return;if(y.has(C))b.current.add(C),y.set(C,!0);else return;let A=!0;y.forEach(N=>{N||(A=!1)}),A&&(R?.(),h([]),i&&d?.(),o&&o())};return(0,fp.jsx)(dN,{isPresent:T,initial:!p.current||a?void 0:!1,custom:t,presenceAffectsLayout:n,mode:r,root:u,onExitComplete:T?void 0:w,anchorX:s,anchorY:l,children:L},C)})})};var mN=I(P(),1),ey=(0,mN.createContext)({strict:!1});var pN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hN=!1;function K6(){if(hN)return;let e={};for(let t in pN)e[t]={isEnabled:a=>pN[t].some(o=>!!a[o])};np(e),hN=!0}function ty(){return K6(),l0()}function gN(e){let t=ty();for(let a in e)t[a]={...t[a],...e[a]};np(t)}var xN=I(Z(),1),ay=I(P(),1);function oy({children:e,...t}){let a=(0,ay.useContext)(ai);t={...a,...t},t.transition=Vl(t.transition,a.transition),t.isStatic=is(()=>t.isStatic);let o=(0,ay.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,xN.jsx)(ai.Provider,{value:o,children:e})}var ly=I(Z(),1);var ff=I(P(),1);var yN=I(P(),1),Cs=(0,yN.createContext)({});var ny=I(P(),1);function SN(e,t){if(xs(e)){let{initial:a,animate:o}=e;return{initial:a===!1||pr(a)?a:void 0,animate:pr(o)?o:void 0}}return e.inherit!==!1?t:{}}function vN(e){let{initial:t,animate:a}=SN(e,(0,ny.useContext)(Cs));return(0,ny.useMemo)(()=>({initial:t,animate:a}),[bN(t),bN(a)])}function bN(e){return Array.isArray(e)?e.join(" "):e}var cf=I(P(),1);var CN=I(P(),1);var lf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function E0(e,t,a){for(let o in t)!ut(t[o])&&!rp(o,a)&&(e[o]=t[o])}function Z6({transformTemplate:e},t){return(0,CN.useMemo)(()=>{let a=lf();return Ul(a,t,e),Object.assign({},a.vars,a.style)},[t])}function Q6(e,t){let a=e.style||{},o={};return E0(o,a,e),Object.assign(o,Z6(e,t)),o}function LN(e,t){let a={},o=Q6(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}var RN=I(P(),1);var ry=()=>({...lf(),attrs:{}});function IN(e,t,a,o){let n=(0,RN.useMemo)(()=>{let r=ry();return Qm(r,t,sp(o),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let r={};E0(r,e.style,e),n.style={...r,...n.style}}return n}var J6=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function dp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||J6.has(e)}function $6(e,t){return e.startsWith("on")?!dp(e):t?.(e)??!dp(e)}function TN(e,t,a,o){let n={};for(let r in e)r==="values"&&typeof e.values=="object"||ut(e[r])||($6(r,o)||a===!0&&dp(r)||!t&&!dp(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}var wN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function uf(e){return typeof e!="string"||e.includes("-")?!1:!!(wN.indexOf(e)>-1||/[A-Z]/u.test(e))}function EN(e,t,a,{latestValues:o},n,r=!1,i,s){let u=(i??uf(e)?IN:LN)(t,o,n,e),c=TN(t,typeof e=="string",r,s),d=e!==cf.Fragment?{...c,...u,ref:a}:{},{children:f}=t,m=(0,cf.useMemo)(()=>ut(f)?f.get():f,[f]);return(0,cf.createElement)(e,{...d,children:m})}var A0=I(P(),1);function e8({scrapeMotionValuesFromProps:e,createRenderState:t},a,o,n){return{latestValues:t8(a,o,n,e),renderState:t()}}function t8(e,t,a,o){let n={},r=o(e,{});for(let f in r)n[f]=Zl(r[f]);let{initial:i,animate:s}=e,l=xs(e),u=tp(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=a?a.initial===!1:!1;c=c||i===!1;let d=c?s:i;if(d&&typeof d!="boolean"&&!ti(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=_l(e,f[m]);if(p){let{transitionEnd:y,transition:b,...g}=p;for(let h in g){let x=g[h];if(Array.isArray(x)){let S=c?x.length-1:0;x=x[S]}x!==null&&(n[h]=x)}for(let h in y)n[h]=y[h]}}}return n}var iy=e=>(t,a)=>{let o=(0,A0.useContext)(Cs),n=(0,A0.useContext)(ls),r=()=>e8(e,t,o,n);return a?r():is(r)};var AN=iy({scrapeMotionValuesFromProps:Yl,createRenderState:lf});var DN=iy({scrapeMotionValuesFromProps:lp,createRenderState:ry});var PN=Symbol.for("motionComponentSymbol");var $l=I(P(),1);function MN(e,t,a){let o=(0,$l.useRef)(a);(0,$l.useInsertionEffect)(()=>{o.current=a});let n=(0,$l.useRef)(null);return(0,$l.useCallback)(r=>{r&&e.onMount?.(r),t&&(r?t.mount(r):t.unmount());let i=o.current;if(typeof i=="function")if(r){let s=i(r);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):i(r);else i&&(i.current=r)},[t])}var eo=I(P(),1);var ON=I(P(),1),sy=(0,ON.createContext)({});function Ls(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kN(e,t,a,o,n,r){let{visualElement:i}=(0,eo.useContext)(Cs),s=(0,eo.useContext)(ey),l=(0,eo.useContext)(ls),u=(0,eo.useContext)(ai),c=u.reducedMotion,d=u.skipAnimations,f=(0,eo.useRef)(null),m=(0,eo.useRef)(!1);o=o||s.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:i,props:a,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:r}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,y=(0,eo.useContext)(sy);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&a8(f.current,a,n,y);let b=(0,eo.useRef)(!1);(0,eo.useInsertionEffect)(()=>{p&&b.current&&p.update(a,l)});let g=a[Wm],h=(0,eo.useRef)(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return ss(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),ss(()=>{m.current=!0,p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),(0,eo.useEffect)(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),h.current=!1),p.enteringChildren=void 0)}),p}function a8(e,t,a,o){let{layoutId:n,layout:r,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:NN(e.parent)),e.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!i||s&&Ls(s),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function NN(e){if(e)return e.options.allowProjection!==!1?e.projection:NN(e.parent)}function uy(e,{forwardMotionProps:t=!1,type:a}={},o,n){o&&gN(o);let r=a?a==="svg":uf(e),i=r?DN:AN;function s(u,c){let d,f={...(0,ff.useContext)(ai),...u,layoutId:o8(u)},{isStatic:m,isValidProp:p}=f,y=vN(u),b=i(u,m);if(!m&&typeof window<"u"){n8(f,o);let g=r8(f);d=g.MeasureLayout,y.visualElement=kN(e,b,f,n,g.ProjectionNode,r)}return(0,ly.jsxs)(Cs.Provider,{value:y,children:[d&&y.visualElement?(0,ly.jsx)(d,{visualElement:y.visualElement,...f}):null,EN(e,u,MN(b,y.visualElement,c),b,m,t,r,p)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,ff.forwardRef)(s);return l[PN]=e,l}function o8({layoutId:e}){let t=(0,ff.useContext)(Vc).id;return t&&e!==void 0?t+"-"+e:e}function n8(e,t){let a=(0,ff.useContext)(ey).strict}function r8(e){let t=ty(),{drag:a,layout:o}=t;if(!a&&!o)return{};let n={...a,...o};return{MeasureLayout:a?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function BN(e,t){if(typeof Proxy>"u")return uy;let a=new Map,o=(r,i)=>uy(r,i,e,t),n=(r,i)=>o(r,i);return new Proxy(n,{get:(r,i)=>i==="create"?o:(a.has(i)||a.set(i,uy(i,void 0,e,t)),a.get(i))})}var VN=I(P(),1);var FN=(e,t)=>t.isSVG??uf(e)?new up(t):new ip(t,{allowProjection:e!==VN.Fragment});var cy=class extends ia{constructor(t){super(t),t.animationState||(t.animationState=f0(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ti(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var i8=0,fy=class extends ia{constructor(){super(...arguments),this.id=i8++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:r,custom:i}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){let s=Uo(this.node,r,i);if(s){let{transition:l,transitionEnd:u,...c}=s;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let n=this.exitAnimation=this.node.animationState.setActive("exit",!t);a&&!t&&n.then(()=>{this.exitAnimation===n&&(this.isExitComplete=!0,a(this.id))})}mount(){let{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var _N={animation:{Feature:cy},exit:{Feature:fy}};function eu(e){return{point:{x:e.pageX,y:e.pageY}}}var zN=e=>t=>ql(t)&&e(t,eu(t));function Rs(e,t,a,o){return hr(e,t,zN(a),o)}var dy=({current:e})=>e?e.ownerDocument.defaultView:null;var UN=(e,t)=>Math.abs(e-t);function HN(e,t){let a=UN(e.x,t.x),o=UN(e.y,t.y);return Math.sqrt(a**2+o**2)}var qN=new Set(["auto","scroll"]),df=class{constructor(t,a,{transformPagePoint:o,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:i=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=my(this.lastRawMoveEventInfo,this.transformPagePoint));let p=D0(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,b=HN(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!b)return;let{point:g}=p;this.history.push({...g,timestamp:dt.now()});let{onStart:h,onMove:x}=this.handlers;y||(h&&h(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=my(y,this.transformPagePoint),this.hasPendingMove=!0,Ne.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:b,onSessionEnd:g,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let x=D0(p.type==="pointercancel"?this.lastMoveEventInfo:my(y,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,x),g&&g(p,x)},!ql(t))return;this.dragSnapToOrigin=r,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=i,this.contextWindow=n||window;let l=eu(t),u=my(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=vt;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=a;f&&f(t,D0(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=Nn(Rs(this.contextWindow,"pointermove",this.handlePointerMove,m),Rs(this.contextWindow,"pointerup",this.handlePointerUp,m),Rs(this.contextWindow,"pointercancel",this.handlePointerUp,m)),s&&this.startScrollTracking(s)}startScrollTracking(t){let a=t.parentElement;for(;a;){let o=getComputedStyle(a);(qN.has(o.overflowX)||qN.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let a=this.scrollPositions.get(t);if(!a)return;let o=t===window,n=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-a.x,y:n.y-a.y};r.x===0&&r.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),Ne.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vo(this.updatePoint)}};function my(e,t){return t?{point:t(e.point)}:e}function GN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function D0({point:e},t){return{point:e,delta:GN(e,jN(t)),offset:GN(e,s8(t)),velocity:l8(t,.1)}}function s8(e){return e[0]}function jN(e){return e[e.length-1]}function l8(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,o=null,n=jN(e);for(;a>=0&&(o=e[a],!(n.timestamp-o.timestamp>Zt(t)));)a--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&n.timestamp-o.timestamp>Zt(t)*2&&(o=e[1]);let r=ma(n.timestamp-o.timestamp);if(r===0)return{x:0,y:0};let i={x:(n.x-o.x)/r,y:(n.y-o.y)/r};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ZN(e,{min:t,max:a},o){return t!==void 0&&e<t?e=o?Fe(t,e,o.min):Math.max(e,t):a!==void 0&&e>a&&(e=o?Fe(a,e,o.max):Math.min(e,a)),e}function XN(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function QN(e,{top:t,left:a,bottom:o,right:n}){return{x:XN(e.x,a,n),y:XN(e.y,t,o)}}function YN(e,t){let a=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,o]=[o,a]),{min:a,max:o}}function JN(e,t){return{x:YN(e.x,t.x),y:YN(e.y,t.y)}}function $N(e,t){let a=.5,o=Qt(e),n=Qt(t);return n>o?a=lr(t.min,t.max-o,e.min):o>n&&(a=lr(e.min,e.max-n,t.min)),ra(0,1,a)}function eB(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var py=.35;function tB(e=py){return e===!1?e=0:e===!0&&(e=py),{x:WN(e,"left","right"),y:WN(e,"top","bottom")}}function WN(e,t,a){return{min:KN(e,t),max:KN(e,a)}}function KN(e,t){return typeof e=="number"?e:e[t]||0}var u8=new WeakMap,gy=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=d=>{a&&this.snapToCursor(d),this.stopAnimation()},i=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JR(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ho(g=>{let h=this.getAxisMotionValue(g).get()||0;if(_a.test(h)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[g];S&&(h=Qt(S)*(parseFloat(h)/100))}}this.originPoint[g]=h}),y&&Ne.update(()=>y(d,f),!1,!0),Qc(this.visualElement,"transform");let{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=f8(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),b&&Ne.update(()=>b(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new df(t,{onSessionStart:r,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:o,contextWindow:dy(this.visualElement),element:this.visualElement.current})}stop(t,a){let o=t||this.latestPointerEvent,n=a||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!o)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&Ne.postRender(()=>s(o,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){let{drag:n}=this.getProps();if(!o||!hy(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=ZN(i,this.constraints[t],this.elastic[t])),r.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&Ls(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=QN(o.layoutBox,t):this.constraints=!1,this.elastic=tB(a),n!==this.constraints&&!Ls(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Ho(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=eB(o.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ls(t))return!1;let o=t.current;bo(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let r=QR(o,n.root,this.visualElement.getTransformPagePoint()),i=JN(n.layout.layoutBox,r);if(a){let s=a(jR(i));this.hasMutatedConstraints=!!s,s&&(i=Jm(s))}return i}startAnimation(t){let{drag:a,dragMomentum:o,dragElastic:n,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Ho(c=>{if(!hy(c,a,this.currentDirection))return;let d=l&&l[c]||{};(i===!0||i===c)&&(d={min:0,max:0});let f=n?200:1e6,m=n?40:1e7,p={type:"inertia",velocity:o?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(s)}startAxisValueAnimation(t,a){let o=this.getAxisMotionValue(t);return Qc(this.visualElement,t),o.start(Fl(t,o,0,a,this.visualElement,!1))}stopAnimation(){Ho(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps()[a];return n||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:a}){let{drag:o}=this.getProps(),n={x:t,y:a},r=this.visualElement.getTransformPagePoint()?.(n)||n,i=this.visualElement.measureViewportBox();Ho(s=>{if(!hy(s,o,this.currentDirection))return;let l=this.getAxisMotionValue(s),{min:u,max:c}=i[s];l.set((l.get()||0)+r[s]-Fe(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!Ls(a)||!o||!this.constraints)return;this.stopAnimation();let n=this.constraints,r={x:0,y:0};Ho(s=>{let l=this.getAxisMotionValue(s).get();r[s]=$N({min:l,max:l},n[s])});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ho(s=>{let l=this.getAxisMotionValue(s);if(!hy(s,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[s];l.set(Fe(u,c,r[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;u8.set(this.visualElement,this);let t=this.visualElement.current,a=Rs(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&a0(f);c&&d&&!m&&this.start(u)}),o,n=()=>{let{dragConstraints:u}=this.getProps();Ls(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=c8(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ne.read(n);let s=hr(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ho(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),i(),l&&l(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:i=py,dragMomentum:s=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:n,dragConstraints:r,dragElastic:i,dragMomentum:s}}};function aB(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function c8(e,t,a){let o=Ux(e,aB(a)),n=Ux(t,aB(a));return()=>{o(),n()}}function hy(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function f8(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var xy=class extends ia{constructor(t){super(t),this.removeGroupControls=zt,this.removeListeners=zt,this.controls=new gy(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var P0=e=>(t,a)=>{e&&Ne.update(()=>e(t,a),!1,!0)},yy=class extends ia{constructor(){super(...arguments),this.removePointerDownListener=zt}onPointerDown(t){this.session=new df(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dy(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:n}=this.node.getProps();return{onSessionStart:P0(t),onStart:P0(a),onMove:P0(o),onEnd:(r,i)=>{delete this.session,n&&Ne.postRender(()=>n(r,i))}}}mount(){this.removePointerDownListener=Rs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var oB=I(Z(),1);var mp=I(P(),1);var M0=!1,O0=class extends mp.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:n}=this.props,{projection:r}=t;r&&(a.group&&a.group.add(r),o&&o.register&&n&&o.register(r),M0&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ql.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:o,drag:n,isPresent:r}=this.props,{projection:i}=o;return i&&(i.isPresent=r,t.layoutDependency!==a&&i.setOptions({...i.options,layoutDependency:a}),M0=!0,n||t.layoutDependency!==a||a===void 0||t.isPresent!==r?i.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?i.promote():i.relegate()||Ne.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:a}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=a,o.root.didUpdate(),Hl.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:n}=t;M0=!0,n&&(n.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(n),o&&o.deregister&&o.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Sy(e){let[t,a]=Jx(),o=(0,mp.useContext)(Vc);return(0,oB.jsx)(O0,{...e,layoutGroup:o,switchLayoutGroup:(0,mp.useContext)(sy),isPresent:t,safeToRemove:a})}var nB={pan:{Feature:yy},drag:{Feature:xy,ProjectionNode:cp,MeasureLayout:Sy}};function rB(e,t,a){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",a==="Start");let n="onHover"+a,r=o[n];r&&Ne.postRender(()=>r(t,eu(t)))}var by=class extends ia{mount(){let{current:t}=this.node;t&&(this.unmount=$R(t,(a,o)=>(rB(this.node,o,"Start"),n=>rB(this.node,n,"End"))))}unmount(){}};var vy=class extends ia{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nn(hr(this.node.current,"focus",()=>this.onFocus()),hr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function iB(e,t,a){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",a==="Start");let n="onTap"+(a==="End"?"":a),r=o[n];r&&Ne.postRender(()=>r(t,eu(t)))}var Cy=class extends ia{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:a,propagate:o}=this.node.props;this.unmount=n0(t,(n,r)=>(iB(this.node,r,"Start"),(i,{success:s})=>iB(this.node,i,s?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:o?.tap===!1})}unmount(){}};var N0=new WeakMap,k0=new WeakMap,d8=e=>{let t=N0.get(e.target);t&&t(e)},m8=e=>{e.forEach(d8)};function p8({root:e,...t}){let a=e||document;k0.has(a)||k0.set(a,{});let o=k0.get(a),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(m8,{root:e,...t})),o[n]}function sB(e,t,a){let o=p8(t);return N0.set(e,a),o.observe(e),()=>{N0.delete(e),o.unobserve(e)}}var h8={some:0,all:1},Ly=class extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:n="some",once:r}=t,i={root:a?a.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:h8[n]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=sB(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(g8(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function g8({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var lB={inView:{Feature:Ly},tap:{Feature:Cy},focus:{Feature:vy},hover:{Feature:by}};var uB={layout:{ProjectionNode:cp,MeasureLayout:Sy}};var cB={..._N,...lB,...nB,...uB};var B0=BN(cB,FN);var fB=I(P(),1);function tu(){!jl.current&&ap();let[e]=(0,fB.useState)(ys.current);return e}var ha=B0;var to=I(P(),1);var dB="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",mB="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function pB(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var au=I(Z(),1);function Ry({children:e,as:t="span",duration:a=2.5,className:o}){return(0,au.jsxs)(au.Fragment,{children:[(0,au.jsx)("style",{children:dB}),(0,au.jsx)(t,{style:pB(a),className:re("inline-block",mB,o),children:e})]})}var gB=I(Z(),1);function hB({children:e="Thinking\u2026",duration:t=1.8,className:a}){return(0,gB.jsx)(Ry,{as:"span",duration:t,className:re("font-medium",a),children:e})}var mf=[.16,1,.3,1];var xB={type:"spring",stiffness:460,damping:30,mass:.55};var ou={type:"spring",stiffness:360,damping:32,mass:.6};var SB=I(Z(),1);function yB({open:e,openHeight:t="auto",className:a,style:o,transition:n,...r}){let i=tu()??!1;return(0,SB.jsx)(ha.div,{...r,"aria-hidden":!e,inert:!e,initial:!1,animate:i?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:n??{duration:i?0:e?.22:.14,ease:mf},className:re("overflow-hidden",a),style:{...o,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var xe=I(Z(),1);function y8({item:e}){let t=e.status??"complete";return(0,xe.jsxs)("div",{className:"flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1",children:[(0,xe.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:t==="complete"?(0,xe.jsx)(Yr,{className:"size-4",strokeWidth:1.8}):t==="active"?(0,xe.jsxs)("span",{className:"relative grid size-3 place-items-center",children:[(0,xe.jsx)(ha.span,{className:"absolute inset-0 rounded-full bg-foreground/10",animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY}}),(0,xe.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/60"})]}):(0,xe.jsx)(mm,{className:"size-3",strokeWidth:1.5})}),(0,xe.jsx)("span",{className:re("min-w-0 flex-1 leading-5",t==="pending"?"text-muted-foreground/55":"text-foreground/90"),children:e.label}),e.meta?(0,xe.jsx)("span",{className:"shrink-0 leading-5 text-muted-foreground/55",children:e.meta}):null]})}function S8({item:e}){return(0,xe.jsx)("div",{className:"rounded-md px-1.5 py-1 leading-5 text-muted-foreground",children:e.content})}function b8({result:e}){let t=(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{"aria-hidden":"true",className:"grid size-5 shrink-0 place-items-center text-muted-foreground",children:e.icon??(0,xe.jsx)(Ji,{className:"size-3",strokeWidth:2})}),(0,xe.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground/90",children:e.title}),e.domain?(0,xe.jsx)("span",{className:"min-w-0 truncate text-muted-foreground/55",children:e.domain}):null]}),a=re("flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors",e.url&&"focus-visible:ring-2 focus-visible:ring-ring");return e.url?(0,xe.jsx)("a",{href:e.url,className:a,children:t}):(0,xe.jsx)("div",{className:a,children:t})}function v8({item:e}){let t=tu()??!1,a=t?{opacity:1}:{opacity:0,y:6},o={opacity:1,y:0},n=t?{opacity:0}:{opacity:0,y:-3},r=t?{duration:0}:{opacity:{duration:.18,ease:mf},y:ou,layout:ou};return(0,xe.jsxs)("div",{className:"space-y-0.5",children:[(0,xe.jsxs)("div",{className:"flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground",children:[(0,xe.jsx)(On,{"aria-hidden":"true",className:"size-4 shrink-0",strokeWidth:1.7}),(0,xe.jsx)("span",{className:"min-w-0 truncate",children:e.query})]}),e.results?.length?(0,xe.jsx)("div",{className:"space-y-0.5 pl-4",children:(0,xe.jsx)(vs,{initial:!0,mode:"popLayout",children:e.results.map(i=>(0,xe.jsx)(ha.div,{layout:"position",initial:a,animate:o,exit:n,transition:r,children:(0,xe.jsx)(b8,{result:i})},i.id))})}):null,(0,xe.jsx)(vs,{initial:!0,children:e.moreCount?(0,xe.jsxs)(ha.div,{initial:a,animate:o,exit:n,transition:r,className:"px-1.5 py-1 pl-8 text-muted-foreground/55",children:["+",e.moreCount," more"]},"more-results"):null})]})}function C8({action:e}){return e==="read"?(0,xe.jsx)(xm,{className:"size-4"}):e==="edit"||e==="write"?(0,xe.jsx)(es,{className:"size-4"}):e==="run"?(0,xe.jsx)(kn,{className:"size-4"}):(0,xe.jsx)(as,{className:"size-4"})}function L8({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1);return(0,xe.jsxs)("div",{className:"flex min-h-8 min-w-0 items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5",children:[(0,xe.jsx)("span",{"aria-hidden":"true",className:"grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:(0,xe.jsx)(C8,{action:e.action})}),(0,xe.jsx)("span",{className:"shrink-0 font-medium text-foreground/90",children:t}),(0,xe.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.target}),typeof e.additions=="number"||typeof e.deletions=="number"?(0,xe.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono tabular-nums",children:[typeof e.additions=="number"?(0,xe.jsxs)("span",{className:"text-emerald-500",children:["+",e.additions]}):null,typeof e.deletions=="number"?(0,xe.jsxs)("span",{className:"text-rose-500",children:["\u2212",e.deletions]}):null]}):null]})}function R8({kind:e}){return e==="thinking"?(0,xe.jsx)(ts,{className:"size-4"}):e==="message"?(0,xe.jsx)(Ll,{className:"size-4"}):e==="write"?(0,xe.jsx)(es,{className:"size-4"}):e==="run"?(0,xe.jsx)(kn,{className:"size-4"}):e==="read"?(0,xe.jsx)(vm,{className:"size-4"}):(0,xe.jsx)(as,{className:"size-4"})}function I8({item:e}){return(0,xe.jsxs)("div",{className:"grid min-h-8 grid-cols-[1rem_auto_minmax(0,1fr)] items-center gap-2.5 rounded-md px-1.5 py-0.5",children:[(0,xe.jsx)("span",{"aria-hidden":"true",className:"grid size-4 place-items-center text-muted-foreground/70",children:e.icon??(0,xe.jsx)(R8,{kind:e.kind})}),(0,xe.jsx)("span",{className:"font-medium text-foreground/90",children:e.label}),e.detail?(0,xe.jsx)("span",{className:"min-w-0 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.detail}):(0,xe.jsx)("span",{})]})}function bB({item:e}){return e.type==="text"?(0,xe.jsx)(S8,{item:e}):e.type==="search"?(0,xe.jsx)(v8,{item:e}):e.type==="tool"?(0,xe.jsx)(L8,{item:e}):e.type==="trace"?(0,xe.jsx)(I8,{item:e}):(0,xe.jsx)(y8,{item:e})}var sa=I(Z(),1);function T8(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let a=Math.floor(t/60),o=t%60;return o===0?`${a}m`:`${a}m ${o}s`}function w8({open:e,defaultOpen:t,onOpenChange:a}){let[o,n]=(0,to.useState)(t),r=e!==void 0,i=e??o,s=(0,to.useCallback)(l=>{r||n(l),a?.(l)},[r,a]);return[i,s]}function E8(e){let t=e[0]?.type;return t&&e.every(a=>a.type===t)?t:"mixed"}function A8(e){return e==="search"?"Searching the web\u2026":e==="tool"?"Running tools\u2026":e==="trace"?"Working through the run\u2026":e==="mixed"?"Working through it\u2026":"Thinking\u2026"}function D8(e,t,a){if(e==="step"||e==="text")return(0,sa.jsxs)(sa.Fragment,{children:["Thought for ",(0,sa.jsx)("span",{className:"tabular-nums",children:T8(a)})]});if(e==="search")return"Searched the web";if(e==="tool")return`Ran ${t.length} ${t.length===1?"tool":"tools"}`;if(e==="trace"){let o=t.filter(r=>r.type==="trace"&&(r.kind==="thinking"||r.kind==="message")).length,n=t.length-o;return`${n} ${n===1?"tool call":"tool calls"}, ${o} ${o===1?"message":"messages"}`}return`Completed ${t.length} ${t.length===1?"step":"steps"}`}function vB({items:e,contentType:t,status:a="working",duration:o=0,open:n,defaultOpen:r=!1,onOpenChange:i,collapseOnComplete:s=!0,activeLabel:l,summary:u,renderWorkingStatus:c,renderCompletedStatus:d,maxHeight:f=208,className:m,contentClassName:p}){let y=tu()??!1,b=(0,to.useId)(),g=`${b}-trigger`,h=`${b}-content`,x=(0,to.useRef)(null),S=(0,to.useRef)(null),v=(0,to.useRef)(a),[R,L]=(0,to.useState)(0),[C,T]=w8({open:n,defaultOpen:r,onOpenChange:i}),w=a==="working",A=w||C,N=e.length?E8(e):t??"mixed",D=Math.min(R,Math.max(0,f)),V=w?Math.max(0,f):D,k=R>f,F=w?Math.min(0,V-R):0;(0,to.useLayoutEffect)(()=>{let q=x.current;if(!q)return;let G=()=>L(q.offsetHeight);if(G(),typeof ResizeObserver>"u")return;let K=new ResizeObserver(G);return K.observe(q),()=>K.disconnect()},[]),(0,to.useEffect)(()=>{v.current==="working"&&a==="complete"&&T(!s),v.current=a},[s,T,a]);let H=()=>{let q=!C;T(q),q&&requestAnimationFrame(()=>S.current?.scrollTo({top:0}))},O=l??A8(N),B=u??D8(N,e,o),E=k?w?"linear-gradient(to bottom, transparent, black 12px)":"linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)":void 0;return(0,sa.jsxs)("div",{"data-state":w?"working":A?"open":"closed","data-content":N,"aria-busy":w,className:re("w-full text-sm",m),children:[w?(0,sa.jsx)("div",{id:g,role:"status",className:"flex h-7 min-w-0 items-center text-muted-foreground",children:c?c({label:O,duration:o}):(0,sa.jsx)(hB,{children:O})}):(0,sa.jsxs)("button",{id:g,type:"button","aria-expanded":A,"aria-controls":h,onClick:H,className:"group flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[(0,sa.jsx)("span",{className:"truncate",children:d?d({summary:B,duration:o}):B}),(0,sa.jsx)(ha.span,{"aria-hidden":"true",animate:{rotate:A?180:0},transition:y?{duration:0}:xB,className:"inline-flex shrink-0 text-muted-foreground/70 group-hover:text-foreground",children:(0,sa.jsx)(Ki,{className:"size-3.5"})})]}),(0,sa.jsx)(yB,{id:h,role:"region","aria-labelledby":g,open:A,openHeight:V,children:(0,sa.jsx)("div",{ref:S,className:re("scrollbar-hide pr-1",k&&A&&!w?"overflow-y-auto":"overflow-y-hidden"),style:{height:V,maskImage:E,WebkitMaskImage:E},children:(0,sa.jsx)(ha.div,{ref:x,role:"list",initial:!1,animate:{y:F},transition:y?{duration:0}:ou,className:re("space-y-0.5 py-2",p),children:(0,sa.jsx)(vs,{mode:"popLayout",children:e.map(q=>(0,sa.jsx)(ha.div,{layout:"position",role:"listitem",initial:y?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:y?{opacity:0}:{opacity:0,y:-3},transition:y?{duration:0}:{opacity:{duration:.18,ease:mf},y:ou,layout:ou},children:(0,sa.jsx)(bB,{item:q})},q.id))})})})})]})}var EB=I(P(),1);var hf=I(P(),1);function Iy(){return typeof window<"u"}function Ht(e){return Ty(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){var t;return(t=(Ty(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ty(e){return Iy()?e instanceof Node||e instanceof Be(e).Node:!1}function Re(e){return Iy()?e instanceof Element||e instanceof Be(e).Element:!1}function Ve(e){return Iy()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function xr(e){return!Iy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function ru(e){let{overflow:t,overflowX:a,overflowY:o,display:n}=la(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&n!=="inline"&&n!=="contents"}function CB(e){return/^(table|td|th)$/.test(Ht(e))}function pp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var P8=/transform|translate|scale|rotate|perspective|filter/,M8=/paint|layout|strict|content/,nu=e=>!!e&&e!=="none",V0;function wy(e){let t=Re(e)?la(e):e;return nu(t.transform)||nu(t.translate)||nu(t.scale)||nu(t.rotate)||nu(t.perspective)||!Ey()&&(nu(t.backdropFilter)||nu(t.filter))||P8.test(t.willChange||"")||M8.test(t.contain||"")}function LB(e){let t=qo(e);for(;Ve(t)&&!pn(t);){if(wy(t))return t;if(pp(t))return null;t=qo(t)}return null}function Ey(){return V0==null&&(V0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),V0}function pn(e){return/^(html|body|#document)$/.test(Ht(e))}function la(e){return Be(e).getComputedStyle(e)}function hp(e){return Re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qo(e){if(Ht(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xr(e)&&e.host||yr(e);return xr(t)?t.host:t}function RB(e){let t=qo(e);return pn(t)?(e.ownerDocument||e).body:Ve(t)&&ru(t)?t:RB(t)}function Is(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let n=RB(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),i=Be(n);if(r){let s=Ay(i);return t.concat(i,i.visualViewport||[],ru(n)?n:[],s&&a?Is(s):[])}else return t.concat(n,Is(n,[],a))}function Ay(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var O8=I(P(),1),gp={...O8};var F0=gp.useInsertionEffect,k8=F0&&F0!==gp.useLayoutEffect?F0:e=>e();function j(e){let t=Je(N8).current;return t.next=e,k8(t.effect),t.trampoline}function N8(){let e={next:void 0,callback:B8,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function B8(){}var IB=I(P(),1),V8=()=>{},U=typeof document<"u"?IB.useLayoutEffect:V8;var Dy=I(P(),1),_0=Dy.createContext(void 0);function pf(e=!1){let t=Dy.useContext(_0);if(t===void 0&&!e)throw new Error(ke(16));return t}var TB=I(P(),1);function wB(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:n=0,isNativeButton:r}=e,i=o&&t!==!1,s=o&&t===!1;return{props:TB.useMemo(()=>{let u={onKeyDown(c){a&&t&&c.key!=="Tab"&&c.preventDefault()}};return o||(u.tabIndex=n,!r&&a&&(u.tabIndex=t?n:-1)),(r&&(t||i)||!r&&a)&&(u["aria-disabled"]=a),r&&(!t||s)&&(u.disabled=a),u},[o,a,t,i,s,r,n])}}function ve(e){return e?.ownerDocument||document}function Py(e,t,{detail:a=0}={}){e.dispatchEvent(new(Be(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Go(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:n=!0,composite:r}=e,i=hf.useRef(null),s=pf(!0),l=r??s!==void 0,{props:u}=wB({focusableWhenDisabled:a,disabled:t,composite:l,tabIndex:o,isNativeButton:n}),c=hf.useCallback(()=>{let m=i.current;z0(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);U(c,[c]);let d=hf.useCallback((m={})=>{let{onClick:p,onMouseDown:y,onKeyUp:b,onKeyDown:g,onPointerDown:h,...x}=m;return Fa({onClick(S){if(t){S.preventDefault();return}p?.(S)},onMouseDown(S){t||y?.(S)},onKeyDown(S){if(t||(Tm(S),g?.(S),S.baseUIHandlerPrevented))return;let v=S.target===S.currentTarget,R=S.currentTarget,L=z0(R),C=!n&&F8(R),T=v&&(n?L:!C),w=S.key==="Enter",A=S.key===" ",N=R.getAttribute("role"),D=N?.startsWith("menuitem")||N==="option"||N==="gridcell";if(v&&l&&A){if(S.defaultPrevented&&D)return;S.preventDefault(),(!n||L)&&(S.preventBaseUIHandler(),Py(R,S));return}if(!T||n||!A&&!w){v&&C&&A&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),w&&(S.preventBaseUIHandler(),Py(R,S)))},onKeyUp(S){if(!t){if(Tm(S),b?.(S),S.target===S.currentTarget&&n&&l&&z0(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!n&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),Py(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}h?.(S)}},n?{type:"button"}:{role:"button"},u,x)},[t,u,l,n]),f=j(m=>{i.current=m,c()});return{getButtonProps:d,buttonRef:f}}function z0(e){return Ve(e)&&e.tagName==="BUTTON"}function F8(e){return Ve(e)&&e.tagName==="A"&&!!e.href}var U0=EB.forwardRef(function(t,a){let{render:o,className:n,disabled:r=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=Go({disabled:r,focusableWhenDisabled:i,native:s});return Q("button",t,{state:{disabled:r},ref:[a,d],props:[u,c]})});var AB=I(Z(),1),_8=Nc("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Lo({className:e,variant:t="default",size:a="default",...o}){return(0,AB.jsx)(U0,{"data-slot":"button",className:re(_8({variant:t,size:a,className:e})),...o})}var DB=I(Z(),1);function ni({className:e,...t}){return(0,DB.jsx)("div",{"data-slot":"skeleton",className:re("animate-pulse rounded-md bg-muted",e),...t})}var Sr=I(P(),1);function Ts(e,t,a){let[o,n]=(0,Sr.useState)(),[r,i]=(0,Sr.useState)(!1),[s,l]=(0,Sr.useState)(0),u=(0,Sr.useRef)(e);u.current=e;let c=(0,Sr.useCallback)(async()=>{if(!document.hidden)try{n(await u.current()),i(!1),l(d=>d+1)}catch{i(!0)}},[]);return(0,Sr.useEffect)(()=>{c();let d=setInterval(c,t);return()=>clearInterval(d)},[t,c,...a]),{data:o,error:r,tick:s,reload:c}}var ao=I(Z(),1),ws="size-4";function z8(e){let t=(e.name??"").toLowerCase();return e.kind==="say"?{kind:"message",label:"Said",icon:(0,ao.jsx)(Ll,{className:ws})}:e.kind==="shell"?{kind:"run",label:"Ran command",icon:(0,ao.jsx)(kn,{className:ws})}:e.kind==="edit"?{kind:"write",label:"Edited",icon:(0,ao.jsx)(es,{className:ws})}:/^(read|cat|view|open)$/.test(t)?{kind:"read",label:"Read",icon:(0,ao.jsx)(gm,{className:ws})}:/grep|search|rg/.test(t)&&!/web/.test(t)?{kind:"tool",label:"Searched",icon:(0,ao.jsx)(On,{className:ws})}:/glob|list|ls|tree|find/.test(t)?{kind:"tool",label:"Listed files",icon:(0,ao.jsx)(ym,{className:ws})}:/web|fetch/.test(t)?{kind:"tool",label:"Fetched",icon:(0,ao.jsx)(Sm,{className:ws})}:{kind:"tool",label:e.name??"Tool",icon:(0,ao.jsx)(as,{className:ws})}}function PB(e){return e.map((t,a)=>{let o=z8(t);return{id:`step-${a}`,type:"trace",kind:o.kind,icon:o.icon,label:(0,ao.jsxs)(ao.Fragment,{children:[o.label,t.ok===!1&&(0,ao.jsx)("span",{className:"ml-1.5 text-xs font-normal text-destructive",children:"failed"}),t.t!=null&&(0,ao.jsxs)("span",{className:"ml-1.5 text-xs font-normal tabular-nums text-muted-foreground/60",children:["+",Kr(t.t)]})]}),detail:t.text.length>200?`${t.text.slice(0,199)}\u2026`:t.text}})}var we=I(Z(),1);function xp({title:e,children:t}){return(0,we.jsxs)("section",{className:"space-y-2",children:[(0,we.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}var H0=({children:e,mono:t})=>(0,we.jsx)("div",{className:re("max-h-60 overflow-auto whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e});function U8({patch:e}){return(0,we.jsx)("div",{className:"max-h-72 overflow-auto rounded-lg border bg-muted/40",children:(0,we.jsx)("pre",{className:"min-w-max p-3 font-mono text-xs leading-5",children:e.split(`
|
|
18
|
-
`).map((t,a)=>(0,we.jsx)("div",{className:re(t.startsWith("+")&&!t.startsWith("+++")&&"bg-success/10 text-success",t.startsWith("-")&&!t.startsWith("---")&&"bg-destructive/10 text-destructive",t.startsWith("@@")&&"text-info"),children:t||" "},a))})})}var MB={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function H8(e,t){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?Zr(Number(t)):e==="cost"?Number(t)?`$${Number(t).toFixed(3)}`:"free":e==="saved"?`~${un(Number(t))}`:String(t)}function yp({children:e,tone:t}){return(0,we.jsx)("p",{className:re("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function q8({d:e}){let[t,a]=(0,My.useState)(!1),[o,n]=(0,My.useState)(!1),[r,i]=(0,My.useState)(!1),s=e.state==="running"||e.state==="queued";return(0,we.jsxs)("div",{className:"space-y-5",children:[!/^Review of /.test(e.task)&&(0,we.jsx)(xp,{title:"Task",children:(0,we.jsx)(H0,{children:e.task})}),(0,we.jsx)(xp,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,we.jsx)(vB,{items:PB(e.steps),status:s?"working":"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:260,activeLabel:"Working\u2026"}):(0,we.jsx)("p",{className:"text-sm text-muted-foreground",children:s?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,we.jsx)(xp,{title:"Result",children:(0,we.jsx)(H0,{children:e.answer})}),e.changes.length>0&&(0,we.jsxs)(xp,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,we.jsx)("div",{className:"space-y-0.5 font-mono text-xs",children:e.changes.map(l=>(0,we.jsxs)("div",{className:"flex gap-2",children:[(0,we.jsx)("b",{className:re("w-3",l.status==="A"&&"text-success",l.status==="M"&&"text-warning",l.status==="D"&&"text-destructive"),children:l.status}),(0,we.jsx)("span",{className:"break-all",children:l.path})]},l.path))}),e.patch&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(Lo,{variant:"ghost",size:"sm",onClick:()=>a(l=>!l),children:t?"Hide the diff":"Show the diff"}),t&&(0,we.jsx)(U8,{patch:e.patch})]})]}),(0,we.jsxs)(xp,{title:"Details",children:[(0,we.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(MB).map(l=>{let u=e.info[l];return u==null||u===""||u===0&&l!=="cost"?null:(0,we.jsxs)("div",{className:"min-w-0",children:[(0,we.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:MB[l]}),(0,we.jsx)("dd",{className:"break-words text-[13px]",children:H8(l,u)})]},l)})}),e.refs&&(0,we.jsxs)(yp,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((l,u)=>(0,we.jsxs)(yp,{children:["Fell back from ",l.target,": ",l.error]},u)),e.warnings.map((l,u)=>(0,we.jsx)(yp,{children:l},u)),e.verify&&(0,we.jsxs)(yp,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,we.jsx)(yp,{tone:"bad",children:e.error}),(0,we.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,we.jsxs)(Lo,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),i(!0),setTimeout(()=>i(!1),1400)},children:[r?(0,we.jsx)(Yr,{}):(0,we.jsx)(hm,{}),r?"Copied":e.id]}),(0,we.jsx)(Lo,{variant:"ghost",size:"sm",onClick:()=>n(l=>!l),children:o?"Hide full report":"Full report"})]}),o&&(0,we.jsx)(H0,{mono:!0,children:e.report})]})]})}function Oy({id:e,live:t}){let{data:a,error:o}=Ts(()=>sn.run(e),t?3e3:6e5,[e,t]);return a?(0,we.jsx)(q8,{d:a}):o?(0,we.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,we.jsxs)("div",{className:"space-y-3",children:[(0,we.jsx)(ni,{className:"h-16"}),(0,we.jsx)(ni,{className:"h-24"})]})}var Rr={};ka(Rr,{Backdrop:()=>NB,Close:()=>VB,Description:()=>UB,Handle:()=>Xp,Popup:()=>_2,Portal:()=>q2,Root:()=>tF,Title:()=>rF,Trigger:()=>cF,Viewport:()=>oF,createHandle:()=>fF});var kB=I(P(),1);var ky=I(P(),1),q0=ky.createContext(void 0);function ga(e){let t=ky.useContext(q0);if(!e&&t===void 0)throw new Error(ke(27));return t}var su={};ka(su,{endingStyle:()=>Sp,startingStyle:()=>iu});var iu="data-starting-style",Sp="data-ending-style";var G8={[iu]:""},j8={[Sp]:""},za={transitionStatus(e){return e==="starting"?G8:e==="ending"?j8:null}};var lu={};ka(lu,{align:()=>K8,anchorHidden:()=>X0,closed:()=>j0,endingStyle:()=>Y8,open:()=>G0,side:()=>W8,startingStyle:()=>X8});var G0="data-open",j0="data-closed",X8=iu,Y8=Sp,X0="data-anchor-hidden",W8="data-side",K8="data-align";var uu={};ka(uu,{popupOpen:()=>Ny,pressed:()=>Y0});var Ny="data-popup-open",Y0="data-pressed";var Z8={[Ny]:""},Q8={[Ny]:"",[Y0]:""},J8={[G0]:""},$8={[j0]:""},ej={[X0]:""},gf={open(e){return e?Z8:null}},OB={open(e){return e?Q8:null}},Vn={open(e){return e?J8:$8},anchorHidden(e){return e?ej:null}},xf={...Vn,...za};var NB=kB.forwardRef(function(t,a){let{render:o,className:n,style:r,forceRender:i=!1,...s}=t,l=ga(),u=l.useState("open"),c=l.useState("nested"),d=l.useState("mounted"),f=l.useState("transitionStatus");return Q("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,a],stateAttributesMapping:xf,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},s],enabled:i||!c})});var BB=I(P(),1);var ae={};ka(ae,{cancelOpen:()=>Ej,chipRemovePress:()=>cj,clearPress:()=>uj,closePress:()=>sj,closeWatcher:()=>vj,decrementPress:()=>mj,disabled:()=>Dj,drag:()=>Ij,escapeKey:()=>bj,focusOut:()=>Sj,imperativeAction:()=>Oj,incrementPress:()=>dj,initial:()=>Mj,inputBlur:()=>gj,inputChange:()=>pj,inputClear:()=>hj,inputPaste:()=>xj,inputPress:()=>yj,itemPress:()=>ij,keyboard:()=>Lj,linkPress:()=>lj,listNavigation:()=>Cj,missing:()=>Pj,none:()=>tj,outsidePress:()=>rj,pointer:()=>Rj,scrub:()=>wj,siblingOpen:()=>Aj,swipe:()=>kj,trackPress:()=>fj,triggerFocus:()=>nj,triggerHover:()=>oj,triggerPress:()=>aj,wheel:()=>Tj,windowResize:()=>Nj});var tj="none",aj="trigger-press",oj="trigger-hover",nj="trigger-focus",rj="outside-press",ij="item-press",sj="close-press",lj="link-press",uj="clear-press",cj="chip-remove-press",fj="track-press",dj="increment-press",mj="decrement-press",pj="input-change",hj="input-clear",gj="input-blur",xj="input-paste",yj="input-press",Sj="focus-out",bj="escape-key",vj="close-watcher",Cj="list-navigation",Lj="keyboard",Rj="pointer",Ij="drag",Tj="wheel",wj="scrub",Ej="cancel-open",Aj="sibling-open",Dj="disabled",Pj="missing",Mj="initial",Oj="imperative-action",kj="swipe",Nj="window-resize";function ue(e,t,a,o){let n=!1,r=!1,i=o??Ye;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){r=!0},get isCanceled(){return n},get isPropagationAllowed(){return r},trigger:a,...i}}var VB=BB.forwardRef(function(t,a){let{render:o,className:n,style:r,disabled:i=!1,nativeButton:s=!0,...l}=t,u=ga(),c=u.useState("open"),{getButtonProps:d,buttonRef:f}=Go({disabled:i,native:s}),m={disabled:i};function p(y){c&&u.setOpen(!1,ue(ae.closePress,y.nativeEvent))}return Q("button",t,{state:m,ref:[a,f],props:[{onClick:p},l,d]})});var zB=I(P(),1);var By=I(P(),1);var FB=0;function Bj(e,t="mui"){let[a,o]=By.useState(e),n=e||a;return By.useEffect(()=>{a==null&&(FB+=1,o(`${t}-${FB}`))},[a,t]),n}var _B=gp.useId;function Es(e,t){if(_B!==void 0){let a=_B();return e??(t?`${t}-${a}`:a)}return Bj(e,t)}function Et(e){return Es(e,"base-ui")}var UB=zB.forwardRef(function(t,a){let{render:o,className:n,style:r,id:i,...s}=t,l=ga(),u=Et(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),Q("p",t,{ref:a,props:[{id:u},s]})});var V2=I(P(),1);var oo=I(P(),1);var HB=I(P(),1);function yf(e){HB.useEffect(e,So)}var bp=0,Ua=class e{static create(){return new e}currentId=bp;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=bp,a()},t)}isStarted(){return this.currentId!==bp}clear=()=>{this.currentId!==bp&&(clearTimeout(this.currentId),this.currentId=bp)};disposeEffect=()=>this.clear};function mt(){let e=Je(Ua.create).current;return yf(e.disposeEffect),e}var nt={};ka(nt,{engine:()=>J0,env:()=>eI,mediaQuery:()=>tI,os:()=>Z0,screenReader:()=>$0});var Z0={};ka(Z0,{android:()=>jB,apple:()=>K0,ios:()=>W0,linux:()=>Uj,mac:()=>XB,windows:()=>zj});function Vj(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Fj,platform:_j,maxTouchPoints:qB}=Vj(),cu=Fj.toLowerCase(),fu=_j.toLowerCase();var W0=/^i(os$|p)/.test(fu)||fu==="macintel"&&qB>1,GB="android",jB=fu===GB||cu.includes(GB),XB=!W0&&fu.startsWith("mac"),zj=fu.startsWith("win"),Uj=!jB&&/^(linux|chrome os)/.test(fu),K0=XB||W0;var J0={};ka(J0,{blink:()=>qj,gecko:()=>Hj,webkit:()=>Q0});var Q0=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Hj=!Q0&&cu.includes("firefox"),qj=!Q0&&cu.includes("chrom");var $0={};ka($0,{voiceOver:()=>Gj});var Gj=K0;var eI={};ka(eI,{jsdom:()=>jj});var jj=/jsdom|happydom/.test(cu);var tI={};ka(tI,{iOS:()=>Xj});var Xj="@supports (-webkit-touch-callout: none)";function Ro(e){e.preventDefault(),e.stopPropagation()}function YB(e){return"nativeEvent"in e}function As(e){return e.pointerType===""&&e.isTrusted?!0:nt.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Sf(e){return nt.env.jsdom?!1:!nt.os.android&&e.width===0&&e.height===0||nt.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function jo(e,t){let a=["mouse","pen"];return t||a.push("",void 0),a.includes(e)}function WB(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Mt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function le(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&xr(a)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function tt(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var vp="data-base-ui-focusable";var aI="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Cp="ArrowLeft",Lp="ArrowRight",oI="ArrowUp",Vy="ArrowDown";var hpe=uu.popupOpen,Rp="data-trigger-disabled";function Ds(e,t){if(!Re(e))return!1;let a=e;if(t.hasElement(a))return!a.hasAttribute(Rp);for(let[,o]of t.entries())if(le(o,a))return!o.hasAttribute(Rp);return!1}function Fy(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function ZB(e){return e.matches("html,body")}function du(e){return Ve(e)&&e.matches(aI)}function nI(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${aI}`)!=null}function Ip(e){return e?e.getAttribute("role")==="combobox"&&du(e):!1}function QB(e){if(!e||nt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function mu(e){return e?e.hasAttribute(vp)?e:e.querySelector(`[${vp}]`)||e:null}function Yj(e,t){return t!=null&&!jo(t)?0:typeof e=="function"?e():e}function Fn(e,t,a){let o=Yj(e,a);return typeof o=="number"?o:o?.[t]}function rI(e){return typeof e=="function"?e():e}function _y(e,t){return t||e==="click"||e==="mousedown"}function JB(e){return e?.includes("mouse")&&e!=="mousedown"}var $B=I(Z(),1),eV=oo.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ua,currentIdRef:{current:null},currentContextRef:{current:null}});function Wj(e,t){e.current=t.current}function iI(e){let{children:t,delay:a,timeoutMs:o=0}=e,n=oo.useRef(a),r=oo.useRef(a),i=oo.useRef(null),s=oo.useRef(null),l=mt();return U(()=>{if(r.current=a,!i.current){n.current=a;return}n.current={open:Fn(n.current,"open"),close:Fn(a,"close")}},[a,i,n,r]),(0,$B.jsx)(eV.Provider,{value:oo.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:r,currentIdRef:i,timeoutMs:o,currentContextRef:s,timeout:l}),[o,l]),children:t})}function sI(e,t={open:!1}){let{open:a}=t,o="rootStore"in e?e.rootStore:e,n=o.useState("floatingId"),r=oo.useContext(eV),{currentIdRef:i,delayRef:s,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=r,[m,p]=oo.useState(!1),y=oo.useRef(a);return U(()=>{y.current=a},[a]),U(()=>{function b(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,s.current=u.current,f.clear()}if(i.current&&!a&&i.current===n){if(p(!1),l){let g=n;return f.start(l,()=>{o.select("open")||i.current&&i.current!==g||b()}),()=>{(y.current||i.current!==g)&&f.clear()}}b()}},[a,n,i,s,l,u,c,f,o]),U(()=>{if(!a)return;let b=c.current,g=i.current;f.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:p},i.current=n,s.current={open:0,close:Fn(u.current,"close")},g!==null&&g!==n?(p(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,ue(ae.none))):(p(!1),b?.setIsInstantPhase(!1))},[a,n,o,i,s,u,c,f]),U(()=>()=>{if(i.current===n){if(c.current=null,!y.current)return;i.current=null,Wj(s,u),f.clear()}},[c,i,s,n,u,f]),oo.useMemo(()=>({activeIdRef:i,hasProvider:d,delayRef:s,isInstantPhase:m}),[i,d,s,m])}var Ga=I(P(),1);function Ie(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}function Ha(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];a&&a()}}}function ct(e){let t=Je(Kj,e).current;return t.next=e,U(t.effect),t}function Kj(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var zy=null,Vpe=globalThis.requestAnimationFrame,lI=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let a=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let n=0;n<a.length;n+=1)a[n]?.(t)};request(t){let a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){let a=t-this.startId;a<0||a>=this.callbacks.length||this.callbacks[a]!==null&&(this.callbacks[a]=null,this.callbacksCount-=1)}},Uy=new lI;var hn=class e{static create(){return new e}static request(t){return Uy.request(t)}static cancel(t){return Uy.cancel(t)}currentId=zy;request(t){this.cancel(),this.currentId=Uy.request(()=>{this.currentId=zy,t()})}cancel=()=>{this.currentId!==zy&&(Uy.cancel(this.currentId),this.currentId=zy)};disposeEffect=()=>this.cancel};function no(){let e=Je(hn.create).current;return yf(e.disposeEffect),e}var Hy=I(P(),1);var tV={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},bf={...tV,position:"fixed",top:0,left:0},aV={...tV,position:"absolute"};var oV=I(Z(),1),vf=Hy.forwardRef(function(t,a){let[o,n]=Hy.useState();return U(()=>{nt.screenReader.voiceOver&&nt.engine.webkit&&n("button")},[]),(0,oV.jsx)("span",{...t,ref:a,style:bf,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});var Ps=Math.min,_n=Math.max,Ms=Math.round,wp=Math.floor,br=e=>({x:e,y:e}),Zj={left:"right",right:"left",bottom:"top",top:"bottom"};function Gy(e,t,a){return _n(e,Ps(t,a))}function vr(e,t){return typeof e=="function"?e(t):e}function qa(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function jy(e){return e==="x"?"y":"x"}function Ep(e){return e==="y"?"height":"width"}function Io(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ap(e){return jy(Io(e))}function iV(e,t,a){a===void 0&&(a=!1);let o=gn(e),n=Ap(e),r=Ep(n),i=n==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Tp(i)),[i,Tp(i)]}function sV(e){let t=Tp(e);return[qy(e),t,qy(t)]}function qy(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var nV=["left","right"],rV=["right","left"],Qj=["top","bottom"],Jj=["bottom","top"];function $j(e,t,a){switch(e){case"top":case"bottom":return a?t?rV:nV:t?nV:rV;case"left":case"right":return t?Qj:Jj;default:return[]}}function lV(e,t,a,o){let n=gn(e),r=$j(qa(e),a==="start",o);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(qy)))),r}function Tp(e){let t=qa(e);return Zj[t]+e.slice(t.length)}function eX(e){var t,a,o,n;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(n=e.left)!=null?n:0}}function Xy(e){return typeof e!="number"?eX(e):{top:e,right:e,bottom:e,left:e}}function ri(e){let{x:t,y:a,width:o,height:n}=e;return{width:o,height:n,top:a,left:t,right:t+o,bottom:a+n,x:t,y:a}}function Os(e,t){return t<0||t>=e.length}function pu(e,t){return xn(e.current,{disabledIndices:t})}function Cf(e,t){return xn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function xn(e,{startingIndex:t=-1,decrement:a=!1,disabledIndices:o,amount:n=1}={}){let r=t;do r+=a?-n:n;while(r>=0&&r<=e.length-1&&ii(e,r,o));return r}function ii(e,t,a){if(typeof a=="function"?a(t):a?.includes(t)??!1)return!0;let n=e[t];return n?!hu(n)||n.matches(":disabled")?!0:!a&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function tX(e){return e.visibility==="hidden"||e.visibility==="collapse"}function hu(e,t=e?la(e):null){return!e||!e.isConnected||!t||tX(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var aX='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function oX(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return xr(a)?a.host:null}function cI(e){for(let t of Array.from(e.children))if(Ht(t)==="summary")return t;return null}function nX(e,t){let a=cI(t);return!!a&&(e===a||le(a,e))}function uV(e){let t=e?Ht(e):"";return e!=null&&e.matches(aX)&&(t!=="summary"||e.parentElement!=null&&Ht(e.parentElement)==="details"&&cI(e.parentElement)===e)&&(t!=="details"||cI(e)==null)&&(t!=="input"||e.type!=="hidden")}function cV(e){if(!uV(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=oX(t)){let a=t!==e,o=Ht(t)==="slot";if(t.hasAttribute("inert")||a&&Ht(t)==="details"&&!t.open&&!nX(e,t)||t.hasAttribute("hidden")||!o&&!rX(t,a))return!1}return!0}function rX(e,t){let a=la(e);return t?a.display!=="none":hu(e,a)}function fV(e){let t=e.tabIndex;if(t<0){let a=Ht(e);if(a==="details"||a==="audio"||a==="video"||Ve(e)&&e.isContentEditable)return 0}return t}function uI(e){if(Ht(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function iX(e,t){let a=uI(e);if(!a)return!0;let o=t.find(n=>{let r=uI(n);return r?.name===a.name&&r.form===a.form&&r.checked});return o?o===a:t.find(n=>{let r=uI(n);return r?.name===a.name&&r.form===a.form})===a}function dV(e){if(Ve(e)&&Ht(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ve(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function mV(e,t){dV(e).forEach(a=>{uV(a)&&t.push(a),mV(a,t)})}function pV(e,t,a){dV(e).forEach(o=>{Ve(o)&&o.matches(t)&&a.push(o),pV(o,t,a)})}function Yy(e){return cV(e)&&fV(e)>=0}function fI(e){let t=[];return mV(e,t),t.filter(cV)}function Dp(e){let t=fI(e);return t.filter(a=>fV(a)>=0&&iX(a,t))}function hV(e,t){let a=Dp(e),o=a.length;if(o===0)return;let n=Mt(ve(e)),r=a.indexOf(n),i=r===-1?t===1?0:o-1:r+t;return a[i]}function Wy(e){return hV(ve(e).body,1)||e}function Ky(e){return hV(ve(e).body,-1)||e}function gu(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!le(a,o)}function gV(e){Dp(e).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function dI(e){let t=[];pV(e,"[data-tabindex]",t),t.forEach(a=>{let o=a.dataset.tabindex;delete a.dataset.tabindex,o?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")})}function yn(e,t,a=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!a||n.context?.open?[n]:[],...yn(e,n.id,a)])}function mI(e,t){let a=[],o=e.find(n=>n.id===t)?.parentId;for(;o;){let n=e.find(r=>r.id===o);o=n?.parentId,n&&(a=a.concat(n))}return a}function si(e){return`data-base-ui-${e}`}var Zy=0;function Lf(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:n}=t;cancelAnimationFrame(Zy);function r(){n&&!n()||e?.focus({preventScroll:a})}if(o)return r(),Me;let i=requestAnimationFrame(r);return Zy=i,()=>{Zy===i&&(cancelAnimationFrame(i),Zy=0)}}var pI={inert:new WeakMap,"aria-hidden":new WeakMap},xV="data-base-ui-inert",gI={inert:new WeakSet,"aria-hidden":new WeakSet},Pp=new WeakMap,hI=0;function sX(e){return gI[e]}function vV(e){return e?xr(e)?e.host:vV(e.parentNode):null}var yV=(e,t)=>t.map(a=>{if(e.contains(a))return a;let o=vV(a);return e.contains(o)?o:null}).filter(a=>a!=null),SV=e=>{let t=new Set;return e.forEach(a=>{let o=a;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},bV=(e,t,a)=>{let o=[],n=r=>{!r||a.has(r)||Array.from(r.children).forEach(i=>{Ht(i)!=="script"&&(t.has(i)?n(i):o.push(i))})};return n(e),o};function lX(e,t,a,o,{mark:n=!0}){let r=null;o?r="inert":a&&(r="aria-hidden");let i=null,s=null,l=yV(t,e),u=n?bV(t,SV(l),new Set(l)):[],c=[],d=[];if(r){let f=pI[r],m=sX(r);s=m,i=f;let p=yV(t,Array.from(t.querySelectorAll("[aria-live]"))),y=l.concat(p);bV(t,SV(y),new Set(y)).forEach(g=>{let h=g.getAttribute(r),x=h!==null&&h!=="false",S=(f.get(g)||0)+1;f.set(g,S),c.push(g),S===1&&x&&m.add(g),x||g.setAttribute(r,r==="inert"?"":"true")})}return n&&u.forEach(f=>{let m=(Pp.get(f)||0)+1;Pp.set(f,m),d.push(f),m===1&&f.setAttribute(xV,"")}),hI+=1,()=>{i&&c.forEach(f=>{let p=(i.get(f)||0)-1;i.set(f,p),p||(!s?.has(f)&&r&&f.removeAttribute(r),s?.delete(f))}),n&&d.forEach(f=>{let m=(Pp.get(f)||0)-1;Pp.set(f,m),m||f.removeAttribute(xV)}),hI-=1,hI||(pI.inert=new WeakMap,pI["aria-hidden"]=new WeakMap,gI.inert=new WeakSet,gI["aria-hidden"]=new WeakSet,Pp=new WeakMap)}}function xI(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:n=!0}=t,r=ve(e[0]).body;return lX(e,r,a,o,{mark:n})}var Lt=I(P(),1),yI=I(Xn(),1);var CV={style:{transition:"none"}},Qy="data-base-ui-click-trigger",uX="data-base-ui-swipe-ignore",cX="data-swipe-ignore",rhe=`[${uX}]`,ihe=`[${cX}]`,LV={fallbackAxisSide:"none"},RV={fallbackAxisSide:"end"},IV={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var xu=I(Z(),1),TV=Lt.createContext(null),SI=()=>Lt.useContext(TV),fX=si("portal");function Jy(e={}){let{ref:t,container:a,componentProps:o=Ye,elementProps:n}=e,r=Es(),s=SI()?.portalNode,[l,u]=Lt.useState(null),[c,d]=Lt.useState(null),f=j(b=>{b!==null&&d(b)}),m=Lt.useRef(null);U(()=>{if(a===null){m.current&&(m.current=null,d(null),u(null));return}let b=(a&&(Ty(a)?a:a.current))??s??document.body;if(b==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==b&&(m.current=b,d(null),u(b))},[a,s]);let p=Q("div",o,{ref:[t,f],props:[{id:r,[fX]:""},n]}),y=l&&p?yI.createPortal(p,l):null;return{node:c,nodeId:Lt.isValidElement(p)?p.props.id:void 0,subtree:y}}var Mp=Lt.forwardRef(function(t,a){let{render:o,className:n,style:r,children:i,container:s,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=Jy({container:s,ref:a,componentProps:t,elementProps:u}),m=Lt.useRef(null),p=Lt.useRef(null),y=Lt.useRef(null),b=Lt.useRef(null),[g,h]=Lt.useState(null),x=Lt.useRef(!1),S=g?.modal,v=g?.open,R=!!g&&!g.modal&&g.open&&!!c;Lt.useEffect(()=>{if(!c||S)return;function C(T){c&&T.relatedTarget&&gu(T)&&(T.type==="focusin"?x.current&&(dI(c),x.current=!1):(gV(c),x.current=!0))}return Ha(Ie(c,"focusin",C,!0),Ie(c,"focusout",C,!0))},[c,S]),U(()=>{!c||v!==!0||!x.current||(dI(c),x.current=!1)},[v,c]);let L=Lt.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:y,afterInsideRef:b,portalNode:c,setFocusManagerState:h}),[c]);return(0,xu.jsxs)(Lt.Fragment,{children:[f,(0,xu.jsxs)(TV.Provider,{value:L,children:[R&&c&&(0,xu.jsx)(vf,{"data-type":"outside",ref:m,onFocus:C=>{if(gu(C,c))y.current?.focus();else{let T=g?g.domReference:null;Ky(T)?.focus()}}}),R&&c&&(0,xu.jsx)("span",{role:l,"aria-owns":d,style:IV}),c&&yI.createPortal(i,c),R&&c&&(0,xu.jsx)(vf,{"data-type":"outside",ref:p,onFocus:C=>{if(gu(C,c))b.current?.focus();else{let T=g?g.domReference:null;Wy(T)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ue(ae.focusOut,C.nativeEvent))}}})]})]})});var yu=I(P(),1);function wV(){let e=new Map;return{emit(t,a){e.get(t)?.forEach(o=>o(a))},on(t,a){e.has(t)||e.set(t,new Set),e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var dX=I(Z(),1),mX=yu.createContext(null),pX=yu.createContext(null),ks=()=>yu.useContext(mX)?.id||null,Sn=e=>{let t=yu.useContext(pX);return e??t};function zn(e){return e==null?e:"current"in e?e.current:e}var Op=I(Z(),1);function hX(e,t){let a=Be(tt(e));return e instanceof a.KeyboardEvent?"keyboard":e instanceof a.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof a.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var EV=20,Ns=[];function bI(){Ns=Ns.filter(e=>e.deref()?.isConnected)}function AV(e){bI(),e&&Ht(e)!=="body"&&(Ns.push(new WeakRef(e)),Ns.length>EV&&(Ns=Ns.slice(-EV)))}function DV(){return bI(),Ns[Ns.length-1]?.deref()}function gX(e){return e?Yy(e)?e:Dp(e)[0]||e:null}function PV(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let a=fI(e).filter(n=>{let r=n.getAttribute("data-tabindex")||"";return Yy(n)||n.hasAttribute("data-tabindex")&&!r.startsWith("-")}),o=e.getAttribute("tabindex");a.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function kp(e){let{context:t,children:a,disabled:o=!1,initialFocus:n=!0,returnFocus:r=!0,restoreFocus:i=!1,modal:s=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,y="rootStore"in t?t.rootStore:t,b=y.useState("open"),g=y.useState("domReferenceElement"),h=y.useState("floatingElement"),{events:x,dataRef:S}=y.context,v=j(()=>S.current.floatingContext?.nodeId),R=n===!1,L=Ip(g)&&R,C=ct(n),T=ct(r),w=ct(u),A=ct(b),N=Sn(m),D=SI(),V=Ga.useRef(!1),k=Ga.useRef(!1),F=Ga.useRef(!1),H=Ga.useRef(null),O=Ga.useRef(""),B=Ga.useRef(""),E=Ga.useRef(null),q=Ga.useRef(null),G=ln(E,f,D?.beforeInsideRef),K=ln(q,D?.afterInsideRef),M=mt(),z=mt(),_=no(),$=D!=null,Y=mu(h),J=j((ee=Y)=>ee?Dp(ee):[]),se=j(()=>p?.().filter(ee=>ee!=null)??[]);Ga.useEffect(()=>{if(o||!s)return;function ee(ye){ye.key==="Tab"&&le(Y,Mt(ve(Y)))&&J().length===0&&!L&&Ro(ye)}let te=ve(Y);return Ie(te,"keydown",ee)},[o,Y,s,L,J]),Ga.useEffect(()=>{if(o||!b)return;let ee=ve(Y);function te(){F.current=!1}function ye(He){let pe=tt(He),Ae=se(),ce=le(h,pe)||le(g,pe)||le(D?.portalNode,pe)||Ae.some(De=>De===pe||le(De,pe));F.current=!ce,B.current=He.pointerType||"keyboard",pe?.closest(`[${Qy}]`)&&(k.current=!0,z.start(0,()=>{k.current=!1}))}function be(){B.current="keyboard"}return Ha(Ie(ee,"pointerdown",ye,!0),Ie(ee,"pointerup",te,!0),Ie(ee,"pointercancel",te,!0),Ie(ee,"keydown",be,!0),te)},[o,h,g,Y,b,D,z,se]),Ga.useEffect(()=>{if(o||!l)return;let ee=ve(Y);function te(){k.current=!0,z.start(0,()=>{k.current=!1})}function ye(Ae){let ce=tt(Ae);Yy(ce)&&(H.current=ce)}function be(Ae){let ce=Ae.relatedTarget,De=Ae.currentTarget,Ke=tt(Ae);s&&ce==null&&Ke!=null&&le(h,Ke)&&AV(Ke),queueMicrotask(()=>{let _e=v(),Dt=y.context.triggerElements,ne=se(),fe=ce?.hasAttribute(si("focus-guard"))&&[E.current,q.current,D?.beforeInsideRef.current,D?.afterInsideRef.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,zn(d),zn(c)].includes(ce),oe=!(le(g,ce)||le(h,ce)||le(ce,h)||le(D?.portalNode,ce)||ne.some(W=>W===ce||le(W,ce))||Dt.hasMatchingElement(W=>le(W,ce))||fe||N&&(yn(N.nodesRef.current,_e).find(W=>le(W.context?.elements.floating,ce)||le(W.context?.elements.domReference,ce))||mI(N.nodesRef.current,_e).find(W=>[W.context?.elements.floating,mu(W.context?.elements.floating)].includes(ce)||W.context?.elements.domReference===ce)));if(De===g&&Y&&PV(Y),i&&De!==g&&!hu(Ke)&&Mt(ee)===ee.body){if(Ve(Y)&&(Y.focus(),i==="popup")){_.request(()=>{Y.focus()});return}let W=J(),Se=H.current,Ze=(Se&&W.includes(Se)?Se:null)||W[W.length-1]||Y;Ve(Ze)&&Ze.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(L||!s)&&ce&&oe&&!k.current&&(L||ce!==DV())&&(V.current=!0,y.setOpen(!1,ue(ae.focusOut,Ae)))})}function He(){F.current||(S.current.insideReactTree=!0,M.start(0,()=>{S.current.insideReactTree=!1}))}let pe=Ve(g)?g:null;if(!(!h&&!pe))return Ha(pe&&Ie(pe,"focusout",be),pe&&Ie(pe,"pointerdown",te),h&&Ie(h,"focusin",ye),h&&Ie(h,"focusout",be),h&&D&&Ie(h,"focusout",He,!0))},[o,g,h,Y,s,N,D,y,l,i,J,L,v,S,M,z,_,c,d,se]),Ga.useEffect(()=>{if(o||!h||!b)return;let ee=Array.from(D?.portalNode?.querySelectorAll(`[${si("portal")}]`)||[]),ye=(N?mI(N.nodesRef.current,v()):[]).find(De=>Ip(De.context?.elements.domReference||null))?.context?.elements.domReference,He=[...[h,...ee,E.current,q.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,...se()],ye,zn(d),zn(c),L?g:null].filter(De=>De!=null),pe=xI(He,{ariaHidden:s||L,mark:!1}),Ae=[h,...ee].filter(De=>De!=null),ce=xI(Ae);return()=>{ce(),pe()}},[b,o,g,h,s,D,L,N,v,c,d,se]),U(()=>{if(!b||o||!Ve(Y))return;O.current="",B.current="";let ee=ve(Y),te=Mt(ee);queueMicrotask(()=>{let ye=C.current,be=typeof ye=="function"?ye(w.current||""):ye;if(be===void 0||be===!1||le(Y,te))return;let pe=null,Ae=()=>(pe==null&&(pe=J(Y)),pe[0]||Y),ce;be===!0||be===null?ce=Ae():ce=zn(be),ce=ce||Ae();let De=le(Y,Mt(ee));Lf(ce,{preventScroll:ce===Y,shouldFocus(){if(!A.current)return!1;if(De)return!0;let Ke=Mt(ee);return!(Ke!==ce&&le(Y,Ke))}})})},[o,b,Y,J,C,w,A]),U(()=>{if(o||!Y)return;let ee=ve(Y),te=Mt(ee),ye=w.current==null;AV(te);function be(pe){if(pe.open||(O.current=hX(pe.nativeEvent,B.current)),pe.reason===ae.triggerHover&&pe.nativeEvent.type==="mouseleave"&&(V.current=!0),pe.reason===ae.outsidePress)if(pe.nested)V.current=!1;else if(As(pe.nativeEvent)||Sf(pe.nativeEvent))V.current=!1;else{let Ae=!1;ve(Y).createElement("div").focus({get preventScroll(){return Ae=!0,!1}}),Ae?V.current=!1:V.current=!0}}x.on("openchange",be);function He(pe){let Ae=T.current,ce=typeof Ae=="function"?Ae(pe):Ae;if(ce===void 0||ce===!1)return null;ce===null&&(ce=!0);let De=g?.isConnected?g:null,Ke=te?.isConnected&&Ht(te)!=="body"?te:null,_e=ye?Ke||De:De||Ke;return _e||(_e=DV()||null),typeof ce=="boolean"?_e:zn(ce)||_e||null}return()=>{x.off("openchange",be);let pe=Mt(ee),Ae=se(),ce=le(h,pe)||Ae.some(Dt=>Dt===pe||le(Dt,pe))||N&&yn(N.nodesRef.current,v(),!1).some(Dt=>le(Dt.context?.elements.floating,pe)),De=T.current,Ke=O.current,_e=He(Ke);queueMicrotask(()=>{let Dt=gX(_e),ne=typeof De!="boolean";if(De&&!V.current&&Ve(Dt)&&(!(!ne&&Dt!==pe&&pe!==ee.body)||ce)){let fe={preventScroll:!0};Ke==="keyboard"&&(fe.focusVisible=!0),Dt.focus(fe)}V.current=!1})}},[o,h,Y,T,w,x,N,g,v,se]),U(()=>{if(!nt.engine.webkit||b||!h)return;let ee=Mt(ve(h));!Ve(ee)||!du(ee)||le(h,ee)&&ee.blur()},[b,h]),U(()=>{if(!(o||!D))return D.setFocusManagerState({modal:s,closeOnFocusOut:l,open:b,onOpenChange:y.setOpen,domReference:g}),()=>{D.setFocusManagerState(null)}},[o,D,s,b,y,l,g]),U(()=>{if(!(o||!Y))return PV(Y),()=>{queueMicrotask(bI)}},[o,Y]);let ge=!o&&(s?!L:!0)&&($||s);return(0,Op.jsxs)(Ga.Fragment,{children:[ge&&(0,Op.jsx)(vf,{"data-type":"inside",ref:G,onFocus:ee=>{if(s){let te=J();Lf(te[te.length-1])}else D?.portalNode&&(V.current=!1,gu(ee,D.portalNode)?Wy(g)?.focus():zn(d??D.beforeOutsideRef)?.focus())}}),a,ge&&(0,Op.jsx)(vf,{"data-type":"inside",ref:K,onFocus:ee=>{s?Lf(J()[0]):D?.portalNode&&(l&&(V.current=!0),gu(ee,D.portalNode)?Ky(g)?.focus():zn(c??D.afterOutsideRef)?.focus())}})]})}var Np=I(P(),1);function Bp(e,t={}){let{enabled:a=!0,event:o="click",toggle:n=!0,ignoreMouse:r=!1,stickIfOpen:i=!0,touchOpenDelay:s=0,reason:l=ae.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=Np.useRef(void 0),f=no(),m=mt(),p=Np.useMemo(()=>{function y(g,h,x,S){let v=ue(l,h,x);g&&S==="touch"&&s>0?m.start(s,()=>{u.setOpen(!0,v)}):u.setOpen(g,v)}function b(g,h,x){let S=c.current.openEvent,v=u.select("domReferenceElement")!==h;return g&&v||!g||!n?!0:S&&i?!x(S.type):!1}return{onPointerDown(g){d.current=jo(g.pointerType,!0)&&Sf(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let h=d.current,x=g.nativeEvent,S=u.select("open");if(g.button!==0||o==="click"||jo(h,!0)&&r)return;let v=b(S,g.currentTarget,C=>C==="click"||C==="mousedown"),R=tt(x);if(du(R)){y(v,x,R,h);return}let L=g.currentTarget;f.request(()=>{y(v,x,L,h)})},onClick(g){if(o==="mousedown-only")return;let h=d.current;if(o==="mousedown"&&h){d.current=void 0;return}if(jo(h,!0)&&r)return;let x=u.select("open"),S=b(x,g.currentTarget,v=>v==="click"||v==="mousedown"||v==="keydown"||v==="keyup");y(S,g.nativeEvent,g.currentTarget,h)},onKeyDown(){d.current=void 0}}},[c,o,r,l,u,i,n,f,m,s]);return Np.useMemo(()=>a?{reference:p}:Ye,[a,p])}var To=I(P(),1);function xX(e,t){let a=null,o=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let r=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",s=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=r.width,c=r.height,d=r.x,f=r.y;return a==null&&t.x&&i&&(a=r.x-t.x),o==null&&t.y&&s&&(o=r.y-t.y),d-=a||0,f-=o||0,u=0,c=0,!n||l?(u=t.axis==="y"?r.width:0,c=t.axis==="x"?r.height:0,d=i&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):n&&!l&&(c=t.axis==="x"?r.height:c,u=t.axis==="y"?r.width:u),n=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function MV(e){return e!=null&&e.clientX!=null}function vI(e,t={}){let{enabled:a=!0,axis:o="both"}=t,n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,u=To.useRef(!1),c=To.useRef(null),[d,f]=To.useState(),[m,p]=To.useState([]),y=j(S=>{n.set("positionReference",S)}),b=j((S,v,R)=>{u.current||l.current.openEvent&&!MV(l.current.openEvent)||n.set("positionReference",xX(R??s,{x:S,y:v,axis:o,dataRef:l,pointerType:d}))}),g=j(S=>{r?c.current||(b(S.clientX,S.clientY,S.currentTarget),p([])):b(S.clientX,S.clientY,S.currentTarget)}),h=jo(d)?i:r;To.useEffect(()=>{if(!a){y(s);return}if(!h)return;function S(){c.current?.(),c.current=null}let v=Be(i);function R(L){let C=tt(L);le(i,C)?S():b(L.clientX,L.clientY)}return!l.current.openEvent||MV(l.current.openEvent)?c.current=Ie(v,"mousemove",R):y(s),S},[h,a,i,l,s,n,b,y,m]),To.useEffect(()=>()=>{n.set("positionReference",null)},[n]),To.useEffect(()=>{a&&!i&&(u.current=!1)},[a,i]),To.useEffect(()=>{!a&&r&&(u.current=!0)},[a,r]);let x=To.useMemo(()=>{function S(v){f(v.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:g,onMouseEnter:g}},[g]);return To.useMemo(()=>a?{reference:x,trigger:x}:{},[a,x])}var ro=I(P(),1);function yX(){return!1}function SX(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Su(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:n=!0,outsidePressEvent:r="sloppy",referencePress:i=yX,bubbles:s,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=Sn(l),y=j(typeof n=="function"?n:()=>!1),b=typeof n=="function"?y:n,g=b!==!1,h=j(()=>r),{escapeKey:x,outsidePress:S}=SX(s),v=ro.useRef(!1),R=ro.useRef(!1),L=ro.useRef(!1),C=ro.useRef(!1),T=ro.useRef(!1),w=ro.useRef(""),A=ro.useRef(null),N=mt(),D=mt(),V=j(()=>{D.clear(),f.current.insideReactTree=!1}),k=j(M=>{let z=f.current.floatingContext?.nodeId;return(p?yn(p.nodesRef.current,z):[]).some($=>$.context?.open&&!$.context.dataRef.current[M])}),F=j(M=>Fy(M,u.select("floatingElement"))||Fy(M,u.select("domReferenceElement"))),H=j(M=>{i()&&u.setOpen(!1,ue(ae.triggerPress,M.nativeEvent))}),O=j(M=>{if(!c||!a||!o||M.key!=="Escape"||T.current||!x&&k("__escapeKeyBubbles"))return;let z=YB(M)?M.nativeEvent:M,_=ue(ae.escapeKey,z);u.setOpen(!1,_),_.isCanceled||M.preventDefault(),!x&&!_.isPropagationAllowed&&M.stopPropagation()}),B=j(()=>{f.current.insideReactTree=!0,D.start(0,V)}),E=j(M=>{if(!c||!a||M.button!==0)return;let z=tt(M.nativeEvent);le(u.select("floatingElement"),z)&&(v.current||(v.current=!0,R.current=!1))}),q=j(M=>{!c||!a||(M.defaultPrevented||M.nativeEvent.defaultPrevented)&&v.current&&(R.current=!0)});ro.useEffect(()=>{function M(z){z.open||(C.current=!1)}return m.on("openchange",M),()=>{m.off("openchange",M)}},[m]),ro.useEffect(()=>{if(!c||!a)return c||(C.current=!1),V;f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=S;let M=new Ua,z=new Ua,_=ve(d);function $(){M.clear(),T.current=!0}function Y(){M.start(nt.engine.webkit?5:0,()=>{T.current=!1})}function J(){L.current=!0,z.start(0,()=>{L.current=!1})}function se(){v.current=!1,R.current=!1}function ge(){let oe=w.current,W=oe==="pen"||!oe?"mouse":oe,Se=h(),Ze=typeof Se=="function"?Se():Se;return typeof Ze=="string"?Ze:Ze[W]}function ee(oe){let W=ge();return W==="intentional"&&oe.type!=="click"||W==="sloppy"&&oe.type==="click"}function te(oe){let W=f.current.floatingContext?.nodeId,Se=p&&yn(p.nodesRef.current,W).some(Ze=>Fy(oe,Ze.context?.elements.floating));return F(oe)||Se}function ye(oe){if(ee(oe)){oe.type!=="click"&&!F(oe)&&(z.clear(),L.current=!1),V();return}if(f.current.insideReactTree){V();return}let W=tt(oe),Se=`[${si("inert")}]`,Ze=Re(W)?W.getRootNode():null,Oa=Array.from((xr(Ze)?Ze:ve(u.select("floatingElement"))).querySelectorAll(Se)),Wa=u.context.triggerElements;if(W&&(Wa.hasElement(W)||Wa.hasMatchingElement(Ft=>le(Ft,W))))return;let Xt=Re(W)?W:null;for(;Xt&&!pn(Xt);){let Ft=qo(Xt);if(pn(Ft)||!Re(Ft))break;Xt=Ft}if(!(Oa.length&&Re(W)&&!ZB(W)&&!le(W,u.select("floatingElement"))&&Oa.every(Ft=>!le(Xt,Ft)))){if(Ve(W)&&!("touches"in oe)){let Ft=pn(W),Wo=la(W),Ao=/auto|scroll/,lo=Ft||Ao.test(Wo.overflowX),In=Ft||Ao.test(Wo.overflowY),qn=lo&&W.clientWidth>0&&W.scrollWidth>W.clientWidth,hi=In&&W.clientHeight>0&&W.scrollHeight>W.clientHeight,Ko=Wo.direction==="rtl",ba=hi&&(Ko?oe.offsetX<=W.offsetWidth-W.clientWidth:oe.offsetX>W.clientWidth),Pe=qn&&oe.offsetY>W.clientHeight;if(ba||Pe)return}if(!te(oe)){if(ge()==="intentional"){if(oe.detail!==0&&!As(oe)&&!C.current)return;if(L.current){z.clear(),L.current=!1;return}}typeof b=="function"&&!b(oe)||k("__outsidePressBubbles")||(u.setOpen(!1,ue(ae.outsidePress,oe)),V())}}}function be(oe){ge()!=="sloppy"||oe.pointerType==="touch"||!u.select("open")||!a||F(oe)||ye(oe)}function He(oe){if(ge()!=="sloppy"||!u.select("open")||!a||F(oe))return;let W=oe.touches[0];W&&(A.current={startTime:Date.now(),startX:W.clientX,startY:W.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function pe(oe,W){let Se=tt(oe);if(!Se)return;let Ze=Ie(Se,oe.type,()=>{W(oe),Ze()})}function Ae(oe){w.current="touch",pe(oe,He)}function ce(oe){N.clear(),oe.type==="pointerdown"&&(oe.button===0&&(C.current=!0),w.current=oe.pointerType),!(oe.type==="mousedown"&&A.current&&!A.current.dismissOnMouseDown)&&pe(oe,W=>{W.type==="pointerdown"?be(W):ye(W)})}function De(oe){if(oe.type==="pointercancel"&&(C.current=!1),!v.current)return;let W=R.current;if(se(),ge()==="intentional"){if(oe.type==="pointercancel"){W&&J();return}if(!te(oe)){if(W){J();return}typeof b=="function"&&!b(oe)||(z.clear(),L.current=!0,V())}}}function Ke(oe){if(ge()!=="sloppy"||!A.current||F(oe))return;let W=oe.touches[0];if(!W)return;let Se=Math.abs(W.clientX-A.current.startX),Ze=Math.abs(W.clientY-A.current.startY),Oa=Math.sqrt(Se*Se+Ze*Ze);Oa>5&&(A.current.dismissOnTouchEnd=!0),Oa>10&&(ye(oe),N.clear(),A.current=null)}function _e(oe){pe(oe,Ke)}function Dt(oe){ge()!=="sloppy"||!A.current||F(oe)||(A.current.dismissOnTouchEnd&&ye(oe),N.clear(),A.current=null)}function ne(oe){pe(oe,Dt)}let fe=Ha(o&&Ha(Ie(_,"keydown",O),Ie(_,"compositionstart",$),Ie(_,"compositionend",Y)),g&&Ha(Ie(_,"click",ce,!0),Ie(_,"pointerdown",ce,!0),Ie(_,"pointerup",De,!0),Ie(_,"pointercancel",De,!0),Ie(_,"mousedown",ce,!0),Ie(_,"mouseup",De,!0),Ie(_,"touchstart",Ae,{capture:!0,passive:!0}),Ie(_,"touchmove",_e,{capture:!0,passive:!0}),Ie(_,"touchend",ne,{capture:!0,passive:!0})));return()=>{fe(),M.clear(),z.clear(),se(),L.current=!1,V()}},[f,d,o,g,b,c,a,x,S,O,V,h,k,F,p,u,N]);let G=ro.useMemo(()=>({onKeyDown:O,onPointerDown:H,onClick:H}),[O,H]),K=ro.useMemo(()=>({onKeyDown:O,onPointerDown:q,onMouseDown:q,onClickCapture:B,onMouseDownCapture(M){B(),E(M)},onPointerDownCapture(M){B(),E(M)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[O,B,E,q]);return ro.useMemo(()=>a?{reference:G,floating:K,trigger:G}:{},[a,G,K])}var ja=I(P(),1);function OV(e,t,a){let{reference:o,floating:n}=e,r=Io(t),i=Ap(t),s=Ep(i),l=qa(t),u=r==="y",c=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2,m;switch(l){case"top":m={x:c,y:o.y-n.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-n.width,y:d};break;default:m={x:o.x,y:o.y}}let p=gn(t);return p&&(m[i]+=f*(p==="end"?1:-1)*(a&&u?-1:1)),m}async function kV(e,t){var a;t===void 0&&(t={});let{x:o,y:n,platform:r,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=vr(t,e),p=Xy(m),b=s[f?d==="floating"?"reference":"floating":d],g=ri(await r.getClippingRect({element:(a=await(r.isElement==null?void 0:r.isElement(b)))==null||a?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),h=d==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),S=await(r.isElement==null?void 0:r.isElement(x))&&await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1},v=ri(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:x,strategy:l}):h);return{top:(g.top-v.top+p.top)/S.y,bottom:(v.bottom-g.bottom+p.bottom)/S.y,left:(g.left-v.left+p.left)/S.x,right:(v.right-g.right+p.right)/S.x}}var bX=50,NV=async(e,t,a)=>{let{placement:o="bottom",strategy:n="absolute",middleware:r=[],platform:i}=a,s=i.detectOverflow?i:{...i,detectOverflow:kV},l=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:d}=OV(u,o,l),f=o,m=0,p={};for(let y=0;y<r.length;y++){let b=r[y];if(!b)continue;let{name:g,fn:h}=b,{x,y:S,data:v,reset:R}=await h({x:c,y:d,initialPlacement:o,placement:f,strategy:n,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,d=S??d,p[g]={...p[g],...v},R&&m<bX&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):R.rects),{x:c,y:d}=OV(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:n,middlewareData:p}};var BV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:n,middlewareData:r,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...b}=vr(e,t);if((a=r.arrow)!=null&&a.alignmentOffset)return{};let g=qa(n),h=Io(s),x=qa(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),v=f||(x||!y?[Tp(s)]:sV(s)),R=p!=="none";!f&&R&&v.push(...lV(s,y,p,S));let L=[s,...v],C=await l.detectOverflow(t,b),T=[],w=((o=r.flip)==null?void 0:o.overflows)||[];if(c&&T.push(C[g]),d){let V=iV(n,i,S);T.push(C[V[0]],C[V[1]])}if(w=[...w,{placement:n,overflows:T}],!T.every(V=>V<=0)){var A,N;let V=(((A=r.flip)==null?void 0:A.index)||0)+1,k=L[V];if(k&&(!(d==="alignment"?h!==Io(k):!1)||w.every(O=>Io(O.placement)===h?O.overflows[0]>0:!0)))return{data:{index:V,overflows:w},reset:{placement:k}};let F=(N=w.filter(H=>H.overflows[0]<=0).sort((H,O)=>H.overflows[1]-O.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(m){case"bestFit":{var D;let H=(D=w.filter(O=>{if(R){let B=Io(O.placement);return B===h||B==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(B=>B>0).reduce((B,E)=>B+E,0)]).sort((O,B)=>O[1]-B[1])[0])==null?void 0:D[0];H&&(F=H);break}case"initialPlacement":F=s;break}if(n!==F)return{reset:{placement:F}}}return{}}}};var VV=new Set(["left","top"]);async function vX(e,t){let{placement:a,platform:o,elements:n}=e,r=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=qa(a),s=gn(a),l=Io(a)==="y",u=VV.has(i)?-1:1,c=r&&l?-1:1,d=vr(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(m=s==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var FV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:n,y:r,placement:i,middlewareData:s}=t,l=await vX(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:r+l.y,data:{...l,placement:i}}}}},_V=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:n,platform:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x,y:S}=h;return{x,y:S}}},...u}=vr(e,t),c={x:a,y:o},d=await r.detectOverflow(t,u),f=Io(n),m=jy(f),p=c[m],y=c[f],b=(h,x)=>Gy(x+d[h==="y"?"top":"left"],x,x-d[h==="y"?"bottom":"right"]);i&&(p=b(m,p)),s&&(y=b(f,y));let g=l.fn({...t,[m]:p,[f]:y});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[m]:i,[f]:s}}}}}},zV=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=vr(e,t),f={x:n,y:r},m=Io(i),p=jy(m),y=f[p],b=f[m],g=vr(u,t),h=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(c){let v=p==="y"?"height":"width",R=s.reference[p]-s.floating[v]+h.mainAxis,L=s.reference[p]+s.reference[v]-h.mainAxis;y<R?y=R:y>L&&(y=L)}if(d){var x,S;let v=p==="y"?"width":"height",R=VV.has(qa(i)),L=s.reference[m]-s.floating[v]+(R&&((x=l.offset)==null?void 0:x[m])||0)+(R?0:h.crossAxis),C=s.reference[m]+s.reference[v]+(R?0:((S=l.offset)==null?void 0:S[m])||0)-(R?h.crossAxis:0);b<L?b=L:b>C&&(b=C)}return{[p]:y,[m]:b}}}},UV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:n,elements:r}=t,{apply:i=()=>{},...s}=vr(e,t),l=await n.detectOverflow(t,s),u=qa(a),c=gn(a),d=Io(a)==="y",{width:f,height:m}=o.floating,p,y;u==="top"||u==="bottom"?(p=u,y=c===(await(n.isRTL==null?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(y=u,p=c==="end"?"top":"bottom");let b=m-l.top-l.bottom,g=f-l.left-l.right,h=Ps(m-l[p],b),x=Ps(f-l[y],g),S=t.middlewareData.shift,v=!S,R=h,L=x;S!=null&&S.enabled.x&&(L=g),S!=null&&S.enabled.y&&(R=b),v&&!c&&(d?L=f-2*_n(l.left,l.right):R=m-2*_n(l.top,l.bottom)),await i({...t,availableWidth:L,availableHeight:R});let C=await n.getDimensions(r.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function GV(e){let t=la(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Ve(e),r=n?e.offsetWidth:a,i=n?e.offsetHeight:o,s=Ms(a)!==r||Ms(o)!==i;return s&&(a=r,o=i),{width:a,height:o,$:s}}function LI(e){return Re(e)?e:e.contextElement}function Rf(e){let t=LI(e);if(!Ve(t))return br(1);let a=t.getBoundingClientRect(),{width:o,height:n,$:r}=GV(t),i=(r?Ms(a.width):a.width)/o,s=(r?Ms(a.height):a.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var CX=br(0);function jV(e){let t=Be(e);return!Ey()||!t.visualViewport?CX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LX(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===Be(e)}function bu(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let n=e.getBoundingClientRect(),r=LI(e),i=br(1);t&&(o?Re(o)&&(i=Rf(o)):i=Rf(e));let s=LX(r,a,o)?jV(r):br(0),l=(n.left+s.x)/i.x,u=(n.top+s.y)/i.y,c=n.width/i.x,d=n.height/i.y;if(r&&o){let f=Be(r),m=Re(o)?Be(o):o,p=f,y=Ay(p);for(;y&&m!==p;){let b=Rf(y),g=y.getBoundingClientRect(),h=la(y),x=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*b.x,S=g.top+(y.clientTop+parseFloat(h.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=S,p=Be(y),y=Ay(p)}}return ri({width:c,height:d,x:l,y:u})}function $y(e,t){let a=hp(e).scrollLeft;return t?t.left+a:bu(yr(e)).left+a}function XV(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-$y(e,a),n=a.top+t.scrollTop;return{x:o,y:n}}function RX(e){let{elements:t,rect:a,offsetParent:o,strategy:n}=e,r=n==="fixed",i=yr(o),s=t?pp(t.floating):!1;if(o===i||s&&r)return a;let l={scrollLeft:0,scrollTop:0},u=br(1),c=br(0),d=Ve(o);if((d||!r)&&((Ht(o)!=="body"||ru(i))&&(l=hp(o)),d)){let m=bu(o);u=Rf(o),c.x=m.x+o.clientLeft,c.y=m.y+o.clientTop}let f=i&&!d&&!r?XV(i,l):br(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function IX(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function TX(e){let t=hp(e),a=e.ownerDocument.body,o=_n(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),n=_n(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),r=-t.scrollLeft+$y(e),i=-t.scrollTop;return la(a).direction==="rtl"&&(r+=_n(e.clientWidth,a.clientWidth)-o),{width:o,height:n,x:r,y:i}}var wX=25;function EX(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",n=Be(e),r=yr(e),i=n.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(i){let f=!Ey()||t==="fixed";o?f||(u=-i.offsetLeft,c=-i.offsetTop):(s=i.width,l=i.height,f&&(u=i.offsetLeft,c=i.offsetTop))}if($y(r)<=0){let f=r.ownerDocument,m=f.body,p=getComputedStyle(m),y=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-m.clientWidth-y),g=getComputedStyle(r).scrollbarGutter==="stable both-edges"?b/2:b;g<=wX&&(s-=g)}return{width:s,height:l,x:u,y:c}}function AX(e,t){let a=bu(e,!0,t==="fixed"),o=a.top+e.clientTop,n=a.left+e.clientLeft,r=Rf(e),i=e.clientWidth*r.x,s=e.clientHeight*r.y,l=n*r.x,u=o*r.y;return{width:i,height:s,x:l,y:u}}function HV(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=EX(e,a,t);else if(t==="document")o=TX(yr(e));else if(Re(t))o=AX(t,a);else{let n=jV(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ri(o)}function DX(e,t){let a=t.get(e);if(a)return a;let o=Is(e,[],!1).filter(s=>Re(s)&&Ht(s)!=="body"),n=null,r=la(e).position==="fixed",i=r?qo(e):e;for(;Re(i)&&!pn(i);){let s=la(i),l=wy(i),u=n?n.position:r?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?o=o.filter(d=>d!==i):n=s,i=qo(i)}return t.set(e,o),o}function PX(e){let{element:t,boundary:a,rootBoundary:o,strategy:n}=e,i=[...a==="clippingAncestors"?pp(t)?[]:DX(t,this._c):[].concat(a),o],s=HV(t,i[0],n),l=s.top,u=s.right,c=s.bottom,d=s.left;for(let f=1;f<i.length;f++){let m=HV(t,i[f],n);l=_n(m.top,l),u=Ps(m.right,u),c=Ps(m.bottom,c),d=_n(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function MX(e){let{width:t,height:a}=GV(e);return{width:t,height:a}}function OX(e,t,a){let o=Ve(t),n=yr(t),r=a==="fixed",i=bu(e,!0,r,t),s={scrollLeft:0,scrollTop:0},l=br(0);if((o||!r)&&((Ht(t)!=="body"||ru(n))&&(s=hp(t)),o)){let f=bu(t,!0,r,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&n&&(l.x=$y(n));let u=n&&!o&&!r?XV(n,s):br(0),c=i.left+s.scrollLeft-l.x-u.x,d=i.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:i.width,height:i.height}}function CI(e){return la(e).position==="static"}function qV(e,t){if(!Ve(e)||la(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return yr(e)===a&&(a=a.ownerDocument.body),a}function YV(e,t){let a=Be(e);if(pp(e))return a;if(!Ve(e)){let n=qo(e);for(;n&&!pn(n);){if(Re(n)&&!CI(n))return n;n=qo(n)}return a}let o=qV(e,t);for(;o&&CB(o)&&CI(o);)o=qV(o,t);return o&&pn(o)&&CI(o)&&!wy(o)?a:o||LB(e)||a}var kX=async function(e){let t=this.getOffsetParent||YV,a=this.getDimensions,o=await a(e.floating);return{reference:OX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function NX(e){return la(e).direction==="rtl"}var Vp={convertOffsetParentRelativeRectToViewportRelativeRect:RX,getDocumentElement:yr,getClippingRect:PX,getOffsetParent:YV,getElementRects:kX,getClientRects:IX,getDimensions:MX,getScale:Rf,isElement:Re,isRTL:NX};function WV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BX(e,t,a){let o=null,n,r=yr(e);function i(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();let f=e.getBoundingClientRect(),{left:m,top:p,width:y,height:b}=f;if(c||t(),!y||!b)return;let g=wp(p),h=wp(r.clientWidth-(m+y)),x=wp(r.clientHeight-(p+b)),S=wp(m),R={rootMargin:-g+"px "+-h+"px "+-x+"px "+-S+"px",threshold:_n(0,Ps(1,d))||1},L=!0;function C(T){let w=T[0].intersectionRatio;if(!WV(f,e.getBoundingClientRect()))return s();if(w!==d){if(!L)return s();w?s(!1,w):n=setTimeout(()=>{s(!1,1e-7)},1e3)}L=!1}try{o=new IntersectionObserver(C,{...R,root:r.ownerDocument})}catch{o=new IntersectionObserver(C,R)}o.observe(e)}let l=Be(e),u=()=>s(a);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),i()}}function Fp(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=LI(e),c=n||r?[...u?Is(u):[],...t?Is(t):[]]:[];c.forEach(g=>{n&&g.addEventListener("scroll",a),r&&g.addEventListener("resize",a)});let d=u&&s?BX(u,a,r):null,f=-1,m=null;i&&(m=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),a()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,y=l?bu(e):null;l&&b();function b(){let g=bu(e);y&&!WV(y,g)&&a(),y=g,p=requestAnimationFrame(b)}return a(),()=>{var g;c.forEach(h=>{n&&h.removeEventListener("scroll",a),r&&h.removeEventListener("resize",a)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var KV=FV;var ZV=_V,QV=BV,JV=UV;var $V=zV,eS=(e,t,a)=>{let o=new Map,n=a??{},r={...Vp,...n.platform,_c:o};return NV(e,t,{...n,platform:r})};var Jt=I(P(),1),t2=I(P(),1),a2=I(Xn(),1),FX=typeof document<"u",_X=function(){},tS=FX?t2.useLayoutEffect:_X;function aS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!aS(e[o],t[o]))return!1;return!0}if(n=Object.keys(e),a=n.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,n[o]))return!1;for(o=a;o--!==0;){let r=n[o];if(!(r==="_owner"&&e.$$typeof)&&!aS(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function o2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e2(e,t){let a=o2(e);return Math.round(t*a)/a}function RI(e){let t=Jt.useRef(e);return tS(()=>{t.current=e}),t}function n2(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:n,elements:{reference:r,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=Jt.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=Jt.useState(o);aS(f,o)||m(o);let[p,y]=Jt.useState(null),[b,g]=Jt.useState(null),h=Jt.useCallback(O=>{O!==R.current&&(R.current=O,y(O))},[]),x=Jt.useCallback(O=>{O!==L.current&&(L.current=O,g(O))},[]),S=r||p,v=i||b,R=Jt.useRef(null),L=Jt.useRef(null),C=Jt.useRef(c),T=l!=null,w=RI(l),A=RI(n),N=RI(u),D=Jt.useCallback(()=>{if(!R.current||!L.current)return;let O={placement:t,strategy:a,middleware:f};A.current&&(O.platform=A.current),eS(R.current,L.current,O).then(B=>{let E={...B,isPositioned:N.current!==!1};V.current&&!aS(C.current,E)&&(C.current=E,a2.flushSync(()=>{d(E)}))})},[f,t,a,A,N]);tS(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);let V=Jt.useRef(!1);tS(()=>(V.current=!0,()=>{V.current=!1}),[]),tS(()=>{if(S&&(R.current=S),v&&(L.current=v),S&&v){if(w.current)return w.current(S,v,D);D()}},[S,v,D,w,T]);let k=Jt.useMemo(()=>({reference:R,floating:L,setReference:h,setFloating:x}),[h,x]),F=Jt.useMemo(()=>({reference:S,floating:v}),[S,v]),H=Jt.useMemo(()=>{let O={position:a,left:0,top:0};if(!F.floating)return O;let B=e2(F.floating,c.x),E=e2(F.floating,c.y);return s?{...O,transform:"translate("+B+"px, "+E+"px)",...o2(F.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:B,top:E}},[a,s,F.floating,c.x,c.y]);return Jt.useMemo(()=>({...c,update:D,refs:k,elements:F,floatingStyles:H}),[c,D,k,F,H])}var II=(e,t)=>{let a=KV(e);return{name:a.name,fn:a.fn,options:[e,t]}},TI=(e,t)=>{let a=ZV(e);return{name:a.name,fn:a.fn,options:[e,t]}},wI=(e,t)=>({fn:$V(e).fn,options:[e,t]}),EI=(e,t)=>{let a=QV(e);return{name:a.name,fn:a.fn,options:[e,t]}},AI=(e,t)=>{let a=JV(e);return{name:a.name,fn:a.fn,options:[e,t]}};var If=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,a,o=!0){this.fallbackStore=t,this.componentName=a,this.throwOnMissingTrigger=o}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let a=this.attachedStores.lastIndexOf(t);a!==-1&&this.attachedStores.splice(a,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(a=>{a()}))}openByTrigger(t){let a=this.attachedStore;if(a===null)return;let o;if(t){for(let n=this.attachedStores.length-1;n>=0&&!o;n-=1)o=this.attachedStores[n].context.triggerElements.getById(t);o??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!o&&this.throwOnMissingTrigger)throw new Error(ke(99,this.componentName,t,this.componentName));a.setOpen(!0,ue(ae.imperativeAction,void 0,o))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,ue(ae.imperativeAction))}};var BI=I(P(),1),C2=I(Xn(),1);var y2=I(P(),1);var h2=I(P(),1),OI=I(_p(),1),g2=I(f2(),1);var d2=I(P(),1);var PI=[],MI;function m2(){return MI}function p2(e){PI.push(e)}function zp(e){let t=(a,o)=>{let n=Je(o7).current,r;try{MI=n;for(let i of PI)i.before(n);r=e(a,o);for(let i of PI)i.after(n);n.didInitialize=!0}finally{MI=void 0}return r};return t.displayName=e.displayName||e.name,t}function nS(e){return d2.forwardRef(zp(e))}function o7(){return{didInitialize:!1}}var n7=kc(19),r7=n7?s7:l7;function rS(e,t,a,o,n){return r7(e,t,a,o,n)}function i7(e,t,a,o,n){let r=h2.useCallback(()=>t(e.getSnapshot(),a,o,n),[e,t,a,o,n]);return(0,OI.useSyncExternalStore)(e.subscribe,r,r)}p2({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],n=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,n)||(t=!0,o.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let a=new Set;for(let n of e.syncHooks)a.add(n.store);let o=[];for(let n of a)o.push(n.subscribe(t));return()=>{for(let n of o)n()}}),(0,OI.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function s7(e,t,a,o,n){let r=m2();if(!r)return i7(e,t,a,o,n);let i=r.syncIndex;r.syncIndex+=1;let s;return r.didInitialize?(s=r.syncHooks[i],(s.store!==e||s.selector!==t||!Object.is(s.a1,a)||!Object.is(s.a2,o)||!Object.is(s.a3,n))&&(s.store!==e&&(r.didChangeStore=!0),s.store=e,s.selector=t,s.a1=a,s.a2=o,s.a3=n,s.value=t(e.getSnapshot(),a,o,n))):(s={store:e,selector:t,a1:a,a2:o,a3:n,value:t(e.getSnapshot(),a,o,n)},r.syncHooks.push(s)),s.value}function l7(e,t,a,o,n){return(0,g2.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,r=>t(r,a,o,n))}var iS=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let a=this.updateTick;for(let o of this.listeners){if(a!==this.updateTick)return;o(t)}}update(t){for(let a in t)if(!Object.is(this.state[a],t[a])){this.setState({...this.state,...t});return}}set(t,a){Object.is(this.state[t],a)||this.setState({...this.state,[t]:a})}notifyAll(){let t={...this.state};this.setState(t)}use(t,a,o,n){return rS(this,t,a,o,n)}};var vu=I(P(),1);var bn=class extends iS{constructor(t,a={},o){super(t),this.context=a,this.selectors=o}useSyncedValue(t,a){vu.useDebugValue(t);let o=this;U(()=>{o.state[t]!==a&&o.set(t,a)},[o,t,a])}useSyncedValueWithCleanup(t,a){let o=this;U(()=>(o.state[t]!==a&&o.set(t,a),()=>{o.set(t,void 0)}),[o,t,a])}useSyncedValues(t){let a=this,o=Object.values(t);U(()=>{a.update(t)},[a,...o])}useControlledProp(t,a){vu.useDebugValue(t);let o=this,n=a!==void 0;U(()=>{n&&!Object.is(o.state[t],a)&&o.setState({...o.state,[t]:a})},[o,t,a,n])}select(t,a,o,n){let r=this.selectors[t];return r(this.state,a,o,n)}useState(t,a,o,n){return vu.useDebugValue(t),rS(this,this.selectors[t],a,o,n)}useContextCallback(t,a){vu.useDebugValue(t);let o=j(a??Me);this.context[t]=o}useStateSetter(t){let a=vu.useRef(void 0);return a.current===void 0&&(a.current=o=>{this.set(t,o)}),a.current}observe(t,a){let o;typeof t=="function"?o=t:o=this.selectors[t];let n=o(this.state);return a(n,n,this),this.subscribe(r=>{let i=o(r);if(!Object.is(n,i)){let s=n;n=i,a(i,s,this)}})}};var sS=I(P(),1);function x2(){let[,e]=sS.useState({});return sS.useCallback(()=>{e({})},[])}var u7={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Bs=class extends bn{constructor(t){let{syncOnly:a,nested:o,onOpenChange:n,triggerElements:r,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:wV(),nested:o,triggerElements:r},u7),this.syncOnly=a}syncOpenEvent=(t,a)=>{(!t||!this.state.open||a!=null&&WB(a))&&(this.context.dataRef.current.openEvent=t?a:void 0)};dispatchOpenChange=(t,a)=>{this.syncOpenEvent(t,a.event);let o={open:t,reason:a.reason,nativeEvent:a.event,nested:this.context.nested,triggerElement:a.trigger};this.context.events.emit("openchange",o)};setOpen=(t,a)=>{if(this.syncOnly){this.context.onOpenChange?.(t,a);return}this.dispatchOpenChange(t,a),this.context.onOpenChange?.(t,a)}};function S2(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:n,nested:r,onOpenChange:i}=e,s=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=i,f=y2.useRef(null);o===void 0&&f.current===null&&(f.current=new Bs({open:s,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:n,syncOnly:!0,nested:r}));let m=o??f.current;return t.useSyncedValue("floatingId",n),U(()=>{let p={open:s,floatingId:n,referenceElement:l,floatingElement:u};Re(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[s,n,l,u,m]),m.context.onOpenChange=d,m.context.nested=r,m}var kI=I(P(),1);function wo(e,t=!1,a=!1,o=!1){let[n,r]=kI.useState(e&&t?"idle":void 0),[i,s]=kI.useState(e&&!o);return e&&!i&&(s(!0),r("starting")),!e&&i&&n!=="ending"&&!a&&r("ending"),!e&&!i&&n==="ending"&&r(void 0),U(()=>{if(!e&&i&&n!=="ending"&&a){let l=hn.request(()=>{r("ending")});return()=>{hn.cancel(l)}}},[e,i,n,a]),U(()=>{if(!e||t)return;let l=hn.request(()=>{r(void 0)});return()=>{hn.cancel(l)}},[t,e]),U(()=>{if(!e||!t)return;e&&i&&n!=="idle"&&r("starting");let l=hn.request(()=>{r("idle")});return()=>{hn.cancel(l)}},[t,e,i,n]),{mounted:i,setMounted:s,transitionStatus:n}}var b2=I(P(),1);var NI=I(Xn(),1);var lS=null;function c7(e){if(!lS){let t=[];lS=t,queueMicrotask(()=>{lS=null,NI.flushSync(()=>{for(let a of t)a()})})}lS.push(e)}function wf(e,t=!1,a=!1){let o=no();return j((n,r=null)=>{o.cancel();let i=zn(e);if(i==null)return;let s=i,l=()=>{if(!a){NI.flushSync(n);return}c7(()=>{r?.aborted||n()})};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(s.getAnimations().map(c=>c.finished)).then(()=>{r?.aborted||l()},()=>{if(r?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=iu;if(!s.hasAttribute(c)){o.request(u);return}let d=new MutationObserver(()=>{s.hasAttribute(c)||(d.disconnect(),u())});d.observe(s,{attributes:!0,attributeFilter:[c]}),r?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(u)})}function xa(e){let{enabled:t=!0,open:a,ref:o,batch:n=!1,onComplete:r}=e,i=j(r),s=wf(o,a,n);b2.useEffect(()=>{if(!t)return;let l=new AbortController;return s(i,l.signal),()=>{l.abort()}},[t,a,i,s])}var Ef={tabIndex:-1,[vp]:""};function L2(e){return t=>t==="touch"?e.current:!0}function uS(e,t=!1){let a=Es(),o=ks()!=null,n=Je(()=>e(a,o)).current;return S2({popupStore:n,treatPopupAsFloatingElement:t,floatingRootContext:n.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:n.setOpen}),n}function cS({handle:e,store:t}){return U(()=>e.attachStore(t),[e,t]),null}function v2(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function f7(e,t){let a=BI.useRef(null);return j(o=>{let n=a.current;if(n!==null){if(n.element===o&&n.store===t&&n.id===e)return;a.current=null;let r=n.store;r.context.triggerElements.getById(n.id)===n.element&&(r.context.triggerElements.delete(n.id),v2(r))}o!==null&&e!==void 0&&(a.current={store:t,id:e,element:o},t.context.triggerElements.add(e,o),v2(t))})}function VI(e,t,a,o=!1){let n=e.preventUnmountingOnClose;t?n=!1:o&&(n=!0);let r=a?.id??null,i=e.activeTriggerId,s=e.activeTriggerElement;return(r||t)&&(i=r,s=a??null),{open:t,preventUnmountingOnClose:n,activeTriggerId:i,activeTriggerElement:s}}function d7(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function R2(e,t,a,o={}){let n=a.reason,r=n===ae.triggerHover,i=t&&n===ae.triggerFocus,s=!t&&(n===ae.triggerPress||n===ae.escapeKey),l=d7(a);if(e.context.onOpenChange?.(t,a),a.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,a);let u=()=>{let c=VI(e.state,t,a.trigger,l()),d={...o.extraState,...c};i?d.instantType="focus":s?d.instantType="dismiss":r&&(d.instantType=void 0),e.update(d)};r?C2.flushSync(u):u()}function fS(e,t,a,o){let n=a.useState("isMountedByTrigger",e),r=f7(e,a),i=j(l=>{let u=a.select("open"),c=a.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?o:null};a.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...o};a.update(d)}}),s=j(l=>{r(l),l&&i(l)});return U(()=>(s(t.current),()=>s(null)),[s,t,a,e]),U(()=>{if(n){let l={activeTriggerElement:t.current,...o};a.update(l)}},[n,a,t,...Object.values(o)]),{registerTrigger:s,isMountedByThisTrigger:n}}function dS(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=BI.useRef(null),n=e.useState("open"),r=e.useState("triggerCount"),i=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");U(()=>{if(!n){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)o.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m;break}u.activeTriggerId===void 0&&(o.current===c?d=c:o.current=null)}}else o.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&a&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=ue(ae.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,r,i,s,a])}function mS(e,t,a,o){let{mounted:n,setMounted:r,transitionStatus:i}=wo(e,!1,!1,o),s=t.useState("preventUnmountingOnClose"),l=e?!1:s;t.useSyncedValues({mounted:n,transitionStatus:i,preventUnmountingOnClose:l});let u=j(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return xa({enabled:n&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:i}}function pS(e,t){e.useSyncedValues(t),U(()=>()=>{e.update({activeTriggerProps:Ye,inactiveTriggerProps:Ye,popupProps:Ye})},[e])}function I2(e,t){U(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),U(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var Cr=class{constructor(){this.idMap=new Map}add(t,a){this.idMap.set(t,a)}delete(t){this.idMap.delete(t)}hasElement(t){for(let a of this.idMap.values())if(a===t)return!0;return!1}hasMatchingElement(t){for(let a of this.idMap.values())if(t(a))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function hS(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Bs({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ye,inactiveTriggerProps:Ye,popupProps:Ye}}var Up=e=>e.triggerIdProp??e.activeTriggerId,FI=e=>e.openProp??e.open,T2=e=>(e.popupElement?.id??e.floatingId)||void 0;function w2(e,t){return t!==void 0&&FI(e)&&Up(e)===t}function m7(e,t){return w2(e,t)?!0:t!==void 0&&FI(e)&&Up(e)==null&&e.triggerCount===1}var gS={open:FI,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Up,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:T2,isTriggerActive:(e,t)=>t!==void 0&&Up(e)===t,isOpenedByTrigger:(e,t)=>w2(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Up(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>m7(e,t)?T2(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var _I=I(P(),1),E2=I(_p(),1);function xS(e){let t=_I.useCallback(o=>e===void 0?Me:e.subscribeStore(o),[e]),a=_I.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,E2.useSyncExternalStore)(t,a,()=>e?.serverStore)}function zI(e){let{open:t=!1,onOpenChange:a,elements:o={}}=e,n=Es(),r=ks()!=null,i=Je(()=>new Bs({open:t,transitionStatus:void 0,onOpenChange:a,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Cr,floatingId:n,syncOnly:!1,nested:r})).current;return U(()=>{let s={open:t,floatingId:n};o.reference!==void 0&&(s.referenceElement=o.reference,s.domReferenceElement=Re(o.reference)?o.reference:null),o.floating!==void 0&&(s.floatingElement=o.floating),i.update(s)},[t,n,o.reference,o.floating,i]),i.context.onOpenChange=a,i.context.nested=r,i}function A2(e){return p7(e,e.rootContext)}function p7(e,t){let{nodeId:a,externalTree:o}=e,n=t.useState("referenceElement"),r=t.useState("floatingElement"),i=t.useState("domReferenceElement"),s=t.useState("open"),l=t.useState("floatingId"),[u,c]=ja.useState(null),[d,f]=ja.useState(void 0),[m,p]=ja.useState(void 0),y=ja.useRef(null),b=Sn(o),g=ja.useMemo(()=>({reference:n,floating:r,domReference:i}),[n,r,i]),h=n2({...e,elements:{...g,...u&&{reference:u}}}),x=Re(d)?d:null,S=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?i:x),t.useSyncedValue("floatingElement",S);let v=ja.useCallback(A=>{let N=Re(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(N),h.refs.setReference(N)},[h.refs]),R=ja.useCallback(A=>{(Re(A)||A===null)&&(y.current=A,f(A)),(Re(h.refs.reference.current)||h.refs.reference.current===null||A!==null&&!Re(A))&&h.refs.setReference(A)},[h.refs,f]),L=ja.useCallback(A=>{p(A),h.refs.setFloating(A)},[h.refs]),C=ja.useMemo(()=>({...h.refs,setReference:R,setFloating:L,setPositionReference:v,domReference:y}),[h.refs,R,L,v]),T=ja.useMemo(()=>({...h.elements,domReference:i}),[h.elements,i]),w=ja.useMemo(()=>({...h,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:C,elements:T,nodeId:a,rootStore:t}),[h,C,T,a,t,s,l]);return U(()=>{i&&(y.current=i)},[i]),U(()=>{t.context.dataRef.current.floatingContext=w;let A=b?.nodesRef.current.find(N=>N.id===a);A&&(A.context=w)}),ja.useMemo(()=>({...h,context:w,refs:C,elements:T,rootStore:t}),[h,C,T,w,t])}var Lr=I(P(),1);var UI=nt.os.mac&&nt.engine.webkit;function HI(e,t={}){let{enabled:a=!0,delay:o}=t,n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,s=Lr.useRef(!1),l=Lr.useRef(null),u=Lr.useRef(!0),c=mt();Lr.useEffect(()=>{let f=n.select("domReferenceElement");if(!a)return;let m=Be(f);function p(){let g=n.select("domReferenceElement");!n.select("open")&&Ve(g)&&g===Mt(ve(g))&&(s.current=!0,l.current=g)}function y(){u.current=!0}function b(){u.current=!1}return Ha(Ie(m,"blur",p),UI&&Ie(m,"keydown",y,!0),UI&&Ie(m,"pointerdown",b,!0))},[n,a]),Lr.useEffect(()=>{if(!a)return;function f(m){if(m.reason===ae.triggerPress||m.reason===ae.escapeKey){let p=n.select("domReferenceElement");Re(p)&&(l.current=p,s.current=!0)}}return r.on("openchange",f),()=>{r.off("openchange",f)}},[r,a,n]);let d=Lr.useMemo(()=>{function f(){s.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(s.current){if(l.current===p)return;f()}let y=tt(m.nativeEvent);if(Re(y)){if(UI&&!m.relatedTarget){if(!u.current&&!du(y))return}else if(!QB(y))return}let b=Ds(m.relatedTarget,n.context.triggerElements),{nativeEvent:g,currentTarget:h}=m,x=typeof o=="function"?o():o;if(n.select("open")&&b||x===0||x===void 0){n.setOpen(!0,ue(ae.triggerFocus,g,h));return}c.start(x,()=>{s.current||n.setOpen(!0,ue(ae.triggerFocus,g,h))})},onBlur(m){f();let p=m.relatedTarget,y=m.nativeEvent,b=Re(p)&&p.hasAttribute(si("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let g=n.select("domReferenceElement"),h=Mt(ve(g));!p&&h===g||le(i.current.floatingContext?.refs.floating.current,h)||le(g,h)||b||Ds(p??h,n.context.triggerElements)||n.setOpen(!1,ue(ae.triggerFocus,y))})}}},[i,o,n,c]);return Lr.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var GI=I(P(),1);var qI=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ua,this.restTimeout=new Ua,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},yS=new WeakMap;function Af(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&yS.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),yS.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function SS(e,t){let{scopeElement:a,referenceElement:o,floatingElement:n}=t,r=yS.get(a);r&&r!==e&&Af(r),Af(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=a,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=n,yS.set(a,e),a.style.pointerEvents="none",o.style.pointerEvents="auto",n.style.pointerEvents="auto"}function Df(e){let t=e.context.dataRef.current,a=Je(()=>t.hoverInteractionState??qI.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=a),yf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function jI(e,t={}){let{enabled:a=!0,closeDelay:o=0,nodeId:n}=t,r="rootStore"in e?e.rootStore:e,i=r.useState("open"),s=r.useState("floatingElement"),l=r.useState("domReferenceElement"),{dataRef:u}=r.context,c=Sn(),d=ks(),f=Df(r),m=mt(),p=j(()=>_y(u.current.openEvent?.type,f.interactedInside)),y=j(()=>JB(u.current.openEvent?.type)),b=j(()=>{Af(f)});U(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,b())},[i,f,b]),GI.useEffect(()=>b,[b]),U(()=>{if(a&&i&&f.handleCloseOptions?.blockPointerEvents&&y()&&Re(l)&&s){let g=l,h=s,x=ve(s),S=c?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;S&&(S.style.pointerEvents="");let v=f.pointerEventsScopeElement!==h?f.pointerEventsScopeElement:null,R=S!==h?S:null,L=f.handleCloseOptions?.getScope?.()??v??R??g.closest("[data-rootownerid]")??x.body;return SS(f,{scopeElement:L,referenceElement:g,floatingElement:h}),()=>{b()}}},[a,i,l,s,f,y,c,d,b]),GI.useEffect(()=>{if(!a)return;function g(){return!!(c&&d&&yn(c.nodesRef.current,d).length>0)}function h(C){let T=Fn(o,"close",f.pointerType),w=()=>{r.setOpen(!1,ue(ae.triggerHover,C)),c?.events.emit("floating.closed",C)};T?f.openChangeTimeout.start(T,w):(f.openChangeTimeout.clear(),w())}function x(C){let T=tt(C);if(!nI(T)){f.interactedInside=!1;return}f.interactedInside=T?.closest("[aria-haspopup]")!=null}function S(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",R),b()}function v(C){if(g()&&c){c.events.on("floating.closed",R);return}if(Ds(C.relatedTarget,r.context.triggerElements))return;let T=u.current.floatingContext?.nodeId??n,w=C.relatedTarget;if(!(c&&T&&Re(w)&&yn(c.nodesRef.current,T,!1).some(N=>le(N.context?.elements.floating,w)))){if(f.handler){f.handler(C);return}b(),y()&&!p()&&h(C)}}function R(C){!c||!d||g()||m.start(0,()=>{c.events.off("floating.closed",R),r.setOpen(!1,ue(ae.triggerHover,C)),c.events.emit("floating.closed",C)})}let L=s;return Ha(L&&Ie(L,"mouseenter",S),L&&Ie(L,"mouseleave",v),L&&Ie(L,"pointerdown",x,!0),()=>{c?.events.off("floating.closed",R)})},[a,s,r,u,o,n,y,p,b,f,c,d,m])}var Vs=I(P(),1),D2=I(Xn(),1);var h7={current:null};function XI(e,t={}){let{enabled:a=!0,delay:o=0,handleClose:n=null,mouseOnly:r=!1,restMs:i=0,move:s=!0,triggerElementRef:l=h7,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,y="rootStore"in e?e.rootStore:e,{dataRef:b,events:g}=y.context,h=Sn(u),x=Df(y),S=Vs.useRef(!1),v=ct(n),R=ct(o),L=ct(i),C=ct(a),T=ct(m),w=ct(f),A=j(()=>_y(b.current.openEvent?.type,x.interactedInside)),N=j(()=>T.current?.()!==!1),D=j((F,H,O)=>{let B=y.context.triggerElements;if(B.hasElement(H))return!F||!le(F,H);if(!Re(O))return!1;let E=O;return B.hasMatchingElement(q=>le(q,E))&&(!F||!le(F,E))}),V=j(()=>{if(!x.handler)return;ve(y.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),k=j(()=>{Af(x)});return c&&(x.handleCloseOptions=n?.__options),Vs.useEffect(()=>V,[V]),Vs.useEffect(()=>{if(!a)return;function F(H){H.open?S.current=!1:(S.current=H.reason===ae.triggerHover,V(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return g.on("openchange",F),()=>{g.off("openchange",F)}},[a,g,x,V]),Vs.useEffect(()=>{if(!a)return;function F(G,K=!0){let M=Fn(R.current,"close",x.pointerType);M?x.openChangeTimeout.start(M,()=>{y.setOpen(!1,ue(ae.triggerHover,G)),h?.events.emit("floating.closed",G)}):K&&(x.openChangeTimeout.clear(),y.setOpen(!1,ue(ae.triggerHover,G)),h?.events.emit("floating.closed",G))}let H=l.current??(c?y.select("domReferenceElement"):null);if(!Re(H))return;function O(G){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,r&&!jo(x.pointerType))return;let K=rI(L.current),M=Fn(R.current,"open",x.pointerType),z=tt(G),_=G.currentTarget??null,$=y.select("domReferenceElement"),Y=_;if(Re(z)&&!y.context.triggerElements.hasElement(z)){for(let pe of y.context.triggerElements.elements())if(le(pe,z)){Y=pe;break}}Re(_)&&Re($)&&!y.context.triggerElements.hasElement(_)&&le(_,$)&&(Y=$);let J=Y==null?!1:D($,Y,z),se=y.select("open"),ge=w.current?.()??y.select("transitionStatus")==="ending",ee=!se&&ge&&S.current,te=!J&&Re(Y)&&Re($)&&le($,Y)&&ee,ye=K>0&&!M,be=J&&(se||ee)||te,He=!se||J;if(be){N()&&y.setOpen(!0,ue(ae.triggerHover,G,Y));return}ye||(M?x.openChangeTimeout.start(M,()=>{He&&N()&&y.setOpen(!0,ue(ae.triggerHover,G,Y))}):He&&N()&&y.setOpen(!0,ue(ae.triggerHover,G,Y)))}function B(G){if(A()){k();return}V();let K=y.select("domReferenceElement"),M=ve(K);x.restTimeout.clear(),x.restTimeoutPending=!1;let z=b.current.floatingContext??d?.();if(Ds(G.relatedTarget,y.context.triggerElements))return;if(v.current&&z){y.select("open")||x.openChangeTimeout.clear();let $=l.current;x.handler=v.current({...z,tree:h,x:G.clientX,y:G.clientY,onClose(){k(),V(),C.current&&!A()&&$===y.select("domReferenceElement")&&F(G,!0)}}),M.addEventListener("mousemove",x.handler),x.handler(G);return}(x.pointerType==="touch"?!le(y.select("floatingElement"),G.relatedTarget):!0)&&F(G)}function E(G){le(H,G.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let q=p?Ie(H,"mouseout",E):void 0;return s?Ha(Ie(H,"mousemove",O,{once:!0}),Ie(H,"mouseenter",O),Ie(H,"mouseleave",B),q):Ha(Ie(H,"mouseenter",O),Ie(H,"mouseleave",B),q)},[V,k,b,R,y,a,v,x,c,D,A,r,s,L,l,h,C,d,w,N,p]),Vs.useMemo(()=>{if(!a)return;function F(H){x.pointerType=H.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(H){let{nativeEvent:O}=H,B=H.currentTarget,E=y.select("domReferenceElement"),q=y.select("open"),G=D(E,B,H.target);if(r&&!jo(x.pointerType))return;if(q&&G&&x.handleCloseOptions?.blockPointerEvents){let z=y.select("floatingElement");if(z){let _=x.handleCloseOptions?.getScope?.()??B.ownerDocument.body;SS(x,{scopeElement:_,referenceElement:B,floatingElement:z})}}let K=rI(L.current);if(q&&!G||K===0||!G&&x.restTimeoutPending&&H.movementX**2+H.movementY**2<2)return;x.restTimeout.clear();function M(){if(x.restTimeoutPending=!1,A())return;let z=y.select("open");!x.blockMouseMove&&(!z||G)&&N()&&y.setOpen(!0,ue(ae.triggerHover,O,B))}x.pointerType==="touch"?D2.flushSync(()=>{M()}):G&&q?M():(x.restTimeoutPending=!0,x.restTimeout.start(K,M))}}},[a,x,A,D,r,y,L,N])}var Da=I(P(),1);var g7="Escape";function P2(e){return nt.engine.webkit&&e.movementX===0&&e.movementY===0}function vS(e,t,a){switch(e){case"vertical":return t;case"horizontal":return a;default:return t||a}}function bS(e,t){return vS(t,e===oI||e===Vy,e===Cp||e===Lp)}function YI(e,t,a){return vS(t,e===Vy,a?e===Cp:e===Lp)||e==="Enter"||e===" "||e===""}function x7(e,t,a){return vS(t,a?e===Cp:e===Lp,e===Vy)}function y7(e,t,a,o){let n=a?e===Lp:e===Cp,r=e===oI;return t==="both"||t==="horizontal"&&o?e===g7:vS(t,n,r)}function WI(e,t){let{listRef:a,activeIndex:o,onNavigate:n=()=>{},enabled:r=!0,selectedIndex:i=null,allowEscape:s=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:y=void 0,orientation:b="vertical",parentOrientation:g,id:h,resetOnPointerLeave:x=!0,externalTree:S,grid:v}=t,R=v!=null,L="rootStore"in e?e.rootStore:e,C=L.useState("open"),T=L.useState("floatingElement"),w=L.useState("domReferenceElement"),A=L.context.dataRef,N=mu(T),D=Ip(w),V=ct(N),k=ks(),F=Sn(S),H=Da.useRef(f),O=Da.useRef(i??-1),B=Da.useRef(null),E=Da.useRef(!0),q=j(ne=>{n(O.current===-1?null:O.current,ne)}),G=Da.useRef(!!T),K=Da.useRef(C),M=Da.useRef(!1),z=Da.useRef(!1),_=Da.useRef(null),$=ct(y),Y=ct(C),J=ct(i),se=ct(x),ge=no(),ee=no(),te=j(()=>{function ne(Se){d?F?.events.emit("virtualfocus",Se):_.current=Lf(Se,{sync:M.current,preventScroll:!0})}let fe=a.current[O.current],oe=z.current;fe&&ne(fe),(M.current?Se=>Se():Se=>ge.request(Se))(()=>{let Se=a.current[O.current]||fe;if(!Se)return;fe||ne(Se),ce&&(oe||!E.current)&&Se.scrollIntoView?.({block:"nearest",inline:"nearest"})})});U(()=>{A.current.orientation=b},[A,b]),U(()=>{r&&(C&&T?(O.current=i??-1,H.current&&i!=null&&(z.current=!0,q())):G.current&&(O.current=-1,q()))},[r,C,T,i,q]),U(()=>{if(r){if(!C){M.current=!1;return}if(T)if(o==null){if(M.current=!1,J.current!=null)return;if(G.current&&(O.current=-1,te()),(!K.current||!G.current)&&H.current&&(B.current!=null||H.current===!0&&B.current==null)){let ne=0,fe=()=>{a.current[0]==null?(ne<2&&(ne?W=>ee.request(W):queueMicrotask)(fe),ne+=1):(O.current=B.current==null||YI(B.current,b,c)||u?pu(a):Cf(a),B.current=null,q())};fe()}}else Os(a.current,o)||(O.current=o,te(),z.current=!1)}},[r,C,T,o,J,u,a,b,c,q,te,ee]),U(()=>{if(!r||T||!F||d||!G.current)return;let ne=F.nodesRef.current,fe=ne.find(Se=>Se.id===k)?.context?.elements.floating,oe=Mt(ve(w??fe??null)),W=ne.some(Se=>Se.context&&le(Se.context.elements.floating,oe));fe&&!W&&E.current&&fe.focus({preventScroll:!0})},[r,T,w,F,k,d]),U(()=>{K.current=C,G.current=!!T}),U(()=>{C||(B.current=null,H.current=f)},[C,f]);let ye=o!=null,be=j(ne=>{if(!Y.current)return;let fe=a.current.indexOf(ne.currentTarget);fe!==-1&&(O.current!==fe||o!==fe)&&(O.current=fe,q(ne))}),He=j(()=>g??F?.nodesRef.current.find(ne=>ne.id===k)?.context?.dataRef?.current.orientation),pe=j(()=>pu(a,$.current)),Ae=j(ne=>{if(E.current=!1,M.current=!0,ne.which===229||!Y.current&&ne.currentTarget===V.current)return;if(u&&y7(ne.key,b,c,R)){bS(ne.key,He())||Ro(ne),L.setOpen(!1,ue(ae.listNavigation,ne.nativeEvent)),Ve(w)&&(d?F?.events.emit("virtualfocus",w):w.focus());return}let fe=O.current,oe=pu(a,y),W=Cf(a,y);if(D||(ne.key==="Home"&&(Ro(ne),O.current=oe,q(ne)),ne.key==="End"&&(Ro(ne),O.current=W,q(ne))),v!=null){let Se=v(ne,O.current,a,b,l,c,y,oe,W);if(Se!=null&&(O.current=Se,q(ne)),b==="both")return}if(bS(ne.key,b)){if(Ro(ne),C&&!d&&Mt(ne.currentTarget.ownerDocument)===ne.currentTarget){O.current=YI(ne.key,b,c)?oe:W,q(ne);return}YI(ne.key,b,c)?l?fe>=W?s&&fe!==a.current.length?O.current=-1:(M.current=!1,O.current=oe):O.current=xn(a.current,{startingIndex:fe,disabledIndices:y}):O.current=Math.min(W,xn(a.current,{startingIndex:fe,disabledIndices:y})):l?fe<=oe?s&&fe!==-1?O.current=a.current.length:(M.current=!1,O.current=W):O.current=xn(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y}):O.current=Math.max(oe,xn(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y})),Os(a.current,O.current)&&(O.current=-1),q(ne)}}),ce=Da.useMemo(()=>({onFocus(fe){M.current=!0,be(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){P2(fe)||(M.current=!0,z.current=!1,m&&be(fe))},onPointerLeave(fe){if(!Y.current||!E.current||fe.pointerType==="touch")return;M.current=!0;let oe=fe.relatedTarget;if(!(!m||a.current.includes(oe))&&se.current&&(_.current?.(),_.current=null,O.current=-1,q(fe),!d)){let W=V.current,Se=Mt(ve(W));W&&le(W,Se)&&W.focus({preventScroll:!0})}}}),[be,Y,V,m,a,q,se,d]),De=Da.useMemo(()=>d&&C&&ye&&{"aria-activedescendant":`${h}-${o}`},[d,C,ye,h,o]),Ke=Da.useMemo(()=>({...D?{}:De,onKeyDown(ne){if(ne.key==="Tab"&&ne.shiftKey&&C&&!d){let fe=tt(ne.nativeEvent);if(fe&&!le(V.current,fe))return;Ro(ne),L.setOpen(!1,ue(ae.focusOut,ne.nativeEvent)),Ve(w)&&w.focus();return}Ae(ne)},onPointerMove(ne){P2(ne)||(E.current=!0)}}),[De,Ae,V,D,L,C,d,w]),_e=Da.useMemo(()=>{function ne(W){L.setOpen(!0,ue(ae.listNavigation,W.nativeEvent,W.currentTarget))}function fe(W){f==="auto"&&As(W.nativeEvent)&&(H.current=!d)}function oe(W){H.current=f,f==="auto"&&Sf(W.nativeEvent)&&(H.current=!0)}return{onKeyDown(W){let Se=L.select("open");E.current=!1;let Ze=W.key.startsWith("Arrow"),Oa=x7(W.key,He(),c),Wa=bS(W.key,b),Xt=(u?Oa:Wa)||W.key==="Enter"||W.key.trim()==="";if(d&&Se)return Ae(W);if(!(!Se&&!p&&Ze)){if(Xt){let Ft=bS(W.key,He());B.current=u&&Ft?null:W.key}if(u){Oa&&(Ro(W),Se?(O.current=pe(),q(W)):ne(W));return}Wa&&(J.current!=null&&(O.current=J.current),Ro(W),!Se&&p?ne(W):Ae(W),Se&&q(W))}},onFocus(W){L.select("open")&&!d&&(O.current=-1,q(W))},onPointerDown:oe,onPointerEnter:oe,onMouseDown:fe,onClick:fe}},[Ae,f,pe,u,q,L,p,b,He,c,J,d]),Dt=Da.useMemo(()=>({...De,..._e}),[De,_e]);return Da.useMemo(()=>r?{reference:Dt,floating:Ke,item:ce,trigger:_e}:{},[r,Dt,Ke,_e,ce])}var Cu=I(P(),1);function KI(e,t){let{listRef:a,elementsRef:o,activeIndex:n,onMatch:r,disabledIndices:i,onTyping:s,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=mt(),p=Cu.useRef(""),y=Cu.useRef(c??n??-1),b=Cu.useRef(null),g=j(S=>{function v(V){return o?.current[V]}function R(V){let k=v(V);return k&&!hu(k)||k?.matches(":disabled")?!1:i==null||!ii(So,V,i)}function L(V,k,F=0){if(V.length===0)return-1;let H=(F%V.length+V.length)%V.length,O=k.toLowerCase();for(let B=0;B<V.length;B+=1){let E=(H+B)%V.length;if(!(!V[E]?.toLowerCase().startsWith(O)||!R(E)))return E}return-1}let C=a.current;if(p.current.length>0&&S.key===" "&&(Ro(S),s?.(!0)),p.current.length>0&&p.current[0]!==" "&&L(C,p.current)===-1&&S.key!==" "&&s?.(!1),C==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Ro(S),s?.(!0));let T=p.current==="";T&&(y.current=c??n??-1),C.every((V,k)=>V&&R(k)?V[0]?.toLowerCase()!==V[1]?.toLowerCase():!0)&&p.current===S.key&&(p.current="",y.current=b.current),p.current+=S.key,m.start(u,()=>{p.current="",y.current=b.current,s?.(!1)});let N=((T?c??n??-1:y.current)??0)+1,D=L(C,p.current,N);D!==-1?(r?.(D),b.current=D):S.key!==" "&&(p.current="",s?.(!1))}),h=j(S=>{let v=S.relatedTarget,R=d.select("domReferenceElement"),L=d.select("floatingElement");le(R,v)||le(L,v)||(m.clear(),p.current="",y.current=b.current,s?.(!1))});U(()=>{!f&&c!==null||(m.clear(),b.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let x=Cu.useMemo(()=>({onKeyDown:g,onBlur:h}),[g,h]);return Cu.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}var M2=.1,S7=M2*M2,pt=.5;function CS(e,t,a,o,n,r){return o>=t!=r>=t&&e<=(n-a)*(t-o)/(r-o)+a}function LS(e,t,a,o,n,r,i,s,l,u){let c=!1;return CS(e,t,a,o,n,r)&&(c=!c),CS(e,t,n,r,i,s)&&(c=!c),CS(e,t,i,s,l,u)&&(c=!c),CS(e,t,l,u,a,o)&&(c=!c),c}function b7(e,t,a){return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function RS(e,t,a,o,n,r){let i=Math.min(a,n),s=Math.max(a,n),l=Math.min(o,r),u=Math.max(o,r);return e>=i&&e<=s&&t>=l&&t<=u}function ZI(e={}){let{blockPointerEvents:t=!1}=e,a=new Ua,o=({x:n,y:r,placement:i,elements:s,onClose:l,nodeId:u,tree:c})=>{let d=i?.split("-")[0],f=!1,m=null,p=null,y=typeof performance<"u"?performance.now():0;function b(h,x){let S=performance.now(),v=S-y;if(m===null||p===null||v===0)return m=h,p=x,y=S,!1;let R=h-m,L=x-p,C=R*R+L*L,T=v*v*S7;return m=h,p=x,y=S,C<T}function g(){a.clear(),l()}return function(x){a.clear();let S=s.domReference,v=s.floating;if(!S||!v||d==null||n==null||r==null)return;let{clientX:R,clientY:L}=x,C=tt(x),T=x.type==="mouseleave",w=le(v,C),A=le(S,C);if(w&&(f=!0,!T))return;if(A&&(f=!1,!T)){f=!0;return}if(T&&Re(x.relatedTarget)&&le(v,x.relatedTarget))return;function N(){return!!(c&&yn(c.nodesRef.current,u).length>0)}function D(){N()||g()}if(N())return;let V=S.getBoundingClientRect(),k=v.getBoundingClientRect(),F=n>k.right-k.width/2,H=r>k.bottom-k.height/2,O=k.width>V.width,B=k.height>V.height,E=(O?V:k).left,q=(O?V:k).right,G=(B?V:k).top,K=(B?V:k).bottom;if(d==="top"&&r>=V.bottom-1||d==="bottom"&&r<=V.top+1||d==="left"&&n>=V.right-1||d==="right"&&n<=V.left+1){D();return}let M=!1;switch(d){case"top":M=RS(R,L,E,V.top+1,q,k.bottom-1);break;case"bottom":M=RS(R,L,E,k.top+1,q,V.bottom-1);break;case"left":M=RS(R,L,k.right-1,K,V.left+1,G);break;case"right":M=RS(R,L,V.right-1,K,k.left+1,G);break;default:}if(M)return;if(f&&!b7(R,L,V)){D();return}if(!T&&b(R,L)){D();return}let z=!1;switch(d){case"top":{let _=O?pt/2:pt*4,$=O||F?n+_:n-_,Y=O?n-_:F?n+_:n-_,J=r+pt+1,se=F||O?k.bottom-pt:k.top,ge=F?O?k.bottom-pt:k.top:k.bottom-pt;z=LS(R,L,$,J,Y,J,k.left,se,k.right,ge);break}case"bottom":{let _=O?pt/2:pt*4,$=O||F?n+_:n-_,Y=O?n-_:F?n+_:n-_,J=r-pt,se=F||O?k.top+pt:k.bottom,ge=F?O?k.top+pt:k.bottom:k.top+pt;z=LS(R,L,$,J,Y,J,k.left,se,k.right,ge);break}case"left":{let _=B?pt/2:pt*4,$=B||H?r+_:r-_,Y=B?r-_:H?r+_:r-_,J=n+pt+1,se=H||B?k.right-pt:k.left,ge=H?B?k.right-pt:k.left:k.right-pt;z=LS(R,L,se,k.top,ge,k.bottom,J,$,J,Y);break}case"right":{let _=B?pt/2:pt*4,$=B||H?r+_:r-_,Y=B?r-_:H?r+_:r-_,J=n-pt,se=H||B?k.left+pt:k.right,ge=H?B?k.left+pt:k.right:k.left+pt;z=LS(R,L,J,$,J,Y,se,k.top,ge,k.bottom);break}default:}z?f||a.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}var IS=I(P(),1),QI=IS.createContext(void 0);function TS(){let e=IS.useContext(QI);if(e===void 0)throw new Error(ke(26));return e}var ES="ArrowUp",AS="ArrowDown",DS="ArrowLeft",PS="ArrowRight",MS="Home",OS="End";var Pf=new Set([ES,AS,DS,PS,MS,OS]),v7="Shift",k2=[v7,"Control","Alt","Meta"];function C7(e){return Ve(e)&&e.tagName==="INPUT"}function JI(e){return!!(C7(e)&&e.selectionStart!=null||Ve(e)&&e.tagName==="TEXTAREA")}function $I(e,t,a,o){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,r=e.scrollTop,i=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(i&&o!=="vertical"){let l=O2(e,t,"left"),u=wS(e),c=wS(t);a==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=l-c.scrollMarginLeft-u.scrollPaddingLeft)),a==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?n=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&o!=="horizontal"){let l=O2(e,t,"top"),u=wS(e),c=wS(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?r=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(r=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:r,behavior:"auto"})}function O2(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);)t=t.offsetParent;return n}function wS(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var N2="--nested-dialogs";var obe=lu.open,nbe=lu.closed,rbe=lu.startingStyle,ibe=lu.endingStyle;var B2="data-nested-dialog-open";var kS={...Vn,...za,nestedDialogOpen(e){return e?{[B2]:""}:null}};var F2=I(Z(),1),_2=V2.forwardRef(function(t,a){let{render:o,className:n,style:r,finalFocus:i,initialFocus:s,...l}=t,u=ga(),c=u.useState("descriptionElementId"),d=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),p=u.useState("modal"),y=u.useState("mounted"),b=u.useState("nested"),g=u.useState("nestedOpenDialogCount"),h=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),v=u.useState("transitionStatus"),R=u.useState("role"),L=f.useState("floatingId");TS(),xa({open:h,ref:u.context.popupRef,onComplete(){h&&u.context.onOpenChangeComplete?.(!0)}});let C=s===void 0?L2(u.context.popupRef):s,T=g>0,w=u.useStateSetter("popupElement"),N=Q("div",t,{state:{open:h,nested:b,transitionStatus:v,nestedDialogOpen:T},props:[m,{id:L,"aria-labelledby":S,"aria-describedby":c,role:R,...Ef,hidden:!y,onKeyDown(D){Pf.has(D.key)&&D.stopPropagation()},style:{[N2]:g}},l],ref:[a,u.context.popupRef,w],stateAttributesMapping:kS});return(0,F2.jsx)(kp,{context:f,openInteractionType:x,disabled:!y,closeOnFocusOut:!d,initialFocus:C,returnFocus:i,modal:p!==!1,restoreFocus:"popup",children:N})});var H2=I(P(),1);function Fs(e){return kc(19)?e:e?"true":void 0}var z2=I(P(),1),U2=I(Z(),1),NS=z2.forwardRef(function(t,a){let{cutout:o,...n}=t,r;if(o){let i=o.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return(0,U2.jsx)("div",{ref:a,role:"presentation","data-base-ui-inert":"",...n,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});var Hp=I(Z(),1),q2=H2.forwardRef(function(t,a){let{keepMounted:o=!1,...n}=t,r=ga(),i=r.useState("mounted"),s=r.useState("modal"),l=r.useState("open");return i||o?(0,Hp.jsx)(QI.Provider,{value:o,children:(0,Hp.jsxs)(Mp,{ref:a,...n,children:[i&&s===!0&&(0,Hp.jsx)(NS,{ref:r.context.internalBackdropRef,inert:Fs(!l)}),t.children]})}):null});var $2=I(P(),1);var tT=I(P(),1);var G2={},j2={},X2="";function BS(e,t){return ru(e)?e:t}function Y2(e,t,a){return/hidden|clip/.test(e.getComputedStyle(BS(t,a)).overflowY)}function I7(e){if(typeof document>"u")return!1;let t=ve(e);return Be(t).innerWidth-t.documentElement.clientWidth>0}function T7(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=ve(e),o=a.documentElement,n=a.body,r=BS(o,n),i=r.style.overflowY,s=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",r.style.overflowY="scroll";let l=r.offsetWidth;r.style.overflowY="hidden";let u=r.offsetWidth;return r.style.overflowY=i,o.style.scrollbarGutter=s,l===u}function w7(e){let t=ve(e),a=t.documentElement,o=t.body,n=BS(a,o),r={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,r)}}function E7(e){let t=ve(e),a=t.documentElement,o=t.body,n=Be(a),r=0,i=0,s=!1,l=hn.create();if(nt.engine.webkit&&(n.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=n.getComputedStyle(a),p=n.getComputedStyle(o),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";r=a.scrollTop,i=a.scrollLeft,G2={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},X2=a.style.scrollBehavior,j2={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,S=m.overflowY==="scroll"||p.overflowY==="scroll",v=m.overflowX==="scroll"||p.overflowX==="scroll",R=Math.max(0,n.innerWidth-o.clientWidth),L=Math.max(0,n.innerHeight-o.clientHeight),C=parseFloat(p.marginTop)+parseFloat(p.marginBottom),T=parseFloat(p.marginLeft)+parseFloat(p.marginRight),w=BS(a,o);if(s=T7(e),s){a.style.scrollbarGutter=g,w.style.overflowY="hidden",w.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(h||S)&&(a.style.overflowY="scroll"),(x||v)&&(a.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:C||L?`calc(100dvh - ${C+L}px)`:"100dvh",width:T||R?`calc(100vw - ${T+R}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=r,o.scrollLeft=i,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){Object.assign(a.style,G2),Object.assign(o.style,j2),s||(a.scrollTop=r,a.scrollLeft=i,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=X2)}function d(){c(),l.request(u)}u();let f=Ie(n,"resize",d);return()=>{l.cancel(),c(),typeof n.removeEventListener=="function"&&f()}}var eT=class{lockCount=0;restore=null;timeoutLock=Ua.create();timeoutUnlock=Ua.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let a=ve(t),o=a.documentElement,n=a.body,r=Be(o);if(Y2(r,o,n)){let s=new r.MutationObserver(()=>{Y2(r,o,n)||(s.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};s.observe(o,l),s.observe(n,l),this.restore=()=>s.disconnect();return}let i=nt.os.ios||!I7(t);this.restore=i?w7(t):E7(t)}},A7=new eT;function VS(e=!0,t=null){U(()=>{if(e)return A7.acquire(t)},[e,t])}function W2({store:e,parentContext:t,isDrawer:a}){let o=e.useState("open"),n=e.useState("disablePointerDismissal"),r=e.useState("modal"),i=e.useState("popupElement"),s=e.useState("floatingRootContext"),[l,u]=tT.useState(0),[c,d]=tT.useState(0),f=l===0,m=Su(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:r==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(p){if(!e.context.outsidePressEnabledRef.current||"button"in p&&p.button!==0)return!1;if("touches"in p){if(p.type==="touchend"){if(p.changedTouches.length!==1||p.touches.length!==0)return!1}else if(p.touches.length!==1)return!1}let y=tt(p);if(f&&!n){if(r){let b=e.context.internalBackdropRef.current,g=e.context.backdropRef.current;return b||g?b===y||g===y||le(y,i)&&!y?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:f});return VS(o&&r===!0,i),e.useContextCallback("onNestedDialogOpen",(p,y)=>{u(p),d(y)}),U(()=>(t?.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,c+(a?1:0)):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[a,o,l,c,t]),pS(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:c}),null}var FS=I(P(),1);var Mf=class extends bn{setState(t){}update(t){}set(t,a){}notifyAll(){}};var K2={...gS,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},_S=class extends bn{constructor(t,a,o){let n=new Cr,r=Q2(t,n,a,o);super(r,J2(n),K2)}setOpen=(t,a)=>{a.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&a.trigger==null&&this.state.activeTriggerId!=null&&(a.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,a),!a.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(t,a),this.update(VI(this.state,t,a.trigger)))}};function Z2(){let e=new Cr;return new Mf(Object.freeze(Q2(void 0,e)),Object.freeze(J2(e)),K2)}function Q2(e,t,a,o=!1){return{...hS(t,a,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function J2(e){return{popupRef:FS.createRef(),backdropRef:FS.createRef(),internalBackdropRef:FS.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}var qp=I(Z(),1);function eF(e,t){let{children:a,open:o,defaultOpen:n=!1,onOpenChange:r,onOpenChangeComplete:i,disablePointerDismissal:s=!1,modal:l=!0,actionsRef:u,handle:c,triggerId:d,defaultTriggerId:f=null}=t,m=e==="drawer",p=e==="alert-dialog",y=p?!0:l,b=p||s,g=p?"alertdialog":"dialog",h=ga(!0),x=h!=null,S={modal:y,disablePointerDismissal:b,nested:x,role:g},v=uS((A,N)=>new _S({open:n,openProp:o,activeTriggerId:f,triggerIdProp:d,...S},A,N),!0);v.useControlledProp("openProp",o),v.useControlledProp("triggerIdProp",d),v.useSyncedValues(S),v.useContextCallback("onOpenChange",r),v.useContextCallback("onOpenChangeComplete",i);let R=v.useState("open"),L=v.useState("mounted"),C=v.useState("payload");I2(v,R),dS(v);let{forceUnmount:T}=mS(R,v);$2.useImperativeHandle(u,()=>({unmount:T,close:()=>v.setOpen(!1,ue(ae.imperativeAction))}),[T,v]);let w=R||L;return(0,qp.jsxs)(q0.Provider,{value:v,children:[c&&(0,qp.jsx)(cS,{handle:c,store:v}),w&&(0,qp.jsx)(W2,{store:v,parentContext:h?.context,isDrawer:m}),typeof a=="function"?a({payload:C}):a]})}var tF=zp(function(t){return eF("dialog",t)});var aF=I(P(),1);var oF=aF.forwardRef(function(t,a){let{render:o,className:n,style:r,children:i,...s}=t,l=TS(),u=ga(),c=u.useState("open"),d=u.useState("nested"),f=u.useState("transitionStatus"),m=u.useState("nestedOpenDialogCount"),p=u.useState("mounted"),y=u.useStateSetter("viewportElement"),b=m>0;return Q("div",t,{enabled:l||p,state:{open:c,nested:d,transitionStatus:f,nestedDialogOpen:b},ref:[a,y],stateAttributesMapping:kS,props:[{role:"presentation",hidden:!p,style:{pointerEvents:c?void 0:"none"},children:i},s]})});var nF=I(P(),1);var rF=nF.forwardRef(function(t,a){let{render:o,className:n,style:r,id:i,...s}=t,l=ga(),u=Et(i);return l.useSyncedValueWithCleanup("titleElementId",u),Q("h2",t,{ref:a,props:[{id:u},s]})});var uF=I(P(),1);var jp=I(P(),1);var Gp=I(P(),1);function iF(e){let t=Gp.useRef(""),a=Gp.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Gp.useCallback(n=>{if(n.detail===0){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:a}}var sF=I(P(),1);function Of(e,t){let a=sF.useRef(e),o=j(t);U(()=>{a.current!==e&&o(a.current),a.current=e},[e,o])}function aT(e,t){let a=j((r,i)=>{(typeof e=="function"?e():e)||t(i||(nt.os.ios?"touch":""))}),{onClick:o,onPointerDown:n}=iF(a);return jp.useMemo(()=>({onClick:o,onPointerDown:n}),[o,n])}function lF(e){let[t,a]=jp.useState(null),o=aT(e,a);return Of(e,n=>{n&&!e&&a(null)}),jp.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}var cF=nS(function(t,a){let{render:o,className:n,style:r,disabled:i=!1,nativeButton:s=!0,id:l,payload:u,handle:c,...d}=t,f=ga(!0),p=xS(c)??f;if(!p)throw new Error(ke(79));let y=Et(l),b=p.useState("floatingRootContext"),g=p.useState("isOpenedByTrigger",y),h=p.useState("triggerPopupId",y),x=uF.useRef(null),{registerTrigger:S,isMountedByThisTrigger:v}=fS(y,x,p,{payload:u}),{getButtonProps:R,buttonRef:L}=Go({disabled:i,native:s}),C=Bp(b),T=aT(()=>p.select("open"),N=>{p.set("openMethod",N)}),w={disabled:i,open:g},A=p.useState("triggerProps",v);return Q("button",t,{state:w,ref:[L,a,S,x],props:[C.reference,A,T,{[Qy]:"",id:y,"aria-haspopup":"dialog","aria-expanded":g,"aria-controls":h},d,R],stateAttributesMapping:gf})});var Xp=class extends If{constructor(){super(Z2(),"Dialog",!1)}open(t){this.openByTrigger(t)}openWithPayload(t){let a=this.attachedStore;a!==null&&(a.set("payload",t),a.setOpen(!0,ue(ae.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function fF(){return new Xp}var io=I(Z(),1);function dF({...e}){return(0,io.jsx)(Rr.Root,{"data-slot":"sheet",...e})}function D7({...e}){return(0,io.jsx)(Rr.Portal,{"data-slot":"sheet-portal",...e})}function P7({className:e,...t}){return(0,io.jsx)(Rr.Backdrop,{"data-slot":"sheet-overlay",className:re("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function mF({className:e,children:t,side:a="right",showCloseButton:o=!0,...n}){return(0,io.jsxs)(D7,{children:[(0,io.jsx)(P7,{}),(0,io.jsxs)(Rr.Popup,{"data-slot":"sheet-content","data-side":a,className:re("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...n,children:[t,o&&(0,io.jsxs)(Rr.Close,{"data-slot":"sheet-close",render:(0,io.jsx)(Lo,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,io.jsx)(Rl,{}),(0,io.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function pF({className:e,...t}){return(0,io.jsx)("div",{"data-slot":"sheet-header",className:re("flex flex-col gap-0.5 p-4",e),...t})}function hF({className:e,...t}){return(0,io.jsx)(Rr.Title,{"data-slot":"sheet-title",className:re("text-base font-medium text-foreground",e),...t})}function gF({className:e,...t}){return(0,io.jsx)(Rr.Description,{"data-slot":"sheet-description",className:re("text-sm text-muted-foreground",e),...t})}var Ff={};ka(Ff,{Indicator:()=>UF,List:()=>YF,Panel:()=>qF,Root:()=>CF,Tab:()=>IF});var qt=I(P(),1);var Lu=I(P(),1);function Ru({controlled:e,default:t,name:a,state:o="value"}){let{current:n}=Lu.useRef(e!==void 0),[r,i]=Lu.useState(t),s=n&&e!==void 0?e:r,l=Lu.useCallback(u=>{n||i(u)},[]);return[s,l]}var li=I(P(),1);var zS=I(P(),1),oT=zS.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function xF(){return zS.useContext(oT)}var yF=I(Z(),1);function kf(e){let{children:t,elementsRef:a,labelsRef:o,onMapChange:n}=e,r=j(n),[,i]=li.useState(!1),s=Je(O7).current,l=Je(M7).current,u=li.useRef(0),c=li.useRef(!0),d=li.useRef(null),f=li.useRef(null),m=j(()=>{c.current||(c.current=!0,i(v=>!v))}),p=j((v,R)=>{l.set(v,R),m()}),y=j(v=>{l.delete(v),m()}),b=j(v=>{let R=new Map;return a.current.length=0,o&&(o.current.length=0),v.forEach(L=>{R.set(L.element,{...L.registration.metadata??{},index:L.index}),a.current[L.index]=L.element,o&&(o.current[L.index]=L.registration.label!==void 0?L.registration.label:L.registration.textRef?.current?.textContent??L.element.textContent)}),u.current=a.current.length,R});function g(v){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||v.length<2)return;let R=new MutationObserver(C=>{if(!B7(C))return;let T=null;for(let w of v)if(w.isConnected){if(T&&SF(T,w)>0){R.disconnect(),m();return}T=w}});f.current=R;let L=new Set;for(let C=1;C<v.length;C+=1){let T=N7(v[C-1],v[C]);T&&L.add(T)}L.forEach(C=>R.observe(C,{childList:!0}))}let h=j(()=>{let[v,R]=k7(l),L=b(v),C=d.current,T=!C||C.length!==v.length||v.some((w,A)=>{let N=C[A];return w.index!==N.index||w.element!==N.element||w.registration.index!==N.registration.index||w.registration.metadata!==N.registration.metadata});g(R),d.current=v,c.current=!1,T&&(s.forEach(w=>w(L)),r(L))});U(()=>(!c.current&&d.current&&b(d.current),()=>{a.current=[],o&&(o.current=[])}),[a,o,b]),U(()=>{c.current&&h()}),U(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let x=j(v=>(s.add(v),()=>{s.delete(v)})),S=li.useMemo(()=>({register:p,unregister:y,subscribeMapChange:x,nextIndexRef:u}),[p,y,x,u]);return(0,yF.jsx)(oT.Provider,{value:S,children:t})}function M7(){return new Map}function O7(){return new Set}function k7(e){let t=new Set,a=[],o=[];e.forEach((r,i)=>{if(!i.isConnected)return;let s=r.index,l={index:s??-1,element:i,registration:r};s===null?o.push(l):s>=0&&(t.add(s),a.push(l))});let n=0;return o.sort((r,i)=>SF(r.element,i.element)),o.forEach(r=>{for(;t.has(n);)n+=1;r.index=n,a.push(r),n+=1}),t.size>0&&a.sort((r,i)=>r.index-i.index),[a,o.map(r=>r.element)]}function N7(e,t){let a=e.parentElement;for(;a&&!a.contains(t);)a=a.parentElement;return a}function B7(e){for(let t of e)for(let a=0;a<t.removedNodes.length;a+=1)if(t.removedNodes[a].isConnected)return!0;return!1}function SF(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var US=I(P(),1),nT=US.createContext(void 0);function _s(){let e=US.useContext(nT);if(e===void 0)throw new Error(ke(64));return e}var bF="data-activation-direction";var Ir={tabActivationDirection:e=>({[bF]:e})};var rT=I(Z(),1),CF=qt.forwardRef(function(t,a){let{className:o,defaultValue:n=0,onValueChange:r,orientation:i="horizontal",render:s,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=qt.useRef([]),[m,p]=qt.useState(()=>new Map),[y,b]=Ru({controlled:l,default:n,name:"Tabs",state:"value"}),g=l!==void 0,[h,x]=qt.useState(()=>new Map),S=qt.useRef(void 0),v=qt.useCallback(Y=>iT(h,Y),[h]),[R,L]=qt.useState(()=>({previousValue:y,tabActivationDirection:"none"})),{previousValue:C,tabActivationDirection:T}=R,w=T,A=!1;C!==y&&(w=vF(C,y,i,h),A=C!=null&&y!=null&&v(y)==null);let N=A?C:y,D=C!==N||T!==w;U(()=>{D&&L({previousValue:N,tabActivationDirection:w})},[N,D,w]);let V=j((Y,J)=>{let se=vF(y,Y,i,h);J.activationDirection=se,r?.(Y,J),!J.isCanceled&&b(Y)}),k=j((Y,J)=>{r?.(Y,ue(J,void 0,void 0,{activationDirection:"none"}))}),F=j((Y,J)=>(p(se=>{let ge=new Map(se);return ge.set(Y,J),ge}),()=>{p(se=>{if(se.get(Y)!==J)return se;let ge=new Map(se);return ge.delete(Y),ge})})),H=qt.useCallback(Y=>m.get(Y),[m]),O=qt.useCallback(Y=>{for(let J of h.values())if(Y===J.value)return J.id},[h]),B=qt.useMemo(()=>({getTabElementBySelectedValue:v,getTabIdByPanelValue:O,getTabPanelIdByValue:H,onValueChange:V,orientation:i,registerMountedTabPanel:F,setTabMap:x,tabActivationDirection:w,value:y}),[v,O,H,V,i,F,x,w,y]),E=qt.useMemo(()=>{for(let Y of h.values())if(Y.value===y)return Y},[h,y]),q=qt.useMemo(()=>{for(let Y of h.values())if(!Y.disabled)return Y.value},[h]),G=qt.useRef(!d),K=qt.useRef(n),M=qt.useRef(d),z=qt.useRef(!1);U(()=>{if(g)return;function Y(ee,te){b(ee),L({previousValue:ee,tabActivationDirection:"none"}),k(ee,te),G.current=!1}if(h.size===0){z.current&&y!==null&&!S.current?.isConnected&&Y(null,ae.missing);return}z.current=!0,S.current=h.keys().next().value;let J=E?.disabled,se=E==null&&y!==null;if(!J&&y===K.current&&(M.current=!1),M.current&&J&&y===K.current)return;let ge=G.current;if(J||se){let ee=q??null;if(y===ee){G.current=!1;return}let te=ae.missing;ge?te=ae.initial:J&&(te=ae.disabled),Y(ee,te);return}ge&&E!=null&&(k(y,ae.initial),G.current=!1)},[q,g,k,E,b,h,y]);let $=Q("div",t,{state:{orientation:i,tabActivationDirection:w},ref:a,props:c,stateAttributesMapping:Ir});return(0,rT.jsx)(nT.Provider,{value:B,children:(0,rT.jsx)(kf,{elementsRef:f,children:$})})});function iT(e,t){for(let[a,o]of e.entries())if(t===o.value)return a;return null}function vF(e,t,a,o){if(e==null||t==null)return"none";let[n,r,i]=a==="horizontal"?["left","left","right"]:["top","up","down"],s=iT(o,e),l=iT(o,t);if(s==null||l==null)return s!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:r:"none";let u=s.getBoundingClientRect()[n],c=l.getBoundingClientRect()[n];return c<u?r:c>u?i:"none"}var ui=I(P(),1);var Yp="data-composite-item-active";var LF=I(P(),1);var Iu=I(P(),1);function Nf(e={}){let{guess:t,label:a,metadata:o,textRef:n,index:r}=e,{register:i,unregister:s,subscribeMapChange:l,nextIndexRef:u}=xF(),c=Iu.useRef(-1),[d,f]=Iu.useState(r==null&&t?()=>{if(c.current===-1){let b=u.current;u.current+=1,c.current=b}return c.current}:-1),m=r??d,p=Iu.useRef(null),y=Iu.useCallback(b=>{let g=p.current;g&&s(g),p.current=b,b&&i(b,{metadata:o??null,index:r??null,label:a,textRef:n})},[r,i,s,o,a,n]);return U(()=>{if(r==null)return l(b=>{let g=p.current?b.get(p.current)?.index:null;g!=null&&f(g)})},[r,l]),{ref:y,index:m}}function RF(e={}){let{highlightItemOnHover:t,highlightedIndex:a,onHighlightedIndexChange:o}=pf(),{ref:n,index:r}=Nf(e),i=a===r,s=LF.useRef(null),l=ln(n,s);return{compositeProps:{tabIndex:i?0:-1,onFocus(){o(r)},onMouseMove(){let c=s.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!i&&!d&&c.focus()}},compositeRef:l,index:r}}var HS=I(P(),1),sT=HS.createContext(void 0);function qS(){let e=HS.useContext(sT);if(e===void 0)throw new Error(ke(65));return e}var IF=ui.forwardRef(function(t,a){let{className:o,disabled:n=!1,render:r,value:i,id:s,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:y}=_s(),{activateOnFocus:b,registerTabResizeObserverElement:g,tabsListElement:h}=qS(),{highlightedIndex:x,onHighlightedIndexChange:S}=pf(),v=Et(s),R=ui.useMemo(()=>({disabled:n,id:v,value:i}),[n,v,i]),{compositeProps:L,compositeRef:C,index:T}=RF({metadata:R}),w=i===d,A=ui.useRef(!1),N=ui.useRef(null),D=j(z=>{N.current?.(),N.current=z?g(z):null});U(()=>{if(A.current){A.current=!1;return}if(!(w&&T>-1&&x!==T))return;let z=h;if(z!=null){let _=Mt(ve(z));if(_&&le(z,_))return}n||S(T)},[w,T,x,S,n,h]);let{getButtonProps:V,buttonRef:k}=Go({disabled:n,native:l,focusableWhenDisabled:!0}),F=f(i),H=ui.useRef(!1),O=ui.useRef(!1);function B(z){m(i,ue(ae.none,z.nativeEvent,void 0,{activationDirection:"none"}))}function E(z){w||n||B(z)}function q(z){w||n||b&&(!H.current||O.current)&&B(z)}function G(z){if(w||n)return;H.current=!0,O.current=z.button===0;let _=ve(z.currentTarget);function $(){H.current=!1,O.current=!1,_.removeEventListener("pointerup",$),_.removeEventListener("pointercancel",$)}_.addEventListener("pointerup",$),_.addEventListener("pointercancel",$)}return Q("button",t,{state:{disabled:n,active:w,orientation:p,tabActivationDirection:y},ref:[a,k,C,D],props:[L,{role:"tab","aria-controls":F,"aria-selected":w,id:v,onClick:E,onFocus:q,onPointerDown:G,[Yp]:w?"":void 0,onKeyDownCapture(){A.current=!0}},c,V],stateAttributesMapping:Ir})});var Vf=I(P(),1);var JCe=I(P(),1);var TF=I(_p(),1);function F7(){return Me}function _7(){return!1}function z7(){return!0}function wF(){return(0,TF.useSyncExternalStore)(F7,_7,z7)}var GS=I(P(),1),U7=GS.createContext(void 0),H7={disableStyleElements:!1};function jS(){return GS.useContext(U7)??H7}var EF=I(Z(),1);function AF(e){let{script:t}=e,{nonce:a}=jS();return wF()?(0,EF.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function Bf(e){let t=la(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Ve(e),r=n?e.offsetWidth:a,i=n?e.offsetHeight:o;return(Ms(a)!==r||Ms(o)!==i)&&(a=r,o=i),{width:a,height:o}}function DF(e,t){let a=(t??Be(e).getComputedStyle(e)).transform,o=0,n=0,r=1;if(a&&a!=="none"){let i=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(i){let s=i[1].split(", ").map(parseFloat);s.length===6?(o=s[4],n=s[5],r=Math.sqrt(s[0]*s[0]+s[1]*s[1])):s.length===16&&(o=s[12],n=s[13],r=s[0])}}return{x:o,y:n,scale:r}}var PF="--active-tab-left",MF="--active-tab-right",OF="--active-tab-top",kF="--active-tab-bottom",NF="--active-tab-width",BF="--active-tab-height";var XS=I(Z(),1),VF,G7={...Ir,activeTabPosition:()=>null,activeTabSize:()=>null},FF=2,UF=Vf.forwardRef(function(t,a){let{className:o,render:n,renderBeforeHydration:r=!1,style:i,...s}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=_s(),{tabsListElement:f,registerIndicatorUpdateListener:m}=qS(),p=x2();Vf.useEffect(()=>m(p),[m,p]);let y=0,b=0,g=0,h=0,x=0,S=0,v=!1;if(d!=null&&f!=null){let N=l(d);if(N!=null){v=!0;let{width:D,height:V}=Bf(N),{width:k,height:F}=Bf(f),H=N.getBoundingClientRect(),O=f.getBoundingClientRect(),B=k>0?O.width/k:1,E=F>0?O.height/F:1,q=j7(N,f);y=q.left,g=q.top;let G=(H.left-O.left)/B+f.scrollLeft-f.clientLeft,K=(H.top-O.top)/E+f.scrollTop-f.clientTop,M=X7(N);Math.abs(G-M.x-y)<=FF&&Math.abs(K-M.y-g)<=FF&&(y=G,g=K),x=D,S=V,b=f.scrollWidth-y-x,h=f.scrollHeight-g-S}}let R=v?{left:y,right:b,top:g,bottom:h}:null,L=v?{width:x,height:S}:null,C=v?{[PF]:`${y}px`,[MF]:`${b}px`,[OF]:`${g}px`,[kF]:`${h}px`,[NF]:`${x}px`,[BF]:`${S}px`}:void 0,T=v&&x>0&&S>0,A=Q("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:L,tabActivationDirection:c},ref:a,props:[{role:"presentation",style:C,hidden:!T},s,{suppressHydrationWarning:!0}],stateAttributesMapping:G7});return d==null?null:(0,XS.jsxs)(Vf.Fragment,{children:[A,r&&(VF||(VF=(0,XS.jsx)(AF,{script:""})))]})});function j7(e,t){let a=_F(e),o=_F(t),n=a.left-o.left-t.clientLeft,r=a.top-o.top-t.clientTop,i=qo(e);for(;Ve(i)&&i!==t&&!pn(i);)n-=i.scrollLeft,r-=i.scrollTop,i=qo(i);return{left:n,top:r}}function _F(e){let t=0,a=0,o=e;for(;o!=null;){t+=o.offsetLeft,a+=o.offsetTop;let n=o.offsetParent;n!=null&&(t+=n.clientLeft,a+=n.clientTop),o=n}return{left:t,top:a}}function X7(e){let t=Be(e).getComputedStyle(e),{x:a,y:o}=DF(e,t),n=a,r=o,{translate:i}=t;if(i&&i!=="none"){let s=i.split(" ");n+=zF(s[0],e.offsetWidth),r+=zF(s[1],e.offsetHeight)}return{x:n,y:r}}function zF(e,t){if(!e)return 0;let a=parseFloat(e);return Number.isFinite(a)?e.endsWith("%")?a/100*t:a:0}var YS=I(P(),1);var HF="data-index";var bLe=su.startingStyle,vLe=su.endingStyle;var W7={...Ir,...za},qF=YS.forwardRef(function(t,a){let{className:o,value:n,render:r,keepMounted:i=!1,style:s,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=_s(),p=Et(),{ref:y,index:b}=Nf(),g=n===u,{mounted:h,transitionStatus:x,setMounted:S}=wo(g),v=!h,R=c(n),L={hidden:v,orientation:d,tabActivationDirection:f,transitionStatus:x},C=YS.useRef(null),T=Q("div",t,{state:L,ref:[a,y,C],props:[{"aria-labelledby":R,hidden:v,id:p,role:"tabpanel",tabIndex:g?0:-1,inert:Fs(!g),[HF]:b},l],stateAttributesMapping:W7});return xa({open:g,ref:C,onComplete(){g||S(!1)}}),U(()=>{if(!(p==null||v&&!i))return m(n,p)},[v,i,n,p,m]),i||h?T:null});var Un=I(P(),1);var jF=I(P(),1);var Tu=I(P(),1);function WS(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function GF(e){let{loopFocus:t=!0,orientation:a="both",grid:o,onLoop:n,direction:r,highlightedIndex:i,onHighlightedIndexChange:s,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=So}=e,[m,p]=Tu.useState(0),y=o!=null,b=Tu.useRef(null),g=ln(b,l),h=Tu.useRef([]),x=Tu.useRef(!1),S=Tu.useRef(null),v=i??m,R=j((A,N=!1)=>{if(S.current=h.current[A]??null,(s??p)(A),N){let D=h.current[A];$I(b.current,D,r,a)}}),L=j(A=>{if(A.size===0)return;if(x.current){let k=h.current,F=k.indexOf(S.current);if(F===-1){let H=k[v];!H||ii(k,v,d)?R(K7(k,d)):S.current=H}else F!==v&&R(F);return}x.current=!0;let N=Array.from(A.keys()),D=N.find(k=>k?.hasAttribute(Yp))??null,V=D?A.get(D)?.index??-1:-1;if(V!==-1)R(V);else if(ii(N,v,d)){let k=xn(N,{disabledIndices:d});Os(N,k)||R(k)}$I(b.current,D,r,a)});U(()=>{if(d==null||i!=null||!x.current)return;let A=h.current;if(ii(A,v,d)){let N=xn(A,{disabledIndices:d});Os(A,N)||R(N)}},[d,i,v,h,R]);let C=j((A,N,D)=>n?n(A,N,D,h):D),T=j(A=>{let N=A.key===MS||A.key===OS;if(!Pf.has(A.key)||!u&&N||Z7(A,f)||!b.current)return;let V=r==="rtl",k=V?DS:PS,F=V?PS:DS,H=a==="vertical"?AS:k,O=a==="vertical"?ES:F,B=tt(A.nativeEvent);if(B!=null&&JI(B)&&!WS(B)){let z=B.selectionStart,_=B.selectionEnd,$=B.value;if(z==null||A.shiftKey||z!==_||A.key!==O&&z<$.length||A.key!==H&&z>0)return}let E=v,q=pu(h,d),G=Cf(h,d);o!=null&&(E=o({disabledIndices:d,elementsRef:h,event:A,highlightedIndex:v,loopFocus:t,maxIndex:G,minIndex:q,onLoop:C,orientation:a,rtl:V}));let K=a!=="vertical"&&A.key===k||a!=="horizontal"&&A.key===AS,M=a!=="vertical"&&A.key===F||a!=="horizontal"&&A.key===ES;u&&(A.key===MS?E=q:A.key===OS&&(E=G)),E===v&&(K||M)&&(t&&E===G&&K?(E=q,n&&(E=n(A,v,E,h))):t&&E===q&&M?(E=G,n&&(E=n(A,v,E,h))):E=xn(h.current,{startingIndex:E,decrement:M,disabledIndices:d})),E!==v&&!Os(h.current,E)&&(c&&A.stopPropagation(),(y||N||K||M)&&A.preventDefault(),R(E,!0),queueMicrotask(()=>{h.current[E]?.focus()}))});return{props:{ref:g,onFocus(A){let N=b.current,D=tt(A.nativeEvent);!N||D==null||!JI(D)||D.setSelectionRange(0,D.value.length)},onKeyDown:T},highlightedIndex:v,onHighlightedIndexChange:R,elementsRef:h,onMapChange:L,relayKeyboardEvent:T}}function K7(e,t){let a=-1;for(let o=0;o<e.length;o+=1){let n=e[o];if(!(!n||ii(e,o,t))){if(n.hasAttribute(Yp))return o;a===-1&&(a=o)}}return Math.max(a,0)}function Z7(e,t){for(let a of k2)if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}var KS=I(P(),1),Q7=KS.createContext(void 0);function Tr(){return KS.useContext(Q7)?.direction??"ltr"}var lT=I(Z(),1);function XF(e){let{render:t,className:a,style:o,refs:n=So,props:r=So,state:i=Ye,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:y,stopEventPropagation:b=!0,rootRef:g,disabledIndices:h,modifierKeys:x,highlightItemOnHover:S=!1,tag:v="div",...R}=e,L=Tr(),{props:C,highlightedIndex:T,onHighlightedIndexChange:w,elementsRef:A,onMapChange:N,relayKeyboardEvent:D}=GF({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:g,stopEventPropagation:b,enableHomeAndEndKeys:p,direction:L,disabledIndices:h,modifierKeys:x}),V=Q(v,e,{state:i,ref:n,props:[C,...r,R],stateAttributesMapping:s}),k=jF.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:w,highlightItemOnHover:S,relayKeyboardEvent:D}),[T,w,S,D]);return(0,lT.jsx)(_0.Provider,{value:k,children:(0,lT.jsx)(kf,{elementsRef:A,onMapChange:F=>{y?.(F),N(F)},children:V})})}var uT=I(Z(),1),YF=Un.forwardRef(function(t,a){let{activateOnFocus:o=!1,className:n,loopFocus:r=!0,render:i,style:s,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=_s(),[f,m]=Un.useState(0),[p,y]=Un.useState(null),b=Un.useRef(new Set),g=Un.useRef(new Set),h=Un.useRef(null);U(()=>{if(typeof ResizeObserver>"u")return;let C=new ResizeObserver(()=>{b.current.forEach(T=>{T()})});return h.current=C,p&&C.observe(p),g.current.forEach(T=>{C.observe(T)}),()=>{C.disconnect(),h.current=null}},[p]);let x=j(C=>(b.current.add(C),()=>{b.current.delete(C)})),S=j(C=>(g.current.add(C),h.current?.observe(C),()=>{g.current.delete(C),h.current?.unobserve(C)})),v={orientation:u,tabActivationDirection:d},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},L=Un.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:p}),[o,x,S,p]);return(0,uT.jsx)(sT.Provider,{value:L,children:(0,uT.jsx)(XF,{render:i,className:n,style:s,state:v,refs:[a,y],props:[R,l],stateAttributesMapping:Ir,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:r,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:So})})});var JS=I(Z(),1);function ZS({className:e,orientation:t="horizontal",...a}){return(0,JS.jsx)(Ff.Root,{"data-slot":"tabs","data-orientation":t,className:re("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var J7=Nc("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function QS({className:e,variant:t="default",...a}){return(0,JS.jsx)(Ff.List,{"data-slot":"tabs-list","data-variant":t,className:re(J7({variant:t}),e),...a})}function _f({className:e,...t}){return(0,JS.jsx)(Ff.Tab,{"data-slot":"tabs-trigger",className:re("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var wr={};ka(wr,{Arrow:()=>E_,Handle:()=>Qp,Popup:()=>T_,Portal:()=>u_,Positioner:()=>R_,Provider:()=>D_,Root:()=>$F,Trigger:()=>o_,Viewport:()=>H_,createHandle:()=>q_});var zf=I(P(),1);var $S=I(P(),1),cT=$S.createContext(void 0);function vn(e){let t=$S.useContext(cT);if(t===void 0&&!e)throw new Error(ke(72));return t}var WF=I(P(),1);var KF={...gS,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},eb=class extends bn{constructor(t,a,o){let n=new Cr;super(QF(t,n,a,o),JF(n),KF)}setOpen=(t,a)=>{R2(this,t,a,{extraState:{openChangeReason:a.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ue(ae.triggerPress,t))}};function ZF(){let e=new Cr,t=new Mf(Object.freeze(QF(void 0,e)),Object.freeze(JF(e)),KF);return Object.assign(t,{setOpen:Me,cancelPendingOpen:Me})}function QF(e,t,a,o=!1){return{...hS(t,a,o),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function JF(e){return{popupRef:WF.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Wp=I(Z(),1),$F=zp(function(t){let{disabled:a=!1,defaultOpen:o=!1,open:n,disableHoverablePopup:r=!1,trackCursorAxis:i="none",actionsRef:s,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=uS((A,N)=>new eb({open:o,openProp:n,activeTriggerId:f,triggerIdProp:d},A,N));p.useControlledProp("openProp",n),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let y=p.useState("open"),b=!a&&y,g=p.useState("activeTriggerId"),h=p.useState("mounted"),x=p.useState("payload");p.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:r,disabled:a}),dS(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:v}=mS(b,p),R=p.useState("isInstantPhase"),L=p.useState("instantType"),C=p.useState("lastOpenChangeReason"),T=zf.useRef(null);U(()=>{y&&a&&p.setOpen(!1,ue(ae.disabled))},[y,a,p]),U(()=>{v==="ending"&&C===ae.none||v!=="ending"&&R?(L!=="delay"&&(T.current=L),p.set("instantType","delay")):T.current!==null&&(p.set("instantType",T.current),T.current=null)},[v,R,C,L,p]),U(()=>{b&&g==null&&p.set("payload",void 0)},[p,g,b]),zf.useImperativeHandle(s,()=>({unmount:S,close:()=>p.setOpen(!1,ue(ae.imperativeAction))}),[S,p]);let w=b||h||!a&&i!=="none";return(0,Wp.jsxs)(cT.Provider,{value:p,children:[c&&(0,Wp.jsx)(cS,{handle:c,store:p}),w&&(0,Wp.jsx)($7,{store:p,disabled:a,trackCursorAxis:i}),typeof m=="function"?m({payload:x}):m]})});function $7({store:e,disabled:t,trackCursorAxis:a}){let o=e.useState("floatingRootContext"),n=Su(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),r=vI(o,{enabled:!t&&a!=="none",axis:a==="none"?void 0:a}),i=zf.useMemo(()=>Fa(r.reference,n.reference),[r.reference,n.reference]);return pS(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:n.floating??Ye}),null}var ab=I(P(),1);var tb=I(P(),1),fT=tb.createContext(void 0);function e_(){return tb.useContext(fT)}var a_="data-base-ui-tooltip-trigger";function t_(e){if("composedPath"in e){let a=e.composedPath();for(let o=0;o<a.length;o+=1){let n=a[o];if(Re(n))return n}}let t=e.target;return Re(t)?t:null}function e9(e){let t=e;for(;t;){let a=t.closest(`[${a_}]`);if(a)return a;let o=t.getRootNode();t="host"in o&&Re(o.host)?o.host:null}return null}var o_=nS(function(t,a){let{render:o,className:n,style:r,handle:i,payload:s,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=vn(!0),b=xS(i)??p;if(!b)throw new Error(ke(82));let g=Et(f),h=b.useState("isTriggerActive",g),x=b.useState("isOpenedByTrigger",g),S=b.useState("floatingRootContext"),v=ab.useRef(null),R=d??0,{registerTrigger:L,isMountedByThisTrigger:C}=fS(g,v,b,{payload:s,closeOnClick:c,closeDelay:R}),T=e_(),{activeIdRef:w,delayRef:A,isInstantPhase:N,hasProvider:D}=sI(S,{open:x}),V=Df(S);b.useSyncedValue("isInstantPhase",N);let k=b.useState("disabled"),F=l??k,H=ct(F),O=b.useState("trackCursorAxis"),B=b.useState("disableHoverablePopup"),E=ab.useRef(!1),q=mt(),G=ab.useRef(void 0);function K(){return D&&w.current!=null?0:u??T??600}function M(te){let ye=v.current;if(!ye||!te)return!1;let be=e9(te);return be!==null&&be!==ye&&le(ye,be)}function z(te){let ye=M(te);return E.current=ye,ye&&(V.openChangeTimeout.clear(),V.restTimeout.clear(),V.restTimeoutPending=!1,q.clear()),ye}let _=XI(S,{enabled:!F,mouseOnly:!0,move:!1,handleClose:!B&&O!=="both"?ZI():null,restMs:K,delay(){return d==null&&D?{close:Fn(A.current,"close")}:{close:R}},triggerElementRef:v,isActiveTrigger:h,isClosing:()=>b.select("transitionStatus")==="ending",shouldOpen(){return!E.current}}),$=HI(S,{enabled:!F}).reference,Y=te=>{let ye=E.current,be=t_(te),He=z(be),pe=v.current,Ae=pe&&be&&le(pe,be);if(He&&b.select("open")&&b.select("lastOpenChangeReason")===ae.triggerHover){b.setOpen(!1,ue(ae.triggerHover,te));return}if(ye&&!He&&Ae&&!H.current&&!b.select("open")&&pe&&jo(G.current)){let ce=()=>{!E.current&&!H.current&&!b.select("open")&&b.setOpen(!0,ue(ae.triggerHover,te,pe))},De=K();De===0?(q.clear(),ce()):q.start(De,ce)}},J=b.useState("triggerProps",C);return Q("button",t,{state:{open:x},ref:[a,L,v],props:[_,$,C||O!=="none"?J:void 0,{onMouseOver(te){Y(te.nativeEvent)},onFocus(te){M(t_(te.nativeEvent))&&te.preventBaseUIHandler()},onMouseLeave(){E.current=!1,q.clear(),G.current=void 0},onPointerEnter(te){G.current=te.pointerType},onPointerDown(te){G.current=te.pointerType,b.set("closeOnClick",c),c&&!b.select("open")&&b.cancelPendingOpen(te.nativeEvent)},onClick(te){c&&!b.select("open")&&b.cancelPendingOpen(te.nativeEvent)},id:g,[Rp]:F?"":void 0,[a_]:F?void 0:""},m],stateAttributesMapping:gf})});var l_=I(P(),1);var ob=I(P(),1),dT=ob.createContext(void 0);function n_(){let e=ob.useContext(dT);if(e===void 0)throw new Error(ke(70));return e}var nb=I(P(),1),r_=I(Xn(),1);var i_=I(Z(),1),s_=nb.forwardRef(function(t,a){let{children:o,container:n,className:r,render:i,style:s,...l}=t,{node:u,subtree:c}=Jy({container:n,ref:a,componentProps:t,elementProps:l});return!c&&!u?null:(0,i_.jsxs)(nb.Fragment,{children:[c,u&&r_.createPortal(o,u)]})});var mT=I(Z(),1),u_=l_.forwardRef(function(t,a){let{keepMounted:o=!1,...n}=t;return vn().useState("mounted")||o?(0,mT.jsx)(dT.Provider,{value:o,children:(0,mT.jsx)(s_,{ref:a,...n})}):null});var cb=I(P(),1);var rb=I(P(),1),pT=rb.createContext(void 0);function Uf(){let e=rb.useContext(pT);if(e===void 0)throw new Error(ke(71));return e}var Xo=I(P(),1);var t9=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:n,rects:r,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=vr(e,t)||{};if(u==null)return{};let f=Xy(c),m={x:a,y:o},p=Ap(n),y=Ep(p),b=await i.getDimensions(u),g=p==="y",h=g?"top":"left",x=g?"bottom":"right",S=g?"clientHeight":"clientWidth",v=r.reference[y]+r.reference[p]-m[p]-r.floating[y],R=m[p]-r.reference[p],L=d==="real"?await i.getOffsetParent?.(u):s.floating,C=s.floating[S]||r.floating[y];(!C||!await i.isElement?.(L))&&(C=s.floating[S]||r.floating[y]);let T=v/2-R/2,w=C/2-b[y]/2-1,A=Math.min(f[h],w),N=Math.min(f[x],w),D=A,V=C-b[y]-N,k=C/2-b[y]/2+T,F=Gy(D,k,V),H=!l.arrow&&gn(n)!=null&&k!==F&&r.reference[y]/2-(k<D?A:N)-b[y]/2<0,O=H?k<D?k-D:k-V:0;return{[p]:m[p]+O,data:{[p]:F,centerOffset:k-F-O,...H&&{alignmentOffset:O}},reset:H}}}),c_=(e,t)=>{let{name:a,fn:o}=t9(e);return{name:a,fn:o,options:[e,t]}};var f_={name:"hide",async fn(e){let{width:t,height:a,x:o,y:n}=e.rects.reference,r=t===0&&a===0&&o===0&&n===0,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-a>=0||i.right-t>=0||i.bottom-a>=0||i.left-t>=0||r}}}};var Hf={sideX:"left",sideY:"top"};var ib="--available-width",sb="--available-height",d_="--anchor-width",m_="--anchor-height",p_="--transform-origin",h_="--positioner-width",g_="--positioner-height";var y_=ib,S_=sb;function C_(e,t,a){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?a?"inline-start":"inline-end":"right",bottom:"bottom",left:o?a?"inline-end":"inline-start":"left"}[t]}function b_(e,t,a){let{rects:o,placement:n}=e;return{side:C_(t,qa(n),a),align:gn(n)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function lb(e){return a9(e,A2)}function a9(e,t){let{anchor:a,positionMethod:o="absolute",side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:y,mounted:b,collisionAvoidance:g,shift:h,nodeId:x,adaptiveOrigin:S,lazyFlip:v=!1,externalTree:R}=e,[L,C]=Xo.useState(null);!b&&L!==null&&C(null);let T=g.side||"flip",w=g.align||"flip",A=g.fallbackAxisSide||"end",N=h?.crossAxis??!1,D=h?.rootBoundary,V=typeof a=="function"?a:void 0,k=j(V),F=V?k:a,H=ct(a),O=ct(b),E=Tr()==="rtl",q=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":E?"left":"right","inline-start":E?"right":"left"}[n],G=i==="center"?q:`${q}-${i}`,K=u;typeof K=="number"?K={top:K,right:K,bottom:K,left:K}:K&&(K={top:K.top||0,right:K.right||0,bottom:K.bottom||0,left:K.left||0});let M=1,z=n==="bottom"?M:0,_=n==="top"?M:0,$=n==="right"?M:0,Y=n==="left"?M:0,J={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:K},se=Xo.useRef(null),ge=ct(r),ee=ct(s),te=typeof r!="function"?r:0,ye=typeof s!="function"?s:0,be=[];m&&be.push(m),be.push(II(Pe=>{let kt=b_(Pe,n,E),ea=typeof ge.current=="function"?ge.current(kt):ge.current,va=typeof ee.current=="function"?ee.current(kt):ee.current;return{mainAxis:ea,crossAxis:va,alignmentAxis:va}},[te,ye,E,n]));let He=w==="none"&&T!=="shift",pe=!He&&(c||N||T==="shift"),Ae=T==="none"?null:EI({...J,padding:{top:K.top+M+z,right:K.right+M+Y,bottom:K.bottom+M+_,left:K.left+M+$},mainAxis:!N&&T==="flip",crossAxis:w==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),ce=He?null:TI({...J,rootBoundary:D,mainAxis:w!=="none",crossAxis:pe,limiter:c||N?void 0:wI(Pe=>{if(!se.current)return{};let{width:kt,height:ea}=se.current.getBoundingClientRect(),va=Io(qa(Pe.placement)),Tn=va==="y"?kt:ea,uo=va==="y"?K.left+K.right:K.top+K.bottom;return{offset:Tn/2+uo/2}})},[J,c,N,D,K,w]);T==="shift"||w==="shift"||i==="center"?be.push(ce,Ae):be.push(Ae,ce),be.push(AI({...J,apply({elements:{floating:Pe},availableWidth:kt,availableHeight:ea,rects:va}){if(!O.current)return;let Tn=Pe.style;Tn.setProperty(y_,`${kt}px`),Tn.setProperty(S_,`${ea}px`);let uo=Be(Pe).devicePixelRatio||1,{x:ku,y:gi,width:Ks,height:Gn}=va.reference,We=(Math.round((ku+Ks)*uo)-Math.round(ku*uo))/uo,Rt=(Math.round((gi+Gn)*uo)-Math.round(gi*uo))/uo;Tn.setProperty(d_,`${We}px`),Tn.setProperty(m_,`${Rt}px`)}}),c_(Pe=>({element:se.current||ve(Pe.elements.floating).createElement("div"),padding:se.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Pe){let{elements:{floating:kt},middlewareData:ea,placement:va,platform:Tn,rects:uo,y:ku}=Pe,gi=qa(va),Ks=gn(va),Gn=Io(gi)==="y",We=se.current,Rt=typeof r=="function"?r(b_(Pe,n,E)):r,Dr;if(!We&&Ks&&Math.abs(Gn?ea.shift?.x||0:ea.shift?.y||0)<=1)Dr=Ks==="start"===(Gn&&Tn.isRTL?.(kt)===!0)?"100%":"0%";else{let Qs=Gn?ea.arrow?.x||0:ea.arrow?.y||0,id=Gn?We?.clientWidth||0:We?.clientHeight||0;Dr=`${Qs+id/2}px`}let Zs=gi==="top"||gi==="left"?`calc(100% + ${Rt}px)`:`${-Rt}px`;return pe&&Gn&&Math.abs(ea.shift?.y||0)>Rt&&(Zs=`${uo.reference.y+uo.reference.height/2-ku}px`),kt.style.setProperty(p_,Gn?`${Dr} ${Zs}`:`${Zs} ${Dr}`),{}}},f_,S),U(()=>{!b&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,y]);let De=Xo.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Ke,elements:_e,x:Dt,y:ne,middlewareData:fe,update:oe,placement:W,context:Se,isPositioned:Ze,floatingStyles:Oa}=t({rootContext:y,open:p?b:void 0,placement:G,middleware:be,strategy:o,whileElementsMounted:p?void 0:(...Pe)=>Fp(...Pe,De),nodeId:x,externalTree:R}),{sideX:Wa,sideY:Xt}=fe.adaptiveOrigin||Hf,Ft=Ze?o:"fixed",Wo=Xo.useMemo(()=>{let Pe;return Ze?S?Pe={position:Ft,[Wa]:Dt,[Xt]:ne}:Pe={...Oa,position:Ft}:Pe={position:Ft,top:0,left:0},Pe[y_]="100vw",Pe[S_]="100vh",Ze||(Pe.opacity=0),Pe},[S,Ft,Wa,Dt,Xt,ne,Oa,Ze]),Ao=Xo.useRef(null);U(()=>{if(!b)return;let Pe=H.current,kt=typeof Pe=="function"?Pe():Pe,va=(v_(kt)?kt.current:kt)||null||null;va!==Ao.current&&(Ke.setPositionReference(va),Ao.current=va)},[b,Ke,F,H]),Xo.useEffect(()=>{if(!b)return;let Pe=H.current;typeof Pe!="function"&&v_(Pe)&&Pe.current!==Ao.current&&(Ke.setPositionReference(Pe.current),Ao.current=Pe.current)},[b,Ke,F,H]),Xo.useEffect(()=>{if(p&&b&&_e.reference&&_e.floating)return Fp(_e.reference,_e.floating,oe,De)},[p,b,_e,oe,De]);let lo=qa(W),In=C_(n,lo,E),qn=gn(W)||"center",hi=!!fe.hide?.referenceHidden;U(()=>{v&&b&&Ze&&lo!==q&&C(lo)},[v,b,Ze,lo,q]);let Ko=Xo.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),ba=fe.arrow?.centerOffset!==0;return Xo.useMemo(()=>({positionerStyles:Wo,arrowStyles:Ko,arrowRef:se,arrowUncentered:ba,side:In,align:qn,physicalSide:lo,anchorHidden:hi,refs:Ke,context:Se,isPositioned:Ze,update:oe}),[Wo,Ko,se,ba,In,qn,lo,hi,Ke,Se,Ze,oe])}function v_(e){return e!=null&&"current"in e}function qf(e){return e==="starting"?CV:Ye}function ub(e,t,{styles:a,transitionStatus:o,props:n,refs:r,hidden:i,inert:s=!1}){let l={...a};return s&&(l.pointerEvents="none"),Q("div",e,{state:t,ref:r,props:[{role:"presentation",hidden:i,style:l},qf(o),n],stateAttributesMapping:Vn})}var L_=I(Z(),1),R_=cb.forwardRef(function(t,a){let{render:o,className:n,anchor:r,positionMethod:i="absolute",side:s="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:y=!1,collisionAvoidance:b=RV,style:g,...h}=t,x=vn(),S=n_(),v=x.useState("open"),R=x.useState("mounted"),L=x.useState("trackCursorAxis"),C=x.useState("disableHoverablePopup"),T=x.useState("floatingRootContext"),w=x.useState("instantType"),A=x.useState("transitionStatus"),N=x.useState("adaptiveOrigin"),D=lb({anchor:r,positionMethod:i,floatingRootContext:T,mounted:R,side:s,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:y,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:N}),V=cb.useMemo(()=>({open:v,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L!=="none"?"tracking-cursor":w}),[v,D.side,D.align,D.anchorHidden,L,w]),k=ub(t,V,{styles:D.positionerStyles,transitionStatus:A,props:h,refs:[a,x.useStateSetter("positionerElement")],hidden:!R,inert:!v||L==="both"||C});return(0,L_.jsx)(pT.Provider,{value:D,children:k})});var I_=I(P(),1);var T_=I_.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=vn(),{side:l,align:u}=Uf(),c=s.useState("open"),d=s.useState("instantType"),f=s.useState("transitionStatus"),m=s.useState("popupProps"),p=s.useState("floatingRootContext"),y=s.useState("disabled"),b=s.useState("closeDelay");xa({open:c,ref:s.context.popupRef,onComplete(){c&&s.context.onOpenChangeComplete?.(!0)}}),jI(p,{enabled:!y,closeDelay:b});let g=s.useStateSetter("popupElement");return Q("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[a,s.context.popupRef,g],props:[Ef,m,qf(f),i],stateAttributesMapping:xf})});var w_=I(P(),1);var E_=w_.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=vn(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Uf(),m=s.useState("open"),p=s.useState("instantType");return Q("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[a,l],props:[{style:f,"aria-hidden":!0},i],stateAttributesMapping:Vn})});var A_=I(P(),1);var hT=I(Z(),1),D_=function(t){let{delay:a,closeDelay:o,timeout:n=400}=t,r=A_.useMemo(()=>({open:a,close:o}),[a,o]);return(0,hT.jsx)(fT.Provider,{value:a,children:(0,hT.jsx)(iI,{delay:r,timeoutMs:n,children:t.children})})};var U_=I(P(),1);var Pa=I(P(),1),F_=I(Xn(),1);var P_=I(P(),1);function fb(e){let[t,a]=P_.useState({current:e,previous:null});return Object.is(e,t.current)||a({current:e,previous:t.current}),t.previous}var Gf=I(P(),1);var Kp="--popup-width",Zp="--popup-height";function k_(e){let{popupElement:t,positionerElement:a,content:o,mounted:n,onMeasureLayout:r,onMeasureLayoutComplete:i,side:s,direction:l}=e,u=wf(t,!0),c=no(),d=Gf.useRef(null),f=Gf.useRef(!0),m=Gf.useRef(Me),p=j(r),y=j(i),b=Gf.useMemo(()=>o9(s,l),[s,l]);U(()=>{if(!n){m.current=Me,f.current=!0,d.current=null;return}if(!t||!a)return;m.current=O_(t,b),gT(t,"auto");let g=mb(t,"position","static"),h=mb(t,"transform","none"),x=mb(t,"scale","1"),S=O_(a,{[ib]:"max-content",[sb]:"max-content"});function v(){g(),h(),S()}function R(){v(),x()}if(p?.(),f.current||d.current===null){db(a,"max-content");let w=Bf(t);return d.current=w,db(a,w),R(),y?.(null,w),f.current=!1,()=>{m.current(),m.current=Me}}db(a,"max-content");let L=d.current,C=Bf(t);d.current=C,gT(t,L),R(),y?.(L,C),db(a,C);let T=new AbortController;return c.request(()=>{gT(t,C),u(()=>{t.style.setProperty(Kp,"auto"),t.style.setProperty(Zp,"auto")},T.signal)}),()=>{T.abort(),c.cancel(),m.current(),m.current=Me}},[o,t,a,u,c,n,p,y,b])}function o9(e,t){let a=e==="top",o=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!a&&!o?Ye:{position:"absolute",[a?"bottom":"top"]:"0",[o?"right":"left"]:"0"}}function mb(e,t,a){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,a),()=>{e.style.setProperty(t,o)}}function O_(e,t){let a=[];for(let[o,n]of Object.entries(t))a.push(mb(e,o,n));return a.length?()=>{a.forEach(o=>o())}:Me}function gT(e,t){let a=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(Kp,a),e.style.setProperty(Zp,o)}function db(e,t){let a=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(h_,a),e.style.setProperty(g_,o)}var N_={name:"adaptiveOrigin",async fn(e){let{x:t,y:a,rects:{floating:o},elements:{floating:n},platform:r,strategy:i,placement:s}=e,l=Be(n),u=l.getComputedStyle(n);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:a,data:Hf};let d=await r.getOffsetParent?.(n),f={width:0,height:0};if(i==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let h=ve(n);f={width:h.documentElement.clientWidth,height:h.documentElement.clientHeight}}else await r.isElement?.(d)&&(f=await r.getDimensions(d));let m=qa(s),p=t,y=a;m==="left"&&(p=f.width-(t+o.width)),m==="top"&&(y=f.height-(a+o.height));let b=m==="left"?"right":Hf.sideX,g=m==="top"?"bottom":Hf.sideY;return{x:p,y,data:{sideX:b,sideY:g}}}};var B_="data-activation-direction";var jf=I(Z(),1),__={activationDirection:e=>e?{[B_]:e}:null};function z_(e){let{store:t,side:a,children:o}=e,n=Tr(),r=t.useState("activeTriggerElement"),i=t.useState("activeTriggerId"),s=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=fb(s?r:null),m=s9(i,l),p=Pa.useRef(null),[y,b]=Pa.useState(null),[g,h]=Pa.useState(null),x=Pa.useRef(null),S=Pa.useRef(null),v=wf(x,!0),R=no(),L=Pa.useRef(null),[C,T]=Pa.useState(null),[w,A]=Pa.useState(!1);U(()=>(t.set("adaptiveOrigin",N_),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let N=j(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),D=j(B=>{x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),B&&T(B)}),V=j(()=>{L.current?.abort();let B=new AbortController;L.current=B,v(()=>{b(null),T(null),p.current=null},B.signal)}),k=Pa.useRef(null);U(()=>{(!s||!u)&&(k.current=null)},[s,u]),U(()=>{if(r&&f&&r!==f&&k.current!==r&&p.current){b(p.current),A(!0);let B=i9(f,r);h(B),k.current=r}},[r,f]),U(()=>{y!=null&&(L.current?.abort(),A(!0),R.request(()=>{F_.flushSync(()=>{A(!1)}),V()}))},[m,y,V,R]),U(()=>{let B=x.current;if(!B)return;let E=ve(B).createElement("div");for(let q of Array.from(B.childNodes))E.appendChild(q.cloneNode(!0));p.current=E});let F=y!=null,H;F?H=(0,jf.jsxs)(Pa.Fragment,{children:[(0,jf.jsx)("div",{"data-previous":!0,inert:Fs(!0),ref:S,style:{...C?{[Kp]:`${C.width}px`,[Zp]:`${C.height}px`}:null,position:"absolute"},"data-ending-style":w?void 0:""},"previous"),(0,jf.jsx)("div",{"data-current":!0,ref:x,"data-starting-style":w?"":void 0,children:o},m)]}):H=(0,jf.jsx)("div",{"data-current":!0,ref:x,children:o},m),U(()=>{let B=S.current;!B||!y||B.replaceChildren(...Array.from(y.childNodes))},[y]),k_({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:N,onMeasureLayoutComplete:D,side:a,direction:n});let O={activationDirection:r9(g),transitioning:F};return{children:H,state:O}}function r9(e){if(e)return`${V_(e.horizontal,5,"right","left")} ${V_(e.vertical,5,"down","up")}`}function V_(e,t,a,o){return e>t?a:e<-t?o:""}function i9(e,t){let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n={x:a.left+a.width/2,y:a.top+a.height/2},r={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:r.x-n.x,vertical:r.y-n.y}}function s9(e,t){let[a,o]=Pa.useState(0),n=Pa.useRef(e),r=Pa.useRef(t),i=Pa.useRef(!1);return U(()=>{let s=n.current,l=r.current,u=e!==s,c=t!==l;u?(o(d=>d+1),i.current=!c):i.current&&c&&(o(d=>d+1),i.current=!1),n.current=e,r.current=t},[e,t]),`${e??"current"}-${a}`}var H_=U_.forwardRef(function(t,a){let{render:o,className:n,style:r,children:i,...s}=t,l=vn(),u=Uf(),c=l.useState("instantType"),{children:d,state:f}=z_({store:l,side:u.side,children:i}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return Q("div",t,{state:m,ref:a,props:[s,{children:d}],stateAttributesMapping:__})});var Qp=class extends If{constructor(){super(ZF(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function q_(){return new Qp}var ci=I(Z(),1);function G_({delay:e=0,...t}){return(0,ci.jsx)(wr.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function pb({...e}){return(0,ci.jsx)(wr.Root,{"data-slot":"tooltip",...e})}function hb({...e}){return(0,ci.jsx)(wr.Trigger,{"data-slot":"tooltip-trigger",...e})}function gb({className:e,side:t="top",sideOffset:a=4,align:o="center",alignOffset:n=0,children:r,...i}){return(0,ci.jsx)(wr.Portal,{children:(0,ci.jsx)(wr.Positioner,{align:o,alignOffset:n,side:t,sideOffset:a,className:"isolate z-50",children:(0,ci.jsxs)(wr.Popup,{"data-slot":"tooltip-content",className:re("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[r,(0,ci.jsx)(wr.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var Eo=I(P(),1);var j_=I(Z(),1),l9={running:{Icon:$i,cls:"text-info animate-spin"},queued:{Icon:bm,cls:"text-warning animate-pulse"},done:{Icon:Zi,cls:"text-success animate-in zoom-in-50 duration-300"},failed:{Icon:Qi,cls:"text-destructive animate-in zoom-in-50 duration-300"},timeout:{Icon:pm,cls:"text-warning animate-in zoom-in-50 duration-300"},stopped:{Icon:dm,cls:"text-muted-foreground"}};function xb({state:e,className:t}){let{Icon:a,cls:o}=l9[e];return(0,j_.jsx)(a,{className:re("size-5 shrink-0",o,t),"aria-label":e})}var cz=I(P(),1);var Mb={};ka(Mb,{Control:()=>iz,Description:()=>rz,Error:()=>oz,Item:()=>uz,Label:()=>az,Root:()=>tz,Validity:()=>lz});var Sa=I(P(),1);var yb=I(P(),1);var X_="data-valid",Y_="data-invalid";var wu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},c9={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},W_={disabled:!1,...c9},Xa={valid(e){return e===null?null:e?{[X_]:""}:{[Y_]:""}}};var f9={invalid:void 0,name:void 0,validityData:{state:wu,errors:[],error:"",value:"",initialValue:null},setValidityData:Me,disabled:void 0,setTouched:Me,setDirty:Me,setFilled:Me,setFocused:Me,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:W_,registerFieldControl:Me,validation:{getValidationProps:(e,t=Ye)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Me,getInputControl:()=>null,commit:async()=>{},change:Me}},xT=yb.createContext(f9);function $t(e=!0){let t=yb.useContext(xT);if(t.setValidityData===Me&&!e)throw new Error(ke(28));return t}var Sb=I(P(),1),d9=Sb.createContext(void 0);function K_(e=!1){let t=Sb.useContext(d9);if(!t&&!e)throw new Error(ke(86));return t}var bb=I(P(),1);var m9=bb.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Me,validationMode:"onSubmit",submitCountRef:{current:0}});function Cn(){return bb.useContext(m9)}var zs=I(P(),1);var vb=I(P(),1);var yT=vb.createContext({controlId:void 0,registerControlId:Me,resetControlId:Me,labelId:void 0,setLabelId:Me,messageIds:[],setMessageIds:Me,getDescriptionProps:e=>e});function ya(){return vb.useContext(yT)}var Z_=I(Z(),1),Cb=function(t){let a=Et(),[o,n]=zs.useState(a),[r,i]=zs.useState(),[s,l]=zs.useState([]),u=o===void 0?a:o,c=Je(()=>new Map),{messageIds:d}=ya(),f=j((b,g)=>{let h=c.current;g===void 0?h.delete(b):h.set(b,g),n(x=>{if(h.size===0)return x;let S;for(let v of h.values()){if(v===x)return x;S===void 0&&(S=v)}return S})}),m=j(()=>{c.current.size===0&&n(a)}),p=zs.useCallback(b=>{let g=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return g.push(...d,...s),{...b,"aria-describedby":Array.from(new Set(g)).join(" ")||void 0}},[d,s]),y=zs.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:r,setLabelId:i,messageIds:s,setMessageIds:l,getDescriptionProps:p}),[u,f,m,r,i,s,l,p]);return(0,Z_.jsx)(yT.Provider,{value:y,children:t.children})};var ST=I(P(),1);function Xf(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:n,resetControlId:r}=ya(),i=Et(),s=Je(()=>Symbol()),l=ST.useRef(!1),u=ST.useRef(!1),c=j(()=>{!l.current||n===Me||(l.current=!1,n(s.current,void 0))});return U(()=>{if(!a||n===Me){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=i;else{r();return}if(d===void 0){c();return}l.current=!0,n(s.current,d)},[t,a,n,r,i,s,c]),U(()=>c,[c]),(a?o:void 0)??t??i}function Lb(e,t){let a=Et(e);return U(()=>(t(a),()=>{t(o=>o===a?void 0:o)}),[a,t]),a}function Rb(e={}){let{id:t,fallbackControlId:a,native:o=!1,setLabelId:n,focusControl:r}=e,{controlId:i,setLabelId:s}=ya(),l=j(m=>{s(m),n?.(m)}),u=Lb(t,l),c=i??a;function d(m){if(r){r(m,c);return}if(!c)return;let p=ve(m.currentTarget).getElementById(c);Ve(p)&&p9(p)}function f(m){tt(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!o&&d(m))}return o?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function p9(e){e.focus({focusVisible:!0})}var fi=I(P(),1);function Eu(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var bT=Object.keys(wu);function h9(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function Q_(e,t){let a=null;for(let o of e.keys())if(h9(o,t)){if(!o.validity.valid)return o;a??=o}return a}function J_(e){return{...wu,valid:!e,customError:e}}function vT(e){return e&&e.validationMessage?[e.validationMessage]:[]}function $_(e){let{elementRef:t,formRef:a}=Cn(),{setValidityData:o,validate:n,validityData:r,validationDebounceTime:i,invalid:s,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=ya(),y=mt(),b=fi.useRef(null),g=Je(()=>new Map).current,h=fi.useRef(0),x=fi.useRef(null),S=fi.useCallback((T,w)=>(g.set(T,w),()=>{g.delete(T)}),[g]),v=j(()=>{let T=Q_(g,t.current);return T&&g.get(T)?.controlRef.current||null}),R=j(async(T,w=!1)=>{h.current+=1;let A=h.current;function N(M,z=s){let _=f.current??m;if(_==null)return;let $=a.current.fields.get(_);if(!$)return;let Y=Eu(M,z);a.current.fields.set(_,{...$,validityData:Y})}function D(M,z){let _=M.valid===!1?z:[];return{value:T,state:M,error:_[0]??"",errors:_,initialValue:r.initialValue}}function V(M,z){let _=M.validity.customError?M.validationMessage:"",$=z.replace(/\r\n?/g,`
|
|
19
|
-
`);
|
|
20
|
-
`))):G=vT(B)}F(q,G)}),L=j((T,w=!1)=>{if(y.clear(),h.current+=1,w)return;let A=c();A&&T!==""&&i?y.start(i,()=>{R(T)}):R(T,!A)}),C=fi.useCallback((T,w={})=>Fa(p(w),u.valid===!1&&!u.disabled&&!T?{"aria-invalid":!0}:Ye),[p,u.disabled,u.valid]);return fi.useMemo(()=>({getValidationProps:C,inputRef:b,registeredInputs:g,registerInput:S,getInputControl:v,commit:R,change:L}),[C,g,S,v,R,L])}var Ib=I(P(),1);function ez(e){let{change:t,commit:a,invalid:o,markedDirtyRef:n,name:r,setRegisteredFieldName:i,registeredFieldIdRef:s,setValidityData:l,validityData:u}=e,{formRef:c}=Cn(),d=Ib.useRef(null),f=Ib.useRef(null),m=Ib.useRef(!1),p=j(()=>{let v=f.current;if(v)return v.getValue?v.getValue():v.value});function y(v){return v.value===void 0?p():v.value}let b=j(()=>{let v=f.current;if(n.current=!0,!v){a(u.value);return}a(y(v))});function g(){let v=f.current;!v||!v.id||c.current.fields.set(v.id,{getValue:p,name:r??v.name,controlRef:v.controlRef,validityData:Eu(u,o),validate:b})}function h(v=f.current?.id){v&&c.current.fields.delete(v)}function x(v){if(m.current)return;m.current=!0;let R=y(v);l(L=>L.initialValue===R?L:{...L,initialValue:R})}U(()=>{let v=f.current;!v||!v.id||(i(r?void 0:v.name),c.current.fields.set(v.id,{getValue:p,name:r??v.name,controlRef:v.controlRef,validityData:Eu(u,o),validate:b}))},[c,p,o,r,i,b,u]),U(()=>{let v=c.current.fields;return()=>{let R=f.current?.id;R&&v.delete(R)}},[c]);let S=j((v,R)=>{if(!R){d.current===v&&(d.current=null,t(void 0,!0),h(),f.current=null,i(void 0),s.current=void 0);return}let L=f.current?.id,C=d.current;C&&C!==v&&t(void 0,!0),d.current=v,f.current=R,r||i(R.name),s.current=R.id,L&&L!==R.id&&h(L),x(R),g()});return[b,S]}var Tb=I(Z(),1),g9=Sa.forwardRef(function(t,a){let{errors:o,validationMode:n,submitCountRef:r}=Cn(),{render:i,className:s,validate:l,validationDebounceTime:u=0,validationMode:c=n,name:d,disabled:f=!1,invalid:m,dirty:p,touched:y,actionsRef:b,style:g,...h}=t,x=K_(!0)?.disabled,S=j(l||(()=>null)),v=x||f,[R,L]=Sa.useState(!1),[C,T]=Sa.useState(!1),[w,A]=Sa.useState(!1),[N,D]=Sa.useState(!1),V=p??C,k=y??R,F=Sa.useRef(V),H=Sa.useRef(void 0),[O,B]=Sa.useState(),E=d??O;U(()=>{p!==void 0&&(F.current=p)},[p]);let q=j(He=>{p===void 0&&(He&&(F.current=!0),T(He))}),G=j(He=>{y===void 0&&L(He)}),K=j(()=>c==="onChange"||c==="onSubmit"&&r.current>0),M=E&&Object.hasOwn(o,E)?o[E]:null,z=!!(Array.isArray(M)?M.length:M),_=m===!0||z,[$,Y]=Sa.useState({state:wu,error:"",errors:[],value:null,initialValue:null}),J=!_&&(v?null:$.state.valid),se=Sa.useMemo(()=>({disabled:v,touched:k,dirty:V,valid:J,filled:w,focused:N}),[v,k,V,J,w,N]),ge=$_({setValidityData:Y,validate:S,validityData:$,validationDebounceTime:u,invalid:_,markedDirtyRef:F,state:se,shouldValidateOnChange:K,validationMode:c,registeredFieldIdRef:H}),[ee,te]=ez({change:ge.change,commit:ge.commit,invalid:_,markedDirtyRef:F,name:d,setRegisteredFieldName:B,registeredFieldIdRef:H,setValidityData:Y,validityData:$});Sa.useImperativeHandle(b,()=>({validate:ee}),[ee]);let ye=Sa.useMemo(()=>({invalid:_,name:E,validityData:$,setValidityData:Y,disabled:v,setTouched:G,setDirty:q,setFilled:A,setFocused:D,validationMode:c,shouldValidateOnChange:K,state:se,registerFieldControl:te,validation:ge}),[_,E,$,v,G,q,A,D,c,K,se,te,ge]),be=Q("div",t,{ref:a,state:se,props:h,stateAttributesMapping:Xa});return(0,Tb.jsx)(xT.Provider,{value:ye,children:be})}),tz=Sa.forwardRef(function(t,a){return(0,Tb.jsx)(Cb,{children:(0,Tb.jsx)(g9,{...t,ref:a})})});var Jp=I(P(),1);var wb=I(P(),1),CT=wb.createContext({disabled:!1});function Eb(){return wb.useContext(CT)}var az=Jp.forwardRef(function(t,a){let{render:o,className:n,style:r,id:i,nativeLabel:s=!0,...l}=t,u=$t(!1),c=Eb(),{labelId:d}=ya(),f={...u.state,disabled:u.disabled||c.disabled},m=Jp.useRef(null),p=Rb({id:d??i,native:s});return Q("label",t,{ref:[a,m],state:f,props:[p,l],stateAttributesMapping:Xa})});var Au=I(P(),1);var LT=I(Z(),1),x9={...Xa,...za},oz=Au.forwardRef(function(t,a){let{render:o,id:n,className:r,match:i,style:s,...l}=t,u=Et(n),{validityData:c,state:d,name:f}=$t(!1),{setMessageIds:m}=ya(),{errors:p}=Cn(),y=f&&Object.hasOwn(p,f)?p[f]:null,b=!!(Array.isArray(y)?y.length:y),g=typeof i=="string",h=!1;i===!0?h=!0:d.disabled?h=!1:g?h=!!c.state[i]:h=b||c.state.valid===!1;let{mounted:x,transitionStatus:S,setMounted:v}=wo(h);U(()=>{if(!(!h||!u))return m(F=>F.concat(u)),()=>{m(F=>F.filter(H=>H!==u))}},[h,u,m]);let R=Au.useRef(null),[L,C]=Au.useState(null),[T,w]=Au.useState(null),A=c.error;!g&&b?A=y:c.errors.length>1&&(A=c.errors);let N=A;Array.isArray(A)&&(N=A.length>1?(0,LT.jsx)("ul",{children:A.map(F=>(0,LT.jsx)("li",{children:F},F))}):A[0]);let D=Array.isArray(A)?JSON.stringify(A):A;h&&D!==T&&(w(D),C(N)),xa({open:h,ref:R,onComplete(){h||v(!1)}});let V={...d,transitionStatus:S},k=Q("div",t,{ref:[a,R],state:V,props:[{id:u,children:h?N:L},l],stateAttributesMapping:x9,enabled:x});return x?k:null});var nz=I(P(),1);var rz=nz.forwardRef(function(t,a){let{render:o,id:n,className:r,style:i,...s}=t,l=Et(n),u=$t(!1),c=Eb(),{setMessageIds:d}=ya(),f={...u.state,disabled:u.disabled||c.disabled};return U(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(y=>y!==l))}},[l,d]),Q("p",t,{ref:a,state:f,props:[{id:l},s],stateAttributesMapping:Xa})});var Db=I(P(),1);function Ab(e,t,a,o,n=!0,r){let{registerFieldControl:i}=$t(),s=Je(()=>Symbol());U(()=>{let l=s.current;if(!n){i(l,void 0);return}i(l,{controlRef:e,getValue:o,id:t,name:r,value:a})},[e,n,o,t,r,i,s,a]),U(()=>{let l=s.current;return()=>{i(l,void 0)}},[i,s])}var iz=Db.forwardRef(function(t,a){let{render:o,className:n,id:r,name:i,value:s,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:y,disabled:b,setTouched:g,setDirty:h,validityData:x,setFocused:S,setFilled:v,validationMode:R,validation:L}=$t(),{clearErrors:C,elementRef:T,submitCountRef:w}=Cn(),A=b||l,N=y??i,D={...p,disabled:A},{labelId:V}=ya(),k=Xf({id:r}),[F]=Ru({controlled:s,default:c,name:"FieldControl",state:"value"}),H=s!==void 0,O=H?F:void 0,B=O==null?void 0:String(O),E=j(()=>L.inputRef.current?.value);Ab(L.inputRef,k,B,E,!A,i),U(()=>{let M=B??L.inputRef.current?.value;M!==void 0&&v(M!=="")},[B,L.inputRef,v]),Of(B,()=>{B!==void 0&&(C(N),h(B!==(x.initialValue??"")),L.change(B))});let q=Db.useRef(null),G=mt();return U(()=>{d&&q.current===Mt(ve(q.current))&&S(!0)},[d,S]),Q("input",t,{ref:[a,q],state:D,props:[{id:k,disabled:A,name:N,ref:L.inputRef,"aria-labelledby":V,autoFocus:d,...H?{value:O}:{defaultValue:c},onChange(M){let z=M.currentTarget.value,_=ue(ae.none,M.nativeEvent);u?.(z,_),!H&&(h(z!==(x.initialValue??"")),v(z!==""),!M.nativeEvent.defaultPrevented&&!_.isCanceled&&(C(N),L.change(z)))},onFocus(){S(!0)},onBlur(M){if(g(!0),S(!1),R==="onBlur"){let z=M.currentTarget.value;L.commit(z),H&&queueMicrotask(()=>{let _=L.inputRef.current?.value;_!==void 0&&_!==z&&_!==(x.initialValue??"")&&L.commit(_)})}},onKeyDown(M){if(M.currentTarget.tagName==="INPUT"&&M.key==="Enter"){g(!0);let z=M.currentTarget.value,_=M.currentTarget.form;if(_&&_===T.current&&!M.defaultPrevented){let $=M.currentTarget,Y=w.current;G.start(0,()=>{w.current===Y&&L.commit($.value)})}else L.commit(z)}}},m,M=>L.getValidationProps(A,M)],stateAttributesMapping:Xa})});var $p=I(P(),1);var sz=I(Z(),1),lz=function(t){let{children:a}=t,{validityData:o,invalid:n}=$t(!1),r=$p.useMemo(()=>Eu(o,n),[o,n]),i=r.state.valid===!1,{transitionStatus:s}=wo(i),l=$p.useMemo(()=>({...r,validity:r.state,transitionStatus:s}),[r,s]);return(0,sz.jsx)($p.Fragment,{children:a(l)})};var Pb=I(P(),1);var RT=I(Z(),1),uz=Pb.forwardRef(function(t,a){let{render:o,className:n,style:r,disabled:i=!1,...s}=t,{state:l,disabled:u}=$t(!1),c=u||i,d={...l,disabled:c},f=Pb.useMemo(()=>({disabled:c}),[c]),m=Q("div",t,{ref:a,state:d,props:s,stateAttributesMapping:Xa});return(0,RT.jsx)(Cb,{children:(0,RT.jsx)(CT.Provider,{value:f,children:m})})});var fz=I(Z(),1),IT=cz.forwardRef(function(t,a){return(0,fz.jsx)(Mb.Control,{ref:a,...t})});var dz=I(Z(),1);function Ob({className:e,type:t,...a}){return(0,dz.jsx)(IT,{type:t,"data-slot":"input",className:re("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}var Ya={};ka(Ya,{Arrow:()=>rU,Backdrop:()=>Uz,Group:()=>hU,GroupLabel:()=>xU,Icon:()=>Bz,Item:()=>eU,ItemIndicator:()=>aU,ItemText:()=>oU,Label:()=>Az,List:()=>Jz,Popup:()=>Zz,Portal:()=>_z,Positioner:()=>Gz,Root:()=>Iz,ScrollDownArrow:()=>uU,ScrollUpArrow:()=>dU,Separator:()=>bU,Trigger:()=>Mz,Value:()=>kz});var Ot=I(P(),1);var mz=I(P(),1);function pz(e){let t=mz.useRef(!0);t.current&&(t.current=!1,e())}var Us=I(P(),1),TT=Us.createContext(void 0),wT=Us.createContext(void 0),ET=Us.createContext(void 0);function Ct(){let e=Us.useContext(TT);if(e===void 0)throw new Error(ke(60));return e}function Hs(){let e=Us.useContext(wT);if(e===void 0)throw new Error(ke(101));return e}function kb(){let e=Us.useContext(ET);if(e===void 0)throw new Error(ke(61));return e}function hz(e,t,a=Object.is){let{length:o}=e;if(o!==t.length)return!1;for(let n=0;n<o;n+=1)if(!a(e[n],t[n]))return!1;return!0}var DT=(e,t)=>Object.is(e,t);function di(e,t,a){return e==null||t==null?Object.is(e,t):a(e,t)}function gz(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!hz(e,t,(o,n)=>di(o,n,a)):e!==t}function AT(e,t,a){return e?e.some(o=>o===void 0?!1:di(t,o,a)):!1}function eh(e,t,a){return e?e.findIndex(o=>o===void 0?!1:di(o,t,a)):-1}function y9(e,t){if(t!==DT)return o=>AT(e,o,t);let a=new Set(e);return a.delete(void 0),o=>a.has(o)&&(o!==0||e.some(n=>Object.is(o,n)))}function PT(e,t,a,o){let n=o&&Array.isArray(t)?e.findIndex(y9(t,a)):eh(e,t,a);return n===-1?null:n}function xz(e,t,a,o,n,r){return AT(o,t,n)?r!=null&&e>r&&AT(o,a[r],n)?r:e:e===r?PT(a,o,n,!0):r}function yz(e,t,a){return e.filter(o=>!di(t,o,a))}var Sz=I(P(),1);function Nb(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var bz=I(Z(),1);function S9(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function vz(e){return S9(e?.[0])}function b9(e){return vz(e)?e.flatMap(t=>t.items):e}function Cz(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(vz(t)){for(let a of t)for(let o of a.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(let a of t)if(a&&a.value==null&&a.label!=null)return!0;return!1}function MT(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Nb(e)}function qs(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Nb(e.value):Nb(e)}function OT(e,t,a){function o(){return MT(e,a)}if(a&&e!=null)return a(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??o();if(Array.isArray(t)){let r=b9(t);if(e==null||typeof e!="object"){let i=r.find(s=>s.value===e);return i&&i.label!=null?i.label:o()}if("value"in e){let i=r.find(s=>s&&s.value===e.value);if(i&&i.label!=null)return i.label}}return o()}function Lz(e,t,a){return e.reduce((o,n,r)=>(r>0&&o.push(", "),o.push((0,bz.jsx)(Sz.Fragment,{children:OT(n,t,a)},r)),o),[])}var Rz={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:a,itemToStringValue:o}=e;return t==null?!1:a&&Array.isArray(t)?t.length>0:qs(t,o)!==""},hasNullItemLabel:(e,t)=>t?Cz(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let a=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(n=>di(t,n,a)):di(t,o,a)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function Er(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}var Yo=1;function Yf(e,t){return Math.max(0,e-t)}function Wf(e,t){if(t<=0)return 0;let a=Er(e,0,t),o=a,n=t-a,r=o<=Yo,i=n<=Yo;return r&&i?o<=n?0:t:r?0:i?t:a}var Du=I(Z(),1);function Iz(e){let{id:t,value:a,defaultValue:o=null,onValueChange:n,open:r,defaultOpen:i=!1,onOpenChange:s,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:y,inputRef:b,onOpenChangeComplete:g,items:h,multiple:x=!1,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:R=DT,highlightItemOnHover:L=!0,children:C}=e,{clearErrors:T}=Cn(),{setDirty:w,setTouched:A,setFocused:N,validityData:D,setFilled:V,name:k,disabled:F,validation:H,validationMode:O}=$t(),B=Xf({id:t}),E=F||d,q=k??l,[G,K]=Ru({controlled:a,default:x?o??So:o,name:"Select",state:"value"}),[M,z]=Ru({controlled:r,default:i,name:"Select",state:"open"}),_=Ot.useRef([]),$=Ot.useRef([]),Y=Ot.useRef(null),J=Ot.useRef(null),se=Ot.useRef(0),ge=Ot.useRef(null),ee=Ot.useRef([]),te=Ot.useRef(!1),ye=Ot.useRef(null),be=Ot.useRef(null),He=Ot.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=Ot.useRef(!1),Ae=Ot.useRef(G),{mounted:ce,setMounted:De,transitionStatus:Ke}=wo(M),{openMethod:_e,triggerProps:Dt}=lF(M),ne=Je(()=>new bn({id:B,labelId:void 0,modal:p,multiple:x,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:R,value:G,open:M,mounted:ce,transitionStatus:Ke,items:h,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Ye,triggerProps:Ye,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Me,setOpen:Me,handleScrollArrowVisibility:Me,onOpenChangeComplete:Me,listRef:_,popupRef:Y,scrollHandlerRef:J,scrollArrowsMountedCountRef:se,valueRef:ge,valuesRef:ee,labelsRef:$,typingRef:te,selectionRef:He,firstItemTextRef:ye,selectedItemTextRef:be,alignItemWithTriggerActiveRef:pe,initialValueRef:Ae},Rz)).current,fe=ne.useState("activeIndex"),oe=ne.useState("selectedIndex"),W=ne.useState("triggerElement"),Se=ne.useState("positionerElement"),Ze=fb(_e),Oa=_e??Ze,Wa=Ot.useMemo(()=>x?"":qs(G,v),[x,G,v]),Xt=Ot.useMemo(()=>x&&Array.isArray(G)?G.map(We=>qs(We,v)):qs(G,v),[x,G,v]),Ft=ct(W),Wo=j(()=>Xt);Ab(Ft,B,G,Wo,!E,l);let Ao=x?Array.isArray(G)&&G.length>0:G!=null&&Wa!=="";U(()=>{V(Ao)},[Ao,V]),U(function(){let Rt=PT(ee.current,G,R,x);Rt===null&&(be.current=null),!M&&ne.set("selectedIndex",Rt)},[x,M,G,R,ne]),Of(G,()=>{T(q),w(gz(G,D.initialValue,R)),H.change(G)});let lo=j((We,Rt)=>{s?.(We,Rt),!Rt.isCanceled&&(z(We),!We&&(Rt.reason===ae.focusOut||Rt.reason===ae.outsidePress)&&(A(!0),N(!1),O==="onBlur"&&H.commit(G)))}),In=j(()=>{De(!1),ne.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),g?.(!1)});xa({enabled:!y,open:M,ref:Y,onComplete(){M||In()}}),Ot.useImperativeHandle(y,()=>({unmount:In}),[In]);let qn=j((We,Rt)=>{n?.(We,Rt),!Rt.isCanceled&&K(We)}),hi=j(We=>{let Rt=Yf(We.scrollHeight,We.clientHeight),Dr=Wf(We.scrollTop,Rt),Zs=Dr>0,Qs=Dr<Rt;ne.set("scrollUpArrowVisible",Zs),ne.set("scrollDownArrowVisible",Qs)}),Ko=zI({open:M,onOpenChange:lo,elements:{reference:W,floating:Se}}),ba=Bp(Ko,{enabled:!E,event:"mousedown"}),Pe=Su(Ko),kt=WI(Ko,{enabled:!E,listRef:_,activeIndex:fe,selectedIndex:oe,disabledIndices:So,onNavigate(We){We===null&&!M||ne.set("activeIndex",We)},focusItemOnHover:L}),ea=KI(Ko,{enabled:!E&&(M||!f&&!x),listRef:$,activeIndex:fe,selectedIndex:oe,disabledIndices:We=>WS(_.current[We]),onMatch(We){M?ne.set("activeIndex",We):qn(ee.current[We],ue(ae.none))},onTyping(We){te.current=We}}),va=Ot.useMemo(()=>Fa(ea.reference,kt.reference,Pe.reference,ba.reference,Dt),[ba.reference,ea.reference,kt.reference,Pe.reference,Dt]),Tn=Ot.useMemo(()=>Fa(Ef,ea.floating,kt.floating,Pe.floating),[ea.floating,kt.floating,Pe.floating]),uo=kt.item??Ye;ne.useContextCallback("setValue",qn),ne.useContextCallback("setOpen",lo),ne.useContextCallback("handleScrollArrowVisibility",hi),ne.useContextCallback("onOpenChangeComplete",g),pz(()=>{ne.update({popupProps:Tn,triggerProps:va})}),ne.useSyncedValues({id:B,modal:p,multiple:x,value:G,open:M,mounted:ce,transitionStatus:Ke,popupProps:Tn,triggerProps:va,items:h,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:R,openMethod:Oa});let ku=Ot.useMemo(()=>({disabled:E,readOnly:f,required:m,multiple:x,highlightItemOnHover:L,itemProps:uo}),[E,f,m,x,L,uo]),gi=ln(b,H.inputRef),Ks=x?void 0:q,Gn=Ot.useMemo(()=>!x||!Array.isArray(G)||!q?null:G.map(We=>{let Rt=qs(We,v);return(0,Du.jsx)("input",{type:"hidden",form:u,name:q,value:Rt,disabled:E},Rt)}),[x,G,u,q,v,E]);return(0,Du.jsxs)(TT.Provider,{value:ne,children:[(0,Du.jsx)(wT.Provider,{value:ku,children:(0,Du.jsx)(ET.Provider,{value:Ko,children:C})}),(0,Du.jsx)("input",{...H.getValidationProps(E,{onFocus(){ne.state.triggerElement?.focus({focusVisible:!0})},onChange(We){if(We.nativeEvent.defaultPrevented||E||f)return;let Rt=We.currentTarget.value,Dr=ue(ae.none,We.nativeEvent);function Zs(){if(x)return;let Qs=Rt.toLowerCase(),id=ee.current.findIndex(tv=>qs(tv,v).toLowerCase()===Qs||MT(tv,S).toLowerCase()===Qs);id===-1&&(id=ee.current.findIndex((tv,JU)=>{let ZT=$.current[JU];return ZT!=null&&ZT.toLowerCase()===Qs}));let KT=ee.current[id];KT!=null&&qn(KT,Dr)}ne.set("forceMount",!0),queueMicrotask(Zs)}}),id:B&&Ks==null?`${B}-hidden-input`:void 0,form:u,name:Ks,autoComplete:c,value:Wa,disabled:E,required:m&&!(x&&Ao),readOnly:f,ref:gi,style:q?aV:bf,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Gn]})}var Ez=I(P(),1);function Tz(e){return e==null?void 0:`${e}-label`}function wz(e,t){return e??t}var Az=Ez.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=i;delete s.id;let l=$t(),u=Ct(),c=u.useState("triggerElement"),d=u.useState("id"),f=Tz(d),m=Rb({id:f,fallbackControlId:c?.id??d,setLabelId(p){let y=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",y)}});return Q("div",t,{ref:a,state:l.state,props:[m,i],stateAttributesMapping:Xa})});var Kf=I(P(),1);var Bb=5;function Dz(e,t){let a=v9(t);return e.clientX>=a.left-Bb&&e.clientX<=a.right+Bb&&e.clientY>=a.top-Bb&&e.clientY<=a.bottom+Bb}function v9(e){let t=e.getBoundingClientRect(),a=Be(e);if(nt.env.jsdom)return t;let o=a.getComputedStyle(e,"::before"),n=a.getComputedStyle(e,"::after");if(!(o.content!=="none"||n.content!=="none"))return t;let i=parseFloat(o.width)||0,s=parseFloat(o.height)||0,l=parseFloat(n.width)||0,u=parseFloat(n.height)||0,c=Math.max(t.width,i,l),d=Math.max(t.height,s,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var kAe=uu.popupOpen,NAe=uu.pressed;var Pz="data-popup-side";var L9=400,R9={...OB,...Xa,popupSide:e=>e?{[Pz]:e}:null,value:()=>null},Mz=Kf.forwardRef(function(t,a){let{render:o,className:n,id:r,disabled:i=!1,nativeButton:s=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:y}=$t(),{labelId:b}=ya(),g=Ct(),{readOnly:h,required:x,disabled:S}=Hs(),v=y||S||i,R=g.useState("open"),L=g.useState("mounted"),C=g.useState("value"),T=g.useState("triggerProps"),w=g.useState("positionerElement"),A=g.useState("listElement"),N=g.useState("popupSide"),D=g.useState("id"),V=g.useState("labelId"),k=g.useState("hasSelectedValue"),F=L&&w?N:null,H=r??D,O=wz(b,V);Xf({id:r});let B=ct(w),E=Kf.useRef(null),{getButtonProps:q,buttonRef:G}=Go({disabled:v,native:s}),K=g.useStateSetter("triggerElement"),M=mt(),z=mt(),_=mt();Kf.useEffect(()=>{if(R)return _.start(L9,()=>{g.context.selectionRef.current.allowUnselectedMouseUp=!0,g.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{_.clear()};g.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},z.clear()},[R,g,z,_]);let $=Fa(T,{id:H,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":R?A?.id??mu(w)?.id:void 0,"aria-labelledby":O,"aria-readonly":h||void 0,"aria-required":x||void 0,tabIndex:v?-1:0,onFocus(se){d(!0),R&&g.context.alignItemWithTriggerActiveRef.current&&g.context.setOpen(!1,ue(ae.none,se.nativeEvent)),M.start(0,()=>{g.set("forceMount",!0)})},onBlur(se){le(w,se.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(C))},onMouseDown(se){if(R)return;let ge=ve(se.currentTarget);function ee(te){if(!E.current)return;let ye=te.target;le(E.current,ye)||le(B.current,ye)||Dz(te,E.current)||g.context.setOpen(!1,ue(ae.cancelOpen,te))}z.start(0,()=>{ge.addEventListener("mouseup",ee,{once:!0})})}},u,q),Y=m.getValidationProps(v,$);Y.role="combobox";let J={...p,open:R,disabled:v,value:C,readOnly:h,popupSide:F,placeholder:!k};return Q("button",t,{ref:[a,E,G,K],state:J,stateAttributesMapping:R9,props:Y})});var Oz=I(P(),1);var I9={value:()=>null},kz=Oz.forwardRef(function(t,a){let{className:o,render:n,children:r,placeholder:i,style:s,...l}=t,u=Ct(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&i!=null&&r==null,y=u.useState("hasNullItemLabel",p),b={value:c,placeholder:!m},g=null;return typeof r=="function"?g=r(c):r!=null?g=r:p&&!y?g=i:Array.isArray(c)?g=Lz(c,d,f):g=OT(c,d,f),Q("span",t,{state:b,ref:[a,u.context.valueRef],props:[{children:g},l],stateAttributesMapping:I9})});var Nz=I(P(),1);var Bz=Nz.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,u={open:Ct().useState("open")};return Q("span",t,{state:u,ref:a,props:[{"aria-hidden":!0,children:"\u25BC"},i],stateAttributesMapping:gf})});var Vz=I(P(),1);var Fz=I(Z(),1),_z=Vz.forwardRef(function(t,a){let o=Ct(),n=o.useState("mounted"),r=o.useState("forceMount");return n||r?(0,Fz.jsx)(Mp,{ref:a,...t}):null});var zz=I(P(),1);var T9={...Vn,...za},Uz=zz.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=Ct(),l=s.useState("open"),u=s.useState("mounted"),c=s.useState("transitionStatus");return Q("div",t,{state:{open:l,transitionStatus:c},ref:a,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},i],stateAttributesMapping:T9})});var Ln=I(P(),1);var Vb=I(P(),1),kT=Vb.createContext(void 0);function Gs(){let e=Vb.useContext(kT);if(!e)throw new Error(ke(59));return e}function Zf(e,t){e&&Object.assign(e.style,t)}var Fb={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var Hz=I(P(),1);var w9=20;function qz(e,t,a,o){let[n,r]=Hz.useState(!1);U(()=>{if(!e||!t||a==null){r(!1);return}let i=ve(a).documentElement.clientWidth,s=a.offsetWidth;r(i>0&&s>0&&s>=i-w9)},[e,t,a]),VS(e&&(!t||n),o)}var th=I(Z(),1),E9={position:"fixed"},Gz=Ln.forwardRef(function(t,a){let{anchor:o,className:n,render:r,positionMethod:i,side:s,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:y,alignItemWithTrigger:b=!0,collisionAvoidance:g=LV,style:h,...x}=t,S=Ct(),v=kb(),R=S.useState("open"),L=S.useState("mounted"),C=S.useState("modal"),T=S.useState("value"),w=S.useState("openMethod"),A=S.useState("positionerElement"),N=S.useState("triggerElement"),D=S.useState("isItemEqualToValue"),V=S.useState("transitionStatus"),k=Ln.useRef(null),F=Ln.useRef(null),[H,O]=Ln.useState(b),B=L&&H&&w!=="touch";!L&&H!==b&&O(b),Ln.useImperativeHandle(S.context.alignItemWithTriggerActiveRef,()=>B),qz((B||C)&&R,w==="touch",A,N);let E=lb({anchor:o,floatingRootContext:v,positionMethod:i,mounted:L,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:y??B,collisionAvoidance:g,keepMounted:!0}),q=B?"none":E.side,G=B?E9:E.positionerStyles,K={open:R,side:q,align:E.align,anchorHidden:E.anchorHidden};U(()=>{S.set("popupSide",E.side)},[S,E.side]);let M=S.useStateSetter("positionerElement"),z=ub(t,K,{styles:G,transitionStatus:V,props:x,refs:[a,M],hidden:!L,inert:!R}),_=Ln.useRef(0),$=j(J=>{if(S.context.valuesRef.current.length===0)return;let se=_.current;_.current=J.size;let ge=ue(ae.none);if(se!==0&&!S.state.multiple&&T!==null&&eh(S.context.valuesRef.current,T,D)===-1){let te=S.context.initialValueRef.current,be=te!=null&&eh(S.context.valuesRef.current,te,D)!==-1?te:null;S.context.setValue(be,ge),be===null&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null)}if(se!==0&&S.state.multiple&&Array.isArray(T)){let ee=T.filter(te=>eh(S.context.valuesRef.current,te,D)!==-1);ee.length!==T.length&&(S.context.setValue(ee,ge),ee.length===0&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null))}if(R&&B){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ee={height:""};Zf(A,ee),Zf(S.context.popupRef.current,ee)}}),Y=Ln.useMemo(()=>({...E,side:q,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:O,scrollUpArrowRef:k,scrollDownArrowRef:F}),[E,q,B,O]);return(0,th.jsx)(kf,{elementsRef:S.context.listRef,labelsRef:S.context.labelsRef,onMapChange:$,children:(0,th.jsxs)(kT.Provider,{value:Y,children:[L&&C&&(0,th.jsx)(NS,{inert:Fs(!R),cutout:N}),z]})})});var Rn=I(P(),1);var jz=I(Z(),1),_b="base-ui-disable-scrollbar",ah={className:_b,getElement(e){return(0,jz.jsx)("style",{nonce:e,href:_b,precedence:"base-ui:low",children:`.${_b}{scrollbar-width:none}.${_b}::-webkit-scrollbar{display:none}`})}};var zb=I(P(),1),A9=zb.createContext(void 0);function Xz(e){let t=zb.useContext(A9);if(t===void 0&&!e)throw new Error(ke(69));return t}var NT="--transform-origin";var qb=I(Z(),1),P9={...Vn,...za},Zz=Rn.forwardRef(function(t,a){let{render:o,className:n,style:r,finalFocus:i,...s}=t,l=Ct(),{multiple:u,readOnly:c,highlightItemOnHover:d}=Hs(),f=kb(),{side:m,align:p,alignItemWithTriggerActive:y,isPositioned:b,setControlledAlignItemWithTrigger:g}=Gs(),h=Xz(!0)!=null,x=Tr(),{nonce:S,disableStyleElements:v}=jS(),R=l.useState("id"),L=l.useState("open"),C=l.useState("openMethod"),T=l.useState("mounted"),w=l.useState("popupProps"),A=l.useState("transitionStatus"),N=l.useState("triggerElement"),D=l.useState("positionerElement"),V=l.useState("listElement"),k=Rn.useRef(!1),F=Rn.useRef(!1),H=Rn.useRef({}),O=no(),B=j(K=>{if(!D||!l.context.popupRef.current||!F.current)return;let M=D.style.top==="0px",z=D.style.bottom==="0px";if(k.current||!y||!M&&!z){l.context.handleScrollArrowVisibility(K);return}let _=Wz(D),$=oh(D.getBoundingClientRect().height,"y",_),Y=ve(D),J=Be(D),se=J.getComputedStyle(D),ge=parseFloat(se.marginTop),ee=parseFloat(se.marginBottom),te=Yz(J.getComputedStyle(l.context.popupRef.current)),ye=Math.min(Y.documentElement.clientHeight-ge-ee,te),be=K.scrollTop,He=Ub(K),pe=null,Ae=_e=>{D.style.height=`${_e}px`},ce=M?He-be:be,De=Math.min($+ce,ye);if(ce<=Yo){let _e=Er(ce,0,ye-$);_e>0&&Ae($+_e),K.scrollTop=M?He:0,ye-($+_e)<=Yo&&(k.current=!0),l.context.handleScrollArrowVisibility(K);return}if(ye-De>Yo)pe=M?1/0:0;else if(z&&be<He){let _e=$+ce-ye;pe=be-(ce-_e)}let Ke=Math.ceil(De);if(Ke!==0&&Ae(Ke),pe!=null){let _e=Er(pe,0,Ub(K));Math.abs(K.scrollTop-_e)>Yo&&(K.scrollTop=_e)}Ke>=ye-Yo&&(k.current=!0),l.context.handleScrollArrowVisibility(K)});Rn.useImperativeHandle(l.context.scrollHandlerRef,()=>B,[B]),xa({open:L,ref:l.context.popupRef,onComplete(){L&&l.context.onOpenChangeComplete(!0)}});let E={open:L,transitionStatus:A,side:m,align:p};U(()=>{!D||!l.context.popupRef.current||Object.keys(H.current).length||(H.current={top:D.style.top||"0",left:D.style.left||"0",right:D.style.right,height:D.style.height,bottom:D.style.bottom,minHeight:D.style.minHeight,maxHeight:D.style.maxHeight,marginTop:D.style.marginTop,marginBottom:D.style.marginBottom})},[l,D]),U(()=>{L||y||(F.current=!1,k.current=!1,Zf(D,H.current))},[L,y,D]),U(()=>{let K=l.context.popupRef.current;if(!L||!N||!D||!K||y&&!b||l.state.transitionStatus==="ending")return;if(F.current=!0,K.style.removeProperty(NT),!y){O.request(()=>l.context.handleScrollArrowVisibility(V||K));return}let M=M9(K);try{let z=l.context.selectedItemTextRef.current;z?.isConnected||(z=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let _=l.context.valueRef.current,$=Be(D),Y=$.getComputedStyle(D),J=$.getComputedStyle(K),se=ve(N),ge=Wz(N),ee=Hb(N.getBoundingClientRect(),ge),te=Hb(D.getBoundingClientRect(),ge),ye=ee.height,be=V||K,He=be.scrollHeight,pe=parseFloat(J.borderBottomWidth),Ae=parseFloat(Y.marginTop)||10,ce=parseFloat(Y.marginBottom)||10,De=parseFloat(Y.minHeight)||100,Ke=Yz(J),_e=5,Dt=5,ne=20,fe=se.documentElement.clientHeight-Ae-ce,oe=se.documentElement.clientWidth,W=fe-ee.bottom+ye,Se,Ze=x==="rtl"?ee.right-te.width:ee.left,Oa=0;if(z&&_){let ba=Hb(_.getBoundingClientRect(),ge);Se=Hb(z.getBoundingClientRect(),ge),Ze=te.left+(x==="rtl"?ba.right-Se.right:ba.left-Se.left);let Pe=ba.top-ee.top+ba.height/2;Oa=Se.top-te.top+Se.height/2-Pe}let Wa=W+Oa+ce+pe,Xt=Math.min(fe,Wa),Ft=fe-Ae-ce,Wo=Wa-Xt,Ao=oe-Dt;D.style.left=`${Er(Ze,_e,Ao-te.width)}px`,D.style.height=`${Xt}px`,D.style.maxHeight="none",D.style.marginTop=`${Ae}px`,D.style.marginBottom=`${ce}px`,K.style.height="100%";let lo=Ub(be),In=Wo>=lo-Yo;In&&(Xt=Math.min(fe,te.height)-(Wo-lo));let qn=ee.top<ne||ee.bottom>fe-ne||Math.ceil(Xt)+Yo<Math.min(He,De),hi=($.visualViewport?.scale??1)!==1&&nt.engine.webkit;if(qn||hi){Zf(D,H.current),g(!1);return}let Ko=Math.max(De,Xt);if(In){let ba=Math.max(0,fe-Wa);D.style.top=te.height>=Ft?"0":`${ba}px`,D.style.height=`${Xt}px`,be.scrollTop=Ub(be)}else D.style.bottom="0",be.scrollTop=Wo;if(Se){let ba=te.top,Pe=te.height,kt=Se.top+Se.height/2,ea=Er(Pe>0?(kt-ba)/Pe*100:50,0,100);K.style.setProperty(NT,`50% ${ea}%`)}(Ko===fe||Xt>=Ke)&&(k.current=!0),l.context.handleScrollArrowVisibility(be),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{M()}},[l,L,D,N,y,g,O,V,d,x,b]),Rn.useEffect(()=>{if(!y||!D||!L)return;let K=Be(D);function M(z){l.context.setOpen(!1,ue(ae.windowResize,z))}return Ie(K,"resize",M)},[l,y,D,L]);let q={...V?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${R}-list`},onKeyDown(K){h&&Pf.has(K.key)&&K.stopPropagation()},onScroll(K){V||B(K.currentTarget)},...y&&{style:V?{height:"100%"}:Fb},className:!V&&y?ah.className:void 0},G=Q("div",t,{ref:[a,l.context.popupRef],state:E,stateAttributesMapping:P9,props:[w,q,qf(A),s]});return(0,qb.jsxs)(Rn.Fragment,{children:[!v&&ah.getElement(S),(0,qb.jsx)(kp,{context:f,modal:!1,disabled:!T,openInteractionType:C,returnFocus:i,restoreFocus:!0,children:G})]})});function Yz(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function Ub(e){return Yf(e.scrollHeight,e.clientHeight)}function Wz(e){return Vp.getScale(e)}function oh(e,t,a){return e/a[t]}function Hb(e,t){return ri({x:oh(e.x,"x",t),y:oh(e.y,"y",t),width:oh(e.width,"x",t),height:oh(e.height,"y",t)})}var Kz=[["transform","none"],["scale","1"],["translate","0 0"]];function M9(e){let{style:t}=e,a={};for(let[o,n]of Kz)a[o]=t.getPropertyValue(o),t.setProperty(o,n,"important");return()=>{for(let[o]of Kz){let n=a[o];n?t.setProperty(o,n):t.removeProperty(o)}}}var Qz=I(P(),1);var Jz=Qz.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=Ct(),{multiple:l,readOnly:u}=Hs(),{alignItemWithTriggerActive:c}=Gs(),d=s.useState("hasScrollArrows"),f=s.useState("openMethod"),p={id:`${s.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(b){s.context.scrollHandlerRef.current?.(b.currentTarget)},...c&&{style:Fb},className:d&&f!=="touch"?ah.className:void 0},y=s.useStateSetter("listElement");return Q("div",t,{ref:[a,y],props:[p,i]})});var Hn=I(P(),1);var Gb=I(P(),1),BT=Gb.createContext(void 0);function nh(){let e=Gb.useContext(BT);if(!e)throw new Error(ke(57));return e}var $z=I(Z(),1),eU=Hn.memo(Hn.forwardRef(function(t,a){let{render:o,className:n,style:r,value:i=null,label:s,disabled:l=!1,nativeButton:u=!1,...c}=t,d=Hn.useRef(null),f=Nf({guess:!0,label:s,textRef:d}),m=Ct(),{itemProps:p,multiple:y,disabled:b,readOnly:g}=Hs(),h=b||l,x=m.useState("isActive",f.index),S=m.useState("open"),v=m.useState("isSelected",i),R=m.useState("isSelectedByFocus",f.index),L=m.useState("isItemEqualToValue"),C=f.index,T=Hn.useRef(null);U(()=>{let E=m.context.valuesRef.current;return E[C]=i,()=>{delete E[C]}},[C,i,m]),U(()=>{let E=m.state.value,q=m.state.selectedIndex,G=q,K;y&&Array.isArray(E)?(G=xz(C,i,m.context.valuesRef.current,E,L,q),K=G===C,C===q&&!K&&(m.context.selectedItemTextRef.current=null)):(K=E!==void 0&&di(i,E,L),K&&(G=C)),m.set("selectedIndex",G),K&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[C,y,L,m,i]);let w=Hn.useRef("mouse"),A=Hn.useRef(!1),{getButtonProps:N,buttonRef:D}=Go({disabled:h,focusableWhenDisabled:!0,native:u,composite:!0}),V={disabled:h,selected:v,highlighted:x};function k(E){if(b||g)return;let q=m.state.value;if(y){let G=Array.isArray(q)?q:[],K=v?yz(G,i,L):[...G,i];m.context.setValue(K,ue(ae.itemPress,E))}else m.context.setValue(i,ue(ae.itemPress,E)),m.context.setOpen(!1,ue(ae.itemPress,E))}function F(){m.context.selectionRef.current.dragY=0}let H={role:"option","aria-selected":v,tabIndex:S&&x?0:-1,onKeyDown(E){m.set("activeIndex",C),E.key===" "&&m.context.typingRef.current&&E.preventDefault()},onClick(E){let q=w.current!=="touch",G=E.nativeEvent.pointerType,K=q&&As(E.nativeEvent)&&(G!==void 0||x),M=q&&!K&&!A.current;A.current=!1,!(h||M)&&k(E.nativeEvent)},onPointerEnter(E){w.current=E.pointerType},onPointerMove(E){if(E.pointerType==="mouse"&&E.buttons===1){let q=m.context.selectionRef.current;q.dragY+=E.movementY,q.dragY**2>=64&&(q.allowUnselectedMouseUp=!0)}},onPointerDown(E){w.current=E.pointerType,A.current=!0,F()},onMouseUp(){if(F(),h||w.current==="touch"||A.current)return;let E=!m.context.selectionRef.current.allowSelectedMouseUp&&v,q=!m.context.selectionRef.current.allowUnselectedMouseUp&&!v;E||q||(A.current=!0,T.current?.click(),A.current=!1)}},O=Q("div",t,{ref:[D,a,f.ref,T],state:V,props:[p,H,c,N]}),B=Hn.useMemo(()=>({selected:v,index:C,textRef:d,selectedByFocus:R}),[v,C,d,R]);return(0,$z.jsx)(BT.Provider,{value:B,children:O})}));var Pu=I(P(),1);var tU=I(Z(),1),aU=Pu.forwardRef(function(t,a){let{selected:o}=nh();return t.keepMounted||o?(0,tU.jsx)(O9,{...t,ref:a}):null}),O9=Pu.memo(Pu.forwardRef((e,t)=>{let{render:a,className:o,style:n,keepMounted:r,...i}=e,{selected:s}=nh(),l=Pu.useRef(null),{transitionStatus:u,setMounted:c}=wo(s),f=Q("span",e,{ref:[t,l],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},i],stateAttributesMapping:za});return xa({batch:!0,enabled:!s,open:s,ref:l,onComplete(){s||c(!1)}}),f}));var Qf=I(P(),1);var oU=Qf.memo(Qf.forwardRef(function(t,a){let{index:o,textRef:n,selectedByFocus:r}=nh(),i=Ct(),{render:s,className:l,style:u,...c}=t,d=Qf.useCallback(m=>{m&&(o===0&&(i.context.firstItemTextRef.current=m),r&&(i.context.selectedItemTextRef.current=m))},[i,o,r]);return Q("div",t,{ref:[d,a,n],props:c})}));var nU=I(P(),1);var rU=nU.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,s=Ct(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Gs(),y={open:s.useState("open"),side:l,align:u,uncentered:f},b=Q("div",t,{state:y,ref:[c,a],props:[{style:d,"aria-hidden":!0},i],stateAttributesMapping:xf});return m?null:b});var sU=I(P(),1);var iU=I(P(),1);var jb=iU.forwardRef(function(t,a){let{render:o,className:n,style:r,direction:i,keepMounted:s,...l}=t,u=i==="up",c=Ct(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Gs(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",y=c.useState(p),b=c.useState("openMethod"),g=y&&b!=="touch",h=mt(),x=u?m:f,{mounted:S,transitionStatus:v,setMounted:R}=wo(g);U(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),xa({open:g,ref:x,onComplete(){g||R(!1)}});let T=Q("div",t,{ref:[a,x],state:{direction:i,visible:g,side:d,transitionStatus:v},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(A){if(A.movementX===0&&A.movementY===0||h.isStarted())return;c.set("activeIndex",null);function N(){let D=c.state.listElement??c.context.popupRef.current;if(!D)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(D);let V=Yf(D.scrollHeight,D.clientHeight),k=Wf(D.scrollTop,V),F=k===(u?0:V),H=c.context.listRef.current;if(k!==D.scrollTop&&(D.scrollTop=k),F){h.clear();return}if(H.length>0){let O=x.current?.offsetHeight||0;D.scrollTop=k9(H,u,k,D.clientHeight,O,V)}h.start(40,N)}h.start(40,N)},onMouseLeave(){h.clear()}},l],stateAttributesMapping:za});return S||s?T:null});function k9(e,t,a,o,n,r){if(t){let c=0,d=a+n-Yo;for(let p=0;p<e.length;p+=1){let y=e[p];if(y&&y.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?Wf(m.offsetTop-n,r):0}let i=e.length-1,s=a+o-n+Yo;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>s){i=Math.max(0,c-1);break}}let l=Math.min(e.length-1,i+1),u=e[l];return l>i&&u?Wf(u.offsetTop+u.offsetHeight-o+n,r):r}var lU=I(Z(),1),uU=sU.forwardRef(function(t,a){return(0,lU.jsx)(jb,{...t,ref:a,direction:"down"})});var cU=I(P(),1);var fU=I(Z(),1),dU=cU.forwardRef(function(t,a){return(0,fU.jsx)(jb,{...t,ref:a,direction:"up"})});var Jf=I(P(),1);var Xb=I(P(),1),VT=Xb.createContext(void 0);function mU(){let e=Xb.useContext(VT);if(e===void 0)throw new Error(ke(56));return e}var pU=I(Z(),1),hU=Jf.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,[s,l]=Jf.useState(),u=Jf.useMemo(()=>({labelId:s,setLabelId:l}),[s,l]),c=Q("div",t,{ref:a,props:[{role:"group","aria-labelledby":s},i]});return(0,pU.jsx)(VT.Provider,{value:u,children:c})});var gU=I(P(),1);var xU=gU.forwardRef(function(t,a){let{render:o,className:n,style:r,id:i,...s}=t,{setLabelId:l}=mU(),u=Et(i);return U(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),Q("div",t,{ref:a,props:[{id:u,"aria-hidden":!0},s]})});var yU=I(P(),1);var SU=yU.forwardRef(function(t,a){let{className:o,render:n,orientation:r="horizontal",style:i,...s}=t;return Q("div",t,{state:{orientation:r},ref:a,props:[{role:"presentation"},s]})});var bU=SU;var Gt=I(Z(),1),$f=Ya.Root;function ed({className:e,...t}){return(0,Gt.jsx)(Ya.Value,{"data-slot":"select-value",className:re("flex flex-1 text-left",e),...t})}function td({className:e,size:t="default",children:a,...o}){return(0,Gt.jsxs)(Ya.Trigger,{"data-slot":"select-trigger","data-size":t,className:re("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[a,(0,Gt.jsx)(Ya.Icon,{render:(0,Gt.jsx)(Ki,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function ad({className:e,children:t,side:a="bottom",sideOffset:o=4,align:n="center",alignOffset:r=0,alignItemWithTrigger:i=!0,...s}){return(0,Gt.jsx)(Ya.Portal,{children:(0,Gt.jsx)(Ya.Positioner,{side:a,sideOffset:o,align:n,alignOffset:r,alignItemWithTrigger:i,className:"isolate z-50",children:(0,Gt.jsxs)(Ya.Popup,{"data-slot":"select-content","data-align-trigger":i,className:re("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[(0,Gt.jsx)(N9,{}),(0,Gt.jsx)(Ya.List,{children:t}),(0,Gt.jsx)(B9,{})]})})})}function js({className:e,children:t,...a}){return(0,Gt.jsxs)(Ya.Item,{"data-slot":"select-item",className:re("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Gt.jsx)(Ya.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,Gt.jsx)(Ya.ItemIndicator,{render:(0,Gt.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,Gt.jsx)(Yr,{className:"pointer-events-none"})})]})}function N9({className:e,...t}){return(0,Gt.jsx)(Ya.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:re("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Gt.jsx)(fm,{})})}function B9({className:e,...t}){return(0,Gt.jsx)(Ya.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:re("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Gt.jsx)(Ki,{})})}var Xs=I(Z(),1);function Yb({className:e,...t}){return(0,Xs.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,Xs.jsx)("table",{"data-slot":"table",className:re("w-full caption-bottom text-sm",e),...t})})}function Wb({className:e,...t}){return(0,Xs.jsx)("thead",{"data-slot":"table-header",className:re("[&_tr]:border-b",e),...t})}function Kb({className:e,...t}){return(0,Xs.jsx)("tbody",{"data-slot":"table-body",className:re("[&_tr:last-child]:border-0",e),...t})}function Ys({className:e,...t}){return(0,Xs.jsx)("tr",{"data-slot":"table-row",className:re("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function so({className:e,...t}){return(0,Xs.jsx)("th",{"data-slot":"table-head",className:re("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function Ma({className:e,...t}){return(0,Xs.jsx)("td",{"data-slot":"table-cell",className:re("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}var he=I(Z(),1),vU={all:"Any state",done:"Done",problem:"Needs attention"},CU={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"};function LU({onOpen:e}){let[t,a]=(0,Eo.useState)(""),[o,n]=(0,Eo.useState)(""),[r,i]=(0,Eo.useState)("all"),[s,l]=(0,Eo.useState)("all"),[u,c]=(0,Eo.useState)("0"),[d,f]=(0,Eo.useState)([]),[m,p]=(0,Eo.useState)(),[y,b]=(0,Eo.useState)(!1),[g,h]=(0,Eo.useState)();(0,Eo.useEffect)(()=>{sn.stats(0).then(h).catch(()=>{})},[]),(0,Eo.useEffect)(()=>{let R=setTimeout(()=>n(t),250);return()=>clearTimeout(R)},[t]);let x={q:o,state:r==="all"?void 0:r,model:s==="all"?void 0:s,days:Number(u)||void 0};(0,Eo.useEffect)(()=>{let R=!0;return b(!0),sn.history({...x,limit:30}).then(L=>{R&&(f(L.rows),p(L.total),b(!1))}).catch(()=>R&&b(!1)),()=>{R=!1}},[o,r,s,u]);let S=async()=>{let R=await sn.history({...x,limit:30,before:d.at(-1)?.id});f(L=>[...L,...R.rows])},v=[...new Set((g?.byWorker??[]).map(R=>R.model).filter(Boolean))];return(0,he.jsxs)("div",{className:"space-y-4",children:[(0,he.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,he.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,he.jsx)(On,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,he.jsx)(Ob,{value:t,onChange:R=>a(R.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,he.jsxs)($f,{value:r,onValueChange:R=>i(R??"all"),items:vU,children:[(0,he.jsx)(td,{className:"w-40",children:(0,he.jsx)(ed,{})}),(0,he.jsx)(ad,{children:Object.entries(vU).map(([R,L])=>(0,he.jsx)(js,{value:R,children:L},R))})]}),(0,he.jsxs)($f,{value:s,onValueChange:R=>l(R??"all"),items:{all:"Any model",...Object.fromEntries(v.map(R=>[R,R.split("/").pop()]))},children:[(0,he.jsx)(td,{className:"w-44",children:(0,he.jsx)(ed,{})}),(0,he.jsxs)(ad,{children:[(0,he.jsx)(js,{value:"all",children:"Any model"}),v.map(R=>(0,he.jsx)(js,{value:R,children:R.split("/").pop()},R))]})]}),(0,he.jsxs)($f,{value:u,onValueChange:R=>c(R??"0"),items:CU,children:[(0,he.jsx)(td,{className:"w-40",children:(0,he.jsx)(ed,{})}),(0,he.jsx)(ad,{children:Object.entries(CU).map(([R,L])=>(0,he.jsx)(js,{value:R,children:L},R))})]})]}),(0,he.jsx)("div",{className:"overflow-hidden rounded-xl border bg-card animate-in fade-in duration-500",children:(0,he.jsxs)(Yb,{children:[(0,he.jsx)(Wb,{children:(0,he.jsxs)(Ys,{className:"hover:bg-transparent",children:[(0,he.jsx)(so,{className:"w-10"}),(0,he.jsx)(so,{children:"Task"}),(0,he.jsx)(so,{className:"hidden md:table-cell",children:"Worker"}),(0,he.jsx)(so,{className:"hidden text-right sm:table-cell",children:"Time"}),(0,he.jsx)(so,{className:"hidden text-right lg:table-cell",children:"Tokens"}),(0,he.jsx)(so,{className:"hidden text-right lg:table-cell",children:"Saved"}),(0,he.jsx)(so,{className:"text-right",children:"When"})]})}),(0,he.jsxs)(Kb,{children:[y&&!d.length&&[0,1,2,3].map(R=>(0,he.jsx)(Ys,{children:(0,he.jsx)(Ma,{colSpan:7,children:(0,he.jsx)(ni,{className:"h-6"})})},R)),d.map(R=>(0,he.jsxs)(Ys,{className:"cursor-pointer",onClick:()=>e(R.id),children:[(0,he.jsx)(Ma,{children:(0,he.jsx)(xb,{state:R.state,className:"size-4"})}),(0,he.jsxs)(Ma,{className:"max-w-0 min-w-48",children:[(0,he.jsx)("div",{className:"truncate font-medium",children:R.task}),(0,he.jsxs)("div",{className:"flex items-center gap-1.5 truncate text-xs text-muted-foreground",children:[R.kind,R.verdict&&(0,he.jsx)(ax,{verdict:R.verdict}),R.files?(0,he.jsxs)("span",{children:["\xB7 ",R.files," file",R.files===1?"":"s"]}):null]})]}),(0,he.jsx)(Ma,{className:"hidden md:table-cell",children:(0,he.jsx)(Bc,{backend:R.backend,model:R.model})}),(0,he.jsx)(Ma,{className:"hidden text-right tabular-nums sm:table-cell",children:R.seconds!=null?Kr(R.seconds):"-"}),(0,he.jsx)(Ma,{className:"hidden text-right tabular-nums text-muted-foreground lg:table-cell",children:R.tokens?Zr(R.tokens):"-"}),(0,he.jsx)(Ma,{className:"hidden text-right tabular-nums text-success lg:table-cell",children:R.saved?un(R.saved):"-"}),(0,he.jsx)(Ma,{className:"whitespace-nowrap text-right text-muted-foreground",children:(0,he.jsxs)(pb,{children:[(0,he.jsx)(hb,{render:(0,he.jsx)("span",{}),children:VM(R.startedAt)}),(0,he.jsx)(gb,{children:new Date(R.startedAt).toLocaleString()})]})})]},R.id)),!y&&!d.length&&(0,he.jsx)(Ys,{className:"hover:bg-transparent",children:(0,he.jsx)(Ma,{colSpan:7,className:"py-12 text-center text-muted-foreground",children:"No runs match."})})]})]})}),(0,he.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,he.jsx)("span",{children:m!=null?`${d.length} of ${m} runs`:""}),m!=null&&d.length<m&&(0,he.jsx)(Lo,{variant:"outline",onClick:()=>void S(),children:"Load more"})]})]})}var mi=I(P(),1);var Qb=I(P(),1);var At=I(P(),1),IU=I(Xn(),1);var rh=I(P(),1),RU=({ref:e,callback:t,eventType:a="mousedown",eventListenerOptions:o})=>{let n=(0,rh.useRef)(t);n.current=t;let r=(0,rh.useRef)(e);r.current=e,(0,rh.useEffect)(()=>{let i=s=>{let l=s.target;if(!l||!l.isConnected)return;(Array.isArray(r.current)?r.current:[r.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&n.current(s)};return document.addEventListener(a,i,o),()=>document.removeEventListener(a,i,o)},[a,o])};var jt=I(Z(),1),TU=(0,At.createContext)(null),od=()=>{let e=(0,At.useContext)(TU);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},V9=ha.create(Lo),F9=({children:e,transition:t})=>{let[a,o]=(0,At.useState)(!1),n=(0,At.useId)(),r=(0,At.useRef)(null),i=(0,At.useMemo)(()=>({isOpen:a,uniqueId:n,triggerRef:r,setIsOpen:o}),[a,n]);return(0,jt.jsx)(TU.Provider,{value:i,children:(0,jt.jsx)(oy,{transition:t,children:e})})},FT=({children:e,transition:t})=>{let a=At.default.Children.toArray(e);return(0,jt.jsx)(F9,{children:(0,jt.jsx)(oy,{transition:t,children:a.map(o=>o)})})},Zb=(0,At.forwardRef)(({children:e,className:t,...a},o)=>{let{isOpen:n,setIsOpen:r,uniqueId:i}=od(),s=(0,At.useCallback)(()=>{r(!0)},[r]);return(0,jt.jsx)(ha.div,{ref:o,"data-slot":"expandable-card-body",layoutId:`card-${i}`,className:re("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>s(),"aria-haspopup":"dialog","aria-expanded":n,"aria-controls":`shadix-ui-expandable-card-${i}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...a,children:e})}),_T=({children:e,className:t,...a})=>{let{uniqueId:o}=od();return(0,jt.jsx)(ha.div,{layoutId:`card-content-${o}`,className:re("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${o}-title`,"aria-describedby":`shadix-ui-expandable-card-${o}-description`,...a,children:e})},zT=({children:e,className:t})=>{let{isOpen:a,uniqueId:o,setIsOpen:n}=od(),[r,i]=(0,At.useState)(!1),s=(0,At.useRef)(null);return RU({ref:s,callback:()=>{n(!1)}}),(0,At.useEffect)(()=>(i(!0),()=>i(!1)),[]),(0,At.useEffect)(()=>{if(!a)return;let l=c=>c.key==="Escape"&&n(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[a,n]),r?(0,IU.createPortal)((0,jt.jsx)(vs,{initial:!1,mode:"sync",children:a&&(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(ha.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${o}`),(0,jt.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:[(0,jt.jsx)(Zb,{ref:s,className:re("pointer-events-auto",t),children:e}),(0,jt.jsx)(wU,{})]})]})}),document.body):null},UT=({className:e,children:t,...a})=>{let{uniqueId:o}=od();return(0,jt.jsx)(ha.h2,{layout:"position",layoutId:`card-title-${o}`,className:re("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...a,children:t})},HT=({className:e,children:t,...a})=>{let{uniqueId:o}=od();return(0,jt.jsx)(ha.h3,{id:`card-description-${o}`,layout:"position",layoutId:`card-description-${o}`,className:re("text-sm text-muted-foreground px-4",e),...a,children:t})},_9=({className:e,...t})=>(0,jt.jsx)(ha.img,{style:{willChange:"transform,scale"},className:re("w-full h-full object-cover object-top not-prose",e),...t}),wU=({className:e,children:t,...a})=>{let{setIsOpen:o,uniqueId:n}=od(),r=(0,At.useCallback)(()=>{o(!1)},[o]);return(0,jt.jsx)(V9,{layout:"position",layoutId:`card-close-button-${n}`,onClick:r,"aria-label":"Close",size:"icon-sm",className:re("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...a,children:t??(0,jt.jsx)(Rl,{})})};FT.displayName="ExpandableCard";Zb.displayName="ExpandableCardBody";_T.displayName="ExpandableCardContent";zT.displayName="ExpandableCardExpandContainer";UT.displayName="ExpandableCardTitle";HT.displayName="ExpandableCardDescription";_9.displayName="ExpandableCardImage";wU.displayName="ExpandableCardCloseButton";var rt=I(Z(),1);function z9({run:e,active:t}){let[a,o]=(0,Qb.useState)(Date.now());return(0,Qb.useEffect)(()=>{if(!t)return;let n=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(n)},[t]),(0,rt.jsx)("span",{className:re("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?Kr((a-Date.parse(e.startedAt))/1e3):e.time})}function EU({run:e,expanded:t}){let a=e.state==="running"||e.state==="queued";return(0,rt.jsxs)("div",{className:re("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,rt.jsx)(xb,{state:e.state,className:"mt-0.5"}),(0,rt.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,rt.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,rt.jsx)(Bc,{worker:e.worker}),(0,rt.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,rt.jsx)(ax,{verdict:e.verdict}),e.changes?(0,rt.jsxs)(ox,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,rt.jsx)(ox,{tone:"good",children:"applied"})]}),(0,rt.jsx)(UT,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(a||e.note)&&(0,rt.jsx)(HT,{className:"line-clamp-2 break-words px-0 text-[13px]",children:a?(0,rt.jsx)(Ry,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,rt.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,rt.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,rt.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,rt.jsx)(z9,{run:e,active:a}),(0,rt.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${Zr(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,rt.jsxs)("span",{className:"text-xs text-success",children:["~",un(e.saved)]}):null]})]})}function AU({run:e,index:t}){let a=e.state==="running"||e.state==="queued";return(0,rt.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,rt.jsxs)(FT,{children:[(0,rt.jsx)(Zb,{className:re("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,rt.jsx)(EU,{run:e})}),(0,rt.jsxs)(zT,{className:"max-h-[88vh] w-full overflow-y-auto border pb-0 shadow-2xl",children:[(0,rt.jsx)(EU,{run:e,expanded:!0}),(0,rt.jsx)(_T,{className:"px-4 pb-5 pt-0 sm:pl-[3.4rem]",children:(0,rt.jsx)("div",{className:"border-t pt-4",children:(0,rt.jsx)(Oy,{id:e.id,live:a})})})]})]})})}var Jb=I(Z(),1);function $b({value:e,onChange:t,options:a}){return(0,Jb.jsx)(ZS,{value:e,onValueChange:o=>t(o),children:(0,Jb.jsx)(QS,{children:a.map(o=>(0,Jb.jsx)(_f,{value:o.value,children:o.label},o.value))})})}var DU=I(Z(),1);function nd({className:e,size:t="default",...a}){return(0,DU.jsx)("div",{"data-slot":"card","data-size":t,className:re("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}var at=I(Z(),1);function qT(e,t=450){let[a,o]=(0,mi.useState)(e),[n,r]=(0,mi.useState)(e);if(n!==e){r(e);let i=performance.now(),s=a,l=u=>{let c=Math.min(1,(u-i)/t);o(s+(e-s)*(1-(1-c)**3)),c<1&&requestAnimationFrame(l)};requestAnimationFrame(l)}return a}function GT({label:e,value:t,tone:a,pulse:o}){return(0,at.jsxs)(nd,{className:re("relative gap-1 overflow-hidden px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",o&&"border-info/30"),children:[(0,at.jsx)("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),(0,at.jsxs)("p",{className:re("flex items-center gap-2.5 text-3xl font-semibold tabular-nums tracking-tight",a),children:[o!==void 0&&(0,at.jsx)("span",{className:re("size-2.5 rounded-full",o?"animate-ping-slow bg-info":"bg-muted-foreground/40")}),t]})]})}var U9=(e,t)=>!t||`${e.task} ${e.worker} ${e.kind} ${e.note}`.toLowerCase().includes(t);function PU({focus:e}){let[t,a]=(0,mi.useState)(40),[o,n]=(0,mi.useState)("all"),[r,i]=(0,mi.useState)(""),[s,l]=(0,mi.useState)(""),{data:u}=Ts(()=>sn.state(t,r||void 0),2e3,[t,r]),c=qT(u?.running??0),d=qT(u?.saved??0),f=qT(u?.runs.filter(p=>p.state==="done").length??0),m=(0,mi.useMemo)(()=>(u?.runs??[]).filter(p=>U9(p,s.trim().toLowerCase())&&(o==="all"||(o==="running"?p.state==="running"||p.state==="queued":p.state==="failed"||p.state==="timeout"||p.state==="stopped"))),[u,s,o]);return(0,at.jsxs)("div",{className:"space-y-5",children:[(0,at.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,at.jsx)(GT,{label:"Running now",value:String(Math.round(c)),pulse:(u?.running??0)>0,tone:u?.running?"text-info":void 0}),(0,at.jsx)(GT,{label:"Finished",value:String(Math.round(f))}),(0,at.jsx)(GT,{label:"Saved this week",value:un(d),tone:"text-success"})]}),(0,at.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,at.jsxs)("div",{className:"relative min-w-48 flex-1",children:[(0,at.jsx)(On,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,at.jsx)(Ob,{value:s,onChange:p=>l(p.target.value),placeholder:"Filter these runs",className:"pl-8"})]}),(0,at.jsx)($b,{value:o,onChange:n,options:[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"problem",label:"Needs attention"}]}),u&&u.groups.length>0&&(0,at.jsxs)($f,{value:r||"all",onValueChange:p=>i(p==="all"?"":p??""),items:{all:"All groups",...Object.fromEntries(u.groups.map(p=>[p,p]))},children:[(0,at.jsx)(td,{className:"w-40",children:(0,at.jsx)(ed,{})}),(0,at.jsxs)(ad,{children:[(0,at.jsx)(js,{value:"all",children:"All groups"}),u.groups.map(p=>(0,at.jsx)(js,{value:p,children:p},p))]})]})]}),(0,at.jsxs)("div",{className:"space-y-2.5",children:[!u&&[0,1,2].map(p=>(0,at.jsx)(ni,{className:"h-24 rounded-xl"},p)),u&&m.length===0&&(0,at.jsxs)("div",{className:"flex flex-col items-center gap-2 py-16 text-center text-muted-foreground animate-in fade-in duration-500",children:[(0,at.jsx)("span",{className:"text-5xl animate-wave",children:"\u{1F3C1}"}),(0,at.jsx)("p",{children:u.runs.length?"Nothing matches this filter.":"All quiet. Workers appear here the moment they start."}),!u.runs.length&&(0,at.jsx)("code",{className:"rounded-lg border bg-card px-3 py-1.5 text-sm text-foreground",children:'pitroom run "your task"'})]}),m.map((p,y)=>(0,at.jsx)(AU,{run:p,index:y},p.id)),u&&u.runs.length>=t&&(0,at.jsx)("div",{className:"flex justify-center pt-1",children:(0,at.jsx)(Lo,{variant:"outline",onClick:()=>a(p=>p+40),children:"Show older runs"})})]})]})}var rd={};ka(rd,{Indicator:()=>UU,Label:()=>jU,Root:()=>VU,Track:()=>_U,Value:()=>qU});var pi=I(P(),1);function jT(e){return Array.isArray(e)?e.map(t=>jT(t)).join(","):e==null?"":String(e)}var MU=new Map;function H9(e,t){let a=JSON.stringify({locale:jT(e),options:t}),o=MU.get(a);if(o)return o;let n=new Intl.NumberFormat(e,t);return MU.set(a,n),n}function XT(e,t,a){return e==null?"":H9(t,a).format(e)}function OU(e,t,a){return(e-t)*100/(a-t)}var ev=I(P(),1),YT=ev.createContext(void 0);function Ws(){let e=ev.useContext(YT);if(e===void 0)throw new Error(ke(51));return e}var kU="data-complete",NU="data-indeterminate",BU="data-progressing";var Ar={status(e){return e==="progressing"?{[BU]:""}:e==="complete"?{[kU]:""}:e==="indeterminate"?{[NU]:""}:null}};var ih=I(Z(),1),VU=pi.forwardRef(function(t,a){let{format:o,getAriaValueText:n,locale:r,max:i=100,min:s=0,value:l,render:u,className:c,children:d,style:f,...m}=t,[p,y]=pi.useState(),b="indeterminate",g=null,h=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){let T=OU(l,s,i);g=Er(Number.isNaN(T)?0:T,0,100),h=Er(l,s,i),b=h===i?"complete":"progressing",x=o?XT(h,r,o):XT(g/100,r,{style:"percent"}),S=x}let v=pi.useMemo(()=>({status:b}),[b]),R={"aria-labelledby":p,"aria-valuemax":i,"aria-valuemin":s,"aria-valuenow":h??void 0,"aria-valuetext":n?n(x,l):S,role:"progressbar",children:(0,ih.jsxs)(pi.Fragment,{children:[d,(0,ih.jsx)("span",{role:"presentation",style:bf,children:"x"})]})},L=pi.useMemo(()=>({formattedValue:x,percentageValue:g,setLabelId:y,state:v,value:l}),[x,g,y,v,l]),C=Q("div",t,{state:v,ref:a,props:[R,m],stateAttributesMapping:Ar});return(0,ih.jsx)(YT.Provider,{value:L,children:C})});var FU=I(P(),1);var _U=FU.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,{state:s}=Ws();return Q("div",t,{state:s,ref:a,props:i,stateAttributesMapping:Ar})});var zU=I(P(),1);var UU=zU.forwardRef(function(t,a){let{render:o,className:n,style:r,...i}=t,{percentageValue:s,state:l}=Ws(),u=s==null?{}:{insetInlineStart:0,height:"inherit",width:`${s}%`};return Q("div",t,{state:l,ref:a,props:[{style:u},i],stateAttributesMapping:Ar})});var HU=I(P(),1);var qU=HU.forwardRef(function(t,a){let{className:o,render:n,children:r,style:i,...s}=t,{value:l,formattedValue:u,state:c}=Ws(),d=c.status==="indeterminate";return Q("span",t,{state:c,ref:a,props:[{"aria-hidden":!0,children:typeof r=="function"?r(d?"indeterminate":u,l):d?null:u},s],stateAttributesMapping:Ar})});var GU=I(P(),1);var jU=GU.forwardRef(function(t,a){let{render:o,className:n,style:r,id:i,...s}=t,{setLabelId:l,state:u}=Ws(),c=Lb(i,l);return Q("span",t,{state:u,ref:a,props:[{id:c,role:"presentation"},s],stateAttributesMapping:Ar})});var Mu=I(Z(),1);function XU({className:e,children:t,value:a,...o}){return(0,Mu.jsxs)(rd.Root,{value:a,"data-slot":"progress",className:re("flex flex-wrap gap-3",e),...o,children:[t,(0,Mu.jsx)(G9,{children:(0,Mu.jsx)(j9,{})})]})}function G9({className:e,...t}){return(0,Mu.jsx)(rd.Track,{className:re("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function j9({className:e,...t}){return(0,Mu.jsx)(rd.Indicator,{"data-slot":"progress-indicator",className:re("h-full bg-primary transition-all",e),...t})}var YU=I(P(),1),Le=I(Z(),1);function sh({label:e,value:t,sub:a,tone:o}){return(0,Le.jsxs)(nd,{className:"gap-1 px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",children:[(0,Le.jsx)("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),(0,Le.jsx)("p",{className:`text-3xl font-semibold tabular-nums tracking-tight ${o??""}`,children:t}),a&&(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]})}function WU(){let[e,t]=(0,YU.useState)("30"),{data:a}=Ts(()=>sn.stats(Number(e)),15e3,[e]),o=a?.totals,n=Math.max(1,...(a?.byDay??[]).map(r=>r.runs));return(0,Le.jsxs)("div",{className:"space-y-5",children:[(0,Le.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Le.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Statistics"}),(0,Le.jsx)($b,{value:e,onChange:t,options:[{value:"7",label:"7 days"},{value:"30",label:"30 days"},{value:"90",label:"90 days"},{value:"0",label:"All"}]})]}),o?(0,Le.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[(0,Le.jsx)(sh,{label:"Runs",value:String(o.runs),sub:`${o.failed} not ok`}),(0,Le.jsx)(sh,{label:"Success",value:o.runs?`${Math.round(100*o.ok/o.runs)}%`:"-",tone:"text-success"}),(0,Le.jsx)(sh,{label:"Worker time",value:Kr(o.seconds)}),(0,Le.jsx)(sh,{label:"Tokens",value:Zr(o.tokens)}),(0,Le.jsx)(sh,{label:"Saved",value:un(o.saved),tone:"text-success"})]}):(0,Le.jsx)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(r=>(0,Le.jsx)(ni,{className:"h-24 rounded-xl"},r))}),a&&a.byDay.length>0&&(0,Le.jsxs)(nd,{className:"gap-3 px-5 py-4 animate-in fade-in duration-700",children:[(0,Le.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Le.jsx)("h3",{className:"text-sm font-medium",children:"Runs per day"}),(0,Le.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.byDay[0]?.day," \u2192 ",a.byDay.at(-1)?.day]})]}),(0,Le.jsx)("div",{className:"flex h-36 items-end gap-1.5",children:a.byDay.map((r,i)=>(0,Le.jsxs)(pb,{children:[(0,Le.jsx)(hb,{render:(0,Le.jsx)("div",{className:"group flex h-full max-w-14 flex-1 flex-col justify-end"}),children:(0,Le.jsxs)("div",{className:"flex w-full flex-col justify-end overflow-hidden rounded-t-md transition-opacity group-hover:opacity-80 origin-bottom animate-in slide-in-from-bottom-4 fill-mode-both",style:{height:`${r.runs/n*100}%`,animationDelay:`${i*18}ms`},children:[(0,Le.jsx)("div",{className:"bg-destructive/70",style:{height:`${(r.runs-r.ok)/r.runs*100}%`}}),(0,Le.jsx)("div",{className:"flex-1 bg-success/80"})]})}),(0,Le.jsxs)(gb,{children:[r.day,": ",r.runs," runs, ",r.ok," ok, ~",un(r.saved)," saved"]})]},r.day))})]}),a&&(0,Le.jsx)(nd,{className:"overflow-hidden py-0 animate-in fade-in duration-700",children:(0,Le.jsxs)(Yb,{children:[(0,Le.jsx)(Wb,{children:(0,Le.jsxs)(Ys,{className:"hover:bg-transparent",children:[(0,Le.jsx)(so,{children:"Worker"}),(0,Le.jsx)(so,{className:"text-right",children:"Runs"}),(0,Le.jsx)(so,{className:"w-44",children:"Success"}),(0,Le.jsx)(so,{className:"hidden text-right sm:table-cell",children:"Avg time"}),(0,Le.jsx)(so,{className:"hidden text-right md:table-cell",children:"Avg tokens"}),(0,Le.jsx)(so,{className:"text-right",children:"Saved"})]})}),(0,Le.jsx)(Kb,{children:a.byWorker.map(r=>{let i=Math.round(100*r.ok/r.runs);return(0,Le.jsxs)(Ys,{children:[(0,Le.jsx)(Ma,{children:(0,Le.jsx)(Bc,{backend:r.backend,model:r.model})}),(0,Le.jsx)(Ma,{className:"text-right tabular-nums",children:r.runs}),(0,Le.jsx)(Ma,{children:(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(XU,{value:i,className:"flex-1"}),(0,Le.jsxs)("span",{className:"w-9 text-right text-xs tabular-nums text-muted-foreground",children:[i,"%"]})]})}),(0,Le.jsx)(Ma,{className:"hidden text-right tabular-nums sm:table-cell",children:r.avgSeconds!=null?Kr(r.avgSeconds):"-"}),(0,Le.jsx)(Ma,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",children:r.avgTokens?Zr(r.avgTokens):"-"}),(0,Le.jsx)(Ma,{className:"text-right tabular-nums text-success",children:r.saved?un(r.saved):"-"})]},`${r.backend}:${r.model}`)})})]})})]})}var qe=I(Z(),1),X9=/^\d{8}-\d{6}-[0-9a-f]{4}$/;function Y9(){return(0,qe.jsx)("div",{className:"grid size-9 place-items-center rounded-xl bg-gradient-to-br from-brand to-orange-300 shadow-lg shadow-brand/25",children:(0,qe.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 fill-white",children:(0,qe.jsx)("path",{d:"M4 4h4v4H4zm8 0h4v4h-4zM8 8h4v4H8zm8 0h4v4h-4zM4 12h4v4H4zm8 0h4v4h-4zm-4 4h4v4H8zm8 0h4v4h-4z"})})})}function W9(){let[e,t]=(0,Ou.useState)(document.documentElement.classList.contains("dark"));return(0,qe.jsx)(Lo,{variant:"ghost",size:"icon","aria-label":"Toggle theme",onClick:()=>{let a=!e;document.documentElement.classList.toggle("dark",a);try{localStorage.setItem("pitroom-theme",a?"dark":"light")}catch{}t(a)},children:e?(0,qe.jsx)(Lm,{}):(0,qe.jsx)(Cm,{})})}function KU(){let e=location.hash.slice(1),[t,a]=(0,Ou.useState)(e==="history"||e==="stats"?e:"live"),[o,n]=(0,Ou.useState)(null),r=X9.test(e)?e:void 0,{data:i,error:s}=Ts(()=>sn.state(1),4e3,[]);return(0,Ou.useEffect)(()=>{document.title=`${i?.running?`(${i.running}) `:""}Pitroom`},[i?.running]),(0,Ou.useEffect)(()=>{r&&n(r)},[r]),(0,qe.jsx)(G_,{delay:150,children:(0,qe.jsxs)("div",{className:"relative min-h-screen",children:[(0,qe.jsx)("div",{className:"pointer-events-none fixed inset-0 -z-10 bg-[radial-gradient(60rem_30rem_at_85%_-10%,color-mix(in_oklab,var(--brand)_14%,transparent),transparent_60%),radial-gradient(50rem_28rem_at_-10%_0%,color-mix(in_oklab,var(--info)_12%,transparent),transparent_60%)]"}),(0,qe.jsxs)("main",{className:"mx-auto max-w-4xl px-4 pb-16 pt-8",children:[(0,qe.jsxs)("header",{className:"mb-6 flex items-center gap-3 animate-in fade-in slide-in-from-top-2 duration-700",children:[(0,qe.jsx)(Y9,{}),(0,qe.jsxs)("div",{className:"leading-tight",children:[(0,qe.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Pitroom"}),(0,qe.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Your agent's pit crew, live"})]}),(0,qe.jsx)("div",{className:"flex-1"}),(0,qe.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,qe.jsx)("span",{className:re("size-1.5 rounded-full",s?"bg-destructive":"bg-success animate-pulse")}),s?"offline":"live"]}),(0,qe.jsx)(W9,{})]}),(0,qe.jsx)(ZS,{value:t,onValueChange:l=>a(l),children:(0,qe.jsxs)(QS,{className:"mb-5",children:[(0,qe.jsx)(_f,{value:"live",children:"Live"}),(0,qe.jsx)(_f,{value:"history",children:"History"}),(0,qe.jsx)(_f,{value:"stats",children:"Stats"})]})}),(0,qe.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-1 duration-300",children:[t==="live"&&(0,qe.jsx)(PU,{focus:r}),t==="history"&&(0,qe.jsx)(LU,{onOpen:n}),t==="stats"&&(0,qe.jsx)(WU,{})]},t),(0,qe.jsx)("footer",{className:"mt-10 text-center text-xs text-muted-foreground/70",children:"Read-only \xB7 this machine only"})]}),(0,qe.jsx)(dF,{open:!!o,onOpenChange:l=>!l&&n(null),children:(0,qe.jsxs)(mF,{side:"right",className:"w-full overflow-y-auto sm:max-w-2xl",children:[(0,qe.jsxs)(pF,{children:[(0,qe.jsx)(hF,{children:"Run"}),(0,qe.jsx)(gF,{className:"font-mono text-xs",children:o})]}),(0,qe.jsx)("div",{className:"px-4 pb-6",children:o&&(0,qe.jsx)(Oy,{id:o})})]})})]})})}var WT=I(Z(),1);(0,QU.createRoot)(document.getElementById("root")).render((0,WT.jsx)(ZU.StrictMode,{children:(0,WT.jsx)(KU,{})}));
|
|
17
|
+
`),()=>{i.current?.removeAttribute("data-motion-pop-id"),L.contains(I)&&L.removeChild(I)}},[t]),(0,VN.jsx)(j0,{isPresent:t,childRef:i,sizeRef:l,pop:n,children:n===!1?e:iy.cloneElement(e,{ref:d})})}var _N=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:r,presenceAffectsLayout:n,mode:s,anchorX:i,anchorY:l,root:u})=>{let c=ui(oj),d=(0,Ci.useId)(),f=(0,Ci.useRef)(a),m=(0,Ci.useRef)(o);ci(()=>{f.current=a,m.current=o});let p=!0,y=(0,Ci.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:a,custom:r,onExitComplete:b=>{c.set(b,!0);for(let g of c.values())if(!g)return;o&&o()},register:b=>(c.set(b,!1),()=>{c.delete(b),!f.current&&!c.size&&m.current?.()})}),[a,c,o]);return n&&p&&(y={...y}),(0,Ci.useMemo)(()=>{c.forEach((b,g)=>c.set(g,!1))},[a]),FN.useEffect(()=>{!a&&!c.size&&o&&o()},[a]),e=(0,X0.jsx)(BN,{pop:s==="popLayout",isPresent:a,anchorX:i,anchorY:l,root:u,children:e}),(0,X0.jsx)(fi.Provider,{value:y,children:e})};function oj(){return new Map}var Li=R(M(),1);function ly(e=!0){let t=(0,Li.useContext)(fi);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:o,register:r}=t,n=(0,Li.useId)();(0,Li.useEffect)(()=>{if(e)return r(n)},[e]);let s=(0,Li.useCallback)(()=>e&&o&&o(n),[n,o,e]);return!a&&o?[!1,s]:[!0]}var uy=R(M(),1),hf=e=>e.key||"";function Y0(e){let t=[];return uy.Children.forEach(e,a=>{(0,uy.isValidElement)(a)&&t.push(a)}),t}var Ri=({children:e,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:n="sync",propagate:s=!1,anchorX:i="left",anchorY:l="top",root:u})=>{let[c,d]=ly(s),f=(0,Sn.useMemo)(()=>Y0(e),[e]),m=s&&!c?[]:f.map(hf),p=(0,Sn.useRef)(!0),y=ui(()=>new Map),b=(0,Sn.useRef)(new Set),[g,h]=(0,Sn.useState)(f),[x,S]=(0,Sn.useState)(f);ci(()=>{s&&!c&&!x.length&&d?.()},[c,s,x.length,d]),ci(()=>{p.current=!1;for(let L=0;L<x.length;L++){let C=hf(x[L]);m.includes(C)?(y.delete(C),b.current.delete(C)):y.get(C)!==!0&&y.set(C,!1)}},[x,m.length,m.join("-")]);let v=[];if(f!==g){let L=[...f],C=0;for(let E of x){let T=m.indexOf(hf(E));T===-1?(L.splice(C++,0,E),v.push(E)):C=T+v.length+1}return v.every(E=>y.get(hf(E)))?L=f:n==="wait"&&(L=v),S(Y0(L)),h(f),null}let{forceRender:I}=(0,Sn.useContext)(jc);return(0,vp.jsx)(vp.Fragment,{children:x.map(L=>{let C=hf(L),E=s&&!c?!1:f===x||m.includes(C),T=()=>{if(b.current.has(C))return;if(y.has(C))b.current.add(C),y.set(C,!0);else return;let A=!0;y.forEach(N=>{N||(A=!1)}),A&&(I?.(),h([]),s&&d?.(),o&&o())};return(0,vp.jsx)(_N,{isPresent:E,initial:!p.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:n,root:u,onExitComplete:E?void 0:T,anchorX:i,anchorY:l,children:L},C)})})};var zN=R(M(),1),cy=(0,zN.createContext)({strict:!1});var HN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},UN=!1;function rj(){if(UN)return;let e={};for(let t in HN)e[t]={isEnabled:a=>HN[t].some(o=>!!a[o])};pp(e),UN=!0}function fy(){return rj(),E0()}function qN(e){let t=fy();for(let a in e)t[a]={...t[a],...e[a]};pp(t)}var GN=R(Q(),1),dy=R(M(),1);function my({children:e,...t}){let a=(0,dy.useContext)(rs);t={...a,...t},t.transition=ql(t.transition,a.transition),t.isStatic=ui(()=>t.isStatic);let o=(0,dy.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,GN.jsx)(rs.Provider,{value:o,children:e})}var yy=R(Q(),1);var Sf=R(M(),1);var jN=R(M(),1),Ii=(0,jN.createContext)({});var py=R(M(),1);function XN(e,t){if(bi(e)){let{initial:a,animate:o}=e;return{initial:a===!1||xn(a)?a:void 0,animate:xn(o)?o:void 0}}return e.inherit!==!1?t:{}}function WN(e){let{initial:t,animate:a}=XN(e,(0,py.useContext)(Ii));return(0,py.useMemo)(()=>({initial:t,animate:a}),[YN(t),YN(a)])}function YN(e){return Array.isArray(e)?e.join(" "):e}var yf=R(M(),1);var KN=R(M(),1);var gf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W0(e,t,a){for(let o in t)!mt(t[o])&&!hp(o,a)&&(e[o]=t[o])}function nj({transformTemplate:e},t){return(0,KN.useMemo)(()=>{let a=gf();return Yl(a,t,e),Object.assign({},a.vars,a.style)},[t])}function sj(e,t){let a=e.style||{},o={};return W0(o,a,e),Object.assign(o,nj(e,t)),o}function ZN(e,t){let a={},o=sj(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}var QN=R(M(),1);var hy=()=>({...gf(),attrs:{}});function JN(e,t,a,o){let r=(0,QN.useMemo)(()=>{let n=hy();return ip(n,t,xp(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};W0(n,e.style,e),r.style={...n,...r.style}}return r}var ij=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Cp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ij.has(e)}function lj(e,t){return e.startsWith("on")?!Cp(e):t?.(e)??!Cp(e)}function $N(e,t,a,o){let r={};for(let n in e)n==="values"&&typeof e.values=="object"||mt(e[n])||(lj(n,o)||a===!0&&Cp(n)||!t&&!Cp(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}var eV=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function xf(e){return typeof e!="string"||e.includes("-")?!1:!!(eV.indexOf(e)>-1||/[A-Z]/u.test(e))}function tV(e,t,a,{latestValues:o},r,n=!1,s,i){let u=(s??xf(e)?JN:ZN)(t,o,r,e),c=$N(t,typeof e=="string",n,i),d=e!==yf.Fragment?{...c,...u,ref:a}:{},{children:f}=t,m=(0,yf.useMemo)(()=>mt(f)?f.get():f,[f]);return(0,yf.createElement)(e,{...d,children:m})}var K0=R(M(),1);function uj({scrapeMotionValuesFromProps:e,createRenderState:t},a,o,r){return{latestValues:cj(a,o,r,e),renderState:t()}}function cj(e,t,a,o){let r={},n=o(e,{});for(let f in n)r[f]=au(n[f]);let{initial:s,animate:i}=e,l=bi(e),u=fp(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let c=a?a.initial===!1:!1;c=c||s===!1;let d=c?i:s;if(d&&typeof d!="boolean"&&!os(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=jl(e,f[m]);if(p){let{transitionEnd:y,transition:b,...g}=p;for(let h in g){let x=g[h];if(Array.isArray(x)){let S=c?x.length-1:0;x=x[S]}x!==null&&(r[h]=x)}for(let h in y)r[h]=y[h]}}}return r}var gy=e=>(t,a)=>{let o=(0,K0.useContext)(Ii),r=(0,K0.useContext)(fi),n=()=>uj(e,t,o,r);return a?n():ui(n)};var aV=gy({scrapeMotionValuesFromProps:$l,createRenderState:gf});var oV=gy({scrapeMotionValuesFromProps:yp,createRenderState:hy});var rV=Symbol.for("motionComponentSymbol");var nu=R(M(),1);function nV(e,t,a){let o=(0,nu.useRef)(a);(0,nu.useInsertionEffect)(()=>{o.current=a});let r=(0,nu.useRef)(null);return(0,nu.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let s=o.current;if(typeof s=="function")if(n){let i=s(n);typeof i=="function"&&(r.current=i)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n)},[t])}var no=R(M(),1);var sV=R(M(),1),xy=(0,sV.createContext)({});function Ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iV(e,t,a,o,r,n){let{visualElement:s}=(0,no.useContext)(Ii),i=(0,no.useContext)(cy),l=(0,no.useContext)(fi),u=(0,no.useContext)(rs),c=u.reducedMotion,d=u.skipAnimations,f=(0,no.useRef)(null),m=(0,no.useRef)(!1);o=o||i.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:s,props:a,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:n}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,y=(0,no.useContext)(xy);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&fj(f.current,a,r,y);let b=(0,no.useRef)(!1);(0,no.useInsertionEffect)(()=>{p&&b.current&&p.update(a,l)});let g=a[rp],h=(0,no.useRef)(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return ci(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),ci(()=>{m.current=!0,p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),h.current&&p.animationState&&p.animationState.animateChanges())}),(0,no.useEffect)(()=>{p&&(!h.current&&p.animationState&&p.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),h.current=!1),p.enteringChildren=void 0)}),p}function fj(e,t,a,o){let{layoutId:r,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:lV(e.parent)),e.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!s||i&&Ti(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function lV(e){if(e)return e.options.allowProjection!==!1?e.projection:lV(e.parent)}function Sy(e,{forwardMotionProps:t=!1,type:a}={},o,r){o&&qN(o);let n=a?a==="svg":xf(e),s=n?oV:aV;function i(u,c){let d,f={...(0,Sf.useContext)(rs),...u,layoutId:dj(u)},{isStatic:m,isValidProp:p}=f,y=WN(u),b=s(u,m);if(!m&&typeof window<"u"){mj(f,o);let g=pj(f);d=g.MeasureLayout,y.visualElement=iV(e,b,f,r,g.ProjectionNode,n)}return(0,yy.jsxs)(Ii.Provider,{value:y,children:[d&&y.visualElement?(0,yy.jsx)(d,{visualElement:y.visualElement,...f}):null,tV(e,u,nV(b,y.visualElement,c),b,m,t,n,p)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,Sf.forwardRef)(i);return l[rV]=e,l}function dj({layoutId:e}){let t=(0,Sf.useContext)(jc).id;return t&&e!==void 0?t+"-"+e:e}function mj(e,t){let a=(0,Sf.useContext)(cy).strict}function pj(e){let t=fy(),{drag:a,layout:o}=t;if(!a&&!o)return{};let r={...a,...o};return{MeasureLayout:a?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function uV(e,t){if(typeof Proxy>"u")return Sy;let a=new Map,o=(n,s)=>Sy(n,s,e,t),r=(n,s)=>o(n,s);return new Proxy(r,{get:(n,s)=>s==="create"?o:(a.has(s)||a.set(s,Sy(s,void 0,e,t)),a.get(s))})}var cV=R(M(),1);var fV=(e,t)=>t.isSVG??xf(e)?new Sp(t):new gp(t,{allowProjection:e!==cV.Fragment});var by=class extends da{constructor(t){super(t),t.animationState||(t.animationState=M0(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();os(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var hj=0,vy=class extends da{constructor(){super(...arguments),this.id=hj++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:n,custom:s}=this.node.getProps();if(typeof n=="string"||typeof n=="object"&&n!==null&&!Array.isArray(n)){let i=Xo(this.node,n,s);if(i){let{transition:l,transitionEnd:u,...c}=i;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,a(this.id))})}mount(){let{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var dV={animation:{Feature:by},exit:{Feature:vy}};function su(e){return{point:{x:e.pageX,y:e.pageY}}}var mV=e=>t=>Kl(t)&&e(t,su(t));function wi(e,t,a,o){return yn(e,t,mV(a),o)}var Cy=({current:e})=>e?e.ownerDocument.defaultView:null;var pV=(e,t)=>Math.abs(e-t);function hV(e,t){let a=pV(e.x,t.x),o=pV(e.y,t.y);return Math.sqrt(a**2+o**2)}var gV=new Set(["auto","scroll"]),bf=class{constructor(t,a,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ly(this.lastRawMoveEventInfo,this.transformPagePoint));let p=Z0(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,b=hV(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!b)return;let{point:g}=p;this.history.push({...g,timestamp:gt.now()});let{onStart:h,onMove:x}=this.handlers;y||(h&&h(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Ly(y,this.transformPagePoint),this.hasPendingMove=!0,_e.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:b,onSessionEnd:g,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let x=Z0(p.type==="pointercancel"?this.lastMoveEventInfo:Ly(y,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,x),g&&g(p,x)},!Kl(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=r||window;let l=su(t),u=Ly(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=It;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=a;f&&f(t,Z0(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=Vr(wi(this.contextWindow,"pointermove",this.handlePointerMove,m),wi(this.contextWindow,"pointerup",this.handlePointerUp,m),wi(this.contextWindow,"pointercancel",this.handlePointerUp,m)),i&&this.startScrollTracking(i)}startScrollTracking(t){let a=t.parentElement;for(;a;){let o=getComputedStyle(a);(gV.has(o.overflowX)||gV.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let a=this.scrollPositions.get(t);if(!a)return;let o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:r.x-a.x,y:r.y-a.y};n.x===0&&n.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,r),_e.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),To(this.updatePoint)}};function Ly(e,t){return t?{point:t(e.point)}:e}function xV(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Z0({point:e},t){return{point:e,delta:xV(e,yV(t)),offset:xV(e,gj(t)),velocity:xj(t,.1)}}function gj(e){return e[0]}function yV(e){return e[e.length-1]}function xj(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,o=null,r=yV(e);for(;a>=0&&(o=e[a],!(r.timestamp-o.timestamp>oa(t)));)a--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>oa(t)*2&&(o=e[1]);let n=ba(r.timestamp-o.timestamp);if(n===0)return{x:0,y:0};let s={x:(r.x-o.x)/n,y:(r.y-o.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function LV(e,{min:t,max:a},o){return t!==void 0&&e<t?e=o?Ue(t,e,o.min):Math.max(e,t):a!==void 0&&e>a&&(e=o?Ue(a,e,o.max):Math.min(e,a)),e}function SV(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function RV(e,{top:t,left:a,bottom:o,right:r}){return{x:SV(e.x,a,r),y:SV(e.y,t,o)}}function bV(e,t){let a=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,o]=[o,a]),{min:a,max:o}}function IV(e,t){return{x:bV(e.x,t.x),y:bV(e.y,t.y)}}function TV(e,t){let a=.5,o=ra(e),r=ra(t);return r>o?a=fn(t.min,t.max-o,e.min):o>r&&(a=fn(e.min,e.max-r,t.min)),fa(0,1,a)}function wV(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Ry=.35;function EV(e=Ry){return e===!1?e=0:e===!0&&(e=Ry),{x:vV(e,"left","right"),y:vV(e,"top","bottom")}}function vV(e,t,a){return{min:CV(e,t),max:CV(e,a)}}function CV(e,t){return typeof e=="number"?e:e[t]||0}var yj=new WeakMap,Ty=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=d=>{a&&this.snapToCursor(d),this.stopAnimation()},s=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=y0(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yo(g=>{let h=this.getAxisMotionValue(g).get()||0;if(ja.test(h)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[g];S&&(h=ra(S)*(parseFloat(h)/100))}}this.originPoint[g]=h}),y&&_e.update(()=>y(d,f),!1,!0),nf(this.visualElement,"transform");let{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},i=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=bj(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),b&&_e.update(()=>b(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new bf(t,{onSessionStart:n,onStart:s,onMove:i,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:o,contextWindow:Cy(this.visualElement),element:this.visualElement.current})}stop(t,a){let o=t||this.latestPointerEvent,r=a||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!o)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&_e.postRender(()=>i(o,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){let{drag:r}=this.getProps();if(!o||!Iy(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(s=LV(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Ti(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=RV(o.layoutBox,t):this.constraints=!1,this.elastic=EV(a),r!==this.constraints&&!Ti(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Yo(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=wV(o.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ti(t))return!1;let o=t.current;Io(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let n=x0(o,r.root,this.visualElement.getTransformPagePoint()),s=IV(r.layout.layoutBox,n);if(a){let i=a(f0(s));this.hasMutatedConstraints=!!i,i&&(s=lp(i))}return s}startAnimation(t){let{drag:a,dragMomentum:o,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Yo(c=>{if(!Iy(c,a,this.currentDirection))return;let d=l&&l[c]||{};(s===!0||s===c)&&(d={min:0,max:0});let f=r?200:1e6,m=r?40:1e7,p={type:"inertia",velocity:o?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...n,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let o=this.getAxisMotionValue(t);return nf(this.visualElement,t),o.start(Gl(t,o,0,a,this.visualElement,!1))}stopAnimation(){Yo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[a];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:a}){let{drag:o}=this.getProps(),r={x:t,y:a},n=this.visualElement.getTransformPagePoint()?.(r)||r,s=this.visualElement.measureViewportBox();Yo(i=>{if(!Iy(i,o,this.currentDirection))return;let l=this.getAxisMotionValue(i),{min:u,max:c}=s[i];l.set((l.get()||0)+n[i]-Ue(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!Ti(a)||!o||!this.constraints)return;this.stopAnimation();let r=this.constraints,n={x:0,y:0};Yo(i=>{let l=this.getAxisMotionValue(i).get();n[i]=TV({min:l,max:l},r[i])});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Yo(i=>{let l=this.getAxisMotionValue(i);if(!Iy(i,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[i];l.set(Ue(u,c,n[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yj.set(this.visualElement,this);let t=this.visualElement.current,a=wi(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&C0(f);c&&d&&!m&&this.start(u)}),o,r=()=>{let{dragConstraints:u}=this.getProps();Ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=Sj(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),_e.read(r);let i=yn(window,"resize",()=>this.scalePositionWithinConstraints()),l=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Yo(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{i(),a(),s(),l&&l(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=Ry,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function AV(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Sj(e,t,a){let o=Qx(e,AV(a)),r=Qx(t,AV(a));return()=>{o(),r()}}function Iy(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function bj(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var wy=class extends da{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new Ty(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var Q0=e=>(t,a)=>{e&&_e.update(()=>e(t,a),!1,!0)},Ey=class extends da{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new bf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cy(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Q0(t),onStart:Q0(a),onMove:Q0(o),onEnd:(n,s)=>{delete this.session,r&&_e.postRender(()=>r(n,s))}}}mount(){this.removePointerDownListener=wi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var DV=R(Q(),1);var Lp=R(M(),1);var J0=!1,$0=class extends Lp.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:r}=this.props,{projection:n}=t;n&&(a.group&&a.group.add(n),o&&o.register&&r&&o.register(n),J0&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ou.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:o,drag:r,isPresent:n}=this.props,{projection:s}=o;return s&&(s.isPresent=n,t.layoutDependency!==a&&s.setOptions({...s.options,layoutDependency:a}),J0=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||_e.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:a}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=a,o.root.didUpdate(),Wl.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:r}=t;J0=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Ay(e){let[t,a]=ly(),o=(0,Lp.useContext)(jc);return(0,DV.jsx)($0,{...e,layoutGroup:o,switchLayoutGroup:(0,Lp.useContext)(xy),isPresent:t,safeToRemove:a})}var MV={pan:{Feature:Ey},drag:{Feature:wy,ProjectionNode:bp,MeasureLayout:Ay}};function PV(e,t,a){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",a==="Start");let r="onHover"+a,n=o[r];n&&_e.postRender(()=>n(t,su(t)))}var Dy=class extends da{mount(){let{current:t}=this.node;t&&(this.unmount=S0(t,(a,o)=>(PV(this.node,o,"Start"),r=>PV(this.node,r,"End"))))}unmount(){}};var My=class extends da{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vr(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function OV(e,t,a){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",a==="Start");let r="onTap"+(a==="End"?"":a),n=o[r];n&&_e.postRender(()=>n(t,su(t)))}var Py=class extends da{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:a,propagate:o}=this.node.props;this.unmount=R0(t,(r,n)=>(OV(this.node,n,"Start"),(s,{success:i})=>OV(this.node,s,i?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:o?.tap===!1})}unmount(){}};var tI=new WeakMap,eI=new WeakMap,vj=e=>{let t=tI.get(e.target);t&&t(e)},Cj=e=>{e.forEach(vj)};function Lj({root:e,...t}){let a=e||document;eI.has(a)||eI.set(a,{});let o=eI.get(a),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Cj,{root:e,...t})),o[r]}function kV(e,t,a){let o=Lj(t);return tI.set(e,a),o.observe(e),()=>{tI.delete(e),o.unobserve(e)}}var Rj={some:0,all:1},Oy=class extends da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:r="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:Rj[r]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=kV(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(Ij(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Ij({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var NV={inView:{Feature:Oy},tap:{Feature:Py},focus:{Feature:My},hover:{Feature:Dy}};var VV={layout:{ProjectionNode:bp,MeasureLayout:Ay}};var BV={...dV,...NV,...MV,...VV};var aI=uV(BV,fV);var FV=R(M(),1);function iu(){!Ql.current&&dp();let[e]=(0,FV.useState)(vi.current);return e}var Ca=aI;var so=R(M(),1);var _V="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",zV="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function HV(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var lu=R(Q(),1);function ky({children:e,as:t="span",duration:a=2.5,className:o}){return(0,lu.jsxs)(lu.Fragment,{children:[(0,lu.jsx)("style",{children:_V}),(0,lu.jsx)(t,{style:HV(a),className:re("inline-block",zV,o),children:e})]})}var qV=R(Q(),1);function UV({children:e="Thinking\u2026",duration:t=1.8,className:a}){return(0,qV.jsx)(ky,{as:"span",duration:t,className:re("font-medium",a),children:e})}var vf=[.16,1,.3,1];var GV={type:"spring",stiffness:460,damping:30,mass:.55};var uu={type:"spring",stiffness:360,damping:32,mass:.6};var XV=R(Q(),1);function jV({open:e,openHeight:t="auto",className:a,style:o,transition:r,...n}){let s=iu()??!1;return(0,XV.jsx)(Ca.div,{...n,"aria-hidden":!e,inert:!e,initial:!1,animate:s?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:r??{duration:s?0:e?.22:.14,ease:vf},className:re("overflow-hidden",a),style:{...o,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var Se=R(Q(),1);function wj({item:e}){let t=e.status??"complete";return(0,Se.jsxs)("div",{className:"flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:t==="complete"?(0,Se.jsx)(Zn,{className:"size-4",strokeWidth:1.8}):t==="active"?(0,Se.jsxs)("span",{className:"relative grid size-3 place-items-center",children:[(0,Se.jsx)(Ca.span,{className:"absolute inset-0 rounded-full bg-foreground/10",animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY}}),(0,Se.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/60"})]}):(0,Se.jsx)(Cm,{className:"size-3",strokeWidth:1.5})}),(0,Se.jsx)("span",{className:re("min-w-0 flex-1 leading-5",t==="pending"?"text-muted-foreground/55":"text-foreground/90"),children:e.label}),e.meta?(0,Se.jsx)("span",{className:"shrink-0 leading-5 text-muted-foreground/55",children:e.meta}):null]})}function Ej({item:e}){return(0,Se.jsx)("div",{className:"rounded-md px-1.5 py-1 leading-5 text-muted-foreground",children:e.content})}function Aj({result:e}){let t=(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-5 shrink-0 place-items-center text-muted-foreground",children:e.icon??(0,Se.jsx)(ti,{className:"size-3",strokeWidth:2})}),(0,Se.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground/90",children:e.title}),e.domain?(0,Se.jsx)("span",{className:"min-w-0 truncate text-muted-foreground/55",children:e.domain}):null]}),a=re("flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors",e.url&&"focus-visible:ring-2 focus-visible:ring-ring");return e.url?(0,Se.jsx)("a",{href:e.url,className:a,children:t}):(0,Se.jsx)("div",{className:a,children:t})}function Dj({item:e}){let t=iu()??!1,a=t?{opacity:1}:{opacity:0,y:6},o={opacity:1,y:0},r=t?{opacity:0}:{opacity:0,y:-3},n=t?{duration:0}:{opacity:{duration:.18,ease:vf},y:uu,layout:uu};return(0,Se.jsxs)("div",{className:"space-y-0.5",children:[(0,Se.jsxs)("div",{className:"flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground",children:[(0,Se.jsx)(kr,{"aria-hidden":"true",className:"size-4 shrink-0",strokeWidth:1.7}),(0,Se.jsx)("span",{className:"min-w-0 truncate",children:e.query})]}),e.results?.length?(0,Se.jsx)("div",{className:"space-y-0.5 pl-4",children:(0,Se.jsx)(Ri,{initial:!0,mode:"popLayout",children:e.results.map(s=>(0,Se.jsx)(Ca.div,{layout:"position",initial:a,animate:o,exit:r,transition:n,children:(0,Se.jsx)(Aj,{result:s})},s.id))})}):null,(0,Se.jsx)(Ri,{initial:!0,children:e.moreCount?(0,Se.jsxs)(Ca.div,{initial:a,animate:o,exit:r,transition:n,className:"px-1.5 py-1 pl-8 text-muted-foreground/55",children:["+",e.moreCount," more"]},"more-results"):null})]})}function Mj({action:e}){return e==="read"?(0,Se.jsx)(Tm,{className:"size-4"}):e==="edit"||e==="write"?(0,Se.jsx)(oi,{className:"size-4"}):e==="run"?(0,Se.jsx)(Nr,{className:"size-4"}):(0,Se.jsx)(ni,{className:"size-4"})}function Pj({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1);return(0,Se.jsxs)("div",{className:"flex min-h-8 min-w-0 items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:(0,Se.jsx)(Mj,{action:e.action})}),(0,Se.jsx)("span",{className:"shrink-0 font-medium text-foreground/90",children:t}),(0,Se.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.target}),typeof e.additions=="number"||typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono tabular-nums",children:[typeof e.additions=="number"?(0,Se.jsxs)("span",{className:"text-emerald-500",children:["+",e.additions]}):null,typeof e.deletions=="number"?(0,Se.jsxs)("span",{className:"text-rose-500",children:["\u2212",e.deletions]}):null]}):null]})}function Oj({kind:e}){return e==="thinking"?(0,Se.jsx)(ri,{className:"size-4"}):e==="message"?(0,Se.jsx)(El,{className:"size-4"}):e==="write"?(0,Se.jsx)(oi,{className:"size-4"}):e==="run"?(0,Se.jsx)(Nr,{className:"size-4"}):e==="read"?(0,Se.jsx)(Dm,{className:"size-4"}):(0,Se.jsx)(ni,{className:"size-4"})}function kj({item:e}){return(0,Se.jsxs)("div",{className:"grid min-h-8 grid-cols-[1rem_auto_minmax(0,1fr)] items-center gap-2.5 rounded-md px-1.5 py-0.5",children:[(0,Se.jsx)("span",{"aria-hidden":"true",className:"grid size-4 place-items-center text-muted-foreground/70",children:e.icon??(0,Se.jsx)(Oj,{kind:e.kind})}),(0,Se.jsx)("span",{className:"font-medium text-foreground/90",children:e.label}),e.detail?(0,Se.jsx)("span",{className:"min-w-0 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.detail}):(0,Se.jsx)("span",{})]})}function YV({item:e}){return e.type==="text"?(0,Se.jsx)(Ej,{item:e}):e.type==="search"?(0,Se.jsx)(Dj,{item:e}):e.type==="tool"?(0,Se.jsx)(Pj,{item:e}):e.type==="trace"?(0,Se.jsx)(kj,{item:e}):(0,Se.jsx)(wj,{item:e})}var ma=R(Q(),1);function Nj(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let a=Math.floor(t/60),o=t%60;return o===0?`${a}m`:`${a}m ${o}s`}function Vj({open:e,defaultOpen:t,onOpenChange:a}){let[o,r]=(0,so.useState)(t),n=e!==void 0,s=e??o,i=(0,so.useCallback)(l=>{n||r(l),a?.(l)},[n,a]);return[s,i]}function Bj(e){let t=e[0]?.type;return t&&e.every(a=>a.type===t)?t:"mixed"}function Fj(e){return e==="search"?"Searching the web\u2026":e==="tool"?"Running tools\u2026":e==="trace"?"Working through the run\u2026":e==="mixed"?"Working through it\u2026":"Thinking\u2026"}function _j(e,t,a){if(e==="step"||e==="text")return(0,ma.jsxs)(ma.Fragment,{children:["Thought for ",(0,ma.jsx)("span",{className:"tabular-nums",children:Nj(a)})]});if(e==="search")return"Searched the web";if(e==="tool")return`Ran ${t.length} ${t.length===1?"tool":"tools"}`;if(e==="trace"){let o=t.filter(n=>n.type==="trace"&&(n.kind==="thinking"||n.kind==="message")).length,r=t.length-o;return`${r} ${r===1?"tool call":"tool calls"}, ${o} ${o===1?"message":"messages"}`}return`Completed ${t.length} ${t.length===1?"step":"steps"}`}function WV({items:e,contentType:t,status:a="working",duration:o=0,open:r,defaultOpen:n=!1,onOpenChange:s,collapseOnComplete:i=!0,activeLabel:l,summary:u,renderWorkingStatus:c,renderCompletedStatus:d,maxHeight:f=208,className:m,contentClassName:p}){let y=iu()??!1,b=(0,so.useId)(),g=`${b}-trigger`,h=`${b}-content`,x=(0,so.useRef)(null),S=(0,so.useRef)(null),v=(0,so.useRef)(a),[I,L]=(0,so.useState)(0),[C,E]=Vj({open:r,defaultOpen:n,onOpenChange:s}),T=a==="working",A=T||C,N=e.length?Bj(e):t??"mixed",D=Math.min(I,Math.max(0,f)),F=T?Math.max(0,f):D,k=I>f,z=T?Math.min(0,F-I):0;(0,so.useLayoutEffect)(()=>{let _=x.current;if(!_)return;let U=()=>L(_.offsetHeight);if(U(),typeof ResizeObserver>"u")return;let X=new ResizeObserver(U);return X.observe(_),()=>X.disconnect()},[]),(0,so.useEffect)(()=>{v.current==="working"&&a==="complete"&&E(!i),v.current=a},[i,E,a]);let q=()=>{let _=!C;E(_),_&&requestAnimationFrame(()=>S.current?.scrollTo({top:0}))},O=l??Fj(N),V=u??_j(N,e,o),w=k?T?"linear-gradient(to bottom, transparent, black 12px)":"linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)":void 0;return(0,ma.jsxs)("div",{"data-state":T?"working":A?"open":"closed","data-content":N,"aria-busy":T,className:re("w-full text-sm",m),children:[T?(0,ma.jsx)("div",{id:g,role:"status",className:"flex h-7 min-w-0 items-center text-muted-foreground",children:c?c({label:O,duration:o}):(0,ma.jsx)(UV,{children:O})}):(0,ma.jsxs)("button",{id:g,type:"button","aria-expanded":A,"aria-controls":h,onClick:q,className:"group flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[(0,ma.jsx)("span",{className:"truncate",children:d?d({summary:V,duration:o}):V}),(0,ma.jsx)(Ca.span,{"aria-hidden":"true",animate:{rotate:A?180:0},transition:y?{duration:0}:GV,className:"inline-flex shrink-0 text-muted-foreground/70 group-hover:text-foreground",children:(0,ma.jsx)(Js,{className:"size-3.5"})})]}),(0,ma.jsx)(jV,{id:h,role:"region","aria-labelledby":g,open:A,openHeight:F,children:(0,ma.jsx)("div",{ref:S,className:re("scrollbar-hide pr-1",k&&A&&!T?"overflow-y-auto":"overflow-y-hidden"),style:{height:F,maskImage:w,WebkitMaskImage:w},children:(0,ma.jsx)(Ca.div,{ref:x,role:"list",initial:!1,animate:{y:z},transition:y?{duration:0}:uu,className:re("space-y-0.5 py-2",p),children:(0,ma.jsx)(Ri,{mode:"popLayout",children:e.map(_=>(0,ma.jsx)(Ca.div,{layout:"position",role:"listitem",initial:y?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:y?{opacity:0}:{opacity:0,y:-3},transition:y?{duration:0}:{opacity:{duration:.18,ease:vf},y:uu,layout:uu},children:(0,ma.jsx)(YV,{item:_})},_.id))})})})})]})}var Ny=R(M(),1);function Vy(){let e=(0,Ny.useRef)(null);return(0,Ny.useEffect)(()=>{let t=e.current;if(!t)return;let a=()=>{t.dataset.fadeTop=String(t.scrollTop>2),t.dataset.fadeBottom=String(t.scrollTop+t.clientHeight<t.scrollHeight-2)};a(),t.addEventListener("scroll",a,{passive:!0});let o=new ResizeObserver(a);return o.observe(t),t.firstElementChild&&o.observe(t.firstElementChild),()=>{t.removeEventListener("scroll",a),o.disconnect()}},[]),e}var KV=R(Q(),1);function oI({className:e,children:t}){let a=Vy();return(0,KV.jsx)("div",{ref:a,className:re("scroll-fade overflow-auto",e),children:t})}var aB=R(M(),1);var Lf=R(M(),1);function By(){return typeof window<"u"}function Wt(e){return Fy(e)?(e.nodeName||"").toLowerCase():"#document"}function ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vn(e){var t;return(t=(Fy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fy(e){return By()?e instanceof Node||e instanceof ze(e).Node:!1}function Te(e){return By()?e instanceof Element||e instanceof ze(e).Element:!1}function He(e){return By()?e instanceof HTMLElement||e instanceof ze(e).HTMLElement:!1}function bn(e){return!By()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ze(e).ShadowRoot}function fu(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=pa(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function ZV(e){return/^(table|td|th)$/.test(Wt(e))}function Rp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var zj=/transform|translate|scale|rotate|perspective|filter/,Hj=/paint|layout|strict|content/,cu=e=>!!e&&e!=="none",rI;function _y(e){let t=Te(e)?pa(e):e;return cu(t.transform)||cu(t.translate)||cu(t.scale)||cu(t.rotate)||cu(t.perspective)||!zy()&&(cu(t.backdropFilter)||cu(t.filter))||zj.test(t.willChange||"")||Hj.test(t.contain||"")}function QV(e){let t=Wo(e);for(;He(t)&&!gr(t);){if(_y(t))return t;if(Rp(t))return null;t=Wo(t)}return null}function zy(){return rI==null&&(rI=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rI}function gr(e){return/^(html|body|#document)$/.test(Wt(e))}function pa(e){return ze(e).getComputedStyle(e)}function Ip(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wo(e){if(Wt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||bn(e)&&e.host||vn(e);return bn(t)?t.host:t}function JV(e){let t=Wo(e);return gr(t)?(e.ownerDocument||e).body:He(t)&&fu(t)?t:JV(t)}function Ei(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=JV(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=ze(r);if(n){let i=Hy(s);return t.concat(s,s.visualViewport||[],fu(r)?r:[],i&&a?Ei(i):[])}else return t.concat(r,Ei(r,[],a))}function Hy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Uj=R(M(),1),Tp={...Uj};var nI=Tp.useInsertionEffect,qj=nI&&nI!==Tp.useLayoutEffect?nI:e=>e();function W(e){let t=tt(Gj).current;return t.next=e,qj(t.effect),t.trampoline}function Gj(){let e={next:void 0,callback:jj,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function jj(){}var $V=R(M(),1),Xj=()=>{},G=typeof document<"u"?$V.useLayoutEffect:Xj;var Uy=R(M(),1),sI=Uy.createContext(void 0);function Cf(e=!1){let t=Uy.useContext(sI);if(t===void 0&&!e)throw new Error(De(16));return t}var eB=R(M(),1);function tB(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:r=0,isNativeButton:n}=e,s=o&&t!==!1,i=o&&t===!1;return{props:eB.useMemo(()=>{let u={onKeyDown(c){a&&t&&c.key!=="Tab"&&c.preventDefault()}};return o||(u.tabIndex=r,!n&&a&&(u.tabIndex=t?r:-1)),(n&&(t||s)||!n&&a)&&(u["aria-disabled"]=a),n&&(!t||i)&&(u.disabled=a),u},[o,a,t,s,i,n,r])}}function be(e){return e?.ownerDocument||document}function qy(e,t,{detail:a=0}={}){e.dispatchEvent(new(ze(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Ko(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:r=!0,composite:n}=e,s=Lf.useRef(null),i=Cf(!0),l=n??i!==void 0,{props:u}=tB({focusableWhenDisabled:a,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),c=Lf.useCallback(()=>{let m=s.current;iI(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);G(c,[c]);let d=Lf.useCallback((m={})=>{let{onClick:p,onMouseDown:y,onKeyUp:b,onKeyDown:g,onPointerDown:h,...x}=m;return Ga({onClick(S){if(t){S.preventDefault();return}p?.(S)},onMouseDown(S){t||y?.(S)},onKeyDown(S){if(t||(Vm(S),g?.(S),S.baseUIHandlerPrevented))return;let v=S.target===S.currentTarget,I=S.currentTarget,L=iI(I),C=!r&&Yj(I),E=v&&(r?L:!C),T=S.key==="Enter",A=S.key===" ",N=I.getAttribute("role"),D=N?.startsWith("menuitem")||N==="option"||N==="gridcell";if(v&&l&&A){if(S.defaultPrevented&&D)return;S.preventDefault(),(!r||L)&&(S.preventBaseUIHandler(),qy(I,S));return}if(!E||r||!A&&!T){v&&C&&A&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),T&&(S.preventBaseUIHandler(),qy(I,S)))},onKeyUp(S){if(!t){if(Vm(S),b?.(S),S.target===S.currentTarget&&r&&l&&iI(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!r&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),qy(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}h?.(S)}},r?{type:"button"}:{role:"button"},u,x)},[t,u,l,r]),f=W(m=>{s.current=m,c()});return{getButtonProps:d,buttonRef:f}}function iI(e){return He(e)&&e.tagName==="BUTTON"}function Yj(e){return He(e)&&e.tagName==="A"&&!!e.href}var lI=aB.forwardRef(function(t,a){let{render:o,className:r,disabled:n=!1,focusableWhenDisabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=Ko({disabled:n,focusableWhenDisabled:s,native:i});return $("button",t,{state:{disabled:n},ref:[a,d],props:[u,c]})});var oB=R(Q(),1),Wj=Gc("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Eo({className:e,variant:t="default",size:a="default",...o}){return(0,oB.jsx)(lI,{"data-slot":"button",className:re(Wj({variant:t,size:a,className:e})),...o})}var rB=R(Q(),1);function ss({className:e,...t}){return(0,rB.jsx)("div",{"data-slot":"skeleton",className:re("animate-pulse rounded-md bg-muted",e),...t})}var Cn=R(M(),1);function Ai(e,t,a){let[o,r]=(0,Cn.useState)(),[n,s]=(0,Cn.useState)(!1),[i,l]=(0,Cn.useState)(0),u=(0,Cn.useRef)(e);u.current=e;let c=(0,Cn.useCallback)(async()=>{if(!document.hidden)try{r(await u.current()),s(!1),l(d=>d+1)}catch{s(!0)}},[]);return(0,Cn.useEffect)(()=>{c();let d=setInterval(c,t);return()=>clearInterval(d)},[t,c,...a]),{data:o,error:n,tick:i,reload:c}}var io=R(Q(),1),Di="size-4";function Kj(e){let t=(e.name??"").toLowerCase();return e.kind==="say"?{kind:"message",label:"Said",icon:(0,io.jsx)(El,{className:Di})}:e.kind==="shell"?{kind:"run",label:"Ran command",icon:(0,io.jsx)(Nr,{className:Di})}:e.kind==="edit"?{kind:"write",label:"Edited",icon:(0,io.jsx)(oi,{className:Di})}:/^(read|cat|view|open)$/.test(t)?{kind:"read",label:"Read",icon:(0,io.jsx)(Im,{className:Di})}:/grep|search|rg/.test(t)&&!/web/.test(t)?{kind:"tool",label:"Searched",icon:(0,io.jsx)(kr,{className:Di})}:/glob|list|ls|tree|find/.test(t)?{kind:"tool",label:"Listed files",icon:(0,io.jsx)(wm,{className:Di})}:/web|fetch/.test(t)?{kind:"tool",label:"Fetched",icon:(0,io.jsx)(Em,{className:Di})}:{kind:"tool",label:e.name??"Tool",icon:(0,io.jsx)(ni,{className:Di})}}function nB(e){return e.map((t,a)=>{let o=Kj(t);return{id:`step-${a}`,type:"trace",kind:o.kind,icon:o.icon,label:(0,io.jsxs)(io.Fragment,{children:[o.label,t.ok===!1&&(0,io.jsx)("span",{className:"ml-1.5 text-xs font-normal text-destructive",children:"failed"}),t.t!=null&&(0,io.jsxs)("span",{className:"ml-1.5 text-xs font-normal tabular-nums text-muted-foreground/60",children:["+",Jn(t.t)]})]}),detail:t.text.length>200?`${t.text.slice(0,199)}\u2026`:t.text}})}var Me=R(Q(),1);function wp({title:e,children:t}){return(0,Me.jsxs)("section",{className:"space-y-2",children:[(0,Me.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}var uI=({children:e,mono:t})=>(0,Me.jsx)(oI,{className:re("max-h-60 whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e});function Zj({patch:e}){return(0,Me.jsx)(oI,{className:"max-h-72 rounded-lg border bg-muted/40",children:(0,Me.jsx)("pre",{className:"min-w-max p-3 font-mono text-xs leading-5",children:e.split(`
|
|
18
|
+
`).map((t,a)=>(0,Me.jsx)("div",{className:re(t.startsWith("+")&&!t.startsWith("+++")&&"bg-success/10 text-success",t.startsWith("-")&&!t.startsWith("---")&&"bg-destructive/10 text-destructive",t.startsWith("@@")&&"text-info"),children:t||" "},a))})})}var sB={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function Qj(e,t){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?Pl(Number(t)):e==="cost"?Number(t)?`$${Number(t).toFixed(3)}`:"free":e==="saved"?`~${cn(Number(t))}`:String(t)}function Ep({children:e,tone:t}){return(0,Me.jsx)("p",{className:re("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function Jj({d:e}){let[t,a]=(0,Gy.useState)(!1),[o,r]=(0,Gy.useState)(!1),[n,s]=(0,Gy.useState)(!1),i=e.state==="running"||e.state==="queued";return(0,Me.jsxs)("div",{className:"space-y-5",children:[!/^Review of /.test(e.task)&&(0,Me.jsx)(wp,{title:"Task",children:(0,Me.jsx)(uI,{children:e.task})}),(0,Me.jsx)(wp,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,Me.jsx)(WV,{items:nB(e.steps),status:i?"working":"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:260,activeLabel:"Working\u2026"}):(0,Me.jsx)("p",{className:"text-sm text-muted-foreground",children:i?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,Me.jsx)(wp,{title:"Result",children:(0,Me.jsx)(uI,{children:e.answer})}),e.changes.length>0&&(0,Me.jsxs)(wp,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,Me.jsx)("div",{className:"space-y-0.5 font-mono text-xs",children:e.changes.map(l=>(0,Me.jsxs)("div",{className:"flex gap-2",children:[(0,Me.jsx)("b",{className:re("w-3",l.status==="A"&&"text-success",l.status==="M"&&"text-warning",l.status==="D"&&"text-destructive"),children:l.status}),(0,Me.jsx)("span",{className:"break-all",children:l.path})]},l.path))}),e.patch&&(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)(Eo,{variant:"ghost",size:"sm",onClick:()=>a(l=>!l),children:t?"Hide the diff":"Show the diff"}),t&&(0,Me.jsx)(Zj,{patch:e.patch})]})]}),(0,Me.jsxs)(wp,{title:"Details",children:[(0,Me.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(sB).map(l=>{let u=e.info[l];return u==null||u===""||u===0&&l!=="cost"?null:(0,Me.jsxs)("div",{className:"min-w-0",children:[(0,Me.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:sB[l]}),(0,Me.jsx)("dd",{className:"break-words text-[13px]",children:Qj(l,u)})]},l)})}),e.refs&&(0,Me.jsxs)(Ep,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((l,u)=>(0,Me.jsxs)(Ep,{children:["Fell back from ",l.target,": ",l.error]},u)),e.warnings.map((l,u)=>(0,Me.jsx)(Ep,{children:l},u)),e.verify&&(0,Me.jsxs)(Ep,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,Me.jsx)(Ep,{tone:"bad",children:e.error}),(0,Me.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,Me.jsxs)(Eo,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),s(!0),setTimeout(()=>s(!1),1400)},children:[n?(0,Me.jsx)(Zn,{}):(0,Me.jsx)(Rm,{}),n?"Copied":e.id]}),(0,Me.jsx)(Eo,{variant:"ghost",size:"sm",onClick:()=>r(l=>!l),children:o?"Hide full report":"Full report"})]}),o&&(0,Me.jsx)(uI,{mono:!0,children:e.report})]})]})}function jy({id:e,live:t}){let{data:a,error:o}=Ai(()=>cr.run(e),t?3e3:6e5,[e,t]);return a?(0,Me.jsx)(Jj,{d:a}):o?(0,Me.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,Me.jsxs)("div",{className:"space-y-3",children:[(0,Me.jsx)(ss,{className:"h-16"}),(0,Me.jsx)(ss,{className:"h-24"})]})}var wn={};Aa(wn,{Backdrop:()=>uB,Close:()=>fB,Description:()=>hB,Handle:()=>ah,Popup:()=>mF,Portal:()=>xF,Root:()=>AF,Title:()=>OF,Trigger:()=>FF,Viewport:()=>MF,createHandle:()=>_F});var lB=R(M(),1);var Xy=R(M(),1),cI=Xy.createContext(void 0);function La(e){let t=Xy.useContext(cI);if(!e&&t===void 0)throw new Error(De(27));return t}var mu={};Aa(mu,{endingStyle:()=>Ap,startingStyle:()=>du});var du="data-starting-style",Ap="data-ending-style";var $j={[du]:""},eX={[Ap]:""},Xa={transitionStatus(e){return e==="starting"?$j:e==="ending"?eX:null}};var pu={};Aa(pu,{align:()=>rX,anchorHidden:()=>mI,closed:()=>dI,endingStyle:()=>aX,open:()=>fI,side:()=>oX,startingStyle:()=>tX});var fI="data-open",dI="data-closed",tX=du,aX=Ap,mI="data-anchor-hidden",oX="data-side",rX="data-align";var hu={};Aa(hu,{popupOpen:()=>Yy,pressed:()=>pI});var Yy="data-popup-open",pI="data-pressed";var nX={[Yy]:""},sX={[Yy]:"",[pI]:""},iX={[fI]:""},lX={[dI]:""},uX={[mI]:""},Rf={open(e){return e?nX:null}},iB={open(e){return e?sX:null}},Fr={open(e){return e?iX:lX},anchorHidden(e){return e?uX:null}},If={...Fr,...Xa};var uB=lB.forwardRef(function(t,a){let{render:o,className:r,style:n,forceRender:s=!1,...i}=t,l=La(),u=l.useState("open"),c=l.useState("nested"),d=l.useState("mounted"),f=l.useState("transitionStatus");return $("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,a],stateAttributesMapping:If,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},i],enabled:s||!c})});var cB=R(M(),1);var ne={};Aa(ne,{cancelOpen:()=>BX,chipRemovePress:()=>SX,clearPress:()=>yX,closePress:()=>gX,closeWatcher:()=>DX,decrementPress:()=>CX,disabled:()=>_X,drag:()=>kX,escapeKey:()=>AX,focusOut:()=>EX,imperativeAction:()=>UX,incrementPress:()=>vX,initial:()=>HX,inputBlur:()=>IX,inputChange:()=>LX,inputClear:()=>RX,inputPaste:()=>TX,inputPress:()=>wX,itemPress:()=>hX,keyboard:()=>PX,linkPress:()=>xX,listNavigation:()=>MX,missing:()=>zX,none:()=>cX,outsidePress:()=>pX,pointer:()=>OX,scrub:()=>VX,siblingOpen:()=>FX,swipe:()=>qX,trackPress:()=>bX,triggerFocus:()=>mX,triggerHover:()=>dX,triggerPress:()=>fX,wheel:()=>NX,windowResize:()=>GX});var cX="none",fX="trigger-press",dX="trigger-hover",mX="trigger-focus",pX="outside-press",hX="item-press",gX="close-press",xX="link-press",yX="clear-press",SX="chip-remove-press",bX="track-press",vX="increment-press",CX="decrement-press",LX="input-change",RX="input-clear",IX="input-blur",TX="input-paste",wX="input-press",EX="focus-out",AX="escape-key",DX="close-watcher",MX="list-navigation",PX="keyboard",OX="pointer",kX="drag",NX="wheel",VX="scrub",BX="cancel-open",FX="sibling-open",_X="disabled",zX="missing",HX="initial",UX="imperative-action",qX="swipe",GX="window-resize";function he(e,t,a,o){let r=!1,n=!1,s=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){n=!0},get isCanceled(){return r},get isPropagationAllowed(){return n},trigger:a,...s}}var fB=cB.forwardRef(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,nativeButton:i=!0,...l}=t,u=La(),c=u.useState("open"),{getButtonProps:d,buttonRef:f}=Ko({disabled:s,native:i}),m={disabled:s};function p(y){c&&u.setOpen(!1,he(ne.closePress,y.nativeEvent))}return $("button",t,{state:m,ref:[a,f],props:[{onClick:p},l,d]})});var pB=R(M(),1);var Wy=R(M(),1);var dB=0;function jX(e,t="mui"){let[a,o]=Wy.useState(e),r=e||a;return Wy.useEffect(()=>{a==null&&(dB+=1,o(`${t}-${dB}`))},[a,t]),r}var mB=Tp.useId;function Mi(e,t){if(mB!==void 0){let a=mB();return e??(t?`${t}-${a}`:a)}return jX(e,t)}function Tt(e){return Mi(e,"base-ui")}var hB=pB.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,l=La(),u=Tt(s);return l.useSyncedValueWithCleanup("descriptionElementId",u),$("p",t,{ref:a,props:[{id:u},i]})});var fF=R(M(),1);var lo=R(M(),1);var gB=R(M(),1);function Tf(e){gB.useEffect(e,Ro)}var Dp=0,Ya=class e{static create(){return new e}currentId=Dp;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Dp,a()},t)}isStarted(){return this.currentId!==Dp}clear=()=>{this.currentId!==Dp&&(clearTimeout(this.currentId),this.currentId=Dp)};disposeEffect=()=>this.clear};function Ze(){let e=tt(Ya.create).current;return Tf(e.disposeEffect),e}var at={};Aa(at,{engine:()=>SI,env:()=>vI,mediaQuery:()=>CI,os:()=>xI,screenReader:()=>bI});var xI={};Aa(xI,{android:()=>SB,apple:()=>gI,ios:()=>hI,linux:()=>ZX,mac:()=>bB,windows:()=>KX});function XX(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:YX,platform:WX,maxTouchPoints:xB}=XX(),gu=YX.toLowerCase(),xu=WX.toLowerCase();var hI=/^i(os$|p)/.test(xu)||xu==="macintel"&&xB>1,yB="android",SB=xu===yB||gu.includes(yB),bB=!hI&&xu.startsWith("mac"),KX=xu.startsWith("win"),ZX=!SB&&/^(linux|chrome os)/.test(xu),gI=bB||hI;var SI={};Aa(SI,{blink:()=>JX,gecko:()=>QX,webkit:()=>yI});var yI=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),QX=!yI&&gu.includes("firefox"),JX=!yI&&gu.includes("chrom");var bI={};Aa(bI,{voiceOver:()=>$X});var $X=gI;var vI={};Aa(vI,{jsdom:()=>eY});var eY=/jsdom|happydom/.test(gu);var CI={};Aa(CI,{iOS:()=>tY});var tY="@supports (-webkit-touch-callout: none)";function Ao(e){e.preventDefault(),e.stopPropagation()}function vB(e){return"nativeEvent"in e}function Pi(e){return e.pointerType===""&&e.isTrusted?!0:at.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wf(e){return at.env.jsdom?!1:!at.os.android&&e.width===0&&e.height===0||at.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Zo(e,t){let a=["mouse","pen"];return t||a.push("",void 0),a.includes(e)}function CB(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function _t(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ue(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&bn(a)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Je(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var Mp="data-base-ui-focusable";var LI="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Pp="ArrowLeft",Op="ArrowRight",RI="ArrowUp",Ky="ArrowDown";var jhe=hu.popupOpen,kp="data-trigger-disabled";function Oi(e,t){if(!Te(e))return!1;let a=e;if(t.hasElement(a))return!a.hasAttribute(kp);for(let[,o]of t.entries())if(ue(o,a))return!o.hasAttribute(kp);return!1}function Zy(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function RB(e){return e.matches("html,body")}function yu(e){return He(e)&&e.matches(LI)}function II(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${LI}`)!=null}function Np(e){return e?e.getAttribute("role")==="combobox"&&yu(e):!1}function IB(e){if(!e||at.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Su(e){return e?e.hasAttribute(Mp)?e:e.querySelector(`[${Mp}]`)||e:null}function aY(e,t){return t!=null&&!Zo(t)?0:typeof e=="function"?e():e}function _r(e,t,a){let o=aY(e,a);return typeof o=="number"?o:o?.[t]}function TI(e){return typeof e=="function"?e():e}function Qy(e,t){return t||e==="click"||e==="mousedown"}function TB(e){return e?.includes("mouse")&&e!=="mousedown"}var wB=R(Q(),1),EB=lo.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ya,currentIdRef:{current:null},currentContextRef:{current:null}});function oY(e,t){e.current=t.current}function wI(e){let{children:t,delay:a,timeoutMs:o=0}=e,r=lo.useRef(a),n=lo.useRef(a),s=lo.useRef(null),i=lo.useRef(null),l=Ze();return G(()=>{if(n.current=a,!s.current){r.current=a;return}r.current={open:_r(r.current,"open"),close:_r(a,"close")}},[a,s,r,n]),(0,wB.jsx)(EB.Provider,{value:lo.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:n,currentIdRef:s,timeoutMs:o,currentContextRef:i,timeout:l}),[o,l]),children:t})}function EI(e,t={open:!1}){let{open:a}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),n=lo.useContext(EB),{currentIdRef:s,delayRef:i,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=n,[m,p]=lo.useState(!1),y=lo.useRef(a);return G(()=>{y.current=a},[a]),G(()=>{function b(){c.current?.setIsInstantPhase(!1),s.current=null,c.current=null,i.current=u.current,f.clear()}if(s.current&&!a&&s.current===r){if(p(!1),l){let g=r;return f.start(l,()=>{o.select("open")||s.current&&s.current!==g||b()}),()=>{(y.current||s.current!==g)&&f.clear()}}b()}},[a,r,s,i,l,u,c,f,o]),G(()=>{if(!a)return;let b=c.current,g=s.current;f.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:p},s.current=r,i.current={open:0,close:_r(u.current,"close")},g!==null&&g!==r?(p(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,he(ne.none))):(p(!1),b?.setIsInstantPhase(!1))},[a,r,o,s,i,u,c,f]),G(()=>()=>{if(s.current===r){if(c.current=null,!y.current)return;s.current=null,oY(i,u),f.clear()}},[c,s,i,r,u,f]),lo.useMemo(()=>({activeIdRef:s,hasProvider:d,delayRef:i,isInstantPhase:m}),[s,d,i,m])}var Za=R(M(),1);function Le(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}function Wa(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];a&&a()}}}function pt(e){let t=tt(rY,e).current;return t.next=e,G(t.effect),t}function rY(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Jy=null,mge=globalThis.requestAnimationFrame,AI=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let a=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<a.length;r+=1)a[r]?.(t)};request(t){let a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){let a=t-this.startId;a<0||a>=this.callbacks.length||this.callbacks[a]!==null&&(this.callbacks[a]=null,this.callbacksCount-=1)}},$y=new AI;var xr=class e{static create(){return new e}static request(t){return $y.request(t)}static cancel(t){return $y.cancel(t)}currentId=Jy;request(t){this.cancel(),this.currentId=$y.request(()=>{this.currentId=Jy,t()})}cancel=()=>{this.currentId!==Jy&&($y.cancel(this.currentId),this.currentId=Jy)};disposeEffect=()=>this.cancel};function uo(){let e=tt(xr.create).current;return Tf(e.disposeEffect),e}var eS=R(M(),1);var AB={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Ef={...AB,position:"fixed",top:0,left:0},DB={...AB,position:"absolute"};var MB=R(Q(),1),Af=eS.forwardRef(function(t,a){let[o,r]=eS.useState();return G(()=>{at.screenReader.voiceOver&&at.engine.webkit&&r("button")},[]),(0,MB.jsx)("span",{...t,ref:a,style:Ef,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});var ki=Math.min,zr=Math.max,Ni=Math.round,Bp=Math.floor,Ln=e=>({x:e,y:e}),nY={left:"right",right:"left",bottom:"top",top:"bottom"};function aS(e,t,a){return zr(e,ki(t,a))}function Rn(e,t){return typeof e=="function"?e(t):e}function Ka(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function oS(e){return e==="x"?"y":"x"}function Fp(e){return e==="y"?"height":"width"}function Do(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function _p(e){return oS(Do(e))}function kB(e,t,a){a===void 0&&(a=!1);let o=yr(e),r=_p(e),n=Fp(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Vp(s)),[s,Vp(s)]}function NB(e){let t=Vp(e);return[tS(e),t,tS(t)]}function tS(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var PB=["left","right"],OB=["right","left"],sY=["top","bottom"],iY=["bottom","top"];function lY(e,t,a){switch(e){case"top":case"bottom":return a?t?OB:PB:t?PB:OB;case"left":case"right":return t?sY:iY;default:return[]}}function VB(e,t,a,o){let r=yr(e),n=lY(Ka(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(tS)))),n}function Vp(e){let t=Ka(e);return nY[t]+e.slice(t.length)}function uY(e){var t,a,o,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function rS(e){return typeof e!="number"?uY(e):{top:e,right:e,bottom:e,left:e}}function is(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Vi(e,t){return t<0||t>=e.length}function bu(e,t){return Sr(e.current,{disabledIndices:t})}function Df(e,t){return Sr(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Sr(e,{startingIndex:t=-1,decrement:a=!1,disabledIndices:o,amount:r=1}={}){let n=t;do n+=a?-r:r;while(n>=0&&n<=e.length-1&&ls(e,n,o));return n}function ls(e,t,a){if(typeof a=="function"?a(t):a?.includes(t)??!1)return!0;let r=e[t];return r?!vu(r)||r.matches(":disabled")?!0:!a&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function cY(e){return e.visibility==="hidden"||e.visibility==="collapse"}function vu(e,t=e?pa(e):null){return!e||!e.isConnected||!t||cY(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var fY='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function dY(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return bn(a)?a.host:null}function MI(e){for(let t of Array.from(e.children))if(Wt(t)==="summary")return t;return null}function mY(e,t){let a=MI(t);return!!a&&(e===a||ue(a,e))}function BB(e){let t=e?Wt(e):"";return e!=null&&e.matches(fY)&&(t!=="summary"||e.parentElement!=null&&Wt(e.parentElement)==="details"&&MI(e.parentElement)===e)&&(t!=="details"||MI(e)==null)&&(t!=="input"||e.type!=="hidden")}function FB(e){if(!BB(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=dY(t)){let a=t!==e,o=Wt(t)==="slot";if(t.hasAttribute("inert")||a&&Wt(t)==="details"&&!t.open&&!mY(e,t)||t.hasAttribute("hidden")||!o&&!pY(t,a))return!1}return!0}function pY(e,t){let a=pa(e);return t?a.display!=="none":vu(e,a)}function _B(e){let t=e.tabIndex;if(t<0){let a=Wt(e);if(a==="details"||a==="audio"||a==="video"||He(e)&&e.isContentEditable)return 0}return t}function DI(e){if(Wt(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function hY(e,t){let a=DI(e);if(!a)return!0;let o=t.find(r=>{let n=DI(r);return n?.name===a.name&&n.form===a.form&&n.checked});return o?o===a:t.find(r=>{let n=DI(r);return n?.name===a.name&&n.form===a.form})===a}function zB(e){if(He(e)&&Wt(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return He(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function HB(e,t){zB(e).forEach(a=>{BB(a)&&t.push(a),HB(a,t)})}function UB(e,t,a){zB(e).forEach(o=>{He(o)&&o.matches(t)&&a.push(o),UB(o,t,a)})}function nS(e){return FB(e)&&_B(e)>=0}function PI(e){let t=[];return HB(e,t),t.filter(FB)}function zp(e){let t=PI(e);return t.filter(a=>_B(a)>=0&&hY(a,t))}function qB(e,t){let a=zp(e),o=a.length;if(o===0)return;let r=_t(be(e)),n=a.indexOf(r),s=n===-1?t===1?0:o-1:n+t;return a[s]}function sS(e){return qB(be(e).body,1)||e}function iS(e){return qB(be(e).body,-1)||e}function Cu(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!ue(a,o)}function GB(e){zp(e).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function OI(e){let t=[];UB(e,"[data-tabindex]",t),t.forEach(a=>{let o=a.dataset.tabindex;delete a.dataset.tabindex,o?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")})}function br(e,t,a=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!a||r.context?.open?[r]:[],...br(e,r.id,a)])}function kI(e,t){let a=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){let r=e.find(n=>n.id===o);o=r?.parentId,r&&(a=a.concat(r))}return a}function us(e){return`data-base-ui-${e}`}var lS=0;function Mf(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(lS);function n(){r&&!r()||e?.focus({preventScroll:a})}if(o)return n(),Ne;let s=requestAnimationFrame(n);return lS=s,()=>{lS===s&&(cancelAnimationFrame(s),lS=0)}}var NI={inert:new WeakMap,"aria-hidden":new WeakMap},jB="data-base-ui-inert",BI={inert:new WeakSet,"aria-hidden":new WeakSet},Hp=new WeakMap,VI=0;function gY(e){return BI[e]}function KB(e){return e?bn(e)?e.host:KB(e.parentNode):null}var XB=(e,t)=>t.map(a=>{if(e.contains(a))return a;let o=KB(a);return e.contains(o)?o:null}).filter(a=>a!=null),YB=e=>{let t=new Set;return e.forEach(a=>{let o=a;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},WB=(e,t,a)=>{let o=[],r=n=>{!n||a.has(n)||Array.from(n.children).forEach(s=>{Wt(s)!=="script"&&(t.has(s)?r(s):o.push(s))})};return r(e),o};function xY(e,t,a,o,{mark:r=!0}){let n=null;o?n="inert":a&&(n="aria-hidden");let s=null,i=null,l=XB(t,e),u=r?WB(t,YB(l),new Set(l)):[],c=[],d=[];if(n){let f=NI[n],m=gY(n);i=m,s=f;let p=XB(t,Array.from(t.querySelectorAll("[aria-live]"))),y=l.concat(p);WB(t,YB(y),new Set(y)).forEach(g=>{let h=g.getAttribute(n),x=h!==null&&h!=="false",S=(f.get(g)||0)+1;f.set(g,S),c.push(g),S===1&&x&&m.add(g),x||g.setAttribute(n,n==="inert"?"":"true")})}return r&&u.forEach(f=>{let m=(Hp.get(f)||0)+1;Hp.set(f,m),d.push(f),m===1&&f.setAttribute(jB,"")}),VI+=1,()=>{s&&c.forEach(f=>{let p=(s.get(f)||0)-1;s.set(f,p),p||(!i?.has(f)&&n&&f.removeAttribute(n),i?.delete(f))}),r&&d.forEach(f=>{let m=(Hp.get(f)||0)-1;Hp.set(f,m),m||f.removeAttribute(jB)}),VI-=1,VI||(NI.inert=new WeakMap,NI["aria-hidden"]=new WeakMap,BI.inert=new WeakSet,BI["aria-hidden"]=new WeakSet,Hp=new WeakMap)}}function FI(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:r=!0}=t,n=be(e[0]).body;return xY(e,n,a,o,{mark:r})}var At=R(M(),1),_I=R(Yr(),1);var ZB={style:{transition:"none"}},uS="data-base-ui-click-trigger",yY="data-base-ui-swipe-ignore",SY="data-swipe-ignore",Nge=`[${yY}]`,Vge=`[${SY}]`,QB={fallbackAxisSide:"none"},JB={fallbackAxisSide:"end"},$B={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Lu=R(Q(),1),e2=At.createContext(null),zI=()=>At.useContext(e2),bY=us("portal");function cS(e={}){let{ref:t,container:a,componentProps:o=We,elementProps:r}=e,n=Mi(),i=zI()?.portalNode,[l,u]=At.useState(null),[c,d]=At.useState(null),f=W(b=>{b!==null&&d(b)}),m=At.useRef(null);G(()=>{if(a===null){m.current&&(m.current=null,d(null),u(null));return}let b=(a&&(Fy(a)?a:a.current))??i??document.body;if(b==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==b&&(m.current=b,d(null),u(b))},[a,i]);let p=$("div",o,{ref:[t,f],props:[{id:n,[bY]:""},r]}),y=l&&p?_I.createPortal(p,l):null;return{node:c,nodeId:At.isValidElement(p)?p.props.id:void 0,subtree:y}}var Up=At.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,container:i,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=cS({container:i,ref:a,componentProps:t,elementProps:u}),m=At.useRef(null),p=At.useRef(null),y=At.useRef(null),b=At.useRef(null),[g,h]=At.useState(null),x=At.useRef(!1),S=g?.modal,v=g?.open,I=!!g&&!g.modal&&g.open&&!!c;At.useEffect(()=>{if(!c||S)return;function C(E){c&&E.relatedTarget&&Cu(E)&&(E.type==="focusin"?x.current&&(OI(c),x.current=!1):(GB(c),x.current=!0))}return Wa(Le(c,"focusin",C,!0),Le(c,"focusout",C,!0))},[c,S]),G(()=>{!c||v!==!0||!x.current||(OI(c),x.current=!1)},[v,c]);let L=At.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:y,afterInsideRef:b,portalNode:c,setFocusManagerState:h}),[c]);return(0,Lu.jsxs)(At.Fragment,{children:[f,(0,Lu.jsxs)(e2.Provider,{value:L,children:[I&&c&&(0,Lu.jsx)(Af,{"data-type":"outside",ref:m,onFocus:C=>{if(Cu(C,c))y.current?.focus();else{let E=g?g.domReference:null;iS(E)?.focus()}}}),I&&c&&(0,Lu.jsx)("span",{role:l,"aria-owns":d,style:$B}),c&&_I.createPortal(s,c),I&&c&&(0,Lu.jsx)(Af,{"data-type":"outside",ref:p,onFocus:C=>{if(Cu(C,c))b.current?.focus();else{let E=g?g.domReference:null;sS(E)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,he(ne.focusOut,C.nativeEvent))}}})]})]})});var Ru=R(M(),1);function t2(){let e=new Map;return{emit(t,a){e.get(t)?.forEach(o=>o(a))},on(t,a){e.has(t)||e.set(t,new Set),e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var vY=R(Q(),1),CY=Ru.createContext(null),LY=Ru.createContext(null),Bi=()=>Ru.useContext(CY)?.id||null,vr=e=>{let t=Ru.useContext(LY);return e??t};function Hr(e){return e==null?e:"current"in e?e.current:e}var qp=R(Q(),1);function RY(e,t){let a=ze(Je(e));return e instanceof a.KeyboardEvent?"keyboard":e instanceof a.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof a.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var a2=20,Fi=[];function HI(){Fi=Fi.filter(e=>e.deref()?.isConnected)}function o2(e){HI(),e&&Wt(e)!=="body"&&(Fi.push(new WeakRef(e)),Fi.length>a2&&(Fi=Fi.slice(-a2)))}function r2(){return HI(),Fi[Fi.length-1]?.deref()}function IY(e){return e?nS(e)?e:zp(e)[0]||e:null}function n2(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let a=PI(e).filter(r=>{let n=r.getAttribute("data-tabindex")||"";return nS(r)||r.hasAttribute("data-tabindex")&&!n.startsWith("-")}),o=e.getAttribute("tabindex");a.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Gp(e){let{context:t,children:a,disabled:o=!1,initialFocus:r=!0,returnFocus:n=!0,restoreFocus:s=!1,modal:i=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,y="rootStore"in t?t.rootStore:t,b=y.useState("open"),g=y.useState("domReferenceElement"),h=y.useState("floatingElement"),{events:x,dataRef:S}=y.context,v=W(()=>S.current.floatingContext?.nodeId),I=r===!1,L=Np(g)&&I,C=pt(r),E=pt(n),T=pt(u),A=pt(b),N=vr(m),D=zI(),F=Za.useRef(!1),k=Za.useRef(!1),z=Za.useRef(!1),q=Za.useRef(null),O=Za.useRef(""),V=Za.useRef(""),w=Za.useRef(null),_=Za.useRef(null),U=fr(w,f,D?.beforeInsideRef),X=fr(_,D?.afterInsideRef),P=Ze(),H=Ze(),B=uo(),J=D!=null,Y=Su(h),te=W((ee=Y)=>ee?zp(ee):[]),ie=W(()=>p?.().filter(ee=>ee!=null)??[]);Za.useEffect(()=>{if(o||!i)return;function ee(me){me.key==="Tab"&&ue(Y,_t(be(Y)))&&te().length===0&&!L&&Ao(me)}let ae=be(Y);return Le(ae,"keydown",ee)},[o,Y,i,L,te]),Za.useEffect(()=>{if(o||!b)return;let ee=be(Y);function ae(){z.current=!1}function me(we){let pe=Je(we),Re=ie(),le=ue(h,pe)||ue(g,pe)||ue(D?.portalNode,pe)||Re.some(Ie=>Ie===pe||ue(Ie,pe));z.current=!le,V.current=we.pointerType||"keyboard",pe?.closest(`[${uS}]`)&&(k.current=!0,H.start(0,()=>{k.current=!1}))}function ge(){V.current="keyboard"}return Wa(Le(ee,"pointerdown",me,!0),Le(ee,"pointerup",ae,!0),Le(ee,"pointercancel",ae,!0),Le(ee,"keydown",ge,!0),ae)},[o,h,g,Y,b,D,H,ie]),Za.useEffect(()=>{if(o||!l)return;let ee=be(Y);function ae(){k.current=!0,H.start(0,()=>{k.current=!1})}function me(Re){let le=Je(Re);nS(le)&&(q.current=le)}function ge(Re){let le=Re.relatedTarget,Ie=Re.currentTarget,Ve=Je(Re);i&&le==null&&Ve!=null&&ue(h,Ve)&&o2(Ve),queueMicrotask(()=>{let Pe=v(),ut=y.context.triggerElements,oe=ie(),fe=le?.hasAttribute(us("focus-guard"))&&[w.current,_.current,D?.beforeInsideRef.current,D?.afterInsideRef.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,Hr(d),Hr(c)].includes(le),K=!(ue(g,le)||ue(h,le)||ue(le,h)||ue(D?.portalNode,le)||oe.some(j=>j===le||ue(j,le))||ut.hasMatchingElement(j=>ue(j,le))||fe||N&&(br(N.nodesRef.current,Pe).find(j=>ue(j.context?.elements.floating,le)||ue(j.context?.elements.domReference,le))||kI(N.nodesRef.current,Pe).find(j=>[j.context?.elements.floating,Su(j.context?.elements.floating)].includes(le)||j.context?.elements.domReference===le)));if(Ie===g&&Y&&n2(Y),s&&Ie!==g&&!vu(Ve)&&_t(ee)===ee.body){if(He(Y)&&(Y.focus(),s==="popup")){B.request(()=>{Y.focus()});return}let j=te(),se=q.current,Be=(se&&j.includes(se)?se:null)||j[j.length-1]||Y;He(Be)&&Be.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(L||!i)&&le&&K&&!k.current&&(L||le!==r2())&&(F.current=!0,y.setOpen(!1,he(ne.focusOut,Re)))})}function we(){z.current||(S.current.insideReactTree=!0,P.start(0,()=>{S.current.insideReactTree=!1}))}let pe=He(g)?g:null;if(!(!h&&!pe))return Wa(pe&&Le(pe,"focusout",ge),pe&&Le(pe,"pointerdown",ae),h&&Le(h,"focusin",me),h&&Le(h,"focusout",ge),h&&D&&Le(h,"focusout",we,!0))},[o,g,h,Y,i,N,D,y,l,s,te,L,v,S,P,H,B,c,d,ie]),Za.useEffect(()=>{if(o||!h||!b)return;let ee=Array.from(D?.portalNode?.querySelectorAll(`[${us("portal")}]`)||[]),me=(N?kI(N.nodesRef.current,v()):[]).find(Ie=>Np(Ie.context?.elements.domReference||null))?.context?.elements.domReference,we=[...[h,...ee,w.current,_.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,...ie()],me,Hr(d),Hr(c),L?g:null].filter(Ie=>Ie!=null),pe=FI(we,{ariaHidden:i||L,mark:!1}),Re=[h,...ee].filter(Ie=>Ie!=null),le=FI(Re);return()=>{le(),pe()}},[b,o,g,h,i,D,L,N,v,c,d,ie]),G(()=>{if(!b||o||!He(Y))return;O.current="",V.current="";let ee=be(Y),ae=_t(ee);queueMicrotask(()=>{let me=C.current,ge=typeof me=="function"?me(T.current||""):me;if(ge===void 0||ge===!1||ue(Y,ae))return;let pe=null,Re=()=>(pe==null&&(pe=te(Y)),pe[0]||Y),le;ge===!0||ge===null?le=Re():le=Hr(ge),le=le||Re();let Ie=ue(Y,_t(ee));Mf(le,{preventScroll:le===Y,shouldFocus(){if(!A.current)return!1;if(Ie)return!0;let Ve=_t(ee);return!(Ve!==le&&ue(Y,Ve))}})})},[o,b,Y,te,C,T,A]),G(()=>{if(o||!Y)return;let ee=be(Y),ae=_t(ee),me=T.current==null;o2(ae);function ge(pe){if(pe.open||(O.current=RY(pe.nativeEvent,V.current)),pe.reason===ne.triggerHover&&pe.nativeEvent.type==="mouseleave"&&(F.current=!0),pe.reason===ne.outsidePress)if(pe.nested)F.current=!1;else if(Pi(pe.nativeEvent)||wf(pe.nativeEvent))F.current=!1;else{let Re=!1;be(Y).createElement("div").focus({get preventScroll(){return Re=!0,!1}}),Re?F.current=!1:F.current=!0}}x.on("openchange",ge);function we(pe){let Re=E.current,le=typeof Re=="function"?Re(pe):Re;if(le===void 0||le===!1)return null;le===null&&(le=!0);let Ie=g?.isConnected?g:null,Ve=ae?.isConnected&&Wt(ae)!=="body"?ae:null,Pe=me?Ve||Ie:Ie||Ve;return Pe||(Pe=r2()||null),typeof le=="boolean"?Pe:Hr(le)||Pe||null}return()=>{x.off("openchange",ge);let pe=_t(ee),Re=ie(),le=ue(h,pe)||Re.some(ut=>ut===pe||ue(ut,pe))||N&&br(N.nodesRef.current,v(),!1).some(ut=>ue(ut.context?.elements.floating,pe)),Ie=E.current,Ve=O.current,Pe=we(Ve);queueMicrotask(()=>{let ut=IY(Pe),oe=typeof Ie!="boolean";if(Ie&&!F.current&&He(ut)&&(!(!oe&&ut!==pe&&pe!==ee.body)||le)){let fe={preventScroll:!0};Ve==="keyboard"&&(fe.focusVisible=!0),ut.focus(fe)}F.current=!1})}},[o,h,Y,E,T,x,N,g,v,ie]),G(()=>{if(!at.engine.webkit||b||!h)return;let ee=_t(be(h));!He(ee)||!yu(ee)||ue(h,ee)&&ee.blur()},[b,h]),G(()=>{if(!(o||!D))return D.setFocusManagerState({modal:i,closeOnFocusOut:l,open:b,onOpenChange:y.setOpen,domReference:g}),()=>{D.setFocusManagerState(null)}},[o,D,i,b,y,l,g]),G(()=>{if(!(o||!Y))return n2(Y),()=>{queueMicrotask(HI)}},[o,Y]);let ce=!o&&(i?!L:!0)&&(J||i);return(0,qp.jsxs)(Za.Fragment,{children:[ce&&(0,qp.jsx)(Af,{"data-type":"inside",ref:U,onFocus:ee=>{if(i){let ae=te();Mf(ae[ae.length-1])}else D?.portalNode&&(F.current=!1,Cu(ee,D.portalNode)?sS(g)?.focus():Hr(d??D.beforeOutsideRef)?.focus())}}),a,ce&&(0,qp.jsx)(Af,{"data-type":"inside",ref:X,onFocus:ee=>{i?Mf(te()[0]):D?.portalNode&&(l&&(F.current=!0),Cu(ee,D.portalNode)?iS(g)?.focus():Hr(c??D.afterOutsideRef)?.focus())}})]})}var jp=R(M(),1);function Xp(e,t={}){let{enabled:a=!0,event:o="click",toggle:r=!0,ignoreMouse:n=!1,stickIfOpen:s=!0,touchOpenDelay:i=0,reason:l=ne.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=jp.useRef(void 0),f=uo(),m=Ze(),p=jp.useMemo(()=>{function y(g,h,x,S){let v=he(l,h,x);g&&S==="touch"&&i>0?m.start(i,()=>{u.setOpen(!0,v)}):u.setOpen(g,v)}function b(g,h,x){let S=c.current.openEvent,v=u.select("domReferenceElement")!==h;return g&&v||!g||!r?!0:S&&s?!x(S.type):!1}return{onPointerDown(g){d.current=Zo(g.pointerType,!0)&&wf(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let h=d.current,x=g.nativeEvent,S=u.select("open");if(g.button!==0||o==="click"||Zo(h,!0)&&n)return;let v=b(S,g.currentTarget,C=>C==="click"||C==="mousedown"),I=Je(x);if(yu(I)){y(v,x,I,h);return}let L=g.currentTarget;f.request(()=>{y(v,x,L,h)})},onClick(g){if(o==="mousedown-only")return;let h=d.current;if(o==="mousedown"&&h){d.current=void 0;return}if(Zo(h,!0)&&n)return;let x=u.select("open"),S=b(x,g.currentTarget,v=>v==="click"||v==="mousedown"||v==="keydown"||v==="keyup");y(S,g.nativeEvent,g.currentTarget,h)},onKeyDown(){d.current=void 0}}},[c,o,n,l,u,s,r,f,m,i]);return jp.useMemo(()=>a?{reference:p}:We,[a,p])}var Mo=R(M(),1);function TY(e,t){let a=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let n=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",i=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=n.width,c=n.height,d=n.x,f=n.y;return a==null&&t.x&&s&&(a=n.x-t.x),o==null&&t.y&&i&&(o=n.y-t.y),d-=a||0,f-=o||0,u=0,c=0,!r||l?(u=t.axis==="y"?n.width:0,c=t.axis==="x"?n.height:0,d=s&&t.x!=null?t.x:d,f=i&&t.y!=null?t.y:f):r&&!l&&(c=t.axis==="x"?n.height:c,u=t.axis==="y"?n.width:u),r=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function s2(e){return e!=null&&e.clientX!=null}function UI(e,t={}){let{enabled:a=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("open"),s=r.useState("floatingElement"),i=r.useState("domReferenceElement"),l=r.context.dataRef,u=Mo.useRef(!1),c=Mo.useRef(null),[d,f]=Mo.useState(),[m,p]=Mo.useState([]),y=W(S=>{r.set("positionReference",S)}),b=W((S,v,I)=>{u.current||l.current.openEvent&&!s2(l.current.openEvent)||r.set("positionReference",TY(I??i,{x:S,y:v,axis:o,dataRef:l,pointerType:d}))}),g=W(S=>{n?c.current||(b(S.clientX,S.clientY,S.currentTarget),p([])):b(S.clientX,S.clientY,S.currentTarget)}),h=Zo(d)?s:n;Mo.useEffect(()=>{if(!a){y(i);return}if(!h)return;function S(){c.current?.(),c.current=null}let v=ze(s);function I(L){let C=Je(L);ue(s,C)?S():b(L.clientX,L.clientY)}return!l.current.openEvent||s2(l.current.openEvent)?c.current=Le(v,"mousemove",I):y(i),S},[h,a,s,l,i,r,b,y,m]),Mo.useEffect(()=>()=>{r.set("positionReference",null)},[r]),Mo.useEffect(()=>{a&&!s&&(u.current=!1)},[a,s]),Mo.useEffect(()=>{!a&&n&&(u.current=!0)},[a,n]);let x=Mo.useMemo(()=>{function S(v){f(v.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:g,onMouseEnter:g}},[g]);return Mo.useMemo(()=>a?{reference:x,trigger:x}:{},[a,x])}var co=R(M(),1);function wY(){return!1}function EY(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Iu(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:n="sloppy",referencePress:s=wY,bubbles:i,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=vr(l),y=W(typeof r=="function"?r:()=>!1),b=typeof r=="function"?y:r,g=b!==!1,h=W(()=>n),{escapeKey:x,outsidePress:S}=EY(i),v=co.useRef(!1),I=co.useRef(!1),L=co.useRef(!1),C=co.useRef(!1),E=co.useRef(!1),T=co.useRef(""),A=co.useRef(null),N=Ze(),D=Ze(),F=W(()=>{D.clear(),f.current.insideReactTree=!1}),k=W(P=>{let H=f.current.floatingContext?.nodeId;return(p?br(p.nodesRef.current,H):[]).some(J=>J.context?.open&&!J.context.dataRef.current[P])}),z=W(P=>Zy(P,u.select("floatingElement"))||Zy(P,u.select("domReferenceElement"))),q=W(P=>{s()&&u.setOpen(!1,he(ne.triggerPress,P.nativeEvent))}),O=W(P=>{if(!c||!a||!o||P.key!=="Escape"||E.current||!x&&k("__escapeKeyBubbles"))return;let H=vB(P)?P.nativeEvent:P,B=he(ne.escapeKey,H);u.setOpen(!1,B),B.isCanceled||P.preventDefault(),!x&&!B.isPropagationAllowed&&P.stopPropagation()}),V=W(()=>{f.current.insideReactTree=!0,D.start(0,F)}),w=W(P=>{if(!c||!a||P.button!==0)return;let H=Je(P.nativeEvent);ue(u.select("floatingElement"),H)&&(v.current||(v.current=!0,I.current=!1))}),_=W(P=>{!c||!a||(P.defaultPrevented||P.nativeEvent.defaultPrevented)&&v.current&&(I.current=!0)});co.useEffect(()=>{function P(H){H.open||(C.current=!1)}return m.on("openchange",P),()=>{m.off("openchange",P)}},[m]),co.useEffect(()=>{if(!c||!a)return c||(C.current=!1),F;f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=S;let P=new Ya,H=new Ya,B=be(d);function J(){P.clear(),E.current=!0}function Y(){P.start(at.engine.webkit?5:0,()=>{E.current=!1})}function te(){L.current=!0,H.start(0,()=>{L.current=!1})}function ie(){v.current=!1,I.current=!1}function ce(){let K=T.current,j=K==="pen"||!K?"mouse":K,se=h(),Be=typeof se=="function"?se():se;return typeof Be=="string"?Be:Be[j]}function ee(K){let j=ce();return j==="intentional"&&K.type!=="click"||j==="sloppy"&&K.type==="click"}function ae(K){let j=f.current.floatingContext?.nodeId,se=p&&br(p.nodesRef.current,j).some(Be=>Zy(K,Be.context?.elements.floating));return z(K)||se}function me(K){if(ee(K)){K.type!=="click"&&!z(K)&&(H.clear(),L.current=!1),F();return}if(f.current.insideReactTree){F();return}let j=Je(K),se=`[${us("inert")}]`,Be=Te(j)?j.getRootNode():null,Vt=Array.from((bn(Be)?Be:be(u.select("floatingElement"))).querySelectorAll(se)),Jt=u.context.triggerElements;if(j&&(Jt.hasElement(j)||Jt.hasMatchingElement(bt=>ue(bt,j))))return;let Et=Te(j)?j:null;for(;Et&&!gr(Et);){let bt=Wo(Et);if(gr(bt)||!Te(bt))break;Et=bt}if(!(Vt.length&&Te(j)&&!RB(j)&&!ue(j,u.select("floatingElement"))&&Vt.every(bt=>!ue(Et,bt)))){if(He(j)&&!("touches"in K)){let bt=gr(j),wa=pa(j),Ea=/auto|scroll/,$t=bt||Ea.test(wa.overflowX),za=bt||Ea.test(wa.overflowY),mo=$t&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,$o=za&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,ha=wa.direction==="rtl",Ht=$o&&(ha?K.offsetX<=j.offsetWidth-j.clientWidth:K.offsetX>j.clientWidth),Ee=mo&&K.offsetY>j.clientHeight;if(Ht||Ee)return}if(!ae(K)){if(ce()==="intentional"){if(K.detail!==0&&!Pi(K)&&!C.current)return;if(L.current){H.clear(),L.current=!1;return}}typeof b=="function"&&!b(K)||k("__outsidePressBubbles")||(u.setOpen(!1,he(ne.outsidePress,K)),F())}}}function ge(K){ce()!=="sloppy"||K.pointerType==="touch"||!u.select("open")||!a||z(K)||me(K)}function we(K){if(ce()!=="sloppy"||!u.select("open")||!a||z(K))return;let j=K.touches[0];j&&(A.current={startTime:Date.now(),startX:j.clientX,startY:j.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function pe(K,j){let se=Je(K);if(!se)return;let Be=Le(se,K.type,()=>{j(K),Be()})}function Re(K){T.current="touch",pe(K,we)}function le(K){N.clear(),K.type==="pointerdown"&&(K.button===0&&(C.current=!0),T.current=K.pointerType),!(K.type==="mousedown"&&A.current&&!A.current.dismissOnMouseDown)&&pe(K,j=>{j.type==="pointerdown"?ge(j):me(j)})}function Ie(K){if(K.type==="pointercancel"&&(C.current=!1),!v.current)return;let j=I.current;if(ie(),ce()==="intentional"){if(K.type==="pointercancel"){j&&te();return}if(!ae(K)){if(j){te();return}typeof b=="function"&&!b(K)||(H.clear(),L.current=!0,F())}}}function Ve(K){if(ce()!=="sloppy"||!A.current||z(K))return;let j=K.touches[0];if(!j)return;let se=Math.abs(j.clientX-A.current.startX),Be=Math.abs(j.clientY-A.current.startY),Vt=Math.sqrt(se*se+Be*Be);Vt>5&&(A.current.dismissOnTouchEnd=!0),Vt>10&&(me(K),N.clear(),A.current=null)}function Pe(K){pe(K,Ve)}function ut(K){ce()!=="sloppy"||!A.current||z(K)||(A.current.dismissOnTouchEnd&&me(K),N.clear(),A.current=null)}function oe(K){pe(K,ut)}let fe=Wa(o&&Wa(Le(B,"keydown",O),Le(B,"compositionstart",J),Le(B,"compositionend",Y)),g&&Wa(Le(B,"click",le,!0),Le(B,"pointerdown",le,!0),Le(B,"pointerup",Ie,!0),Le(B,"pointercancel",Ie,!0),Le(B,"mousedown",le,!0),Le(B,"mouseup",Ie,!0),Le(B,"touchstart",Re,{capture:!0,passive:!0}),Le(B,"touchmove",Pe,{capture:!0,passive:!0}),Le(B,"touchend",oe,{capture:!0,passive:!0})));return()=>{fe(),P.clear(),H.clear(),ie(),L.current=!1,F()}},[f,d,o,g,b,c,a,x,S,O,F,h,k,z,p,u,N]);let U=co.useMemo(()=>({onKeyDown:O,onPointerDown:q,onClick:q}),[O,q]),X=co.useMemo(()=>({onKeyDown:O,onPointerDown:_,onMouseDown:_,onClickCapture:V,onMouseDownCapture(P){V(),w(P)},onPointerDownCapture(P){V(),w(P)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[O,V,w,_]);return co.useMemo(()=>a?{reference:U,floating:X,trigger:U}:{},[a,U,X])}var Qa=R(M(),1);function i2(e,t,a){let{reference:o,floating:r}=e,n=Do(t),s=_p(t),i=Fp(s),l=Ka(t),u=n==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[i]/2-r[i]/2,m;switch(l){case"top":m={x:c,y:o.y-r.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}let p=yr(t);return p&&(m[s]+=f*(p==="end"?1:-1)*(a&&u?-1:1)),m}async function l2(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Rn(t,e),p=rS(m),b=i[f?d==="floating"?"reference":"floating":d],g=is(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(b)))==null||a?b:b.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),h=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),S=await(n.isElement==null?void 0:n.isElement(x))&&await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1},v=is(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:x,strategy:l}):h);return{top:(g.top-v.top+p.top)/S.y,bottom:(v.bottom-g.bottom+p.bottom)/S.y,left:(g.left-v.left+p.left)/S.x,right:(v.right-g.right+p.right)/S.x}}var AY=50,u2=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:l2},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=i2(u,o,l),f=o,m=0,p={};for(let y=0;y<n.length;y++){let b=n[y];if(!b)continue;let{name:g,fn:h}=b,{x,y:S,data:v,reset:I}=await h({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=x??c,d=S??d,p[g]={...p[g],...v},I&&m<AY&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:c,y:d}=i2(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};var c2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...b}=Rn(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let g=Ka(r),h=Do(i),x=Ka(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),v=f||(x||!y?[Vp(i)]:NB(i)),I=p!=="none";!f&&I&&v.push(...VB(i,y,p,S));let L=[i,...v],C=await l.detectOverflow(t,b),E=[],T=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&E.push(C[g]),d){let F=kB(r,s,S);E.push(C[F[0]],C[F[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(F=>F<=0)){var A,N;let F=(((A=n.flip)==null?void 0:A.index)||0)+1,k=L[F];if(k&&(!(d==="alignment"?h!==Do(k):!1)||T.every(O=>Do(O.placement)===h?O.overflows[0]>0:!0)))return{data:{index:F,overflows:T},reset:{placement:k}};let z=(N=T.filter(q=>q.overflows[0]<=0).sort((q,O)=>q.overflows[1]-O.overflows[1])[0])==null?void 0:N.placement;if(!z)switch(m){case"bestFit":{var D;let q=(D=T.filter(O=>{if(I){let V=Do(O.placement);return V===h||V==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(V=>V>0).reduce((V,w)=>V+w,0)]).sort((O,V)=>O[1]-V[1])[0])==null?void 0:D[0];q&&(z=q);break}case"initialPlacement":z=i;break}if(r!==z)return{reset:{placement:z}}}return{}}}};var f2=new Set(["left","top"]);async function DY(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ka(a),i=yr(a),l=Do(a)==="y",u=f2.has(s)?-1:1,c=n&&l?-1:1,d=Rn(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var d2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await DY(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},m2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:h=>{let{x,y:S}=h;return{x,y:S}}},...u}=Rn(e,t),c={x:a,y:o},d=await n.detectOverflow(t,u),f=Do(r),m=oS(f),p=c[m],y=c[f],b=(h,x)=>aS(x+d[h==="y"?"top":"left"],x,x-d[h==="y"?"bottom":"right"]);s&&(p=b(m,p)),i&&(y=b(f,y));let g=l.fn({...t,[m]:p,[f]:y});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[m]:s,[f]:i}}}}}},p2=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:r,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Rn(e,t),f={x:r,y:n},m=Do(s),p=oS(m),y=f[p],b=f[m],g=Rn(u,t),h=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(c){let v=p==="y"?"height":"width",I=i.reference[p]-i.floating[v]+h.mainAxis,L=i.reference[p]+i.reference[v]-h.mainAxis;y<I?y=I:y>L&&(y=L)}if(d){var x,S;let v=p==="y"?"width":"height",I=f2.has(Ka(s)),L=i.reference[m]-i.floating[v]+(I&&((x=l.offset)==null?void 0:x[m])||0)+(I?0:h.crossAxis),C=i.reference[m]+i.reference[v]+(I?0:((S=l.offset)==null?void 0:S[m])||0)-(I?h.crossAxis:0);b<L?b=L:b>C&&(b=C)}return{[p]:y,[m]:b}}}},h2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=Rn(e,t),l=await r.detectOverflow(t,i),u=Ka(a),c=yr(a),d=Do(a)==="y",{width:f,height:m}=o.floating,p,y;u==="top"||u==="bottom"?(p=u,y=c===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(y=u,p=c==="end"?"top":"bottom");let b=m-l.top-l.bottom,g=f-l.left-l.right,h=ki(m-l[p],b),x=ki(f-l[y],g),S=t.middlewareData.shift,v=!S,I=h,L=x;S!=null&&S.enabled.x&&(L=g),S!=null&&S.enabled.y&&(I=b),v&&!c&&(d?L=f-2*zr(l.left,l.right):I=m-2*zr(l.top,l.bottom)),await s({...t,availableWidth:L,availableHeight:I});let C=await r.getDimensions(n.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function y2(e){let t=pa(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=He(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Ni(a)!==n||Ni(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function GI(e){return Te(e)?e:e.contextElement}function Pf(e){let t=GI(e);if(!He(t))return Ln(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=y2(t),s=(n?Ni(a.width):a.width)/o,i=(n?Ni(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var MY=Ln(0);function S2(e){let t=ze(e);return!zy()||!t.visualViewport?MY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PY(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===ze(e)}function Tu(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=GI(e),s=Ln(1);t&&(o?Te(o)&&(s=Pf(o)):s=Pf(e));let i=PY(n,a,o)?S2(n):Ln(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(n&&o){let f=ze(n),m=Te(o)?ze(o):o,p=f,y=Hy(p);for(;y&&m!==p;){let b=Pf(y),g=y.getBoundingClientRect(),h=pa(y),x=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*b.x,S=g.top+(y.clientTop+parseFloat(h.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=x,u+=S,p=ze(y),y=Hy(p)}}return is({width:c,height:d,x:l,y:u})}function fS(e,t){let a=Ip(e).scrollLeft;return t?t.left+a:Tu(vn(e)).left+a}function b2(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-fS(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function OY(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=vn(o),i=t?Rp(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ln(1),c=Ln(0),d=He(o);if((d||!n)&&((Wt(o)!=="body"||fu(s))&&(l=Ip(o)),d)){let m=Tu(o);u=Pf(o),c.x=m.x+o.clientLeft,c.y=m.y+o.clientTop}let f=s&&!d&&!n?b2(s,l):Ln(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function kY(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function NY(e){let t=Ip(e),a=e.ownerDocument.body,o=zr(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=zr(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+fS(e),s=-t.scrollTop;return pa(a).direction==="rtl"&&(n+=zr(e.clientWidth,a.clientWidth)-o),{width:o,height:r,x:n,y:s}}var VY=25;function BY(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",r=ze(e),n=vn(e),s=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(s){let f=!zy()||t==="fixed";o?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if(fS(n)<=0){let f=n.ownerDocument,m=f.body,p=getComputedStyle(m),y=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(n.clientWidth-m.clientWidth-y),g=getComputedStyle(n).scrollbarGutter==="stable both-edges"?b/2:b;g<=VY&&(i-=g)}return{width:i,height:l,x:u,y:c}}function FY(e,t){let a=Tu(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Pf(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function g2(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=BY(e,a,t);else if(t==="document")o=NY(vn(e));else if(Te(t))o=FY(t,a);else{let r=S2(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return is(o)}function _Y(e,t){let a=t.get(e);if(a)return a;let o=Ei(e,[],!1).filter(i=>Te(i)&&Wt(i)!=="body"),r=null,n=pa(e).position==="fixed",s=n?Wo(e):e;for(;Te(s)&&!gr(s);){let i=pa(s),l=_y(s),u=r?r.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?o=o.filter(d=>d!==s):r=i,s=Wo(s)}return t.set(e,o),o}function zY(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Rp(t)?[]:_Y(t,this._c):[].concat(a),o],i=g2(t,s[0],r),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let m=g2(t,s[f],r);l=zr(m.top,l),u=ki(m.right,u),c=ki(m.bottom,c),d=zr(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function HY(e){let{width:t,height:a}=y2(e);return{width:t,height:a}}function UY(e,t,a){let o=He(t),r=vn(t),n=a==="fixed",s=Tu(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ln(0);if((o||!n)&&((Wt(t)!=="body"||fu(r))&&(i=Ip(t)),o)){let f=Tu(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=fS(r));let u=r&&!o&&!n?b2(r,i):Ln(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function qI(e){return pa(e).position==="static"}function x2(e,t){if(!He(e)||pa(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return vn(e)===a&&(a=a.ownerDocument.body),a}function v2(e,t){let a=ze(e);if(Rp(e))return a;if(!He(e)){let r=Wo(e);for(;r&&!gr(r);){if(Te(r)&&!qI(r))return r;r=Wo(r)}return a}let o=x2(e,t);for(;o&&ZV(o)&&qI(o);)o=x2(o,t);return o&&gr(o)&&qI(o)&&!_y(o)?a:o||QV(e)||a}var qY=async function(e){let t=this.getOffsetParent||v2,a=this.getDimensions,o=await a(e.floating);return{reference:UY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function GY(e){return pa(e).direction==="rtl"}var Yp={convertOffsetParentRelativeRectToViewportRelativeRect:OY,getDocumentElement:vn,getClippingRect:zY,getOffsetParent:v2,getElementRects:qY,getClientRects:kY,getDimensions:HY,getScale:Pf,isElement:Te,isRTL:GY};function C2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jY(e,t,a){let o=null,r,n=vn(e);function s(){var c;clearTimeout(r),(c=o)==null||c.disconnect(),o=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:m,top:p,width:y,height:b}=f;if(c||t(),!y||!b)return;let g=Bp(p),h=Bp(n.clientWidth-(m+y)),x=Bp(n.clientHeight-(p+b)),S=Bp(m),I={rootMargin:-g+"px "+-h+"px "+-x+"px "+-S+"px",threshold:zr(0,ki(1,d))||1},L=!0;function C(E){let T=E[0].intersectionRatio;if(!C2(f,e.getBoundingClientRect()))return i();if(T!==d){if(!L)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}L=!1}try{o=new IntersectionObserver(C,{...I,root:n.ownerDocument})}catch{o=new IntersectionObserver(C,I)}o.observe(e)}let l=ze(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Wp(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=GI(e),c=r||n?[...u?Ei(u):[],...t?Ei(t):[]]:[];c.forEach(g=>{r&&g.addEventListener("scroll",a),n&&g.addEventListener("resize",a)});let d=u&&i?jY(u,a,n):null,f=-1,m=null;s&&(m=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),a()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,y=l?Tu(e):null;l&&b();function b(){let g=Tu(e);y&&!C2(y,g)&&a(),y=g,p=requestAnimationFrame(b)}return a(),()=>{var g;c.forEach(h=>{r&&h.removeEventListener("scroll",a),n&&h.removeEventListener("resize",a)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var L2=d2;var R2=m2,I2=c2,T2=h2;var w2=p2,dS=(e,t,a)=>{let o=new Map,r=a??{},n={...Yp,...r.platform,_c:o};return u2(e,t,{...r,platform:n})};var na=R(M(),1),A2=R(M(),1),D2=R(Yr(),1),YY=typeof document<"u",WY=function(){},mS=YY?A2.useLayoutEffect:WY;function pS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!pS(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!pS(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function M2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function E2(e,t){let a=M2(e);return Math.round(t*a)/a}function jI(e){let t=na.useRef(e);return mS(()=>{t.current=e}),t}function P2(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=na.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=na.useState(o);pS(f,o)||m(o);let[p,y]=na.useState(null),[b,g]=na.useState(null),h=na.useCallback(O=>{O!==I.current&&(I.current=O,y(O))},[]),x=na.useCallback(O=>{O!==L.current&&(L.current=O,g(O))},[]),S=n||p,v=s||b,I=na.useRef(null),L=na.useRef(null),C=na.useRef(c),E=l!=null,T=jI(l),A=jI(r),N=jI(u),D=na.useCallback(()=>{if(!I.current||!L.current)return;let O={placement:t,strategy:a,middleware:f};A.current&&(O.platform=A.current),dS(I.current,L.current,O).then(V=>{let w={...V,isPositioned:N.current!==!1};F.current&&!pS(C.current,w)&&(C.current=w,D2.flushSync(()=>{d(w)}))})},[f,t,a,A,N]);mS(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);let F=na.useRef(!1);mS(()=>(F.current=!0,()=>{F.current=!1}),[]),mS(()=>{if(S&&(I.current=S),v&&(L.current=v),S&&v){if(T.current)return T.current(S,v,D);D()}},[S,v,D,T,E]);let k=na.useMemo(()=>({reference:I,floating:L,setReference:h,setFloating:x}),[h,x]),z=na.useMemo(()=>({reference:S,floating:v}),[S,v]),q=na.useMemo(()=>{let O={position:a,left:0,top:0};if(!z.floating)return O;let V=E2(z.floating,c.x),w=E2(z.floating,c.y);return i?{...O,transform:"translate("+V+"px, "+w+"px)",...M2(z.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:V,top:w}},[a,i,z.floating,c.x,c.y]);return na.useMemo(()=>({...c,update:D,refs:k,elements:z,floatingStyles:q}),[c,D,k,z,q])}var XI=(e,t)=>{let a=L2(e);return{name:a.name,fn:a.fn,options:[e,t]}},YI=(e,t)=>{let a=R2(e);return{name:a.name,fn:a.fn,options:[e,t]}},WI=(e,t)=>({fn:w2(e).fn,options:[e,t]}),KI=(e,t)=>{let a=I2(e);return{name:a.name,fn:a.fn,options:[e,t]}},ZI=(e,t)=>{let a=T2(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Of=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,a,o=!0){this.fallbackStore=t,this.componentName=a,this.throwOnMissingTrigger=o}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let a=this.attachedStores.lastIndexOf(t);a!==-1&&this.attachedStores.splice(a,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(a=>{a()}))}openByTrigger(t){let a=this.attachedStore;if(a===null)return;let o;if(t){for(let r=this.attachedStores.length-1;r>=0&&!o;r-=1)o=this.attachedStores[r].context.triggerElements.getById(t);o??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!o&&this.throwOnMissingTrigger)throw new Error(De(99,this.componentName,t,this.componentName));a.setOpen(!0,he(ne.imperativeAction,void 0,o))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,he(ne.imperativeAction))}};var oT=R(M(),1),Z2=R(Yr(),1);var X2=R(M(),1);var q2=R(M(),1),eT=R(Kp(),1),G2=R(_2(),1);var z2=R(M(),1);var JI=[],$I;function H2(){return $I}function U2(e){JI.push(e)}function Zp(e){let t=(a,o)=>{let r=tt(d7).current,n;try{$I=r;for(let s of JI)s.before(r);n=e(a,o);for(let s of JI)s.after(r);r.didInitialize=!0}finally{$I=void 0}return n};return t.displayName=e.displayName||e.name,t}function gS(e){return z2.forwardRef(Zp(e))}function d7(){return{didInitialize:!1}}var m7=qc(19),p7=m7?g7:x7;function xS(e,t,a,o,r){return p7(e,t,a,o,r)}function h7(e,t,a,o,r){let n=q2.useCallback(()=>t(e.getSnapshot(),a,o,r),[e,t,a,o,r]);return(0,eT.useSyncExternalStore)(e.subscribe,n,n)}U2({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let a=new Set;for(let r of e.syncHooks)a.add(r.store);let o=[];for(let r of a)o.push(r.subscribe(t));return()=>{for(let r of o)r()}}),(0,eT.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function g7(e,t,a,o,r){let n=H2();if(!n)return h7(e,t,a,o,r);let s=n.syncIndex;n.syncIndex+=1;let i;return n.didInitialize?(i=n.syncHooks[s],(i.store!==e||i.selector!==t||!Object.is(i.a1,a)||!Object.is(i.a2,o)||!Object.is(i.a3,r))&&(i.store!==e&&(n.didChangeStore=!0),i.store=e,i.selector=t,i.a1=a,i.a2=o,i.a3=r,i.value=t(e.getSnapshot(),a,o,r))):(i={store:e,selector:t,a1:a,a2:o,a3:r,value:t(e.getSnapshot(),a,o,r)},n.syncHooks.push(i)),i.value}function x7(e,t,a,o,r){return(0,G2.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,n=>t(n,a,o,r))}var yS=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let a=this.updateTick;for(let o of this.listeners){if(a!==this.updateTick)return;o(t)}}update(t){for(let a in t)if(!Object.is(this.state[a],t[a])){this.setState({...this.state,...t});return}}set(t,a){Object.is(this.state[t],a)||this.setState({...this.state,[t]:a})}notifyAll(){let t={...this.state};this.setState(t)}use(t,a,o,r){return xS(this,t,a,o,r)}};var wu=R(M(),1);var Cr=class extends yS{constructor(t,a={},o){super(t),this.context=a,this.selectors=o}useSyncedValue(t,a){wu.useDebugValue(t);let o=this;G(()=>{o.state[t]!==a&&o.set(t,a)},[o,t,a])}useSyncedValueWithCleanup(t,a){let o=this;G(()=>(o.state[t]!==a&&o.set(t,a),()=>{o.set(t,void 0)}),[o,t,a])}useSyncedValues(t){let a=this,o=Object.values(t);G(()=>{a.update(t)},[a,...o])}useControlledProp(t,a){wu.useDebugValue(t);let o=this,r=a!==void 0;G(()=>{r&&!Object.is(o.state[t],a)&&o.setState({...o.state,[t]:a})},[o,t,a,r])}select(t,a,o,r){let n=this.selectors[t];return n(this.state,a,o,r)}useState(t,a,o,r){return wu.useDebugValue(t),xS(this,this.selectors[t],a,o,r)}useContextCallback(t,a){wu.useDebugValue(t);let o=W(a??Ne);this.context[t]=o}useStateSetter(t){let a=wu.useRef(void 0);return a.current===void 0&&(a.current=o=>{this.set(t,o)}),a.current}observe(t,a){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return a(r,r,this),this.subscribe(n=>{let s=o(n);if(!Object.is(r,s)){let i=r;r=s,a(s,i,this)}})}};var SS=R(M(),1);function j2(){let[,e]=SS.useState({});return SS.useCallback(()=>{e({})},[])}var y7={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},_i=class extends Cr{constructor(t){let{syncOnly:a,nested:o,onOpenChange:r,triggerElements:n,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:t2(),nested:o,triggerElements:n},y7),this.syncOnly=a}syncOpenEvent=(t,a)=>{(!t||!this.state.open||a!=null&&CB(a))&&(this.context.dataRef.current.openEvent=t?a:void 0)};dispatchOpenChange=(t,a)=>{this.syncOpenEvent(t,a.event);let o={open:t,reason:a.reason,nativeEvent:a.event,nested:this.context.nested,triggerElement:a.trigger};this.context.events.emit("openchange",o)};setOpen=(t,a)=>{if(this.syncOnly){this.context.onOpenChange?.(t,a);return}this.dispatchOpenChange(t,a),this.context.onOpenChange?.(t,a)}};function Y2(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:r,nested:n,onOpenChange:s}=e,i=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=s,f=X2.useRef(null);o===void 0&&f.current===null&&(f.current=new _i({open:i,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:n}));let m=o??f.current;return t.useSyncedValue("floatingId",r),G(()=>{let p={open:i,floatingId:r,referenceElement:l,floatingElement:u};Te(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[i,r,l,u,m]),m.context.onOpenChange=d,m.context.nested=n,m}var tT=R(M(),1);function Po(e,t=!1,a=!1,o=!1){let[r,n]=tT.useState(e&&t?"idle":void 0),[s,i]=tT.useState(e&&!o);return e&&!s&&(i(!0),n("starting")),!e&&s&&r!=="ending"&&!a&&n("ending"),!e&&!s&&r==="ending"&&n(void 0),G(()=>{if(!e&&s&&r!=="ending"&&a){let l=xr.request(()=>{n("ending")});return()=>{xr.cancel(l)}}},[e,s,r,a]),G(()=>{if(!e||t)return;let l=xr.request(()=>{n(void 0)});return()=>{xr.cancel(l)}},[t,e]),G(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&n("starting");let l=xr.request(()=>{n("idle")});return()=>{xr.cancel(l)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var W2=R(M(),1);var aT=R(Yr(),1);var bS=null;function S7(e){if(!bS){let t=[];bS=t,queueMicrotask(()=>{bS=null,aT.flushSync(()=>{for(let a of t)a()})})}bS.push(e)}function Nf(e,t=!1,a=!1){let o=uo();return W((r,n=null)=>{o.cancel();let s=Hr(e);if(s==null)return;let i=s,l=()=>{if(!a){aT.flushSync(r);return}S7(()=>{n?.aborted||r()})};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(i.getAnimations().map(c=>c.finished)).then(()=>{n?.aborted||l()},()=>{if(n?.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=du;if(!i.hasAttribute(c)){o.request(u);return}let d=new MutationObserver(()=>{i.hasAttribute(c)||(d.disconnect(),u())});d.observe(i,{attributes:!0,attributeFilter:[c]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(u)})}function Ra(e){let{enabled:t=!0,open:a,ref:o,batch:r=!1,onComplete:n}=e,s=W(n),i=Nf(o,a,r);W2.useEffect(()=>{if(!t)return;let l=new AbortController;return i(s,l.signal),()=>{l.abort()}},[t,a,s,i])}var Vf={tabIndex:-1,[Mp]:""};function Q2(e){return t=>t==="touch"?e.current:!0}function vS(e,t=!1){let a=Mi(),o=Bi()!=null,r=tt(()=>e(a,o)).current;return Y2({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:r.setOpen}),r}function CS({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function K2(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function b7(e,t){let a=oT.useRef(null);return W(o=>{let r=a.current;if(r!==null){if(r.element===o&&r.store===t&&r.id===e)return;a.current=null;let n=r.store;n.context.triggerElements.getById(r.id)===r.element&&(n.context.triggerElements.delete(r.id),K2(n))}o!==null&&e!==void 0&&(a.current={store:t,id:e,element:o},t.context.triggerElements.add(e,o),K2(t))})}function rT(e,t,a,o=!1){let r=e.preventUnmountingOnClose;t?r=!1:o&&(r=!0);let n=a?.id??null,s=e.activeTriggerId,i=e.activeTriggerElement;return(n||t)&&(s=n,i=a??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:i}}function v7(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function J2(e,t,a,o={}){let r=a.reason,n=r===ne.triggerHover,s=t&&r===ne.triggerFocus,i=!t&&(r===ne.triggerPress||r===ne.escapeKey),l=v7(a);if(e.context.onOpenChange?.(t,a),a.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,a);let u=()=>{let c=rT(e.state,t,a.trigger,l()),d={...o.extraState,...c};s?d.instantType="focus":i?d.instantType="dismiss":n&&(d.instantType=void 0),e.update(d)};n?Z2.flushSync(u):u()}function LS(e,t,a,o){let r=a.useState("isMountedByTrigger",e),n=b7(e,a),s=W(l=>{let u=a.select("open"),c=a.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?o:null};a.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...o};a.update(d)}}),i=W(l=>{n(l),l&&s(l)});return G(()=>(i(t.current),()=>i(null)),[i,t,a,e]),G(()=>{if(r){let l={activeTriggerElement:t.current,...o};a.update(l)}},[r,a,t,...Object.values(o)]),{registerTrigger:i,isMountedByThisTrigger:r}}function RS(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=oT.useRef(null),r=e.useState("open"),n=e.useState("triggerCount"),s=e.useState("activeTriggerId"),i=e.useState("activeTriggerElement");G(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)o.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m;break}u.activeTriggerId===void 0&&(o.current===c?d=c:o.current=null)}}else o.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,o.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&a&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=he(ne.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,s,i,a])}function IS(e,t,a,o){let{mounted:r,setMounted:n,transitionStatus:s}=Po(e,!1,!1,o),i=t.useState("preventUnmountingOnClose"),l=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:l});let u=W(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return Ra({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function TS(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function $2(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var In=class{constructor(){this.idMap=new Map}add(t,a){this.idMap.set(t,a)}delete(t){this.idMap.delete(t)}hasElement(t){for(let a of this.idMap.values())if(a===t)return!0;return!1}hasMatchingElement(t){for(let a of this.idMap.values())if(t(a))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function wS(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new _i({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}var Qp=e=>e.triggerIdProp??e.activeTriggerId,nT=e=>e.openProp??e.open,eF=e=>(e.popupElement?.id??e.floatingId)||void 0;function tF(e,t){return t!==void 0&&nT(e)&&Qp(e)===t}function C7(e,t){return tF(e,t)?!0:t!==void 0&&nT(e)&&Qp(e)==null&&e.triggerCount===1}var ES={open:nT,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Qp,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:eF,isTriggerActive:(e,t)=>t!==void 0&&Qp(e)===t,isOpenedByTrigger:(e,t)=>tF(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Qp(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>C7(e,t)?eF(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var sT=R(M(),1),aF=R(Kp(),1);function AS(e){let t=sT.useCallback(o=>e===void 0?Ne:e.subscribeStore(o),[e]),a=sT.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,aF.useSyncExternalStore)(t,a,()=>e?.serverStore)}function iT(e){let{open:t=!1,onOpenChange:a,elements:o={}}=e,r=Mi(),n=Bi()!=null,s=tt(()=>new _i({open:t,transitionStatus:void 0,onOpenChange:a,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new In,floatingId:r,syncOnly:!1,nested:n})).current;return G(()=>{let i={open:t,floatingId:r};o.reference!==void 0&&(i.referenceElement=o.reference,i.domReferenceElement=Te(o.reference)?o.reference:null),o.floating!==void 0&&(i.floatingElement=o.floating),s.update(i)},[t,r,o.reference,o.floating,s]),s.context.onOpenChange=a,s.context.nested=n,s}function oF(e){return L7(e,e.rootContext)}function L7(e,t){let{nodeId:a,externalTree:o}=e,r=t.useState("referenceElement"),n=t.useState("floatingElement"),s=t.useState("domReferenceElement"),i=t.useState("open"),l=t.useState("floatingId"),[u,c]=Qa.useState(null),[d,f]=Qa.useState(void 0),[m,p]=Qa.useState(void 0),y=Qa.useRef(null),b=vr(o),g=Qa.useMemo(()=>({reference:r,floating:n,domReference:s}),[r,n,s]),h=P2({...e,elements:{...g,...u&&{reference:u}}}),x=Te(d)?d:null,S=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?s:x),t.useSyncedValue("floatingElement",S);let v=Qa.useCallback(A=>{let N=Te(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(N),h.refs.setReference(N)},[h.refs]),I=Qa.useCallback(A=>{(Te(A)||A===null)&&(y.current=A,f(A)),(Te(h.refs.reference.current)||h.refs.reference.current===null||A!==null&&!Te(A))&&h.refs.setReference(A)},[h.refs,f]),L=Qa.useCallback(A=>{p(A),h.refs.setFloating(A)},[h.refs]),C=Qa.useMemo(()=>({...h.refs,setReference:I,setFloating:L,setPositionReference:v,domReference:y}),[h.refs,I,L,v]),E=Qa.useMemo(()=>({...h.elements,domReference:s}),[h.elements,s]),T=Qa.useMemo(()=>({...h,dataRef:t.context.dataRef,open:i,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:C,elements:E,nodeId:a,rootStore:t}),[h,C,E,a,t,i,l]);return G(()=>{s&&(y.current=s)},[s]),G(()=>{t.context.dataRef.current.floatingContext=T;let A=b?.nodesRef.current.find(N=>N.id===a);A&&(A.context=T)}),Qa.useMemo(()=>({...h,context:T,refs:C,elements:E,rootStore:t}),[h,C,E,T,t])}var Tn=R(M(),1);var lT=at.os.mac&&at.engine.webkit;function uT(e,t={}){let{enabled:a=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:n,dataRef:s}=r.context,i=Tn.useRef(!1),l=Tn.useRef(null),u=Tn.useRef(!0),c=Ze();Tn.useEffect(()=>{let f=r.select("domReferenceElement");if(!a)return;let m=ze(f);function p(){let g=r.select("domReferenceElement");!r.select("open")&&He(g)&&g===_t(be(g))&&(i.current=!0,l.current=g)}function y(){u.current=!0}function b(){u.current=!1}return Wa(Le(m,"blur",p),lT&&Le(m,"keydown",y,!0),lT&&Le(m,"pointerdown",b,!0))},[r,a]),Tn.useEffect(()=>{if(!a)return;function f(m){if(m.reason===ne.triggerPress||m.reason===ne.escapeKey){let p=r.select("domReferenceElement");Te(p)&&(l.current=p,i.current=!0)}}return n.on("openchange",f),()=>{n.off("openchange",f)}},[n,a,r]);let d=Tn.useMemo(()=>{function f(){i.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(i.current){if(l.current===p)return;f()}let y=Je(m.nativeEvent);if(Te(y)){if(lT&&!m.relatedTarget){if(!u.current&&!yu(y))return}else if(!IB(y))return}let b=Oi(m.relatedTarget,r.context.triggerElements),{nativeEvent:g,currentTarget:h}=m,x=typeof o=="function"?o():o;if(r.select("open")&&b||x===0||x===void 0){r.setOpen(!0,he(ne.triggerFocus,g,h));return}c.start(x,()=>{i.current||r.setOpen(!0,he(ne.triggerFocus,g,h))})},onBlur(m){f();let p=m.relatedTarget,y=m.nativeEvent,b=Te(p)&&p.hasAttribute(us("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let g=r.select("domReferenceElement"),h=_t(be(g));!p&&h===g||ue(s.current.floatingContext?.refs.floating.current,h)||ue(g,h)||b||Oi(p??h,r.context.triggerElements)||r.setOpen(!1,he(ne.triggerFocus,y))})}}},[s,o,r,c]);return Tn.useMemo(()=>a?{reference:d,trigger:d}:{},[a,d])}var fT=R(M(),1);var cT=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ya,this.restTimeout=new Ya,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},DS=new WeakMap;function Bf(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&DS.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),DS.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function MS(e,t){let{scopeElement:a,referenceElement:o,floatingElement:r}=t,n=DS.get(a);n&&n!==e&&Bf(n),Bf(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=a,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,DS.set(a,e),a.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Ff(e){let t=e.context.dataRef.current,a=tt(()=>t.hoverInteractionState??cT.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=a),Tf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function dT(e,t={}){let{enabled:a=!0,closeDelay:o=0,nodeId:r}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),l=n.useState("domReferenceElement"),{dataRef:u}=n.context,c=vr(),d=Bi(),f=Ff(n),m=Ze(),p=W(()=>Qy(u.current.openEvent?.type,f.interactedInside)),y=W(()=>TB(u.current.openEvent?.type)),b=W(()=>{Bf(f)});G(()=>{s||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,b())},[s,f,b]),fT.useEffect(()=>b,[b]),G(()=>{if(a&&s&&f.handleCloseOptions?.blockPointerEvents&&y()&&Te(l)&&i){let g=l,h=i,x=be(i),S=c?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;S&&(S.style.pointerEvents="");let v=f.pointerEventsScopeElement!==h?f.pointerEventsScopeElement:null,I=S!==h?S:null,L=f.handleCloseOptions?.getScope?.()??v??I??g.closest("[data-rootownerid]")??x.body;return MS(f,{scopeElement:L,referenceElement:g,floatingElement:h}),()=>{b()}}},[a,s,l,i,f,y,c,d,b]),fT.useEffect(()=>{if(!a)return;function g(){return!!(c&&d&&br(c.nodesRef.current,d).length>0)}function h(C){let E=_r(o,"close",f.pointerType),T=()=>{n.setOpen(!1,he(ne.triggerHover,C)),c?.events.emit("floating.closed",C)};E?f.openChangeTimeout.start(E,T):(f.openChangeTimeout.clear(),T())}function x(C){let E=Je(C);if(!II(E)){f.interactedInside=!1;return}f.interactedInside=E?.closest("[aria-haspopup]")!=null}function S(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",I),b()}function v(C){if(g()&&c){c.events.on("floating.closed",I);return}if(Oi(C.relatedTarget,n.context.triggerElements))return;let E=u.current.floatingContext?.nodeId??r,T=C.relatedTarget;if(!(c&&E&&Te(T)&&br(c.nodesRef.current,E,!1).some(N=>ue(N.context?.elements.floating,T)))){if(f.handler){f.handler(C);return}b(),y()&&!p()&&h(C)}}function I(C){!c||!d||g()||m.start(0,()=>{c.events.off("floating.closed",I),n.setOpen(!1,he(ne.triggerHover,C)),c.events.emit("floating.closed",C)})}let L=i;return Wa(L&&Le(L,"mouseenter",S),L&&Le(L,"mouseleave",v),L&&Le(L,"pointerdown",x,!0),()=>{c?.events.off("floating.closed",I)})},[a,i,n,u,o,r,y,p,b,f,c,d,m])}var zi=R(M(),1),rF=R(Yr(),1);var R7={current:null};function mT(e,t={}){let{enabled:a=!0,delay:o=0,handleClose:r=null,mouseOnly:n=!1,restMs:s=0,move:i=!0,triggerElementRef:l=R7,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,y="rootStore"in e?e.rootStore:e,{dataRef:b,events:g}=y.context,h=vr(u),x=Ff(y),S=zi.useRef(!1),v=pt(r),I=pt(o),L=pt(s),C=pt(a),E=pt(m),T=pt(f),A=W(()=>Qy(b.current.openEvent?.type,x.interactedInside)),N=W(()=>E.current?.()!==!1),D=W((z,q,O)=>{let V=y.context.triggerElements;if(V.hasElement(q))return!z||!ue(z,q);if(!Te(O))return!1;let w=O;return V.hasMatchingElement(_=>ue(_,w))&&(!z||!ue(z,w))}),F=W(()=>{if(!x.handler)return;be(y.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),k=W(()=>{Bf(x)});return c&&(x.handleCloseOptions=r?.__options),zi.useEffect(()=>F,[F]),zi.useEffect(()=>{if(!a)return;function z(q){q.open?S.current=!1:(S.current=q.reason===ne.triggerHover,F(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return g.on("openchange",z),()=>{g.off("openchange",z)}},[a,g,x,F]),zi.useEffect(()=>{if(!a)return;function z(U,X=!0){let P=_r(I.current,"close",x.pointerType);P?x.openChangeTimeout.start(P,()=>{y.setOpen(!1,he(ne.triggerHover,U)),h?.events.emit("floating.closed",U)}):X&&(x.openChangeTimeout.clear(),y.setOpen(!1,he(ne.triggerHover,U)),h?.events.emit("floating.closed",U))}let q=l.current??(c?y.select("domReferenceElement"):null);if(!Te(q))return;function O(U){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,n&&!Zo(x.pointerType))return;let X=TI(L.current),P=_r(I.current,"open",x.pointerType),H=Je(U),B=U.currentTarget??null,J=y.select("domReferenceElement"),Y=B;if(Te(H)&&!y.context.triggerElements.hasElement(H)){for(let pe of y.context.triggerElements.elements())if(ue(pe,H)){Y=pe;break}}Te(B)&&Te(J)&&!y.context.triggerElements.hasElement(B)&&ue(B,J)&&(Y=J);let te=Y==null?!1:D(J,Y,H),ie=y.select("open"),ce=T.current?.()??y.select("transitionStatus")==="ending",ee=!ie&&ce&&S.current,ae=!te&&Te(Y)&&Te(J)&&ue(J,Y)&&ee,me=X>0&&!P,ge=te&&(ie||ee)||ae,we=!ie||te;if(ge){N()&&y.setOpen(!0,he(ne.triggerHover,U,Y));return}me||(P?x.openChangeTimeout.start(P,()=>{we&&N()&&y.setOpen(!0,he(ne.triggerHover,U,Y))}):we&&N()&&y.setOpen(!0,he(ne.triggerHover,U,Y)))}function V(U){if(A()){k();return}F();let X=y.select("domReferenceElement"),P=be(X);x.restTimeout.clear(),x.restTimeoutPending=!1;let H=b.current.floatingContext??d?.();if(Oi(U.relatedTarget,y.context.triggerElements))return;if(v.current&&H){y.select("open")||x.openChangeTimeout.clear();let J=l.current;x.handler=v.current({...H,tree:h,x:U.clientX,y:U.clientY,onClose(){k(),F(),C.current&&!A()&&J===y.select("domReferenceElement")&&z(U,!0)}}),P.addEventListener("mousemove",x.handler),x.handler(U);return}(x.pointerType==="touch"?!ue(y.select("floatingElement"),U.relatedTarget):!0)&&z(U)}function w(U){ue(q,U.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let _=p?Le(q,"mouseout",w):void 0;return i?Wa(Le(q,"mousemove",O,{once:!0}),Le(q,"mouseenter",O),Le(q,"mouseleave",V),_):Wa(Le(q,"mouseenter",O),Le(q,"mouseleave",V),_)},[F,k,b,I,y,a,v,x,c,D,A,n,i,L,l,h,C,d,T,N,p]),zi.useMemo(()=>{if(!a)return;function z(q){x.pointerType=q.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(q){let{nativeEvent:O}=q,V=q.currentTarget,w=y.select("domReferenceElement"),_=y.select("open"),U=D(w,V,q.target);if(n&&!Zo(x.pointerType))return;if(_&&U&&x.handleCloseOptions?.blockPointerEvents){let H=y.select("floatingElement");if(H){let B=x.handleCloseOptions?.getScope?.()??V.ownerDocument.body;MS(x,{scopeElement:B,referenceElement:V,floatingElement:H})}}let X=TI(L.current);if(_&&!U||X===0||!U&&x.restTimeoutPending&&q.movementX**2+q.movementY**2<2)return;x.restTimeout.clear();function P(){if(x.restTimeoutPending=!1,A())return;let H=y.select("open");!x.blockMouseMove&&(!H||U)&&N()&&y.setOpen(!0,he(ne.triggerHover,O,V))}x.pointerType==="touch"?rF.flushSync(()=>{P()}):U&&_?P():(x.restTimeoutPending=!0,x.restTimeout.start(X,P))}}},[a,x,A,D,n,y,L,N])}var Fa=R(M(),1);var I7="Escape";function nF(e){return at.engine.webkit&&e.movementX===0&&e.movementY===0}function OS(e,t,a){switch(e){case"vertical":return t;case"horizontal":return a;default:return t||a}}function PS(e,t){return OS(t,e===RI||e===Ky,e===Pp||e===Op)}function pT(e,t,a){return OS(t,e===Ky,a?e===Pp:e===Op)||e==="Enter"||e===" "||e===""}function T7(e,t,a){return OS(t,a?e===Pp:e===Op,e===Ky)}function w7(e,t,a,o){let r=a?e===Op:e===Pp,n=e===RI;return t==="both"||t==="horizontal"&&o?e===I7:OS(t,r,n)}function hT(e,t){let{listRef:a,activeIndex:o,onNavigate:r=()=>{},enabled:n=!0,selectedIndex:s=null,allowEscape:i=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:y=void 0,orientation:b="vertical",parentOrientation:g,id:h,resetOnPointerLeave:x=!0,externalTree:S,grid:v}=t,I=v!=null,L="rootStore"in e?e.rootStore:e,C=L.useState("open"),E=L.useState("floatingElement"),T=L.useState("domReferenceElement"),A=L.context.dataRef,N=Su(E),D=Np(T),F=pt(N),k=Bi(),z=vr(S),q=Fa.useRef(f),O=Fa.useRef(s??-1),V=Fa.useRef(null),w=Fa.useRef(!0),_=W(oe=>{r(O.current===-1?null:O.current,oe)}),U=Fa.useRef(!!E),X=Fa.useRef(C),P=Fa.useRef(!1),H=Fa.useRef(!1),B=Fa.useRef(null),J=pt(y),Y=pt(C),te=pt(s),ie=pt(x),ce=uo(),ee=uo(),ae=W(()=>{function oe(se){d?z?.events.emit("virtualfocus",se):B.current=Mf(se,{sync:P.current,preventScroll:!0})}let fe=a.current[O.current],K=H.current;fe&&oe(fe),(P.current?se=>se():se=>ce.request(se))(()=>{let se=a.current[O.current]||fe;if(!se)return;fe||oe(se),le&&(K||!w.current)&&se.scrollIntoView?.({block:"nearest",inline:"nearest"})})});G(()=>{A.current.orientation=b},[A,b]),G(()=>{n&&(C&&E?(O.current=s??-1,q.current&&s!=null&&(H.current=!0,_())):U.current&&(O.current=-1,_()))},[n,C,E,s,_]),G(()=>{if(n){if(!C){P.current=!1;return}if(E)if(o==null){if(P.current=!1,te.current!=null)return;if(U.current&&(O.current=-1,ae()),(!X.current||!U.current)&&q.current&&(V.current!=null||q.current===!0&&V.current==null)){let oe=0,fe=()=>{a.current[0]==null?(oe<2&&(oe?j=>ee.request(j):queueMicrotask)(fe),oe+=1):(O.current=V.current==null||pT(V.current,b,c)||u?bu(a):Df(a),V.current=null,_())};fe()}}else Vi(a.current,o)||(O.current=o,ae(),H.current=!1)}},[n,C,E,o,te,u,a,b,c,_,ae,ee]),G(()=>{if(!n||E||!z||d||!U.current)return;let oe=z.nodesRef.current,fe=oe.find(se=>se.id===k)?.context?.elements.floating,K=_t(be(T??fe??null)),j=oe.some(se=>se.context&&ue(se.context.elements.floating,K));fe&&!j&&w.current&&fe.focus({preventScroll:!0})},[n,E,T,z,k,d]),G(()=>{X.current=C,U.current=!!E}),G(()=>{C||(V.current=null,q.current=f)},[C,f]);let me=o!=null,ge=W(oe=>{if(!Y.current)return;let fe=a.current.indexOf(oe.currentTarget);fe!==-1&&(O.current!==fe||o!==fe)&&(O.current=fe,_(oe))}),we=W(()=>g??z?.nodesRef.current.find(oe=>oe.id===k)?.context?.dataRef?.current.orientation),pe=W(()=>bu(a,J.current)),Re=W(oe=>{if(w.current=!1,P.current=!0,oe.which===229||!Y.current&&oe.currentTarget===F.current)return;if(u&&w7(oe.key,b,c,I)){PS(oe.key,we())||Ao(oe),L.setOpen(!1,he(ne.listNavigation,oe.nativeEvent)),He(T)&&(d?z?.events.emit("virtualfocus",T):T.focus());return}let fe=O.current,K=bu(a,y),j=Df(a,y);if(D||(oe.key==="Home"&&(Ao(oe),O.current=K,_(oe)),oe.key==="End"&&(Ao(oe),O.current=j,_(oe))),v!=null){let se=v(oe,O.current,a,b,l,c,y,K,j);if(se!=null&&(O.current=se,_(oe)),b==="both")return}if(PS(oe.key,b)){if(Ao(oe),C&&!d&&_t(oe.currentTarget.ownerDocument)===oe.currentTarget){O.current=pT(oe.key,b,c)?K:j,_(oe);return}pT(oe.key,b,c)?l?fe>=j?i&&fe!==a.current.length?O.current=-1:(P.current=!1,O.current=K):O.current=Sr(a.current,{startingIndex:fe,disabledIndices:y}):O.current=Math.min(j,Sr(a.current,{startingIndex:fe,disabledIndices:y})):l?fe<=K?i&&fe!==-1?O.current=a.current.length:(P.current=!1,O.current=j):O.current=Sr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y}):O.current=Math.max(K,Sr(a.current,{startingIndex:fe,decrement:!0,disabledIndices:y})),Vi(a.current,O.current)&&(O.current=-1),_(oe)}}),le=Fa.useMemo(()=>({onFocus(fe){P.current=!0,ge(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){nF(fe)||(P.current=!0,H.current=!1,m&&ge(fe))},onPointerLeave(fe){if(!Y.current||!w.current||fe.pointerType==="touch")return;P.current=!0;let K=fe.relatedTarget;if(!(!m||a.current.includes(K))&&ie.current&&(B.current?.(),B.current=null,O.current=-1,_(fe),!d)){let j=F.current,se=_t(be(j));j&&ue(j,se)&&j.focus({preventScroll:!0})}}}),[ge,Y,F,m,a,_,ie,d]),Ie=Fa.useMemo(()=>d&&C&&me&&{"aria-activedescendant":`${h}-${o}`},[d,C,me,h,o]),Ve=Fa.useMemo(()=>({...D?{}:Ie,onKeyDown(oe){if(oe.key==="Tab"&&oe.shiftKey&&C&&!d){let fe=Je(oe.nativeEvent);if(fe&&!ue(F.current,fe))return;Ao(oe),L.setOpen(!1,he(ne.focusOut,oe.nativeEvent)),He(T)&&T.focus();return}Re(oe)},onPointerMove(oe){nF(oe)||(w.current=!0)}}),[Ie,Re,F,D,L,C,d,T]),Pe=Fa.useMemo(()=>{function oe(j){L.setOpen(!0,he(ne.listNavigation,j.nativeEvent,j.currentTarget))}function fe(j){f==="auto"&&Pi(j.nativeEvent)&&(q.current=!d)}function K(j){q.current=f,f==="auto"&&wf(j.nativeEvent)&&(q.current=!0)}return{onKeyDown(j){let se=L.select("open");w.current=!1;let Be=j.key.startsWith("Arrow"),Vt=T7(j.key,we(),c),Jt=PS(j.key,b),Et=(u?Vt:Jt)||j.key==="Enter"||j.key.trim()==="";if(d&&se)return Re(j);if(!(!se&&!p&&Be)){if(Et){let bt=PS(j.key,we());V.current=u&&bt?null:j.key}if(u){Vt&&(Ao(j),se?(O.current=pe(),_(j)):oe(j));return}Jt&&(te.current!=null&&(O.current=te.current),Ao(j),!se&&p?oe(j):Re(j),se&&_(j))}},onFocus(j){L.select("open")&&!d&&(O.current=-1,_(j))},onPointerDown:K,onPointerEnter:K,onMouseDown:fe,onClick:fe}},[Re,f,pe,u,_,L,p,b,we,c,te,d]),ut=Fa.useMemo(()=>({...Ie,...Pe}),[Ie,Pe]);return Fa.useMemo(()=>n?{reference:ut,floating:Ve,item:le,trigger:Pe}:{},[n,ut,Ve,Pe,le])}var Eu=R(M(),1);function gT(e,t){let{listRef:a,elementsRef:o,activeIndex:r,onMatch:n,disabledIndices:s,onTyping:i,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=Ze(),p=Eu.useRef(""),y=Eu.useRef(c??r??-1),b=Eu.useRef(null),g=W(S=>{function v(F){return o?.current[F]}function I(F){let k=v(F);return k&&!vu(k)||k?.matches(":disabled")?!1:s==null||!ls(Ro,F,s)}function L(F,k,z=0){if(F.length===0)return-1;let q=(z%F.length+F.length)%F.length,O=k.toLowerCase();for(let V=0;V<F.length;V+=1){let w=(q+V)%F.length;if(!(!F[w]?.toLowerCase().startsWith(O)||!I(w)))return w}return-1}let C=a.current;if(p.current.length>0&&S.key===" "&&(Ao(S),i?.(!0)),p.current.length>0&&p.current[0]!==" "&&L(C,p.current)===-1&&S.key!==" "&&i?.(!1),C==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Ao(S),i?.(!0));let E=p.current==="";E&&(y.current=c??r??-1),C.every((F,k)=>F&&I(k)?F[0]?.toLowerCase()!==F[1]?.toLowerCase():!0)&&p.current===S.key&&(p.current="",y.current=b.current),p.current+=S.key,m.start(u,()=>{p.current="",y.current=b.current,i?.(!1)});let N=((E?c??r??-1:y.current)??0)+1,D=L(C,p.current,N);D!==-1?(n?.(D),b.current=D):S.key!==" "&&(p.current="",i?.(!1))}),h=W(S=>{let v=S.relatedTarget,I=d.select("domReferenceElement"),L=d.select("floatingElement");ue(I,v)||ue(L,v)||(m.clear(),p.current="",y.current=b.current,i?.(!1))});G(()=>{!f&&c!==null||(m.clear(),b.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let x=Eu.useMemo(()=>({onKeyDown:g,onBlur:h}),[g,h]);return Eu.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}var sF=.1,E7=sF*sF,xt=.5;function kS(e,t,a,o,r,n){return o>=t!=n>=t&&e<=(r-a)*(t-o)/(n-o)+a}function NS(e,t,a,o,r,n,s,i,l,u){let c=!1;return kS(e,t,a,o,r,n)&&(c=!c),kS(e,t,r,n,s,i)&&(c=!c),kS(e,t,s,i,l,u)&&(c=!c),kS(e,t,l,u,a,o)&&(c=!c),c}function A7(e,t,a){return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function VS(e,t,a,o,r,n){let s=Math.min(a,r),i=Math.max(a,r),l=Math.min(o,n),u=Math.max(o,n);return e>=s&&e<=i&&t>=l&&t<=u}function xT(e={}){let{blockPointerEvents:t=!1}=e,a=new Ya,o=({x:r,y:n,placement:s,elements:i,onClose:l,nodeId:u,tree:c})=>{let d=s?.split("-")[0],f=!1,m=null,p=null,y=typeof performance<"u"?performance.now():0;function b(h,x){let S=performance.now(),v=S-y;if(m===null||p===null||v===0)return m=h,p=x,y=S,!1;let I=h-m,L=x-p,C=I*I+L*L,E=v*v*E7;return m=h,p=x,y=S,C<E}function g(){a.clear(),l()}return function(x){a.clear();let S=i.domReference,v=i.floating;if(!S||!v||d==null||r==null||n==null)return;let{clientX:I,clientY:L}=x,C=Je(x),E=x.type==="mouseleave",T=ue(v,C),A=ue(S,C);if(T&&(f=!0,!E))return;if(A&&(f=!1,!E)){f=!0;return}if(E&&Te(x.relatedTarget)&&ue(v,x.relatedTarget))return;function N(){return!!(c&&br(c.nodesRef.current,u).length>0)}function D(){N()||g()}if(N())return;let F=S.getBoundingClientRect(),k=v.getBoundingClientRect(),z=r>k.right-k.width/2,q=n>k.bottom-k.height/2,O=k.width>F.width,V=k.height>F.height,w=(O?F:k).left,_=(O?F:k).right,U=(V?F:k).top,X=(V?F:k).bottom;if(d==="top"&&n>=F.bottom-1||d==="bottom"&&n<=F.top+1||d==="left"&&r>=F.right-1||d==="right"&&r<=F.left+1){D();return}let P=!1;switch(d){case"top":P=VS(I,L,w,F.top+1,_,k.bottom-1);break;case"bottom":P=VS(I,L,w,k.top+1,_,F.bottom-1);break;case"left":P=VS(I,L,k.right-1,X,F.left+1,U);break;case"right":P=VS(I,L,F.right-1,X,k.left+1,U);break;default:}if(P)return;if(f&&!A7(I,L,F)){D();return}if(!E&&b(I,L)){D();return}let H=!1;switch(d){case"top":{let B=O?xt/2:xt*4,J=O||z?r+B:r-B,Y=O?r-B:z?r+B:r-B,te=n+xt+1,ie=z||O?k.bottom-xt:k.top,ce=z?O?k.bottom-xt:k.top:k.bottom-xt;H=NS(I,L,J,te,Y,te,k.left,ie,k.right,ce);break}case"bottom":{let B=O?xt/2:xt*4,J=O||z?r+B:r-B,Y=O?r-B:z?r+B:r-B,te=n-xt,ie=z||O?k.top+xt:k.bottom,ce=z?O?k.top+xt:k.bottom:k.top+xt;H=NS(I,L,J,te,Y,te,k.left,ie,k.right,ce);break}case"left":{let B=V?xt/2:xt*4,J=V||q?n+B:n-B,Y=V?n-B:q?n+B:n-B,te=r+xt+1,ie=q||V?k.right-xt:k.left,ce=q?V?k.right-xt:k.left:k.right-xt;H=NS(I,L,ie,k.top,ce,k.bottom,te,J,te,Y);break}case"right":{let B=V?xt/2:xt*4,J=V||q?n+B:n-B,Y=V?n-B:q?n+B:n-B,te=r-xt,ie=q||V?k.left+xt:k.right,ce=q?V?k.left+xt:k.right:k.left+xt;H=NS(I,L,te,J,te,Y,ie,k.top,ce,k.bottom);break}default:}H?f||a.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}var BS=R(M(),1),yT=BS.createContext(void 0);function FS(){let e=BS.useContext(yT);if(e===void 0)throw new Error(De(26));return e}var zS="ArrowUp",HS="ArrowDown",US="ArrowLeft",qS="ArrowRight",GS="Home",jS="End";var _f=new Set([zS,HS,US,qS,GS,jS]),D7="Shift",lF=[D7,"Control","Alt","Meta"];function M7(e){return He(e)&&e.tagName==="INPUT"}function ST(e){return!!(M7(e)&&e.selectionStart!=null||He(e)&&e.tagName==="TEXTAREA")}function bT(e,t,a,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,n=e.scrollTop,s=e.clientWidth<e.scrollWidth,i=e.clientHeight<e.scrollHeight;if(s&&o!=="vertical"){let l=iF(e,t,"left"),u=_S(e),c=_S(t);a==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-c.scrollMarginLeft-u.scrollPaddingLeft)),a==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(i&&o!=="horizontal"){let l=iF(e,t,"top"),u=_S(e),c=_S(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?n=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(n=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:n,behavior:"auto"})}function iF(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function _S(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var uF="--nested-dialogs";var Ove=pu.open,kve=pu.closed,Nve=pu.startingStyle,Vve=pu.endingStyle;var cF="data-nested-dialog-open";var XS={...Fr,...Xa,nestedDialogOpen(e){return e?{[cF]:""}:null}};var dF=R(Q(),1),mF=fF.forwardRef(function(t,a){let{render:o,className:r,style:n,finalFocus:s,initialFocus:i,...l}=t,u=La(),c=u.useState("descriptionElementId"),d=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),p=u.useState("modal"),y=u.useState("mounted"),b=u.useState("nested"),g=u.useState("nestedOpenDialogCount"),h=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),v=u.useState("transitionStatus"),I=u.useState("role"),L=f.useState("floatingId");FS(),Ra({open:h,ref:u.context.popupRef,onComplete(){h&&u.context.onOpenChangeComplete?.(!0)}});let C=i===void 0?Q2(u.context.popupRef):i,E=g>0,T=u.useStateSetter("popupElement"),N=$("div",t,{state:{open:h,nested:b,transitionStatus:v,nestedDialogOpen:E},props:[m,{id:L,"aria-labelledby":S,"aria-describedby":c,role:I,...Vf,hidden:!y,onKeyDown(D){_f.has(D.key)&&D.stopPropagation()},style:{[uF]:g}},l],ref:[a,u.context.popupRef,T],stateAttributesMapping:XS});return(0,dF.jsx)(Gp,{context:f,openInteractionType:x,disabled:!y,closeOnFocusOut:!d,initialFocus:C,returnFocus:s,modal:p!==!1,restoreFocus:"popup",children:N})});var gF=R(M(),1);function Hi(e){return qc(19)?e:e?"true":void 0}var pF=R(M(),1),hF=R(Q(),1),YS=pF.forwardRef(function(t,a){let{cutout:o,...r}=t,n;if(o){let s=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,hF.jsx)("div",{ref:a,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});var Jp=R(Q(),1),xF=gF.forwardRef(function(t,a){let{keepMounted:o=!1,...r}=t,n=La(),s=n.useState("mounted"),i=n.useState("modal"),l=n.useState("open");return s||o?(0,Jp.jsx)(yT.Provider,{value:o,children:(0,Jp.jsxs)(Up,{ref:a,...r,children:[s&&i===!0&&(0,Jp.jsx)(YS,{ref:n.context.internalBackdropRef,inert:Hi(!l)}),t.children]})}):null});var wF=R(M(),1);var CT=R(M(),1);var yF={},SF={},bF="";function WS(e,t){return fu(e)?e:t}function vF(e,t,a){return/hidden|clip/.test(e.getComputedStyle(WS(t,a)).overflowY)}function k7(e){if(typeof document>"u")return!1;let t=be(e);return ze(t).innerWidth-t.documentElement.clientWidth>0}function N7(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=be(e),o=a.documentElement,r=a.body,n=WS(o,r),s=n.style.overflowY,i=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",n.style.overflowY="scroll";let l=n.offsetWidth;n.style.overflowY="hidden";let u=n.offsetWidth;return n.style.overflowY=s,o.style.scrollbarGutter=i,l===u}function V7(e){let t=be(e),a=t.documentElement,o=t.body,r=WS(a,o),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}function B7(e){let t=be(e),a=t.documentElement,o=t.body,r=ze(a),n=0,s=0,i=!1,l=xr.create();if(at.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=r.getComputedStyle(a),p=r.getComputedStyle(o),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";n=a.scrollTop,s=a.scrollLeft,yF={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},bF=a.style.scrollBehavior,SF={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,S=m.overflowY==="scroll"||p.overflowY==="scroll",v=m.overflowX==="scroll"||p.overflowX==="scroll",I=Math.max(0,r.innerWidth-o.clientWidth),L=Math.max(0,r.innerHeight-o.clientHeight),C=parseFloat(p.marginTop)+parseFloat(p.marginBottom),E=parseFloat(p.marginLeft)+parseFloat(p.marginRight),T=WS(a,o);if(i=N7(e),i){a.style.scrollbarGutter=g,T.style.overflowY="hidden",T.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(h||S)&&(a.style.overflowY="scroll"),(x||v)&&(a.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:C||L?`calc(100dvh - ${C+L}px)`:"100dvh",width:E||I?`calc(100vw - ${E+I}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=n,o.scrollLeft=s,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){Object.assign(a.style,yF),Object.assign(o.style,SF),i||(a.scrollTop=n,a.scrollLeft=s,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=bF)}function d(){c(),l.request(u)}u();let f=Le(r,"resize",d);return()=>{l.cancel(),c(),typeof r.removeEventListener=="function"&&f()}}var vT=class{lockCount=0;restore=null;timeoutLock=Ya.create();timeoutUnlock=Ya.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let a=be(t),o=a.documentElement,r=a.body,n=ze(o);if(vF(n,o,r)){let i=new n.MutationObserver(()=>{vF(n,o,r)||(i.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};i.observe(o,l),i.observe(r,l),this.restore=()=>i.disconnect();return}let s=at.os.ios||!k7(t);this.restore=s?V7(t):B7(t)}},F7=new vT;function KS(e=!0,t=null){G(()=>{if(e)return F7.acquire(t)},[e,t])}function CF({store:e,parentContext:t,isDrawer:a}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),n=e.useState("modal"),s=e.useState("popupElement"),i=e.useState("floatingRootContext"),[l,u]=CT.useState(0),[c,d]=CT.useState(0),f=l===0,m=Iu(i,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:n==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(p){if(!e.context.outsidePressEnabledRef.current||"button"in p&&p.button!==0)return!1;if("touches"in p){if(p.type==="touchend"){if(p.changedTouches.length!==1||p.touches.length!==0)return!1}else if(p.touches.length!==1)return!1}let y=Je(p);if(f&&!r){if(n){let b=e.context.internalBackdropRef.current,g=e.context.backdropRef.current;return b||g?b===y||g===y||ue(y,s)&&!y?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:f});return KS(o&&n===!0,s),e.useContextCallback("onNestedDialogOpen",(p,y)=>{u(p),d(y)}),G(()=>(t?.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,c+(a?1:0)):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[a,o,l,c,t]),TS(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:c}),null}var ZS=R(M(),1);var zf=class extends Cr{setState(t){}update(t){}set(t,a){}notifyAll(){}};var LF={...ES,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},QS=class extends Cr{constructor(t,a,o){let r=new In,n=IF(t,r,a,o);super(n,TF(r),LF)}setOpen=(t,a)=>{a.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&a.trigger==null&&this.state.activeTriggerId!=null&&(a.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,a),!a.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(t,a),this.update(rT(this.state,t,a.trigger)))}};function RF(){let e=new In;return new zf(Object.freeze(IF(void 0,e)),Object.freeze(TF(e)),LF)}function IF(e,t,a,o=!1){return{...wS(t,a,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function TF(e){return{popupRef:ZS.createRef(),backdropRef:ZS.createRef(),internalBackdropRef:ZS.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}var $p=R(Q(),1);function EF(e,t){let{children:a,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:s,disablePointerDismissal:i=!1,modal:l=!0,actionsRef:u,handle:c,triggerId:d,defaultTriggerId:f=null}=t,m=e==="drawer",p=e==="alert-dialog",y=p?!0:l,b=p||i,g=p?"alertdialog":"dialog",h=La(!0),x=h!=null,S={modal:y,disablePointerDismissal:b,nested:x,role:g},v=vS((A,N)=>new QS({open:r,openProp:o,activeTriggerId:f,triggerIdProp:d,...S},A,N),!0);v.useControlledProp("openProp",o),v.useControlledProp("triggerIdProp",d),v.useSyncedValues(S),v.useContextCallback("onOpenChange",n),v.useContextCallback("onOpenChangeComplete",s);let I=v.useState("open"),L=v.useState("mounted"),C=v.useState("payload");$2(v,I),RS(v);let{forceUnmount:E}=IS(I,v);wF.useImperativeHandle(u,()=>({unmount:E,close:()=>v.setOpen(!1,he(ne.imperativeAction))}),[E,v]);let T=I||L;return(0,$p.jsxs)(cI.Provider,{value:v,children:[c&&(0,$p.jsx)(CS,{handle:c,store:v}),T&&(0,$p.jsx)(CF,{store:v,parentContext:h?.context,isDrawer:m}),typeof a=="function"?a({payload:C}):a]})}var AF=Zp(function(t){return EF("dialog",t)});var DF=R(M(),1);var MF=DF.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,...i}=t,l=FS(),u=La(),c=u.useState("open"),d=u.useState("nested"),f=u.useState("transitionStatus"),m=u.useState("nestedOpenDialogCount"),p=u.useState("mounted"),y=u.useStateSetter("viewportElement"),b=m>0;return $("div",t,{enabled:l||p,state:{open:c,nested:d,transitionStatus:f,nestedDialogOpen:b},ref:[a,y],stateAttributesMapping:XS,props:[{role:"presentation",hidden:!p,style:{pointerEvents:c?void 0:"none"},children:s},i]})});var PF=R(M(),1);var OF=PF.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,l=La(),u=Tt(s);return l.useSyncedValueWithCleanup("titleElementId",u),$("h2",t,{ref:a,props:[{id:u},i]})});var BF=R(M(),1);var th=R(M(),1);var eh=R(M(),1);function kF(e){let t=eh.useRef(""),a=eh.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:eh.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:a}}var NF=R(M(),1);function Hf(e,t){let a=NF.useRef(e),o=W(t);G(()=>{a.current!==e&&o(a.current),a.current=e},[e,o])}function LT(e,t){let a=W((n,s)=>{(typeof e=="function"?e():e)||t(s||(at.os.ios?"touch":""))}),{onClick:o,onPointerDown:r}=kF(a);return th.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function VF(e){let[t,a]=th.useState(null),o=LT(e,a);return Hf(e,r=>{r&&!e&&a(null)}),th.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}var FF=gS(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,nativeButton:i=!0,id:l,payload:u,handle:c,...d}=t,f=La(!0),p=AS(c)??f;if(!p)throw new Error(De(79));let y=Tt(l),b=p.useState("floatingRootContext"),g=p.useState("isOpenedByTrigger",y),h=p.useState("triggerPopupId",y),x=BF.useRef(null),{registerTrigger:S,isMountedByThisTrigger:v}=LS(y,x,p,{payload:u}),{getButtonProps:I,buttonRef:L}=Ko({disabled:s,native:i}),C=Xp(b),E=LT(()=>p.select("open"),N=>{p.set("openMethod",N)}),T={disabled:s,open:g},A=p.useState("triggerProps",v);return $("button",t,{state:T,ref:[L,a,S,x],props:[C.reference,A,E,{[uS]:"",id:y,"aria-haspopup":"dialog","aria-expanded":g,"aria-controls":h},d,I],stateAttributesMapping:Rf})});var ah=class extends Of{constructor(){super(RF(),"Dialog",!1)}open(t){this.openByTrigger(t)}openWithPayload(t){let a=this.attachedStore;a!==null&&(a.set("payload",t),a.setOpen(!0,he(ne.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function _F(){return new ah}var fo=R(Q(),1);function zF({...e}){return(0,fo.jsx)(wn.Root,{"data-slot":"sheet",...e})}function _7({...e}){return(0,fo.jsx)(wn.Portal,{"data-slot":"sheet-portal",...e})}function z7({className:e,...t}){return(0,fo.jsx)(wn.Backdrop,{"data-slot":"sheet-overlay",className:re("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...t})}function HF({className:e,children:t,side:a="right",showCloseButton:o=!0,...r}){return(0,fo.jsxs)(_7,{children:[(0,fo.jsx)(z7,{}),(0,fo.jsxs)(wn.Popup,{"data-slot":"sheet-content","data-side":a,className:re("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",e),...r,children:[t,o&&(0,fo.jsxs)(wn.Close,{"data-slot":"sheet-close",render:(0,fo.jsx)(Eo,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,fo.jsx)(Al,{}),(0,fo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function UF({className:e,...t}){return(0,fo.jsx)("div",{"data-slot":"sheet-header",className:re("flex flex-col gap-0.5 p-4",e),...t})}function qF({className:e,...t}){return(0,fo.jsx)(wn.Title,{"data-slot":"sheet-title",className:re("text-base font-medium text-foreground",e),...t})}function GF({className:e,...t}){return(0,fo.jsx)(wn.Description,{"data-slot":"sheet-description",className:re("text-sm text-muted-foreground",e),...t})}var Yf={};Aa(Yf,{Indicator:()=>h_,List:()=>v_,Panel:()=>x_,Root:()=>ZF,Tab:()=>$F});var Kt=R(M(),1);var Au=R(M(),1);function Du({controlled:e,default:t,name:a,state:o="value"}){let{current:r}=Au.useRef(e!==void 0),[n,s]=Au.useState(t),i=r&&e!==void 0?e:n,l=Au.useCallback(u=>{r||s(u)},[]);return[i,l]}var cs=R(M(),1);var JS=R(M(),1),RT=JS.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function jF(){return JS.useContext(RT)}var XF=R(Q(),1);function Uf(e){let{children:t,elementsRef:a,labelsRef:o,onMapChange:r}=e,n=W(r),[,s]=cs.useState(!1),i=tt(U7).current,l=tt(H7).current,u=cs.useRef(0),c=cs.useRef(!0),d=cs.useRef(null),f=cs.useRef(null),m=W(()=>{c.current||(c.current=!0,s(v=>!v))}),p=W((v,I)=>{l.set(v,I),m()}),y=W(v=>{l.delete(v),m()}),b=W(v=>{let I=new Map;return a.current.length=0,o&&(o.current.length=0),v.forEach(L=>{I.set(L.element,{...L.registration.metadata??{},index:L.index}),a.current[L.index]=L.element,o&&(o.current[L.index]=L.registration.label!==void 0?L.registration.label:L.registration.textRef?.current?.textContent??L.element.textContent)}),u.current=a.current.length,I});function g(v){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||v.length<2)return;let I=new MutationObserver(C=>{if(!j7(C))return;let E=null;for(let T of v)if(T.isConnected){if(E&&YF(E,T)>0){I.disconnect(),m();return}E=T}});f.current=I;let L=new Set;for(let C=1;C<v.length;C+=1){let E=G7(v[C-1],v[C]);E&&L.add(E)}L.forEach(C=>I.observe(C,{childList:!0}))}let h=W(()=>{let[v,I]=q7(l),L=b(v),C=d.current,E=!C||C.length!==v.length||v.some((T,A)=>{let N=C[A];return T.index!==N.index||T.element!==N.element||T.registration.index!==N.registration.index||T.registration.metadata!==N.registration.metadata});g(I),d.current=v,c.current=!1,E&&(i.forEach(T=>T(L)),n(L))});G(()=>(!c.current&&d.current&&b(d.current),()=>{a.current=[],o&&(o.current=[])}),[a,o,b]),G(()=>{c.current&&h()}),G(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let x=W(v=>(i.add(v),()=>{i.delete(v)})),S=cs.useMemo(()=>({register:p,unregister:y,subscribeMapChange:x,nextIndexRef:u}),[p,y,x,u]);return(0,XF.jsx)(RT.Provider,{value:S,children:t})}function H7(){return new Map}function U7(){return new Set}function q7(e){let t=new Set,a=[],o=[];e.forEach((n,s)=>{if(!s.isConnected)return;let i=n.index,l={index:i??-1,element:s,registration:n};i===null?o.push(l):i>=0&&(t.add(i),a.push(l))});let r=0;return o.sort((n,s)=>YF(n.element,s.element)),o.forEach(n=>{for(;t.has(r);)r+=1;n.index=r,a.push(n),r+=1}),t.size>0&&a.sort((n,s)=>n.index-s.index),[a,o.map(n=>n.element)]}function G7(e,t){let a=e.parentElement;for(;a&&!a.contains(t);)a=a.parentElement;return a}function j7(e){for(let t of e)for(let a=0;a<t.removedNodes.length;a+=1)if(t.removedNodes[a].isConnected)return!0;return!1}function YF(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var $S=R(M(),1),IT=$S.createContext(void 0);function Ui(){let e=$S.useContext(IT);if(e===void 0)throw new Error(De(64));return e}var WF="data-activation-direction";var En={tabActivationDirection:e=>({[WF]:e})};var TT=R(Q(),1),ZF=Kt.forwardRef(function(t,a){let{className:o,defaultValue:r=0,onValueChange:n,orientation:s="horizontal",render:i,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=Kt.useRef([]),[m,p]=Kt.useState(()=>new Map),[y,b]=Du({controlled:l,default:r,name:"Tabs",state:"value"}),g=l!==void 0,[h,x]=Kt.useState(()=>new Map),S=Kt.useRef(void 0),v=Kt.useCallback(Y=>wT(h,Y),[h]),[I,L]=Kt.useState(()=>({previousValue:y,tabActivationDirection:"none"})),{previousValue:C,tabActivationDirection:E}=I,T=E,A=!1;C!==y&&(T=KF(C,y,s,h),A=C!=null&&y!=null&&v(y)==null);let N=A?C:y,D=C!==N||E!==T;G(()=>{D&&L({previousValue:N,tabActivationDirection:T})},[N,D,T]);let F=W((Y,te)=>{let ie=KF(y,Y,s,h);te.activationDirection=ie,n?.(Y,te),!te.isCanceled&&b(Y)}),k=W((Y,te)=>{n?.(Y,he(te,void 0,void 0,{activationDirection:"none"}))}),z=W((Y,te)=>(p(ie=>{let ce=new Map(ie);return ce.set(Y,te),ce}),()=>{p(ie=>{if(ie.get(Y)!==te)return ie;let ce=new Map(ie);return ce.delete(Y),ce})})),q=Kt.useCallback(Y=>m.get(Y),[m]),O=Kt.useCallback(Y=>{for(let te of h.values())if(Y===te.value)return te.id},[h]),V=Kt.useMemo(()=>({getTabElementBySelectedValue:v,getTabIdByPanelValue:O,getTabPanelIdByValue:q,onValueChange:F,orientation:s,registerMountedTabPanel:z,setTabMap:x,tabActivationDirection:T,value:y}),[v,O,q,F,s,z,x,T,y]),w=Kt.useMemo(()=>{for(let Y of h.values())if(Y.value===y)return Y},[h,y]),_=Kt.useMemo(()=>{for(let Y of h.values())if(!Y.disabled)return Y.value},[h]),U=Kt.useRef(!d),X=Kt.useRef(r),P=Kt.useRef(d),H=Kt.useRef(!1);G(()=>{if(g)return;function Y(ee,ae){b(ee),L({previousValue:ee,tabActivationDirection:"none"}),k(ee,ae),U.current=!1}if(h.size===0){H.current&&y!==null&&!S.current?.isConnected&&Y(null,ne.missing);return}H.current=!0,S.current=h.keys().next().value;let te=w?.disabled,ie=w==null&&y!==null;if(!te&&y===X.current&&(P.current=!1),P.current&&te&&y===X.current)return;let ce=U.current;if(te||ie){let ee=_??null;if(y===ee){U.current=!1;return}let ae=ne.missing;ce?ae=ne.initial:te&&(ae=ne.disabled),Y(ee,ae);return}ce&&w!=null&&(k(y,ne.initial),U.current=!1)},[_,g,k,w,b,h,y]);let J=$("div",t,{state:{orientation:s,tabActivationDirection:T},ref:a,props:c,stateAttributesMapping:En});return(0,TT.jsx)(IT.Provider,{value:V,children:(0,TT.jsx)(Uf,{elementsRef:f,children:J})})});function wT(e,t){for(let[a,o]of e.entries())if(t===o.value)return a;return null}function KF(e,t,a,o){if(e==null||t==null)return"none";let[r,n,s]=a==="horizontal"?["left","left","right"]:["top","up","down"],i=wT(o,e),l=wT(o,t);if(i==null||l==null)return i!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:n:"none";let u=i.getBoundingClientRect()[r],c=l.getBoundingClientRect()[r];return c<u?n:c>u?s:"none"}var fs=R(M(),1);var oh="data-composite-item-active";var QF=R(M(),1);var Mu=R(M(),1);function qf(e={}){let{guess:t,label:a,metadata:o,textRef:r,index:n}=e,{register:s,unregister:i,subscribeMapChange:l,nextIndexRef:u}=jF(),c=Mu.useRef(-1),[d,f]=Mu.useState(n==null&&t?()=>{if(c.current===-1){let b=u.current;u.current+=1,c.current=b}return c.current}:-1),m=n??d,p=Mu.useRef(null),y=Mu.useCallback(b=>{let g=p.current;g&&i(g),p.current=b,b&&s(b,{metadata:o??null,index:n??null,label:a,textRef:r})},[n,s,i,o,a,r]);return G(()=>{if(n==null)return l(b=>{let g=p.current?b.get(p.current)?.index:null;g!=null&&f(g)})},[n,l]),{ref:y,index:m}}function JF(e={}){let{highlightItemOnHover:t,highlightedIndex:a,onHighlightedIndexChange:o}=Cf(),{ref:r,index:n}=qf(e),s=a===n,i=QF.useRef(null),l=fr(r,i);return{compositeProps:{tabIndex:s?0:-1,onFocus(){o(n)},onMouseMove(){let c=i.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!s&&!d&&c.focus()}},compositeRef:l,index:n}}var eb=R(M(),1),ET=eb.createContext(void 0);function tb(){let e=eb.useContext(ET);if(e===void 0)throw new Error(De(65));return e}var $F=fs.forwardRef(function(t,a){let{className:o,disabled:r=!1,render:n,value:s,id:i,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:y}=Ui(),{activateOnFocus:b,registerTabResizeObserverElement:g,tabsListElement:h}=tb(),{highlightedIndex:x,onHighlightedIndexChange:S}=Cf(),v=Tt(i),I=fs.useMemo(()=>({disabled:r,id:v,value:s}),[r,v,s]),{compositeProps:L,compositeRef:C,index:E}=JF({metadata:I}),T=s===d,A=fs.useRef(!1),N=fs.useRef(null),D=W(H=>{N.current?.(),N.current=H?g(H):null});G(()=>{if(A.current){A.current=!1;return}if(!(T&&E>-1&&x!==E))return;let H=h;if(H!=null){let B=_t(be(H));if(B&&ue(H,B))return}r||S(E)},[T,E,x,S,r,h]);let{getButtonProps:F,buttonRef:k}=Ko({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(s),q=fs.useRef(!1),O=fs.useRef(!1);function V(H){m(s,he(ne.none,H.nativeEvent,void 0,{activationDirection:"none"}))}function w(H){T||r||V(H)}function _(H){T||r||b&&(!q.current||O.current)&&V(H)}function U(H){if(T||r)return;q.current=!0,O.current=H.button===0;let B=be(H.currentTarget);function J(){q.current=!1,O.current=!1,B.removeEventListener("pointerup",J),B.removeEventListener("pointercancel",J)}B.addEventListener("pointerup",J),B.addEventListener("pointercancel",J)}return $("button",t,{state:{disabled:r,active:T,orientation:p,tabActivationDirection:y},ref:[a,k,C,D],props:[L,{role:"tab","aria-controls":z,"aria-selected":T,id:v,onClick:w,onFocus:_,onPointerDown:U,[oh]:T?"":void 0,onKeyDownCapture(){A.current=!0}},c,F],stateAttributesMapping:En})});var Xf=R(M(),1);var ERe=R(M(),1);var e_=R(Kp(),1);function Y7(){return Ne}function W7(){return!1}function K7(){return!0}function t_(){return(0,e_.useSyncExternalStore)(Y7,W7,K7)}var ab=R(M(),1),Z7=ab.createContext(void 0),Q7={disableStyleElements:!1};function Gf(){return ab.useContext(Z7)??Q7}var a_=R(Q(),1);function o_(e){let{script:t}=e,{nonce:a}=Gf();return t_()?(0,a_.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function jf(e){let t=pa(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=He(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o;return(Ni(a)!==n||Ni(o)!==s)&&(a=n,o=s),{width:a,height:o}}function r_(e,t){let a=(t??ze(e).getComputedStyle(e)).transform,o=0,r=0,n=1;if(a&&a!=="none"){let s=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let i=s[1].split(", ").map(parseFloat);i.length===6?(o=i[4],r=i[5],n=Math.sqrt(i[0]*i[0]+i[1]*i[1])):i.length===16&&(o=i[12],r=i[13],n=i[0])}}return{x:o,y:r,scale:n}}var n_="--active-tab-left",s_="--active-tab-right",i_="--active-tab-top",l_="--active-tab-bottom",u_="--active-tab-width",c_="--active-tab-height";var ob=R(Q(),1),f_,$7={...En,activeTabPosition:()=>null,activeTabSize:()=>null},d_=2,h_=Xf.forwardRef(function(t,a){let{className:o,render:r,renderBeforeHydration:n=!1,style:s,...i}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=Ui(),{tabsListElement:f,registerIndicatorUpdateListener:m}=tb(),p=j2();Xf.useEffect(()=>m(p),[m,p]);let y=0,b=0,g=0,h=0,x=0,S=0,v=!1;if(d!=null&&f!=null){let N=l(d);if(N!=null){v=!0;let{width:D,height:F}=jf(N),{width:k,height:z}=jf(f),q=N.getBoundingClientRect(),O=f.getBoundingClientRect(),V=k>0?O.width/k:1,w=z>0?O.height/z:1,_=e9(N,f);y=_.left,g=_.top;let U=(q.left-O.left)/V+f.scrollLeft-f.clientLeft,X=(q.top-O.top)/w+f.scrollTop-f.clientTop,P=t9(N);Math.abs(U-P.x-y)<=d_&&Math.abs(X-P.y-g)<=d_&&(y=U,g=X),x=D,S=F,b=f.scrollWidth-y-x,h=f.scrollHeight-g-S}}let I=v?{left:y,right:b,top:g,bottom:h}:null,L=v?{width:x,height:S}:null,C=v?{[n_]:`${y}px`,[s_]:`${b}px`,[i_]:`${g}px`,[l_]:`${h}px`,[u_]:`${x}px`,[c_]:`${S}px`}:void 0,E=v&&x>0&&S>0,A=$("span",t,{state:{orientation:u,activeTabPosition:I,activeTabSize:L,tabActivationDirection:c},ref:a,props:[{role:"presentation",style:C,hidden:!E},i,{suppressHydrationWarning:!0}],stateAttributesMapping:$7});return d==null?null:(0,ob.jsxs)(Xf.Fragment,{children:[A,n&&(f_||(f_=(0,ob.jsx)(o_,{script:""})))]})});function e9(e,t){let a=m_(e),o=m_(t),r=a.left-o.left-t.clientLeft,n=a.top-o.top-t.clientTop,s=Wo(e);for(;He(s)&&s!==t&&!gr(s);)r-=s.scrollLeft,n-=s.scrollTop,s=Wo(s);return{left:r,top:n}}function m_(e){let t=0,a=0,o=e;for(;o!=null;){t+=o.offsetLeft,a+=o.offsetTop;let r=o.offsetParent;r!=null&&(t+=r.clientLeft,a+=r.clientTop),o=r}return{left:t,top:a}}function t9(e){let t=ze(e).getComputedStyle(e),{x:a,y:o}=r_(e,t),r=a,n=o,{translate:s}=t;if(s&&s!=="none"){let i=s.split(" ");r+=p_(i[0],e.offsetWidth),n+=p_(i[1],e.offsetHeight)}return{x:r,y:n}}function p_(e,t){if(!e)return 0;let a=parseFloat(e);return Number.isFinite(a)?e.endsWith("%")?a/100*t:a:0}var rb=R(M(),1);var g_="data-index";var ZRe=mu.startingStyle,QRe=mu.endingStyle;var o9={...En,...Xa},x_=rb.forwardRef(function(t,a){let{className:o,value:r,render:n,keepMounted:s=!1,style:i,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=Ui(),p=Tt(),{ref:y,index:b}=qf(),g=r===u,{mounted:h,transitionStatus:x,setMounted:S}=Po(g),v=!h,I=c(r),L={hidden:v,orientation:d,tabActivationDirection:f,transitionStatus:x},C=rb.useRef(null),E=$("div",t,{state:L,ref:[a,y,C],props:[{"aria-labelledby":I,hidden:v,id:p,role:"tabpanel",tabIndex:g?0:-1,inert:Hi(!g),[g_]:b},l],stateAttributesMapping:o9});return Ra({open:g,ref:C,onComplete(){g||S(!1)}}),G(()=>{if(!(p==null||v&&!s))return m(r,p)},[v,s,r,p,m]),s||h?E:null});var Ur=R(M(),1);var S_=R(M(),1);var Pu=R(M(),1);function nb(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function y_(e){let{loopFocus:t=!0,orientation:a="both",grid:o,onLoop:r,direction:n,highlightedIndex:s,onHighlightedIndexChange:i,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=Ro}=e,[m,p]=Pu.useState(0),y=o!=null,b=Pu.useRef(null),g=fr(b,l),h=Pu.useRef([]),x=Pu.useRef(!1),S=Pu.useRef(null),v=s??m,I=W((A,N=!1)=>{if(S.current=h.current[A]??null,(i??p)(A),N){let D=h.current[A];bT(b.current,D,n,a)}}),L=W(A=>{if(A.size===0)return;if(x.current){let k=h.current,z=k.indexOf(S.current);if(z===-1){let q=k[v];!q||ls(k,v,d)?I(r9(k,d)):S.current=q}else z!==v&&I(z);return}x.current=!0;let N=Array.from(A.keys()),D=N.find(k=>k?.hasAttribute(oh))??null,F=D?A.get(D)?.index??-1:-1;if(F!==-1)I(F);else if(ls(N,v,d)){let k=Sr(N,{disabledIndices:d});Vi(N,k)||I(k)}bT(b.current,D,n,a)});G(()=>{if(d==null||s!=null||!x.current)return;let A=h.current;if(ls(A,v,d)){let N=Sr(A,{disabledIndices:d});Vi(A,N)||I(N)}},[d,s,v,h,I]);let C=W((A,N,D)=>r?r(A,N,D,h):D),E=W(A=>{let N=A.key===GS||A.key===jS;if(!_f.has(A.key)||!u&&N||n9(A,f)||!b.current)return;let F=n==="rtl",k=F?US:qS,z=F?qS:US,q=a==="vertical"?HS:k,O=a==="vertical"?zS:z,V=Je(A.nativeEvent);if(V!=null&&ST(V)&&!nb(V)){let H=V.selectionStart,B=V.selectionEnd,J=V.value;if(H==null||A.shiftKey||H!==B||A.key!==O&&H<J.length||A.key!==q&&H>0)return}let w=v,_=bu(h,d),U=Df(h,d);o!=null&&(w=o({disabledIndices:d,elementsRef:h,event:A,highlightedIndex:v,loopFocus:t,maxIndex:U,minIndex:_,onLoop:C,orientation:a,rtl:F}));let X=a!=="vertical"&&A.key===k||a!=="horizontal"&&A.key===HS,P=a!=="vertical"&&A.key===z||a!=="horizontal"&&A.key===zS;u&&(A.key===GS?w=_:A.key===jS&&(w=U)),w===v&&(X||P)&&(t&&w===U&&X?(w=_,r&&(w=r(A,v,w,h))):t&&w===_&&P?(w=U,r&&(w=r(A,v,w,h))):w=Sr(h.current,{startingIndex:w,decrement:P,disabledIndices:d})),w!==v&&!Vi(h.current,w)&&(c&&A.stopPropagation(),(y||N||X||P)&&A.preventDefault(),I(w,!0),queueMicrotask(()=>{h.current[w]?.focus()}))});return{props:{ref:g,onFocus(A){let N=b.current,D=Je(A.nativeEvent);!N||D==null||!ST(D)||D.setSelectionRange(0,D.value.length)},onKeyDown:E},highlightedIndex:v,onHighlightedIndexChange:I,elementsRef:h,onMapChange:L,relayKeyboardEvent:E}}function r9(e,t){let a=-1;for(let o=0;o<e.length;o+=1){let r=e[o];if(!(!r||ls(e,o,t))){if(r.hasAttribute(oh))return o;a===-1&&(a=o)}}return Math.max(a,0)}function n9(e,t){for(let a of lF)if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}var sb=R(M(),1),s9=sb.createContext(void 0);function Oo(){return sb.useContext(s9)?.direction??"ltr"}var AT=R(Q(),1);function b_(e){let{render:t,className:a,style:o,refs:r=Ro,props:n=Ro,state:s=We,stateAttributesMapping:i,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:y,stopEventPropagation:b=!0,rootRef:g,disabledIndices:h,modifierKeys:x,highlightItemOnHover:S=!1,tag:v="div",...I}=e,L=Oo(),{props:C,highlightedIndex:E,onHighlightedIndexChange:T,elementsRef:A,onMapChange:N,relayKeyboardEvent:D}=y_({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:g,stopEventPropagation:b,enableHomeAndEndKeys:p,direction:L,disabledIndices:h,modifierKeys:x}),F=$(v,e,{state:s,ref:r,props:[C,...n,I],stateAttributesMapping:i}),k=S_.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:T,highlightItemOnHover:S,relayKeyboardEvent:D}),[E,T,S,D]);return(0,AT.jsx)(sI.Provider,{value:k,children:(0,AT.jsx)(Uf,{elementsRef:A,onMapChange:z=>{y?.(z),N(z)},children:F})})}var DT=R(Q(),1),v_=Ur.forwardRef(function(t,a){let{activateOnFocus:o=!1,className:r,loopFocus:n=!0,render:s,style:i,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=Ui(),[f,m]=Ur.useState(0),[p,y]=Ur.useState(null),b=Ur.useRef(new Set),g=Ur.useRef(new Set),h=Ur.useRef(null);G(()=>{if(typeof ResizeObserver>"u")return;let C=new ResizeObserver(()=>{b.current.forEach(E=>{E()})});return h.current=C,p&&C.observe(p),g.current.forEach(E=>{C.observe(E)}),()=>{C.disconnect(),h.current=null}},[p]);let x=W(C=>(b.current.add(C),()=>{b.current.delete(C)})),S=W(C=>(g.current.add(C),h.current?.observe(C),()=>{g.current.delete(C),h.current?.unobserve(C)})),v={orientation:u,tabActivationDirection:d},I={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},L=Ur.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:p}),[o,x,S,p]);return(0,DT.jsx)(ET.Provider,{value:L,children:(0,DT.jsx)(b_,{render:s,className:r,style:i,state:v,refs:[a,y],props:[I,l],stateAttributesMapping:En,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:n,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:Ro})})});var ub=R(Q(),1);function ib({className:e,orientation:t="horizontal",...a}){return(0,ub.jsx)(Yf.Root,{"data-slot":"tabs","data-orientation":t,className:re("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var i9=Gc("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function lb({className:e,variant:t="default",...a}){return(0,ub.jsx)(Yf.List,{"data-slot":"tabs-list","data-variant":t,className:re(i9({variant:t}),e),...a})}function Wf({className:e,...t}){return(0,ub.jsx)(Yf.Tab,{"data-slot":"tabs-trigger",className:re("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var An={};Aa(An,{Arrow:()=>az,Handle:()=>ih,Popup:()=>ez,Portal:()=>B_,Positioner:()=>J_,Provider:()=>rz,Root:()=>w_,Trigger:()=>M_,Viewport:()=>gz,createHandle:()=>xz});var Kf=R(M(),1);var cb=R(M(),1),MT=cb.createContext(void 0);function Lr(e){let t=cb.useContext(MT);if(t===void 0&&!e)throw new Error(De(72));return t}var C_=R(M(),1);var L_={...ES,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},fb=class extends Cr{constructor(t,a,o){let r=new In;super(I_(t,r,a,o),T_(r),L_)}setOpen=(t,a)=>{J2(this,t,a,{extraState:{openChangeReason:a.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,he(ne.triggerPress,t))}};function R_(){let e=new In,t=new zf(Object.freeze(I_(void 0,e)),Object.freeze(T_(e)),L_);return Object.assign(t,{setOpen:Ne,cancelPendingOpen:Ne})}function I_(e,t,a,o=!1){return{...wS(t,a,o),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function T_(e){return{popupRef:C_.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var rh=R(Q(),1),w_=Zp(function(t){let{disabled:a=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:n=!1,trackCursorAxis:s="none",actionsRef:i,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=vS((A,N)=>new fb({open:o,openProp:r,activeTriggerId:f,triggerIdProp:d},A,N));p.useControlledProp("openProp",r),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let y=p.useState("open"),b=!a&&y,g=p.useState("activeTriggerId"),h=p.useState("mounted"),x=p.useState("payload");p.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:n,disabled:a}),RS(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:v}=IS(b,p),I=p.useState("isInstantPhase"),L=p.useState("instantType"),C=p.useState("lastOpenChangeReason"),E=Kf.useRef(null);G(()=>{y&&a&&p.setOpen(!1,he(ne.disabled))},[y,a,p]),G(()=>{v==="ending"&&C===ne.none||v!=="ending"&&I?(L!=="delay"&&(E.current=L),p.set("instantType","delay")):E.current!==null&&(p.set("instantType",E.current),E.current=null)},[v,I,C,L,p]),G(()=>{b&&g==null&&p.set("payload",void 0)},[p,g,b]),Kf.useImperativeHandle(i,()=>({unmount:S,close:()=>p.setOpen(!1,he(ne.imperativeAction))}),[S,p]);let T=b||h||!a&&s!=="none";return(0,rh.jsxs)(MT.Provider,{value:p,children:[c&&(0,rh.jsx)(CS,{handle:c,store:p}),T&&(0,rh.jsx)(l9,{store:p,disabled:a,trackCursorAxis:s}),typeof m=="function"?m({payload:x}):m]})});function l9({store:e,disabled:t,trackCursorAxis:a}){let o=e.useState("floatingRootContext"),r=Iu(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),n=UI(o,{enabled:!t&&a!=="none",axis:a==="none"?void 0:a}),s=Kf.useMemo(()=>Ga(n.reference,r.reference),[n.reference,r.reference]);return TS(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:r.floating??We}),null}var mb=R(M(),1);var db=R(M(),1),PT=db.createContext(void 0);function E_(){return db.useContext(PT)}var D_="data-base-ui-tooltip-trigger";function A_(e){if("composedPath"in e){let a=e.composedPath();for(let o=0;o<a.length;o+=1){let r=a[o];if(Te(r))return r}}let t=e.target;return Te(t)?t:null}function u9(e){let t=e;for(;t;){let a=t.closest(`[${D_}]`);if(a)return a;let o=t.getRootNode();t="host"in o&&Te(o.host)?o.host:null}return null}var M_=gS(function(t,a){let{render:o,className:r,style:n,handle:s,payload:i,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=Lr(!0),b=AS(s)??p;if(!b)throw new Error(De(82));let g=Tt(f),h=b.useState("isTriggerActive",g),x=b.useState("isOpenedByTrigger",g),S=b.useState("floatingRootContext"),v=mb.useRef(null),I=d??0,{registerTrigger:L,isMountedByThisTrigger:C}=LS(g,v,b,{payload:i,closeOnClick:c,closeDelay:I}),E=E_(),{activeIdRef:T,delayRef:A,isInstantPhase:N,hasProvider:D}=EI(S,{open:x}),F=Ff(S);b.useSyncedValue("isInstantPhase",N);let k=b.useState("disabled"),z=l??k,q=pt(z),O=b.useState("trackCursorAxis"),V=b.useState("disableHoverablePopup"),w=mb.useRef(!1),_=Ze(),U=mb.useRef(void 0);function X(){return D&&T.current!=null?0:u??E??600}function P(ae){let me=v.current;if(!me||!ae)return!1;let ge=u9(ae);return ge!==null&&ge!==me&&ue(me,ge)}function H(ae){let me=P(ae);return w.current=me,me&&(F.openChangeTimeout.clear(),F.restTimeout.clear(),F.restTimeoutPending=!1,_.clear()),me}let B=mT(S,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!V&&O!=="both"?xT():null,restMs:X,delay(){return d==null&&D?{close:_r(A.current,"close")}:{close:I}},triggerElementRef:v,isActiveTrigger:h,isClosing:()=>b.select("transitionStatus")==="ending",shouldOpen(){return!w.current}}),J=uT(S,{enabled:!z}).reference,Y=ae=>{let me=w.current,ge=A_(ae),we=H(ge),pe=v.current,Re=pe&&ge&&ue(pe,ge);if(we&&b.select("open")&&b.select("lastOpenChangeReason")===ne.triggerHover){b.setOpen(!1,he(ne.triggerHover,ae));return}if(me&&!we&&Re&&!q.current&&!b.select("open")&&pe&&Zo(U.current)){let le=()=>{!w.current&&!q.current&&!b.select("open")&&b.setOpen(!0,he(ne.triggerHover,ae,pe))},Ie=X();Ie===0?(_.clear(),le()):_.start(Ie,le)}},te=b.useState("triggerProps",C);return $("button",t,{state:{open:x},ref:[a,L,v],props:[B,J,C||O!=="none"?te:void 0,{onMouseOver(ae){Y(ae.nativeEvent)},onFocus(ae){P(A_(ae.nativeEvent))&&ae.preventBaseUIHandler()},onMouseLeave(){w.current=!1,_.clear(),U.current=void 0},onPointerEnter(ae){U.current=ae.pointerType},onPointerDown(ae){U.current=ae.pointerType,b.set("closeOnClick",c),c&&!b.select("open")&&b.cancelPendingOpen(ae.nativeEvent)},onClick(ae){c&&!b.select("open")&&b.cancelPendingOpen(ae.nativeEvent)},id:g,[kp]:z?"":void 0,[D_]:z?void 0:""},m],stateAttributesMapping:Rf})});var V_=R(M(),1);var pb=R(M(),1),OT=pb.createContext(void 0);function P_(){let e=pb.useContext(OT);if(e===void 0)throw new Error(De(70));return e}var hb=R(M(),1),O_=R(Yr(),1);var k_=R(Q(),1),N_=hb.forwardRef(function(t,a){let{children:o,container:r,className:n,render:s,style:i,...l}=t,{node:u,subtree:c}=cS({container:r,ref:a,componentProps:t,elementProps:l});return!c&&!u?null:(0,k_.jsxs)(hb.Fragment,{children:[c,u&&O_.createPortal(o,u)]})});var kT=R(Q(),1),B_=V_.forwardRef(function(t,a){let{keepMounted:o=!1,...r}=t;return Lr().useState("mounted")||o?(0,kT.jsx)(OT.Provider,{value:o,children:(0,kT.jsx)(N_,{ref:a,...r})}):null});var vb=R(M(),1);var gb=R(M(),1),NT=gb.createContext(void 0);function Zf(){let e=gb.useContext(NT);if(e===void 0)throw new Error(De(71));return e}var Qo=R(M(),1);var c9=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=Rn(e,t)||{};if(u==null)return{};let f=rS(c),m={x:a,y:o},p=_p(r),y=Fp(p),b=await s.getDimensions(u),g=p==="y",h=g?"top":"left",x=g?"bottom":"right",S=g?"clientHeight":"clientWidth",v=n.reference[y]+n.reference[p]-m[p]-n.floating[y],I=m[p]-n.reference[p],L=d==="real"?await s.getOffsetParent?.(u):i.floating,C=i.floating[S]||n.floating[y];(!C||!await s.isElement?.(L))&&(C=i.floating[S]||n.floating[y]);let E=v/2-I/2,T=C/2-b[y]/2-1,A=Math.min(f[h],T),N=Math.min(f[x],T),D=A,F=C-b[y]-N,k=C/2-b[y]/2+E,z=aS(D,k,F),q=!l.arrow&&yr(r)!=null&&k!==z&&n.reference[y]/2-(k<D?A:N)-b[y]/2<0,O=q?k<D?k-D:k-F:0;return{[p]:m[p]+O,data:{[p]:z,centerOffset:k-z-O,...q&&{alignmentOffset:O}},reset:q}}}),F_=(e,t)=>{let{name:a,fn:o}=c9(e);return{name:a,fn:o,options:[e,t]}};var __={name:"hide",async fn(e){let{width:t,height:a,x:o,y:r}=e.rects.reference,n=t===0&&a===0&&o===0&&r===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-a>=0||s.right-t>=0||s.bottom-a>=0||s.left-t>=0||n}}}};var Qf={sideX:"left",sideY:"top"};var xb="--available-width",yb="--available-height",z_="--anchor-width",H_="--anchor-height",U_="--transform-origin",q_="--positioner-width",G_="--positioner-height";var X_=xb,Y_=yb;function Z_(e,t,a){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?a?"inline-start":"inline-end":"right",bottom:"bottom",left:o?a?"inline-end":"inline-start":"left"}[t]}function W_(e,t,a){let{rects:o,placement:r}=e;return{side:Z_(t,Ka(r),a),align:yr(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Sb(e){return f9(e,oF)}function f9(e,t){let{anchor:a,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:y,mounted:b,collisionAvoidance:g,shift:h,nodeId:x,adaptiveOrigin:S,lazyFlip:v=!1,externalTree:I}=e,[L,C]=Qo.useState(null);!b&&L!==null&&C(null);let E=g.side||"flip",T=g.align||"flip",A=g.fallbackAxisSide||"end",N=h?.crossAxis??!1,D=h?.rootBoundary,F=typeof a=="function"?a:void 0,k=W(F),z=F?k:a,q=pt(a),O=pt(b),w=Oo()==="rtl",_=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":w?"left":"right","inline-start":w?"right":"left"}[r],U=s==="center"?_:`${_}-${s}`,X=u;typeof X=="number"?X={top:X,right:X,bottom:X,left:X}:X&&(X={top:X.top||0,right:X.right||0,bottom:X.bottom||0,left:X.left||0});let P=1,H=r==="bottom"?P:0,B=r==="top"?P:0,J=r==="right"?P:0,Y=r==="left"?P:0,te={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:X},ie=Qo.useRef(null),ce=pt(n),ee=pt(i),ae=typeof n!="function"?n:0,me=typeof i!="function"?i:0,ge=[];m&&ge.push(m),ge.push(XI(Ee=>{let Dt=W_(Ee,r,w),Qe=typeof ce.current=="function"?ce.current(Dt):ce.current,Bt=typeof ee.current=="function"?ee.current(Dt):ee.current;return{mainAxis:Qe,crossAxis:Bt,alignmentAxis:Bt}},[ae,me,w,r]));let we=T==="none"&&E!=="shift",pe=!we&&(c||N||E==="shift"),Re=E==="none"?null:KI({...te,padding:{top:X.top+P+H,right:X.right+P+Y,bottom:X.bottom+P+B,left:X.left+P+J},mainAxis:!N&&E==="flip",crossAxis:T==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),le=we?null:YI({...te,rootBoundary:D,mainAxis:T!=="none",crossAxis:pe,limiter:c||N?void 0:WI(Ee=>{if(!ie.current)return{};let{width:Dt,height:Qe}=ie.current.getBoundingClientRect(),Bt=Do(Ka(Ee.placement)),po=Bt==="y"?Dt:Qe,ho=Bt==="y"?X.left+X.right:X.top+X.bottom;return{offset:po/2+ho/2}})},[te,c,N,D,X,T]);E==="shift"||T==="shift"||s==="center"?ge.push(le,Re):ge.push(Re,le),ge.push(ZI({...te,apply({elements:{floating:Ee},availableWidth:Dt,availableHeight:Qe,rects:Bt}){if(!O.current)return;let po=Ee.style;po.setProperty(X_,`${Dt}px`),po.setProperty(Y_,`${Qe}px`);let ho=ze(Ee).devicePixelRatio||1,{x:qu,y:Ss,width:el,height:jr}=Bt.reference,Ke=(Math.round((qu+el)*ho)-Math.round(qu*ho))/ho,Mt=(Math.round((Ss+jr)*ho)-Math.round(Ss*ho))/ho;po.setProperty(z_,`${Ke}px`),po.setProperty(H_,`${Mt}px`)}}),F_(Ee=>({element:ie.current||be(Ee.elements.floating).createElement("div"),padding:ie.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Ee){let{elements:{floating:Dt},middlewareData:Qe,placement:Bt,platform:po,rects:ho,y:qu}=Ee,Ss=Ka(Bt),el=yr(Bt),jr=Do(Ss)==="y",Ke=ie.current,Mt=typeof n=="function"?n(W_(Ee,r,w)):n,On;if(!Ke&&el&&Math.abs(jr?Qe.shift?.x||0:Qe.shift?.y||0)<=1)On=el==="start"===(jr&&po.isRTL?.(Dt)===!0)?"100%":"0%";else{let al=jr?Qe.arrow?.x||0:Qe.arrow?.y||0,hd=jr?Ke?.clientWidth||0:Ke?.clientHeight||0;On=`${al+hd/2}px`}let tl=Ss==="top"||Ss==="left"?`calc(100% + ${Mt}px)`:`${-Mt}px`;return pe&&jr&&Math.abs(Qe.shift?.y||0)>Mt&&(tl=`${ho.reference.y+ho.reference.height/2-qu}px`),Dt.style.setProperty(U_,jr?`${On} ${tl}`:`${tl} ${On}`),{}}},__,S),G(()=>{!b&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[b,y]);let Ie=Qo.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Ve,elements:Pe,x:ut,y:oe,middlewareData:fe,update:K,placement:j,context:se,isPositioned:Be,floatingStyles:Vt}=t({rootContext:y,open:p?b:void 0,placement:U,middleware:ge,strategy:o,whileElementsMounted:p?void 0:(...Ee)=>Wp(...Ee,Ie),nodeId:x,externalTree:I}),{sideX:Jt,sideY:Et}=fe.adaptiveOrigin||Qf,bt=Be?o:"fixed",wa=Qo.useMemo(()=>{let Ee;return Be?S?Ee={position:bt,[Jt]:ut,[Et]:oe}:Ee={...Vt,position:bt}:Ee={position:bt,top:0,left:0},Ee[X_]="100vw",Ee[Y_]="100vh",Be||(Ee.opacity=0),Ee},[S,bt,Jt,ut,Et,oe,Vt,Be]),Ea=Qo.useRef(null);G(()=>{if(!b)return;let Ee=q.current,Dt=typeof Ee=="function"?Ee():Ee,Bt=(K_(Dt)?Dt.current:Dt)||null||null;Bt!==Ea.current&&(Ve.setPositionReference(Bt),Ea.current=Bt)},[b,Ve,z,q]),Qo.useEffect(()=>{if(!b)return;let Ee=q.current;typeof Ee!="function"&&K_(Ee)&&Ee.current!==Ea.current&&(Ve.setPositionReference(Ee.current),Ea.current=Ee.current)},[b,Ve,z,q]),Qo.useEffect(()=>{if(p&&b&&Pe.reference&&Pe.floating)return Wp(Pe.reference,Pe.floating,K,Ie)},[p,b,Pe,K,Ie]);let $t=Ka(j),za=Z_(r,$t,w),mo=yr(j)||"center",$o=!!fe.hide?.referenceHidden;G(()=>{v&&b&&Be&&$t!==_&&C($t)},[v,b,Be,$t,_]);let ha=Qo.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),Ht=fe.arrow?.centerOffset!==0;return Qo.useMemo(()=>({positionerStyles:wa,arrowStyles:ha,arrowRef:ie,arrowUncentered:Ht,side:za,align:mo,physicalSide:$t,anchorHidden:$o,refs:Ve,context:se,isPositioned:Be,update:K}),[wa,ha,ie,Ht,za,mo,$t,$o,Ve,se,Be,K])}function K_(e){return e!=null&&"current"in e}function Jf(e){return e==="starting"?ZB:We}function bb(e,t,{styles:a,transitionStatus:o,props:r,refs:n,hidden:s,inert:i=!1}){let l={...a};return i&&(l.pointerEvents="none"),$("div",e,{state:t,ref:n,props:[{role:"presentation",hidden:s,style:l},Jf(o),r],stateAttributesMapping:Fr})}var Q_=R(Q(),1),J_=vb.forwardRef(function(t,a){let{render:o,className:r,anchor:n,positionMethod:s="absolute",side:i="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:y=!1,collisionAvoidance:b=JB,style:g,...h}=t,x=Lr(),S=P_(),v=x.useState("open"),I=x.useState("mounted"),L=x.useState("trackCursorAxis"),C=x.useState("disableHoverablePopup"),E=x.useState("floatingRootContext"),T=x.useState("instantType"),A=x.useState("transitionStatus"),N=x.useState("adaptiveOrigin"),D=Sb({anchor:n,positionMethod:s,floatingRootContext:E,mounted:I,side:i,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:y,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:N}),F=vb.useMemo(()=>({open:v,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L!=="none"?"tracking-cursor":T}),[v,D.side,D.align,D.anchorHidden,L,T]),k=bb(t,F,{styles:D.positionerStyles,transitionStatus:A,props:h,refs:[a,x.useStateSetter("positionerElement")],hidden:!I,inert:!v||L==="both"||C});return(0,Q_.jsx)(NT.Provider,{value:D,children:k})});var $_=R(M(),1);var ez=$_.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=Lr(),{side:l,align:u}=Zf(),c=i.useState("open"),d=i.useState("instantType"),f=i.useState("transitionStatus"),m=i.useState("popupProps"),p=i.useState("floatingRootContext"),y=i.useState("disabled"),b=i.useState("closeDelay");Ra({open:c,ref:i.context.popupRef,onComplete(){c&&i.context.onOpenChangeComplete?.(!0)}}),dT(p,{enabled:!y,closeDelay:b});let g=i.useStateSetter("popupElement");return $("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[a,i.context.popupRef,g],props:[Vf,m,Jf(f),s],stateAttributesMapping:If})});var tz=R(M(),1);var az=tz.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=Lr(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Zf(),m=i.useState("open"),p=i.useState("instantType");return $("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[a,l],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:Fr})});var oz=R(M(),1);var VT=R(Q(),1),rz=function(t){let{delay:a,closeDelay:o,timeout:r=400}=t,n=oz.useMemo(()=>({open:a,close:o}),[a,o]);return(0,VT.jsx)(PT.Provider,{value:a,children:(0,VT.jsx)(wI,{delay:n,timeoutMs:r,children:t.children})})};var hz=R(M(),1);var _a=R(M(),1),dz=R(Yr(),1);var nz=R(M(),1);function Cb(e){let[t,a]=nz.useState({current:e,previous:null});return Object.is(e,t.current)||a({current:e,previous:t.current}),t.previous}var $f=R(M(),1);var nh="--popup-width",sh="--popup-height";function lz(e){let{popupElement:t,positionerElement:a,content:o,mounted:r,onMeasureLayout:n,onMeasureLayoutComplete:s,side:i,direction:l}=e,u=Nf(t,!0),c=uo(),d=$f.useRef(null),f=$f.useRef(!0),m=$f.useRef(Ne),p=W(n),y=W(s),b=$f.useMemo(()=>d9(i,l),[i,l]);G(()=>{if(!r){m.current=Ne,f.current=!0,d.current=null;return}if(!t||!a)return;m.current=iz(t,b),BT(t,"auto");let g=Rb(t,"position","static"),h=Rb(t,"transform","none"),x=Rb(t,"scale","1"),S=iz(a,{[xb]:"max-content",[yb]:"max-content"});function v(){g(),h(),S()}function I(){v(),x()}if(p?.(),f.current||d.current===null){Lb(a,"max-content");let T=jf(t);return d.current=T,Lb(a,T),I(),y?.(null,T),f.current=!1,()=>{m.current(),m.current=Ne}}Lb(a,"max-content");let L=d.current,C=jf(t);d.current=C,BT(t,L),I(),y?.(L,C),Lb(a,C);let E=new AbortController;return c.request(()=>{BT(t,C),u(()=>{t.style.setProperty(nh,"auto"),t.style.setProperty(sh,"auto")},E.signal)}),()=>{E.abort(),c.cancel(),m.current(),m.current=Ne}},[o,t,a,u,c,r,p,y,b])}function d9(e,t){let a=e==="top",o=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!a&&!o?We:{position:"absolute",[a?"bottom":"top"]:"0",[o?"right":"left"]:"0"}}function Rb(e,t,a){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,a),()=>{e.style.setProperty(t,o)}}function iz(e,t){let a=[];for(let[o,r]of Object.entries(t))a.push(Rb(e,o,r));return a.length?()=>{a.forEach(o=>o())}:Ne}function BT(e,t){let a=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(nh,a),e.style.setProperty(sh,o)}function Lb(e,t){let a=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(q_,a),e.style.setProperty(G_,o)}var uz={name:"adaptiveOrigin",async fn(e){let{x:t,y:a,rects:{floating:o},elements:{floating:r},platform:n,strategy:s,placement:i}=e,l=ze(r),u=l.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:a,data:Qf};let d=await n.getOffsetParent?.(r),f={width:0,height:0};if(s==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let h=be(r);f={width:h.documentElement.clientWidth,height:h.documentElement.clientHeight}}else await n.isElement?.(d)&&(f=await n.getDimensions(d));let m=Ka(i),p=t,y=a;m==="left"&&(p=f.width-(t+o.width)),m==="top"&&(y=f.height-(a+o.height));let b=m==="left"?"right":Qf.sideX,g=m==="top"?"bottom":Qf.sideY;return{x:p,y,data:{sideX:b,sideY:g}}}};var cz="data-activation-direction";var ed=R(Q(),1),mz={activationDirection:e=>e?{[cz]:e}:null};function pz(e){let{store:t,side:a,children:o}=e,r=Oo(),n=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),i=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=Cb(i?n:null),m=g9(s,l),p=_a.useRef(null),[y,b]=_a.useState(null),[g,h]=_a.useState(null),x=_a.useRef(null),S=_a.useRef(null),v=Nf(x,!0),I=uo(),L=_a.useRef(null),[C,E]=_a.useState(null),[T,A]=_a.useState(!1);G(()=>(t.set("adaptiveOrigin",uz),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let N=W(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),D=W(V=>{x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),V&&E(V)}),F=W(()=>{L.current?.abort();let V=new AbortController;L.current=V,v(()=>{b(null),E(null),p.current=null},V.signal)}),k=_a.useRef(null);G(()=>{(!i||!u)&&(k.current=null)},[i,u]),G(()=>{if(n&&f&&n!==f&&k.current!==n&&p.current){b(p.current),A(!0);let V=h9(f,n);h(V),k.current=n}},[n,f]),G(()=>{y!=null&&(L.current?.abort(),A(!0),I.request(()=>{dz.flushSync(()=>{A(!1)}),F()}))},[m,y,F,I]),G(()=>{let V=x.current;if(!V)return;let w=be(V).createElement("div");for(let _ of Array.from(V.childNodes))w.appendChild(_.cloneNode(!0));p.current=w});let z=y!=null,q;z?q=(0,ed.jsxs)(_a.Fragment,{children:[(0,ed.jsx)("div",{"data-previous":!0,inert:Hi(!0),ref:S,style:{...C?{[nh]:`${C.width}px`,[sh]:`${C.height}px`}:null,position:"absolute"},"data-ending-style":T?void 0:""},"previous"),(0,ed.jsx)("div",{"data-current":!0,ref:x,"data-starting-style":T?"":void 0,children:o},m)]}):q=(0,ed.jsx)("div",{"data-current":!0,ref:x,children:o},m),G(()=>{let V=S.current;!V||!y||V.replaceChildren(...Array.from(y.childNodes))},[y]),lz({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:N,onMeasureLayoutComplete:D,side:a,direction:r});let O={activationDirection:p9(g),transitioning:z};return{children:q,state:O}}function p9(e){if(e)return`${fz(e.horizontal,5,"right","left")} ${fz(e.vertical,5,"down","up")}`}function fz(e,t,a,o){return e>t?a:e<-t?o:""}function h9(e,t){let a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r={x:a.left+a.width/2,y:a.top+a.height/2},n={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:n.x-r.x,vertical:n.y-r.y}}function g9(e,t){let[a,o]=_a.useState(0),r=_a.useRef(e),n=_a.useRef(t),s=_a.useRef(!1);return G(()=>{let i=r.current,l=n.current,u=e!==i,c=t!==l;u?(o(d=>d+1),s.current=!c):s.current&&c&&(o(d=>d+1),s.current=!1),r.current=e,n.current=t},[e,t]),`${e??"current"}-${a}`}var gz=hz.forwardRef(function(t,a){let{render:o,className:r,style:n,children:s,...i}=t,l=Lr(),u=Zf(),c=l.useState("instantType"),{children:d,state:f}=pz({store:l,side:u.side,children:s}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return $("div",t,{state:m,ref:a,props:[i,{children:d}],stateAttributesMapping:mz})});var ih=class extends Of{constructor(){super(R_(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function xz(){return new ih}var ds=R(Q(),1);function yz({delay:e=0,...t}){return(0,ds.jsx)(An.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function Ib({...e}){return(0,ds.jsx)(An.Root,{"data-slot":"tooltip",...e})}function Tb({...e}){return(0,ds.jsx)(An.Trigger,{"data-slot":"tooltip-trigger",...e})}function wb({className:e,side:t="top",sideOffset:a=4,align:o="center",alignOffset:r=0,children:n,...s}){return(0,ds.jsx)(An.Portal,{children:(0,ds.jsx)(An.Positioner,{align:o,alignOffset:r,side:t,sideOffset:a,className:"isolate z-50",children:(0,ds.jsxs)(An.Popup,{"data-slot":"tooltip-content",className:re("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,(0,ds.jsx)(An.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var ko=R(M(),1);var Bz=R(M(),1);var Ub={};Aa(Ub,{Control:()=>Oz,Description:()=>Pz,Error:()=>Dz,Item:()=>Vz,Label:()=>Az,Root:()=>Ez,Validity:()=>Nz});var Ta=R(M(),1);var Eb=R(M(),1);var Sz="data-valid",bz="data-invalid";var Ou={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},y9={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},vz={disabled:!1,...y9},Ja={valid(e){return e===null?null:e?{[Sz]:""}:{[bz]:""}}};var S9={invalid:void 0,name:void 0,validityData:{state:Ou,errors:[],error:"",value:"",initialValue:null},setValidityData:Ne,disabled:void 0,setTouched:Ne,setDirty:Ne,setFilled:Ne,setFocused:Ne,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:vz,registerFieldControl:Ne,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ne,getInputControl:()=>null,commit:async()=>{},change:Ne}},FT=Eb.createContext(S9);function sa(e=!0){let t=Eb.useContext(FT);if(t.setValidityData===Ne&&!e)throw new Error(De(28));return t}var Ab=R(M(),1),b9=Ab.createContext(void 0);function Cz(e=!1){let t=Ab.useContext(b9);if(!t&&!e)throw new Error(De(86));return t}var Db=R(M(),1);var v9=Db.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ne,validationMode:"onSubmit",submitCountRef:{current:0}});function Rr(){return Db.useContext(v9)}var qi=R(M(),1);var Mb=R(M(),1);var _T=Mb.createContext({controlId:void 0,registerControlId:Ne,resetControlId:Ne,labelId:void 0,setLabelId:Ne,messageIds:[],setMessageIds:Ne,getDescriptionProps:e=>e});function Ia(){return Mb.useContext(_T)}var Lz=R(Q(),1),Pb=function(t){let a=Tt(),[o,r]=qi.useState(a),[n,s]=qi.useState(),[i,l]=qi.useState([]),u=o===void 0?a:o,c=tt(()=>new Map),{messageIds:d}=Ia(),f=W((b,g)=>{let h=c.current;g===void 0?h.delete(b):h.set(b,g),r(x=>{if(h.size===0)return x;let S;for(let v of h.values()){if(v===x)return x;S===void 0&&(S=v)}return S})}),m=W(()=>{c.current.size===0&&r(a)}),p=qi.useCallback(b=>{let g=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return g.push(...d,...i),{...b,"aria-describedby":Array.from(new Set(g)).join(" ")||void 0}},[d,i]),y=qi.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:n,setLabelId:s,messageIds:i,setMessageIds:l,getDescriptionProps:p}),[u,f,m,n,s,i,l,p]);return(0,Lz.jsx)(_T.Provider,{value:y,children:t.children})};var zT=R(M(),1);function td(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:r,resetControlId:n}=Ia(),s=Tt(),i=tt(()=>Symbol()),l=zT.useRef(!1),u=zT.useRef(!1),c=W(()=>{!l.current||r===Ne||(l.current=!1,r(i.current,void 0))});return G(()=>{if(!a||r===Ne){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=s;else{n();return}if(d===void 0){c();return}l.current=!0,r(i.current,d)},[t,a,r,n,s,i,c]),G(()=>c,[c]),(a?o:void 0)??t??s}function Ob(e,t){let a=Tt(e);return G(()=>(t(a),()=>{t(o=>o===a?void 0:o)}),[a,t]),a}function kb(e={}){let{id:t,fallbackControlId:a,native:o=!1,setLabelId:r,focusControl:n}=e,{controlId:s,setLabelId:i}=Ia(),l=W(m=>{i(m),r?.(m)}),u=Ob(t,l),c=s??a;function d(m){if(n){n(m,c);return}if(!c)return;let p=be(m.currentTarget).getElementById(c);He(p)&&C9(p)}function f(m){Je(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!o&&d(m))}return o?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function C9(e){e.focus({focusVisible:!0})}var ms=R(M(),1);function ku(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var HT=Object.keys(Ou);function L9(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function Rz(e,t){let a=null;for(let o of e.keys())if(L9(o,t)){if(!o.validity.valid)return o;a??=o}return a}function Iz(e){return{...Ou,valid:!e,customError:e}}function UT(e){return e&&e.validationMessage?[e.validationMessage]:[]}function Tz(e){let{elementRef:t,formRef:a}=Rr(),{setValidityData:o,validate:r,validityData:n,validationDebounceTime:s,invalid:i,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=Ia(),y=Ze(),b=ms.useRef(null),g=tt(()=>new Map).current,h=ms.useRef(0),x=ms.useRef(null),S=ms.useCallback((E,T)=>(g.set(E,T),()=>{g.delete(E)}),[g]),v=W(()=>{let E=Rz(g,t.current);return E&&g.get(E)?.controlRef.current||null}),I=W(async(E,T=!1)=>{h.current+=1;let A=h.current;function N(P,H=i){let B=f.current??m;if(B==null)return;let J=a.current.fields.get(B);if(!J)return;let Y=ku(P,H);a.current.fields.set(B,{...J,validityData:Y})}function D(P,H){let B=P.valid===!1?H:[];return{value:E,state:P,error:B[0]??"",errors:B,initialValue:n.initialValue}}function F(P,H){let B=P.validity.customError?P.validationMessage:"",J=H.replace(/\r\n?/g,`
|
|
19
|
+
`);P.setCustomValidity(J),x.current=[P,J,B]}function k(){let P=x.current;x.current=null,P&&(!P[0].willValidate||P[0].validationMessage===P[1])&&P[0].setCustomValidity(P[2])}function z(P,H,B){let J=D(P,H);N(J,B),o(J)}function q(P){let H=HT.reduce((J,Y)=>(J[Y]=P.validity[Y],J),{}),B=!1;for(let J of HT)if(J!=="valid"){if(J==="valueMissing"&&H[J])B=!0;else if(H[J])return H}return B&&!l.current&&(H.valid=!0,H.valueMissing=!1),H}function O(){return g.size>0?Rz(g,t.current):b.current}let V=O();function w(){return V=O(),V?.willValidate?q(V):Iz(!1)}if(T){if(u.valid!==!1||!V)return;if(!V.validity.valueMissing){k();let P=O(),H=P?.validity.customError?UT(P):[];z(Iz(H.length>0),H,!1);return}for(let P of HT)if(P!=="valid"&&P!=="valueMissing"&&P!=="customError"&&V.validity[P])return}y.clear(),k();let _=w(),U=UT(V),X=c();if(U.length===0||X){let P=Array.from(a.current.fields.values()).reduce((J,Y)=>(Y.name&&(J[Y.name]=Y.getValue()),J),{}),H=r(E,P),B;if(typeof H=="object"&&H!==null&&"then"in H){if(_.valid===!1?z(_,U):(d==="onSubmit"||!n.state.customError)&&(_.valid=null,z(_,U)),B=await H,A!==h.current)return;_=w()}else B=H;U=B?[].concat(B).filter(Boolean):[],U.length>0?(_.valid=!1,_.customError=!0,V?.willValidate&&F(V,U.join(`
|
|
20
|
+
`))):U=UT(V)}z(_,U)}),L=W((E,T=!1)=>{if(y.clear(),h.current+=1,T)return;let A=c();A&&E!==""&&s?y.start(s,()=>{I(E)}):I(E,!A)}),C=ms.useCallback((E,T={})=>Ga(p(T),u.valid===!1&&!u.disabled&&!E?{"aria-invalid":!0}:We),[p,u.disabled,u.valid]);return ms.useMemo(()=>({getValidationProps:C,inputRef:b,registeredInputs:g,registerInput:S,getInputControl:v,commit:I,change:L}),[C,g,S,v,I,L])}var Nb=R(M(),1);function wz(e){let{change:t,commit:a,invalid:o,markedDirtyRef:r,name:n,setRegisteredFieldName:s,registeredFieldIdRef:i,setValidityData:l,validityData:u}=e,{formRef:c}=Rr(),d=Nb.useRef(null),f=Nb.useRef(null),m=Nb.useRef(!1),p=W(()=>{let v=f.current;if(v)return v.getValue?v.getValue():v.value});function y(v){return v.value===void 0?p():v.value}let b=W(()=>{let v=f.current;if(r.current=!0,!v){a(u.value);return}a(y(v))});function g(){let v=f.current;!v||!v.id||c.current.fields.set(v.id,{getValue:p,name:n??v.name,controlRef:v.controlRef,validityData:ku(u,o),validate:b})}function h(v=f.current?.id){v&&c.current.fields.delete(v)}function x(v){if(m.current)return;m.current=!0;let I=y(v);l(L=>L.initialValue===I?L:{...L,initialValue:I})}G(()=>{let v=f.current;!v||!v.id||(s(n?void 0:v.name),c.current.fields.set(v.id,{getValue:p,name:n??v.name,controlRef:v.controlRef,validityData:ku(u,o),validate:b}))},[c,p,o,n,s,b,u]),G(()=>{let v=c.current.fields;return()=>{let I=f.current?.id;I&&v.delete(I)}},[c]);let S=W((v,I)=>{if(!I){d.current===v&&(d.current=null,t(void 0,!0),h(),f.current=null,s(void 0),i.current=void 0);return}let L=f.current?.id,C=d.current;C&&C!==v&&t(void 0,!0),d.current=v,f.current=I,n||s(I.name),i.current=I.id,L&&L!==I.id&&h(L),x(I),g()});return[b,S]}var Vb=R(Q(),1),R9=Ta.forwardRef(function(t,a){let{errors:o,validationMode:r,submitCountRef:n}=Rr(),{render:s,className:i,validate:l,validationDebounceTime:u=0,validationMode:c=r,name:d,disabled:f=!1,invalid:m,dirty:p,touched:y,actionsRef:b,style:g,...h}=t,x=Cz(!0)?.disabled,S=W(l||(()=>null)),v=x||f,[I,L]=Ta.useState(!1),[C,E]=Ta.useState(!1),[T,A]=Ta.useState(!1),[N,D]=Ta.useState(!1),F=p??C,k=y??I,z=Ta.useRef(F),q=Ta.useRef(void 0),[O,V]=Ta.useState(),w=d??O;G(()=>{p!==void 0&&(z.current=p)},[p]);let _=W(we=>{p===void 0&&(we&&(z.current=!0),E(we))}),U=W(we=>{y===void 0&&L(we)}),X=W(()=>c==="onChange"||c==="onSubmit"&&n.current>0),P=w&&Object.hasOwn(o,w)?o[w]:null,H=!!(Array.isArray(P)?P.length:P),B=m===!0||H,[J,Y]=Ta.useState({state:Ou,error:"",errors:[],value:null,initialValue:null}),te=!B&&(v?null:J.state.valid),ie=Ta.useMemo(()=>({disabled:v,touched:k,dirty:F,valid:te,filled:T,focused:N}),[v,k,F,te,T,N]),ce=Tz({setValidityData:Y,validate:S,validityData:J,validationDebounceTime:u,invalid:B,markedDirtyRef:z,state:ie,shouldValidateOnChange:X,validationMode:c,registeredFieldIdRef:q}),[ee,ae]=wz({change:ce.change,commit:ce.commit,invalid:B,markedDirtyRef:z,name:d,setRegisteredFieldName:V,registeredFieldIdRef:q,setValidityData:Y,validityData:J});Ta.useImperativeHandle(b,()=>({validate:ee}),[ee]);let me=Ta.useMemo(()=>({invalid:B,name:w,validityData:J,setValidityData:Y,disabled:v,setTouched:U,setDirty:_,setFilled:A,setFocused:D,validationMode:c,shouldValidateOnChange:X,state:ie,registerFieldControl:ae,validation:ce}),[B,w,J,v,U,_,A,D,c,X,ie,ae,ce]),ge=$("div",t,{ref:a,state:ie,props:h,stateAttributesMapping:Ja});return(0,Vb.jsx)(FT.Provider,{value:me,children:ge})}),Ez=Ta.forwardRef(function(t,a){return(0,Vb.jsx)(Pb,{children:(0,Vb.jsx)(R9,{...t,ref:a})})});var lh=R(M(),1);var Bb=R(M(),1),qT=Bb.createContext({disabled:!1});function Fb(){return Bb.useContext(qT)}var Az=lh.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,nativeLabel:i=!0,...l}=t,u=sa(!1),c=Fb(),{labelId:d}=Ia(),f={...u.state,disabled:u.disabled||c.disabled},m=lh.useRef(null),p=kb({id:d??s,native:i});return $("label",t,{ref:[a,m],state:f,props:[p,l],stateAttributesMapping:Ja})});var Nu=R(M(),1);var GT=R(Q(),1),I9={...Ja,...Xa},Dz=Nu.forwardRef(function(t,a){let{render:o,id:r,className:n,match:s,style:i,...l}=t,u=Tt(r),{validityData:c,state:d,name:f}=sa(!1),{setMessageIds:m}=Ia(),{errors:p}=Rr(),y=f&&Object.hasOwn(p,f)?p[f]:null,b=!!(Array.isArray(y)?y.length:y),g=typeof s=="string",h=!1;s===!0?h=!0:d.disabled?h=!1:g?h=!!c.state[s]:h=b||c.state.valid===!1;let{mounted:x,transitionStatus:S,setMounted:v}=Po(h);G(()=>{if(!(!h||!u))return m(z=>z.concat(u)),()=>{m(z=>z.filter(q=>q!==u))}},[h,u,m]);let I=Nu.useRef(null),[L,C]=Nu.useState(null),[E,T]=Nu.useState(null),A=c.error;!g&&b?A=y:c.errors.length>1&&(A=c.errors);let N=A;Array.isArray(A)&&(N=A.length>1?(0,GT.jsx)("ul",{children:A.map(z=>(0,GT.jsx)("li",{children:z},z))}):A[0]);let D=Array.isArray(A)?JSON.stringify(A):A;h&&D!==E&&(T(D),C(N)),Ra({open:h,ref:I,onComplete(){h||v(!1)}});let F={...d,transitionStatus:S},k=$("div",t,{ref:[a,I],state:F,props:[{id:u,children:h?N:L},l],stateAttributesMapping:I9,enabled:x});return x?k:null});var Mz=R(M(),1);var Pz=Mz.forwardRef(function(t,a){let{render:o,id:r,className:n,style:s,...i}=t,l=Tt(r),u=sa(!1),c=Fb(),{setMessageIds:d}=Ia(),f={...u.state,disabled:u.disabled||c.disabled};return G(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(y=>y!==l))}},[l,d]),$("p",t,{ref:a,state:f,props:[{id:l},i],stateAttributesMapping:Ja})});var zb=R(M(),1);function _b(e,t,a,o,r=!0,n){let{registerFieldControl:s}=sa(),i=tt(()=>Symbol());G(()=>{let l=i.current;if(!r){s(l,void 0);return}s(l,{controlRef:e,getValue:o,id:t,name:n,value:a})},[e,r,o,t,n,s,i,a]),G(()=>{let l=i.current;return()=>{s(l,void 0)}},[s,i])}var Oz=zb.forwardRef(function(t,a){let{render:o,className:r,id:n,name:s,value:i,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:y,disabled:b,setTouched:g,setDirty:h,validityData:x,setFocused:S,setFilled:v,validationMode:I,validation:L}=sa(),{clearErrors:C,elementRef:E,submitCountRef:T}=Rr(),A=b||l,N=y??s,D={...p,disabled:A},{labelId:F}=Ia(),k=td({id:n}),[z]=Du({controlled:i,default:c,name:"FieldControl",state:"value"}),q=i!==void 0,O=q?z:void 0,V=O==null?void 0:String(O),w=W(()=>L.inputRef.current?.value);_b(L.inputRef,k,V,w,!A,s),G(()=>{let P=V??L.inputRef.current?.value;P!==void 0&&v(P!=="")},[V,L.inputRef,v]),Hf(V,()=>{V!==void 0&&(C(N),h(V!==(x.initialValue??"")),L.change(V))});let _=zb.useRef(null),U=Ze();return G(()=>{d&&_.current===_t(be(_.current))&&S(!0)},[d,S]),$("input",t,{ref:[a,_],state:D,props:[{id:k,disabled:A,name:N,ref:L.inputRef,"aria-labelledby":F,autoFocus:d,...q?{value:O}:{defaultValue:c},onChange(P){let H=P.currentTarget.value,B=he(ne.none,P.nativeEvent);u?.(H,B),!q&&(h(H!==(x.initialValue??"")),v(H!==""),!P.nativeEvent.defaultPrevented&&!B.isCanceled&&(C(N),L.change(H)))},onFocus(){S(!0)},onBlur(P){if(g(!0),S(!1),I==="onBlur"){let H=P.currentTarget.value;L.commit(H),q&&queueMicrotask(()=>{let B=L.inputRef.current?.value;B!==void 0&&B!==H&&B!==(x.initialValue??"")&&L.commit(B)})}},onKeyDown(P){if(P.currentTarget.tagName==="INPUT"&&P.key==="Enter"){g(!0);let H=P.currentTarget.value,B=P.currentTarget.form;if(B&&B===E.current&&!P.defaultPrevented){let J=P.currentTarget,Y=T.current;U.start(0,()=>{T.current===Y&&L.commit(J.value)})}else L.commit(H)}}},m,P=>L.getValidationProps(A,P)],stateAttributesMapping:Ja})});var uh=R(M(),1);var kz=R(Q(),1),Nz=function(t){let{children:a}=t,{validityData:o,invalid:r}=sa(!1),n=uh.useMemo(()=>ku(o,r),[o,r]),s=n.state.valid===!1,{transitionStatus:i}=Po(s),l=uh.useMemo(()=>({...n,validity:n.state,transitionStatus:i}),[n,i]);return(0,kz.jsx)(uh.Fragment,{children:a(l)})};var Hb=R(M(),1);var jT=R(Q(),1),Vz=Hb.forwardRef(function(t,a){let{render:o,className:r,style:n,disabled:s=!1,...i}=t,{state:l,disabled:u}=sa(!1),c=u||s,d={...l,disabled:c},f=Hb.useMemo(()=>({disabled:c}),[c]),m=$("div",t,{ref:a,state:d,props:i,stateAttributesMapping:Ja});return(0,jT.jsx)(Pb,{children:(0,jT.jsx)(qT.Provider,{value:f,children:m})})});var Fz=R(Q(),1),XT=Bz.forwardRef(function(t,a){return(0,Fz.jsx)(Ub.Control,{ref:a,...t})});var _z=R(Q(),1);function qb({className:e,type:t,...a}){return(0,_z.jsx)(XT,{type:t,"data-slot":"input",className:re("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}var $a={};Aa($a,{Arrow:()=>PH,Backdrop:()=>pH,Group:()=>UH,GroupLabel:()=>GH,Icon:()=>uH,Item:()=>wH,ItemIndicator:()=>AH,ItemText:()=>DH,Label:()=>aH,List:()=>IH,Popup:()=>LH,Portal:()=>dH,Positioner:()=>xH,Root:()=>Jz,ScrollDownArrow:()=>VH,ScrollUpArrow:()=>_H,Separator:()=>YH,Trigger:()=>nH,Value:()=>iH});var zt=R(M(),1);var zz=R(M(),1);function Hz(e){let t=zz.useRef(!0);t.current&&(t.current=!1,e())}var Gi=R(M(),1),YT=Gi.createContext(void 0),WT=Gi.createContext(void 0),KT=Gi.createContext(void 0);function wt(){let e=Gi.useContext(YT);if(e===void 0)throw new Error(De(60));return e}function ji(){let e=Gi.useContext(WT);if(e===void 0)throw new Error(De(101));return e}function Gb(){let e=Gi.useContext(KT);if(e===void 0)throw new Error(De(61));return e}function Uz(e,t,a=Object.is){let{length:o}=e;if(o!==t.length)return!1;for(let r=0;r<o;r+=1)if(!a(e[r],t[r]))return!1;return!0}var QT=(e,t)=>Object.is(e,t);function ps(e,t,a){return e==null||t==null?Object.is(e,t):a(e,t)}function qz(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!Uz(e,t,(o,r)=>ps(o,r,a)):e!==t}function ZT(e,t,a){return e?e.some(o=>o===void 0?!1:ps(t,o,a)):!1}function ch(e,t,a){return e?e.findIndex(o=>o===void 0?!1:ps(o,t,a)):-1}function T9(e,t){if(t!==QT)return o=>ZT(e,o,t);let a=new Set(e);return a.delete(void 0),o=>a.has(o)&&(o!==0||e.some(r=>Object.is(o,r)))}function JT(e,t,a,o){let r=o&&Array.isArray(t)?e.findIndex(T9(t,a)):ch(e,t,a);return r===-1?null:r}function Gz(e,t,a,o,r,n){return ZT(o,t,r)?n!=null&&e>n&&ZT(o,a[n],r)?n:e:e===n?JT(a,o,r,!0):n}function jz(e,t,a){return e.filter(o=>!ps(t,o,a))}var Xz=R(M(),1);function jb(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var Yz=R(Q(),1);function w9(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function Wz(e){return w9(e?.[0])}function E9(e){return Wz(e)?e.flatMap(t=>t.items):e}function Kz(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(Wz(t)){for(let a of t)for(let o of a.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(let a of t)if(a&&a.value==null&&a.label!=null)return!0;return!1}function $T(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return jb(e)}function Xi(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?jb(e.value):jb(e)}function ew(e,t,a){function o(){return $T(e,a)}if(a&&e!=null)return a(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??o();if(Array.isArray(t)){let n=E9(t);if(e==null||typeof e!="object"){let s=n.find(i=>i.value===e);return s&&s.label!=null?s.label:o()}if("value"in e){let s=n.find(i=>i&&i.value===e.value);if(s&&s.label!=null)return s.label}}return o()}function Zz(e,t,a){return e.reduce((o,r,n)=>(n>0&&o.push(", "),o.push((0,Yz.jsx)(Xz.Fragment,{children:ew(r,t,a)},n)),o),[])}var Qz={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:a,itemToStringValue:o}=e;return t==null?!1:a&&Array.isArray(t)?t.length>0:Xi(t,o)!==""},hasNullItemLabel:(e,t)=>t?Kz(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let a=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>ps(t,r,a)):ps(t,o,a)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function Ir(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}var Jo=1;function ad(e,t){return Math.max(0,e-t)}function hs(e,t){if(t<=0)return 0;let a=Ir(e,0,t),o=a,r=t-a,n=o<=Jo,s=r<=Jo;return n&&s?o<=r?0:t:n?0:s?t:a}var Vu=R(Q(),1);function Jz(e){let{id:t,value:a,defaultValue:o=null,onValueChange:r,open:n,defaultOpen:s=!1,onOpenChange:i,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:y,inputRef:b,onOpenChangeComplete:g,items:h,multiple:x=!1,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:I=QT,highlightItemOnHover:L=!0,children:C}=e,{clearErrors:E}=Rr(),{setDirty:T,setTouched:A,setFocused:N,validityData:D,setFilled:F,name:k,disabled:z,validation:q,validationMode:O}=sa(),V=td({id:t}),w=z||d,_=k??l,[U,X]=Du({controlled:a,default:x?o??Ro:o,name:"Select",state:"value"}),[P,H]=Du({controlled:n,default:s,name:"Select",state:"open"}),B=zt.useRef([]),J=zt.useRef([]),Y=zt.useRef(null),te=zt.useRef(null),ie=zt.useRef(0),ce=zt.useRef(null),ee=zt.useRef([]),ae=zt.useRef(!1),me=zt.useRef(null),ge=zt.useRef(null),we=zt.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=zt.useRef(!1),Re=zt.useRef(U),{mounted:le,setMounted:Ie,transitionStatus:Ve}=Po(P),{openMethod:Pe,triggerProps:ut}=VF(P),oe=tt(()=>new Cr({id:V,labelId:void 0,modal:p,multiple:x,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:I,value:U,open:P,mounted:le,transitionStatus:Ve,items:h,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:We,triggerProps:We,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Ne,setOpen:Ne,handleScrollArrowVisibility:Ne,onOpenChangeComplete:Ne,listRef:B,popupRef:Y,scrollHandlerRef:te,scrollArrowsMountedCountRef:ie,valueRef:ce,valuesRef:ee,labelsRef:J,typingRef:ae,selectionRef:we,firstItemTextRef:me,selectedItemTextRef:ge,alignItemWithTriggerActiveRef:pe,initialValueRef:Re},Qz)).current,fe=oe.useState("activeIndex"),K=oe.useState("selectedIndex"),j=oe.useState("triggerElement"),se=oe.useState("positionerElement"),Be=Cb(Pe),Vt=Pe??Be,Jt=zt.useMemo(()=>x?"":Xi(U,v),[x,U,v]),Et=zt.useMemo(()=>x&&Array.isArray(U)?U.map(Ke=>Xi(Ke,v)):Xi(U,v),[x,U,v]),bt=pt(j),wa=W(()=>Et);_b(bt,V,U,wa,!w,l);let Ea=x?Array.isArray(U)&&U.length>0:U!=null&&Jt!=="";G(()=>{F(Ea)},[Ea,F]),G(function(){let Mt=JT(ee.current,U,I,x);Mt===null&&(ge.current=null),!P&&oe.set("selectedIndex",Mt)},[x,P,U,I,oe]),Hf(U,()=>{E(_),T(qz(U,D.initialValue,I)),q.change(U)});let $t=W((Ke,Mt)=>{i?.(Ke,Mt),!Mt.isCanceled&&(H(Ke),!Ke&&(Mt.reason===ne.focusOut||Mt.reason===ne.outsidePress)&&(A(!0),N(!1),O==="onBlur"&&q.commit(U)))}),za=W(()=>{Ie(!1),oe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),g?.(!1)});Ra({enabled:!y,open:P,ref:Y,onComplete(){P||za()}}),zt.useImperativeHandle(y,()=>({unmount:za}),[za]);let mo=W((Ke,Mt)=>{r?.(Ke,Mt),!Mt.isCanceled&&X(Ke)}),$o=W(Ke=>{let Mt=ad(Ke.scrollHeight,Ke.clientHeight),On=hs(Ke.scrollTop,Mt),tl=On>0,al=On<Mt;oe.set("scrollUpArrowVisible",tl),oe.set("scrollDownArrowVisible",al)}),ha=iT({open:P,onOpenChange:$t,elements:{reference:j,floating:se}}),Ht=Xp(ha,{enabled:!w,event:"mousedown"}),Ee=Iu(ha),Dt=hT(ha,{enabled:!w,listRef:B,activeIndex:fe,selectedIndex:K,disabledIndices:Ro,onNavigate(Ke){Ke===null&&!P||oe.set("activeIndex",Ke)},focusItemOnHover:L}),Qe=gT(ha,{enabled:!w&&(P||!f&&!x),listRef:J,activeIndex:fe,selectedIndex:K,disabledIndices:Ke=>nb(B.current[Ke]),onMatch(Ke){P?oe.set("activeIndex",Ke):mo(ee.current[Ke],he(ne.none))},onTyping(Ke){ae.current=Ke}}),Bt=zt.useMemo(()=>Ga(Qe.reference,Dt.reference,Ee.reference,Ht.reference,ut),[Ht.reference,Qe.reference,Dt.reference,Ee.reference,ut]),po=zt.useMemo(()=>Ga(Vf,Qe.floating,Dt.floating,Ee.floating),[Qe.floating,Dt.floating,Ee.floating]),ho=Dt.item??We;oe.useContextCallback("setValue",mo),oe.useContextCallback("setOpen",$t),oe.useContextCallback("handleScrollArrowVisibility",$o),oe.useContextCallback("onOpenChangeComplete",g),Hz(()=>{oe.update({popupProps:po,triggerProps:Bt})}),oe.useSyncedValues({id:V,modal:p,multiple:x,value:U,open:P,mounted:le,transitionStatus:Ve,popupProps:po,triggerProps:Bt,items:h,itemToStringLabel:S,itemToStringValue:v,isItemEqualToValue:I,openMethod:Vt});let qu=zt.useMemo(()=>({disabled:w,readOnly:f,required:m,multiple:x,highlightItemOnHover:L,itemProps:ho}),[w,f,m,x,L,ho]),Ss=fr(b,q.inputRef),el=x?void 0:_,jr=zt.useMemo(()=>!x||!Array.isArray(U)||!_?null:U.map(Ke=>{let Mt=Xi(Ke,v);return(0,Vu.jsx)("input",{type:"hidden",form:u,name:_,value:Mt,disabled:w},Mt)}),[x,U,u,_,v,w]);return(0,Vu.jsxs)(YT.Provider,{value:oe,children:[(0,Vu.jsx)(WT.Provider,{value:qu,children:(0,Vu.jsx)(KT.Provider,{value:ha,children:C})}),(0,Vu.jsx)("input",{...q.getValidationProps(w,{onFocus(){oe.state.triggerElement?.focus({focusVisible:!0})},onChange(Ke){if(Ke.nativeEvent.defaultPrevented||w||f)return;let Mt=Ke.currentTarget.value,On=he(ne.none,Ke.nativeEvent);function tl(){if(x)return;let al=Mt.toLowerCase(),hd=ee.current.findIndex(vv=>Xi(vv,v).toLowerCase()===al||$T(vv,S).toLowerCase()===al);hd===-1&&(hd=ee.current.findIndex((vv,i3)=>{let vw=J.current[i3];return vw!=null&&vw.toLowerCase()===al}));let bw=ee.current[hd];bw!=null&&mo(bw,On)}oe.set("forceMount",!0),queueMicrotask(tl)}}),id:V&&el==null?`${V}-hidden-input`:void 0,form:u,name:el,autoComplete:c,value:Jt,disabled:w,required:m&&!(x&&Ea),readOnly:f,ref:Ss,style:_?DB:Ef,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),jr]})}var tH=R(M(),1);function $z(e){return e==null?void 0:`${e}-label`}function eH(e,t){return e??t}var aH=tH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=s;delete i.id;let l=sa(),u=wt(),c=u.useState("triggerElement"),d=u.useState("id"),f=$z(d),m=kb({id:f,fallbackControlId:c?.id??d,setLabelId(p){let y=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",y)}});return $("div",t,{ref:a,state:l.state,props:[m,s],stateAttributesMapping:Ja})});var od=R(M(),1);var Xb=5;function oH(e,t){let a=A9(t);return e.clientX>=a.left-Xb&&e.clientX<=a.right+Xb&&e.clientY>=a.top-Xb&&e.clientY<=a.bottom+Xb}function A9(e){let t=e.getBoundingClientRect(),a=ze(e);if(at.env.jsdom)return t;let o=a.getComputedStyle(e,"::before"),r=a.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;let s=parseFloat(o.width)||0,i=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,c=Math.max(t.width,s,l),d=Math.max(t.height,i,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var iMe=hu.popupOpen,lMe=hu.pressed;var rH="data-popup-side";var M9=400,P9={...iB,...Ja,popupSide:e=>e?{[rH]:e}:null,value:()=>null},nH=od.forwardRef(function(t,a){let{render:o,className:r,id:n,disabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:y}=sa(),{labelId:b}=Ia(),g=wt(),{readOnly:h,required:x,disabled:S}=ji(),v=y||S||s,I=g.useState("open"),L=g.useState("mounted"),C=g.useState("value"),E=g.useState("triggerProps"),T=g.useState("positionerElement"),A=g.useState("listElement"),N=g.useState("popupSide"),D=g.useState("id"),F=g.useState("labelId"),k=g.useState("hasSelectedValue"),z=L&&T?N:null,q=n??D,O=eH(b,F);td({id:n});let V=pt(T),w=od.useRef(null),{getButtonProps:_,buttonRef:U}=Ko({disabled:v,native:i}),X=g.useStateSetter("triggerElement"),P=Ze(),H=Ze(),B=Ze();od.useEffect(()=>{if(I)return B.start(M9,()=>{g.context.selectionRef.current.allowUnselectedMouseUp=!0,g.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{B.clear()};g.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},H.clear()},[I,g,H,B]);let J=Ga(E,{id:q,role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-controls":I?A?.id??Su(T)?.id:void 0,"aria-labelledby":O,"aria-readonly":h||void 0,"aria-required":x||void 0,tabIndex:v?-1:0,onFocus(ie){d(!0),I&&g.context.alignItemWithTriggerActiveRef.current&&g.context.setOpen(!1,he(ne.none,ie.nativeEvent)),P.start(0,()=>{g.set("forceMount",!0)})},onBlur(ie){ue(T,ie.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(C))},onMouseDown(ie){if(I)return;let ce=be(ie.currentTarget);function ee(ae){if(!w.current)return;let me=ae.target;ue(w.current,me)||ue(V.current,me)||oH(ae,w.current)||g.context.setOpen(!1,he(ne.cancelOpen,ae))}H.start(0,()=>{ce.addEventListener("mouseup",ee,{once:!0})})}},u,_),Y=m.getValidationProps(v,J);Y.role="combobox";let te={...p,open:I,disabled:v,value:C,readOnly:h,popupSide:z,placeholder:!k};return $("button",t,{ref:[a,w,U,X],state:te,stateAttributesMapping:P9,props:Y})});var sH=R(M(),1);var O9={value:()=>null},iH=sH.forwardRef(function(t,a){let{className:o,render:r,children:n,placeholder:s,style:i,...l}=t,u=wt(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&s!=null&&n==null,y=u.useState("hasNullItemLabel",p),b={value:c,placeholder:!m},g=null;return typeof n=="function"?g=n(c):n!=null?g=n:p&&!y?g=s:Array.isArray(c)?g=Zz(c,d,f):g=ew(c,d,f),$("span",t,{state:b,ref:[a,u.context.valueRef],props:[{children:g},l],stateAttributesMapping:O9})});var lH=R(M(),1);var uH=lH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,u={open:wt().useState("open")};return $("span",t,{state:u,ref:a,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:Rf})});var cH=R(M(),1);var fH=R(Q(),1),dH=cH.forwardRef(function(t,a){let o=wt(),r=o.useState("mounted"),n=o.useState("forceMount");return r||n?(0,fH.jsx)(Up,{ref:a,...t}):null});var mH=R(M(),1);var k9={...Fr,...Xa},pH=mH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),l=i.useState("open"),u=i.useState("mounted"),c=i.useState("transitionStatus");return $("div",t,{state:{open:l,transitionStatus:c},ref:a,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:k9})});var Tr=R(M(),1);var Yb=R(M(),1),tw=Yb.createContext(void 0);function Yi(){let e=Yb.useContext(tw);if(!e)throw new Error(De(59));return e}function rd(e,t){e&&Object.assign(e.style,t)}var Wb={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var hH=R(M(),1);var N9=20;function gH(e,t,a,o){let[r,n]=hH.useState(!1);G(()=>{if(!e||!t||a==null){n(!1);return}let s=be(a).documentElement.clientWidth,i=a.offsetWidth;n(s>0&&i>0&&i>=s-N9)},[e,t,a]),KS(e&&(!t||r),o)}var fh=R(Q(),1),V9={position:"fixed"},xH=Tr.forwardRef(function(t,a){let{anchor:o,className:r,render:n,positionMethod:s,side:i,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:y,alignItemWithTrigger:b=!0,collisionAvoidance:g=QB,style:h,...x}=t,S=wt(),v=Gb(),I=S.useState("open"),L=S.useState("mounted"),C=S.useState("modal"),E=S.useState("value"),T=S.useState("openMethod"),A=S.useState("positionerElement"),N=S.useState("triggerElement"),D=S.useState("isItemEqualToValue"),F=S.useState("transitionStatus"),k=Tr.useRef(null),z=Tr.useRef(null),[q,O]=Tr.useState(b),V=L&&q&&T!=="touch";!L&&q!==b&&O(b),Tr.useImperativeHandle(S.context.alignItemWithTriggerActiveRef,()=>V),gH((V||C)&&I,T==="touch",A,N);let w=Sb({anchor:o,floatingRootContext:v,positionMethod:s,mounted:L,side:i,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:y??V,collisionAvoidance:g,keepMounted:!0}),_=V?"none":w.side,U=V?V9:w.positionerStyles,X={open:I,side:_,align:w.align,anchorHidden:w.anchorHidden};G(()=>{S.set("popupSide",w.side)},[S,w.side]);let P=S.useStateSetter("positionerElement"),H=bb(t,X,{styles:U,transitionStatus:F,props:x,refs:[a,P],hidden:!L,inert:!I}),B=Tr.useRef(0),J=W(te=>{if(S.context.valuesRef.current.length===0)return;let ie=B.current;B.current=te.size;let ce=he(ne.none);if(ie!==0&&!S.state.multiple&&E!==null&&ch(S.context.valuesRef.current,E,D)===-1){let ae=S.context.initialValueRef.current,ge=ae!=null&&ch(S.context.valuesRef.current,ae,D)!==-1?ae:null;S.context.setValue(ge,ce),ge===null&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null)}if(ie!==0&&S.state.multiple&&Array.isArray(E)){let ee=E.filter(ae=>ch(S.context.valuesRef.current,ae,D)!==-1);ee.length!==E.length&&(S.context.setValue(ee,ce),ee.length===0&&(S.set("selectedIndex",null),S.context.selectedItemTextRef.current=null))}if(I&&V){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let ee={height:""};rd(A,ee),rd(S.context.popupRef.current,ee)}}),Y=Tr.useMemo(()=>({...w,side:_,alignItemWithTriggerActive:V,setControlledAlignItemWithTrigger:O,scrollUpArrowRef:k,scrollDownArrowRef:z}),[w,_,V,O]);return(0,fh.jsx)(Uf,{elementsRef:S.context.listRef,labelsRef:S.context.labelsRef,onMapChange:J,children:(0,fh.jsxs)(tw.Provider,{value:Y,children:[L&&C&&(0,fh.jsx)(YS,{inert:Hi(!I),cutout:N}),H]})})});var wr=R(M(),1);var yH=R(Q(),1),Kb="base-ui-disable-scrollbar",gs={className:Kb,getElement(e){return(0,yH.jsx)("style",{nonce:e,href:Kb,precedence:"base-ui:low",children:`.${Kb}{scrollbar-width:none}.${Kb}::-webkit-scrollbar{display:none}`})}};var Zb=R(M(),1),B9=Zb.createContext(void 0);function SH(e){let t=Zb.useContext(B9);if(t===void 0&&!e)throw new Error(De(69));return t}var aw="--transform-origin";var $b=R(Q(),1),_9={...Fr,...Xa},LH=wr.forwardRef(function(t,a){let{render:o,className:r,style:n,finalFocus:s,...i}=t,l=wt(),{multiple:u,readOnly:c,highlightItemOnHover:d}=ji(),f=Gb(),{side:m,align:p,alignItemWithTriggerActive:y,isPositioned:b,setControlledAlignItemWithTrigger:g}=Yi(),h=SH(!0)!=null,x=Oo(),{nonce:S,disableStyleElements:v}=Gf(),I=l.useState("id"),L=l.useState("open"),C=l.useState("openMethod"),E=l.useState("mounted"),T=l.useState("popupProps"),A=l.useState("transitionStatus"),N=l.useState("triggerElement"),D=l.useState("positionerElement"),F=l.useState("listElement"),k=wr.useRef(!1),z=wr.useRef(!1),q=wr.useRef({}),O=uo(),V=W(X=>{if(!D||!l.context.popupRef.current||!z.current)return;let P=D.style.top==="0px",H=D.style.bottom==="0px";if(k.current||!y||!P&&!H){l.context.handleScrollArrowVisibility(X);return}let B=vH(D),J=dh(D.getBoundingClientRect().height,"y",B),Y=be(D),te=ze(D),ie=te.getComputedStyle(D),ce=parseFloat(ie.marginTop),ee=parseFloat(ie.marginBottom),ae=bH(te.getComputedStyle(l.context.popupRef.current)),me=Math.min(Y.documentElement.clientHeight-ce-ee,ae),ge=X.scrollTop,we=Qb(X),pe=null,Re=Pe=>{D.style.height=`${Pe}px`},le=P?we-ge:ge,Ie=Math.min(J+le,me);if(le<=Jo){let Pe=Ir(le,0,me-J);Pe>0&&Re(J+Pe),X.scrollTop=P?we:0,me-(J+Pe)<=Jo&&(k.current=!0),l.context.handleScrollArrowVisibility(X);return}if(me-Ie>Jo)pe=P?1/0:0;else if(H&&ge<we){let Pe=J+le-me;pe=ge-(le-Pe)}let Ve=Math.ceil(Ie);if(Ve!==0&&Re(Ve),pe!=null){let Pe=Ir(pe,0,Qb(X));Math.abs(X.scrollTop-Pe)>Jo&&(X.scrollTop=Pe)}Ve>=me-Jo&&(k.current=!0),l.context.handleScrollArrowVisibility(X)});wr.useImperativeHandle(l.context.scrollHandlerRef,()=>V,[V]),Ra({open:L,ref:l.context.popupRef,onComplete(){L&&l.context.onOpenChangeComplete(!0)}});let w={open:L,transitionStatus:A,side:m,align:p};G(()=>{!D||!l.context.popupRef.current||Object.keys(q.current).length||(q.current={top:D.style.top||"0",left:D.style.left||"0",right:D.style.right,height:D.style.height,bottom:D.style.bottom,minHeight:D.style.minHeight,maxHeight:D.style.maxHeight,marginTop:D.style.marginTop,marginBottom:D.style.marginBottom})},[l,D]),G(()=>{L||y||(z.current=!1,k.current=!1,rd(D,q.current))},[L,y,D]),G(()=>{let X=l.context.popupRef.current;if(!L||!N||!D||!X||y&&!b||l.state.transitionStatus==="ending")return;if(z.current=!0,X.style.removeProperty(aw),!y){O.request(()=>l.context.handleScrollArrowVisibility(F||X));return}let P=z9(X);try{let H=l.context.selectedItemTextRef.current;H?.isConnected||(H=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let B=l.context.valueRef.current,J=ze(D),Y=J.getComputedStyle(D),te=J.getComputedStyle(X),ie=be(N),ce=vH(N),ee=Jb(N.getBoundingClientRect(),ce),ae=Jb(D.getBoundingClientRect(),ce),me=ee.height,ge=F||X,we=ge.scrollHeight,pe=parseFloat(te.borderBottomWidth),Re=parseFloat(Y.marginTop)||10,le=parseFloat(Y.marginBottom)||10,Ie=parseFloat(Y.minHeight)||100,Ve=bH(te),Pe=5,ut=5,oe=20,fe=ie.documentElement.clientHeight-Re-le,K=ie.documentElement.clientWidth,j=fe-ee.bottom+me,se,Be=x==="rtl"?ee.right-ae.width:ee.left,Vt=0;if(H&&B){let Ht=Jb(B.getBoundingClientRect(),ce);se=Jb(H.getBoundingClientRect(),ce),Be=ae.left+(x==="rtl"?Ht.right-se.right:Ht.left-se.left);let Ee=Ht.top-ee.top+Ht.height/2;Vt=se.top-ae.top+se.height/2-Ee}let Jt=j+Vt+le+pe,Et=Math.min(fe,Jt),bt=fe-Re-le,wa=Jt-Et,Ea=K-ut;D.style.left=`${Ir(Be,Pe,Ea-ae.width)}px`,D.style.height=`${Et}px`,D.style.maxHeight="none",D.style.marginTop=`${Re}px`,D.style.marginBottom=`${le}px`,X.style.height="100%";let $t=Qb(ge),za=wa>=$t-Jo;za&&(Et=Math.min(fe,ae.height)-(wa-$t));let mo=ee.top<oe||ee.bottom>fe-oe||Math.ceil(Et)+Jo<Math.min(we,Ie),$o=(J.visualViewport?.scale??1)!==1&&at.engine.webkit;if(mo||$o){rd(D,q.current),g(!1);return}let ha=Math.max(Ie,Et);if(za){let Ht=Math.max(0,fe-Jt);D.style.top=ae.height>=bt?"0":`${Ht}px`,D.style.height=`${Et}px`,ge.scrollTop=Qb(ge)}else D.style.bottom="0",ge.scrollTop=wa;if(se){let Ht=ae.top,Ee=ae.height,Dt=se.top+se.height/2,Qe=Ir(Ee>0?(Dt-Ht)/Ee*100:50,0,100);X.style.setProperty(aw,`50% ${Qe}%`)}(ha===fe||Et>=Ve)&&(k.current=!0),l.context.handleScrollArrowVisibility(ge),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{P()}},[l,L,D,N,y,g,O,F,d,x,b]),wr.useEffect(()=>{if(!y||!D||!L)return;let X=ze(D);function P(H){l.context.setOpen(!1,he(ne.windowResize,H))}return Le(X,"resize",P)},[l,y,D,L]);let _={...F?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${I}-list`},onKeyDown(X){h&&_f.has(X.key)&&X.stopPropagation()},onScroll(X){F||V(X.currentTarget)},...y&&{style:F?{height:"100%"}:Wb},className:!F&&y?gs.className:void 0},U=$("div",t,{ref:[a,l.context.popupRef],state:w,stateAttributesMapping:_9,props:[T,_,Jf(A),i]});return(0,$b.jsxs)(wr.Fragment,{children:[!v&&gs.getElement(S),(0,$b.jsx)(Gp,{context:f,modal:!1,disabled:!E,openInteractionType:C,returnFocus:s,restoreFocus:!0,children:U})]})});function bH(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function Qb(e){return ad(e.scrollHeight,e.clientHeight)}function vH(e){return Yp.getScale(e)}function dh(e,t,a){return e/a[t]}function Jb(e,t){return is({x:dh(e.x,"x",t),y:dh(e.y,"y",t),width:dh(e.width,"x",t),height:dh(e.height,"y",t)})}var CH=[["transform","none"],["scale","1"],["translate","0 0"]];function z9(e){let{style:t}=e,a={};for(let[o,r]of CH)a[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(let[o]of CH){let r=a[o];r?t.setProperty(o,r):t.removeProperty(o)}}}var RH=R(M(),1);var IH=RH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),{multiple:l,readOnly:u}=ji(),{alignItemWithTriggerActive:c}=Yi(),d=i.useState("hasScrollArrows"),f=i.useState("openMethod"),p={id:`${i.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(b){i.context.scrollHandlerRef.current?.(b.currentTarget)},...c&&{style:Wb},className:d&&f!=="touch"?gs.className:void 0},y=i.useStateSetter("listElement");return $("div",t,{ref:[a,y],props:[p,s]})});var qr=R(M(),1);var ev=R(M(),1),ow=ev.createContext(void 0);function mh(){let e=ev.useContext(ow);if(!e)throw new Error(De(57));return e}var TH=R(Q(),1),wH=qr.memo(qr.forwardRef(function(t,a){let{render:o,className:r,style:n,value:s=null,label:i,disabled:l=!1,nativeButton:u=!1,...c}=t,d=qr.useRef(null),f=qf({guess:!0,label:i,textRef:d}),m=wt(),{itemProps:p,multiple:y,disabled:b,readOnly:g}=ji(),h=b||l,x=m.useState("isActive",f.index),S=m.useState("open"),v=m.useState("isSelected",s),I=m.useState("isSelectedByFocus",f.index),L=m.useState("isItemEqualToValue"),C=f.index,E=qr.useRef(null);G(()=>{let w=m.context.valuesRef.current;return w[C]=s,()=>{delete w[C]}},[C,s,m]),G(()=>{let w=m.state.value,_=m.state.selectedIndex,U=_,X;y&&Array.isArray(w)?(U=Gz(C,s,m.context.valuesRef.current,w,L,_),X=U===C,C===_&&!X&&(m.context.selectedItemTextRef.current=null)):(X=w!==void 0&&ps(s,w,L),X&&(U=C)),m.set("selectedIndex",U),X&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[C,y,L,m,s]);let T=qr.useRef("mouse"),A=qr.useRef(!1),{getButtonProps:N,buttonRef:D}=Ko({disabled:h,focusableWhenDisabled:!0,native:u,composite:!0}),F={disabled:h,selected:v,highlighted:x};function k(w){if(b||g)return;let _=m.state.value;if(y){let U=Array.isArray(_)?_:[],X=v?jz(U,s,L):[...U,s];m.context.setValue(X,he(ne.itemPress,w))}else m.context.setValue(s,he(ne.itemPress,w)),m.context.setOpen(!1,he(ne.itemPress,w))}function z(){m.context.selectionRef.current.dragY=0}let q={role:"option","aria-selected":v,tabIndex:S&&x?0:-1,onKeyDown(w){m.set("activeIndex",C),w.key===" "&&m.context.typingRef.current&&w.preventDefault()},onClick(w){let _=T.current!=="touch",U=w.nativeEvent.pointerType,X=_&&Pi(w.nativeEvent)&&(U!==void 0||x),P=_&&!X&&!A.current;A.current=!1,!(h||P)&&k(w.nativeEvent)},onPointerEnter(w){T.current=w.pointerType},onPointerMove(w){if(w.pointerType==="mouse"&&w.buttons===1){let _=m.context.selectionRef.current;_.dragY+=w.movementY,_.dragY**2>=64&&(_.allowUnselectedMouseUp=!0)}},onPointerDown(w){T.current=w.pointerType,A.current=!0,z()},onMouseUp(){if(z(),h||T.current==="touch"||A.current)return;let w=!m.context.selectionRef.current.allowSelectedMouseUp&&v,_=!m.context.selectionRef.current.allowUnselectedMouseUp&&!v;w||_||(A.current=!0,E.current?.click(),A.current=!1)}},O=$("div",t,{ref:[D,a,f.ref,E],state:F,props:[p,q,c,N]}),V=qr.useMemo(()=>({selected:v,index:C,textRef:d,selectedByFocus:I}),[v,C,d,I]);return(0,TH.jsx)(ow.Provider,{value:V,children:O})}));var Bu=R(M(),1);var EH=R(Q(),1),AH=Bu.forwardRef(function(t,a){let{selected:o}=mh();return t.keepMounted||o?(0,EH.jsx)(H9,{...t,ref:a}):null}),H9=Bu.memo(Bu.forwardRef((e,t)=>{let{render:a,className:o,style:r,keepMounted:n,...s}=e,{selected:i}=mh(),l=Bu.useRef(null),{transitionStatus:u,setMounted:c}=Po(i),f=$("span",e,{ref:[t,l],state:{selected:i,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Xa});return Ra({batch:!0,enabled:!i,open:i,ref:l,onComplete(){i||c(!1)}}),f}));var nd=R(M(),1);var DH=nd.memo(nd.forwardRef(function(t,a){let{index:o,textRef:r,selectedByFocus:n}=mh(),s=wt(),{render:i,className:l,style:u,...c}=t,d=nd.useCallback(m=>{m&&(o===0&&(s.context.firstItemTextRef.current=m),n&&(s.context.selectedItemTextRef.current=m))},[s,o,n]);return $("div",t,{ref:[d,a,r],props:c})}));var MH=R(M(),1);var PH=MH.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,i=wt(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Yi(),y={open:i.useState("open"),side:l,align:u,uncentered:f},b=$("div",t,{state:y,ref:[c,a],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:If});return m?null:b});var kH=R(M(),1);var OH=R(M(),1);var tv=OH.forwardRef(function(t,a){let{render:o,className:r,style:n,direction:s,keepMounted:i,...l}=t,u=s==="up",c=wt(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Yi(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",y=c.useState(p),b=c.useState("openMethod"),g=y&&b!=="touch",h=Ze(),x=u?m:f,{mounted:S,transitionStatus:v,setMounted:I}=Po(g);G(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),Ra({open:g,ref:x,onComplete(){g||I(!1)}});let E=$("div",t,{ref:[a,x],state:{direction:s,visible:g,side:d,transitionStatus:v},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(A){if(A.movementX===0&&A.movementY===0||h.isStarted())return;c.set("activeIndex",null);function N(){let D=c.state.listElement??c.context.popupRef.current;if(!D)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(D);let F=ad(D.scrollHeight,D.clientHeight),k=hs(D.scrollTop,F),z=k===(u?0:F),q=c.context.listRef.current;if(k!==D.scrollTop&&(D.scrollTop=k),z){h.clear();return}if(q.length>0){let O=x.current?.offsetHeight||0;D.scrollTop=U9(q,u,k,D.clientHeight,O,F)}h.start(40,N)}h.start(40,N)},onMouseLeave(){h.clear()}},l],stateAttributesMapping:Xa});return S||i?E:null});function U9(e,t,a,o,r,n){if(t){let c=0,d=a+r-Jo;for(let p=0;p<e.length;p+=1){let y=e[p];if(y&&y.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?hs(m.offsetTop-r,n):0}let s=e.length-1,i=a+o-r+Jo;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>i){s=Math.max(0,c-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?hs(u.offsetTop+u.offsetHeight-o+r,n):n}var NH=R(Q(),1),VH=kH.forwardRef(function(t,a){return(0,NH.jsx)(tv,{...t,ref:a,direction:"down"})});var BH=R(M(),1);var FH=R(Q(),1),_H=BH.forwardRef(function(t,a){return(0,FH.jsx)(tv,{...t,ref:a,direction:"up"})});var sd=R(M(),1);var av=R(M(),1),rw=av.createContext(void 0);function zH(){let e=av.useContext(rw);if(e===void 0)throw new Error(De(56));return e}var HH=R(Q(),1),UH=sd.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,[i,l]=sd.useState(),u=sd.useMemo(()=>({labelId:i,setLabelId:l}),[i,l]),c=$("div",t,{ref:a,props:[{role:"group","aria-labelledby":i},s]});return(0,HH.jsx)(rw.Provider,{value:u,children:c})});var qH=R(M(),1);var GH=qH.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,{setLabelId:l}=zH(),u=Tt(s);return G(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),$("div",t,{ref:a,props:[{id:u,"aria-hidden":!0},i]})});var jH=R(M(),1);var XH=jH.forwardRef(function(t,a){let{className:o,render:r,orientation:n="horizontal",style:s,...i}=t;return $("div",t,{state:{orientation:n},ref:a,props:[{role:"presentation"},i]})});var YH=XH;var Zt=R(Q(),1),id=$a.Root;function ld({className:e,...t}){return(0,Zt.jsx)($a.Value,{"data-slot":"select-value",className:re("flex flex-1 text-left",e),...t})}function ud({className:e,size:t="default",children:a,...o}){return(0,Zt.jsxs)($a.Trigger,{"data-slot":"select-trigger","data-size":t,className:re("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[a,(0,Zt.jsx)($a.Icon,{render:(0,Zt.jsx)(Js,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function cd({className:e,children:t,side:a="bottom",sideOffset:o=4,align:r="center",alignOffset:n=0,alignItemWithTrigger:s=!0,...i}){return(0,Zt.jsx)($a.Portal,{children:(0,Zt.jsx)($a.Positioner,{side:a,sideOffset:o,align:r,alignOffset:n,alignItemWithTrigger:s,className:"isolate z-50",children:(0,Zt.jsxs)($a.Popup,{"data-slot":"select-content","data-align-trigger":s,className:re("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[(0,Zt.jsx)(q9,{}),(0,Zt.jsx)($a.List,{children:t}),(0,Zt.jsx)(G9,{})]})})})}function Wi({className:e,children:t,...a}){return(0,Zt.jsxs)($a.Item,{"data-slot":"select-item",className:re("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,Zt.jsx)($a.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,Zt.jsx)($a.ItemIndicator,{render:(0,Zt.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,Zt.jsx)(Zn,{className:"pointer-events-none"})})]})}function q9({className:e,...t}){return(0,Zt.jsx)($a.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:re("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)(bm,{})})}function G9({className:e,...t}){return(0,Zt.jsx)($a.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:re("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,Zt.jsx)(Js,{})})}var mv=R(M(),1);var Nt=R(M(),1),KH=R(Yr(),1);var ph=R(M(),1),WH=({ref:e,callback:t,eventType:a="mousedown",eventListenerOptions:o})=>{let r=(0,ph.useRef)(t);r.current=t;let n=(0,ph.useRef)(e);n.current=e,(0,ph.useEffect)(()=>{let s=i=>{let l=i.target;if(!l||!l.isConnected)return;(Array.isArray(n.current)?n.current:[n.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&r.current(i)};return document.addEventListener(a,s,o),()=>document.removeEventListener(a,s,o)},[a,o])};var Qt=R(Q(),1),ZH=(0,Nt.createContext)(null),fd=()=>{let e=(0,Nt.useContext)(ZH);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},j9=Ca.create(Eo),X9=({children:e,transition:t})=>{let[a,o]=(0,Nt.useState)(!1),r=(0,Nt.useId)(),n=(0,Nt.useRef)(null),s=(0,Nt.useMemo)(()=>({isOpen:a,uniqueId:r,triggerRef:n,setIsOpen:o}),[a,r]);return(0,Qt.jsx)(ZH.Provider,{value:s,children:(0,Qt.jsx)(my,{transition:t,children:e})})},nw=({children:e,transition:t})=>{let a=Nt.default.Children.toArray(e);return(0,Qt.jsx)(X9,{children:(0,Qt.jsx)(my,{transition:t,children:a.map(o=>o)})})},ov=(0,Nt.forwardRef)(({children:e,className:t,...a},o)=>{let{isOpen:r,setIsOpen:n,uniqueId:s}=fd(),i=(0,Nt.useCallback)(()=>{n(!0)},[n]);return(0,Qt.jsx)(Ca.div,{ref:o,"data-slot":"expandable-card-body",layoutId:`card-${s}`,className:re("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>i(),"aria-haspopup":"dialog","aria-expanded":r,"aria-controls":`shadix-ui-expandable-card-${s}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...a,children:e})}),sw=({children:e,className:t,...a})=>{let{uniqueId:o}=fd();return(0,Qt.jsx)(Ca.div,{layoutId:`card-content-${o}`,className:re("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${o}-title`,"aria-describedby":`shadix-ui-expandable-card-${o}-description`,...a,children:e})},iw=({children:e,className:t})=>{let{isOpen:a,uniqueId:o,setIsOpen:r}=fd(),[n,s]=(0,Nt.useState)(!1),i=(0,Nt.useRef)(null);return WH({ref:i,callback:()=>{r(!1)}}),(0,Nt.useEffect)(()=>(s(!0),()=>s(!1)),[]),(0,Nt.useEffect)(()=>{if(!a)return;let l=c=>c.key==="Escape"&&r(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[a,r]),n?(0,KH.createPortal)((0,Qt.jsx)(Ri,{initial:!1,mode:"sync",children:a&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(Ca.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${o}`),(0,Qt.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:(0,Qt.jsxs)(ov,{ref:i,className:re("pointer-events-auto",t),children:[e,(0,Qt.jsx)(QH,{})]})})]})}),document.body):null},lw=({className:e,children:t,...a})=>{let{uniqueId:o}=fd();return(0,Qt.jsx)(Ca.h2,{layout:"position",layoutId:`card-title-${o}`,className:re("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...a,children:t})},uw=({className:e,children:t,...a})=>{let{uniqueId:o}=fd();return(0,Qt.jsx)(Ca.h3,{id:`card-description-${o}`,layout:"position",layoutId:`card-description-${o}`,className:re("text-sm text-muted-foreground px-4",e),...a,children:t})},Y9=({className:e,...t})=>(0,Qt.jsx)(Ca.img,{style:{willChange:"transform,scale"},className:re("w-full h-full object-cover object-top not-prose",e),...t}),QH=({className:e,children:t,...a})=>{let{setIsOpen:o,uniqueId:r}=fd(),n=(0,Nt.useCallback)(()=>{o(!1)},[o]);return(0,Qt.jsx)(j9,{layout:"position",layoutId:`card-close-button-${r}`,onClick:n,"aria-label":"Close",size:"icon-sm",className:re("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...a,children:t??(0,Qt.jsx)(Al,{})})};nw.displayName="ExpandableCard";ov.displayName="ExpandableCardBody";sw.displayName="ExpandableCardContent";iw.displayName="ExpandableCardExpandContainer";lw.displayName="ExpandableCardTitle";uw.displayName="ExpandableCardDescription";Y9.displayName="ExpandableCardImage";QH.displayName="ExpandableCardCloseButton";var $H=R(Q(),1),W9={running:{Icon:ai,cls:"text-info animate-spin"},queued:{Icon:Am,cls:"text-warning animate-pulse"},done:{Icon:$s,cls:"text-success animate-in zoom-in-50 duration-300"},failed:{Icon:ei,cls:"text-destructive animate-in zoom-in-50 duration-300"},timeout:{Icon:Lm,cls:"text-warning animate-in zoom-in-50 duration-300"},stopped:{Icon:vm,cls:"text-muted-foreground"}};function JH({state:e,className:t}){let{Icon:a,cls:o}=W9[e];return(0,$H.jsx)(a,{className:re("size-5 shrink-0",o,t),"aria-label":e})}var Zi={};Aa(Zi,{Content:()=>TU,Corner:()=>DU,Root:()=>cU,Scrollbar:()=>IU,Thumb:()=>EU,Viewport:()=>CU});var st=R(M(),1);var rv=R(M(),1),cw=rv.createContext(void 0);function Dn(){let e=rv.useContext(cw);if(e===void 0)throw new Error(De(53));return e}function Gr(e,t,a){if(!e)return 0;let o=getComputedStyle(e),r=`${t}${a==="x"?"Inline":"Block"}`,n=parseFloat(o[`${r}Start`]);return a==="x"&&t==="margin"?n*2:n+parseFloat(o[`${r}End`])}var eU="data-has-overflow-x",tU="data-has-overflow-y",aU="data-overflow-x-start",oU="data-overflow-x-end",rU="data-overflow-y-start",nU="data-overflow-y-end";var dd=e=>t=>t?{[e]:""}:null,Ki={hasOverflowX:dd(eU),hasOverflowY:dd(tU),overflowXStart:dd(aU),overflowXEnd:dd(oU),overflowYStart:dd(rU),overflowYEnd:dd(nU),cornerHidden:()=>null};var nv="--scroll-area-corner-height",sv="--scroll-area-corner-width";var iU="data-orientation";var uU=R(Q(),1),Q9={x:0,y:0},lU={width:0,height:0},J9={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},$9={x:!0,y:!0,corner:!0},cU=st.forwardRef(function(t,a){let{render:o,className:r,overflowEdgeThreshold:n,style:s,...i}=t,{xStart:l,xEnd:u,yStart:c,yEnd:d}=eW(n),f=Tt(),m=Ze(),p=Ze(),{nonce:y,disableStyleElements:b}=Gf(),[g,h]=st.useState(!1),[x,S]=st.useState(!1),[v,I]=st.useState(!1),[L,C]=st.useState(!1),[E,T]=st.useState(!1),[A,N]=st.useState(lU),[D,F]=st.useState(lU),[k,z]=st.useState(J9),[q,O]=st.useState($9),V=st.useRef(null),w=st.useRef(null),_=st.useRef(null),U=st.useRef(null),X=st.useRef(null),P=st.useRef(null),H=st.useRef(null),B=st.useRef(null),J=st.useRef(0),Y=st.useRef(0),te=st.useRef(0),ie=st.useRef(0),ce=st.useRef("vertical"),ee=st.useRef(Q9),ae=st.useRef(null);function me(K){let j=K?I:S,se=K?m:p;j(!0),se.start(500,()=>{j(!1)})}let ge=W(K=>{let j=K.x-ee.current.x,se=K.y-ee.current.y;ee.current=K,se!==0&&me(!0),j!==0&&me(!1)}),we=W(()=>{let K=w.current;K&&ae.current===null&&(ae.current=K.style.scrollSnapType,K.style.scrollSnapType="none")}),pe=W(K=>{if(K.button!==0||B.current!==null&&(ce.current==="vertical"?X.current:P.current)?.hasPointerCapture(B.current))return;B.current=K.pointerId,J.current=K.clientY,Y.current=K.clientX,ce.current=K.currentTarget.getAttribute(iU);let j=w.current;j&&(te.current=j.scrollTop,ie.current=j.scrollLeft,we()),(ce.current==="vertical"?X.current:P.current)?.setPointerCapture(K.pointerId)}),Re=W(K=>{if(K.pointerId!==B.current)return;B.current=null,(ce.current==="vertical"?I:S)(!1),ae.current!==null&&(w.current&&(w.current.style.scrollSnapType=ae.current),ae.current=null);let j=ce.current==="vertical"?X.current:P.current;j?.hasPointerCapture(K.pointerId)&&j.releasePointerCapture(K.pointerId)}),le=W(K=>{if(K.pointerId!==B.current)return;if(K.buttons%2===0){Re(K);return}let j=w.current;if(!j)return;let se=ce.current==="vertical",Be=se?X.current:P.current,Vt=se?_.current:U.current;if(!Be||!Vt)return;let Jt=se?"y":"x",Et=Gr(Vt,"padding",Jt),bt=Gr(Be,"margin",Jt),wa=se?Be.offsetHeight:Be.offsetWidth,$t=(se?Vt.offsetHeight:Vt.offsetWidth)-wa-Et-bt,za=se?K.clientY-J.current:K.clientX-Y.current,mo=$t<=0?0:za/$t,$o=se?j.scrollHeight:j.scrollWidth,ha=se?j.clientHeight:j.clientWidth,Ee=(se?te.current:ie.current)+mo*($o-ha);se?j.scrollTop=Ee:j.scrollLeft=Ee,K.preventDefault(),me(se)});function Ie(K){C(K.pointerType==="touch")}function Ve(K){if(Ie(K),K.pointerType!=="touch"){let j=ue(V.current,K.target);h(j)}}let Pe=st.useMemo(()=>({scrolling:x||v,hasOverflowX:!q.x,hasOverflowY:!q.y,overflowXStart:k.xStart,overflowXEnd:k.xEnd,overflowYStart:k.yStart,overflowYEnd:k.yEnd,cornerHidden:q.corner}),[x,v,q.x,q.y,q.corner,k]),ut={role:"presentation",onPointerEnter:Ve,onPointerMove:Ve,onPointerDown:Ie,onPointerLeave(){h(!1)},style:{position:"relative",[nv]:`${A.height}px`,[sv]:`${A.width}px`}},oe=$("div",t,{state:Pe,ref:[a,V],props:[ut,i],stateAttributesMapping:Ki}),fe=st.useMemo(()=>({handlePointerDown:pe,handlePointerMove:le,handlePointerUp:Re,handleScroll:ge,disableViewportSnap:we,cornerSize:A,setCornerSize:N,thumbSize:D,setThumbSize:F,hasMeasuredScrollbar:E,setHasMeasuredScrollbar:T,touchModality:L,cornerRef:H,scrollingX:x,scrollingY:v,hovering:g,setHovering:h,viewportRef:w,scrollbarYRef:_,scrollbarXRef:U,thumbYRef:X,thumbXRef:P,rootId:f,hiddenState:q,setHiddenState:O,overflowEdges:k,setOverflowEdges:z,viewportState:Pe,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:c,yEnd:d}}),[pe,le,Re,ge,we,A,D,E,L,x,v,g,f,q,k,Pe,l,u,c,d]);return(0,uU.jsxs)(cw.Provider,{value:fe,children:[!b&&gs.getElement(y),oe]})});function eW(e){let t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var Fu=R(M(),1);var iv=R(M(),1),fw=iv.createContext(void 0);function fU(){let e=iv.useContext(fw);if(e===void 0)throw new Error(De(55));return e}var dU="--scroll-area-overflow-x-start",mU="--scroll-area-overflow-x-end",pU="--scroll-area-overflow-y-start",hU="--scroll-area-overflow-y-end";var lv="--scroll-area-thumb-height",uv="--scroll-area-thumb-width";var bU=R(Q(),1),vU=[dU,mU,pU,hU],yU=!1;function aW(){yU||at.engine.webkit||(typeof CSS<"u"&&"registerProperty"in CSS&&vU.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),yU=!0)}var CU=Fu.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{viewportRef:i,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:c,thumbXRef:d,cornerRef:f,cornerSize:m,setCornerSize:p,setThumbSize:y,rootId:b,setHiddenState:g,hiddenState:h,setHasMeasuredScrollbar:x,handleScroll:S,touchModality:v,setHovering:I,setOverflowEdges:L,overflowEdgeThreshold:C,viewportState:E}=Dn(),T=Oo(),A=Fu.useRef(!0),N=Fu.useRef([NaN,NaN,NaN,NaN]),D=Ze(),F=Ze(),k=W(()=>{let w=i.current,_=l.current,U=u.current,X=c.current,P=d.current,H=f.current;if(!w)return;let B=w.scrollHeight,J=w.scrollWidth,Y=w.clientHeight,te=w.clientWidth,ie=w.scrollTop,ce=w.scrollLeft,ee=N.current,ae=Number.isNaN(ee[0]);if(ee[0]=Y,ee[1]=B,ee[2]=te,ee[3]=J,ae&&x(!0),B===0||J===0)return;let me=oW(w),ge=me.y,we=me.x,pe=te/J,Re=Y/B,le=Math.max(0,J-te),Ie=Math.max(0,B-Y),Ve=0,Pe=0;we||(Ve=hs(T==="rtl"?-ce:ce,le),Pe=le-Ve);let ut=ge?0:hs(ie,Ie),oe=ge?0:Ie-ut,fe=we?0:te,K=ge?0:Y,j=0,se=0;!we&&!ge&&(j=_?.offsetWidth||0,se=U?.offsetHeight||0);let Be=m.width===0&&m.height===0,Vt=Be?j:0,Jt=Be?se:0,Et=Gr(U,"padding","x"),bt=Gr(_,"padding","y"),wa=Gr(P,"margin","x"),Ea=Gr(X,"margin","y"),$t=fe-Et-wa,za=K-bt-Ea,mo=U?Math.min(U.offsetWidth-Vt,$t):$t,$o=_?Math.min(_.offsetHeight-Jt,za):za,ha=Math.max(16,mo*pe),Ht=Math.max(16,$o*Re);if(y(Qe=>cv(Qe,{width:ha,height:Ht})),_&&X){let Qe=_.offsetHeight-Ht-bt-Ea,Bt=SU(X,lv,ie,Ie,B,Ht,Qe);X.style.transform=`translate3d(0,${Bt}px,0)`}if(U&&P){let Qe=U.offsetWidth-ha-Et-wa,Bt=T==="rtl"?-ce:ce,po=SU(P,uv,Bt,le,J,ha,Qe);P.style.transform=`translate3d(${T==="rtl"?-po:po}px,0,0)`}let Ee=[Ve,Pe,ut,oe];vU.forEach((Qe,Bt)=>{w.style.setProperty(Qe,`${Ee[Bt]}px`)}),H&&p(Qe=>cv(Qe,{width:j,height:se})),g(Qe=>cv(Qe,me));let Dt={xStart:!we&&Ve>C.xStart,xEnd:!we&&Pe>C.xEnd,yStart:!ge&&ut>C.yStart,yEnd:!ge&&oe>C.yEnd};L(Qe=>cv(Qe,Dt))});G(()=>{aW()},[]),G(()=>{queueMicrotask(k)},[k,h,T,C.xStart,C.xEnd,C.yStart,C.yEnd]),G(()=>{i.current?.matches(":hover")&&I(!0)},[i,I]),G(()=>{let w=i.current;if(typeof ResizeObserver>"u"||!w)return;let _=!1,U=new ResizeObserver(()=>{if(!_){_=!0;let X=N.current;if(X[0]===w.clientHeight&&X[1]===w.scrollHeight&&X[2]===w.clientWidth&&X[3]===w.scrollWidth)return}k()});return U.observe(w),F.start(0,()=>{let X=w.getAnimations({subtree:!0});X.length!==0&&Promise.allSettled(X.map(P=>P.finished)).then(k).catch(()=>{})}),()=>{U.disconnect(),F.clear()}},[k,i,F]);function z(){A.current=!1}let q={role:"presentation",...b&&{"data-id":`${b}-viewport`},tabIndex:h.x&&h.y?-1:0,className:gs.className,style:{overflow:"scroll"},onScroll(){i.current&&(k(),(v||!A.current)&&S({x:i.current.scrollLeft,y:i.current.scrollTop}),D.start(100,()=>{A.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},O=$("div",t,{ref:[a,i],state:E,props:[q,s],stateAttributesMapping:Ki}),V=Fu.useMemo(()=>({computeThumbPosition:k}),[k]);return(0,bU.jsx)(fw.Provider,{value:V,children:O})});function oW(e){let t=e.clientHeight>=e.scrollHeight,a=e.clientWidth>=e.scrollWidth;return{y:t,x:a,corner:t||a}}function cv(e,t){for(let a in t)if(e[a]!==t[a])return t;return e}function SU(e,t,a,o,r,n,s){let i=Ir(a,0,o),l=a-i,u=Math.max(16,n*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?i/o*s:0)+(l>0?n-u:0)}var dv=R(M(),1);var fv=R(M(),1),dw=fv.createContext(void 0);function LU(){let e=fv.useContext(dw);if(e===void 0)throw new Error(De(54));return e}var RU=R(Q(),1),IU=dv.forwardRef(function(t,a){let{render:o,className:r,orientation:n="vertical",keepMounted:s=!1,style:i,...l}=t,{hovering:u,scrollingX:c,scrollingY:d,hiddenState:f,scrollbarYRef:m,scrollbarXRef:p,viewportRef:y,thumbYRef:b,thumbXRef:g,handlePointerDown:h,handlePointerUp:x,handleScroll:S,disableViewportSnap:v,rootId:I,thumbSize:L,hasMeasuredScrollbar:C,viewportState:E}=Dn(),T=n==="vertical",A={...E,hovering:u,scrolling:T?d:c,orientation:n},N=Oo(),D=!C&&!s,F=T?f.y:f.x,k=s||!F;dv.useEffect(()=>{if(!k)return;let O=y.current,V=T?m.current:p.current;if(!V)return;function w(_){if(!O||_.ctrlKey)return;let U=!T,X=U?"scrollLeft":"scrollTop",P=U?_.deltaX:_.deltaY;if(P===0)return;let H=U?O.scrollWidth-O.clientWidth:O.scrollHeight-O.clientHeight,B=U&&N==="rtl"?-H:0,J=U&&N==="rtl"?0:H,Y=O[X];Y<=B&&P<0||Y>=J&&P>0||(_.preventDefault(),O[X]=Math.min(J,Math.max(B,Y+P)),S({x:O.scrollLeft,y:O.scrollTop}))}return Le(V,"wheel",w,{passive:!1})},[N,S,T,p,m,k,y]);let z={...I&&{"data-id":`${I}-scrollbar`},"aria-hidden":!0,onPointerDown(O){if(O.button!==0)return;let V=Je(O.nativeEvent),w=T?b.current:g.current;if(w&&ue(w,V))return;let _=y.current;if(!_)return;let U=T?m.current:p.current;if(!w||!U)return;let X=T?"y":"x",P=Gr(w,"margin",X),H=Gr(U,"padding",X),B=T?w.offsetHeight:w.offsetWidth,J=U.getBoundingClientRect(),Y=T?O.clientY-J.top-B/2-H+P/2:O.clientX-J.left-B/2-H+P/2,te=T?_.scrollHeight:_.scrollWidth,ie=T?_.clientHeight:_.clientWidth,ee=(T?U.offsetHeight:U.offsetWidth)-B-H-P;if(ee<=0)return;let ae=Y/ee,me=te-ie;v(),T?_.scrollTop=ae*me:N==="rtl"?_.scrollLeft=-(1-ae)*me:_.scrollLeft=ae*me,S({x:_.scrollLeft,y:_.scrollTop}),h(O)},onMouseDown(O){O.preventDefault()},onPointerUp:x,onPointerCancel:x,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"hidden":void 0,...T?{top:0,bottom:`var(${nv})`,insetInlineEnd:0,[lv]:`${L.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${sv})`,bottom:0,[uv]:`${L.width}px`}}},q=$("div",t,{ref:[a,T?m:p],state:A,props:[z,l],stateAttributesMapping:Ki});return k?(0,RU.jsx)(dw.Provider,{value:n,children:q}):null});var hh=R(M(),1);var TU=hh.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{computeThumbPosition:i}=fU(),{hasMeasuredScrollbar:l,viewportState:u}=Dn(),c=hh.useRef(null),d=hh.useRef(l);return G(()=>{if(typeof ResizeObserver>"u")return;let m=!1,p=new ResizeObserver(()=>{!m&&(m=!0,!d.current)||i()});return c.current&&p.observe(c.current),()=>{p.disconnect()}},[i]),$("div",t,{ref:[a,c],state:u,stateAttributesMapping:Ki,props:[{role:"presentation",style:{minWidth:"fit-content"}},s]})});var wU=R(M(),1);var EU=wU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{thumbYRef:i,thumbXRef:l,handlePointerDown:u,handlePointerMove:c,handlePointerUp:d,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:p}=Dn(),y=LU(),b=y==="vertical";return $("div",t,{ref:[a,b?i:l],state:{scrolling:b?m:f,orientation:y},props:[{onPointerDown:u,onPointerMove:c,onPointerUp:d,onPointerCancel:d,style:{visibility:p?void 0:"hidden",...b?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},s]})});var AU=R(M(),1);var DU=AU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{cornerRef:i,cornerSize:l,hiddenState:u}=Dn(),c=$("div",t,{ref:[a,i],props:[{"aria-hidden":!0,style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},s]});return u.corner?null:c});var Qi=R(Q(),1);function MU({className:e,children:t,...a}){let o=Vy();return(0,Qi.jsxs)(Zi.Root,{"data-slot":"scroll-area",className:re("relative",e),...a,children:[(0,Qi.jsx)(Zi.Viewport,{ref:o,"data-slot":"scroll-area-viewport",className:"scroll-fade size-full max-h-[inherit] rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,Qi.jsx)(rW,{}),(0,Qi.jsx)(Zi.Corner,{})]})}function rW({className:e,orientation:t="vertical",...a}){return(0,Qi.jsx)(Zi.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:re("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...a,children:(0,Qi.jsx)(Zi.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var ot=R(Q(),1);function nW({run:e,active:t}){let[a,o]=(0,mv.useState)(Date.now());return(0,mv.useEffect)(()=>{if(!t)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[t]),(0,ot.jsx)("span",{className:re("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?Jn((a-Date.parse(e.startedAt))/1e3):e.time})}function PU({run:e,expanded:t,when:a}){let o=e.state==="running"||e.state==="queued";return(0,ot.jsxs)("div",{className:re("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,ot.jsx)(JH,{state:e.state,className:"mt-0.5"}),(0,ot.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,ot.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,ot.jsx)(dx,{worker:e.worker}),(0,ot.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,ot.jsx)(hO,{verdict:e.verdict}),e.changes?(0,ot.jsxs)(mx,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,ot.jsx)(mx,{tone:"good",children:"applied"})]}),(0,ot.jsx)(lw,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(o||e.note)&&(0,ot.jsx)(uw,{className:"line-clamp-2 break-words px-0 text-[13px]",children:o?(0,ot.jsx)(ky,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,ot.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,ot.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,ot.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,ot.jsx)(nW,{run:e,active:o}),(0,ot.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${Pl(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,ot.jsxs)("span",{className:"text-xs text-success",children:["~",cn(e.saved)]}):null,a&&(0,ot.jsx)("span",{title:new Date(e.startedAt).toLocaleString(),className:"text-xs text-muted-foreground/80",children:uO(e.startedAt)})]})]})}function pv({run:e,index:t,when:a}){let o=e.state==="running"||e.state==="queued";return(0,ot.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,ot.jsxs)(nw,{children:[(0,ot.jsx)(ov,{className:re("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,ot.jsx)(PU,{run:e,when:a})}),(0,ot.jsxs)(iw,{className:"max-h-[88vh] w-full border pb-0 shadow-2xl",children:[(0,ot.jsx)("div",{className:"shrink-0",children:(0,ot.jsx)(PU,{run:e,expanded:!0,when:a})}),(0,ot.jsx)(MU,{className:"max-h-[calc(88vh-6.5rem)] border-t",children:(0,ot.jsx)(sw,{className:"px-4 pb-5 pt-4 sm:pl-[3.4rem]",children:(0,ot.jsx)(jy,{id:e.id,live:o})})})]})]})})}var lt=R(Q(),1),OU={all:"Any state",done:"Done",problem:"Needs attention"},kU={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"},sW=e=>(e.split("/").pop()??e).replace(/-(contributor-)?free$/,"").replace(/-\d+\.\d+$/,""),iW=e=>({id:e.id,state:e.state,kind:e.kind,worker:e.model?`${e.backend} (${sW(e.model)})`:e.backend,task:e.task,group:e.group,startedAt:e.startedAt,time:e.seconds!=null?Jn(e.seconds):"",steps:e.steps??0,tokens:e.tokens,saved:e.saved,verdict:e.verdict,changes:e.files||void 0,applied:e.applied||void 0,note:""});function NU(){let[e,t]=(0,ko.useState)(""),[a,o]=(0,ko.useState)(""),[r,n]=(0,ko.useState)("all"),[s,i]=(0,ko.useState)("all"),[l,u]=(0,ko.useState)("0"),[c,d]=(0,ko.useState)([]),[f,m]=(0,ko.useState)(),[p,y]=(0,ko.useState)(!1),[b,g]=(0,ko.useState)();(0,ko.useEffect)(()=>{cr.stats(0).then(g).catch(()=>{})},[]),(0,ko.useEffect)(()=>{let v=setTimeout(()=>o(e),250);return()=>clearTimeout(v)},[e]);let h={q:a,state:r==="all"?void 0:r,model:s==="all"?void 0:s,days:Number(l)||void 0};(0,ko.useEffect)(()=>{let v=!0;return y(!0),cr.history({...h,limit:30}).then(I=>{v&&(d(I.rows),m(I.total),y(!1))}).catch(()=>v&&y(!1)),()=>{v=!1}},[a,r,s,l]);let x=async()=>{let v=await cr.history({...h,limit:30,before:c.at(-1)?.id});d(I=>[...I,...v.rows])},S=[...new Set((b?.byWorker??[]).map(v=>v.model).filter(Boolean))];return(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,lt.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,lt.jsx)(kr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,lt.jsx)(qb,{value:e,onChange:v=>t(v.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,lt.jsxs)(id,{value:r,onValueChange:v=>n(v??"all"),items:OU,children:[(0,lt.jsx)(ud,{className:"w-40",children:(0,lt.jsx)(ld,{})}),(0,lt.jsx)(cd,{children:Object.entries(OU).map(([v,I])=>(0,lt.jsx)(Wi,{value:v,children:I},v))})]}),(0,lt.jsxs)(id,{value:s,onValueChange:v=>i(v??"all"),items:{all:"Any model",...Object.fromEntries(S.map(v=>[v,v.split("/").pop()]))},children:[(0,lt.jsx)(ud,{className:"w-44",children:(0,lt.jsx)(ld,{})}),(0,lt.jsxs)(cd,{children:[(0,lt.jsx)(Wi,{value:"all",children:"Any model"}),S.map(v=>(0,lt.jsx)(Wi,{value:v,children:v.split("/").pop()},v))]})]}),(0,lt.jsxs)(id,{value:l,onValueChange:v=>u(v??"0"),items:kU,children:[(0,lt.jsx)(ud,{className:"w-40",children:(0,lt.jsx)(ld,{})}),(0,lt.jsx)(cd,{children:Object.entries(kU).map(([v,I])=>(0,lt.jsx)(Wi,{value:v,children:I},v))})]})]}),(0,lt.jsxs)("div",{className:"space-y-2.5",children:[p&&!c.length&&[0,1,2,3].map(v=>(0,lt.jsx)(ss,{className:"h-24 rounded-xl"},v)),c.map((v,I)=>(0,lt.jsx)(pv,{run:iW(v),index:I,when:!0},v.id)),!p&&!c.length&&(0,lt.jsx)("div",{className:"py-16 text-center text-muted-foreground",children:"No runs match."})]}),(0,lt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,lt.jsx)("span",{children:f!=null?`${c.length} of ${f} runs`:""}),f!=null&&c.length<f&&(0,lt.jsx)(Eo,{variant:"outline",onClick:()=>void x(),children:"Load more"})]})]})}var xs=R(M(),1);var _u=R(Q(),1);function hv({children:e}){return(0,_u.jsxs)(Ib,{children:[(0,_u.jsx)(Tb,{render:(0,_u.jsx)("span",{tabIndex:0,"aria-label":"What is this?",className:"inline-flex cursor-help items-center text-muted-foreground/70 outline-none hover:text-foreground focus-visible:text-foreground"}),children:(0,_u.jsx)(Mm,{className:"size-3.5"})}),(0,_u.jsx)(wb,{className:"max-w-64 text-balance",children:e})]})}var xv=R(Q(),1);function gv({price:e}){return(0,xv.jsxs)(xv.Fragment,{children:["An estimate, not money back. It is what your main model (",e??"Claude Sonnet"," list prices) would have charged to read the tokens the workers read, minus what the workers cost and the cost of reading their reports."]})}var yv=R(Q(),1);function Sv({value:e,onChange:t,options:a}){return(0,yv.jsx)(ib,{value:e,onValueChange:o=>t(o),children:(0,yv.jsx)(lb,{children:a.map(o=>(0,yv.jsx)(Wf,{value:o.value,children:o.label},o.value))})})}var VU=R(Q(),1);function md({className:e,size:t="default",...a}){return(0,VU.jsx)("div",{"data-slot":"card","data-size":t,className:re("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}var $e=R(Q(),1);function mw(e,t=450){let[a,o]=(0,xs.useState)(e),[r,n]=(0,xs.useState)(e);if(r!==e){n(e);let s=performance.now(),i=a,l=u=>{let c=Math.min(1,(u-s)/t);o(i+(e-i)*(1-(1-c)**3)),c<1&&requestAnimationFrame(l)};requestAnimationFrame(l)}return a}function pw({label:e,value:t,tone:a,pulse:o,hint:r}){return(0,$e.jsxs)(md,{className:re("relative gap-1 overflow-hidden px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",o&&"border-info/30"),children:[(0,$e.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,$e.jsx)(hv,{children:r})]}),(0,$e.jsxs)("p",{className:re("flex items-center gap-2.5 text-3xl font-semibold tabular-nums tracking-tight",a),children:[o!==void 0&&(0,$e.jsx)("span",{className:re("size-2.5 rounded-full",o?"animate-ping-slow bg-info":"bg-muted-foreground/40")}),t]})]})}var lW=(e,t)=>!t||`${e.task} ${e.worker} ${e.kind} ${e.note}`.toLowerCase().includes(t);function BU({focus:e}){let[t,a]=(0,xs.useState)(40),[o,r]=(0,xs.useState)("all"),[n,s]=(0,xs.useState)(""),[i,l]=(0,xs.useState)(""),{data:u}=Ai(()=>cr.state(t,n||void 0),2e3,[t,n]),c=mw(u?.running??0),d=mw(u?.saved??0),f=mw(u?.runs.filter(p=>p.state==="done").length??0),m=(0,xs.useMemo)(()=>(u?.runs??[]).filter(p=>lW(p,i.trim().toLowerCase())&&(o==="all"||(o==="running"?p.state==="running"||p.state==="queued":p.state==="failed"||p.state==="timeout"||p.state==="stopped"))),[u,i,o]);return(0,$e.jsxs)("div",{className:"space-y-5",children:[(0,$e.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,$e.jsx)(pw,{label:"Running now",value:String(Math.round(c)),pulse:(u?.running??0)>0,tone:u?.running?"text-info":void 0}),(0,$e.jsx)(pw,{label:"Finished",value:String(Math.round(f))}),(0,$e.jsx)(pw,{label:"Est. saved this week",value:cn(d),tone:"text-success",hint:(0,$e.jsx)(gv,{price:u?.price})})]}),(0,$e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,$e.jsxs)("div",{className:"relative min-w-48 flex-1",children:[(0,$e.jsx)(kr,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,$e.jsx)(qb,{value:i,onChange:p=>l(p.target.value),placeholder:"Filter these runs",className:"pl-8"})]}),(0,$e.jsx)(Sv,{value:o,onChange:r,options:[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"problem",label:"Needs attention"}]}),u&&u.groups.length>0&&(0,$e.jsxs)(id,{value:n||"all",onValueChange:p=>s(p==="all"?"":p??""),items:{all:"All groups",...Object.fromEntries(u.groups.map(p=>[p,p]))},children:[(0,$e.jsx)(ud,{className:"w-40",children:(0,$e.jsx)(ld,{})}),(0,$e.jsxs)(cd,{children:[(0,$e.jsx)(Wi,{value:"all",children:"All groups"}),u.groups.map(p=>(0,$e.jsx)(Wi,{value:p,children:p},p))]})]})]}),(0,$e.jsxs)("div",{className:"space-y-2.5",children:[!u&&[0,1,2].map(p=>(0,$e.jsx)(ss,{className:"h-24 rounded-xl"},p)),u&&m.length===0&&(0,$e.jsxs)("div",{className:"flex flex-col items-center gap-2 py-16 text-center text-muted-foreground animate-in fade-in duration-500",children:[(0,$e.jsx)("span",{className:"text-5xl animate-wave",children:"\u{1F3C1}"}),(0,$e.jsx)("p",{children:u.runs.length?"Nothing matches this filter.":"All quiet. Workers appear here the moment they start."}),!u.runs.length&&(0,$e.jsx)("code",{className:"rounded-lg border bg-card px-3 py-1.5 text-sm text-foreground",children:'pitroom run "your task"'})]}),m.map((p,y)=>(0,$e.jsx)(pv,{run:p,index:y},p.id)),u&&u.runs.length>=t&&(0,$e.jsx)("div",{className:"flex justify-center pt-1",children:(0,$e.jsx)(Eo,{variant:"outline",onClick:()=>a(p=>p+40),children:"Show older runs"})})]})]})}var pd={};Aa(pd,{Indicator:()=>YU,Label:()=>QU,Root:()=>qU,Track:()=>jU,Value:()=>KU});var ys=R(M(),1);function hw(e){return Array.isArray(e)?e.map(t=>hw(t)).join(","):e==null?"":String(e)}var FU=new Map;function uW(e,t){let a=JSON.stringify({locale:hw(e),options:t}),o=FU.get(a);if(o)return o;let r=new Intl.NumberFormat(e,t);return FU.set(a,r),r}function gw(e,t,a){return e==null?"":uW(t,a).format(e)}function _U(e,t,a){return(e-t)*100/(a-t)}var bv=R(M(),1),xw=bv.createContext(void 0);function Ji(){let e=bv.useContext(xw);if(e===void 0)throw new Error(De(51));return e}var zU="data-complete",HU="data-indeterminate",UU="data-progressing";var Mn={status(e){return e==="progressing"?{[UU]:""}:e==="complete"?{[zU]:""}:e==="indeterminate"?{[HU]:""}:null}};var gh=R(Q(),1),qU=ys.forwardRef(function(t,a){let{format:o,getAriaValueText:r,locale:n,max:s=100,min:i=0,value:l,render:u,className:c,children:d,style:f,...m}=t,[p,y]=ys.useState(),b="indeterminate",g=null,h=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){let E=_U(l,i,s);g=Ir(Number.isNaN(E)?0:E,0,100),h=Ir(l,i,s),b=h===s?"complete":"progressing",x=o?gw(h,n,o):gw(g/100,n,{style:"percent"}),S=x}let v=ys.useMemo(()=>({status:b}),[b]),I={"aria-labelledby":p,"aria-valuemax":s,"aria-valuemin":i,"aria-valuenow":h??void 0,"aria-valuetext":r?r(x,l):S,role:"progressbar",children:(0,gh.jsxs)(ys.Fragment,{children:[d,(0,gh.jsx)("span",{role:"presentation",style:Ef,children:"x"})]})},L=ys.useMemo(()=>({formattedValue:x,percentageValue:g,setLabelId:y,state:v,value:l}),[x,g,y,v,l]),C=$("div",t,{state:v,ref:a,props:[I,m],stateAttributesMapping:Mn});return(0,gh.jsx)(xw.Provider,{value:L,children:C})});var GU=R(M(),1);var jU=GU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{state:i}=Ji();return $("div",t,{state:i,ref:a,props:s,stateAttributesMapping:Mn})});var XU=R(M(),1);var YU=XU.forwardRef(function(t,a){let{render:o,className:r,style:n,...s}=t,{percentageValue:i,state:l}=Ji(),u=i==null?{}:{insetInlineStart:0,height:"inherit",width:`${i}%`};return $("div",t,{state:l,ref:a,props:[{style:u},s],stateAttributesMapping:Mn})});var WU=R(M(),1);var KU=WU.forwardRef(function(t,a){let{className:o,render:r,children:n,style:s,...i}=t,{value:l,formattedValue:u,state:c}=Ji(),d=c.status==="indeterminate";return $("span",t,{state:c,ref:a,props:[{"aria-hidden":!0,children:typeof n=="function"?n(d?"indeterminate":u,l):d?null:u},i],stateAttributesMapping:Mn})});var ZU=R(M(),1);var QU=ZU.forwardRef(function(t,a){let{render:o,className:r,style:n,id:s,...i}=t,{setLabelId:l,state:u}=Ji(),c=Ob(s,l);return $("span",t,{state:u,ref:a,props:[{id:c,role:"presentation"},i],stateAttributesMapping:Mn})});var zu=R(Q(),1);function JU({className:e,children:t,value:a,...o}){return(0,zu.jsxs)(pd.Root,{value:a,"data-slot":"progress",className:re("flex flex-wrap gap-3",e),...o,children:[t,(0,zu.jsx)(fW,{children:(0,zu.jsx)(dW,{})})]})}function fW({className:e,...t}){return(0,zu.jsx)(pd.Track,{className:re("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function dW({className:e,...t}){return(0,zu.jsx)(pd.Indicator,{"data-slot":"progress-indicator",className:re("h-full bg-primary transition-all",e),...t})}var $i=R(Q(),1);function $U({className:e,...t}){return(0,$i.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,$i.jsx)("table",{"data-slot":"table",className:re("w-full caption-bottom text-sm",e),...t})})}function e3({className:e,...t}){return(0,$i.jsx)("thead",{"data-slot":"table-header",className:re("[&_tr]:border-b",e),...t})}function t3({className:e,...t}){return(0,$i.jsx)("tbody",{"data-slot":"table-body",className:re("[&_tr:last-child]:border-0",e),...t})}function yw({className:e,...t}){return(0,$i.jsx)("tr",{"data-slot":"table-row",className:re("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function Hu({className:e,...t}){return(0,$i.jsx)("th",{"data-slot":"table-head",className:re("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function Uu({className:e,...t}){return(0,$i.jsx)("td",{"data-slot":"table-cell",className:re("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}var a3=R(M(),1),Ce=R(Q(),1);function xh({label:e,value:t,sub:a,tone:o,hint:r}){return(0,Ce.jsxs)(md,{className:"gap-1 px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",children:[(0,Ce.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,Ce.jsx)(hv,{children:r})]}),(0,Ce.jsx)("p",{className:`text-3xl lg:text-2xl font-semibold tabular-nums tracking-tight ${o??""}`,children:t}),a&&(0,Ce.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]})}function o3(){let[e,t]=(0,a3.useState)("30"),{data:a}=Ai(()=>cr.stats(Number(e)),15e3,[e]),o=a?.totals,r=Math.max(1,...(a?.byDay??[]).map(n=>n.runs));return(0,Ce.jsxs)("div",{className:"space-y-5",children:[(0,Ce.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Ce.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Statistics"}),(0,Ce.jsx)(Sv,{value:e,onChange:t,options:[{value:"7",label:"7 days"},{value:"30",label:"30 days"},{value:"90",label:"90 days"},{value:"0",label:"All"}]})]}),o?(0,Ce.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[(0,Ce.jsx)(xh,{label:"Runs",value:String(o.runs),sub:`${o.failed} not ok`}),(0,Ce.jsx)(xh,{label:"Success",value:o.runs?`${Math.round(100*o.ok/o.runs)}%`:"-",tone:"text-success"}),(0,Ce.jsx)(xh,{label:"Worker time",value:Jn(o.seconds)}),(0,Ce.jsx)(xh,{label:"Tokens",value:Pl(o.tokens)}),(0,Ce.jsx)(xh,{label:"Est. saved",value:cn(o.saved),tone:"text-success",hint:(0,Ce.jsx)(gv,{price:a?.price})})]}):(0,Ce.jsx)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(n=>(0,Ce.jsx)(ss,{className:"h-24 rounded-xl"},n))}),a&&a.byDay.length>0&&(0,Ce.jsxs)(md,{className:"gap-3 px-5 py-4 animate-in fade-in duration-700",children:[(0,Ce.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Ce.jsx)("h3",{className:"text-sm font-medium",children:"Runs per day"}),(0,Ce.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.byDay[0]?.day," \u2192 ",a.byDay.at(-1)?.day]})]}),(0,Ce.jsx)("div",{className:"flex h-36 items-end gap-1.5",children:a.byDay.map((n,s)=>(0,Ce.jsxs)(Ib,{children:[(0,Ce.jsx)(Tb,{render:(0,Ce.jsx)("div",{className:"group flex h-full max-w-14 flex-1 flex-col justify-end"}),children:(0,Ce.jsxs)("div",{className:"flex w-full flex-col justify-end overflow-hidden rounded-t-md transition-opacity group-hover:opacity-80 origin-bottom animate-in slide-in-from-bottom-4 fill-mode-both",style:{height:`${n.runs/r*100}%`,animationDelay:`${s*18}ms`},children:[(0,Ce.jsx)("div",{className:"bg-destructive/70",style:{height:`${n.runs?(n.runs-n.ok)/n.runs*100:0}%`}}),(0,Ce.jsx)("div",{className:"flex-1 bg-success/80"})]})}),(0,Ce.jsxs)(wb,{children:[n.day,": ",n.runs," runs, ",n.ok," ok, ~",cn(n.saved)," saved"]})]},n.day))})]}),a&&(0,Ce.jsx)(md,{className:"overflow-hidden py-0 animate-in fade-in duration-700",children:(0,Ce.jsxs)($U,{children:[(0,Ce.jsx)(e3,{children:(0,Ce.jsxs)(yw,{className:"hover:bg-transparent",children:[(0,Ce.jsx)(Hu,{children:"Worker"}),(0,Ce.jsx)(Hu,{className:"text-right",children:"Runs"}),(0,Ce.jsx)(Hu,{className:"w-44",children:"Success"}),(0,Ce.jsx)(Hu,{className:"hidden text-right sm:table-cell",children:"Avg time"}),(0,Ce.jsx)(Hu,{className:"hidden text-right md:table-cell",children:"Avg tokens"}),(0,Ce.jsx)(Hu,{className:"text-right",children:"Saved"})]})}),(0,Ce.jsx)(t3,{children:a.byWorker.map(n=>{let s=Math.round(100*n.ok/n.runs);return(0,Ce.jsxs)(yw,{children:[(0,Ce.jsx)(Uu,{children:(0,Ce.jsx)(dx,{backend:n.backend,model:n.model})}),(0,Ce.jsx)(Uu,{className:"text-right tabular-nums",children:n.runs}),(0,Ce.jsx)(Uu,{children:(0,Ce.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ce.jsx)(JU,{value:s,className:"flex-1"}),(0,Ce.jsxs)("span",{className:"w-9 text-right text-xs tabular-nums text-muted-foreground",children:[s,"%"]})]})}),(0,Ce.jsx)(Uu,{className:"hidden text-right tabular-nums sm:table-cell",children:n.avgSeconds!=null?Jn(n.avgSeconds):"-"}),(0,Ce.jsx)(Uu,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",children:n.avgTokens?Pl(n.avgTokens):"-"}),(0,Ce.jsx)(Uu,{className:"text-right tabular-nums text-success",children:n.saved?cn(n.saved):"-"})]},`${n.backend}:${n.model}`)})})]})})]})}var ke=R(Q(),1),mW=/^\d{8}-\d{6}-[0-9a-f]{4}$/;function pW(){return(0,ke.jsx)("div",{className:"grid size-9 place-items-center rounded-xl bg-gradient-to-br from-brand to-orange-300 shadow-lg shadow-brand/25",children:(0,ke.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 fill-white",children:(0,ke.jsx)("path",{d:"M4 4h4v4H4zm8 0h4v4h-4zM8 8h4v4H8zm8 0h4v4h-4zM4 12h4v4H4zm8 0h4v4h-4zm-4 4h4v4H8zm8 0h4v4h-4z"})})})}function hW(){let[e,t]=(0,Pn.useState)(document.documentElement.classList.contains("dark"));return(0,ke.jsx)(Eo,{variant:"ghost",size:"icon","aria-label":"Toggle theme",onClick:()=>{let a=!e;document.documentElement.classList.toggle("dark",a);try{localStorage.setItem("pitroom-theme",a?"dark":"light")}catch{}t(a)},children:e?(0,ke.jsx)(Om,{}):(0,ke.jsx)(Pm,{})})}function gW(){let[e,t]=(0,Pn.useState)(!1),[a,o]=(0,Pn.useState)(!1);(0,Pn.useEffect)(()=>{let n=()=>{t(window.scrollY>8),o(window.scrollY+window.innerHeight<document.documentElement.scrollHeight-8)};n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let s=new ResizeObserver(n);return s.observe(document.body),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),s.disconnect()}},[]);let r="pointer-events-none fixed inset-x-0 z-30 transition-opacity duration-300";return(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{"aria-hidden":!0,className:re(r,"top-0 h-14 bg-gradient-to-b from-background via-background/60 to-transparent",e?"opacity-100":"opacity-0")}),(0,ke.jsx)("div",{"aria-hidden":!0,className:re(r,"bottom-0 h-20 bg-gradient-to-t from-background via-background/60 to-transparent",a?"opacity-100":"opacity-0")})]})}function r3(){let e=location.hash.slice(1),[t,a]=(0,Pn.useState)(e==="history"||e==="stats"?e:"live"),[o,r]=(0,Pn.useState)(null),n=mW.test(e)?e:void 0,{data:s,error:i}=Ai(()=>cr.state(1),4e3,[]);return(0,Pn.useEffect)(()=>{document.title=`${s?.running?`(${s.running}) `:""}Pitroom`},[s?.running]),(0,Pn.useEffect)(()=>{n&&r(n)},[n]),(0,ke.jsx)(yz,{delay:150,children:(0,ke.jsxs)("div",{className:"relative min-h-screen",children:[(0,ke.jsx)("div",{className:"pointer-events-none fixed inset-0 -z-10 bg-[radial-gradient(60rem_30rem_at_85%_-10%,color-mix(in_oklab,var(--brand)_14%,transparent),transparent_60%),radial-gradient(50rem_28rem_at_-10%_0%,color-mix(in_oklab,var(--info)_12%,transparent),transparent_60%)]"}),(0,ke.jsxs)("main",{className:"mx-auto max-w-4xl px-4 pb-16 pt-8",children:[(0,ke.jsxs)("header",{className:"mb-6 flex items-center gap-3 animate-in fade-in slide-in-from-top-2 duration-700",children:[(0,ke.jsx)(pW,{}),(0,ke.jsxs)("div",{className:"leading-tight",children:[(0,ke.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Pitroom"}),(0,ke.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Your agent's pit crew, live"})]}),(0,ke.jsx)("div",{className:"flex-1"}),(0,ke.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,ke.jsx)("span",{className:re("size-1.5 rounded-full",i?"bg-destructive":"bg-success animate-pulse")}),i?"offline":"live"]}),(0,ke.jsx)(hW,{})]}),(0,ke.jsx)(ib,{value:t,onValueChange:l=>a(l),children:(0,ke.jsxs)(lb,{className:"mb-5",children:[(0,ke.jsx)(Wf,{value:"live",children:"Live"}),(0,ke.jsx)(Wf,{value:"history",children:"History"}),(0,ke.jsx)(Wf,{value:"stats",children:"Stats"})]})}),(0,ke.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-1 duration-300",children:[t==="live"&&(0,ke.jsx)(BU,{focus:n}),t==="history"&&(0,ke.jsx)(NU,{}),t==="stats"&&(0,ke.jsx)(o3,{})]},t),(0,ke.jsxs)("footer",{className:"mt-10 text-center text-xs text-muted-foreground/70",children:["Read-only \xB7 this machine only \xB7 stops itself when left idle (",(0,ke.jsx)("code",{className:"font-mono",children:"pitroom dash --stop"})," ends it now)"]})]}),(0,ke.jsx)(gW,{}),(0,ke.jsx)(zF,{open:!!o,onOpenChange:l=>!l&&r(null),children:(0,ke.jsxs)(HF,{side:"right",className:"w-full overflow-y-auto sm:max-w-2xl",children:[(0,ke.jsxs)(UF,{children:[(0,ke.jsx)(qF,{children:"Run"}),(0,ke.jsx)(GF,{className:"font-mono text-xs",children:o})]}),(0,ke.jsx)("div",{className:"px-4 pb-6",children:o&&(0,ke.jsx)(jy,{id:o})})]})})]})})}var Sw=R(Q(),1);(0,s3.createRoot)(document.getElementById("root")).render((0,Sw.jsx)(n3.StrictMode,{children:(0,Sw.jsx)(r3,{})}));
|