@swimmingliu/autovpn 2.2.4 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var UD=Object.create;var av=Object.defineProperty;var HD=Object.getOwnPropertyDescriptor;var PD=Object.getOwnPropertyNames;var GD=Object.getPrototypeOf,jD=Object.prototype.hasOwnProperty;var Jn=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var YD=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of PD(e))!jD.call(t,o)&&o!==n&&av(t,o,{get:()=>e[o],enumerable:!(i=HD(e,o))||i.enumerable});return t};var B=(t,e,n)=>(n=t!=null?UD(GD(t)):{},YD(e||!t||!t.__esModule?av(n,"default",{value:t,enumerable:!0}):n,t));var xv=Jn(at=>{"use strict";var dp=Symbol.for("react.transitional.element"),qD=Symbol.for("react.portal"),kD=Symbol.for("react.fragment"),XD=Symbol.for("react.strict_mode"),KD=Symbol.for("react.profiler"),ZD=Symbol.for("react.consumer"),QD=Symbol.for("react.context"),FD=Symbol.for("react.forward_ref"),ID=Symbol.for("react.suspense"),JD=Symbol.for("react.memo"),fv=Symbol.for("react.lazy"),WD=Symbol.for("react.activity"),$D=Symbol.for("react.view_transition"),sv=Symbol.iterator;function tR(t){return t===null||typeof t!="object"?null:(t=sv&&t[sv]||t["@@iterator"],typeof t=="function"?t:null)}var mv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dv=Object.assign,pv={};function Sa(t,e,n){this.props=t,this.context=e,this.refs=pv,this.updater=n||mv}Sa.prototype.isReactComponent={};Sa.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Sa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function hv(){}hv.prototype=Sa.prototype;function pp(t,e,n){this.props=t,this.context=e,this.refs=pv,this.updater=n||mv}var hp=pp.prototype=new hv;hp.constructor=pp;dv(hp,Sa.prototype);hp.isPureReactComponent=!0;var lv=Array.isArray;function mp(){}var Vt={H:null,A:null,T:null,S:null},gv=Object.prototype.hasOwnProperty;function gp(t,e,n){var i=n.ref;return{$$typeof:dp,type:t,key:e,ref:i!==void 0?i:null,props:n}}function eR(t,e){return gp(t.type,e,t.props)}function yp(t){return typeof t=="object"&&t!==null&&t.$$typeof===dp}function nR(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var uv=/\/+/g;function fp(t,e){return typeof t=="object"&&t!==null&&t.key!=null?nR(""+t.key):e.toString(36)}function iR(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(mp,mp):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function ba(t,e,n,i,o){var r=typeof t;(r==="undefined"||r==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(r){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case dp:case qD:a=!0;break;case fv:return a=t._init,ba(a(t._payload),e,n,i,o)}}if(a)return o=o(t),a=i===""?"."+fp(t,0):i,lv(o)?(n="",a!=null&&(n=a.replace(uv,"$&/")+"/"),ba(o,e,n,"",function(u){return u})):o!=null&&(yp(o)&&(o=eR(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(uv,"$&/")+"/")+a)),e.push(o)),1;a=0;var s=i===""?".":i+":";if(lv(t))for(var l=0;l<t.length;l++)i=t[l],r=s+fp(i,l),a+=ba(i,e,n,r,o);else if(l=tR(t),typeof l=="function")for(t=l.call(t),l=0;!(i=t.next()).done;)i=i.value,r=s+fp(i,l++),a+=ba(i,e,n,r,o);else if(r==="object"){if(typeof t.then=="function")return ba(iR(t),e,n,i,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return a}function Oc(t,e,n){if(t==null)return t;var i=[],o=0;return ba(t,i,"","",function(r){return e.call(n,r,o++)}),i}function oR(t){if(t._status===-1){var e=t._result,n=e();n.then(function(i){(t._status===0||t._status===-1)&&(t._status=1,t._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(t._status===0||t._status===-1)&&(t._status=2,t._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var cv=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function yv(t){var e=Vt.T,n={};n.types=e!==null?e.types:null,Vt.T=n;try{var i=t(),o=Vt.S;o!==null&&o(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(mp,cv)}catch(r){cv(r)}finally{e!==null&&n.types!==null&&(e.types=n.types),Vt.T=e}}function vv(t){var e=Vt.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else yv(vv.bind(null,t))}var rR={map:Oc,forEach:function(t,e,n){Oc(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Oc(t,function(){e++}),e},toArray:function(t){return Oc(t,function(e){return e})||[]},only:function(t){if(!yp(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};at.Activity=WD;at.Children=rR;at.Component=Sa;at.Fragment=kD;at.Profiler=KD;at.PureComponent=pp;at.StrictMode=XD;at.Suspense=ID;at.ViewTransition=$D;at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Vt;at.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Vt.H.useMemoCache(t)}};at.addTransitionType=vv;at.cache=function(t){return function(){return t.apply(null,arguments)}};at.cacheSignal=function(){return null};at.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var i=dv({},t.props),o=t.key;if(e!=null)for(r in e.key!==void 0&&(o=""+e.key),e)!gv.call(e,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&e.ref===void 0||(i[r]=e[r]);var r=arguments.length-2;if(r===1)i.children=n;else if(1<r){for(var a=Array(r),s=0;s<r;s++)a[s]=arguments[s+2];i.children=a}return gp(t.type,o,i)};at.createContext=function(t){return t={$$typeof:QD,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:ZD,_context:t},t};at.createElement=function(t,e,n){var i,o={},r=null;if(e!=null)for(i in e.key!==void 0&&(r=""+e.key),e)gv.call(e,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(o[i]=e[i]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(t&&t.defaultProps)for(i in a=t.defaultProps,a)o[i]===void 0&&(o[i]=a[i]);return gp(t,r,o)};at.createRef=function(){return{current:null}};at.forwardRef=function(t){return{$$typeof:FD,render:t}};at.isValidElement=yp;at.lazy=function(t){return{$$typeof:fv,_payload:{_status:-1,_result:t},_init:oR}};at.memo=function(t,e){return{$$typeof:JD,type:t,compare:e===void 0?null:e}};at.startTransition=yv;at.unstable_useCacheRefresh=function(){return Vt.H.useCacheRefresh()};at.use=function(t){return Vt.H.use(t)};at.useActionState=function(t,e,n){return Vt.H.useActionState(t,e,n)};at.useCallback=function(t,e){return Vt.H.useCallback(t,e)};at.useContext=function(t){return Vt.H.useContext(t)};at.useDebugValue=function(){};at.useDeferredValue=function(t,e){return Vt.H.useDeferredValue(t,e)};at.useEffect=function(t,e){return Vt.H.useEffect(t,e)};at.useEffectEvent=function(t){return Vt.H.useEffectEvent(t)};at.useId=function(){return Vt.H.useId()};at.useImperativeHandle=function(t,e,n){return Vt.H.useImperativeHandle(t,e,n)};at.useInsertionEffect=function(t,e){return Vt.H.useInsertionEffect(t,e)};at.useLayoutEffect=function(t,e){return Vt.H.useLayoutEffect(t,e)};at.useMemo=function(t,e){return Vt.H.useMemo(t,e)};at.useOptimistic=function(t,e){return Vt.H.useOptimistic(t,e)};at.useReducer=function(t,e,n){return Vt.H.useReducer(t,e,n)};at.useRef=function(t){return Vt.H.useRef(t)};at.useState=function(t){return Vt.H.useState(t)};at.useSyncExternalStore=function(t,e,n){return Vt.H.useSyncExternalStore(t,e,n)};at.useTransition=function(){return Vt.H.useTransition()};at.version="19.3.1"});var ot=Jn((p_,bv)=>{"use strict";bv.exports=xv()});var Ov=Jn(Ht=>{"use strict";function Sp(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,o=t[i];if(0<Nc(o,e))t[i]=e,t[n]=o,n=i;else break t}}function Wn(t){return t.length===0?null:t[0]}function zc(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,o=t.length,r=o>>>1;i<r;){var a=2*(i+1)-1,s=t[a],l=a+1,u=t[l];if(0>Nc(s,n))l<o&&0>Nc(u,s)?(t[i]=u,t[l]=n,i=l):(t[i]=s,t[a]=n,i=a);else if(l<o&&0>Nc(u,n))t[i]=u,t[l]=n,i=l;else break t}}return e}function Nc(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Ht.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Sv=performance,Ht.unstable_now=function(){return Sv.now()}):(vp=Date,Tv=vp.now(),Ht.unstable_now=function(){return vp.now()-Tv});var Sv,vp,Tv,Ni=[],yo=[],aR=1,Sn=null,Oe=3,Tp=!1,ul=!1,cl=!1,Ep=!1,Cv=typeof setTimeout=="function"?setTimeout:null,wv=typeof clearTimeout=="function"?clearTimeout:null,Ev=typeof setImmediate<"u"?setImmediate:null;function Vc(t){for(var e=Wn(yo);e!==null;){if(e.callback===null)zc(yo);else if(e.startTime<=t)zc(yo),e.sortIndex=e.expirationTime,Sp(Ni,e);else break;e=Wn(yo)}}function Ap(t){if(cl=!1,Vc(t),!ul)if(Wn(Ni)!==null)ul=!0,Ea||(Ea=!0,Ta());else{var e=Wn(yo);e!==null&&Cp(Ap,e.startTime-t)}}var Ea=!1,fl=-1,Mv=5,Dv=-1;function Rv(){return Ep?!0:!(Ht.unstable_now()-Dv<Mv)}function xp(){if(Ep=!1,Ea){var t=Ht.unstable_now();Dv=t;var e=!0;try{t:{ul=!1,cl&&(cl=!1,wv(fl),fl=-1),Tp=!0;var n=Oe;try{e:{for(Vc(t),Sn=Wn(Ni);Sn!==null&&!(Sn.expirationTime>t&&Rv());){var i=Sn.callback;if(typeof i=="function"){Sn.callback=null,Oe=Sn.priorityLevel;var o=i(Sn.expirationTime<=t);if(t=Ht.unstable_now(),typeof o=="function"){Sn.callback=o,Vc(t),e=!0;break e}Sn===Wn(Ni)&&zc(Ni),Vc(t)}else zc(Ni);Sn=Wn(Ni)}if(Sn!==null)e=!0;else{var r=Wn(yo);r!==null&&Cp(Ap,r.startTime-t),e=!1}}break t}finally{Sn=null,Oe=n,Tp=!1}e=void 0}}finally{e?Ta():Ea=!1}}}var Ta;typeof Ev=="function"?Ta=function(){Ev(xp)}:typeof MessageChannel<"u"?(bp=new MessageChannel,Av=bp.port2,bp.port1.onmessage=xp,Ta=function(){Av.postMessage(null)}):Ta=function(){Cv(xp,0)};var bp,Av;function Cp(t,e){fl=Cv(function(){t(Ht.unstable_now())},e)}Ht.unstable_IdlePriority=5;Ht.unstable_ImmediatePriority=1;Ht.unstable_LowPriority=4;Ht.unstable_NormalPriority=3;Ht.unstable_Profiling=null;Ht.unstable_UserBlockingPriority=2;Ht.unstable_cancelCallback=function(t){t.callback=null};Ht.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Mv=0<t?Math.floor(1e3/t):5};Ht.unstable_getCurrentPriorityLevel=function(){return Oe};Ht.unstable_next=function(t){switch(Oe){case 1:case 2:case 3:var e=3;break;default:e=Oe}var n=Oe;Oe=e;try{return t()}finally{Oe=n}};Ht.unstable_requestPaint=function(){Ep=!0};Ht.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Oe;Oe=t;try{return e()}finally{Oe=n}};Ht.unstable_scheduleCallback=function(t,e,n){var i=Ht.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,t){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,t={id:aR++,callback:e,priorityLevel:t,startTime:n,expirationTime:o,sortIndex:-1},n>i?(t.sortIndex=n,Sp(yo,t),Wn(Ni)===null&&t===Wn(yo)&&(cl?(wv(fl),fl=-1):cl=!0,Cp(Ap,n-i))):(t.sortIndex=o,Sp(Ni,t),ul||Tp||(ul=!0,Ea||(Ea=!0,Ta()))),t};Ht.unstable_shouldYield=Rv;Ht.unstable_wrapCallback=function(t){var e=Oe;return function(){var n=Oe;Oe=e;try{return t.apply(this,arguments)}finally{Oe=n}}}});var Vv=Jn((g_,Nv)=>{"use strict";Nv.exports=Ov()});var _v=Jn(Ne=>{"use strict";var sR=ot();function Lv(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vo(){}var _e={d:{f:vo,r:function(){throw Error(Lv(522))},D:vo,C:vo,L:vo,m:vo,X:vo,S:vo,M:vo},p:0,findDOMNode:null},lR=Symbol.for("react.portal"),uR=Symbol.for("react.recoverable"),zv=Symbol.for("react.optimistic_key");function cR(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lR,key:i==null?null:i===zv?zv:""+i,children:t,containerInfo:e,implementation:n}}var ml=sR.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Lc(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_e;Ne.browser=function(t){return{$$typeof:uR,_reason:t}};Ne.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Lv(299));return cR(t,e,null,n)};Ne.flushSync=function(t){var e=ml.T,n=_e.p;try{if(ml.T=null,_e.p=2,t)return t()}finally{ml.T=e,_e.p=n,_e.d.f()}};Ne.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,_e.d.C(t,e))};Ne.prefetchDNS=function(t){typeof t=="string"&&_e.d.D(t)};Ne.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,i=Lc(n,e.crossOrigin),o=typeof e.integrity=="string"?e.integrity:void 0,r=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?_e.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:r}):n==="script"&&_e.d.X(t,{crossOrigin:i,integrity:o,fetchPriority:r,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Ne.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=Lc(e.as,e.crossOrigin);_e.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&_e.d.M(t)};Ne.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,i=Lc(n,e.crossOrigin);_e.d.L(t,n,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Ne.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=Lc(e.as,e.crossOrigin);_e.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else _e.d.m(t)};Ne.requestFormReset=function(t){_e.d.r(t)};Ne.unstable_batchedUpdates=function(t,e){return t(e)};Ne.useFormState=function(t,e,n){return ml.H.useFormState(t,e,n)};Ne.useFormStatus=function(){return ml.H.useHostTransitionStatus()};Ne.version="19.3.1"});var wp=Jn((v_,Uv)=>{"use strict";function Bv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bv)}catch(t){console.error(t)}}Bv(),Uv.exports=_v()});var ET=Jn(gm=>{"use strict";var ae=Vv(),Tb=ot(),fR=wp();function R(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Eb(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function $l(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function Ab(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Cb(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Hv(t){if($l(t)!==t)throw Error(R(188))}function mR(t){var e=t.alternate;if(!e){if(e=$l(t),e===null)throw Error(R(188));return e!==t?null:t}for(var n=t,i=e;;){var o=n.return;if(o===null)break;var r=o.alternate;if(r===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return Hv(o),t;if(r===i)return Hv(o),e;r=r.sibling}throw Error(R(188))}if(n.return!==i.return)n=o,i=r;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,i=r;break}if(s===i){a=!0,i=o,n=r;break}s=s.sibling}if(!a){for(s=r.child;s;){if(s===n){a=!0,n=r,i=o;break}if(s===i){a=!0,i=r,n=o;break}s=s.sibling}if(!a)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?t:e}function wb(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=wb(t),e!==null)return e;t=t.sibling}return null}function Je(t,e,n,i,o,r){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,i,o,r)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Je(t.child,e,n,i,o,r))return!0;t=t.sibling}return!1}function Lr(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Pv(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function Mb(t){var e=[null,null],n=Lr(t);return n===null||Db(e,t,n.child,{foundSelf:!1}),e}function Db(t,e,n,i){for(;n!==null;){if(n===e)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Db(t,e,n.child,i))return!0;n=n.sibling}return!1}function re(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(R(559))}}var Oa=null,oh=null;function dR(t,e,n){return t===n?!0:t===e?(Oa=t,!0):!1}function pR(t,e,n){return t===n?(oh=t,!1):t===e?(oh!==null&&(Oa=t),!0):!1}function Gv(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function rh(t,e,n){for(var i=0,o=t;o;o=n(o))i++;o=0;for(var r=e;r;r=n(r))o++;for(;0<i-o;)t=n(t),i--;for(;0<o-i;)e=n(e),o--;for(;i--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var Ot=Object.assign,hR=Symbol.for("react.element"),_c=Symbol.for("react.transitional.element"),xl=Symbol.for("react.portal"),Na=Symbol.for("react.fragment"),Rb=Symbol.for("react.strict_mode"),ah=Symbol.for("react.profiler"),Ob=Symbol.for("react.consumer"),oi=Symbol.for("react.context"),hg=Symbol.for("react.forward_ref"),sh=Symbol.for("react.suspense"),lh=Symbol.for("react.suspense_list"),gg=Symbol.for("react.memo"),To=Symbol.for("react.lazy"),uh=Symbol.for("react.activity"),gR=Symbol.for("react.legacy_hidden"),yR=Symbol.for("react.memo_cache_sentinel"),ch=Symbol.for("react.view_transition"),vR=Symbol.for("react.recoverable"),jv=Symbol.iterator;function dl(t){return t===null||typeof t!="object"?null:(t=jv&&t[jv]||t["@@iterator"],typeof t=="function"?t:null)}var xR=Symbol.for("react.client.reference");function fh(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===xR?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Na:return"Fragment";case ah:return"Profiler";case Rb:return"StrictMode";case sh:return"Suspense";case lh:return"SuspenseList";case uh:return"Activity";case ch:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case xl:return"Portal";case oi:return t.displayName||"Context";case Ob:return(t._context.displayName||"Context")+".Consumer";case hg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case gg:return e=t.displayName||null,e!==null?e:fh(t.type)||"Memo";case To:e=t._payload,t=t._init;try{return fh(t(e))}catch{}}return null}var bl=Array.isArray,nt=Tb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,St=fR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sr={pending:!1,data:null,method:null,action:null},mh=[],Va=-1;function fi(t){return{current:t}}function Ee(t){0>Va||(t.current=mh[Va],mh[Va]=null,Va--)}function _t(t,e){Va++,mh[Va]=t.current,t.current=e}var li=fi(null),Ul=fi(null),No=fi(null),Tf=fi(null);function Ef(t,e){switch(_t(No,e),_t(Ul,t),_t(li,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?eb(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=eb(e),t=WS(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ee(li),_t(li,t)}function Wa(){Ee(li),Ee(Ul),Ee(No)}function dh(t){var e=t.memoizedState;e!==null&&(ls._currentValue=e.memoizedState,_t(Tf,t)),e=li.current;var n=WS(e,t.type);e!==n&&(_t(Ul,t),_t(li,n))}function Af(t){Ul.current===t&&(Ee(li),Ee(Ul)),Tf.current===t&&(Ee(Tf),ls._currentValue=Sr)}var Mp,Yv;function bo(t){if(Mp===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Mp=e&&e[1]||"",Yv=-1<n.stack.indexOf(`
|
|
1
|
+
var jD=Object.create;var lv=Object.defineProperty;var YD=Object.getOwnPropertyDescriptor;var qD=Object.getOwnPropertyNames;var kD=Object.getPrototypeOf,XD=Object.prototype.hasOwnProperty;var Jn=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var KD=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of qD(e))!XD.call(t,o)&&o!==n&&lv(t,o,{get:()=>e[o],enumerable:!(i=YD(e,o))||i.enumerable});return t};var B=(t,e,n)=>(n=t!=null?jD(kD(t)):{},KD(e||!t||!t.__esModule?lv(n,"default",{value:t,enumerable:!0}):n,t));var Sv=Jn(at=>{"use strict";var dp=Symbol.for("react.transitional.element"),ZD=Symbol.for("react.portal"),QD=Symbol.for("react.fragment"),FD=Symbol.for("react.strict_mode"),ID=Symbol.for("react.profiler"),JD=Symbol.for("react.consumer"),WD=Symbol.for("react.context"),$D=Symbol.for("react.forward_ref"),tR=Symbol.for("react.suspense"),eR=Symbol.for("react.memo"),dv=Symbol.for("react.lazy"),nR=Symbol.for("react.activity"),iR=Symbol.for("react.view_transition"),uv=Symbol.iterator;function oR(t){return t===null||typeof t!="object"?null:(t=uv&&t[uv]||t["@@iterator"],typeof t=="function"?t:null)}var pv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hv=Object.assign,gv={};function Sa(t,e,n){this.props=t,this.context=e,this.refs=gv,this.updater=n||pv}Sa.prototype.isReactComponent={};Sa.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Sa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function yv(){}yv.prototype=Sa.prototype;function pp(t,e,n){this.props=t,this.context=e,this.refs=gv,this.updater=n||pv}var hp=pp.prototype=new yv;hp.constructor=pp;hv(hp,Sa.prototype);hp.isPureReactComponent=!0;var cv=Array.isArray;function mp(){}var Vt={H:null,A:null,T:null,S:null},vv=Object.prototype.hasOwnProperty;function gp(t,e,n){var i=n.ref;return{$$typeof:dp,type:t,key:e,ref:i!==void 0?i:null,props:n}}function rR(t,e){return gp(t.type,e,t.props)}function yp(t){return typeof t=="object"&&t!==null&&t.$$typeof===dp}function aR(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var fv=/\/+/g;function fp(t,e){return typeof t=="object"&&t!==null&&t.key!=null?aR(""+t.key):e.toString(36)}function sR(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(mp,mp):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function ba(t,e,n,i,o){var r=typeof t;(r==="undefined"||r==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(r){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case dp:case ZD:a=!0;break;case dv:return a=t._init,ba(a(t._payload),e,n,i,o)}}if(a)return o=o(t),a=i===""?"."+fp(t,0):i,cv(o)?(n="",a!=null&&(n=a.replace(fv,"$&/")+"/"),ba(o,e,n,"",function(u){return u})):o!=null&&(yp(o)&&(o=rR(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(fv,"$&/")+"/")+a)),e.push(o)),1;a=0;var s=i===""?".":i+":";if(cv(t))for(var l=0;l<t.length;l++)i=t[l],r=s+fp(i,l),a+=ba(i,e,n,r,o);else if(l=oR(t),typeof l=="function")for(t=l.call(t),l=0;!(i=t.next()).done;)i=i.value,r=s+fp(i,l++),a+=ba(i,e,n,r,o);else if(r==="object"){if(typeof t.then=="function")return ba(sR(t),e,n,i,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return a}function Rc(t,e,n){if(t==null)return t;var i=[],o=0;return ba(t,i,"","",function(r){return e.call(n,r,o++)}),i}function lR(t){if(t._status===-1){var e=t._result,n=e();n.then(function(i){(t._status===0||t._status===-1)&&(t._status=1,t._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(t._status===0||t._status===-1)&&(t._status=2,t._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var mv=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function xv(t){var e=Vt.T,n={};n.types=e!==null?e.types:null,Vt.T=n;try{var i=t(),o=Vt.S;o!==null&&o(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(mp,mv)}catch(r){mv(r)}finally{e!==null&&n.types!==null&&(e.types=n.types),Vt.T=e}}function bv(t){var e=Vt.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else xv(bv.bind(null,t))}var uR={map:Rc,forEach:function(t,e,n){Rc(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Rc(t,function(){e++}),e},toArray:function(t){return Rc(t,function(e){return e})||[]},only:function(t){if(!yp(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};at.Activity=nR;at.Children=uR;at.Component=Sa;at.Fragment=QD;at.Profiler=ID;at.PureComponent=pp;at.StrictMode=FD;at.Suspense=tR;at.ViewTransition=iR;at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Vt;at.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Vt.H.useMemoCache(t)}};at.addTransitionType=bv;at.cache=function(t){return function(){return t.apply(null,arguments)}};at.cacheSignal=function(){return null};at.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var i=hv({},t.props),o=t.key;if(e!=null)for(r in e.key!==void 0&&(o=""+e.key),e)!vv.call(e,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&e.ref===void 0||(i[r]=e[r]);var r=arguments.length-2;if(r===1)i.children=n;else if(1<r){for(var a=Array(r),s=0;s<r;s++)a[s]=arguments[s+2];i.children=a}return gp(t.type,o,i)};at.createContext=function(t){return t={$$typeof:WD,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:JD,_context:t},t};at.createElement=function(t,e,n){var i,o={},r=null;if(e!=null)for(i in e.key!==void 0&&(r=""+e.key),e)vv.call(e,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(o[i]=e[i]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(t&&t.defaultProps)for(i in a=t.defaultProps,a)o[i]===void 0&&(o[i]=a[i]);return gp(t,r,o)};at.createRef=function(){return{current:null}};at.forwardRef=function(t){return{$$typeof:$D,render:t}};at.isValidElement=yp;at.lazy=function(t){return{$$typeof:dv,_payload:{_status:-1,_result:t},_init:lR}};at.memo=function(t,e){return{$$typeof:eR,type:t,compare:e===void 0?null:e}};at.startTransition=xv;at.unstable_useCacheRefresh=function(){return Vt.H.useCacheRefresh()};at.use=function(t){return Vt.H.use(t)};at.useActionState=function(t,e,n){return Vt.H.useActionState(t,e,n)};at.useCallback=function(t,e){return Vt.H.useCallback(t,e)};at.useContext=function(t){return Vt.H.useContext(t)};at.useDebugValue=function(){};at.useDeferredValue=function(t,e){return Vt.H.useDeferredValue(t,e)};at.useEffect=function(t,e){return Vt.H.useEffect(t,e)};at.useEffectEvent=function(t){return Vt.H.useEffectEvent(t)};at.useId=function(){return Vt.H.useId()};at.useImperativeHandle=function(t,e,n){return Vt.H.useImperativeHandle(t,e,n)};at.useInsertionEffect=function(t,e){return Vt.H.useInsertionEffect(t,e)};at.useLayoutEffect=function(t,e){return Vt.H.useLayoutEffect(t,e)};at.useMemo=function(t,e){return Vt.H.useMemo(t,e)};at.useOptimistic=function(t,e){return Vt.H.useOptimistic(t,e)};at.useReducer=function(t,e,n){return Vt.H.useReducer(t,e,n)};at.useRef=function(t){return Vt.H.useRef(t)};at.useState=function(t){return Vt.H.useState(t)};at.useSyncExternalStore=function(t,e,n){return Vt.H.useSyncExternalStore(t,e,n)};at.useTransition=function(){return Vt.H.useTransition()};at.version="19.3.1"});var ot=Jn((b_,Tv)=>{"use strict";Tv.exports=Sv()});var Vv=Jn(Ut=>{"use strict";function Sp(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,o=t[i];if(0<Oc(o,e))t[i]=e,t[n]=o,n=i;else break t}}function Wn(t){return t.length===0?null:t[0]}function Vc(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,o=t.length,r=o>>>1;i<r;){var a=2*(i+1)-1,s=t[a],l=a+1,u=t[l];if(0>Oc(s,n))l<o&&0>Oc(u,s)?(t[i]=u,t[l]=n,i=l):(t[i]=s,t[a]=n,i=a);else if(l<o&&0>Oc(u,n))t[i]=u,t[l]=n,i=l;else break t}}return e}function Oc(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Ut.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Ev=performance,Ut.unstable_now=function(){return Ev.now()}):(vp=Date,Av=vp.now(),Ut.unstable_now=function(){return vp.now()-Av});var Ev,vp,Av,Vi=[],vo=[],cR=1,Sn=null,Oe=3,Tp=!1,ll=!1,ul=!1,Ep=!1,Mv=typeof setTimeout=="function"?setTimeout:null,Dv=typeof clearTimeout=="function"?clearTimeout:null,Cv=typeof setImmediate<"u"?setImmediate:null;function Nc(t){for(var e=Wn(vo);e!==null;){if(e.callback===null)Vc(vo);else if(e.startTime<=t)Vc(vo),e.sortIndex=e.expirationTime,Sp(Vi,e);else break;e=Wn(vo)}}function Ap(t){if(ul=!1,Nc(t),!ll)if(Wn(Vi)!==null)ll=!0,Ea||(Ea=!0,Ta());else{var e=Wn(vo);e!==null&&Cp(Ap,e.startTime-t)}}var Ea=!1,cl=-1,Rv=5,Ov=-1;function Nv(){return Ep?!0:!(Ut.unstable_now()-Ov<Rv)}function xp(){if(Ep=!1,Ea){var t=Ut.unstable_now();Ov=t;var e=!0;try{t:{ll=!1,ul&&(ul=!1,Dv(cl),cl=-1),Tp=!0;var n=Oe;try{e:{for(Nc(t),Sn=Wn(Vi);Sn!==null&&!(Sn.expirationTime>t&&Nv());){var i=Sn.callback;if(typeof i=="function"){Sn.callback=null,Oe=Sn.priorityLevel;var o=i(Sn.expirationTime<=t);if(t=Ut.unstable_now(),typeof o=="function"){Sn.callback=o,Nc(t),e=!0;break e}Sn===Wn(Vi)&&Vc(Vi),Nc(t)}else Vc(Vi);Sn=Wn(Vi)}if(Sn!==null)e=!0;else{var r=Wn(vo);r!==null&&Cp(Ap,r.startTime-t),e=!1}}break t}finally{Sn=null,Oe=n,Tp=!1}e=void 0}}finally{e?Ta():Ea=!1}}}var Ta;typeof Cv=="function"?Ta=function(){Cv(xp)}:typeof MessageChannel<"u"?(bp=new MessageChannel,wv=bp.port2,bp.port1.onmessage=xp,Ta=function(){wv.postMessage(null)}):Ta=function(){Mv(xp,0)};var bp,wv;function Cp(t,e){cl=Mv(function(){t(Ut.unstable_now())},e)}Ut.unstable_IdlePriority=5;Ut.unstable_ImmediatePriority=1;Ut.unstable_LowPriority=4;Ut.unstable_NormalPriority=3;Ut.unstable_Profiling=null;Ut.unstable_UserBlockingPriority=2;Ut.unstable_cancelCallback=function(t){t.callback=null};Ut.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Rv=0<t?Math.floor(1e3/t):5};Ut.unstable_getCurrentPriorityLevel=function(){return Oe};Ut.unstable_next=function(t){switch(Oe){case 1:case 2:case 3:var e=3;break;default:e=Oe}var n=Oe;Oe=e;try{return t()}finally{Oe=n}};Ut.unstable_requestPaint=function(){Ep=!0};Ut.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=Oe;Oe=t;try{return e()}finally{Oe=n}};Ut.unstable_scheduleCallback=function(t,e,n){var i=Ut.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,t){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,t={id:cR++,callback:e,priorityLevel:t,startTime:n,expirationTime:o,sortIndex:-1},n>i?(t.sortIndex=n,Sp(vo,t),Wn(Vi)===null&&t===Wn(vo)&&(ul?(Dv(cl),cl=-1):ul=!0,Cp(Ap,n-i))):(t.sortIndex=o,Sp(Vi,t),ll||Tp||(ll=!0,Ea||(Ea=!0,Ta()))),t};Ut.unstable_shouldYield=Nv;Ut.unstable_wrapCallback=function(t){var e=Oe;return function(){var n=Oe;Oe=e;try{return t.apply(this,arguments)}finally{Oe=n}}}});var Lv=Jn((T_,zv)=>{"use strict";zv.exports=Vv()});var Uv=Jn(Ne=>{"use strict";var fR=ot();function Bv(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function xo(){}var _e={d:{f:xo,r:function(){throw Error(Bv(522))},D:xo,C:xo,L:xo,m:xo,X:xo,S:xo,M:xo},p:0,findDOMNode:null},mR=Symbol.for("react.portal"),dR=Symbol.for("react.recoverable"),_v=Symbol.for("react.optimistic_key");function pR(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mR,key:i==null?null:i===_v?_v:""+i,children:t,containerInfo:e,implementation:n}}var fl=fR.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function zc(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_e;Ne.browser=function(t){return{$$typeof:dR,_reason:t}};Ne.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Bv(299));return pR(t,e,null,n)};Ne.flushSync=function(t){var e=fl.T,n=_e.p;try{if(fl.T=null,_e.p=2,t)return t()}finally{fl.T=e,_e.p=n,_e.d.f()}};Ne.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,_e.d.C(t,e))};Ne.prefetchDNS=function(t){typeof t=="string"&&_e.d.D(t)};Ne.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,i=zc(n,e.crossOrigin),o=typeof e.integrity=="string"?e.integrity:void 0,r=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?_e.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:r}):n==="script"&&_e.d.X(t,{crossOrigin:i,integrity:o,fetchPriority:r,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Ne.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=zc(e.as,e.crossOrigin);_e.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&_e.d.M(t)};Ne.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,i=zc(n,e.crossOrigin);_e.d.L(t,n,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Ne.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=zc(e.as,e.crossOrigin);_e.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else _e.d.m(t)};Ne.requestFormReset=function(t){_e.d.r(t)};Ne.unstable_batchedUpdates=function(t,e){return t(e)};Ne.useFormState=function(t,e,n){return fl.H.useFormState(t,e,n)};Ne.useFormStatus=function(){return fl.H.useHostTransitionStatus()};Ne.version="19.3.1"});var wp=Jn((A_,Pv)=>{"use strict";function Hv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hv)}catch(t){console.error(t)}}Hv(),Pv.exports=Uv()});var CT=Jn(hm=>{"use strict";var ae=Lv(),Ab=ot(),hR=wp();function R(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Cb(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Wl(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function wb(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Mb(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Gv(t){if(Wl(t)!==t)throw Error(R(188))}function gR(t){var e=t.alternate;if(!e){if(e=Wl(t),e===null)throw Error(R(188));return e!==t?null:t}for(var n=t,i=e;;){var o=n.return;if(o===null)break;var r=o.alternate;if(r===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return Gv(o),t;if(r===i)return Gv(o),e;r=r.sibling}throw Error(R(188))}if(n.return!==i.return)n=o,i=r;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,i=r;break}if(s===i){a=!0,i=o,n=r;break}s=s.sibling}if(!a){for(s=r.child;s;){if(s===n){a=!0,n=r,i=o;break}if(s===i){a=!0,i=r,n=o;break}s=s.sibling}if(!a)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?t:e}function Db(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Db(t),e!==null)return e;t=t.sibling}return null}function Je(t,e,n,i,o,r){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,i,o,r)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Je(t.child,e,n,i,o,r))return!0;t=t.sibling}return!1}function _r(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function jv(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function Rb(t){var e=[null,null],n=_r(t);return n===null||Ob(e,t,n.child,{foundSelf:!1}),e}function Ob(t,e,n,i){for(;n!==null;){if(n===e)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Ob(t,e,n.child,i))return!0;n=n.sibling}return!1}function re(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(R(559))}}var Oa=null,oh=null;function yR(t,e,n){return t===n?!0:t===e?(Oa=t,!0):!1}function vR(t,e,n){return t===n?(oh=t,!1):t===e?(oh!==null&&(Oa=t),!0):!1}function Yv(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function rh(t,e,n){for(var i=0,o=t;o;o=n(o))i++;o=0;for(var r=e;r;r=n(r))o++;for(;0<i-o;)t=n(t),i--;for(;0<o-i;)e=n(e),o--;for(;i--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var Ot=Object.assign,xR=Symbol.for("react.element"),Lc=Symbol.for("react.transitional.element"),vl=Symbol.for("react.portal"),Na=Symbol.for("react.fragment"),Nb=Symbol.for("react.strict_mode"),ah=Symbol.for("react.profiler"),Vb=Symbol.for("react.consumer"),oi=Symbol.for("react.context"),hg=Symbol.for("react.forward_ref"),sh=Symbol.for("react.suspense"),lh=Symbol.for("react.suspense_list"),gg=Symbol.for("react.memo"),Eo=Symbol.for("react.lazy"),uh=Symbol.for("react.activity"),bR=Symbol.for("react.legacy_hidden"),SR=Symbol.for("react.memo_cache_sentinel"),ch=Symbol.for("react.view_transition"),TR=Symbol.for("react.recoverable"),qv=Symbol.iterator;function ml(t){return t===null||typeof t!="object"?null:(t=qv&&t[qv]||t["@@iterator"],typeof t=="function"?t:null)}var ER=Symbol.for("react.client.reference");function fh(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ER?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Na:return"Fragment";case ah:return"Profiler";case Nb:return"StrictMode";case sh:return"Suspense";case lh:return"SuspenseList";case uh:return"Activity";case ch:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case vl:return"Portal";case oi:return t.displayName||"Context";case Vb:return(t._context.displayName||"Context")+".Consumer";case hg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case gg:return e=t.displayName||null,e!==null?e:fh(t.type)||"Memo";case Eo:e=t._payload,t=t._init;try{return fh(t(e))}catch{}}return null}var xl=Array.isArray,nt=Ab.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,St=hR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Tr={pending:!1,data:null,method:null,action:null},mh=[],Va=-1;function fi(t){return{current:t}}function Ee(t){0>Va||(t.current=mh[Va],mh[Va]=null,Va--)}function _t(t,e){Va++,mh[Va]=t.current,t.current=e}var li=fi(null),Bl=fi(null),Vo=fi(null),Sf=fi(null);function Tf(t,e){switch(_t(Vo,e),_t(Bl,t),_t(li,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ib(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ib(e),t=tT(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ee(li),_t(li,t)}function Wa(){Ee(li),Ee(Bl),Ee(Vo)}function dh(t){var e=t.memoizedState;e!==null&&(ls._currentValue=e.memoizedState,_t(Sf,t)),e=li.current;var n=tT(e,t.type);e!==n&&(_t(Bl,t),_t(li,n))}function Ef(t){Bl.current===t&&(Ee(li),Ee(Bl)),Sf.current===t&&(Ee(Sf),ls._currentValue=Tr)}var Mp,kv;function So(t){if(Mp===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Mp=e&&e[1]||"",kv=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Mp+t+
|
|
3
|
+
`+Mp+t+kv}var Dp=!1;function Rp(t,e){if(!t||Dp)return"";Dp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(g){var m=g}Reflect.construct(t,[],f)}else{try{f.call()}catch(g){m=g}f=!1;try{var d=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),f=!0,new t}finally{f&&(d!==void 0?Object.defineProperty(t.prototype,"props",d):delete t.prototype.props)}}}else{try{throw Error()}catch(g){m=g}(f=t())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(g){if(g&&m&&typeof g.stack=="string")return[g.stack,m.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),a=r[0],s=r[1];if(a&&s){var l=a.split(`
|
|
4
4
|
`),u=s.split(`
|
|
5
5
|
`);for(o=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(i===l.length||o===u.length)for(i=l.length-1,o=u.length-1;1<=i&&0<=o&&l[i]!==u[o];)o--;for(;1<=i&&0<=o;i--,o--)if(l[i]!==u[o]){if(i!==1||o!==1)do if(i--,o--,0>o||l[i]!==u[o]){var c=`
|
|
6
|
-
`+l[i].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=i&&0<=o);break}}}finally{Dp=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?
|
|
6
|
+
`+l[i].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=i&&0<=o);break}}}finally{Dp=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?So(n):""}function AR(t,e){switch(t.tag){case 26:case 27:case 5:return So(t.type);case 16:return So("Lazy");case 13:return t.child!==e&&e!==null?So("Suspense Fallback"):So("Suspense");case 19:return So("SuspenseList");case 0:case 15:return Rp(t.type,!1);case 11:return Rp(t.type.render,!1);case 1:return Rp(t.type,!0);case 31:return So("Activity");case 30:return So("ViewTransition");default:return""}}function Xv(t){try{var e="",n=null;do e+=AR(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var ph=Object.prototype.hasOwnProperty,yg=ae.unstable_scheduleCallback,Op=ae.unstable_cancelCallback,SR=ae.unstable_shouldYield,TR=ae.unstable_requestPaint,ln=ae.unstable_now,ER=ae.unstable_getCurrentPriorityLevel,Nb=ae.unstable_ImmediatePriority,Vb=ae.unstable_UserBlockingPriority,Cf=ae.unstable_NormalPriority,AR=ae.unstable_LowPriority,zb=ae.unstable_IdlePriority,CR=ae.log,wR=ae.unstable_setDisableYieldValue,tu=null,un=null;function Co(t){if(typeof CR=="function"&&wR(t),un&&typeof un.setStrictMode=="function")try{un.setStrictMode(tu,t)}catch{}}var cn=Math.clz32?Math.clz32:RR,MR=Math.log,DR=Math.LN2;function RR(t){return t>>>=0,t===0?32:31-(MR(t)/DR|0)|0}var Bc=256,Uc=262144,Hc=4194304;function gr(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jf(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,r=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var s=i&134217727;return s!==0?(i=s&~r,i!==0?o=gr(i):(a&=s,a!==0?o=gr(a):n||(n=s&~t,n!==0&&(o=gr(n))))):(s=i&~r,s!==0?o=gr(s):a!==0?o=gr(a):n||(n=i&~t,n!==0&&(o=gr(n)))),o===0?0:e!==0&&e!==o&&(e&r)===0&&(r=o&-o,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:o}function eu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Lb(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-cn(n),o=1<<i;e|=t[i],n&=~o}return e}function OR(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 _b(){var t=Hc;return Hc<<=1,(Hc&62914560)===0&&(Hc=4194304),t}function Np(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function nu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function NR(t,e,n,i,o,r){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,u=t.hiddenUpdates;for(n=a&~n;0<n;){var c=31-cn(n),m=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 d=f[c];d!==null&&(d.lane&=-536870913)}n&=~m}i!==0&&Bb(t,i,0),r!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=r&~(a&~e))}function Bb(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-cn(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Ub(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-cn(n),o=1<<i;o&e|t[i]&e&&(t[i]|=e),n&=~o}}function Hb(t,e){var n=e&-e;return n=(n&42)!==0?1:vg(n),(n&(t.suspendedLanes|e))!==0?0:n}function vg(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function xg(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pb(){var t=St.p;return t!==0?t:(t=window.event,t===void 0?32:bT(t.type))}function kv(t,e){var n=St.p;try{return St.p=t,e()}finally{St.p=n}}var ki=Math.random().toString(36).slice(2),Se="__reactFiber$"+ki,We="__reactProps$"+ki,fs="__reactContainer$"+ki,Xv="__reactEvents$"+ki,VR="__reactListeners$"+ki,zR="__reactHandles$"+ki,Kv="__reactResources$"+ki,iu="__reactMarker$"+ki,wf="__reactLoad$"+ki;function Wf(t){delete t[Se],delete t[We],delete t[VR],delete t[zR]}function xr(t){var e;if(e=t[Se])return e;for(var n=t.parentNode;n;){if(e=n[fs]||n[Se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ub(t);t!==null;){if(n=t[Se])return n;t=ub(t)}return e}t=n,n=t.parentNode}return null}function ms(t){if(t=t[Se]||t[fs]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Sl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(R(33))}function Ya(t){var e=t[Kv];return e||(e=t[Kv]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function pe(t){t[iu]=!0}function Gb(t){t[wf]=void 0}var jb=new Set,Yb={};function _r(t,e){$a(t,e),$a(t+"Capture",e)}function $a(t,e){for(Yb[t]=e,t=0;t<e.length;t++)jb.add(e[t])}var LR=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]*$"),Zv={},Qv={};function _R(t){return ph.call(Qv,t)?!0:ph.call(Zv,t)?!1:LR.test(t)?Qv[t]=!0:(Zv[t]=!0,!1)}var xt=!1;function Fv(){var t=xt;return xt=!1,t}function nf(t,e,n){if(_R(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Pc(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,n)}}function Vi(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,i)}}function on(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qb(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function BR(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,r=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,r.call(this,a)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function hh(t){if(!t._valueTracker){var e=qb(t)?"checked":"value";t._valueTracker=BR(t,e,""+t[e])}}function kb(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=qb(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var UR=/[\n"\\]/g;function wn(t){return t.replace(UR,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gh(t,e,n,i,o,r,a,s){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+on(e)):t.value!==""+on(e)&&(t.value=""+on(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?a==="number"&&t.value==e?Vp(t,on(t.value)):Vp(t,on(e)):n!=null?Vp(t,on(n)):i!=null&&t.removeAttribute("value"),o==null&&r!=null&&(t.defaultChecked=!!r),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+on(s):t.removeAttribute("name")}function Xb(t,e,n,i,o,r,a,s){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){hh(t);return}n=n!=null?""+on(n):"",e=e!=null?""+on(e):n,s||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=s?t.checked:!!i,t.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a),hh(t)}function Vp(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function qa(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&i&&(t[n].defaultSelected=!0)}else{for(n=""+on(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Kb(t,e,n){if(e!=null&&(e=""+on(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+on(n):""}function Zb(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(R(92));if(bl(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=on(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),hh(t)}function ts(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var HR=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 Iv(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||HR.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Qb(t,e,n){if(e!=null&&typeof e!="object")throw Error(R(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="",xt=!0);for(var o in e)i=e[o],e.hasOwnProperty(o)&&n[o]!==i&&(Iv(t,o,i),xt=!0)}else for(var r in e)e.hasOwnProperty(r)&&Iv(t,r,e[r])}function bg(t){if(t.indexOf("-")===-1)return!1;switch(t){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 PR=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"]]),GR=/^[\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 of(t){return GR.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ri(){}var yh=null;function Sg(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var za=null,ka=null;function Jv(t){var e=ms(t);if(e&&(t=e.stateNode)){var n=t[We]||null;t:switch(t=e.stateNode,e.type){case"input":if(gh(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+wn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=i[We]||null;if(!o)throw Error(R(90));gh(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&kb(i)}break t;case"textarea":Kb(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&qa(t,!!n.multiple,e,!1)}}}var zp=!1;function Fb(t,e,n){if(zp)return t(e,n);zp=!0;try{var i=t(e);return i}finally{if(zp=!1,(za!==null||ka!==null)&&(mm(),za&&(e=za,t=ka,ka=za=null,Jv(e),t)))for(e=0;e<t.length;e++)Jv(t[e])}}function Hl(t,e){var n=t.stateNode;if(n===null)return null;var i=n[We]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(R(231,e,typeof n));return n}var Hi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vh=!1;if(Hi)try{Aa={},Object.defineProperty(Aa,"passive",{get:function(){vh=!0}}),window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{vh=!1}var Aa,wo=null,Tg=null,rf=null;function Ib(){if(rf)return rf;var t,e=Tg,n=e.length,i,o="value"in wo?wo.value:wo.textContent,r=o.length;for(t=0;t<n&&e[t]===o[t];t++);var a=n-t;for(i=1;i<=a&&e[n-i]===o[r-i];i++);return rf=o.slice(t,1<i?1-i:void 0)}function af(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Gc(){return!0}function Wv(){return!1}function Pe(t){function e(n,i,o,r,a){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=r,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(r):r[s]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Gc:Wv,this.isPropagationStopped=Wv,this}return Ot(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gc)},persist:function(){},isPersistent:Gc}),e}var Ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$f=Pe(Ko),ou=Ot({},Ko,{view:0,detail:0}),jR=Pe(ou),Lp,_p,pl,tm=Ot({},ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eg,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pl&&(pl&&t.type==="mousemove"?(Lp=t.screenX-pl.screenX,_p=t.screenY-pl.screenY):_p=Lp=0,pl=t),Lp)},movementY:function(t){return"movementY"in t?t.movementY:_p}}),$v=Pe(tm),YR=Ot({},tm,{dataTransfer:0}),qR=Pe(YR),kR=Ot({},ou,{relatedTarget:0}),Bp=Pe(kR),XR=Ot({},Ko,{animationName:0,elapsedTime:0,pseudoElement:0}),KR=Pe(XR),ZR=Ot({},Ko,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),QR=Pe(ZR),FR=Ot({},Ko,{data:0}),tx=Pe(FR),IR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JR={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"},WR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $R(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=WR[t])?!!e[t]:!1}function Eg(){return $R}var tO=Ot({},ou,{key:function(t){if(t.key){var e=IR[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=af(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?JR[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eg,charCode:function(t){return t.type==="keypress"?af(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?af(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),eO=Pe(tO),nO=Ot({},tm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ex=Pe(nO),iO=Ot({},Ko,{submitter:0}),oO=Pe(iO),rO=Ot({},ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eg}),aO=Pe(rO),sO=Ot({},Ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),lO=Pe(sO),uO=Ot({},tm,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),cO=Pe(uO),fO=Ot({},Ko,{newState:0,oldState:0,source:0}),mO=Pe(fO),dO=[9,13,27,32],Ag=Hi&&"CompositionEvent"in window,Al=null;Hi&&"documentMode"in document&&(Al=document.documentMode);var pO=Hi&&"TextEvent"in window&&!Al,Jb=Hi&&(!Ag||Al&&8<Al&&11>=Al),nx=" ",ix=!1;function Wb(t,e){switch(t){case"keyup":return dO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $b(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function hO(t,e){switch(t){case"compositionend":return $b(e);case"keypress":return e.which!==32?null:(ix=!0,nx);case"textInput":return t=e.data,t===nx&&ix?null:t;default:return null}}function gO(t,e){if(La)return t==="compositionend"||!Ag&&Wb(t,e)?(t=Ib(),rf=Tg=wo=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Jb&&e.locale!=="ko"?null:e.data;default:return null}}var yO={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 ox(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yO[t.type]:e==="textarea"}function t1(t,e,n,i){za?ka?ka.push(i):ka=[i]:za=i,e=Qf(e,"onChange"),0<e.length&&(n=new $f("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Cl=null,Pl=null;function vO(t){FS(t,0)}function em(t){var e=Sl(t);if(kb(e))return t}function rx(t,e){if(t==="change")return e}var e1=!1;Hi&&(Hi?(Yc="oninput"in document,Yc||(Up=document.createElement("div"),Up.setAttribute("oninput","return;"),Yc=typeof Up.oninput=="function"),jc=Yc):jc=!1,e1=jc&&(!document.documentMode||9<document.documentMode));var jc,Yc,Up;function ax(){Cl&&(Cl.detachEvent("onpropertychange",n1),Pl=Cl=null)}function n1(t){if(t.propertyName==="value"&&em(Pl)){var e=[];t1(e,Pl,t,Sg(t)),Fb(vO,e)}}function xO(t,e,n){t==="focusin"?(ax(),Cl=e,Pl=n,Cl.attachEvent("onpropertychange",n1)):t==="focusout"&&ax()}function bO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return em(Pl)}function SO(t,e){if(t==="click")return em(e)}function TO(t,e){if(t==="input"||t==="change")return em(e)}function EO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var mn=typeof Object.is=="function"?Object.is:EO;function Gl(t,e){if(mn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!ph.call(e,o)||!mn(t[o],e[o]))return!1}return!0}function xh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function sx(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function lx(t,e){var n=sx(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=sx(n)}}function i1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?i1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function o1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=xh(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=xh(t.document)}return e}function Cg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var AO=Hi&&"documentMode"in document&&11>=document.documentMode,_a=null,bh=null,wl=null,Sh=!1;function ux(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sh||_a==null||_a!==xh(i)||(i=_a,"selectionStart"in i&&Cg(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),wl&&Gl(wl,i)||(wl=i,i=Qf(bh,"onSelect"),0<i.length&&(e=new $f("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=_a)))}function pr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ba={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},Hp={},r1={};Hi&&(r1=document.createElement("div").style,"AnimationEvent"in window||(delete Ba.animationend.animation,delete Ba.animationiteration.animation,delete Ba.animationstart.animation),"TransitionEvent"in window||delete Ba.transitionend.transition);function Br(t){if(Hp[t])return Hp[t];if(!Ba[t])return t;var e=Ba[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in r1)return Hp[t]=e[n];return t}var a1=Br("animationend"),s1=Br("animationiteration"),l1=Br("animationstart"),CO=Br("transitionrun"),wO=Br("transitionstart"),MO=Br("transitioncancel"),u1=Br("transitionend"),c1=new Map,Th="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(" ");Th.push("scrollEnd");function qn(t,e){c1.set(t,e),_r(e,[t])}var DO=0;function Pi(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Yn.identifierPrefix;var n=DO++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function cx(t){if(t==null||typeof t=="string")return t;var e=null,n=Ja;if(n!==null)for(var i=0;i<n.length;i++){var o=t[n[i]];if(o!=null){if(o==="none")return"none";e=e==null?o:e+(" "+o)}}return e??t.default}function Xi(t,e){return t=cx(t),e=cx(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Mf=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},En=[],Ua=0,wg=0;function nm(){for(var t=Ua,e=wg=Ua=0;e<t;){var n=En[e];En[e++]=null;var i=En[e];En[e++]=null;var o=En[e];En[e++]=null;var r=En[e];if(En[e++]=null,i!==null&&o!==null){var a=i.pending;a===null?o.next=o:(o.next=a.next,a.next=o),i.pending=o}r!==0&&f1(n,o,r)}}function im(t,e,n,i){En[Ua++]=t,En[Ua++]=e,En[Ua++]=n,En[Ua++]=i,wg|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Mg(t,e,n,i){return im(t,e,n,i),Df(t)}function Ur(t,e){return im(t,null,null,e),Df(t)}function f1(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var o=!1,r=t.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(o=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,o&&e!==null&&(o=31-cn(n),t=r.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=n|536870912),r):null}function Df(t){if(50<Bl)throw Bl=0,gf=null,Error(R(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ha={};function RO(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(t,e,n,i){return new RO(t,e,n,i)}function Dg(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Bi(t,e){var n=t.alternate;return n===null?(n=Fe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&1206910976,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function m1(t,e){t.flags&=1206910978;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function sf(t,e,n,i,o,r){var a=0;if(i=t,typeof i=="function")Dg(i)&&(a=1);else if(typeof i=="string")a=e2(t,n,li.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(i){case uh:return t=Fe(31,n,e,o),t.elementType=uh,t.lanes=r,t;case Na:return Tr(n.children,o,r,e);case Rb:a=8,o|=24;break;case ah:return t=Fe(12,n,e,o|2),t.elementType=ah,t.lanes=r,t;case sh:return t=Fe(13,n,e,o),t.elementType=sh,t.lanes=r,t;case lh:return t=Fe(19,n,e,o),t.elementType=lh,t.lanes=r,t;case gR:case ch:return t=o|32,t=Fe(30,n,e,t),t.elementType=ch,t.lanes=r,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case oi:a=10;break t;case Ob:a=9;break t;case hg:a=11;break t;case gg:a=14;break t;case To:a=16,i=null;break t}a=29,n=Error(R(130,t===null?"null":typeof t,"")),i=null}return e=Fe(a,n,e,o),e.elementType=t,e.type=i,e.lanes=r,e}function Tr(t,e,n,i){return t=Fe(7,t,i,e),t.lanes=n,t}function Pp(t,e,n){return t=Fe(6,t,null,e),t.lanes=n,t}function d1(t){var e=Fe(18,null,null,0);return e.stateNode=t,e}function Gp(t,e,n){return e=Fe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var fx=new WeakMap;function Mn(t,e){if(typeof t=="object"&&t!==null){var n=fx.get(t);return n!==void 0?n:(e={value:t,source:e,stack:qv(e)},fx.set(t,e),e)}return{value:t,source:e,stack:qv(e)}}var Pa=[],Ga=0,Rf=null,jl=0,An=[],Cn=0,jo=null,ai=1,si="";function Li(t,e){Pa[Ga++]=jl,Pa[Ga++]=Rf,Rf=t,jl=e}function p1(t,e,n){An[Cn++]=ai,An[Cn++]=si,An[Cn++]=jo,jo=t;var i=ai;t=si;var o=32-cn(i)-1;i&=~(1<<o),n+=1;var r=32-cn(e)+o;if(30<r){var a=o-o%5;r=(i&(1<<a)-1).toString(32),i>>=a,o-=a,ai=1<<32-cn(e)+o|n<<o|i,si=r+t}else ai=1<<r|n<<o|i,si=t}function om(t){t.return!==null&&(Li(t,1),p1(t,1,0))}function Rg(t){for(;t===Rf;)Rf=Pa[--Ga],Pa[Ga]=null,jl=Pa[--Ga],Pa[Ga]=null;for(;t===jo;)jo=An[--Cn],An[Cn]=null,si=An[--Cn],An[Cn]=null,ai=An[--Cn],An[Cn]=null}function h1(t,e){An[Cn++]=ai,An[Cn++]=si,An[Cn++]=jo,ai=e.id,si=e.overflow,jo=t}var he=null,Lt=null,mt=!1,Vo=null,Dn=!1,Eh=Error(R(519));function Yo(t){var e=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yl(Mn(e,t)),Eh}function mx(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[Se]=t,e[We]=i,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<Kl.length;n++)pt(Kl[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Xb(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Zb(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||JS(e.textContent,n)?(i.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),i.onScroll!=null&&pt("scroll",e),i.onScrollEnd!=null&&pt("scrollend",e),i.onClick!=null&&(e.onclick=ri),e=!0):e=!1,e||Yo(t,!0)}function Of(t){for(he=t.return;he;)switch(he.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:he=he.return}}function Ca(t){if(t!==he)return!1;if(!mt)return Of(t),mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||sg(t.type,t.memoizedProps)),n=!n),n&&Lt&&Yo(t),Of(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));Lt=lb(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));Lt=lb(t)}else e===27?(e=Lt,Zo(t.type)?(t=fg,fg=null,Lt=t):Lt=e):Lt=he?Rn(t.stateNode.nextSibling):null;return!0}function wr(){Lt=he=null,mt=!1}function jp(){var t=Vo;return t!==null&&(Ze===null?Ze=t:Ze.push.apply(Ze,t),Vo=null),t}function Yl(t){Vo===null?Vo=[t]:Vo.push(t)}var Ah=fi(null),Hr=null,_i=null;function Mo(t,e,n){_t(Ah,e._currentValue),e._currentValue=n}function Ui(t){t._currentValue=Ah.current,Ee(Ah)}function lf(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Ch(t,e,n,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var r=o.dependencies;if(r!==null){var a=o.child;r=r.firstContext;t:for(;r!==null;){var s=r;r=o;for(var l=0;l<e.length;l++)if(s.context===e[l]){r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),lf(r.return,n,t),i||(a=null);break t}r=s.next}}else if(o.tag===18){if(a=o.return,a===null)throw Error(R(341));a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),lf(a,n,t),a=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),lf(o.return,n,t),a=o.child,a=a!==null?a.sibling:null):a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}}function Mr(t,e,n,i){t=null;for(var o=e,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var a=o.alternate;if(a===null)throw Error(R(387));if(a=a.memoizedProps,a!==null){var s=o.type;mn(o.pendingProps.value,a.value)||(t!==null?t.push(s):t=[s])}}else if(o===Tf.current){if(a=o.alternate,a===null)throw Error(R(387));a.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(ls):t=[ls])}o=o.return}return t!==null&&Ch(e,t,n,i),e.flags|=262144,t!==null}function Nf(t){for(t=t.firstContext;t!==null;){if(!mn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Dr(t){Hr=t,_i=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Te(t){return g1(Hr,t)}function qc(t,e){return Hr===null&&Dr(t),g1(t,e)}function g1(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},_i===null){if(t===null)throw Error(R(308));_i=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else _i=_i.next=e;return n}var OO=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},NO=ae.unstable_scheduleCallback,VO=ae.unstable_NormalPriority,te={$$typeof:oi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Og(){return{controller:new OO,data:new Map,refCount:0}}function ru(t){t.refCount--,t.refCount===0&&NO(VO,function(){t.controller.abort()})}function dx(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var i=e[t];n.indexOf(i)===-1&&n.push(i)}}}var Tl=null;function zO(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Ml=null,wh=0,Rr=0,Xa=null;function LO(t,e){if(Ml===null){var n=Ml=[];wh=0,Rr=oy(),Xa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return wh++,e.then(px,px),e}function px(){if(--wh===0&&(Tl=null,Ml!==null)){Xa!==null&&(Xa.status="fulfilled");var t=Ml;Ml=null,Rr=0,Xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _O(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var hx=nt.S;nt.S=function(t,e){if(LS=ln(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&LO(t,e),Tl!==null)for(var n=rs;n!==null;)dx(n,Tl),n=n.next;if(n=t.types,n!==null){for(var i=rs;i!==null;)dx(i,n),i=i.next;if(Rr!==0){i=Tl,i===null&&(i=Tl=[]);for(var o=0;o<n.length;o++){var r=n[o];i.indexOf(r)===-1&&i.push(r)}}}hx!==null&&hx(t,e)};var Er=fi(null);function Ng(){var t=Er.current;return t!==null?t:Rt.pooledCache}function uf(t,e){e===null?_t(Er,Er.current):_t(Er,e.pool)}function y1(){var t=Ng();return t===null?null:{parent:te._currentValue,pool:t}}var ds=Error(R(460)),Vg=Error(R(474)),rm=Error(R(542)),Vf={then:function(){}};function gx(t){return t=t.status,t==="fulfilled"||t==="rejected"}function v1(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ri,ri),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vx(t),t===void 0&&!("reason"in e)?Error(R(600)):t;default:if(typeof e.status=="string")e.then(ri,ri);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(R(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vx(t),t}throw Ar=e,ds}}function yr(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ar=n,ds):n}}var Ar=null;function yx(){if(Ar===null)throw Error(R(459));var t=Ar;return Ar=null,t}function vx(t){if(t===ds||t===rm)throw Error(R(483))}var Ka=null,ql=0;function kc(t){var e=ql;return ql+=1,Ka===null&&(Ka=[]),v1(Ka,t,e)}function xo(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Xc(t,e){throw e.$$typeof===hR?Error(R(525)):(t=Object.prototype.toString.call(e),Error(R(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function x1(t){function e(p,h){if(t){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function n(p,h){if(!t)return null;for(;h!==null;)e(p,h),h=h.sibling;return null}function i(p){for(var h=new Map;p!==null;)p.key===null?h.set(p.index,p):h.set(p.key,p),p=p.sibling;return h}function o(p,h){return p=Bi(p,h),p.index=0,p.sibling=null,p}function r(p,h,y){return p.index=y,t?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=134217730,h)):(p.flags|=1048576,h)}function a(p){return t&&p.alternate===null&&(p.flags|=134217730),p}function s(p,h,y,b){return h===null||h.tag!==6?(h=Pp(y,p.mode,b),h.return=p,h):(h=o(h,y),h.return=p,h)}function l(p,h,y,b){var E=y.type;return E===Na?(p=c(p,h,y.props.children,b,y.key),xo(p,y),p):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===To&&yr(E)===h.type)?(h=o(h,y.props),xo(h,y),h.return=p,h):(h=sf(y.type,y.key,y.props,null,p.mode,b),xo(h,y),h.return=p,h)}function u(p,h,y,b){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=Gp(y,p.mode,b),h.return=p,h):(h=o(h,y.children||[]),h.return=p,h)}function c(p,h,y,b,E){return h===null||h.tag!==7?(h=Tr(y,p.mode,b,E),h.return=p,h):(h=o(h,y),h.return=p,h)}function m(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Pp(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case _c:return y=sf(h.type,h.key,h.props,null,p.mode,y),xo(y,h),y.return=p,y;case xl:return h=Gp(h,p.mode,y),h.return=p,h;case To:return h=yr(h),m(p,h,y)}if(bl(h)||dl(h))return h=Tr(h,p.mode,y,null),h.return=p,h;if(typeof h.then=="function")return m(p,kc(h),y);if(h.$$typeof===oi)return m(p,qc(p,h),y);Xc(p,h)}return null}function f(p,h,y,b){var E=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return E!==null?null:s(p,h,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _c:return y.key===E?l(p,h,y,b):null;case xl:return y.key===E?u(p,h,y,b):null;case To:return y=yr(y),f(p,h,y,b)}if(bl(y)||dl(y))return E!==null?null:c(p,h,y,b,null);if(typeof y.then=="function")return f(p,h,kc(y),b);if(y.$$typeof===oi)return f(p,h,qc(p,y),b);Xc(p,y)}return null}function d(p,h,y,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return p=p.get(y)||null,s(h,p,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _c:return p=p.get(b.key===null?y:b.key)||null,l(h,p,b,E);case xl:return p=p.get(b.key===null?y:b.key)||null,u(h,p,b,E);case To:return b=yr(b),d(p,h,y,b,E)}if(bl(b)||dl(b))return p=p.get(y)||null,c(h,p,b,E,null);if(typeof b.then=="function")return d(p,h,y,kc(b),E);if(b.$$typeof===oi)return d(p,h,y,qc(h,b),E);Xc(h,b)}return null}function g(p,h,y,b){for(var E=null,C=null,T=h,S=h=0,M=null;T!==null&&S<y.length;S++){T.index>S?(M=T,T=null):M=T.sibling;var D=f(p,T,y[S],b);if(D===null){T===null&&(T=M);break}t&&T&&D.alternate===null&&e(p,T),h=r(D,h,S),C===null?E=D:C.sibling=D,C=D,T=M}if(S===y.length)return n(p,T),mt&&Li(p,S),E;if(T===null){for(;S<y.length;S++)T=m(p,y[S],b),T!==null&&(h=r(T,h,S),C===null?E=T:C.sibling=T,C=T);return mt&&Li(p,S),E}for(T=i(T);S<y.length;S++)M=d(T,p,S,y[S],b),M!==null&&(t&&(D=M.alternate,D!==null&&T.delete(D.key===null?S:D.key)),h=r(M,h,S),C===null?E=M:C.sibling=M,C=M);return t&&T.forEach(function(L){return e(p,L)}),mt&&Li(p,S),E}function v(p,h,y,b){if(y==null)throw Error(R(151));for(var E=null,C=null,T=h,S=h=0,M=null,D=y.next();T!==null&&!D.done;S++,D=y.next()){T.index>S?(M=T,T=null):M=T.sibling;var L=f(p,T,D.value,b);if(L===null){T===null&&(T=M);break}t&&T&&L.alternate===null&&e(p,T),h=r(L,h,S),C===null?E=L:C.sibling=L,C=L,T=M}if(D.done)return n(p,T),mt&&Li(p,S),E;if(T===null){for(;!D.done;S++,D=y.next())D=m(p,D.value,b),D!==null&&(h=r(D,h,S),C===null?E=D:C.sibling=D,C=D);return mt&&Li(p,S),E}for(T=i(T);!D.done;S++,D=y.next())D=d(T,p,S,D.value,b),D!==null&&(t&&(M=D.alternate,M!==null&&T.delete(M.key===null?S:M.key)),h=r(D,h,S),C===null?E=D:C.sibling=D,C=D);return t&&T.forEach(function(P){return e(p,P)}),mt&&Li(p,S),E}function x(p,h,y,b){if(typeof y=="object"&&y!==null&&y.type===Na&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case _c:t:{for(var E=y.key;h!==null;){if(h.key===E){if(E=y.type,E===Na){if(h.tag===7){n(p,h.sibling),b=o(h,y.props.children),xo(b,y),b.return=p,p=b;break t}}else if(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===To&&yr(E)===h.type){n(p,h.sibling),b=o(h,y.props),xo(b,y),b.return=p,p=b;break t}n(p,h);break}else e(p,h);h=h.sibling}y.type===Na?(b=Tr(y.props.children,p.mode,b,y.key),xo(b,y),b.return=p,p=b):(b=sf(y.type,y.key,y.props,null,p.mode,b),xo(b,y),b.return=p,p=b)}return a(p);case xl:t:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),b=o(h,y.children||[]),b.return=p,p=b;break t}else{n(p,h);break}else e(p,h);h=h.sibling}b=Gp(y,p.mode,b),b.return=p,p=b}return a(p);case To:return y=yr(y),x(p,h,y,b)}if(bl(y))return g(p,h,y,b);if(dl(y)){if(E=dl(y),typeof E!="function")throw Error(R(150));return y=E.call(y),v(p,h,y,b)}if(typeof y.then=="function")return x(p,h,kc(y),b);if(y.$$typeof===oi)return x(p,h,qc(p,y),b);Xc(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),b=o(h,y),b.return=p,p=b):(n(p,h),b=Pp(y,p.mode,b),b.return=p,p=b),a(p)):n(p,h)}return function(p,h,y,b){try{ql=0;var E=x(p,h,y,b);return Ka=null,E}catch(T){if(T===ds||T===rm)throw T;var C=Fe(29,T,null,p.mode);return C.lanes=b,C.return=p,C}}}var Or=x1(!0),b1=x1(!1),Eo=!1;function zg(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mh(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zo(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Lo(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(bt&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=Df(t),f1(t,null,n),e}return im(t,i,e,n),Df(t)}function Dl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Ub(t,n)}}function Yp(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?o=r=a:r=r.next=a,n=n.next}while(n!==null);r===null?o=r=e:r=r.next=e}else o=r=e;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Dh=!1;function Rl(){if(Dh){var t=Xa;if(t!==null)throw t}}function Ol(t,e,n,i){Dh=!1;var o=t.updateQueue;Eo=!1;var r=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?r=u:a.next=u,a=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(r!==null){var m=o.baseState;a=0,c=u=l=null,s=r;do{var f=s.lane&-536870913,d=f!==s.lane;if(d?(gt&f)===f:(i&f)===f){f!==0&&f===Rr&&(Dh=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var g=t,v=s;f=e;var x=n;switch(v.tag){case 1:if(g=v.payload,typeof g=="function"){m=g.call(x,m,f);break t}m=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(x,m,f):g,f==null)break t;m=Ot({},m,f);break t;case 2:Eo=!0}}f=s.callback,f!==null&&(t.flags|=64,d&&(t.flags|=8192),d=o.callbacks,d===null?o.callbacks=[f]:d.push(f))}else d={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=d,l=m):c=c.next=d,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);c===null&&(l=m),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,r===null&&(o.shared.lanes=0),Xo|=a,t.lanes=a,t.memoizedState=m}}function S1(t,e){if(typeof t!="function")throw Error(R(191,t));t.call(e)}function T1(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)S1(n[t],e)}var qo=fi(null),zf=fi(0);function xx(t,e){t=qi,_t(zf,t),_t(qo,e),qi=t|e.baseLanes}function Rh(){_t(zf,qi),_t(qo,qo.current)}function Lg(){qi=zf.current,Ee(qo),Ee(zf)}var we=fi(null),Ve=null;function _o(t){var e=t.alternate;_t(Ae,Ae.current&1),_t(we,t),Ve===null&&(e===null||qo.current!==null||e.memoizedState!==null)&&(Ve=t)}function Oh(t){_t(Ae,Ae.current),_t(we,t),Ve===null&&(Ve=t)}function E1(t){t.tag===22?(_t(Ae,Ae.current),_t(we,t),Ve===null&&(Ve=t)):Bo()}function Bo(){_t(Ae,Ae.current),_t(we,we.current)}function rn(t){Ee(we),Ve===t&&(Ve=null),Ee(Ae)}var Ae=fi(0);function kl(t,e){_t(we,we.current),_t(Ae,e)}function _g(t){Ee(Ae),Ee(we),Ve===t&&(Ve=null)}function Lf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cg(n)||ly(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Gi=0,ft=null,Mt=null,$t=null,_f=!1,Za=!1,Nr=!1,Bf=0,Xl=0,Qa=null,BO=0;function qt(){throw Error(R(321))}function Bg(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!mn(t[n],e[n]))return!1;return!0}function Ug(t,e,n,i,o,r){return Gi=r,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,nt.H=t===null||t.memoizedState===null?tS:eS,Nr=!1,r=n(i,o),Nr=!1,Za&&(r=C1(e,n,i,o)),A1(t),r}function A1(t){nt.H=Uf;var e=Mt!==null&&Mt.next!==null;if(Gi=0,$t=Mt=ft=null,_f=!1,Xl=0,Qa=null,e)throw Error(R(300));t===null||ee||(t=t.dependencies,t!==null&&Nf(t)&&(ee=!0))}function C1(t,e,n,i){ft=t;var o=0;do{if(Za&&(Qa=null),Xl=0,Za=!1,25<=o)throw Error(R(301));if(o+=1,$t=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}nt.H=kO,r=e(n,i)}while(Za);return r}function UO(){var t=nt.H,e=t.useState()[0];return e=typeof e.then=="function"?au(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Hg(){var t=Bf!==0;return Bf=0,t}function Pg(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Gg(t){if(_f){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_f=!1}Gi=0,$t=Mt=ft=null,Za=!1,Xl=Bf=0,Qa=null}function He(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?ft.memoizedState=$t=t:$t=$t.next=t,$t}function Kt(){if(Mt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=$t===null?ft.memoizedState:$t.next;if(e!==null)$t=e,Mt=t;else{if(t===null)throw ft.alternate===null?Error(R(467)):Error(R(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},$t===null?ft.memoizedState=$t=t:$t=$t.next=t}return $t}function am(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function au(t){var e=Xl;return Xl+=1,Qa===null&&(Qa=[]),t=v1(Qa,t,e),e=ft,($t===null?e.memoizedState:$t.next)===null&&(e=e.alternate,nt.H=e===null||e.memoizedState===null?tS:eS),t}function sm(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return au(t);if(t.$$typeof===vR)return;if(t.$$typeof===oi)return Te(t)}throw Error(R(438,String(t)))}function jg(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ft.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=am(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=yR;return e.index++,n}function ji(t,e){return typeof e=="function"?e(t):e}function cf(t){var e=Kt();return Yg(e,Mt,t)}function Yg(t,e,n){var i=t.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var o=t.baseQueue,r=i.pending;if(r!==null){if(o!==null){var a=o.next;o.next=r.next,r.next=a}e.baseQueue=o=r,i.pending=null}if(r=t.baseState,o===null)t.memoizedState=r;else{e=o.next;var s=a=null,l=null,u=e,c=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(gt&m)===m:(Gi&m)===m){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}),m===Rr&&(c=!0);else if((Gi&f)===f){u=u.next,f===Rr&&(c=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=m,a=r):l=l.next=m,ft.lanes|=f,Xo|=f;m=u.action,Nr&&n(r,m),r=u.hasEagerState?u.eagerState:n(r,m)}else f={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,a=r):l=l.next=f,ft.lanes|=m,Xo|=m;u=u.next}while(u!==null&&u!==e);if(l===null?a=r:l.next=s,!mn(r,t.memoizedState)&&(ee=!0,c&&(n=Xa,n!==null)))throw n;t.memoizedState=r,t.baseState=a,t.baseQueue=l,i.lastRenderedState=r}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function qp(t){var e=Kt(),n=e.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=t;var i=n.dispatch,o=n.pending,r=e.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do r=t(r,a.action),a=a.next;while(a!==o);mn(r,e.memoizedState)||(ee=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function w1(t,e,n){var i=ft,o=Kt(),r=mt;if(r){if(n===void 0)throw Error(R(407));n=n()}else n=e();var a=!mn((Mt||o).memoizedState,n);if(a&&(o.memoizedState=n,ee=!0),o=o.queue,qg(R1.bind(null,i,o,t),[t]),t=o.getSnapshot!==e||a||$t!==null&&($t.memoizedState.tag&1)!==0,es(t?9:8,{destroy:void 0},D1.bind(null,i,o,n,e),null),t){if(i.flags|=2048,Rt===null)throw Error(R(349));r||(Gi&127)!==0||M1(i,e,n)}return n}function M1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=am(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function D1(t,e,n,i){e.value=n,e.getSnapshot=i,O1(e)&&N1(t)}function R1(t,e,n){return n(function(){O1(e)&&N1(t)})}function O1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!mn(t,n)}catch{return!0}}function N1(t){var e=Ur(t,2);e!==null&&Ie(e,t,2)}function Nh(t){var e=He();if(typeof t=="function"){var n=t;if(t=n(),Nr){Co(!0);try{n()}finally{Co(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:t},e}function V1(t,e,n,i){return t.baseState=n,Yg(t,Mt,typeof i=="function"?i:ji)}function HO(t,e,n,i,o){if(um(t))throw Error(R(485));if(t=e.action,t!==null){var r={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){r.listeners.push(a)}};nt.T!==null?n(!0):r.isTransition=!1,i(r),n=e.pending,n===null?(r.next=e.pending=r,z1(e,r)):(r.next=n.next,e.pending=n.next=r)}}function z1(t,e){var n=e.action,i=e.payload,o=t.state;if(e.isTransition){var r=nt.T,a={};a.types=r!==null?r.types:null,nt.T=a;try{var s=n(o,i),l=nt.S;l!==null&&l(a,s),bx(t,e,s)}catch(u){Vh(t,e,u)}finally{r!==null&&a.types!==null&&(r.types=a.types),nt.T=r}}else try{r=n(o,i),bx(t,e,r)}catch(u){Vh(t,e,u)}}function bx(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Sx(t,e,i)},function(i){return Vh(t,e,i)}):Sx(t,e,n)}function Sx(t,e,n){e.status="fulfilled",e.value=n,L1(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,z1(t,n)))}function Vh(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,L1(e),e=e.next;while(e!==i)}t.action=null}function L1(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function _1(t,e){return e}function Tx(t,e){if(mt){var n=Rt.formState;if(n!==null){t:{var i=ft;if(mt){if(Lt){e:{for(var o=Lt,r=Dn;o.nodeType!==8;){if(!r){o=null;break e}if(o=Rn(o.nextSibling),o===null){o=null;break e}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Lt=Rn(o.nextSibling),i=o.data==="F!";break t}}Yo(i)}i=!1}i&&(e=n[0])}}return n=He(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_1,lastRenderedState:e},n.queue=i,n=J1.bind(null,ft,i),i.dispatch=n,i=Nh(!1),r=Zg.bind(null,ft,!1,i.queue),i=He(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,n=HO.bind(null,ft,o,r,n),o.dispatch=n,i.memoizedState=t,[e,n,!1]}function Ex(t){var e=Kt();return B1(e,Mt,t)}function B1(t,e,n){if(e=Yg(t,e,_1)[0],t=cf(ji)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=au(e)}catch(a){throw a===ds?rm:a}else i=e;e=Kt();var o=e.queue,r=o.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,es(9,{destroy:void 0},PO.bind(null,o,n),null)),[i,r,t]}function PO(t,e){t.action=e}function Ax(t){var e=Kt(),n=Mt;if(n!==null)return B1(e,n,t);Kt(),e=e.memoizedState,n=Kt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function es(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ft.updateQueue,e===null&&(e=am(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function U1(){return Kt().memoizedState}function ff(t,e,n,i){var o=He();ft.flags|=t,o.memoizedState=es(1|e,{destroy:void 0},n,i===void 0?null:i)}function lm(t,e,n,i){var o=Kt();i=i===void 0?null:i;var r=o.memoizedState.inst;Mt!==null&&i!==null&&Bg(i,Mt.memoizedState.deps)?o.memoizedState=es(e,r,n,i):(ft.flags|=t,o.memoizedState=es(1|e,r,n,i))}function Cx(t,e){ff(8390656,8,t,e)}function qg(t,e){lm(2048,8,t,e)}function GO(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=am(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function H1(t){var e=Kt().memoizedState;return GO({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(R(440));return e.impl.apply(void 0,arguments)}}function P1(t,e){return lm(4,2,t,e)}function G1(t,e){return lm(4,4,t,e)}function j1(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Y1(t,e,n){n=n!=null?n.concat([t]):null,lm(4,4,j1.bind(null,e,t),n)}function kg(){}function q1(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Bg(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function k1(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Bg(e,i[1]))return i[0];if(i=t(),Nr){Co(!0);try{t()}finally{Co(!1)}}return n.memoizedState=[i,e],i}function Xg(t,e,n){return n===void 0||(Gi&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=BS(),ft.lanes|=t,Xo|=t,n)}function X1(t,e,n,i){return mn(n,e)?n:qo.current!==null?(t=Xg(t,n,i),mn(t,e)||(ee=!0),t):(Gi&106)===0||(Gi&1073741824)!==0&&(gt&261930)===0?(ee=!0,t.memoizedState=n):(t=BS(),ft.lanes|=t,Xo|=t,e)}function K1(t,e,n,i,o){var r=St.p;St.p=r!==0&&8>r?r:8;var a=nt.T,s={};s.types=a!==null?a.types:null,nt.T=s,Zg(t,!1,e,n);try{var l=o(),u=nt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=_O(l,i);Nl(t,e,c,fn(t))}else Nl(t,e,i,fn(t))}catch(m){Nl(t,e,{then:function(){},status:"rejected",reason:m},fn())}finally{St.p=r,a!==null&&s.types!==null&&(a.types=s.types),nt.T=a}}function jO(){}function zh(t,e,n,i){if(t.tag!==5)throw Error(R(476));var o=Z1(t).queue;K1(t,o,e,Sr,n===null?jO:function(){return Q1(t),n(i)})}function Z1(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Sr,baseState:Sr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:Sr},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Q1(t){var e=Z1(t);e.next===null&&(e=t.alternate.memoizedState),Nl(t,e.next.queue,{},fn())}function Kg(){return Te(ls)}function F1(){return Kt().memoizedState}function I1(){return Kt().memoizedState}function YO(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=fn();t=zo(n);var i=Lo(e,t,n);i!==null&&(Ie(i,e,n),Dl(i,e,n)),e={cache:Og()},t.payload=e;return}e=e.return}}function qO(t,e,n){var i=fn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},um(t)?W1(e,n):(n=Mg(t,e,n,i),n!==null&&(Ie(n,t,i),$1(n,e,i)))}function J1(t,e,n){var i=fn();Nl(t,e,n,i)}function Nl(t,e,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(um(t))W1(e,o);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var a=e.lastRenderedState,s=r(a,n);if(o.hasEagerState=!0,o.eagerState=s,mn(s,a))return im(t,e,o,0),Rt===null&&nm(),!1}catch{}if(n=Mg(t,e,o,i),n!==null)return Ie(n,t,i),$1(n,e,i),!0}return!1}function Zg(t,e,n,i){if(i={lane:2,revertLane:oy(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},um(t)){if(e)throw Error(R(479))}else e=Mg(t,n,i,2),e!==null&&Ie(e,t,2)}function um(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function W1(t,e){Za=_f=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function $1(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Ub(t,n)}}var Uf={readContext:Te,use:sm,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt,useEffectEvent:qt},tS={readContext:Te,use:sm,useCallback:function(t,e){return He().memoizedState=[t,e===void 0?null:e],t},useContext:Te,useEffect:Cx,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ff(4194308,4,j1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ff(4194308,4,t,e)},useInsertionEffect:function(t,e){ff(4,2,t,e)},useMemo:function(t,e){var n=He();e=e===void 0?null:e;var i=t();if(Nr){Co(!0);try{t()}finally{Co(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=He();if(n!==void 0){var o=n(e);if(Nr){Co(!0);try{n(e)}finally{Co(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=qO.bind(null,ft,t),[i.memoizedState,t]},useRef:function(t){var e=He();return t={current:t},e.memoizedState=t},useState:function(t){t=Nh(t);var e=t.queue,n=J1.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:kg,useDeferredValue:function(t,e){var n=He();return Xg(n,t,e)},useTransition:function(){var t=Nh(!1);return t=K1.bind(null,ft,t.queue,!0,!1),He().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ft,o=He();if(mt){if(n===void 0)throw Error(R(407));n=n()}else{if(n=e(),Rt===null)throw Error(R(349));(gt&127)!==0||M1(i,e,n)}o.memoizedState=n;var r={value:n,getSnapshot:e};return o.queue=r,Cx(R1.bind(null,i,r,t),[t]),i.flags|=2048,es(9,{destroy:void 0},D1.bind(null,i,r,n,e),null),n},useId:function(){var t=He(),e=Rt.identifierPrefix;if(mt){var n=si,i=ai;n=(i&~(1<<32-cn(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Bf++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=BO++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Kg,useFormState:Tx,useActionState:Tx,useOptimistic:function(t){var e=He();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Zg.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:jg,useCacheRefresh:function(){return He().memoizedState=YO.bind(null,ft)},useEffectEvent:function(t){var e=He(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},eS={readContext:Te,use:sm,useCallback:q1,useContext:Te,useEffect:qg,useImperativeHandle:Y1,useInsertionEffect:P1,useLayoutEffect:G1,useMemo:k1,useReducer:cf,useRef:U1,useState:function(){return cf(ji)},useDebugValue:kg,useDeferredValue:function(t,e){var n=Kt();return X1(n,Mt.memoizedState,t,e)},useTransition:function(){var t=cf(ji)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:au(t),e]},useSyncExternalStore:w1,useId:F1,useHostTransitionStatus:Kg,useFormState:Ex,useActionState:Ex,useOptimistic:function(t,e){var n=Kt();return V1(n,Mt,t,e)},useMemoCache:jg,useCacheRefresh:I1,useEffectEvent:H1},kO={readContext:Te,use:sm,useCallback:q1,useContext:Te,useEffect:qg,useImperativeHandle:Y1,useInsertionEffect:P1,useLayoutEffect:G1,useMemo:k1,useReducer:qp,useRef:U1,useState:function(){return qp(ji)},useDebugValue:kg,useDeferredValue:function(t,e){var n=Kt();return Mt===null?Xg(n,t,e):X1(n,Mt.memoizedState,t,e)},useTransition:function(){var t=qp(ji)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:au(t),e]},useSyncExternalStore:w1,useId:F1,useHostTransitionStatus:Kg,useFormState:Ax,useActionState:Ax,useOptimistic:function(t,e){var n=Kt();return Mt!==null?V1(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:jg,useCacheRefresh:I1,useEffectEvent:H1};function kp(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:Ot({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Lh={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=fn(),o=zo(i);o.payload=e,n!=null&&(o.callback=n),e=Lo(t,o,i),e!==null&&(Ie(e,t,i),Dl(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=fn(),o=zo(i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Lo(t,o,i),e!==null&&(Ie(e,t,i),Dl(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=fn(),i=zo(n);i.tag=2,e!=null&&(i.callback=e),e=Lo(t,i,n),e!==null&&(Ie(e,t,n),Dl(e,t,n))}};function wx(t,e,n,i,o,r,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,r,a):e.prototype&&e.prototype.isPureReactComponent?!Gl(n,i)||!Gl(o,r):!0}function Mx(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Lh.enqueueReplaceState(e,e.state,null)}function Vr(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=Ot({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function nS(t){Mf(t)}function iS(t){console.error(t)}function oS(t){Mf(t)}function Hf(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Dx(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _h(t,e,n){return n=zo(n),n.tag=3,n.payload={element:null},n.callback=function(){Hf(t,e)},n}function rS(t){return t=zo(t),t.tag=3,t}function aS(t,e,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var r=i.value;t.payload=function(){return o(r)},t.callback=function(){Dx(e,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){Dx(e,n,i),typeof o!="function"&&(Uo===null?Uo=new Set([this]):Uo.add(this));var s=i.stack;this.componentDidCatch(i.value,{componentStack:s!==null?s:""})})}function XO(t,e,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Mr(e,n,o,!0),n=we.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ve===null?Kf():n.alternate===null&&kt===0&&(kt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===Vf?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Jp(t,i,o)),!1;case 22:return n.flags|=65536,i===Vf?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Jp(t,i,o)),!1}throw Error(R(435,n.tag))}return Jp(t,i,o),Kf(),!1}if(mt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==Eh&&(t=Error(R(422),{cause:i}),Yl(Mn(t,n)))):(i!==Eh&&(e=Error(R(423),{cause:i}),Yl(Mn(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=Mn(i,n),o=_h(t.stateNode,i,o),Yp(t,o),kt!==4&&(kt=2)),!1;var r=Error(R(520),{cause:i});if(r=Mn(r,n),_l===null?_l=[r]:_l.push(r),kt!==4&&(kt=2),e===null)return!0;i=Mn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=_h(n.stateNode,i,t),Yp(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Uo===null||!Uo.has(r))))return n.flags|=65536,o&=-o,n.lanes|=o,o=rS(o),aS(o,t,n,i),Yp(n,o),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Qg=Error(R(461)),ee=!1;function oe(t,e,n,i){e.child=t===null?b1(e,null,n,i):Or(e,t.child,n,i)}function Rx(t,e,n,i,o){n=n.render;var r=e.ref;if("ref"in i){var a={};for(var s in i)s!=="ref"&&(a[s]=i[s])}else a=i;return Dr(e),i=Ug(t,e,n,a,r,o),s=Hg(),t!==null&&!ee?(Pg(t,e,o),Yi(t,e,o)):(mt&&s&&om(e),e.flags|=1,oe(t,e,i,o),e.child)}function Ox(t,e,n,i,o){if(t===null){var r=n.type;return typeof r=="function"&&!Dg(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,sS(t,e,r,i,o)):(t=sf(n.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Ig(t,o)){var a=r.memoizedProps;if(n=n.compare,n=n!==null?n:Gl,n(a,i)&&t.ref===e.ref)return Yi(t,e,o)}return e.flags|=1,t=Bi(r,i),t.ref=e.ref,t.return=e,e.child=t}function sS(t,e,n,i,o){if(t!==null){var r=t.memoizedProps;if(Gl(r,i)&&t.ref===e.ref)if(ee=!1,e.pendingProps=i=r,Ig(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Yi(t,e,o)}return Bh(t,e,n,i,o)}function lS(t,e,n,i){var o=i.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(i=e.child=t.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~r}else i=0,e.child=null;return Nx(t,e,r,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&uf(e,r!==null?r.cachePool:null),r!==null?xx(e,r):Rh(),E1(e);else return i=e.lanes=536870912,Nx(t,e,r!==null?r.baseLanes|n:n,n,i)}else r!==null?(uf(e,r.cachePool),xx(e,r),Bo(),e.memoizedState=null):(t!==null&&uf(e,null),Rh(),Bo());return oe(t,e,o,n),e.child}function Vl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Nx(t,e,n,i,o){var r=Ng();return r=r===null?null:{parent:te._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&uf(e,null),Rh(),E1(e),t!==null&&Mr(t,e,i,!0),e.childLanes=o,null}function mf(t,e){return e=cm({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Vx(t,e,n){return Or(e,t.child,null,n),t=mf(e,e.pendingProps),t.flags|=2,rn(e),e.memoizedState=null,t}function KO(t,e,n){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(mt){if(i.mode==="hidden")return t=mf(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Vl(null,t);if(Oh(e),(t=Lt)?(t=lT(t,Dn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:jo!==null?{id:ai,overflow:si}:null,retryLane:536870912,hydrationErrors:null},n=d1(t),n.return=e,e.child=n,he=e,Lt=null)):t=null,t===null)throw Yo(e);return e.lanes=536870912,null}return mf(e,i)}var r=t.memoizedState;if(r!==null){var a=r.dehydrated;if(Oh(e),o)if(e.flags&256)e.flags&=-257,e=Vx(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(R(558));else if(ee||Mr(t,e,n,!1),o=(n&t.childLanes)!==0,ee||o){if(qo.current===null){if(i=Rt,i!==null&&(a=Hb(i,n),a!==0&&a!==r.retryLane))throw r.retryLane=a,Ur(t,a),Ie(i,t,a),Qg;Kf()}e=Vx(t,e,n)}else t=r.treeContext,Lt=Rn(a.nextSibling),he=e,mt=!0,Vo=null,Dn=!1,t!==null&&h1(e,t),e=mf(e,i),e.flags|=134221824;return e}return t=Bi(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ma(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Bh(t,e,n,i,o){return Dr(e),n=Ug(t,e,n,i,void 0,o),i=Hg(),t!==null&&!ee?(Pg(t,e,o),Yi(t,e,o)):(mt&&i&&om(e),e.flags|=1,oe(t,e,n,o),e.child)}function zx(t,e,n,i,o,r){return Dr(e),e.updateQueue=null,n=C1(e,i,n,o),A1(t),i=Hg(),t!==null&&!ee?(Pg(t,e,r),Yi(t,e,r)):(mt&&i&&om(e),e.flags|=1,oe(t,e,n,r),e.child)}function Lx(t,e,n,i,o){if(Dr(e),e.stateNode===null){var r=Ha,a=n.contextType;typeof a=="object"&&a!==null&&(r=Te(a)),r=new n(i,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Lh,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=i,r.state=e.memoizedState,r.refs={},zg(e),a=n.contextType,r.context=typeof a=="object"&&a!==null?Te(a):Ha,r.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(kp(e,n,a,i),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(a=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),a!==r.state&&Lh.enqueueReplaceState(r,r.state,null),Ol(e,i,r,o),Rl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){r=e.stateNode;var s=e.memoizedProps,l=Vr(n,s);r.props=l;var u=r.context,c=n.contextType;a=Ha,typeof c=="object"&&c!==null&&(a=Te(c));var m=n.getDerivedStateFromProps;c=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s||u!==a)&&Mx(e,r,i,a),Eo=!1;var f=e.memoizedState;r.state=f,Ol(e,i,r,o),Rl(),u=e.memoizedState,s||f!==u||Eo?(typeof m=="function"&&(kp(e,n,m,i),u=e.memoizedState),(l=Eo||wx(e,n,l,i,f,u,a))?(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"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=u),r.props=i,r.state=u,r.context=a,i=l):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{r=e.stateNode,Mh(t,e),a=e.memoizedProps,c=Vr(n,a),r.props=c,m=e.pendingProps,f=r.context,u=n.contextType,l=Ha,typeof u=="object"&&u!==null&&(l=Te(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==m||f!==l)&&Mx(e,r,i,l),Eo=!1,f=e.memoizedState,r.state=f,Ol(e,i,r,o),Rl();var d=e.memoizedState;a!==m||f!==d||Eo||t!==null&&t.dependencies!==null&&Nf(t.dependencies)?(typeof s=="function"&&(kp(e,n,s,i),d=e.memoizedState),(c=Eo||wx(e,n,c,i,f,d,l)||t!==null&&t.dependencies!==null&&Nf(t.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,d,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,d,l)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=d),r.props=i,r.state=d,r.context=l,i=c):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),i=!1)}return r=i,Ma(t,e),i=(e.flags&128)!==0,r||i?(r=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&i?(e.child=Or(e,t.child,null,o),e.child=Or(e,null,n,o)):oe(t,e,n,o),e.memoizedState=r.state,t=e.child):t=Yi(t,e,o),t}function _x(t,e,n,i){return wr(),e.flags|=256,oe(t,e,n,i),e.child}var Uh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hh(t){return{baseLanes:t,cachePool:y1()}}function Ph(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=sn),t}function uS(t,e,n){var i=e.pendingProps,o=!1,r=(e.flags&128)!==0,a;if((a=r)||(a=t!==null&&t.memoizedState===null?!1:(Ae.current&2)!==0),a&&(o=!0,e.flags&=-129),a=(e.flags&32)!==0,e.flags&=-33,t===null){if(mt){if(o?_o(e):Bo(),(t=Lt)?(t=lT(t,Dn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:jo!==null?{id:ai,overflow:si}:null,retryLane:536870912,hydrationErrors:null},n=d1(t),n.return=e,e.child=n,he=e,Lt=null)):t=null,t===null)throw Yo(e);return ly(t)?e.lanes=32:e.lanes=536870912,null}return r=i.children,i=i.fallback,o?(Bo(),o=e.mode,r=cm({mode:"hidden",children:r},o),i=Tr(i,o,n,null),r.return=e,i.return=e,r.sibling=i,e.child=r,i=e.child,i.memoizedState=Hh(n),i.childLanes=Ph(t,a,n),e.memoizedState=Uh,Vl(null,i)):(_o(e),Fg(e,r))}var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return ZO(t,e,r,a,i,l,s,n)}return o?(Bo(),o=i.fallback,r=e.mode,s=t.child,l=s.sibling,i=Bi(s,{mode:"hidden",children:i.children}),i.subtreeFlags=s.subtreeFlags&1206910976,l!==null?o=Bi(l,o):(o=Tr(o,r,n,null),o.flags|=2),o.return=e,i.return=e,i.sibling=o,e.child=i,Vl(null,i),i=e.child,o=t.child.memoizedState,o===null?o=Hh(n):(r=o.cachePool,r!==null?(s=te._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=y1(),o={baseLanes:o.baseLanes|n,cachePool:r}),i.memoizedState=o,i.childLanes=Ph(t,a,n),e.memoizedState=Uh,Vl(t.child,i)):(_o(e),n=t.child,t=n.sibling,n=Bi(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)),e.child=n,e.memoizedState=null,n)}function Fg(t,e){return e=cm({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function cm(t,e){return t=Fe(22,t,null,e),t.lanes=0,t}function Kc(t,e,n){return Or(e,t.child,null,n),t=Fg(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ZO(t,e,n,i,o,r,a,s){if(n)return e.flags&256?(_o(e),e.flags&=-257,Kc(t,e,s)):e.memoizedState!==null?(Bo(),e.child=t.child,e.flags|=128,null):(Bo(),r=o.fallback,a=e.mode,o=cm({mode:"visible",children:o.children},a),r=Tr(r,a,s,null),r.flags|=2,o.return=e,r.return=e,o.sibling=r,e.child=o,Or(e,t.child,null,s),o=e.child,o.memoizedState=Hh(s),o.childLanes=Ph(t,i,s),e.memoizedState=Uh,Vl(null,o));if(_o(e),ly(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,i!==""&&(o=Error(R(419)),o.stack="",o.digest=i,Yl({value:o,source:null,stack:null})),Kc(t,e,s)}if(ee||Mr(t,e,s,!1),i=(s&t.childLanes)!==0,ee||i){if(qo.current!==null)return Kc(t,e,s);if(i=Rt,i!==null&&(o=Hb(i,s),o!==0&&o!==a.retryLane))throw a.retryLane=o,Ur(t,o),Ie(i,t,o),Qg;return cg(r)||Kf(),Kc(t,e,s)}return cg(r)?(e.flags|=192,e.child=t.child,null):(t=a.treeContext,Lt=Rn(r.nextSibling),he=e,mt=!0,Vo=null,Dn=!1,t!==null&&h1(e,t),e=Fg(e,o.children),e.flags|=134221824,e)}function Bx(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),lf(t.return,e,n)}function Ux(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Lf(n)===null&&(e=t),t=t.sibling}return e}function Zc(t,e,n,i,o,r){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:r}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=o,a.treeForkCount=r)}function Xp(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function Gh(t,e,n){var i=e.pendingProps,o=i.revealOrder,r=i.tail;i=i.children;var a=Ae.current;if(e.flags&128)return kl(e,a),null;var s=(a&2)!==0;if(s?(a=a&1|2,e.flags|=128):a&=1,kl(e,a),o==="backwards"&&t!==null?(Xp(t),oe(t,e,i,n),Xp(t)):oe(t,e,i,n),i=mt?jl:0,!s&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Bx(t,n,e);else if(t.tag===19)Bx(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"backwards":n=Ux(e.child),n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null,Xp(e)),Zc(e,!0,o,null,r,i);break;case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Lf(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Zc(e,!0,n,null,r,i);break;case"together":Zc(e,!1,null,null,void 0,i);break;case"independent":e.memoizedState=null;break;default:n=Ux(e.child),n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Zc(e,!1,o,n,r,i)}return e.child}function Hx(t,e,n){var i=e.pendingProps;return Mo(e,e.type,i.value),oe(t,e,i.children,n),e.child}function Yi(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Xo|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Mr(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(R(153));if(e.child!==null){for(t=e.child,n=Bi(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Bi(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Ig(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Nf(t)))}function QO(t,e,n){switch(e.tag){case 3:Ef(e,e.stateNode.containerInfo),Mo(e,te,t.memoizedState.cache),wr();break;case 27:case 5:dh(e);break;case 4:Ef(e,e.stateNode.containerInfo);break;case 10:Mo(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Oh(e),null;break;case 13:var i=e.memoizedState;if(i!==null){if(i.dehydrated!==null)return _o(e),e.flags|=128,null;i=Mr(t,e,n,!1);var o=e.child.childLanes;return i||(n&o)!==0?uS(t,e,n):(_o(e),t=Yi(t,e,n),t!==null?t.sibling:null)}_o(e);break;case 19:if(e.flags&128)return Gh(t,e,n);if(o=(t.flags&128)!==0,i=(n&e.childLanes)!==0,i||(Mr(t,e,n,!1),i=(n&e.childLanes)!==0),o){if(i)return Gh(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),kl(e,Ae.current),i)break;return null;case 22:return e.lanes=0,lS(t,e,n,e.pendingProps);case 24:Mo(e,te,t.memoizedState.cache)}return Yi(t,e,n)}function cS(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Ig(t,n)&&(e.flags&128)===0)return ee=!1,QO(t,e,n);ee=(t.flags&131072)!==0}else ee=!1,mt&&(e.flags&1048576)!==0&&p1(e,jl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=yr(e.elementType),e.type=t,typeof t=="function")Dg(t)?(i=Vr(t,i),e.tag=1,e=Lx(null,e,t,i,n)):(e.tag=0,e=Bh(null,e,t,i,n));else{if(t!=null){var o=t.$$typeof;if(o===hg){e.tag=11,e=Rx(null,e,t,i,n);break t}else if(o===gg){e.tag=14,e=Ox(null,e,t,i,n);break t}else if(o===oi){e.tag=10,e.type=t,e=Hx(null,e,n);break t}}throw e=fh(t)||t,Error(R(306,e,""))}}return e;case 0:return Bh(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,o=Vr(i,e.pendingProps),Lx(t,e,i,o,n);case 3:t:{if(Ef(e,e.stateNode.containerInfo),t===null)throw Error(R(387));i=e.pendingProps;var r=e.memoizedState;o=r.element,Mh(t,e),Ol(e,i,null,n);var a=e.memoizedState;if(i=a.cache,Mo(e,te,i),i!==r.cache&&Ch(e,[te],n,!0),Rl(),i=a.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:a.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=_x(t,e,i,n);break t}else if(i!==o){o=Mn(Error(R(424)),e),Yl(o),e=_x(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Lt=Rn(t.firstChild),he=e,mt=!0,Vo=null,Dn=!0,n=b1(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(wr(),i===o){e=Yi(t,e,n);break t}oe(t,e,i,n)}e=e.child}return e;case 26:return Ma(t,e),t===null?(n=fb(e.type,null,e.pendingProps,null))?e.memoizedState=n:mt||(e.stateNode=$S(e.type,e.pendingProps,No.current,e)):e.memoizedState=fb(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return dh(e),t===null&&mt&&(i=e.stateNode=uT(e.type,e.pendingProps,No.current),he=e,Dn=!0,o=Lt,Zo(e.type)?(fg=o,Lt=Rn(i.firstChild)):Lt=o),oe(t,e,e.pendingProps.children,n),Ma(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&mt&&((o=i=Lt)&&(i=GN(i,e.type,e.pendingProps,Dn),i!==null?(e.stateNode=i,he=e,Lt=Rn(i.firstChild),Dn=!1,o=!0):o=!1),o||Yo(e)),dh(e),o=e.type,r=e.pendingProps,a=t!==null?t.memoizedProps:null,i=r.children,sg(o,r)?i=null:a!==null&&sg(o,a)&&(e.flags|=32),e.memoizedState!==null&&(o=Ug(t,e,UO,null,null,n),ls._currentValue=o),Ma(t,e),oe(t,e,i,n),e.child;case 6:return t===null&&mt&&((t=n=Lt)&&(n=jN(n,e.pendingProps,Dn),n!==null?(e.stateNode=n,he=e,Lt=null,t=!0):t=!1),t||Yo(e)),null;case 13:return uS(t,e,n);case 4:return Ef(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Or(e,null,i,n):oe(t,e,i,n),e.child;case 11:return Rx(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,Ma(t,e),oe(t,e,i,n),e.child;case 8:return oe(t,e,e.pendingProps.children,n),e.child;case 12:return oe(t,e,e.pendingProps.children,n),e.child;case 10:return Hx(t,e,n);case 9:return o=e.type._context,i=e.pendingProps.children,Dr(e),o=Te(o),i=i(o),e.flags|=1,oe(t,e,i,n),e.child;case 14:return Ox(t,e,e.type,e.pendingProps,n);case 15:return sS(t,e,e.type,e.pendingProps,n);case 19:return Gh(t,e,n);case 31:return KO(t,e,n);case 22:return lS(t,e,n,e.pendingProps);case 24:return Dr(e),i=Te(te),t===null?(o=Ng(),o===null&&(o=Rt,r=Og(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=n),o=r),e.memoizedState={parent:i,cache:o},zg(e),Mo(e,te,o)):((t.lanes&n)!==0&&(Mh(t,e),Ol(e,null,null,n),Rl()),o=t.memoizedState,r=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Mo(e,te,i)):(i=r.cache,Mo(e,te,i),i!==o.cache&&Ch(e,[te],n,!0))),oe(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=e.pendingProps,i.name!=null&&i.name!=="auto"?e.flags|=t===null?18882560:18874368:mt&&om(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:Ma(t,e),oe(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(R(156,e.tag))}function zi(t){t.flags|=4}function Kp(t,e,n,i,o){var r;if((r=(t.mode&32)!==0)&&(r=n===null?pb(e,i):pb(e,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),r){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(PS())t.flags|=8192;else throw Ar=Vf,Vg}else t.flags&=-16777217}function Px(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!dT(e))if(PS())t.flags|=8192;else throw Ar=Vf,Vg}function Qc(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_b():536870912,t.lanes|=e,ns|=e)}function hl(t,e){if(!mt)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&1206910976,i|=o.flags&1206910976,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function FO(t,e,n){var i=e.pendingProps;switch(Rg(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Ui(te),Wa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ca(e)?zi(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,jp())),zt(e),null;case 26:var o=e.type,r=e.memoizedState;return t===null?(zi(e),r!==null?(zt(e),Px(e,r)):(zt(e),Kp(e,o,null,i,n))):r?r!==t.memoizedState?(zi(e),zt(e),Px(e,r)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&zi(e),zt(e),Kp(e,o,t,i,n)),null;case 27:if(Af(e),n=No.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&zi(e);else{if(!i){if(e.stateNode===null)throw Error(R(166));return zt(e),e.subtreeFlags&=-33554433,null}t=li.current,Ca(e)?mx(e,t):(t=uT(o,i,n),e.stateNode=t,zi(e))}return zt(e),e.subtreeFlags&=-33554433,null;case 5:if(Af(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&zi(e);else{if(!i){if(e.stateNode===null)throw Error(R(166));return zt(e),e.subtreeFlags&=-33554433,null}if(r=li.current,Ca(e))mx(e,r);else{var a=Ql(No.current);switch(r){case 1:r=a.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=a.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=a.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=a.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=a.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?r.multiple=!0:i.size&&(r.size=i.size);break;default:r=typeof i.is=="string"?a.createElement(o,{is:i.is}):a.createElement(o)}}r[Se]=e,r[We]=i;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=r;t:switch(Ce(r,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&zi(e)}}return zt(e),e.subtreeFlags&=-33554433,Kp(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&zi(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(R(166));if(t=No.current,Ca(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,o=he,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[Se]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||JS(t.nodeValue,n)),t||Yo(e,!0)}else t=Ql(t).createTextNode(i),t[Se]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Ca(e),n!==null){if(t===null){if(!i)throw Error(R(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(557));t[Se]=e}else wr(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(rn(e),e):(rn(e),null);if((e.flags&128)!==0)throw Error(R(558))}return zt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ca(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(R(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Se]=e}else wr(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),o=!1}else o=jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(rn(e),e):(rn(e),null)}return rn(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Qc(e,e.updateQueue),zt(e),null);case 4:return Wa(),t===null&&ry(e.stateNode.containerInfo),e.flags|=67108864,zt(e),null;case 10:return Ui(e.type),zt(e),null;case 19:if(_g(e),i=e.memoizedState,i===null)return zt(e),null;if(o=(e.flags&128)!==0,r=i.rendering,r===null)if(o)hl(i,!1);else{if(kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Lf(t),r!==null){for(e.flags|=128,hl(i,!1),t=r.updateQueue,e.updateQueue=t,Qc(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)m1(n,t),n=n.sibling;return kl(e,Ae.current&1|2),mt&&Li(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&ln()>kf&&(e.flags|=128,o=!0,hl(i,!1),e.lanes=4194304)}else{if(!o)if(t=Lf(r),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Qc(e,t),hl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!r.alternate&&!mt)return zt(e),null}else 2*ln()-i.renderingStartTime>kf&&n!==536870912&&(e.flags|=128,o=!0,hl(i,!1),e.lanes=4194304);i.isBackwards?(r.sibling=e.child,e.child=r):(t=i.last,t!==null?t.sibling=r:e.child=r,i.last=r)}if(i.tail!==null){t=i.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ln(),t.sibling=null,r=Ae.current,r=o?r&1|2:r&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||mt?kl(e,r):(n=r,_t(we,e),_t(Ae,n),Ve===null&&(Ve=e)),mt&&Li(e,i.treeForkCount),t}return zt(e),null;case 22:case 23:return rn(e),Lg(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&Qc(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&Ee(Er),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ui(te),zt(e),null;case 25:return null;case 30:return e.flags|=33554432,zt(e),null}throw Error(R(156,e.tag))}function IO(t,e){switch(Rg(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ui(te),Wa(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Af(e),null;case 31:if(e.memoizedState!==null){if(rn(e),e.alternate===null)throw Error(R(340));wr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(rn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(R(340));wr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _g(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Wa(),null;case 10:return Ui(e.type),null;case 22:case 23:return rn(e),Lg(),t!==null&&Ee(Er),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ui(te),null;case 25:return null;default:return null}}function fS(t,e){switch(Rg(e),e.tag){case 3:Ui(te),Wa();break;case 26:case 27:case 5:Af(e);break;case 4:Wa();break;case 31:e.memoizedState!==null&&rn(e);break;case 13:rn(e);break;case 19:_g(e);break;case 10:Ui(e.type);break;case 22:case 23:rn(e),Lg(),t!==null&&Ee(Er);break;case 24:Ui(te)}}function su(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&t)===t){i=void 0;var r=n.create,a=n.inst;i=r(),a.destroy=i}n=n.next}while(n!==o)}}catch(s){wt(e,e.return,s)}}function ko(t,e,n){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var r=o.next;i=r;do{if((i.tag&t)===t){var a=i.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,o=e;var l=n,u=s;try{u()}catch(c){wt(o,l,c)}}}i=i.next}while(i!==r)}}catch(c){wt(e,e.return,c)}}function mS(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{T1(e,n)}catch(i){wt(t,t.return,i)}}}function dS(t,e,n){n.props=Vr(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){wt(t,e,i)}}function ni(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:var o=t.stateNode,r=Pi(t.memoizedProps,o);(o.ref===null||o.ref.name!==r)&&(o.ref=iT(r)),i=o.ref;break;case 7:if(t.stateNode===null){var a=new dn(t);Je(t.child,!1,HN,a,void 0,void 0),t.stateNode=a}i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){wt(t,e,s)}}function be(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){wt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){wt(t,e,o)}else n.current=null}function Pf(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)sT(t.stateNode,e[n])}function Gx(t){for(var e=t.return;e!==null&&(Wg(e)&&sT(t.stateNode,e.stateNode),!Jg(e));)e=e.return}function zl(t){for(var e=t.return;e!==null&&(Wg(e)&&PN(t.stateNode,e.stateNode),!Jg(e));)e=e.return}function Jg(t){return t.tag===5||t.tag===3||t.tag===27}function Wg(t){return t&&t.tag===7&&t.stateNode!==null}function jh(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){wt(t,t.return,o)}}function Zp(t,e,n){try{var i=t.stateNode;bN(i,t.type,n,e),i[We]=e}catch(o){wt(t,t.return,o)}}function pS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zo(t.type)||t.tag===4}function Qp(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||pS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Zo(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yh(t,e,n,i){var o=t.tag;if(o===5||o===6)o=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(o,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(o),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ri)),Pf(t,i),xt=!0;else if(o!==4&&(o===27&&(Pf(t,i),i=null,Zo(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Yh(t,e,n,i),t=t.sibling;t!==null;)Yh(t,e,n,i),t=t.sibling}function Gf(t,e,n,i){var o=t.tag;if(o===5||o===6)o=t.stateNode,e?n.insertBefore(o,e):n.appendChild(o),Pf(t,i),xt=!0;else if(o!==4&&(o===27&&(Pf(t,i),i=null,Zo(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(Gf(t,e,n,i),t=t.sibling;t!==null;)Gf(t,e,n,i),t=t.sibling}function hS(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);Ce(e,i,n),e[Se]=t,e[We]=n}catch(r){wt(t,t.return,r)}}var jf=!1,an=null;function jx(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(jf=!0)}var ii=null;function Yx(){var t=ii;return ii=null,t}var Qe=0;function ps(t,e,n,i,o){return Qe=0,gS(t.child,e,n,i,o)}function gS(t,e,n,i,o){for(var r=!1;t!==null;){if(t.tag===5){var a=t.stateNode;if(i!==null){var s=lg(a);i.push(s),s.view&&(r=!0)}else r||lg(a).view&&(r=!0);jf=!0,tT(a,Qe===0?e:e+"_"+Qe,n),Qe++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o||gS(t.child,e,n,i,o)&&(r=!0));t=t.sibling}return r}function ci(t,e){for(;t!==null;)t.tag===5?eT(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||ci(t.child,e)),t=t.sibling}function df(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(df(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(R(544));var n=e.name;e=Xi(e.default,e.share),e!=="none"&&(ps(t,n,e,null,!1)||ci(t.child,!1))}t=t.sibling}}function qh(t,e){if(t.tag===30){var n=t.stateNode,i=t.memoizedProps,o=Pi(i,n),r=Xi(i.default,n.paired?i.share:i.enter);r!=="none"?ps(t,o,r,null,!1)?(df(t),n.paired||e||is(t,i.onEnter)):ci(t.child,!1):df(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)qh(t,e),t=t.sibling;else df(t)}function kh(t){if(an!==null&&an.size!==0){var e=an;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var o=e.get(i);if(o!==void 0){var r=Xi(n.default,n.share);if(r!=="none"&&(ps(t,i,r,null,!1)?(r=t.stateNode,o.paired=r,r.paired=o,is(t,n.onShare)):ci(t.child,!1)),e.delete(i),e.size===0)break}}}kh(t)}t=t.sibling}}}function Xh(t){if(t.tag===30){var e=t.memoizedProps,n=Pi(e,t.stateNode),i=an!==null?an.get(n):void 0,o=Xi(e.default,i!==void 0?e.share:e.exit);o!=="none"&&(ps(t,n,o,null,!1)?i!==void 0?(o=t.stateNode,i.paired=o,o.paired=i,an.delete(n),is(t,e.onShare)):is(t,e.onExit):ci(t.child,!1)),an!==null&&kh(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Xh(t),t=t.sibling;else an!==null&&kh(t)}function yS(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Pi(e,t.stateNode);e=Xi(e.default,e.update),t.flags&=-5,e!=="none"&&ps(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&yS(t);t=t.sibling}}function Kh(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,ci(t.child,!1))}Kh(t)}t=t.sibling}}function pf(t){if(t.tag===30)t.stateNode.paired=null,ci(t.child,!1),Kh(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)pf(t),t=t.sibling;else Kh(t)}function vS(t){for(t=t.child;t!==null;)t.tag===30?ci(t.child,!1):(t.subtreeFlags&33554432)!==0&&vS(t),t=t.sibling}function $g(t,e,n,i,o,r,a){for(var s=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(r!==null&&Qe<r.length){var u=r[Qe],c=lg(l);(u.view||c.view)&&(s=!0);var m;if(m=(t.flags&4)===0)if(c.clip)m=!0;else{m=u.rect;var f=c.rect;m=m.y!==f.y||m.x!==f.x||m.height!==f.height||m.width!==f.width}m&&(t.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&tT(l,Qe===0?n:n+"_"+Qe,o),s&&(t.flags&4)!==0||(ii===null&&(ii=[]),ii.push(l,Qe===0?i:i+"_"+Qe,e.memoizedProps)),Qe++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a?t.flags|=e.flags&32:$g(t,e.child,n,i,o,r,a)&&(s=!0));e=e.sibling}return s}function xS(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,i=t.stateNode,o=Pi(n,i),r=Xi(n.default,n.update);if(e){i=i.clones;var a=i===null?null:i.map(wN)}else a=t.memoizedState,t.memoizedState=null;i=t;var s=t.child;Qe=0,o=$g(i,s,o,o,r,a,!1),(t.flags&4)!==0&&o&&(e||is(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&xS(t,e);t=t.sibling}}var me=!1,Tt=!1,$n=!1,Fp=!1,qx=typeof WeakSet=="function"?WeakSet:Set,de=null,ti=!1,El=!1,Yf=!1,Zh=!1;function JO(t,e,n){if(t=t.containerInfo,rg=us,t=o1(t),Cg(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{i.nodeType,a.nodeType}catch{i=null;break t}var s=0,l=-1,u=-1,c=0,m=0,f=t,d=null;e:for(;;){for(var g;f!==i||r!==0&&f.nodeType!==3||(l=s+r),f!==a||o!==0&&f.nodeType!==3||(u=s+o),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===t)break e;if(d===i&&++c===r&&(l=s),d===a&&++m===o&&(u=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}i=l===-1||u===-1?null:{start:l,end:u}}else i=null}i=i||{start:0,end:0}}else i=null;for(ag={focusedElem:t,selectionRange:i},us=!1,n=(n&335544064)===n,de=e,e=n?9270:1024;de!==null;){if(t=de,n&&(i=t.deletions,i!==null))for(r=0;r<i.length;r++)n&&Xh(i[r]);if(t.alternate===null&&(t.flags&2)!==0)n&&jx(t),Fc(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&Xh(i),Fc(n);continue}else if(i!==null&&i.memoizedState!==null){n&&jx(t),Fc(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,de=i):(n&&yS(t),Fc(n))}}an=null}function Fc(t){for(;de!==null;){var e=de,n=t,i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&i!==null){n=void 0,o=i.memoizedProps,i=i.memoizedState;var r=e.stateNode;try{var a=Vr(e.type,o);n=r.getSnapshotBeforeUpdate(a,i),r.__reactInternalSnapshotBeforeUpdate=n}catch(s){wt(e,e.return,s)}}break;case 3:if((o&1024)!==0){if(i=e.stateNode.containerInfo,n=i.nodeType,n===9)ug(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":ug(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=Pi(i.memoizedProps,i.stateNode),o=e.memoizedProps,o=Xi(o.default,o.update),o!=="none"&&ps(i,n,o,i.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(R(163))}if(i=e.sibling,i!==null){i.return=e.return,de=i;break}de=e.return}}function bS(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ei(t,n),i&4&&su(5,n);break;case 1:if(ei(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(a){wt(n,n.return,a)}else{var o=Vr(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(a){wt(n,n.return,a)}}i&64&&mS(n),i&512&&ni(n,n.return);break;case 3:if(ei(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{T1(t,e)}catch(a){wt(n,n.return,a)}}break;case 27:e===null&&i&4&&hS(n);case 26:case 5:ei(t,n),e===null&&i&4&&jh(n),i&512&&ni(n,n.return);break;case 12:ei(t,n);break;case 31:ei(t,n),i&4&&AS(t,n);break;case 13:ei(t,n),i&4&&CS(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=uN.bind(null,n),YN(t,n))));break;case 22:if(i=n.memoizedState!==null||me,!i){var r=e!==null&&e.memoizedState!==null||Tt;e=me,o=Tt,me=i,(Tt=r)&&!o?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),Pn(t,n,i)):ei(t,n),me=e,Tt=o}break;case 30:ei(t,n),i&512&&ni(n,n.return);break;case 7:i&512&&ni(n,n.return);default:ei(t,n)}}function Qh(t,e){for(t=t.child;t!==null;)SS(t,e),t=t.sibling}function SS(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var o=t.stateNode,r=t.memoizedProps.style,a=r!=null&&r.hasOwnProperty("display")?r.display:null;o.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}}catch(l){wt(t,t.return,l)}Fh(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,xt=!0}catch(l){wt(t,t.return,l)}break;case 18:try{var s=t.stateNode;e?rb(s,!0):rb(t.stateNode,!1)}catch(l){wt(t,t.return,l)}break;case 22:case 23:t.memoizedState===null&&Qh(t,e);break;default:Qh(t,e)}}function Fh(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:SS(n,i);break t;case 22:n.memoizedState===null&&Fh(n,i);break t;default:Fh(n,i)}}t=t.sibling}}function TS(t){var e=t.alternate;e!==null&&(t.alternate=null,TS(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Wf(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Pt=null,Ke=!1;function Hn(t,e,n){for(n=n.child;n!==null;)ES(t,e,n),n=n.sibling}function ES(t,e,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(tu,n)}catch{}switch(n.tag){case 26:Tt||be(n,e),Hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Tt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||be(n,e),zl(n);var i=Pt,o=Ke;Zo(n.type)&&(Pt=n.stateNode,Ke=!1),Hn(t,e,n),cT(n.stateNode,n.type,n.memoizedProps),Pt=i,Ke=o;break;case 5:Tt||be(n,e),zl(n);case 6:if(n.tag===6&&zl(n),i=Pt,o=Ke,Pt=null,Hn(t,e,n),Pt=i,Ke=o,Pt!==null)if(Ke)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(n.stateNode),xt=!0}catch(r){wt(n,e,r)}else try{Pt.removeChild(n.stateNode),xt=!0}catch(r){wt(n,e,r)}break;case 18:Pt!==null&&(Ke?(t=Pt,ob(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),cs(t)):ob(Pt,n.stateNode));break;case 4:i=Pt,o=Ke,Pt=n.stateNode.containerInfo,Ke=!0,Hn(t,e,n),Pt=i,Ke=o;break;case 0:case 11:case 14:case 15:ko(2,n,e),Tt||ko(4,n,e),Hn(t,e,n);break;case 1:Tt||(be(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&dS(n,e,i)),Hn(t,e,n);break;case 21:Hn(t,e,n);break;case 22:Tt=(i=Tt)||n.memoizedState!==null,Hn(t,e,n),Tt=i;break;case 30:be(n,e),Hn(t,e,n);break;case 7:Tt||be(n,e),Hn(t,e,n);break;default:Hn(t,e,n)}}function AS(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{cs(t)}catch(n){wt(e,e.return,n)}}}function CS(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{cs(t)}catch(n){wt(e,e.return,n)}}function WO(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new qx),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new qx),e;default:throw Error(R(435,t.tag))}}function Ic(t,e){var n=WO(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var o=cN.bind(null,t,i);i.then(o,o)}})}function Be(t,e,n){var i=e.deletions;if(i!==null)for(var o=0;o<i.length;o++){var r=i[o],a=t,s=e,l=s;t:for(;l!==null;){switch(l.tag){case 27:if(Zo(l.type)){Pt=l.stateNode,Ke=!1;break t}break;case 5:Pt=l.stateNode,Ke=!1;break t;case 3:case 4:Pt=l.stateNode.containerInfo,Ke=!0;break t}l=l.return}if(Pt===null)throw Error(R(160));ES(a,s,r),Pt=null,Ke=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)wS(e,t,n),e=e.sibling}var Gn=null;function wS(t,e,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(o&4&&(i=t.updateQueue,i=i!==null?i.events:null,i!==null))for(var r=0;r<i.length;r++){var a=i[r];a.ref.impl=a.nextImpl}Be(e,t,n),Ue(t),o&4&&(ko(3,t,t.return),su(3,t),ko(5,t,t.return));break;case 1:Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),o&64&&me&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(r=Gn,Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),o&4)if(o=i!==null?i.memoizedState:null,n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null)if(me)t.stateNode=$S(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,o=r.ownerDocument||r;e:switch(e){case"title":i=o.getElementsByTagName("title")[0],(!i||i[iu]||i[Se]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=o.createElement(e),o.head.insertBefore(i,o.querySelector("head > title"))),Ce(i,e,n),i[Se]=t,pe(i),e=i;break t;case"link":if(r=db("link","href",o).get(e+(n.href||""))){for(a=0;a<r.length;a++)if(i=r[a],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(a,1);break e}}i=o.createElement(e),Ce(i,e,n),o.head.appendChild(i);break;case"meta":if(r=db("meta","content",o).get(e+(n.content||""))){for(a=0;a<r.length;a++)if(i=r[a],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(a,1);break e}}i=o.createElement(e),Ce(i,e,n),o.head.appendChild(i);break;default:throw Error(R(468,e))}i[Se]=t,pe(i),e=i}t.stateNode=e}else me||mg(r,t.type,t.stateNode);else t.stateNode=mb(r,n,t.memoizedProps);else o!==n?(o===null?(e=i.stateNode,e===null||Tt||e.parentNode.removeChild(e)):o.count--,n===null?me||mg(r,t.type,t.stateNode):mb(r,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Zp(t,t.memoizedProps,i.memoizedProps);break;case 27:Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),i!==null&&o&4&&Zp(t,t.memoizedProps,i.memoizedProps);break;case 5:if(r=$n,$n=!1,Be(e,t,n),$n=r,Ue(t),o&512&&(Tt||i===null||be(i,i.return)),t.flags&32){e=t.stateNode;try{ts(e,""),xt=!0}catch(c){wt(t,t.return,c)}}o&4&&t.stateNode!=null&&(e=t.memoizedProps,Zp(t,e,i!==null?i.memoizedProps:e)),o&1024&&(Fp=!0);break;case 6:if(Be(e,t,n),Ue(t),o&4){if(t.stateNode===null)throw Error(R(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,xt=!0}catch(c){wt(t,t.return,c)}}break;case 3:if(xt=!1,vf=null,r=Gn,Gn=Fl(e.containerInfo),Be(e,t,n),Gn=r,Ue(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{cs(e.containerInfo)}catch(c){wt(t,t.return,c)}Fp&&(Fp=!1,MS(t)),xt=!1;break;case 4:o=$n,$n=me,i=Fv(),r=Gn,Gn=Fl(t.stateNode.containerInfo),Be(e,t,n),Ue(t),Gn=r,xt&&El&&(Yf=!0),xt=i,$n=o;break;case 12:Be(e,t,n),Ue(t);break;case 31:Be(e,t,n),Ue(t),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ic(t,e)));break;case 13:Be(e,t,n),Ue(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(fm=ln()),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ic(t,e)));break;case 22:r=t.memoizedState!==null,a=i!==null&&i.memoizedState!==null;var s=me,l=Tt,u=$n;me=s||r,$n=u||r,Tt=l||a,Be(e,t,n),Tt=l,$n=u,me=s,Ue(t),o&8192&&(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,!r||i===null||a||me||Tt||(e=a||Tt,n=me,i=Tt,me=r||me,Tt=e,So(t,2),me=n,Tt=i),!r&&$n||Qh(t,r)),o&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,Ic(t,n))));break;case 19:Be(e,t,n),Ue(t),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ic(t,e)));break;case 30:o&512&&(Tt||i===null||be(i,i.return)),o=Fv(),r=El,a=(n&335544064)===n,s=t.memoizedProps,El=a&&Xi(s.default,s.update)!=="none",Be(e,t,n),Ue(t),a&&i!==null&&xt&&(t.flags|=4),El=r,xt=o;break;case 21:break;case 7:o&512&&(Tt||i===null||be(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:Be(e,t,n),Ue(t)}}function Ue(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(pS(i)){n=i;break}i=i.return}i=null;for(var o=t.return;o!==null;){if(Wg(o)){var r=o.stateNode;i===null?i=[r]:i.push(r)}if(Jg(o))break;o=o.return}var a=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var s=n.stateNode,l=Qp(t);Gf(t,l,s,a);break;case 5:var u=n.stateNode;n.flags&32&&(ts(u,""),n.flags&=-33);var c=Qp(t);Gf(t,c,u,a);break;case 3:case 4:var m=n.stateNode.containerInfo,f=Qp(t);Yh(t,f,m,a);break;default:throw Error(R(161))}}catch(d){wt(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function MS(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;MS(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,us=!0,e.reset(),us=!1),t=t.sibling}}function wa(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)DS(e,t),e=e.sibling;else xS(e,!1)}function DS(t,e){var n=t.alternate;if(n===null)qh(t,!1);else switch(t.tag){case 3:if(Zh=ti=!1,Yx(),wa(e,t),!ti&&!Yf){if(t=ii,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var o=t[i+1];eT(n,t[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Zh=!0}ii=null;break;case 5:wa(e,t);break;case 4:i=ti,ti=!1,wa(e,t),ti&&(Yf=!0),ti=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?qh(t,!1):wa(e,t));break;case 30:i=ti,o=Yx(),ti=!1,wa(e,t),ti&&(t.flags|=4);var r=t.memoizedProps,a=t.stateNode;e=Pi(r,a),a=Pi(n.memoizedProps,a);var s=Xi(r.default,r.update);s==="none"?e=!1:(r=n.memoizedState,n.memoizedState=null,n=t.child,Qe=0,e=$g(t,n,e,a,s,r,!0),Qe!==(r===null?0:r.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(is(t,t.memoizedProps.onUpdate),ii=o):o!==null&&(o.push.apply(o,ii),ii=o),ti=(t.flags&32)!==0?!0:i;break;default:wa(e,t)}}function ei(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bS(t,e.alternate,e),e=e.sibling}function So(t,e){for(t=t.child;t!==null;){var n=t,i=e;switch(n.tag){case 0:case 11:case 14:case 15:ko(4,n,n.return),So(n,i);break;case 1:be(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&dS(n,n.return,o),So(n,i);break;case 27:(i&2)!==0&&cT(n.stateNode,n.type,n.memoizedProps);case 5:be(n,n.return),n.tag!==5&&n.tag!==27||zl(n),So(n,i);break;case 6:zl(n);break;case 26:be(n,n.return),o=n.stateNode,n.memoizedState!==null||o===null||Tt||o.parentNode.removeChild(o),So(n,i);break;case 22:n.memoizedState===null&&So(n,i);break;case 30:be(n,n.return),So(n,i);break;case 7:be(n,n.return);default:So(n,i)}t=t.sibling}}function Pn(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var i=e.alternate,o=t,r=e,a=r.flags,s=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:Pn(o,r,n),su(4,r);break;case 1:if(Pn(o,r,n),i=r,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(c){wt(i,i.return,c)}if(i=r,o=i.updateQueue,o!==null){var l=i.stateNode;try{var u=o.shared.hiddenCallbacks;if(u!==null)for(o.shared.hiddenCallbacks=null,o=0;o<u.length;o++)S1(u[o],l)}catch(c){wt(i,i.return,c)}}s&&a&64&&mS(r),ni(r,r.return);break;case 27:(n&2)!==0&&hS(r);case 5:r.tag!==5&&r.tag!==27||Gx(r),Pn(o,r,n),s&&i===null&&a&4&&jh(r),ni(r,r.return);break;case 6:Gx(r);break;case 26:l=r.stateNode,r.memoizedState!==null||l===null||me||mg(Fl(l.ownerDocument),r.type,l),Pn(o,r,n),s&&i===null&&a&4&&jh(r),ni(r,r.return);break;case 12:Pn(o,r,n);break;case 31:Pn(o,r,n),s&&a&4&&AS(o,r);break;case 13:Pn(o,r,n),s&&a&4&&CS(o,r);break;case 22:r.memoizedState===null&&Pn(o,r,n),ni(r,r.return);break;case 30:Pn(o,r,n),ni(r,r.return);break;case 7:ni(r,r.return);default:Pn(o,r,n)}e=e.sibling}}function ty(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ru(n))}function ey(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ru(t))}function Tn(t,e,n,i){var o=(n&335544064)===n;if(e.subtreeFlags&(o?10262:10256))for(e=e.child;e!==null;)RS(t,e,n,i),e=e.sibling;else o&&vS(e)}function RS(t,e,n,i){var o=(n&335544064)===n;o&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&pf(e);var r=e.flags;switch(e.tag){case 0:case 11:case 15:Tn(t,e,n,i),r&2048&&su(9,e);break;case 1:Tn(t,e,n,i);break;case 3:Tn(t,e,n,i),o&&Zh&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),r&2048&&(r=null,e.alternate!==null&&(r=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==r&&(e.refCount++,r!=null&&ru(r)));break;case 12:if(r&2048){Tn(t,e,n,i),r=e.stateNode;try{var a=e.memoizedProps,s=a.id,l=a.onPostCommit;typeof l=="function"&&l(s,e.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(u){wt(e,e.return,u)}}else Tn(t,e,n,i);break;case 31:Tn(t,e,n,i);break;case 13:Tn(t,e,n,i);break;case 23:break;case 22:a=e.stateNode,s=e.alternate,e.memoizedState!==null?(o&&s!==null&&s.memoizedState===null&&pf(s),a._visibility&2?Tn(t,e,n,i):Ll(t,e)):(o&&s!==null&&s.memoizedState!==null&&pf(e),a._visibility&2?Tn(t,e,n,i):(a._visibility|=2,Da(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),r&2048&&ty(s,e);break;case 24:Tn(t,e,n,i),r&2048&&ey(e.alternate,e);break;case 30:o&&(r=e.alternate,r!==null&&(ci(r.child,!0),ci(e.child,!0))),Tn(t,e,n,i);break;default:Tn(t,e,n,i)}}function Da(t,e,n,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,a=e,s=n,l=i,u=a.flags;switch(a.tag){case 0:case 11:case 15:Da(r,a,s,l,o),su(8,a);break;case 23:break;case 22:var c=a.stateNode;a.memoizedState!==null?c._visibility&2?Da(r,a,s,l,o):Ll(r,a):(c._visibility|=2,Da(r,a,s,l,o)),o&&u&2048&&ty(a.alternate,a);break;case 24:Da(r,a,s,l,o),o&&u&2048&&ey(a.alternate,a);break;default:Da(r,a,s,l,o)}e=e.sibling}}function Ll(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,o=i.flags;switch(i.tag){case 22:Ll(n,i),o&2048&&ty(i.alternate,i);break;case 24:Ll(n,i),o&2048&&ey(i.alternate,i);break;default:Ll(n,i)}e=e.sibling}}var vr=8192;function hr(t,e,n){if(t.subtreeFlags&vr)for(t=t.child;t!==null;)OS(t,e,n),t=t.sibling}function OS(t,e,n){switch(t.tag){case 26:hr(t,e,n),t.flags&vr&&(t.memoizedState!==null?n2(n,Gn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&hb(n,t)));break;case 5:hr(t,e,n),t.flags&vr&&(t=t.stateNode,(e&335544128)===e&&hb(n,t));break;case 3:case 4:var i=Gn;Gn=Fl(t.stateNode.containerInfo),hr(t,e,n),Gn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=vr,vr=16777216,hr(t,e,n),vr=i):hr(t,e,n));break;case 30:if((t.flags&vr)!==0&&(i=t.memoizedProps.name,i!=null&&i!=="auto")){var o=t.stateNode;o.paired=null,an===null&&(an=new Map),an.set(i,o)}hr(t,e,n);break;default:hr(t,e,n)}}function NS(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function gl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];de=i,zS(i,t)}NS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)VS(t),t=t.sibling}function VS(t){switch(t.tag){case 0:case 11:case 15:gl(t),t.flags&2048&&ko(9,t,t.return);break;case 3:gl(t);break;case 12:gl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,hf(t)):gl(t);break;default:gl(t)}}function hf(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];de=i,zS(i,t)}NS(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ko(8,e,e.return),hf(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,hf(e));break;default:hf(e)}t=t.sibling}}function zS(t,e){for(;de!==null;){var n=de;switch(n.tag){case 0:case 11:case 15:ko(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ru(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,de=i;else t:for(n=t;de!==null;){i=de;var o=i.sibling,r=i.return;if(TS(i),i===n){de=null;break t}if(o!==null){o.return=r,de=o;break t}de=r}}}var $O={getCacheForType:function(t){var e=Te(te),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Te(te).controller.signal}},tN=typeof WeakMap=="function"?WeakMap:Map,bt=0,Rt=null,ht=null,gt=0,At=0,nn=null,Do=!1,hs=!1,ny=!1,qi=0,kt=0,Xo=0,Cr=0,qf=0,sn=0,ns=0,_l=null,Ze=null,Ih=!1,fm=0,LS=0,kf=1/0,Xf=null,Uo=null,Gt=0,Yn=null,zr=null,ui=0,Jh=0,Wh=null,_S=null,Fa=null,Ia=null,Ja=null,Bl=0,gf=null;function fn(){return(bt&2)!==0&>!==0?gt&-gt:nt.T!==null?oy():Pb()}function BS(){if(sn===0)if((gt&536870912)===0||mt){var t=Uc;Uc<<=1,(Uc&3932160)===0&&(Uc=262144),sn=t}else sn=536870912;return t=we.current,t!==null&&(t.flags|=32),sn}function is(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=iT(Pi(t.memoizedProps,n))),Ia===null&&(Ia=[]),Ia.push(e.bind(null,i))}}function Ie(t,e,n){(t===Rt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(os(t,0),Ro(t,gt,sn,!1)),nu(t,n),((bt&2)===0||t!==Rt)&&(t===Rt&&((bt&2)===0&&(Cr|=n),kt===4&&Ro(t,gt,sn,!1)),mi(t))}function US(t,e,n){if((bt&6)!==0)throw Error(R(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||eu(t,e),o=i?iN(t,e):Ip(t,e,!0),r=i;do{if(o===0){hs&&!i&&Ro(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!eN(n)){o=Ip(t,e,!1),r=!1;continue}if(o===2){if(r=e,t.errorRecoveryDisabledLanes&r)var a=0;else a=t.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){e=a;t:{var s=t;o=_l;var l=s.current.memoizedState.isDehydrated;if(l&&(os(s,a).flags|=256),a=Ip(s,a,!1),a!==2&&a!==6){if(ny&&!l){s.errorRecoveryDisabledLanes|=r,Cr|=r,o=4;break t}r=Ze,Ze=o,r!==null&&(Ze===null?Ze=r:Ze.push.apply(Ze,r))}o=a}if(r=!1,o!==2)continue}}if(o===1){os(t,0),Ro(t,e,0,!0);break}t:{switch(i=t,r=o,r){case 0:case 1:throw Error(R(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Ro(i,e,sn,!Do);break t;case 2:Ze=null;break;case 3:case 5:break;default:throw Error(R(329))}if((e&62914560)===e&&(o=fm+300-ln(),10<o)){if(Ro(i,e,sn,!Do),Jf(i,0,!0)!==0)break t;ui=e,i.timeoutHandle=ay(kx.bind(null,i,n,Ze,Xf,Ih,e,sn,Cr,ns,Do,r,"Throttled",-0,0),o);break t}kx(i,n,Ze,Xf,Ih,e,sn,Cr,ns,Do,r,null,-0,0)}}break}while(!0);mi(t)}function kx(t,e,n,i,o,r,a,s,l,u,c,m,f,d){t.timeoutHandle=-1;var g=e.subtreeFlags,v=(r&335544064)===r;if(m=null,(v||g&8192||(g&16785408)===16785408)&&(m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ri},an=null,OS(e,r,m),v&&(g=m,v=t.containerInfo,v=(v.nodeType===9?v:v.ownerDocument).__reactViewTransition,v!=null&&(g.count++,g.waitingForViewTransition=!0,g=Il.bind(g),v.finished.then(g,g))),g=(r&62914560)===r?fm-ln():(r&4194048)===r?LS-ln():0,g=i2(m,g),g!==null)){ui=r,t.cancelPendingCommit=g(Kx.bind(null,t,e,r,n,i,o,a,s,l,u,c,m,null,f,d)),Ro(t,r,a,!u);return}Kx(t,e,r,n,i,o,a,s,l,u,c,m)}function eN(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],r=o.getSnapshot;o=o.value;try{if(!mn(r(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ro(t,e,n,i){e=Lb(t,e),e&=~qf,e&=~Cr,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var r=31-cn(o),a=1<<r;i[r]=-1,o&=~a}n!==0&&Bb(t,n,e)}function mm(){return(bt&6)===0?(lu(0,!1),!1):!0}function iy(){if(ht!==null){if(At===0)var t=ht.return;else t=ht,_i=Hr=null,Gg(t),Ka=null,ql=0,t=ht;for(;t!==null;)fS(t.alternate,t),t=t.return;ht=null}}function os(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,EN(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ui=0,iy(),Rt=t,ht=n=Bi(t.current,null),gt=e,At=0,nn=null,Do=!1,hs=eu(t,e),ny=!1,ns=sn=qf=Cr=Xo=kt=0,Ze=_l=null,Ih=!1,qi=Lb(t,e),nm(),n}function HS(t,e){ft=null,nt.H=Uf,e===ds||e===rm?(e=yx(),At=3):e===Vg?(e=yx(),At=4):At=e===Qg?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,nn=e,ht===null&&(kt=1,Hf(t,Mn(e,t.current)))}function PS(){var t=we.current;return t===null?!0:(gt&4194048)===gt?Ve===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Ve:!1}function GS(){var t=nt.H;return nt.H=Uf,t===null?Uf:t}function jS(){var t=nt.A;return nt.A=$O,t}function Kf(){kt=4,Do||(gt&4194048)!==gt&&we.current!==null||(hs=!0),(Xo&134217727)===0&&(Cr&134217727)===0||Rt===null||Ro(Rt,gt,sn,!1)}function Ip(t,e,n){var i=bt;bt|=2;var o=GS(),r=jS();(Rt!==t||gt!==e)&&(Xf=null,os(t,e)),e=!1;var a=kt;t:do try{if(At!==0&&ht!==null){var s=ht,l=nn;switch(At){case 8:iy(),a=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var u=At;if(At=0,nn=null,ja(t,s,l,u),n&&hs){a=0;break t}break;default:u=At,At=0,nn=null,ja(t,s,l,u)}}nN(),a=kt;break}catch(c){HS(t,c)}while(!0);return e&&t.shellSuspendCounter++,_i=Hr=null,bt=i,nt.H=o,nt.A=r,ht===null&&(Rt=null,gt=0,nm()),a}function nN(){for(;ht!==null;)YS(ht)}function iN(t,e){var n=bt;bt|=2;var i=GS(),o=jS();Rt!==t||gt!==e?(Xf=null,kf=ln()+500,os(t,e)):hs=eu(t,e);t:do try{if(At!==0&&ht!==null){e=ht;var r=nn;e:switch(At){case 1:At=0,nn=null,ja(t,e,r,1);break;case 2:case 9:if(gx(r)){At=0,nn=null,Xx(e);break}e=function(){At!==2&&At!==9||Rt!==t||(At=7),mi(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:gx(r)?(At=0,nn=null,Xx(e)):(At=0,nn=null,ja(t,e,r,7));break;case 5:var a=null;switch(ht.tag){case 26:a=ht.memoizedState;case 5:case 27:var s=ht;if(a?dT(a):s.stateNode.complete){At=0,nn=null;var l=s.sibling;if(l!==null)ht=l;else{var u=s.return;u!==null?(ht=u,dm(u)):ht=null}break e}}At=0,nn=null,ja(t,e,r,5);break;case 6:At=0,nn=null,ja(t,e,r,6);break;case 8:iy(),kt=6;break t;default:throw Error(R(462))}}oN();break}catch(c){HS(t,c)}while(!0);return _i=Hr=null,nt.H=i,nt.A=o,bt=n,ht!==null?0:(Rt=null,gt=0,nm(),kt)}function oN(){for(;ht!==null&&!SR();)YS(ht)}function YS(t){var e=cS(t.alternate,t,qi);t.memoizedProps=t.pendingProps,e===null?dm(t):ht=e}function Xx(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=zx(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=zx(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Gg(e);var i=e;i===he&&(mt?(Of(i),i.tag===5&&i.stateNode!=null&&(Lt=i.stateNode)):(Of(i),mt=!0));default:fS(n,e),e=ht=m1(e,qi),e=cS(n,e,qi)}t.memoizedProps=t.pendingProps,e===null?dm(t):ht=e}function ja(t,e,n,i){_i=Hr=null,Gg(e),Ka=null,ql=0;var o=e.return;try{if(XO(t,o,e,n,gt)){kt=1,Hf(t,Mn(n,t.current)),ht=null;return}}catch(r){if(o!==null)throw ht=o,r;kt=1,Hf(t,Mn(n,t.current)),ht=null;return}e.flags&32768?(mt||i===1?t=!0:hs||(gt&536870912)!==0?t=!1:(Do=t=!0,(i===2||i===9||i===3||i===6)&&(i=we.current,i!==null&&i.tag===13&&(i.flags|=16384))),qS(e,t)):dm(e)}function dm(t){var e=t;do{if((e.flags&32768)!==0){qS(e,Do);return}t=e.return;var n=FO(e.alternate,e,qi);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);kt===0&&(kt=5)}function qS(t,e){do{var n=IO(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);kt=6,ht=null}function Kx(t,e,n,i,o,r,a,s,l,u,c,m){t.cancelPendingCommit=null;do pm();while(Gt!==0);if((bt&6)!==0)throw Error(R(327));if(e!==null){if(e===t.current)throw Error(R(177));t===Rt&&(ht=Rt=null,gt=0),zr=e,Yn=t,ui=n,Wh=o,_S=i,rN(t,e,n,a,s,l,m)}}function rN(t,e,n,i,o,r,a){var s=e.lanes|e.childLanes;if(Jh=s,s|=wg,NR(t,n,s,i,o,r),Ia=null,(n&335544064)===n?(Ja=zO(t),i=10262):(Ja=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,fN(Cf,function(){return ng(),null})):(t.callbackNode=null,t.callbackPriority=0),jf=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=nt.T,nt.T=null,o=St.p,St.p=2,r=bt,bt|=4;try{JO(t,e,n)}finally{bt=r,St.p=o,nt.T=i}}Gt=1,jf?Fa=RN(a,t.containerInfo,Ja,$h,tg,sN,eg,ng,aN,null,null):($h(),tg(),eg())}function aN(t){if(Gt!==0){var e=Yn.onRecoverableError;e(t,{componentStack:null})}}function sN(){Gt===3&&(Gt=0,DS(zr,Yn),Gt=4)}function $h(){if(Gt===1){Gt=0;var t=Yn,e=zr,n=ui,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=nt.T,nt.T=null;var o=St.p;St.p=2;var r=bt;bt|=4;try{El=Yf=!1,wS(e,t,n),n=ag;var a=o1(t.containerInfo),s=n.focusedElem,l=n.selectionRange;if(a!==s&&s&&s.ownerDocument&&i1(s.ownerDocument.documentElement,s)){if(l!==null&&Cg(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 m=s.ownerDocument||document,f=m&&m.defaultView||window;if(f.getSelection){var d=f.getSelection(),g=s.textContent.length,v=Math.min(l.start,g),x=l.end===void 0?v:Math.min(l.end,g);!d.extend&&v>x&&(a=x,x=v,v=a);var p=lx(s,v),h=lx(s,x);if(p&&h&&(d.rangeCount!==1||d.anchorNode!==p.node||d.anchorOffset!==p.offset||d.focusNode!==h.node||d.focusOffset!==h.offset)){var y=m.createRange();y.setStart(p.node,p.offset),d.removeAllRanges(),v>x?(d.addRange(y),d.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),d.addRange(y))}}}}for(m=[],d=s;d=d.parentNode;)d.nodeType===1&&m.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<m.length;s++){var b=m[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}us=!!rg,ag=rg=null}finally{bt=r,St.p=o,nt.T=i}}t.current=e,Gt=2}}function tg(){if(Gt===2){Gt=0;var t=Yn,e=zr,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=nt.T,nt.T=null;var i=St.p;St.p=2;var o=bt;bt|=4;try{bS(t,e.alternate,e)}finally{bt=o,St.p=i,nt.T=n}}Gt=3}}function eg(){if(Gt===4||Gt===3){Gt=0;var t=Fa;Fa=null,TR();var e=Yn,n=zr,i=ui,o=_S,r=(i&335544064)===i?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?Gt=5:(Gt=0,zr=Yn=null,kS(e,e.pendingLanes)),r=e.pendingLanes,r===0&&(Uo=null),xg(i),n=n.stateNode,un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(tu,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=nt.T,r=St.p,St.p=2,nt.T=null;try{for(var a=e.onRecoverableError,s=0;s<o.length;s++){var l=o[s];a(l.value,{componentStack:l.stack})}}finally{nt.T=n,St.p=r}}if(o=Ia,a=Ja,Ja=null,o!==null&&(Ia=null,a===null&&(a=[]),t!==null))for(l=0;l<o.length;l++)n=(0,o[l])(a),n!==void 0&&t.finished.finally(n);(ui&3)!==0&&pm(),mi(e),r=e.pendingLanes,(i&261930)!==0&&(r&42)!==0?e===gf?Bl++:(Bl=0,gf=e):(Bl=0,gf=null),lu(0,!1)}}function kS(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ru(e)))}function pm(){return Fa!==null&&(Fa.skipTransition(),Fa=null),$h(),tg(),eg(),ng()}function ng(){if(Gt!==5)return!1;var t=Yn,e=Jh;Jh=0;var n=xg(ui),i=nt.T,o=St.p;try{St.p=32>n?32:n,nt.T=null,n=Wh,Wh=null;var r=Yn,a=ui;if(Gt=0,zr=Yn=null,ui=0,(bt&6)!==0)throw Error(R(331));var s=bt;if(bt|=4,VS(r.current),RS(r,r.current,a,n),bt=s,lu(0,!1),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(tu,r)}catch{}return!0}finally{St.p=o,nt.T=i,kS(t,e)}}function Zx(t,e,n){e=Mn(n,e),e=_h(t.stateNode,e,2),t=Lo(t,e,2),t!==null&&(nu(t,2),mi(t))}function wt(t,e,n){if(t.tag===3)Zx(t,t,n);else for(;e!==null;){if(e.tag===3){Zx(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Uo===null||!Uo.has(i))){t=Mn(n,t),n=rS(2),i=Lo(e,n,2),i!==null&&(aS(n,i,e,t),nu(i,2),mi(i));break}}e=e.return}}function Jp(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new tN;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(n)||(ny=!0,o.add(n),t=lN.bind(null,t,e,n),e.then(t,t))}function lN(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rt===t&&(gt&n)===n&&((kt===4||kt===3&&(gt&62914560)===gt&&300>ln()-fm)&&(bt&2)===0?os(t,0):qf|=n,ns===gt&&(ns=0)),mi(t)}function XS(t,e){e===0&&(e=_b()),t=Ur(t,e),t!==null&&(nu(t,e),mi(t))}function uN(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),XS(t,n)}function cN(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(e),XS(t,n)}function fN(t,e){return yg(t,e)}var rs=null,Ra=null,ig=!1,Zf=!1,Wp=!1,Oo=0;function mi(t){t!==Ra&&t.next===null&&(Ra===null?rs=Ra=t:Ra=Ra.next=t),Zf=!0,ig||(ig=!0,dN())}function lu(t,e){if(!Wp&&Zf){Wp=!0;do for(var n=!1,i=rs;i!==null;){if(!e)if(t!==0){var o=i.pendingLanes;if(o===0)var r=0;else{var a=i.suspendedLanes,s=i.pingedLanes;r=(1<<31-cn(42|t)+1)-1,r&=o&~(a&~s),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Qx(i,r))}else r=gt,r=Jf(i,i===Rt?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(r&3)===0||eu(i,r)||(n=!0,Qx(i,r));i=i.next}while(n);Wp=!1}}function mN(){KS()}function KS(){Zf=ig=!1;var t=0;Oo!==0&&TN()&&(t=Oo);for(var e=ln(),n=null,i=rs;i!==null;){var o=i.next,r=ZS(i,e);r===0?(i.next=null,n===null?rs=o:n.next=o,o===null&&(Ra=n)):(n=i,(t!==0||(r&3)!==0)&&(Zf=!0)),i=o}Gt!==0&&Gt!==5||lu(t,!1),Oo!==0&&(Oo=0)}function ZS(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var a=31-cn(r),s=1<<a,l=o[a];l===-1?((s&n)===0||(s&i)!==0)&&(o[a]=OR(s,e)):l<=e&&(t.expiredLanes|=s),r&=~s}if(e=Rt,n=gt,n=Jf(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Op(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||eu(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Op(i),xg(n)){case 2:case 8:n=Vb;break;case 32:n=Cf;break;case 268435456:n=zb;break;default:n=Cf}return i=QS.bind(null,t),n=yg(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Op(i),t.callbackPriority=2,t.callbackNode=null,2}function QS(t,e){if(Gt!==0&&Gt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(pm()&&t.callbackNode!==n)return null;var i=gt;return i=Jf(t,t===Rt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(US(t,i,e),ZS(t,ln()),t.callbackNode!=null&&t.callbackNode===n?QS.bind(null,t):null)}function Qx(t,e){if(pm())return null;US(t,e,!0)}function dN(){AN(function(){(bt&6)!==0?yg(Nb,mN):KS()})}function oy(){if(Oo===0){var t=Rr;t===0&&(t=Bc,Bc<<=1,(Bc&261888)===0&&(Bc=256)),Oo=t}return Oo}function Fx(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:of(t)}function pN(t,e,n,i,o){if(e==="submit"&&n&&n.stateNode===o){var r=Fx((o[We]||null).action),a=i.submitter;a&&(e=(e=a[We]||null)?Fx(e.formAction):a.getAttribute("formAction"),e!==null&&(r=e,a=null));var s=new $f("action","action",null,i,o);t.push({event:s,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Oo!==0){var l=new FormData(o,a);zh(n,{pending:!0,data:l,method:o.method,action:r},null,l)}}else typeof r=="function"&&(s.preventDefault(),l=new FormData(o,a),zh(n,{pending:!0,data:l,method:o.method,action:r},r,l))},currentTarget:o}]})}}for(Jc=0;Jc<Th.length;Jc++)Wc=Th[Jc],Ix=Wc.toLowerCase(),Jx=Wc[0].toUpperCase()+Wc.slice(1),qn(Ix,"on"+Jx);var Wc,Ix,Jx,Jc;qn(a1,"onAnimationEnd");qn(s1,"onAnimationIteration");qn(l1,"onAnimationStart");qn("dblclick","onDoubleClick");qn("focusin","onFocus");qn("focusout","onBlur");qn(CO,"onTransitionRun");qn(wO,"onTransitionStart");qn(MO,"onTransitionCancel");qn(u1,"onTransitionEnd");$a("onMouseEnter",["mouseout","mouseover"]);$a("onMouseLeave",["mouseout","mouseover"]);$a("onPointerEnter",["pointerout","pointerover"]);$a("onPointerLeave",["pointerout","pointerover"]);_r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_r("onBeforeInput",["compositionend","keypress","textInput","paste"]);_r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),hN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function FS(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],o=i.event;i=i.listeners;t:{var r=void 0;if(e)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==r&&o.isPropagationStopped())break t;r=s,o.currentTarget=u;try{r(o)}catch(c){Mf(c)}o.currentTarget=null,r=l}else for(a=0;a<i.length;a++){if(s=i[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==r&&o.isPropagationStopped())break t;r=s,o.currentTarget=u;try{r(o)}catch(c){Mf(c)}o.currentTarget=null,r=l}}}}function pt(t,e){var n=e[Xv];n===void 0&&(n=e[Xv]=new Set);var i=t+"__bubble";n.has(i)||(IS(e,t,2,!1),n.add(i))}function $p(t,e,n){var i=0;e&&(i|=4),IS(n,t,i,e)}var $c="_reactListening"+Math.random().toString(36).slice(2);function ry(t){if(!t[$c]){t[$c]=!0,jb.forEach(function(n){n!=="selectionchange"&&(hN.has(n)||$p(n,!1,t),$p(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[$c]||(e[$c]=!0,$p("selectionchange",!1,e))}}function IS(t,e,n,i){switch(bT(e)){case 2:var o=s2;break;case 8:o=l2;break;default:o=my}n=o.bind(null,e,n,t),o=void 0,!vh||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function th(t,e,n,i,o){var r=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var s=i.stateNode.containerInfo;if(s===o)break;if(a===4)for(a=i.return;a!==null;){var l=a.tag;if((l===3||l===4)&&a.stateNode.containerInfo===o)return;a=a.return}for(;s!==null;){if(a=xr(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){i=r=a;continue t}s=s.parentNode}}i=i.return}Fb(function(){var u=r,c=Sg(n),m=[];t:{var f=c1.get(t);if(f!==void 0){var d=$f,g=t;switch(t){case"keypress":if(af(n)===0)break t;case"keydown":case"keyup":d=eO;break;case"focusin":g="focus",d=Bp;break;case"focusout":g="blur",d=Bp;break;case"beforeblur":case"afterblur":d=Bp;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=$v;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=qR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=aO;break;case a1:case s1:case l1:d=KR;break;case u1:d=lO;break;case"scroll":case"scrollend":d=jR;break;case"wheel":d=cO;break;case"copy":case"cut":case"paste":d=QR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ex;break;case"submit":d=oO;break;case"toggle":case"beforetoggle":d=mO}var v=(e&4)!==0,x=!v&&(t==="scroll"||t==="scrollend"),p=v?f!==null?f+"Capture":null:f;v=[];for(var h=u,y;h!==null;){var b=h;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||p===null||(b=Hl(h,p),b!=null&&v.push(Zl(h,b,y))),x)break;h=h.return}0<v.length&&(f=new d(f,g,null,n,c),m.push({event:f,listeners:v}))}}if((e&7)===0){t:{if(d=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",d&&n!==yh&&(g=n.relatedTarget||n.fromElement)&&(xr(g)||g[fs]))break t;(f||d)&&(g=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,f?(d=n.relatedTarget||n.toElement,f=u,d=d?xr(d):null,d!==null&&(x=$l(d),v=d.tag,d!==x||v!==5&&v!==27&&v!==6)&&(d=null)):(f=null,d=u),f!==d&&(v=$v,b="onMouseLeave",p="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(v=ex,b="onPointerLeave",p="onPointerEnter",h="pointer"),x=f==null?g:Sl(f),y=d==null?g:Sl(d),g=new v(b,h+"leave",f,n,c),g.target=x,g.relatedTarget=y,b=null,xr(c)===u&&(v=new v(p,h+"enter",d,n,c),v.target=y,v.relatedTarget=x,b=v),x=b,v=f&&d?rh(f,d,gN):null,f!==null&&Wx(m,g,f,v,!1),d!==null&&x!==null&&Wx(m,x,d,v,!0)))}t:{if(f=u?Sl(u):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var E=rx;else if(ox(f))if(e1)E=TO;else{E=bO;var C=xO}else d=f.nodeName,!d||d.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&bg(u.elementType)&&(E=rx):E=SO;if(E&&(E=E(t,u))){t1(m,E,n,c);break t}C&&C(t,f,u)}switch(C=u?Sl(u):window,t){case"focusin":(ox(C)||C.contentEditable==="true")&&(_a=C,bh=u,wl=null);break;case"focusout":wl=bh=_a=null;break;case"mousedown":Sh=!0;break;case"contextmenu":case"mouseup":case"dragend":Sh=!1,ux(m,n,c);break;case"selectionchange":if(AO)break;case"keydown":case"keyup":ux(m,n,c)}var T;if(Ag)t:{switch(t){case"compositionstart":var S="onCompositionStart";break t;case"compositionend":S="onCompositionEnd";break t;case"compositionupdate":S="onCompositionUpdate";break t}S=void 0}else La?Wb(t,n)&&(S="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Jb&&n.locale!=="ko"&&(La||S!=="onCompositionStart"?S==="onCompositionEnd"&&La&&(T=Ib()):(wo=c,Tg="value"in wo?wo.value:wo.textContent,La=!0)),C=Qf(u,S),0<C.length&&(S=new tx(S,t,null,n,c),m.push({event:S,listeners:C}),T?S.data=T:(T=$b(n),T!==null&&(S.data=T)))),(T=pO?hO(t,n):gO(t,n))&&(S=Qf(u,"onBeforeInput"),0<S.length&&(C=new tx("onBeforeInput","beforeinput",null,n,c),m.push({event:C,listeners:S}),C.data=T)),pN(m,t,u,n,c)}FS(m,e)})}function Zl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qf(t,e){for(var n=e+"Capture",i=[];t!==null;){var o=t,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Hl(t,n),o!=null&&i.unshift(Zl(t,o,r)),o=Hl(t,e),o!=null&&i.push(Zl(t,o,r))),t.tag===3)return i;t=t.return}return[]}function gN(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Wx(t,e,n,i,o){for(var r=e._reactName,a=[];n!==null&&n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===i)break;s!==5&&s!==26&&s!==27||u===null||(l=u,o?(u=Hl(n,r),u!=null&&a.unshift(Zl(n,u,l))):o||(u=Hl(n,r),u!=null&&a.push(Zl(n,u,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var yN=/\r\n?/g,vN=/\u0000|\uFFFD/g;function $x(t){return(typeof t=="string"?t:""+t).replace(yN,`
|
|
9
|
-
`).replace(vN,"")}function JS(t,e){return e=$x(e),$x(t)===e}function Ct(t,e,n,i,o,r){switch(n){case"children":if(typeof i=="string")e==="body"||e==="textarea"&&i===""||ts(t,i);else if(typeof i=="number"||typeof i=="bigint")e!=="body"&&ts(t,""+i);else return;break;case"className":Pc(t,"class",i);break;case"tabIndex":Pc(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Pc(t,n,i);break;case"style":Qb(t,i,r);return;case"data":if(e!=="object"){Pc(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=of(i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"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"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",o.name,o,null),Ct(t,e,"formEncType",o.formEncType,o,null),Ct(t,e,"formMethod",o.formMethod,o,null),Ct(t,e,"formTarget",o.formTarget,o,null)):(Ct(t,e,"encType",o.encType,o,null),Ct(t,e,"method",o.method,o,null),Ct(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=of(i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=ri);return;case"onScroll":i!=null&&pt("scroll",t);return;case"onScrollEnd":i!=null&&pt("scrollend",t);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(R(60));r?.__html!==n&&(t.innerHTML=n)}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=of(i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":pt("beforetoggle",t),pt("toggle",t),nf(t,"popover",i);break;case"xlinkActuate":Vi(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Vi(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Vi(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Vi(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Vi(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Vi(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Vi(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Vi(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Vi(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":nf(t,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=PR.get(n)||n,nf(t,n,i);else return}xt=!0}function og(t,e,n,i,o,r){switch(n){case"style":Qb(t,i,r);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(R(60));r?.__html!==n&&(t.innerHTML=n)}}break;case"children":if(typeof i=="string")ts(t,i);else if(typeof i=="number"||typeof i=="bigint")ts(t,""+i);else return;break;case"onScroll":i!=null&&pt("scroll",t);return;case"onScrollEnd":i!=null&&pt("scrollend",t);return;case"onClick":i!=null&&(t.onclick=ri);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Yb.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),r=n.slice(2,o?n.length-7:void 0),e=t[We]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(r,e,o),typeof i=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(r,i,o);break t}xt=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,""):nf(t,n,i)}return}xt=!0}function Ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var i=!1,o=!1,r;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(a!=null)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,r,a,n,null)}}o&&Ct(t,e,"srcSet",n.srcSet,n,null),i&&Ct(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var s=r=a=o=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":o=c;break;case"type":a=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(R(137,e));break;default:Ct(t,e,i,c,n,null)}}Xb(t,r,s,l,u,a,o,!1);return;case"select":pt("invalid",t),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case"value":r=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:Ct(t,e,o,s,n,null)}e=r,n=a,t.multiple=!!i,e!=null?qa(t,!!i,e,!1):n!=null&&qa(t,!!i,n,!0);return;case"textarea":pt("invalid",t),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(91));break;default:Ct(t,e,a,s,n,null)}Zb(t,i,o,r);return;case"option":for(l in n)n.hasOwnProperty(l)&&(i=n[l],i!=null)&&(l==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Ct(t,e,l,i,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(i=0;i<Kl.length;i++)pt(Kl[i],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("load",t);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 n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,u,i,n,null)}return;default:if(bg(e)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&og(t,e,c,i,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(i=n[s],i!=null&&Ct(t,e,s,i,n,null))}var xN={};function bN(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,a=null,s=null,l=null,u=null,c=null;for(d in n){var m=n[d];if(n.hasOwnProperty(d)&&m!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":l=m;default:i.hasOwnProperty(d)||Ct(t,e,d,null,i,m)}}for(var f in i){var d=i[f];if(m=n[f],i.hasOwnProperty(f)&&(d!=null||m!=null))switch(f){case"type":d!==m&&(xt=!0),r=d;break;case"name":d!==m&&(xt=!0),o=d;break;case"checked":d!==m&&(xt=!0),u=d;break;case"defaultChecked":d!==m&&(xt=!0),c=d;break;case"value":d!==m&&(xt=!0),a=d;break;case"defaultValue":d!==m&&(xt=!0),s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(R(137,e));break;default:d!==m&&Ct(t,e,f,d,i,m)}}gh(t,a,s,l,u,c,r,o);return;case"select":d=a=s=f=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":d=l;default:i.hasOwnProperty(r)||Ct(t,e,r,null,i,l)}for(o in i)if(r=i[o],l=n[o],i.hasOwnProperty(o)&&(r!=null||l!=null))switch(o){case"value":r!==l&&(xt=!0),f=r;break;case"defaultValue":r!==l&&(xt=!0),s=r;break;case"multiple":r!==l&&(xt=!0),a=r;default:r!==l&&Ct(t,e,o,r,i,l)}e=s,n=a,i=d,f!=null?qa(t,!!n,f,!1):!!i!=!!n&&(e!=null?qa(t,!!n,e,!0):qa(t,!!n,n?[]:"",!1));return;case"textarea":d=f=null;for(s in n)if(o=n[s],n.hasOwnProperty(s)&&o!=null&&!i.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ct(t,e,s,null,i,o)}for(a in i)if(o=i[a],r=n[a],i.hasOwnProperty(a)&&(o!=null||r!=null))switch(a){case"value":o!==r&&(xt=!0),f=o;break;case"defaultValue":o!==r&&(xt=!0),d=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(R(91));break;default:o!==r&&Ct(t,e,a,o,i,r)}Kb(t,f,d);return;case"option":for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g)&&(g==="selected"?t.selected=!1:Ct(t,e,g,null,i,f));for(l in i)f=i[l],d=n[l],i.hasOwnProperty(l)&&f!==d&&(f!=null||d!=null)&&(l==="selected"?(f!==d&&(xt=!0),t.selected=f&&typeof f!="function"&&typeof f!="symbol"):Ct(t,e,l,f,i,d));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 v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!i.hasOwnProperty(v)&&Ct(t,e,v,null,i,f);for(u in i)if(f=i[u],d=n[u],i.hasOwnProperty(u)&&f!==d&&(f!=null||d!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,e));break;default:Ct(t,e,u,f,i,d)}return;default:if(bg(e)){for(var x in n)f=n[x],n.hasOwnProperty(x)&&f!==void 0&&!i.hasOwnProperty(x)&&og(t,e,x,void 0,i,f);for(c in i)f=i[c],d=n[c],!i.hasOwnProperty(c)||f===d||f===void 0&&d===void 0||og(t,e,c,f,i,d);return}}for(var p in n)f=n[p],n.hasOwnProperty(p)&&f!=null&&!i.hasOwnProperty(p)&&Ct(t,e,p,null,i,f);for(m in i)f=i[m],d=n[m],!i.hasOwnProperty(m)||f===d||f==null&&d==null||Ct(t,e,m,f,i,d)}function tb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SN(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],r=o.transferSize,a=o.initiatorType,s=o.duration;if(r&&s&&tb(a)){for(a=0,s=o.responseEnd,i+=1;i<n.length;i++){var l=n[i],u=l.startTime;if(u>s)break;var c=l.transferSize,m=l.initiatorType;c&&tb(m)&&(l=l.responseEnd,a+=c*(l<s?1:(s-u)/(l-u)))}if(--i,e+=8*(r+a)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var rg=null,ag=null;function Ql(t){return t.nodeType===9?t:t.ownerDocument}function eb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WS(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function $S(t,e,n,i){return n=Ql(n).createElement(t),n[Se]=i,n[We]=e,Ce(n,t,e),pe(n),n}function sg(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var eh=null;function TN(){var t=window.event;return t&&t.type==="popstate"?t===eh?!1:(eh=t,!0):(eh=null,!1)}var ay=typeof setTimeout=="function"?setTimeout:void 0,EN=typeof clearTimeout=="function"?clearTimeout:void 0,nb=typeof Promise=="function"?Promise:void 0,ib=typeof requestAnimationFrame=="function"?requestAnimationFrame:ay,AN=typeof queueMicrotask=="function"?queueMicrotask:typeof nb<"u"?function(t){return nb.resolve(null).then(t).catch(CN)}:ay;function CN(t){setTimeout(function(){throw t})}function Zo(t){return t==="head"}function ob(t,e){var n=e,i=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(o),cs(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")ih(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ih(n);for(var r=n.firstChild;r;){var a=r.nextSibling,s=r.nodeName;r[iu]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=a}}else n==="body"&&ih(t.ownerDocument.body);n=o}while(n);cs(e)}function rb(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function tT(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var i=1;else for(var o=i=0;o<e.length;o++){var r=e[o];0<r.width&&0<r.height&&i++}i===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function eT(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function nT(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function lg(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return nT(e,n,t)}function wN(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var n=getComputedStyle(t);return nT(e,n,t)}function MN(t){return t.documentElement.clientHeight}function DN(t){this.addEventListener("load",t),this.addEventListener("error",t)}function RN(t,e,n,i,o,r,a,s,l){var u=e.nodeType===9?e:e.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,d=f.navigation&&f.navigation.transition,g=u.fonts.status;i();var v=[];if(g==="loaded"&&(MN(u),u.fonts.status==="loading"&&v.push(u.fonts.ready)),g=v.length,t!==null)for(var x=t.suspenseyImages,p=0,h=0;h<x.length;h++){var y=x[h];if(!y.complete){var b=y.getBoundingClientRect();if(0<b.bottom&&0<b.right&&b.top<f.innerHeight&&b.left<f.innerWidth){if(p+=pT(y),p>xf){v.length=g;break}y=new Promise(DN.bind(y)),v.push(y)}}}if(0<v.length)return f=Promise.race([Promise.all(v),new Promise(function(E){return setTimeout(E,500)})]).then(o,o),(d?Promise.allSettled([d.finished,f]):f).then(r,r);if(o(),d)return d.finished.then(r,r);r()},types:n});u.__reactViewTransition=c;var m=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),d=0;d<f.length;d++){var g=f[d],v=g.effect,x=v.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){m.push(g),g=v.getKeyframes();for(var p=x=void 0,h=!0,y=0;y<g.length;y++){var b=g[y],E=b.width;if(x===void 0)x=E;else if(x!==E){h=!1;break}if(E=b.height,p===void 0)p=E;else if(p!==E){h=!1;break}delete b.width,delete b.height,b.transform==="none"&&delete b.transform}h&&x!==void 0&&p!==void 0&&(v.setKeyframes(g),h=getComputedStyle(v.target,v.pseudoElement),h.width!==x||h.height!==p)&&(h=g[0],h.width=x,h.height=p,h=g[g.length-1],h.width=x,h.height=p,v.setKeyframes(g))}}a()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{typeof f=="object"&&f!==null&&f.name==="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{i(),o(),a()}}),c.finished.finally(function(){for(var f=0;f<m.length;f++)m[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return i(),o(),a(),null}}function br(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}br.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:Ot({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};br.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),i=[],o=0;o<n.length;o++){var r=n[o].effect;r!==null&&r.target===t&&r.pseudoElement===e&&i.push(n[o])}return i};br.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function iT(t){return{name:t,group:new br("group",t),imagePair:new br("image-pair",t),old:new br("old",t),new:new br("new",t)}}function dn(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}dn.prototype.addEventListener=function(t,e,n){var i=null,o=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(oT(r,t,e,n)===-1){var a=this,s=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(s=function(l){a.removeEventListener(t,e,n),typeof e=="function"?e.call(this,l):e.handleEvent(l)}),i!==null&&(o=a.removeEventListener.bind(a,t,e,n),i.addEventListener("abort",o,{once:!0}),o=i.removeEventListener.bind(i,"abort",o)),i=as(n),r.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:s,cleanup:o}),Je(this._fragmentFiber.child,!1,ON,t,s,i)}this._eventListeners=r}};function ON(t,e,n,i){return re(t).addEventListener(e,n,i),!1}dn.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=oT(i,t,e,n),e!==-1)){var o=i[e];n=o.attachedListener;var r=o.cleanup;o=as(o.optionsOrUseCapture),Je(this._fragmentFiber.child,!1,NN,t,n,o),i.splice(e,1),r!==null&&r()}};function NN(t,e,n,i){return re(t).removeEventListener(e,n,i),!1}function as(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function ab(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function oT(t,e,n,i){if(t.length===0)return-1;i=ab(i);for(var o=0;o<t.length;o++){var r=t[o];if(r.type===e&&r.listener===n&&ab(r.optionsOrUseCapture)===i)return o}return-1}dn.prototype.dispatchEvent=function(t){var e=Lr(this._fragmentFiber);if(e===null)return!0;e=re(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var i=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var o=0;o<n.length;o++){var r=n[o];i.addEventListener(r.type,r.attachedListener,as(r.optionsOrUseCapture))}if(e.appendChild(i),t=i.dispatchEvent(t),n)for(o=0;o<n.length;o++)r=n[o],i.removeEventListener(r.type,r.attachedListener,as(r.optionsOrUseCapture));return e.removeChild(i),t}return e.dispatchEvent(t)};dn.prototype.focus=function(t){Je(this._fragmentFiber.child,!0,rT,t,void 0,void 0)};function rT(t,e){return t.tag===6?!1:(t=re(t),qN(t,e))}dn.prototype.focusLast=function(t){var e=[];Je(this._fragmentFiber.child,!0,sy,e,void 0,void 0);for(var n=e.length-1;0<=n&&!rT(e[n],t);n--);};function sy(t,e){return e.push(t),!1}dn.prototype.blur=function(){var t=Lr(this._fragmentFiber);t!==null&&(t=re(t),t=Ql(t).activeElement,t!==null&&Je(this._fragmentFiber.child,!1,VN,t,void 0,void 0))};function VN(t,e){return t.tag===6?!1:(t=re(t),t===e||t.contains(e)?(e.blur(),!0):!1)}dn.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Je(this._fragmentFiber.child,!1,zN,t,void 0,void 0)};function zN(t,e){return t.tag===6||(t=re(t),e.observe(t)),!1}dn.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Je(this._fragmentFiber.child,!1,LN,t,void 0,void 0);for(var n=e=0;n<jn.length;n++){var i=jn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):jn[e++]=i}jn.length=e}};function LN(t,e){return t.tag===6||(t=re(t),e.unobserve(t)),!1}var jn=[],nh=!1;function _N(t,e,n){jn.push({fragmentInstance:t,observer:e,instance:n}),nh||(nh=!0,kN(function(){nh=!1;var i=jn;jn=[];for(var o=0;o<i.length;o++){var r=i[o];r.observer.unobserve(r.instance)}}))}dn.prototype.getClientRects=function(){var t=[];return Je(this._fragmentFiber.child,!1,BN,t,void 0,void 0),t};function BN(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=re(t),e.push.apply(e,t.getClientRects());return!1}dn.prototype.getRootNode=function(t){var e=Lr(this._fragmentFiber);return e===null?this:re(e).getRootNode(t)};dn.prototype.compareDocumentPosition=function(t){var e=Lr(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Je(this._fragmentFiber.child,!1,sy,n,void 0,void 0);var i=re(e);if(n.length===0){if(n=i,Pv(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var o=i=n.compareDocumentPosition(t);return n===t?o=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Mb(e)[1],n===null?o=Node.DOCUMENT_POSITION_PRECEDING:(t=re(n).compareDocumentPosition(t),o=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=re(n[0]),o=re(n[n.length-1]);var r=Pv(this._fragmentFiber)?e.parentElement:i;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var a=e.compareDocumentPosition(t),s=o.compareDocumentPosition(t),l=a&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=i&&r&&a&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||r&&o===t||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!r&&o===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:a,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||UN(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function UN(t,e,n,i,o){var r=xr(o);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)t:{for(;r!==null;){if(r.tag===7&&(r===e||r.alternate===e)){n=!0;break t}r=r.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=o.ownerDocument,o===r||o===r.documentElement||o===r.body;t:{for(r=e,e=Lr(e);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==e&&r.alternate!==e)){r=!0;break t}r=r.return}r=!1}return r}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!r)&&!(e=r===n)&&(e=rh(n,r,Gv),e===null?e=!1:(Je(e,!0,dR,r,n),r=Oa,Oa=null,e=r!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!r)&&!(e=r===i)&&(e=rh(i,r,Gv),e===null?e=!1:(Je(e,!0,pR,r,i),r=Oa,oh=Oa=null,e=r!==null)),e):!1}function sb(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}dn.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(R(566));var e=[];Je(this._fragmentFiber.child,!1,sy,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=Mb(this._fragmentFiber);if(i=n?i[1]||i[0]||Lr(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=re(i),sb(t,n);return}if(i=re(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(t);return}i.scrollIntoView(t)}}for(i=n?e.length-1:0;i!==(n?-1:e.length);){var o=e[i];o.tag===6?(o=re(o),sb(o,n)):re(o).scrollIntoView(t),i+=n?-1:1}};function HN(t,e){return t=re(t),aT(t,e),!1}function aT(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function sT(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];t.addEventListener(o.type,o.attachedListener,as(o.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){for(var a=0,s=0;s<jn.length;s++){var l=jn[s];(l.fragmentInstance!==e||l.observer!==r||l.instance!==t)&&(jn[a++]=l)}jn.length=a,r.observe(t)}),aT(t,e))}function PN(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];t.removeEventListener(o.type,o.attachedListener,as(o.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?_N(e,r,t):r.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function ug(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ug(n),Wf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function GN(t,e,n,i){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[iu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Rn(t.nextSibling),t===null)break}return null}function jN(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Rn(t.nextSibling),t===null))return null;return t}function lT(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Rn(t.nextSibling),t===null))return null;return t}function cg(t){return t.data==="$?"||t.data==="$~"}function ly(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function YN(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Rn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var fg=null;function lb(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Rn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function ub(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function qN(t,e){function n(){i=!0}if(t.ownerDocument.activeElement===t)return!0;var i=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return i}function kN(t){ib(function(){ib(function(e){return t(e)})})}function uT(t,e,n){switch(e=Ql(n),t){case"html":if(t=e.documentElement,!t)throw Error(R(452));return t;case"head":if(t=e.head,!t)throw Error(R(453));return t;case"body":if(t=e.body,!t)throw Error(R(454));return t;default:throw Error(R(451))}}function cT(t,e,n){for(var i in n){var o=n[i];n.hasOwnProperty(i)&&o!=null&&Ct(t,e,i,null,xN,o)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===ri&&(t.onclick=null),Wf(t)}function ih(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Wf(t)}var On=new Map,cb=new Set;function Fl(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Ki=St.d;St.d={f:XN,r:KN,D:ZN,C:QN,L:FN,m:IN,X:WN,S:JN,M:$N};function XN(){var t=Ki.f(),e=mm();return t||e}function KN(t){var e=ms(t);e!==null&&e.tag===5&&e.type==="form"?Q1(e):Ki.r(t)}var gs=typeof document>"u"?null:document;function fT(t,e,n){var i=gs;if(i&&typeof e=="string"&&e){var o=wn(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),cb.has(o)||(cb.add(o),t={rel:t,crossOrigin:n,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),Ce(e,"link",t),pe(e),i.head.appendChild(e)))}}function ZN(t){Ki.D(t),fT("dns-prefetch",t,null)}function QN(t,e){Ki.C(t,e),fT("preconnect",t,e)}function FN(t,e,n){Ki.L(t,e,n);var i=gs;if(i&&t&&e){var o='link[rel="preload"][as="'+wn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+wn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+wn(n.imageSizes)+'"]')):o+='[href="'+wn(t)+'"]';var r=o;switch(e){case"style":r=ss(t);break;case"script":r=ys(t)}if(!(On.has(r)||(t=Ot({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),On.set(r,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(uu(r))||e==="script"&&i.querySelector(cu(r))))){var a=i.createElement("link");Ce(a,"link",t),e==="style"&&(a[wf]=!0,a.onload=a.onerror=function(){Gb(a)}),pe(a),i.head.appendChild(a)}}}function IN(t,e){Ki.m(t,e);var n=gs;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+wn(i)+'"][href="'+wn(t)+'"]',r=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=ys(t)}if(!On.has(r)&&(t=Ot({rel:"modulepreload",href:t},e),On.set(r,t),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(cu(r)))return}i=n.createElement("link"),Ce(i,"link",t),pe(i),n.head.appendChild(i)}}}function JN(t,e,n){Ki.S(t,e,n);var i=gs;if(i&&t){var o=Ya(i).hoistableStyles,r=ss(t);e=e||"default";var a=o.get(r);if(!a){var s={loading:0,preload:null};if(a=i.querySelector(uu(r)))s.loading=5;else{t=Ot({rel:"stylesheet",href:t,"data-precedence":e},n),(n=On.get(r))&&uy(t,n);var l=a=i.createElement("link");pe(l),Ce(l,"link",t),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,yf(a,e,i)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(r,a)}}}function WN(t,e){Ki.X(t,e);var n=gs;if(n&&t){var i=Ya(n).hoistableScripts,o=ys(t),r=i.get(o);r||(r=n.querySelector(cu(o)),r||(t=Ot({src:t,async:!0},e),(e=On.get(o))&&cy(t,e),r=n.createElement("script"),pe(r),Ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(o,r))}}function $N(t,e){Ki.M(t,e);var n=gs;if(n&&t){var i=Ya(n).hoistableScripts,o=ys(t),r=i.get(o);r||(r=n.querySelector(cu(o)),r||(t=Ot({src:t,async:!0,type:"module"},e),(e=On.get(o))&&cy(t,e),r=n.createElement("script"),pe(r),Ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(o,r))}}function fb(t,e,n,i){var o=(o=No.current)?Fl(o):null;if(!o)throw Error(R(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ss(n.href),e=Ya(o).hoistableStyles,i=e.get(n),i||(i={type:"style",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ss(n.href);var r=Ya(o).hoistableStyles,a=r.get(t);if(a||(o=o.ownerDocument||o,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,a),(r=o.querySelector(uu(t)))?r._p||(a.instance=r,a.state.loading=5):(r=On.get(t),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(t,r)),t2(o,t,r,a.state))),e&&i===null)throw Error(R(528,""));return a}if(e&&i!==null)throw Error(R(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=ys(n),e=Ya(o).hoistableScripts,i=e.get(n),i||(i={type:"script",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,t))}}function ss(t){return'href="'+wn(t)+'"'}function uu(t){return'link[rel="stylesheet"]['+t+"]"}function mT(t){return Ot({},t,{"data-precedence":t.precedence,precedence:null})}function t2(t,e,n,i){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[wf]!==!0){i.loading=1;return}}else e=t.createElement("link"),e[wf]=!0,e.onload=e.onerror=Gb.bind(null,e),Ce(e,"link",n),pe(e),t.head.appendChild(e);i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2})}function ys(t){return'[src="'+wn(t)+'"]'}function cu(t){return"script[async]"+t}function mb(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+wn(n.href)+'"]');if(i)return e.instance=i,pe(i),i;var o=Ot({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),pe(i),Ce(i,"style",o),yf(i,n.precedence,t),e.instance=i;case"stylesheet":o=ss(n.href);var r=t.querySelector(uu(o));if(r)return e.state.loading|=4,e.instance=r,pe(r),r;i=mT(n),(o=On.get(o))&&uy(i,o),r=(t.ownerDocument||t).createElement("link"),pe(r);var a=r;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Ce(r,"link",i),e.state.loading|=4,yf(r,n.precedence,t),e.instance=r;case"script":return r=ys(n.src),(o=t.querySelector(cu(r)))?(e.instance=o,pe(o),o):(i=n,(o=On.get(r))&&(i=Ot({},n),cy(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),pe(o),Ce(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(R(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,yf(i,n.precedence,t));return e.instance}function yf(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,r=o,a=0;a<i.length;a++){var s=i[a];if(s.dataset.precedence===e)r=s;else if(r!==o)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function uy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function cy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vf=null;function db(t,e,n){if(vf===null){var i=new Map,o=vf=new Map;o.set(n,i)}else o=vf,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var r=n[o];if(!(r[iu]||r[Se]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var a=r.getAttribute(e)||"";a=t+a;var s=i.get(a);s?s.push(r):i.set(a,[r])}}return i}function mg(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function e2(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function pb(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function dT(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pT(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function hb(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=pT(e),t.suspenseyImages.push(e)),t=o2.bind(t),e.decode().then(t,t))}function n2(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ss(i.href),r=e.querySelector(uu(o));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Il.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,pe(r);return}r=e.ownerDocument||e,i=mT(i),(o=On.get(o))&&uy(i,o),r=r.createElement("link"),pe(r);var a=r;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Ce(r,"link",i),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Il.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var xf=0;function i2(t,e){return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&xf===0&&(xf=62500*SN());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>xf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function hT(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)bf(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Il(){this.count--,hT(this)}function o2(){this.imgCount--,hT(this)}var Ff=null;function bf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ff=new Map,e.forEach(r2,t),Ff=null,Il.call(t))}function r2(t,e){if(!(e.state.loading&4)){var n=Ff.get(t);if(n)var i=n.get(null);else{n=new Map,Ff.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var a=o[r];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}o=e.instance,a=o.getAttribute("data-precedence"),r=n.get(a)||i,r===i&&n.set(null,o),n.set(a,o),this.count++,i=Il.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),r?r.parentNode.insertBefore(o,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var ls={$$typeof:oi,Provider:null,Consumer:null,_currentValue:Sr,_currentValue2:Sr,_threadCount:0};function a2(t,e,n,i,o,r,a,s,l){this.tag=1,this.containerInfo=t,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=Np(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Np(0),this.hiddenUpdates=Np(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function gT(t,e,n,i,o,r,a,s,l,u,c,m){return t=new a2(t,e,n,a,l,u,c,m,s),e=1,r===!0&&(e|=24),r=Fe(3,null,null,e),t.current=r,r.stateNode=t,e=Og(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:e},zg(r),t}function yT(t){return t?(t=Ha,t):Ha}function vT(t,e,n,i,o,r){o=yT(o),i.context===null?i.context=o:i.pendingContext=o,i=zo(e),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=Lo(t,i,e),n!==null&&(Ie(n,t,e),Dl(n,t,e))}function gb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fy(t,e){gb(t,e),(t=t.alternate)&&gb(t,e)}function xT(t){if(t.tag===13||t.tag===31){var e=Ur(t,67108864);e!==null&&Ie(e,t,67108864),fy(t,67108864)}}function yb(t){if(t.tag===13||t.tag===31){var e=fn();e=vg(e);var n=Ur(t,e);n!==null&&Ie(n,t,e),fy(t,e)}}var us=!0;function s2(t,e,n,i){var o=nt.T;nt.T=null;var r=St.p;try{St.p=2,my(t,e,n,i)}finally{St.p=r,nt.T=o}}function l2(t,e,n,i){var o=nt.T;nt.T=null;var r=St.p;try{St.p=8,my(t,e,n,i)}finally{St.p=r,nt.T=o}}function my(t,e,n,i){if(us){var o=dg(i);if(o===null)th(t,e,i,If,n),vb(t,i);else if(c2(o,t,e,n,i))i.stopPropagation();else if(vb(t,i),e&4&&-1<u2.indexOf(t)){for(;o!==null;){var r=ms(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var a=gr(r.pendingLanes);if(a!==0){var s=r;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-cn(a);s.entanglements[1]|=l,a&=~l}mi(r),(bt&6)===0&&(kf=ln()+500,lu(0,!1))}}break;case 31:case 13:s=Ur(r,2),s!==null&&Ie(s,r,2),mm(),fy(r,2)}if(r=dg(i),r===null&&th(t,e,i,If,n),r===o)break;o=r}o!==null&&i.stopPropagation()}else th(t,e,i,null,n)}}function dg(t){return t=Sg(t),dy(t)}var If=null;function dy(t){if(If=null,t=xr(t),t!==null){var e=$l(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=Ab(e),t!==null)return t;t=null}else if(n===31){if(t=Cb(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return If=t,null}function bT(t){switch(t){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(ER()){case Nb:return 2;case Vb:return 8;case Cf:case AR:return 32;case zb:return 268435456;default:return 32}default:return 32}}var pg=!1,Ho=null,Po=null,Go=null,Jl=new Map,Wl=new Map,Ao=[],u2="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 vb(t,e){switch(t){case"focusin":case"focusout":Ho=null;break;case"dragenter":case"dragleave":Po=null;break;case"mouseover":case"mouseout":Go=null;break;case"pointerover":case"pointerout":Jl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(e.pointerId)}}function yl(t,e,n,i,o,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[o]},e!==null&&(e=ms(e),e!==null&&xT(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function c2(t,e,n,i,o){switch(e){case"focusin":return Ho=yl(Ho,t,e,n,i,o),!0;case"dragenter":return Po=yl(Po,t,e,n,i,o),!0;case"mouseover":return Go=yl(Go,t,e,n,i,o),!0;case"pointerover":var r=o.pointerId;return Jl.set(r,yl(Jl.get(r)||null,t,e,n,i,o)),!0;case"gotpointercapture":return r=o.pointerId,Wl.set(r,yl(Wl.get(r)||null,t,e,n,i,o)),!0}return!1}function ST(t){var e=xr(t.target);if(e!==null){var n=$l(e);if(n!==null){if(e=n.tag,e===13){if(e=Ab(n),e!==null){t.blockedOn=e,kv(t.priority,function(){yb(n)});return}}else if(e===31){if(e=Cb(n),e!==null){t.blockedOn=e,kv(t.priority,function(){yb(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Sf(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=dg(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);yh=i,n.target.dispatchEvent(i),yh=null}else return e=ms(n),e!==null&&xT(e),t.blockedOn=n,!1;e.shift()}return!0}function xb(t,e,n){Sf(t)&&n.delete(e)}function f2(){pg=!1,Ho!==null&&Sf(Ho)&&(Ho=null),Po!==null&&Sf(Po)&&(Po=null),Go!==null&&Sf(Go)&&(Go=null),Jl.forEach(xb),Wl.forEach(xb)}function tf(t,e){t.blockedOn===e&&(t.blockedOn=null,pg||(pg=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,f2)))}var ef=null;function bb(t){ef!==t&&(ef=t,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,function(){ef===t&&(ef=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(dy(i||n)===null)continue;break}var r=ms(n);r!==null&&(t.splice(e,3),e-=3,zh(r,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function cs(t){function e(l){return tf(l,t)}Ho!==null&&tf(Ho,t),Po!==null&&tf(Po,t),Go!==null&&tf(Go,t),Jl.forEach(e),Wl.forEach(e);for(var n=0;n<Ao.length;n++){var i=Ao[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ao.length&&(n=Ao[0],n.blockedOn===null);)ST(n),n.blockedOn===null&&Ao.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],r=n[i+1],a=o[We]||null;if(typeof r=="function")a||bb(n);else if(a){var s=null;if(r&&r.hasAttribute("formAction")){if(o=r,a=r[We]||null)s=a.formAction;else if(dy(o)!==null)continue}else s=a.action;typeof s=="function"?n[i+1]=s:(n.splice(i,3),i-=3),bb(n)}}}function TT(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(a){return o=a})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function py(t){this._internalRoot=t}hm.prototype.render=py.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(R(409));var n=e.current,i=fn();vT(n,i,t,e,null,null)};hm.prototype.unmount=py.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;vT(t.current,2,null,t,null,null),mm(),e[fs]=null}};function hm(t){this._internalRoot=t}hm.prototype.unstable_scheduleHydration=function(t){if(t){var e=Pb();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ao.length&&e!==0&&e<Ao[n].priority;n++);Ao.splice(n,0,t),n===0&&ST(t)}};var Sb=Tb.version;if(Sb!=="19.3.1")throw Error(R(527,Sb,"19.3.1"));St.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(R(188)):(t=Object.keys(t).join(","),Error(R(268,t)));return t=mR(e),t=t!==null?wb(t):null,t=t===null?null:t.stateNode,t};var m2={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:nt,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(vl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!vl.isDisabled&&vl.supportsFiber))try{tu=vl.inject(m2),un=vl}catch{}var vl;gm.createRoot=function(t,e){if(!Eb(t))throw Error(R(299));var n=!1,i="",o=nS,r=iS,a=oS;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=gT(t,1,!1,null,null,n,i,null,o,r,a,TT),t[fs]=e.current,ry(t),new py(e)};gm.hydrateRoot=function(t,e,n){if(!Eb(t))throw Error(R(299));var i=!1,o="",r=nS,a=iS,s=oS,l=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),e=gT(t,1,!0,e,n??null,i,o,l,r,a,s,TT),e.context=yT(null),n=e.current,i=fn(),i=vg(i),o=zo(i),o.callback=null,Lo(n,o,i),n=i,e.current.lanes=n,nu(e,n),mi(e),t[fs]=e.current,ry(t),new hm(e)};gm.version="19.3.1"});var wT=Jn((b_,CT)=>{"use strict";function AT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AT)}catch(t){console.error(t)}}AT(),CT.exports=ET()});var DT=Jn(ym=>{"use strict";var d2=Symbol.for("react.transitional.element"),p2=Symbol.for("react.fragment");function MT(t,e,n){var i=null;if(n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),"key"in e){n={};for(var o in e)o!=="key"&&(n[o]=e[o])}else n=e;return e=n.ref,{$$typeof:d2,type:t,key:i,ref:e!==void 0?e:null,props:n}}ym.Fragment=p2;ym.jsx=MT;ym.jsxs=MT});var yt=Jn((T_,RT)=>{"use strict";RT.exports=DT()});var sl=B(ot(),1),_D=B(wT(),1);var uc=B(yt(),1),vn=B(ot(),1);var OT=B(ot(),1),vs=(0,OT.createContext)({});var NT=B(ot(),1);function di(t){let e=(0,NT.useRef)(null);return e.current===null&&(e.current=t()),e.current}var vm=B(ot(),1);var VT=typeof window<"u";var Qo=VT?vm.useLayoutEffect:vm.useEffect;var A0=B(yt(),1),tw=B(ot(),1),lo=B(ot(),1);var zT=B(ot(),1),Zi=(0,zT.createContext)(null);var JC=B(yt(),1);function Pr(t,e){t.indexOf(e)===-1&&t.push(e)}function $e(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var se=(t,e,n)=>n>e?e:n<t?t:n;var Zt={};var Gr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var jr=t=>typeof t=="object"&&t!==null;var Yr=t=>/^0[^.\s]+$/u.test(t);function hy(t){let e;return()=>(e===void 0&&(e=t()),e)}var Qt=t=>t;var Nn=(...t)=>t.reduce((e,n)=>i=>n(e(i)));var Ge=(t,e,n)=>{let i=e-t;return i?(n-t)/i:1};var pi=class{constructor(){this.subscriptions=[]}add(e){return Pr(this.subscriptions,e),()=>this.remove(e)}remove(e){$e(this.subscriptions,e)}notify(e,n,i){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let r=0;r<o;r++){let a=this.subscriptions[r];a&&a(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Bt=t=>t*1e3,ne=t=>t/1e3;var fu=(t,e)=>e?t*(1e3/e):0;var LT=(t,e,n)=>{let i=e-t;return((n-t)%i+i)%i+t};var gy=(t,e,n)=>t*(3*(1-t)*((1-t)*e+t*n)+t*t);function Fo(t,e,n,i){return t===e&&n===i?Qt:o=>{let r=0,a=1,s=o;for(let l=0;;l++){s>=r&&s<=a||(s=(r+a)/2);let u=gy(s,t,n)-o;if(u*u<1e-28||l===40)break;u>0?a=s:r=s,s-=u*1e-7/(gy(s+1e-7,t,n)-o-u)}return gy(s,e,i)}}var xm=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var qr=t=>e=>1-t(1-e);var bm=Fo(.33,1.53,.69,.99),xs=qr(bm),mu=xm(xs);var du=t=>t>=1?1:(t*=2)<1?.5*xs(t):.5*(2-Math.pow(2,-10*(t-1)));var pu=t=>1-Math.sin(Math.acos(t)),hu=qr(pu),gu=xm(pu);var yy=Fo(.42,0,1,1),vy=Fo(0,0,.58,1),bs=Fo(.42,0,.58,1);var kr=t=>Array.isArray(t)&&typeof t[0]!="number";function yu(t,e){return kr(t)?t[LT(0,t.length,e)]:t}var Xr=t=>Array.isArray(t)&&typeof t[0]=="number";var h2={linear:Qt,easeIn:yy,easeInOut:bs,easeOut:vy,circIn:pu,circInOut:gu,circOut:hu,backIn:xs,backInOut:mu,backOut:bm,anticipate:du},g2=t=>typeof t=="string",Ss=t=>{if(Xr(t)){typeof process<"u";let[e,n,i,o]=t;return Fo(e,n,i,o)}else if(g2(t))return typeof process<"u",h2[t];return t};var Nt={delta:0,timestamp:0,isProcessing:!1};var Sm;function y2(){Sm=void 0}var lt={now:()=>(Sm===void 0&<.set(Nt.isProcessing||Zt.useManualTiming?Nt.timestamp:performance.now()),Sm),set:t=>{Sm=t,queueMicrotask(y2)}};var hi=t=>Math.round(t*1e5)/1e5;var _T=t=>e=>typeof e=="string"&&e.startsWith(t),Tm=_T("--"),v2=_T("var(--"),Io=t=>v2(t)?x2.test(t.split("/*")[0].trim()):!1,x2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Em(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var gi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Qi={...gi,transform:t=>se(0,1,t)},vu={...gi,default:1};var Ts=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function BT(t){return t==null}var UT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Es=(t,e)=>n=>!!(typeof n=="string"&&UT.test(n)&&n.startsWith(t)||e&&!BT(n)&&Object.prototype.hasOwnProperty.call(n,e)),Am=(t,e,n)=>i=>{if(typeof i!="string")return i;let[o,r,a,s]=i.match(Ts);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var b2=t=>se(0,255,t),xy={...gi,transform:t=>Math.round(b2(t))},yi={test:Es("rgb","red"),parse:Am("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+xy.transform(t)+", "+xy.transform(e)+", "+xy.transform(n)+", "+hi(Qi.transform(i))+")"};var Cm=(t,e,n)=>{let i=t.substring(1+e*n,1+(e+1)*n);return n>1?i:i+i};function S2(t){let e=t.length>5?2:1,n=Cm(t,3,e);return{red:parseInt(Cm(t,0,e),16),green:parseInt(Cm(t,1,e),16),blue:parseInt(Cm(t,2,e),16),alpha:n?parseInt(n,16)/255:1}}var xu={test:Es("#"),parse:S2,transform:yi.transform};var bu=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),kn=bu("deg"),je=bu("%"),H=bu("px"),HT=bu("vh"),PT=bu("vw"),by={...je,parse:t=>je.parse(t)/100,transform:t=>je.transform(t*100)};var Jo={test:Es("hsl","hue"),parse:Am("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+je.transform(hi(e))+", "+je.transform(hi(n))+", "+hi(Qi.transform(i))+")"};var Xt={test:t=>yi.test(t)||xu.test(t)||Jo.test(t),parse:t=>yi.test(t)?yi.parse(t):Jo.test(t)?Jo.parse(t):xu.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yi.transform(t):Jo.transform(t),getAnimatableNone:t=>{let e=Xt.parse(t);return e.alpha=0,Xt.transform(e)}};var GT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var YT=new RegExp(Ts.source),qT=new RegExp(GT.source,"i");function T2(t){return isNaN(t)&&typeof t=="string"&&(YT.test(t)||qT.test(t))}var kT="number",XT="color",E2="var",A2="var(",jT="${}",C2=/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+)(?![a-z]*\()/giu;function KT(t){let e=t.toString();return YT.test(e)||qT.test(e)}function As(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[],r=0,s=e.replace(C2,l=>(Xt.test(l)?(i.color.push(r),o.push(XT),n.push(Xt.parse(l))):l.startsWith(A2)?(i.var.push(r),o.push(E2),n.push(l)):(i.number.push(r),o.push(kT),n.push(parseFloat(l))),++r,jT)).split(jT);return{values:n,split:s,indexes:i,types:o}}function w2(t){return As(t).values}function wm({split:t,types:e}){let n=t.length;return i=>{let o="";for(let r=0;r<n;r++)if(o+=t[r],i[r]!==void 0){let a=e[r];a===kT?o+=hi(i[r]):a===XT?o+=Xt.transform(i[r]):o+=i[r]}return o}}function M2(t){return wm(As(t))}var D2=t=>typeof t=="number"?0:Xt.test(t)?Xt.getAnimatableNone(t):t,R2=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:D2(t);function O2(t){let e=As(t);return wm(e)(e.values.map((i,o)=>R2(i,e.split[o])))}var le={test:T2,parse:w2,createTransformer:M2,getAnimatableNone:O2};function Sy(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ZT({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,r=0,a=0;if(!e)o=r=a=n;else{let s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;o=Sy(l,s,t+1/3),r=Sy(l,s,t),a=Sy(l,s,t-1/3)}return{red:Math.round(o*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:i}}function Cs(t,e){return n=>n>0?e:t}var ut=(t,e,n)=>t+(e-t)*n;var Ty=(t,e,n)=>{let i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},N2=[xu,yi,Jo],V2=t=>N2.find(e=>e.test(t));function QT(t){let e=V2(t);if(!e)return!1;let n=e.parse(t);return e===Jo&&(n=ZT(n)),n}var Ey=(t,e)=>{let n=QT(t),i=QT(e);if(!n||!i)return Cs(t,e);let o={...n};return r=>(o.red=Ty(n.red,i.red,r),o.green=Ty(n.green,i.green,r),o.blue=Ty(n.blue,i.blue,r),o.alpha=ut(n.alpha,i.alpha,r),yi.transform(o))};var Mm=new Set(["none","hidden"]);function FT(t,e){return Mm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function z2(t,e){return n=>ut(t,e,n)}function Dm(t){return typeof t=="number"?z2:typeof t=="string"?Io(t)?Cs:Xt.test(t)?Ey:B2:Array.isArray(t)?IT:typeof t=="object"?Xt.test(t)?Ey:L2:Cs}function IT(t,e){let n=[...t],i=n.length,o=t.map((r,a)=>Dm(r)(r,e[a]));return r=>{for(let a=0;a<i;a++)n[a]=o[a](r);return n}}function L2(t,e){let n={...t,...e},i={};for(let o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Dm(t[o])(t[o],e[o]));return o=>{for(let r in i)n[r]=i[r](o);return n}}function _2(t,e){let n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){let r=e.types[o],a=t.indexes[r][i[r]],s=t.values[a]??0;n[o]=s,i[r]++}return n}var B2=(t,e)=>{let n=As(t),i=As(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Mm.has(t)&&!i.values.length||Mm.has(e)&&!n.values.length?FT(t,e):Nn(IT(_2(n,i),i.values),wm(i)):Cs(t,e)};var JT=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function U2(t,e){let n=JT.exec(t);if(!n)return;let i=JT.exec(e);if(!i||n[2]!==i[2])return;let o=n[2],r=parseFloat(n[1]),a=parseFloat(i[1]);return s=>hi(ut(r,a,s))+o}function ws(t,e,n){if(typeof t=="number"&&typeof e=="number"&&typeof n=="number")return ut(t,e,n);if(typeof t=="string"&&typeof e=="string"){let o=U2(t,e);if(o)return o}return Dm(t)(t,e)}var Su=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function WT(t){let e=new Set,n=new Set,i=!1,o=!1,r,a=new Set,s={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(n.add(c),t()),(r=c)(s)}let u={schedule:(c,m=!1,f=!1)=>{let d=f&&i,g=d?e:n;return m&&a.add(c),d&&c!==r&&g.delete(c),g.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(s=c,i){o=!0;return}i=!0;let m=e;e=n,n=m,e.forEach(l),e.clear(),r=void 0,i=!1,o&&(o=!1,u.process(c))}};return u}var H2=40;function Rm(t,e,n={delta:0,timestamp:0,isProcessing:!1}){let i=!1,o=!0,r=()=>i=!0,a=Su.reduce((y,b)=>(y[b]=WT(r),y),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:m,preRender:f,render:d,postRender:g}=a,v=()=>{let y=Zt.useManualTiming,b=y?n.timestamp:performance.now();i=!1,y||(n.delta=o?1e3/60:Math.max(Math.min(b-n.timestamp,H2),1)),n.timestamp=b,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),c.process(n),m.process(n),f.process(n),d.process(n),g.process(n),n.isProcessing=!1,i&&e&&(o=!1,t(v))},x=()=>{i=!0,o=!0,n.isProcessing||t(v)};return{schedule:Su.reduce((y,b)=>{let E=a[b];return y[b]=(C,T=!1,S=!1)=>(i||x(),E.schedule(C,T,S)),y},{}),cancel:y=>{for(let b=0;b<Su.length;b++)a[Su[b]].cancel(y)},state:n,steps:a}}var{schedule:$,cancel:ie,steps:Tu}=Rm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0,Nt);var Eu=t=>{let e=({timestamp:n})=>t(n);return{start:(n=!0)=>$.update(e,n),stop:()=>ie(e),now:()=>Nt.isProcessing?Nt.timestamp:lt.now()}};var Om=(t,e,n=10)=>{let i="",o=Math.max(Math.round(e/n),2);for(let r=0;r<o;r++)i+=Math.round(t(r/(o-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function Ms(t,e=50,n=2e4,i){let o=0,r=t.next(o);for(i?.push(r.value);!r.done&&o<n;)o+=e,r=t.next(o),i?.push(r.value);return o>=n?1/0:o}function Au(t,e=100,n){let{keyframes:i,velocity:o}=t,r=i&&i[i.length-1]-i[0],a=n({...t,velocity:o&&r?o*e/r:o,keyframes:[0,e]}),s=Math.min(Ms(a),2e4);return{type:"keyframes",ease:l=>a.next(s*l).value/e,duration:ne(s)}}var $T=100,tE=10,P2=1,G2=800,iE=.3,j2=.3,Y2=.01,q2=2,k2=.005,X2=.5,K2=.01,Z2=10,eE=.05,oE=t=>t<0?1/Math.max(1+t,eE):Math.max(1-t,eE);function rE(t,e){if(!(t>1))return 1;let n=Math.sqrt(t*t-1),i=t-n,o=t+n,r=2*n*Math.exp(-e)*(1+e);return aE(a=>o*Math.exp(-i*a)-i*Math.exp(-o*a)-r,a=>Math.exp(-o*a)-Math.exp(-i*a),e)/e}function My(t,e){return t*Math.sqrt(1-e*e)}var Q2=12;function aE(t,e,n){let i=n;for(let o=1;o<Q2;o++)i=i-t(i)/e(i);return i}var Cy=.001;function F2({duration:t=G2,bounce:e=iE}){let n,i,o=oE(e);t=se(K2,Z2,ne(t)),o<1?(n=u=>{let c=u*o,m=c*t,f=My(u,o),d=Math.exp(-m);return Cy-c/f*d},i=u=>{let m=u*o*t,f=o*o*u*u*t,d=Math.exp(-m),g=My(u*u,o);return(-n(u)+Cy>0?-1:1)*-f*d/g}):(n=u=>{let c=Math.exp(-u*t),m=u*t+1;return-Cy+c*m},i=u=>{let c=Math.exp(-u*t),m=-u*(t*t);return c*m});let r=5/t,a=aE(n,i,r),s=a*rE(o,a*t),l=s*s;return{stiffness:l,damping:o*2*Math.sqrt(l),duration:Bt(t)}}var Dy=(t,e)=>(e?t>=0:t>0)&&t<1/0;function wy(t,e){if(Dy(t,e))return t}function I2(t){let e=wy(t.stiffness),n=wy(t.damping,!0),i=wy(t.mass),o={...t,stiffness:e??$T,damping:n??tE,mass:i??P2,isResolvedFromDuration:!1,isTimeDefined:(e??n??i)===void 0&&(t.duration!==void 0||t.bounce!==void 0)};if(o.isTimeDefined){if(t.visualDuration){let r=oE(t.bounce||0),a=2*Math.PI/(t.visualDuration*1.2)*rE(r,2*Math.PI/1.2);o.stiffness=a*a,o.damping=2*r*Math.sqrt(o.stiffness)}else Object.assign(o,F2(o)),o.isResolvedFromDuration=!0;(!Dy(o.stiffness)||!Dy(o.damping,!0))&&(o.stiffness=$T,o.damping=tE)}return o}function nE(t=j2,e=iE){let n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],r={done:!1,value:i},{stiffness:a,damping:s,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:m}=I2({...n}),f=T=>m?0:-ne(T),d=s/(2*Math.sqrt(a*l)),g=ne(Math.sqrt(a/l)),v=d*g,x={target:o,delta:o-i,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},p=()=>{let T=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(T?Y2:q2),x.restDelta=n.restDelta||(T?k2:X2)};p();let h,y,b;if(d<1){let T=My(g,d),S={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{S.A=(x.velocity+v*x.delta)/T,S.sinC=v*S.A+x.delta*T,S.cosC=v*x.delta-S.A*T};let M=D=>{D!==S.t&&(S.t=D,S.env=Math.exp(-v*D),S.sin=Math.sin(T*D),S.cos=Math.cos(T*D))};h=D=>(M(D),x.target-S.env*(S.A*S.sin+x.delta*S.cos)),y=D=>(M(D),S.env*(S.sinC*S.sin+S.cosC*S.cos))}else if(d===1){h=S=>x.target-Math.exp(-g*S)*(x.delta+(x.velocity+g*x.delta)*S);let T={C:0};b=()=>{T.C=x.velocity+g*x.delta},y=S=>Math.exp(-g*S)*(g*T.C*S-x.velocity)}else{let T=g*Math.sqrt(d*d-1),S=v-T,M=v+T,D=T<1||m?1/0:300/T,L=(Z,I)=>Math.exp(I>D?(v-Z)*D-v*I:-Z*I),P={S:0,F:0};b=()=>{let Z=(x.velocity+v*x.delta)/T;P.S=(x.delta+Z)/2,P.F=(x.delta-Z)/2},h=Z=>x.target-P.S*L(S,Z)-P.F*L(M,Z),y=Z=>S*P.S*L(S,Z)+M*P.F*L(M,Z)}b();let E=c&&u||null,C={calculatedDuration:E,retarget:(T,S)=>{x.target=T[T.length-1],x.delta=x.target-T[0],x.velocity=f(S),n.restSpeed&&n.restDelta||p(),C.calculatedDuration=E,r.done=!1,b()},velocity:T=>Bt(y(T)),next:T=>{let S=h(T);if(c)r.done=T>=u;else{let M=Bt(y(T));r.done=Math.abs(M)<=x.restSpeed&&Math.abs(x.target-S)<=x.restDelta}return r.value=r.done?x.target:S,r},toString:()=>{let T=Math.min(Ms(C),2e4),S=Om(M=>C.next(T*M).value,T,30);return T+"ms "+S},toTransition:()=>{}};return C}var Kr=Object.assign(nE,{applyToOptions:t=>{let e=Au(t,100,nE);return t.ease=e.ease,t.duration=Bt(e.duration),t.type="keyframes",t}});function Ds({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let m=t[0],f={done:!1,value:m},d=T=>T<s||T>l,g=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l,v=n*e,x=m+v,p=a?a(x):x;p!==x&&(v=p-m);let h=T=>-v*Math.exp(-T/i),y=T=>{let S=h(T);f.done=Math.abs(S)<=u,f.value=f.done?p:T?p+S:m},b,E,C=T=>{d(f.value)&&(b=T,E=Kr({keyframes:[f.value,g(f.value)],velocity:-h(T)/i*1e3,damping:o,stiffness:r,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:T=>{let S=!1;return!E&&b===void 0&&(S=!0,y(T),C(T)),b!==void 0&&T>=b?E.next(T-b):(!S&&y(T),f)}}}function J2(t,e,n){let i=[],o=Zt.mix||ws,r=t.length-1;for(let a=0;a<r;a++){let s=n?.(t[a],t[a+1])||o(t[a],t[a+1]);if(e){let l=Array.isArray(e)?e[a]||Qt:e;s=Nn(l,s)}i.push(s)}return i}function sE(t,e,{clamp:n=!0,ease:i,mixer:o}={}){let r=t.length;if(r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=J2(e,i,o),l=s.length,u=c=>{if(a&&c<t[0])return e[0];let m=0;if(l>1)for(;m<t.length-2&&!(c<t[m+1]);m++);let f=Ge(t[m],t[m+1],c);return s[m](f)};return n?c=>u(se(t[0],t[r-1],c)):u}function Cu(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let o=Ge(0,e,i);t.push(ut(n,1,o))}}function vi(t){let e=[0];return Cu(e,t.length-1),e}function lE(t,e){return t.map(n=>n*e)}function W2(t,e){return t.map(()=>e||bs).splice(0,t.length-1)}function Xn({duration:t=300,keyframes:e,times:n,ease:i="easeInOut",mixer:o}){let r=typeof e[0]=="number"?void 0:o,a=kr(i)?i.map(Ss):Ss(i)||bs,s={done:!1,value:e[0]},l=-1;if(!r){for(let m=1;m<e.length;m++)if(e[m]!==e[m-1]){if(l>=0){l=-2;break}l=m-1}}if(l>=0){let m=n&&n.length===e.length?n:vi(e),f=m[l]*t,d=m[l+1]*t,g=e[l],v=e[l+1],x=Array.isArray(a)?a[l]:a,p=(Zt.mix||ws)(g,v),h=e.length-2;return{calculatedDuration:t,next:y=>(s.value=l&&y<f?p(0):l<h&&(y>=d||!t)?typeof v=="number"?v:p(1):p(x(y>=d||!t?1:y<=f?0:(y-f)/(d-f))),s.done=y>=t,s)}}let u=lE(n&&n.length===e.length?n:vi(e),t),c=sE(u,e,{ease:Array.isArray(a)?a:W2(e,a),mixer:r});return{calculatedDuration:t,next:m=>(s.value=c(m),s.done=m>=t,s)}}var $2=5;function tV(t,e,n){let i=Math.max(e-$2,0);return fu(n-t(i),e-i)}function uE(t,e,n=0){return e<=0?n:t.velocity?t.velocity(e):tV(i=>t.next(i).value,e,t.next(e).value)}function Fi(t,{repeat:e,repeatType:n="loop"},i,o=1){let r,a,s=0;for(let c=0;c<t.length;c++){let m=t[c];m!==null&&(s++||(r=m),a=m)}let u=o<0||e&&n!=="loop"&&e%2===1?0:s-1;return!u||i===void 0?u?a:r:i}var eV={decay:Ds,inertia:Ds,tween:Xn,keyframes:Xn,spring:Kr};function Nm(t){typeof t.type=="string"&&(t.type=eV[t.type])}var nV=40,Vm=(t,e)=>e-t>nV&&!Zt.useManualTiming?e:t;function cE(t,e){return{kind:t,animation:e,timestamp:lt.now(),frameTimestamp:Nt.timestamp,frameIsProcessing:Nt.isProcessing}}function zm(t,e,n){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...cE("animation-start",t),options:n?{...e,...n}:e})}catch{}}function fE(t,e){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...cE("layout-animation-start",t),node:e})}catch{}}var Wo=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,n){return this.finished.then(e,n)}};var iV=t=>t/100,Rs=t=>Math.round(t*1e4)/1e4,Vn=class extends Wo{constructor(e){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:n}=this.options;n&&n.updatedAt!==lt.now()&&this.tick(lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),zm(this,this.options)}initAnimation(){let{options:e}=this;Nm(e);let{type:n=Xn,repeat:i=0,repeatDelay:o=0,repeatType:r,velocity:a=0}=e,{keyframes:s}=e,l=n||Xn;this.mixKeyframes=void 0,l!==Xn&&typeof s[0]!="number"&&(this.mixKeyframes=Nn(iV,e.mixer?.(s[0],s[1])||ws(s[0],s[1])),s=[0,100]);let u=l(s===e.keyframes?e:{...e,keyframes:s});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Ms(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=u}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,n=!1){let{generator:i,totalDuration:o,calculatedDuration:r}=this;if(this.startTime===null)return i.next(0);let{delay:a=0,keyframes:s,type:l,onUpdate:u,finalKeyframe:c}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Vm(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);let m=this.currentTime-a*(this.playbackSpeed>=0?1:-1),f=this.playbackSpeed>=0?m<0:m>o;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let d=this.generate(this.currentTime,f),{done:g}=d;f||(g=this.playbackSpeed>=0?r<1/0?this.currentTime>=o:g:this.currentTime<=0);let v=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&g);return v&&l!==Ds&&(d.value=Fi(s,this.options,c,this.speed)),u&&u(d.value),v&&this.finish(),d}at(e){return this.holdTime??Rs((e-this.startTime)*this.playbackSpeed)}sampleAt(e,n){let{options:i,totalDuration:o}=this,r=this.at(e)-(i.delay||0);return r>=o&&i.type!==Ds?Fi(i.keyframes,i,n?void 0:i.finalKeyframe):this.generate(Math.max(r,0),r<0).value}generate(e,n){let{generator:i,totalDuration:o,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:s}=this,{keyframes:l,repeat:u,repeatType:c,repeatDelay:m}=this.options,f=e,d=i;if(u){let v=Math.min(e,o)/s,x=Math.floor(v),p=v%1;!p&&v>=1&&(p=1),p===1&&x--,x=Math.min(x,u+1),x%2&&(c==="reverse"?(p=1-p,m&&(p-=m/s)):c==="mirror"&&(d=a)),f=se(0,1,p)*s}let g;return n?(this.delayState.value=l[0],g=this.delayState):g=d.next(f),r&&!n&&(g.value=r(g.value)),g}get duration(){return ne(this.calculatedDuration)}get iterationDuration(){return this.duration+ne(this.options.delay??0)}get time(){return ne(this.currentTime)}set time(e){this.state==="finished"&&this.updateFinished(),e=Bt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return uE(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(lt.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=ne(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Eu,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),this.options.onPlay?.();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=n??(this.pendingStartTime=i)),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(lt.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};var oV=new Set(["brightness","contrast","saturate","opacity"]);function rV(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[i]=n.match(Ts)||[];if(!i)return t;let o=n.replace(i,""),r=oV.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+o+")"}var aV=/\b([a-z-]*)\(.*?\)/gu,wu={...le,getAnimatableNone:t=>{let e=t.match(aV);return e?e.map(rV).join(" "):t}};var Mu={...le,getAnimatableNone:t=>{let e=le.parse(t);return le.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}};var Ry={...gi,transform:Math.round};var Lm={rotate:kn,pathRotation:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:vu,scaleX:vu,scaleY:vu,scaleZ:vu,skew:kn,skewX:kn,skewY:kn,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Qi,originX:by,originY:by,originZ:H};var Ye={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,...Lm,zIndex:Ry,fillOpacity:Qi,strokeOpacity:Qi,numOctaves:Ry};var sV={...Ye,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:wu,WebkitFilter:wu,mask:Mu,WebkitMask:Mu},_m=t=>sV[t];var lV=new Set([wu,Mu]),mE,dE,Oy;function Os(t,e){if(t===mE&&e===dE)return Oy;let n=_m(t);return lV.has(n)||(n=le),Oy=n.getAnimatableNone?n.getAnimatableNone(e):void 0,mE=t,dE=e,Oy}function pE(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Zr=t=>t*180/Math.PI,Ny=t=>{let e=Zr(Math.atan2(t[1],t[0]));return Vy(e)},uV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ny,rotateZ:Ny,skewX:t=>Zr(Math.atan(t[1])),skewY:t=>Zr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Vy=t=>(t=t%360,t<0&&(t+=360),t),hE=Ny,gE=t=>Math.hypot(t[0],t[1]),yE=t=>Math.hypot(t[4],t[5]),cV={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gE,scaleY:yE,scaleZ:t=>Math.hypot(t[8],t[9],t[10]),scale:t=>(gE(t)+yE(t))/2,rotateX:t=>Vy(Zr(Math.atan2(t[6],t[5]))),rotateY:t=>Vy(Zr(Math.atan2(-t[2],t[0]))),rotateZ:hE,rotate:hE,skewX:t=>Zr(Math.atan(t[4])),skewY:t=>Zr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Qr(t){return t.includes("scale")?1:0}function Bm(t,e){if(!t||t==="none")return Qr(e);let n=t.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return Qr(e);let i=(n[1]?cV:uV)[e],o=n[2].split(",").map(r=>parseFloat(r));return typeof i=="function"?i(o):o[i]}var Um=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return Bm(n,e)};var Me=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set([...Me,"pathRotation"]);var zy=t=>t===gi||t===H,fV=new Set(["x","y","z"]),mV=Me.filter(t=>!fV.has(t));function SE(t){let e=[];return mV.forEach(n=>{let i=t.getValue(n);if(i!==void 0){let o=i.get(),r=n.startsWith("scale")?1:0;if(o===r)return;e.push([n,o]),i.set(r)}}),e}var TE=new Set(["bottom","right"]);function vE(t,e,n,i,o,r){let a=parseFloat(t);if(!isNaN(a))return a;let{min:s,max:l}=e()[n],u=l-s;return r==="border-box"?u:u-parseFloat(i)-parseFloat(o)}var xE=({transform:t})=>Bm(t,"x"),bE=({transform:t})=>Bm(t,"y"),Hm={width:({width:t,paddingLeft:e="0",paddingRight:n="0",boxSizing:i},o)=>vE(t,o,"x",e,n,i),height:({height:t,paddingTop:e="0",paddingBottom:n="0",boxSizing:i},o)=>vE(t,o,"y",e,n,i),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{let{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:xE,y:bE,translateX:xE,translateY:bE};var Fr=new Set,Ly=!1,_y=!1,By=!1;function EE(){if(_y){let t=[],e=new Set,n=new Set;Fr.forEach(o=>{o.needsMeasurement&&(t.push(o),e.add(o.element),TE.has(o.name)&&n.add(o.element))});let i=new Map;n.forEach(o=>{let r=SE(o);r.length&&(i.set(o,r),o.render())}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let r=i.get(o);r&&r.forEach(([a,s])=>{o.getValue(a)?.set(s)})}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}_y=!1,Ly=!1,Fr.forEach(t=>t.complete(By)),Fr.clear()}function AE(){Fr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_y=!0)})}function CE(){By=!0,AE(),EE(),By=!1}function dV(t,e,n){if(typeof t=="string"){if(Gr(t)||Yr(t))return parseFloat(t);if(!le.test(t)&&le.test(n))return Os(e,n)}return t??void 0}var $o=class{constructor(e,n,i,o,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Fr.add(this),Ly||(Ly=!0,$.read(AE),$.resolveKeyframes(EE))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;if(e[0]===null){let r=o?.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){let s=dV(i.readValue(n,a),n,a);s!==void 0&&(e[0]=s)}e[0]===void 0&&(e[0]=a),o&&r===void 0&&o.set(e[0])}pE(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fr.delete(this)}cancel(){this.state==="scheduled"&&(Fr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var tr=t=>t.startsWith("--");function Pm(t,e,n){tr(e)?t.style.setProperty(e,n):t.style[e]=n}var wE={};function Gm(t,e){let n=hy(t);return()=>wE[e]??n()}var ME=Gm(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Ns=Gm(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ii=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;var Du={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function Uy(t,e){if(t)return typeof t=="function"?Ns()?Om(t,e):"ease-out":Xr(t)?Ii(t):Array.isArray(t)?t.map(n=>Uy(n,e)||Du.easeOut):Du[t]}function DE(t,e,n,{delay:i=0,duration:o=300,repeat:r=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[e]:n};l&&(c.offset=l);let m=Uy(s,o);Array.isArray(m)&&(c.easing=m);let f={delay:i,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function Ir(t){return typeof t=="function"&&"applyToOptions"in t}function RE({type:t,...e}){return Ir(t)&&Ns()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Vs=class extends Wo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:n,name:i,keyframes:o,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=e,typeof process<"u";let u=RE(e);this.animation=DE(n,i,o,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!r){let c=Fi(o,this.options,s,this.speed);this.updateMotionValue?.(c),Pm(n,i,c),this.animation.cancel()}l?.(),this.notifyFinished()},zm(this,e,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,!(this.state==="idle"||this.finishedTime!==null)&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return ne(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ne(e)}get time(){return ne(Number(this.animation.currentTime)||0)}set time(e){let n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bt(e),n&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=this.onFinish=null,e&&ME()?(this.animation.timeline=e,n?.(this.animation),Qt):i(this)}};var OE={anticipate:du,backInOut:mu,circInOut:gu};function pV(t){return t in OE}function NE(t){typeof t.ease=="string"&&pV(t.ease)&&(t.ease=OE[t.ease])}var Ru=10,jm=class extends Vs{constructor(e){NE(e),Nm(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state==="running"?(lt.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:n,onUpdate:i,onComplete:o,onPlay:r,onStop:a,element:s,...l}=this.options;this.sampler=new Vn({...l,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e==="running"||e==="paused")return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:n,element:i,name:o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}let{speed:r}=this,a=this.elapsed(),s=this.state==="running"&&r?se(0,Ru,a):0,l=this.sample(a);i&&o&&Pm(i,o,l),n.setWithVelocity(this.sample(a-s*Math.sign(r)),l,s/Math.abs(r||1))}};var Hy=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(le.test(t)||t==="0")&&!t.startsWith("url("));function hV(t){let e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function VE(t,e,n,i){let o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;let r=t[t.length-1],a=Hy(o,e),s=Hy(r,e);return!a||!s?!1:hV(t)||(n==="spring"||Ir(n))&&i}function Ou(t){t.duration=0,t.type="keyframes"}var Nu=new Set(["opacity","clipPath","filter","transform"]);var gV=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function zE(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&gV.test(t[e]))return!0;return!1}var Ym=({mixer:t,keyframes:e})=>t&&typeof e[0]!="number"&&e.some((n,i)=>i&&t(e[i-1],n));var LE=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Py=()=>!Zt.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate");function _E(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:o,damping:r,type:a,keyframes:s}=t;if(!n||!(Nu.has(n)||LE.has(n)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=e.owner.getProps();return Py()&&(Nu.has(n)||LE.has(n)&&zE(s))&&(n!=="transform"||!c)&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"&&!Ym(t)}var Kn=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var yV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vV=Me.length,BE={},Jr=(t,e,n=Kn(e,Lm[t]))=>(BE[t]||(BE[t]=(yV[t]||t)+"("))+n+")",zs=(t,e)=>(typeof e=="number"?e:parseFloat(e))===(t.startsWith("scale")?1:0);function UE(t,e,n){let i="";for(let r=0;r<vV;r++){let a=Me[r],s=t[a];if(s===void 0)continue;let l=n&&(e[a]=Kn(s,Ye[a]));zs(a,s)||(i+=Jr(a,s,l||void 0)+" ")}let o=t.pathRotation;return o&&(i+=Jr("rotate",o)),i=i.trim(),n?n(e,i):i||"none"}var Zn=new WeakMap;var xV=200,kE=.001,bV=.1,SV=.001,TV=100,HE=100,EV=new Set(["linear","easeIn","easeOut","easeInOut"]),AV=t=>EV.has(t),PE=new WeakMap,CV=(t,e)=>{let n=PE.get(t);return n?.[0]!==e&&(n=[e,"linear("+vi(Array(e+1)).map(i=>Rs(t(i))+" "+Rs(i*100)+"%")+")"],PE.set(t,n)),n[1]},GE=(t,e)=>Math.min(xV,Math.max(2,Math.ceil((e-t)/Ru))),zu=(t,e)=>Math.abs(t-e)<=kE,Gy=(t,e)=>t-e,jE=(t,e,n)=>vi(Array(n+1)).map(i=>ut(t,e,i)),qm=t=>t.motionValue.owner,km=t=>Zn.get(t),YE=({state:t})=>t==="idle"||t==="finished",Ls=(t,e)=>t.latestValues?t.latestValues[e]:t.getValue(e)?.get(),XE=({name:t,motionValue:e})=>t&&Me.includes(t)&&e?.owner?.current instanceof HTMLElement&&Py()&&Ns();function wV(t){let e=qm(t),{onUpdate:n,transformTemplate:i}=e.getProps();return!t.isHandoff&&!n&&!t.hasOnUpdate&&!i&&t.type!=="inertia"&&(Ls(e,"transform")||"none")==="none"&&!Ls(e,"pathRotation")&&!e.projection?.isProjecting()&&!Ym(t)}var jy=class{constructor(e,n,i,o){this.element=e,this.update=n,this.makeDriver=i,this.animation=o}get js(){return this.driver||(this.driver=this.makeDriver(this.update))}now(){return this.driver||this.makeDriver!==Eu?this.js.now():Nt.isProcessing?Nt.timestamp:lt.now()}start(e=!0){let n=km(this.element);!n||n.isJS?this.js.start(e):n.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=km(this.element);e&&!e.isFinishing&&e.release(this.animation)}},qE,Xm=class extends Vn{constructor(e){let n=qm(e).current,{driver:i=Eu}=e,o,r=wV(e);e.driver=l=>new jy(n,l,i,o),super(e),o=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=r;let{stop:s}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),s()}}offsets(){let{keyframes:e,times:n}=this.options;return n||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=vi(e)),this.cachedOffsets)}get group(){return km(qm(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:n,totalDuration:i}=this,{delay:o=0,repeatType:r}=this.options;return this.holdTime!==null?[1/0,0]:i===1/0?[e+o/n,this.resolvedDuration*(r==="loop"?1:2)/n||1]:[e+(o+i)/n,0]}isAccelerated(){let{group:e,state:n}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(n==="running"||n==="paused")}liveValue(){return this.isAccelerated()?this.sampleAt(lt.now()):void 0}tween(){let{keyframes:e,type:n,repeat:i,delay:o=0}=this.options,r=-1;if(i||n!==Xn||this.holdTime!==null)return;for(let u=1;u<e.length;u++)if(e[u]!==e[u-1]){if(r>=0)return;r=u-1}let{ease:a}=this.options;kr(a)&&(a=a[r]);let s=this.offsets(),l=u=>this.startTime+(o+s[u]*this.totalDuration)/this.speed;if(r>=0){let u=Xr(a)?Ii(a):AV(a)?Du[a]:Ss(a);return[l(r),l(r+1),typeof u=="string"||zu(u(0),0)&&zu(u(1),1)?u:void 0]}}boundaries(e,n){let{startTime:i,speed:o,resolvedDuration:r,options:a}=this,{delay:s=0,repeat:l=0,repeatDelay:u=0,repeatType:c,type:m}=a,f=(m||Xn)===Xn?this.offsets():[0,1],d=i+s/o,g=[];if(this.holdTime!==null||!(r>0))return g;for(let v=Math.max(0,Math.floor((e-d)*o/r));v<=l;v++){let x=d+v*r/o;if(x>n)break;for(let p of f){let h=x+(v%2&&c&&c!=="loop"?1-p:p)*(r-u)/o;h>e&&h<n&&g.push(h)}}return g}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=lt.now(),n=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-Ru,!0):n,n,Ru)}play(){this.isStopped||((this.group||DV(qm(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(lt.now())}get time(){return this.isAccelerated()?ne(se(0,this.totalDuration,this.at(lt.now())-(this.options.delay||0))):super.time}set time(e){(qE??(qE=Object.getOwnPropertyDescriptor(Vn.prototype,"time").set)).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},Vu,MV=t=>{Vu||queueMicrotask(()=>{let e=Vu;Vu=void 0,e.forEach(n=>n())}),(Vu||(Vu=[])).push(t)};function DV(t){let e=t.current,n=new Set,i=new Map,o={},r=[],a=new Map,s=[],l=!1,u=!1,c=!1,m=!1,f=-1/0,d,g=1/0,v,x=A=>{for(let w of n)if(w.name===A)return!0},p=(A,w)=>{let V={};for(let O of A===void 0?Me:r){let z=i.get(O),G=A===void 0?Ls(t,O):z?z.sampleAt(w>A&&!z.timing()[1]?w:A):o[O];G!==void 0&&(V[O]=G)}return V},h=(A,w)=>{let V="";for(let O in A){let z=A[O];(!w||!zs(O,z))&&(V+=Jr(O,z)+" ")}return(w?V.trim():V)||"none"},y=(A,w)=>h(p(A,w)),b=(A=p())=>{e.style.transform=h(A,!0)},E=A=>{A.onfinish=A.oncancel=null,A.cancel()},C=(A=!0)=>{clearTimeout(d),g=1/0,v=void 0,A&&b(),s.forEach(({animation:w})=>E(w)),s=[]},T=(A,w)=>new Animation(new KeyframeEffect(e,A,w)),S=(A,w,V=1/0)=>{let O={animation:A,offset:w,end:V};A.startTime=lt.now()+w,V<1/0&&(A.onfinish=()=>{O.isDone=!0,s.some(z=>z.end===1/0)&&(E(A),s=s.filter(z=>z!==O)),_.schedule(!1)}),A.oncancel=()=>s.includes(O)&&_.demote(),s.push(O)},M=(A,w,V)=>{let O=(G,U)=>Math.abs(A(U)-A(G)),z=O(w,V);for(;V-w>.01;){let G=(w+V)/2;O(w,G)>O(G,V)?V=G:w=G}return O(w,V)>z/2?[w,V]:[]},D=(A,w,V,O)=>{let z=GE(w,V);if(O.length*4>z)return;let G;for(let Q of A){let rt=Q.numberAt(w),F=(Q.numberAt((w+V)/2)-rt)/(Q.numberAt(V)-rt);if(F===F){if(G===void 0)G=F;else if(!zu(F,G))return}}let U=jE(w,V,z).concat(O).sort(Gy),it=Q=>Ge(w,V,Q),et,j;for(let Q of A){let rt=Q.numberAt(w),F=U.map(Dt=>Q.numberAt(Dt)-rt),Yt=F[F.length-1],Y=F.some(Dt=>Math.abs(Dt)*kE>Math.abs(Yt))?0:Yt,Wt=F.map(Dt=>Y?Dt/Y:Dt);if(Y&&!et)et=Wt,j=Dt=>(Q.numberAt(Dt)-rt)/Y;else if(Wt.some((Dt,Le)=>!zu(Dt,Y&&et[Le])))return}if(!et||et.every((Q,rt)=>zu(Q,it(U[rt]))))return"linear";let st=[],ct=(Q,rt=j(Q))=>st.push(Rs(rt)+" "+Rs(it(Q)*100)+"%");return et.forEach((Q,rt)=>{rt&&Math.abs(Q-et[rt-1])>.2&&M(j,U[rt-1],U[rt]).forEach(F=>ct(F)),ct(U[rt],Q)}),"linear("+st+")"},L=(A,w,V,O)=>{let z=[w],G=[],U=V,it=w;for(let Q of A){let rt=Q.tween();if(rt?.[2]!=="linear"){let[F,Yt]=Q.timing(),[Y,Wt]=rt||[w,Yt?V:F];U=Math.min(U,Y),it=Math.max(it,Wt),G.push(Q)}}U=Math.max(w,U),it=Math.min(V,it);let et=(Q,rt)=>G.every(F=>!(Math.abs(F.numberAt((Q+rt)/2)-(F.numberAt(Q)+F.numberAt(rt))/2)>(F.name.startsWith("scale")?SV:bV))),j=(Q,rt,F)=>{if(rt-Q<1||et(Q,rt))z.push(rt);else if(F<4)j(Q,(Q+rt)/2,F+1),j((Q+rt)/2,rt,F+1);else{for(let Yt of A)z.push(...M(Y=>Yt.numberAt(Y),Q,rt));z.push(rt)}},st=it>U?jE(U,it,Math.ceil((it-U)/100)):[];st.push(V);for(let Q of O)st.push(Q,Math.min(Q+.01,V));let ct=w;for(let Q of st.sort(Gy))Q>ct&&j(ct,Q,0),ct=Q;return z.sort(Gy)},P=A=>{let w;for(let V of A){let O=V.tween();if(!O||w&&(Math.abs(O[0]-w[0])>1||Math.abs(O[1]-w[1])>1))return;w=[O[0],O[1],!w||O[2]===w[2]?O[2]:void 0]}return w},Z=(A,w,V,O,z={fill:"both"},G)=>{let U=O?[]:A.flatMap(ct=>ct.boundaries(w,V)),it=O||D(A,w,V,U),et=it?[w,V]:L(A,w,V,U),j=et.map(ct=>y(ct,G)),st={transform:j};return it||(st.offset=et.map(ct=>Ge(w,V,ct))),j.every(ct=>ct===j[0])&&(b(p(w,G)),st=null),T(st,{...z,duration:V-w,easing:it||"linear"})},I=A=>{let w=lt.now()+A;w<g&&(clearTimeout(d),g=w,d=setTimeout(()=>{g=1/0,_.schedule(!1)},A))},J=A=>{let w=A,V=0,O=0,z=[],G=[],U=new Set;i.clear(),a=new Map;for(let et of n){i.set(et.name,et);let[j,st]=et.timing(),ct=j===1/0;if(a.set(et,[et.at(A),et.speed,ct]),!ct){if(et.speed<0)return;if(st){if(V){let Q=(j-O)/st;if(Math.abs(st-V)>1||Math.abs(Q-Math.round(Q))*V>1)return}else V=st,O=j;G.push(et)}else U.add(j);z.push(et),w=Math.max(w,j)}}o={},r=Me.filter(et=>{if(i.has(et))return!0;let j=o[et]=Ls(t,et);return j!==void 0&&!zs(et,j)}),C(!1);let it=!V&&P(z);try{if(w>A){let et;if(it&&it[1]>A){let[j,st,ct]=it;if(j-A>HE)return z.forEach(Q=>Q.sync()),I(v=j-A-HE),!0;et=typeof ct=="string"?ct:ct?CV(ct,GE(j,st)):D(z,j,st,[]),et&&S(Z(z,j,st,et,{fill:"both",endDelay:w-st}),j-A,w-j)}et||S(Z(z,A,w),0,w-A),U.forEach(j=>j<w-1&&S(T(null,{duration:j-A}),0,j-A))}if(V){let et=O+Math.floor((w-O)/V)*V;S(Z(G,et,et+V,void 0,{iterations:1/0,iterationStart:(w-et)/V,fill:"forwards"},w),w-A)}}catch{return}return s.length||C(),!0},tt=(A,w)=>{let V,O=0;for(let z of n){let G=a.get(z);if(!G)return!1;let[U,it,et]=G,j=z.at(A),st=z.timing()[0]===1/0;if(et){if(st&&(j===U||!s.length))continue;return!1}let ct=(j-U)/it,Q=st?0:z.speed/it;if(V===void 0)V=ct,O=Q;else if(Math.abs(ct-V)>1||Q!==O)return!1}if(V===void 0)return!0;if(!s.length){if(v===void 0||w&&O)return!1;if(O){let z=(v-V)/O;if(z<1)return!1;I(z)}return!0}for(let{offset:z,end:G,isDone:U}of s){let it=V-z;if(G<1/0&&(U?it<G-1:it<0&&(w||z<=0)||it>=G))return!1}for(let{animation:z,offset:G,isDone:U}of s){if(U)continue;let it=V-G;O&&z.updatePlaybackRate&&z.playState==="running"&&Math.abs(Number(z.currentTime)-it)<20?z.playbackRate!==O&&z.updatePlaybackRate(O):O?(z.playbackRate!==O&&(z.playbackRate=O),z.startTime=A-it/O):(z.startTime=null,z.currentTime=it)}return!0},K=()=>n.size?!1:(c=!0,km(e)===_&&Zn.delete(e),_.isJS||C(),!0),X=()=>{let A=lt.now();if(_.isJS||(_.isFinishing=!0,n.forEach(O=>{let[z,G]=O.timing();O.state==="running"&&O.speed>0&&!G&&z<=A+1&&(O.complete(),o[O.name]=Ls(t,O.name),a.has(O)||(l=!0))}),_.isFinishing=!1),u=!1,c||(n.forEach(O=>YE(O)&&n.delete(O)),K()))return;for(let O of n)if(!O.canAccelerate)return _.demote(!0);_.isJS&&(_.isJS=!1,l=!0,n.forEach(O=>O.stopJS()));let w=l,V=m;if(l=m=!1,w||!tt(A,V)){if(V){if(A-f<TV)return _.demote();f=A}if(!J(A))return _.demote()}else if(v!==void 0&&!V)return;n.forEach(O=>O.timing()[0]===1/0&&O.sync())},_={tracks:n,isJS:!1,isFinishing:!1,schedule(A,w){c||(l||(l=A),m||(m=!!w),u||(u=!0,Nt.isProcessing?$.render(X,!1,!0):MV(X)))},release(A){YE(A)&&n.delete(A),K()||_.schedule(!0)},check(){if(!_.isJS){for(let A in o)if(Ls(t,A)!==o[A]&&!x(A))return _.schedule(!0,!0)}},demote(A){if(!(_.isJS||c))return n.forEach(w=>{w.isAccelerated()&&w.sync(),A||(w.canAccelerate=!1)}),_.isJS=!0,a=new Map,C(),n.forEach(w=>w.state==="running"&&w.js?.start()),!0}};return Zn.set(e,_),_}var Km=class extends Wo{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=lt.now();let{keyframes:n,name:i,motionValue:o,element:r}=e,a=e;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");let s=r?.KeyframeResolver||$o;this.keyframeResolver=new s(n,(l,u,c)=>this.onKeyframesResolved(l,u,a,!c),i,o,r),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,o){this.keyframeResolver=void 0;let{name:r,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=lt.now();let m=VE(e,r,a,s);m||((Zt.instantAnimations||!l)&&c?.(Fi(e,i,n)),e[0]=e[e.length-1],Ou(i),i.repeat=0);let{onComplete:f}=i;i.finalKeyframe=n,i.keyframes=e,i.onComplete=()=>{f?.(),this.notifyFinished()};let d=m&&!u&&_E(i),g=!d&&XE(i);o&&(d||g||this.resolvedAt!==this.createdAt)&&(i.startTime??(i.startTime=Vm(this.createdAt,this.resolvedAt)));let v;if(d){i.element=i.motionValue?.owner?.current;try{v=new jm(i)}catch{v=new Vn(i)}}else g?v=new Xm(i):v=new Vn(i);this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this._animation.finished:super.finished}then(e,n){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),CE()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}};var Zm=class{constructor(e){this.stop=()=>{for(let n of this.animations)n.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let n=this.animations.map(i=>i.attachTimeline(e));return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){for(let n of this.animations)n.time=e}get speed(){return this.getAll("speed")}set speed(e){for(let n of this.animations)n.speed=e}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return KE(this.animations,"duration")}get iterationDuration(){return KE(this.animations,"iterationDuration")}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function KE(t,e){let n=0;for(let i=0;i<t.length;i++){let o=t[i][e];o!==null&&o>n&&(n=o)}return n}var _s=class extends Zm{then(e,n){return this.finished.finally(e).then(()=>{})}};function Qm(t,e,n,i=0,o=1){let r=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),a=t.size,s=(a-1)*i;return typeof n=="function"?n(r,a):o===1?r*i:s-r*i}var ZE=30,RV=t=>!isNaN(parseFloat(t)),QE={current:void 0},xi=class{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{let o=lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.dirty(),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=lt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=RV(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){var i;return e==="change"?this.onChangeSubscribe(n):((i=this.events)[e]||(i[e]=new pi)).add(n)}onChangeSubscribe(e){let{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=e:(n.change||(n.change=new pi,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:n.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){$.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){n&&(this.updatedAt=lt.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:n}=this;n?n(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||(this.dependents=new Set)).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){QE.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ZE)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,ZE);return fu(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return new Promise(n=>this.run(e,n))}run(e,n){this.stop(),this.hasAnimated=!0;let i=!1,o;o=e(()=>{i=!0,this.events.animationComplete?.notify(),this.animation===o&&(this.animation=void 0),n?.()}),i||(this.animation=o),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function ge(t,e){return new xi(t,e)}function Wr(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}function Bs(t,e){let n=t?.[e]??t?.default??t;return n!==t?Wr(n,t):n}var OV={type:"spring",stiffness:500,damping:25,restSpeed:10},NV=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),VV={type:"keyframes",duration:.8},zV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FE=(t,{keyframes:e})=>e.length>2?VV:Ft.has(t)?t.startsWith("scale")?NV(e[1]):OV:zV;var LV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]);function IE(t){for(let e in t)if(!LV.has(e))return!0;return!1}var er=(t,e,n,i={},o,r)=>a=>{let s=Bs(i,t)||{},l=s.delay||i.delay||0,{elapsed:u=0}=i;u=u-Bt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-u,onUpdate:f=>{e.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:r?void 0:o,hasOnUpdate:!!s.onUpdate};IE(s)||Object.assign(c,FE(t,c)),c.duration&&(c.duration=Bt(c.duration)),c.repeatDelay&&(c.repeatDelay=Bt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let m=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ou(c),c.delay===0&&(m=!0)),(Zt.instantAnimations||Zt.skipAnimations||o?.shouldSkipAnimations||s.skipAnimations)&&(m=!0,Ou(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,m&&!r&&e.get()!==void 0){let f=Fi(c.keyframes,s);if(f!==void 0){$.update(()=>{c.onUpdate(f),c.onComplete()});return}}return s.isSync?new Vn(c):new Km(c)};var _V=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BV(t){let e=_V.exec(t);if(!e)return[,];let[,n,i,o]=e;return[`--${n??i}`,o]}function Lu(t,e,n=1){let[i,o]=BV(t);if(!i)return;let r=window.getComputedStyle(e).getPropertyValue(i);if(r){let a=r.trim();return Gr(a)?parseFloat(a):a}return Io(o)?Lu(o,e,n+1):o}function UV(t){let e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function _u(t,e,n,i){let o=r=>typeof r=="function"?r(n!==void 0?n:t.custom,...UV(i)):r;return e=o(e),typeof e=="string"&&(e=t.variants&&t.variants[e]),o(e)}function pn(t,e,n){return _u(t.getProps(),e,n,t)}var Fm=(t,e)=>e==="exit"?t.presenceContext?.custom:void 0;var Us=new Set(["width","height","top","left","right","bottom",...Me]);var JE=t=>Array.isArray(t);function HV(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ge(n))}function PV(t){return JE(t)?t[t.length-1]||0:t}function WE(t,e){let n=pn(t,e),{transitionEnd:i={},transition:o={},...r}=n||{};r={...r,...i};for(let a in r){let s=PV(r[a]);HV(t,a,s)}}var vt=t=>!!(t&&t.getVelocity);function $E(t){return!!(vt(t)&&t.add)}function Bu(t,e){let n=t.getValue("willChange");if($E(n))return n.add(e);if(!n&&Zt.WillChange){let i=new Zt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var Uu="data-framer-appear-id";function Im(t){return t.props[Uu]}var GV=typeof window<"u";function jV({protectedKeys:t,needsAnimating:e},n){let i=n in t&&!e[n];return e[n]=!1,i}function Jm(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r,transitionEnd:a,...s}=e,l=t.getDefaultTransition();r=r?Wr(r,l):l;let u=r?.reduceMotion,c=r?.skipAnimations;i&&(r=i);let m=[],f=o&&t.animationState?.getState()[o],d=r?.path;d&&(d.animateValues?d.animateValues(g=>t.getValue(g,t.latestValues[g]??0),s,r,n,m):d.animateVisualElement?.(t,s,r,n,m));for(let g in s){let v=t.getValue(g,t.latestValues[g]??null),x=s[g];if(x===void 0||f&&jV(f,g))continue;let p={delay:n,...Bs(f?.out[g]||r||{},g)};c&&(p.skipAnimations=!0);let h=v.get();if(h!==void 0&&!v.isAnimating()&&!Array.isArray(x)&&x===h&&!p.velocity){$.update(()=>v.set(x));continue}let y=!1;if(GV&&window.MotionHandoffAnimation){let C=Im(t);if(C){let T=window.MotionHandoffAnimation(C,g,$);T!==null&&(p.startTime=T,y=!0)}}Bu(t,g);let b=u??t.shouldReduceMotion;v.run(er(g,v,x,b&&Us.has(g)?{type:!1}:p,t,y));let E=v.animation;E&&m.push(E)}if(a){let g=()=>$.update(()=>{a&&WE(t,a)});m.length?Promise.all(m).then(g):g()}return m}function Wm(t,e,n={}){let i=pn(t,e,Fm(t,n.type)),o=n.transitionOverride||(i?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(i?Jm(t,i,n):[]),a=(l=0)=>{let{variantChildren:u}=t,{delayChildren:c=0,staggerChildren:m,staggerDirection:f}=o,d=[];return u?.forEach(g=>{g.notify("AnimationStart",e),d.push(Wm(g,e,{...n,delay:l+(typeof c=="function"?0:c)+Qm(u,g,c,m,f)}).then(()=>g.notify("AnimationComplete",e)))}),Promise.all(d)},{when:s}=o;return s?s==="beforeChildren"?r().then(()=>a()):a().then(r):Promise.all([r(),a(n.delay)])}function tA(t,e,n={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(o=>Wm(t,o,n))):typeof e=="string"?Wm(t,e,n):Promise.all(Jm(t,pn(t,e,n.custom),n))).then(()=>{t.notify("AnimationComplete",e)})}var eA={test:t=>t==="auto",parse:t=>t};var nA=t=>e=>e.test(t);var YV=[gi,H,je,kn,PT,HT,eA],Yy=t=>YV.find(nA(t));function iA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Yr(t):!0}var qV=new Set(["auto","none","0"]);function oA(t,e,n){let i=0,o;for(;i<t.length&&!o;){let r=t[i];typeof r=="string"&&!qV.has(r)&&KT(r)&&(o=t[i]),i++}if(o&&n)for(let r of e)t[r]!==o&&(t[r]=Os(n,o))}var Hs=class extends $o{constructor(e,n,i,o,r){super(e,n,i,o,r,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:n,motionValue:i}=this,o=e[0]??i?.get();if(!n?.current||o===void 0)return!1;for(let r=0;r<e.length;r++)if(Em(r?e[r]:o))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:n,name:i}=this;if(!n?.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let m=e[c];if(typeof m=="string"&&(m=m.trim(),Io(m))){let f=Lu(m,n.current);f!==void 0&&(e[c]=f),c===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Us.has(i)||e.length!==2)return;let[o,r]=e;if(typeof o=="number"&&typeof r=="number")return;let a=Yy(o),s=Yy(r),l=Em(o),u=Em(r);if(l!==u&&Hm[i]){this.needsMeasurement=!0;return}if(a!==s)if(zy(a)&&zy(s))for(let c=0;c<e.length;c++){let m=e[c];typeof m=="string"&&(e[c]=parseFloat(m))}else Hm[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:n}=this,i=[];for(let o=0;o<e.length;o++)(e[o]===null||iA(e[o]))&&i.push(o);i.length&&oA(e,i,n)}measure(){let{element:e,name:n}=this;return Hm[n](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:n,name:i}=this;if(!e?.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;let o=n[n.length-1];o!==void 0&&this.motionValue?.jump(o,!1)}measureEndState(){let{element:e,unresolvedKeyframes:n}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=this.measure(),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.resolveNoneKeyframes()}};var Hu=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var qy=[];function ky(t){$m(t),qy.unshift(t)}function $m(t){$e(qy,t)}function Xy(t){return qy.find(e=>e.test(t))}function td(t,e,n={},i){let o=[],{velocity:r,path:a}=n,s=n.reduceMotion??i?.shouldReduceMotion;a?.animateValues&&i&&(e={...e},a.animateValues(t,e,n,0,o));for(let u in e){if(u==="transition"||u==="transitionEnd")continue;let c=e[u];if(c===void 0)continue;let m=t(u),f=m.get();if(f!==void 0&&!m.isAnimating()&&!Array.isArray(c)&&c===f&&!r){$.update(()=>m.set(c));continue}m.run(er(u,m,c,s&&Us.has(u)?{type:!1}:n,i)),m.animation&&o.push(m.animation)}let{transitionEnd:l}=e;if(l){let u=()=>$.update(()=>{for(let c in l)t(c).set(l[c])});o.length?Promise.all(o).then(u):u()}return o}function Pu(t,e,n,i,o){let r,a=!1,s=td(l=>{let u=r?.[l]??t.get(e,l);if(!u){let c;if(!o){let m=n[l];c=kV(m)??t.read(e,l,m)}u=ge(c,{owner:o}),a?t(e,{[l]:u}):(r||(r={}))[l]=u}return u},n,i,o);return a=!0,r&&t(e,r),s}function kV(t){let e=Array.isArray(t)?t[0]:void 0;return e===null?void 0:e}function bi(t){return jr(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function zn(t){return jr(t)&&"ownerSVGElement"in t}var qe={};function Ji(t){return qe.current?.add(t),t}var Wi=t=>qe.current?qe.current.bind(t):t;function $i(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=e?e.current:qe.current?.root||document,o=n?.[t]??i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(i=>i!=null)}var ed=class{constructor(e=$.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:n,numPending:i}=this;this.numPending=0;for(let o=0;o<i;o++)n[o]()}}set(e,n,i,o){if(this.values.get(e)?.onRemove(),o)for(let l of this.values.values())l.value===o&&(i=l.render);let r=()=>i&&this.schedule(i);n.get()!==void 0&&r();let a=n.on("change",r),s=()=>{a(),i&&!o&&this.cancel(i),this.values.get(e)?.onRemove===s&&this.values.delete(e)};return this.values.set(e,{value:n,render:o?void 0:i,onRemove:s}),s}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((n,i)=>{e.set(i,n.value),n.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:n,numPending:i}=this;for(let o=0;o<i;o++)if(n[o]===e)return;i||this.step(this.flush),n[this.numPending++]=e}cancel(e){let{pending:n}=this;for(let i=0;i<this.numPending;i++)if(n[i]===e){n[i]=n[--this.numPending];return}}};function Ps(t,{step:e,...n}={}){let i=new WeakMap;return Object.assign((r,a)=>{let s=i.get(r)??new ed(e);i.set(r,s);let l=[];for(let u in a){let c=a[u],m=t(r,s,u,c);l.push(m)}return()=>{for(let u of l)u()}},n,{get:(r,a)=>i.get(r)?.get(a),flush:r=>i.get(r)?.flush(),state:r=>i.get(r)})}function rA(t){let e="",{transformKeys:n=[],transformValues:i={}}=t;for(let r=0;r<n.length;r++){let a=n[r],s=i[a].getCurrent();s!==void 0&&(zs(a,s)||(e+=(e&&" ")+Jr(a,s)))}let o=t.get("pathRotation")?.get();return o&&(e+=(e&&" ")+Jr("rotate",o)),e||"none"}var Zy=new Set(["originX","originY","originZ"]),Ky=(t,e)=>Kn(t.get(e)?.get(),Ye[e]),nd=(t,e,n,i)=>{let o,r;if(Ft.has(n)){if(n!=="pathRotation"){let a=e.transformKeys??(e.transformKeys=[]);(e.transformValues??(e.transformValues={}))[n]=i,a.includes(n)||(a.push(n),a.sort((s,l)=>Me.indexOf(s)-Me.indexOf(l)))}e.get("transform")||(!bi(t)&&!e.get("transformBox")&&nd(t,e,"transformBox",new xi("fill-box")),e.set("transform",new xi("none"),()=>{Zn.get(t)?.check(),t.style.transform=rA(e)})),r=e.get("transform")}else Zy.has(n)?(e.get("transformOrigin")||e.set("transformOrigin",new xi(""),()=>{let a=Ky(e,"originX")??"50%",s=Ky(e,"originY")??"50%",l=Ky(e,"originZ")??0;t.style.transformOrigin=`${a} ${s} ${l}`}),r=e.get("transformOrigin")):tr(n)?o=()=>{t.style.setProperty(n,i.getCurrent())}:o=()=>{t.style[n]=Kn(i.getCurrent(),Ye[n])};return e.set(n,i,o,r)},XV=t=>bi(t)||zn(t),Qy=(t,e)=>{if(Ft.has(e))return Um(t,e);let n=getComputedStyle(t),i=tr(e)?n.getPropertyValue(e):n[e];return typeof i=="string"&&i.trim()||0},aA=Ps(nd,{test:XV,read:Qy});function to(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function $r(t,e,n){let{style:i,vars:o,transformOrigin:r}=t,a=!1,s=!1;for(let l in e){let u=e[l];if(Ft.has(l)){a=!0;continue}else if(Tm(l)){o[l]=u;continue}else{let c=Kn(u,Ye[l]);l.startsWith("origin")?(s=!0,r[l]=c):i[l]=c}}if(e.transform||(a||n?i.transform=UE(e,t.transform,n):i.transform&&(i.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}var KV={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZV={offset:"strokeDashoffset",array:"strokeDasharray"};function sA(t,e,n=1,i=0,o=!0){t.pathLength=1;let r=o?KV:ZV;t[r.offset]=`${-i}`,t[r.array]=`${e} ${n}`}var Gu=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ju(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:r=1,pathOffset:a=0,...s},l,u,c){if($r(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f}=t;for(let d of Gu)m[d]!==void 0&&(f[d]=m[d],delete m[d]);(f.transform||m.transformOrigin)&&(f.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete m.transformBox),e!==void 0&&(m.x=e),n!==void 0&&(m.y=n),i!==void 0&&(m.scale=i),o!==void 0&&sA(m,o,r,a,!1)}function QV(t,e){if(!(e in t))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&typeof n.set=="function"}var Fy=(t,e,n,i,o=n)=>{let r=QV(t,o);!r&&(o.startsWith("data")||o.startsWith("aria"))&&(o=to(o));let a=Ye[n]||Ye[o],s=r?()=>{t[o]=Kn(i.get(),Ye[n])}:()=>{let l=Kn(i.get(),a);l==null?t.removeAttribute(o):t.setAttribute(o,String(l))};return e.set(n,i,s)};function FV(t,e,n,i){return $.render(()=>t.setAttribute("pathLength","1")),n==="pathOffset"?e.set(n,i,()=>{let o=i.get();t.setAttribute("stroke-dashoffset",`${-o}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new xi("1 1"),()=>{let o=e.get("pathLength")?.get()??1,r=e.get("pathSpacing")?.get();t.setAttribute("stroke-dasharray",`${o} ${r??1-Number(o)}`)}),e.set(n,i,void 0,e.get("stroke-dasharray")))}var IV=(t,e,n,i)=>n.startsWith("path")&&!Ft.has(n)?FV(t,e,n,i):n.startsWith("attr")?Fy(t,e,n,i,uA(n)):n==="d"?e.set(n,i,()=>{let r=i.get()?.replace(/path\(|["')]/g,"");r===void 0?t.removeAttribute(n):t.setAttribute(n,r)}):(Ft.has(n)||Zy.has(n)||tr(n)||n in t.style?nd:Fy)(t,e,n,i),JV=(t,e)=>Ft.has(e)?Ye[e]?.default||0:tr(e)||Gu.includes(e)?Qy(t,e)||t.getAttribute(to(e))||0:(e=uA(e),t.getAttribute(to(e))??t.getAttribute(e)??void 0),lA=Ps(IV,{test:zn,read:JV});function uA(t){return t.replace(/^attr([A-Z])/,(e,n)=>n.toLowerCase())}function id({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function cA({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fA(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Iy(t){return t===void 0||t===1}function od({scale:t,scaleX:e,scaleY:n}){return!Iy(t)||!Iy(e)||!Iy(n)}var eo=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function no(t){return od(t)||Wy(t)||Jy(t)}function Jy(t){return t.z||t.rotate||t.rotateX||t.rotateY||t.rotateZ||t.skewX||t.skewY}function Wy(t){return mA(t.x)||mA(t.y)}function mA(t){return t&&t!=="0%"}function Yu(t,e,n){let i=t-n,o=e*i;return n+o}function dA(t,e,n,i,o){return o!==void 0&&(t=Yu(t,o,i)),Yu(t,n,i)+e}function $y(t,e=0,n=1,i,o){t.min=dA(t.min,e,n,i,o),t.max=dA(t.max,e,n,i,o)}function t0(t,{x:e,y:n}){$y(t.x,e.translate,e.scale,e.originPoint),$y(t.y,n.translate,n.scale,n.originPoint)}var pA=.999999999999,hA=1.0000000000001;function vA(t,e,n,i=!1){let o=n.length;if(!o)return;e.x=e.y=1;let r,a;for(let s=0;s<o;s++)r=n[s],a=r.projectionDelta,r.options.visualElement?.props.style?.display!=="contents"&&(i===!0&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(hn(t.x,-r.scroll.offset.x),hn(t.y,-r.scroll.offset.y)),a&&(e.x*=a.x.scale,e.y*=a.y.scale,t0(t,a)),i&&(i.path?.[s]||i)!==r&&no(r.latestValues)&&qu(t,r.latestValues,r.layout?.layoutBox));e.x<hA&&e.x>pA&&(e.x=1),e.y<hA&&e.y>pA&&(e.y=1)}function hn(t,e){t.min+=e,t.max+=e}function gA(t,e,n,i,o=.5){let r=ut(t.min,t.max,o);$y(t,e,n,r,i)}function yA(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function qu(t,e,n){let i=n??t;gA(t.x,yA(e.x,i.x),e.scaleX,e.scale,e.originX),gA(t.y,yA(e.y,i.y),e.scaleY,e.scale,e.originY)}function ku(t,e){return id(fA(t.getBoundingClientRect(),e))}function xA(t,e,n){let i=ku(t,n),{scroll:o}=e;return o&&(hn(i.x,o.offset.x),hn(i.y,o.offset.y)),i}var bA=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0});var WV={},$V=t=>zn(t)?lA:aA,e0=class{constructor(e,n){this.effect=e,this.current=n,this.KeyframeResolver=Hs}getValue(e){return this.effect.get(this.current,e)}readValue(e,n){return this.effect.read(this.current,e,n)}render(){this.effect.flush(this.current)}measureViewportBox(){return ku(this.current)}getProps(){return WV}};function n0(t,e,n,i){if(qe.current?.track(t),i)return td(r=>i.getValue(r,null),e,n,i);let o=$V(t);return Pu(o,t,e,n,new e0(o,t))}var i0=Ps((t,e,n,i)=>e.set(n,i,()=>{t[n]=i.get()}),{test:t=>jr(t),read:(t,e)=>{let n=t[e];return typeof n=="string"||typeof n=="number"?n:void 0}});var{schedule:Si,cancel:t3}=Rm(queueMicrotask,!1);function ta(t,e,n){let i=vt(t)?t:ge(t);return i.run(er("",i,e,n)),i.animation}var ea={};var Xu={value:null,addProjectionMetrics:null,countProjection:void 0};function SA(t,e){let n=lt.now();t=Wi(t);let i=({timestamp:o})=>{let r=o-n;r>=e&&(ie(i),t(r-e))};return $.setup(i,!0),Ji(()=>ie(i))}function TA(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function EA(t){return zn(t)&&t.tagName==="svg"}function na(t){return vt(t)?t.get():t}var o0=t=>typeof t=="number"?t:parseFloat(t);var e3=Hu.length,AA=t=>typeof t=="number"||H.test(t);function wA(t,e,n,i,o,r){o?(t.opacity=ut(0,n.opacity??1,n3(i)),t.opacityExit=ut(e.opacity??1,0,i3(i))):r&&(t.opacity=ut(e.opacity??1,n.opacity??1,i));for(let a=0;a<e3;a++){let s=Hu[a],l=CA(e,s),u=CA(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||AA(l)===AA(u)?(t[s]=Math.max(ut(o0(l),o0(u),i),0),(je.test(u)||je.test(l))&&(t[s]+="%")):t[s]=u}for(let a=0;a<eo.length;a++){let s=eo[a];(e[s]||n[s])&&(t[s]=ut(e[s]||0,n[s]||0,i))}}function CA(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var n3=MA(0,.5,hu),i3=MA(.5,.95,Qt);function MA(t,e,n){return i=>i<t?0:i>e?1:n(Ge(t,e,i))}function rd(t,e){t.min=e.min,t.max=e.max}function Ln(t,e){rd(t.x,e.x),rd(t.y,e.y)}function r0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var NA=1e-4,o3=1-NA,r3=1+NA,VA=.01,a3=0-VA,s3=0+VA;function ye(t){return t.max-t.min}function zA(t,e,n){return Math.abs(t-e)<=n}function DA(t,e,n,i=.5){t.origin=i,t.originPoint=ut(e.min,e.max,t.origin),t.scale=ye(n)/ye(e),t.translate=ut(n.min,n.max,t.origin)-t.originPoint,(t.scale>=o3&&t.scale<=r3||isNaN(t.scale))&&(t.scale=1),(t.translate>=a3&&t.translate<=s3||isNaN(t.translate))&&(t.translate=0)}function Ku(t,e,n,i){DA(t.x,e.x,n.x,i?.originX),DA(t.y,e.y,n.y,i?.originY)}function RA(t,e,n,i=0){let o=i?ut(n.min,n.max,i):n.min;t.min=o+e.min,t.max=t.min+ye(e)}function LA(t,e,n,i){RA(t.x,e.x,n.x,i?.x),RA(t.y,e.y,n.y,i?.y)}function OA(t,e,n,i=0){let o=i?ut(n.min,n.max,i):n.min;t.min=e.min-o,t.max=t.min+ye(e)}function Zu(t,e,n,i){OA(t.x,e.x,n.x,i?.x),OA(t.y,e.y,n.y,i?.y)}function _A(t,e,n,i,o){return t-=e,t=Yu(t,1/n,i),o!==void 0&&(t=Yu(t,1/o,i)),t}function l3(t,e=0,n=1,i=.5,o,r=t,a=t){if(je.test(e)&&(e=parseFloat(e),e=ut(a.min,a.max,e/100)-a.min),typeof e!="number")return;let s=ut(r.min,r.max,i);t===r&&(s-=e),t.min=_A(t.min,e,n,s,o),t.max=_A(t.max,e,n,s,o)}function BA(t,e,[n,i,o],r,a){l3(t,e[n],e[i],e[o],e.scale,r,a)}var u3=["x","scaleX","originX"],c3=["y","scaleY","originY"];function a0(t,e,n,i){BA(t.x,e,u3,n?.x,i?.x),BA(t.y,e,c3,n?.y,i?.y)}var UA=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),HA=UA("applewebkit/")&&!UA("chrome/")?Math.round:Qt;function PA(t){t.min=HA(t.min),t.max=HA(t.max)}function GA(t){PA(t.x),PA(t.y)}var jA=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:jA(),y:jA()}),YA=()=>({min:0,max:0}),jt=()=>({x:YA(),y:YA()});function qA(t){return t.translate===0&&t.scale===1}function s0(t){return qA(t.x)&&qA(t.y)}function kA(t,e){return t.min===e.min&&t.max===e.max}function KA(t,e){return kA(t.x,e.x)&&kA(t.y,e.y)}function XA(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function l0(t,e){return XA(t.x,e.x)&&XA(t.y,e.y)}function u0(t){return ye(t.x)/ye(t.y)}function c0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ad=class{constructor(){this.members=[]}add(e){Pr(this.members,e);for(let n=this.members.length-1;n>=0;n--){let i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;let o=i.instance;(!o||o.isConnected===!1)&&!i.snapshot&&($e(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if($e(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,n){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:o}=i.options,{layoutDependency:r}=e.options;(o===void 0||o!==r)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function ZA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Gs={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(H.test(t))t=parseFloat(t);else return t;let n=ZA(t,e.target.x),i=ZA(t,e.target.y);return`${n}% ${i}%`}};var QA={correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t,o=le.parse(t);if(o.length>5)return i;let r=le.createTransformer(t),a=typeof o[0]!="number"?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;let u=ut(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),r(o)}};var FA={borderRadius:Object.assign({},Gs,{applyTo:Hu.slice()}),borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:QA};function IA(t,e,n){let i="",o=t.x.translate/e.x,r=t.y.translate/e.y,a=n?.z||0;(o||r||a)&&(i=`translate3d(${o}px, ${r}px, ${a}px) `);let s="";if(n){let{transformPerspective:l}=n;l&&(i=`perspective(${l}px) ${i}`);for(let u=0;u<eo.length;u++){let c=eo[u],m=n[c];m&&(s+=`${c}(${m}deg) `),!u&&n.pathRotation&&(s+=`rotate(${n.pathRotation}deg) `)}}if(s){(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),i+=s;let l=t.x.scale*e.x,u=t.y.scale*e.y;(l!==1||u!==1)&&(i+=`scale(${l}, ${u})`)}else t.x.scale!==1||t.y.scale!==1?i+=`scale(${t.x.scale}, ${t.y.scale})`:!i&&(e.x!==1||e.y!==1)&&(i="scale(1, 1)");return i||"none"}function gn(t){return[t("x"),t("y")]}var JA=(t,e)=>t.depth-e.depth;var sd=class{constructor(){this.children=[],this.isDirty=!1}add(e){Pr(this.children,e),this.isDirty=!0}remove(e){$e(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(JA),this.isDirty=!1,this.children.forEach(e)}};var oa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var WA=["z","skew","skewZ"],f3=1e3,m3=0;function $A(t,e,n,i){let{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}var f0=t=>t.instance&&Zn.get(t.instance)?.demote()&&t.resetSkewAndRotation();function aC(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let n=Im(e);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:o,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$,!(o||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&aC(i)}function sC(t){if(t)return t.options.allowProjection!==!1?t.projection:sC(t.parent)}function ld({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return Object.assign(ea,{...FA,...ea}),class{static create(a,s,l){let{layoutId:u,layout:c,drag:m,dragConstraints:f,layoutScroll:d,layoutRoot:g,layoutAnchor:v,layoutCrossfade:x}=s,p=a.projection=new this(a.latestValues,s["data-framer-portal-id"]?void 0:sC(a.parent));p.setOptions({layoutId:u,layout:c,alwaysMeasureLayout:!!m||f&&TA(f),visualElement:a,animationType:typeof c=="string"?c:"both",initialPromotionConfig:l,crossfade:x,layoutScroll:d,layoutRoot:g,layoutAnchor:v});let h=p.getStack()?.lead;h&&!p.root.isUpdateBlocked()&&(h.willUpdate(),h.scheduleCheckAfterUnmount())}constructor(a={},s=e?.()){this.id=m3++,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,this.nodes.forEach(h3),this.nodes.forEach(E3),this.nodes.forEach(A3),this.nodes.forEach(g3),Xu.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 sd)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new pi),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){this.eventHandlers.get(a)?.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=zn(a)&&!EA(a),this.instance=a;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),t){let c,m=0,f=()=>this.root.updateBlockedByResize=!1;$.read(()=>{m=window.innerWidth}),t(a,()=>{let d=window.innerWidth;d!==m&&(m=d,this.root.updateBlockedByResize=!0,c?.(),c=SA(f,250),oa.hasAnimatedSinceResize&&(oa.hasAnimatedSinceResize=!1,this.nodes.forEach(nC)))})}s&&this.root.registerSharedNode(s,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:a,layout:s,visualElement:l,animate:u}=this.options;!this.instance||this.hasLayoutListener||u===!1||!l||!(a||s)||(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||l.getDefaultTransition()||D3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=l.getProps(),p=!this.targetLayout||!l0(this.targetLayout,d),h=!m&&f;if(this.options.layoutRoot||this.resumeFrom||h||m&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...Bs(g,"layout"),onPlay:v,onComplete:x};(l.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,h,y.path)}else m||nC(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=d}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,ie(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(C3),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&aC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;f0(this),this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let m=this.path[c];m.shouldResetTransform=!0,f0(m),(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1),m.isAnimationBlocked&&(m.dragSnapshot||(m.dragSnapshot=m.measure()),this.dragAncestor=m)}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(),a&&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(v3),this.nodes.forEach(tC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(b3),this.nodes.forEach(S3),this.nodes.forEach(T3),this.nodes.forEach(d3),this.nodes.forEach(p3)):this.nodes.forEach(eC),this.clearAllSnapshots();let s=lt.now();Nt.delta=se(0,1e3/60,s-Nt.timestamp),Nt.timestamp=s,Nt.isProcessing=!0,Tu.update.process(Nt),Tu.preRender.process(Nt),Tu.render.process(Nt),Nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Si.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(y3),this.sharedNodes.forEach((a,s)=>a.members.length?a.removeLeadSnapshot():this.sharedNodes.delete(s))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=jt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s?.notify("LayoutMeasure",this.layout.layoutBox,a?.layoutBox)}updateScroll(a="measure"){let{scroll:s,instance:l}=this,{animationId:u}=this.root;if(this.options.layoutScroll&&l&&!(s&&s.animationId===u&&s.phase===a)){let c=i(l);this.scroll={animationId:u,phase:a,isRoot:c,offset:n(l),wasRoot:s?s.isRoot:c}}}resetTransform(){if(!o)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;a&&f0(this);let s=this.projectionDelta&&!s0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||no(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),GA(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return jt();let s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(R3))){let{scroll:u}=this.root;u&&(hn(s.x,u.offset.x),hn(s.y,u.offset.y))}return s}removeElementScroll(a){let s=jt();if(Ln(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:m}=u;u!==this.root&&c&&m.layoutScroll&&(c.wasRoot&&Ln(s,a),hn(s.x,c.offset.x),hn(s.y,c.offset.y))}return s}applyTransform(a,s=!1,l,u,c=0){let m=l||jt();Ln(m,a);for(let f=c;f<this.path.length;f++){let d=this.path[f];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(hn(m.x,-d.scroll.offset.x),hn(m.y,-d.scroll.offset.y)),no(d.latestValues)&&qu(m,d.latestValues,d.layout?.layoutBox)}return!u&&no(this.latestValues)&&qu(m,this.latestValues,this.layout?.layoutBox),m}removeTransform(a){let s=jt();Ln(s,a);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!no(u.latestValues))continue;let c;u.instance&&(od(u.latestValues)&&u.updateSnapshot(),c=jt(),Ln(c,u.measurePageBox())),a0(s,u.latestValues,u.snapshot?.layoutBox,c)}return no(this.latestValues)&&a0(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0},this.addLayoutListener()}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!==Nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!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(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:m}=this.options;if(!this.layout||!(c||m))return;this.resolvedRelativeTargetAt=Nt.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=jt(),this.targetWithTransforms=jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),LA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):Ln(this.target,this.layout.layoutBox),t0(this.target,this.targetDelta)):Ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&(!f.resumingFrom==!this.resumingFrom||f.options.layoutRoot&&!f.resumingFrom)&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Xu.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||od(this.parent.latestValues)||Wy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),Zu(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),s=!!this.resumingFrom||this!==a,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Nt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Ln(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,f=this.treeScale.y;vA(this.layoutCorrected,this.treeScale,this.path,s&&(a.relativeTarget&&!a.relativeParent.resumingFrom?a.relativeParent:!0)),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=jt());let{target:d}=a;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)),Ku(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==m||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",d)),Xu.countProjection?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){this.options.visualElement?.scheduleRender(),a&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(a,s=!1,l){let u=this.snapshot,c=u?u.latestValues:{},m={...this.latestValues},f=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let d=jt(),g=u?.source!==this.layout?.source,v=this.getStack(),x=!v||v.members.length<=1,p=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(M3));this.animationProgress=0;let h,y=l?.interpolateProjection(a);this.mixTargetDelta=b=>{let E=b/1e3,C=y?.(E);iC(f.x,a.x,E),iC(f.y,a.y,E),C&&(f.x.translate=C.x,f.y.translate=C.y),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zu(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),w3(this.relativeTarget,this.relativeTargetOrigin,d,E),h&&KA(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=jt()),Ln(h,this.relativeTarget)),g&&(this.animationValues=m,wA(m,c,this.latestValues,E,p,x)),C?.rotate!==void 0&&(this.animationValues||(this.animationValues=m),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ie(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update(()=>{oa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ge(0)),this.motionValue.jump(0,!1),this.currentAnimation=ta(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),fE(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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(f3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,layout:l,latestValues:u}=a,{target:c}=a;if(!(!s||!c||!l)){if(this!==a&&this.layout&&l&&lC(this.options.animationType,this.layout.layoutBox,l.layoutBox)){let{layoutBox:m}=this.layout,f=c;c=this.target||jt(),rC(c.x,f.x,m.x),rC(c.y,f.y,m.y)}Ln(s,c),qu(s,u),Ku(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ad),this.sharedNodes.get(a).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?.transition,preserveFollowOpacity:u?.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){this.getStack()?.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let{latestValues:s}=a;if(!Jy(s))return;let l={};for(let u=0;u<WA.length;u++)$A(WA[u],a,l,this.animationValues);for(let u=0;u<eo.length;u++)$A(eo[u],a,l,this.animationValues);a.render();for(let u in l)a.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;let l=this.getLead();if(!this.isVisible&&l!==this){a.visibility="hidden";return}let u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=na(s?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!l.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,a.visibility="",a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=na(s?.pointerEvents)||""),this.hasProjected&&!no(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";let c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let m=IA(this.projectionDeltaWithTransform,this.treeScale,c);u&&(m=u(c,m)),a.transform=m;let{x:f,y:d}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,l.animationValues?a.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:a.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let g in ea){if(c[g]===void 0)continue;let{correct:v,applyTo:x,isCSSVariable:p}=ea[g],h=m==="none"?c[g]:v(c[g],l);if(x){let y=x.length;for(let b=0;b<y;b++)a[x[b]]=h}else p?this.options.visualElement.renderState.vars[g]=h:a[g]=h}this.options.layoutId&&(a.pointerEvents=l===this?na(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(tC),this.root.sharedNodes.clear()}}}function d3(t){t.updateLayout(),x3(t)}function p3(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source,a=(d,g)=>{if(o==="size")gn(v=>{let x=ye(d[v]);d[v].min=g[v].min,d[v].max=d[v].min+x});else if(o==="x"||o==="y"){let v=o==="x"?"y":"x";rd(d[v],g[v])}else lC(o,e.layoutBox,n)&&gn(v=>{let x=ye(g[v]);d[v].max=d[v].min+x,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+x)})},s=r?e.measuredBox:e.layoutBox;a(s,n);let l=ia();Ku(l,n,e.layoutBox);let u=ia();Ku(u,r?t.applyTransform(i,!0):n,s);let c=!s0(l),m=!1,f=t.getClosestProjectingParent();if((!r||f?.options.layoutRoot&&t.resumeFrom?.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:d,layout:g}=f;if(d&&g){let v=t.options.layoutAnchor||void 0,x=jt();Zu(x,r?t.resumeFrom.applyTransform(e.layoutBox,!0,void 0,!0,f.depth+1):e.layoutBox,d.layoutBox,v);let p=jt();Zu(p,n,g.layoutBox,v),r&&a(x,p),l0(x,p)||(m=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=x,t.relativeParent=f)}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:m})}else t.isLead()&&t.options.onExitComplete?.();t.options.transition=void 0}function h3(t){Xu.countProjection?.(0),t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function g3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function y3(t){t.clearSnapshot()}function tC(t){t.clearMeasurements()}function v3(t){t.isLayoutDirty=!0,t.updateLayout()}function eC(t){t.isLayoutDirty=!1}function x3(t){let{snapshot:e,dragAncestor:n}=t,i=n?.isAnimationBlocked&&n.layout;if(!e||!i||t.resumeFrom||t.isAnimationBlocked)return;let o=n.dragSnapshot;gn(r=>hn(e.layoutBox[r],i.layoutBox[r].min-o.layoutBox[r].min))}function b3(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.dragSnapshot||t.layout,t.isLayoutDirty=!0)}function S3(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function T3(t){let{visualElement:e}=t.options;e?.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nC(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function E3(t){t.resolveTargetDelta()}function A3(t){t.calcProjection()}function C3(t){t.resetSkewAndRotation()}function iC(t,e,n){t.translate=ut(e.translate,0,n),t.scale=ut(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function oC(t,e,n,i){t.min=ut(e.min,n.min,i),t.max=ut(e.max,n.max,i)}function w3(t,e,n,i){oC(t.x,e.x,n.x,i),oC(t.y,e.y,n.y,i)}function M3(t){return t.animationValues?.opacityExit!==void 0}var D3={duration:.45,ease:[.4,0,.1,1]};function rC(t,e,n){t.max=ye(n)+(t.min=e.min)}function lC(t,e,n){return t==="position"||t==="preserve-aspect"&&!zA(u0(e),u0(n),.2)}function R3(t){return t!==t.root&&t.scroll?.wasRoot}function yn(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}var uC=ld({attachResizeListener:(t,e)=>yn(t,"resize",e),measureScroll:bA,checkIsScrollRoot:()=>!0});var ra={current:void 0};var Qu=ld({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ra.current){let t=new uC({});t.mount(window),t.setOptions({layoutScroll:!0}),ra.current=t}return ra.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});var Fu=new WeakMap;function io(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function oo(t){return typeof t=="string"||Array.isArray(t)}var aa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","whilePinch","exit"],ud=["initial"].concat(aa);function nr(t){if(io(t.animate))return!0;for(let e=0;e<ud.length;e++)if(oo(t[ud[e]]))return!0;return!1}function Iu(t){return!!(nr(t)||t.variants)}function cC(t,e,n){for(let i in e){let o=e[i],r=n[i];if(vt(o))t.addValue(i,o);else if(vt(r))t.addValue(i,ge(o,{owner:t}));else if(r!==o)if(t.hasValue(i)){let a=t.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{let a=t.getStaticValue(i);t.addValue(i,ge(a!==void 0?a:o,{owner:t}))}}for(let i in n)e[i]===void 0&&t.removeValue(i);return e}var ir={current:null},sa={current:!1};var O3=typeof window<"u";function Ju(){if(sa.current=!0,!!O3)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ir.current=t.matches;t.addEventListener("change",e),e()}else ir.current=!1}var fC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cd={};function $u(t){cd=t}function m0(){return cd}var Wu=class{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,skipAnimations:r,blockInitialAnimation:a,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=$o,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 d=lt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,$.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=nr(n),this.isVariantNode=Iu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:m,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(let d in f){let g=f[d];u[d]!==void 0&&vt(g)&&g.set(u[d])}}mount(e){let n=this.presenceContext;if(this.hasBeenMounted&&n?.isPresent!==!1&&!n?.keepValuesOnRemount)for(let i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];if(this.current=e,Fu.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let i=this;do i=i.props.inherit!==!1&&i.parent;while(i&&!i.isVariantNode);if(i){let{variantChildren:o}=i;o.add(this),this.removeFromVariantTree=()=>o.delete(this)}}this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(sa.current||Ju(),this.shouldReduceMotion=ir.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),ie(this.notifyUpdate),ie(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||(this.enteringChildren=new Set)).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.get(e)?.(),n.accelerate&&Nu.has(e)&&this.current instanceof HTMLElement){let{factory:a,keyframes:s,times:l,ease:u,duration:c}=n.accelerate,m=new Vs({element:this.current,name:e,keyframes:s,times:l,ease:u,duration:Bt(c)}),f=a(m);this.valueSubscriptions.set(e,()=>{f(),m.cancel()});return}let i=Ft.has(e);i&&this.onBindTransform&&this.onBindTransform();let o=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&$.preRender(this.notifyUpdate),i&&(this.projection&&(this.projection.isTransformDirty=!0),Zn.get(this.current)?.check()),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),r?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in cd){let n=cd[e];if(!n)continue;let{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){let r=this.features[e];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):jt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){let{transformTemplate:i,onUpdate:o}=this.props;(e.transformTemplate||i)&&this.scheduleRender(),(e.transformTemplate&&!i||e.onUpdate&&!o)&&Zn.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fC.length;r++){let a=fC[r];this.propEventSubscriptions[a]?.(),delete this.propEventSubscriptions[a];let s="on"+a,l=e[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=cC(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,n){let i=this.values.get(e);if(n!==i){i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n);let o=n.get();o!==void 0&&(this.latestValues[e]=o)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){let i=this.props.values?.[e];return i||(i=this.values.get(e),i===void 0&&n!==void 0&&(i=ge(n??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,i)),i)}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Gr(i)||Yr(i))?i=parseFloat(i):typeof i!="number"&&!le.test(i)&&le.test(n)&&(i=Os(e,n)),this.setBaseTarget(e,vt(i)?i.get():i)),vt(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}on(e,n){return(this.events[e]||(this.events[e]=new pi)).add(n)}notify(e,...n){this.events[e]?.notify(...n)}scheduleRenderMicrotask(){Si.render(this.render)}};var js=class extends Wu{constructor(){super(...arguments),this.KeyframeResolver=Hs}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){let i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;vt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function fd(t,{style:e,vars:n},i,o){let r=t.style,a;for(a in e)r[a]=e[a];o?.applyProjectionStyles(r,i);for(a in n)r.setProperty(a,n[a])}function tc(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ea[t]||t==="opacity")}function la(t,e,n){let i=t.style,o=e?.style,r={};if(!i)return r;for(let a in i)(vt(i[a])||o&&vt(o[a])||tc(a,t)||n?.getValue(a)?.liveStyle!==void 0)&&(r[a]=i[a]);return r}function N3(t){return window.getComputedStyle(t)}var ec=class extends js{constructor(){super(...arguments),this.type="html",this.renderInstance=fd}mount(e){super.mount(e)}readValueFromInstance(e,n){if(Ft.has(n))return this.projection?.isProjecting?Qr(n):Um(e,n);{let i=N3(e),o=(Tm(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ku(e,n)}build(e,n,i){$r(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return la(e,n,i)}};var or=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ys(t){return{point:{x:t.pageX,y:t.pageY}}}var d0=t=>e=>or(e)&&t(e,Ys(e));function ro(t,e,n,i){return yn(t,e,d0(n),i)}var md=new WeakMap,dd,mC=(t,e,n)=>(i,o)=>o&&o[0]?o[0][t+"Size"]:zn(i)&&"getBBox"in i?i.getBBox()[e]:i[n],V3=mC("inline","width","offsetWidth"),z3=mC("block","height","offsetHeight");function L3({target:t,borderBoxSize:e}){md.get(t)?.forEach(n=>{n(t,{get width(){return V3(t,e)},get height(){return z3(t,e)}})})}function _3(t){t.forEach(L3)}function B3(){typeof ResizeObserver>"u"||(dd=new ResizeObserver(_3))}function dC(t,e){dd||B3();let n=$i(t);return n.forEach(i=>{let o=md.get(i);o||(o=new Set,md.set(i,o)),o.add(e),dd?.observe(i)}),()=>{n.forEach(i=>{let o=md.get(i);o?.delete(e),o?.size||dd?.unobserve(i)})}}var pd=new Set,qs;function U3(){qs=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};pd.forEach(e=>e(t))},window.addEventListener("resize",qs)}function pC(t){return pd.add(t),qs||U3(),()=>{pd.delete(t),!pd.size&&typeof qs=="function"&&(window.removeEventListener("resize",qs),qs=void 0)}}function p0(t,e){return Ji(typeof t=="function"?pC(t):dC(t,e))}var hC=(t,e)=>Math.abs(t-e);function gC(t,e){let n=hC(t.x,e.x),i=hC(t.y,e.y);return Math.sqrt(n**2+i**2)}var yC=new Set(["auto","scroll"]),ua=class{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:r=!1,distanceThreshold:a=3,element:s,immediate:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hd(this.lastRawMoveEventInfo,this.transformPagePoint));let g=g0(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,x=gC(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!x)return;let{point:p}=g;this.history.push({...p,timestamp:lt.now()});let{onStart:h,onMove:y}=this.handlers;v||(h?.(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),y?.(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.handleScroll(window),this.lastMoveEvent=g,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=hd(v,this.transformPagePoint),this.hasPendingMove=!0,$.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:x,onSessionEnd:p,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=g0(g.type==="pointercancel"?this.lastMoveEventInfo:hd(v,this.transformPagePoint),this.history);this.startEvent&&x?.(g,y),p?.(g,y)},!or(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=l?0:a,this.contextWindow=o||window;let u=Ys(e),c=hd(u,this.transformPagePoint),{point:m}=c;this.history=[{...m,timestamp:lt.now()}];let{onSessionStart:f}=n;f&&f(e,g0(c,this.history));let d={passive:!0,capture:!0};this.removeListeners=Nn(ro(this.contextWindow,"pointermove",this.handlePointerMove,d),ro(this.contextWindow,"pointerup",this.handlePointerUp,d),ro(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s),l&&(this.handlePointerMove(e,u),this.updatePoint())}startScrollTracking(e){let n=e.parentElement;for(;n;){let i=getComputedStyle(n);(yC.has(i.overflowX)||yC.has(i.overflowY))&&this.scrollPositions.set(n,h0(n)),n=n.parentElement}this.scrollPositions.set(window,h0(window)),this.removeScrollListeners=Nn(yn(window,"scroll",this.onElementScroll,{capture:!0}),yn(window,"scroll",this.onWindowScroll,{}))}handleScroll(e){let n=this.scrollPositions.get(e);if(!n)return;let i=e===window,o=h0(e),r={x:o.x-n.x,y:o.y-n.y};r.x===0&&r.y===0||(i?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(e,o),$.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),ie(this.updatePoint)}},h0=t=>t===window?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop};function hd(t,e){return e?{point:e(t.point)}:t}function vC(t,e){return{x:t.x-e.x,y:t.y-e.y}}function g0({point:t},e){return{point:t,delta:vC(t,xC(e)),offset:vC(t,H3(e)),velocity:P3(e,.1)}}function H3(t){return t[0]}function xC(t){return t[t.length-1]}function P3(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,o=xC(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>Bt(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&o.timestamp-i.timestamp>Bt(e)*2&&(i=t[1]);let r=ne(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};let a={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var G3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bC(t){return G3.has(t.tagName)||t.isContentEditable===!0}var j3=new Set(["INPUT","SELECT","TEXTAREA"]);function SC(t){return j3.has(t.tagName)||t.isContentEditable===!0}var _n={x:!1,y:!1};function ks(){return _n.x||_n.y}function TC(t){return t==="x"||t==="y"?_n[t]?null:(_n[t]=!0,()=>{_n[t]=!1}):_n.x||_n.y?null:(_n.x=_n.y=!0,()=>{_n.x=_n.y=!1})}function MC(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?ut(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?ut(n,t,i.max):Math.min(t,n)),t}function EC(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function DC(t,{top:e,left:n,bottom:i,right:o}){return{x:EC(t.x,n,o),y:EC(t.y,e,i)}}function AC(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function RC(t,e){return{x:AC(t.x,e.x),y:AC(t.y,e.y)}}function OC(t,e){let n=.5,i=ye(t),o=ye(e);return o>i?n=Ge(e.min,e.max-i,t.min):i>o&&(n=Ge(t.min,t.max-o,e.min)),se(0,1,n)}function NC(t,e){let n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}var gd=.35;function VC(t=gd){return t===!1?t=0:t===!0&&(t=gd),{x:CC(t,"left","right"),y:CC(t,"top","bottom")}}function CC(t,e,n){return{min:wC(t,e),max:wC(t,n)}}function wC(t,e){return typeof t=="number"?t:t[e]||0}function zC(t){let e="";for(let n of t.path){n.scroll=void 0,n.updateScroll();let{scroll:i}=n;n!==t.root&&i&&(e+=i.offset.x+","+i.offset.y+",")}return e}var BC=new WeakMap,ic=class{constructor(e,n=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=n}start(e,n={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let i=u=>{n.snapToCursor&&this.snapToCursor(u),this.stopAnimation()},o=(u,c)=>{let{drag:m,dragConstraints:f,dragPropagation:d,onDragStart:g}=this.getProps();if(m&&!d&&(this.openDragLock?.(),this.openDragLock=TC(m),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=c,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:v}=this.visualElement;v&&(v.isAnimationBlocked=!0,v.target=void 0),gn(x=>{let p=this.getAxisMotionValue(x).get()||0;if(Io(p)&&(p=Lu(p,this.visualElement.current)||0),H.test(p))p=parseFloat(p);else if(je.test(p)){let h=v?.layout?.layoutBox[x];h&&(p=ye(h)*(parseFloat(p)/100))}this.originPoint[x]=p}),this.point=typeof f=="function"&&f(this),g&&$.update(()=>g(u,c),!1,!0),Bu(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},r=(u,c)=>{this.latestPointerEvent=u,this.latestPanInfo=c;let{dragPropagation:m,dragDirectionLock:f,onDirectionLock:d,onDrag:g}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:v}=c;if(f&&this.currentDirection===null){if(this.currentDirection=q3(v),this.currentDirection===null)return;d&&d(this.currentDirection)}this.updateAxis("x",v),this.updateAxis("y",v),this.point&&this.point.move(),this.visualElement.render(),g&&$.update(()=>g(u,c),!1,!0)},a=(u,c)=>{this.latestPointerEvent=u,this.latestPanInfo=c,this.stop(u,c),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:u}=this.getProps();(u||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ua(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:s},{...n,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,n,i){let o=e||this.latestPointerEvent,r=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!o)return;let{velocity:s}=r;this.startAnimation(s,i);let{onDragEnd:l}=this.getProps();l&&$.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,n){let{drag:i}=this.readProps();if(!n||!Xs(e,i,this.currentDirection))return;let o=this.getAxisMotionValue(e),r=this.originPoint[e]+n[e],a=this.constraints&&this.constraints[e];a&&(r=MC(r,a,this.elastic[e])),this.point?this.point[e]=r:o.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:n}=this.getProps(),{projection:i}=this.visualElement,o=i&&(i.layout||i.measure(!1)),r=this.constraints;nc(e)?(!this.constraints||this.scroll!==zC(i))&&(this.constraints=this.resolveRefConstraints()):e&&o&&typeof e=="object"?this.constraints=DC(o.layoutBox,e):this.constraints=!1,this.elastic=VC(n),r!==this.constraints&&!nc(e)&&o&&this.constraints&&!this.hasMutatedConstraints&&gn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=NC(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!nc(e))return!1;let i=LC(e),{projection:o}=this.visualElement;if(!o||!o.layout)return!1;this.scroll=zC(o);let r=xA(i,o.root,this.visualElement.getTransformPagePoint()),a=RC(o.layout.layoutBox,o.removeElementScroll(r));if(n){let s=n(cA(a));this.hasMutatedConstraints=!!s,s&&(a=id(s))}return a}startAnimation(e,n){let{drag:i,dragMomentum:o,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u={bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},c=d=>o&&!(this.point&&s)&&Xs(d,n||i,this.currentDirection)?e[d]:0;if(this.point&&!s)return this.point.release({x:c("x"),y:c("y")},u).then(l);let m=this.constraints||{},f=gn(d=>{if(!Xs(d,n||i,this.currentDirection))return;let g=m[d]||{};(s===!0||s===d)&&(g={min:0,max:0});let v={type:"inertia",velocity:c(d),...u,...g};return this.startAxisValueAnimation(d,v)});return Promise.all(f).then(l)}startAxisValueAnimation(e,n){let i=this.getAxisMotionValue(e);return Bu(this.visualElement,e),i.start(er(e,i,0,n,this.visualElement,!1))}stopAnimation(){gn(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let n=`_drag${e.toUpperCase()}`,o=this.readProps()[n];return o||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:n}){let{drag:i}=this.getProps(),o={x:e,y:n},r=this.visualElement.getTransformPagePoint()?.(o)||o,a=this.visualElement.measureViewportBox();gn(s=>{if(!Xs(s,i,this.currentDirection))return;let l=this.getAxisMotionValue(s),{min:u,max:c}=a[s];l.set((l.get()||0)+r[s]-ut(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!nc(n)||!i||!this.constraints)return;this.stopAnimation();let o=this.constraints,r={x:0,y:0};gn(s=>{let l=this.getAxisMotionValue(s).get();r[s]=OC({min:l,max:l},o[s])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root?.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(s=>{let l=this.getAxisMotionValue(s);if(!Xs(s,e,null)||!l.get())return;let{min:u,max:c}=this.constraints[s];l.set(ut(u,c,r[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;BC.set(this.visualElement,this);let e=this.visualElement.current,n=ro(e,"pointerdown",u=>{let{drag:c,dragListener:m=!0}=this.getProps(),f=u.target,d=f!==e&&SC(f);c&&m&&!d&&this.start(u)}),i,o=()=>{let{dragConstraints:u}=this.getProps(),c=nc(u)&&LC(u);c&&(this.constraints=this.resolveRefConstraints(),i||(i=Y3(e,c,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,a=r.addEventListener("measure",o);r.layout||(r.root?.updateScroll(),r.updateLayout()),$.read(o);let s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(gn(m=>{if(!Xs(m,this.getProps().drag,this.currentDirection))return;let f=this.getAxisMotionValue(m);this.originPoint[m]+=u[m].translate,f.set(f.get()+u[m].translate)}),this.visualElement.render())}));return()=>{s(),n(),a(),l(),i?.()}}getProps(){let e=this.readProps(),{dragElastic:n=gd,dragMomentum:i=!0}=e;return{...e,dragElastic:n,dragMomentum:i}}};function nc(t){return!!t&&typeof t=="object"&&("current"in t||"nodeType"in t)}var LC=t=>"current"in t?t.current:t;function _C(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Y3(t,e,n){let i=p0(t,_C(n)),o=p0(e,_C(n));return()=>{i(),o()}}function Xs(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function q3(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}function yd(t,e){let n=$i(t),i=new AbortController,o={passive:!0,...e,signal:i.signal},r=Ji(()=>i.abort());return[n,o,r]}function k3(t){return!(t.pointerType==="touch"||ks())}function y0(t,e,n={}){e=Wi(e);let[i,o,r]=yd(t,n);return i.forEach(a=>{let s=!1,l=!1,u,c=()=>{a.removeEventListener("pointerleave",g)},m=x=>{u&&(u(x),u=void 0),c()},f=x=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,m(x))},d=()=>{s=!0,window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",f,o)},g=x=>{if(x.pointerType!=="touch"){if(s){l=!0;return}m(x)}},v=x=>{if(!k3(x))return;l=!1;let p=e(a,x);typeof p=="function"&&(u=p,a.addEventListener("pointerleave",g,o))};a.addEventListener("pointerenter",v,o),a.addEventListener("pointerdown",d,o)}),r}var v0=(t,e)=>e?t===e?!0:v0(t,e.parentElement):!1;var oc=new WeakSet;function UC(t){return e=>{e.key==="Enter"&&t(e)}}function x0(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var HC=(t,e)=>{let n=!1,i=UC(()=>{n||oc.has(t)||(n=!0,x0(t,"down"))}),o=UC(()=>{n&&(n=!1,x0(t,"up"))});t.addEventListener("keydown",i,e),t.addEventListener("keyup",o,e),t.addEventListener("blur",()=>{t.removeEventListener("keydown",i),t.removeEventListener("keyup",o),n&&x0(t,"cancel")},{...e,once:!0})};function X3(t){return or(t)&&!ks()}var PC=new WeakSet,K3=100,Z3=8,GC=(t,e,n)=>Math.hypot(t.clientX-e.clientX,t.clientY-e.clientY)>n,jC=t=>t.preventDefault();function b0(t,e,n={}){e=Wi(e);let[i,o,r]=yd(t,n),a=new WeakMap,s=l=>{let u=l.currentTarget;if(!X3(l)||PC.has(l))return;n.stopPropagation&&PC.add(l);let{count:c=1,countTimeout:m=.3,hold:f=0,repeat:d}=n,g=lt.now(),v=Bt(f),x=Bt(m),p=a.get(u);p?.expire(GC(p.event,l,K3))?p=void 0:p&&(ie(p.expire),a.delete(u));let h=p?p.count+1:1,y=h>=c,b=y&&(f||d),E=!f,C=0,T;if(oc.add(u),p)T=p.handlers;else{let X=e(u,l);T=typeof X=="function"?{onComplete:X}:X||{}}y&&E&&T.onActive?.();let S=Bt(d),M=v||S,D=g+M,L=!0,P=()=>{if(o.signal.aborted)return ie(P);let X=Math.min(1-(D-lt.now())/M,1);L&&X<1&&(X=0),L=!1,T.onHold?.(X),!(X<1)&&(E?T.onRepeat?.(++C):(E=!0,T.onActive?.()),d?(L=!0,D+=M=S):ie(P))},Z={...o,capture:!0},I=(X,_)=>{if(or(X))if(window.removeEventListener("pointerup",J,Z),window.removeEventListener("pointercancel",tt,Z),window.removeEventListener("pointermove",K,Z),u.removeEventListener("contextmenu",jC),ie(P),oc.delete(u),ks()&&(_=!1),_&&!y){let A=lt.now(),w=V=>{let O=o.signal.aborted;if(O||V===!0||lt.now()-A>x)return ie(w),a.delete(u),O||T.onComplete?.(X,{success:!1}),!0};a.set(u,{count:h,event:l,handlers:T,expire:w}),$.update(w,!0)}else T.onComplete?.(X,{success:_&&E})},J=X=>{I(X,u===window||u===document||n.useGlobalTarget||v0(u,X.target))},tt=X=>{I(X,!1)},K=X=>{or(X)&&((d||!E)&&GC(l,X,Z3)||c>1&&ks())&&tt(X)};window.addEventListener("pointerup",J,Z),window.addEventListener("pointercancel",tt,Z),(b||c>1)&&window.addEventListener("pointermove",K,Z),b&&($.update(P,!0),u.addEventListener("contextmenu",jC,{...o,passive:!1}))};return i.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,o),bi(l)&&(l.addEventListener("focus",()=>HC(l,o),o),!bC(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),r}var ue=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};var vd=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 rc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function YC(t,e,n,i){fd(t,e,void 0,i);for(let o in e.attrs)t.setAttribute(vd.has(o)?o:to(o),e.attrs[o])}function ac(t,e,n){let i=la(t,e,n);for(let o in t)if(o!=="children"&&(vt(t[o])||vt(e[o]))){let r=Me.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[r]=t[o]}return i}var sc=class extends js{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt}getBaseTargetFromProps(e,n){return Ft.has(n)?super.getBaseTargetFromProps(e,n)??Qr(n):e[n]}getDefaultValue(e){return Ft.has(e)?this.latestValues[e]??Qr(e):void 0}readValueFromInstance(e,n){if(Ft.has(n)){let i=_m(n);return i&&i.default||0}if(Gu.includes(n)){let o=getComputedStyle(e)[n];if(typeof o=="string"&&o)return o.trim()}return n=vd.has(n)?n:to(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return ac(e,n,i)}build(e,n,i){ju(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){YC(e,n,i,o)}mount(e){this.isSVGTag=rc(e.tagName),super.mount(e)}};function S0(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var Q3=[...aa].reverse(),qC=t=>t?.out===!0?t:t?.out;function T0(t){let e=s=>Promise.all(s.map(({animation:l,options:u})=>tA(t,l,u))),n=kC(),i=!0,o=!1;function r(s){let{props:l,parent:u,manuallyAnimateOnMount:c}=t,{initial:m}=l,f=i||o,d=[],g=(E=m)=>typeof E!="boolean"&&pn(t,Array.isArray(E)?E[0]:E,t.presenceContext?.custom)||void 0,v=new Map,x={},p=1/0,h=t;do h=h.props.inherit!==!1&&h.parent;while(h&&!h.isControllingVariants);let y=f&&qC(g(m??(h&&h.props.initial))?.transition);if(Q3.forEach((E,C)=>{let T=n[E],S=l[E],M=h&&h.props[E],D=S!==void 0?S:oo(M)||M===!1?M:void 0,L=oo(D),P=E===s?T.isActive:null,Z=L&&S===void 0&&!(f&&c);if(T.protectedKeys={...x},!T.isActive&&P===null||!D&&!T.prevProp||io(D)||typeof D=="boolean")return;if(P===!1&&(p=C),E==="exit"&&T.isActive&&P!==!0){x={...x,...T.prevResolvedValues};return}let I=XC(T.prevProp,D),J=I||L&&(P&&!Z||C>p),tt=!1,K=Array.isArray(D)?D:[D],X={},_;if(P!==!1)for(let w of K){let{transition:V,transitionEnd:O,...z}=pn(t,w,Fm(t,E))||{};X={...X,...z,...O},_=qC(V)||_}let{prevResolvedValues:A}=T;for(let w in{...A,...X}){if(w in x)continue;let V=X[w],O=A[w],z=Array.isArray(V)&&Array.isArray(O)?!S0(V,O)||I:V!==O,G;if(z&&V==null)v.has(w)||v.set(w,T.prevOut);else if(z||V!==void 0&&v.has(w)){J=!0,G=v.get(w)||y,v.delete(w)&&(tt=!0),T.needsAnimating[w]=!0;let U=t.getValue(w);U&&(U.liveStyle=!1)}else T.protectedKeys[w]=!0;T.out[w]=G}if(T.prevProp=D,T.prevResolvedValues=X,T.prevOut=_,T.isActive&&(x={...x,...X}),J&&(!(Z&&I)||tt))for(let w of K){let V={type:E};if(typeof w=="string"&&f&&c&&u?.enteringChildren){let O=pn(u,w)?.transition?.delayChildren;V.delay=Qm(u.enteringChildren,t,O)}d.push({animation:w,options:V})}}),v.size){let E={},C=g(),T=C?.transition;v.forEach((S,M)=>{S&&(T={...T||t.getDefaultTransition(),[M]:S});let D=t.getValue(M);D&&(D.liveStyle=!0);let L=C&&!Array.isArray(m)?C[M]:void 0,P=t.getBaseTargetFromProps(l,M);E[M]=(L!==void 0?L:P!==void 0&&!vt(P)?P:t.initialValues[M]===void 0?t.baseTarget[M]:void 0)??null}),T&&(E.transition=T),d.push({animation:E})}let b=f&&t.blockInitialAnimation||i&&!c&&(l.initial===!1||l.initial===l.animate);return i=o=!1,!b&&d.length?e(d):Promise.resolve()}function a(s,l){if(n[s].isActive===l)return Promise.resolve();t.variantChildren?.forEach(c=>c.animationState?.setActive(s,l)),n[s].isActive=l;let u=r(s);for(let c in n)n[c].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:s=>{e=s(t)},getState:()=>n,reset:()=>{n=kC(),o=!0}}}function XC(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!S0(e,t):!1}function kC(){let t={};for(let e of aa)t[e]={isActive:e==="animate",protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return t}var xd=B(ot(),1),so=B(ot(),1);var KC=B(ot(),1),ao=(0,KC.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var QC=B(ot(),1);function ZC(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function F3(...t){return e=>{let n=!1,i=t.map(o=>{let r=ZC(o,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let o=0;o<i.length;o++){let r=i[o];typeof r=="function"?r():ZC(t[o],null)}}}}function FC(...t){return QC.useCallback(F3(...t),t)}var IC=t=>{let{width:e,height:n}=t?.getBoundingClientRect()||{};return[e/t?.offsetWidth||1,n/t?.offsetHeight||1]},WC=t=>{let{left:e,top:n}=t.getBoundingClientRect(),i=t;for(;i=i.parentElement||i.parentNode?.host;){let{scrollLeft:a,scrollTop:s}=i;if(a||s){let[l,u]=IC(i);e+=a*l,n+=s*u}if(getComputedStyle(i).position==="fixed")break}let[o,r]=IC(t.offsetParent);return[e/o,n/r]},E0=class extends xd.Component{getSnapshotBeforeUpdate(e){let n=this.props.getElement();if(bi(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let i=n.offsetParent,o=bi(i)&&i.offsetWidth||0,r=bi(i)&&i.offsetHeight||0,a=getComputedStyle(n),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=a.direction,s.point=WC(n)}return null}componentDidUpdate(){}render(){return this.props.children}};function $C({children:t,isPresent:e,anchorX:n,anchorY:i,root:o,pop:r,popNode:a}){let s=(0,so.useId)(),l=(0,so.useRef)(null),u=(0,so.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,so.useContext)(ao),m=r!==!1?t.props?.ref??t?.ref:void 0,f=FC(l,m),d=()=>l.current||a?.current?.current,g=v=>{let{width:x,height:p,top:h,left:y,right:b,bottom:E,direction:C}=u.current,T=C==="rtl",S=n==="left"?T?`right:${b}`:`left:${y}`:T?`left:${y}`:`right:${b}`,M=i==="bottom"?`bottom:${E}`:`top:${h}`;v?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${x}px!important;height:${p}px!important;${S}px!important;${M}px!important}`)};return(0,so.useInsertionEffect)(()=>{let{width:v,height:x}=u.current,p=d();if(e||r===!1||!p||!v||!x)return;p.dataset.motionPopId=s;let h=p.ownerDocument,y=h.createElement("style");c&&(y.nonce=c);let b=o??h.head;b.appendChild(y),g(y.sheet);let E=0,C=0;return Si.setup(()=>{let[T,S]=WC(p);E=u.current.point[0]-T,C=u.current.point[1]-S}),Si.read(()=>{let{sheet:T}=y;if(!T||!E&&!C)return;let S=u.current;S.left+=E,S.right-=E,S.top+=C,S.bottom-=C,T.deleteRule(0),g(T)}),()=>{p.removeAttribute("data-motion-pop-id"),b.contains(y)&&b.removeChild(y)}},[e]),(0,JC.jsx)(E0,{isPresent:e,getElement:d,sizeRef:u,pop:r,children:r===!1?t:xd.cloneElement(t,{ref:f})})}var ew=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:r,mode:a,anchorX:s,anchorY:l,root:u})=>{let c=di(I3),m=(0,lo.useId)(),f=(0,lo.useRef)(),d=(0,lo.useRef)(n),g=(0,lo.useRef)(i);Qo(()=>{d.current=n,g.current=i});let v=!0,x=(0,lo.useMemo)(()=>(v=!1,{id:m,initial:e,isPresent:n,custom:o,onExitComplete:p=>{c.set(p,!0);for(let h of c.values())if(!h)return;i&&i()},register:(p,h)=>(c.set(p,!1),h&&h.parent?.presenceContext?.id!==m&&(f.current=h),()=>{c.delete(p),!d.current&&!c.size&&g.current?.()})}),[n,c,i]);return r&&v&&(x={...x}),(0,lo.useMemo)(()=>{c.forEach((p,h)=>c.set(h,!1))},[n]),tw.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),t=(0,A0.jsx)($C,{pop:a==="popLayout",isPresent:n,anchorX:s,anchorY:l,root:u,popNode:f,children:t}),(0,A0.jsx)(Zi.Provider,{value:x,children:t})};function I3(){return new Map}var uo=B(ot(),1);function lc(t=!0){let e=(0,uo.useContext)(Zi);if(e===null)return[!0,null];let{isPresent:n,onExitComplete:i,register:o}=e,r=(0,uo.useId)();(0,uo.useEffect)(()=>{if(t)return o(r)},[t]);let a=(0,uo.useCallback)(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}function C0(){return J3((0,uo.useContext)(Zi))}function J3(t){return t===null?!0:t.isPresent}var bd=B(ot(),1),Ks=t=>t.key||"";function w0(t){let e=[];return bd.Children.forEach(t,n=>{(0,bd.isValidElement)(n)&&e.push(n)}),e}var Bn=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,m]=lc(a),f=(0,vn.useMemo)(()=>w0(t),[t]),d=a&&!c?[]:f.map(Ks),g=(0,vn.useRef)(!0),v=di(()=>new Map),x=(0,vn.useRef)(new Set),[p,h]=(0,vn.useState)(f),[y,b]=(0,vn.useState)(f);Qo(()=>{a&&!c&&!y.length&&m?.()},[c,a,y.length,m]);let E=(0,vn.useRef)();(0,vn.useEffect)(()=>()=>{let S=E.current;E.current=void 0,S?.()},[y]),Qo(()=>{g.current=!1;for(let S=0;S<y.length;S++){let M=Ks(y[S]);d.includes(M)?(v.delete(M),x.current.delete(M)):v.get(M)!==!0&&v.set(M,!1)}},[y,d.length,d.join("-")]);let C=[];if(f!==p){let S=[...f],M=0;for(let D of y){let L=d.indexOf(Ks(D));L===-1?(S.splice(M++,0,D),C.push(D)):M=L+C.length+1}return C.every(D=>v.get(Ks(D)))?S=f:r==="wait"&&(S=C),b(w0(S)),h(f),null}let{forceRender:T}=(0,vn.useContext)(vs);return(0,uc.jsx)(uc.Fragment,{children:y.map(S=>{let M=Ks(S),D=a&&!c?!1:f===y||d.includes(M),L=()=>{if(x.current.has(M))return;if(v.has(M))x.current.add(M),v.set(M,!0);else return;let P=!0;v.forEach(Z=>{Z||(P=!1)}),P&&(T?.(),h([]),a&&m?.(),E.current=i)};return(0,uc.jsx)(ew,{isPresent:D,initial:!g.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:r,root:u,onExitComplete:D?void 0:L,anchorX:s,anchorY:l,children:S},M)})})};var nw=B(ot(),1),Sd=(0,nw.createContext)({strict:!1});var iw={animation:["variants",...aa],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"]},ow=!1;function W3(){if(ow)return;let t={};for(let e in iw)t[e]={isEnabled:n=>iw[e].some(i=>!!n[i])};$u(t),ow=!0}function Td(){return W3(),m0()}function rw(t){let e=Td();for(let n in t)e[n]={...e[n],...t[n]};$u(e)}var aw=B(yt(),1),Ed=B(ot(),1);function M0({children:t,...e}){let n=(0,Ed.useContext)(ao);e={...n,...e},e.transition=Wr(e.transition,n.transition),e.isStatic=di(()=>e.isStatic);let i=(0,Ed.useMemo)(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations,e.isValidProp]);return(0,aw.jsx)(ao.Provider,{value:i,children:t})}var Dd=B(yt(),1);var Is=B(ot(),1);var sw=B(ot(),1),rr=(0,sw.createContext)({});var Ad=B(ot(),1);function lw(t,e){if(nr(t)){let{initial:n,animate:i}=t;return{initial:n===!1||oo(n)?n:void 0,animate:oo(i)?i:void 0}}return t.inherit!==!1?e:{}}function cw(t){let{initial:e,animate:n}=lw(t,(0,Ad.useContext)(rr));return(0,Ad.useMemo)(()=>({initial:e,animate:n}),[uw(e),uw(n)])}function uw(t){return Array.isArray(t)?t.join(" "):t}var Fs=B(ot(),1);var fw=B(ot(),1);var Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function D0(t,e,n){for(let i in e)!vt(e[i])&&!tc(i,n)&&(t[i]=e[i])}function $3({transformTemplate:t},e){return(0,fw.useMemo)(()=>{let n=Zs();return $r(n,e,t),Object.assign({},n.vars,n.style)},[e])}function tz(t,e){let n=t.style||{},i={};return D0(i,n,t),Object.assign(i,$3(t,e)),i}function mw(t,e){let n={},i=tz(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}var dw=B(ot(),1);var Cd=()=>({...Zs(),attrs:{}});function pw(t,e,n,i){let o=(0,dw.useMemo)(()=>{let r=Cd();return ju(r,e,rc(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let r={};return D0(r,t.style,t),{...o,style:{...r,...o.style}}}return o}var ez=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","tap","propagate","ignoreStrict","viewport","pinch"]);function cc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ez.has(t)}function nz(t,e){return t.startsWith("on")?!cc(t):e?.(t)??!cc(t)}function hw(t,e,n,i){let o={};for(let r in t)r==="values"&&typeof t.values=="object"||vt(t[r])||(nz(r,i)||n===!0&&cc(r)||!e&&!cc(r)||t.draggable&&r.startsWith("onDrag"))&&(o[r]=t[r]);return o}var gw=["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 Qs(t){return typeof t!="string"||t.includes("-")?!1:!!(gw.indexOf(t)>-1||/[A-Z]/u.test(t))}function yw(t,e,n,{latestValues:i},o,r=!1,a,s){let u=(a??Qs(t)?pw:mw)(e,i,o,t),c=hw(e,typeof t=="string",r,s),m=t!==Fs.Fragment?{...c,...u,ref:n}:{},{children:f}=e,d=(0,Fs.useMemo)(()=>vt(f)?f.get():f,[f]);return(0,Fs.createElement)(t,{...m,children:d})}var R0=B(ot(),1);function iz({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:oz(n,i,o,t),renderState:e()}}function oz(t,e,n,i){let o={},r=i(t,{});for(let f in r)o[f]=na(r[f]);let{initial:a,animate:s}=t,l=nr(t),u=Iu(t);e&&u&&!l&&t.inherit!==!1&&(a===void 0&&(a=e.initial),s===void 0&&(s=e.animate));let c=n?n.initial===!1:!1;c=c||a===!1;let m=c?s:a;if(m&&typeof m!="boolean"&&!io(m)){let f=Array.isArray(m)?m:[m];for(let d=0;d<f.length;d++){let g=_u(t,f[d]);if(g){let{transitionEnd:v,transition:x,...p}=g;for(let h in p){let y=p[h];if(Array.isArray(y)){let b=c?y.length-1:0;y=y[b]}y!==null&&(o[h]=y)}for(let h in v)o[h]=v[h]}}}return o}var wd=t=>(e,n)=>{let i=(0,R0.useContext)(rr),o=(0,R0.useContext)(Zi),r=()=>iz(t,e,i,o);return n?r():di(r)};var vw=wd({scrapeMotionValuesFromProps:la,createRenderState:Zs});var xw=wd({scrapeMotionValuesFromProps:ac,createRenderState:Cd});var bw=Symbol.for("motionComponentSymbol");var ca=B(ot(),1);function Sw(t,e,n){let i=(0,ca.useRef)(n);(0,ca.useInsertionEffect)(()=>{i.current=n});let o=(0,ca.useRef)(null);return(0,ca.useCallback)(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());let a=i.current;if(typeof a=="function")if(r){let s=a(r);typeof s=="function"&&(o.current=s)}else o.current?(o.current(),o.current=null):a(r);else a&&(a.current=r)},[e])}var tn=B(ot(),1);var Tw=B(ot(),1),Md=(0,Tw.createContext)({});function Ew(t,e,n,i,o,r){let{visualElement:a}=(0,tn.useContext)(rr),s=(0,tn.useContext)(Sd),l=(0,tn.useContext)(Zi),u=(0,tn.useContext)(ao),c=u.reducedMotion,m=u.skipAnimations,f=(0,tn.useRef)(null),d=(0,tn.useRef)(!1);i=i||s.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:m,isSVG:r}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let g=f.current,v=(0,tn.useContext)(Md);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&o.create(g,n,v),(0,tn.useInsertionEffect)(()=>{g&&g.props!==n&&g.update(n,l)});let x=n[Uu],p=(0,tn.useRef)(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Qo(()=>{!d.current||!g||(g.animationState?.animateChanges(),g.enteringChildren=void 0)},[]),Qo(()=>{d.current=!0,g&&(window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),p.current&&g.animationState&&g.animationState.animateChanges())}),(0,tn.useEffect)(()=>{g&&(!p.current&&g.animationState&&g.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),p.current=!1),g.enteringChildren=void 0)}),g}function Rd(t,{forwardMotionProps:e=!1,type:n}={},i,o){i&&rw(i);let r=n?n==="svg":Qs(t),a=r?xw:vw;function s(u,c){let m,f=rz(u);di(()=>!!ra.current?.sharedNodes.get(f)?.lead&&u.initial)&&(u={...u,initial:!1});let d={...(0,Is.useContext)(ao),...u,layoutId:f},{isStatic:g,isValidProp:v}=d,x=cw(u),p=a(u,g);if(!g&&typeof window<"u"){az(d,i);let h=sz(d);x.visualElement=Ew(t,p,d,o,h.ProjectionNode,r),(h.isEnabled||x.visualElement?.projection?.options.layoutId)&&(m=h.MeasureLayout)}return(0,Dd.jsxs)(rr.Provider,{value:x,children:[m&&x.visualElement?(0,Dd.jsx)(m,{visualElement:x.visualElement,...d}):null,yw(t,u,Sw(p,x.visualElement,c),p,g,e,r,v)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let l=(0,Is.forwardRef)(s);return l[bw]=t,l}function rz({layoutId:t}){let e=(0,Is.useContext)(vs).id;return e&&t!==void 0?e+"-"+t:t}function az(t,e){let n=(0,Is.useContext)(Sd).strict}function sz(t){let e=Td(),{drag:n,layout:i}=e;if(!n&&!i)return{};let o={...n,...i};return{MeasureLayout:o.MeasureLayout,isEnabled:n?.isEnabled(t)||i?.isEnabled(t),ProjectionNode:o.ProjectionNode}}function Aw(t,e){if(typeof Proxy>"u")return Rd;let n=new Map,i=(r,a)=>Rd(r,a,t,e),o=(r,a)=>i(r,a);return new Proxy(o,{get:(r,a)=>a==="create"?i:(n.has(a)||n.set(a,Rd(a,void 0,t,e)),n.get(a))})}var Cw=B(ot(),1);var ww=(t,e)=>e.isSVG??Qs(t)?new sc(e):new ec(e,{allowProjection:t!==Cw.Fragment});var Od=class extends ue{constructor(e){super(e),e.animationState||(e.animationState=T0(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();io(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var lz=0,Nd=class extends ue{constructor(){super(...arguments),this.id=lz++}update(){let{presenceContext:e,animationState:n}=this.node;if(!e||!n)return;let{isPresent:i,onExitComplete:o}=e;if(i===!this.exit)return;if(i){if(this.exit===!0){let{initial:a}=this.node.getProps();if(a&&!Array.isArray(a)){let{transition:s,transitionEnd:l,...u}=pn(this.node,a)||{};for(let c in u)this.node.getValue(c)?.jump(u[c])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive("exit",!1);this.exit=void 0;return}let r=this.exit=n.setActive("exit",!0);o&&r.then(()=>{this.exit===r&&(this.exit=!0,o(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}};var Mw={animation:{Feature:Od},exit:{Feature:Nd}};var Vd=class extends ue{constructor(e){super(e),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new ic(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}update(){let{dragControls:e,drag:n}=this.node.getProps(),{dragControls:i,drag:o}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),o&&!n&&this.controls.stop(void 0,void 0,o)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var O0=t=>(e,n)=>{t&&$.update(()=>t(e,n),!1,!0)},zd=class extends ue{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(e){this.session=new ua(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:O0(e),onStart:O0(n),onMove:O0(i),onEnd:(r,a)=>{delete this.session,o&&$.postRender(()=>o(r,a))}}}mount(){this.removePointerDownListener=ro(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}};var Ow=B(yt(),1);var fc=B(ot(),1);var N0=!1,Dw=({layout:t,layoutDependency:e,layoutAnchor:n})=>({layout:t,layoutDependency:e,layoutAnchor:n,animationType:typeof t=="string"?t:"both"}),Rw=(t,e)=>{let{snapshot:n}=t,i=t.getStack();i?.remove(t);let o=i?.lead;if(i?.prevLead===t&&o.resumeFrom===t&&(o.resumeFrom=o.currentAnimation=t.resumingFrom=void 0),t.options.layoutId=e,!e){t.needsShow=!0;return}return t.root.registerSharedNode(e,t),()=>{let{resumeFrom:r}=t;r?.isPresent!==!1&&t.getStack().members.includes(r)&&(r.hide(),t.resumeFrom=void 0,t.snapshot=n)}},V0=class extends fc.Component{componentDidMount(){let{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;r&&(n.group?.add(r),o&&i?.register?.(r),N0&&r.root.didUpdate(),r.options.layoutId!==o&&Rw(r,o)?.(),r.addEventListener("animationComplete",()=>this.safeToRemove()),r.setOptions({...r.options,...Dw(this.props),onExitComplete:()=>this.safeToRemove()})),oa.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:n,layoutId:i,visualElement:o,drag:r,isPresent:a}=this.props,{projection:s}=o;return s&&(s.isPresent=a,this.takeOver=e.layoutId!==i?(s.willUpdate(),Rw(s,i)):void 0,s.setOptions({...s.options,...Dw(this.props)}),N0=!0,r||e.layoutDependency!==n||n===void 0||e.isPresent!==a?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||$.postRender(()=>{s.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),Si.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;N0=!0,o&&(o.scheduleCheckAfterUnmount(),n.group?.remove(o),i?.deregister?.(o))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function Ld(t){let[e,n]=lc(),i=(0,fc.useContext)(vs);return(0,Ow.jsx)(V0,{...t,layoutGroup:i,switchLayoutGroup:(0,fc.useContext)(Md),isPresent:e,safeToRemove:n})}var Nw={pan:{Feature:zd},drag:{Feature:Vd,ProjectionNode:Qu,MeasureLayout:Ld}};function _d(t,e,n,i,o){let{props:r}=t,a="while"+n;!o&&t.animationState&&r[a]&&t.animationState.setActive(a,i==="Start");let s=r["on"+n+i];s&&$.postRender(()=>s(e,Ys(e)))}var Bd=class extends ue{mount(){let{current:e}=this.node;e&&(this.unmount=y0(e,(n,i)=>(_d(this.node,i,"Hover","Start"),o=>_d(this.node,o,"Hover","End"))))}unmount(){}};var Ud=class extends ue{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function z0(t,e,n,i){t.current instanceof HTMLButtonElement&&t.current.disabled||_d(t,e,"Tap",n,i)}var Hd=class extends ue{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=b0(e,(n,i)=>(z0(this.node,i,"Start"),{onComplete:(o,{success:r})=>z0(this.node,o,r?"":"Cancel"),onRepeat:()=>z0(this.node,i,"",!0)}),this.options))}update(){let{options:e,node:n}=this,{globalTapTarget:i,propagate:o,tap:r}=n.props;for(let a in e)delete e[a];Object.assign(e,r,{useGlobalTarget:i,stopPropagation:o?.tap===!1})}unmount(){}};var _0=new WeakMap,L0=new WeakMap,uz=t=>{let e=_0.get(t.target);e&&e(t)},cz=t=>{t.forEach(uz)};function fz({root:t,...e}){let n=t||document;L0.has(n)||L0.set(n,{});let i=L0.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(cz,{root:t,...e})),i[o]}function Vw(t,e,n){let i=fz(e);return _0.set(t,n),i.observe(t),()=>{_0.delete(t),i.unobserve(t)}}var mz={some:0,all:1},Pd=class extends ue{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:r}=e,a={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:mz[o]},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:m}=this.node.getProps(),f=u?c:m;f&&f(l)};this.stopObserver=Vw(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:n}=this.node;["amount","margin","root"].some(dz(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function dz({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}var zw={inView:{Feature:Pd},tap:{Feature:Hd},focus:{Feature:Ud},hover:{Feature:Bd}};var Lw={layout:{ProjectionNode:Qu,MeasureLayout:Ld}};var _w=Object.assign({},Mw,zw,Nw,Lw);var B0=Aw(_w,ww);var Bw=B(ot(),1);function ke(){!sa.current&&Ju();let[t]=(0,Bw.useState)(ir.current);return t}function mc(t){return typeof t=="object"&&!Array.isArray(t)}function Gd(t,e,n,i){return t==null?[]:typeof t=="string"&&mc(e)?$i(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(o=>o!=null):[t]}function Uw(t,e,n){return t*(e+1)+n*e}function U0(t,e){if(e.has(t))return e.get(t);let[,n,i]=t.match(/^(.+?)([+-][\d.]+)$/)||[];return e.has(n)?Math.max(0,e.get(n)+parseFloat(i)):void 0}function Hw(t,e,n,i){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):U0(e,i)??t}function pz(t,e,n){for(let i=0;i<t.length;i++){let o=t[i];o.at>e&&o.at<n&&($e(t,o),i--)}}function Pw(t,e,n,i,o,r){pz(t,o,r);for(let a=0;a<e.length;a++)t.push({value:e[a],at:ut(o,r,i[a]),easing:yu(n,a)})}function Gw(t,e,n=0){let i=e+1+e*n;for(let o=0;o<t.length;o++)t[o]=t[o]/i}function jw(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var hz="easeInOut",gz=20;function kw(t,{defaultTransition:e={},...n}={},i,o,r){let a=e.duration||.3,s=new Map,l=new Map,u={},c=new Map,m=0,f=0,d=0,g=(p,h)=>{let y=h,b=E=>typeof E=="number"?h+E:Hw(f,E,m,c);for(let E=0;E<p.length;E++){let C=p[E];if(typeof C=="string"){c.set(C,f);continue}else if(!Array.isArray(C)){let P=C.at===void 0?f:b(C.at);"sequence"in C?(m=f=P,f=g(C.sequence,P),m=P,y=Math.max(y,f)):c.set(C.name,P);continue}let[T,S,M={}]=C;M.at!==void 0&&(f=b(M.at));let D=0,L=(P,Z,I,J=0,tt=0)=>{let K=yz(P),{delay:X=0,times:_=vi(K),type:A=e.type||"keyframes",repeat:w,repeatType:V,repeatDelay:O=0,...z}=Z,{ease:G=e.ease||"easeOut",duration:U}=Z;I.mixer||(I.mixer=Z.mixer);let it=typeof X=="function"?X(J,tt):X,et=K.length,j=Ir(A)?A:o?.[A||"keyframes"];if(et<=2&&j){let rt=100;if(et===2&&bz(K)){let Y=K[1]-K[0];rt=Math.abs(Y)}let F={...e,...z};U!==void 0&&(F.duration=Bt(U));let Yt=Au(F,rt,j);G=Yt.ease,U=Yt.duration}U??(U=a);let st=f+it;_.length===1&&_[0]===0&&(_[1]=1);let ct=_.length-K.length;if(ct>0&&Cu(_,ct),K.length===1&&K.unshift(null),w&&typeof process<"u",w&&w<gz){let rt=U>0?O/U:0;U=Uw(U,w,O);let F=[...K],Yt=[..._];G=Array.isArray(G)?[...G]:[G];let Y=[...G],Wt=V==="reverse"||V==="mirror",Dt=F,Le=Y;Wt&&(Dt=[...F].reverse(),V==="reverse"&&(Le=[...Y].reverse().map(ve=>typeof ve=="function"?qr(ve):ve)));for(let ve=0;ve<w;ve++){let In=Wt&&ve%2===0,Oi=In?Dt:F,fe=In?Le:Y,xe=(ve+1)*(1+rt);rt>0&&(K.push(K[K.length-1]),_.push(xe),G.push("linear")),K.push(...Oi);for(let ll=0;ll<Oi.length;ll++)_.push(Yt[ll]+xe),G.push(ll===0?"linear":yu(fe,ll-1))}Gw(_,w,rt)}let Q=st+U;Pw(I,K,G,_,st,Q),D=Math.max(it+U,D),d=Math.max(Q,d)};if(vt(T)){let P=Yw(T,l);L(S,M,qw("default",P))}else{let P=Gd(T,S,i,u),Z=P.length;for(let I=0;I<Z;I++){S=S,M=M;let J=P[I],tt=Yw(J,l);for(let K in S)L(S[K],vz(M,K),qw(K,tt),I,Z)}}m=f,f+=D,y=Math.max(y,f)}return y};g(t,0),r&&(r.duration=d,r.labels=c);let{type:v,...x}=e;return l.forEach((p,h)=>{for(let y in p){let b=p[y];b.sort(jw);let E=[],C=[],T=[];for(let M=0;M<b.length;M++){let{at:D,value:L,easing:P}=b[M];E.push(L),C.push(Ge(0,d,D)),T.push(P||"easeOut")}C[0]!==0&&(C.unshift(0),E.unshift(E[0]),T.unshift(hz)),C[C.length-1]!==1&&(C.push(1),E.push(null)),s.has(h)||s.set(h,{keyframes:{},transition:{}});let S=s.get(h);S.keyframes[y]=E,S.transition[y]={...x,duration:d,ease:T,times:C,mixer:b.mixer||e.mixer,...n}}}),s}function Yw(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function qw(t,e){return e[t]||(e[t]=[]),e[t]}function yz(t){return Array.isArray(t)?t:[t]}function vz(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var xz=t=>typeof t=="number",bz=t=>t.every(xz);function Sz(t,e){return vt(t)||typeof t=="number"||typeof t=="string"&&!mc(e)}function jd(t,e,n,i){let o=[];if(Sz(t,e))o.push(ta(t,mc(e)&&e.default||e,n&&(n.default||n)));else{if(t==null)return o;let r=Gd(t,e,i),a=r.length;for(let s=0;s<a;s++){let l=r[s],u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(s,a)),l instanceof Element?o.push(...n0(l,e,u,Fu.get(l))):o.push(...Pu(Xy(l)??i0,l,e,u))}}return o}function Xw(t,e,n,i){let o=[],r=t.map(l=>{if(Array.isArray(l)&&typeof l[0]=="function"){let u=l[0],c=ge(0);return c.on("change",u),l.length===1?[c,[0,1]]:l.length===2?[c,[0,1],l[1]]:[c,l[1],l[2]]}return l}),a=kw(r,e,n,{spring:Kr},i),s=e?.reduceMotion??e?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:l,transition:u},c)=>{o.push(...jd(c,l,{...u,reduceMotion:s}))}),o}var Kw=0;function Js({repeat:t=0,repeatDelay:e=0,repeatType:n="loop",delay:i=0},o,r,a){let s=o+e,l=a===void 0;if(l){let u=Math.max(0,r-i);a=s&&u>0?Math.min(t,Math.ceil(u/s-1e-9)-1):0,r=Math.min(u-a*s,o)}return n!=="loop"&&a%2&&(r=o-r),[a,l?r:i+a*s+r]}function Tz(t,e){let n=[...t],i=typeof n[0]=="function"?Math.max(1,n.length-1):2;return n[i]={...n[i],at:e},n}var Zw=(t,e)=>e===void 0?t:{name:t,at:e};function Qw(t){t.pause(),t.time=0,t.stop()}var dc=class t{constructor(e=[],n={},i){this.options=n,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=qe.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=n.autoplay===!1,this.newFinished(),e.forEach(o=>this.add(o)),i?(this.isDirty=!1,this.isWrapped=!0,this.group=new _s(i),this.watch()):(this.invalidate(),this.flush())}add(e,n){return e instanceof t&&e.adopt(this),this.push({item:e,at:n})}call(e,n){return this.push({item:e,at:n,marker:{name:"_m"+Kw++,time:0,callback:e}})}addPause(e,n){return this.push({item:n||{},at:e,marker:{name:"_m"+Kw++,time:0,callback:n,pause:!0}})}move(e,n){return this.entries.forEach(i=>{i.item===e&&(i.at=n)}),this.invalidate()}remove(e){return e instanceof t&&(e.parent=void 0),this.entries=this.entries.filter(n=>n.item!==e),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let n=this.resolve(e),i=this.iterationDuration,o=this.time,[r]=Js(this.options,i,o),a=Js(this.options,i,n,r)[1],s=Math.abs(this.speed);return this.speed=a<o?-s:s,this.stopAt=n,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??"idle"}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,n){return this.finished.then(e,n)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&(Qw(this.group),this.group=void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let n=this.group,i=0;n&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),n.cancel()):(i=n.animations.length?n.time:0,Qw(n)),this.isRebuilding=!1);let{defaultTransition:o,onComplete:r,onUpdate:a,onRepeat:s,onReverseComplete:l,autoplay:u,scope:c,...m}=this.options,f={};c?.reduceMotion!==void 0&&(f.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(f.skipAnimations=c.skipAnimations),Object.assign(f,m);let d=new Map,g={},v=qe.current;qe.current=this.motionScope;let x;try{x=Xw(this.toSequence(d),{defaultTransition:o,...f},c,g)}finally{qe.current=v}let p=g.labels,h=f.duration??g.duration,y=g.duration?h/g.duration:1;if(p.forEach((D,L)=>p.set(L,D*y)),this.markers=[],d.forEach((D,L)=>{D.time=p.get(L),p.delete(L),h=Math.max(h,D.time),this.markers.push(D)}),this.markers.sort((D,L)=>D.time-L.time),this.labels=p,this.totalDuration=h,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||s){let D=this.clock=ge(0);D.on("change",L=>D===this.clock&&this.onClock(L)),x.unshift(this.clockAnimation=ta(D,[0,h],{...f,duration:h,ease:"linear"}))}let b=this.group=new _s(x),{delay:E=0,repeat:C=0,repeatDelay:T=0}=this.options,[S,M]=Js(this.options,e,i);i>E&&(i=Js(this.options,h,Math.min(M,h),S)[1]),this.isDone&&i<E+(C+1)*(h+T)-T&&this.newFinished(),this.scrollTimeline?this.detachScroll=b.attachTimeline(this.scrollTimeline):(b.speed=this.playbackSpeed,this.isPaused&&b.pause(),i&&(b.time=i)),this.repeatIndex=this.currentRepeat(),this.prevTime=i||-1,this.watch()}toSequence(e){return this.entries.map(({item:n,at:i,marker:o})=>o?(e.set(o.name,o),Zw(o.name,i)):n instanceof t?{sequence:n.toSequence(e),at:i}:typeof n=="string"?Zw(n,i):i===void 0?n:Array.isArray(n)?Tz(n,i):{...n,at:i})}resolve(e){return this.flush(),typeof e=="number"?e:U0(e,this.labels)??this.time}currentRepeat(){return Js(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let n=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:i,onRepeat:o,repeatType:r="loop"}=this.options;i?.(e);let a=this.currentRepeat(),s=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let l=this.speed>0==(r==="loop"||!(this.repeatIndex%2)),u=l?this.totalDuration:0;if(this.cross(n,u))return;this.repeatIndex+=s,o?.(),n=r==="loop"?l?-1:1/0:u}this.cross(n,e)}cross(e,n){if(e===n)return;let i=n>e,o=a=>i?a>e&&a<=n:a<e&&a>=n,r=i?this.markers:[...this.markers].reverse();for(let a of r)if(o(a.time)&&(a.callback?.(i?1:-1),a.pause))return this.pauseAt(a.time);if(this.stopAt!==void 0&&o(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=Js(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:n,onReverseComplete:i}=this.options,o=this.speed<0&&i||n,r=this.resolveFinished;o?.(),r()})}newFinished(){this.isDone=!1,this.finished=new Promise(i=>{this.resolveFinished=i});let{scope:e}=this.options,n=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{n?.(),e&&$e(e.animations,this)})}};function Ez(t){return Array.isArray(t)&&t.some(e=>Array.isArray(e)||e?.sequence)}function Fw(t={}){let{scope:e,reduceMotion:n,skipAnimations:i}=t;function o(r,a,s){let l=qe.current?.transition,u={};n!==void 0&&(u.reduceMotion=n),i!==void 0&&(u.skipAnimations=i);let c;if(Ez(r)){let m={...u,...a,scope:e};l&&(m.defaultTransition={...l,...m.defaultTransition}),m.reduceMotion=a?.reduceMotion??m.defaultTransition?.reduceMotion??n,c=new dc(r,m)}else{let{onComplete:m,...f}=s||{},d={...u,...l,...f},{onUpdate:g}=f,v=typeof r=="number"||typeof r=="string"&&(typeof a=="string"||Array.isArray(a))?[g||(()=>{}),Array.isArray(a)?a:[r,a],{...d,onUpdate:void 0}]:[r,a,d];c=new dc([v],{...u,onComplete:m,scope:e},jd(r,a,d,e))}return c}return o}var H0=Object.assign(Fw(),{addEffect:ky,removeEffect:$m});var Ws=B(ot(),1);var Az={some:0,all:1};function Iw(t,e,{root:n,margin:i,amount:o="some"}={}){let r=$i(t);e=Wi(e);let a=new WeakMap,s=u=>{u.forEach(c=>{let m=a.get(c.target);if(c.isIntersecting!==!!m)if(c.isIntersecting){let f=e(c.target,c);typeof f=="function"?a.set(c.target,f):l.unobserve(c.target)}else typeof m=="function"&&(m(c),a.delete(c.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:i,threshold:typeof o=="number"?o:Az[o]});return r.forEach(u=>l.observe(u)),Ji(()=>l.disconnect())}function pc(t,{root:e,margin:n,amount:i,once:o=!1,initial:r=!1}={}){let[a,s]=(0,Ws.useState)(r),[l,u]=(0,Ws.useState)({});return(0,Ws.useEffect)(()=>{let c=l.current=t.current;if(!c||o&&a)return;let m=()=>(s(!0),o?void 0:()=>s(!1)),f={root:e&&e.current||void 0,margin:n,amount:i};return Iw(c,m,f)},[e,t,n,o,i,l]),(0,Ws.useEffect)(()=>{t.current!==l.current&&(o||s(!1),u({}))}),a}var Ut=B0;function Jw(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Jw(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Ww(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Jw(t))&&(i&&(i+=" "),i+=e);return i}var wz=(t,e)=>{let n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},Mz=(t,e)=>({classGroupId:t,validator:e}),oM=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n});var $w=[],Dz="arbitrary..",Rz=t=>{let e=Nz(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Oz(a);let s=a.split("-"),l=s[0]===""&&s.length>1?1:0;return rM(s,l,e)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=i[a],u=n[a];return l?u?wz(u,l):l:u||$w}return n[a]||$w}}},rM=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;let o=t[e],r=n.nextPart.get(o);if(r){let u=rM(t,e+1,r);if(u)return u}let a=n.validators;if(a===null)return;let s=e===0?t.join("-"):t.slice(e).join("-"),l=a.length;for(let u=0;u<l;u++){let c=a[u];if(c.validator(s))return c.classGroupId}},Oz=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?Dz+i:void 0})(),Nz=t=>{let{theme:e,classGroups:n}=t;return Vz(n,e)},Vz=(t,e)=>{let n=oM();for(let i in t){let o=t[i];G0(o,n,i,e)}return n},G0=(t,e,n,i)=>{let o=t.length;for(let r=0;r<o;r++){let a=t[r];zz(a,e,n,i)}},zz=(t,e,n,i)=>{if(typeof t=="string"){Lz(t,e,n);return}if(typeof t=="function"){_z(t,e,n,i);return}Bz(t,e,n,i)},Lz=(t,e,n)=>{let i=t===""?e:aM(e,t);i.classGroupId=n},_z=(t,e,n,i)=>{if(Uz(t)){G0(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Mz(n,t))},Bz=(t,e,n,i)=>{let o=Object.entries(t),r=o.length;for(let a=0;a<r;a++){let[s,l]=o[a];G0(l,aM(e,s),n,i)}},aM=(t,e)=>{let n=t,i=e.split("-"),o=i.length;for(let r=0;r<o;r++){let a=i[r],s=n.nextPart.get(a);s||(s=oM(),n.nextPart.set(a,s)),n=s}return n},Uz=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Hz=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null),o=(r,a)=>{n[r]=a,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(r){let a=n[r];if(a!==void 0)return a;if((a=i[r])!==void 0)return o(r,a),a},set(r,a){r in n?n[r]=a:o(r,a)}}};var Pz=[],tM=(t,e,n,i,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:o}),Gz=t=>{let{prefix:e,experimentalParseClassName:n}=t,i=o=>{let r=[],a=0,s=0,l=0,u,c=o.length;for(let v=0;v<c;v++){let x=o[v];if(a===0&&s===0){if(x===":"){r.push(o.slice(l,v)),l=v+1;continue}if(x==="/"){u=v;continue}}x==="["?a++:x==="]"?a--:x==="("?s++:x===")"&&s--}let m=r.length===0?o:o.slice(l),f=m,d=!1;m.endsWith("!")?(f=m.slice(0,-1),d=!0):m.startsWith("!")&&(f=m.slice(1),d=!0);let g=u&&u>l?u-l:void 0;return tM(r,d,f,g)};if(e){let o=e+":",r=i;i=a=>a.startsWith(o)?r(a.slice(o.length)):tM(Pz,!1,a,void 0,!0)}if(n){let o=i;i=r=>n({className:r,parseClassName:o})}return i},jz=t=>{let e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{let i=[],o=[];for(let r=0;r<n.length;r++){let a=n[r],s=a[0]==="[",l=e.has(a);s||l?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(a)):o.push(a)}return o.length>0&&(o.sort(),i.push(...o)),i}},Yz=t=>({cache:Hz(t.cacheSize),parseClassName:Gz(t),sortModifiers:jz(t),postfixLookupClassGroupIds:qz(t),...Rz(t)}),qz=t=>{let e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)e[n[i]]=!0;return e},kz=/\s+/,Xz=(t,e)=>{let{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:a}=e,s=[],l=t.trim().split(kz),u="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{isExternal:f,modifiers:d,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:x}=n(m);if(f){u=m+(u.length>0?" "+u:u);continue}let p=!!x,h;if(p){let T=v.substring(0,x);h=i(T);let S=h&&a[h]?i(v):void 0;S&&S!==h&&(h=S,p=!1)}else h=i(v);if(!h){if(!p){u=m+(u.length>0?" "+u:u);continue}if(h=i(v),!h){u=m+(u.length>0?" "+u:u);continue}p=!1}let y=d.length===0?"":d.length===1?d[0]:r(d).join(":"),b=g?y+"!":y,E=b+h;if(s.indexOf(E)>-1)continue;s.push(E);let C=o(h,p);for(let T=0;T<C.length;++T){let S=C[T];s.push(b+S)}u=m+(u.length>0?" "+u:u)}return u},Kz=(...t)=>{let e=0,n,i,o="";for(;e<t.length;)(n=t[e++])&&(i=sM(n))&&(o&&(o+=" "),o+=i);return o},sM=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=sM(t[i]))&&(n&&(n+=" "),n+=e);return n},Zz=(t,...e)=>{let n,i,o,r,a=l=>{let u=e.reduce((c,m)=>m(c),t());return n=Yz(u),i=n.cache.get,o=n.cache.set,r=s,s(l)},s=l=>{let u=i(l);if(u)return u;let c=Xz(l,n);return o(l,c),c};return r=a,(...l)=>r(Kz(...l))},Qz=[],ce=t=>{let e=n=>n[t]||Qz;return e.isThemeGetter=!0,e.themeKey=t,e},lM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fz=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Iz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jz=/\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$/,Wz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,$z=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=t=>Fz.test(t),dt=t=>!!t&&!Number.isNaN(Number(t)),Ti=t=>!!t&&Number.isInteger(Number(t)),P0=t=>t.endsWith("%")&&dt(t.slice(0,-1)),co=t=>Iz.test(t),cM=()=>!0,eL=t=>Jz.test(t)&&!Wz.test(t),j0=()=>!1,nL=t=>$z.test(t),iL=t=>tL.test(t),oL=t=>!q(t)&&!k(t),rL=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),aL=t=>sr(t,dM,j0),q=t=>lM.test(t),fa=t=>sr(t,pM,eL),eM=t=>sr(t,pL,dt),sL=t=>sr(t,gM,cM),lL=t=>sr(t,hM,j0),nM=t=>sr(t,fM,j0),uL=t=>sr(t,mM,iL),Yd=t=>sr(t,yM,nL),k=t=>uM.test(t),hc=t=>ma(t,pM),cL=t=>ma(t,hM),iM=t=>ma(t,fM),fL=t=>ma(t,dM),mL=t=>ma(t,mM),qd=t=>ma(t,yM,!0),dL=t=>ma(t,gM,!0),sr=(t,e,n)=>{let i=lM.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},ma=(t,e,n=!1)=>{let i=uM.exec(t);return i?i[1]?e(i[1]):n:!1},fM=t=>t==="position"||t==="percentage",mM=t=>t==="image"||t==="url",dM=t=>t==="length"||t==="size"||t==="bg-size",pM=t=>t==="length",pL=t=>t==="number",hM=t=>t==="family-name",gM=t=>t==="number"||t==="weight",yM=t=>t==="shadow";var hL=()=>{let t=ce("color"),e=ce("font"),n=ce("text"),i=ce("font-weight"),o=ce("tracking"),r=ce("leading"),a=ce("breakpoint"),s=ce("container"),l=ce("spacing"),u=ce("radius"),c=ce("shadow"),m=ce("inset-shadow"),f=ce("text-shadow"),d=ce("drop-shadow"),g=ce("blur"),v=ce("perspective"),x=ce("aspect"),p=ce("ease"),h=ce("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...b(),k,q],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[k,q,l],M=()=>[ar,"full","auto",...S()],D=()=>[Ti,"none","subgrid",k,q],L=()=>["auto",{span:["full",Ti,k,q]},Ti,k,q],P=()=>[Ti,"auto",k,q],Z=()=>["auto","min","max","fr",k,q],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...S()],K=()=>[ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],X=()=>[s,ar,"screen","full","dvw","lvw","svw","min","max","fit",...S()],_=()=>[ar,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],A=()=>[t,k,q],w=()=>[...b(),iM,nM,{position:[k,q]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",fL,aL,{size:[k,q]}],z=()=>[P0,hc,fa],G=()=>["","none","full",u,k,q],U=()=>["",dt,hc,fa],it=()=>["solid","dashed","dotted","double"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[dt,P0,iM,nM],st=()=>["","none",g,k,q],ct=()=>["none",dt,k,q],Q=()=>["none",dt,k,q],rt=()=>[dt,k,q],F=()=>[ar,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[co],breakpoint:[co],color:[cM],container:[co],"drop-shadow":[co],ease:["in","out","in-out"],font:[oL],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[co],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[co],shadow:[co],spacing:["px",dt],text:[co],"text-shadow":[co],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ar,q,k,x]}],container:["container"],"container-type":[{"@container":["","normal","size",k,q]}],"container-named":[rL],columns:[{columns:[dt,"auto",q,k,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:E()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Ti,"auto",k,q]}],basis:[{basis:[ar,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[dt,ar,"auto","initial","none",q]}],grow:[{grow:["",dt,k,q]}],shrink:[{shrink:["",dt,k,q]}],order:[{order:[Ti,"first","last","none",k,q]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mbs:[{mbs:tt()}],mbe:[{mbe:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh","none",...K()]}],"font-size":[{text:["base",n,hc,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,dL,sL]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P0,q]}],"font-family":[{font:[cL,lL,e]}],"font-features":[{"font-features":[q]}],"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:[o,k,q]}],"line-clamp":[{"line-clamp":[dt,"none",k,eM]}],leading:[{leading:["none",r,...S()]}],"list-image":[{"list-image":["none",k,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[dt,"from-font","auto",k,fa]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[dt,"auto",k,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[Ti,k,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,q]}],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",k,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ti,k,q],radial:["",k,q],conic:["",Ti,k,q]},mL,uL]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[dt,k,q]}],"outline-w":[{outline:["",dt,hc,fa]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","inner","none",c,qd,Yd]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,qd,Yd]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[dt,fa]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,qd,Yd]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[dt,k,q]}],"mix-blend":[{"mix-blend":[...et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":et()}],"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":[dt]}],"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":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"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":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"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":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"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":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"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":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"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":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"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":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[k,q]}],"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":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[dt]}],"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":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,q]}],filter:[{filter:["","none",k,q]}],blur:[{blur:st()}],brightness:[{brightness:[dt,k,q]}],contrast:[{contrast:[dt,k,q]}],"drop-shadow":[{"drop-shadow":["","none",d,qd,Yd]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",dt,k,q]}],"hue-rotate":[{"hue-rotate":[dt,k,q]}],invert:[{invert:["",dt,k,q]}],saturate:[{saturate:[dt,k,q]}],sepia:[{sepia:["",dt,k,q]}],"backdrop-filter":[{"backdrop-filter":["","none",k,q]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[dt,k,q]}],"backdrop-contrast":[{"backdrop-contrast":[dt,k,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",dt,k,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[dt,k,q]}],"backdrop-invert":[{"backdrop-invert":["",dt,k,q]}],"backdrop-opacity":[{"backdrop-opacity":[dt,k,q]}],"backdrop-saturate":[{"backdrop-saturate":[dt,k,q]}],"backdrop-sepia":[{"backdrop-sepia":["",dt,k,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[dt,"initial",k,q]}],ease:[{ease:["linear","initial",p,k,q]}],delay:[{delay:[dt,k,q]}],animate:[{animate:["none",h,k,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,k,q]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ct()}],"rotate-x":[{"rotate-x":ct()}],"rotate-y":[{"rotate-y":ct()}],"rotate-z":[{"rotate-z":ct()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:rt()}],"skew-x":[{"skew-x":rt()}],"skew-y":[{"skew-y":rt()}],transform:[{transform:[k,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],zoom:[{zoom:[Ti,k,q]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",k,q]}],"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":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",k,q]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[dt,hc,fa,eM]}],stroke:[{stroke:["none",...A()]}],"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 vM=Zz(hL);function Et(...t){return vM(Ww(t))}var q0=B(ot(),1);var It=[.16,1,.3,1];var da={type:"spring",stiffness:500,damping:30,mass:.6};var kd={type:"spring",stiffness:360,damping:32,mass:.6};var Ei=B(yt(),1),gL={enter:({direction:t,reduceMotion:e})=>({opacity:0,transform:e?"none":`translateY(${t==="up"?"45%":"-45%"})`}),visible:{opacity:1,transform:"translateY(0%)"},exit:({direction:t,reduceMotion:e})=>({opacity:0,transform:e?"none":`translateY(${t==="up"?"-45%":"45%"})`})};function xM({value:t,animationKey:e,direction:n="up",duration:i=.18,stagger:o=.006,suffixLength:r=0,className:a,glyphClassName:s,suffixClassName:l}){let u=ke()??!1,c=String(t),m=Math.max(0,c.length-Math.max(0,r)),f={direction:n,reduceMotion:u},d=Array.from(c,(g,v)=>({character:g,id:`glyph-${v}`,position:v}));return(0,Ei.jsxs)("span",{"data-slot":"digit-swap","data-direction":n,className:Et("inline-flex items-baseline whitespace-nowrap",a),children:[(0,Ei.jsx)("span",{className:"sr-only",children:c}),(0,Ei.jsx)("span",{"aria-hidden":"true",className:"inline-flex items-baseline",children:d.map(({character:g,id:v,position:x})=>{if(g===" ")return(0,Ei.jsx)("span",{className:"inline-block w-[0.7ch]"},v);let p=e===void 0?`${v}-${g}`:`${v}-${g}-${e}`;return(0,Ei.jsxs)("span",{"data-slot":"digit-swap-glyph",className:Et("relative inline-block h-[1.1em] shrink-0 leading-[1.1em] [clip-path:inset(0)]",/\d/.test(g)&&"w-[1ch] text-center"),children:[(0,Ei.jsx)("span",{className:"invisible",children:g}),(0,Ei.jsx)(Bn,{initial:!1,custom:f,children:(0,Ei.jsx)(Ut.span,{custom:f,variants:gL,initial:"enter",animate:"visible",exit:"exit",transition:{duration:u?Math.min(i,.12):i,delay:u?0:x*o,ease:It},className:Et("absolute inset-0 flex items-center justify-center leading-none",s,x>=m?l:void 0),children:g},p)})]},v)})})]})}var Un=B(ot(),1);var Xd=B(ot(),1);function Kd(){let[t,e]=(0,Xd.useState)(!1);return(0,Xd.useEffect)(()=>{if(typeof window>"u"||!window.matchMedia)return;let n=window.matchMedia("(hover: hover) and (pointer: fine)"),i=()=>e(n.matches);return i(),n.addEventListener?.("change",i),()=>n.removeEventListener?.("change",i)},[]),t}var Zd=(t,e)=>{let n=e*Math.PI/180;return[100+t*Math.sin(n),100-t*Math.cos(n)]};function bM(t,{radius:e,thickness:n,gap:i}){let o=t.filter(c=>Number.isFinite(c.value)&&c.value>0),r=o.reduce((c,m)=>c+m.value,0),a=n/2/e*(180/Math.PI),s=o.length===1,l=0;return{placed:o.map(c=>{let m=r?c.value/r:0,f=m*360,d=s?0:i/2+a,g=l+d,v=Math.max(g+.01,l+f-d);l+=f;let x;if(s){let[p,h]=Zd(e,0),[y,b]=Zd(e,180);x=`M ${p} ${h} A ${e} ${e} 0 1 1 ${y} ${b} A ${e} ${e} 0 1 1 ${p} ${h}`}else{let[p,h]=Zd(e,g),[y,b]=Zd(e,v);x=`M ${p} ${h} A ${e} ${e} 0 ${v-g>180?1:0} 1 ${y} ${b}`}return{...c,share:m,path:x}}),total:r}}var yL=t=>t.toLocaleString("en-US");function SM({segments:t,thickness:e=22,gap:n=3,activeId:i,defaultActiveId:o=null,onActiveChange:r,onSelect:a,selectedId:s=null,formatValue:l=yL,label:u="Donut chart"}){let c=ke()??!1,m=Kd(),f=100-e/2-8,{placed:d,total:g}=bM(t,{radius:f,thickness:e,gap:n}),[v,x]=(0,Un.useState)(o),p=i===void 0?v:i,h=p!==null&&d.some(E=>E.id===p)?p:null,y=(0,Un.useRef)({controlled:i!==void 0,onActiveChange:r});(0,Un.useLayoutEffect)(()=>{y.current={controlled:i!==void 0,onActiveChange:r}});let b=(0,Un.useCallback)(E=>{y.current.controlled||x(E),y.current.onActiveChange?.(E)},[]);return{placed:d,total:g,radius:f,thickness:e,active:h,setActive:b,onSelect:a,selectedId:s,formatValue:l,label:u,reduce:c,canHover:m}}var Y0=(0,Un.createContext)(null);function Ai(){let t=(0,Un.useContext)(Y0);if(!t)throw new Error("Donut chart parts must be rendered inside DonutChart.");return t}var en=B(yt(),1);function gc({children:t,totalLabel:e="Total",className:n}){let{placed:i,active:o,total:r,formatValue:a,reduce:s}=Ai(),l=i.find(g=>g.id===o)??null,u=l?.value??r,[c,m]=(0,q0.useState)(u),[f,d]=(0,q0.useState)("up");return u!==c&&(m(u),d(u>c?"up":"down")),t?(0,en.jsx)("div",{"aria-live":"polite",className:Et("relative max-w-[56%]",n),children:t(l,r)}):(0,en.jsxs)("div",{"aria-live":"polite",className:Et("relative max-w-[56%]",n),children:[(0,en.jsx)("p",{className:"text-2xl font-medium tracking-tight tabular-nums",children:(0,en.jsx)(xM,{value:a(u),direction:f})}),(0,en.jsx)("div",{className:"relative mt-1 h-4 overflow-hidden",children:(0,en.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,en.jsx)(Ut.p,{initial:s?{opacity:0}:{opacity:0,y:"100%"},animate:{opacity:1,y:"0%"},exit:s?{opacity:0}:{opacity:0,y:"-100%"},transition:{duration:s?.12:.22,ease:It},className:"flex items-center justify-center gap-1.5 whitespace-nowrap text-xs leading-4 text-muted-foreground",children:l?(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("span",{"aria-hidden":"true",className:"size-2 shrink-0 rounded-full",style:{backgroundColor:l.color}}),(0,en.jsxs)("span",{className:"truncate",children:[l.name," \xB7 ",(l.share*100).toFixed(1),"%"]})]}):e},l?.id??"total")})})]})}var De=B(yt(),1);function k0({renderDetail:t,renderValue:e,className:n}){let{placed:i,active:o,setActive:r,onSelect:a,selectedId:s,formatValue:l,reduce:u,canHover:c}=Ai();return(0,De.jsx)("ul",{className:Et("space-y-1",n),children:i.map((m,f)=>{let d=o===m.id;return(0,De.jsx)("li",{children:(0,De.jsxs)("button",{type:"button","data-donut-legend":!0,"aria-pressed":a?s===m.id:void 0,onClick:()=>a?.(m.id),onPointerEnter:c?()=>r(m.id):void 0,onPointerLeave:c?()=>r(null):void 0,onFocus:()=>r(m.id),onBlur:()=>r(null),onKeyDown:g=>{let v=g.key==="ArrowDown"?1:g.key==="ArrowUp"?-1:0;if(!v)return;g.preventDefault(),g.currentTarget.closest("ul")?.querySelectorAll("[data-donut-legend]")?.[(f+v+i.length)%i.length]?.focus()},className:Et("w-full rounded-xl px-3 py-2 text-left outline-none transition-colors duration-150","focus-visible:ring-2 focus-visible:ring-ring",d?"bg-muted":"hover:bg-muted/60",s===m.id&&"ring-1 ring-border"),children:[(0,De.jsxs)("span",{className:"flex items-center gap-3",children:[(0,De.jsx)("span",{"aria-hidden":"true",className:"size-2.5 shrink-0 rounded-full",style:{backgroundColor:m.color}}),(0,De.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:m.name}),(0,De.jsx)("span",{className:"shrink-0 text-right text-sm tabular-nums",children:e?e(m):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)("span",{className:"font-medium",children:[(m.share*100).toFixed(1),"%"]}),(0,De.jsx)("span",{className:"ml-2 text-muted-foreground",children:l(m.value)})]})})]}),t?(0,De.jsx)("span",{className:"mt-0.5 block pl-5.5 text-xs text-muted-foreground",children:t(m)}):null,(0,De.jsx)("span",{"aria-hidden":"true",className:"mt-2 ml-5.5 block h-1 overflow-hidden rounded-full bg-muted",children:(0,De.jsx)(Ut.span,{className:"block h-full origin-left rounded-full",style:{backgroundColor:m.color},initial:u?!1:{scaleX:0},animate:{scaleX:m.share},transition:u?{duration:0}:{...kd,delay:.2+f*.06}})})]})},m.id)})})}var Fd=B(ot(),1);var Ci=B(yt(),1),Qd=200/2,TM={transformBox:"view-box",transformOrigin:`${Qd}px ${Qd}px`};function yc({children:t,className:e}){let{placed:n,radius:i,thickness:o,active:r,setActive:a,label:s,reduce:l,canHover:u}=Ai(),c=(0,Fd.useRef)(null),m=pc(c,{once:!0,amount:.4}),f=l||m,[d,g]=(0,Fd.useState)(!1);return(0,Ci.jsxs)("div",{ref:c,className:Et("relative mx-auto aspect-square w-full max-w-64",e),children:[(0,Ci.jsxs)("svg",{viewBox:`0 0 ${200} ${200}`,role:"img","aria-label":s,className:"size-full overflow-visible",children:[(0,Ci.jsx)("circle",{cx:Qd,cy:Qd,r:i,fill:"none",strokeWidth:o,className:"stroke-muted",opacity:.6}),(0,Ci.jsx)(Ut.g,{style:TM,initial:l?!1:{rotate:-90,scale:.88,opacity:0},animate:f?{rotate:0,scale:1,opacity:1}:void 0,transition:{duration:.9,ease:It},onAnimationComplete:()=>g(!0),children:n.map((v,x)=>{let p=r===v.id,h=r!==null&&!p;return(0,Ci.jsx)(Ut.path,{d:v.path,fill:"none",stroke:v.color,strokeWidth:o,strokeLinecap:"round",style:TM,initial:l?!1:{opacity:0},animate:f?{opacity:h?.3:1,scale:p?1.05:1}:void 0,transition:l?{duration:0}:{opacity:{duration:.4,ease:It,delay:d?0:.15+x*.06},scale:kd},pointerEvents:"none","aria-hidden":"true"},v.id)})}),(0,Ci.jsx)("g",{children:n.map(v=>(0,Ci.jsx)("path",{d:v.path,fill:"none",stroke:"transparent",strokeWidth:o+8,strokeLinecap:"round",pointerEvents:f?"stroke":"none",className:"cursor-pointer",onPointerEnter:u?()=>a(v.id):void 0,onPointerLeave:u?()=>a(null):void 0},v.id))})]}),t?(0,Ci.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center text-center",children:t}):null]})}var lr=B(yt(),1);function EM({className:t,children:e,...n}){let i=SM(n);return(0,lr.jsx)(Y0.Provider,{value:i,children:(0,lr.jsx)("div",{className:Et("w-full",t),children:e??(0,lr.jsxs)("div",{className:"grid items-center gap-6 sm:grid-cols-[minmax(0,16rem)_1fr]",children:[(0,lr.jsx)(yc,{children:(0,lr.jsx)(gc,{})}),(0,lr.jsx)(k0,{})]})})})}var Jt=B(ot(),1);var Id=[0,24,46,70,94],AM="color-mix(in srgb, var(--foreground) 6%, transparent)",K0=16,$s=4,vc=K0+$s,Jd=12,CM=Array.from({length:7},(t,e)=>({id:`d${e}`,d:e})),xc=[1.3,1.08,1.03],Wd=t=>{let e=new Date(t);return e.setUTCHours(0,0,0,0),e},ur=(t,e)=>{let n=new Date(t);return n.setUTCDate(n.getUTCDate()+e),n},wM=t=>ur(Wd(t),-((t.getUTCDay()+6)%7)),$d=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",weekday:"short",month:"short",day:"numeric"}),MM=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short"}),tl=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric"});function DM({unit:t="commits",weeks:e=16,maxCount:n=14,values:i,endDate:o,color:r="var(--accent)",selection:a,defaultSelection:s=null,onSelectionChange:l}){let u=ke(),c=Kd(),[m,f]=(0,Jt.useState)(null),[d,g]=(0,Jt.useState)(s),v=a===void 0?d:a,x=Y=>{a===void 0&&g(Y),l?.(Y)},p=(0,Jt.useRef)(null),h=(0,Jt.useId)(),[y,b]=(0,Jt.useState)(null),[E,C]=(0,Jt.useState)(!1);(0,Jt.useEffect)(()=>{let Y=setTimeout(()=>C(!0),u?0:(e+7)*18+500);return()=>clearTimeout(Y)},[e,u]);let[T,S]=(0,Jt.useState)(null);(0,Jt.useEffect)(()=>S(Wd(new Date)),[]);let M=(0,Jt.useMemo)(()=>o?Wd(o):T,[o,T]),D=(0,Jt.useMemo)(()=>M?ur(wM(M),-(e-1)*7):null,[M,e]),L=(Y,Wt)=>Math.max(0,Math.min(1,i?.[Y]?.[Wt]??0)),P=Y=>Math.min(4,Math.floor(Y*5)),Z=Y=>Y===0?AM:`color-mix(in srgb, ${r} ${Id[Y]}%, transparent)`,I=Y=>Math.round(Y*n),J=(Y,Wt)=>D?ur(D,Y*7+Wt):null,tt=(Y,Wt)=>{let Dt=J(Y,Wt);return M!==null&&Dt!==null&&Dt>M},K=Y=>Number.isInteger(Y.w)&&Number.isInteger(Y.d)&&Y.w>=0&&Y.w<e&&Y.d>=0&&Y.d<7&&!tt(Y.w,Y.d),X=v&&K(v.start)&&(!v.end||K(v.end))?v:null;v&&!X&&a===void 0&&g(null);let _=X?.start??null,A=X?.end??null,w=m&&K(m)?m:null;m&&!w&&f(null);let V=(0,Jt.useMemo)(()=>{let Y=Array.from({length:e},(Wt,Dt)=>{let Le=D?ur(D,Dt*7):null,ve=Le?Le.getUTCMonth():-1,In=D!==null&&Le!==null&&(Dt===0||ur(D,(Dt-1)*7).getUTCMonth()!==ve);return{id:`w${Dt}`,w:Dt,m:ve,label:In&&Le?MM.format(Le):null}});return(Y[1]?.label||Y[2]?.label)&&(Y[0].label=null),Y},[D,e]),O=Y=>Y.w*7+Y.d,z=()=>{x(null)},G=A??(_?w??_:null),U=_&&G?{lo:Math.min(O(_),O(G)),hi:Math.max(O(_),O(G))}:null,it=0;if(U)for(let Y=U.lo;Y<=U.hi&&!tt(Math.floor(Y/7),Y%7);Y++)it+=I(L(Math.floor(Y/7),Y%7));let et=Y=>{A?z():_&&O(_)===O(Y)?x(null):x(_?{start:_,end:Y}:{start:Y})},j=w??A??_,st=A??w??_,ct=st?J(st.w,st.d):null,Q=j?J(j.w,j.d)?.getUTCMonth()??null:null,rt=st?st.w*vc+K0/2:0,F=st?Jd+$s+st.d*vc:0,Yt=st&&ct?{date:ct,count:I(L(st.w,st.d)),total:it,startDate:D&&U?ur(D,U.lo):ct,endDate:D&&U?ur(D,U.hi):ct,days:U?U.hi-U.lo+1:1}:null;return{unit:t,weeks:e,reduce:u,canHover:c,hover:w,pinned:_,spanEnd:A,step:y,setStep:b,settled:E,start:D,end:M,level:L,bucket:P,fill:Z,count:I,dateOf:J,future:tt,cols:V,clear:z,span:U,spanTotal:it,select:et,hot:j,tip:st,tipDate:ct,hotMonth:Q,tipX:rt,tipY:F,setHover:f,gridRef:p,tooltipId:h,tooltip:Yt,selection:X,setSelection:x}}var Z0=(0,Jt.createContext)(null);function fo(){let t=(0,Jt.useContext)(Z0);if(!t)throw new Error("HeatCalendar parts must be inside HeatCalendar");return t}var mo=B(yt(),1);function bc({children:t,className:e}){let{weeks:n,reduce:i,canHover:o,pinned:r,step:a,settled:s,level:l,bucket:u,fill:c,count:m,dateOf:f,future:d,cols:g,clear:v,span:x,select:p,hot:h,hotMonth:y,setHover:b,gridRef:E,tooltipId:C,unit:T}=fo();return(0,mo.jsxs)("div",{ref:E,className:Et("relative grid",e),style:{width:n*vc-$s,maxWidth:"100%",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gridTemplateRows:`${Jd}px repeat(7, auto)`,gap:$s},onPointerLeave:()=>b(null),children:[g.map(S=>S.label?(0,mo.jsx)("span",{className:Et("whitespace-nowrap text-[10px] leading-none transition-colors duration-200",y===S.m?"text-foreground":"text-muted-foreground"),style:{gridColumn:S.w+1,gridRow:1},children:S.label},S.id):null),g.map(({id:S,w:M})=>CM.map(({id:D,d:L})=>{let P=f(M,L);if(d(M,L))return null;let Z=l(M,L),I=u(Z),J=M*7+L,tt=h?.w===M&&h?.d===L,K=x?J===x.lo||J===x.hi:r?.w===M&&r?.d===L,X=a!==null&&a!==I||x!==null&&(J<x.lo||J>x.hi),_=h?Math.max(Math.abs(h.w-M),Math.abs(h.d-L)):9,A=i||!o?1:_===0?xc[0]:o&&_<xc.length?xc[_]:1;return(0,mo.jsx)("span",{className:"relative block aspect-square w-full transition-opacity duration-200",style:{gridColumn:M+1,gridRow:L+2,opacity:X?.25:1,zIndex:A>1?xc.length-_:0},children:(0,mo.jsx)(Ut.button,{type:"button","aria-label":`${m(Z)} ${T}${P?` on ${$d.format(P)}`:""}`,"data-heat-cell":`${M}-${L}`,"aria-pressed":K,"aria-describedby":tt?C:void 0,onPointerEnter:()=>b({w:M,d:L}),onFocus:()=>b({w:M,d:L}),onBlur:()=>b(null),onClick:()=>p({w:M,d:L}),onKeyDown:w=>{w.key==="Escape"&&v()},className:"absolute -inset-0.5 block rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring",whileTap:i?void 0:{scale:.9,transition:da},children:(0,mo.jsx)(Ut.span,{className:"pointer-events-none absolute inset-0.5 block rounded-[4px]",style:{background:c(I),boxShadow:K?"0 0 0 2px var(--background), 0 0 0 3.5px var(--foreground)":"none",transition:"box-shadow 150ms"},initial:i?!1:{opacity:0,scale:.4},animate:s?{opacity:1,scale:A,transition:{...da,delay:Math.min(_,3)*.03}}:{opacity:1,scale:1,transition:i?{duration:0}:{...da,delay:(M+L)*.018}},children:(0,mo.jsx)(Bn,{children:tt&&!K?(0,mo.jsx)(Ut.span,{className:"pointer-events-none absolute inset-0 block border-[1.5px]",style:{borderRadius:"inherit",borderColor:"color-mix(in srgb, var(--foreground) 55%, transparent)"},initial:i?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12,ease:It}}):null})})})},`${S}-${D}`)})),t]})}var cr=B(yt(),1);function Q0({className:t}){let{start:e,end:n,step:i,setStep:o,fill:r,canHover:a,reduce:s}=fo();return(0,cr.jsxs)("div",{className:Et("mt-3 flex flex-wrap items-center justify-between gap-3",t),children:[(0,cr.jsx)("span",{className:"text-xs text-muted-foreground",children:e&&n?`${tl.format(e)} \u2013 ${tl.format(n)}`:"\xA0"}),(0,cr.jsxs)("span",{className:"flex items-center gap-1",onPointerLeave:()=>o(null),children:[(0,cr.jsx)("span",{className:"mr-0.5 text-xs text-muted-foreground",children:"less"}),Id.map((l,u)=>(0,cr.jsx)("button",{type:"button","aria-label":`Show activity level ${u}`,"aria-pressed":i===u,onPointerEnter:()=>{a&&o(u)},onFocus:()=>o(u),onBlur:()=>o(null),onClick:()=>o(i===u?null:u),className:"size-3 rounded-[3px] transition-transform duration-150",style:{background:r(u),transform:!s&&i===u?"scale(1.25)":void 0}},l)),(0,cr.jsx)("span",{className:"ml-0.5 text-xs text-muted-foreground",children:"more"})]})]})}var cp=B(ot(),1);var bn=B(ot(),1);var xn=B(yt(),1),F0=1.1,vL=Array.from({length:10},(t,e)=>e);function RM({value:t,pad:e,decimals:n=0,duration:i=.9,stagger:o=.04,startOnView:r=!0,prefix:a,suffix:s,blur:l=!1,className:u,digitClassName:c,locale:m,format:f}){let d=(0,bn.useRef)(null),g=pc(d,{once:!0,amount:.6}),[v,x]=(0,bn.useState)(!r);(0,bn.useEffect)(()=>{r&&g&&x(!0)},[r,g]);let p=(0,bn.useMemo)(()=>{let C=Math.max(0,Math.floor(n)),T=10**C,S=Math.round(t*T)/T,M=f?f(S):m?S.toLocaleString(void 0,{minimumFractionDigits:C,maximumFractionDigits:C}):S.toFixed(C);return e?M.padStart(e,"0"):M},[t,e,n,f,m]),h=(0,bn.useMemo)(()=>{let C=p.split("");return C.map((T,S)=>({char:T,id:`g-${C.length-1-S}`}))},[p]),y=`${a??""}${p}${s??""}`,[b,E]=(0,bn.useState)(!1);return(0,bn.useEffect)(()=>{if(!v||b)return;let C=(i+h.length*o)*1e3,T=window.setTimeout(()=>E(!0),C);return()=>window.clearTimeout(T)},[v,b,i,o,h.length]),(0,xn.jsxs)("span",{ref:d,className:Et("inline-flex items-baseline tabular-nums",u),children:[(0,xn.jsx)("span",{className:"sr-only",children:y}),(0,xn.jsxs)("span",{"aria-hidden":"true",className:"inline-flex items-baseline",children:[a?(0,xn.jsx)("span",{children:a}):null,h.map(({char:C,id:T},S)=>{if(!/\d/.test(C))return(0,xn.jsx)("span",{className:"inline-block",children:C},T);let D=Number(C);return(0,xn.jsx)(xL,{digit:v?D:0,delay:b?0:S*o,duration:i,blur:l,className:c},T)}),s?(0,xn.jsx)("span",{children:s}):null]})]})}function xL({digit:t,delay:e,duration:n,blur:i,className:o}){let r=ke(),a=(0,bn.useRef)(null);return(0,bn.useEffect)(()=>{if(r||!i||!a.current||!Number.isFinite(t))return;let s=a.current,l=H0(s,{filter:["blur(10px)","blur(0px)"]},{duration:Math.min(n*.75,.32),delay:e,ease:It});return()=>{l.stop(),s.style.filter="blur(0px)"}},[i,e,t,n,r]),(0,xn.jsxs)("span",{className:Et("relative inline-block text-center [clip-path:inset(0)]",o),style:{height:`${F0}em`,lineHeight:`${F0}em`,width:"1ch"},children:[(0,xn.jsx)("span",{className:"invisible",children:t}),(0,xn.jsx)(Ut.span,{ref:a,initial:{y:0},animate:{y:`-${t*F0}em`},transition:r?{duration:0}:{duration:n,delay:e,ease:It},className:"absolute inset-x-0 top-0 flex flex-col items-center will-change-[transform,filter]",children:vL.map(s=>(0,xn.jsx)("span",{className:"flex h-[1.1em] items-center justify-center leading-none",children:s},s))})]})}var W=B(ot(),1),RD=B(wp(),1);var NM=B(yt(),1);function OM({children:t,side:e="top",className:n,ref:i,ready:o=!0,style:r,...a}){let l={opacity:0,scale:ke()?1:.94};return(0,NM.jsx)(Ut.span,{ref:i,role:"tooltip",initial:l,animate:{...o?{opacity:1,scale:1}:l,transition:{duration:.18,ease:It}},exit:{...l,transition:{duration:.12,ease:It}},style:{transformOrigin:"var(--tooltip-origin, center)",...r},className:Et("block whitespace-nowrap rounded-lg border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-lg",n),...a,children:t})}var VM=B(ot(),1),I0=new Set;function bL(t,e){for(let n of I0)if(n!==t&&n(e))return!0;return!1}function SL(t){let e=o=>{o.preventDefault(),o.stopPropagation(),i()},n=o=>{o!==t&&i()},i=()=>{window.removeEventListener("click",e,!0),window.removeEventListener("pointerdown",n,!0),window.removeEventListener("pointercancel",n,!0),window.removeEventListener("keydown",i,!0)};window.addEventListener("click",e,!0),window.addEventListener("pointerdown",n,!0),window.addEventListener("pointercancel",n,!0),window.addEventListener("keydown",i,!0)}function zM(t,e,n,{behavior:i="pass-through",escape:o=!0,ignore:r}={}){(0,VM.useEffect)(()=>{if(!t)return;let a=u=>!!n?.current?.contains(u)||!!r?.(u),s=u=>{o&&u.key==="Escape"&&e()},l=u=>{let c=u.target;!c||a(c)||(i==="consume"&&!bL(a,c)&&SL(u),e())};return I0.add(a),window.addEventListener("keydown",s),window.addEventListener("pointerdown",l,!0),()=>{I0.delete(a),window.removeEventListener("keydown",s),window.removeEventListener("pointerdown",l,!0)}},[t,e,n,i,o,r])}var tp=B(ot(),1);var LM=t=>t.pointerType!=="touch"&&t.buttons===0;function _M(){let t=(0,tp.useRef)(new Set);return(0,tp.useMemo)(()=>({enter:e=>LM(e)?(t.current.delete(e.pointerId),!0):(t.current.add(e.pointerId),!1),leave:e=>!t.current.delete(e.pointerId)&&e.pointerType!=="touch"}),[])}var ep=B(ot(),1);function BM(){let t=(0,ep.useRef)(null);return(0,ep.useMemo)(()=>({start:(e,n)=>{t.current={pointerType:e.pointerType,state:n}},take:()=>{let e=t.current;return t.current=null,e},drop:()=>{t.current=null}}),[])}function HM(t,e){return TL([{x:t.x-5,y:t.y-5},{x:t.x+5,y:t.y-5},{x:t.x-5,y:t.y+5},{x:t.x+5,y:t.y+5},{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom}])}function W0(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function PM(t,e){let n=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){let r=e[i],a=e[o];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(n=!n)}return n}function TL(t){let e=[...t].sort((r,a)=>r.x-a.x||r.y-a.y),n=(r,a,s)=>(a.x-r.x)*(s.y-r.y)-(a.y-r.y)*(s.x-r.x),i=[];for(let r of e){for(;i.length>=2&&n(i[i.length-2],i[i.length-1],r)<=0;)i.pop();i.push(r)}let o=[];for(let r=e.length-1;r>=0;r--){let a=e[r];for(;o.length>=2&&n(o[o.length-2],o[o.length-1],a)<=0;)o.pop();o.push(a)}return i.pop(),o.pop(),i.concat(o)}var J0="keyboard",UM=!1;function GM(){UM||typeof window>"u"||(UM=!0,window.addEventListener("keydown",()=>J0="keyboard",!0),window.addEventListener("pointerdown",()=>J0="pointer",!0))}function jM(){return J0==="keyboard"}var Mc=B(ot(),1);var kM=["top","right","bottom","left"];var fr=Math.min,po=Math.max,Tc=Math.round,Ec=Math.floor,wi=t=>({x:t,y:t}),EL={left:"right",right:"left",bottom:"top",top:"bottom"};function $0(t,e,n){return po(t,fr(e,n))}function pa(t,e){return typeof t=="function"?t(e):t}function ha(t){return t.split("-")[0]}function el(t){return t.split("-")[1]}function tv(t){return t==="x"?"y":"x"}function ip(t){return t==="y"?"height":"width"}function ho(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function op(t){return tv(ho(t))}function XM(t,e,n){n===void 0&&(n=!1);let i=el(t),o=op(t),r=ip(o),a=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=Sc(a)),[a,Sc(a)]}function KM(t){let e=Sc(t);return[np(t),e,np(e)]}function np(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var YM=["left","right"],qM=["right","left"],AL=["top","bottom"],CL=["bottom","top"];function wL(t,e,n){switch(t){case"top":case"bottom":return n?e?qM:YM:e?YM:qM;case"left":case"right":return e?AL:CL;default:return[]}}function ZM(t,e,n,i){let o=el(t),r=wL(ha(t),n==="start",i);return o&&(r=r.map(a=>a+"-"+o),e&&(r=r.concat(r.map(np)))),r}function Sc(t){let e=ha(t);return EL[e]+t.slice(e.length)}function ML(t){var e,n,i,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function ev(t){return typeof t!="number"?ML(t):{top:t,right:t,bottom:t,left:t}}function ga(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function QM(t,e,n){let{reference:i,floating:o}=t,r=ho(e),a=op(e),s=ip(a),l=ha(e),u=r==="y",c=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,f=i[s]/2-o[s]/2,d;switch(l){case"top":d={x:c,y:i.y-o.height};break;case"bottom":d={x:c,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:m};break;case"left":d={x:i.x-o.width,y:m};break;default:d={x:i.x,y:i.y}}let g=el(e);return g&&(d[a]+=f*(g==="end"?1:-1)*(n&&u?-1:1)),d}async function JM(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:m="floating",altBoundary:f=!1,padding:d=0}=pa(e,t),g=ev(d),x=s[f?m==="floating"?"reference":"floating":m],p=ga(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),h=m==="floating"?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),b=await(r.isElement==null?void 0:r.isElement(y))&&await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1},E=ga(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:y,strategy:l}):h);return{top:(p.top-E.top+g.top)/b.y,bottom:(E.bottom-p.bottom+g.bottom)/b.y,left:(p.left-E.left+g.left)/b.x,right:(E.right-p.right+g.right)/b.x}}var DL=50,WM=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:JM},l=await(a.isRTL==null?void 0:a.isRTL(e)),u=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:m}=QM(u,i,l),f=i,d=0,g={};for(let v=0;v<r.length;v++){let x=r[v];if(!x)continue;let{name:p,fn:h}=x,{x:y,y:b,data:E,reset:C}=await h({x:c,y:m,initialPlacement:i,placement:f,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:t,floating:e}});c=y??c,m=b??m,g[p]={...g[p],...E},C&&d<DL&&(d++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):C.rects),{x:c,y:m}=QM(u,f,l)),v=-1)}return{x:c,y:m,placement:f,strategy:o,middlewareData:g}},$M=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=pa(t,e)||{};if(u==null)return{};let m=ev(c),f={x:n,y:i},d=op(o),g=ip(d),v=await a.getDimensions(u),x=d==="y",p=x?"top":"left",h=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[d]-f[d]-r.floating[g],E=f[d]-r.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u)),T=C?C[y]:0;(!T||!await(a.isElement==null?void 0:a.isElement(C)))&&(T=s.floating[y]||r.floating[g]);let S=b/2-E/2,M=T/2-v[g]/2-1,D=fr(m[p],M),L=fr(m[h],M),P=T-v[g]-L,Z=T/2-v[g]/2+S,I=$0(D,Z,P),J=!l.arrow&&el(o)!=null&&Z!==I&&r.reference[g]/2-(Z<D?D:L)-v[g]/2<0,tt=J?Z<D?Z-D:Z-P:0;return{[d]:f[d]+tt,data:{[d]:I,centerOffset:Z-I-tt,...J&&{alignmentOffset:tt}},reset:J}}});var tD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:m=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...x}=pa(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let p=ha(o),h=ho(s),y=ha(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(y||!v?[Sc(s)]:KM(s)),C=g!=="none";!f&&C&&E.push(...ZM(s,v,g,b));let T=[s,...E],S=await l.detectOverflow(e,x),M=[],D=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&M.push(S[p]),m){let I=XM(o,a,b);M.push(S[I[0]],S[I[1]])}if(D=[...D,{placement:o,overflows:M}],!M.every(I=>I<=0)){var L,P;let I=(((L=r.flip)==null?void 0:L.index)||0)+1,J=T[I];if(J&&(!(m==="alignment"?h!==ho(J):!1)||D.every(X=>ho(X.placement)===h?X.overflows[0]>0:!0)))return{data:{index:I,overflows:D},reset:{placement:J}};let tt=(P=D.filter(K=>K.overflows[0]<=0).sort((K,X)=>K.overflows[1]-X.overflows[1])[0])==null?void 0:P.placement;if(!tt)switch(d){case"bestFit":{var Z;let K=(Z=D.filter(X=>{if(C){let _=ho(X.placement);return _===h||_==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(_=>_>0).reduce((_,A)=>_+A,0)]).sort((X,_)=>X[1]-_[1])[0])==null?void 0:Z[0];K&&(tt=K);break}case"initialPlacement":tt=s;break}if(o!==tt)return{reset:{placement:tt}}}return{}}}};function FM(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function IM(t){return kM.some(e=>t[e]>=0)}var eD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n,platform:i}=e,{strategy:o="referenceHidden",...r}=pa(t,e);switch(o){case"referenceHidden":{let a=await i.detectOverflow(e,{...r,elementContext:"reference"}),s=FM(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:IM(s)}}}case"escaped":{let a=await i.detectOverflow(e,{...r,altBoundary:!0}),s=FM(a,n.floating);return{data:{escapedOffsets:s,escaped:IM(s)}}}default:return{}}}}};var RL=new Set(["left","top"]);async function OL(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),a=ha(n),s=el(n),l=ho(n)==="y",u=RL.has(a)?-1:1,c=r&&l?-1:1,m=pa(e,t),{mainAxis:f,crossAxis:d,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),l?{x:d*c,y:f*u}:{x:f*u,y:d*c}}var nD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:a,middlewareData:s}=e,l=await OL(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}}},iD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o,platform:r}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...u}=pa(t,e),c={x:n,y:i},m=await r.detectOverflow(e,u),f=ho(o),d=tv(f),g=c[d],v=c[f],x=(h,y)=>$0(y+m[h==="y"?"top":"left"],y,y-m[h==="y"?"bottom":"right"]);a&&(g=x(d,g)),s&&(v=x(f,v));let p=l.fn({...e,[d]:g,[f]:v});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[d]:a,[f]:s}}}}}};function rp(){return typeof window<"u"}function va(t){return rD(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mi(t){var e;return(e=(rD(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function rD(t){return rp()?t instanceof Node||t instanceof Xe(t).Node:!1}function Qn(t){return rp()?t instanceof Element||t instanceof Xe(t).Element:!1}function go(t){return rp()?t instanceof HTMLElement||t instanceof Xe(t).HTMLElement:!1}function oD(t){return!rp()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Ac(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=Fn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&o!=="inline"&&o!=="contents"}function aD(t){return/^(table|td|th)$/.test(va(t))}function Cc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var NL=/transform|translate|scale|rotate|perspective|filter/,VL=/paint|layout|strict|content/,ya=t=>!!t&&t!=="none",nv;function ap(t){let e=Qn(t)?Fn(t):t;return ya(e.transform)||ya(e.translate)||ya(e.scale)||ya(e.rotate)||ya(e.perspective)||!sp()&&(ya(e.backdropFilter)||ya(e.filter))||NL.test(e.willChange||"")||VL.test(e.contain||"")}function sD(t){let e=mr(t);for(;go(e)&&!il(e);){if(ap(e))return e;if(Cc(e))return null;e=mr(e)}return null}function sp(){return nv==null&&(nv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nv}function il(t){return/^(html|body|#document)$/.test(va(t))}function Fn(t){return Xe(t).getComputedStyle(t)}function wc(t){return Qn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mr(t){if(va(t)==="html")return t;let e=t.assignedSlot||t.parentNode||oD(t)&&t.host||Mi(t);return oD(e)?e.host:e}function lD(t){let e=mr(t);return il(e)?(t.ownerDocument||t).body:go(e)&&Ac(e)?e:lD(e)}function nl(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);let o=lD(t),r=o===((i=t.ownerDocument)==null?void 0:i.body),a=Xe(o);if(r){let s=lp(a);return e.concat(a,a.visualViewport||[],Ac(o)?o:[],s&&n?nl(s):[])}else return e.concat(o,nl(o,[],n))}function lp(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fD(t){let e=Fn(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=go(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=Tc(n)!==r||Tc(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function ov(t){return Qn(t)?t:t.contextElement}function ol(t){let e=ov(t);if(!go(e))return wi(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=fD(e),a=(r?Tc(n.width):n.width)/i,s=(r?Tc(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var zL=wi(0);function mD(t){let e=Xe(t);return!sp()||!e.visualViewport?zL:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function LL(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===Xe(t)}function xa(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=ov(t),a=wi(1);e&&(i?Qn(i)&&(a=ol(i)):a=ol(t));let s=LL(r,n,i)?mD(r):wi(0),l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,m=o.height/a.y;if(r&&i){let f=Xe(r),d=Qn(i)?Xe(i):i,g=f,v=lp(g);for(;v&&d!==g;){let x=ol(v),p=v.getBoundingClientRect(),h=Fn(v),y=p.left+(v.clientLeft+parseFloat(h.paddingLeft))*x.x,b=p.top+(v.clientTop+parseFloat(h.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,m*=x.y,l+=y,u+=b,g=Xe(v),v=lp(g)}}return ga({width:c,height:m,x:l,y:u})}function up(t,e){let n=wc(t).scrollLeft;return e?e.left+n:xa(Mi(t)).left+n}function dD(t,e){let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-up(t,n),o=n.top+e.scrollTop;return{x:i,y:o}}function _L(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",a=Mi(i),s=e?Cc(e.floating):!1;if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},u=wi(1),c=wi(0),m=go(i);if((m||!r)&&((va(i)!=="body"||Ac(a))&&(l=wc(i)),m)){let d=xa(i);u=ol(i),c.x=d.x+i.clientLeft,c.y=d.y+i.clientTop}let f=a&&!m&&!r?dD(a,l):wi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function BL(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function UL(t){let e=wc(t),n=t.ownerDocument.body,i=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),r=-e.scrollLeft+up(t),a=-e.scrollTop;return Fn(n).direction==="rtl"&&(r+=po(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:a}}var HL=25;function PL(t,e,n){n===void 0&&(n="viewport");let i=n==="layoutViewport",o=Xe(t),r=Mi(t),a=o.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(a){let f=!sp()||e==="fixed";i?f||(u=-a.offsetLeft,c=-a.offsetTop):(s=a.width,l=a.height,f&&(u=a.offsetLeft,c=a.offsetTop))}if(up(r)<=0){let f=r.ownerDocument,d=f.body,g=getComputedStyle(d),v=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(r.clientWidth-d.clientWidth-v),p=getComputedStyle(r).scrollbarGutter==="stable both-edges"?x/2:x;p<=HL&&(s-=p)}return{width:s,height:l,x:u,y:c}}function GL(t,e){let n=xa(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ol(t),a=t.clientWidth*r.x,s=t.clientHeight*r.y,l=o*r.x,u=i*r.y;return{width:a,height:s,x:l,y:u}}function uD(t,e,n){let i;if(e==="viewport"||e==="layoutViewport")i=PL(t,n,e);else if(e==="document")i=UL(Mi(t));else if(Qn(e))i=GL(e,n);else{let o=mD(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ga(i)}function jL(t,e){let n=e.get(t);if(n)return n;let i=nl(t,[],!1).filter(s=>Qn(s)&&va(s)!=="body"),o=null,r=Fn(t).position==="fixed",a=r?mr(t):t;for(;Qn(a)&&!il(a);){let s=Fn(a),l=ap(a),u=o?o.position:r?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?i=i.filter(m=>m!==a):o=s,a=mr(a)}return e.set(t,i),i}function YL(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,a=[...n==="clippingAncestors"?Cc(e)?[]:jL(e,this._c):[].concat(n),i],s=uD(e,a[0],o),l=s.top,u=s.right,c=s.bottom,m=s.left;for(let f=1;f<a.length;f++){let d=uD(e,a[f],o);l=po(d.top,l),u=fr(d.right,u),c=fr(d.bottom,c),m=po(d.left,m)}return{width:u-m,height:c-l,x:m,y:l}}function qL(t){let{width:e,height:n}=fD(t);return{width:e,height:n}}function kL(t,e,n){let i=go(e),o=Mi(e),r=n==="fixed",a=xa(t,!0,r,e),s={scrollLeft:0,scrollTop:0},l=wi(0);if((i||!r)&&((va(e)!=="body"||Ac(o))&&(s=wc(e)),i)){let f=xa(e,!0,r,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=up(o));let u=o&&!i&&!r?dD(o,s):wi(0),c=a.left+s.scrollLeft-l.x-u.x,m=a.top+s.scrollTop-l.y-u.y;return{x:c,y:m,width:a.width,height:a.height}}function iv(t){return Fn(t).position==="static"}function cD(t,e){if(!go(t)||Fn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Mi(t)===n&&(n=n.ownerDocument.body),n}function pD(t,e){let n=Xe(t);if(Cc(t))return n;if(!go(t)){let o=mr(t);for(;o&&!il(o);){if(Qn(o)&&!iv(o))return o;o=mr(o)}return n}let i=cD(t,e);for(;i&&aD(i)&&iv(i);)i=cD(i,e);return i&&il(i)&&iv(i)&&!ap(i)?n:i||sD(t)||n}var XL=async function(t){let e=this.getOffsetParent||pD,n=this.getDimensions,i=await n(t.floating);return{reference:kL(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function KL(t){return Fn(t).direction==="rtl"}var ZL={convertOffsetParentRelativeRectToViewportRelativeRect:_L,getDocumentElement:Mi,getClippingRect:YL,getOffsetParent:pD,getElementRects:XL,getClientRects:BL,getDimensions:qL,getScale:ol,isElement:Qn,isRTL:KL};function hD(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function QL(t,e,n){let i=null,o,r=Mi(t);function a(){var c;clearTimeout(o),(c=i)==null||c.disconnect(),i=null}function s(c,m){c===void 0&&(c=!1),m===void 0&&(m=1),a();let f=t.getBoundingClientRect(),{left:d,top:g,width:v,height:x}=f;if(c||e(),!v||!x)return;let p=Ec(g),h=Ec(r.clientWidth-(d+v)),y=Ec(r.clientHeight-(g+x)),b=Ec(d),C={rootMargin:-p+"px "+-h+"px "+-y+"px "+-b+"px",threshold:po(0,fr(1,m))||1},T=!0;function S(M){let D=M[0].intersectionRatio;if(!hD(f,t.getBoundingClientRect()))return s();if(D!==m){if(!T)return s();D?s(!1,D):o=setTimeout(()=>{s(!1,1e-7)},1e3)}T=!1}try{i=new IntersectionObserver(S,{...C,root:r.ownerDocument})}catch{i=new IntersectionObserver(S,C)}i.observe(t)}let l=Xe(t),u=()=>s(n);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),a()}}function gD(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=ov(t),c=o||r?[...u?nl(u):[],...e?nl(e):[]]:[];c.forEach(p=>{o&&p.addEventListener("scroll",n),r&&p.addEventListener("resize",n)});let m=u&&s?QL(u,n,r):null,f=-1,d=null;a&&(d=new ResizeObserver(p=>{let[h]=p;h&&h.target===u&&d&&e&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e)})),n()}),u&&!l&&d.observe(u),e&&d.observe(e));let g,v=l?xa(t):null;l&&x();function x(){let p=xa(t);v&&!hD(v,p)&&n(),v=p,g=requestAnimationFrame(x)}return n(),()=>{var p;c.forEach(h=>{o&&h.removeEventListener("scroll",n),r&&h.removeEventListener("resize",n)}),m?.(),(p=d)==null||p.disconnect(),d=null,l&&cancelAnimationFrame(g)}}var yD=nD;var vD=iD,xD=tD;var bD=eD,SD=$M;var TD=(t,e,n)=>{let i=new Map,o=n??{},r={...ZL,...o.platform,_c:i};return WM(t,e,{...o,platform:r})};var Re=B(ot(),1),FL={top:"center bottom",bottom:"center top",left:"right center",right:"left center"};function ED({open:t,anchor:e,floatingRef:n,arrowRef:i,anchorPoint:o,followCursor:r,side:a,align:s,sideOffset:l,onDismiss:u,onPosition:c,pointer:m}){let{cursor:f,onMove:d}=m,g=s==="center"?a:`${a}-${s}`,v=(0,Re.useRef)(null);(0,Re.useLayoutEffect)(()=>{v.current=t?g:null},[t,g]);let x=(0,Re.useRef)(null),p=(0,Re.useRef)(0),h=(0,Re.useRef)(()=>{}),y=(0,Re.useCallback)(()=>{p.current++,x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null,h.current()}))},[]);(0,Re.useLayoutEffect)(()=>(d.current=y,()=>{d.current=null}),[d,y]);let b=o?.x,E=o?.y;(0,Re.useLayoutEffect)(()=>{h.current=()=>{let C=n.current;if(!t||!e||!C)return;let T=++p.current,S=r?f.current:null,M=!!S||b!==void 0||E!==void 0,D=M?{contextElement:e,getBoundingClientRect:()=>{let P=e.getBoundingClientRect(),Z=S?.x??P.left+P.width*(b??.5),I=S?.y??P.top+P.height*(E??.5);return{x:Z,y:I,left:Z,right:Z,top:I,bottom:I,width:0,height:0}}}:e,L=i?.current??null;TD(D,C,{strategy:"fixed",placement:S?v.current??g:g,middleware:[yD(l??(S?12:8)),xD({padding:8}),vD({padding:8}),...L?[SD({element:L,padding:10})]:[],...M?[]:[bD({strategy:"referenceHidden"})]]}).then(({x:P,y:Z,placement:I,middlewareData:J})=>{if(p.current!==T||!C.isConnected)return;S?v.current=I:v.current=null;let tt=I.split("-")[0],K=window.devicePixelRatio||1;C.style.transform=`translate3d(${Math.round(P*K)/K}px, ${Math.round(Z*K)/K}px, 0)`,C.style.setProperty("--tooltip-origin",FL[tt]);let X=e.getBoundingClientRect(),_=!!J.hide?.referenceHidden&&(X.width>0||X.height>0);C.style.visibility=_?"hidden":"visible",C.dataset.placement=I;let A=L?.parentElement;if(L&&A){let{x:w,y:V}=J.arrow??{};w!=null&&(L.style.left=`${w-A.clientLeft}px`),V!=null&&(L.style.top=`${V-A.clientTop}px`);let O=getComputedStyle(A);L.style.setProperty("--tooltip-arrow-fill",O.backgroundColor),L.style.setProperty("--tooltip-arrow-stroke",O.borderTopColor)}c(tt)})},t&&y()},[t,e,n,i,r,b,E,g,l,y,c,f]),(0,Re.useLayoutEffect)(()=>{let C=n.current;if(!t||!e||!C)return;let T=gD(e,C,y),S=()=>{r&&f.current&&u()};return window.addEventListener("scroll",S,!0),()=>{T(),window.removeEventListener("scroll",S,!0),p.current++,x.current!==null&&cancelAnimationFrame(x.current),x.current=null}},[t,e,n,r,u,y,f]),(0,Re.useLayoutEffect)(()=>()=>{p.current++,x.current!==null&&cancelAnimationFrame(x.current)},[])}function AD(t,e){let n=(0,Re.useRef)(null),i=(0,Re.useRef)(null),o=(0,Re.useRef)(!1);return(0,Re.useLayoutEffect)(()=>{if(!t||!e)return;let r=u=>{u.type==="pointermove"&&u.pointerType==="touch"&&!u.buttons||(n.current={x:u.clientX,y:u.clientY},u.type==="pointerdown"&&(o.current=!0),i.current?.())},a=()=>{n.current=null,o.current=!1,i.current?.()},s=()=>{o.current||(n.current=null),o.current=!1,i.current?.()},l=()=>{n.current=null};return t.addEventListener("pointerenter",r,{passive:!0}),t.addEventListener("pointermove",r,{passive:!0}),t.addEventListener("pointerdown",r,{passive:!0}),t.addEventListener("pointerleave",l),t.addEventListener("pointercancel",l),t.addEventListener("keydown",a),t.addEventListener("focusin",s),()=>{n.current=null,t.removeEventListener("pointerenter",r),t.removeEventListener("pointermove",r),t.removeEventListener("pointerdown",r),t.removeEventListener("pointerleave",l),t.removeEventListener("pointercancel",l),t.removeEventListener("keydown",a),t.removeEventListener("focusin",s)}},[t,e]),{cursor:n,onMove:i}}var rl=B(yt(),1);function CD({children:t,...e}){let n=C0(),[i,o]=(0,Mc.useState)(!1),[r,a]=(0,Mc.useState)(e.side),s=(0,Mc.useCallback)(l=>{o(!0),a(l)},[]);return ED({...e,open:n,onPosition:s}),(0,rl.jsx)("span",{ref:e.floatingRef,inert:!n,"aria-hidden":!n||void 0,className:"pointer-events-none fixed left-0 top-0 z-[9999] w-max",style:{visibility:"hidden",maxWidth:"calc(100vw - 16px)"},children:t(i,n,r)})}var IL={top:{path:"M0 6L6 12L12 6",style:{top:"calc(100% - 6px)"}},bottom:{path:"M0 6L6 0L12 6",style:{bottom:"calc(100% - 6px)"}},left:{path:"M6 0L12 6L6 12",style:{left:"calc(100% - 6px)"}},right:{path:"M6 0L0 6L6 12",style:{right:"calc(100% - 6px)"}}};function wD({side:t,ref:e}){let{path:n,style:i}=IL[t];return(0,rl.jsxs)("svg",{ref:e,"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:"pointer-events-none absolute overflow-visible",style:i,children:[(0,rl.jsx)("path",{d:`${n}Z`,style:{fill:"var(--tooltip-arrow-fill, transparent)"}}),(0,rl.jsx)("path",{d:n,fill:"none",strokeWidth:"1",style:{stroke:"var(--tooltip-arrow-stroke, transparent)"}})]})}var ze=B(yt(),1),JL=(0,W.createContext)({delay:120,closeDelay:0,skipDelay:300});var MD=0,dr=null;function OD(t){return t==null||t===!1||t===""}var ND=(0,W.createContext)(null);function VD(t){let e=(0,W.useContext)(ND);if(!e)throw new Error(`${t} must be used inside <Tooltip>`);return e}function DD({children:t,open:e,defaultOpen:n=!1,onOpenChange:i,delay:o,closeDelay:r,disabled:a=!1,asLabel:s=!1,followCursor:l=!1,anchorRef:u,id:c,initialEmpty:m=!1}){let f=(0,W.useContext)(JL),d=o??f.delay,g=r??f.closeDelay,[v,x]=(0,W.useState)(n),p=e??v,[h,y]=(0,W.useState)(m),[b,E]=(0,W.useState)(null),[C,T]=(0,W.useState)(null),S=u?C:b,M=(0,W.useId)(),D=c??`${M}-content`,L=`${M}-label`,P=(0,W.useRef)(null),Z=(0,W.useRef)(null),I=AD(S,l);(0,W.useLayoutEffect)(()=>{if(!u)return;let F=u.current??null;F!==C&&T(F)});let J=(0,W.useRef)({open:p,delay:d,closeDelay:g,disabled:a,empty:h,onOpenChange:i,controlled:!1});(0,W.useLayoutEffect)(()=>{Z.current=S,J.current={open:p,delay:d,closeDelay:g,disabled:a,empty:h,onOpenChange:i,controlled:e!==void 0}});let tt=(0,W.useRef)(null),K=(0,W.useRef)(null),X=(0,W.useRef)(null),_=(0,W.useRef)({close:()=>{}}),A=(0,W.useCallback)(()=>{tt.current&&clearTimeout(tt.current),K.current&&clearTimeout(K.current),tt.current=null,K.current=null},[]),w=(0,W.useCallback)(()=>{X.current?.(),X.current=null},[]),V=(0,W.useCallback)(F=>{J.current.open!==F&&(J.current.controlled||x(F),J.current.onOpenChange?.(F))},[]),O=(0,W.useCallback)(()=>{A(),w(),!(J.current.disabled||J.current.empty)&&(dr&&dr!==_.current&&dr.close(),dr=_.current,V(!0))},[A,w,V]),z=(0,W.useCallback)(()=>{A(),w(),J.current.open&&(MD=Date.now()),dr===_.current&&(dr=null),V(!1)},[A,w,V]);(0,W.useLayoutEffect)(()=>{_.current.close=z},[z]);let G=(0,W.useCallback)(()=>{if(A(),J.current.open||J.current.disabled||J.current.empty)return;Date.now()-MD<f.skipDelay||J.current.delay<=0?O():tt.current=setTimeout(O,J.current.delay)},[A,O,f.skipDelay]),U=(0,W.useCallback)(()=>{A(),J.current.closeDelay>0?K.current=setTimeout(z,J.current.closeDelay):z()},[A,z]),it=(0,W.useCallback)((F,Yt,Y)=>{if(w(),!Y)return U();let Wt=Y.getBoundingClientRect(),Dt=Yt.getBoundingClientRect(),Le=HM(F,Wt),ve=In=>{let Oi={x:In.clientX,y:In.clientY};W0(Oi,Wt)||W0(Oi,Dt)||PM(Oi,Le)||U()};document.addEventListener("pointermove",ve),X.current=()=>document.removeEventListener("pointermove",ve)},[w,U]),et=_M(),j=BM();(0,W.useEffect)(()=>{if(u||!b)return;GM();let F=!1,Yt=!1,Y=xe=>{et.enter(xe)&&(w(),K.current&&clearTimeout(K.current),F||G())},Wt=xe=>{if(et.leave(xe)&&(F=!1,!Yt)){if(tt.current){A();return}J.current.open&&!l?it({x:xe.clientX,y:xe.clientY},b,P.current):U()}},Dt=xe=>{j.start(xe,J.current.open),xe.pointerType==="mouse"&&(F=!0,z())},Le=()=>{let xe=j.take();!xe||xe.pointerType==="mouse"||(xe.state?z():O())},ve=()=>j.drop(),In=()=>{jM()&&(Yt=!0,O())},Oi=xe=>{b.contains(xe.relatedTarget)||(Yt=!1,z())},fe=b;return fe.addEventListener("pointerenter",Y),fe.addEventListener("pointerleave",Wt),fe.addEventListener("pointerdown",Dt),fe.addEventListener("pointercancel",j.drop),fe.addEventListener("click",Le),fe.addEventListener("keydown",ve),fe.addEventListener("focusin",In),fe.addEventListener("focusout",Oi),()=>{fe.removeEventListener("pointerenter",Y),fe.removeEventListener("pointerleave",Wt),fe.removeEventListener("pointerdown",Dt),fe.removeEventListener("pointercancel",j.drop),fe.removeEventListener("click",Le),fe.removeEventListener("keydown",ve),fe.removeEventListener("focusin",In),fe.removeEventListener("focusout",Oi)}},[u,b,l,et,j,G,U,O,z,A,w,it]),(0,W.useEffect)(()=>{if(!p||u||!b)return;let F=new MutationObserver(()=>{b.matches(":disabled, [aria-disabled='true']")&&z()});return F.observe(b,{attributes:!0,attributeFilter:["disabled","aria-disabled"]}),window.addEventListener("blur",z),()=>{F.disconnect(),window.removeEventListener("blur",z)}},[p,u,b,z]),(0,W.useEffect)(()=>{(a||h&&!u)&&z()},[a,h,u,z]),(0,W.useEffect)(()=>()=>{A(),w(),dr===_.current&&(dr=null)},[A,w]);let st=(0,W.useCallback)(F=>!!P.current?.contains(F),[]);zM(p,z,Z,{ignore:st});let ct=(0,W.useCallback)(()=>{w(),A()},[w,A]),Q=(0,W.useCallback)(F=>{let Yt=P.current;if(Yt){if(u){A(),K.current=setTimeout(z,100);return}it({x:F.clientX,y:F.clientY},Yt,Z.current)}},[u,A,z,it]),rt=(0,W.useMemo)(()=>({open:p,contentId:D,labelId:L,asLabel:s,empty:h,followCursor:l,anchor:S,triggered:!u,floatingRef:P,pointer:I,setTrigger:E,setEmpty:y,close:z,onContentEnter:ct,onContentLeave:Q}),[p,D,L,s,h,l,S,u,I,z,ct,Q]);return(0,ze.jsx)(ND.Provider,{value:rt,children:t})}function WL(...t){return t.filter(e=>typeof e=="string"&&e).join(" ")||void 0}function $L(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function t_({asChild:t=!1,children:e,ref:n,...i}){let{open:o,contentId:r,labelId:a,asLabel:s,empty:l,setTrigger:u}=VD("TooltipTrigger"),c=t&&(0,W.isValidElement)(e)?e:null,m=c?.props??i,f=c?m.ref:void 0,d=(0,W.useRef)(null),g=(0,W.useCallback)(x=>{d.current=x,u(x),$L(f??n,x)},[u,f,n]);(0,W.useEffect)(()=>{},[c]);let v=s?{"aria-labelledby":l?m["aria-labelledby"]:a}:{"aria-describedby":WL(m["aria-describedby"],o&&!l?r:void 0)};return t?c?(0,W.cloneElement)(c,{ref:g,...v}):e:(0,ze.jsx)("button",{type:"button","data-state":o?"open":"closed",...i,ref:g,...v,children:e})}function e_({children:t,side:e="top",align:n="center",sideOffset:i,arrow:o=!1,anchorPoint:r,className:a}){let{open:s,contentId:l,labelId:u,asLabel:c,followCursor:m,anchor:f,floatingRef:d,pointer:g,setEmpty:v,close:x,onContentEnter:p,onContentLeave:h}=VD("TooltipContent"),y=OD(t),b=(0,W.useRef)(null);return(0,W.useLayoutEffect)(()=>{v(y)},[y,v]),typeof document>"u"?null:(0,RD.createPortal)((0,ze.jsxs)(ze.Fragment,{children:[c&&!y?(0,ze.jsx)("span",{id:u,hidden:!0,children:t}):null,(0,ze.jsx)(Bn,{children:s&&!y?(0,ze.jsx)(CD,{anchor:f,floatingRef:d,arrowRef:o?b:void 0,anchorPoint:r,followCursor:m,side:e,align:n,sideOffset:i,onDismiss:x,pointer:g,children:(E,C,T)=>(0,ze.jsxs)(OM,{id:c?void 0:l,"aria-hidden":c||void 0,ready:E,onPointerEnter:p,onPointerLeave:h,style:{pointerEvents:C&&!m?"auto":"none"},className:Et("max-w-[min(20rem,calc(100vw-16px))] whitespace-normal break-words",o&&"relative",a),children:[t,o?(0,ze.jsx)(wD,{ref:b,side:T}):null]})},"tooltip"):null})]}),document.body)}function zD(t){if(!("content"in t))return(0,ze.jsx)(DD,{...t});let{content:e,children:n,side:i,align:o,sideOffset:r,arrow:a,anchorPoint:s,className:l,...u}=t;return!u.anchorRef&&!(0,W.isValidElement)(n)?n??null:(0,ze.jsxs)(DD,{...u,initialEmpty:OD(e),children:[(0,W.isValidElement)(n)?(0,ze.jsx)(t_,{asChild:!0,children:n}):null,(0,ze.jsx)(e_,{side:i,align:o,sideOffset:r,arrow:a,anchorPoint:s,className:l,children:e})]})}var Di=B(yt(),1);function Dc({children:t,className:e}){let{gridRef:n,tooltipId:i,tip:o,tooltip:r,unit:a}=fo(),[s,l]=(0,cp.useState)(null),u=(0,cp.useMemo)(()=>({get current(){return o?n.current?.querySelector(`[data-heat-cell="${o.w}-${o.d}"]`)??null:null}}),[n,o]);return(0,Di.jsx)(zD,{open:r!==null&&s!==o,onOpenChange:c=>{c||l(o)},id:i,anchorRef:u,className:Et("flex flex-wrap items-center gap-1.5",e),content:r&&(typeof t=="function"?t(r):t??(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsxs)("span",{className:"inline-flex items-center gap-1 font-mono tabular-nums",children:[(0,Di.jsx)(RM,{value:r.days>1?r.total:r.count,duration:.35,startOnView:!1})," ",a]}),(0,Di.jsx)("span",{className:"text-muted-foreground",children:r.days>1&&r.startDate&&r.endDate?`${tl.format(r.startDate)} \u2013 ${tl.format(r.endDate)}`:$d.format(r.date)}),r.days>1?(0,Di.jsxs)("span",{className:"text-muted-foreground",children:[r.days," days"]}):null]}))},o?`${o.w}-${o.d}`:"closed")}var Ri=B(yt(),1);function LD({children:t,className:e,...n}){let i=DM(n);return(0,Ri.jsx)(Z0.Provider,{value:i,children:(0,Ri.jsx)("div",{className:Et("w-fit max-w-full",e),children:t===void 0?(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(bc,{children:(0,Ri.jsx)(Dc,{})}),(0,Ri.jsx)(Q0,{})]}):t})})}var N=B(yt(),1),al=["#5b5ce2","#12a594","#e08b1f","#a259d6","#2f86d8","#e0507e","#6f9a2e","#d1622a","#17a2b8","#7c5cd6","#b08a1e","#3f74c4","#d1508f","#3f9e63","#9a6b3f","#6f74e0","#1f8e70","#d1453f","#4f8ea3"],n_={leiting:"\u96F7\u9706",heidong:"\u9ED1\u6D1E",mifeng:"\u871C\u8702",xuanfeng:"\u65CB\u98CE"},Rc=null;function rv(t){let e=String(t??"").trim().toUpperCase();return/^[A-Z]{2}$/.test(e)?String.fromCodePoint(...[...e].map(n=>127462+n.charCodeAt(0)-65)):""}function BD({color:t,active:e}){return(0,N.jsx)("span",{"aria-hidden":"true",className:"analytics-aura",style:{background:`radial-gradient(58% 68% at 14% 42%, ${t}${e?"3d":"20"} 0%, transparent 72%)`}})}function i_(){let{placed:t,active:e,setActive:n,canHover:i,formatValue:o,total:r}=Ai(),a=ke()??!1;return(0,N.jsx)("ul",{className:"distribution-chips",children:t.map((s,l)=>(0,N.jsx)(Ut.li,{initial:a?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:a?0:.34,ease:It,delay:a?0:.12+l*.022},children:(0,N.jsxs)(Ut.button,{type:"button","data-donut-legend":!0,className:`distribution-chip${e===s.id?" is-active":""}`,style:{"--chip-color":s.color},whileHover:a?void 0:{y:-2},whileTap:a?void 0:{scale:.96},transition:da,onPointerEnter:i?()=>n(s.id):void 0,onPointerLeave:i?()=>n(null):void 0,onFocus:()=>n(s.id),onBlur:()=>n(null),"aria-label":`${s.name} ${s.value} \u4E2A\u8282\u70B9\uFF0C\u5360 ${Math.round(s.share*100)}%`,children:[(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-dot",style:{backgroundColor:s.color}}),rv(s.id)?(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-flag",children:rv(s.id)}):null,(0,N.jsx)("span",{className:"min-w-0 distribution-name",children:s.name}),(0,N.jsx)("strong",{className:"distribution-value",children:o(s.value)}),(0,N.jsxs)("span",{className:"distribution-share",children:[Math.round(s.value/r*100),"%"]})]})},s.id))})}function o_(){let{placed:t,active:e,total:n,formatValue:i}=Ai(),o=ke()??!1,r=t.find(s=>s.id===e)??null,a=r?.value??n;return(0,N.jsxs)("div",{className:"ring-readout",children:[(0,N.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,N.jsx)(Ut.strong,{className:"ring-value",initial:o?{opacity:0}:{opacity:0,y:10},animate:{opacity:1,y:0},exit:o?{opacity:0}:{opacity:0,y:-10},transition:{duration:o?.1:.24,ease:It},children:i(a)},`value-${a}`)}),(0,N.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,N.jsx)(Ut.span,{className:"ring-caption",initial:o?{opacity:0}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:o?{opacity:0}:{opacity:0,y:-6},transition:{duration:o?.1:.2,ease:It},children:r?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-dot",style:{backgroundColor:r.color}}),rv(r.id)," ",r.name," \xB7 ",Math.round(r.share*100),"%"]}):"\u8282\u70B9\u603B\u6570"},r?.id??"total")})]})}function r_({title:t,segments:e,label:n}){let i=(0,sl.useMemo)(()=>[...e].filter(l=>l.value>0).sort((l,u)=>u.value-l.value),[e]),o=i.reduce((l,u)=>l+u.value,0),[r,a]=(0,sl.useState)(null),s=i.find(l=>l.id===r)?.color??i[0]?.color??al[0];return(0,N.jsxs)("article",{className:"panel analytics-distribution","aria-label":t,children:[o>0?(0,N.jsx)(BD,{color:s,active:r!==null}):null,(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:t}),(0,N.jsx)("span",{className:"analytics-count",children:o>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("strong",{children:i.length})," \u4E2A",n]}):null})]}),o>0?(0,N.jsx)(EM,{segments:i,label:t,formatValue:l=>l.toLocaleString("zh-CN"),thickness:24,gap:2.5,activeId:r,onActiveChange:a,children:(0,N.jsxs)("div",{className:"distribution-layout",children:[(0,N.jsx)(yc,{className:"distribution-plot",children:(0,N.jsx)(gc,{children:()=>(0,N.jsx)(o_,{})})}),(0,N.jsx)(i_,{})]})}):(0,N.jsxs)("div",{className:"chart-empty",role:"status",children:[(0,N.jsx)("span",{className:"empty-donut","aria-hidden":"true"}),(0,N.jsx)("span",{children:"\u8FD0\u884C\u5B8C\u6210\u540E\u663E\u793A"})]})]})}function a_({title:t,segments:e,label:n}){let i=ke()??!1,o=(0,sl.useMemo)(()=>[...e].filter(l=>l.value>0).sort((l,u)=>u.value-l.value),[e]),r=o.reduce((l,u)=>l+u.value,0),[a,s]=(0,sl.useState)(null);return(0,N.jsxs)("article",{className:"panel analytics-distribution analytics-share","aria-label":t,children:[r>0?(0,N.jsx)(BD,{color:o.find(l=>l.id===a)?.color??o[0]?.color??al[0],active:a!==null}):null,(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:t}),(0,N.jsx)("span",{className:"analytics-count",children:r>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("strong",{children:o.length})," \u4E2A",n]}):null})]}),r>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"share-track",role:"img","aria-label":`${t}\uFF1A${o.map(l=>`${l.name} ${l.value}`).join("\uFF0C")}`,children:o.map((l,u)=>(0,N.jsx)(Ut.span,{className:`share-segment${a===l.id?" is-active":""}${a!==null&&a!==l.id?" is-dimmed":""}`,style:{flexGrow:l.value,"--segment-color":l.color},initial:i?!1:{scaleX:0},animate:{scaleX:1},transition:{duration:i?0:.62,ease:It,delay:i?0:.08+u*.07},title:`${l.name} ${l.value}\uFF08${Math.round(l.value/r*100)}%\uFF09`},l.id))}),(0,N.jsx)("ul",{className:"distribution-chips share-chips",children:o.map((l,u)=>(0,N.jsx)(Ut.li,{initial:i?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:i?0:.34,ease:It,delay:i?0:.3+u*.06},children:(0,N.jsxs)(Ut.button,{type:"button",className:`distribution-chip${a===l.id?" is-active":""}`,style:{"--chip-color":l.color},whileHover:i?void 0:{y:-2},whileTap:i?void 0:{scale:.96},transition:da,onPointerEnter:()=>s(l.id),onPointerLeave:()=>s(null),onFocus:()=>s(l.id),onBlur:()=>s(null),"aria-label":`${l.name} ${l.value} \u4E2A\u8282\u70B9\uFF0C\u5360 ${Math.round(l.value/r*100)}%`,children:[(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-dot",style:{backgroundColor:l.color}}),(0,N.jsx)("span",{className:"distribution-name",children:l.name}),(0,N.jsx)("strong",{className:"distribution-value",children:l.value.toLocaleString("zh-CN")}),(0,N.jsxs)("span",{className:"distribution-share",children:[Math.round(l.value/r*100),"%"]})]})},l.id))})]}):(0,N.jsxs)("div",{className:"chart-empty",role:"status",children:[(0,N.jsx)("span",{className:"empty-donut","aria-hidden":"true"}),(0,N.jsx)("span",{children:"\u8FD0\u884C\u5B8C\u6210\u540E\u663E\u793A"})]})]})}function s_(){let{start:t,end:e,fill:n}=fo();return(0,N.jsxs)("div",{className:"contribution-legend",children:[(0,N.jsxs)("span",{children:[t?.toISOString().slice(0,7)," \u81F3 ",e?.toISOString().slice(0,7)]}),(0,N.jsxs)("span",{className:"contribution-scale",children:["\u5C11",[0,1,2,3,4].map(i=>(0,N.jsx)("i",{style:{background:n(i)},"aria-hidden":"true"},i)),"\u591A"]})]})}function l_({activity:t,unavailable:e=0}){let n=new Date(Date.now()),i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())),o=new Date(i);o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+6)%7);let r=new Date(o);r.setUTCDate(r.getUTCDate()-364);let a=new Map(t.map(d=>[d.date,d.nodes])),s=Array.from({length:53},(d,g)=>Array.from({length:7},(v,x)=>{let p=new Date(r);return p.setUTCDate(p.getUTCDate()+g*7+x),p>i?0:a.get(p.toISOString().slice(0,10))??0})),l=Math.max(1,...s.flat()),u=s.flat(),c=u.reduce((d,g)=>d+g,0),m=u.filter(d=>d>0).length,f=Math.max(0,...u);return(0,N.jsxs)("article",{className:"panel analytics-calendar","aria-label":"\u6BCF\u65E5\u8282\u70B9\u4EA7\u51FA",children:[(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:"\u6BCF\u65E5\u4EA7\u51FA"}),(0,N.jsxs)("span",{className:"analytics-count",title:"\u6309\u4FDD\u7559\u7684\u8FD0\u884C\u8BB0\u5F55\u7D2F\u8BA1\u6700\u7EC8\u53EF\u7528\u8282\u70B9\uFF0C\u540C\u4E00\u8282\u70B9\u5728\u4E0D\u540C\u8FD0\u884C\u4E2D\u4F1A\u5206\u522B\u8BA1\u6570",children:[(0,N.jsx)("strong",{children:c.toLocaleString("zh-CN")})," \u4E2A\u8282\u70B9",e>0?(0,N.jsxs)("span",{className:"activity-unavailable",title:`${e} \u6B21\u8FD0\u884C\u7F3A\u5C11\u53EF\u786E\u8BA4\u7684\u6700\u7EC8\u8282\u70B9\u8BB0\u5F55`,children:[" \xB7 ",e," \u6B21\u8BB0\u5F55\u4E0D\u5B8C\u6574"]}):null]})]}),(0,N.jsxs)("div",{className:"calendar-stats",children:[(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u6709\u4EA7\u51FA"}),(0,N.jsx)("strong",{children:m}),(0,N.jsx)("span",{children:"\u5929"})]}),(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u5355\u65E5\u6700\u9AD8"}),(0,N.jsx)("strong",{children:f.toLocaleString("zh-CN")}),(0,N.jsx)("span",{children:"\u4E2A"})]}),(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u65E5\u5747"}),(0,N.jsx)("strong",{children:m?Math.round(c/m).toLocaleString("zh-CN"):"0"}),(0,N.jsx)("span",{children:"\u4E2A"})]})]}),(0,N.jsx)("div",{className:"calendar-scroll",tabIndex:0,role:"region","aria-label":"53 \u5468\u8282\u70B9\u8D21\u732E\uFF0C\u53EF\u6A2A\u5411\u6EDA\u52A8",children:(0,N.jsx)("div",{className:"calendar-canvas",children:(0,N.jsxs)(LD,{weeks:53,values:s.map(d=>d.map(g=>g/l)),maxCount:l,endDate:i,color:"var(--accent)",unit:"\u4E2A\u8282\u70B9",children:[(0,N.jsx)(bc,{children:(0,N.jsx)(Dc,{children:d=>(0,N.jsxs)("span",{children:[d.date.toISOString().slice(0,10)," \xB7 ",d.days>1?d.total:d.count," \u4E2A\u8282\u70B9"]})})}),(0,N.jsx)(s_,{})]})})})]})}function u_({input:t}){let e=c_(t.regionStats).map((i,o)=>({id:i.region,name:i.region,value:i.count,color:al[o%al.length]})),n=Object.entries(t.sourceCounts).map(([i,o],r)=>({id:i,name:n_[i]??i,value:Number(o.deduped_links??0),color:al[r%al.length]}));return(0,N.jsx)(M0,{reducedMotion:"user",children:(0,N.jsxs)("div",{className:"dashboard-analytics","data-component-source":"beui",children:[(0,N.jsxs)("div",{className:"analytics-distributions",children:[(0,N.jsx)(r_,{title:"\u56FD\u5BB6\u5206\u5E03",label:"\u56FD\u5BB6",segments:e}),(0,N.jsx)(a_,{title:"\u52A0\u901F\u5668\u8D21\u732E",label:"\u6765\u6E90",segments:n})]}),(0,N.jsx)(l_,{activity:t.activity,unavailable:t.activityUnavailable})]})})}function c_(t){let e=new Map;for(let n of t??[]){let i=String(n?.region??"").trim().toUpperCase();i&&e.set(i,(e.get(i)??0)+Number(n.count??0))}return[...e.entries()].map(([n,i])=>({region:n,count:i}))}function rJ(t,e){t&&(Rc?.element!==t&&(f_(),Rc={element:t,root:(0,_D.createRoot)(t)}),Rc.root.render((0,N.jsx)(u_,{input:e})))}function f_(){Rc?.root.unmount(),Rc=null}export{f_ as clearAnalytics,rJ as renderAnalytics};
|
|
8
|
+
`+i.stack}}var ph=Object.prototype.hasOwnProperty,yg=ae.unstable_scheduleCallback,Op=ae.unstable_cancelCallback,CR=ae.unstable_shouldYield,wR=ae.unstable_requestPaint,ln=ae.unstable_now,MR=ae.unstable_getCurrentPriorityLevel,zb=ae.unstable_ImmediatePriority,Lb=ae.unstable_UserBlockingPriority,Af=ae.unstable_NormalPriority,DR=ae.unstable_LowPriority,_b=ae.unstable_IdlePriority,RR=ae.log,OR=ae.unstable_setDisableYieldValue,$l=null,un=null;function wo(t){if(typeof RR=="function"&&OR(t),un&&typeof un.setStrictMode=="function")try{un.setStrictMode($l,t)}catch{}}var cn=Math.clz32?Math.clz32:zR,NR=Math.log,VR=Math.LN2;function zR(t){return t>>>=0,t===0?32:31-(NR(t)/VR|0)|0}var _c=256,Bc=262144,Uc=4194304;function yr(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function If(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,r=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var s=i&134217727;return s!==0?(i=s&~r,i!==0?o=yr(i):(a&=s,a!==0?o=yr(a):n||(n=s&~t,n!==0&&(o=yr(n))))):(s=i&~r,s!==0?o=yr(s):a!==0?o=yr(a):n||(n=i&~t,n!==0&&(o=yr(n)))),o===0?0:e!==0&&e!==o&&(e&r)===0&&(r=o&-o,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:o}function tu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Bb(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-cn(n),o=1<<i;e|=t[i],n&=~o}return e}function LR(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ub(){var t=Uc;return Uc<<=1,(Uc&62914560)===0&&(Uc=4194304),t}function Np(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function eu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _R(t,e,n,i,o,r){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,u=t.hiddenUpdates;for(n=a&~n;0<n;){var c=31-cn(n),f=1<<c;s[c]=0,l[c]=-1;var m=u[c];if(m!==null)for(u[c]=null,c=0;c<m.length;c++){var d=m[c];d!==null&&(d.lane&=-536870913)}n&=~f}i!==0&&Hb(t,i,0),r!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=r&~(a&~e))}function Hb(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-cn(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function Pb(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-cn(n),o=1<<i;o&e|t[i]&e&&(t[i]|=e),n&=~o}}function Gb(t,e){var n=e&-e;return n=(n&42)!==0?1:vg(n),(n&(t.suspendedLanes|e))!==0?0:n}function vg(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function xg(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function jb(){var t=St.p;return t!==0?t:(t=window.event,t===void 0?32:TT(t.type))}function Kv(t,e){var n=St.p;try{return St.p=t,e()}finally{St.p=n}}var Xi=Math.random().toString(36).slice(2),Se="__reactFiber$"+Xi,We="__reactProps$"+Xi,fs="__reactContainer$"+Xi,Zv="__reactEvents$"+Xi,BR="__reactListeners$"+Xi,UR="__reactHandles$"+Xi,Qv="__reactResources$"+Xi,nu="__reactMarker$"+Xi,Cf="__reactLoad$"+Xi;function Jf(t){delete t[Se],delete t[We],delete t[BR],delete t[UR]}function br(t){var e;if(e=t[Se])return e;for(var n=t.parentNode;n;){if(e=n[fs]||n[Se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=fb(t);t!==null;){if(n=t[Se])return n;t=fb(t)}return e}t=n,n=t.parentNode}return null}function ms(t){if(t=t[Se]||t[fs]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function bl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(R(33))}function Ya(t){var e=t[Qv];return e||(e=t[Qv]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function pe(t){t[nu]=!0}function Yb(t){t[Cf]=void 0}var qb=new Set,kb={};function Br(t,e){$a(t,e),$a(t+"Capture",e)}function $a(t,e){for(kb[t]=e,t=0;t<e.length;t++)qb.add(e[t])}var HR=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]*$"),Fv={},Iv={};function PR(t){return ph.call(Iv,t)?!0:ph.call(Fv,t)?!1:HR.test(t)?Iv[t]=!0:(Fv[t]=!0,!1)}var xt=!1;function Jv(){var t=xt;return xt=!1,t}function ef(t,e,n){if(PR(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Hc(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,n)}}function zi(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,i)}}function on(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xb(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function GR(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,r=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,r.call(this,a)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function hh(t){if(!t._valueTracker){var e=Xb(t)?"checked":"value";t._valueTracker=GR(t,e,""+t[e])}}function Kb(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Xb(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}var jR=/[\n"\\]/g;function wn(t){return t.replace(jR,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gh(t,e,n,i,o,r,a,s){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+on(e)):t.value!==""+on(e)&&(t.value=""+on(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?a==="number"&&t.value==e?Vp(t,on(t.value)):Vp(t,on(e)):n!=null?Vp(t,on(n)):i!=null&&t.removeAttribute("value"),o==null&&r!=null&&(t.defaultChecked=!!r),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+on(s):t.removeAttribute("name")}function Zb(t,e,n,i,o,r,a,s){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){hh(t);return}n=n!=null?""+on(n):"",e=e!=null?""+on(e):n,s||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=s?t.checked:!!i,t.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a),hh(t)}function Vp(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function qa(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&i&&(t[n].defaultSelected=!0)}else{for(n=""+on(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Qb(t,e,n){if(e!=null&&(e=""+on(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+on(n):""}function Fb(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(R(92));if(xl(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=on(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),hh(t)}function ts(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var YR=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 Wv(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||YR.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ib(t,e,n){if(e!=null&&typeof e!="object")throw Error(R(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="",xt=!0);for(var o in e)i=e[o],e.hasOwnProperty(o)&&n[o]!==i&&(Wv(t,o,i),xt=!0)}else for(var r in e)e.hasOwnProperty(r)&&Wv(t,r,e[r])}function bg(t){if(t.indexOf("-")===-1)return!1;switch(t){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 qR=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"]]),kR=/^[\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 nf(t){return kR.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ri(){}var yh=null;function Sg(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var za=null,ka=null;function $v(t){var e=ms(t);if(e&&(t=e.stateNode)){var n=t[We]||null;t:switch(t=e.stateNode,e.type){case"input":if(gh(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+wn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=i[We]||null;if(!o)throw Error(R(90));gh(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Kb(i)}break t;case"textarea":Qb(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&qa(t,!!n.multiple,e,!1)}}}var zp=!1;function Jb(t,e,n){if(zp)return t(e,n);zp=!0;try{var i=t(e);return i}finally{if(zp=!1,(za!==null||ka!==null)&&(fm(),za&&(e=za,t=ka,ka=za=null,$v(e),t)))for(e=0;e<t.length;e++)$v(t[e])}}function Ul(t,e){var n=t.stateNode;if(n===null)return null;var i=n[We]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(R(231,e,typeof n));return n}var Pi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vh=!1;if(Pi)try{Aa={},Object.defineProperty(Aa,"passive",{get:function(){vh=!0}}),window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{vh=!1}var Aa,Mo=null,Tg=null,of=null;function Wb(){if(of)return of;var t,e=Tg,n=e.length,i,o="value"in Mo?Mo.value:Mo.textContent,r=o.length;for(t=0;t<n&&e[t]===o[t];t++);var a=n-t;for(i=1;i<=a&&e[n-i]===o[r-i];i++);return of=o.slice(t,1<i?1-i:void 0)}function rf(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Pc(){return!0}function tx(){return!1}function Pe(t){function e(n,i,o,r,a){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=r,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(r):r[s]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Pc:tx,this.isPropagationStopped=tx,this}return Ot(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pc)},persist:function(){},isPersistent:Pc}),e}var Zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wf=Pe(Zo),iu=Ot({},Zo,{view:0,detail:0}),XR=Pe(iu),Lp,_p,dl,$f=Ot({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eg,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==dl&&(dl&&t.type==="mousemove"?(Lp=t.screenX-dl.screenX,_p=t.screenY-dl.screenY):_p=Lp=0,dl=t),Lp)},movementY:function(t){return"movementY"in t?t.movementY:_p}}),ex=Pe($f),KR=Ot({},$f,{dataTransfer:0}),ZR=Pe(KR),QR=Ot({},iu,{relatedTarget:0}),Bp=Pe(QR),FR=Ot({},Zo,{animationName:0,elapsedTime:0,pseudoElement:0}),IR=Pe(FR),JR=Ot({},Zo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),WR=Pe(JR),$R=Ot({},Zo,{data:0}),nx=Pe($R),tO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eO={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"},nO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iO(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nO[t])?!!e[t]:!1}function Eg(){return iO}var oO=Ot({},iu,{key:function(t){if(t.key){var e=tO[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=rf(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?eO[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eg,charCode:function(t){return t.type==="keypress"?rf(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?rf(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),rO=Pe(oO),aO=Ot({},$f,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ix=Pe(aO),sO=Ot({},Zo,{submitter:0}),lO=Pe(sO),uO=Ot({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eg}),cO=Pe(uO),fO=Ot({},Zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),mO=Pe(fO),dO=Ot({},$f,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),pO=Pe(dO),hO=Ot({},Zo,{newState:0,oldState:0,source:0}),gO=Pe(hO),yO=[9,13,27,32],Ag=Pi&&"CompositionEvent"in window,El=null;Pi&&"documentMode"in document&&(El=document.documentMode);var vO=Pi&&"TextEvent"in window&&!El,$b=Pi&&(!Ag||El&&8<El&&11>=El),ox=" ",rx=!1;function t1(t,e){switch(t){case"keyup":return yO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function e1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function xO(t,e){switch(t){case"compositionend":return e1(e);case"keypress":return e.which!==32?null:(rx=!0,ox);case"textInput":return t=e.data,t===ox&&rx?null:t;default:return null}}function bO(t,e){if(La)return t==="compositionend"||!Ag&&t1(t,e)?(t=Wb(),of=Tg=Mo=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return $b&&e.locale!=="ko"?null:e.data;default:return null}}var SO={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 ax(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!SO[t.type]:e==="textarea"}function n1(t,e,n,i){za?ka?ka.push(i):ka=[i]:za=i,e=Zf(e,"onChange"),0<e.length&&(n=new Wf("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Al=null,Hl=null;function TO(t){JS(t,0)}function tm(t){var e=bl(t);if(Kb(e))return t}function sx(t,e){if(t==="change")return e}var i1=!1;Pi&&(Pi?(jc="oninput"in document,jc||(Up=document.createElement("div"),Up.setAttribute("oninput","return;"),jc=typeof Up.oninput=="function"),Gc=jc):Gc=!1,i1=Gc&&(!document.documentMode||9<document.documentMode));var Gc,jc,Up;function lx(){Al&&(Al.detachEvent("onpropertychange",o1),Hl=Al=null)}function o1(t){if(t.propertyName==="value"&&tm(Hl)){var e=[];n1(e,Hl,t,Sg(t)),Jb(TO,e)}}function EO(t,e,n){t==="focusin"?(lx(),Al=e,Hl=n,Al.attachEvent("onpropertychange",o1)):t==="focusout"&&lx()}function AO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return tm(Hl)}function CO(t,e){if(t==="click")return tm(e)}function wO(t,e){if(t==="input"||t==="change")return tm(e)}function MO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var mn=typeof Object.is=="function"?Object.is:MO;function Pl(t,e){if(mn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!ph.call(e,o)||!mn(t[o],e[o]))return!1}return!0}function xh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ux(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cx(t,e){var n=ux(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ux(n)}}function r1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?r1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function a1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=xh(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=xh(t.document)}return e}function Cg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var DO=Pi&&"documentMode"in document&&11>=document.documentMode,_a=null,bh=null,Cl=null,Sh=!1;function fx(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sh||_a==null||_a!==xh(i)||(i=_a,"selectionStart"in i&&Cg(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Cl&&Pl(Cl,i)||(Cl=i,i=Zf(bh,"onSelect"),0<i.length&&(e=new Wf("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=_a)))}function hr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ba={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},Hp={},s1={};Pi&&(s1=document.createElement("div").style,"AnimationEvent"in window||(delete Ba.animationend.animation,delete Ba.animationiteration.animation,delete Ba.animationstart.animation),"TransitionEvent"in window||delete Ba.transitionend.transition);function Ur(t){if(Hp[t])return Hp[t];if(!Ba[t])return t;var e=Ba[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in s1)return Hp[t]=e[n];return t}var l1=Ur("animationend"),u1=Ur("animationiteration"),c1=Ur("animationstart"),RO=Ur("transitionrun"),OO=Ur("transitionstart"),NO=Ur("transitioncancel"),f1=Ur("transitionend"),m1=new Map,Th="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(" ");Th.push("scrollEnd");function qn(t,e){m1.set(t,e),Br(e,[t])}var VO=0;function Gi(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Yn.identifierPrefix;var n=VO++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function mx(t){if(t==null||typeof t=="string")return t;var e=null,n=Ja;if(n!==null)for(var i=0;i<n.length;i++){var o=t[n[i]];if(o!=null){if(o==="none")return"none";e=e==null?o:e+(" "+o)}}return e??t.default}function Ki(t,e){return t=mx(t),e=mx(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var wf=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},En=[],Ua=0,wg=0;function em(){for(var t=Ua,e=wg=Ua=0;e<t;){var n=En[e];En[e++]=null;var i=En[e];En[e++]=null;var o=En[e];En[e++]=null;var r=En[e];if(En[e++]=null,i!==null&&o!==null){var a=i.pending;a===null?o.next=o:(o.next=a.next,a.next=o),i.pending=o}r!==0&&d1(n,o,r)}}function nm(t,e,n,i){En[Ua++]=t,En[Ua++]=e,En[Ua++]=n,En[Ua++]=i,wg|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Mg(t,e,n,i){return nm(t,e,n,i),Mf(t)}function Hr(t,e){return nm(t,null,null,e),Mf(t)}function d1(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var o=!1,r=t.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(o=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,o&&e!==null&&(o=31-cn(n),t=r.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=n|536870912),r):null}function Mf(t){if(50<_l)throw _l=0,hf=null,Error(R(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ha={};function zO(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(t,e,n,i){return new zO(t,e,n,i)}function Dg(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ui(t,e){var n=t.alternate;return n===null?(n=Fe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&1206910976,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function p1(t,e){t.flags&=1206910978;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function af(t,e,n,i,o,r){var a=0;if(i=t,typeof i=="function")Dg(i)&&(a=1);else if(typeof i=="string")a=rV(t,n,li.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(i){case uh:return t=Fe(31,n,e,o),t.elementType=uh,t.lanes=r,t;case Na:return Er(n.children,o,r,e);case Nb:a=8,o|=24;break;case ah:return t=Fe(12,n,e,o|2),t.elementType=ah,t.lanes=r,t;case sh:return t=Fe(13,n,e,o),t.elementType=sh,t.lanes=r,t;case lh:return t=Fe(19,n,e,o),t.elementType=lh,t.lanes=r,t;case bR:case ch:return t=o|32,t=Fe(30,n,e,t),t.elementType=ch,t.lanes=r,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case oi:a=10;break t;case Vb:a=9;break t;case hg:a=11;break t;case gg:a=14;break t;case Eo:a=16,i=null;break t}a=29,n=Error(R(130,t===null?"null":typeof t,"")),i=null}return e=Fe(a,n,e,o),e.elementType=t,e.type=i,e.lanes=r,e}function Er(t,e,n,i){return t=Fe(7,t,i,e),t.lanes=n,t}function Pp(t,e,n){return t=Fe(6,t,null,e),t.lanes=n,t}function h1(t){var e=Fe(18,null,null,0);return e.stateNode=t,e}function Gp(t,e,n){return e=Fe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var dx=new WeakMap;function Mn(t,e){if(typeof t=="object"&&t!==null){var n=dx.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Xv(e)},dx.set(t,e),e)}return{value:t,source:e,stack:Xv(e)}}var Pa=[],Ga=0,Df=null,Gl=0,An=[],Cn=0,Yo=null,ai=1,si="";function _i(t,e){Pa[Ga++]=Gl,Pa[Ga++]=Df,Df=t,Gl=e}function g1(t,e,n){An[Cn++]=ai,An[Cn++]=si,An[Cn++]=Yo,Yo=t;var i=ai;t=si;var o=32-cn(i)-1;i&=~(1<<o),n+=1;var r=32-cn(e)+o;if(30<r){var a=o-o%5;r=(i&(1<<a)-1).toString(32),i>>=a,o-=a,ai=1<<32-cn(e)+o|n<<o|i,si=r+t}else ai=1<<r|n<<o|i,si=t}function im(t){t.return!==null&&(_i(t,1),g1(t,1,0))}function Rg(t){for(;t===Df;)Df=Pa[--Ga],Pa[Ga]=null,Gl=Pa[--Ga],Pa[Ga]=null;for(;t===Yo;)Yo=An[--Cn],An[Cn]=null,si=An[--Cn],An[Cn]=null,ai=An[--Cn],An[Cn]=null}function y1(t,e){An[Cn++]=ai,An[Cn++]=si,An[Cn++]=Yo,ai=e.id,si=e.overflow,Yo=t}var he=null,Lt=null,mt=!1,zo=null,Dn=!1,Eh=Error(R(519));function qo(t){var e=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(Mn(e,t)),Eh}function px(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[Se]=t,e[We]=i,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<Xl.length;n++)pt(Xl[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Zb(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Fb(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||$S(e.textContent,n)?(i.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),i.onScroll!=null&&pt("scroll",e),i.onScrollEnd!=null&&pt("scrollend",e),i.onClick!=null&&(e.onclick=ri),e=!0):e=!1,e||qo(t,!0)}function Rf(t){for(he=t.return;he;)switch(he.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:he=he.return}}function Ca(t){if(t!==he)return!1;if(!mt)return Rf(t),mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||sg(t.type,t.memoizedProps)),n=!n),n&&Lt&&qo(t),Rf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));Lt=cb(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));Lt=cb(t)}else e===27?(e=Lt,Qo(t.type)?(t=fg,fg=null,Lt=t):Lt=e):Lt=he?Rn(t.stateNode.nextSibling):null;return!0}function Mr(){Lt=he=null,mt=!1}function jp(){var t=zo;return t!==null&&(Ze===null?Ze=t:Ze.push.apply(Ze,t),zo=null),t}function jl(t){zo===null?zo=[t]:zo.push(t)}var Ah=fi(null),Pr=null,Bi=null;function Do(t,e,n){_t(Ah,e._currentValue),e._currentValue=n}function Hi(t){t._currentValue=Ah.current,Ee(Ah)}function sf(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Ch(t,e,n,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var r=o.dependencies;if(r!==null){var a=o.child;r=r.firstContext;t:for(;r!==null;){var s=r;r=o;for(var l=0;l<e.length;l++)if(s.context===e[l]){r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),sf(r.return,n,t),i||(a=null);break t}r=s.next}}else if(o.tag===18){if(a=o.return,a===null)throw Error(R(341));a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),sf(a,n,t),a=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sf(o.return,n,t),a=o.child,a=a!==null?a.sibling:null):a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}}function Dr(t,e,n,i){t=null;for(var o=e,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var a=o.alternate;if(a===null)throw Error(R(387));if(a=a.memoizedProps,a!==null){var s=o.type;mn(o.pendingProps.value,a.value)||(t!==null?t.push(s):t=[s])}}else if(o===Sf.current){if(a=o.alternate,a===null)throw Error(R(387));a.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(ls):t=[ls])}o=o.return}return t!==null&&Ch(e,t,n,i),e.flags|=262144,t!==null}function Of(t){for(t=t.firstContext;t!==null;){if(!mn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Rr(t){Pr=t,Bi=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Te(t){return v1(Pr,t)}function Yc(t,e){return Pr===null&&Rr(t),v1(t,e)}function v1(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Bi===null){if(t===null)throw Error(R(308));Bi=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Bi=Bi.next=e;return n}var LO=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},_O=ae.unstable_scheduleCallback,BO=ae.unstable_NormalPriority,$t={$$typeof:oi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Og(){return{controller:new LO,data:new Map,refCount:0}}function ou(t){t.refCount--,t.refCount===0&&_O(BO,function(){t.controller.abort()})}function hx(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var i=e[t];n.indexOf(i)===-1&&n.push(i)}}}var Sl=null;function UO(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var wl=null,wh=0,Or=0,Xa=null;function HO(t,e){if(wl===null){var n=wl=[];wh=0,Or=oy(),Xa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return wh++,e.then(gx,gx),e}function gx(){if(--wh===0&&(Sl=null,wl!==null)){Xa!==null&&(Xa.status="fulfilled");var t=wl;wl=null,Or=0,Xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function PO(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var yx=nt.S;nt.S=function(t,e){if(BS=ln(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&HO(t,e),Sl!==null)for(var n=rs;n!==null;)hx(n,Sl),n=n.next;if(n=t.types,n!==null){for(var i=rs;i!==null;)hx(i,n),i=i.next;if(Or!==0){i=Sl,i===null&&(i=Sl=[]);for(var o=0;o<n.length;o++){var r=n[o];i.indexOf(r)===-1&&i.push(r)}}}yx!==null&&yx(t,e)};var Ar=fi(null);function Ng(){var t=Ar.current;return t!==null?t:Rt.pooledCache}function lf(t,e){e===null?_t(Ar,Ar.current):_t(Ar,e.pool)}function x1(){var t=Ng();return t===null?null:{parent:$t._currentValue,pool:t}}var ds=Error(R(460)),Vg=Error(R(474)),om=Error(R(542)),Nf={then:function(){}};function vx(t){return t=t.status,t==="fulfilled"||t==="rejected"}function b1(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ri,ri),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bx(t),t===void 0&&!("reason"in e)?Error(R(600)):t;default:if(typeof e.status=="string")e.then(ri,ri);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(R(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bx(t),t}throw Cr=e,ds}}function vr(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Cr=n,ds):n}}var Cr=null;function xx(){if(Cr===null)throw Error(R(459));var t=Cr;return Cr=null,t}function bx(t){if(t===ds||t===om)throw Error(R(483))}var Ka=null,Yl=0;function qc(t){var e=Yl;return Yl+=1,Ka===null&&(Ka=[]),b1(Ka,t,e)}function bo(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function kc(t,e){throw e.$$typeof===xR?Error(R(525)):(t=Object.prototype.toString.call(e),Error(R(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function S1(t){function e(p,h){if(t){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function n(p,h){if(!t)return null;for(;h!==null;)e(p,h),h=h.sibling;return null}function i(p){for(var h=new Map;p!==null;)p.key===null?h.set(p.index,p):h.set(p.key,p),p=p.sibling;return h}function o(p,h){return p=Ui(p,h),p.index=0,p.sibling=null,p}function r(p,h,y){return p.index=y,t?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=134217730,h)):(p.flags|=1048576,h)}function a(p){return t&&p.alternate===null&&(p.flags|=134217730),p}function s(p,h,y,b){return h===null||h.tag!==6?(h=Pp(y,p.mode,b),h.return=p,h):(h=o(h,y),h.return=p,h)}function l(p,h,y,b){var E=y.type;return E===Na?(p=c(p,h,y.props.children,b,y.key),bo(p,y),p):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Eo&&vr(E)===h.type)?(h=o(h,y.props),bo(h,y),h.return=p,h):(h=af(y.type,y.key,y.props,null,p.mode,b),bo(h,y),h.return=p,h)}function u(p,h,y,b){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=Gp(y,p.mode,b),h.return=p,h):(h=o(h,y.children||[]),h.return=p,h)}function c(p,h,y,b,E){return h===null||h.tag!==7?(h=Er(y,p.mode,b,E),h.return=p,h):(h=o(h,y),h.return=p,h)}function f(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Pp(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Lc:return y=af(h.type,h.key,h.props,null,p.mode,y),bo(y,h),y.return=p,y;case vl:return h=Gp(h,p.mode,y),h.return=p,h;case Eo:return h=vr(h),f(p,h,y)}if(xl(h)||ml(h))return h=Er(h,p.mode,y,null),h.return=p,h;if(typeof h.then=="function")return f(p,qc(h),y);if(h.$$typeof===oi)return f(p,Yc(p,h),y);kc(p,h)}return null}function m(p,h,y,b){var E=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return E!==null?null:s(p,h,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Lc:return y.key===E?l(p,h,y,b):null;case vl:return y.key===E?u(p,h,y,b):null;case Eo:return y=vr(y),m(p,h,y,b)}if(xl(y)||ml(y))return E!==null?null:c(p,h,y,b,null);if(typeof y.then=="function")return m(p,h,qc(y),b);if(y.$$typeof===oi)return m(p,h,Yc(p,y),b);kc(p,y)}return null}function d(p,h,y,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return p=p.get(y)||null,s(h,p,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Lc:return p=p.get(b.key===null?y:b.key)||null,l(h,p,b,E);case vl:return p=p.get(b.key===null?y:b.key)||null,u(h,p,b,E);case Eo:return b=vr(b),d(p,h,y,b,E)}if(xl(b)||ml(b))return p=p.get(y)||null,c(h,p,b,E,null);if(typeof b.then=="function")return d(p,h,y,qc(b),E);if(b.$$typeof===oi)return d(p,h,y,Yc(h,b),E);kc(h,b)}return null}function g(p,h,y,b){for(var E=null,C=null,T=h,S=h=0,M=null;T!==null&&S<y.length;S++){T.index>S?(M=T,T=null):M=T.sibling;var D=m(p,T,y[S],b);if(D===null){T===null&&(T=M);break}t&&T&&D.alternate===null&&e(p,T),h=r(D,h,S),C===null?E=D:C.sibling=D,C=D,T=M}if(S===y.length)return n(p,T),mt&&_i(p,S),E;if(T===null){for(;S<y.length;S++)T=f(p,y[S],b),T!==null&&(h=r(T,h,S),C===null?E=T:C.sibling=T,C=T);return mt&&_i(p,S),E}for(T=i(T);S<y.length;S++)M=d(T,p,S,y[S],b),M!==null&&(t&&(D=M.alternate,D!==null&&T.delete(D.key===null?S:D.key)),h=r(M,h,S),C===null?E=M:C.sibling=M,C=M);return t&&T.forEach(function(L){return e(p,L)}),mt&&_i(p,S),E}function v(p,h,y,b){if(y==null)throw Error(R(151));for(var E=null,C=null,T=h,S=h=0,M=null,D=y.next();T!==null&&!D.done;S++,D=y.next()){T.index>S?(M=T,T=null):M=T.sibling;var L=m(p,T,D.value,b);if(L===null){T===null&&(T=M);break}t&&T&&L.alternate===null&&e(p,T),h=r(L,h,S),C===null?E=L:C.sibling=L,C=L,T=M}if(D.done)return n(p,T),mt&&_i(p,S),E;if(T===null){for(;!D.done;S++,D=y.next())D=f(p,D.value,b),D!==null&&(h=r(D,h,S),C===null?E=D:C.sibling=D,C=D);return mt&&_i(p,S),E}for(T=i(T);!D.done;S++,D=y.next())D=d(T,p,S,D.value,b),D!==null&&(t&&(M=D.alternate,M!==null&&T.delete(M.key===null?S:M.key)),h=r(D,h,S),C===null?E=D:C.sibling=D,C=D);return t&&T.forEach(function(P){return e(p,P)}),mt&&_i(p,S),E}function x(p,h,y,b){if(typeof y=="object"&&y!==null&&y.type===Na&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Lc:t:{for(var E=y.key;h!==null;){if(h.key===E){if(E=y.type,E===Na){if(h.tag===7){n(p,h.sibling),b=o(h,y.props.children),bo(b,y),b.return=p,p=b;break t}}else if(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Eo&&vr(E)===h.type){n(p,h.sibling),b=o(h,y.props),bo(b,y),b.return=p,p=b;break t}n(p,h);break}else e(p,h);h=h.sibling}y.type===Na?(b=Er(y.props.children,p.mode,b,y.key),bo(b,y),b.return=p,p=b):(b=af(y.type,y.key,y.props,null,p.mode,b),bo(b,y),b.return=p,p=b)}return a(p);case vl:t:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),b=o(h,y.children||[]),b.return=p,p=b;break t}else{n(p,h);break}else e(p,h);h=h.sibling}b=Gp(y,p.mode,b),b.return=p,p=b}return a(p);case Eo:return y=vr(y),x(p,h,y,b)}if(xl(y))return g(p,h,y,b);if(ml(y)){if(E=ml(y),typeof E!="function")throw Error(R(150));return y=E.call(y),v(p,h,y,b)}if(typeof y.then=="function")return x(p,h,qc(y),b);if(y.$$typeof===oi)return x(p,h,Yc(p,y),b);kc(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),b=o(h,y),b.return=p,p=b):(n(p,h),b=Pp(y,p.mode,b),b.return=p,p=b),a(p)):n(p,h)}return function(p,h,y,b){try{Yl=0;var E=x(p,h,y,b);return Ka=null,E}catch(T){if(T===ds||T===om)throw T;var C=Fe(29,T,null,p.mode);return C.lanes=b,C.return=p,C}}}var Nr=S1(!0),T1=S1(!1),Ao=!1;function zg(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mh(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Lo(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function _o(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(bt&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=Mf(t),d1(t,null,n),e}return nm(t,i,e,n),Mf(t)}function Ml(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Pb(t,n)}}function Yp(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?o=r=a:r=r.next=a,n=n.next}while(n!==null);r===null?o=r=e:r=r.next=e}else o=r=e;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Dh=!1;function Dl(){if(Dh){var t=Xa;if(t!==null)throw t}}function Rl(t,e,n,i){Dh=!1;var o=t.updateQueue;Ao=!1;var r=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?r=u:a.next=u,a=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(r!==null){var f=o.baseState;a=0,c=u=l=null,s=r;do{var m=s.lane&-536870913,d=m!==s.lane;if(d?(gt&m)===m:(i&m)===m){m!==0&&m===Or&&(Dh=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var g=t,v=s;m=e;var x=n;switch(v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(x,f,m);break t}f=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,m=typeof g=="function"?g.call(x,f,m):g,m==null)break t;f=Ot({},f,m);break t;case 2:Ao=!0}}m=s.callback,m!==null&&(t.flags|=64,d&&(t.flags|=8192),d=o.callbacks,d===null?o.callbacks=[m]:d.push(m))}else d={lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,a|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,r===null&&(o.shared.lanes=0),Ko|=a,t.lanes=a,t.memoizedState=f}}function E1(t,e){if(typeof t!="function")throw Error(R(191,t));t.call(e)}function A1(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)E1(n[t],e)}var ko=fi(null),Vf=fi(0);function Sx(t,e){t=ki,_t(Vf,t),_t(ko,e),ki=t|e.baseLanes}function Rh(){_t(Vf,ki),_t(ko,ko.current)}function Lg(){ki=Vf.current,Ee(ko),Ee(Vf)}var we=fi(null),Ve=null;function Bo(t){var e=t.alternate;_t(Ae,Ae.current&1),_t(we,t),Ve===null&&(e===null||ko.current!==null||e.memoizedState!==null)&&(Ve=t)}function Oh(t){_t(Ae,Ae.current),_t(we,t),Ve===null&&(Ve=t)}function C1(t){t.tag===22?(_t(Ae,Ae.current),_t(we,t),Ve===null&&(Ve=t)):Uo()}function Uo(){_t(Ae,Ae.current),_t(we,we.current)}function rn(t){Ee(we),Ve===t&&(Ve=null),Ee(Ae)}var Ae=fi(0);function ql(t,e){_t(we,we.current),_t(Ae,e)}function _g(t){Ee(Ae),Ee(we),Ve===t&&(Ve=null)}function zf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cg(n)||ly(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ji=0,ft=null,Mt=null,Wt=null,Lf=!1,Za=!1,Vr=!1,_f=0,kl=0,Qa=null,GO=0;function qt(){throw Error(R(321))}function Bg(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!mn(t[n],e[n]))return!1;return!0}function Ug(t,e,n,i,o,r){return ji=r,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,nt.H=t===null||t.memoizedState===null?nS:iS,Vr=!1,r=n(i,o),Vr=!1,Za&&(r=M1(e,n,i,o)),w1(t),r}function w1(t){nt.H=Bf;var e=Mt!==null&&Mt.next!==null;if(ji=0,Wt=Mt=ft=null,Lf=!1,kl=0,Qa=null,e)throw Error(R(300));t===null||te||(t=t.dependencies,t!==null&&Of(t)&&(te=!0))}function M1(t,e,n,i){ft=t;var o=0;do{if(Za&&(Qa=null),kl=0,Za=!1,25<=o)throw Error(R(301));if(o+=1,Wt=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}nt.H=QO,r=e(n,i)}while(Za);return r}function jO(){var t=nt.H,e=t.useState()[0];return e=typeof e.then=="function"?ru(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Hg(){var t=_f!==0;return _f=0,t}function Pg(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Gg(t){if(Lf){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Lf=!1}ji=0,Wt=Mt=ft=null,Za=!1,kl=_f=0,Qa=null}function He(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?ft.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function Kt(){if(Mt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Wt===null?ft.memoizedState:Wt.next;if(e!==null)Wt=e,Mt=t;else{if(t===null)throw ft.alternate===null?Error(R(467)):Error(R(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Wt===null?ft.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}function rm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ru(t){var e=kl;return kl+=1,Qa===null&&(Qa=[]),t=b1(Qa,t,e),e=ft,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,nt.H=e===null||e.memoizedState===null?nS:iS),t}function am(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ru(t);if(t.$$typeof===TR)return;if(t.$$typeof===oi)return Te(t)}throw Error(R(438,String(t)))}function jg(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ft.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=rm(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=SR;return e.index++,n}function Yi(t,e){return typeof e=="function"?e(t):e}function uf(t){var e=Kt();return Yg(e,Mt,t)}function Yg(t,e,n){var i=t.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var o=t.baseQueue,r=i.pending;if(r!==null){if(o!==null){var a=o.next;o.next=r.next,r.next=a}e.baseQueue=o=r,i.pending=null}if(r=t.baseState,o===null)t.memoizedState=r;else{e=o.next;var s=a=null,l=null,u=e,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(gt&f)===f:(ji&f)===f){var m=u.revertLane;if(m===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Or&&(c=!0);else if((ji&m)===m){u=u.next,m===Or&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,a=r):l=l.next=f,ft.lanes|=m,Ko|=m;f=u.action,Vr&&n(r,f),r=u.hasEagerState?u.eagerState:n(r,f)}else m={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=m,a=r):l=l.next=m,ft.lanes|=f,Ko|=f;u=u.next}while(u!==null&&u!==e);if(l===null?a=r:l.next=s,!mn(r,t.memoizedState)&&(te=!0,c&&(n=Xa,n!==null)))throw n;t.memoizedState=r,t.baseState=a,t.baseQueue=l,i.lastRenderedState=r}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function qp(t){var e=Kt(),n=e.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=t;var i=n.dispatch,o=n.pending,r=e.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do r=t(r,a.action),a=a.next;while(a!==o);mn(r,e.memoizedState)||(te=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function D1(t,e,n){var i=ft,o=Kt(),r=mt;if(r){if(n===void 0)throw Error(R(407));n=n()}else n=e();var a=!mn((Mt||o).memoizedState,n);if(a&&(o.memoizedState=n,te=!0),o=o.queue,qg(N1.bind(null,i,o,t),[t]),t=o.getSnapshot!==e||a||Wt!==null&&(Wt.memoizedState.tag&1)!==0,es(t?9:8,{destroy:void 0},O1.bind(null,i,o,n,e),null),t){if(i.flags|=2048,Rt===null)throw Error(R(349));r||(ji&127)!==0||R1(i,e,n)}return n}function R1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=rm(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function O1(t,e,n,i){e.value=n,e.getSnapshot=i,V1(e)&&z1(t)}function N1(t,e,n){return n(function(){V1(e)&&z1(t)})}function V1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!mn(t,n)}catch{return!0}}function z1(t){var e=Hr(t,2);e!==null&&Ie(e,t,2)}function Nh(t){var e=He();if(typeof t=="function"){var n=t;if(t=n(),Vr){wo(!0);try{n()}finally{wo(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:t},e}function L1(t,e,n,i){return t.baseState=n,Yg(t,Mt,typeof i=="function"?i:Yi)}function YO(t,e,n,i,o){if(lm(t))throw Error(R(485));if(t=e.action,t!==null){var r={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){r.listeners.push(a)}};nt.T!==null?n(!0):r.isTransition=!1,i(r),n=e.pending,n===null?(r.next=e.pending=r,_1(e,r)):(r.next=n.next,e.pending=n.next=r)}}function _1(t,e){var n=e.action,i=e.payload,o=t.state;if(e.isTransition){var r=nt.T,a={};a.types=r!==null?r.types:null,nt.T=a;try{var s=n(o,i),l=nt.S;l!==null&&l(a,s),Tx(t,e,s)}catch(u){Vh(t,e,u)}finally{r!==null&&a.types!==null&&(r.types=a.types),nt.T=r}}else try{r=n(o,i),Tx(t,e,r)}catch(u){Vh(t,e,u)}}function Tx(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Ex(t,e,i)},function(i){return Vh(t,e,i)}):Ex(t,e,n)}function Ex(t,e,n){e.status="fulfilled",e.value=n,B1(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,_1(t,n)))}function Vh(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,B1(e),e=e.next;while(e!==i)}t.action=null}function B1(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function U1(t,e){return e}function Ax(t,e){if(mt){var n=Rt.formState;if(n!==null){t:{var i=ft;if(mt){if(Lt){e:{for(var o=Lt,r=Dn;o.nodeType!==8;){if(!r){o=null;break e}if(o=Rn(o.nextSibling),o===null){o=null;break e}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Lt=Rn(o.nextSibling),i=o.data==="F!";break t}}qo(i)}i=!1}i&&(e=n[0])}}return n=He(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U1,lastRenderedState:e},n.queue=i,n=$1.bind(null,ft,i),i.dispatch=n,i=Nh(!1),r=Zg.bind(null,ft,!1,i.queue),i=He(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,n=YO.bind(null,ft,o,r,n),o.dispatch=n,i.memoizedState=t,[e,n,!1]}function Cx(t){var e=Kt();return H1(e,Mt,t)}function H1(t,e,n){if(e=Yg(t,e,U1)[0],t=uf(Yi)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ru(e)}catch(a){throw a===ds?om:a}else i=e;e=Kt();var o=e.queue,r=o.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,es(9,{destroy:void 0},qO.bind(null,o,n),null)),[i,r,t]}function qO(t,e){t.action=e}function wx(t){var e=Kt(),n=Mt;if(n!==null)return H1(e,n,t);Kt(),e=e.memoizedState,n=Kt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function es(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ft.updateQueue,e===null&&(e=rm(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function P1(){return Kt().memoizedState}function cf(t,e,n,i){var o=He();ft.flags|=t,o.memoizedState=es(1|e,{destroy:void 0},n,i===void 0?null:i)}function sm(t,e,n,i){var o=Kt();i=i===void 0?null:i;var r=o.memoizedState.inst;Mt!==null&&i!==null&&Bg(i,Mt.memoizedState.deps)?o.memoizedState=es(e,r,n,i):(ft.flags|=t,o.memoizedState=es(1|e,r,n,i))}function Mx(t,e){cf(8390656,8,t,e)}function qg(t,e){sm(2048,8,t,e)}function kO(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=rm(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function G1(t){var e=Kt().memoizedState;return kO({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(R(440));return e.impl.apply(void 0,arguments)}}function j1(t,e){return sm(4,2,t,e)}function Y1(t,e){return sm(4,4,t,e)}function q1(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function k1(t,e,n){n=n!=null?n.concat([t]):null,sm(4,4,q1.bind(null,e,t),n)}function kg(){}function X1(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Bg(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function K1(t,e){var n=Kt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Bg(e,i[1]))return i[0];if(i=t(),Vr){wo(!0);try{t()}finally{wo(!1)}}return n.memoizedState=[i,e],i}function Xg(t,e,n){return n===void 0||(ji&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=HS(),ft.lanes|=t,Ko|=t,n)}function Z1(t,e,n,i){return mn(n,e)?n:ko.current!==null?(t=Xg(t,n,i),mn(t,e)||(te=!0),t):(ji&106)===0||(ji&1073741824)!==0&&(gt&261930)===0?(te=!0,t.memoizedState=n):(t=HS(),ft.lanes|=t,Ko|=t,e)}function Q1(t,e,n,i,o){var r=St.p;St.p=r!==0&&8>r?r:8;var a=nt.T,s={};s.types=a!==null?a.types:null,nt.T=s,Zg(t,!1,e,n);try{var l=o(),u=nt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=PO(l,i);Ol(t,e,c,fn(t))}else Ol(t,e,i,fn(t))}catch(f){Ol(t,e,{then:function(){},status:"rejected",reason:f},fn())}finally{St.p=r,a!==null&&s.types!==null&&(a.types=s.types),nt.T=a}}function XO(){}function zh(t,e,n,i){if(t.tag!==5)throw Error(R(476));var o=F1(t).queue;Q1(t,o,e,Tr,n===null?XO:function(){return I1(t),n(i)})}function F1(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Tr,baseState:Tr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:Tr},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function I1(t){var e=F1(t);e.next===null&&(e=t.alternate.memoizedState),Ol(t,e.next.queue,{},fn())}function Kg(){return Te(ls)}function J1(){return Kt().memoizedState}function W1(){return Kt().memoizedState}function KO(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=fn();t=Lo(n);var i=_o(e,t,n);i!==null&&(Ie(i,e,n),Ml(i,e,n)),e={cache:Og()},t.payload=e;return}e=e.return}}function ZO(t,e,n){var i=fn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lm(t)?tS(e,n):(n=Mg(t,e,n,i),n!==null&&(Ie(n,t,i),eS(n,e,i)))}function $1(t,e,n){var i=fn();Ol(t,e,n,i)}function Ol(t,e,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lm(t))tS(e,o);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var a=e.lastRenderedState,s=r(a,n);if(o.hasEagerState=!0,o.eagerState=s,mn(s,a))return nm(t,e,o,0),Rt===null&&em(),!1}catch{}if(n=Mg(t,e,o,i),n!==null)return Ie(n,t,i),eS(n,e,i),!0}return!1}function Zg(t,e,n,i){if(i={lane:2,revertLane:oy(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},lm(t)){if(e)throw Error(R(479))}else e=Mg(t,n,i,2),e!==null&&Ie(e,t,2)}function lm(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function tS(t,e){Za=Lf=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function eS(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Pb(t,n)}}var Bf={readContext:Te,use:am,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt,useEffectEvent:qt},nS={readContext:Te,use:am,useCallback:function(t,e){return He().memoizedState=[t,e===void 0?null:e],t},useContext:Te,useEffect:Mx,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,cf(4194308,4,q1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cf(4194308,4,t,e)},useInsertionEffect:function(t,e){cf(4,2,t,e)},useMemo:function(t,e){var n=He();e=e===void 0?null:e;var i=t();if(Vr){wo(!0);try{t()}finally{wo(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=He();if(n!==void 0){var o=n(e);if(Vr){wo(!0);try{n(e)}finally{wo(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=ZO.bind(null,ft,t),[i.memoizedState,t]},useRef:function(t){var e=He();return t={current:t},e.memoizedState=t},useState:function(t){t=Nh(t);var e=t.queue,n=$1.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:kg,useDeferredValue:function(t,e){var n=He();return Xg(n,t,e)},useTransition:function(){var t=Nh(!1);return t=Q1.bind(null,ft,t.queue,!0,!1),He().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ft,o=He();if(mt){if(n===void 0)throw Error(R(407));n=n()}else{if(n=e(),Rt===null)throw Error(R(349));(gt&127)!==0||R1(i,e,n)}o.memoizedState=n;var r={value:n,getSnapshot:e};return o.queue=r,Mx(N1.bind(null,i,r,t),[t]),i.flags|=2048,es(9,{destroy:void 0},O1.bind(null,i,r,n,e),null),n},useId:function(){var t=He(),e=Rt.identifierPrefix;if(mt){var n=si,i=ai;n=(i&~(1<<32-cn(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=_f++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=GO++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Kg,useFormState:Ax,useActionState:Ax,useOptimistic:function(t){var e=He();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Zg.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:jg,useCacheRefresh:function(){return He().memoizedState=KO.bind(null,ft)},useEffectEvent:function(t){var e=He(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},iS={readContext:Te,use:am,useCallback:X1,useContext:Te,useEffect:qg,useImperativeHandle:k1,useInsertionEffect:j1,useLayoutEffect:Y1,useMemo:K1,useReducer:uf,useRef:P1,useState:function(){return uf(Yi)},useDebugValue:kg,useDeferredValue:function(t,e){var n=Kt();return Z1(n,Mt.memoizedState,t,e)},useTransition:function(){var t=uf(Yi)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ru(t),e]},useSyncExternalStore:D1,useId:J1,useHostTransitionStatus:Kg,useFormState:Cx,useActionState:Cx,useOptimistic:function(t,e){var n=Kt();return L1(n,Mt,t,e)},useMemoCache:jg,useCacheRefresh:W1,useEffectEvent:G1},QO={readContext:Te,use:am,useCallback:X1,useContext:Te,useEffect:qg,useImperativeHandle:k1,useInsertionEffect:j1,useLayoutEffect:Y1,useMemo:K1,useReducer:qp,useRef:P1,useState:function(){return qp(Yi)},useDebugValue:kg,useDeferredValue:function(t,e){var n=Kt();return Mt===null?Xg(n,t,e):Z1(n,Mt.memoizedState,t,e)},useTransition:function(){var t=qp(Yi)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ru(t),e]},useSyncExternalStore:D1,useId:J1,useHostTransitionStatus:Kg,useFormState:wx,useActionState:wx,useOptimistic:function(t,e){var n=Kt();return Mt!==null?L1(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:jg,useCacheRefresh:W1,useEffectEvent:G1};function kp(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:Ot({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Lh={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=fn(),o=Lo(i);o.payload=e,n!=null&&(o.callback=n),e=_o(t,o,i),e!==null&&(Ie(e,t,i),Ml(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=fn(),o=Lo(i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=_o(t,o,i),e!==null&&(Ie(e,t,i),Ml(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=fn(),i=Lo(n);i.tag=2,e!=null&&(i.callback=e),e=_o(t,i,n),e!==null&&(Ie(e,t,n),Ml(e,t,n))}};function Dx(t,e,n,i,o,r,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,r,a):e.prototype&&e.prototype.isPureReactComponent?!Pl(n,i)||!Pl(o,r):!0}function Rx(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Lh.enqueueReplaceState(e,e.state,null)}function zr(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=Ot({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function oS(t){wf(t)}function rS(t){console.error(t)}function aS(t){wf(t)}function Uf(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Ox(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _h(t,e,n){return n=Lo(n),n.tag=3,n.payload={element:null},n.callback=function(){Uf(t,e)},n}function sS(t){return t=Lo(t),t.tag=3,t}function lS(t,e,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var r=i.value;t.payload=function(){return o(r)},t.callback=function(){Ox(e,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){Ox(e,n,i),typeof o!="function"&&(Ho===null?Ho=new Set([this]):Ho.add(this));var s=i.stack;this.componentDidCatch(i.value,{componentStack:s!==null?s:""})})}function FO(t,e,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Dr(e,n,o,!0),n=we.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ve===null?Xf():n.alternate===null&&kt===0&&(kt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===Nf?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Jp(t,i,o)),!1;case 22:return n.flags|=65536,i===Nf?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Jp(t,i,o)),!1}throw Error(R(435,n.tag))}return Jp(t,i,o),Xf(),!1}if(mt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==Eh&&(t=Error(R(422),{cause:i}),jl(Mn(t,n)))):(i!==Eh&&(e=Error(R(423),{cause:i}),jl(Mn(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=Mn(i,n),o=_h(t.stateNode,i,o),Yp(t,o),kt!==4&&(kt=2)),!1;var r=Error(R(520),{cause:i});if(r=Mn(r,n),Ll===null?Ll=[r]:Ll.push(r),kt!==4&&(kt=2),e===null)return!0;i=Mn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=_h(n.stateNode,i,t),Yp(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ho===null||!Ho.has(r))))return n.flags|=65536,o&=-o,n.lanes|=o,o=sS(o),lS(o,t,n,i),Yp(n,o),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Qg=Error(R(461)),te=!1;function oe(t,e,n,i){e.child=t===null?T1(e,null,n,i):Nr(e,t.child,n,i)}function Nx(t,e,n,i,o){n=n.render;var r=e.ref;if("ref"in i){var a={};for(var s in i)s!=="ref"&&(a[s]=i[s])}else a=i;return Rr(e),i=Ug(t,e,n,a,r,o),s=Hg(),t!==null&&!te?(Pg(t,e,o),qi(t,e,o)):(mt&&s&&im(e),e.flags|=1,oe(t,e,i,o),e.child)}function Vx(t,e,n,i,o){if(t===null){var r=n.type;return typeof r=="function"&&!Dg(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,uS(t,e,r,i,o)):(t=af(n.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Ig(t,o)){var a=r.memoizedProps;if(n=n.compare,n=n!==null?n:Pl,n(a,i)&&t.ref===e.ref)return qi(t,e,o)}return e.flags|=1,t=Ui(r,i),t.ref=e.ref,t.return=e,e.child=t}function uS(t,e,n,i,o){if(t!==null){var r=t.memoizedProps;if(Pl(r,i)&&t.ref===e.ref)if(te=!1,e.pendingProps=i=r,Ig(t,o))(t.flags&131072)!==0&&(te=!0);else return e.lanes=t.lanes,qi(t,e,o)}return Bh(t,e,n,i,o)}function cS(t,e,n,i){var o=i.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(i=e.child=t.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~r}else i=0,e.child=null;return zx(t,e,r,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&lf(e,r!==null?r.cachePool:null),r!==null?Sx(e,r):Rh(),C1(e);else return i=e.lanes=536870912,zx(t,e,r!==null?r.baseLanes|n:n,n,i)}else r!==null?(lf(e,r.cachePool),Sx(e,r),Uo(),e.memoizedState=null):(t!==null&&lf(e,null),Rh(),Uo());return oe(t,e,o,n),e.child}function Nl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function zx(t,e,n,i,o){var r=Ng();return r=r===null?null:{parent:$t._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&lf(e,null),Rh(),C1(e),t!==null&&Dr(t,e,i,!0),e.childLanes=o,null}function ff(t,e){return e=um({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Lx(t,e,n){return Nr(e,t.child,null,n),t=ff(e,e.pendingProps),t.flags|=2,rn(e),e.memoizedState=null,t}function IO(t,e,n){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(mt){if(i.mode==="hidden")return t=ff(e,i),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Nl(null,t);if(Oh(e),(t=Lt)?(t=cT(t,Dn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Yo!==null?{id:ai,overflow:si}:null,retryLane:536870912,hydrationErrors:null},n=h1(t),n.return=e,e.child=n,he=e,Lt=null)):t=null,t===null)throw qo(e);return e.lanes=536870912,null}return ff(e,i)}var r=t.memoizedState;if(r!==null){var a=r.dehydrated;if(Oh(e),o)if(e.flags&256)e.flags&=-257,e=Lx(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(R(558));else if(te||Dr(t,e,n,!1),o=(n&t.childLanes)!==0,te||o){if(ko.current===null){if(i=Rt,i!==null&&(a=Gb(i,n),a!==0&&a!==r.retryLane))throw r.retryLane=a,Hr(t,a),Ie(i,t,a),Qg;Xf()}e=Lx(t,e,n)}else t=r.treeContext,Lt=Rn(a.nextSibling),he=e,mt=!0,zo=null,Dn=!1,t!==null&&y1(e,t),e=ff(e,i),e.flags|=134221824;return e}return t=Ui(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ma(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Bh(t,e,n,i,o){return Rr(e),n=Ug(t,e,n,i,void 0,o),i=Hg(),t!==null&&!te?(Pg(t,e,o),qi(t,e,o)):(mt&&i&&im(e),e.flags|=1,oe(t,e,n,o),e.child)}function _x(t,e,n,i,o,r){return Rr(e),e.updateQueue=null,n=M1(e,i,n,o),w1(t),i=Hg(),t!==null&&!te?(Pg(t,e,r),qi(t,e,r)):(mt&&i&&im(e),e.flags|=1,oe(t,e,n,r),e.child)}function Bx(t,e,n,i,o){if(Rr(e),e.stateNode===null){var r=Ha,a=n.contextType;typeof a=="object"&&a!==null&&(r=Te(a)),r=new n(i,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Lh,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=i,r.state=e.memoizedState,r.refs={},zg(e),a=n.contextType,r.context=typeof a=="object"&&a!==null?Te(a):Ha,r.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(kp(e,n,a,i),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(a=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),a!==r.state&&Lh.enqueueReplaceState(r,r.state,null),Rl(e,i,r,o),Dl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){r=e.stateNode;var s=e.memoizedProps,l=zr(n,s);r.props=l;var u=r.context,c=n.contextType;a=Ha,typeof c=="object"&&c!==null&&(a=Te(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s||u!==a)&&Rx(e,r,i,a),Ao=!1;var m=e.memoizedState;r.state=m,Rl(e,i,r,o),Dl(),u=e.memoizedState,s||m!==u||Ao?(typeof f=="function"&&(kp(e,n,f,i),u=e.memoizedState),(l=Ao||Dx(e,n,l,i,m,u,a))?(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"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=u),r.props=i,r.state=u,r.context=a,i=l):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{r=e.stateNode,Mh(t,e),a=e.memoizedProps,c=zr(n,a),r.props=c,f=e.pendingProps,m=r.context,u=n.contextType,l=Ha,typeof u=="object"&&u!==null&&(l=Te(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==f||m!==l)&&Rx(e,r,i,l),Ao=!1,m=e.memoizedState,r.state=m,Rl(e,i,r,o),Dl();var d=e.memoizedState;a!==f||m!==d||Ao||t!==null&&t.dependencies!==null&&Of(t.dependencies)?(typeof s=="function"&&(kp(e,n,s,i),d=e.memoizedState),(c=Ao||Dx(e,n,c,i,m,d,l)||t!==null&&t.dependencies!==null&&Of(t.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,d,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,d,l)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=d),r.props=i,r.state=d,r.context=l,i=c):(typeof r.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),i=!1)}return r=i,Ma(t,e),i=(e.flags&128)!==0,r||i?(r=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&i?(e.child=Nr(e,t.child,null,o),e.child=Nr(e,null,n,o)):oe(t,e,n,o),e.memoizedState=r.state,t=e.child):t=qi(t,e,o),t}function Ux(t,e,n,i){return Mr(),e.flags|=256,oe(t,e,n,i),e.child}var Uh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hh(t){return{baseLanes:t,cachePool:x1()}}function Ph(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=sn),t}function fS(t,e,n){var i=e.pendingProps,o=!1,r=(e.flags&128)!==0,a;if((a=r)||(a=t!==null&&t.memoizedState===null?!1:(Ae.current&2)!==0),a&&(o=!0,e.flags&=-129),a=(e.flags&32)!==0,e.flags&=-33,t===null){if(mt){if(o?Bo(e):Uo(),(t=Lt)?(t=cT(t,Dn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Yo!==null?{id:ai,overflow:si}:null,retryLane:536870912,hydrationErrors:null},n=h1(t),n.return=e,e.child=n,he=e,Lt=null)):t=null,t===null)throw qo(e);return ly(t)?e.lanes=32:e.lanes=536870912,null}return r=i.children,i=i.fallback,o?(Uo(),o=e.mode,r=um({mode:"hidden",children:r},o),i=Er(i,o,n,null),r.return=e,i.return=e,r.sibling=i,e.child=r,i=e.child,i.memoizedState=Hh(n),i.childLanes=Ph(t,a,n),e.memoizedState=Uh,Nl(null,i)):(Bo(e),Fg(e,r))}var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return JO(t,e,r,a,i,l,s,n)}return o?(Uo(),o=i.fallback,r=e.mode,s=t.child,l=s.sibling,i=Ui(s,{mode:"hidden",children:i.children}),i.subtreeFlags=s.subtreeFlags&1206910976,l!==null?o=Ui(l,o):(o=Er(o,r,n,null),o.flags|=2),o.return=e,i.return=e,i.sibling=o,e.child=i,Nl(null,i),i=e.child,o=t.child.memoizedState,o===null?o=Hh(n):(r=o.cachePool,r!==null?(s=$t._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=x1(),o={baseLanes:o.baseLanes|n,cachePool:r}),i.memoizedState=o,i.childLanes=Ph(t,a,n),e.memoizedState=Uh,Nl(t.child,i)):(Bo(e),n=t.child,t=n.sibling,n=Ui(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)),e.child=n,e.memoizedState=null,n)}function Fg(t,e){return e=um({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function um(t,e){return t=Fe(22,t,null,e),t.lanes=0,t}function Xc(t,e,n){return Nr(e,t.child,null,n),t=Fg(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function JO(t,e,n,i,o,r,a,s){if(n)return e.flags&256?(Bo(e),e.flags&=-257,Xc(t,e,s)):e.memoizedState!==null?(Uo(),e.child=t.child,e.flags|=128,null):(Uo(),r=o.fallback,a=e.mode,o=um({mode:"visible",children:o.children},a),r=Er(r,a,s,null),r.flags|=2,o.return=e,r.return=e,o.sibling=r,e.child=o,Nr(e,t.child,null,s),o=e.child,o.memoizedState=Hh(s),o.childLanes=Ph(t,i,s),e.memoizedState=Uh,Nl(null,o));if(Bo(e),ly(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,i!==""&&(o=Error(R(419)),o.stack="",o.digest=i,jl({value:o,source:null,stack:null})),Xc(t,e,s)}if(te||Dr(t,e,s,!1),i=(s&t.childLanes)!==0,te||i){if(ko.current!==null)return Xc(t,e,s);if(i=Rt,i!==null&&(o=Gb(i,s),o!==0&&o!==a.retryLane))throw a.retryLane=o,Hr(t,o),Ie(i,t,o),Qg;return cg(r)||Xf(),Xc(t,e,s)}return cg(r)?(e.flags|=192,e.child=t.child,null):(t=a.treeContext,Lt=Rn(r.nextSibling),he=e,mt=!0,zo=null,Dn=!1,t!==null&&y1(e,t),e=Fg(e,o.children),e.flags|=134221824,e)}function Hx(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),sf(t.return,e,n)}function Px(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&zf(n)===null&&(e=t),t=t.sibling}return e}function Kc(t,e,n,i,o,r){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:r}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=o,a.treeForkCount=r)}function Xp(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function Gh(t,e,n){var i=e.pendingProps,o=i.revealOrder,r=i.tail;i=i.children;var a=Ae.current;if(e.flags&128)return ql(e,a),null;var s=(a&2)!==0;if(s?(a=a&1|2,e.flags|=128):a&=1,ql(e,a),o==="backwards"&&t!==null?(Xp(t),oe(t,e,i,n),Xp(t)):oe(t,e,i,n),i=mt?Gl:0,!s&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hx(t,n,e);else if(t.tag===19)Hx(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"backwards":n=Px(e.child),n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null,Xp(e)),Kc(e,!0,o,null,r,i);break;case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&zf(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Kc(e,!0,n,null,r,i);break;case"together":Kc(e,!1,null,null,void 0,i);break;case"independent":e.memoizedState=null;break;default:n=Px(e.child),n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Kc(e,!1,o,n,r,i)}return e.child}function Gx(t,e,n){var i=e.pendingProps;return Do(e,e.type,i.value),oe(t,e,i.children,n),e.child}function qi(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ko|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Dr(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(R(153));if(e.child!==null){for(t=e.child,n=Ui(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ui(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Ig(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Of(t)))}function WO(t,e,n){switch(e.tag){case 3:Tf(e,e.stateNode.containerInfo),Do(e,$t,t.memoizedState.cache),Mr();break;case 27:case 5:dh(e);break;case 4:Tf(e,e.stateNode.containerInfo);break;case 10:Do(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Oh(e),null;break;case 13:var i=e.memoizedState;if(i!==null){if(i.dehydrated!==null)return Bo(e),e.flags|=128,null;i=Dr(t,e,n,!1);var o=e.child.childLanes;return i||(n&o)!==0?fS(t,e,n):(Bo(e),t=qi(t,e,n),t!==null?t.sibling:null)}Bo(e);break;case 19:if(e.flags&128)return Gh(t,e,n);if(o=(t.flags&128)!==0,i=(n&e.childLanes)!==0,i||(Dr(t,e,n,!1),i=(n&e.childLanes)!==0),o){if(i)return Gh(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ql(e,Ae.current),i)break;return null;case 22:return e.lanes=0,cS(t,e,n,e.pendingProps);case 24:Do(e,$t,t.memoizedState.cache)}return qi(t,e,n)}function mS(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)te=!0;else{if(!Ig(t,n)&&(e.flags&128)===0)return te=!1,WO(t,e,n);te=(t.flags&131072)!==0}else te=!1,mt&&(e.flags&1048576)!==0&&g1(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=vr(e.elementType),e.type=t,typeof t=="function")Dg(t)?(i=zr(t,i),e.tag=1,e=Bx(null,e,t,i,n)):(e.tag=0,e=Bh(null,e,t,i,n));else{if(t!=null){var o=t.$$typeof;if(o===hg){e.tag=11,e=Nx(null,e,t,i,n);break t}else if(o===gg){e.tag=14,e=Vx(null,e,t,i,n);break t}else if(o===oi){e.tag=10,e.type=t,e=Gx(null,e,n);break t}}throw e=fh(t)||t,Error(R(306,e,""))}}return e;case 0:return Bh(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,o=zr(i,e.pendingProps),Bx(t,e,i,o,n);case 3:t:{if(Tf(e,e.stateNode.containerInfo),t===null)throw Error(R(387));i=e.pendingProps;var r=e.memoizedState;o=r.element,Mh(t,e),Rl(e,i,null,n);var a=e.memoizedState;if(i=a.cache,Do(e,$t,i),i!==r.cache&&Ch(e,[$t],n,!0),Dl(),i=a.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:a.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Ux(t,e,i,n);break t}else if(i!==o){o=Mn(Error(R(424)),e),jl(o),e=Ux(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Lt=Rn(t.firstChild),he=e,mt=!0,zo=null,Dn=!0,n=T1(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Mr(),i===o){e=qi(t,e,n);break t}oe(t,e,i,n)}e=e.child}return e;case 26:return Ma(t,e),t===null?(n=db(e.type,null,e.pendingProps,null))?e.memoizedState=n:mt||(e.stateNode=eT(e.type,e.pendingProps,Vo.current,e)):e.memoizedState=db(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return dh(e),t===null&&mt&&(i=e.stateNode=fT(e.type,e.pendingProps,Vo.current),he=e,Dn=!0,o=Lt,Qo(e.type)?(fg=o,Lt=Rn(i.firstChild)):Lt=o),oe(t,e,e.pendingProps.children,n),Ma(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&mt&&((o=i=Lt)&&(i=kN(i,e.type,e.pendingProps,Dn),i!==null?(e.stateNode=i,he=e,Lt=Rn(i.firstChild),Dn=!1,o=!0):o=!1),o||qo(e)),dh(e),o=e.type,r=e.pendingProps,a=t!==null?t.memoizedProps:null,i=r.children,sg(o,r)?i=null:a!==null&&sg(o,a)&&(e.flags|=32),e.memoizedState!==null&&(o=Ug(t,e,jO,null,null,n),ls._currentValue=o),Ma(t,e),oe(t,e,i,n),e.child;case 6:return t===null&&mt&&((t=n=Lt)&&(n=XN(n,e.pendingProps,Dn),n!==null?(e.stateNode=n,he=e,Lt=null,t=!0):t=!1),t||qo(e)),null;case 13:return fS(t,e,n);case 4:return Tf(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Nr(e,null,i,n):oe(t,e,i,n),e.child;case 11:return Nx(t,e,e.type,e.pendingProps,n);case 7:return i=e.pendingProps,Ma(t,e),oe(t,e,i,n),e.child;case 8:return oe(t,e,e.pendingProps.children,n),e.child;case 12:return oe(t,e,e.pendingProps.children,n),e.child;case 10:return Gx(t,e,n);case 9:return o=e.type._context,i=e.pendingProps.children,Rr(e),o=Te(o),i=i(o),e.flags|=1,oe(t,e,i,n),e.child;case 14:return Vx(t,e,e.type,e.pendingProps,n);case 15:return uS(t,e,e.type,e.pendingProps,n);case 19:return Gh(t,e,n);case 31:return IO(t,e,n);case 22:return cS(t,e,n,e.pendingProps);case 24:return Rr(e),i=Te($t),t===null?(o=Ng(),o===null&&(o=Rt,r=Og(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=n),o=r),e.memoizedState={parent:i,cache:o},zg(e),Do(e,$t,o)):((t.lanes&n)!==0&&(Mh(t,e),Rl(e,null,null,n),Dl()),o=t.memoizedState,r=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Do(e,$t,i)):(i=r.cache,Do(e,$t,i),i!==o.cache&&Ch(e,[$t],n,!0))),oe(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=e.pendingProps,i.name!=null&&i.name!=="auto"?e.flags|=t===null?18882560:18874368:mt&&im(e),t!==null&&t.memoizedProps.name!==i.name?e.flags|=4194816:Ma(t,e),oe(t,e,i.children,n),e.child;case 29:throw e.pendingProps}throw Error(R(156,e.tag))}function Li(t){t.flags|=4}function Kp(t,e,n,i,o){var r;if((r=(t.mode&32)!==0)&&(r=n===null?gb(e,i):gb(e,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),r){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(jS())t.flags|=8192;else throw Cr=Nf,Vg}else t.flags&=-16777217}function jx(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!hT(e))if(jS())t.flags|=8192;else throw Cr=Nf,Vg}function Zc(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ub():536870912,t.lanes|=e,ns|=e)}function pl(t,e){if(!mt)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&1206910976,i|=o.flags&1206910976,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function $O(t,e,n){var i=e.pendingProps;switch(Rg(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Hi($t),Wa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ca(e)?Li(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,jp())),zt(e),null;case 26:var o=e.type,r=e.memoizedState;return t===null?(Li(e),r!==null?(zt(e),jx(e,r)):(zt(e),Kp(e,o,null,i,n))):r?r!==t.memoizedState?(Li(e),zt(e),jx(e,r)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&Li(e),zt(e),Kp(e,o,t,i,n)),null;case 27:if(Ef(e),n=Vo.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Li(e);else{if(!i){if(e.stateNode===null)throw Error(R(166));return zt(e),e.subtreeFlags&=-33554433,null}t=li.current,Ca(e)?px(e,t):(t=fT(o,i,n),e.stateNode=t,Li(e))}return zt(e),e.subtreeFlags&=-33554433,null;case 5:if(Ef(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Li(e);else{if(!i){if(e.stateNode===null)throw Error(R(166));return zt(e),e.subtreeFlags&=-33554433,null}if(r=li.current,Ca(e))px(e,r);else{var a=Zl(Vo.current);switch(r){case 1:r=a.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=a.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=a.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=a.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=a.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?r.multiple=!0:i.size&&(r.size=i.size);break;default:r=typeof i.is=="string"?a.createElement(o,{is:i.is}):a.createElement(o)}}r[Se]=e,r[We]=i;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=r;t:switch(Ce(r,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&Li(e)}}return zt(e),e.subtreeFlags&=-33554433,Kp(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Li(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(R(166));if(t=Vo.current,Ca(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,o=he,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[Se]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||$S(t.nodeValue,n)),t||qo(e,!0)}else t=Zl(t).createTextNode(i),t[Se]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Ca(e),n!==null){if(t===null){if(!i)throw Error(R(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(557));t[Se]=e}else Mr(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(rn(e),e):(rn(e),null);if((e.flags&128)!==0)throw Error(R(558))}return zt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ca(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(R(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Se]=e}else Mr(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),o=!1}else o=jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(rn(e),e):(rn(e),null)}return rn(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==o&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Zc(e,e.updateQueue),zt(e),null);case 4:return Wa(),t===null&&ry(e.stateNode.containerInfo),e.flags|=67108864,zt(e),null;case 10:return Hi(e.type),zt(e),null;case 19:if(_g(e),i=e.memoizedState,i===null)return zt(e),null;if(o=(e.flags&128)!==0,r=i.rendering,r===null)if(o)pl(i,!1);else{if(kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=zf(t),r!==null){for(e.flags|=128,pl(i,!1),t=r.updateQueue,e.updateQueue=t,Zc(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)p1(n,t),n=n.sibling;return ql(e,Ae.current&1|2),mt&&_i(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&ln()>qf&&(e.flags|=128,o=!0,pl(i,!1),e.lanes=4194304)}else{if(!o)if(t=zf(r),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Zc(e,t),pl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!r.alternate&&!mt)return zt(e),null}else 2*ln()-i.renderingStartTime>qf&&n!==536870912&&(e.flags|=128,o=!0,pl(i,!1),e.lanes=4194304);i.isBackwards?(r.sibling=e.child,e.child=r):(t=i.last,t!==null?t.sibling=r:e.child=r,i.last=r)}if(i.tail!==null){t=i.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ln(),t.sibling=null,r=Ae.current,r=o?r&1|2:r&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||mt?ql(e,r):(n=r,_t(we,e),_t(Ae,n),Ve===null&&(Ve=e)),mt&&_i(e,i.treeForkCount),t}return zt(e),null;case 22:case 23:return rn(e),Lg(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&Zc(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&Ee(Ar),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Hi($t),zt(e),null;case 25:return null;case 30:return e.flags|=33554432,zt(e),null}throw Error(R(156,e.tag))}function tN(t,e){switch(Rg(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Hi($t),Wa(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ef(e),null;case 31:if(e.memoizedState!==null){if(rn(e),e.alternate===null)throw Error(R(340));Mr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(rn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(R(340));Mr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _g(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Wa(),null;case 10:return Hi(e.type),null;case 22:case 23:return rn(e),Lg(),t!==null&&Ee(Ar),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Hi($t),null;case 25:return null;default:return null}}function dS(t,e){switch(Rg(e),e.tag){case 3:Hi($t),Wa();break;case 26:case 27:case 5:Ef(e);break;case 4:Wa();break;case 31:e.memoizedState!==null&&rn(e);break;case 13:rn(e);break;case 19:_g(e);break;case 10:Hi(e.type);break;case 22:case 23:rn(e),Lg(),t!==null&&Ee(Ar);break;case 24:Hi($t)}}function au(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&t)===t){i=void 0;var r=n.create,a=n.inst;i=r(),a.destroy=i}n=n.next}while(n!==o)}}catch(s){wt(e,e.return,s)}}function Xo(t,e,n){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var r=o.next;i=r;do{if((i.tag&t)===t){var a=i.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,o=e;var l=n,u=s;try{u()}catch(c){wt(o,l,c)}}}i=i.next}while(i!==r)}}catch(c){wt(e,e.return,c)}}function pS(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{A1(e,n)}catch(i){wt(t,t.return,i)}}}function hS(t,e,n){n.props=zr(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){wt(t,e,i)}}function ni(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:var o=t.stateNode,r=Gi(t.memoizedProps,o);(o.ref===null||o.ref.name!==r)&&(o.ref=rT(r)),i=o.ref;break;case 7:if(t.stateNode===null){var a=new dn(t);Je(t.child,!1,YN,a,void 0,void 0),t.stateNode=a}i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){wt(t,e,s)}}function be(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){wt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){wt(t,e,o)}else n.current=null}function Hf(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)uT(t.stateNode,e[n])}function Yx(t){for(var e=t.return;e!==null&&(Wg(e)&&uT(t.stateNode,e.stateNode),!Jg(e));)e=e.return}function Vl(t){for(var e=t.return;e!==null&&(Wg(e)&&qN(t.stateNode,e.stateNode),!Jg(e));)e=e.return}function Jg(t){return t.tag===5||t.tag===3||t.tag===27}function Wg(t){return t&&t.tag===7&&t.stateNode!==null}function jh(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){wt(t,t.return,o)}}function Zp(t,e,n){try{var i=t.stateNode;AN(i,t.type,n,e),i[We]=e}catch(o){wt(t,t.return,o)}}function gS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qo(t.type)||t.tag===4}function Qp(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Qo(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yh(t,e,n,i){var o=t.tag;if(o===5||o===6)o=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(o,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(o),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ri)),Hf(t,i),xt=!0;else if(o!==4&&(o===27&&(Hf(t,i),i=null,Qo(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Yh(t,e,n,i),t=t.sibling;t!==null;)Yh(t,e,n,i),t=t.sibling}function Pf(t,e,n,i){var o=t.tag;if(o===5||o===6)o=t.stateNode,e?n.insertBefore(o,e):n.appendChild(o),Hf(t,i),xt=!0;else if(o!==4&&(o===27&&(Hf(t,i),i=null,Qo(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(Pf(t,e,n,i),t=t.sibling;t!==null;)Pf(t,e,n,i),t=t.sibling}function yS(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);Ce(e,i,n),e[Se]=t,e[We]=n}catch(r){wt(t,t.return,r)}}var Gf=!1,an=null;function qx(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(Gf=!0)}var ii=null;function kx(){var t=ii;return ii=null,t}var Qe=0;function ps(t,e,n,i,o){return Qe=0,vS(t.child,e,n,i,o)}function vS(t,e,n,i,o){for(var r=!1;t!==null;){if(t.tag===5){var a=t.stateNode;if(i!==null){var s=lg(a);i.push(s),s.view&&(r=!0)}else r||lg(a).view&&(r=!0);Gf=!0,nT(a,Qe===0?e:e+"_"+Qe,n),Qe++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o||vS(t.child,e,n,i,o)&&(r=!0));t=t.sibling}return r}function ci(t,e){for(;t!==null;)t.tag===5?iT(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||ci(t.child,e)),t=t.sibling}function mf(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(mf(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(R(544));var n=e.name;e=Ki(e.default,e.share),e!=="none"&&(ps(t,n,e,null,!1)||ci(t.child,!1))}t=t.sibling}}function qh(t,e){if(t.tag===30){var n=t.stateNode,i=t.memoizedProps,o=Gi(i,n),r=Ki(i.default,n.paired?i.share:i.enter);r!=="none"?ps(t,o,r,null,!1)?(mf(t),n.paired||e||is(t,i.onEnter)):ci(t.child,!1):mf(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)qh(t,e),t=t.sibling;else mf(t)}function kh(t){if(an!==null&&an.size!==0){var e=an;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var o=e.get(i);if(o!==void 0){var r=Ki(n.default,n.share);if(r!=="none"&&(ps(t,i,r,null,!1)?(r=t.stateNode,o.paired=r,r.paired=o,is(t,n.onShare)):ci(t.child,!1)),e.delete(i),e.size===0)break}}}kh(t)}t=t.sibling}}}function Xh(t){if(t.tag===30){var e=t.memoizedProps,n=Gi(e,t.stateNode),i=an!==null?an.get(n):void 0,o=Ki(e.default,i!==void 0?e.share:e.exit);o!=="none"&&(ps(t,n,o,null,!1)?i!==void 0?(o=t.stateNode,i.paired=o,o.paired=i,an.delete(n),is(t,e.onShare)):is(t,e.onExit):ci(t.child,!1)),an!==null&&kh(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Xh(t),t=t.sibling;else an!==null&&kh(t)}function xS(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Gi(e,t.stateNode);e=Ki(e.default,e.update),t.flags&=-5,e!=="none"&&ps(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&xS(t);t=t.sibling}}function Kh(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,ci(t.child,!1))}Kh(t)}t=t.sibling}}function df(t){if(t.tag===30)t.stateNode.paired=null,ci(t.child,!1),Kh(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)df(t),t=t.sibling;else Kh(t)}function bS(t){for(t=t.child;t!==null;)t.tag===30?ci(t.child,!1):(t.subtreeFlags&33554432)!==0&&bS(t),t=t.sibling}function $g(t,e,n,i,o,r,a){for(var s=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(r!==null&&Qe<r.length){var u=r[Qe],c=lg(l);(u.view||c.view)&&(s=!0);var f;if(f=(t.flags&4)===0)if(c.clip)f=!0;else{f=u.rect;var m=c.rect;f=f.y!==m.y||f.x!==m.x||f.height!==m.height||f.width!==m.width}f&&(t.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&nT(l,Qe===0?n:n+"_"+Qe,o),s&&(t.flags&4)!==0||(ii===null&&(ii=[]),ii.push(l,Qe===0?i:i+"_"+Qe,e.memoizedProps)),Qe++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a?t.flags|=e.flags&32:$g(t,e.child,n,i,o,r,a)&&(s=!0));e=e.sibling}return s}function SS(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,i=t.stateNode,o=Gi(n,i),r=Ki(n.default,n.update);if(e){i=i.clones;var a=i===null?null:i.map(ON)}else a=t.memoizedState,t.memoizedState=null;i=t;var s=t.child;Qe=0,o=$g(i,s,o,o,r,a,!1),(t.flags&4)!==0&&o&&(e||is(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&SS(t,e);t=t.sibling}}var me=!1,Tt=!1,$n=!1,Fp=!1,Xx=typeof WeakSet=="function"?WeakSet:Set,de=null,ti=!1,Tl=!1,jf=!1,Zh=!1;function eN(t,e,n){if(t=t.containerInfo,rg=us,t=a1(t),Cg(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{i.nodeType,a.nodeType}catch{i=null;break t}var s=0,l=-1,u=-1,c=0,f=0,m=t,d=null;e:for(;;){for(var g;m!==i||r!==0&&m.nodeType!==3||(l=s+r),m!==a||o!==0&&m.nodeType!==3||(u=s+o),m.nodeType===3&&(s+=m.nodeValue.length),(g=m.firstChild)!==null;)d=m,m=g;for(;;){if(m===t)break e;if(d===i&&++c===r&&(l=s),d===a&&++f===o&&(u=s),(g=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=g}i=l===-1||u===-1?null:{start:l,end:u}}else i=null}i=i||{start:0,end:0}}else i=null;for(ag={focusedElem:t,selectionRange:i},us=!1,n=(n&335544064)===n,de=e,e=n?9270:1024;de!==null;){if(t=de,n&&(i=t.deletions,i!==null))for(r=0;r<i.length;r++)n&&Xh(i[r]);if(t.alternate===null&&(t.flags&2)!==0)n&&qx(t),Qc(n);else{if(t.tag===22){if(i=t.alternate,t.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&Xh(i),Qc(n);continue}else if(i!==null&&i.memoizedState!==null){n&&qx(t),Qc(n);continue}}i=t.child,(t.subtreeFlags&e)!==0&&i!==null?(i.return=t,de=i):(n&&xS(t),Qc(n))}}an=null}function Qc(t){for(;de!==null;){var e=de,n=t,i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&i!==null){n=void 0,o=i.memoizedProps,i=i.memoizedState;var r=e.stateNode;try{var a=zr(e.type,o);n=r.getSnapshotBeforeUpdate(a,i),r.__reactInternalSnapshotBeforeUpdate=n}catch(s){wt(e,e.return,s)}}break;case 3:if((o&1024)!==0){if(i=e.stateNode.containerInfo,n=i.nodeType,n===9)ug(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":ug(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=Gi(i.memoizedProps,i.stateNode),o=e.memoizedProps,o=Ki(o.default,o.update),o!=="none"&&ps(i,n,o,i.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(R(163))}if(i=e.sibling,i!==null){i.return=e.return,de=i;break}de=e.return}}function TS(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ei(t,n),i&4&&au(5,n);break;case 1:if(ei(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(a){wt(n,n.return,a)}else{var o=zr(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(a){wt(n,n.return,a)}}i&64&&pS(n),i&512&&ni(n,n.return);break;case 3:if(ei(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{A1(t,e)}catch(a){wt(n,n.return,a)}}break;case 27:e===null&&i&4&&yS(n);case 26:case 5:ei(t,n),e===null&&i&4&&jh(n),i&512&&ni(n,n.return);break;case 12:ei(t,n);break;case 31:ei(t,n),i&4&&wS(t,n);break;case 13:ei(t,n),i&4&&MS(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=dN.bind(null,n),KN(t,n))));break;case 22:if(i=n.memoizedState!==null||me,!i){var r=e!==null&&e.memoizedState!==null||Tt;e=me,o=Tt,me=i,(Tt=r)&&!o?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),Pn(t,n,i)):ei(t,n),me=e,Tt=o}break;case 30:ei(t,n),i&512&&ni(n,n.return);break;case 7:i&512&&ni(n,n.return);default:ei(t,n)}}function Qh(t,e){for(t=t.child;t!==null;)ES(t,e),t=t.sibling}function ES(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var o=t.stateNode,r=t.memoizedProps.style,a=r!=null&&r.hasOwnProperty("display")?r.display:null;o.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}}catch(l){wt(t,t.return,l)}Fh(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,xt=!0}catch(l){wt(t,t.return,l)}break;case 18:try{var s=t.stateNode;e?sb(s,!0):sb(t.stateNode,!1)}catch(l){wt(t,t.return,l)}break;case 22:case 23:t.memoizedState===null&&Qh(t,e);break;default:Qh(t,e)}}function Fh(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,i=e;switch(n.tag){case 4:ES(n,i);break t;case 22:n.memoizedState===null&&Fh(n,i);break t;default:Fh(n,i)}}t=t.sibling}}function AS(t){var e=t.alternate;e!==null&&(t.alternate=null,AS(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Jf(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,Ke=!1;function Hn(t,e,n){for(n=n.child;n!==null;)CS(t,e,n),n=n.sibling}function CS(t,e,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 26:Tt||be(n,e),Hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Tt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||be(n,e),Vl(n);var i=Ht,o=Ke;Qo(n.type)&&(Ht=n.stateNode,Ke=!1),Hn(t,e,n),mT(n.stateNode,n.type,n.memoizedProps),Ht=i,Ke=o;break;case 5:Tt||be(n,e),Vl(n);case 6:if(n.tag===6&&Vl(n),i=Ht,o=Ke,Ht=null,Hn(t,e,n),Ht=i,Ke=o,Ht!==null)if(Ke)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(n.stateNode),xt=!0}catch(r){wt(n,e,r)}else try{Ht.removeChild(n.stateNode),xt=!0}catch(r){wt(n,e,r)}break;case 18:Ht!==null&&(Ke?(t=Ht,ab(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),cs(t)):ab(Ht,n.stateNode));break;case 4:i=Ht,o=Ke,Ht=n.stateNode.containerInfo,Ke=!0,Hn(t,e,n),Ht=i,Ke=o;break;case 0:case 11:case 14:case 15:Xo(2,n,e),Tt||Xo(4,n,e),Hn(t,e,n);break;case 1:Tt||(be(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&hS(n,e,i)),Hn(t,e,n);break;case 21:Hn(t,e,n);break;case 22:Tt=(i=Tt)||n.memoizedState!==null,Hn(t,e,n),Tt=i;break;case 30:be(n,e),Hn(t,e,n);break;case 7:Tt||be(n,e),Hn(t,e,n);break;default:Hn(t,e,n)}}function wS(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{cs(t)}catch(n){wt(e,e.return,n)}}}function MS(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{cs(t)}catch(n){wt(e,e.return,n)}}function nN(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Xx),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Xx),e;default:throw Error(R(435,t.tag))}}function Fc(t,e){var n=nN(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var o=pN.bind(null,t,i);i.then(o,o)}})}function Be(t,e,n){var i=e.deletions;if(i!==null)for(var o=0;o<i.length;o++){var r=i[o],a=t,s=e,l=s;t:for(;l!==null;){switch(l.tag){case 27:if(Qo(l.type)){Ht=l.stateNode,Ke=!1;break t}break;case 5:Ht=l.stateNode,Ke=!1;break t;case 3:case 4:Ht=l.stateNode.containerInfo,Ke=!0;break t}l=l.return}if(Ht===null)throw Error(R(160));CS(a,s,r),Ht=null,Ke=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)DS(e,t,n),e=e.sibling}var Gn=null;function DS(t,e,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(o&4&&(i=t.updateQueue,i=i!==null?i.events:null,i!==null))for(var r=0;r<i.length;r++){var a=i[r];a.ref.impl=a.nextImpl}Be(e,t,n),Ue(t),o&4&&(Xo(3,t,t.return),au(3,t),Xo(5,t,t.return));break;case 1:Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),o&64&&me&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(r=Gn,Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),o&4)if(o=i!==null?i.memoizedState:null,n=t.memoizedState,i===null)if(n===null)if(t.stateNode===null)if(me)t.stateNode=eT(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,o=r.ownerDocument||r;e:switch(e){case"title":i=o.getElementsByTagName("title")[0],(!i||i[nu]||i[Se]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=o.createElement(e),o.head.insertBefore(i,o.querySelector("head > title"))),Ce(i,e,n),i[Se]=t,pe(i),e=i;break t;case"link":if(r=hb("link","href",o).get(e+(n.href||""))){for(a=0;a<r.length;a++)if(i=r[a],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(a,1);break e}}i=o.createElement(e),Ce(i,e,n),o.head.appendChild(i);break;case"meta":if(r=hb("meta","content",o).get(e+(n.content||""))){for(a=0;a<r.length;a++)if(i=r[a],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(a,1);break e}}i=o.createElement(e),Ce(i,e,n),o.head.appendChild(i);break;default:throw Error(R(468,e))}i[Se]=t,pe(i),e=i}t.stateNode=e}else me||mg(r,t.type,t.stateNode);else t.stateNode=pb(r,n,t.memoizedProps);else o!==n?(o===null?(e=i.stateNode,e===null||Tt||e.parentNode.removeChild(e)):o.count--,n===null?me||mg(r,t.type,t.stateNode):pb(r,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Zp(t,t.memoizedProps,i.memoizedProps);break;case 27:Be(e,t,n),Ue(t),o&512&&(Tt||i===null||be(i,i.return)),i!==null&&o&4&&Zp(t,t.memoizedProps,i.memoizedProps);break;case 5:if(r=$n,$n=!1,Be(e,t,n),$n=r,Ue(t),o&512&&(Tt||i===null||be(i,i.return)),t.flags&32){e=t.stateNode;try{ts(e,""),xt=!0}catch(c){wt(t,t.return,c)}}o&4&&t.stateNode!=null&&(e=t.memoizedProps,Zp(t,e,i!==null?i.memoizedProps:e)),o&1024&&(Fp=!0);break;case 6:if(Be(e,t,n),Ue(t),o&4){if(t.stateNode===null)throw Error(R(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,xt=!0}catch(c){wt(t,t.return,c)}}break;case 3:if(xt=!1,yf=null,r=Gn,Gn=Ql(e.containerInfo),Be(e,t,n),Gn=r,Ue(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{cs(e.containerInfo)}catch(c){wt(t,t.return,c)}Fp&&(Fp=!1,RS(t)),xt=!1;break;case 4:o=$n,$n=me,i=Jv(),r=Gn,Gn=Ql(t.stateNode.containerInfo),Be(e,t,n),Ue(t),Gn=r,xt&&Tl&&(jf=!0),xt=i,$n=o;break;case 12:Be(e,t,n),Ue(t);break;case 31:Be(e,t,n),Ue(t),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fc(t,e)));break;case 13:Be(e,t,n),Ue(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(cm=ln()),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fc(t,e)));break;case 22:r=t.memoizedState!==null,a=i!==null&&i.memoizedState!==null;var s=me,l=Tt,u=$n;me=s||r,$n=u||r,Tt=l||a,Be(e,t,n),Tt=l,$n=u,me=s,Ue(t),o&8192&&(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,!r||i===null||a||me||Tt||(e=a||Tt,n=me,i=Tt,me=r||me,Tt=e,To(t,2),me=n,Tt=i),!r&&$n||Qh(t,r)),o&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,Fc(t,n))));break;case 19:Be(e,t,n),Ue(t),o&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fc(t,e)));break;case 30:o&512&&(Tt||i===null||be(i,i.return)),o=Jv(),r=Tl,a=(n&335544064)===n,s=t.memoizedProps,Tl=a&&Ki(s.default,s.update)!=="none",Be(e,t,n),Ue(t),a&&i!==null&&xt&&(t.flags|=4),Tl=r,xt=o;break;case 21:break;case 7:o&512&&(Tt||i===null||be(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=t);default:Be(e,t,n),Ue(t)}}function Ue(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(gS(i)){n=i;break}i=i.return}i=null;for(var o=t.return;o!==null;){if(Wg(o)){var r=o.stateNode;i===null?i=[r]:i.push(r)}if(Jg(o))break;o=o.return}var a=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var s=n.stateNode,l=Qp(t);Pf(t,l,s,a);break;case 5:var u=n.stateNode;n.flags&32&&(ts(u,""),n.flags&=-33);var c=Qp(t);Pf(t,c,u,a);break;case 3:case 4:var f=n.stateNode.containerInfo,m=Qp(t);Yh(t,m,f,a);break;default:throw Error(R(161))}}catch(d){wt(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function RS(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;RS(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,us=!0,e.reset(),us=!1),t=t.sibling}}function wa(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)OS(e,t),e=e.sibling;else SS(e,!1)}function OS(t,e){var n=t.alternate;if(n===null)qh(t,!1);else switch(t.tag){case 3:if(Zh=ti=!1,kx(),wa(e,t),!ti&&!jf){if(t=ii,t!==null)for(var i=0;i<t.length;i+=3){n=t[i];var o=t[i+1];iT(n,t[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Zh=!0}ii=null;break;case 5:wa(e,t);break;case 4:i=ti,ti=!1,wa(e,t),ti&&(jf=!0),ti=i;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?qh(t,!1):wa(e,t));break;case 30:i=ti,o=kx(),ti=!1,wa(e,t),ti&&(t.flags|=4);var r=t.memoizedProps,a=t.stateNode;e=Gi(r,a),a=Gi(n.memoizedProps,a);var s=Ki(r.default,r.update);s==="none"?e=!1:(r=n.memoizedState,n.memoizedState=null,n=t.child,Qe=0,e=$g(t,n,e,a,s,r,!0),Qe!==(r===null?0:r.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(is(t,t.memoizedProps.onUpdate),ii=o):o!==null&&(o.push.apply(o,ii),ii=o),ti=(t.flags&32)!==0?!0:i;break;default:wa(e,t)}}function ei(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)TS(t,e.alternate,e),e=e.sibling}function To(t,e){for(t=t.child;t!==null;){var n=t,i=e;switch(n.tag){case 0:case 11:case 14:case 15:Xo(4,n,n.return),To(n,i);break;case 1:be(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&hS(n,n.return,o),To(n,i);break;case 27:(i&2)!==0&&mT(n.stateNode,n.type,n.memoizedProps);case 5:be(n,n.return),n.tag!==5&&n.tag!==27||Vl(n),To(n,i);break;case 6:Vl(n);break;case 26:be(n,n.return),o=n.stateNode,n.memoizedState!==null||o===null||Tt||o.parentNode.removeChild(o),To(n,i);break;case 22:n.memoizedState===null&&To(n,i);break;case 30:be(n,n.return),To(n,i);break;case 7:be(n,n.return);default:To(n,i)}t=t.sibling}}function Pn(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var i=e.alternate,o=t,r=e,a=r.flags,s=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:Pn(o,r,n),au(4,r);break;case 1:if(Pn(o,r,n),i=r,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(c){wt(i,i.return,c)}if(i=r,o=i.updateQueue,o!==null){var l=i.stateNode;try{var u=o.shared.hiddenCallbacks;if(u!==null)for(o.shared.hiddenCallbacks=null,o=0;o<u.length;o++)E1(u[o],l)}catch(c){wt(i,i.return,c)}}s&&a&64&&pS(r),ni(r,r.return);break;case 27:(n&2)!==0&&yS(r);case 5:r.tag!==5&&r.tag!==27||Yx(r),Pn(o,r,n),s&&i===null&&a&4&&jh(r),ni(r,r.return);break;case 6:Yx(r);break;case 26:l=r.stateNode,r.memoizedState!==null||l===null||me||mg(Ql(l.ownerDocument),r.type,l),Pn(o,r,n),s&&i===null&&a&4&&jh(r),ni(r,r.return);break;case 12:Pn(o,r,n);break;case 31:Pn(o,r,n),s&&a&4&&wS(o,r);break;case 13:Pn(o,r,n),s&&a&4&&MS(o,r);break;case 22:r.memoizedState===null&&Pn(o,r,n),ni(r,r.return);break;case 30:Pn(o,r,n),ni(r,r.return);break;case 7:ni(r,r.return);default:Pn(o,r,n)}e=e.sibling}}function ty(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ou(n))}function ey(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ou(t))}function Tn(t,e,n,i){var o=(n&335544064)===n;if(e.subtreeFlags&(o?10262:10256))for(e=e.child;e!==null;)NS(t,e,n,i),e=e.sibling;else o&&bS(e)}function NS(t,e,n,i){var o=(n&335544064)===n;o&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&df(e);var r=e.flags;switch(e.tag){case 0:case 11:case 15:Tn(t,e,n,i),r&2048&&au(9,e);break;case 1:Tn(t,e,n,i);break;case 3:Tn(t,e,n,i),o&&Zh&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),r&2048&&(r=null,e.alternate!==null&&(r=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==r&&(e.refCount++,r!=null&&ou(r)));break;case 12:if(r&2048){Tn(t,e,n,i),r=e.stateNode;try{var a=e.memoizedProps,s=a.id,l=a.onPostCommit;typeof l=="function"&&l(s,e.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(u){wt(e,e.return,u)}}else Tn(t,e,n,i);break;case 31:Tn(t,e,n,i);break;case 13:Tn(t,e,n,i);break;case 23:break;case 22:a=e.stateNode,s=e.alternate,e.memoizedState!==null?(o&&s!==null&&s.memoizedState===null&&df(s),a._visibility&2?Tn(t,e,n,i):zl(t,e)):(o&&s!==null&&s.memoizedState!==null&&df(e),a._visibility&2?Tn(t,e,n,i):(a._visibility|=2,Da(t,e,n,i,(e.subtreeFlags&10256)!==0||!1))),r&2048&&ty(s,e);break;case 24:Tn(t,e,n,i),r&2048&&ey(e.alternate,e);break;case 30:o&&(r=e.alternate,r!==null&&(ci(r.child,!0),ci(e.child,!0))),Tn(t,e,n,i);break;default:Tn(t,e,n,i)}}function Da(t,e,n,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,a=e,s=n,l=i,u=a.flags;switch(a.tag){case 0:case 11:case 15:Da(r,a,s,l,o),au(8,a);break;case 23:break;case 22:var c=a.stateNode;a.memoizedState!==null?c._visibility&2?Da(r,a,s,l,o):zl(r,a):(c._visibility|=2,Da(r,a,s,l,o)),o&&u&2048&&ty(a.alternate,a);break;case 24:Da(r,a,s,l,o),o&&u&2048&&ey(a.alternate,a);break;default:Da(r,a,s,l,o)}e=e.sibling}}function zl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,o=i.flags;switch(i.tag){case 22:zl(n,i),o&2048&&ty(i.alternate,i);break;case 24:zl(n,i),o&2048&&ey(i.alternate,i);break;default:zl(n,i)}e=e.sibling}}var xr=8192;function gr(t,e,n){if(t.subtreeFlags&xr)for(t=t.child;t!==null;)VS(t,e,n),t=t.sibling}function VS(t,e,n){switch(t.tag){case 26:gr(t,e,n),t.flags&xr&&(t.memoizedState!==null?aV(n,Gn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&yb(n,t)));break;case 5:gr(t,e,n),t.flags&xr&&(t=t.stateNode,(e&335544128)===e&&yb(n,t));break;case 3:case 4:var i=Gn;Gn=Ql(t.stateNode.containerInfo),gr(t,e,n),Gn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=xr,xr=16777216,gr(t,e,n),xr=i):gr(t,e,n));break;case 30:if((t.flags&xr)!==0&&(i=t.memoizedProps.name,i!=null&&i!=="auto")){var o=t.stateNode;o.paired=null,an===null&&(an=new Map),an.set(i,o)}gr(t,e,n);break;default:gr(t,e,n)}}function zS(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function hl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];de=i,_S(i,t)}zS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)LS(t),t=t.sibling}function LS(t){switch(t.tag){case 0:case 11:case 15:hl(t),t.flags&2048&&Xo(9,t,t.return);break;case 3:hl(t);break;case 12:hl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,pf(t)):hl(t);break;default:hl(t)}}function pf(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];de=i,_S(i,t)}zS(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Xo(8,e,e.return),pf(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,pf(e));break;default:pf(e)}t=t.sibling}}function _S(t,e){for(;de!==null;){var n=de;switch(n.tag){case 0:case 11:case 15:Xo(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ou(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,de=i;else t:for(n=t;de!==null;){i=de;var o=i.sibling,r=i.return;if(AS(i),i===n){de=null;break t}if(o!==null){o.return=r,de=o;break t}de=r}}}var iN={getCacheForType:function(t){var e=Te($t),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Te($t).controller.signal}},oN=typeof WeakMap=="function"?WeakMap:Map,bt=0,Rt=null,ht=null,gt=0,At=0,nn=null,Ro=!1,hs=!1,ny=!1,ki=0,kt=0,Ko=0,wr=0,Yf=0,sn=0,ns=0,Ll=null,Ze=null,Ih=!1,cm=0,BS=0,qf=1/0,kf=null,Ho=null,Pt=0,Yn=null,Lr=null,ui=0,Jh=0,Wh=null,US=null,Fa=null,Ia=null,Ja=null,_l=0,hf=null;function fn(){return(bt&2)!==0&>!==0?gt&-gt:nt.T!==null?oy():jb()}function HS(){if(sn===0)if((gt&536870912)===0||mt){var t=Bc;Bc<<=1,(Bc&3932160)===0&&(Bc=262144),sn=t}else sn=536870912;return t=we.current,t!==null&&(t.flags|=32),sn}function is(t,e){if(e!=null){var n=t.stateNode,i=n.ref;i===null&&(i=n.ref=rT(Gi(t.memoizedProps,n))),Ia===null&&(Ia=[]),Ia.push(e.bind(null,i))}}function Ie(t,e,n){(t===Rt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(os(t,0),Oo(t,gt,sn,!1)),eu(t,n),((bt&2)===0||t!==Rt)&&(t===Rt&&((bt&2)===0&&(wr|=n),kt===4&&Oo(t,gt,sn,!1)),mi(t))}function PS(t,e,n){if((bt&6)!==0)throw Error(R(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||tu(t,e),o=i?sN(t,e):Ip(t,e,!0),r=i;do{if(o===0){hs&&!i&&Oo(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!rN(n)){o=Ip(t,e,!1),r=!1;continue}if(o===2){if(r=e,t.errorRecoveryDisabledLanes&r)var a=0;else a=t.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){e=a;t:{var s=t;o=Ll;var l=s.current.memoizedState.isDehydrated;if(l&&(os(s,a).flags|=256),a=Ip(s,a,!1),a!==2&&a!==6){if(ny&&!l){s.errorRecoveryDisabledLanes|=r,wr|=r,o=4;break t}r=Ze,Ze=o,r!==null&&(Ze===null?Ze=r:Ze.push.apply(Ze,r))}o=a}if(r=!1,o!==2)continue}}if(o===1){os(t,0),Oo(t,e,0,!0);break}t:{switch(i=t,r=o,r){case 0:case 1:throw Error(R(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Oo(i,e,sn,!Ro);break t;case 2:Ze=null;break;case 3:case 5:break;default:throw Error(R(329))}if((e&62914560)===e&&(o=cm+300-ln(),10<o)){if(Oo(i,e,sn,!Ro),If(i,0,!0)!==0)break t;ui=e,i.timeoutHandle=ay(Kx.bind(null,i,n,Ze,kf,Ih,e,sn,wr,ns,Ro,r,"Throttled",-0,0),o);break t}Kx(i,n,Ze,kf,Ih,e,sn,wr,ns,Ro,r,null,-0,0)}}break}while(!0);mi(t)}function Kx(t,e,n,i,o,r,a,s,l,u,c,f,m,d){t.timeoutHandle=-1;var g=e.subtreeFlags,v=(r&335544064)===r;if(f=null,(v||g&8192||(g&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ri},an=null,VS(e,r,f),v&&(g=f,v=t.containerInfo,v=(v.nodeType===9?v:v.ownerDocument).__reactViewTransition,v!=null&&(g.count++,g.waitingForViewTransition=!0,g=Fl.bind(g),v.finished.then(g,g))),g=(r&62914560)===r?cm-ln():(r&4194048)===r?BS-ln():0,g=sV(f,g),g!==null)){ui=r,t.cancelPendingCommit=g(Qx.bind(null,t,e,r,n,i,o,a,s,l,u,c,f,null,m,d)),Oo(t,r,a,!u);return}Qx(t,e,r,n,i,o,a,s,l,u,c,f)}function rN(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],r=o.getSnapshot;o=o.value;try{if(!mn(r(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Oo(t,e,n,i){e=Bb(t,e),e&=~Yf,e&=~wr,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var r=31-cn(o),a=1<<r;i[r]=-1,o&=~a}n!==0&&Hb(t,n,e)}function fm(){return(bt&6)===0?(su(0,!1),!1):!0}function iy(){if(ht!==null){if(At===0)var t=ht.return;else t=ht,Bi=Pr=null,Gg(t),Ka=null,Yl=0,t=ht;for(;t!==null;)dS(t.alternate,t),t=t.return;ht=null}}function os(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,MN(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ui=0,iy(),Rt=t,ht=n=Ui(t.current,null),gt=e,At=0,nn=null,Ro=!1,hs=tu(t,e),ny=!1,ns=sn=Yf=wr=Ko=kt=0,Ze=Ll=null,Ih=!1,ki=Bb(t,e),em(),n}function GS(t,e){ft=null,nt.H=Bf,e===ds||e===om?(e=xx(),At=3):e===Vg?(e=xx(),At=4):At=e===Qg?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,nn=e,ht===null&&(kt=1,Uf(t,Mn(e,t.current)))}function jS(){var t=we.current;return t===null?!0:(gt&4194048)===gt?Ve===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Ve:!1}function YS(){var t=nt.H;return nt.H=Bf,t===null?Bf:t}function qS(){var t=nt.A;return nt.A=iN,t}function Xf(){kt=4,Ro||(gt&4194048)!==gt&&we.current!==null||(hs=!0),(Ko&134217727)===0&&(wr&134217727)===0||Rt===null||Oo(Rt,gt,sn,!1)}function Ip(t,e,n){var i=bt;bt|=2;var o=YS(),r=qS();(Rt!==t||gt!==e)&&(kf=null,os(t,e)),e=!1;var a=kt;t:do try{if(At!==0&&ht!==null){var s=ht,l=nn;switch(At){case 8:iy(),a=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var u=At;if(At=0,nn=null,ja(t,s,l,u),n&&hs){a=0;break t}break;default:u=At,At=0,nn=null,ja(t,s,l,u)}}aN(),a=kt;break}catch(c){GS(t,c)}while(!0);return e&&t.shellSuspendCounter++,Bi=Pr=null,bt=i,nt.H=o,nt.A=r,ht===null&&(Rt=null,gt=0,em()),a}function aN(){for(;ht!==null;)kS(ht)}function sN(t,e){var n=bt;bt|=2;var i=YS(),o=qS();Rt!==t||gt!==e?(kf=null,qf=ln()+500,os(t,e)):hs=tu(t,e);t:do try{if(At!==0&&ht!==null){e=ht;var r=nn;e:switch(At){case 1:At=0,nn=null,ja(t,e,r,1);break;case 2:case 9:if(vx(r)){At=0,nn=null,Zx(e);break}e=function(){At!==2&&At!==9||Rt!==t||(At=7),mi(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:vx(r)?(At=0,nn=null,Zx(e)):(At=0,nn=null,ja(t,e,r,7));break;case 5:var a=null;switch(ht.tag){case 26:a=ht.memoizedState;case 5:case 27:var s=ht;if(a?hT(a):s.stateNode.complete){At=0,nn=null;var l=s.sibling;if(l!==null)ht=l;else{var u=s.return;u!==null?(ht=u,mm(u)):ht=null}break e}}At=0,nn=null,ja(t,e,r,5);break;case 6:At=0,nn=null,ja(t,e,r,6);break;case 8:iy(),kt=6;break t;default:throw Error(R(462))}}lN();break}catch(c){GS(t,c)}while(!0);return Bi=Pr=null,nt.H=i,nt.A=o,bt=n,ht!==null?0:(Rt=null,gt=0,em(),kt)}function lN(){for(;ht!==null&&!CR();)kS(ht)}function kS(t){var e=mS(t.alternate,t,ki);t.memoizedProps=t.pendingProps,e===null?mm(t):ht=e}function Zx(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=_x(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=_x(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Gg(e);var i=e;i===he&&(mt?(Rf(i),i.tag===5&&i.stateNode!=null&&(Lt=i.stateNode)):(Rf(i),mt=!0));default:dS(n,e),e=ht=p1(e,ki),e=mS(n,e,ki)}t.memoizedProps=t.pendingProps,e===null?mm(t):ht=e}function ja(t,e,n,i){Bi=Pr=null,Gg(e),Ka=null,Yl=0;var o=e.return;try{if(FO(t,o,e,n,gt)){kt=1,Uf(t,Mn(n,t.current)),ht=null;return}}catch(r){if(o!==null)throw ht=o,r;kt=1,Uf(t,Mn(n,t.current)),ht=null;return}e.flags&32768?(mt||i===1?t=!0:hs||(gt&536870912)!==0?t=!1:(Ro=t=!0,(i===2||i===9||i===3||i===6)&&(i=we.current,i!==null&&i.tag===13&&(i.flags|=16384))),XS(e,t)):mm(e)}function mm(t){var e=t;do{if((e.flags&32768)!==0){XS(e,Ro);return}t=e.return;var n=$O(e.alternate,e,ki);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);kt===0&&(kt=5)}function XS(t,e){do{var n=tN(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);kt=6,ht=null}function Qx(t,e,n,i,o,r,a,s,l,u,c,f){t.cancelPendingCommit=null;do dm();while(Pt!==0);if((bt&6)!==0)throw Error(R(327));if(e!==null){if(e===t.current)throw Error(R(177));t===Rt&&(ht=Rt=null,gt=0),Lr=e,Yn=t,ui=n,Wh=o,US=i,uN(t,e,n,a,s,l,f)}}function uN(t,e,n,i,o,r,a){var s=e.lanes|e.childLanes;if(Jh=s,s|=wg,_R(t,n,s,i,o,r),Ia=null,(n&335544064)===n?(Ja=UO(t),i=10262):(Ja=null,i=10256),(e.subtreeFlags&i)!==0||(e.flags&i)!==0?(t.callbackNode=null,t.callbackPriority=0,hN(Af,function(){return ng(),null})):(t.callbackNode=null,t.callbackPriority=0),Gf=!1,i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=nt.T,nt.T=null,o=St.p,St.p=2,r=bt,bt|=4;try{eN(t,e,n)}finally{bt=r,St.p=o,nt.T=i}}Pt=1,Gf?Fa=zN(a,t.containerInfo,Ja,$h,tg,fN,eg,ng,cN,null,null):($h(),tg(),eg())}function cN(t){if(Pt!==0){var e=Yn.onRecoverableError;e(t,{componentStack:null})}}function fN(){Pt===3&&(Pt=0,OS(Lr,Yn),Pt=4)}function $h(){if(Pt===1){Pt=0;var t=Yn,e=Lr,n=ui,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=nt.T,nt.T=null;var o=St.p;St.p=2;var r=bt;bt|=4;try{Tl=jf=!1,DS(e,t,n),n=ag;var a=a1(t.containerInfo),s=n.focusedElem,l=n.selectionRange;if(a!==s&&s&&s.ownerDocument&&r1(s.ownerDocument.documentElement,s)){if(l!==null&&Cg(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 f=s.ownerDocument||document,m=f&&f.defaultView||window;if(m.getSelection){var d=m.getSelection(),g=s.textContent.length,v=Math.min(l.start,g),x=l.end===void 0?v:Math.min(l.end,g);!d.extend&&v>x&&(a=x,x=v,v=a);var p=cx(s,v),h=cx(s,x);if(p&&h&&(d.rangeCount!==1||d.anchorNode!==p.node||d.anchorOffset!==p.offset||d.focusNode!==h.node||d.focusOffset!==h.offset)){var y=f.createRange();y.setStart(p.node,p.offset),d.removeAllRanges(),v>x?(d.addRange(y),d.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),d.addRange(y))}}}}for(f=[],d=s;d=d.parentNode;)d.nodeType===1&&f.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var b=f[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}us=!!rg,ag=rg=null}finally{bt=r,St.p=o,nt.T=i}}t.current=e,Pt=2}}function tg(){if(Pt===2){Pt=0;var t=Yn,e=Lr,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=nt.T,nt.T=null;var i=St.p;St.p=2;var o=bt;bt|=4;try{TS(t,e.alternate,e)}finally{bt=o,St.p=i,nt.T=n}}Pt=3}}function eg(){if(Pt===4||Pt===3){Pt=0;var t=Fa;Fa=null,wR();var e=Yn,n=Lr,i=ui,o=US,r=(i&335544064)===i?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?Pt=5:(Pt=0,Lr=Yn=null,KS(e,e.pendingLanes)),r=e.pendingLanes,r===0&&(Ho=null),xg(i),n=n.stateNode,un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot($l,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=nt.T,r=St.p,St.p=2,nt.T=null;try{for(var a=e.onRecoverableError,s=0;s<o.length;s++){var l=o[s];a(l.value,{componentStack:l.stack})}}finally{nt.T=n,St.p=r}}if(o=Ia,a=Ja,Ja=null,o!==null&&(Ia=null,a===null&&(a=[]),t!==null))for(l=0;l<o.length;l++)n=(0,o[l])(a),n!==void 0&&t.finished.finally(n);(ui&3)!==0&&dm(),mi(e),r=e.pendingLanes,(i&261930)!==0&&(r&42)!==0?e===hf?_l++:(_l=0,hf=e):(_l=0,hf=null),su(0,!1)}}function KS(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ou(e)))}function dm(){return Fa!==null&&(Fa.skipTransition(),Fa=null),$h(),tg(),eg(),ng()}function ng(){if(Pt!==5)return!1;var t=Yn,e=Jh;Jh=0;var n=xg(ui),i=nt.T,o=St.p;try{St.p=32>n?32:n,nt.T=null,n=Wh,Wh=null;var r=Yn,a=ui;if(Pt=0,Lr=Yn=null,ui=0,(bt&6)!==0)throw Error(R(331));var s=bt;if(bt|=4,LS(r.current),NS(r,r.current,a,n),bt=s,su(0,!1),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot($l,r)}catch{}return!0}finally{St.p=o,nt.T=i,KS(t,e)}}function Fx(t,e,n){e=Mn(n,e),e=_h(t.stateNode,e,2),t=_o(t,e,2),t!==null&&(eu(t,2),mi(t))}function wt(t,e,n){if(t.tag===3)Fx(t,t,n);else for(;e!==null;){if(e.tag===3){Fx(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ho===null||!Ho.has(i))){t=Mn(n,t),n=sS(2),i=_o(e,n,2),i!==null&&(lS(n,i,e,t),eu(i,2),mi(i));break}}e=e.return}}function Jp(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new oN;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(n)||(ny=!0,o.add(n),t=mN.bind(null,t,e,n),e.then(t,t))}function mN(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rt===t&&(gt&n)===n&&((kt===4||kt===3&&(gt&62914560)===gt&&300>ln()-cm)&&(bt&2)===0?os(t,0):Yf|=n,ns===gt&&(ns=0)),mi(t)}function ZS(t,e){e===0&&(e=Ub()),t=Hr(t,e),t!==null&&(eu(t,e),mi(t))}function dN(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ZS(t,n)}function pN(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(e),ZS(t,n)}function hN(t,e){return yg(t,e)}var rs=null,Ra=null,ig=!1,Kf=!1,Wp=!1,No=0;function mi(t){t!==Ra&&t.next===null&&(Ra===null?rs=Ra=t:Ra=Ra.next=t),Kf=!0,ig||(ig=!0,yN())}function su(t,e){if(!Wp&&Kf){Wp=!0;do for(var n=!1,i=rs;i!==null;){if(!e)if(t!==0){var o=i.pendingLanes;if(o===0)var r=0;else{var a=i.suspendedLanes,s=i.pingedLanes;r=(1<<31-cn(42|t)+1)-1,r&=o&~(a&~s),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Ix(i,r))}else r=gt,r=If(i,i===Rt?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(r&3)===0||tu(i,r)||(n=!0,Ix(i,r));i=i.next}while(n);Wp=!1}}function gN(){QS()}function QS(){Kf=ig=!1;var t=0;No!==0&&wN()&&(t=No);for(var e=ln(),n=null,i=rs;i!==null;){var o=i.next,r=FS(i,e);r===0?(i.next=null,n===null?rs=o:n.next=o,o===null&&(Ra=n)):(n=i,(t!==0||(r&3)!==0)&&(Kf=!0)),i=o}Pt!==0&&Pt!==5||su(t,!1),No!==0&&(No=0)}function FS(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var a=31-cn(r),s=1<<a,l=o[a];l===-1?((s&n)===0||(s&i)!==0)&&(o[a]=LR(s,e)):l<=e&&(t.expiredLanes|=s),r&=~s}if(e=Rt,n=gt,n=If(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Op(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||tu(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Op(i),xg(n)){case 2:case 8:n=Lb;break;case 32:n=Af;break;case 268435456:n=_b;break;default:n=Af}return i=IS.bind(null,t),n=yg(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Op(i),t.callbackPriority=2,t.callbackNode=null,2}function IS(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(dm()&&t.callbackNode!==n)return null;var i=gt;return i=If(t,t===Rt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(PS(t,i,e),FS(t,ln()),t.callbackNode!=null&&t.callbackNode===n?IS.bind(null,t):null)}function Ix(t,e){if(dm())return null;PS(t,e,!0)}function yN(){DN(function(){(bt&6)!==0?yg(zb,gN):QS()})}function oy(){if(No===0){var t=Or;t===0&&(t=_c,_c<<=1,(_c&261888)===0&&(_c=256)),No=t}return No}function Jx(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:nf(t)}function vN(t,e,n,i,o){if(e==="submit"&&n&&n.stateNode===o){var r=Jx((o[We]||null).action),a=i.submitter;a&&(e=(e=a[We]||null)?Jx(e.formAction):a.getAttribute("formAction"),e!==null&&(r=e,a=null));var s=new Wf("action","action",null,i,o);t.push({event:s,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(No!==0){var l=new FormData(o,a);zh(n,{pending:!0,data:l,method:o.method,action:r},null,l)}}else typeof r=="function"&&(s.preventDefault(),l=new FormData(o,a),zh(n,{pending:!0,data:l,method:o.method,action:r},r,l))},currentTarget:o}]})}}for(Ic=0;Ic<Th.length;Ic++)Jc=Th[Ic],Wx=Jc.toLowerCase(),$x=Jc[0].toUpperCase()+Jc.slice(1),qn(Wx,"on"+$x);var Jc,Wx,$x,Ic;qn(l1,"onAnimationEnd");qn(u1,"onAnimationIteration");qn(c1,"onAnimationStart");qn("dblclick","onDoubleClick");qn("focusin","onFocus");qn("focusout","onBlur");qn(RO,"onTransitionRun");qn(OO,"onTransitionStart");qn(NO,"onTransitionCancel");qn(f1,"onTransitionEnd");$a("onMouseEnter",["mouseout","mouseover"]);$a("onMouseLeave",["mouseout","mouseover"]);$a("onPointerEnter",["pointerout","pointerover"]);$a("onPointerLeave",["pointerout","pointerover"]);Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Br("onBeforeInput",["compositionend","keypress","textInput","paste"]);Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="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(" "),xN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function JS(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],o=i.event;i=i.listeners;t:{var r=void 0;if(e)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==r&&o.isPropagationStopped())break t;r=s,o.currentTarget=u;try{r(o)}catch(c){wf(c)}o.currentTarget=null,r=l}else for(a=0;a<i.length;a++){if(s=i[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==r&&o.isPropagationStopped())break t;r=s,o.currentTarget=u;try{r(o)}catch(c){wf(c)}o.currentTarget=null,r=l}}}}function pt(t,e){var n=e[Zv];n===void 0&&(n=e[Zv]=new Set);var i=t+"__bubble";n.has(i)||(WS(e,t,2,!1),n.add(i))}function $p(t,e,n){var i=0;e&&(i|=4),WS(n,t,i,e)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function ry(t){if(!t[Wc]){t[Wc]=!0,qb.forEach(function(n){n!=="selectionchange"&&(xN.has(n)||$p(n,!1,t),$p(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Wc]||(e[Wc]=!0,$p("selectionchange",!1,e))}}function WS(t,e,n,i){switch(TT(e)){case 2:var o=fV;break;case 8:o=mV;break;default:o=my}n=o.bind(null,e,n,t),o=void 0,!vh||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function th(t,e,n,i,o){var r=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var s=i.stateNode.containerInfo;if(s===o)break;if(a===4)for(a=i.return;a!==null;){var l=a.tag;if((l===3||l===4)&&a.stateNode.containerInfo===o)return;a=a.return}for(;s!==null;){if(a=br(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){i=r=a;continue t}s=s.parentNode}}i=i.return}Jb(function(){var u=r,c=Sg(n),f=[];t:{var m=m1.get(t);if(m!==void 0){var d=Wf,g=t;switch(t){case"keypress":if(rf(n)===0)break t;case"keydown":case"keyup":d=rO;break;case"focusin":g="focus",d=Bp;break;case"focusout":g="blur",d=Bp;break;case"beforeblur":case"afterblur":d=Bp;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=ex;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=ZR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=cO;break;case l1:case u1:case c1:d=IR;break;case f1:d=mO;break;case"scroll":case"scrollend":d=XR;break;case"wheel":d=pO;break;case"copy":case"cut":case"paste":d=WR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ix;break;case"submit":d=lO;break;case"toggle":case"beforetoggle":d=gO}var v=(e&4)!==0,x=!v&&(t==="scroll"||t==="scrollend"),p=v?m!==null?m+"Capture":null:m;v=[];for(var h=u,y;h!==null;){var b=h;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||p===null||(b=Ul(h,p),b!=null&&v.push(Kl(h,b,y))),x)break;h=h.return}0<v.length&&(m=new d(m,g,null,n,c),f.push({event:m,listeners:v}))}}if((e&7)===0){t:{if(d=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",d&&n!==yh&&(g=n.relatedTarget||n.fromElement)&&(br(g)||g[fs]))break t;(m||d)&&(g=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(d=n.relatedTarget||n.toElement,m=u,d=d?br(d):null,d!==null&&(x=Wl(d),v=d.tag,d!==x||v!==5&&v!==27&&v!==6)&&(d=null)):(m=null,d=u),m!==d&&(v=ex,b="onMouseLeave",p="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(v=ix,b="onPointerLeave",p="onPointerEnter",h="pointer"),x=m==null?g:bl(m),y=d==null?g:bl(d),g=new v(b,h+"leave",m,n,c),g.target=x,g.relatedTarget=y,b=null,br(c)===u&&(v=new v(p,h+"enter",d,n,c),v.target=y,v.relatedTarget=x,b=v),x=b,v=m&&d?rh(m,d,bN):null,m!==null&&tb(f,g,m,v,!1),d!==null&&x!==null&&tb(f,x,d,v,!0)))}t:{if(m=u?bl(u):window,d=m.nodeName&&m.nodeName.toLowerCase(),d==="select"||d==="input"&&m.type==="file")var E=sx;else if(ax(m))if(i1)E=wO;else{E=AO;var C=EO}else d=m.nodeName,!d||d.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?u&&bg(u.elementType)&&(E=sx):E=CO;if(E&&(E=E(t,u))){n1(f,E,n,c);break t}C&&C(t,m,u)}switch(C=u?bl(u):window,t){case"focusin":(ax(C)||C.contentEditable==="true")&&(_a=C,bh=u,Cl=null);break;case"focusout":Cl=bh=_a=null;break;case"mousedown":Sh=!0;break;case"contextmenu":case"mouseup":case"dragend":Sh=!1,fx(f,n,c);break;case"selectionchange":if(DO)break;case"keydown":case"keyup":fx(f,n,c)}var T;if(Ag)t:{switch(t){case"compositionstart":var S="onCompositionStart";break t;case"compositionend":S="onCompositionEnd";break t;case"compositionupdate":S="onCompositionUpdate";break t}S=void 0}else La?t1(t,n)&&(S="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&($b&&n.locale!=="ko"&&(La||S!=="onCompositionStart"?S==="onCompositionEnd"&&La&&(T=Wb()):(Mo=c,Tg="value"in Mo?Mo.value:Mo.textContent,La=!0)),C=Zf(u,S),0<C.length&&(S=new nx(S,t,null,n,c),f.push({event:S,listeners:C}),T?S.data=T:(T=e1(n),T!==null&&(S.data=T)))),(T=vO?xO(t,n):bO(t,n))&&(S=Zf(u,"onBeforeInput"),0<S.length&&(C=new nx("onBeforeInput","beforeinput",null,n,c),f.push({event:C,listeners:S}),C.data=T)),vN(f,t,u,n,c)}JS(f,e)})}function Kl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zf(t,e){for(var n=e+"Capture",i=[];t!==null;){var o=t,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Ul(t,n),o!=null&&i.unshift(Kl(t,o,r)),o=Ul(t,e),o!=null&&i.push(Kl(t,o,r))),t.tag===3)return i;t=t.return}return[]}function bN(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function tb(t,e,n,i,o){for(var r=e._reactName,a=[];n!==null&&n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===i)break;s!==5&&s!==26&&s!==27||u===null||(l=u,o?(u=Ul(n,r),u!=null&&a.unshift(Kl(n,u,l))):o||(u=Ul(n,r),u!=null&&a.push(Kl(n,u,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var SN=/\r\n?/g,TN=/\u0000|\uFFFD/g;function eb(t){return(typeof t=="string"?t:""+t).replace(SN,`
|
|
9
|
+
`).replace(TN,"")}function $S(t,e){return e=eb(e),eb(t)===e}function Ct(t,e,n,i,o,r){switch(n){case"children":if(typeof i=="string")e==="body"||e==="textarea"&&i===""||ts(t,i);else if(typeof i=="number"||typeof i=="bigint")e!=="body"&&ts(t,""+i);else return;break;case"className":Hc(t,"class",i);break;case"tabIndex":Hc(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Hc(t,n,i);break;case"style":Ib(t,i,r);return;case"data":if(e!=="object"){Hc(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=nf(i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"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"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",o.name,o,null),Ct(t,e,"formEncType",o.formEncType,o,null),Ct(t,e,"formMethod",o.formMethod,o,null),Ct(t,e,"formTarget",o.formTarget,o,null)):(Ct(t,e,"encType",o.encType,o,null),Ct(t,e,"method",o.method,o,null),Ct(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=nf(i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=ri);return;case"onScroll":i!=null&&pt("scroll",t);return;case"onScrollEnd":i!=null&&pt("scrollend",t);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(R(60));r?.__html!==n&&(t.innerHTML=n)}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=nf(i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":pt("beforetoggle",t),pt("toggle",t),ef(t,"popover",i);break;case"xlinkActuate":zi(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":zi(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":zi(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":zi(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":zi(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":zi(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":zi(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":zi(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":zi(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ef(t,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=qR.get(n)||n,ef(t,n,i);else return}xt=!0}function og(t,e,n,i,o,r){switch(n){case"style":Ib(t,i,r);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(R(60));r?.__html!==n&&(t.innerHTML=n)}}break;case"children":if(typeof i=="string")ts(t,i);else if(typeof i=="number"||typeof i=="bigint")ts(t,""+i);else return;break;case"onScroll":i!=null&&pt("scroll",t);return;case"onScrollEnd":i!=null&&pt("scrollend",t);return;case"onClick":i!=null&&(t.onclick=ri);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!kb.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),r=n.slice(2,o?n.length-7:void 0),e=t[We]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(r,e,o),typeof i=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(r,i,o);break t}xt=!0,n in t?t[n]=i:i===!0?t.setAttribute(n,""):ef(t,n,i)}return}xt=!0}function Ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var i=!1,o=!1,r;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(a!=null)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,r,a,n,null)}}o&&Ct(t,e,"srcSet",n.srcSet,n,null),i&&Ct(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var s=r=a=o=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":o=c;break;case"type":a=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(R(137,e));break;default:Ct(t,e,i,c,n,null)}}Zb(t,r,s,l,u,a,o,!1);return;case"select":pt("invalid",t),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case"value":r=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:Ct(t,e,o,s,n,null)}e=r,n=a,t.multiple=!!i,e!=null?qa(t,!!i,e,!1):n!=null&&qa(t,!!i,n,!0);return;case"textarea":pt("invalid",t),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(91));break;default:Ct(t,e,a,s,n,null)}Fb(t,i,o,r);return;case"option":for(l in n)n.hasOwnProperty(l)&&(i=n[l],i!=null)&&(l==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Ct(t,e,l,i,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(i=0;i<Xl.length;i++)pt(Xl[i],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("load",t);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 n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,e));default:Ct(t,e,u,i,n,null)}return;default:if(bg(e)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&og(t,e,c,i,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(i=n[s],i!=null&&Ct(t,e,s,i,n,null))}var EN={};function AN(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,a=null,s=null,l=null,u=null,c=null;for(d in n){var f=n[d];if(n.hasOwnProperty(d)&&f!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":l=f;default:i.hasOwnProperty(d)||Ct(t,e,d,null,i,f)}}for(var m in i){var d=i[m];if(f=n[m],i.hasOwnProperty(m)&&(d!=null||f!=null))switch(m){case"type":d!==f&&(xt=!0),r=d;break;case"name":d!==f&&(xt=!0),o=d;break;case"checked":d!==f&&(xt=!0),u=d;break;case"defaultChecked":d!==f&&(xt=!0),c=d;break;case"value":d!==f&&(xt=!0),a=d;break;case"defaultValue":d!==f&&(xt=!0),s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(R(137,e));break;default:d!==f&&Ct(t,e,m,d,i,f)}}gh(t,a,s,l,u,c,r,o);return;case"select":d=a=s=m=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":d=l;default:i.hasOwnProperty(r)||Ct(t,e,r,null,i,l)}for(o in i)if(r=i[o],l=n[o],i.hasOwnProperty(o)&&(r!=null||l!=null))switch(o){case"value":r!==l&&(xt=!0),m=r;break;case"defaultValue":r!==l&&(xt=!0),s=r;break;case"multiple":r!==l&&(xt=!0),a=r;default:r!==l&&Ct(t,e,o,r,i,l)}e=s,n=a,i=d,m!=null?qa(t,!!n,m,!1):!!i!=!!n&&(e!=null?qa(t,!!n,e,!0):qa(t,!!n,n?[]:"",!1));return;case"textarea":d=m=null;for(s in n)if(o=n[s],n.hasOwnProperty(s)&&o!=null&&!i.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ct(t,e,s,null,i,o)}for(a in i)if(o=i[a],r=n[a],i.hasOwnProperty(a)&&(o!=null||r!=null))switch(a){case"value":o!==r&&(xt=!0),m=o;break;case"defaultValue":o!==r&&(xt=!0),d=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(R(91));break;default:o!==r&&Ct(t,e,a,o,i,r)}Qb(t,m,d);return;case"option":for(var g in n)m=n[g],n.hasOwnProperty(g)&&m!=null&&!i.hasOwnProperty(g)&&(g==="selected"?t.selected=!1:Ct(t,e,g,null,i,m));for(l in i)m=i[l],d=n[l],i.hasOwnProperty(l)&&m!==d&&(m!=null||d!=null)&&(l==="selected"?(m!==d&&(xt=!0),t.selected=m&&typeof m!="function"&&typeof m!="symbol"):Ct(t,e,l,m,i,d));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 v in n)m=n[v],n.hasOwnProperty(v)&&m!=null&&!i.hasOwnProperty(v)&&Ct(t,e,v,null,i,m);for(u in i)if(m=i[u],d=n[u],i.hasOwnProperty(u)&&m!==d&&(m!=null||d!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(R(137,e));break;default:Ct(t,e,u,m,i,d)}return;default:if(bg(e)){for(var x in n)m=n[x],n.hasOwnProperty(x)&&m!==void 0&&!i.hasOwnProperty(x)&&og(t,e,x,void 0,i,m);for(c in i)m=i[c],d=n[c],!i.hasOwnProperty(c)||m===d||m===void 0&&d===void 0||og(t,e,c,m,i,d);return}}for(var p in n)m=n[p],n.hasOwnProperty(p)&&m!=null&&!i.hasOwnProperty(p)&&Ct(t,e,p,null,i,m);for(f in i)m=i[f],d=n[f],!i.hasOwnProperty(f)||m===d||m==null&&d==null||Ct(t,e,f,m,i,d)}function nb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CN(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],r=o.transferSize,a=o.initiatorType,s=o.duration;if(r&&s&&nb(a)){for(a=0,s=o.responseEnd,i+=1;i<n.length;i++){var l=n[i],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&nb(f)&&(l=l.responseEnd,a+=c*(l<s?1:(s-u)/(l-u)))}if(--i,e+=8*(r+a)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var rg=null,ag=null;function Zl(t){return t.nodeType===9?t:t.ownerDocument}function ib(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function tT(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function eT(t,e,n,i){return n=Zl(n).createElement(t),n[Se]=i,n[We]=e,Ce(n,t,e),pe(n),n}function sg(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var eh=null;function wN(){var t=window.event;return t&&t.type==="popstate"?t===eh?!1:(eh=t,!0):(eh=null,!1)}var ay=typeof setTimeout=="function"?setTimeout:void 0,MN=typeof clearTimeout=="function"?clearTimeout:void 0,ob=typeof Promise=="function"?Promise:void 0,rb=typeof requestAnimationFrame=="function"?requestAnimationFrame:ay,DN=typeof queueMicrotask=="function"?queueMicrotask:typeof ob<"u"?function(t){return ob.resolve(null).then(t).catch(RN)}:ay;function RN(t){setTimeout(function(){throw t})}function Qo(t){return t==="head"}function ab(t,e){var n=e,i=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(o),cs(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")ih(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ih(n);for(var r=n.firstChild;r;){var a=r.nextSibling,s=r.nodeName;r[nu]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=a}}else n==="body"&&ih(t.ownerDocument.body);n=o}while(n);cs(e)}function sb(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function nT(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var i=1;else for(var o=i=0;o<e.length;o++){var r=e[o];0<r.width&&0<r.height&&i++}i===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function iT(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function oT(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function lg(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return oT(e,n,t)}function ON(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var n=getComputedStyle(t);return oT(e,n,t)}function NN(t){return t.documentElement.clientHeight}function VN(t){this.addEventListener("load",t),this.addEventListener("error",t)}function zN(t,e,n,i,o,r,a,s,l){var u=e.nodeType===9?e:e.ownerDocument;try{var c=u.startViewTransition({update:function(){var m=u.defaultView,d=m.navigation&&m.navigation.transition,g=u.fonts.status;i();var v=[];if(g==="loaded"&&(NN(u),u.fonts.status==="loading"&&v.push(u.fonts.ready)),g=v.length,t!==null)for(var x=t.suspenseyImages,p=0,h=0;h<x.length;h++){var y=x[h];if(!y.complete){var b=y.getBoundingClientRect();if(0<b.bottom&&0<b.right&&b.top<m.innerHeight&&b.left<m.innerWidth){if(p+=gT(y),p>vf){v.length=g;break}y=new Promise(VN.bind(y)),v.push(y)}}}if(0<v.length)return m=Promise.race([Promise.all(v),new Promise(function(E){return setTimeout(E,500)})]).then(o,o),(d?Promise.allSettled([d.finished,m]):m).then(r,r);if(o(),d)return d.finished.then(r,r);r()},types:n});u.__reactViewTransition=c;var f=[];return c.ready.then(function(){for(var m=u.documentElement.getAnimations({subtree:!0}),d=0;d<m.length;d++){var g=m[d],v=g.effect,x=v.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){f.push(g),g=v.getKeyframes();for(var p=x=void 0,h=!0,y=0;y<g.length;y++){var b=g[y],E=b.width;if(x===void 0)x=E;else if(x!==E){h=!1;break}if(E=b.height,p===void 0)p=E;else if(p!==E){h=!1;break}delete b.width,delete b.height,b.transform==="none"&&delete b.transform}h&&x!==void 0&&p!==void 0&&(v.setKeyframes(g),h=getComputedStyle(v.target,v.pseudoElement),h.width!==x||h.height!==p)&&(h=g[0],h.width=x,h.height=p,h=g[g.length-1],h.width=x,h.height=p,v.setKeyframes(g))}}a()},function(m){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{typeof m=="object"&&m!==null&&m.name==="InvalidStateError"&&(m.message==="View transition was skipped because document visibility state is hidden."||m.message==="Skipping view transition because document visibility state has become hidden."||m.message==="Skipping view transition because viewport size changed."||m.message==="Transition was aborted because of invalid state")&&(m=null),m!==null&&l(m)}finally{i(),o(),a()}}),c.finished.finally(function(){for(var m=0;m<f.length;m++)f[m].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return i(),o(),a(),null}}function Sr(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}Sr.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:Ot({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};Sr.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),i=[],o=0;o<n.length;o++){var r=n[o].effect;r!==null&&r.target===t&&r.pseudoElement===e&&i.push(n[o])}return i};Sr.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function rT(t){return{name:t,group:new Sr("group",t),imagePair:new Sr("image-pair",t),old:new Sr("old",t),new:new Sr("new",t)}}function dn(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}dn.prototype.addEventListener=function(t,e,n){var i=null,o=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(aT(r,t,e,n)===-1){var a=this,s=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(s=function(l){a.removeEventListener(t,e,n),typeof e=="function"?e.call(this,l):e.handleEvent(l)}),i!==null&&(o=a.removeEventListener.bind(a,t,e,n),i.addEventListener("abort",o,{once:!0}),o=i.removeEventListener.bind(i,"abort",o)),i=as(n),r.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:s,cleanup:o}),Je(this._fragmentFiber.child,!1,LN,t,s,i)}this._eventListeners=r}};function LN(t,e,n,i){return re(t).addEventListener(e,n,i),!1}dn.prototype.removeEventListener=function(t,e,n){var i=this._eventListeners;if(i!==null&&(e=aT(i,t,e,n),e!==-1)){var o=i[e];n=o.attachedListener;var r=o.cleanup;o=as(o.optionsOrUseCapture),Je(this._fragmentFiber.child,!1,_N,t,n,o),i.splice(e,1),r!==null&&r()}};function _N(t,e,n,i){return re(t).removeEventListener(e,n,i),!1}function as(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function lb(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function aT(t,e,n,i){if(t.length===0)return-1;i=lb(i);for(var o=0;o<t.length;o++){var r=t[o];if(r.type===e&&r.listener===n&&lb(r.optionsOrUseCapture)===i)return o}return-1}dn.prototype.dispatchEvent=function(t){var e=_r(this._fragmentFiber);if(e===null)return!0;e=re(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var i=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var o=0;o<n.length;o++){var r=n[o];i.addEventListener(r.type,r.attachedListener,as(r.optionsOrUseCapture))}if(e.appendChild(i),t=i.dispatchEvent(t),n)for(o=0;o<n.length;o++)r=n[o],i.removeEventListener(r.type,r.attachedListener,as(r.optionsOrUseCapture));return e.removeChild(i),t}return e.dispatchEvent(t)};dn.prototype.focus=function(t){Je(this._fragmentFiber.child,!0,sT,t,void 0,void 0)};function sT(t,e){return t.tag===6?!1:(t=re(t),ZN(t,e))}dn.prototype.focusLast=function(t){var e=[];Je(this._fragmentFiber.child,!0,sy,e,void 0,void 0);for(var n=e.length-1;0<=n&&!sT(e[n],t);n--);};function sy(t,e){return e.push(t),!1}dn.prototype.blur=function(){var t=_r(this._fragmentFiber);t!==null&&(t=re(t),t=Zl(t).activeElement,t!==null&&Je(this._fragmentFiber.child,!1,BN,t,void 0,void 0))};function BN(t,e){return t.tag===6?!1:(t=re(t),t===e||t.contains(e)?(e.blur(),!0):!1)}dn.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Je(this._fragmentFiber.child,!1,UN,t,void 0,void 0)};function UN(t,e){return t.tag===6||(t=re(t),e.observe(t)),!1}dn.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Je(this._fragmentFiber.child,!1,HN,t,void 0,void 0);for(var n=e=0;n<jn.length;n++){var i=jn[n];i.fragmentInstance===this&&i.observer===t?t.unobserve(i.instance):jn[e++]=i}jn.length=e}};function HN(t,e){return t.tag===6||(t=re(t),e.unobserve(t)),!1}var jn=[],nh=!1;function PN(t,e,n){jn.push({fragmentInstance:t,observer:e,instance:n}),nh||(nh=!0,QN(function(){nh=!1;var i=jn;jn=[];for(var o=0;o<i.length;o++){var r=i[o];r.observer.unobserve(r.instance)}}))}dn.prototype.getClientRects=function(){var t=[];return Je(this._fragmentFiber.child,!1,GN,t,void 0,void 0),t};function GN(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=re(t),e.push.apply(e,t.getClientRects());return!1}dn.prototype.getRootNode=function(t){var e=_r(this._fragmentFiber);return e===null?this:re(e).getRootNode(t)};dn.prototype.compareDocumentPosition=function(t){var e=_r(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Je(this._fragmentFiber.child,!1,sy,n,void 0,void 0);var i=re(e);if(n.length===0){if(n=i,jv(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var o=i=n.compareDocumentPosition(t);return n===t?o=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Rb(e)[1],n===null?o=Node.DOCUMENT_POSITION_PRECEDING:(t=re(n).compareDocumentPosition(t),o=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=re(n[0]),o=re(n[n.length-1]);var r=jv(this._fragmentFiber)?e.parentElement:i;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var a=e.compareDocumentPosition(t),s=o.compareDocumentPosition(t),l=a&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=i&&r&&a&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,e=i&&e===t||r&&o===t||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&e===t||!r&&o===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:a,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||jN(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function jN(t,e,n,i,o){var r=br(o);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)t:{for(;r!==null;){if(r.tag===7&&(r===e||r.alternate===e)){n=!0;break t}r=r.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=o.ownerDocument,o===r||o===r.documentElement||o===r.body;t:{for(r=e,e=_r(e);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==e&&r.alternate!==e)){r=!0;break t}r=r.return}r=!1}return r}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!r)&&!(e=r===n)&&(e=rh(n,r,Yv),e===null?e=!1:(Je(e,!0,yR,r,n),r=Oa,Oa=null,e=r!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!r)&&!(e=r===i)&&(e=rh(i,r,Yv),e===null?e=!1:(Je(e,!0,vR,r,i),r=Oa,oh=Oa=null,e=r!==null)),e):!1}function ub(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}dn.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(R(566));var e=[];Je(this._fragmentFiber.child,!1,sy,e,void 0,void 0);var n=t!==!1;if(e.length===0){var i=Rb(this._fragmentFiber);if(i=n?i[1]||i[0]||_r(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){t=re(i),ub(t,n);return}if(i=re(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(t);return}i.scrollIntoView(t)}}for(i=n?e.length-1:0;i!==(n?-1:e.length);){var o=e[i];o.tag===6?(o=re(o),ub(o,n)):re(o).scrollIntoView(t),i+=n?-1:1}};function YN(t,e){return t=re(t),lT(t,e),!1}function lT(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function uT(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];t.addEventListener(o.type,o.attachedListener,as(o.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){for(var a=0,s=0;s<jn.length;s++){var l=jn[s];(l.fragmentInstance!==e||l.observer!==r||l.instance!==t)&&(jn[a++]=l)}jn.length=a,r.observe(t)}),lT(t,e))}function qN(t,e){var n=e._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];t.removeEventListener(o.type,o.attachedListener,as(o.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?PN(e,r,t):r.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function ug(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ug(n),Jf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function kN(t,e,n,i){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[nu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Rn(t.nextSibling),t===null)break}return null}function XN(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Rn(t.nextSibling),t===null))return null;return t}function cT(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Rn(t.nextSibling),t===null))return null;return t}function cg(t){return t.data==="$?"||t.data==="$~"}function ly(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function KN(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Rn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var fg=null;function cb(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Rn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function fb(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function ZN(t,e){function n(){i=!0}if(t.ownerDocument.activeElement===t)return!0;var i=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return i}function QN(t){rb(function(){rb(function(e){return t(e)})})}function fT(t,e,n){switch(e=Zl(n),t){case"html":if(t=e.documentElement,!t)throw Error(R(452));return t;case"head":if(t=e.head,!t)throw Error(R(453));return t;case"body":if(t=e.body,!t)throw Error(R(454));return t;default:throw Error(R(451))}}function mT(t,e,n){for(var i in n){var o=n[i];n.hasOwnProperty(i)&&o!=null&&Ct(t,e,i,null,EN,o)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===ri&&(t.onclick=null),Jf(t)}function ih(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Jf(t)}var On=new Map,mb=new Set;function Ql(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Zi=St.d;St.d={f:FN,r:IN,D:JN,C:WN,L:$N,m:tV,X:nV,S:eV,M:iV};function FN(){var t=Zi.f(),e=fm();return t||e}function IN(t){var e=ms(t);e!==null&&e.tag===5&&e.type==="form"?I1(e):Zi.r(t)}var gs=typeof document>"u"?null:document;function dT(t,e,n){var i=gs;if(i&&typeof e=="string"&&e){var o=wn(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),mb.has(o)||(mb.add(o),t={rel:t,crossOrigin:n,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),Ce(e,"link",t),pe(e),i.head.appendChild(e)))}}function JN(t){Zi.D(t),dT("dns-prefetch",t,null)}function WN(t,e){Zi.C(t,e),dT("preconnect",t,e)}function $N(t,e,n){Zi.L(t,e,n);var i=gs;if(i&&t&&e){var o='link[rel="preload"][as="'+wn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+wn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+wn(n.imageSizes)+'"]')):o+='[href="'+wn(t)+'"]';var r=o;switch(e){case"style":r=ss(t);break;case"script":r=ys(t)}if(!(On.has(r)||(t=Ot({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),On.set(r,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(lu(r))||e==="script"&&i.querySelector(uu(r))))){var a=i.createElement("link");Ce(a,"link",t),e==="style"&&(a[Cf]=!0,a.onload=a.onerror=function(){Yb(a)}),pe(a),i.head.appendChild(a)}}}function tV(t,e){Zi.m(t,e);var n=gs;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+wn(i)+'"][href="'+wn(t)+'"]',r=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=ys(t)}if(!On.has(r)&&(t=Ot({rel:"modulepreload",href:t},e),On.set(r,t),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(uu(r)))return}i=n.createElement("link"),Ce(i,"link",t),pe(i),n.head.appendChild(i)}}}function eV(t,e,n){Zi.S(t,e,n);var i=gs;if(i&&t){var o=Ya(i).hoistableStyles,r=ss(t);e=e||"default";var a=o.get(r);if(!a){var s={loading:0,preload:null};if(a=i.querySelector(lu(r)))s.loading=5;else{t=Ot({rel:"stylesheet",href:t,"data-precedence":e},n),(n=On.get(r))&&uy(t,n);var l=a=i.createElement("link");pe(l),Ce(l,"link",t),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,gf(a,e,i)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(r,a)}}}function nV(t,e){Zi.X(t,e);var n=gs;if(n&&t){var i=Ya(n).hoistableScripts,o=ys(t),r=i.get(o);r||(r=n.querySelector(uu(o)),r||(t=Ot({src:t,async:!0},e),(e=On.get(o))&&cy(t,e),r=n.createElement("script"),pe(r),Ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(o,r))}}function iV(t,e){Zi.M(t,e);var n=gs;if(n&&t){var i=Ya(n).hoistableScripts,o=ys(t),r=i.get(o);r||(r=n.querySelector(uu(o)),r||(t=Ot({src:t,async:!0,type:"module"},e),(e=On.get(o))&&cy(t,e),r=n.createElement("script"),pe(r),Ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(o,r))}}function db(t,e,n,i){var o=(o=Vo.current)?Ql(o):null;if(!o)throw Error(R(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ss(n.href),e=Ya(o).hoistableStyles,i=e.get(n),i||(i={type:"style",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ss(n.href);var r=Ya(o).hoistableStyles,a=r.get(t);if(a||(o=o.ownerDocument||o,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,a),(r=o.querySelector(lu(t)))?r._p||(a.instance=r,a.state.loading=5):(r=On.get(t),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(t,r)),oV(o,t,r,a.state))),e&&i===null)throw Error(R(528,""));return a}if(e&&i!==null)throw Error(R(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=ys(n),e=Ya(o).hoistableScripts,i=e.get(n),i||(i={type:"script",instance:null,count:0,state:null},e.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,t))}}function ss(t){return'href="'+wn(t)+'"'}function lu(t){return'link[rel="stylesheet"]['+t+"]"}function pT(t){return Ot({},t,{"data-precedence":t.precedence,precedence:null})}function oV(t,e,n,i){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Cf]!==!0){i.loading=1;return}}else e=t.createElement("link"),e[Cf]=!0,e.onload=e.onerror=Yb.bind(null,e),Ce(e,"link",n),pe(e),t.head.appendChild(e);i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2})}function ys(t){return'[src="'+wn(t)+'"]'}function uu(t){return"script[async]"+t}function pb(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+wn(n.href)+'"]');if(i)return e.instance=i,pe(i),i;var o=Ot({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),pe(i),Ce(i,"style",o),gf(i,n.precedence,t),e.instance=i;case"stylesheet":o=ss(n.href);var r=t.querySelector(lu(o));if(r)return e.state.loading|=4,e.instance=r,pe(r),r;i=pT(n),(o=On.get(o))&&uy(i,o),r=(t.ownerDocument||t).createElement("link"),pe(r);var a=r;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Ce(r,"link",i),e.state.loading|=4,gf(r,n.precedence,t),e.instance=r;case"script":return r=ys(n.src),(o=t.querySelector(uu(r)))?(e.instance=o,pe(o),o):(i=n,(o=On.get(r))&&(i=Ot({},n),cy(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),pe(o),Ce(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(R(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,gf(i,n.precedence,t));return e.instance}function gf(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,r=o,a=0;a<i.length;a++){var s=i[a];if(s.dataset.precedence===e)r=s;else if(r!==o)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function uy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function cy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var yf=null;function hb(t,e,n){if(yf===null){var i=new Map,o=yf=new Map;o.set(n,i)}else o=yf,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var r=n[o];if(!(r[nu]||r[Se]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var a=r.getAttribute(e)||"";a=t+a;var s=i.get(a);s?s.push(r):i.set(a,[r])}}return i}function mg(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function rV(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function gb(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function hT(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function gT(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function yb(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=gT(e),t.suspenseyImages.push(e)),t=lV.bind(t),e.decode().then(t,t))}function aV(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ss(i.href),r=e.querySelector(lu(o));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Fl.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,pe(r);return}r=e.ownerDocument||e,i=pT(i),(o=On.get(o))&&uy(i,o),r=r.createElement("link"),pe(r);var a=r;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Ce(r,"link",i),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Fl.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var vf=0;function sV(t,e){return t.stylesheets&&t.count===0&&xf(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&xf(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&vf===0&&(vf=62500*CN());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xf(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>vf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function yT(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)xf(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Fl(){this.count--,yT(this)}function lV(){this.imgCount--,yT(this)}var Qf=null;function xf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Qf=new Map,e.forEach(uV,t),Qf=null,Fl.call(t))}function uV(t,e){if(!(e.state.loading&4)){var n=Qf.get(t);if(n)var i=n.get(null);else{n=new Map,Qf.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var a=o[r];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}o=e.instance,a=o.getAttribute("data-precedence"),r=n.get(a)||i,r===i&&n.set(null,o),n.set(a,o),this.count++,i=Fl.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),r?r.parentNode.insertBefore(o,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var ls={$$typeof:oi,Provider:null,Consumer:null,_currentValue:Tr,_currentValue2:Tr,_threadCount:0};function cV(t,e,n,i,o,r,a,s,l){this.tag=1,this.containerInfo=t,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=Np(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Np(0),this.hiddenUpdates=Np(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function vT(t,e,n,i,o,r,a,s,l,u,c,f){return t=new cV(t,e,n,a,l,u,c,f,s),e=1,r===!0&&(e|=24),r=Fe(3,null,null,e),t.current=r,r.stateNode=t,e=Og(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:e},zg(r),t}function xT(t){return t?(t=Ha,t):Ha}function bT(t,e,n,i,o,r){o=xT(o),i.context===null?i.context=o:i.pendingContext=o,i=Lo(e),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=_o(t,i,e),n!==null&&(Ie(n,t,e),Ml(n,t,e))}function vb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fy(t,e){vb(t,e),(t=t.alternate)&&vb(t,e)}function ST(t){if(t.tag===13||t.tag===31){var e=Hr(t,67108864);e!==null&&Ie(e,t,67108864),fy(t,67108864)}}function xb(t){if(t.tag===13||t.tag===31){var e=fn();e=vg(e);var n=Hr(t,e);n!==null&&Ie(n,t,e),fy(t,e)}}var us=!0;function fV(t,e,n,i){var o=nt.T;nt.T=null;var r=St.p;try{St.p=2,my(t,e,n,i)}finally{St.p=r,nt.T=o}}function mV(t,e,n,i){var o=nt.T;nt.T=null;var r=St.p;try{St.p=8,my(t,e,n,i)}finally{St.p=r,nt.T=o}}function my(t,e,n,i){if(us){var o=dg(i);if(o===null)th(t,e,i,Ff,n),bb(t,i);else if(pV(o,t,e,n,i))i.stopPropagation();else if(bb(t,i),e&4&&-1<dV.indexOf(t)){for(;o!==null;){var r=ms(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var a=yr(r.pendingLanes);if(a!==0){var s=r;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-cn(a);s.entanglements[1]|=l,a&=~l}mi(r),(bt&6)===0&&(qf=ln()+500,su(0,!1))}}break;case 31:case 13:s=Hr(r,2),s!==null&&Ie(s,r,2),fm(),fy(r,2)}if(r=dg(i),r===null&&th(t,e,i,Ff,n),r===o)break;o=r}o!==null&&i.stopPropagation()}else th(t,e,i,null,n)}}function dg(t){return t=Sg(t),dy(t)}var Ff=null;function dy(t){if(Ff=null,t=br(t),t!==null){var e=Wl(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=wb(e),t!==null)return t;t=null}else if(n===31){if(t=Mb(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ff=t,null}function TT(t){switch(t){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(MR()){case zb:return 2;case Lb:return 8;case Af:case DR:return 32;case _b:return 268435456;default:return 32}default:return 32}}var pg=!1,Po=null,Go=null,jo=null,Il=new Map,Jl=new Map,Co=[],dV="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 bb(t,e){switch(t){case"focusin":case"focusout":Po=null;break;case"dragenter":case"dragleave":Go=null;break;case"mouseover":case"mouseout":jo=null;break;case"pointerover":case"pointerout":Il.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(e.pointerId)}}function gl(t,e,n,i,o,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[o]},e!==null&&(e=ms(e),e!==null&&ST(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function pV(t,e,n,i,o){switch(e){case"focusin":return Po=gl(Po,t,e,n,i,o),!0;case"dragenter":return Go=gl(Go,t,e,n,i,o),!0;case"mouseover":return jo=gl(jo,t,e,n,i,o),!0;case"pointerover":var r=o.pointerId;return Il.set(r,gl(Il.get(r)||null,t,e,n,i,o)),!0;case"gotpointercapture":return r=o.pointerId,Jl.set(r,gl(Jl.get(r)||null,t,e,n,i,o)),!0}return!1}function ET(t){var e=br(t.target);if(e!==null){var n=Wl(e);if(n!==null){if(e=n.tag,e===13){if(e=wb(n),e!==null){t.blockedOn=e,Kv(t.priority,function(){xb(n)});return}}else if(e===31){if(e=Mb(n),e!==null){t.blockedOn=e,Kv(t.priority,function(){xb(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function bf(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=dg(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);yh=i,n.target.dispatchEvent(i),yh=null}else return e=ms(n),e!==null&&ST(e),t.blockedOn=n,!1;e.shift()}return!0}function Sb(t,e,n){bf(t)&&n.delete(e)}function hV(){pg=!1,Po!==null&&bf(Po)&&(Po=null),Go!==null&&bf(Go)&&(Go=null),jo!==null&&bf(jo)&&(jo=null),Il.forEach(Sb),Jl.forEach(Sb)}function $c(t,e){t.blockedOn===e&&(t.blockedOn=null,pg||(pg=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,hV)))}var tf=null;function Tb(t){tf!==t&&(tf=t,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,function(){tf===t&&(tf=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(dy(i||n)===null)continue;break}var r=ms(n);r!==null&&(t.splice(e,3),e-=3,zh(r,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function cs(t){function e(l){return $c(l,t)}Po!==null&&$c(Po,t),Go!==null&&$c(Go,t),jo!==null&&$c(jo,t),Il.forEach(e),Jl.forEach(e);for(var n=0;n<Co.length;n++){var i=Co[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Co.length&&(n=Co[0],n.blockedOn===null);)ET(n),n.blockedOn===null&&Co.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],r=n[i+1],a=o[We]||null;if(typeof r=="function")a||Tb(n);else if(a){var s=null;if(r&&r.hasAttribute("formAction")){if(o=r,a=r[We]||null)s=a.formAction;else if(dy(o)!==null)continue}else s=a.action;typeof s=="function"?n[i+1]=s:(n.splice(i,3),i-=3),Tb(n)}}}function AT(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(a){return o=a})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function py(t){this._internalRoot=t}pm.prototype.render=py.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(R(409));var n=e.current,i=fn();bT(n,i,t,e,null,null)};pm.prototype.unmount=py.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bT(t.current,2,null,t,null,null),fm(),e[fs]=null}};function pm(t){this._internalRoot=t}pm.prototype.unstable_scheduleHydration=function(t){if(t){var e=jb();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Co.length&&e!==0&&e<Co[n].priority;n++);Co.splice(n,0,t),n===0&&ET(t)}};var Eb=Ab.version;if(Eb!=="19.3.1")throw Error(R(527,Eb,"19.3.1"));St.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(R(188)):(t=Object.keys(t).join(","),Error(R(268,t)));return t=gR(e),t=t!==null?Db(t):null,t=t===null?null:t.stateNode,t};var gV={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:nt,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(yl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!yl.isDisabled&&yl.supportsFiber))try{$l=yl.inject(gV),un=yl}catch{}var yl;hm.createRoot=function(t,e){if(!Cb(t))throw Error(R(299));var n=!1,i="",o=oS,r=rS,a=aS;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=vT(t,1,!1,null,null,n,i,null,o,r,a,AT),t[fs]=e.current,ry(t),new py(e)};hm.hydrateRoot=function(t,e,n){if(!Cb(t))throw Error(R(299));var i=!1,o="",r=oS,a=rS,s=aS,l=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),e=vT(t,1,!0,e,n??null,i,o,l,r,a,s,AT),e.context=xT(null),n=e.current,i=fn(),i=vg(i),o=Lo(i),o.callback=null,_o(n,o,i),n=i,e.current.lanes=n,eu(e,n),mi(e),t[fs]=e.current,ry(t),new pm(e)};hm.version="19.3.1"});var DT=Jn((w_,MT)=>{"use strict";function wT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wT)}catch(t){console.error(t)}}wT(),MT.exports=CT()});var OT=Jn(gm=>{"use strict";var yV=Symbol.for("react.transitional.element"),vV=Symbol.for("react.fragment");function RT(t,e,n){var i=null;if(n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),"key"in e){n={};for(var o in e)o!=="key"&&(n[o]=e[o])}else n=e;return e=n.ref,{$$typeof:yV,type:t,key:i,ref:e!==void 0?e:null,props:n}}gm.Fragment=vV;gm.jsx=RT;gm.jsxs=RT});var yt=Jn((D_,NT)=>{"use strict";NT.exports=OT()});var Oi=B(ot(),1),HD=B(DT(),1);var lc=B(yt(),1),vn=B(ot(),1);var VT=B(ot(),1),vs=(0,VT.createContext)({});var zT=B(ot(),1);function di(t){let e=(0,zT.useRef)(null);return e.current===null&&(e.current=t()),e.current}var ym=B(ot(),1);var LT=typeof window<"u";var Fo=LT?ym.useLayoutEffect:ym.useEffect;var A0=B(yt(),1),nw=B(ot(),1),uo=B(ot(),1);var _T=B(ot(),1),Qi=(0,_T.createContext)(null);var $C=B(yt(),1);function Gr(t,e){t.indexOf(e)===-1&&t.push(e)}function $e(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var se=(t,e,n)=>n>e?e:n<t?t:n;var Zt={};var jr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Yr=t=>typeof t=="object"&&t!==null;var qr=t=>/^0[^.\s]+$/u.test(t);function hy(t){let e;return()=>(e===void 0&&(e=t()),e)}var Qt=t=>t;var Nn=(...t)=>t.reduce((e,n)=>i=>n(e(i)));var Ge=(t,e,n)=>{let i=e-t;return i?(n-t)/i:1};var pi=class{constructor(){this.subscriptions=[]}add(e){return Gr(this.subscriptions,e),()=>this.remove(e)}remove(e){$e(this.subscriptions,e)}notify(e,n,i){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let r=0;r<o;r++){let a=this.subscriptions[r];a&&a(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Bt=t=>t*1e3,ee=t=>t/1e3;var cu=(t,e)=>e?t*(1e3/e):0;var BT=(t,e,n)=>{let i=e-t;return((n-t)%i+i)%i+t};var gy=(t,e,n)=>t*(3*(1-t)*((1-t)*e+t*n)+t*t);function Io(t,e,n,i){return t===e&&n===i?Qt:o=>{let r=0,a=1,s=o;for(let l=0;;l++){s>=r&&s<=a||(s=(r+a)/2);let u=gy(s,t,n)-o;if(u*u<1e-28||l===40)break;u>0?a=s:r=s,s-=u*1e-7/(gy(s+1e-7,t,n)-o-u)}return gy(s,e,i)}}var vm=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var kr=t=>e=>1-t(1-e);var xm=Io(.33,1.53,.69,.99),xs=kr(xm),fu=vm(xs);var mu=t=>t>=1?1:(t*=2)<1?.5*xs(t):.5*(2-Math.pow(2,-10*(t-1)));var du=t=>1-Math.sin(Math.acos(t)),pu=kr(du),hu=vm(du);var yy=Io(.42,0,1,1),vy=Io(0,0,.58,1),bs=Io(.42,0,.58,1);var Xr=t=>Array.isArray(t)&&typeof t[0]!="number";function gu(t,e){return Xr(t)?t[BT(0,t.length,e)]:t}var Kr=t=>Array.isArray(t)&&typeof t[0]=="number";var xV={linear:Qt,easeIn:yy,easeInOut:bs,easeOut:vy,circIn:du,circInOut:hu,circOut:pu,backIn:xs,backInOut:fu,backOut:xm,anticipate:mu},bV=t=>typeof t=="string",Ss=t=>{if(Kr(t)){typeof process<"u";let[e,n,i,o]=t;return Io(e,n,i,o)}else if(bV(t))return typeof process<"u",xV[t];return t};var Nt={delta:0,timestamp:0,isProcessing:!1};var bm;function SV(){bm=void 0}var lt={now:()=>(bm===void 0&<.set(Nt.isProcessing||Zt.useManualTiming?Nt.timestamp:performance.now()),bm),set:t=>{bm=t,queueMicrotask(SV)}};var hi=t=>Math.round(t*1e5)/1e5;var UT=t=>e=>typeof e=="string"&&e.startsWith(t),Sm=UT("--"),TV=UT("var(--"),Jo=t=>TV(t)?EV.test(t.split("/*")[0].trim()):!1,EV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tm(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var gi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Fi={...gi,transform:t=>se(0,1,t)},yu={...gi,default:1};var Ts=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HT(t){return t==null}var PT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Es=(t,e)=>n=>!!(typeof n=="string"&&PT.test(n)&&n.startsWith(t)||e&&!HT(n)&&Object.prototype.hasOwnProperty.call(n,e)),Em=(t,e,n)=>i=>{if(typeof i!="string")return i;let[o,r,a,s]=i.match(Ts);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var AV=t=>se(0,255,t),xy={...gi,transform:t=>Math.round(AV(t))},yi={test:Es("rgb","red"),parse:Em("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+xy.transform(t)+", "+xy.transform(e)+", "+xy.transform(n)+", "+hi(Fi.transform(i))+")"};var Am=(t,e,n)=>{let i=t.substring(1+e*n,1+(e+1)*n);return n>1?i:i+i};function CV(t){let e=t.length>5?2:1,n=Am(t,3,e);return{red:parseInt(Am(t,0,e),16),green:parseInt(Am(t,1,e),16),blue:parseInt(Am(t,2,e),16),alpha:n?parseInt(n,16)/255:1}}var vu={test:Es("#"),parse:CV,transform:yi.transform};var xu=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),kn=xu("deg"),je=xu("%"),H=xu("px"),GT=xu("vh"),jT=xu("vw"),by={...je,parse:t=>je.parse(t)/100,transform:t=>je.transform(t*100)};var Wo={test:Es("hsl","hue"),parse:Em("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+je.transform(hi(e))+", "+je.transform(hi(n))+", "+hi(Fi.transform(i))+")"};var Xt={test:t=>yi.test(t)||vu.test(t)||Wo.test(t),parse:t=>yi.test(t)?yi.parse(t):Wo.test(t)?Wo.parse(t):vu.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yi.transform(t):Wo.transform(t),getAnimatableNone:t=>{let e=Xt.parse(t);return e.alpha=0,Xt.transform(e)}};var YT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var kT=new RegExp(Ts.source),XT=new RegExp(YT.source,"i");function wV(t){return isNaN(t)&&typeof t=="string"&&(kT.test(t)||XT.test(t))}var KT="number",ZT="color",MV="var",DV="var(",qT="${}",RV=/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+)(?![a-z]*\()/giu;function QT(t){let e=t.toString();return kT.test(e)||XT.test(e)}function As(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[],r=0,s=e.replace(RV,l=>(Xt.test(l)?(i.color.push(r),o.push(ZT),n.push(Xt.parse(l))):l.startsWith(DV)?(i.var.push(r),o.push(MV),n.push(l)):(i.number.push(r),o.push(KT),n.push(parseFloat(l))),++r,qT)).split(qT);return{values:n,split:s,indexes:i,types:o}}function OV(t){return As(t).values}function Cm({split:t,types:e}){let n=t.length;return i=>{let o="";for(let r=0;r<n;r++)if(o+=t[r],i[r]!==void 0){let a=e[r];a===KT?o+=hi(i[r]):a===ZT?o+=Xt.transform(i[r]):o+=i[r]}return o}}function NV(t){return Cm(As(t))}var VV=t=>typeof t=="number"?0:Xt.test(t)?Xt.getAnimatableNone(t):t,zV=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:VV(t);function LV(t){let e=As(t);return Cm(e)(e.values.map((i,o)=>zV(i,e.split[o])))}var le={test:wV,parse:OV,createTransformer:NV,getAnimatableNone:LV};function Sy(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function FT({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,r=0,a=0;if(!e)o=r=a=n;else{let s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;o=Sy(l,s,t+1/3),r=Sy(l,s,t),a=Sy(l,s,t-1/3)}return{red:Math.round(o*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:i}}function Cs(t,e){return n=>n>0?e:t}var ut=(t,e,n)=>t+(e-t)*n;var Ty=(t,e,n)=>{let i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},_V=[vu,yi,Wo],BV=t=>_V.find(e=>e.test(t));function IT(t){let e=BV(t);if(!e)return!1;let n=e.parse(t);return e===Wo&&(n=FT(n)),n}var Ey=(t,e)=>{let n=IT(t),i=IT(e);if(!n||!i)return Cs(t,e);let o={...n};return r=>(o.red=Ty(n.red,i.red,r),o.green=Ty(n.green,i.green,r),o.blue=Ty(n.blue,i.blue,r),o.alpha=ut(n.alpha,i.alpha,r),yi.transform(o))};var wm=new Set(["none","hidden"]);function JT(t,e){return wm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function UV(t,e){return n=>ut(t,e,n)}function Mm(t){return typeof t=="number"?UV:typeof t=="string"?Jo(t)?Cs:Xt.test(t)?Ey:GV:Array.isArray(t)?WT:typeof t=="object"?Xt.test(t)?Ey:HV:Cs}function WT(t,e){let n=[...t],i=n.length,o=t.map((r,a)=>Mm(r)(r,e[a]));return r=>{for(let a=0;a<i;a++)n[a]=o[a](r);return n}}function HV(t,e){let n={...t,...e},i={};for(let o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Mm(t[o])(t[o],e[o]));return o=>{for(let r in i)n[r]=i[r](o);return n}}function PV(t,e){let n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){let r=e.types[o],a=t.indexes[r][i[r]],s=t.values[a]??0;n[o]=s,i[r]++}return n}var GV=(t,e)=>{let n=As(t),i=As(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?wm.has(t)&&!i.values.length||wm.has(e)&&!n.values.length?JT(t,e):Nn(WT(PV(n,i),i.values),Cm(i)):Cs(t,e)};var $T=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function jV(t,e){let n=$T.exec(t);if(!n)return;let i=$T.exec(e);if(!i||n[2]!==i[2])return;let o=n[2],r=parseFloat(n[1]),a=parseFloat(i[1]);return s=>hi(ut(r,a,s))+o}function ws(t,e,n){if(typeof t=="number"&&typeof e=="number"&&typeof n=="number")return ut(t,e,n);if(typeof t=="string"&&typeof e=="string"){let o=jV(t,e);if(o)return o}return Mm(t)(t,e)}var bu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t){let e=new Set,n=new Set,i=!1,o=!1,r,a=new Set,s={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(n.add(c),t()),(r=c)(s)}let u={schedule:(c,f=!1,m=!1)=>{let d=m&&i,g=d?e:n;return f&&a.add(c),d&&c!==r&&g.delete(c),g.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(s=c,i){o=!0;return}i=!0;let f=e;e=n,n=f,e.forEach(l),e.clear(),r=void 0,i=!1,o&&(o=!1,u.process(c))}};return u}var YV=40;function Dm(t,e,n={delta:0,timestamp:0,isProcessing:!1}){let i=!1,o=!0,r=()=>i=!0,a=bu.reduce((y,b)=>(y[b]=tE(r),y),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:m,render:d,postRender:g}=a,v=()=>{let y=Zt.useManualTiming,b=y?n.timestamp:performance.now();i=!1,y||(n.delta=o?1e3/60:Math.max(Math.min(b-n.timestamp,YV),1)),n.timestamp=b,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),c.process(n),f.process(n),m.process(n),d.process(n),g.process(n),n.isProcessing=!1,i&&e&&(o=!1,t(v))},x=()=>{i=!0,o=!0,n.isProcessing||t(v)};return{schedule:bu.reduce((y,b)=>{let E=a[b];return y[b]=(C,T=!1,S=!1)=>(i||x(),E.schedule(C,T,S)),y},{}),cancel:y=>{for(let b=0;b<bu.length;b++)a[bu[b]].cancel(y)},state:n,steps:a}}var{schedule:$,cancel:ne,steps:Su}=Dm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0,Nt);var Tu=t=>{let e=({timestamp:n})=>t(n);return{start:(n=!0)=>$.update(e,n),stop:()=>ne(e),now:()=>Nt.isProcessing?Nt.timestamp:lt.now()}};var Rm=(t,e,n=10)=>{let i="",o=Math.max(Math.round(e/n),2);for(let r=0;r<o;r++)i+=Math.round(t(r/(o-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function Ms(t,e=50,n=2e4,i){let o=0,r=t.next(o);for(i?.push(r.value);!r.done&&o<n;)o+=e,r=t.next(o),i?.push(r.value);return o>=n?1/0:o}function Eu(t,e=100,n){let{keyframes:i,velocity:o}=t,r=i&&i[i.length-1]-i[0],a=n({...t,velocity:o&&r?o*e/r:o,keyframes:[0,e]}),s=Math.min(Ms(a),2e4);return{type:"keyframes",ease:l=>a.next(s*l).value/e,duration:ee(s)}}var eE=100,nE=10,qV=1,kV=800,rE=.3,XV=.3,KV=.01,ZV=2,QV=.005,FV=.5,IV=.01,JV=10,iE=.05,aE=t=>t<0?1/Math.max(1+t,iE):Math.max(1-t,iE);function sE(t,e){if(!(t>1))return 1;let n=Math.sqrt(t*t-1),i=t-n,o=t+n,r=2*n*Math.exp(-e)*(1+e);return lE(a=>o*Math.exp(-i*a)-i*Math.exp(-o*a)-r,a=>Math.exp(-o*a)-Math.exp(-i*a),e)/e}function My(t,e){return t*Math.sqrt(1-e*e)}var WV=12;function lE(t,e,n){let i=n;for(let o=1;o<WV;o++)i=i-t(i)/e(i);return i}var Cy=.001;function $V({duration:t=kV,bounce:e=rE}){let n,i,o=aE(e);t=se(IV,JV,ee(t)),o<1?(n=u=>{let c=u*o,f=c*t,m=My(u,o),d=Math.exp(-f);return Cy-c/m*d},i=u=>{let f=u*o*t,m=o*o*u*u*t,d=Math.exp(-f),g=My(u*u,o);return(-n(u)+Cy>0?-1:1)*-m*d/g}):(n=u=>{let c=Math.exp(-u*t),f=u*t+1;return-Cy+c*f},i=u=>{let c=Math.exp(-u*t),f=-u*(t*t);return c*f});let r=5/t,a=lE(n,i,r),s=a*sE(o,a*t),l=s*s;return{stiffness:l,damping:o*2*Math.sqrt(l),duration:Bt(t)}}var Dy=(t,e)=>(e?t>=0:t>0)&&t<1/0;function wy(t,e){if(Dy(t,e))return t}function t2(t){let e=wy(t.stiffness),n=wy(t.damping,!0),i=wy(t.mass),o={...t,stiffness:e??eE,damping:n??nE,mass:i??qV,isResolvedFromDuration:!1,isTimeDefined:(e??n??i)===void 0&&(t.duration!==void 0||t.bounce!==void 0)};if(o.isTimeDefined){if(t.visualDuration){let r=aE(t.bounce||0),a=2*Math.PI/(t.visualDuration*1.2)*sE(r,2*Math.PI/1.2);o.stiffness=a*a,o.damping=2*r*Math.sqrt(o.stiffness)}else Object.assign(o,$V(o)),o.isResolvedFromDuration=!0;(!Dy(o.stiffness)||!Dy(o.damping,!0))&&(o.stiffness=eE,o.damping=nE)}return o}function oE(t=XV,e=rE){let n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],r={done:!1,value:i},{stiffness:a,damping:s,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:f}=t2({...n}),m=T=>f?0:-ee(T),d=s/(2*Math.sqrt(a*l)),g=ee(Math.sqrt(a/l)),v=d*g,x={target:o,delta:o-i,velocity:m(n.velocity||0)||0,restSpeed:0,restDelta:0},p=()=>{let T=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(T?KV:ZV),x.restDelta=n.restDelta||(T?QV:FV)};p();let h,y,b;if(d<1){let T=My(g,d),S={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{S.A=(x.velocity+v*x.delta)/T,S.sinC=v*S.A+x.delta*T,S.cosC=v*x.delta-S.A*T};let M=D=>{D!==S.t&&(S.t=D,S.env=Math.exp(-v*D),S.sin=Math.sin(T*D),S.cos=Math.cos(T*D))};h=D=>(M(D),x.target-S.env*(S.A*S.sin+x.delta*S.cos)),y=D=>(M(D),S.env*(S.sinC*S.sin+S.cosC*S.cos))}else if(d===1){h=S=>x.target-Math.exp(-g*S)*(x.delta+(x.velocity+g*x.delta)*S);let T={C:0};b=()=>{T.C=x.velocity+g*x.delta},y=S=>Math.exp(-g*S)*(g*T.C*S-x.velocity)}else{let T=g*Math.sqrt(d*d-1),S=v-T,M=v+T,D=T<1||f?1/0:300/T,L=(Z,I)=>Math.exp(I>D?(v-Z)*D-v*I:-Z*I),P={S:0,F:0};b=()=>{let Z=(x.velocity+v*x.delta)/T;P.S=(x.delta+Z)/2,P.F=(x.delta-Z)/2},h=Z=>x.target-P.S*L(S,Z)-P.F*L(M,Z),y=Z=>S*P.S*L(S,Z)+M*P.F*L(M,Z)}b();let E=c&&u||null,C={calculatedDuration:E,retarget:(T,S)=>{x.target=T[T.length-1],x.delta=x.target-T[0],x.velocity=m(S),n.restSpeed&&n.restDelta||p(),C.calculatedDuration=E,r.done=!1,b()},velocity:T=>Bt(y(T)),next:T=>{let S=h(T);if(c)r.done=T>=u;else{let M=Bt(y(T));r.done=Math.abs(M)<=x.restSpeed&&Math.abs(x.target-S)<=x.restDelta}return r.value=r.done?x.target:S,r},toString:()=>{let T=Math.min(Ms(C),2e4),S=Rm(M=>C.next(T*M).value,T,30);return T+"ms "+S},toTransition:()=>{}};return C}var Zr=Object.assign(oE,{applyToOptions:t=>{let e=Eu(t,100,oE);return t.ease=e.ease,t.duration=Bt(e.duration),t.type="keyframes",t}});function Ds({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let f=t[0],m={done:!1,value:f},d=T=>T<s||T>l,g=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l,v=n*e,x=f+v,p=a?a(x):x;p!==x&&(v=p-f);let h=T=>-v*Math.exp(-T/i),y=T=>{let S=h(T);m.done=Math.abs(S)<=u,m.value=m.done?p:T?p+S:f},b,E,C=T=>{d(m.value)&&(b=T,E=Zr({keyframes:[m.value,g(m.value)],velocity:-h(T)/i*1e3,damping:o,stiffness:r,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:T=>{let S=!1;return!E&&b===void 0&&(S=!0,y(T),C(T)),b!==void 0&&T>=b?E.next(T-b):(!S&&y(T),m)}}}function e2(t,e,n){let i=[],o=Zt.mix||ws,r=t.length-1;for(let a=0;a<r;a++){let s=n?.(t[a],t[a+1])||o(t[a],t[a+1]);if(e){let l=Array.isArray(e)?e[a]||Qt:e;s=Nn(l,s)}i.push(s)}return i}function uE(t,e,{clamp:n=!0,ease:i,mixer:o}={}){let r=t.length;if(r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=e2(e,i,o),l=s.length,u=c=>{if(a&&c<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(c<t[f+1]);f++);let m=Ge(t[f],t[f+1],c);return s[f](m)};return n?c=>u(se(t[0],t[r-1],c)):u}function Au(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let o=Ge(0,e,i);t.push(ut(n,1,o))}}function vi(t){let e=[0];return Au(e,t.length-1),e}function cE(t,e){return t.map(n=>n*e)}function n2(t,e){return t.map(()=>e||bs).splice(0,t.length-1)}function Xn({duration:t=300,keyframes:e,times:n,ease:i="easeInOut",mixer:o}){let r=typeof e[0]=="number"?void 0:o,a=Xr(i)?i.map(Ss):Ss(i)||bs,s={done:!1,value:e[0]},l=-1;if(!r){for(let f=1;f<e.length;f++)if(e[f]!==e[f-1]){if(l>=0){l=-2;break}l=f-1}}if(l>=0){let f=n&&n.length===e.length?n:vi(e),m=f[l]*t,d=f[l+1]*t,g=e[l],v=e[l+1],x=Array.isArray(a)?a[l]:a,p=(Zt.mix||ws)(g,v),h=e.length-2;return{calculatedDuration:t,next:y=>(s.value=l&&y<m?p(0):l<h&&(y>=d||!t)?typeof v=="number"?v:p(1):p(x(y>=d||!t?1:y<=m?0:(y-m)/(d-m))),s.done=y>=t,s)}}let u=cE(n&&n.length===e.length?n:vi(e),t),c=uE(u,e,{ease:Array.isArray(a)?a:n2(e,a),mixer:r});return{calculatedDuration:t,next:f=>(s.value=c(f),s.done=f>=t,s)}}var i2=5;function o2(t,e,n){let i=Math.max(e-i2,0);return cu(n-t(i),e-i)}function fE(t,e,n=0){return e<=0?n:t.velocity?t.velocity(e):o2(i=>t.next(i).value,e,t.next(e).value)}function Ii(t,{repeat:e,repeatType:n="loop"},i,o=1){let r,a,s=0;for(let c=0;c<t.length;c++){let f=t[c];f!==null&&(s++||(r=f),a=f)}let u=o<0||e&&n!=="loop"&&e%2===1?0:s-1;return!u||i===void 0?u?a:r:i}var r2={decay:Ds,inertia:Ds,tween:Xn,keyframes:Xn,spring:Zr};function Om(t){typeof t.type=="string"&&(t.type=r2[t.type])}var a2=40,Nm=(t,e)=>e-t>a2&&!Zt.useManualTiming?e:t;function mE(t,e){return{kind:t,animation:e,timestamp:lt.now(),frameTimestamp:Nt.timestamp,frameIsProcessing:Nt.isProcessing}}function Vm(t,e,n){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...mE("animation-start",t),options:n?{...e,...n}:e})}catch{}}function dE(t,e){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...mE("layout-animation-start",t),node:e})}catch{}}var $o=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,n){return this.finished.then(e,n)}};var s2=t=>t/100,Rs=t=>Math.round(t*1e4)/1e4,Vn=class extends $o{constructor(e){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:n}=this.options;n&&n.updatedAt!==lt.now()&&this.tick(lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Vm(this,this.options)}initAnimation(){let{options:e}=this;Om(e);let{type:n=Xn,repeat:i=0,repeatDelay:o=0,repeatType:r,velocity:a=0}=e,{keyframes:s}=e,l=n||Xn;this.mixKeyframes=void 0,l!==Xn&&typeof s[0]!="number"&&(this.mixKeyframes=Nn(s2,e.mixer?.(s[0],s[1])||ws(s[0],s[1])),s=[0,100]);let u=l(s===e.keyframes?e:{...e,keyframes:s});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Ms(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=u}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,n=!1){let{generator:i,totalDuration:o,calculatedDuration:r}=this;if(this.startTime===null)return i.next(0);let{delay:a=0,keyframes:s,type:l,onUpdate:u,finalKeyframe:c}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Nm(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);let f=this.currentTime-a*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?f<0:f>o;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let d=this.generate(this.currentTime,m),{done:g}=d;m||(g=this.playbackSpeed>=0?r<1/0?this.currentTime>=o:g:this.currentTime<=0);let v=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&g);return v&&l!==Ds&&(d.value=Ii(s,this.options,c,this.speed)),u&&u(d.value),v&&this.finish(),d}at(e){return this.holdTime??Rs((e-this.startTime)*this.playbackSpeed)}sampleAt(e,n){let{options:i,totalDuration:o}=this,r=this.at(e)-(i.delay||0);return r>=o&&i.type!==Ds?Ii(i.keyframes,i,n?void 0:i.finalKeyframe):this.generate(Math.max(r,0),r<0).value}generate(e,n){let{generator:i,totalDuration:o,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:s}=this,{keyframes:l,repeat:u,repeatType:c,repeatDelay:f}=this.options,m=e,d=i;if(u){let v=Math.min(e,o)/s,x=Math.floor(v),p=v%1;!p&&v>=1&&(p=1),p===1&&x--,x=Math.min(x,u+1),x%2&&(c==="reverse"?(p=1-p,f&&(p-=f/s)):c==="mirror"&&(d=a)),m=se(0,1,p)*s}let g;return n?(this.delayState.value=l[0],g=this.delayState):g=d.next(m),r&&!n&&(g.value=r(g.value)),g}get duration(){return ee(this.calculatedDuration)}get iterationDuration(){return this.duration+ee(this.options.delay??0)}get time(){return ee(this.currentTime)}set time(e){this.state==="finished"&&this.updateFinished(),e=Bt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return fE(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(lt.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=ee(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tu,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),this.options.onPlay?.();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=n??(this.pendingStartTime=i)),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(lt.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};var l2=new Set(["brightness","contrast","saturate","opacity"]);function u2(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[i]=n.match(Ts)||[];if(!i)return t;let o=n.replace(i,""),r=l2.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+o+")"}var c2=/\b([a-z-]*)\(.*?\)/gu,Cu={...le,getAnimatableNone:t=>{let e=t.match(c2);return e?e.map(u2).join(" "):t}};var wu={...le,getAnimatableNone:t=>{let e=le.parse(t);return le.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}};var Ry={...gi,transform:Math.round};var zm={rotate:kn,pathRotation:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:yu,scaleX:yu,scaleY:yu,scaleZ:yu,skew:kn,skewX:kn,skewY:kn,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Fi,originX:by,originY:by,originZ:H};var Ye={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,...zm,zIndex:Ry,fillOpacity:Fi,strokeOpacity:Fi,numOctaves:Ry};var f2={...Ye,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:Cu,WebkitFilter:Cu,mask:wu,WebkitMask:wu},Lm=t=>f2[t];var m2=new Set([Cu,wu]),pE,hE,Oy;function Os(t,e){if(t===pE&&e===hE)return Oy;let n=Lm(t);return m2.has(n)||(n=le),Oy=n.getAnimatableNone?n.getAnimatableNone(e):void 0,pE=t,hE=e,Oy}function gE(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Qr=t=>t*180/Math.PI,Ny=t=>{let e=Qr(Math.atan2(t[1],t[0]));return Vy(e)},d2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ny,rotateZ:Ny,skewX:t=>Qr(Math.atan(t[1])),skewY:t=>Qr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Vy=t=>(t=t%360,t<0&&(t+=360),t),yE=Ny,vE=t=>Math.hypot(t[0],t[1]),xE=t=>Math.hypot(t[4],t[5]),p2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vE,scaleY:xE,scaleZ:t=>Math.hypot(t[8],t[9],t[10]),scale:t=>(vE(t)+xE(t))/2,rotateX:t=>Vy(Qr(Math.atan2(t[6],t[5]))),rotateY:t=>Vy(Qr(Math.atan2(-t[2],t[0]))),rotateZ:yE,rotate:yE,skewX:t=>Qr(Math.atan(t[4])),skewY:t=>Qr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fr(t){return t.includes("scale")?1:0}function _m(t,e){if(!t||t==="none")return Fr(e);let n=t.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return Fr(e);let i=(n[1]?p2:d2)[e],o=n[2].split(",").map(r=>parseFloat(r));return typeof i=="function"?i(o):o[i]}var Bm=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return _m(n,e)};var Me=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set([...Me,"pathRotation"]);var zy=t=>t===gi||t===H,h2=new Set(["x","y","z"]),g2=Me.filter(t=>!h2.has(t));function EE(t){let e=[];return g2.forEach(n=>{let i=t.getValue(n);if(i!==void 0){let o=i.get(),r=n.startsWith("scale")?1:0;if(o===r)return;e.push([n,o]),i.set(r)}}),e}var AE=new Set(["bottom","right"]);function bE(t,e,n,i,o,r){let a=parseFloat(t);if(!isNaN(a))return a;let{min:s,max:l}=e()[n],u=l-s;return r==="border-box"?u:u-parseFloat(i)-parseFloat(o)}var SE=({transform:t})=>_m(t,"x"),TE=({transform:t})=>_m(t,"y"),Um={width:({width:t,paddingLeft:e="0",paddingRight:n="0",boxSizing:i},o)=>bE(t,o,"x",e,n,i),height:({height:t,paddingTop:e="0",paddingBottom:n="0",boxSizing:i},o)=>bE(t,o,"y",e,n,i),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{let{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:SE,y:TE,translateX:SE,translateY:TE};var Ir=new Set,Ly=!1,_y=!1,By=!1;function CE(){if(_y){let t=[],e=new Set,n=new Set;Ir.forEach(o=>{o.needsMeasurement&&(t.push(o),e.add(o.element),AE.has(o.name)&&n.add(o.element))});let i=new Map;n.forEach(o=>{let r=EE(o);r.length&&(i.set(o,r),o.render())}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let r=i.get(o);r&&r.forEach(([a,s])=>{o.getValue(a)?.set(s)})}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}_y=!1,Ly=!1,Ir.forEach(t=>t.complete(By)),Ir.clear()}function wE(){Ir.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_y=!0)})}function ME(){By=!0,wE(),CE(),By=!1}function y2(t,e,n){if(typeof t=="string"){if(jr(t)||qr(t))return parseFloat(t);if(!le.test(t)&&le.test(n))return Os(e,n)}return t??void 0}var tr=class{constructor(e,n,i,o,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ir.add(this),Ly||(Ly=!0,$.read(wE),$.resolveKeyframes(CE))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;if(e[0]===null){let r=o?.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){let s=y2(i.readValue(n,a),n,a);s!==void 0&&(e[0]=s)}e[0]===void 0&&(e[0]=a),o&&r===void 0&&o.set(e[0])}gE(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ir.delete(this)}cancel(){this.state==="scheduled"&&(Ir.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var er=t=>t.startsWith("--");function Hm(t,e,n){er(e)?t.style.setProperty(e,n):t.style[e]=n}var DE={};function Pm(t,e){let n=hy(t);return()=>DE[e]??n()}var RE=Pm(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Ns=Pm(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ji=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;var Mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ji([0,.65,.55,1]),circOut:Ji([.55,0,1,.45]),backIn:Ji([.31,.01,.66,-.59]),backOut:Ji([.33,1.53,.69,.99])};function Uy(t,e){if(t)return typeof t=="function"?Ns()?Rm(t,e):"ease-out":Kr(t)?Ji(t):Array.isArray(t)?t.map(n=>Uy(n,e)||Mu.easeOut):Mu[t]}function OE(t,e,n,{delay:i=0,duration:o=300,repeat:r=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[e]:n};l&&(c.offset=l);let f=Uy(s,o);Array.isArray(f)&&(c.easing=f);let m={delay:i,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),t.animate(c,m)}function Jr(t){return typeof t=="function"&&"applyToOptions"in t}function NE({type:t,...e}){return Jr(t)&&Ns()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Vs=class extends $o{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:n,name:i,keyframes:o,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=e,typeof process<"u";let u=NE(e);this.animation=OE(n,i,o,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!r){let c=Ii(o,this.options,s,this.speed);this.updateMotionValue?.(c),Hm(n,i,c),this.animation.cancel()}l?.(),this.notifyFinished()},Vm(this,e,u)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,!(this.state==="idle"||this.finishedTime!==null)&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return ee(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ee(e)}get time(){return ee(Number(this.animation.currentTime)||0)}set time(e){let n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bt(e),n&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=this.onFinish=null,e&&RE()?(this.animation.timeline=e,n?.(this.animation),Qt):i(this)}};var VE={anticipate:mu,backInOut:fu,circInOut:hu};function v2(t){return t in VE}function zE(t){typeof t.ease=="string"&&v2(t.ease)&&(t.ease=VE[t.ease])}var Du=10,Gm=class extends Vs{constructor(e){zE(e),Om(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state==="running"?(lt.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:n,onUpdate:i,onComplete:o,onPlay:r,onStop:a,element:s,...l}=this.options;this.sampler=new Vn({...l,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e==="running"||e==="paused")return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:n,element:i,name:o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}let{speed:r}=this,a=this.elapsed(),s=this.state==="running"&&r?se(0,Du,a):0,l=this.sample(a);i&&o&&Hm(i,o,l),n.setWithVelocity(this.sample(a-s*Math.sign(r)),l,s/Math.abs(r||1))}};var Hy=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(le.test(t)||t==="0")&&!t.startsWith("url("));function x2(t){let e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function LE(t,e,n,i){let o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;let r=t[t.length-1],a=Hy(o,e),s=Hy(r,e);return!a||!s?!1:x2(t)||(n==="spring"||Jr(n))&&i}function Ru(t){t.duration=0,t.type="keyframes"}var Ou=new Set(["opacity","clipPath","filter","transform"]);var b2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function _E(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&b2.test(t[e]))return!0;return!1}var jm=({mixer:t,keyframes:e})=>t&&typeof e[0]!="number"&&e.some((n,i)=>i&&t(e[i-1],n));var BE=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Py=()=>!Zt.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate");function UE(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:o,damping:r,type:a,keyframes:s}=t;if(!n||!(Ou.has(n)||BE.has(n)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=e.owner.getProps();return Py()&&(Ou.has(n)||BE.has(n)&&_E(s))&&(n!=="transform"||!c)&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"&&!jm(t)}var Kn=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var S2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},T2=Me.length,HE={},Wr=(t,e,n=Kn(e,zm[t]))=>(HE[t]||(HE[t]=(S2[t]||t)+"("))+n+")",zs=(t,e)=>(typeof e=="number"?e:parseFloat(e))===(t.startsWith("scale")?1:0);function PE(t,e,n){let i="";for(let r=0;r<T2;r++){let a=Me[r],s=t[a];if(s===void 0)continue;let l=n&&(e[a]=Kn(s,Ye[a]));zs(a,s)||(i+=Wr(a,s,l||void 0)+" ")}let o=t.pathRotation;return o&&(i+=Wr("rotate",o)),i=i.trim(),n?n(e,i):i||"none"}var Zn=new WeakMap;var E2=200,KE=.001,A2=.1,C2=.001,w2=100,GE=100,M2=new Set(["linear","easeIn","easeOut","easeInOut"]),D2=t=>M2.has(t),jE=new WeakMap,R2=(t,e)=>{let n=jE.get(t);return n?.[0]!==e&&(n=[e,"linear("+vi(Array(e+1)).map(i=>Rs(t(i))+" "+Rs(i*100)+"%")+")"],jE.set(t,n)),n[1]},YE=(t,e)=>Math.min(E2,Math.max(2,Math.ceil((e-t)/Du))),Vu=(t,e)=>Math.abs(t-e)<=KE,Gy=(t,e)=>t-e,qE=(t,e,n)=>vi(Array(n+1)).map(i=>ut(t,e,i)),Ym=t=>t.motionValue.owner,qm=t=>Zn.get(t),kE=({state:t})=>t==="idle"||t==="finished",Ls=(t,e)=>t.latestValues?t.latestValues[e]:t.getValue(e)?.get(),ZE=({name:t,motionValue:e})=>t&&Me.includes(t)&&e?.owner?.current instanceof HTMLElement&&Py()&&Ns();function O2(t){let e=Ym(t),{onUpdate:n,transformTemplate:i}=e.getProps();return!t.isHandoff&&!n&&!t.hasOnUpdate&&!i&&t.type!=="inertia"&&(Ls(e,"transform")||"none")==="none"&&!Ls(e,"pathRotation")&&!e.projection?.isProjecting()&&!jm(t)}var jy=class{constructor(e,n,i,o){this.element=e,this.update=n,this.makeDriver=i,this.animation=o}get js(){return this.driver||(this.driver=this.makeDriver(this.update))}now(){return this.driver||this.makeDriver!==Tu?this.js.now():Nt.isProcessing?Nt.timestamp:lt.now()}start(e=!0){let n=qm(this.element);!n||n.isJS?this.js.start(e):n.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=qm(this.element);e&&!e.isFinishing&&e.release(this.animation)}},XE,km=class extends Vn{constructor(e){let n=Ym(e).current,{driver:i=Tu}=e,o,r=O2(e);e.driver=l=>new jy(n,l,i,o),super(e),o=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=r;let{stop:s}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),s()}}offsets(){let{keyframes:e,times:n}=this.options;return n||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=vi(e)),this.cachedOffsets)}get group(){return qm(Ym(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:n,totalDuration:i}=this,{delay:o=0,repeatType:r}=this.options;return this.holdTime!==null?[1/0,0]:i===1/0?[e+o/n,this.resolvedDuration*(r==="loop"?1:2)/n||1]:[e+(o+i)/n,0]}isAccelerated(){let{group:e,state:n}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(n==="running"||n==="paused")}liveValue(){return this.isAccelerated()?this.sampleAt(lt.now()):void 0}tween(){let{keyframes:e,type:n,repeat:i,delay:o=0}=this.options,r=-1;if(i||n!==Xn||this.holdTime!==null)return;for(let u=1;u<e.length;u++)if(e[u]!==e[u-1]){if(r>=0)return;r=u-1}let{ease:a}=this.options;Xr(a)&&(a=a[r]);let s=this.offsets(),l=u=>this.startTime+(o+s[u]*this.totalDuration)/this.speed;if(r>=0){let u=Kr(a)?Ji(a):D2(a)?Mu[a]:Ss(a);return[l(r),l(r+1),typeof u=="string"||Vu(u(0),0)&&Vu(u(1),1)?u:void 0]}}boundaries(e,n){let{startTime:i,speed:o,resolvedDuration:r,options:a}=this,{delay:s=0,repeat:l=0,repeatDelay:u=0,repeatType:c,type:f}=a,m=(f||Xn)===Xn?this.offsets():[0,1],d=i+s/o,g=[];if(this.holdTime!==null||!(r>0))return g;for(let v=Math.max(0,Math.floor((e-d)*o/r));v<=l;v++){let x=d+v*r/o;if(x>n)break;for(let p of m){let h=x+(v%2&&c&&c!=="loop"?1-p:p)*(r-u)/o;h>e&&h<n&&g.push(h)}}return g}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=lt.now(),n=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-Du,!0):n,n,Du)}play(){this.isStopped||((this.group||V2(Ym(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(lt.now())}get time(){return this.isAccelerated()?ee(se(0,this.totalDuration,this.at(lt.now())-(this.options.delay||0))):super.time}set time(e){(XE??(XE=Object.getOwnPropertyDescriptor(Vn.prototype,"time").set)).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},Nu,N2=t=>{Nu||queueMicrotask(()=>{let e=Nu;Nu=void 0,e.forEach(n=>n())}),(Nu||(Nu=[])).push(t)};function V2(t){let e=t.current,n=new Set,i=new Map,o={},r=[],a=new Map,s=[],l=!1,u=!1,c=!1,f=!1,m=-1/0,d,g=1/0,v,x=A=>{for(let w of n)if(w.name===A)return!0},p=(A,w)=>{let V={};for(let O of A===void 0?Me:r){let z=i.get(O),G=A===void 0?Ls(t,O):z?z.sampleAt(w>A&&!z.timing()[1]?w:A):o[O];G!==void 0&&(V[O]=G)}return V},h=(A,w)=>{let V="";for(let O in A){let z=A[O];(!w||!zs(O,z))&&(V+=Wr(O,z)+" ")}return(w?V.trim():V)||"none"},y=(A,w)=>h(p(A,w)),b=(A=p())=>{e.style.transform=h(A,!0)},E=A=>{A.onfinish=A.oncancel=null,A.cancel()},C=(A=!0)=>{clearTimeout(d),g=1/0,v=void 0,A&&b(),s.forEach(({animation:w})=>E(w)),s=[]},T=(A,w)=>new Animation(new KeyframeEffect(e,A,w)),S=(A,w,V=1/0)=>{let O={animation:A,offset:w,end:V};A.startTime=lt.now()+w,V<1/0&&(A.onfinish=()=>{O.isDone=!0,s.some(z=>z.end===1/0)&&(E(A),s=s.filter(z=>z!==O)),_.schedule(!1)}),A.oncancel=()=>s.includes(O)&&_.demote(),s.push(O)},M=(A,w,V)=>{let O=(G,U)=>Math.abs(A(U)-A(G)),z=O(w,V);for(;V-w>.01;){let G=(w+V)/2;O(w,G)>O(G,V)?V=G:w=G}return O(w,V)>z/2?[w,V]:[]},D=(A,w,V,O)=>{let z=YE(w,V);if(O.length*4>z)return;let G;for(let Q of A){let rt=Q.numberAt(w),F=(Q.numberAt((w+V)/2)-rt)/(Q.numberAt(V)-rt);if(F===F){if(G===void 0)G=F;else if(!Vu(F,G))return}}let U=qE(w,V,z).concat(O).sort(Gy),it=Q=>Ge(w,V,Q),et,j;for(let Q of A){let rt=Q.numberAt(w),F=U.map(Dt=>Q.numberAt(Dt)-rt),Yt=F[F.length-1],Y=F.some(Dt=>Math.abs(Dt)*KE>Math.abs(Yt))?0:Yt,Jt=F.map(Dt=>Y?Dt/Y:Dt);if(Y&&!et)et=Jt,j=Dt=>(Q.numberAt(Dt)-rt)/Y;else if(Jt.some((Dt,Le)=>!Vu(Dt,Y&&et[Le])))return}if(!et||et.every((Q,rt)=>Vu(Q,it(U[rt]))))return"linear";let st=[],ct=(Q,rt=j(Q))=>st.push(Rs(rt)+" "+Rs(it(Q)*100)+"%");return et.forEach((Q,rt)=>{rt&&Math.abs(Q-et[rt-1])>.2&&M(j,U[rt-1],U[rt]).forEach(F=>ct(F)),ct(U[rt],Q)}),"linear("+st+")"},L=(A,w,V,O)=>{let z=[w],G=[],U=V,it=w;for(let Q of A){let rt=Q.tween();if(rt?.[2]!=="linear"){let[F,Yt]=Q.timing(),[Y,Jt]=rt||[w,Yt?V:F];U=Math.min(U,Y),it=Math.max(it,Jt),G.push(Q)}}U=Math.max(w,U),it=Math.min(V,it);let et=(Q,rt)=>G.every(F=>!(Math.abs(F.numberAt((Q+rt)/2)-(F.numberAt(Q)+F.numberAt(rt))/2)>(F.name.startsWith("scale")?C2:A2))),j=(Q,rt,F)=>{if(rt-Q<1||et(Q,rt))z.push(rt);else if(F<4)j(Q,(Q+rt)/2,F+1),j((Q+rt)/2,rt,F+1);else{for(let Yt of A)z.push(...M(Y=>Yt.numberAt(Y),Q,rt));z.push(rt)}},st=it>U?qE(U,it,Math.ceil((it-U)/100)):[];st.push(V);for(let Q of O)st.push(Q,Math.min(Q+.01,V));let ct=w;for(let Q of st.sort(Gy))Q>ct&&j(ct,Q,0),ct=Q;return z.sort(Gy)},P=A=>{let w;for(let V of A){let O=V.tween();if(!O||w&&(Math.abs(O[0]-w[0])>1||Math.abs(O[1]-w[1])>1))return;w=[O[0],O[1],!w||O[2]===w[2]?O[2]:void 0]}return w},Z=(A,w,V,O,z={fill:"both"},G)=>{let U=O?[]:A.flatMap(ct=>ct.boundaries(w,V)),it=O||D(A,w,V,U),et=it?[w,V]:L(A,w,V,U),j=et.map(ct=>y(ct,G)),st={transform:j};return it||(st.offset=et.map(ct=>Ge(w,V,ct))),j.every(ct=>ct===j[0])&&(b(p(w,G)),st=null),T(st,{...z,duration:V-w,easing:it||"linear"})},I=A=>{let w=lt.now()+A;w<g&&(clearTimeout(d),g=w,d=setTimeout(()=>{g=1/0,_.schedule(!1)},A))},J=A=>{let w=A,V=0,O=0,z=[],G=[],U=new Set;i.clear(),a=new Map;for(let et of n){i.set(et.name,et);let[j,st]=et.timing(),ct=j===1/0;if(a.set(et,[et.at(A),et.speed,ct]),!ct){if(et.speed<0)return;if(st){if(V){let Q=(j-O)/st;if(Math.abs(st-V)>1||Math.abs(Q-Math.round(Q))*V>1)return}else V=st,O=j;G.push(et)}else U.add(j);z.push(et),w=Math.max(w,j)}}o={},r=Me.filter(et=>{if(i.has(et))return!0;let j=o[et]=Ls(t,et);return j!==void 0&&!zs(et,j)}),C(!1);let it=!V&&P(z);try{if(w>A){let et;if(it&&it[1]>A){let[j,st,ct]=it;if(j-A>GE)return z.forEach(Q=>Q.sync()),I(v=j-A-GE),!0;et=typeof ct=="string"?ct:ct?R2(ct,YE(j,st)):D(z,j,st,[]),et&&S(Z(z,j,st,et,{fill:"both",endDelay:w-st}),j-A,w-j)}et||S(Z(z,A,w),0,w-A),U.forEach(j=>j<w-1&&S(T(null,{duration:j-A}),0,j-A))}if(V){let et=O+Math.floor((w-O)/V)*V;S(Z(G,et,et+V,void 0,{iterations:1/0,iterationStart:(w-et)/V,fill:"forwards"},w),w-A)}}catch{return}return s.length||C(),!0},tt=(A,w)=>{let V,O=0;for(let z of n){let G=a.get(z);if(!G)return!1;let[U,it,et]=G,j=z.at(A),st=z.timing()[0]===1/0;if(et){if(st&&(j===U||!s.length))continue;return!1}let ct=(j-U)/it,Q=st?0:z.speed/it;if(V===void 0)V=ct,O=Q;else if(Math.abs(ct-V)>1||Q!==O)return!1}if(V===void 0)return!0;if(!s.length){if(v===void 0||w&&O)return!1;if(O){let z=(v-V)/O;if(z<1)return!1;I(z)}return!0}for(let{offset:z,end:G,isDone:U}of s){let it=V-z;if(G<1/0&&(U?it<G-1:it<0&&(w||z<=0)||it>=G))return!1}for(let{animation:z,offset:G,isDone:U}of s){if(U)continue;let it=V-G;O&&z.updatePlaybackRate&&z.playState==="running"&&Math.abs(Number(z.currentTime)-it)<20?z.playbackRate!==O&&z.updatePlaybackRate(O):O?(z.playbackRate!==O&&(z.playbackRate=O),z.startTime=A-it/O):(z.startTime=null,z.currentTime=it)}return!0},K=()=>n.size?!1:(c=!0,qm(e)===_&&Zn.delete(e),_.isJS||C(),!0),X=()=>{let A=lt.now();if(_.isJS||(_.isFinishing=!0,n.forEach(O=>{let[z,G]=O.timing();O.state==="running"&&O.speed>0&&!G&&z<=A+1&&(O.complete(),o[O.name]=Ls(t,O.name),a.has(O)||(l=!0))}),_.isFinishing=!1),u=!1,c||(n.forEach(O=>kE(O)&&n.delete(O)),K()))return;for(let O of n)if(!O.canAccelerate)return _.demote(!0);_.isJS&&(_.isJS=!1,l=!0,n.forEach(O=>O.stopJS()));let w=l,V=f;if(l=f=!1,w||!tt(A,V)){if(V){if(A-m<w2)return _.demote();m=A}if(!J(A))return _.demote()}else if(v!==void 0&&!V)return;n.forEach(O=>O.timing()[0]===1/0&&O.sync())},_={tracks:n,isJS:!1,isFinishing:!1,schedule(A,w){c||(l||(l=A),f||(f=!!w),u||(u=!0,Nt.isProcessing?$.render(X,!1,!0):N2(X)))},release(A){kE(A)&&n.delete(A),K()||_.schedule(!0)},check(){if(!_.isJS){for(let A in o)if(Ls(t,A)!==o[A]&&!x(A))return _.schedule(!0,!0)}},demote(A){if(!(_.isJS||c))return n.forEach(w=>{w.isAccelerated()&&w.sync(),A||(w.canAccelerate=!1)}),_.isJS=!0,a=new Map,C(),n.forEach(w=>w.state==="running"&&w.js?.start()),!0}};return Zn.set(e,_),_}var Xm=class extends $o{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=lt.now();let{keyframes:n,name:i,motionValue:o,element:r}=e,a=e;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");let s=r?.KeyframeResolver||tr;this.keyframeResolver=new s(n,(l,u,c)=>this.onKeyframesResolved(l,u,a,!c),i,o,r),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,o){this.keyframeResolver=void 0;let{name:r,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=lt.now();let f=LE(e,r,a,s);f||((Zt.instantAnimations||!l)&&c?.(Ii(e,i,n)),e[0]=e[e.length-1],Ru(i),i.repeat=0);let{onComplete:m}=i;i.finalKeyframe=n,i.keyframes=e,i.onComplete=()=>{m?.(),this.notifyFinished()};let d=f&&!u&&UE(i),g=!d&&ZE(i);o&&(d||g||this.resolvedAt!==this.createdAt)&&(i.startTime??(i.startTime=Nm(this.createdAt,this.resolvedAt)));let v;if(d){i.element=i.motionValue?.owner?.current;try{v=new Gm(i)}catch{v=new Vn(i)}}else g?v=new km(i):v=new Vn(i);this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this._animation.finished:super.finished}then(e,n){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ME()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}};var Km=class{constructor(e){this.stop=()=>{for(let n of this.animations)n.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let n=this.animations.map(i=>i.attachTimeline(e));return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){for(let n of this.animations)n.time=e}get speed(){return this.getAll("speed")}set speed(e){for(let n of this.animations)n.speed=e}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return QE(this.animations,"duration")}get iterationDuration(){return QE(this.animations,"iterationDuration")}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function QE(t,e){let n=0;for(let i=0;i<t.length;i++){let o=t[i][e];o!==null&&o>n&&(n=o)}return n}var _s=class extends Km{then(e,n){return this.finished.finally(e).then(()=>{})}};function Zm(t,e,n,i=0,o=1){let r=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),a=t.size,s=(a-1)*i;return typeof n=="function"?n(r,a):o===1?r*i:s-r*i}var FE=30,z2=t=>!isNaN(parseFloat(t)),IE={current:void 0},xi=class{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{let o=lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.dirty(),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=lt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=z2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){var i;return e==="change"?this.onChangeSubscribe(n):((i=this.events)[e]||(i[e]=new pi)).add(n)}onChangeSubscribe(e){let{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=e:(n.change||(n.change=new pi,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:n.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){$.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){n&&(this.updatedAt=lt.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:n}=this;n?n(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||(this.dependents=new Set)).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){IE.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>FE)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,FE);return cu(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return new Promise(n=>this.run(e,n))}run(e,n){this.stop(),this.hasAnimated=!0;let i=!1,o;o=e(()=>{i=!0,this.events.animationComplete?.notify(),this.animation===o&&(this.animation=void 0),n?.()}),i||(this.animation=o),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function ge(t,e){return new xi(t,e)}function $r(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}function Bs(t,e){let n=t?.[e]??t?.default??t;return n!==t?$r(n,t):n}var L2={type:"spring",stiffness:500,damping:25,restSpeed:10},_2=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),B2={type:"keyframes",duration:.8},U2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JE=(t,{keyframes:e})=>e.length>2?B2:Ft.has(t)?t.startsWith("scale")?_2(e[1]):L2:U2;var H2=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]);function WE(t){for(let e in t)if(!H2.has(e))return!0;return!1}var nr=(t,e,n,i={},o,r)=>a=>{let s=Bs(i,t)||{},l=s.delay||i.delay||0,{elapsed:u=0}=i;u=u-Bt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-u,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:r?void 0:o,hasOnUpdate:!!s.onUpdate};WE(s)||Object.assign(c,JE(t,c)),c.duration&&(c.duration=Bt(c.duration)),c.repeatDelay&&(c.repeatDelay=Bt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ru(c),c.delay===0&&(f=!0)),(Zt.instantAnimations||Zt.skipAnimations||o?.shouldSkipAnimations||s.skipAnimations)&&(f=!0,Ru(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,f&&!r&&e.get()!==void 0){let m=Ii(c.keyframes,s);if(m!==void 0){$.update(()=>{c.onUpdate(m),c.onComplete()});return}}return s.isSync?new Vn(c):new Xm(c)};var P2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G2(t){let e=P2.exec(t);if(!e)return[,];let[,n,i,o]=e;return[`--${n??i}`,o]}function zu(t,e,n=1){let[i,o]=G2(t);if(!i)return;let r=window.getComputedStyle(e).getPropertyValue(i);if(r){let a=r.trim();return jr(a)?parseFloat(a):a}return Jo(o)?zu(o,e,n+1):o}function j2(t){let e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Lu(t,e,n,i){let o=r=>typeof r=="function"?r(n!==void 0?n:t.custom,...j2(i)):r;return e=o(e),typeof e=="string"&&(e=t.variants&&t.variants[e]),o(e)}function pn(t,e,n){return Lu(t.getProps(),e,n,t)}var Qm=(t,e)=>e==="exit"?t.presenceContext?.custom:void 0;var Us=new Set(["width","height","top","left","right","bottom",...Me]);var $E=t=>Array.isArray(t);function Y2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ge(n))}function q2(t){return $E(t)?t[t.length-1]||0:t}function tA(t,e){let n=pn(t,e),{transitionEnd:i={},transition:o={},...r}=n||{};r={...r,...i};for(let a in r){let s=q2(r[a]);Y2(t,a,s)}}var vt=t=>!!(t&&t.getVelocity);function eA(t){return!!(vt(t)&&t.add)}function _u(t,e){let n=t.getValue("willChange");if(eA(n))return n.add(e);if(!n&&Zt.WillChange){let i=new Zt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var Bu="data-framer-appear-id";function Fm(t){return t.props[Bu]}var k2=typeof window<"u";function X2({protectedKeys:t,needsAnimating:e},n){let i=n in t&&!e[n];return e[n]=!1,i}function Im(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r,transitionEnd:a,...s}=e,l=t.getDefaultTransition();r=r?$r(r,l):l;let u=r?.reduceMotion,c=r?.skipAnimations;i&&(r=i);let f=[],m=o&&t.animationState?.getState()[o],d=r?.path;d&&(d.animateValues?d.animateValues(g=>t.getValue(g,t.latestValues[g]??0),s,r,n,f):d.animateVisualElement?.(t,s,r,n,f));for(let g in s){let v=t.getValue(g,t.latestValues[g]??null),x=s[g];if(x===void 0||m&&X2(m,g))continue;let p={delay:n,...Bs(m?.out[g]||r||{},g)};c&&(p.skipAnimations=!0);let h=v.get();if(h!==void 0&&!v.isAnimating()&&!Array.isArray(x)&&x===h&&!p.velocity){$.update(()=>v.set(x));continue}let y=!1;if(k2&&window.MotionHandoffAnimation){let C=Fm(t);if(C){let T=window.MotionHandoffAnimation(C,g,$);T!==null&&(p.startTime=T,y=!0)}}_u(t,g);let b=u??t.shouldReduceMotion;v.run(nr(g,v,x,b&&Us.has(g)?{type:!1}:p,t,y));let E=v.animation;E&&f.push(E)}if(a){let g=()=>$.update(()=>{a&&tA(t,a)});f.length?Promise.all(f).then(g):g()}return f}function Jm(t,e,n={}){let i=pn(t,e,Qm(t,n.type)),o=n.transitionOverride||(i?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(i?Im(t,i,n):[]),a=(l=0)=>{let{variantChildren:u}=t,{delayChildren:c=0,staggerChildren:f,staggerDirection:m}=o,d=[];return u?.forEach(g=>{g.notify("AnimationStart",e),d.push(Jm(g,e,{...n,delay:l+(typeof c=="function"?0:c)+Zm(u,g,c,f,m)}).then(()=>g.notify("AnimationComplete",e)))}),Promise.all(d)},{when:s}=o;return s?s==="beforeChildren"?r().then(()=>a()):a().then(r):Promise.all([r(),a(n.delay)])}function nA(t,e,n={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(o=>Jm(t,o,n))):typeof e=="string"?Jm(t,e,n):Promise.all(Im(t,pn(t,e,n.custom),n))).then(()=>{t.notify("AnimationComplete",e)})}var iA={test:t=>t==="auto",parse:t=>t};var oA=t=>e=>e.test(t);var K2=[gi,H,je,kn,jT,GT,iA],Yy=t=>K2.find(oA(t));function rA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qr(t):!0}var Z2=new Set(["auto","none","0"]);function aA(t,e,n){let i=0,o;for(;i<t.length&&!o;){let r=t[i];typeof r=="string"&&!Z2.has(r)&&QT(r)&&(o=t[i]),i++}if(o&&n)for(let r of e)t[r]!==o&&(t[r]=Os(n,o))}var Hs=class extends tr{constructor(e,n,i,o,r){super(e,n,i,o,r,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:n,motionValue:i}=this,o=e[0]??i?.get();if(!n?.current||o===void 0)return!1;for(let r=0;r<e.length;r++)if(Tm(r?e[r]:o))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:n,name:i}=this;if(!n?.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let f=e[c];if(typeof f=="string"&&(f=f.trim(),Jo(f))){let m=zu(f,n.current);m!==void 0&&(e[c]=m),c===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Us.has(i)||e.length!==2)return;let[o,r]=e;if(typeof o=="number"&&typeof r=="number")return;let a=Yy(o),s=Yy(r),l=Tm(o),u=Tm(r);if(l!==u&&Um[i]){this.needsMeasurement=!0;return}if(a!==s)if(zy(a)&&zy(s))for(let c=0;c<e.length;c++){let f=e[c];typeof f=="string"&&(e[c]=parseFloat(f))}else Um[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:n}=this,i=[];for(let o=0;o<e.length;o++)(e[o]===null||rA(e[o]))&&i.push(o);i.length&&aA(e,i,n)}measure(){let{element:e,name:n}=this;return Um[n](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:n,name:i}=this;if(!e?.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;let o=n[n.length-1];o!==void 0&&this.motionValue?.jump(o,!1)}measureEndState(){let{element:e,unresolvedKeyframes:n}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=this.measure(),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.resolveNoneKeyframes()}};var Uu=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var qy=[];function ky(t){Wm(t),qy.unshift(t)}function Wm(t){$e(qy,t)}function Xy(t){return qy.find(e=>e.test(t))}function $m(t,e,n={},i){let o=[],{velocity:r,path:a}=n,s=n.reduceMotion??i?.shouldReduceMotion;a?.animateValues&&i&&(e={...e},a.animateValues(t,e,n,0,o));for(let u in e){if(u==="transition"||u==="transitionEnd")continue;let c=e[u];if(c===void 0)continue;let f=t(u),m=f.get();if(m!==void 0&&!f.isAnimating()&&!Array.isArray(c)&&c===m&&!r){$.update(()=>f.set(c));continue}f.run(nr(u,f,c,s&&Us.has(u)?{type:!1}:n,i)),f.animation&&o.push(f.animation)}let{transitionEnd:l}=e;if(l){let u=()=>$.update(()=>{for(let c in l)t(c).set(l[c])});o.length?Promise.all(o).then(u):u()}return o}function Hu(t,e,n,i,o){let r,a=!1,s=$m(l=>{let u=r?.[l]??t.get(e,l);if(!u){let c;if(!o){let f=n[l];c=Q2(f)??t.read(e,l,f)}u=ge(c,{owner:o}),a?t(e,{[l]:u}):(r||(r={}))[l]=u}return u},n,i,o);return a=!0,r&&t(e,r),s}function Q2(t){let e=Array.isArray(t)?t[0]:void 0;return e===null?void 0:e}function bi(t){return Yr(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function zn(t){return Yr(t)&&"ownerSVGElement"in t}var qe={};function Wi(t){return qe.current?.add(t),t}var $i=t=>qe.current?qe.current.bind(t):t;function to(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=e?e.current:qe.current?.root||document,o=n?.[t]??i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(i=>i!=null)}var td=class{constructor(e=$.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:n,numPending:i}=this;this.numPending=0;for(let o=0;o<i;o++)n[o]()}}set(e,n,i,o){if(this.values.get(e)?.onRemove(),o)for(let l of this.values.values())l.value===o&&(i=l.render);let r=()=>i&&this.schedule(i);n.get()!==void 0&&r();let a=n.on("change",r),s=()=>{a(),i&&!o&&this.cancel(i),this.values.get(e)?.onRemove===s&&this.values.delete(e)};return this.values.set(e,{value:n,render:o?void 0:i,onRemove:s}),s}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((n,i)=>{e.set(i,n.value),n.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:n,numPending:i}=this;for(let o=0;o<i;o++)if(n[o]===e)return;i||this.step(this.flush),n[this.numPending++]=e}cancel(e){let{pending:n}=this;for(let i=0;i<this.numPending;i++)if(n[i]===e){n[i]=n[--this.numPending];return}}};function Ps(t,{step:e,...n}={}){let i=new WeakMap;return Object.assign((r,a)=>{let s=i.get(r)??new td(e);i.set(r,s);let l=[];for(let u in a){let c=a[u],f=t(r,s,u,c);l.push(f)}return()=>{for(let u of l)u()}},n,{get:(r,a)=>i.get(r)?.get(a),flush:r=>i.get(r)?.flush(),state:r=>i.get(r)})}function sA(t){let e="",{transformKeys:n=[],transformValues:i={}}=t;for(let r=0;r<n.length;r++){let a=n[r],s=i[a].getCurrent();s!==void 0&&(zs(a,s)||(e+=(e&&" ")+Wr(a,s)))}let o=t.get("pathRotation")?.get();return o&&(e+=(e&&" ")+Wr("rotate",o)),e||"none"}var Zy=new Set(["originX","originY","originZ"]),Ky=(t,e)=>Kn(t.get(e)?.get(),Ye[e]),ed=(t,e,n,i)=>{let o,r;if(Ft.has(n)){if(n!=="pathRotation"){let a=e.transformKeys??(e.transformKeys=[]);(e.transformValues??(e.transformValues={}))[n]=i,a.includes(n)||(a.push(n),a.sort((s,l)=>Me.indexOf(s)-Me.indexOf(l)))}e.get("transform")||(!bi(t)&&!e.get("transformBox")&&ed(t,e,"transformBox",new xi("fill-box")),e.set("transform",new xi("none"),()=>{Zn.get(t)?.check(),t.style.transform=sA(e)})),r=e.get("transform")}else Zy.has(n)?(e.get("transformOrigin")||e.set("transformOrigin",new xi(""),()=>{let a=Ky(e,"originX")??"50%",s=Ky(e,"originY")??"50%",l=Ky(e,"originZ")??0;t.style.transformOrigin=`${a} ${s} ${l}`}),r=e.get("transformOrigin")):er(n)?o=()=>{t.style.setProperty(n,i.getCurrent())}:o=()=>{t.style[n]=Kn(i.getCurrent(),Ye[n])};return e.set(n,i,o,r)},F2=t=>bi(t)||zn(t),Qy=(t,e)=>{if(Ft.has(e))return Bm(t,e);let n=getComputedStyle(t),i=er(e)?n.getPropertyValue(e):n[e];return typeof i=="string"&&i.trim()||0},lA=Ps(ed,{test:F2,read:Qy});function eo(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function ta(t,e,n){let{style:i,vars:o,transformOrigin:r}=t,a=!1,s=!1;for(let l in e){let u=e[l];if(Ft.has(l)){a=!0;continue}else if(Sm(l)){o[l]=u;continue}else{let c=Kn(u,Ye[l]);l.startsWith("origin")?(s=!0,r[l]=c):i[l]=c}}if(e.transform||(a||n?i.transform=PE(e,t.transform,n):i.transform&&(i.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}var I2={offset:"stroke-dashoffset",array:"stroke-dasharray"},J2={offset:"strokeDashoffset",array:"strokeDasharray"};function uA(t,e,n=1,i=0,o=!0){t.pathLength=1;let r=o?I2:J2;t[r.offset]=`${-i}`,t[r.array]=`${e} ${n}`}var Pu=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Gu(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:r=1,pathOffset:a=0,...s},l,u,c){if(ta(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m}=t;for(let d of Pu)f[d]!==void 0&&(m[d]=f[d],delete f[d]);(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),o!==void 0&&uA(f,o,r,a,!1)}function W2(t,e){if(!(e in t))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&typeof n.set=="function"}var Fy=(t,e,n,i,o=n)=>{let r=W2(t,o);!r&&(o.startsWith("data")||o.startsWith("aria"))&&(o=eo(o));let a=Ye[n]||Ye[o],s=r?()=>{t[o]=Kn(i.get(),Ye[n])}:()=>{let l=Kn(i.get(),a);l==null?t.removeAttribute(o):t.setAttribute(o,String(l))};return e.set(n,i,s)};function $2(t,e,n,i){return $.render(()=>t.setAttribute("pathLength","1")),n==="pathOffset"?e.set(n,i,()=>{let o=i.get();t.setAttribute("stroke-dashoffset",`${-o}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new xi("1 1"),()=>{let o=e.get("pathLength")?.get()??1,r=e.get("pathSpacing")?.get();t.setAttribute("stroke-dasharray",`${o} ${r??1-Number(o)}`)}),e.set(n,i,void 0,e.get("stroke-dasharray")))}var t3=(t,e,n,i)=>n.startsWith("path")&&!Ft.has(n)?$2(t,e,n,i):n.startsWith("attr")?Fy(t,e,n,i,fA(n)):n==="d"?e.set(n,i,()=>{let r=i.get()?.replace(/path\(|["')]/g,"");r===void 0?t.removeAttribute(n):t.setAttribute(n,r)}):(Ft.has(n)||Zy.has(n)||er(n)||n in t.style?ed:Fy)(t,e,n,i),e3=(t,e)=>Ft.has(e)?Ye[e]?.default||0:er(e)||Pu.includes(e)?Qy(t,e)||t.getAttribute(eo(e))||0:(e=fA(e),t.getAttribute(eo(e))??t.getAttribute(e)??void 0),cA=Ps(t3,{test:zn,read:e3});function fA(t){return t.replace(/^attr([A-Z])/,(e,n)=>n.toLowerCase())}function nd({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function mA({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function dA(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Iy(t){return t===void 0||t===1}function id({scale:t,scaleX:e,scaleY:n}){return!Iy(t)||!Iy(e)||!Iy(n)}var no=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function io(t){return id(t)||Wy(t)||Jy(t)}function Jy(t){return t.z||t.rotate||t.rotateX||t.rotateY||t.rotateZ||t.skewX||t.skewY}function Wy(t){return pA(t.x)||pA(t.y)}function pA(t){return t&&t!=="0%"}function ju(t,e,n){let i=t-n,o=e*i;return n+o}function hA(t,e,n,i,o){return o!==void 0&&(t=ju(t,o,i)),ju(t,n,i)+e}function $y(t,e=0,n=1,i,o){t.min=hA(t.min,e,n,i,o),t.max=hA(t.max,e,n,i,o)}function t0(t,{x:e,y:n}){$y(t.x,e.translate,e.scale,e.originPoint),$y(t.y,n.translate,n.scale,n.originPoint)}var gA=.999999999999,yA=1.0000000000001;function bA(t,e,n,i=!1){let o=n.length;if(!o)return;e.x=e.y=1;let r,a;for(let s=0;s<o;s++)r=n[s],a=r.projectionDelta,r.options.visualElement?.props.style?.display!=="contents"&&(i===!0&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(hn(t.x,-r.scroll.offset.x),hn(t.y,-r.scroll.offset.y)),a&&(e.x*=a.x.scale,e.y*=a.y.scale,t0(t,a)),i&&(i.path?.[s]||i)!==r&&io(r.latestValues)&&Yu(t,r.latestValues,r.layout?.layoutBox));e.x<yA&&e.x>gA&&(e.x=1),e.y<yA&&e.y>gA&&(e.y=1)}function hn(t,e){t.min+=e,t.max+=e}function vA(t,e,n,i,o=.5){let r=ut(t.min,t.max,o);$y(t,e,n,r,i)}function xA(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Yu(t,e,n){let i=n??t;vA(t.x,xA(e.x,i.x),e.scaleX,e.scale,e.originX),vA(t.y,xA(e.y,i.y),e.scaleY,e.scale,e.originY)}function qu(t,e){return nd(dA(t.getBoundingClientRect(),e))}function SA(t,e,n){let i=qu(t,n),{scroll:o}=e;return o&&(hn(i.x,o.offset.x),hn(i.y,o.offset.y)),i}var TA=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0});var n3={},i3=t=>zn(t)?cA:lA,e0=class{constructor(e,n){this.effect=e,this.current=n,this.KeyframeResolver=Hs}getValue(e){return this.effect.get(this.current,e)}readValue(e,n){return this.effect.read(this.current,e,n)}render(){this.effect.flush(this.current)}measureViewportBox(){return qu(this.current)}getProps(){return n3}};function n0(t,e,n,i){if(qe.current?.track(t),i)return $m(r=>i.getValue(r,null),e,n,i);let o=i3(t);return Hu(o,t,e,n,new e0(o,t))}var i0=Ps((t,e,n,i)=>e.set(n,i,()=>{t[n]=i.get()}),{test:t=>Yr(t),read:(t,e)=>{let n=t[e];return typeof n=="string"||typeof n=="number"?n:void 0}});var{schedule:Si,cancel:o3}=Dm(queueMicrotask,!1);function ea(t,e,n){let i=vt(t)?t:ge(t);return i.run(nr("",i,e,n)),i.animation}var na={};var ku={value:null,addProjectionMetrics:null,countProjection:void 0};function EA(t,e){let n=lt.now();t=$i(t);let i=({timestamp:o})=>{let r=o-n;r>=e&&(ne(i),t(r-e))};return $.setup(i,!0),Wi(()=>ne(i))}function AA(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function CA(t){return zn(t)&&t.tagName==="svg"}function ia(t){return vt(t)?t.get():t}var o0=t=>typeof t=="number"?t:parseFloat(t);var r3=Uu.length,wA=t=>typeof t=="number"||H.test(t);function DA(t,e,n,i,o,r){o?(t.opacity=ut(0,n.opacity??1,a3(i)),t.opacityExit=ut(e.opacity??1,0,s3(i))):r&&(t.opacity=ut(e.opacity??1,n.opacity??1,i));for(let a=0;a<r3;a++){let s=Uu[a],l=MA(e,s),u=MA(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||wA(l)===wA(u)?(t[s]=Math.max(ut(o0(l),o0(u),i),0),(je.test(u)||je.test(l))&&(t[s]+="%")):t[s]=u}for(let a=0;a<no.length;a++){let s=no[a];(e[s]||n[s])&&(t[s]=ut(e[s]||0,n[s]||0,i))}}function MA(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var a3=RA(0,.5,pu),s3=RA(.5,.95,Qt);function RA(t,e,n){return i=>i<t?0:i>e?1:n(Ge(t,e,i))}function od(t,e){t.min=e.min,t.max=e.max}function Ln(t,e){od(t.x,e.x),od(t.y,e.y)}function r0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var zA=1e-4,l3=1-zA,u3=1+zA,LA=.01,c3=0-LA,f3=0+LA;function ye(t){return t.max-t.min}function _A(t,e,n){return Math.abs(t-e)<=n}function OA(t,e,n,i=.5){t.origin=i,t.originPoint=ut(e.min,e.max,t.origin),t.scale=ye(n)/ye(e),t.translate=ut(n.min,n.max,t.origin)-t.originPoint,(t.scale>=l3&&t.scale<=u3||isNaN(t.scale))&&(t.scale=1),(t.translate>=c3&&t.translate<=f3||isNaN(t.translate))&&(t.translate=0)}function Xu(t,e,n,i){OA(t.x,e.x,n.x,i?.originX),OA(t.y,e.y,n.y,i?.originY)}function NA(t,e,n,i=0){let o=i?ut(n.min,n.max,i):n.min;t.min=o+e.min,t.max=t.min+ye(e)}function BA(t,e,n,i){NA(t.x,e.x,n.x,i?.x),NA(t.y,e.y,n.y,i?.y)}function VA(t,e,n,i=0){let o=i?ut(n.min,n.max,i):n.min;t.min=e.min-o,t.max=t.min+ye(e)}function Ku(t,e,n,i){VA(t.x,e.x,n.x,i?.x),VA(t.y,e.y,n.y,i?.y)}function UA(t,e,n,i,o){return t-=e,t=ju(t,1/n,i),o!==void 0&&(t=ju(t,1/o,i)),t}function m3(t,e=0,n=1,i=.5,o,r=t,a=t){if(je.test(e)&&(e=parseFloat(e),e=ut(a.min,a.max,e/100)-a.min),typeof e!="number")return;let s=ut(r.min,r.max,i);t===r&&(s-=e),t.min=UA(t.min,e,n,s,o),t.max=UA(t.max,e,n,s,o)}function HA(t,e,[n,i,o],r,a){m3(t,e[n],e[i],e[o],e.scale,r,a)}var d3=["x","scaleX","originX"],p3=["y","scaleY","originY"];function a0(t,e,n,i){HA(t.x,e,d3,n?.x,i?.x),HA(t.y,e,p3,n?.y,i?.y)}var PA=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),GA=PA("applewebkit/")&&!PA("chrome/")?Math.round:Qt;function jA(t){t.min=GA(t.min),t.max=GA(t.max)}function YA(t){jA(t.x),jA(t.y)}var qA=()=>({translate:0,scale:1,origin:0,originPoint:0}),oa=()=>({x:qA(),y:qA()}),kA=()=>({min:0,max:0}),Gt=()=>({x:kA(),y:kA()});function XA(t){return t.translate===0&&t.scale===1}function s0(t){return XA(t.x)&&XA(t.y)}function KA(t,e){return t.min===e.min&&t.max===e.max}function QA(t,e){return KA(t.x,e.x)&&KA(t.y,e.y)}function ZA(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function l0(t,e){return ZA(t.x,e.x)&&ZA(t.y,e.y)}function u0(t){return ye(t.x)/ye(t.y)}function c0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var rd=class{constructor(){this.members=[]}add(e){Gr(this.members,e);for(let n=this.members.length-1;n>=0;n--){let i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;let o=i.instance;(!o||o.isConnected===!1)&&!i.snapshot&&($e(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if($e(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,n){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:o}=i.options,{layoutDependency:r}=e.options;(o===void 0||o!==r)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function FA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Gs={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(H.test(t))t=parseFloat(t);else return t;let n=FA(t,e.target.x),i=FA(t,e.target.y);return`${n}% ${i}%`}};var IA={correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t,o=le.parse(t);if(o.length>5)return i;let r=le.createTransformer(t),a=typeof o[0]!="number"?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;let u=ut(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),r(o)}};var JA={borderRadius:Object.assign({},Gs,{applyTo:Uu.slice()}),borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:IA};function WA(t,e,n){let i="",o=t.x.translate/e.x,r=t.y.translate/e.y,a=n?.z||0;(o||r||a)&&(i=`translate3d(${o}px, ${r}px, ${a}px) `);let s="";if(n){let{transformPerspective:l}=n;l&&(i=`perspective(${l}px) ${i}`);for(let u=0;u<no.length;u++){let c=no[u],f=n[c];f&&(s+=`${c}(${f}deg) `),!u&&n.pathRotation&&(s+=`rotate(${n.pathRotation}deg) `)}}if(s){(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),i+=s;let l=t.x.scale*e.x,u=t.y.scale*e.y;(l!==1||u!==1)&&(i+=`scale(${l}, ${u})`)}else t.x.scale!==1||t.y.scale!==1?i+=`scale(${t.x.scale}, ${t.y.scale})`:!i&&(e.x!==1||e.y!==1)&&(i="scale(1, 1)");return i||"none"}function gn(t){return[t("x"),t("y")]}var $A=(t,e)=>t.depth-e.depth;var ad=class{constructor(){this.children=[],this.isDirty=!1}add(e){Gr(this.children,e),this.isDirty=!0}remove(e){$e(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($A),this.isDirty=!1,this.children.forEach(e)}};var ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var tC=["z","skew","skewZ"],h3=1e3,g3=0;function eC(t,e,n,i){let{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}var f0=t=>t.instance&&Zn.get(t.instance)?.demote()&&t.resetSkewAndRotation();function lC(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let n=Fm(e);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:o,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$,!(o||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&lC(i)}function uC(t){if(t)return t.options.allowProjection!==!1?t.projection:uC(t.parent)}function sd({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return Object.assign(na,{...JA,...na}),class{static create(a,s,l){let{layoutId:u,layout:c,drag:f,dragConstraints:m,layoutScroll:d,layoutRoot:g,layoutAnchor:v,layoutCrossfade:x}=s,p=a.projection=new this(a.latestValues,s["data-framer-portal-id"]?void 0:uC(a.parent));p.setOptions({layoutId:u,layout:c,alwaysMeasureLayout:!!f||m&&AA(m),visualElement:a,animationType:typeof c=="string"?c:"both",initialPromotionConfig:l,crossfade:x,layoutScroll:d,layoutRoot:g,layoutAnchor:v});let h=p.getStack()?.lead;h&&!p.root.isUpdateBlocked()&&(h.willUpdate(),h.scheduleCheckAfterUnmount())}constructor(a={},s=e?.()){this.id=g3++,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,this.nodes.forEach(x3),this.nodes.forEach(M3),this.nodes.forEach(D3),this.nodes.forEach(b3),ku.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 ad)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new pi),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){this.eventHandlers.get(a)?.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=zn(a)&&!CA(a),this.instance=a;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),t){let c,f=0,m=()=>this.root.updateBlockedByResize=!1;$.read(()=>{f=window.innerWidth}),t(a,()=>{let d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c?.(),c=EA(m,250),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,this.nodes.forEach(oC)))})}s&&this.root.registerSharedNode(s,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:a,layout:s,visualElement:l,animate:u}=this.options;!this.instance||this.hasLayoutListener||u===!1||!l||!(a||s)||(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:d})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||l.getDefaultTransition()||V3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=l.getProps(),p=!this.targetLayout||!l0(this.targetLayout,d),h=!f&&m;if(this.options.layoutRoot||this.resumeFrom||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...Bs(g,"layout"),onPlay:v,onComplete:x};(l.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,h,y.path)}else f||oC(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=d}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,ne(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(R3),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;f0(this),this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let f=this.path[c];f.shouldResetTransform=!0,f0(f),(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1),f.isAnimationBlocked&&(f.dragSnapshot||(f.dragSnapshot=f.measure()),this.dragAncestor=f)}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(),a&&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(T3),this.nodes.forEach(nC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(iC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(A3),this.nodes.forEach(C3),this.nodes.forEach(w3),this.nodes.forEach(y3),this.nodes.forEach(v3)):this.nodes.forEach(iC),this.clearAllSnapshots();let s=lt.now();Nt.delta=se(0,1e3/60,s-Nt.timestamp),Nt.timestamp=s,Nt.isProcessing=!0,Su.update.process(Nt),Su.preRender.process(Nt),Su.render.process(Nt),Nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Si.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(S3),this.sharedNodes.forEach((a,s)=>a.members.length?a.removeLeadSnapshot():this.sharedNodes.delete(s))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=Gt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s?.notify("LayoutMeasure",this.layout.layoutBox,a?.layoutBox)}updateScroll(a="measure"){let{scroll:s,instance:l}=this,{animationId:u}=this.root;if(this.options.layoutScroll&&l&&!(s&&s.animationId===u&&s.phase===a)){let c=i(l);this.scroll={animationId:u,phase:a,isRoot:c,offset:n(l),wasRoot:s?s.isRoot:c}}}resetTransform(){if(!o)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;a&&f0(this);let s=this.projectionDelta&&!s0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||io(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),YA(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return Gt();let s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(z3))){let{scroll:u}=this.root;u&&(hn(s.x,u.offset.x),hn(s.y,u.offset.y))}return s}removeElementScroll(a){let s=Gt();if(Ln(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ln(s,a),hn(s.x,c.offset.x),hn(s.y,c.offset.y))}return s}applyTransform(a,s=!1,l,u,c=0){let f=l||Gt();Ln(f,a);for(let m=c;m<this.path.length;m++){let d=this.path[m];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(hn(f.x,-d.scroll.offset.x),hn(f.y,-d.scroll.offset.y)),io(d.latestValues)&&Yu(f,d.latestValues,d.layout?.layoutBox)}return!u&&io(this.latestValues)&&Yu(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(a){let s=Gt();Ln(s,a);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!io(u.latestValues))continue;let c;u.instance&&(id(u.latestValues)&&u.updateSnapshot(),c=Gt(),Ln(c,u.measurePageBox())),a0(s,u.latestValues,u.snapshot?.layoutBox,c)}return io(this.latestValues)&&a0(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0},this.addLayoutListener()}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!==Nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!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(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=Nt.timestamp;let m=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gt(),this.targetWithTransforms=Gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):Ln(this.target,this.layout.layoutBox),t0(this.target,this.targetDelta)):Ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&m&&(!m.resumingFrom==!this.resumingFrom||m.options.layoutRoot&&!m.resumingFrom)&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0),ku.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||id(this.parent.latestValues)||Wy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gt(),this.relativeTargetOrigin=Gt(),Ku(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),s=!!this.resumingFrom||this!==a,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Nt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Ln(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,m=this.treeScale.y;bA(this.layoutCorrected,this.treeScale,this.path,s&&(a.relativeTarget&&!a.relativeParent.resumingFrom?a.relativeParent:!0)),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Gt());let{target:d}=a;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)),Xu(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!c0(this.projectionDelta.x,this.prevProjectionDelta.x)||!c0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d)),ku.countProjection?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){this.options.visualElement?.scheduleRender(),a&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oa(),this.projectionDelta=oa(),this.projectionDeltaWithTransform=oa()}setAnimationOrigin(a,s=!1,l){let u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},m=oa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let d=Gt(),g=u?.source!==this.layout?.source,v=this.getStack(),x=!v||v.members.length<=1,p=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(N3));this.animationProgress=0;let h,y=l?.interpolateProjection(a);this.mixTargetDelta=b=>{let E=b/1e3,C=y?.(E);rC(m.x,a.x,E),rC(m.y,a.y,E),C&&(m.x.translate=C.x,m.y.translate=C.y),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ku(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),O3(this.relativeTarget,this.relativeTargetOrigin,d,E),h&&QA(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=Gt()),Ln(h,this.relativeTarget)),g&&(this.animationValues=f,DA(f,c,this.latestValues,E,p,x)),C?.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ne(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update(()=>{ra.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ge(0)),this.motionValue.jump(0,!1),this.currentAnimation=ea(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),dE(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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(h3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,layout:l,latestValues:u}=a,{target:c}=a;if(!(!s||!c||!l)){if(this!==a&&this.layout&&l&&cC(this.options.animationType,this.layout.layoutBox,l.layoutBox)){let{layoutBox:f}=this.layout,m=c;c=this.target||Gt(),sC(c.x,m.x,f.x),sC(c.y,m.y,f.y)}Ln(s,c),Yu(s,u),Xu(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new rd),this.sharedNodes.get(a).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?.transition,preserveFollowOpacity:u?.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){this.getStack()?.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let{latestValues:s}=a;if(!Jy(s))return;let l={};for(let u=0;u<tC.length;u++)eC(tC[u],a,l,this.animationValues);for(let u=0;u<no.length;u++)eC(no[u],a,l,this.animationValues);a.render();for(let u in l)a.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;let l=this.getLead();if(!this.isVisible&&l!==this){a.visibility="hidden";return}let u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=ia(s?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!l.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,a.visibility="",a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=ia(s?.pointerEvents)||""),this.hasProjected&&!io(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";let c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=WA(this.projectionDeltaWithTransform,this.treeScale,c);u&&(f=u(c,f)),a.transform=f;let{x:m,y:d}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${d.origin*100}% 0`,l.animationValues?a.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:a.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let g in na){if(c[g]===void 0)continue;let{correct:v,applyTo:x,isCSSVariable:p}=na[g],h=f==="none"?c[g]:v(c[g],l);if(x){let y=x.length;for(let b=0;b<y;b++)a[x[b]]=h}else p?this.options.visualElement.renderState.vars[g]=h:a[g]=h}this.options.layoutId&&(a.pointerEvents=l===this?ia(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(nC),this.root.sharedNodes.clear()}}}function y3(t){t.updateLayout(),E3(t)}function v3(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source,a=(d,g)=>{if(o==="size")gn(v=>{let x=ye(d[v]);d[v].min=g[v].min,d[v].max=d[v].min+x});else if(o==="x"||o==="y"){let v=o==="x"?"y":"x";od(d[v],g[v])}else cC(o,e.layoutBox,n)&&gn(v=>{let x=ye(g[v]);d[v].max=d[v].min+x,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+x)})},s=r?e.measuredBox:e.layoutBox;a(s,n);let l=oa();Xu(l,n,e.layoutBox);let u=oa();Xu(u,r?t.applyTransform(i,!0):n,s);let c=!s0(l),f=!1,m=t.getClosestProjectingParent();if((!r||m?.options.layoutRoot&&t.resumeFrom?.path.includes(m))&&m&&!m.resumeFrom){let{snapshot:d,layout:g}=m;if(d&&g){let v=t.options.layoutAnchor||void 0,x=Gt();Ku(x,r?t.resumeFrom.applyTransform(e.layoutBox,!0,void 0,!0,m.depth+1):e.layoutBox,d.layoutBox,v);let p=Gt();Ku(p,n,g.layoutBox,v),r&&a(x,p),l0(x,p)||(f=!0),m.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=x,t.relativeParent=m)}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:f})}else t.isLead()&&t.options.onExitComplete?.();t.options.transition=void 0}function x3(t){ku.countProjection?.(0),t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function b3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function S3(t){t.clearSnapshot()}function nC(t){t.clearMeasurements()}function T3(t){t.isLayoutDirty=!0,t.updateLayout()}function iC(t){t.isLayoutDirty=!1}function E3(t){let{snapshot:e,dragAncestor:n}=t,i=n?.isAnimationBlocked&&n.layout;if(!e||!i||t.resumeFrom||t.isAnimationBlocked)return;let o=n.dragSnapshot;gn(r=>hn(e.layoutBox[r],i.layoutBox[r].min-o.layoutBox[r].min))}function A3(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.dragSnapshot||t.layout,t.isLayoutDirty=!0)}function C3(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function w3(t){let{visualElement:e}=t.options;e?.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function oC(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function M3(t){t.resolveTargetDelta()}function D3(t){t.calcProjection()}function R3(t){t.resetSkewAndRotation()}function rC(t,e,n){t.translate=ut(e.translate,0,n),t.scale=ut(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function aC(t,e,n,i){t.min=ut(e.min,n.min,i),t.max=ut(e.max,n.max,i)}function O3(t,e,n,i){aC(t.x,e.x,n.x,i),aC(t.y,e.y,n.y,i)}function N3(t){return t.animationValues?.opacityExit!==void 0}var V3={duration:.45,ease:[.4,0,.1,1]};function sC(t,e,n){t.max=ye(n)+(t.min=e.min)}function cC(t,e,n){return t==="position"||t==="preserve-aspect"&&!_A(u0(e),u0(n),.2)}function z3(t){return t!==t.root&&t.scroll?.wasRoot}function yn(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}var fC=sd({attachResizeListener:(t,e)=>yn(t,"resize",e),measureScroll:TA,checkIsScrollRoot:()=>!0});var aa={current:void 0};var Zu=sd({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!aa.current){let t=new fC({});t.mount(window),t.setOptions({layoutScroll:!0}),aa.current=t}return aa.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});var Qu=new WeakMap;function oo(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ro(t){return typeof t=="string"||Array.isArray(t)}var sa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","whilePinch","exit"],ld=["initial"].concat(sa);function ir(t){if(oo(t.animate))return!0;for(let e=0;e<ld.length;e++)if(ro(t[ld[e]]))return!0;return!1}function Fu(t){return!!(ir(t)||t.variants)}function mC(t,e,n){for(let i in e){let o=e[i],r=n[i];if(vt(o))t.addValue(i,o);else if(vt(r))t.addValue(i,ge(o,{owner:t}));else if(r!==o)if(t.hasValue(i)){let a=t.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{let a=t.getStaticValue(i);t.addValue(i,ge(a!==void 0?a:o,{owner:t}))}}for(let i in n)e[i]===void 0&&t.removeValue(i);return e}var or={current:null},la={current:!1};var L3=typeof window<"u";function Iu(){if(la.current=!0,!!L3)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>or.current=t.matches;t.addEventListener("change",e),e()}else or.current=!1}var dC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ud={};function Wu(t){ud=t}function m0(){return ud}var Ju=class{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,skipAnimations:r,blockInitialAnimation:a,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=tr,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 d=lt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,$.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=ir(n),this.isVariantNode=Fu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(let d in m){let g=m[d];u[d]!==void 0&&vt(g)&&g.set(u[d])}}mount(e){let n=this.presenceContext;if(this.hasBeenMounted&&n?.isPresent!==!1&&!n?.keepValuesOnRemount)for(let i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];if(this.current=e,Qu.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let i=this;do i=i.props.inherit!==!1&&i.parent;while(i&&!i.isVariantNode);if(i){let{variantChildren:o}=i;o.add(this),this.removeFromVariantTree=()=>o.delete(this)}}this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(la.current||Iu(),this.shouldReduceMotion=or.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),ne(this.notifyUpdate),ne(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||(this.enteringChildren=new Set)).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.get(e)?.(),n.accelerate&&Ou.has(e)&&this.current instanceof HTMLElement){let{factory:a,keyframes:s,times:l,ease:u,duration:c}=n.accelerate,f=new Vs({element:this.current,name:e,keyframes:s,times:l,ease:u,duration:Bt(c)}),m=a(f);this.valueSubscriptions.set(e,()=>{m(),f.cancel()});return}let i=Ft.has(e);i&&this.onBindTransform&&this.onBindTransform();let o=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&$.preRender(this.notifyUpdate),i&&(this.projection&&(this.projection.isTransformDirty=!0),Zn.get(this.current)?.check()),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),r?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ud){let n=ud[e];if(!n)continue;let{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){let r=this.features[e];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):Gt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){let{transformTemplate:i,onUpdate:o}=this.props;(e.transformTemplate||i)&&this.scheduleRender(),(e.transformTemplate&&!i||e.onUpdate&&!o)&&Zn.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<dC.length;r++){let a=dC[r];this.propEventSubscriptions[a]?.(),delete this.propEventSubscriptions[a];let s="on"+a,l=e[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=mC(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,n){let i=this.values.get(e);if(n!==i){i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n);let o=n.get();o!==void 0&&(this.latestValues[e]=o)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){let i=this.props.values?.[e];return i||(i=this.values.get(e),i===void 0&&n!==void 0&&(i=ge(n??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,i)),i)}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(jr(i)||qr(i))?i=parseFloat(i):typeof i!="number"&&!le.test(i)&&le.test(n)&&(i=Os(e,n)),this.setBaseTarget(e,vt(i)?i.get():i)),vt(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}on(e,n){return(this.events[e]||(this.events[e]=new pi)).add(n)}notify(e,...n){this.events[e]?.notify(...n)}scheduleRenderMicrotask(){Si.render(this.render)}};var js=class extends Ju{constructor(){super(...arguments),this.KeyframeResolver=Hs}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){let i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;vt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function cd(t,{style:e,vars:n},i,o){let r=t.style,a;for(a in e)r[a]=e[a];o?.applyProjectionStyles(r,i);for(a in n)r.setProperty(a,n[a])}function $u(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!na[t]||t==="opacity")}function ua(t,e,n){let i=t.style,o=e?.style,r={};if(!i)return r;for(let a in i)(vt(i[a])||o&&vt(o[a])||$u(a,t)||n?.getValue(a)?.liveStyle!==void 0)&&(r[a]=i[a]);return r}function _3(t){return window.getComputedStyle(t)}var tc=class extends js{constructor(){super(...arguments),this.type="html",this.renderInstance=cd}mount(e){super.mount(e)}readValueFromInstance(e,n){if(Ft.has(n))return this.projection?.isProjecting?Fr(n):Bm(e,n);{let i=_3(e),o=(Sm(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return qu(e,n)}build(e,n,i){ta(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ua(e,n,i)}};var rr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ys(t){return{point:{x:t.pageX,y:t.pageY}}}var d0=t=>e=>rr(e)&&t(e,Ys(e));function ao(t,e,n,i){return yn(t,e,d0(n),i)}var fd=new WeakMap,md,pC=(t,e,n)=>(i,o)=>o&&o[0]?o[0][t+"Size"]:zn(i)&&"getBBox"in i?i.getBBox()[e]:i[n],B3=pC("inline","width","offsetWidth"),U3=pC("block","height","offsetHeight");function H3({target:t,borderBoxSize:e}){fd.get(t)?.forEach(n=>{n(t,{get width(){return B3(t,e)},get height(){return U3(t,e)}})})}function P3(t){t.forEach(H3)}function G3(){typeof ResizeObserver>"u"||(md=new ResizeObserver(P3))}function hC(t,e){md||G3();let n=to(t);return n.forEach(i=>{let o=fd.get(i);o||(o=new Set,fd.set(i,o)),o.add(e),md?.observe(i)}),()=>{n.forEach(i=>{let o=fd.get(i);o?.delete(e),o?.size||md?.unobserve(i)})}}var dd=new Set,qs;function j3(){qs=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};dd.forEach(e=>e(t))},window.addEventListener("resize",qs)}function gC(t){return dd.add(t),qs||j3(),()=>{dd.delete(t),!dd.size&&typeof qs=="function"&&(window.removeEventListener("resize",qs),qs=void 0)}}function p0(t,e){return Wi(typeof t=="function"?gC(t):hC(t,e))}var yC=(t,e)=>Math.abs(t-e);function vC(t,e){let n=yC(t.x,e.x),i=yC(t.y,e.y);return Math.sqrt(n**2+i**2)}var xC=new Set(["auto","scroll"]),ca=class{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:r=!1,distanceThreshold:a=3,element:s,immediate:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pd(this.lastRawMoveEventInfo,this.transformPagePoint));let g=g0(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,x=vC(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!x)return;let{point:p}=g;this.history.push({...p,timestamp:lt.now()});let{onStart:h,onMove:y}=this.handlers;v||(h?.(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),y?.(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.handleScroll(window),this.lastMoveEvent=g,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=pd(v,this.transformPagePoint),this.hasPendingMove=!0,$.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:x,onSessionEnd:p,resumeAnimation:h}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&h?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=g0(g.type==="pointercancel"?this.lastMoveEventInfo:pd(v,this.transformPagePoint),this.history);this.startEvent&&x?.(g,y),p?.(g,y)},!rr(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=l?0:a,this.contextWindow=o||window;let u=Ys(e),c=pd(u,this.transformPagePoint),{point:f}=c;this.history=[{...f,timestamp:lt.now()}];let{onSessionStart:m}=n;m&&m(e,g0(c,this.history));let d={passive:!0,capture:!0};this.removeListeners=Nn(ao(this.contextWindow,"pointermove",this.handlePointerMove,d),ao(this.contextWindow,"pointerup",this.handlePointerUp,d),ao(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s),l&&(this.handlePointerMove(e,u),this.updatePoint())}startScrollTracking(e){let n=e.parentElement;for(;n;){let i=getComputedStyle(n);(xC.has(i.overflowX)||xC.has(i.overflowY))&&this.scrollPositions.set(n,h0(n)),n=n.parentElement}this.scrollPositions.set(window,h0(window)),this.removeScrollListeners=Nn(yn(window,"scroll",this.onElementScroll,{capture:!0}),yn(window,"scroll",this.onWindowScroll,{}))}handleScroll(e){let n=this.scrollPositions.get(e);if(!n)return;let i=e===window,o=h0(e),r={x:o.x-n.x,y:o.y-n.y};r.x===0&&r.y===0||(i?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(e,o),$.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),ne(this.updatePoint)}},h0=t=>t===window?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop};function pd(t,e){return e?{point:e(t.point)}:t}function bC(t,e){return{x:t.x-e.x,y:t.y-e.y}}function g0({point:t},e){return{point:t,delta:bC(t,SC(e)),offset:bC(t,Y3(e)),velocity:q3(e,.1)}}function Y3(t){return t[0]}function SC(t){return t[t.length-1]}function q3(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,o=SC(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>Bt(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&o.timestamp-i.timestamp>Bt(e)*2&&(i=t[1]);let r=ee(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};let a={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var k3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TC(t){return k3.has(t.tagName)||t.isContentEditable===!0}var X3=new Set(["INPUT","SELECT","TEXTAREA"]);function EC(t){return X3.has(t.tagName)||t.isContentEditable===!0}var _n={x:!1,y:!1};function ks(){return _n.x||_n.y}function AC(t){return t==="x"||t==="y"?_n[t]?null:(_n[t]=!0,()=>{_n[t]=!1}):_n.x||_n.y?null:(_n.x=_n.y=!0,()=>{_n.x=_n.y=!1})}function RC(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?ut(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?ut(n,t,i.max):Math.min(t,n)),t}function CC(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function OC(t,{top:e,left:n,bottom:i,right:o}){return{x:CC(t.x,n,o),y:CC(t.y,e,i)}}function wC(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function NC(t,e){return{x:wC(t.x,e.x),y:wC(t.y,e.y)}}function VC(t,e){let n=.5,i=ye(t),o=ye(e);return o>i?n=Ge(e.min,e.max-i,t.min):i>o&&(n=Ge(t.min,t.max-o,e.min)),se(0,1,n)}function zC(t,e){let n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}var hd=.35;function LC(t=hd){return t===!1?t=0:t===!0&&(t=hd),{x:MC(t,"left","right"),y:MC(t,"top","bottom")}}function MC(t,e,n){return{min:DC(t,e),max:DC(t,n)}}function DC(t,e){return typeof t=="number"?t:t[e]||0}function _C(t){let e="";for(let n of t.path){n.scroll=void 0,n.updateScroll();let{scroll:i}=n;n!==t.root&&i&&(e+=i.offset.x+","+i.offset.y+",")}return e}var HC=new WeakMap,nc=class{constructor(e,n=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=n}start(e,n={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let i=u=>{n.snapToCursor&&this.snapToCursor(u),this.stopAnimation()},o=(u,c)=>{let{drag:f,dragConstraints:m,dragPropagation:d,onDragStart:g}=this.getProps();if(f&&!d&&(this.openDragLock?.(),this.openDragLock=AC(f),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=c,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:v}=this.visualElement;v&&(v.isAnimationBlocked=!0,v.target=void 0),gn(x=>{let p=this.getAxisMotionValue(x).get()||0;if(Jo(p)&&(p=zu(p,this.visualElement.current)||0),H.test(p))p=parseFloat(p);else if(je.test(p)){let h=v?.layout?.layoutBox[x];h&&(p=ye(h)*(parseFloat(p)/100))}this.originPoint[x]=p}),this.point=typeof m=="function"&&m(this),g&&$.update(()=>g(u,c),!1,!0),_u(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},r=(u,c)=>{this.latestPointerEvent=u,this.latestPanInfo=c;let{dragPropagation:f,dragDirectionLock:m,onDirectionLock:d,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:v}=c;if(m&&this.currentDirection===null){if(this.currentDirection=Z3(v),this.currentDirection===null)return;d&&d(this.currentDirection)}this.updateAxis("x",v),this.updateAxis("y",v),this.point&&this.point.move(),this.visualElement.render(),g&&$.update(()=>g(u,c),!1,!0)},a=(u,c)=>{this.latestPointerEvent=u,this.latestPanInfo=c,this.stop(u,c),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:u}=this.getProps();(u||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ca(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:s},{...n,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,n,i){let o=e||this.latestPointerEvent,r=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!o)return;let{velocity:s}=r;this.startAnimation(s,i);let{onDragEnd:l}=this.getProps();l&&$.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,n){let{drag:i}=this.readProps();if(!n||!Xs(e,i,this.currentDirection))return;let o=this.getAxisMotionValue(e),r=this.originPoint[e]+n[e],a=this.constraints&&this.constraints[e];a&&(r=RC(r,a,this.elastic[e])),this.point?this.point[e]=r:o.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:n}=this.getProps(),{projection:i}=this.visualElement,o=i&&(i.layout||i.measure(!1)),r=this.constraints;ec(e)?(!this.constraints||this.scroll!==_C(i))&&(this.constraints=this.resolveRefConstraints()):e&&o&&typeof e=="object"?this.constraints=OC(o.layoutBox,e):this.constraints=!1,this.elastic=LC(n),r!==this.constraints&&!ec(e)&&o&&this.constraints&&!this.hasMutatedConstraints&&gn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=zC(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!ec(e))return!1;let i=BC(e),{projection:o}=this.visualElement;if(!o||!o.layout)return!1;this.scroll=_C(o);let r=SA(i,o.root,this.visualElement.getTransformPagePoint()),a=NC(o.layout.layoutBox,o.removeElementScroll(r));if(n){let s=n(mA(a));this.hasMutatedConstraints=!!s,s&&(a=nd(s))}return a}startAnimation(e,n){let{drag:i,dragMomentum:o,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u={bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},c=d=>o&&!(this.point&&s)&&Xs(d,n||i,this.currentDirection)?e[d]:0;if(this.point&&!s)return this.point.release({x:c("x"),y:c("y")},u).then(l);let f=this.constraints||{},m=gn(d=>{if(!Xs(d,n||i,this.currentDirection))return;let g=f[d]||{};(s===!0||s===d)&&(g={min:0,max:0});let v={type:"inertia",velocity:c(d),...u,...g};return this.startAxisValueAnimation(d,v)});return Promise.all(m).then(l)}startAxisValueAnimation(e,n){let i=this.getAxisMotionValue(e);return _u(this.visualElement,e),i.start(nr(e,i,0,n,this.visualElement,!1))}stopAnimation(){gn(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let n=`_drag${e.toUpperCase()}`,o=this.readProps()[n];return o||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:n}){let{drag:i}=this.getProps(),o={x:e,y:n},r=this.visualElement.getTransformPagePoint()?.(o)||o,a=this.visualElement.measureViewportBox();gn(s=>{if(!Xs(s,i,this.currentDirection))return;let l=this.getAxisMotionValue(s),{min:u,max:c}=a[s];l.set((l.get()||0)+r[s]-ut(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ec(n)||!i||!this.constraints)return;this.stopAnimation();let o=this.constraints,r={x:0,y:0};gn(s=>{let l=this.getAxisMotionValue(s).get();r[s]=VC({min:l,max:l},o[s])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root?.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(s=>{let l=this.getAxisMotionValue(s);if(!Xs(s,e,null)||!l.get())return;let{min:u,max:c}=this.constraints[s];l.set(ut(u,c,r[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;HC.set(this.visualElement,this);let e=this.visualElement.current,n=ao(e,"pointerdown",u=>{let{drag:c,dragListener:f=!0}=this.getProps(),m=u.target,d=m!==e&&EC(m);c&&f&&!d&&this.start(u)}),i,o=()=>{let{dragConstraints:u}=this.getProps(),c=ec(u)&&BC(u);c&&(this.constraints=this.resolveRefConstraints(),i||(i=K3(e,c,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,a=r.addEventListener("measure",o);r.layout||(r.root?.updateScroll(),r.updateLayout()),$.read(o);let s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(gn(f=>{if(!Xs(f,this.getProps().drag,this.currentDirection))return;let m=this.getAxisMotionValue(f);this.originPoint[f]+=u[f].translate,m.set(m.get()+u[f].translate)}),this.visualElement.render())}));return()=>{s(),n(),a(),l(),i?.()}}getProps(){let e=this.readProps(),{dragElastic:n=hd,dragMomentum:i=!0}=e;return{...e,dragElastic:n,dragMomentum:i}}};function ec(t){return!!t&&typeof t=="object"&&("current"in t||"nodeType"in t)}var BC=t=>"current"in t?t.current:t;function UC(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function K3(t,e,n){let i=p0(t,UC(n)),o=p0(e,UC(n));return()=>{i(),o()}}function Xs(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Z3(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}function gd(t,e){let n=to(t),i=new AbortController,o={passive:!0,...e,signal:i.signal},r=Wi(()=>i.abort());return[n,o,r]}function Q3(t){return!(t.pointerType==="touch"||ks())}function y0(t,e,n={}){e=$i(e);let[i,o,r]=gd(t,n);return i.forEach(a=>{let s=!1,l=!1,u,c=()=>{a.removeEventListener("pointerleave",g)},f=x=>{u&&(u(x),u=void 0),c()},m=x=>{s=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),l&&(l=!1,f(x))},d=()=>{s=!0,window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",m,o)},g=x=>{if(x.pointerType!=="touch"){if(s){l=!0;return}f(x)}},v=x=>{if(!Q3(x))return;l=!1;let p=e(a,x);typeof p=="function"&&(u=p,a.addEventListener("pointerleave",g,o))};a.addEventListener("pointerenter",v,o),a.addEventListener("pointerdown",d,o)}),r}var v0=(t,e)=>e?t===e?!0:v0(t,e.parentElement):!1;var ic=new WeakSet;function PC(t){return e=>{e.key==="Enter"&&t(e)}}function x0(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var GC=(t,e)=>{let n=!1,i=PC(()=>{n||ic.has(t)||(n=!0,x0(t,"down"))}),o=PC(()=>{n&&(n=!1,x0(t,"up"))});t.addEventListener("keydown",i,e),t.addEventListener("keyup",o,e),t.addEventListener("blur",()=>{t.removeEventListener("keydown",i),t.removeEventListener("keyup",o),n&&x0(t,"cancel")},{...e,once:!0})};function F3(t){return rr(t)&&!ks()}var jC=new WeakSet,I3=100,J3=8,YC=(t,e,n)=>Math.hypot(t.clientX-e.clientX,t.clientY-e.clientY)>n,qC=t=>t.preventDefault();function b0(t,e,n={}){e=$i(e);let[i,o,r]=gd(t,n),a=new WeakMap,s=l=>{let u=l.currentTarget;if(!F3(l)||jC.has(l))return;n.stopPropagation&&jC.add(l);let{count:c=1,countTimeout:f=.3,hold:m=0,repeat:d}=n,g=lt.now(),v=Bt(m),x=Bt(f),p=a.get(u);p?.expire(YC(p.event,l,I3))?p=void 0:p&&(ne(p.expire),a.delete(u));let h=p?p.count+1:1,y=h>=c,b=y&&(m||d),E=!m,C=0,T;if(ic.add(u),p)T=p.handlers;else{let X=e(u,l);T=typeof X=="function"?{onComplete:X}:X||{}}y&&E&&T.onActive?.();let S=Bt(d),M=v||S,D=g+M,L=!0,P=()=>{if(o.signal.aborted)return ne(P);let X=Math.min(1-(D-lt.now())/M,1);L&&X<1&&(X=0),L=!1,T.onHold?.(X),!(X<1)&&(E?T.onRepeat?.(++C):(E=!0,T.onActive?.()),d?(L=!0,D+=M=S):ne(P))},Z={...o,capture:!0},I=(X,_)=>{if(rr(X))if(window.removeEventListener("pointerup",J,Z),window.removeEventListener("pointercancel",tt,Z),window.removeEventListener("pointermove",K,Z),u.removeEventListener("contextmenu",qC),ne(P),ic.delete(u),ks()&&(_=!1),_&&!y){let A=lt.now(),w=V=>{let O=o.signal.aborted;if(O||V===!0||lt.now()-A>x)return ne(w),a.delete(u),O||T.onComplete?.(X,{success:!1}),!0};a.set(u,{count:h,event:l,handlers:T,expire:w}),$.update(w,!0)}else T.onComplete?.(X,{success:_&&E})},J=X=>{I(X,u===window||u===document||n.useGlobalTarget||v0(u,X.target))},tt=X=>{I(X,!1)},K=X=>{rr(X)&&((d||!E)&&YC(l,X,J3)||c>1&&ks())&&tt(X)};window.addEventListener("pointerup",J,Z),window.addEventListener("pointercancel",tt,Z),(b||c>1)&&window.addEventListener("pointermove",K,Z),b&&($.update(P,!0),u.addEventListener("contextmenu",qC,{...o,passive:!1}))};return i.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,o),bi(l)&&(l.addEventListener("focus",()=>GC(l,o),o),!TC(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),r}var ue=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};var yd=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 oc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kC(t,e,n,i){cd(t,e,void 0,i);for(let o in e.attrs)t.setAttribute(yd.has(o)?o:eo(o),e.attrs[o])}function rc(t,e,n){let i=ua(t,e,n);for(let o in t)if(o!=="children"&&(vt(t[o])||vt(e[o]))){let r=Me.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[r]=t[o]}return i}var ac=class extends js{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gt}getBaseTargetFromProps(e,n){return Ft.has(n)?super.getBaseTargetFromProps(e,n)??Fr(n):e[n]}getDefaultValue(e){return Ft.has(e)?this.latestValues[e]??Fr(e):void 0}readValueFromInstance(e,n){if(Ft.has(n)){let i=Lm(n);return i&&i.default||0}if(Pu.includes(n)){let o=getComputedStyle(e)[n];if(typeof o=="string"&&o)return o.trim()}return n=yd.has(n)?n:eo(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return rc(e,n,i)}build(e,n,i){Gu(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){kC(e,n,i,o)}mount(e){this.isSVGTag=oc(e.tagName),super.mount(e)}};function S0(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var W3=[...sa].reverse(),XC=t=>t?.out===!0?t:t?.out;function T0(t){let e=s=>Promise.all(s.map(({animation:l,options:u})=>nA(t,l,u))),n=KC(),i=!0,o=!1;function r(s){let{props:l,parent:u,manuallyAnimateOnMount:c}=t,{initial:f}=l,m=i||o,d=[],g=(E=f)=>typeof E!="boolean"&&pn(t,Array.isArray(E)?E[0]:E,t.presenceContext?.custom)||void 0,v=new Map,x={},p=1/0,h=t;do h=h.props.inherit!==!1&&h.parent;while(h&&!h.isControllingVariants);let y=m&&XC(g(f??(h&&h.props.initial))?.transition);if(W3.forEach((E,C)=>{let T=n[E],S=l[E],M=h&&h.props[E],D=S!==void 0?S:ro(M)||M===!1?M:void 0,L=ro(D),P=E===s?T.isActive:null,Z=L&&S===void 0&&!(m&&c);if(T.protectedKeys={...x},!T.isActive&&P===null||!D&&!T.prevProp||oo(D)||typeof D=="boolean")return;if(P===!1&&(p=C),E==="exit"&&T.isActive&&P!==!0){x={...x,...T.prevResolvedValues};return}let I=ZC(T.prevProp,D),J=I||L&&(P&&!Z||C>p),tt=!1,K=Array.isArray(D)?D:[D],X={},_;if(P!==!1)for(let w of K){let{transition:V,transitionEnd:O,...z}=pn(t,w,Qm(t,E))||{};X={...X,...z,...O},_=XC(V)||_}let{prevResolvedValues:A}=T;for(let w in{...A,...X}){if(w in x)continue;let V=X[w],O=A[w],z=Array.isArray(V)&&Array.isArray(O)?!S0(V,O)||I:V!==O,G;if(z&&V==null)v.has(w)||v.set(w,T.prevOut);else if(z||V!==void 0&&v.has(w)){J=!0,G=v.get(w)||y,v.delete(w)&&(tt=!0),T.needsAnimating[w]=!0;let U=t.getValue(w);U&&(U.liveStyle=!1)}else T.protectedKeys[w]=!0;T.out[w]=G}if(T.prevProp=D,T.prevResolvedValues=X,T.prevOut=_,T.isActive&&(x={...x,...X}),J&&(!(Z&&I)||tt))for(let w of K){let V={type:E};if(typeof w=="string"&&m&&c&&u?.enteringChildren){let O=pn(u,w)?.transition?.delayChildren;V.delay=Zm(u.enteringChildren,t,O)}d.push({animation:w,options:V})}}),v.size){let E={},C=g(),T=C?.transition;v.forEach((S,M)=>{S&&(T={...T||t.getDefaultTransition(),[M]:S});let D=t.getValue(M);D&&(D.liveStyle=!0);let L=C&&!Array.isArray(f)?C[M]:void 0,P=t.getBaseTargetFromProps(l,M);E[M]=(L!==void 0?L:P!==void 0&&!vt(P)?P:t.initialValues[M]===void 0?t.baseTarget[M]:void 0)??null}),T&&(E.transition=T),d.push({animation:E})}let b=m&&t.blockInitialAnimation||i&&!c&&(l.initial===!1||l.initial===l.animate);return i=o=!1,!b&&d.length?e(d):Promise.resolve()}function a(s,l){if(n[s].isActive===l)return Promise.resolve();t.variantChildren?.forEach(c=>c.animationState?.setActive(s,l)),n[s].isActive=l;let u=r(s);for(let c in n)n[c].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:s=>{e=s(t)},getState:()=>n,reset:()=>{n=KC(),o=!0}}}function ZC(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!S0(e,t):!1}function KC(){let t={};for(let e of sa)t[e]={isActive:e==="animate",protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return t}var vd=B(ot(),1),lo=B(ot(),1);var QC=B(ot(),1),so=(0,QC.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var IC=B(ot(),1);function FC(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function $3(...t){return e=>{let n=!1,i=t.map(o=>{let r=FC(o,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let o=0;o<i.length;o++){let r=i[o];typeof r=="function"?r():FC(t[o],null)}}}}function JC(...t){return IC.useCallback($3(...t),t)}var WC=t=>{let{width:e,height:n}=t?.getBoundingClientRect()||{};return[e/t?.offsetWidth||1,n/t?.offsetHeight||1]},tw=t=>{let{left:e,top:n}=t.getBoundingClientRect(),i=t;for(;i=i.parentElement||i.parentNode?.host;){let{scrollLeft:a,scrollTop:s}=i;if(a||s){let[l,u]=WC(i);e+=a*l,n+=s*u}if(getComputedStyle(i).position==="fixed")break}let[o,r]=WC(t.offsetParent);return[e/o,n/r]},E0=class extends vd.Component{getSnapshotBeforeUpdate(e){let n=this.props.getElement();if(bi(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let i=n.offsetParent,o=bi(i)&&i.offsetWidth||0,r=bi(i)&&i.offsetHeight||0,a=getComputedStyle(n),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=a.direction,s.point=tw(n)}return null}componentDidUpdate(){}render(){return this.props.children}};function ew({children:t,isPresent:e,anchorX:n,anchorY:i,root:o,pop:r,popNode:a}){let s=(0,lo.useId)(),l=(0,lo.useRef)(null),u=(0,lo.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,lo.useContext)(so),f=r!==!1?t.props?.ref??t?.ref:void 0,m=JC(l,f),d=()=>l.current||a?.current?.current,g=v=>{let{width:x,height:p,top:h,left:y,right:b,bottom:E,direction:C}=u.current,T=C==="rtl",S=n==="left"?T?`right:${b}`:`left:${y}`:T?`left:${y}`:`right:${b}`,M=i==="bottom"?`bottom:${E}`:`top:${h}`;v?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${x}px!important;height:${p}px!important;${S}px!important;${M}px!important}`)};return(0,lo.useInsertionEffect)(()=>{let{width:v,height:x}=u.current,p=d();if(e||r===!1||!p||!v||!x)return;p.dataset.motionPopId=s;let h=p.ownerDocument,y=h.createElement("style");c&&(y.nonce=c);let b=o??h.head;b.appendChild(y),g(y.sheet);let E=0,C=0;return Si.setup(()=>{let[T,S]=tw(p);E=u.current.point[0]-T,C=u.current.point[1]-S}),Si.read(()=>{let{sheet:T}=y;if(!T||!E&&!C)return;let S=u.current;S.left+=E,S.right-=E,S.top+=C,S.bottom-=C,T.deleteRule(0),g(T)}),()=>{p.removeAttribute("data-motion-pop-id"),b.contains(y)&&b.removeChild(y)}},[e]),(0,$C.jsx)(E0,{isPresent:e,getElement:d,sizeRef:u,pop:r,children:r===!1?t:vd.cloneElement(t,{ref:m})})}var iw=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:r,mode:a,anchorX:s,anchorY:l,root:u})=>{let c=di(tz),f=(0,uo.useId)(),m=(0,uo.useRef)(),d=(0,uo.useRef)(n),g=(0,uo.useRef)(i);Fo(()=>{d.current=n,g.current=i});let v=!0,x=(0,uo.useMemo)(()=>(v=!1,{id:f,initial:e,isPresent:n,custom:o,onExitComplete:p=>{c.set(p,!0);for(let h of c.values())if(!h)return;i&&i()},register:(p,h)=>(c.set(p,!1),h&&h.parent?.presenceContext?.id!==f&&(m.current=h),()=>{c.delete(p),!d.current&&!c.size&&g.current?.()})}),[n,c,i]);return r&&v&&(x={...x}),(0,uo.useMemo)(()=>{c.forEach((p,h)=>c.set(h,!1))},[n]),nw.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),t=(0,A0.jsx)(ew,{pop:a==="popLayout",isPresent:n,anchorX:s,anchorY:l,root:u,popNode:m,children:t}),(0,A0.jsx)(Qi.Provider,{value:x,children:t})};function tz(){return new Map}var co=B(ot(),1);function sc(t=!0){let e=(0,co.useContext)(Qi);if(e===null)return[!0,null];let{isPresent:n,onExitComplete:i,register:o}=e,r=(0,co.useId)();(0,co.useEffect)(()=>{if(t)return o(r)},[t]);let a=(0,co.useCallback)(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}function C0(){return ez((0,co.useContext)(Qi))}function ez(t){return t===null?!0:t.isPresent}var xd=B(ot(),1),Ks=t=>t.key||"";function w0(t){let e=[];return xd.Children.forEach(t,n=>{(0,xd.isValidElement)(n)&&e.push(n)}),e}var Bn=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,f]=sc(a),m=(0,vn.useMemo)(()=>w0(t),[t]),d=a&&!c?[]:m.map(Ks),g=(0,vn.useRef)(!0),v=di(()=>new Map),x=(0,vn.useRef)(new Set),[p,h]=(0,vn.useState)(m),[y,b]=(0,vn.useState)(m);Fo(()=>{a&&!c&&!y.length&&f?.()},[c,a,y.length,f]);let E=(0,vn.useRef)();(0,vn.useEffect)(()=>()=>{let S=E.current;E.current=void 0,S?.()},[y]),Fo(()=>{g.current=!1;for(let S=0;S<y.length;S++){let M=Ks(y[S]);d.includes(M)?(v.delete(M),x.current.delete(M)):v.get(M)!==!0&&v.set(M,!1)}},[y,d.length,d.join("-")]);let C=[];if(m!==p){let S=[...m],M=0;for(let D of y){let L=d.indexOf(Ks(D));L===-1?(S.splice(M++,0,D),C.push(D)):M=L+C.length+1}return C.every(D=>v.get(Ks(D)))?S=m:r==="wait"&&(S=C),b(w0(S)),h(m),null}let{forceRender:T}=(0,vn.useContext)(vs);return(0,lc.jsx)(lc.Fragment,{children:y.map(S=>{let M=Ks(S),D=a&&!c?!1:m===y||d.includes(M),L=()=>{if(x.current.has(M))return;if(v.has(M))x.current.add(M),v.set(M,!0);else return;let P=!0;v.forEach(Z=>{Z||(P=!1)}),P&&(T?.(),h([]),a&&f?.(),E.current=i)};return(0,lc.jsx)(iw,{isPresent:D,initial:!g.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:r,root:u,onExitComplete:D?void 0:L,anchorX:s,anchorY:l,children:S},M)})})};var ow=B(ot(),1),bd=(0,ow.createContext)({strict:!1});var rw={animation:["variants",...sa],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"]},aw=!1;function nz(){if(aw)return;let t={};for(let e in rw)t[e]={isEnabled:n=>rw[e].some(i=>!!n[i])};Wu(t),aw=!0}function Sd(){return nz(),m0()}function sw(t){let e=Sd();for(let n in t)e[n]={...e[n],...t[n]};Wu(e)}var lw=B(yt(),1),Td=B(ot(),1);function M0({children:t,...e}){let n=(0,Td.useContext)(so);e={...n,...e},e.transition=$r(e.transition,n.transition),e.isStatic=di(()=>e.isStatic);let i=(0,Td.useMemo)(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations,e.isValidProp]);return(0,lw.jsx)(so.Provider,{value:i,children:t})}var Md=B(yt(),1);var Is=B(ot(),1);var uw=B(ot(),1),ar=(0,uw.createContext)({});var Ed=B(ot(),1);function cw(t,e){if(ir(t)){let{initial:n,animate:i}=t;return{initial:n===!1||ro(n)?n:void 0,animate:ro(i)?i:void 0}}return t.inherit!==!1?e:{}}function mw(t){let{initial:e,animate:n}=cw(t,(0,Ed.useContext)(ar));return(0,Ed.useMemo)(()=>({initial:e,animate:n}),[fw(e),fw(n)])}function fw(t){return Array.isArray(t)?t.join(" "):t}var Fs=B(ot(),1);var dw=B(ot(),1);var Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function D0(t,e,n){for(let i in e)!vt(e[i])&&!$u(i,n)&&(t[i]=e[i])}function iz({transformTemplate:t},e){return(0,dw.useMemo)(()=>{let n=Zs();return ta(n,e,t),Object.assign({},n.vars,n.style)},[e])}function oz(t,e){let n=t.style||{},i={};return D0(i,n,t),Object.assign(i,iz(t,e)),i}function pw(t,e){let n={},i=oz(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}var hw=B(ot(),1);var Ad=()=>({...Zs(),attrs:{}});function gw(t,e,n,i){let o=(0,hw.useMemo)(()=>{let r=Ad();return Gu(r,e,oc(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let r={};return D0(r,t.style,t),{...o,style:{...r,...o.style}}}return o}var rz=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","tap","propagate","ignoreStrict","viewport","pinch"]);function uc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rz.has(t)}function az(t,e){return t.startsWith("on")?!uc(t):e?.(t)??!uc(t)}function yw(t,e,n,i){let o={};for(let r in t)r==="values"&&typeof t.values=="object"||vt(t[r])||(az(r,i)||n===!0&&uc(r)||!e&&!uc(r)||t.draggable&&r.startsWith("onDrag"))&&(o[r]=t[r]);return o}var vw=["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 Qs(t){return typeof t!="string"||t.includes("-")?!1:!!(vw.indexOf(t)>-1||/[A-Z]/u.test(t))}function xw(t,e,n,{latestValues:i},o,r=!1,a,s){let u=(a??Qs(t)?gw:pw)(e,i,o,t),c=yw(e,typeof t=="string",r,s),f=t!==Fs.Fragment?{...c,...u,ref:n}:{},{children:m}=e,d=(0,Fs.useMemo)(()=>vt(m)?m.get():m,[m]);return(0,Fs.createElement)(t,{...f,children:d})}var R0=B(ot(),1);function sz({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:lz(n,i,o,t),renderState:e()}}function lz(t,e,n,i){let o={},r=i(t,{});for(let m in r)o[m]=ia(r[m]);let{initial:a,animate:s}=t,l=ir(t),u=Fu(t);e&&u&&!l&&t.inherit!==!1&&(a===void 0&&(a=e.initial),s===void 0&&(s=e.animate));let c=n?n.initial===!1:!1;c=c||a===!1;let f=c?s:a;if(f&&typeof f!="boolean"&&!oo(f)){let m=Array.isArray(f)?f:[f];for(let d=0;d<m.length;d++){let g=Lu(t,m[d]);if(g){let{transitionEnd:v,transition:x,...p}=g;for(let h in p){let y=p[h];if(Array.isArray(y)){let b=c?y.length-1:0;y=y[b]}y!==null&&(o[h]=y)}for(let h in v)o[h]=v[h]}}}return o}var Cd=t=>(e,n)=>{let i=(0,R0.useContext)(ar),o=(0,R0.useContext)(Qi),r=()=>sz(t,e,i,o);return n?r():di(r)};var bw=Cd({scrapeMotionValuesFromProps:ua,createRenderState:Zs});var Sw=Cd({scrapeMotionValuesFromProps:rc,createRenderState:Ad});var Tw=Symbol.for("motionComponentSymbol");var fa=B(ot(),1);function Ew(t,e,n){let i=(0,fa.useRef)(n);(0,fa.useInsertionEffect)(()=>{i.current=n});let o=(0,fa.useRef)(null);return(0,fa.useCallback)(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());let a=i.current;if(typeof a=="function")if(r){let s=a(r);typeof s=="function"&&(o.current=s)}else o.current?(o.current(),o.current=null):a(r);else a&&(a.current=r)},[e])}var tn=B(ot(),1);var Aw=B(ot(),1),wd=(0,Aw.createContext)({});function Cw(t,e,n,i,o,r){let{visualElement:a}=(0,tn.useContext)(ar),s=(0,tn.useContext)(bd),l=(0,tn.useContext)(Qi),u=(0,tn.useContext)(so),c=u.reducedMotion,f=u.skipAnimations,m=(0,tn.useRef)(null),d=(0,tn.useRef)(!1);i=i||s.renderer,!m.current&&i&&(m.current=i(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:r}),d.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let g=m.current,v=(0,tn.useContext)(wd);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&o.create(g,n,v),(0,tn.useInsertionEffect)(()=>{g&&g.props!==n&&g.update(n,l)});let x=n[Bu],p=(0,tn.useRef)(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Fo(()=>{!d.current||!g||(g.animationState?.animateChanges(),g.enteringChildren=void 0)},[]),Fo(()=>{d.current=!0,g&&(window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),p.current&&g.animationState&&g.animationState.animateChanges())}),(0,tn.useEffect)(()=>{g&&(!p.current&&g.animationState&&g.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),p.current=!1),g.enteringChildren=void 0)}),g}function Dd(t,{forwardMotionProps:e=!1,type:n}={},i,o){i&&sw(i);let r=n?n==="svg":Qs(t),a=r?Sw:bw;function s(u,c){let f,m=uz(u);di(()=>!!aa.current?.sharedNodes.get(m)?.lead&&u.initial)&&(u={...u,initial:!1});let d={...(0,Is.useContext)(so),...u,layoutId:m},{isStatic:g,isValidProp:v}=d,x=mw(u),p=a(u,g);if(!g&&typeof window<"u"){cz(d,i);let h=fz(d);x.visualElement=Cw(t,p,d,o,h.ProjectionNode,r),(h.isEnabled||x.visualElement?.projection?.options.layoutId)&&(f=h.MeasureLayout)}return(0,Md.jsxs)(ar.Provider,{value:x,children:[f&&x.visualElement?(0,Md.jsx)(f,{visualElement:x.visualElement,...d}):null,xw(t,u,Ew(p,x.visualElement,c),p,g,e,r,v)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let l=(0,Is.forwardRef)(s);return l[Tw]=t,l}function uz({layoutId:t}){let e=(0,Is.useContext)(vs).id;return e&&t!==void 0?e+"-"+t:t}function cz(t,e){let n=(0,Is.useContext)(bd).strict}function fz(t){let e=Sd(),{drag:n,layout:i}=e;if(!n&&!i)return{};let o={...n,...i};return{MeasureLayout:o.MeasureLayout,isEnabled:n?.isEnabled(t)||i?.isEnabled(t),ProjectionNode:o.ProjectionNode}}function ww(t,e){if(typeof Proxy>"u")return Dd;let n=new Map,i=(r,a)=>Dd(r,a,t,e),o=(r,a)=>i(r,a);return new Proxy(o,{get:(r,a)=>a==="create"?i:(n.has(a)||n.set(a,Dd(a,void 0,t,e)),n.get(a))})}var Mw=B(ot(),1);var Dw=(t,e)=>e.isSVG??Qs(t)?new ac(e):new tc(e,{allowProjection:t!==Mw.Fragment});var Rd=class extends ue{constructor(e){super(e),e.animationState||(e.animationState=T0(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();oo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var mz=0,Od=class extends ue{constructor(){super(...arguments),this.id=mz++}update(){let{presenceContext:e,animationState:n}=this.node;if(!e||!n)return;let{isPresent:i,onExitComplete:o}=e;if(i===!this.exit)return;if(i){if(this.exit===!0){let{initial:a}=this.node.getProps();if(a&&!Array.isArray(a)){let{transition:s,transitionEnd:l,...u}=pn(this.node,a)||{};for(let c in u)this.node.getValue(c)?.jump(u[c])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive("exit",!1);this.exit=void 0;return}let r=this.exit=n.setActive("exit",!0);o&&r.then(()=>{this.exit===r&&(this.exit=!0,o(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}};var Rw={animation:{Feature:Rd},exit:{Feature:Od}};var Nd=class extends ue{constructor(e){super(e),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new nc(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}update(){let{dragControls:e,drag:n}=this.node.getProps(),{dragControls:i,drag:o}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),o&&!n&&this.controls.stop(void 0,void 0,o)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var O0=t=>(e,n)=>{t&&$.update(()=>t(e,n),!1,!0)},Vd=class extends ue{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(e){this.session=new ca(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:O0(e),onStart:O0(n),onMove:O0(i),onEnd:(r,a)=>{delete this.session,o&&$.postRender(()=>o(r,a))}}}mount(){this.removePointerDownListener=ao(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}};var Vw=B(yt(),1);var cc=B(ot(),1);var N0=!1,Ow=({layout:t,layoutDependency:e,layoutAnchor:n})=>({layout:t,layoutDependency:e,layoutAnchor:n,animationType:typeof t=="string"?t:"both"}),Nw=(t,e)=>{let{snapshot:n}=t,i=t.getStack();i?.remove(t);let o=i?.lead;if(i?.prevLead===t&&o.resumeFrom===t&&(o.resumeFrom=o.currentAnimation=t.resumingFrom=void 0),t.options.layoutId=e,!e){t.needsShow=!0;return}return t.root.registerSharedNode(e,t),()=>{let{resumeFrom:r}=t;r?.isPresent!==!1&&t.getStack().members.includes(r)&&(r.hide(),t.resumeFrom=void 0,t.snapshot=n)}},V0=class extends cc.Component{componentDidMount(){let{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;r&&(n.group?.add(r),o&&i?.register?.(r),N0&&r.root.didUpdate(),r.options.layoutId!==o&&Nw(r,o)?.(),r.addEventListener("animationComplete",()=>this.safeToRemove()),r.setOptions({...r.options,...Ow(this.props),onExitComplete:()=>this.safeToRemove()})),ra.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:n,layoutId:i,visualElement:o,drag:r,isPresent:a}=this.props,{projection:s}=o;return s&&(s.isPresent=a,this.takeOver=e.layoutId!==i?(s.willUpdate(),Nw(s,i)):void 0,s.setOptions({...s.options,...Ow(this.props)}),N0=!0,r||e.layoutDependency!==n||n===void 0||e.isPresent!==a?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||$.postRender(()=>{s.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),Si.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;N0=!0,o&&(o.scheduleCheckAfterUnmount(),n.group?.remove(o),i?.deregister?.(o))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function zd(t){let[e,n]=sc(),i=(0,cc.useContext)(vs);return(0,Vw.jsx)(V0,{...t,layoutGroup:i,switchLayoutGroup:(0,cc.useContext)(wd),isPresent:e,safeToRemove:n})}var zw={pan:{Feature:Vd},drag:{Feature:Nd,ProjectionNode:Zu,MeasureLayout:zd}};function Ld(t,e,n,i,o){let{props:r}=t,a="while"+n;!o&&t.animationState&&r[a]&&t.animationState.setActive(a,i==="Start");let s=r["on"+n+i];s&&$.postRender(()=>s(e,Ys(e)))}var _d=class extends ue{mount(){let{current:e}=this.node;e&&(this.unmount=y0(e,(n,i)=>(Ld(this.node,i,"Hover","Start"),o=>Ld(this.node,o,"Hover","End"))))}unmount(){}};var Bd=class extends ue{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function z0(t,e,n,i){t.current instanceof HTMLButtonElement&&t.current.disabled||Ld(t,e,"Tap",n,i)}var Ud=class extends ue{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=b0(e,(n,i)=>(z0(this.node,i,"Start"),{onComplete:(o,{success:r})=>z0(this.node,o,r?"":"Cancel"),onRepeat:()=>z0(this.node,i,"",!0)}),this.options))}update(){let{options:e,node:n}=this,{globalTapTarget:i,propagate:o,tap:r}=n.props;for(let a in e)delete e[a];Object.assign(e,r,{useGlobalTarget:i,stopPropagation:o?.tap===!1})}unmount(){}};var _0=new WeakMap,L0=new WeakMap,dz=t=>{let e=_0.get(t.target);e&&e(t)},pz=t=>{t.forEach(dz)};function hz({root:t,...e}){let n=t||document;L0.has(n)||L0.set(n,{});let i=L0.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(pz,{root:t,...e})),i[o]}function Lw(t,e,n){let i=hz(e);return _0.set(t,n),i.observe(t),()=>{_0.delete(t),i.unobserve(t)}}var gz={some:0,all:1},Hd=class extends ue{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:r}=e,a={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:gz[o]},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:f}=this.node.getProps(),m=u?c:f;m&&m(l)};this.stopObserver=Lw(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:n}=this.node;["amount","margin","root"].some(yz(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function yz({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}var _w={inView:{Feature:Hd},tap:{Feature:Ud},focus:{Feature:Bd},hover:{Feature:_d}};var Bw={layout:{ProjectionNode:Zu,MeasureLayout:zd}};var Uw=Object.assign({},Rw,_w,zw,Bw);var B0=ww(Uw,Dw);var Hw=B(ot(),1);function ke(){!la.current&&Iu();let[t]=(0,Hw.useState)(or.current);return t}function fc(t){return typeof t=="object"&&!Array.isArray(t)}function Pd(t,e,n,i){return t==null?[]:typeof t=="string"&&fc(e)?to(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(o=>o!=null):[t]}function Pw(t,e,n){return t*(e+1)+n*e}function U0(t,e){if(e.has(t))return e.get(t);let[,n,i]=t.match(/^(.+?)([+-][\d.]+)$/)||[];return e.has(n)?Math.max(0,e.get(n)+parseFloat(i)):void 0}function Gw(t,e,n,i){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):U0(e,i)??t}function vz(t,e,n){for(let i=0;i<t.length;i++){let o=t[i];o.at>e&&o.at<n&&($e(t,o),i--)}}function jw(t,e,n,i,o,r){vz(t,o,r);for(let a=0;a<e.length;a++)t.push({value:e[a],at:ut(o,r,i[a]),easing:gu(n,a)})}function Yw(t,e,n=0){let i=e+1+e*n;for(let o=0;o<t.length;o++)t[o]=t[o]/i}function qw(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var xz="easeInOut",bz=20;function Kw(t,{defaultTransition:e={},...n}={},i,o,r){let a=e.duration||.3,s=new Map,l=new Map,u={},c=new Map,f=0,m=0,d=0,g=(p,h)=>{let y=h,b=E=>typeof E=="number"?h+E:Gw(m,E,f,c);for(let E=0;E<p.length;E++){let C=p[E];if(typeof C=="string"){c.set(C,m);continue}else if(!Array.isArray(C)){let P=C.at===void 0?m:b(C.at);"sequence"in C?(f=m=P,m=g(C.sequence,P),f=P,y=Math.max(y,m)):c.set(C.name,P);continue}let[T,S,M={}]=C;M.at!==void 0&&(m=b(M.at));let D=0,L=(P,Z,I,J=0,tt=0)=>{let K=Sz(P),{delay:X=0,times:_=vi(K),type:A=e.type||"keyframes",repeat:w,repeatType:V,repeatDelay:O=0,...z}=Z,{ease:G=e.ease||"easeOut",duration:U}=Z;I.mixer||(I.mixer=Z.mixer);let it=typeof X=="function"?X(J,tt):X,et=K.length,j=Jr(A)?A:o?.[A||"keyframes"];if(et<=2&&j){let rt=100;if(et===2&&Az(K)){let Y=K[1]-K[0];rt=Math.abs(Y)}let F={...e,...z};U!==void 0&&(F.duration=Bt(U));let Yt=Eu(F,rt,j);G=Yt.ease,U=Yt.duration}U??(U=a);let st=m+it;_.length===1&&_[0]===0&&(_[1]=1);let ct=_.length-K.length;if(ct>0&&Au(_,ct),K.length===1&&K.unshift(null),w&&typeof process<"u",w&&w<bz){let rt=U>0?O/U:0;U=Pw(U,w,O);let F=[...K],Yt=[..._];G=Array.isArray(G)?[...G]:[G];let Y=[...G],Jt=V==="reverse"||V==="mirror",Dt=F,Le=Y;Jt&&(Dt=[...F].reverse(),V==="reverse"&&(Le=[...Y].reverse().map(ve=>typeof ve=="function"?kr(ve):ve)));for(let ve=0;ve<w;ve++){let In=Jt&&ve%2===0,Ni=In?Dt:F,fe=In?Le:Y,xe=(ve+1)*(1+rt);rt>0&&(K.push(K[K.length-1]),_.push(xe),G.push("linear")),K.push(...Ni);for(let sl=0;sl<Ni.length;sl++)_.push(Yt[sl]+xe),G.push(sl===0?"linear":gu(fe,sl-1))}Yw(_,w,rt)}let Q=st+U;jw(I,K,G,_,st,Q),D=Math.max(it+U,D),d=Math.max(Q,d)};if(vt(T)){let P=kw(T,l);L(S,M,Xw("default",P))}else{let P=Pd(T,S,i,u),Z=P.length;for(let I=0;I<Z;I++){S=S,M=M;let J=P[I],tt=kw(J,l);for(let K in S)L(S[K],Tz(M,K),Xw(K,tt),I,Z)}}f=m,m+=D,y=Math.max(y,m)}return y};g(t,0),r&&(r.duration=d,r.labels=c);let{type:v,...x}=e;return l.forEach((p,h)=>{for(let y in p){let b=p[y];b.sort(qw);let E=[],C=[],T=[];for(let M=0;M<b.length;M++){let{at:D,value:L,easing:P}=b[M];E.push(L),C.push(Ge(0,d,D)),T.push(P||"easeOut")}C[0]!==0&&(C.unshift(0),E.unshift(E[0]),T.unshift(xz)),C[C.length-1]!==1&&(C.push(1),E.push(null)),s.has(h)||s.set(h,{keyframes:{},transition:{}});let S=s.get(h);S.keyframes[y]=E,S.transition[y]={...x,duration:d,ease:T,times:C,mixer:b.mixer||e.mixer,...n}}}),s}function kw(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Xw(t,e){return e[t]||(e[t]=[]),e[t]}function Sz(t){return Array.isArray(t)?t:[t]}function Tz(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var Ez=t=>typeof t=="number",Az=t=>t.every(Ez);function Cz(t,e){return vt(t)||typeof t=="number"||typeof t=="string"&&!fc(e)}function Gd(t,e,n,i){let o=[];if(Cz(t,e))o.push(ea(t,fc(e)&&e.default||e,n&&(n.default||n)));else{if(t==null)return o;let r=Pd(t,e,i),a=r.length;for(let s=0;s<a;s++){let l=r[s],u={...n};"delay"in u&&typeof u.delay=="function"&&(u.delay=u.delay(s,a)),l instanceof Element?o.push(...n0(l,e,u,Qu.get(l))):o.push(...Hu(Xy(l)??i0,l,e,u))}}return o}function Zw(t,e,n,i){let o=[],r=t.map(l=>{if(Array.isArray(l)&&typeof l[0]=="function"){let u=l[0],c=ge(0);return c.on("change",u),l.length===1?[c,[0,1]]:l.length===2?[c,[0,1],l[1]]:[c,l[1],l[2]]}return l}),a=Kw(r,e,n,{spring:Zr},i),s=e?.reduceMotion??e?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:l,transition:u},c)=>{o.push(...Gd(c,l,{...u,reduceMotion:s}))}),o}var Qw=0;function Js({repeat:t=0,repeatDelay:e=0,repeatType:n="loop",delay:i=0},o,r,a){let s=o+e,l=a===void 0;if(l){let u=Math.max(0,r-i);a=s&&u>0?Math.min(t,Math.ceil(u/s-1e-9)-1):0,r=Math.min(u-a*s,o)}return n!=="loop"&&a%2&&(r=o-r),[a,l?r:i+a*s+r]}function wz(t,e){let n=[...t],i=typeof n[0]=="function"?Math.max(1,n.length-1):2;return n[i]={...n[i],at:e},n}var Fw=(t,e)=>e===void 0?t:{name:t,at:e};function Iw(t){t.pause(),t.time=0,t.stop()}var mc=class t{constructor(e=[],n={},i){this.options=n,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=qe.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=n.autoplay===!1,this.newFinished(),e.forEach(o=>this.add(o)),i?(this.isDirty=!1,this.isWrapped=!0,this.group=new _s(i),this.watch()):(this.invalidate(),this.flush())}add(e,n){return e instanceof t&&e.adopt(this),this.push({item:e,at:n})}call(e,n){return this.push({item:e,at:n,marker:{name:"_m"+Qw++,time:0,callback:e}})}addPause(e,n){return this.push({item:n||{},at:e,marker:{name:"_m"+Qw++,time:0,callback:n,pause:!0}})}move(e,n){return this.entries.forEach(i=>{i.item===e&&(i.at=n)}),this.invalidate()}remove(e){return e instanceof t&&(e.parent=void 0),this.entries=this.entries.filter(n=>n.item!==e),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let n=this.resolve(e),i=this.iterationDuration,o=this.time,[r]=Js(this.options,i,o),a=Js(this.options,i,n,r)[1],s=Math.abs(this.speed);return this.speed=a<o?-s:s,this.stopAt=n,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??"idle"}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,n){return this.finished.then(e,n)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&(Iw(this.group),this.group=void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let n=this.group,i=0;n&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),n.cancel()):(i=n.animations.length?n.time:0,Iw(n)),this.isRebuilding=!1);let{defaultTransition:o,onComplete:r,onUpdate:a,onRepeat:s,onReverseComplete:l,autoplay:u,scope:c,...f}=this.options,m={};c?.reduceMotion!==void 0&&(m.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(m.skipAnimations=c.skipAnimations),Object.assign(m,f);let d=new Map,g={},v=qe.current;qe.current=this.motionScope;let x;try{x=Zw(this.toSequence(d),{defaultTransition:o,...m},c,g)}finally{qe.current=v}let p=g.labels,h=m.duration??g.duration,y=g.duration?h/g.duration:1;if(p.forEach((D,L)=>p.set(L,D*y)),this.markers=[],d.forEach((D,L)=>{D.time=p.get(L),p.delete(L),h=Math.max(h,D.time),this.markers.push(D)}),this.markers.sort((D,L)=>D.time-L.time),this.labels=p,this.totalDuration=h,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||s){let D=this.clock=ge(0);D.on("change",L=>D===this.clock&&this.onClock(L)),x.unshift(this.clockAnimation=ea(D,[0,h],{...m,duration:h,ease:"linear"}))}let b=this.group=new _s(x),{delay:E=0,repeat:C=0,repeatDelay:T=0}=this.options,[S,M]=Js(this.options,e,i);i>E&&(i=Js(this.options,h,Math.min(M,h),S)[1]),this.isDone&&i<E+(C+1)*(h+T)-T&&this.newFinished(),this.scrollTimeline?this.detachScroll=b.attachTimeline(this.scrollTimeline):(b.speed=this.playbackSpeed,this.isPaused&&b.pause(),i&&(b.time=i)),this.repeatIndex=this.currentRepeat(),this.prevTime=i||-1,this.watch()}toSequence(e){return this.entries.map(({item:n,at:i,marker:o})=>o?(e.set(o.name,o),Fw(o.name,i)):n instanceof t?{sequence:n.toSequence(e),at:i}:typeof n=="string"?Fw(n,i):i===void 0?n:Array.isArray(n)?wz(n,i):{...n,at:i})}resolve(e){return this.flush(),typeof e=="number"?e:U0(e,this.labels)??this.time}currentRepeat(){return Js(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let n=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:i,onRepeat:o,repeatType:r="loop"}=this.options;i?.(e);let a=this.currentRepeat(),s=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let l=this.speed>0==(r==="loop"||!(this.repeatIndex%2)),u=l?this.totalDuration:0;if(this.cross(n,u))return;this.repeatIndex+=s,o?.(),n=r==="loop"?l?-1:1/0:u}this.cross(n,e)}cross(e,n){if(e===n)return;let i=n>e,o=a=>i?a>e&&a<=n:a<e&&a>=n,r=i?this.markers:[...this.markers].reverse();for(let a of r)if(o(a.time)&&(a.callback?.(i?1:-1),a.pause))return this.pauseAt(a.time);if(this.stopAt!==void 0&&o(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=Js(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:n,onReverseComplete:i}=this.options,o=this.speed<0&&i||n,r=this.resolveFinished;o?.(),r()})}newFinished(){this.isDone=!1,this.finished=new Promise(i=>{this.resolveFinished=i});let{scope:e}=this.options,n=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{n?.(),e&&$e(e.animations,this)})}};function Mz(t){return Array.isArray(t)&&t.some(e=>Array.isArray(e)||e?.sequence)}function Jw(t={}){let{scope:e,reduceMotion:n,skipAnimations:i}=t;function o(r,a,s){let l=qe.current?.transition,u={};n!==void 0&&(u.reduceMotion=n),i!==void 0&&(u.skipAnimations=i);let c;if(Mz(r)){let f={...u,...a,scope:e};l&&(f.defaultTransition={...l,...f.defaultTransition}),f.reduceMotion=a?.reduceMotion??f.defaultTransition?.reduceMotion??n,c=new mc(r,f)}else{let{onComplete:f,...m}=s||{},d={...u,...l,...m},{onUpdate:g}=m,v=typeof r=="number"||typeof r=="string"&&(typeof a=="string"||Array.isArray(a))?[g||(()=>{}),Array.isArray(a)?a:[r,a],{...d,onUpdate:void 0}]:[r,a,d];c=new mc([v],{...u,onComplete:f,scope:e},Gd(r,a,d,e))}return c}return o}var H0=Object.assign(Jw(),{addEffect:ky,removeEffect:Wm});var Ws=B(ot(),1);var Dz={some:0,all:1};function Ww(t,e,{root:n,margin:i,amount:o="some"}={}){let r=to(t);e=$i(e);let a=new WeakMap,s=u=>{u.forEach(c=>{let f=a.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){let m=e(c.target,c);typeof m=="function"?a.set(c.target,m):l.unobserve(c.target)}else typeof f=="function"&&(f(c),a.delete(c.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:i,threshold:typeof o=="number"?o:Dz[o]});return r.forEach(u=>l.observe(u)),Wi(()=>l.disconnect())}function dc(t,{root:e,margin:n,amount:i,once:o=!1,initial:r=!1}={}){let[a,s]=(0,Ws.useState)(r),[l,u]=(0,Ws.useState)({});return(0,Ws.useEffect)(()=>{let c=l.current=t.current;if(!c||o&&a)return;let f=()=>(s(!0),o?void 0:()=>s(!1)),m={root:e&&e.current||void 0,margin:n,amount:i};return Ww(c,f,m)},[e,t,n,o,i,l]),(0,Ws.useEffect)(()=>{t.current!==l.current&&(o||s(!1),u({}))}),a}var jt=B0;function $w(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=$w(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function tM(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=$w(t))&&(i&&(i+=" "),i+=e);return i}var Oz=(t,e)=>{let n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},Nz=(t,e)=>({classGroupId:t,validator:e}),aM=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n});var eM=[],Vz="arbitrary..",zz=t=>{let e=_z(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Lz(a);let s=a.split("-"),l=s[0]===""&&s.length>1?1:0;return sM(s,l,e)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=i[a],u=n[a];return l?u?Oz(u,l):l:u||eM}return n[a]||eM}}},sM=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;let o=t[e],r=n.nextPart.get(o);if(r){let u=sM(t,e+1,r);if(u)return u}let a=n.validators;if(a===null)return;let s=e===0?t.join("-"):t.slice(e).join("-"),l=a.length;for(let u=0;u<l;u++){let c=a[u];if(c.validator(s))return c.classGroupId}},Lz=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?Vz+i:void 0})(),_z=t=>{let{theme:e,classGroups:n}=t;return Bz(n,e)},Bz=(t,e)=>{let n=aM();for(let i in t){let o=t[i];G0(o,n,i,e)}return n},G0=(t,e,n,i)=>{let o=t.length;for(let r=0;r<o;r++){let a=t[r];Uz(a,e,n,i)}},Uz=(t,e,n,i)=>{if(typeof t=="string"){Hz(t,e,n);return}if(typeof t=="function"){Pz(t,e,n,i);return}Gz(t,e,n,i)},Hz=(t,e,n)=>{let i=t===""?e:lM(e,t);i.classGroupId=n},Pz=(t,e,n,i)=>{if(jz(t)){G0(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Nz(n,t))},Gz=(t,e,n,i)=>{let o=Object.entries(t),r=o.length;for(let a=0;a<r;a++){let[s,l]=o[a];G0(l,lM(e,s),n,i)}},lM=(t,e)=>{let n=t,i=e.split("-"),o=i.length;for(let r=0;r<o;r++){let a=i[r],s=n.nextPart.get(a);s||(s=aM(),n.nextPart.set(a,s)),n=s}return n},jz=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Yz=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null),o=(r,a)=>{n[r]=a,e++,e>t&&(e=0,i=n,n=Object.create(null))};return{get(r){let a=n[r];if(a!==void 0)return a;if((a=i[r])!==void 0)return o(r,a),a},set(r,a){r in n?n[r]=a:o(r,a)}}};var qz=[],nM=(t,e,n,i,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:o}),kz=t=>{let{prefix:e,experimentalParseClassName:n}=t,i=o=>{let r=[],a=0,s=0,l=0,u,c=o.length;for(let v=0;v<c;v++){let x=o[v];if(a===0&&s===0){if(x===":"){r.push(o.slice(l,v)),l=v+1;continue}if(x==="/"){u=v;continue}}x==="["?a++:x==="]"?a--:x==="("?s++:x===")"&&s--}let f=r.length===0?o:o.slice(l),m=f,d=!1;f.endsWith("!")?(m=f.slice(0,-1),d=!0):f.startsWith("!")&&(m=f.slice(1),d=!0);let g=u&&u>l?u-l:void 0;return nM(r,d,m,g)};if(e){let o=e+":",r=i;i=a=>a.startsWith(o)?r(a.slice(o.length)):nM(qz,!1,a,void 0,!0)}if(n){let o=i;i=r=>n({className:r,parseClassName:o})}return i},Xz=t=>{let e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.set(n,1e6+i)}),n=>{let i=[],o=[];for(let r=0;r<n.length;r++){let a=n[r],s=a[0]==="[",l=e.has(a);s||l?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(a)):o.push(a)}return o.length>0&&(o.sort(),i.push(...o)),i}},Kz=t=>({cache:Yz(t.cacheSize),parseClassName:kz(t),sortModifiers:Xz(t),postfixLookupClassGroupIds:Zz(t),...zz(t)}),Zz=t=>{let e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)e[n[i]]=!0;return e},Qz=/\s+/,Fz=(t,e)=>{let{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:a}=e,s=[],l=t.trim().split(Qz),u="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:m,modifiers:d,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:x}=n(f);if(m){u=f+(u.length>0?" "+u:u);continue}let p=!!x,h;if(p){let T=v.substring(0,x);h=i(T);let S=h&&a[h]?i(v):void 0;S&&S!==h&&(h=S,p=!1)}else h=i(v);if(!h){if(!p){u=f+(u.length>0?" "+u:u);continue}if(h=i(v),!h){u=f+(u.length>0?" "+u:u);continue}p=!1}let y=d.length===0?"":d.length===1?d[0]:r(d).join(":"),b=g?y+"!":y,E=b+h;if(s.indexOf(E)>-1)continue;s.push(E);let C=o(h,p);for(let T=0;T<C.length;++T){let S=C[T];s.push(b+S)}u=f+(u.length>0?" "+u:u)}return u},Iz=(...t)=>{let e=0,n,i,o="";for(;e<t.length;)(n=t[e++])&&(i=uM(n))&&(o&&(o+=" "),o+=i);return o},uM=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=uM(t[i]))&&(n&&(n+=" "),n+=e);return n},Jz=(t,...e)=>{let n,i,o,r,a=l=>{let u=e.reduce((c,f)=>f(c),t());return n=Kz(u),i=n.cache.get,o=n.cache.set,r=s,s(l)},s=l=>{let u=i(l);if(u)return u;let c=Fz(l,n);return o(l,c),c};return r=a,(...l)=>r(Iz(...l))},Wz=[],ce=t=>{let e=n=>n[t]||Wz;return e.isThemeGetter=!0,e.themeKey=t,e},cM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eL=/\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$/,nL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,iL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sr=t=>$z.test(t),dt=t=>!!t&&!Number.isNaN(Number(t)),Ti=t=>!!t&&Number.isInteger(Number(t)),P0=t=>t.endsWith("%")&&dt(t.slice(0,-1)),fo=t=>tL.test(t),mM=()=>!0,rL=t=>eL.test(t)&&!nL.test(t),j0=()=>!1,aL=t=>iL.test(t),sL=t=>oL.test(t),lL=t=>!q(t)&&!k(t),uL=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),cL=t=>lr(t,hM,j0),q=t=>cM.test(t),ma=t=>lr(t,gM,rL),iM=t=>lr(t,vL,dt),fL=t=>lr(t,vM,mM),mL=t=>lr(t,yM,j0),oM=t=>lr(t,dM,j0),dL=t=>lr(t,pM,sL),jd=t=>lr(t,xM,aL),k=t=>fM.test(t),pc=t=>da(t,gM),pL=t=>da(t,yM),rM=t=>da(t,dM),hL=t=>da(t,hM),gL=t=>da(t,pM),Yd=t=>da(t,xM,!0),yL=t=>da(t,vM,!0),lr=(t,e,n)=>{let i=cM.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},da=(t,e,n=!1)=>{let i=fM.exec(t);return i?i[1]?e(i[1]):n:!1},dM=t=>t==="position"||t==="percentage",pM=t=>t==="image"||t==="url",hM=t=>t==="length"||t==="size"||t==="bg-size",gM=t=>t==="length",vL=t=>t==="number",yM=t=>t==="family-name",vM=t=>t==="number"||t==="weight",xM=t=>t==="shadow";var xL=()=>{let t=ce("color"),e=ce("font"),n=ce("text"),i=ce("font-weight"),o=ce("tracking"),r=ce("leading"),a=ce("breakpoint"),s=ce("container"),l=ce("spacing"),u=ce("radius"),c=ce("shadow"),f=ce("inset-shadow"),m=ce("text-shadow"),d=ce("drop-shadow"),g=ce("blur"),v=ce("perspective"),x=ce("aspect"),p=ce("ease"),h=ce("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...b(),k,q],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[k,q,l],M=()=>[sr,"full","auto",...S()],D=()=>[Ti,"none","subgrid",k,q],L=()=>["auto",{span:["full",Ti,k,q]},Ti,k,q],P=()=>[Ti,"auto",k,q],Z=()=>["auto","min","max","fr",k,q],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...S()],K=()=>[sr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],X=()=>[s,sr,"screen","full","dvw","lvw","svw","min","max","fit",...S()],_=()=>[sr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],A=()=>[t,k,q],w=()=>[...b(),rM,oM,{position:[k,q]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",hL,cL,{size:[k,q]}],z=()=>[P0,pc,ma],G=()=>["","none","full",u,k,q],U=()=>["",dt,pc,ma],it=()=>["solid","dashed","dotted","double"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[dt,P0,rM,oM],st=()=>["","none",g,k,q],ct=()=>["none",dt,k,q],Q=()=>["none",dt,k,q],rt=()=>[dt,k,q],F=()=>[sr,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fo],breakpoint:[fo],color:[mM],container:[fo],"drop-shadow":[fo],ease:["in","out","in-out"],font:[lL],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fo],shadow:[fo],spacing:["px",dt],text:[fo],"text-shadow":[fo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sr,q,k,x]}],container:["container"],"container-type":[{"@container":["","normal","size",k,q]}],"container-named":[uL],columns:[{columns:[dt,"auto",q,k,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:E()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Ti,"auto",k,q]}],basis:[{basis:[sr,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[dt,sr,"auto","initial","none",q]}],grow:[{grow:["",dt,k,q]}],shrink:[{shrink:["",dt,k,q]}],order:[{order:[Ti,"first","last","none",k,q]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mbs:[{mbs:tt()}],mbe:[{mbe:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh","none",...K()]}],"font-size":[{text:["base",n,pc,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,yL,fL]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P0,q]}],"font-family":[{font:[pL,mL,e]}],"font-features":[{"font-features":[q]}],"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:[o,k,q]}],"line-clamp":[{"line-clamp":[dt,"none",k,iM]}],leading:[{leading:["none",r,...S()]}],"list-image":[{"list-image":["none",k,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[dt,"from-font","auto",k,ma]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[dt,"auto",k,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[Ti,k,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,q]}],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",k,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ti,k,q],radial:["",k,q],conic:["",Ti,k,q]},gL,dL]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[dt,k,q]}],"outline-w":[{outline:["",dt,pc,ma]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","inner","none",c,Yd,jd]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,Yd,jd]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[dt,ma]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",m,Yd,jd]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[dt,k,q]}],"mix-blend":[{"mix-blend":[...et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":et()}],"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":[dt]}],"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":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"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":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"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":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"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":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"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":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"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":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"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":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[k,q]}],"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":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[dt]}],"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":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,q]}],filter:[{filter:["","none",k,q]}],blur:[{blur:st()}],brightness:[{brightness:[dt,k,q]}],contrast:[{contrast:[dt,k,q]}],"drop-shadow":[{"drop-shadow":["","none",d,Yd,jd]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",dt,k,q]}],"hue-rotate":[{"hue-rotate":[dt,k,q]}],invert:[{invert:["",dt,k,q]}],saturate:[{saturate:[dt,k,q]}],sepia:[{sepia:["",dt,k,q]}],"backdrop-filter":[{"backdrop-filter":["","none",k,q]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[dt,k,q]}],"backdrop-contrast":[{"backdrop-contrast":[dt,k,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",dt,k,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[dt,k,q]}],"backdrop-invert":[{"backdrop-invert":["",dt,k,q]}],"backdrop-opacity":[{"backdrop-opacity":[dt,k,q]}],"backdrop-saturate":[{"backdrop-saturate":[dt,k,q]}],"backdrop-sepia":[{"backdrop-sepia":["",dt,k,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[dt,"initial",k,q]}],ease:[{ease:["linear","initial",p,k,q]}],delay:[{delay:[dt,k,q]}],animate:[{animate:["none",h,k,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,k,q]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ct()}],"rotate-x":[{"rotate-x":ct()}],"rotate-y":[{"rotate-y":ct()}],"rotate-z":[{"rotate-z":ct()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:rt()}],"skew-x":[{"skew-x":rt()}],"skew-y":[{"skew-y":rt()}],transform:[{transform:[k,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],zoom:[{zoom:[Ti,k,q]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",k,q]}],"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":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",k,q]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[dt,pc,ma,iM]}],stroke:[{stroke:["none",...A()]}],"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=Jz(xL);function Et(...t){return bM(tM(t))}var q0=B(ot(),1);var ie=[.16,1,.3,1];var $s={type:"spring",stiffness:500,damping:30,mass:.6};var qd={type:"spring",stiffness:360,damping:32,mass:.6};var Ei=B(yt(),1),bL={enter:({direction:t,reduceMotion:e})=>({opacity:0,transform:e?"none":`translateY(${t==="up"?"45%":"-45%"})`}),visible:{opacity:1,transform:"translateY(0%)"},exit:({direction:t,reduceMotion:e})=>({opacity:0,transform:e?"none":`translateY(${t==="up"?"-45%":"45%"})`})};function SM({value:t,animationKey:e,direction:n="up",duration:i=.18,stagger:o=.006,suffixLength:r=0,className:a,glyphClassName:s,suffixClassName:l}){let u=ke()??!1,c=String(t),f=Math.max(0,c.length-Math.max(0,r)),m={direction:n,reduceMotion:u},d=Array.from(c,(g,v)=>({character:g,id:`glyph-${v}`,position:v}));return(0,Ei.jsxs)("span",{"data-slot":"digit-swap","data-direction":n,className:Et("inline-flex items-baseline whitespace-nowrap",a),children:[(0,Ei.jsx)("span",{className:"sr-only",children:c}),(0,Ei.jsx)("span",{"aria-hidden":"true",className:"inline-flex items-baseline",children:d.map(({character:g,id:v,position:x})=>{if(g===" ")return(0,Ei.jsx)("span",{className:"inline-block w-[0.7ch]"},v);let p=e===void 0?`${v}-${g}`:`${v}-${g}-${e}`;return(0,Ei.jsxs)("span",{"data-slot":"digit-swap-glyph",className:Et("relative inline-block h-[1.1em] shrink-0 leading-[1.1em] [clip-path:inset(0)]",/\d/.test(g)&&"w-[1ch] text-center"),children:[(0,Ei.jsx)("span",{className:"invisible",children:g}),(0,Ei.jsx)(Bn,{initial:!1,custom:m,children:(0,Ei.jsx)(jt.span,{custom:m,variants:bL,initial:"enter",animate:"visible",exit:"exit",transition:{duration:u?Math.min(i,.12):i,delay:u?0:x*o,ease:ie},className:Et("absolute inset-0 flex items-center justify-center leading-none",s,x>=f?l:void 0),children:g},p)})]},v)})})]})}var Un=B(ot(),1);var kd=B(ot(),1);function Xd(){let[t,e]=(0,kd.useState)(!1);return(0,kd.useEffect)(()=>{if(typeof window>"u"||!window.matchMedia)return;let n=window.matchMedia("(hover: hover) and (pointer: fine)"),i=()=>e(n.matches);return i(),n.addEventListener?.("change",i),()=>n.removeEventListener?.("change",i)},[]),t}var Kd=(t,e)=>{let n=e*Math.PI/180;return[100+t*Math.sin(n),100-t*Math.cos(n)]};function TM(t,{radius:e,thickness:n,gap:i}){let o=t.filter(c=>Number.isFinite(c.value)&&c.value>0),r=o.reduce((c,f)=>c+f.value,0),a=n/2/e*(180/Math.PI),s=o.length===1,l=0;return{placed:o.map(c=>{let f=r?c.value/r:0,m=f*360,d=s?0:i/2+a,g=l+d,v=Math.max(g+.01,l+m-d);l+=m;let x;if(s){let[p,h]=Kd(e,0),[y,b]=Kd(e,180);x=`M ${p} ${h} A ${e} ${e} 0 1 1 ${y} ${b} A ${e} ${e} 0 1 1 ${p} ${h}`}else{let[p,h]=Kd(e,g),[y,b]=Kd(e,v);x=`M ${p} ${h} A ${e} ${e} 0 ${v-g>180?1:0} 1 ${y} ${b}`}return{...c,share:f,path:x}}),total:r}}var SL=t=>t.toLocaleString("en-US");function EM({segments:t,thickness:e=22,gap:n=3,activeId:i,defaultActiveId:o=null,onActiveChange:r,onSelect:a,selectedId:s=null,formatValue:l=SL,label:u="Donut chart"}){let c=ke()??!1,f=Xd(),m=100-e/2-8,{placed:d,total:g}=TM(t,{radius:m,thickness:e,gap:n}),[v,x]=(0,Un.useState)(o),p=i===void 0?v:i,h=p!==null&&d.some(E=>E.id===p)?p:null,y=(0,Un.useRef)({controlled:i!==void 0,onActiveChange:r});(0,Un.useLayoutEffect)(()=>{y.current={controlled:i!==void 0,onActiveChange:r}});let b=(0,Un.useCallback)(E=>{y.current.controlled||x(E),y.current.onActiveChange?.(E)},[]);return{placed:d,total:g,radius:m,thickness:e,active:h,setActive:b,onSelect:a,selectedId:s,formatValue:l,label:u,reduce:c,canHover:f}}var Y0=(0,Un.createContext)(null);function Ai(){let t=(0,Un.useContext)(Y0);if(!t)throw new Error("Donut chart parts must be rendered inside DonutChart.");return t}var en=B(yt(),1);function hc({children:t,totalLabel:e="Total",className:n}){let{placed:i,active:o,total:r,formatValue:a,reduce:s}=Ai(),l=i.find(g=>g.id===o)??null,u=l?.value??r,[c,f]=(0,q0.useState)(u),[m,d]=(0,q0.useState)("up");return u!==c&&(f(u),d(u>c?"up":"down")),t?(0,en.jsx)("div",{"aria-live":"polite",className:Et("relative max-w-[56%]",n),children:t(l,r)}):(0,en.jsxs)("div",{"aria-live":"polite",className:Et("relative max-w-[56%]",n),children:[(0,en.jsx)("p",{className:"text-2xl font-medium tracking-tight tabular-nums",children:(0,en.jsx)(SM,{value:a(u),direction:m})}),(0,en.jsx)("div",{className:"relative mt-1 h-4 overflow-hidden",children:(0,en.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,en.jsx)(jt.p,{initial:s?{opacity:0}:{opacity:0,y:"100%"},animate:{opacity:1,y:"0%"},exit:s?{opacity:0}:{opacity:0,y:"-100%"},transition:{duration:s?.12:.22,ease:ie},className:"flex items-center justify-center gap-1.5 whitespace-nowrap text-xs leading-4 text-muted-foreground",children:l?(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("span",{"aria-hidden":"true",className:"size-2 shrink-0 rounded-full",style:{backgroundColor:l.color}}),(0,en.jsxs)("span",{className:"truncate",children:[l.name," \xB7 ",(l.share*100).toFixed(1),"%"]})]}):e},l?.id??"total")})})]})}var De=B(yt(),1);function k0({renderDetail:t,renderValue:e,className:n}){let{placed:i,active:o,setActive:r,onSelect:a,selectedId:s,formatValue:l,reduce:u,canHover:c}=Ai();return(0,De.jsx)("ul",{className:Et("space-y-1",n),children:i.map((f,m)=>{let d=o===f.id;return(0,De.jsx)("li",{children:(0,De.jsxs)("button",{type:"button","data-donut-legend":!0,"aria-pressed":a?s===f.id:void 0,onClick:()=>a?.(f.id),onPointerEnter:c?()=>r(f.id):void 0,onPointerLeave:c?()=>r(null):void 0,onFocus:()=>r(f.id),onBlur:()=>r(null),onKeyDown:g=>{let v=g.key==="ArrowDown"?1:g.key==="ArrowUp"?-1:0;if(!v)return;g.preventDefault(),g.currentTarget.closest("ul")?.querySelectorAll("[data-donut-legend]")?.[(m+v+i.length)%i.length]?.focus()},className:Et("w-full rounded-xl px-3 py-2 text-left outline-none transition-colors duration-150","focus-visible:ring-2 focus-visible:ring-ring",d?"bg-muted":"hover:bg-muted/60",s===f.id&&"ring-1 ring-border"),children:[(0,De.jsxs)("span",{className:"flex items-center gap-3",children:[(0,De.jsx)("span",{"aria-hidden":"true",className:"size-2.5 shrink-0 rounded-full",style:{backgroundColor:f.color}}),(0,De.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:f.name}),(0,De.jsx)("span",{className:"shrink-0 text-right text-sm tabular-nums",children:e?e(f):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)("span",{className:"font-medium",children:[(f.share*100).toFixed(1),"%"]}),(0,De.jsx)("span",{className:"ml-2 text-muted-foreground",children:l(f.value)})]})})]}),t?(0,De.jsx)("span",{className:"mt-0.5 block pl-5.5 text-xs text-muted-foreground",children:t(f)}):null,(0,De.jsx)("span",{"aria-hidden":"true",className:"mt-2 ml-5.5 block h-1 overflow-hidden rounded-full bg-muted",children:(0,De.jsx)(jt.span,{className:"block h-full origin-left rounded-full",style:{backgroundColor:f.color},initial:u?!1:{scaleX:0},animate:{scaleX:f.share},transition:u?{duration:0}:{...qd,delay:.2+m*.06}})})]})},f.id)})})}var Qd=B(ot(),1);var Ci=B(yt(),1),Zd=200/2,AM={transformBox:"view-box",transformOrigin:`${Zd}px ${Zd}px`};function gc({children:t,className:e}){let{placed:n,radius:i,thickness:o,active:r,setActive:a,label:s,reduce:l,canHover:u}=Ai(),c=(0,Qd.useRef)(null),f=dc(c,{once:!0,amount:.4}),m=l||f,[d,g]=(0,Qd.useState)(!1);return(0,Ci.jsxs)("div",{ref:c,className:Et("relative mx-auto aspect-square w-full max-w-64",e),children:[(0,Ci.jsxs)("svg",{viewBox:`0 0 ${200} ${200}`,role:"img","aria-label":s,className:"size-full overflow-visible",children:[(0,Ci.jsx)("circle",{cx:Zd,cy:Zd,r:i,fill:"none",strokeWidth:o,className:"stroke-muted",opacity:.6}),(0,Ci.jsx)(jt.g,{style:AM,initial:l?!1:{rotate:-90,scale:.88,opacity:0},animate:m?{rotate:0,scale:1,opacity:1}:void 0,transition:{duration:.9,ease:ie},onAnimationComplete:()=>g(!0),children:n.map((v,x)=>{let p=r===v.id,h=r!==null&&!p;return(0,Ci.jsx)(jt.path,{d:v.path,fill:"none",stroke:v.color,strokeWidth:o,strokeLinecap:"round",style:AM,initial:l?!1:{opacity:0},animate:m?{opacity:h?.3:1,scale:p?1.05:1}:void 0,transition:l?{duration:0}:{opacity:{duration:.4,ease:ie,delay:d?0:.15+x*.06},scale:qd},pointerEvents:"none","aria-hidden":"true"},v.id)})}),(0,Ci.jsx)("g",{children:n.map(v=>(0,Ci.jsx)("path",{d:v.path,fill:"none",stroke:"transparent",strokeWidth:o+8,strokeLinecap:"round",pointerEvents:m?"stroke":"none",className:"cursor-pointer",onPointerEnter:u?()=>a(v.id):void 0,onPointerLeave:u?()=>a(null):void 0},v.id))})]}),t?(0,Ci.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center text-center",children:t}):null]})}var ur=B(yt(),1);function CM({className:t,children:e,...n}){let i=EM(n);return(0,ur.jsx)(Y0.Provider,{value:i,children:(0,ur.jsx)("div",{className:Et("w-full",t),children:e??(0,ur.jsxs)("div",{className:"grid items-center gap-6 sm:grid-cols-[minmax(0,16rem)_1fr]",children:[(0,ur.jsx)(gc,{children:(0,ur.jsx)(hc,{})}),(0,ur.jsx)(k0,{})]})})})}var It=B(ot(),1);var Fd=[0,24,46,70,94],wM="color-mix(in srgb, var(--foreground) 6%, transparent)",K0=16,tl=4,yc=K0+tl,Id=12,MM=Array.from({length:7},(t,e)=>({id:`d${e}`,d:e})),vc=[1.3,1.08,1.03],Jd=t=>{let e=new Date(t);return e.setUTCHours(0,0,0,0),e},cr=(t,e)=>{let n=new Date(t);return n.setUTCDate(n.getUTCDate()+e),n},DM=t=>cr(Jd(t),-((t.getUTCDay()+6)%7)),Wd=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",weekday:"short",month:"short",day:"numeric"}),RM=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short"}),el=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric"});function OM({unit:t="commits",weeks:e=16,maxCount:n=14,values:i,endDate:o,color:r="var(--accent)",selection:a,defaultSelection:s=null,onSelectionChange:l}){let u=ke(),c=Xd(),[f,m]=(0,It.useState)(null),[d,g]=(0,It.useState)(s),v=a===void 0?d:a,x=Y=>{a===void 0&&g(Y),l?.(Y)},p=(0,It.useRef)(null),h=(0,It.useId)(),[y,b]=(0,It.useState)(null),[E,C]=(0,It.useState)(!1);(0,It.useEffect)(()=>{let Y=setTimeout(()=>C(!0),u?0:(e+7)*18+500);return()=>clearTimeout(Y)},[e,u]);let[T,S]=(0,It.useState)(null);(0,It.useEffect)(()=>S(Jd(new Date)),[]);let M=(0,It.useMemo)(()=>o?Jd(o):T,[o,T]),D=(0,It.useMemo)(()=>M?cr(DM(M),-(e-1)*7):null,[M,e]),L=(Y,Jt)=>Math.max(0,Math.min(1,i?.[Y]?.[Jt]??0)),P=Y=>Math.min(4,Math.floor(Y*5)),Z=Y=>Y===0?wM:`color-mix(in srgb, ${r} ${Fd[Y]}%, transparent)`,I=Y=>Math.round(Y*n),J=(Y,Jt)=>D?cr(D,Y*7+Jt):null,tt=(Y,Jt)=>{let Dt=J(Y,Jt);return M!==null&&Dt!==null&&Dt>M},K=Y=>Number.isInteger(Y.w)&&Number.isInteger(Y.d)&&Y.w>=0&&Y.w<e&&Y.d>=0&&Y.d<7&&!tt(Y.w,Y.d),X=v&&K(v.start)&&(!v.end||K(v.end))?v:null;v&&!X&&a===void 0&&g(null);let _=X?.start??null,A=X?.end??null,w=f&&K(f)?f:null;f&&!w&&m(null);let V=(0,It.useMemo)(()=>{let Y=Array.from({length:e},(Jt,Dt)=>{let Le=D?cr(D,Dt*7):null,ve=Le?Le.getUTCMonth():-1,In=D!==null&&Le!==null&&(Dt===0||cr(D,(Dt-1)*7).getUTCMonth()!==ve);return{id:`w${Dt}`,w:Dt,m:ve,label:In&&Le?RM.format(Le):null}});return(Y[1]?.label||Y[2]?.label)&&(Y[0].label=null),Y},[D,e]),O=Y=>Y.w*7+Y.d,z=()=>{x(null)},G=A??(_?w??_:null),U=_&&G?{lo:Math.min(O(_),O(G)),hi:Math.max(O(_),O(G))}:null,it=0;if(U)for(let Y=U.lo;Y<=U.hi&&!tt(Math.floor(Y/7),Y%7);Y++)it+=I(L(Math.floor(Y/7),Y%7));let et=Y=>{A?z():_&&O(_)===O(Y)?x(null):x(_?{start:_,end:Y}:{start:Y})},j=w??A??_,st=A??w??_,ct=st?J(st.w,st.d):null,Q=j?J(j.w,j.d)?.getUTCMonth()??null:null,rt=st?st.w*yc+K0/2:0,F=st?Id+tl+st.d*yc:0,Yt=st&&ct?{date:ct,count:I(L(st.w,st.d)),total:it,startDate:D&&U?cr(D,U.lo):ct,endDate:D&&U?cr(D,U.hi):ct,days:U?U.hi-U.lo+1:1}:null;return{unit:t,weeks:e,reduce:u,canHover:c,hover:w,pinned:_,spanEnd:A,step:y,setStep:b,settled:E,start:D,end:M,level:L,bucket:P,fill:Z,count:I,dateOf:J,future:tt,cols:V,clear:z,span:U,spanTotal:it,select:et,hot:j,tip:st,tipDate:ct,hotMonth:Q,tipX:rt,tipY:F,setHover:m,gridRef:p,tooltipId:h,tooltip:Yt,selection:X,setSelection:x}}var Z0=(0,It.createContext)(null);function mo(){let t=(0,It.useContext)(Z0);if(!t)throw new Error("HeatCalendar parts must be inside HeatCalendar");return t}var po=B(yt(),1);function xc({children:t,className:e}){let{weeks:n,reduce:i,canHover:o,pinned:r,step:a,settled:s,level:l,bucket:u,fill:c,count:f,dateOf:m,future:d,cols:g,clear:v,span:x,select:p,hot:h,hotMonth:y,setHover:b,gridRef:E,tooltipId:C,unit:T}=mo();return(0,po.jsxs)("div",{ref:E,className:Et("relative grid",e),style:{width:n*yc-tl,maxWidth:"100%",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gridTemplateRows:`${Id}px repeat(7, auto)`,gap:tl},onPointerLeave:()=>b(null),children:[g.map(S=>S.label?(0,po.jsx)("span",{className:Et("whitespace-nowrap text-[10px] leading-none transition-colors duration-200",y===S.m?"text-foreground":"text-muted-foreground"),style:{gridColumn:S.w+1,gridRow:1},children:S.label},S.id):null),g.map(({id:S,w:M})=>MM.map(({id:D,d:L})=>{let P=m(M,L);if(d(M,L))return null;let Z=l(M,L),I=u(Z),J=M*7+L,tt=h?.w===M&&h?.d===L,K=x?J===x.lo||J===x.hi:r?.w===M&&r?.d===L,X=a!==null&&a!==I||x!==null&&(J<x.lo||J>x.hi),_=h?Math.max(Math.abs(h.w-M),Math.abs(h.d-L)):9,A=i||!o?1:_===0?vc[0]:o&&_<vc.length?vc[_]:1;return(0,po.jsx)("span",{className:"relative block aspect-square w-full transition-opacity duration-200",style:{gridColumn:M+1,gridRow:L+2,opacity:X?.25:1,zIndex:A>1?vc.length-_:0},children:(0,po.jsx)(jt.button,{type:"button","aria-label":`${f(Z)} ${T}${P?` on ${Wd.format(P)}`:""}`,"data-heat-cell":`${M}-${L}`,"aria-pressed":K,"aria-describedby":tt?C:void 0,onPointerEnter:()=>b({w:M,d:L}),onFocus:()=>b({w:M,d:L}),onBlur:()=>b(null),onClick:()=>p({w:M,d:L}),onKeyDown:w=>{w.key==="Escape"&&v()},className:"absolute -inset-0.5 block rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring",whileTap:i?void 0:{scale:.9,transition:$s},children:(0,po.jsx)(jt.span,{className:"pointer-events-none absolute inset-0.5 block rounded-[4px]",style:{background:c(I),boxShadow:K?"0 0 0 2px var(--background), 0 0 0 3.5px var(--foreground)":"none",transition:"box-shadow 150ms"},initial:i?!1:{opacity:0,scale:.4},animate:s?{opacity:1,scale:A,transition:{...$s,delay:Math.min(_,3)*.03}}:{opacity:1,scale:1,transition:i?{duration:0}:{...$s,delay:(M+L)*.018}},children:(0,po.jsx)(Bn,{children:tt&&!K?(0,po.jsx)(jt.span,{className:"pointer-events-none absolute inset-0 block border-[1.5px]",style:{borderRadius:"inherit",borderColor:"color-mix(in srgb, var(--foreground) 55%, transparent)"},initial:i?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12,ease:ie}}):null})})})},`${S}-${D}`)})),t]})}var fr=B(yt(),1);function Q0({className:t}){let{start:e,end:n,step:i,setStep:o,fill:r,canHover:a,reduce:s}=mo();return(0,fr.jsxs)("div",{className:Et("mt-3 flex flex-wrap items-center justify-between gap-3",t),children:[(0,fr.jsx)("span",{className:"text-xs text-muted-foreground",children:e&&n?`${el.format(e)} \u2013 ${el.format(n)}`:"\xA0"}),(0,fr.jsxs)("span",{className:"flex items-center gap-1",onPointerLeave:()=>o(null),children:[(0,fr.jsx)("span",{className:"mr-0.5 text-xs text-muted-foreground",children:"less"}),Fd.map((l,u)=>(0,fr.jsx)("button",{type:"button","aria-label":`Show activity level ${u}`,"aria-pressed":i===u,onPointerEnter:()=>{a&&o(u)},onFocus:()=>o(u),onBlur:()=>o(null),onClick:()=>o(i===u?null:u),className:"size-3 rounded-[3px] transition-transform duration-150",style:{background:r(u),transform:!s&&i===u?"scale(1.25)":void 0}},l)),(0,fr.jsx)("span",{className:"ml-0.5 text-xs text-muted-foreground",children:"more"})]})]})}var up=B(ot(),1);var bn=B(ot(),1);var xn=B(yt(),1),F0=1.1,TL=Array.from({length:10},(t,e)=>e);function NM({value:t,pad:e,decimals:n=0,duration:i=.9,stagger:o=.04,startOnView:r=!0,prefix:a,suffix:s,blur:l=!1,className:u,digitClassName:c,locale:f,format:m}){let d=(0,bn.useRef)(null),g=dc(d,{once:!0,amount:.6}),[v,x]=(0,bn.useState)(!r);(0,bn.useEffect)(()=>{r&&g&&x(!0)},[r,g]);let p=(0,bn.useMemo)(()=>{let C=Math.max(0,Math.floor(n)),T=10**C,S=Math.round(t*T)/T,M=m?m(S):f?S.toLocaleString(void 0,{minimumFractionDigits:C,maximumFractionDigits:C}):S.toFixed(C);return e?M.padStart(e,"0"):M},[t,e,n,m,f]),h=(0,bn.useMemo)(()=>{let C=p.split("");return C.map((T,S)=>({char:T,id:`g-${C.length-1-S}`}))},[p]),y=`${a??""}${p}${s??""}`,[b,E]=(0,bn.useState)(!1);return(0,bn.useEffect)(()=>{if(!v||b)return;let C=(i+h.length*o)*1e3,T=window.setTimeout(()=>E(!0),C);return()=>window.clearTimeout(T)},[v,b,i,o,h.length]),(0,xn.jsxs)("span",{ref:d,className:Et("inline-flex items-baseline tabular-nums",u),children:[(0,xn.jsx)("span",{className:"sr-only",children:y}),(0,xn.jsxs)("span",{"aria-hidden":"true",className:"inline-flex items-baseline",children:[a?(0,xn.jsx)("span",{children:a}):null,h.map(({char:C,id:T},S)=>{if(!/\d/.test(C))return(0,xn.jsx)("span",{className:"inline-block",children:C},T);let D=Number(C);return(0,xn.jsx)(EL,{digit:v?D:0,delay:b?0:S*o,duration:i,blur:l,className:c},T)}),s?(0,xn.jsx)("span",{children:s}):null]})]})}function EL({digit:t,delay:e,duration:n,blur:i,className:o}){let r=ke(),a=(0,bn.useRef)(null);return(0,bn.useEffect)(()=>{if(r||!i||!a.current||!Number.isFinite(t))return;let s=a.current,l=H0(s,{filter:["blur(10px)","blur(0px)"]},{duration:Math.min(n*.75,.32),delay:e,ease:ie});return()=>{l.stop(),s.style.filter="blur(0px)"}},[i,e,t,n,r]),(0,xn.jsxs)("span",{className:Et("relative inline-block text-center [clip-path:inset(0)]",o),style:{height:`${F0}em`,lineHeight:`${F0}em`,width:"1ch"},children:[(0,xn.jsx)("span",{className:"invisible",children:t}),(0,xn.jsx)(jt.span,{ref:a,initial:{y:0},animate:{y:`-${t*F0}em`},transition:r?{duration:0}:{duration:n,delay:e,ease:ie},className:"absolute inset-x-0 top-0 flex flex-col items-center will-change-[transform,filter]",children:TL.map(s=>(0,xn.jsx)("span",{className:"flex h-[1.1em] items-center justify-center leading-none",children:s},s))})]})}var W=B(ot(),1),ND=B(wp(),1);var zM=B(yt(),1);function VM({children:t,side:e="top",className:n,ref:i,ready:o=!0,style:r,...a}){let l={opacity:0,scale:ke()?1:.94};return(0,zM.jsx)(jt.span,{ref:i,role:"tooltip",initial:l,animate:{...o?{opacity:1,scale:1}:l,transition:{duration:.18,ease:ie}},exit:{...l,transition:{duration:.12,ease:ie}},style:{transformOrigin:"var(--tooltip-origin, center)",...r},className:Et("block whitespace-nowrap rounded-lg border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground shadow-lg",n),...a,children:t})}var LM=B(ot(),1),I0=new Set;function AL(t,e){for(let n of I0)if(n!==t&&n(e))return!0;return!1}function CL(t){let e=o=>{o.preventDefault(),o.stopPropagation(),i()},n=o=>{o!==t&&i()},i=()=>{window.removeEventListener("click",e,!0),window.removeEventListener("pointerdown",n,!0),window.removeEventListener("pointercancel",n,!0),window.removeEventListener("keydown",i,!0)};window.addEventListener("click",e,!0),window.addEventListener("pointerdown",n,!0),window.addEventListener("pointercancel",n,!0),window.addEventListener("keydown",i,!0)}function _M(t,e,n,{behavior:i="pass-through",escape:o=!0,ignore:r}={}){(0,LM.useEffect)(()=>{if(!t)return;let a=u=>!!n?.current?.contains(u)||!!r?.(u),s=u=>{o&&u.key==="Escape"&&e()},l=u=>{let c=u.target;!c||a(c)||(i==="consume"&&!AL(a,c)&&CL(u),e())};return I0.add(a),window.addEventListener("keydown",s),window.addEventListener("pointerdown",l,!0),()=>{I0.delete(a),window.removeEventListener("keydown",s),window.removeEventListener("pointerdown",l,!0)}},[t,e,n,i,o,r])}var $d=B(ot(),1);var BM=t=>t.pointerType!=="touch"&&t.buttons===0;function UM(){let t=(0,$d.useRef)(new Set);return(0,$d.useMemo)(()=>({enter:e=>BM(e)?(t.current.delete(e.pointerId),!0):(t.current.add(e.pointerId),!1),leave:e=>!t.current.delete(e.pointerId)&&e.pointerType!=="touch"}),[])}var tp=B(ot(),1);function HM(){let t=(0,tp.useRef)(null);return(0,tp.useMemo)(()=>({start:(e,n)=>{t.current={pointerType:e.pointerType,state:n}},take:()=>{let e=t.current;return t.current=null,e},drop:()=>{t.current=null}}),[])}function GM(t,e){return wL([{x:t.x-5,y:t.y-5},{x:t.x+5,y:t.y-5},{x:t.x-5,y:t.y+5},{x:t.x+5,y:t.y+5},{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom}])}function W0(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function jM(t,e){let n=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){let r=e[i],a=e[o];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(n=!n)}return n}function wL(t){let e=[...t].sort((r,a)=>r.x-a.x||r.y-a.y),n=(r,a,s)=>(a.x-r.x)*(s.y-r.y)-(a.y-r.y)*(s.x-r.x),i=[];for(let r of e){for(;i.length>=2&&n(i[i.length-2],i[i.length-1],r)<=0;)i.pop();i.push(r)}let o=[];for(let r=e.length-1;r>=0;r--){let a=e[r];for(;o.length>=2&&n(o[o.length-2],o[o.length-1],a)<=0;)o.pop();o.push(a)}return i.pop(),o.pop(),i.concat(o)}var J0="keyboard",PM=!1;function YM(){PM||typeof window>"u"||(PM=!0,window.addEventListener("keydown",()=>J0="keyboard",!0),window.addEventListener("pointerdown",()=>J0="pointer",!0))}function qM(){return J0==="keyboard"}var wc=B(ot(),1);var KM=["top","right","bottom","left"];var mr=Math.min,ho=Math.max,Sc=Math.round,Tc=Math.floor,wi=t=>({x:t,y:t}),ML={left:"right",right:"left",bottom:"top",top:"bottom"};function $0(t,e,n){return ho(t,mr(e,n))}function pa(t,e){return typeof t=="function"?t(e):t}function ha(t){return t.split("-")[0]}function nl(t){return t.split("-")[1]}function tv(t){return t==="x"?"y":"x"}function np(t){return t==="y"?"height":"width"}function go(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ip(t){return tv(go(t))}function ZM(t,e,n){n===void 0&&(n=!1);let i=nl(t),o=ip(t),r=np(o),a=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=bc(a)),[a,bc(a)]}function QM(t){let e=bc(t);return[ep(t),e,ep(e)]}function ep(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var kM=["left","right"],XM=["right","left"],DL=["top","bottom"],RL=["bottom","top"];function OL(t,e,n){switch(t){case"top":case"bottom":return n?e?XM:kM:e?kM:XM;case"left":case"right":return e?DL:RL;default:return[]}}function FM(t,e,n,i){let o=nl(t),r=OL(ha(t),n==="start",i);return o&&(r=r.map(a=>a+"-"+o),e&&(r=r.concat(r.map(ep)))),r}function bc(t){let e=ha(t);return ML[e]+t.slice(e.length)}function NL(t){var e,n,i,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function ev(t){return typeof t!="number"?NL(t):{top:t,right:t,bottom:t,left:t}}function ga(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function IM(t,e,n){let{reference:i,floating:o}=t,r=go(e),a=ip(e),s=np(a),l=ha(e),u=r==="y",c=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,m=i[s]/2-o[s]/2,d;switch(l){case"top":d={x:c,y:i.y-o.height};break;case"bottom":d={x:c,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}let g=nl(e);return g&&(d[a]+=m*(g==="end"?1:-1)*(n&&u?-1:1)),d}async function $M(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:d=0}=pa(e,t),g=ev(d),x=s[m?f==="floating"?"reference":"floating":f],p=ga(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),h=f==="floating"?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),b=await(r.isElement==null?void 0:r.isElement(y))&&await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1},E=ga(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:y,strategy:l}):h);return{top:(p.top-E.top+g.top)/b.y,bottom:(E.bottom-p.bottom+g.bottom)/b.y,left:(p.left-E.left+g.left)/b.x,right:(E.right-p.right+g.right)/b.x}}var VL=50,tD=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:$M},l=await(a.isRTL==null?void 0:a.isRTL(e)),u=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:f}=IM(u,i,l),m=i,d=0,g={};for(let v=0;v<r.length;v++){let x=r[v];if(!x)continue;let{name:p,fn:h}=x,{x:y,y:b,data:E,reset:C}=await h({x:c,y:f,initialPlacement:i,placement:m,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:t,floating:e}});c=y??c,f=b??f,g[p]={...g[p],...E},C&&d<VL&&(d++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):C.rects),{x:c,y:f}=IM(u,m,l)),v=-1)}return{x:c,y:f,placement:m,strategy:o,middlewareData:g}},eD=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=pa(t,e)||{};if(u==null)return{};let f=ev(c),m={x:n,y:i},d=ip(o),g=np(d),v=await a.getDimensions(u),x=d==="y",p=x?"top":"left",h=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[d]-m[d]-r.floating[g],E=m[d]-r.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u)),T=C?C[y]:0;(!T||!await(a.isElement==null?void 0:a.isElement(C)))&&(T=s.floating[y]||r.floating[g]);let S=b/2-E/2,M=T/2-v[g]/2-1,D=mr(f[p],M),L=mr(f[h],M),P=T-v[g]-L,Z=T/2-v[g]/2+S,I=$0(D,Z,P),J=!l.arrow&&nl(o)!=null&&Z!==I&&r.reference[g]/2-(Z<D?D:L)-v[g]/2<0,tt=J?Z<D?Z-D:Z-P:0;return{[d]:m[d]+tt,data:{[d]:I,centerOffset:Z-I-tt,...J&&{alignmentOffset:tt}},reset:J}}});var nD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...x}=pa(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let p=ha(o),h=go(s),y=ha(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(y||!v?[bc(s)]:QM(s)),C=g!=="none";!m&&C&&E.push(...FM(s,v,g,b));let T=[s,...E],S=await l.detectOverflow(e,x),M=[],D=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&M.push(S[p]),f){let I=ZM(o,a,b);M.push(S[I[0]],S[I[1]])}if(D=[...D,{placement:o,overflows:M}],!M.every(I=>I<=0)){var L,P;let I=(((L=r.flip)==null?void 0:L.index)||0)+1,J=T[I];if(J&&(!(f==="alignment"?h!==go(J):!1)||D.every(X=>go(X.placement)===h?X.overflows[0]>0:!0)))return{data:{index:I,overflows:D},reset:{placement:J}};let tt=(P=D.filter(K=>K.overflows[0]<=0).sort((K,X)=>K.overflows[1]-X.overflows[1])[0])==null?void 0:P.placement;if(!tt)switch(d){case"bestFit":{var Z;let K=(Z=D.filter(X=>{if(C){let _=go(X.placement);return _===h||_==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(_=>_>0).reduce((_,A)=>_+A,0)]).sort((X,_)=>X[1]-_[1])[0])==null?void 0:Z[0];K&&(tt=K);break}case"initialPlacement":tt=s;break}if(o!==tt)return{reset:{placement:tt}}}return{}}}};function JM(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function WM(t){return KM.some(e=>t[e]>=0)}var iD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n,platform:i}=e,{strategy:o="referenceHidden",...r}=pa(t,e);switch(o){case"referenceHidden":{let a=await i.detectOverflow(e,{...r,elementContext:"reference"}),s=JM(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:WM(s)}}}case"escaped":{let a=await i.detectOverflow(e,{...r,altBoundary:!0}),s=JM(a,n.floating);return{data:{escapedOffsets:s,escaped:WM(s)}}}default:return{}}}}};var zL=new Set(["left","top"]);async function LL(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),a=ha(n),s=nl(n),l=go(n)==="y",u=zL.has(a)?-1:1,c=r&&l?-1:1,f=pa(e,t),{mainAxis:m,crossAxis:d,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),l?{x:d*c,y:m*u}:{x:m*u,y:d*c}}var oD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:a,middlewareData:s}=e,l=await LL(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}}},rD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o,platform:r}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...u}=pa(t,e),c={x:n,y:i},f=await r.detectOverflow(e,u),m=go(o),d=tv(m),g=c[d],v=c[m],x=(h,y)=>$0(y+f[h==="y"?"top":"left"],y,y-f[h==="y"?"bottom":"right"]);a&&(g=x(d,g)),s&&(v=x(m,v));let p=l.fn({...e,[d]:g,[m]:v});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[d]:a,[m]:s}}}}}};function op(){return typeof window<"u"}function va(t){return sD(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mi(t){var e;return(e=(sD(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sD(t){return op()?t instanceof Node||t instanceof Xe(t).Node:!1}function Qn(t){return op()?t instanceof Element||t instanceof Xe(t).Element:!1}function yo(t){return op()?t instanceof HTMLElement||t instanceof Xe(t).HTMLElement:!1}function aD(t){return!op()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Ec(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=Fn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&o!=="inline"&&o!=="contents"}function lD(t){return/^(table|td|th)$/.test(va(t))}function Ac(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var _L=/transform|translate|scale|rotate|perspective|filter/,BL=/paint|layout|strict|content/,ya=t=>!!t&&t!=="none",nv;function rp(t){let e=Qn(t)?Fn(t):t;return ya(e.transform)||ya(e.translate)||ya(e.scale)||ya(e.rotate)||ya(e.perspective)||!ap()&&(ya(e.backdropFilter)||ya(e.filter))||_L.test(e.willChange||"")||BL.test(e.contain||"")}function uD(t){let e=dr(t);for(;yo(e)&&!ol(e);){if(rp(e))return e;if(Ac(e))return null;e=dr(e)}return null}function ap(){return nv==null&&(nv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nv}function ol(t){return/^(html|body|#document)$/.test(va(t))}function Fn(t){return Xe(t).getComputedStyle(t)}function Cc(t){return Qn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dr(t){if(va(t)==="html")return t;let e=t.assignedSlot||t.parentNode||aD(t)&&t.host||Mi(t);return aD(e)?e.host:e}function cD(t){let e=dr(t);return ol(e)?(t.ownerDocument||t).body:yo(e)&&Ec(e)?e:cD(e)}function il(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);let o=cD(t),r=o===((i=t.ownerDocument)==null?void 0:i.body),a=Xe(o);if(r){let s=sp(a);return e.concat(a,a.visualViewport||[],Ec(o)?o:[],s&&n?il(s):[])}else return e.concat(o,il(o,[],n))}function sp(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dD(t){let e=Fn(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=yo(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=Sc(n)!==r||Sc(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function ov(t){return Qn(t)?t:t.contextElement}function rl(t){let e=ov(t);if(!yo(e))return wi(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=dD(e),a=(r?Sc(n.width):n.width)/i,s=(r?Sc(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var UL=wi(0);function pD(t){let e=Xe(t);return!ap()||!e.visualViewport?UL:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function HL(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===Xe(t)}function xa(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=ov(t),a=wi(1);e&&(i?Qn(i)&&(a=rl(i)):a=rl(t));let s=HL(r,n,i)?pD(r):wi(0),l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(r&&i){let m=Xe(r),d=Qn(i)?Xe(i):i,g=m,v=sp(g);for(;v&&d!==g;){let x=rl(v),p=v.getBoundingClientRect(),h=Fn(v),y=p.left+(v.clientLeft+parseFloat(h.paddingLeft))*x.x,b=p.top+(v.clientTop+parseFloat(h.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,f*=x.y,l+=y,u+=b,g=Xe(v),v=sp(g)}}return ga({width:c,height:f,x:l,y:u})}function lp(t,e){let n=Cc(t).scrollLeft;return e?e.left+n:xa(Mi(t)).left+n}function hD(t,e){let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-lp(t,n),o=n.top+e.scrollTop;return{x:i,y:o}}function PL(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",a=Mi(i),s=e?Ac(e.floating):!1;if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},u=wi(1),c=wi(0),f=yo(i);if((f||!r)&&((va(i)!=="body"||Ec(a))&&(l=Cc(i)),f)){let d=xa(i);u=rl(i),c.x=d.x+i.clientLeft,c.y=d.y+i.clientTop}let m=a&&!f&&!r?hD(a,l):wi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+m.x,y:n.y*u.y-l.scrollTop*u.y+c.y+m.y}}function GL(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function jL(t){let e=Cc(t),n=t.ownerDocument.body,i=ho(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ho(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),r=-e.scrollLeft+lp(t),a=-e.scrollTop;return Fn(n).direction==="rtl"&&(r+=ho(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:a}}var YL=25;function qL(t,e,n){n===void 0&&(n="viewport");let i=n==="layoutViewport",o=Xe(t),r=Mi(t),a=o.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(a){let m=!ap()||e==="fixed";i?m||(u=-a.offsetLeft,c=-a.offsetTop):(s=a.width,l=a.height,m&&(u=a.offsetLeft,c=a.offsetTop))}if(lp(r)<=0){let m=r.ownerDocument,d=m.body,g=getComputedStyle(d),v=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(r.clientWidth-d.clientWidth-v),p=getComputedStyle(r).scrollbarGutter==="stable both-edges"?x/2:x;p<=YL&&(s-=p)}return{width:s,height:l,x:u,y:c}}function kL(t,e){let n=xa(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=rl(t),a=t.clientWidth*r.x,s=t.clientHeight*r.y,l=o*r.x,u=i*r.y;return{width:a,height:s,x:l,y:u}}function fD(t,e,n){let i;if(e==="viewport"||e==="layoutViewport")i=qL(t,n,e);else if(e==="document")i=jL(Mi(t));else if(Qn(e))i=kL(e,n);else{let o=pD(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ga(i)}function XL(t,e){let n=e.get(t);if(n)return n;let i=il(t,[],!1).filter(s=>Qn(s)&&va(s)!=="body"),o=null,r=Fn(t).position==="fixed",a=r?dr(t):t;for(;Qn(a)&&!ol(a);){let s=Fn(a),l=rp(a),u=o?o.position:r?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?i=i.filter(f=>f!==a):o=s,a=dr(a)}return e.set(t,i),i}function KL(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,a=[...n==="clippingAncestors"?Ac(e)?[]:XL(e,this._c):[].concat(n),i],s=fD(e,a[0],o),l=s.top,u=s.right,c=s.bottom,f=s.left;for(let m=1;m<a.length;m++){let d=fD(e,a[m],o);l=ho(d.top,l),u=mr(d.right,u),c=mr(d.bottom,c),f=ho(d.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function ZL(t){let{width:e,height:n}=dD(t);return{width:e,height:n}}function QL(t,e,n){let i=yo(e),o=Mi(e),r=n==="fixed",a=xa(t,!0,r,e),s={scrollLeft:0,scrollTop:0},l=wi(0);if((i||!r)&&((va(e)!=="body"||Ec(o))&&(s=Cc(e)),i)){let m=xa(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}!i&&o&&(l.x=lp(o));let u=o&&!i&&!r?hD(o,s):wi(0),c=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:c,y:f,width:a.width,height:a.height}}function iv(t){return Fn(t).position==="static"}function mD(t,e){if(!yo(t)||Fn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Mi(t)===n&&(n=n.ownerDocument.body),n}function gD(t,e){let n=Xe(t);if(Ac(t))return n;if(!yo(t)){let o=dr(t);for(;o&&!ol(o);){if(Qn(o)&&!iv(o))return o;o=dr(o)}return n}let i=mD(t,e);for(;i&&lD(i)&&iv(i);)i=mD(i,e);return i&&ol(i)&&iv(i)&&!rp(i)?n:i||uD(t)||n}var FL=async function(t){let e=this.getOffsetParent||gD,n=this.getDimensions,i=await n(t.floating);return{reference:QL(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function IL(t){return Fn(t).direction==="rtl"}var JL={convertOffsetParentRelativeRectToViewportRelativeRect:PL,getDocumentElement:Mi,getClippingRect:KL,getOffsetParent:gD,getElementRects:FL,getClientRects:GL,getDimensions:ZL,getScale:rl,isElement:Qn,isRTL:IL};function yD(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function WL(t,e,n){let i=null,o,r=Mi(t);function a(){var c;clearTimeout(o),(c=i)==null||c.disconnect(),i=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),a();let m=t.getBoundingClientRect(),{left:d,top:g,width:v,height:x}=m;if(c||e(),!v||!x)return;let p=Tc(g),h=Tc(r.clientWidth-(d+v)),y=Tc(r.clientHeight-(g+x)),b=Tc(d),C={rootMargin:-p+"px "+-h+"px "+-y+"px "+-b+"px",threshold:ho(0,mr(1,f))||1},T=!0;function S(M){let D=M[0].intersectionRatio;if(!yD(m,t.getBoundingClientRect()))return s();if(D!==f){if(!T)return s();D?s(!1,D):o=setTimeout(()=>{s(!1,1e-7)},1e3)}T=!1}try{i=new IntersectionObserver(S,{...C,root:r.ownerDocument})}catch{i=new IntersectionObserver(S,C)}i.observe(t)}let l=Xe(t),u=()=>s(n);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),a()}}function vD(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=ov(t),c=o||r?[...u?il(u):[],...e?il(e):[]]:[];c.forEach(p=>{o&&p.addEventListener("scroll",n),r&&p.addEventListener("resize",n)});let f=u&&s?WL(u,n,r):null,m=-1,d=null;a&&(d=new ResizeObserver(p=>{let[h]=p;h&&h.target===u&&d&&e&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e)})),n()}),u&&!l&&d.observe(u),e&&d.observe(e));let g,v=l?xa(t):null;l&&x();function x(){let p=xa(t);v&&!yD(v,p)&&n(),v=p,g=requestAnimationFrame(x)}return n(),()=>{var p;c.forEach(h=>{o&&h.removeEventListener("scroll",n),r&&h.removeEventListener("resize",n)}),f?.(),(p=d)==null||p.disconnect(),d=null,l&&cancelAnimationFrame(g)}}var xD=oD;var bD=rD,SD=nD;var TD=iD,ED=eD;var AD=(t,e,n)=>{let i=new Map,o=n??{},r={...JL,...o.platform,_c:i};return tD(t,e,{...o,platform:r})};var Re=B(ot(),1),$L={top:"center bottom",bottom:"center top",left:"right center",right:"left center"};function CD({open:t,anchor:e,floatingRef:n,arrowRef:i,anchorPoint:o,followCursor:r,side:a,align:s,sideOffset:l,onDismiss:u,onPosition:c,pointer:f}){let{cursor:m,onMove:d}=f,g=s==="center"?a:`${a}-${s}`,v=(0,Re.useRef)(null);(0,Re.useLayoutEffect)(()=>{v.current=t?g:null},[t,g]);let x=(0,Re.useRef)(null),p=(0,Re.useRef)(0),h=(0,Re.useRef)(()=>{}),y=(0,Re.useCallback)(()=>{p.current++,x.current===null&&(x.current=requestAnimationFrame(()=>{x.current=null,h.current()}))},[]);(0,Re.useLayoutEffect)(()=>(d.current=y,()=>{d.current=null}),[d,y]);let b=o?.x,E=o?.y;(0,Re.useLayoutEffect)(()=>{h.current=()=>{let C=n.current;if(!t||!e||!C)return;let T=++p.current,S=r?m.current:null,M=!!S||b!==void 0||E!==void 0,D=M?{contextElement:e,getBoundingClientRect:()=>{let P=e.getBoundingClientRect(),Z=S?.x??P.left+P.width*(b??.5),I=S?.y??P.top+P.height*(E??.5);return{x:Z,y:I,left:Z,right:Z,top:I,bottom:I,width:0,height:0}}}:e,L=i?.current??null;AD(D,C,{strategy:"fixed",placement:S?v.current??g:g,middleware:[xD(l??(S?12:8)),SD({padding:8}),bD({padding:8}),...L?[ED({element:L,padding:10})]:[],...M?[]:[TD({strategy:"referenceHidden"})]]}).then(({x:P,y:Z,placement:I,middlewareData:J})=>{if(p.current!==T||!C.isConnected)return;S?v.current=I:v.current=null;let tt=I.split("-")[0],K=window.devicePixelRatio||1;C.style.transform=`translate3d(${Math.round(P*K)/K}px, ${Math.round(Z*K)/K}px, 0)`,C.style.setProperty("--tooltip-origin",$L[tt]);let X=e.getBoundingClientRect(),_=!!J.hide?.referenceHidden&&(X.width>0||X.height>0);C.style.visibility=_?"hidden":"visible",C.dataset.placement=I;let A=L?.parentElement;if(L&&A){let{x:w,y:V}=J.arrow??{};w!=null&&(L.style.left=`${w-A.clientLeft}px`),V!=null&&(L.style.top=`${V-A.clientTop}px`);let O=getComputedStyle(A);L.style.setProperty("--tooltip-arrow-fill",O.backgroundColor),L.style.setProperty("--tooltip-arrow-stroke",O.borderTopColor)}c(tt)})},t&&y()},[t,e,n,i,r,b,E,g,l,y,c,m]),(0,Re.useLayoutEffect)(()=>{let C=n.current;if(!t||!e||!C)return;let T=vD(e,C,y),S=()=>{r&&m.current&&u()};return window.addEventListener("scroll",S,!0),()=>{T(),window.removeEventListener("scroll",S,!0),p.current++,x.current!==null&&cancelAnimationFrame(x.current),x.current=null}},[t,e,n,r,u,y,m]),(0,Re.useLayoutEffect)(()=>()=>{p.current++,x.current!==null&&cancelAnimationFrame(x.current)},[])}function wD(t,e){let n=(0,Re.useRef)(null),i=(0,Re.useRef)(null),o=(0,Re.useRef)(!1);return(0,Re.useLayoutEffect)(()=>{if(!t||!e)return;let r=u=>{u.type==="pointermove"&&u.pointerType==="touch"&&!u.buttons||(n.current={x:u.clientX,y:u.clientY},u.type==="pointerdown"&&(o.current=!0),i.current?.())},a=()=>{n.current=null,o.current=!1,i.current?.()},s=()=>{o.current||(n.current=null),o.current=!1,i.current?.()},l=()=>{n.current=null};return t.addEventListener("pointerenter",r,{passive:!0}),t.addEventListener("pointermove",r,{passive:!0}),t.addEventListener("pointerdown",r,{passive:!0}),t.addEventListener("pointerleave",l),t.addEventListener("pointercancel",l),t.addEventListener("keydown",a),t.addEventListener("focusin",s),()=>{n.current=null,t.removeEventListener("pointerenter",r),t.removeEventListener("pointermove",r),t.removeEventListener("pointerdown",r),t.removeEventListener("pointerleave",l),t.removeEventListener("pointercancel",l),t.removeEventListener("keydown",a),t.removeEventListener("focusin",s)}},[t,e]),{cursor:n,onMove:i}}var al=B(yt(),1);function MD({children:t,...e}){let n=C0(),[i,o]=(0,wc.useState)(!1),[r,a]=(0,wc.useState)(e.side),s=(0,wc.useCallback)(l=>{o(!0),a(l)},[]);return CD({...e,open:n,onPosition:s}),(0,al.jsx)("span",{ref:e.floatingRef,inert:!n,"aria-hidden":!n||void 0,className:"pointer-events-none fixed left-0 top-0 z-[9999] w-max",style:{visibility:"hidden",maxWidth:"calc(100vw - 16px)"},children:t(i,n,r)})}var t_={top:{path:"M0 6L6 12L12 6",style:{top:"calc(100% - 6px)"}},bottom:{path:"M0 6L6 0L12 6",style:{bottom:"calc(100% - 6px)"}},left:{path:"M6 0L12 6L6 12",style:{left:"calc(100% - 6px)"}},right:{path:"M6 0L0 6L6 12",style:{right:"calc(100% - 6px)"}}};function DD({side:t,ref:e}){let{path:n,style:i}=t_[t];return(0,al.jsxs)("svg",{ref:e,"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 12 12",className:"pointer-events-none absolute overflow-visible",style:i,children:[(0,al.jsx)("path",{d:`${n}Z`,style:{fill:"var(--tooltip-arrow-fill, transparent)"}}),(0,al.jsx)("path",{d:n,fill:"none",strokeWidth:"1",style:{stroke:"var(--tooltip-arrow-stroke, transparent)"}})]})}var ze=B(yt(),1),e_=(0,W.createContext)({delay:120,closeDelay:0,skipDelay:300});var RD=0,pr=null;function VD(t){return t==null||t===!1||t===""}var zD=(0,W.createContext)(null);function LD(t){let e=(0,W.useContext)(zD);if(!e)throw new Error(`${t} must be used inside <Tooltip>`);return e}function OD({children:t,open:e,defaultOpen:n=!1,onOpenChange:i,delay:o,closeDelay:r,disabled:a=!1,asLabel:s=!1,followCursor:l=!1,anchorRef:u,id:c,initialEmpty:f=!1}){let m=(0,W.useContext)(e_),d=o??m.delay,g=r??m.closeDelay,[v,x]=(0,W.useState)(n),p=e??v,[h,y]=(0,W.useState)(f),[b,E]=(0,W.useState)(null),[C,T]=(0,W.useState)(null),S=u?C:b,M=(0,W.useId)(),D=c??`${M}-content`,L=`${M}-label`,P=(0,W.useRef)(null),Z=(0,W.useRef)(null),I=wD(S,l);(0,W.useLayoutEffect)(()=>{if(!u)return;let F=u.current??null;F!==C&&T(F)});let J=(0,W.useRef)({open:p,delay:d,closeDelay:g,disabled:a,empty:h,onOpenChange:i,controlled:!1});(0,W.useLayoutEffect)(()=>{Z.current=S,J.current={open:p,delay:d,closeDelay:g,disabled:a,empty:h,onOpenChange:i,controlled:e!==void 0}});let tt=(0,W.useRef)(null),K=(0,W.useRef)(null),X=(0,W.useRef)(null),_=(0,W.useRef)({close:()=>{}}),A=(0,W.useCallback)(()=>{tt.current&&clearTimeout(tt.current),K.current&&clearTimeout(K.current),tt.current=null,K.current=null},[]),w=(0,W.useCallback)(()=>{X.current?.(),X.current=null},[]),V=(0,W.useCallback)(F=>{J.current.open!==F&&(J.current.controlled||x(F),J.current.onOpenChange?.(F))},[]),O=(0,W.useCallback)(()=>{A(),w(),!(J.current.disabled||J.current.empty)&&(pr&&pr!==_.current&&pr.close(),pr=_.current,V(!0))},[A,w,V]),z=(0,W.useCallback)(()=>{A(),w(),J.current.open&&(RD=Date.now()),pr===_.current&&(pr=null),V(!1)},[A,w,V]);(0,W.useLayoutEffect)(()=>{_.current.close=z},[z]);let G=(0,W.useCallback)(()=>{if(A(),J.current.open||J.current.disabled||J.current.empty)return;Date.now()-RD<m.skipDelay||J.current.delay<=0?O():tt.current=setTimeout(O,J.current.delay)},[A,O,m.skipDelay]),U=(0,W.useCallback)(()=>{A(),J.current.closeDelay>0?K.current=setTimeout(z,J.current.closeDelay):z()},[A,z]),it=(0,W.useCallback)((F,Yt,Y)=>{if(w(),!Y)return U();let Jt=Y.getBoundingClientRect(),Dt=Yt.getBoundingClientRect(),Le=GM(F,Jt),ve=In=>{let Ni={x:In.clientX,y:In.clientY};W0(Ni,Jt)||W0(Ni,Dt)||jM(Ni,Le)||U()};document.addEventListener("pointermove",ve),X.current=()=>document.removeEventListener("pointermove",ve)},[w,U]),et=UM(),j=HM();(0,W.useEffect)(()=>{if(u||!b)return;YM();let F=!1,Yt=!1,Y=xe=>{et.enter(xe)&&(w(),K.current&&clearTimeout(K.current),F||G())},Jt=xe=>{if(et.leave(xe)&&(F=!1,!Yt)){if(tt.current){A();return}J.current.open&&!l?it({x:xe.clientX,y:xe.clientY},b,P.current):U()}},Dt=xe=>{j.start(xe,J.current.open),xe.pointerType==="mouse"&&(F=!0,z())},Le=()=>{let xe=j.take();!xe||xe.pointerType==="mouse"||(xe.state?z():O())},ve=()=>j.drop(),In=()=>{qM()&&(Yt=!0,O())},Ni=xe=>{b.contains(xe.relatedTarget)||(Yt=!1,z())},fe=b;return fe.addEventListener("pointerenter",Y),fe.addEventListener("pointerleave",Jt),fe.addEventListener("pointerdown",Dt),fe.addEventListener("pointercancel",j.drop),fe.addEventListener("click",Le),fe.addEventListener("keydown",ve),fe.addEventListener("focusin",In),fe.addEventListener("focusout",Ni),()=>{fe.removeEventListener("pointerenter",Y),fe.removeEventListener("pointerleave",Jt),fe.removeEventListener("pointerdown",Dt),fe.removeEventListener("pointercancel",j.drop),fe.removeEventListener("click",Le),fe.removeEventListener("keydown",ve),fe.removeEventListener("focusin",In),fe.removeEventListener("focusout",Ni)}},[u,b,l,et,j,G,U,O,z,A,w,it]),(0,W.useEffect)(()=>{if(!p||u||!b)return;let F=new MutationObserver(()=>{b.matches(":disabled, [aria-disabled='true']")&&z()});return F.observe(b,{attributes:!0,attributeFilter:["disabled","aria-disabled"]}),window.addEventListener("blur",z),()=>{F.disconnect(),window.removeEventListener("blur",z)}},[p,u,b,z]),(0,W.useEffect)(()=>{(a||h&&!u)&&z()},[a,h,u,z]),(0,W.useEffect)(()=>()=>{A(),w(),pr===_.current&&(pr=null)},[A,w]);let st=(0,W.useCallback)(F=>!!P.current?.contains(F),[]);_M(p,z,Z,{ignore:st});let ct=(0,W.useCallback)(()=>{w(),A()},[w,A]),Q=(0,W.useCallback)(F=>{let Yt=P.current;if(Yt){if(u){A(),K.current=setTimeout(z,100);return}it({x:F.clientX,y:F.clientY},Yt,Z.current)}},[u,A,z,it]),rt=(0,W.useMemo)(()=>({open:p,contentId:D,labelId:L,asLabel:s,empty:h,followCursor:l,anchor:S,triggered:!u,floatingRef:P,pointer:I,setTrigger:E,setEmpty:y,close:z,onContentEnter:ct,onContentLeave:Q}),[p,D,L,s,h,l,S,u,I,z,ct,Q]);return(0,ze.jsx)(zD.Provider,{value:rt,children:t})}function n_(...t){return t.filter(e=>typeof e=="string"&&e).join(" ")||void 0}function i_(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function o_({asChild:t=!1,children:e,ref:n,...i}){let{open:o,contentId:r,labelId:a,asLabel:s,empty:l,setTrigger:u}=LD("TooltipTrigger"),c=t&&(0,W.isValidElement)(e)?e:null,f=c?.props??i,m=c?f.ref:void 0,d=(0,W.useRef)(null),g=(0,W.useCallback)(x=>{d.current=x,u(x),i_(m??n,x)},[u,m,n]);(0,W.useEffect)(()=>{},[c]);let v=s?{"aria-labelledby":l?f["aria-labelledby"]:a}:{"aria-describedby":n_(f["aria-describedby"],o&&!l?r:void 0)};return t?c?(0,W.cloneElement)(c,{ref:g,...v}):e:(0,ze.jsx)("button",{type:"button","data-state":o?"open":"closed",...i,ref:g,...v,children:e})}function r_({children:t,side:e="top",align:n="center",sideOffset:i,arrow:o=!1,anchorPoint:r,className:a}){let{open:s,contentId:l,labelId:u,asLabel:c,followCursor:f,anchor:m,floatingRef:d,pointer:g,setEmpty:v,close:x,onContentEnter:p,onContentLeave:h}=LD("TooltipContent"),y=VD(t),b=(0,W.useRef)(null);return(0,W.useLayoutEffect)(()=>{v(y)},[y,v]),typeof document>"u"?null:(0,ND.createPortal)((0,ze.jsxs)(ze.Fragment,{children:[c&&!y?(0,ze.jsx)("span",{id:u,hidden:!0,children:t}):null,(0,ze.jsx)(Bn,{children:s&&!y?(0,ze.jsx)(MD,{anchor:m,floatingRef:d,arrowRef:o?b:void 0,anchorPoint:r,followCursor:f,side:e,align:n,sideOffset:i,onDismiss:x,pointer:g,children:(E,C,T)=>(0,ze.jsxs)(VM,{id:c?void 0:l,"aria-hidden":c||void 0,ready:E,onPointerEnter:p,onPointerLeave:h,style:{pointerEvents:C&&!f?"auto":"none"},className:Et("max-w-[min(20rem,calc(100vw-16px))] whitespace-normal break-words",o&&"relative",a),children:[t,o?(0,ze.jsx)(DD,{ref:b,side:T}):null]})},"tooltip"):null})]}),document.body)}function _D(t){if(!("content"in t))return(0,ze.jsx)(OD,{...t});let{content:e,children:n,side:i,align:o,sideOffset:r,arrow:a,anchorPoint:s,className:l,...u}=t;return!u.anchorRef&&!(0,W.isValidElement)(n)?n??null:(0,ze.jsxs)(OD,{...u,initialEmpty:VD(e),children:[(0,W.isValidElement)(n)?(0,ze.jsx)(o_,{asChild:!0,children:n}):null,(0,ze.jsx)(r_,{side:i,align:o,sideOffset:r,arrow:a,anchorPoint:s,className:l,children:e})]})}var Di=B(yt(),1);function Mc({children:t,className:e}){let{gridRef:n,tooltipId:i,tip:o,tooltip:r,unit:a}=mo(),[s,l]=(0,up.useState)(null),u=(0,up.useMemo)(()=>({get current(){return o?n.current?.querySelector(`[data-heat-cell="${o.w}-${o.d}"]`)??null:null}}),[n,o]);return(0,Di.jsx)(_D,{open:r!==null&&s!==o,onOpenChange:c=>{c||l(o)},id:i,anchorRef:u,className:Et("flex flex-wrap items-center gap-1.5",e),content:r&&(typeof t=="function"?t(r):t??(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsxs)("span",{className:"inline-flex items-center gap-1 font-mono tabular-nums",children:[(0,Di.jsx)(NM,{value:r.days>1?r.total:r.count,duration:.35,startOnView:!1})," ",a]}),(0,Di.jsx)("span",{className:"text-muted-foreground",children:r.days>1&&r.startDate&&r.endDate?`${el.format(r.startDate)} \u2013 ${el.format(r.endDate)}`:Wd.format(r.date)}),r.days>1?(0,Di.jsxs)("span",{className:"text-muted-foreground",children:[r.days," days"]}):null]}))},o?`${o.w}-${o.d}`:"closed")}var Ri=B(yt(),1);function BD({children:t,className:e,...n}){let i=OM(n);return(0,Ri.jsx)(Z0.Provider,{value:i,children:(0,Ri.jsx)("div",{className:Et("w-fit max-w-full",e),children:t===void 0?(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(xc,{children:(0,Ri.jsx)(Mc,{})}),(0,Ri.jsx)(Q0,{})]}):t})})}var N=B(yt(),1),av=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],a_="var(--chart-other)",UD=av.length,cp="__other",s_={leiting:"\u96F7\u9706",heidong:"\u9ED1\u6D1E",mifeng:"\u871C\u8702",xuanfeng:"\u65CB\u98CE"},Dc=null;function rv(t){let e=String(t??"").trim().toUpperCase();return/^[A-Z]{2}$/.test(e)?String.fromCodePoint(...[...e].map(n=>127462+n.charCodeAt(0)-65)):""}function PD({color:t,active:e}){return(0,N.jsx)("span",{"aria-hidden":"true",className:"analytics-aura",style:{background:`radial-gradient(58% 68% at 14% 42%, color-mix(in srgb, ${t} ${e?26:13}%, transparent) 0%, transparent 72%)`}})}function l_(){let{placed:t,active:e,setActive:n,canHover:i,formatValue:o}=Ai(),r=(0,Oi.useContext)(sv),a=ke()??!1;return(0,N.jsx)("ul",{className:"distribution-chips",children:t.map((s,l)=>(0,N.jsx)(jt.li,{initial:a?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:a?0:.34,ease:ie,delay:a?0:.12+l*.022},children:(0,N.jsxs)(jt.button,{type:"button","data-donut-legend":!0,className:`distribution-chip${e===s.id?" is-active":""}`,style:{"--chip-color":s.color},title:s.folded?.length?`\u542B ${s.folded.join("\u3001")}`:void 0,whileHover:a?void 0:{y:-2},whileTap:a?void 0:{scale:.96},transition:$s,onPointerEnter:i?()=>n(s.id):void 0,onPointerLeave:i?()=>n(null):void 0,onFocus:()=>n(s.id),onBlur:()=>n(null),"aria-label":`${s.name} ${s.value} \u4E2A\u8282\u70B9\uFF0C\u5360 ${r[l]??0}%`,children:[(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-dot",style:{backgroundColor:s.color}}),rv(s.id)?(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-flag",children:rv(s.id)}):null,(0,N.jsx)("span",{className:"min-w-0 distribution-name",children:s.name}),(0,N.jsx)("strong",{className:"distribution-value",children:o(s.value)}),(0,N.jsxs)("span",{className:"distribution-share",children:[r[l]??0,"%"]})]})},s.id))})}var sv=(0,Oi.createContext)([]);function u_(){let{placed:t,active:e,total:n,formatValue:i}=Ai(),o=(0,Oi.useContext)(sv),r=ke()??!1,a=t.find(c=>c.id===e)??null,s=t.findIndex(c=>c.id===e),l=a?.value??n,u=s>=0?o[s]??Math.round(a.value/n*100):0;return(0,N.jsxs)("div",{className:"ring-readout",children:[(0,N.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,N.jsx)(jt.strong,{className:"ring-value",initial:r?{opacity:0}:{opacity:0,y:10},animate:{opacity:1,y:0},exit:r?{opacity:0}:{opacity:0,y:-10},transition:{duration:r?.1:.24,ease:ie},children:i(l)},`value-${l}`)}),(0,N.jsx)(Bn,{initial:!1,mode:"popLayout",children:(0,N.jsx)(jt.span,{className:"ring-caption",initial:r?{opacity:0}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:r?{opacity:0}:{opacity:0,y:-6},transition:{duration:r?.1:.2,ease:ie},children:a?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{"aria-hidden":"true",className:"distribution-dot",style:{backgroundColor:a.color}}),rv(a.id)," ",a.name," \xB7 ",u,"%"]}):"\u8282\u70B9\u603B\u6570"},a?.id??"total")})]})}function c_({title:t,segments:e,tail:n,label:i}){let o=(0,Oi.useMemo)(()=>{let f=e.filter(d=>d.id!==cp).sort((d,g)=>g.value-d.value),m=e.filter(d=>d.id===cp);return[...f,...m]},[e]),r=o.reduce((f,m)=>f+m.value,0),a=o.filter(f=>f.id!==cp).length+n.length,s=GD(o.map(f=>f.value)),[l,u]=(0,Oi.useState)(null),c=o.find(f=>f.id===l)?.color??o[0]?.color??av[0];return(0,N.jsxs)("article",{className:"panel analytics-distribution","aria-label":t,children:[r>0?(0,N.jsx)(PD,{color:c,active:l!==null}):null,(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:t}),(0,N.jsx)("span",{className:"analytics-count",children:r>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("strong",{children:a})," \u4E2A",i]}):null})]}),r>0?(0,N.jsx)(CM,{segments:o,label:t,formatValue:f=>f.toLocaleString("zh-CN"),thickness:24,gap:2.5,activeId:l,onActiveChange:u,children:(0,N.jsx)(sv.Provider,{value:s,children:(0,N.jsxs)("div",{className:"distribution-layout",children:[(0,N.jsx)(gc,{className:"distribution-plot",children:(0,N.jsx)(hc,{children:()=>(0,N.jsx)(u_,{})})}),(0,N.jsxs)("div",{className:"distribution-legend",children:[(0,N.jsx)(l_,{}),n.length?(0,N.jsxs)("div",{className:"distribution-footnote",children:[(0,N.jsx)("span",{className:"footnote-lead",children:"\u5176\u4ED6\u5305\u62EC"}),(0,N.jsx)("span",{className:"footnote-entries",children:n.map(f=>(0,N.jsxs)("span",{className:"footnote-entry",children:[f.region," ",f.count]},f.region))})]}):null]})]})})}):(0,N.jsxs)("div",{className:"chart-empty",role:"status",children:[(0,N.jsx)("span",{className:"empty-donut","aria-hidden":"true"}),(0,N.jsx)("span",{children:"\u8FD0\u884C\u5B8C\u6210\u540E\u663E\u793A"})]})]})}function f_({title:t,segments:e,label:n}){let i=ke()??!1,o=(0,Oi.useMemo)(()=>[...e].filter(s=>s.value>0).sort((s,l)=>l.value-s.value),[e]),r=o.reduce((s,l)=>s+l.value,0),a=GD(o.map(s=>s.value));return(0,N.jsxs)("article",{className:"panel analytics-distribution","aria-label":t,children:[r>0?(0,N.jsx)(PD,{color:"var(--chart-source)",active:!1}):null,(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:t}),(0,N.jsx)("span",{className:"analytics-count",children:r>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("strong",{children:o.length})," \u4E2A",n]}):null})]}),r>0?(0,N.jsx)("div",{className:"source-meters",children:o.map((s,l)=>(0,N.jsxs)("div",{className:"source-row",children:[(0,N.jsx)("span",{className:"source-name",children:s.name}),(0,N.jsx)("span",{className:"source-track","aria-hidden":"true",children:(0,N.jsx)(jt.span,{className:"source-fill",style:{width:`${s.value/r*100}%`},initial:i?!1:{scaleX:0},animate:{scaleX:1},transition:{duration:i?0:.56,ease:ie,delay:i?0:.1+l*.06}})}),(0,N.jsx)("strong",{className:"source-value",children:s.value.toLocaleString("zh-CN")}),(0,N.jsxs)("span",{className:"source-share",children:[a[l],"%"]})]},s.id))}):(0,N.jsxs)("div",{className:"chart-empty",role:"status",children:[(0,N.jsx)("span",{className:"empty-donut","aria-hidden":"true"}),(0,N.jsx)("span",{children:"\u8FD0\u884C\u5B8C\u6210\u540E\u663E\u793A"})]})]})}function GD(t){let e=t.reduce((s,l)=>s+l,0);if(e<=0)return t.map(()=>0);let n=t.map(s=>s/e*100),i=n.map(Math.floor),o=100-i.reduce((s,l)=>s+l,0),r=n.map((s,l)=>({index:l,remainder:s-Math.floor(s)})).sort((s,l)=>l.remainder-s.remainder),a=[...i];for(let s=0;o>0&&s<r.length;s+=1,o-=1)a[r[s].index]+=1;return a}function m_(){let{start:t,end:e,fill:n}=mo();return(0,N.jsxs)("div",{className:"contribution-legend",children:[(0,N.jsxs)("span",{children:[t?.toISOString().slice(0,7)," \u81F3 ",e?.toISOString().slice(0,7)]}),(0,N.jsxs)("span",{className:"contribution-scale",children:["\u5C11",[0,1,2,3,4].map(i=>(0,N.jsx)("i",{style:{background:n(i)},"aria-hidden":"true"},i)),"\u591A"]})]})}function d_({activity:t,unavailable:e=0}){let n=new Date(Date.now()),i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())),o=new Date(i);o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+6)%7);let r=new Date(o);r.setUTCDate(r.getUTCDate()-364);let a=new Map(t.map(d=>[d.date,d.nodes])),s=Array.from({length:53},(d,g)=>Array.from({length:7},(v,x)=>{let p=new Date(r);return p.setUTCDate(p.getUTCDate()+g*7+x),p>i?0:a.get(p.toISOString().slice(0,10))??0})),l=Math.max(1,...s.flat()),u=s.flat(),c=u.reduce((d,g)=>d+g,0),f=u.filter(d=>d>0).length,m=Math.max(0,...u);return(0,N.jsxs)("article",{className:"panel analytics-calendar","aria-label":"\u6BCF\u65E5\u8282\u70B9\u4EA7\u51FA",children:[(0,N.jsxs)("div",{className:"analytics-heading",children:[(0,N.jsx)("h3",{children:"\u6BCF\u65E5\u4EA7\u51FA"}),(0,N.jsxs)("span",{className:"analytics-count",title:"\u6309\u4FDD\u7559\u7684\u8FD0\u884C\u8BB0\u5F55\u7D2F\u8BA1\u6700\u7EC8\u53EF\u7528\u8282\u70B9\uFF0C\u540C\u4E00\u8282\u70B9\u5728\u4E0D\u540C\u8FD0\u884C\u4E2D\u4F1A\u5206\u522B\u8BA1\u6570",children:[(0,N.jsx)("strong",{children:c.toLocaleString("zh-CN")})," \u4E2A\u8282\u70B9",e>0?(0,N.jsxs)("span",{className:"activity-unavailable",title:`${e} \u6B21\u8FD0\u884C\u7F3A\u5C11\u53EF\u786E\u8BA4\u7684\u6700\u7EC8\u8282\u70B9\u8BB0\u5F55`,children:[" \xB7 ",e," \u6B21\u8BB0\u5F55\u4E0D\u5B8C\u6574"]}):null]})]}),(0,N.jsxs)("div",{className:"calendar-stats",children:[(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u6709\u4EA7\u51FA"}),(0,N.jsx)("strong",{children:f}),(0,N.jsx)("span",{children:"\u5929"})]}),(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u5355\u65E5\u6700\u9AD8"}),(0,N.jsx)("strong",{children:m.toLocaleString("zh-CN")}),(0,N.jsx)("span",{children:"\u4E2A"})]}),(0,N.jsxs)("span",{className:"calendar-stat",children:[(0,N.jsx)("span",{children:"\u65E5\u5747"}),(0,N.jsx)("strong",{children:f?Math.round(c/f).toLocaleString("zh-CN"):"0"}),(0,N.jsx)("span",{children:"\u4E2A"})]})]}),(0,N.jsx)("div",{className:"calendar-scroll",tabIndex:0,role:"region","aria-label":"53 \u5468\u8282\u70B9\u8D21\u732E\uFF0C\u53EF\u6A2A\u5411\u6EDA\u52A8",children:(0,N.jsx)("div",{className:"calendar-canvas",children:(0,N.jsxs)(BD,{weeks:53,values:s.map(d=>d.map(g=>g/l)),maxCount:l,endDate:i,color:"var(--accent)",unit:"\u4E2A\u8282\u70B9",children:[(0,N.jsx)(xc,{children:(0,N.jsx)(Mc,{children:d=>(0,N.jsxs)("span",{children:[d.date.toISOString().slice(0,10)," \xB7 ",d.days>1?d.total:d.count," \u4E2A\u8282\u70B9"]})})}),(0,N.jsx)(m_,{})]})})})]})}function p_({input:t}){let{segments:e,tail:n}=h_(t.regionStats),i=Object.entries(t.sourceCounts).map(([o,r])=>({id:o,name:s_[o]??o,value:Number(r.deduped_links??0),color:"var(--chart-source)"}));return(0,N.jsx)(M0,{reducedMotion:"user",children:(0,N.jsxs)("div",{className:"dashboard-analytics","data-component-source":"beui",children:[(0,N.jsxs)("div",{className:"analytics-distributions",children:[(0,N.jsx)(c_,{title:"\u56FD\u5BB6\u5206\u5E03",label:"\u56FD\u5BB6",segments:e,tail:n}),(0,N.jsx)(f_,{title:"\u52A0\u901F\u5668\u8D21\u732E",label:"\u6765\u6E90",segments:i})]}),(0,N.jsx)(d_,{activity:t.activity,unavailable:t.activityUnavailable})]})})}function h_(t){let e=g_(t).sort((r,a)=>a.count-r.count),n=e.slice(0,UD),i=e.slice(UD),o=n.map((r,a)=>({id:r.region,name:r.region,value:r.count,color:av[a]}));return i.length&&o.push({id:cp,name:"\u5176\u4ED6",value:i.reduce((r,a)=>r+a.count,0),color:a_,folded:i.map(r=>`${r.region} ${r.count}`)}),{segments:o,tail:i}}function g_(t){let e=new Map;for(let n of t??[]){let i=String(n?.region??"").trim().toUpperCase();i&&e.set(i,(e.get(i)??0)+Number(n.count??0))}return[...e.entries()].filter(([,n])=>n>0).map(([n,i])=>({region:n,count:i}))}function fJ(t,e){t&&(Dc?.element!==t&&(y_(),Dc={element:t,root:(0,HD.createRoot)(t)}),Dc.root.render((0,N.jsx)(p_,{input:e})))}function y_(){Dc?.root.unmount(),Dc=null}export{y_ as clearAnalytics,fJ as renderAnalytics};
|
|
10
10
|
/*! Bundled license information:
|
|
11
11
|
|
|
12
12
|
react/cjs/react.production.js:
|