function vg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var tc={exports:{}},Ml={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gp;function Zv(){if(Gp)return Ml;Gp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var g in c)g!=="key"&&(d[g]=c[g])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return Ml.Fragment=i,Ml.jsx=s,Ml.jsxs=s,Ml}var qp;function Qv(){return qp||(qp=1,tc.exports=Zv()),tc.exports}var j=Qv(),ec={exports:{}},ct={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yp;function Kv(){if(Yp)return ct;Yp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,R={};function q(T,N,k){this.props=T,this.context=N,this.refs=R,this.updater=k||V}q.prototype.isReactComponent={},q.prototype.setState=function(T,N){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,N,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=q.prototype;function Z(T,N,k){this.props=T,this.context=N,this.refs=R,this.updater=k||V}var P=Z.prototype=new Q;P.constructor=Z,L(P,q.prototype),P.isPureReactComponent=!0;var F=Array.isArray;function W(){}var K={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function at(T,N,k){var J=k.ref;return{$$typeof:a,type:T,key:N,ref:J!==void 0?J:null,props:k}}function et(T,N){return at(T.type,N,T.props)}function St(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function Et(T){var N={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(k){return N[k]})}var Zt=/\/+/g;function jt(T,N){return typeof T=="object"&&T!==null&&T.key!=null?Et(""+T.key):N.toString(36)}function Dt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(W,W):(T.status="pending",T.then(function(N){T.status==="pending"&&(T.status="fulfilled",T.value=N)},function(N){T.status==="pending"&&(T.status="rejected",T.reason=N)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,N,k,J,it){var ut=typeof T;(ut==="undefined"||ut==="boolean")&&(T=null);var lt=!1;if(T===null)lt=!0;else switch(ut){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(T.$$typeof){case a:case i:lt=!0;break;case y:return lt=T._init,z(lt(T._payload),N,k,J,it)}}if(lt)return it=it(T),lt=J===""?"."+jt(T,0):J,F(it)?(k="",lt!=null&&(k=lt.replace(Zt,"$&/")+"/"),z(it,N,k,"",function(pe){return pe})):it!=null&&(St(it)&&(it=et(it,k+(it.key==null||T&&T.key===it.key?"":(""+it.key).replace(Zt,"$&/")+"/")+lt)),N.push(it)),1;lt=0;var Lt=J===""?".":J+":";if(F(T))for(var Tt=0;Tt<T.length;Tt++)J=T[Tt],ut=Lt+jt(J,Tt),lt+=z(J,N,k,ut,it);else if(Tt=M(T),typeof Tt=="function")for(T=Tt.call(T),Tt=0;!(J=T.next()).done;)J=J.value,ut=Lt+jt(J,Tt++),lt+=z(J,N,k,ut,it);else if(ut==="object"){if(typeof T.then=="function")return z(Dt(T),N,k,J,it);throw N=String(T),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return lt}function Y(T,N,k){if(T==null)return T;var J=[],it=0;return z(T,J,"","",function(ut){return N.call(k,ut,it++)}),J}function H(T){if(T._status===-1){var N=T._result;N=N(),N.then(function(k){(T._status===0||T._status===-1)&&(T._status=1,T._result=k)},function(k){(T._status===0||T._status===-1)&&(T._status=2,T._result=k)}),T._status===-1&&(T._status=0,T._result=N)}if(T._status===1)return T._result.default;throw T._result}var ft=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=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(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},mt={map:Y,forEach:function(T,N,k){Y(T,function(){N.apply(this,arguments)},k)},count:function(T){var N=0;return Y(T,function(){N++}),N},toArray:function(T){return Y(T,function(N){return N})||[]},only:function(T){if(!St(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ct.Activity=b,ct.Children=mt,ct.Component=q,ct.Fragment=s,ct.Profiler=c,ct.PureComponent=Z,ct.StrictMode=o,ct.Suspense=m,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ct.__COMPILER_RUNTIME={__proto__:null,c:function(T){return K.H.useMemoCache(T)}},ct.cache=function(T){return function(){return T.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(T,N,k){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=L({},T.props),it=T.key;if(N!=null)for(ut in N.key!==void 0&&(it=""+N.key),N)!O.call(N,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&N.ref===void 0||(J[ut]=N[ut]);var ut=arguments.length-2;if(ut===1)J.children=k;else if(1<ut){for(var lt=Array(ut),Lt=0;Lt<ut;Lt++)lt[Lt]=arguments[Lt+2];J.children=lt}return at(T.type,it,J)},ct.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},ct.createElement=function(T,N,k){var J,it={},ut=null;if(N!=null)for(J in N.key!==void 0&&(ut=""+N.key),N)O.call(N,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(it[J]=N[J]);var lt=arguments.length-2;if(lt===1)it.children=k;else if(1<lt){for(var Lt=Array(lt),Tt=0;Tt<lt;Tt++)Lt[Tt]=arguments[Tt+2];it.children=Lt}if(T&&T.defaultProps)for(J in lt=T.defaultProps,lt)it[J]===void 0&&(it[J]=lt[J]);return at(T,ut,it)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(T){return{$$typeof:g,render:T}},ct.isValidElement=St,ct.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:H}},ct.memo=function(T,N){return{$$typeof:p,type:T,compare:N===void 0?null:N}},ct.startTransition=function(T){var N=K.T,k={};K.T=k;try{var J=T(),it=K.S;it!==null&&it(k,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(W,ft)}catch(ut){ft(ut)}finally{N!==null&&k.types!==null&&(N.types=k.types),K.T=N}},ct.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ct.use=function(T){return K.H.use(T)},ct.useActionState=function(T,N,k){return K.H.useActionState(T,N,k)},ct.useCallback=function(T,N){return K.H.useCallback(T,N)},ct.useContext=function(T){return K.H.useContext(T)},ct.useDebugValue=function(){},ct.useDeferredValue=function(T,N){return K.H.useDeferredValue(T,N)},ct.useEffect=function(T,N){return K.H.useEffect(T,N)},ct.useEffectEvent=function(T){return K.H.useEffectEvent(T)},ct.useId=function(){return K.H.useId()},ct.useImperativeHandle=function(T,N,k){return K.H.useImperativeHandle(T,N,k)},ct.useInsertionEffect=function(T,N){return K.H.useInsertionEffect(T,N)},ct.useLayoutEffect=function(T,N){return K.H.useLayoutEffect(T,N)},ct.useMemo=function(T,N){return K.H.useMemo(T,N)},ct.useOptimistic=function(T,N){return K.H.useOptimistic(T,N)},ct.useReducer=function(T,N,k){return K.H.useReducer(T,N,k)},ct.useRef=function(T){return K.H.useRef(T)},ct.useState=function(T){return K.H.useState(T)},ct.useSyncExternalStore=function(T,N,k){return K.H.useSyncExternalStore(T,N,k)},ct.useTransition=function(){return K.H.useTransition()},ct.version="19.2.0",ct}var kp;function af(){return kp||(kp=1,ec.exports=Kv()),ec.exports}var X=af();const lf=vg(X);var nc={exports:{}},Cl={},ac={exports:{}},ic={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xp;function Jv(){return Xp||(Xp=1,(function(a){function i(z,Y){var H=z.length;z.push(Y);t:for(;0<H;){var ft=H-1>>>1,mt=z[ft];if(0<c(mt,Y))z[ft]=Y,z[H]=mt,H=ft;else break t}}function s(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var Y=z[0],H=z.pop();if(H!==Y){z[0]=H;t:for(var ft=0,mt=z.length,T=mt>>>1;ft<T;){var N=2*(ft+1)-1,k=z[N],J=N+1,it=z[J];if(0>c(k,H))J<mt&&0>c(it,k)?(z[ft]=it,z[J]=H,ft=J):(z[ft]=k,z[N]=H,ft=N);else if(J<mt&&0>c(it,H))z[ft]=it,z[J]=H,ft=J;else break t}}return Y}function c(z,Y){var H=z.sortIndex-Y.sortIndex;return H!==0?H:z.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var m=[],p=[],y=1,b=null,S=3,M=!1,V=!1,L=!1,R=!1,q=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function P(z){for(var Y=s(p);Y!==null;){if(Y.callback===null)o(p);else if(Y.startTime<=z)o(p),Y.sortIndex=Y.expirationTime,i(m,Y);else break;Y=s(p)}}function F(z){if(L=!1,P(z),!V)if(s(m)!==null)V=!0,W||(W=!0,Et());else{var Y=s(p);Y!==null&&Dt(F,Y.startTime-z)}}var W=!1,K=-1,O=5,at=-1;function et(){return R?!0:!(a.unstable_now()-at<O)}function St(){if(R=!1,W){var z=a.unstable_now();at=z;var Y=!0;try{t:{V=!1,L&&(L=!1,Q(K),K=-1),M=!0;var H=S;try{e:{for(P(z),b=s(m);b!==null&&!(b.expirationTime>z&&et());){var ft=b.callback;if(typeof ft=="function"){b.callback=null,S=b.priorityLevel;var mt=ft(b.expirationTime<=z);if(z=a.unstable_now(),typeof mt=="function"){b.callback=mt,P(z),Y=!0;break e}b===s(m)&&o(m),P(z)}else o(m);b=s(m)}if(b!==null)Y=!0;else{var T=s(p);T!==null&&Dt(F,T.startTime-z),Y=!1}}break t}finally{b=null,S=H,M=!1}Y=void 0}}finally{Y?Et():W=!1}}}var Et;if(typeof Z=="function")Et=function(){Z(St)};else if(typeof MessageChannel<"u"){var Zt=new MessageChannel,jt=Zt.port2;Zt.port1.onmessage=St,Et=function(){jt.postMessage(null)}}else Et=function(){q(St,0)};function Dt(z,Y){K=q(function(){z(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(z){z.callback=null},a.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<z?Math.floor(1e3/z):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(z){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var H=S;S=Y;try{return z()}finally{S=H}},a.unstable_requestPaint=function(){R=!0},a.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var H=S;S=z;try{return Y()}finally{S=H}},a.unstable_scheduleCallback=function(z,Y,H){var ft=a.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ft+H:ft):H=ft,z){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=H+mt,z={id:y++,callback:Y,priorityLevel:z,startTime:H,expirationTime:mt,sortIndex:-1},H>ft?(z.sortIndex=H,i(p,z),s(m)===null&&z===s(p)&&(L?(Q(K),K=-1):L=!0,Dt(F,H-ft))):(z.sortIndex=mt,i(m,z),V||M||(V=!0,W||(W=!0,Et()))),z},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(z){var Y=S;return function(){var H=S;S=Y;try{return z.apply(this,arguments)}finally{S=H}}}})(ic)),ic}var Zp;function Fv(){return Zp||(Zp=1,ac.exports=Jv()),ac.exports}var lc={exports:{}},ce={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qp;function Pv(){if(Qp)return ce;Qp=1;var a=af();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(m,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:m,containerInfo:p,implementation:y}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ce.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,y)},ce.flushSync=function(m){var p=f.T,y=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=p,o.p=y,o.d.f()}},ce.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},ce.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},ce.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,b=g(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:M}):y==="script"&&o.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ce.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=g(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},ce.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=g(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ce.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=g(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},ce.requestFormReset=function(m){o.d.r(m)},ce.unstable_batchedUpdates=function(m,p){return m(p)},ce.useFormState=function(m,p,y){return f.H.useFormState(m,p,y)},ce.useFormStatus=function(){return f.H.useHostTransitionStatus()},ce.version="19.2.0",ce}var Kp;function Wv(){if(Kp)return lc.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),lc.exports=Pv(),lc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jp;function $v(){if(Jp)return Cl;Jp=1;var a=Fv(),i=af(),s=Wv();function o(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 c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(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 g(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 m(t){if(d(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return m(r),t;if(u===l)return m(r),e;u=u.sibling}throw Error(o(188))}if(n.return!==l.return)n=r,l=u;else{for(var h=!1,v=r.child;v;){if(v===n){h=!0,n=r,l=u;break}if(v===l){h=!0,l=r,n=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===n){h=!0,n=u,l=r;break}if(v===l){h=!0,l=u,n=r;break}v=v.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),St=Symbol.iterator;function Et(t){return t===null||typeof t!="object"?null:(t=St&&t[St]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Symbol.for("react.client.reference");function jt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Zt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case q:return"Profiler";case R:return"StrictMode";case F:return"Suspense";case W:return"SuspenseList";case at:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case Z:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:jt(t.type)||"Memo";case O:e=t._payload,t=t._init;try{return jt(t(e))}catch{}}return null}var Dt=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},ft=[],mt=-1;function T(t){return{current:t}}function N(t){0>mt||(t.current=ft[mt],ft[mt]=null,mt--)}function k(t,e){mt++,ft[mt]=t.current,t.current=e}var J=T(null),it=T(null),ut=T(null),lt=T(null);function Lt(t,e){switch(k(ut,e),k(it,t),k(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?up(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=up(e),t=cp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(J),k(J,t)}function Tt(){N(J),N(it),N(ut)}function pe(t){t.memoizedState!==null&&k(lt,t);var e=J.current,n=cp(e,t.type);e!==n&&(k(it,t),k(J,n))}function $e(t){it.current===t&&(N(J),N(it)),lt.current===t&&(N(lt),Sl._currentValue=H)}var Ie,Ql;function ia(t){if(Ie===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ie=e&&e[1]||"",Ql=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ie+t+Ql}var Lo=!1;function Uo(t,e){if(!t||Lo)return"";Lo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(_){var w=_}Reflect.construct(t,[],G)}else{try{G.call()}catch(_){w=_}t.call(G.prototype)}}else{try{throw Error()}catch(_){w=_}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(_){if(_&&w&&typeof _.stack=="string")return[_.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var x=h.split(`
`),D=v.split(`
`);for(r=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(l===x.length||r===D.length)for(l=x.length-1,r=D.length-1;1<=l&&0<=r&&x[l]!==D[r];)r--;for(;1<=l&&0<=r;l--,r--)if(x[l]!==D[r]){if(l!==1||r!==1)do if(l--,r--,0>r||x[l]!==D[r]){var B=`
`+x[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=r);break}}}finally{Lo=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ia(n):""}function T1(t,e){switch(t.tag){case 26:case 27:case 5:return ia(t.type);case 16:return ia("Lazy");case 13:return t.child!==e&&e!==null?ia("Suspense Fallback"):ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Uo(t.type,!1);case 11:return Uo(t.type.render,!1);case 1:return Uo(t.type,!0);case 31:return ia("Activity");default:return""}}function Gf(t){try{var e="",n=null;do e+=T1(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Ho=Object.prototype.hasOwnProperty,Go=a.unstable_scheduleCallback,qo=a.unstable_cancelCallback,A1=a.unstable_shouldYield,M1=a.unstable_requestPaint,Me=a.unstable_now,C1=a.unstable_getCurrentPriorityLevel,qf=a.unstable_ImmediatePriority,Yf=a.unstable_UserBlockingPriority,Kl=a.unstable_NormalPriority,E1=a.unstable_LowPriority,kf=a.unstable_IdlePriority,D1=a.log,w1=a.unstable_setDisableYieldValue,_i=null,Ce=null;function wn(t){if(typeof D1=="function"&&w1(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(_i,t)}catch{}}var Ee=Math.clz32?Math.clz32:O1,z1=Math.log,R1=Math.LN2;function O1(t){return t>>>=0,t===0?32:31-(z1(t)/R1|0)|0}var Jl=256,Fl=262144,Pl=4194304;function la(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&261888;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 Wl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~u,l!==0?r=la(l):(h&=v,h!==0?r=la(h):n||(n=v&~t,n!==0&&(r=la(n))))):(v=l&~u,v!==0?r=la(v):h!==0?r=la(h):n||(n=l&~t,n!==0&&(r=la(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function Vi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function _1(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 Xf(){var t=Pl;return Pl<<=1,(Pl&62914560)===0&&(Pl=4194304),t}function Yo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ji(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function V1(t,e,n,l,r,u){var h=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 v=t.entanglements,x=t.expirationTimes,D=t.hiddenUpdates;for(n=h&~n;0<n;){var B=31-Ee(n),G=1<<B;v[B]=0,x[B]=-1;var w=D[B];if(w!==null)for(D[B]=null,B=0;B<w.length;B++){var _=w[B];_!==null&&(_.lane&=-536870913)}n&=~G}l!==0&&Zf(t,l,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function Zf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ee(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Qf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ee(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Kf(t,e){var n=e&-e;return n=(n&42)!==0?1:ko(n),(n&(t.suspendedLanes|e))!==0?0:n}function ko(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 Xo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jf(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Vp(t.type))}function Ff(t,e){var n=Y.p;try{return Y.p=t,e()}finally{Y.p=n}}var zn=Math.random().toString(36).slice(2),ie="__reactFiber$"+zn,ge="__reactProps$"+zn,Ra="__reactContainer$"+zn,Zo="__reactEvents$"+zn,j1="__reactListeners$"+zn,N1="__reactHandles$"+zn,Pf="__reactResources$"+zn,Ni="__reactMarker$"+zn;function Qo(t){delete t[ie],delete t[ge],delete t[Zo],delete t[j1],delete t[N1]}function Oa(t){var e=t[ie];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ra]||n[ie]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=yp(t);t!==null;){if(n=t[ie])return n;t=yp(t)}return e}t=n,n=t.parentNode}return null}function _a(t){if(t=t[ie]||t[Ra]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Bi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Va(t){var e=t[Pf];return e||(e=t[Pf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ne(t){t[Ni]=!0}var Wf=new Set,$f={};function sa(t,e){ja(t,e),ja(t+"Capture",e)}function ja(t,e){for($f[t]=e,t=0;t<e.length;t++)Wf.add(e[t])}var B1=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]*$"),If={},td={};function L1(t){return Ho.call(td,t)?!0:Ho.call(If,t)?!1:B1.test(t)?td[t]=!0:(If[t]=!0,!1)}function $l(t,e,n){if(L1(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Il(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 on(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ed(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function U1(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ko(t){if(!t._valueTracker){var e=ed(t)?"checked":"value";t._valueTracker=U1(t,e,""+t[e])}}function nd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=ed(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function ts(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}}var H1=/[\n"\\]/g;function Ne(t){return t.replace(H1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Jo(t,e,n,l,r,u,h,v){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Fo(t,h,je(e)):n!=null?Fo(t,h,je(n)):l!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+je(v):t.removeAttribute("name")}function ad(t,e,n,l,r,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Ko(t);return}n=n!=null?""+je(n):"",e=e!=null?""+je(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Ko(t)}function Fo(t,e,n){e==="number"&&ts(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Na(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+je(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function id(t,e,n){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+je(n):""}function ld(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(Dt(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=je(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ko(t)}function Ba(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var G1=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 sd(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||G1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function od(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&sd(t,r,l)}else for(var u in e)e.hasOwnProperty(u)&&sd(t,u,e[u])}function Po(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 q1=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"],["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"]]),Y1=/^[\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 es(t){return Y1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rn(){}var Wo=null;function $o(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,Ua=null;function rd(t){var e=_a(t);if(e&&(t=e.stateNode)){var n=t[ge]||null;t:switch(t=e.stateNode,e.type){case"input":if(Jo(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="'+Ne(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[ge]||null;if(!r)throw Error(o(90));Jo(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&nd(l)}break t;case"textarea":id(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Na(t,!!n.multiple,e,!1)}}}var Io=!1;function ud(t,e,n){if(Io)return t(e,n);Io=!0;try{var l=t(e);return l}finally{if(Io=!1,(La!==null||Ua!==null)&&(Ys(),La&&(e=La,t=Ua,Ua=La=null,rd(e),t)))for(e=0;e<t.length;e++)rd(t[e])}}function Li(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ge]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tr=!1;if(un)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){tr=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{tr=!1}var Rn=null,er=null,ns=null;function cd(){if(ns)return ns;var t,e=er,n=e.length,l,r="value"in Rn?Rn.value:Rn.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[u-l];l++);return ns=r.slice(t,1<l?1-l:void 0)}function as(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 is(){return!0}function fd(){return!1}function ye(t){function e(n,l,r,u,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?is:fd,this.isPropagationStopped=fd,this}return b(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=is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),e}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=ye(oa),Hi=b({},oa,{view:0,detail:0}),k1=ye(Hi),nr,ar,Gi,ss=b({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,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!==Gi&&(Gi&&t.type==="mousemove"?(nr=t.screenX-Gi.screenX,ar=t.screenY-Gi.screenY):ar=nr=0,Gi=t),nr)},movementY:function(t){return"movementY"in t?t.movementY:ar}}),dd=ye(ss),X1=b({},ss,{dataTransfer:0}),Z1=ye(X1),Q1=b({},Hi,{relatedTarget:0}),ir=ye(Q1),K1=b({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),J1=ye(K1),F1=b({},oa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),P1=ye(F1),W1=b({},oa,{data:0}),hd=ye(W1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I1={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"},t2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e2(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=t2[t])?!!e[t]:!1}function lr(){return e2}var n2=b({},Hi,{key:function(t){if(t.key){var e=$1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=as(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?I1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(t){return t.type==="keypress"?as(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?as(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),a2=ye(n2),i2=b({},ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),md=ye(i2),l2=b({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),s2=ye(l2),o2=b({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),r2=ye(o2),u2=b({},ss,{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}),c2=ye(u2),f2=b({},oa,{newState:0,oldState:0}),d2=ye(f2),h2=[9,13,27,32],sr=un&&"CompositionEvent"in window,qi=null;un&&"documentMode"in document&&(qi=document.documentMode);var m2=un&&"TextEvent"in window&&!qi,pd=un&&(!sr||qi&&8<qi&&11>=qi),gd=" ",yd=!1;function vd(t,e){switch(t){case"keyup":return h2.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ha=!1;function p2(t,e){switch(t){case"compositionend":return bd(e);case"keypress":return e.which!==32?null:(yd=!0,gd);case"textInput":return t=e.data,t===gd&&yd?null:t;default:return null}}function g2(t,e){if(Ha)return t==="compositionend"||!sr&&vd(t,e)?(t=cd(),ns=er=Rn=null,Ha=!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 pd&&e.locale!=="ko"?null:e.data;default:return null}}var y2={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 Sd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!y2[t.type]:e==="textarea"}function xd(t,e,n,l){La?Ua?Ua.push(l):Ua=[l]:La=l,e=Fs(e,"onChange"),0<e.length&&(n=new ls("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Yi=null,ki=null;function v2(t){ap(t,0)}function os(t){var e=Bi(t);if(nd(e))return t}function Td(t,e){if(t==="change")return e}var Ad=!1;if(un){var or;if(un){var rr="oninput"in document;if(!rr){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),rr=typeof Md.oninput=="function"}or=rr}else or=!1;Ad=or&&(!document.documentMode||9<document.documentMode)}function Cd(){Yi&&(Yi.detachEvent("onpropertychange",Ed),ki=Yi=null)}function Ed(t){if(t.propertyName==="value"&&os(ki)){var e=[];xd(e,ki,t,$o(t)),ud(v2,e)}}function b2(t,e,n){t==="focusin"?(Cd(),Yi=e,ki=n,Yi.attachEvent("onpropertychange",Ed)):t==="focusout"&&Cd()}function S2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return os(ki)}function x2(t,e){if(t==="click")return os(e)}function T2(t,e){if(t==="input"||t==="change")return os(e)}function A2(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var De=typeof Object.is=="function"?Object.is:A2;function Xi(t,e){if(De(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Ho.call(e,r)||!De(t[r],e[r]))return!1}return!0}function Dd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wd(t,e){var n=Dd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Dd(n)}}function zd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Rd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ts(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=ts(t.document)}return e}function ur(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 M2=un&&"documentMode"in document&&11>=document.documentMode,Ga=null,cr=null,Zi=null,fr=!1;function Od(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fr||Ga==null||Ga!==ts(l)||(l=Ga,"selectionStart"in l&&ur(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Zi&&Xi(Zi,l)||(Zi=l,l=Fs(cr,"onSelect"),0<l.length&&(e=new ls("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ga)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qa={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},dr={},_d={};un&&(_d=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function ua(t){if(dr[t])return dr[t];if(!qa[t])return t;var e=qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in _d)return dr[t]=e[n];return t}var Vd=ua("animationend"),jd=ua("animationiteration"),Nd=ua("animationstart"),C2=ua("transitionrun"),E2=ua("transitionstart"),D2=ua("transitioncancel"),Bd=ua("transitionend"),Ld=new Map,hr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hr.push("scrollEnd");function Je(t,e){Ld.set(t,e),sa(e,[t])}var rs=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)},Be=[],Ya=0,mr=0;function us(){for(var t=Ya,e=mr=Ya=0;e<t;){var n=Be[e];Be[e++]=null;var l=Be[e];Be[e++]=null;var r=Be[e];Be[e++]=null;var u=Be[e];if(Be[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}u!==0&&Ud(n,r,u)}}function cs(t,e,n,l){Be[Ya++]=t,Be[Ya++]=e,Be[Ya++]=n,Be[Ya++]=l,mr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function pr(t,e,n,l){return cs(t,e,n,l),fs(t)}function ca(t,e){return cs(t,null,null,e),fs(t)}function Ud(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-Ee(n),t=u.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),u):null}function fs(t){if(50<hl)throw hl=0,Mu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function w2(t,e,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(t,e,n,l){return new w2(t,e,n,l)}function gr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=we(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&65011712,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 Hd(t,e){t.flags&=65011714;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 ds(t,e,n,l,r,u){var h=0;if(l=t,typeof t=="function")gr(t)&&(h=1);else if(typeof t=="string")h=Vv(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case at:return t=we(31,n,e,r),t.elementType=at,t.lanes=u,t;case L:return fa(n.children,r,u,e);case R:h=8,r|=24;break;case q:return t=we(12,n,e,r|2),t.elementType=q,t.lanes=u,t;case F:return t=we(13,n,e,r),t.elementType=F,t.lanes=u,t;case W:return t=we(19,n,e,r),t.elementType=W,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:h=10;break t;case Q:h=9;break t;case P:h=11;break t;case K:h=14;break t;case O:h=16,l=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=we(h,n,e,r),e.elementType=t,e.type=l,e.lanes=u,e}function fa(t,e,n,l){return t=we(7,t,l,e),t.lanes=n,t}function yr(t,e,n){return t=we(6,t,null,e),t.lanes=n,t}function Gd(t){var e=we(18,null,null,0);return e.stateNode=t,e}function vr(t,e,n){return e=we(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var qd=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var n=qd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Gf(e)},qd.set(t,e),e)}return{value:t,source:e,stack:Gf(e)}}var Xa=[],Za=0,hs=null,Qi=0,Ue=[],He=0,On=null,tn=1,en="";function fn(t,e){Xa[Za++]=Qi,Xa[Za++]=hs,hs=t,Qi=e}function Yd(t,e,n){Ue[He++]=tn,Ue[He++]=en,Ue[He++]=On,On=t;var l=tn;t=en;var r=32-Ee(l)-1;l&=~(1<<r),n+=1;var u=32-Ee(e)+r;if(30<u){var h=r-r%5;u=(l&(1<<h)-1).toString(32),l>>=h,r-=h,tn=1<<32-Ee(e)+r|n<<r|l,en=u+t}else tn=1<<u|n<<r|l,en=t}function br(t){t.return!==null&&(fn(t,1),Yd(t,1,0))}function Sr(t){for(;t===hs;)hs=Xa[--Za],Xa[Za]=null,Qi=Xa[--Za],Xa[Za]=null;for(;t===On;)On=Ue[--He],Ue[He]=null,en=Ue[--He],Ue[He]=null,tn=Ue[--He],Ue[He]=null}function kd(t,e){Ue[He++]=tn,Ue[He++]=en,Ue[He++]=On,tn=e.id,en=e.overflow,On=t}var le=null,Nt=null,xt=!1,_n=null,Ge=!1,xr=Error(o(519));function Vn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(Le(e,t)),xr}function Xd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ie]=t,e[ge]=l,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<pl.length;n++)yt(pl[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),ad(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),ld(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||op(e.textContent,n)?(l.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),l.onScroll!=null&&yt("scroll",e),l.onScrollEnd!=null&&yt("scrollend",e),l.onClick!=null&&(e.onclick=rn),e=!0):e=!1,e||Vn(t,!0)}function Zd(t){for(le=t.return;le;)switch(le.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:le=le.return}}function Qa(t){if(t!==le)return!1;if(!xt)return Zd(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Hu(t.type,t.memoizedProps)),n=!n),n&&Nt&&Vn(t),Zd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Nt=gp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Nt=gp(t)}else e===27?(e=Nt,Kn(t.type)?(t=Xu,Xu=null,Nt=t):Nt=e):Nt=le?Ye(t.stateNode.nextSibling):null;return!0}function da(){Nt=le=null,xt=!1}function Tr(){var t=_n;return t!==null&&(xe===null?xe=t:xe.push.apply(xe,t),_n=null),t}function Ki(t){_n===null?_n=[t]:_n.push(t)}var Ar=T(null),ha=null,dn=null;function jn(t,e,n){k(Ar,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=Ar.current,N(Ar)}function Mr(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Cr(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var v=u;u=r;for(var x=0;x<e.length;x++)if(v.context===e[x]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Mr(u.return,n,t),l||(h=null);break t}u=v.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Mr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Ka(t,e,n,l){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var v=r.type;De(r.pendingProps.value,h.value)||(t!==null?t.push(v):t=[v])}}else if(r===lt.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Sl):t=[Sl])}r=r.return}t!==null&&Cr(e,t,n,l),e.flags|=262144}function ms(t){for(t=t.firstContext;t!==null;){if(!De(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function se(t){return Qd(ha,t)}function ps(t,e){return ha===null&&ma(t),Qd(t,e)}function Qd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(o(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var z2=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},R2=a.unstable_scheduleCallback,O2=a.unstable_NormalPriority,Ft={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Er(){return{controller:new z2,data:new Map,refCount:0}}function Ji(t){t.refCount--,t.refCount===0&&R2(O2,function(){t.controller.abort()})}var Fi=null,Dr=0,Ja=0,Fa=null;function _2(t,e){if(Fi===null){var n=Fi=[];Dr=0,Ja=Ru(),Fa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Dr++,e.then(Kd,Kd),e}function Kd(){if(--Dr===0&&Fi!==null){Fa!==null&&(Fa.status="fulfilled");var t=Fi;Fi=null,Ja=0,Fa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function V2(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var Jd=z.S;z.S=function(t,e){Om=Me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&_2(t,e),Jd!==null&&Jd(t,e)};var pa=T(null);function wr(){var t=pa.current;return t!==null?t:Vt.pooledCache}function gs(t,e){e===null?k(pa,pa.current):k(pa,e.pool)}function Fd(){var t=wr();return t===null?null:{parent:Ft._currentValue,pool:t}}var Pa=Error(o(460)),zr=Error(o(474)),ys=Error(o(542)),vs={then:function(){}};function Pd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Wd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(rn,rn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t;default:if(typeof e.status=="string")e.then(rn,rn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t}throw ya=e,Pa}}function ga(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ya=n,Pa):n}}var ya=null;function $d(){if(ya===null)throw Error(o(459));var t=ya;return ya=null,t}function Id(t){if(t===Pa||t===ys)throw Error(o(483))}var Wa=null,Pi=0;function bs(t){var e=Pi;return Pi+=1,Wa===null&&(Wa=[]),Wd(Wa,t,e)}function Wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ss(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function th(t){function e(C,A){if(t){var E=C.deletions;E===null?(C.deletions=[A],C.flags|=16):E.push(A)}}function n(C,A){if(!t)return null;for(;A!==null;)e(C,A),A=A.sibling;return null}function l(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function r(C,A){return C=cn(C,A),C.index=0,C.sibling=null,C}function u(C,A,E){return C.index=E,t?(E=C.alternate,E!==null?(E=E.index,E<A?(C.flags|=67108866,A):E):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function v(C,A,E,U){return A===null||A.tag!==6?(A=yr(E,C.mode,U),A.return=C,A):(A=r(A,E),A.return=C,A)}function x(C,A,E,U){var st=E.type;return st===L?B(C,A,E.props.children,U,E.key):A!==null&&(A.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===O&&ga(st)===A.type)?(A=r(A,E.props),Wi(A,E),A.return=C,A):(A=ds(E.type,E.key,E.props,null,C.mode,U),Wi(A,E),A.return=C,A)}function D(C,A,E,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==E.containerInfo||A.stateNode.implementation!==E.implementation?(A=vr(E,C.mode,U),A.return=C,A):(A=r(A,E.children||[]),A.return=C,A)}function B(C,A,E,U,st){return A===null||A.tag!==7?(A=fa(E,C.mode,U,st),A.return=C,A):(A=r(A,E),A.return=C,A)}function G(C,A,E){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=yr(""+A,C.mode,E),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case M:return E=ds(A.type,A.key,A.props,null,C.mode,E),Wi(E,A),E.return=C,E;case V:return A=vr(A,C.mode,E),A.return=C,A;case O:return A=ga(A),G(C,A,E)}if(Dt(A)||Et(A))return A=fa(A,C.mode,E,null),A.return=C,A;if(typeof A.then=="function")return G(C,bs(A),E);if(A.$$typeof===Z)return G(C,ps(C,A),E);Ss(C,A)}return null}function w(C,A,E,U){var st=A!==null?A.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return st!==null?null:v(C,A,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case M:return E.key===st?x(C,A,E,U):null;case V:return E.key===st?D(C,A,E,U):null;case O:return E=ga(E),w(C,A,E,U)}if(Dt(E)||Et(E))return st!==null?null:B(C,A,E,U,null);if(typeof E.then=="function")return w(C,A,bs(E),U);if(E.$$typeof===Z)return w(C,A,ps(C,E),U);Ss(C,E)}return null}function _(C,A,E,U,st){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(E)||null,v(A,C,""+U,st);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case M:return C=C.get(U.key===null?E:U.key)||null,x(A,C,U,st);case V:return C=C.get(U.key===null?E:U.key)||null,D(A,C,U,st);case O:return U=ga(U),_(C,A,E,U,st)}if(Dt(U)||Et(U))return C=C.get(E)||null,B(A,C,U,st,null);if(typeof U.then=="function")return _(C,A,E,bs(U),st);if(U.$$typeof===Z)return _(C,A,E,ps(A,U),st);Ss(A,U)}return null}function $(C,A,E,U){for(var st=null,At=null,nt=A,ht=A=0,bt=null;nt!==null&&ht<E.length;ht++){nt.index>ht?(bt=nt,nt=null):bt=nt.sibling;var Mt=w(C,nt,E[ht],U);if(Mt===null){nt===null&&(nt=bt);break}t&&nt&&Mt.alternate===null&&e(C,nt),A=u(Mt,A,ht),At===null?st=Mt:At.sibling=Mt,At=Mt,nt=bt}if(ht===E.length)return n(C,nt),xt&&fn(C,ht),st;if(nt===null){for(;ht<E.length;ht++)nt=G(C,E[ht],U),nt!==null&&(A=u(nt,A,ht),At===null?st=nt:At.sibling=nt,At=nt);return xt&&fn(C,ht),st}for(nt=l(nt);ht<E.length;ht++)bt=_(nt,C,ht,E[ht],U),bt!==null&&(t&&bt.alternate!==null&&nt.delete(bt.key===null?ht:bt.key),A=u(bt,A,ht),At===null?st=bt:At.sibling=bt,At=bt);return t&&nt.forEach(function($n){return e(C,$n)}),xt&&fn(C,ht),st}function ot(C,A,E,U){if(E==null)throw Error(o(151));for(var st=null,At=null,nt=A,ht=A=0,bt=null,Mt=E.next();nt!==null&&!Mt.done;ht++,Mt=E.next()){nt.index>ht?(bt=nt,nt=null):bt=nt.sibling;var $n=w(C,nt,Mt.value,U);if($n===null){nt===null&&(nt=bt);break}t&&nt&&$n.alternate===null&&e(C,nt),A=u($n,A,ht),At===null?st=$n:At.sibling=$n,At=$n,nt=bt}if(Mt.done)return n(C,nt),xt&&fn(C,ht),st;if(nt===null){for(;!Mt.done;ht++,Mt=E.next())Mt=G(C,Mt.value,U),Mt!==null&&(A=u(Mt,A,ht),At===null?st=Mt:At.sibling=Mt,At=Mt);return xt&&fn(C,ht),st}for(nt=l(nt);!Mt.done;ht++,Mt=E.next())Mt=_(nt,C,ht,Mt.value,U),Mt!==null&&(t&&Mt.alternate!==null&&nt.delete(Mt.key===null?ht:Mt.key),A=u(Mt,A,ht),At===null?st=Mt:At.sibling=Mt,At=Mt);return t&&nt.forEach(function(Xv){return e(C,Xv)}),xt&&fn(C,ht),st}function _t(C,A,E,U){if(typeof E=="object"&&E!==null&&E.type===L&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case M:t:{for(var st=E.key;A!==null;){if(A.key===st){if(st=E.type,st===L){if(A.tag===7){n(C,A.sibling),U=r(A,E.props.children),U.return=C,C=U;break t}}else if(A.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===O&&ga(st)===A.type){n(C,A.sibling),U=r(A,E.props),Wi(U,E),U.return=C,C=U;break t}n(C,A);break}else e(C,A);A=A.sibling}E.type===L?(U=fa(E.props.children,C.mode,U,E.key),U.return=C,C=U):(U=ds(E.type,E.key,E.props,null,C.mode,U),Wi(U,E),U.return=C,C=U)}return h(C);case V:t:{for(st=E.key;A!==null;){if(A.key===st)if(A.tag===4&&A.stateNode.containerInfo===E.containerInfo&&A.stateNode.implementation===E.implementation){n(C,A.sibling),U=r(A,E.children||[]),U.return=C,C=U;break t}else{n(C,A);break}else e(C,A);A=A.sibling}U=vr(E,C.mode,U),U.return=C,C=U}return h(C);case O:return E=ga(E),_t(C,A,E,U)}if(Dt(E))return $(C,A,E,U);if(Et(E)){if(st=Et(E),typeof st!="function")throw Error(o(150));return E=st.call(E),ot(C,A,E,U)}if(typeof E.then=="function")return _t(C,A,bs(E),U);if(E.$$typeof===Z)return _t(C,A,ps(C,E),U);Ss(C,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,A!==null&&A.tag===6?(n(C,A.sibling),U=r(A,E),U.return=C,C=U):(n(C,A),U=yr(E,C.mode,U),U.return=C,C=U),h(C)):n(C,A)}return function(C,A,E,U){try{Pi=0;var st=_t(C,A,E,U);return Wa=null,st}catch(nt){if(nt===Pa||nt===ys)throw nt;var At=we(29,nt,null,C.mode);return At.lanes=U,At.return=C,At}finally{}}}var va=th(!0),eh=th(!1),Nn=!1;function Rr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Or(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 Bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ct&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=fs(t),Ud(t,null,n),e}return cs(t,l,e,n),fs(t)}function $i(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Qf(t,n)}}function _r(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Vr=!1;function Ii(){if(Vr){var t=Fa;if(t!==null)throw t}}function tl(t,e,n,l){Vr=!1;var r=t.updateQueue;Nn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var x=v,D=x.next;x.next=null,h===null?u=D:h.next=D,h=x;var B=t.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==h&&(v===null?B.firstBaseUpdate=D:v.next=D,B.lastBaseUpdate=x))}if(u!==null){var G=r.baseState;h=0,B=D=x=null,v=u;do{var w=v.lane&-536870913,_=w!==v.lane;if(_?(vt&w)===w:(l&w)===w){w!==0&&w===Ja&&(Vr=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var $=t,ot=v;w=e;var _t=n;switch(ot.tag){case 1:if($=ot.payload,typeof $=="function"){G=$.call(_t,G,w);break t}G=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=ot.payload,w=typeof $=="function"?$.call(_t,G,w):$,w==null)break t;G=b({},G,w);break t;case 2:Nn=!0}}w=v.callback,w!==null&&(t.flags|=64,_&&(t.flags|=8192),_=r.callbacks,_===null?r.callbacks=[w]:_.push(w))}else _={lane:w,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(D=B=_,x=G):B=B.next=_,h|=w;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;_=v,v=_.next,_.next=null,r.lastBaseUpdate=_,r.shared.pending=null}}while(!0);B===null&&(x=G),r.baseState=x,r.firstBaseUpdate=D,r.lastBaseUpdate=B,u===null&&(r.shared.lanes=0),Yn|=h,t.lanes=h,t.memoizedState=G}}function nh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function ah(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)nh(n[t],e)}var $a=T(null),xs=T(0);function ih(t,e){t=Tn,k(xs,t),k($a,e),Tn=t|e.baseLanes}function jr(){k(xs,Tn),k($a,$a.current)}function Nr(){Tn=xs.current,N($a),N(xs)}var ze=T(null),qe=null;function Un(t){var e=t.alternate;k(Qt,Qt.current&1),k(ze,t),qe===null&&(e===null||$a.current!==null||e.memoizedState!==null)&&(qe=t)}function Br(t){k(Qt,Qt.current),k(ze,t),qe===null&&(qe=t)}function lh(t){t.tag===22?(k(Qt,Qt.current),k(ze,t),qe===null&&(qe=t)):Hn()}function Hn(){k(Qt,Qt.current),k(ze,ze.current)}function Re(t){N(ze),qe===t&&(qe=null),N(Qt)}var Qt=T(0);function Ts(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yu(n)||ku(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){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 mn=0,dt=null,Rt=null,Pt=null,As=!1,Ia=!1,ba=!1,Ms=0,el=0,ti=null,j2=0;function qt(){throw Error(o(321))}function Lr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!De(t[n],e[n]))return!1;return!0}function Ur(t,e,n,l,r,u){return mn=u,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Yh:Ir,ba=!1,u=n(l,r),ba=!1,Ia&&(u=oh(e,n,l,r)),sh(t),u}function sh(t){z.H=il;var e=Rt!==null&&Rt.next!==null;if(mn=0,Pt=Rt=dt=null,As=!1,el=0,ti=null,e)throw Error(o(300));t===null||Wt||(t=t.dependencies,t!==null&&ms(t)&&(Wt=!0))}function oh(t,e,n,l){dt=t;var r=0;do{if(Ia&&(ti=null),el=0,Ia=!1,25<=r)throw Error(o(301));if(r+=1,Pt=Rt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=kh,u=e(n,l)}while(Ia);return u}function N2(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?nl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(dt.flags|=1024),e}function Hr(){var t=Ms!==0;return Ms=0,t}function Gr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function qr(t){if(As){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}As=!1}mn=0,Pt=Rt=dt=null,Ia=!1,el=Ms=0,ti=null}function he(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?dt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Kt(){if(Rt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Pt===null?dt.memoizedState:Pt.next;if(e!==null)Pt=e,Rt=t;else{if(t===null)throw dt.alternate===null?Error(o(467)):Error(o(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Pt===null?dt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(t){var e=el;return el+=1,ti===null&&(ti=[]),t=Wd(ti,t,e),e=dt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Yh:Ir),t}function Es(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nl(t);if(t.$$typeof===Z)return se(t)}throw Error(o(438,String(t)))}function Yr(t){var e=null,n=dt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=dt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Cs(),dt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=et;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function Ds(t){var e=Kt();return kr(e,Rt,t)}function kr(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var r=t.baseQueue,u=l.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,l.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var v=h=null,x=null,D=e,B=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(vt&G)===G:(mn&G)===G){var w=D.revertLane;if(w===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===Ja&&(B=!0);else if((mn&w)===w){D=D.next,w===Ja&&(B=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(v=x=G,h=u):x=x.next=G,dt.lanes|=w,Yn|=w;G=D.action,ba&&n(u,G),u=D.hasEagerState?D.eagerState:n(u,G)}else w={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(v=x=w,h=u):x=x.next=w,dt.lanes|=G,Yn|=G;D=D.next}while(D!==null&&D!==e);if(x===null?h=u:x.next=v,!De(u,t.memoizedState)&&(Wt=!0,B&&(n=Fa,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=x,l.lastRenderedState=u}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Xr(t){var e=Kt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);De(u,e.memoizedState)||(Wt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function rh(t,e,n){var l=dt,r=Kt(),u=xt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!De((Rt||r).memoizedState,n);if(h&&(r.memoizedState=n,Wt=!0),r=r.queue,Kr(fh.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Pt!==null&&Pt.memoizedState.tag&1){if(l.flags|=2048,ei(9,{destroy:void 0},ch.bind(null,l,r,n,e),null),Vt===null)throw Error(o(349));u||(mn&127)!==0||uh(l,e,n)}return n}function uh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=dt.updateQueue,e===null?(e=Cs(),dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ch(t,e,n,l){e.value=n,e.getSnapshot=l,dh(e)&&hh(t)}function fh(t,e,n){return n(function(){dh(e)&&hh(t)})}function dh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!De(t,n)}catch{return!0}}function hh(t){var e=ca(t,2);e!==null&&Te(e,t,2)}function Zr(t){var e=he();if(typeof t=="function"){var n=t;if(t=n(),ba){wn(!0);try{n()}finally{wn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function mh(t,e,n,l){return t.baseState=n,kr(t,Rt,typeof l=="function"?l:pn)}function B2(t,e,n,l,r){if(Rs(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};z.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,ph(e,u)):(u.next=n.next,e.pending=n.next=u)}}function ph(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var u=z.T,h={};z.T=h;try{var v=n(r,l),x=z.S;x!==null&&x(h,v),gh(t,e,v)}catch(D){Qr(t,e,D)}finally{u!==null&&h.types!==null&&(u.types=h.types),z.T=u}}else try{u=n(r,l),gh(t,e,u)}catch(D){Qr(t,e,D)}}function gh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){yh(t,e,l)},function(l){return Qr(t,e,l)}):yh(t,e,n)}function yh(t,e,n){e.status="fulfilled",e.value=n,vh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,ph(t,n)))}function Qr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,vh(e),e=e.next;while(e!==l)}t.action=null}function vh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function bh(t,e){return e}function Sh(t,e){if(xt){var n=Vt.formState;if(n!==null){t:{var l=dt;if(xt){if(Nt){e:{for(var r=Nt,u=Ge;r.nodeType!==8;){if(!u){r=null;break e}if(r=Ye(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Nt=Ye(r.nextSibling),l=r.data==="F!";break t}}Vn(l)}l=!1}l&&(e=n[0])}}return n=he(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:e},n.queue=l,n=Hh.bind(null,dt,l),l.dispatch=n,l=Zr(!1),u=$r.bind(null,dt,!1,l.queue),l=he(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=B2.bind(null,dt,r,u,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function xh(t){var e=Kt();return Th(e,Rt,t)}function Th(t,e,n){if(e=kr(t,e,bh)[0],t=Ds(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=nl(e)}catch(h){throw h===Pa?ys:h}else l=e;e=Kt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(dt.flags|=2048,ei(9,{destroy:void 0},L2.bind(null,r,n),null)),[l,u,t]}function L2(t,e){t.action=e}function Ah(t){var e=Kt(),n=Rt;if(n!==null)return Th(e,n,t);Kt(),e=e.memoizedState,n=Kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ei(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=dt.updateQueue,e===null&&(e=Cs(),dt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Mh(){return Kt().memoizedState}function ws(t,e,n,l){var r=he();dt.flags|=t,r.memoizedState=ei(1|e,{destroy:void 0},n,l===void 0?null:l)}function zs(t,e,n,l){var r=Kt();l=l===void 0?null:l;var u=r.memoizedState.inst;Rt!==null&&l!==null&&Lr(l,Rt.memoizedState.deps)?r.memoizedState=ei(e,u,n,l):(dt.flags|=t,r.memoizedState=ei(1|e,u,n,l))}function Ch(t,e){ws(8390656,8,t,e)}function Kr(t,e){zs(2048,8,t,e)}function U2(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=Cs(),dt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Eh(t){var e=Kt().memoizedState;return U2({ref:e,nextImpl:t}),function(){if((Ct&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Dh(t,e){return zs(4,2,t,e)}function wh(t,e){return zs(4,4,t,e)}function zh(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 Rh(t,e,n){n=n!=null?n.concat([t]):null,zs(4,4,zh.bind(null,e,t),n)}function Jr(){}function Oh(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Lr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function _h(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Lr(e,l[1]))return l[0];if(l=t(),ba){wn(!0);try{t()}finally{wn(!1)}}return n.memoizedState=[l,e],l}function Fr(t,e,n){return n===void 0||(mn&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Vm(),dt.lanes|=t,Yn|=t,n)}function Vh(t,e,n,l){return De(n,e)?n:$a.current!==null?(t=Fr(t,n,l),De(t,e)||(Wt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(vt&261930)===0?(Wt=!0,t.memoizedState=n):(t=Vm(),dt.lanes|=t,Yn|=t,e)}function jh(t,e,n,l,r){var u=Y.p;Y.p=u!==0&&8>u?u:8;var h=z.T,v={};z.T=v,$r(t,!1,e,n);try{var x=r(),D=z.S;if(D!==null&&D(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var B=V2(x,l);al(t,e,B,Ve(t))}else al(t,e,l,Ve(t))}catch(G){al(t,e,{then:function(){},status:"rejected",reason:G},Ve())}finally{Y.p=u,h!==null&&v.types!==null&&(h.types=v.types),z.T=h}}function H2(){}function Pr(t,e,n,l){if(t.tag!==5)throw Error(o(476));var r=Nh(t).queue;jh(t,r,e,H,n===null?H2:function(){return Bh(t),n(l)})}function Nh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:H},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Bh(t){var e=Nh(t);e.next===null&&(e=t.alternate.memoizedState),al(t,e.next.queue,{},Ve())}function Wr(){return se(Sl)}function Lh(){return Kt().memoizedState}function Uh(){return Kt().memoizedState}function G2(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ve();t=Bn(n);var l=Ln(e,t,n);l!==null&&(Te(l,e,n),$i(l,e,n)),e={cache:Er()},t.payload=e;return}e=e.return}}function q2(t,e,n){var l=Ve();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(t)?Gh(e,n):(n=pr(t,e,n,l),n!==null&&(Te(n,t,l),qh(n,e,l)))}function Hh(t,e,n){var l=Ve();al(t,e,n,l)}function al(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(t))Gh(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,v=u(h,n);if(r.hasEagerState=!0,r.eagerState=v,De(v,h))return cs(t,e,r,0),Vt===null&&us(),!1}catch{}finally{}if(n=pr(t,e,r,l),n!==null)return Te(n,t,l),qh(n,e,l),!0}return!1}function $r(t,e,n,l){if(l={lane:2,revertLane:Ru(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rs(t)){if(e)throw Error(o(479))}else e=pr(t,n,l,2),e!==null&&Te(e,t,2)}function Rs(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function Gh(t,e){Ia=As=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function qh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Qf(t,n)}}var il={readContext:se,use:Es,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};il.useEffectEvent=qt;var Yh={readContext:se,use:Es,useCallback:function(t,e){return he().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:Ch,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ws(4194308,4,zh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ws(4194308,4,t,e)},useInsertionEffect:function(t,e){ws(4,2,t,e)},useMemo:function(t,e){var n=he();e=e===void 0?null:e;var l=t();if(ba){wn(!0);try{t()}finally{wn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=he();if(n!==void 0){var r=n(e);if(ba){wn(!0);try{n(e)}finally{wn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=q2.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=he();return t={current:t},e.memoizedState=t},useState:function(t){t=Zr(t);var e=t.queue,n=Hh.bind(null,dt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Jr,useDeferredValue:function(t,e){var n=he();return Fr(n,t,e)},useTransition:function(){var t=Zr(!1);return t=jh.bind(null,dt,t.queue,!0,!1),he().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=dt,r=he();if(xt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Vt===null)throw Error(o(349));(vt&127)!==0||uh(l,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,Ch(fh.bind(null,l,u,t),[t]),l.flags|=2048,ei(9,{destroy:void 0},ch.bind(null,l,u,n,e),null),n},useId:function(){var t=he(),e=Vt.identifierPrefix;if(xt){var n=en,l=tn;n=(l&~(1<<32-Ee(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ms++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=j2++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Wr,useFormState:Sh,useActionState:Sh,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=$r.bind(null,dt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Yr,useCacheRefresh:function(){return he().memoizedState=G2.bind(null,dt)},useEffectEvent:function(t){var e=he(),n={impl:t};return e.memoizedState=n,function(){if((Ct&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Ir={readContext:se,use:Es,useCallback:Oh,useContext:se,useEffect:Kr,useImperativeHandle:Rh,useInsertionEffect:Dh,useLayoutEffect:wh,useMemo:_h,useReducer:Ds,useRef:Mh,useState:function(){return Ds(pn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Kt();return Vh(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Ds(pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:rh,useId:Lh,useHostTransitionStatus:Wr,useFormState:xh,useActionState:xh,useOptimistic:function(t,e){var n=Kt();return mh(n,Rt,t,e)},useMemoCache:Yr,useCacheRefresh:Uh};Ir.useEffectEvent=Eh;var kh={readContext:se,use:Es,useCallback:Oh,useContext:se,useEffect:Kr,useImperativeHandle:Rh,useInsertionEffect:Dh,useLayoutEffect:wh,useMemo:_h,useReducer:Xr,useRef:Mh,useState:function(){return Xr(pn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Kt();return Rt===null?Fr(n,t,e):Vh(n,Rt.memoizedState,t,e)},useTransition:function(){var t=Xr(pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:rh,useId:Lh,useHostTransitionStatus:Wr,useFormState:Ah,useActionState:Ah,useOptimistic:function(t,e){var n=Kt();return Rt!==null?mh(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Yr,useCacheRefresh:Uh};kh.useEffectEvent=Eh;function tu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var eu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ve(),r=Bn(l);r.payload=e,n!=null&&(r.callback=n),e=Ln(t,r,l),e!==null&&(Te(e,t,l),$i(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ve(),r=Bn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Ln(t,r,l),e!==null&&(Te(e,t,l),$i(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ve(),l=Bn(n);l.tag=2,e!=null&&(l.callback=e),e=Ln(t,l,n),e!==null&&(Te(e,t,n),$i(e,t,n))}};function Xh(t,e,n,l,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!Xi(n,l)||!Xi(r,u):!0}function Zh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&eu.enqueueReplaceState(e,e.state,null)}function Sa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Qh(t){rs(t)}function Kh(t){console.error(t)}function Jh(t){rs(t)}function Os(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Fh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function nu(t,e,n){return n=Bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Os(t,e)},n}function Ph(t){return t=Bn(t),t.tag=3,t}function Wh(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=l.value;t.payload=function(){return r(u)},t.callback=function(){Fh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Fh(e,n,l),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function Y2(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ka(e,n,r,!0),n=ze.current,n!==null){switch(n.tag){case 31:case 13:return qe===null?ks():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===vs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Du(t,l,r)),!1;case 22:return n.flags|=65536,l===vs?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Du(t,l,r)),!1}throw Error(o(435,n.tag))}return Du(t,l,r),ks(),!1}if(xt)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==xr&&(t=Error(o(422),{cause:l}),Ki(Le(t,n)))):(l!==xr&&(e=Error(o(423),{cause:l}),Ki(Le(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Le(l,n),r=nu(t.stateNode,l,r),_r(t,r),Yt!==4&&(Yt=2)),!1;var u=Error(o(520),{cause:l});if(u=Le(u,n),dl===null?dl=[u]:dl.push(u),Yt!==4&&(Yt=2),e===null)return!0;l=Le(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=nu(n.stateNode,l,t),_r(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(kn===null||!kn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Ph(r),Wh(r,t,n,l),_r(n,r),!1}n=n.return}while(n!==null);return!1}var au=Error(o(461)),Wt=!1;function oe(t,e,n,l){e.child=t===null?eh(e,null,n,l):va(e,t.child,n,l)}function $h(t,e,n,l,r){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var v in l)v!=="ref"&&(h[v]=l[v])}else h=l;return ma(e),l=Ur(t,e,n,h,u,r),v=Hr(),t!==null&&!Wt?(Gr(t,e,r),gn(t,e,r)):(xt&&v&&br(e),e.flags|=1,oe(t,e,l,r),e.child)}function Ih(t,e,n,l,r){if(t===null){var u=n.type;return typeof u=="function"&&!gr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,tm(t,e,u,l,r)):(t=ds(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!fu(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Xi,n(h,l)&&t.ref===e.ref)return gn(t,e,r)}return e.flags|=1,t=cn(u,l),t.ref=e.ref,t.return=e,e.child=t}function tm(t,e,n,l,r){if(t!==null){var u=t.memoizedProps;if(Xi(u,l)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=l=u,fu(t,r))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,gn(t,e,r)}return iu(t,e,n,l,r)}function em(t,e,n,l){var r=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~u}else l=0,e.child=null;return nm(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&gs(e,u!==null?u.cachePool:null),u!==null?ih(e,u):jr(),lh(e);else return l=e.lanes=536870912,nm(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(gs(e,u.cachePool),ih(e,u),Hn(),e.memoizedState=null):(t!==null&&gs(e,null),jr(),Hn());return oe(t,e,r,n),e.child}function ll(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function nm(t,e,n,l,r){var u=wr();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&gs(e,null),jr(),lh(e),t!==null&&Ka(t,e,l,!0),e.childLanes=r,null}function _s(t,e){return e=js({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function am(t,e,n){return va(e,t.child,null,n),t=_s(e,e.pendingProps),t.flags|=2,Re(e),e.memoizedState=null,t}function k2(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(l.mode==="hidden")return t=_s(e,l),e.lanes=536870912,ll(null,t);if(Br(e),(t=Nt)?(t=pp(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:On!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Gd(t),n.return=e,e.child=n,le=e,Nt=null)):t=null,t===null)throw Vn(e);return e.lanes=536870912,null}return _s(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(Br(e),r)if(e.flags&256)e.flags&=-257,e=am(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Wt||Ka(t,e,n,!1),r=(n&t.childLanes)!==0,Wt||r){if(l=Vt,l!==null&&(h=Kf(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,ca(t,h),Te(l,t,h),au;ks(),e=am(t,e,n)}else t=u.treeContext,Nt=Ye(h.nextSibling),le=e,xt=!0,_n=null,Ge=!1,t!==null&&kd(e,t),e=_s(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Vs(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function iu(t,e,n,l,r){return ma(e),n=Ur(t,e,n,l,void 0,r),l=Hr(),t!==null&&!Wt?(Gr(t,e,r),gn(t,e,r)):(xt&&l&&br(e),e.flags|=1,oe(t,e,n,r),e.child)}function im(t,e,n,l,r,u){return ma(e),e.updateQueue=null,n=oh(e,l,n,r),sh(t),l=Hr(),t!==null&&!Wt?(Gr(t,e,u),gn(t,e,u)):(xt&&l&&br(e),e.flags|=1,oe(t,e,n,u),e.child)}function lm(t,e,n,l,r){if(ma(e),e.stateNode===null){var u=ka,h=n.contextType;typeof h=="object"&&h!==null&&(u=se(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=eu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},Rr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?se(h):ka,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(tu(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&eu.enqueueReplaceState(u,u.state,null),tl(e,l,u,r),Ii(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var v=e.memoizedProps,x=Sa(n,v);u.props=x;var D=u.context,B=n.contextType;h=ka,typeof B=="object"&&B!==null&&(h=se(B));var G=n.getDerivedStateFromProps;B=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||D!==h)&&Zh(e,u,l,h),Nn=!1;var w=e.memoizedState;u.state=w,tl(e,l,u,r),Ii(),D=e.memoizedState,v||w!==D||Nn?(typeof G=="function"&&(tu(e,n,G,l),D=e.memoizedState),(x=Nn||Xh(e,n,x,l,w,D,h))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=D),u.props=l,u.state=D,u.context=h,l=x):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,Or(t,e),h=e.memoizedProps,B=Sa(n,h),u.props=B,G=e.pendingProps,w=u.context,D=n.contextType,x=ka,typeof D=="object"&&D!==null&&(x=se(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||w!==x)&&Zh(e,u,l,x),Nn=!1,w=e.memoizedState,u.state=w,tl(e,l,u,r),Ii();var _=e.memoizedState;h!==G||w!==_||Nn||t!==null&&t.dependencies!==null&&ms(t.dependencies)?(typeof v=="function"&&(tu(e,n,v,l),_=e.memoizedState),(B=Nn||Xh(e,n,B,l,w,_,x)||t!==null&&t.dependencies!==null&&ms(t.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,_,x),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,_,x)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=_),u.props=l,u.state=_,u.context=x,l=B):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,Vs(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,r),e.child=va(e,null,n,r)):oe(t,e,n,r),e.memoizedState=u.state,t=e.child):t=gn(t,e,r),t}function sm(t,e,n,l){return da(),e.flags|=256,oe(t,e,n,l),e.child}var lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function su(t){return{baseLanes:t,cachePool:Fd()}}function ou(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function om(t,e,n){var l=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(r?Un(e):Hn(),(t=Nt)?(t=pp(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:On!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Gd(t),n.return=e,e.child=n,le=e,Nt=null)):t=null,t===null)throw Vn(e);return ku(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,r?(Hn(),r=e.mode,v=js({mode:"hidden",children:v},r),l=fa(l,r,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=su(n),l.childLanes=ou(t,h,n),e.memoizedState=lu,ll(null,l)):(Un(e),ru(e,v))}var x=t.memoizedState;if(x!==null&&(v=x.dehydrated,v!==null)){if(u)e.flags&256?(Un(e),e.flags&=-257,e=uu(t,e,n)):e.memoizedState!==null?(Hn(),e.child=t.child,e.flags|=128,e=null):(Hn(),v=l.fallback,r=e.mode,l=js({mode:"visible",children:l.children},r),v=fa(v,r,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=su(n),l.childLanes=ou(t,h,n),e.memoizedState=lu,e=ll(null,l));else if(Un(e),ku(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var D=h.dgst;h=D,l=Error(o(419)),l.stack="",l.digest=h,Ki({value:l,source:null,stack:null}),e=uu(t,e,n)}else if(Wt||Ka(t,e,n,!1),h=(n&t.childLanes)!==0,Wt||h){if(h=Vt,h!==null&&(l=Kf(h,n),l!==0&&l!==x.retryLane))throw x.retryLane=l,ca(t,l),Te(h,t,l),au;Yu(v)||ks(),e=uu(t,e,n)}else Yu(v)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Nt=Ye(v.nextSibling),le=e,xt=!0,_n=null,Ge=!1,t!==null&&kd(e,t),e=ru(e,l.children),e.flags|=4096);return e}return r?(Hn(),v=l.fallback,r=e.mode,x=t.child,D=x.sibling,l=cn(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,D!==null?v=cn(D,v):(v=fa(v,r,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,ll(null,l),l=e.child,v=t.child.memoizedState,v===null?v=su(n):(r=v.cachePool,r!==null?(x=Ft._currentValue,r=r.parent!==x?{parent:x,pool:x}:r):r=Fd(),v={baseLanes:v.baseLanes|n,cachePool:r}),l.memoizedState=v,l.childLanes=ou(t,h,n),e.memoizedState=lu,ll(t.child,l)):(Un(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function ru(t,e){return e=js({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function js(t,e){return t=we(22,t,null,e),t.lanes=0,t}function uu(t,e,n){return va(e,t.child,null,n),t=ru(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rm(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Mr(t.return,e,n)}function cu(t,e,n,l,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function um(t,e,n){var l=e.pendingProps,r=l.revealOrder,u=l.tail;l=l.children;var h=Qt.current,v=(h&2)!==0;if(v?(h=h&1|2,e.flags|=128):h&=1,k(Qt,h),oe(t,e,l,n),l=xt?Qi:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rm(t,n,e);else if(t.tag===19)rm(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(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Ts(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),cu(e,!1,r,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Ts(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}cu(e,!0,n,null,u,l);break;case"together":cu(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function gn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Yn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ka(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function fu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ms(t)))}function X2(t,e,n){switch(e.tag){case 3:Lt(e,e.stateNode.containerInfo),jn(e,Ft,t.memoizedState.cache),da();break;case 27:case 5:pe(e);break;case 4:Lt(e,e.stateNode.containerInfo);break;case 10:jn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Br(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Un(e),e.flags|=128,null):(n&e.child.childLanes)!==0?om(t,e,n):(Un(e),t=gn(t,e,n),t!==null?t.sibling:null);Un(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ka(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return um(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),k(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,em(t,e,n,e.pendingProps);case 24:jn(e,Ft,t.memoizedState.cache)}return gn(t,e,n)}function cm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!fu(t,n)&&(e.flags&128)===0)return Wt=!1,X2(t,e,n);Wt=(t.flags&131072)!==0}else Wt=!1,xt&&(e.flags&1048576)!==0&&Yd(e,Qi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")gr(t)?(l=Sa(t,l),e.tag=1,e=lm(null,e,t,l,n)):(e.tag=0,e=iu(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===P){e.tag=11,e=$h(null,e,t,l,n);break t}else if(r===K){e.tag=14,e=Ih(null,e,t,l,n);break t}}throw e=jt(t)||t,Error(o(306,e,""))}}return e;case 0:return iu(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Sa(l,e.pendingProps),lm(t,e,l,r,n);case 3:t:{if(Lt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var u=e.memoizedState;r=u.element,Or(t,e),tl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,jn(e,Ft,l),l!==u.cache&&Cr(e,[Ft],n,!0),Ii(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=sm(t,e,l,n);break t}else if(l!==r){r=Le(Error(o(424)),e),Ki(r),e=sm(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Nt=Ye(t.firstChild),le=e,xt=!0,_n=null,Ge=!0,n=eh(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(da(),l===r){e=gn(t,e,n);break t}oe(t,e,l,n)}e=e.child}return e;case 26:return Vs(t,e),t===null?(n=xp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,l=Ps(ut.current).createElement(n),l[ie]=e,l[ge]=t,re(l,n,t),ne(l),e.stateNode=l):e.memoizedState=xp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pe(e),t===null&&xt&&(l=e.stateNode=vp(e.type,e.pendingProps,ut.current),le=e,Ge=!0,r=Nt,Kn(e.type)?(Xu=r,Nt=Ye(l.firstChild)):Nt=r),oe(t,e,e.pendingProps.children,n),Vs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((r=l=Nt)&&(l=Sv(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,le=e,Nt=Ye(l.firstChild),Ge=!1,r=!0):r=!1),r||Vn(e)),pe(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,Hu(r,u)?l=null:h!==null&&Hu(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=Ur(t,e,N2,null,null,n),Sl._currentValue=r),Vs(t,e),oe(t,e,l,n),e.child;case 6:return t===null&&xt&&((t=n=Nt)&&(n=xv(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,le=e,Nt=null,t=!0):t=!1),t||Vn(e)),null;case 13:return om(t,e,n);case 4:return Lt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):oe(t,e,l,n),e.child;case 11:return $h(t,e,e.type,e.pendingProps,n);case 7:return oe(t,e,e.pendingProps,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 l=e.pendingProps,jn(e,e.type,l.value),oe(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ma(e),r=se(r),l=l(r),e.flags|=1,oe(t,e,l,n),e.child;case 14:return Ih(t,e,e.type,e.pendingProps,n);case 15:return tm(t,e,e.type,e.pendingProps,n);case 19:return um(t,e,n);case 31:return k2(t,e,n);case 22:return em(t,e,n,e.pendingProps);case 24:return ma(e),l=se(Ft),t===null?(r=wr(),r===null&&(r=Vt,u=Er(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:l,cache:r},Rr(e),jn(e,Ft,r)):((t.lanes&n)!==0&&(Or(t,e),tl(e,null,null,n),Ii()),r=t.memoizedState,u=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),jn(e,Ft,l)):(l=u.cache,jn(e,Ft,l),l!==r.cache&&Cr(e,[Ft],n,!0))),oe(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function yn(t){t.flags|=4}function du(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Lm())t.flags|=8192;else throw ya=vs,zr}else t.flags&=-16777217}function fm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ep(e))if(Lm())t.flags|=8192;else throw ya=vs,zr}function Ns(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xf():536870912,t.lanes|=e,li|=e)}function sl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Z2(t,e,n){var l=e.pendingProps;switch(Sr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Ft),Tt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Qa(e)?yn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Tr())),Bt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(yn(e),u!==null?(Bt(e),fm(e,u)):(Bt(e),du(e,r,null,l,n))):u?u!==t.memoizedState?(yn(e),Bt(e),fm(e,u)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&yn(e),Bt(e),du(e,r,t,l,n)),null;case 27:if($e(e),n=ut.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&yn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Bt(e),null}t=J.current,Qa(e)?Xd(e):(t=vp(r,l,n),e.stateNode=t,yn(e))}return Bt(e),null;case 5:if($e(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&yn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Bt(e),null}if(u=J.current,Qa(e))Xd(e);else{var h=Ps(ut.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}u[ie]=e,u[ge]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(re(u,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&yn(e)}}return Bt(e),du(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&yn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=ut.current,Qa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=le,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ie]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||op(t.nodeValue,n)),t||Vn(e,!0)}else t=Ps(t).createTextNode(l),t[ie]=e,e.stateNode=t}return Bt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Qa(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ie]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else n=Tr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Re(e),e):(Re(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Bt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Qa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ie]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),r=!1}else r=Tr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Re(e),e):(Re(e),null)}return Re(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ns(e,e.updateQueue),Bt(e),null);case 4:return Tt(),t===null&&ju(e.stateNode.containerInfo),Bt(e),null;case 10:return hn(e.type),Bt(e),null;case 19:if(N(Qt),l=e.memoizedState,l===null)return Bt(e),null;if(r=(e.flags&128)!==0,u=l.rendering,u===null)if(r)sl(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ts(t),u!==null){for(e.flags|=128,sl(l,!1),t=u.updateQueue,e.updateQueue=t,Ns(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Hd(n,t),n=n.sibling;return k(Qt,Qt.current&1|2),xt&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Me()>Gs&&(e.flags|=128,r=!0,sl(l,!1),e.lanes=4194304)}else{if(!r)if(t=Ts(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Ns(e,t),sl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!xt)return Bt(e),null}else 2*Me()-l.renderingStartTime>Gs&&n!==536870912&&(e.flags|=128,r=!0,sl(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Me(),t.sibling=null,n=Qt.current,k(Qt,r?n&1|2:n&1),xt&&fn(e,l.treeForkCount),t):(Bt(e),null);case 22:case 23:return Re(e),Nr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),n=e.updateQueue,n!==null&&Ns(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&N(pa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Ft),Bt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Q2(t,e){switch(Sr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Ft),Tt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $e(e),null;case 31:if(e.memoizedState!==null){if(Re(e),e.alternate===null)throw Error(o(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Re(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(Qt),null;case 4:return Tt(),null;case 10:return hn(e.type),null;case 22:case 23:return Re(e),Nr(),t!==null&&N(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Ft),null;case 25:return null;default:return null}}function dm(t,e){switch(Sr(e),e.tag){case 3:hn(Ft),Tt();break;case 26:case 27:case 5:$e(e);break;case 4:Tt();break;case 31:e.memoizedState!==null&&Re(e);break;case 13:Re(e);break;case 19:N(Qt);break;case 10:hn(e.type);break;case 22:case 23:Re(e),Nr(),t!==null&&N(pa);break;case 24:hn(Ft)}}function ol(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==r)}}catch(v){zt(e,e.return,v)}}function Gn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var u=r.next;l=u;do{if((l.tag&t)===t){var h=l.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,r=e;var x=n,D=v;try{D()}catch(B){zt(r,x,B)}}}l=l.next}while(l!==u)}}catch(B){zt(e,e.return,B)}}function hm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{ah(e,n)}catch(l){zt(t,t.return,l)}}}function mm(t,e,n){n.props=Sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){zt(t,e,l)}}function rl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){zt(t,e,r)}}function nn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){zt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){zt(t,e,r)}else n.current=null}function pm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){zt(t,t.return,r)}}function hu(t,e,n){try{var l=t.stateNode;mv(l,t.type,n,e),l[ge]=e}catch(r){zt(t,t.return,r)}}function gm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Kn(t.type)||t.tag===4}function mu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gm(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&&Kn(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 pu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=rn));else if(l!==4&&(l===27&&Kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(pu(t,e,n),t=t.sibling;t!==null;)pu(t,e,n),t=t.sibling}function Bs(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Bs(t,e,n),t=t.sibling;t!==null;)Bs(t,e,n),t=t.sibling}function ym(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);re(e,l,n),e[ie]=t,e[ge]=n}catch(u){zt(t,t.return,u)}}var vn=!1,$t=!1,gu=!1,vm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function K2(t,e){if(t=t.containerInfo,Lu=ao,t=Rd(t),ur(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,v=-1,x=-1,D=0,B=0,G=t,w=null;e:for(;;){for(var _;G!==n||r!==0&&G.nodeType!==3||(v=h+r),G!==u||l!==0&&G.nodeType!==3||(x=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(_=G.firstChild)!==null;)w=G,G=_;for(;;){if(G===t)break e;if(w===n&&++D===r&&(v=h),w===u&&++B===l&&(x=h),(_=G.nextSibling)!==null)break;G=w,w=G.parentNode}G=_}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uu={focusedElem:t,selectionRange:n},ao=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var $=Sa(n.type,r);t=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(ot){zt(n,n.return,ot)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)qu(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function bm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(t,n),l&4&&ol(5,n);break;case 1:if(Sn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){zt(n,n.return,h)}else{var r=Sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){zt(n,n.return,h)}}l&64&&hm(n),l&512&&rl(n,n.return);break;case 3:if(Sn(t,n),l&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{ah(t,e)}catch(h){zt(n,n.return,h)}}break;case 27:e===null&&l&4&&ym(n);case 26:case 5:Sn(t,n),e===null&&l&4&&pm(n),l&512&&rl(n,n.return);break;case 12:Sn(t,n);break;case 31:Sn(t,n),l&4&&Tm(t,n);break;case 13:Sn(t,n),l&4&&Am(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=nv.bind(null,n),Tv(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||$t,r=vn;var u=$t;vn=l,($t=e)&&!u?xn(t,n,(n.subtreeFlags&8772)!==0):Sn(t,n),vn=r,$t=u}break;case 30:break;default:Sn(t,n)}}function Sm(t){var e=t.alternate;e!==null&&(t.alternate=null,Sm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Qo(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 Ut=null,ve=!1;function bn(t,e,n){for(n=n.child;n!==null;)xm(t,e,n),n=n.sibling}function xm(t,e,n){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(_i,n)}catch{}switch(n.tag){case 26:$t||nn(n,e),bn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$t||nn(n,e);var l=Ut,r=ve;Kn(n.type)&&(Ut=n.stateNode,ve=!1),bn(t,e,n),yl(n.stateNode),Ut=l,ve=r;break;case 5:$t||nn(n,e);case 6:if(l=Ut,r=ve,Ut=null,bn(t,e,n),Ut=l,ve=r,Ut!==null)if(ve)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(u){zt(n,e,u)}else try{Ut.removeChild(n.stateNode)}catch(u){zt(n,e,u)}break;case 18:Ut!==null&&(ve?(t=Ut,hp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),hi(t)):hp(Ut,n.stateNode));break;case 4:l=Ut,r=ve,Ut=n.stateNode.containerInfo,ve=!0,bn(t,e,n),Ut=l,ve=r;break;case 0:case 11:case 14:case 15:Gn(2,n,e),$t||Gn(4,n,e),bn(t,e,n);break;case 1:$t||(nn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&mm(n,e,l)),bn(t,e,n);break;case 21:bn(t,e,n);break;case 22:$t=(l=$t)||n.memoizedState!==null,bn(t,e,n),$t=l;break;default:bn(t,e,n)}}function Tm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{hi(t)}catch(n){zt(e,e.return,n)}}}function Am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{hi(t)}catch(n){zt(e,e.return,n)}}function J2(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new vm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new vm),e;default:throw Error(o(435,t.tag))}}function Ls(t,e){var n=J2(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=av.bind(null,t,l);l.then(r,r)}})}function be(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],u=t,h=e,v=h;t:for(;v!==null;){switch(v.tag){case 27:if(Kn(v.type)){Ut=v.stateNode,ve=!1;break t}break;case 5:Ut=v.stateNode,ve=!1;break t;case 3:case 4:Ut=v.stateNode.containerInfo,ve=!0;break t}v=v.return}if(Ut===null)throw Error(o(160));xm(u,h,r),Ut=null,ve=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mm(e,t),e=e.sibling}var Fe=null;function Mm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:be(e,t),Se(t),l&4&&(Gn(3,t,t.return),ol(3,t),Gn(5,t,t.return));break;case 1:be(e,t),Se(t),l&512&&($t||n===null||nn(n,n.return)),l&64&&vn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Fe;if(be(e,t),Se(t),l&512&&($t||n===null||nn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":u=r.getElementsByTagName("title")[0],(!u||u[Ni]||u[ie]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(l),r.head.insertBefore(u,r.querySelector("head > title"))),re(u,l,n),u[ie]=t,ne(u),l=u;break t;case"link":var h=Mp("link","href",r).get(l+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break e}}u=r.createElement(l),re(u,l,n),r.head.appendChild(u);break;case"meta":if(h=Mp("meta","content",r).get(l+(n.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break e}}u=r.createElement(l),re(u,l,n),r.head.appendChild(u);break;default:throw Error(o(468,l))}u[ie]=t,ne(u),l=u}t.stateNode=l}else Cp(r,t.type,t.stateNode);else t.stateNode=Ap(r,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Cp(r,t.type,t.stateNode):Ap(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&hu(t,t.memoizedProps,n.memoizedProps)}break;case 27:be(e,t),Se(t),l&512&&($t||n===null||nn(n,n.return)),n!==null&&l&4&&hu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(be(e,t),Se(t),l&512&&($t||n===null||nn(n,n.return)),t.flags&32){r=t.stateNode;try{Ba(r,"")}catch($){zt(t,t.return,$)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,hu(t,r,n!==null?n.memoizedProps:r)),l&1024&&(gu=!0);break;case 6:if(be(e,t),Se(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){zt(t,t.return,$)}}break;case 3:if(Is=null,r=Fe,Fe=Ws(e.containerInfo),be(e,t),Fe=r,Se(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{hi(e.containerInfo)}catch($){zt(t,t.return,$)}gu&&(gu=!1,Cm(t));break;case 4:l=Fe,Fe=Ws(t.stateNode.containerInfo),be(e,t),Se(t),Fe=l;break;case 12:be(e,t),Se(t);break;case 31:be(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ls(t,l)));break;case 13:be(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hs=Me()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ls(t,l)));break;case 22:r=t.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,D=vn,B=$t;if(vn=D||r,$t=B||x,be(e,t),$t=B,vn=D,Se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||x||vn||$t||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){x=n=e;try{if(u=x.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=x.stateNode;var G=x.memoizedProps.style,w=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch($){zt(x,x.return,$)}}}else if(e.tag===6){if(n===null){x=e;try{x.stateNode.nodeValue=r?"":x.memoizedProps}catch($){zt(x,x.return,$)}}}else if(e.tag===18){if(n===null){x=e;try{var _=x.stateNode;r?mp(_,!0):mp(x.stateNode,!1)}catch($){zt(x,x.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ls(t,n))));break;case 19:be(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ls(t,l)));break;case 30:break;case 21:break;default:be(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(gm(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=mu(t);Bs(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ba(h,""),n.flags&=-33);var v=mu(t);Bs(t,v,h);break;case 3:case 4:var x=n.stateNode.containerInfo,D=mu(t);pu(t,D,x);break;default:throw Error(o(161))}}catch(B){zt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Cm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Cm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Sn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bm(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Gn(4,e,e.return),xa(e);break;case 1:nn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&mm(e,e.return,n),xa(e);break;case 27:yl(e.stateNode);case 26:case 5:nn(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function xn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:xn(r,u,n),ol(4,u);break;case 1:if(xn(r,u,n),l=u,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(D){zt(l,l.return,D)}if(l=u,r=l.updateQueue,r!==null){var v=l.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)nh(x[r],v)}catch(D){zt(l,l.return,D)}}n&&h&64&&hm(u),rl(u,u.return);break;case 27:ym(u);case 26:case 5:xn(r,u,n),n&&l===null&&h&4&&pm(u),rl(u,u.return);break;case 12:xn(r,u,n);break;case 31:xn(r,u,n),n&&h&4&&Tm(r,u);break;case 13:xn(r,u,n),n&&h&4&&Am(r,u);break;case 22:u.memoizedState===null&&xn(r,u,n),rl(u,u.return);break;case 30:break;default:xn(r,u,n)}e=e.sibling}}function yu(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&&Ji(n))}function vu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ji(t))}function Pe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Em(t,e,n,l),e=e.sibling}function Em(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Pe(t,e,n,l),r&2048&&ol(9,e);break;case 1:Pe(t,e,n,l);break;case 3:Pe(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ji(t)));break;case 12:if(r&2048){Pe(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){zt(e,e.return,x)}}else Pe(t,e,n,l);break;case 31:Pe(t,e,n,l);break;case 13:Pe(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?Pe(t,e,n,l):ul(t,e):u._visibility&2?Pe(t,e,n,l):(u._visibility|=2,ni(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&yu(h,e);break;case 24:Pe(t,e,n,l),r&2048&&vu(e.alternate,e);break;default:Pe(t,e,n,l)}}function ni(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,v=n,x=l,D=h.flags;switch(h.tag){case 0:case 11:case 15:ni(u,h,v,x,r),ol(8,h);break;case 23:break;case 22:var B=h.stateNode;h.memoizedState!==null?B._visibility&2?ni(u,h,v,x,r):ul(u,h):(B._visibility|=2,ni(u,h,v,x,r)),r&&D&2048&&yu(h.alternate,h);break;case 24:ni(u,h,v,x,r),r&&D&2048&&vu(h.alternate,h);break;default:ni(u,h,v,x,r)}e=e.sibling}}function ul(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:ul(n,l),r&2048&&yu(l.alternate,l);break;case 24:ul(n,l),r&2048&&vu(l.alternate,l);break;default:ul(n,l)}e=e.sibling}}var cl=8192;function ai(t,e,n){if(t.subtreeFlags&cl)for(t=t.child;t!==null;)Dm(t,e,n),t=t.sibling}function Dm(t,e,n){switch(t.tag){case 26:ai(t,e,n),t.flags&cl&&t.memoizedState!==null&&jv(n,Fe,t.memoizedState,t.memoizedProps);break;case 5:ai(t,e,n);break;case 3:case 4:var l=Fe;Fe=Ws(t.stateNode.containerInfo),ai(t,e,n),Fe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=cl,cl=16777216,ai(t,e,n),cl=l):ai(t,e,n));break;default:ai(t,e,n)}}function wm(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 fl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Rm(l,t)}wm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(t),t=t.sibling}function zm(t){switch(t.tag){case 0:case 11:case 15:fl(t),t.flags&2048&&Gn(9,t,t.return);break;case 3:fl(t);break;case 12:fl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Us(t)):fl(t);break;default:fl(t)}}function Us(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Rm(l,t)}wm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Gn(8,e,e.return),Us(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Us(e));break;default:Us(e)}t=t.sibling}}function Rm(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:Gn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ji(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ae=l;else t:for(n=t;ae!==null;){l=ae;var r=l.sibling,u=l.return;if(Sm(l),l===n){ae=null;break t}if(r!==null){r.return=u,ae=r;break t}ae=u}}}var F2={getCacheForType:function(t){var e=se(Ft),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return se(Ft).controller.signal}},P2=typeof WeakMap=="function"?WeakMap:Map,Ct=0,Vt=null,gt=null,vt=0,wt=0,Oe=null,qn=!1,ii=!1,bu=!1,Tn=0,Yt=0,Yn=0,Ta=0,Su=0,_e=0,li=0,dl=null,xe=null,xu=!1,Hs=0,Om=0,Gs=1/0,qs=null,kn=null,te=0,Xn=null,si=null,An=0,Tu=0,Au=null,_m=null,hl=0,Mu=null;function Ve(){return(Ct&2)!==0&&vt!==0?vt&-vt:z.T!==null?Ru():Jf()}function Vm(){if(_e===0)if((vt&536870912)===0||xt){var t=Fl;Fl<<=1,(Fl&3932160)===0&&(Fl=262144),_e=t}else _e=536870912;return t=ze.current,t!==null&&(t.flags|=32),_e}function Te(t,e,n){(t===Vt&&(wt===2||wt===9)||t.cancelPendingCommit!==null)&&(oi(t,0),Zn(t,vt,_e,!1)),ji(t,n),((Ct&2)===0||t!==Vt)&&(t===Vt&&((Ct&2)===0&&(Ta|=n),Yt===4&&Zn(t,vt,_e,!1)),an(t))}function jm(t,e,n){if((Ct&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Vi(t,e),r=l?I2(t,e):Eu(t,e,!0),u=l;do{if(r===0){ii&&!l&&Zn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!W2(n)){r=Eu(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var v=t;r=dl;var x=v.current.memoizedState.isDehydrated;if(x&&(oi(v,h).flags|=256),h=Eu(v,h,!1),h!==2){if(bu&&!x){v.errorRecoveryDisabledLanes|=u,Ta|=u,r=4;break t}u=xe,xe=r,u!==null&&(xe===null?xe=u:xe.push.apply(xe,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){oi(t,0),Zn(t,e,0,!0);break}t:{switch(l=t,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Zn(l,e,_e,!qn);break t;case 2:xe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Hs+300-Me(),10<r)){if(Zn(l,e,_e,!qn),Wl(l,0,!0)!==0)break t;An=e,l.timeoutHandle=fp(Nm.bind(null,l,n,xe,qs,xu,e,_e,Ta,li,qn,u,"Throttled",-0,0),r);break t}Nm(l,n,xe,qs,xu,e,_e,Ta,li,qn,u,null,-0,0)}}break}while(!0);an(t)}function Nm(t,e,n,l,r,u,h,v,x,D,B,G,w,_){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},Dm(e,u,G);var $=(u&62914560)===u?Hs-Me():(u&4194048)===u?Om-Me():0;if($=Nv(G,$),$!==null){An=u,t.cancelPendingCommit=$(km.bind(null,t,e,u,n,l,r,h,v,x,B,G,null,w,_)),Zn(t,u,h,!D);return}}km(t,e,u,n,l,r,h,v,x)}function W2(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 l=0;l<n.length;l++){var r=n[l],u=r.getSnapshot;r=r.value;try{if(!De(u(),r))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 Zn(t,e,n,l){e&=~Su,e&=~Ta,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var u=31-Ee(r),h=1<<u;l[u]=-1,r&=~h}n!==0&&Zf(t,n,e)}function Ys(){return(Ct&6)===0?(ml(0),!1):!0}function Cu(){if(gt!==null){if(wt===0)var t=gt.return;else t=gt,dn=ha=null,qr(t),Wa=null,Pi=0,t=gt;for(;t!==null;)dm(t.alternate,t),t=t.return;gt=null}}function oi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,yv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,Cu(),Vt=t,gt=n=cn(t.current,null),vt=e,wt=0,Oe=null,qn=!1,ii=Vi(t,e),bu=!1,li=_e=Su=Ta=Yn=Yt=0,xe=dl=null,xu=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-Ee(l),u=1<<r;e|=t[r],l&=~u}return Tn=e,us(),n}function Bm(t,e){dt=null,z.H=il,e===Pa||e===ys?(e=$d(),wt=3):e===zr?(e=$d(),wt=4):wt=e===au?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,gt===null&&(Yt=1,Os(t,Le(e,t.current)))}function Lm(){var t=ze.current;return t===null?!0:(vt&4194048)===vt?qe===null:(vt&62914560)===vt||(vt&536870912)!==0?t===qe:!1}function Um(){var t=z.H;return z.H=il,t===null?il:t}function Hm(){var t=z.A;return z.A=F2,t}function ks(){Yt=4,qn||(vt&4194048)!==vt&&ze.current!==null||(ii=!0),(Yn&134217727)===0&&(Ta&134217727)===0||Vt===null||Zn(Vt,vt,_e,!1)}function Eu(t,e,n){var l=Ct;Ct|=2;var r=Um(),u=Hm();(Vt!==t||vt!==e)&&(qs=null,oi(t,e)),e=!1;var h=Yt;t:do try{if(wt!==0&&gt!==null){var v=gt,x=Oe;switch(wt){case 8:Cu(),h=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var D=wt;if(wt=0,Oe=null,ri(t,v,x,D),n&&ii){h=0;break t}break;default:D=wt,wt=0,Oe=null,ri(t,v,x,D)}}$2(),h=Yt;break}catch(B){Bm(t,B)}while(!0);return e&&t.shellSuspendCounter++,dn=ha=null,Ct=l,z.H=r,z.A=u,gt===null&&(Vt=null,vt=0,us()),h}function $2(){for(;gt!==null;)Gm(gt)}function I2(t,e){var n=Ct;Ct|=2;var l=Um(),r=Hm();Vt!==t||vt!==e?(qs=null,Gs=Me()+500,oi(t,e)):ii=Vi(t,e);t:do try{if(wt!==0&&gt!==null){e=gt;var u=Oe;e:switch(wt){case 1:wt=0,Oe=null,ri(t,e,u,1);break;case 2:case 9:if(Pd(u)){wt=0,Oe=null,qm(e);break}e=function(){wt!==2&&wt!==9||Vt!==t||(wt=7),an(t)},u.then(e,e);break t;case 3:wt=7;break t;case 4:wt=5;break t;case 7:Pd(u)?(wt=0,Oe=null,qm(e)):(wt=0,Oe=null,ri(t,e,u,7));break;case 5:var h=null;switch(gt.tag){case 26:h=gt.memoizedState;case 5:case 27:var v=gt;if(h?Ep(h):v.stateNode.complete){wt=0,Oe=null;var x=v.sibling;if(x!==null)gt=x;else{var D=v.return;D!==null?(gt=D,Xs(D)):gt=null}break e}}wt=0,Oe=null,ri(t,e,u,5);break;case 6:wt=0,Oe=null,ri(t,e,u,6);break;case 8:Cu(),Yt=6;break t;default:throw Error(o(462))}}tv();break}catch(B){Bm(t,B)}while(!0);return dn=ha=null,z.H=l,z.A=r,Ct=n,gt!==null?0:(Vt=null,vt=0,us(),Yt)}function tv(){for(;gt!==null&&!A1();)Gm(gt)}function Gm(t){var e=cm(t.alternate,t,Tn);t.memoizedProps=t.pendingProps,e===null?Xs(t):gt=e}function qm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=im(n,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=im(n,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:qr(e);default:dm(n,e),e=gt=Hd(e,Tn),e=cm(n,e,Tn)}t.memoizedProps=t.pendingProps,e===null?Xs(t):gt=e}function ri(t,e,n,l){dn=ha=null,qr(e),Wa=null,Pi=0;var r=e.return;try{if(Y2(t,r,e,n,vt)){Yt=1,Os(t,Le(n,t.current)),gt=null;return}}catch(u){if(r!==null)throw gt=r,u;Yt=1,Os(t,Le(n,t.current)),gt=null;return}e.flags&32768?(xt||l===1?t=!0:ii||(vt&536870912)!==0?t=!1:(qn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ze.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ym(e,t)):Xs(e)}function Xs(t){var e=t;do{if((e.flags&32768)!==0){Ym(e,qn);return}t=e.return;var n=Z2(e.alternate,e,Tn);if(n!==null){gt=n;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Ym(t,e){do{var n=Q2(t.alternate,t);if(n!==null){n.flags&=32767,gt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=n}while(t!==null);Yt=6,gt=null}function km(t,e,n,l,r,u,h,v,x){t.cancelPendingCommit=null;do Zs();while(te!==0);if((Ct&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=mr,V1(t,n,u,h,v,x),t===Vt&&(gt=Vt=null,vt=0),si=e,Xn=t,An=n,Tu=u,Au=r,_m=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,iv(Kl,function(){return Jm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,r=Y.p,Y.p=2,h=Ct,Ct|=4;try{K2(t,e,n)}finally{Ct=h,Y.p=r,z.T=l}}te=1,Xm(),Zm(),Qm()}}function Xm(){if(te===1){te=0;var t=Xn,e=si,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var l=Y.p;Y.p=2;var r=Ct;Ct|=4;try{Mm(e,t);var u=Uu,h=Rd(t.containerInfo),v=u.focusedElem,x=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&zd(v.ownerDocument.documentElement,v)){if(x!==null&&ur(v)){var D=x.start,B=x.end;if(B===void 0&&(B=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(B,v.value.length);else{var G=v.ownerDocument||document,w=G&&G.defaultView||window;if(w.getSelection){var _=w.getSelection(),$=v.textContent.length,ot=Math.min(x.start,$),_t=x.end===void 0?ot:Math.min(x.end,$);!_.extend&&ot>_t&&(h=_t,_t=ot,ot=h);var C=wd(v,ot),A=wd(v,_t);if(C&&A&&(_.rangeCount!==1||_.anchorNode!==C.node||_.anchorOffset!==C.offset||_.focusNode!==A.node||_.focusOffset!==A.offset)){var E=G.createRange();E.setStart(C.node,C.offset),_.removeAllRanges(),ot>_t?(_.addRange(E),_.extend(A.node,A.offset)):(E.setEnd(A.node,A.offset),_.addRange(E))}}}}for(G=[],_=v;_=_.parentNode;)_.nodeType===1&&G.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var U=G[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ao=!!Lu,Uu=Lu=null}finally{Ct=r,Y.p=l,z.T=n}}t.current=e,te=2}}function Zm(){if(te===2){te=0;var t=Xn,e=si,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var l=Y.p;Y.p=2;var r=Ct;Ct|=4;try{bm(t,e.alternate,e)}finally{Ct=r,Y.p=l,z.T=n}}te=3}}function Qm(){if(te===4||te===3){te=0,M1();var t=Xn,e=si,n=An,l=_m;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,si=Xn=null,Km(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(kn=null),Xo(n),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(_i,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=z.T,r=Y.p,Y.p=2,z.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var v=l[h];u(v.value,{componentStack:v.stack})}}finally{z.T=e,Y.p=r}}(An&3)!==0&&Zs(),an(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Mu?hl++:(hl=0,Mu=t):hl=0,ml(0)}}function Km(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ji(e)))}function Zs(){return Xm(),Zm(),Qm(),Jm()}function Jm(){if(te!==5)return!1;var t=Xn,e=Tu;Tu=0;var n=Xo(An),l=z.T,r=Y.p;try{Y.p=32>n?32:n,z.T=null,n=Au,Au=null;var u=Xn,h=An;if(te=0,si=Xn=null,An=0,(Ct&6)!==0)throw Error(o(331));var v=Ct;if(Ct|=4,zm(u.current),Em(u,u.current,h,n),Ct=v,ml(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(_i,u)}catch{}return!0}finally{Y.p=r,z.T=l,Km(t,e)}}function Fm(t,e,n){e=Le(n,e),e=nu(t.stateNode,e,2),t=Ln(t,e,2),t!==null&&(ji(t,2),an(t))}function zt(t,e,n){if(t.tag===3)Fm(t,t,n);else for(;e!==null;){if(e.tag===3){Fm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(kn===null||!kn.has(l))){t=Le(n,t),n=Ph(2),l=Ln(e,n,2),l!==null&&(Wh(n,l,e,t),ji(l,2),an(l));break}}e=e.return}}function Du(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new P2;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(bu=!0,r.add(n),t=ev.bind(null,t,e,n),e.then(t,t))}function ev(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Vt===t&&(vt&n)===n&&(Yt===4||Yt===3&&(vt&62914560)===vt&&300>Me()-Hs?(Ct&2)===0&&oi(t,0):Su|=n,li===vt&&(li=0)),an(t)}function Pm(t,e){e===0&&(e=Xf()),t=ca(t,e),t!==null&&(ji(t,e),an(t))}function nv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Pm(t,n)}function av(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),Pm(t,n)}function iv(t,e){return Go(t,e)}var Qs=null,ui=null,wu=!1,Ks=!1,zu=!1,Qn=0;function an(t){t!==ui&&t.next===null&&(ui===null?Qs=ui=t:ui=ui.next=t),Ks=!0,wu||(wu=!0,sv())}function ml(t,e){if(!zu&&Ks){zu=!0;do for(var n=!1,l=Qs;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var u=0;else{var h=l.suspendedLanes,v=l.pingedLanes;u=(1<<31-Ee(42|t)+1)-1,u&=r&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,tp(l,u))}else u=vt,u=Wl(l,l===Vt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Vi(l,u)||(n=!0,tp(l,u));l=l.next}while(n);zu=!1}}function lv(){Wm()}function Wm(){Ks=wu=!1;var t=0;Qn!==0&&gv()&&(t=Qn);for(var e=Me(),n=null,l=Qs;l!==null;){var r=l.next,u=$m(l,e);u===0?(l.next=null,n===null?Qs=r:n.next=r,r===null&&(ui=n)):(n=l,(t!==0||(u&3)!==0)&&(Ks=!0)),l=r}te!==0&&te!==5||ml(t),Qn!==0&&(Qn=0)}function $m(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Ee(u),v=1<<h,x=r[h];x===-1?((v&n)===0||(v&l)!==0)&&(r[h]=_1(v,e)):x<=e&&(t.expiredLanes|=v),u&=~v}if(e=Vt,n=vt,n=Wl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(wt===2||wt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qo(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Vi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&qo(l),Xo(n)){case 2:case 8:n=Yf;break;case 32:n=Kl;break;case 268435456:n=kf;break;default:n=Kl}return l=Im.bind(null,t),n=Go(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&qo(l),t.callbackPriority=2,t.callbackNode=null,2}function Im(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Zs()&&t.callbackNode!==n)return null;var l=vt;return l=Wl(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(jm(t,l,e),$m(t,Me()),t.callbackNode!=null&&t.callbackNode===n?Im.bind(null,t):null)}function tp(t,e){if(Zs())return null;jm(t,e,!0)}function sv(){vv(function(){(Ct&6)!==0?Go(qf,lv):Wm()})}function Ru(){if(Qn===0){var t=Ja;t===0&&(t=Jl,Jl<<=1,(Jl&261888)===0&&(Jl=256)),Qn=t}return Qn}function ep(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:es(""+t)}function np(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function ov(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var u=ep((r[ge]||null).action),h=l.submitter;h&&(e=(e=h[ge]||null)?ep(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var v=new ls("action","action",null,l,r);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Qn!==0){var x=h?np(r,h):new FormData(r);Pr(n,{pending:!0,data:x,method:r.method,action:u},null,x)}}else typeof u=="function"&&(v.preventDefault(),x=h?np(r,h):new FormData(r),Pr(n,{pending:!0,data:x,method:r.method,action:u},u,x))},currentTarget:r}]})}}for(var Ou=0;Ou<hr.length;Ou++){var _u=hr[Ou],rv=_u.toLowerCase(),uv=_u[0].toUpperCase()+_u.slice(1);Je(rv,"on"+uv)}Je(Vd,"onAnimationEnd"),Je(jd,"onAnimationIteration"),Je(Nd,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(C2,"onTransitionRun"),Je(E2,"onTransitionStart"),Je(D2,"onTransitionCancel"),Je(Bd,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="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(" "),cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function ap(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var v=l[h],x=v.instance,D=v.currentTarget;if(v=v.listener,x!==u&&r.isPropagationStopped())break t;u=v,r.currentTarget=D;try{u(r)}catch(B){rs(B)}r.currentTarget=null,u=x}else for(h=0;h<l.length;h++){if(v=l[h],x=v.instance,D=v.currentTarget,v=v.listener,x!==u&&r.isPropagationStopped())break t;u=v,r.currentTarget=D;try{u(r)}catch(B){rs(B)}r.currentTarget=null,u=x}}}}function yt(t,e){var n=e[Zo];n===void 0&&(n=e[Zo]=new Set);var l=t+"__bubble";n.has(l)||(ip(e,t,2,!1),n.add(l))}function Vu(t,e,n){var l=0;e&&(l|=4),ip(n,t,l,e)}var Js="_reactListening"+Math.random().toString(36).slice(2);function ju(t){if(!t[Js]){t[Js]=!0,Wf.forEach(function(n){n!=="selectionchange"&&(cv.has(n)||Vu(n,!1,t),Vu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Js]||(e[Js]=!0,Vu("selectionchange",!1,e))}}function ip(t,e,n,l){switch(Vp(e)){case 2:var r=Uv;break;case 8:r=Hv;break;default:r=Fu}n=r.bind(null,e,n,t),r=void 0,!tr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Nu(t,e,n,l,r){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var v=l.stateNode.containerInfo;if(v===r)break;if(h===4)for(h=l.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;v!==null;){if(h=Oa(v),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){l=u=h;continue t}v=v.parentNode}}l=l.return}ud(function(){var D=u,B=$o(n),G=[];t:{var w=Ld.get(t);if(w!==void 0){var _=ls,$=t;switch(t){case"keypress":if(as(n)===0)break t;case"keydown":case"keyup":_=a2;break;case"focusin":$="focus",_=ir;break;case"focusout":$="blur",_=ir;break;case"beforeblur":case"afterblur":_=ir;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":_=dd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Z1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=s2;break;case Vd:case jd:case Nd:_=J1;break;case Bd:_=r2;break;case"scroll":case"scrollend":_=k1;break;case"wheel":_=c2;break;case"copy":case"cut":case"paste":_=P1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=md;break;case"toggle":case"beforetoggle":_=d2}var ot=(e&4)!==0,_t=!ot&&(t==="scroll"||t==="scrollend"),C=ot?w!==null?w+"Capture":null:w;ot=[];for(var A=D,E;A!==null;){var U=A;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||C===null||(U=Li(A,C),U!=null&&ot.push(gl(A,U,E))),_t)break;A=A.return}0<ot.length&&(w=new _(w,$,null,n,B),G.push({event:w,listeners:ot}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",w&&n!==Wo&&($=n.relatedTarget||n.fromElement)&&(Oa($)||$[Ra]))break t;if((_||w)&&(w=B.window===B?B:(w=B.ownerDocument)?w.defaultView||w.parentWindow:window,_?($=n.relatedTarget||n.toElement,_=D,$=$?Oa($):null,$!==null&&(_t=d($),ot=$.tag,$!==_t||ot!==5&&ot!==27&&ot!==6)&&($=null)):(_=null,$=D),_!==$)){if(ot=dd,U="onMouseLeave",C="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(ot=md,U="onPointerLeave",C="onPointerEnter",A="pointer"),_t=_==null?w:Bi(_),E=$==null?w:Bi($),w=new ot(U,A+"leave",_,n,B),w.target=_t,w.relatedTarget=E,U=null,Oa(B)===D&&(ot=new ot(C,A+"enter",$,n,B),ot.target=E,ot.relatedTarget=_t,U=ot),_t=U,_&&$)e:{for(ot=fv,C=_,A=$,E=0,U=C;U;U=ot(U))E++;U=0;for(var st=A;st;st=ot(st))U++;for(;0<E-U;)C=ot(C),E--;for(;0<U-E;)A=ot(A),U--;for(;E--;){if(C===A||A!==null&&C===A.alternate){ot=C;break e}C=ot(C),A=ot(A)}ot=null}else ot=null;_!==null&&lp(G,w,_,ot,!1),$!==null&&_t!==null&&lp(G,_t,$,ot,!0)}}t:{if(w=D?Bi(D):window,_=w.nodeName&&w.nodeName.toLowerCase(),_==="select"||_==="input"&&w.type==="file")var At=Td;else if(Sd(w))if(Ad)At=T2;else{At=S2;var nt=b2}else _=w.nodeName,!_||_.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?D&&Po(D.elementType)&&(At=Td):At=x2;if(At&&(At=At(t,D))){xd(G,At,n,B);break t}nt&&nt(t,w,D),t==="focusout"&&D&&w.type==="number"&&D.memoizedProps.value!=null&&Fo(w,"number",w.value)}switch(nt=D?Bi(D):window,t){case"focusin":(Sd(nt)||nt.contentEditable==="true")&&(Ga=nt,cr=D,Zi=null);break;case"focusout":Zi=cr=Ga=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,Od(G,n,B);break;case"selectionchange":if(M2)break;case"keydown":case"keyup":Od(G,n,B)}var ht;if(sr)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Ha?vd(t,n)&&(bt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(bt="onCompositionStart");bt&&(pd&&n.locale!=="ko"&&(Ha||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Ha&&(ht=cd()):(Rn=B,er="value"in Rn?Rn.value:Rn.textContent,Ha=!0)),nt=Fs(D,bt),0<nt.length&&(bt=new hd(bt,t,null,n,B),G.push({event:bt,listeners:nt}),ht?bt.data=ht:(ht=bd(n),ht!==null&&(bt.data=ht)))),(ht=m2?p2(t,n):g2(t,n))&&(bt=Fs(D,"onBeforeInput"),0<bt.length&&(nt=new hd("onBeforeInput","beforeinput",null,n,B),G.push({event:nt,listeners:bt}),nt.data=ht)),ov(G,t,D,n,B)}ap(G,e)})}function gl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Fs(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Li(t,n),r!=null&&l.unshift(gl(t,r,u)),r=Li(t,e),r!=null&&l.push(gl(t,r,u))),t.tag===3)return l;t=t.return}return[]}function fv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function lp(t,e,n,l,r){for(var u=e._reactName,h=[];n!==null&&n!==l;){var v=n,x=v.alternate,D=v.stateNode;if(v=v.tag,x!==null&&x===l)break;v!==5&&v!==26&&v!==27||D===null||(x=D,r?(D=Li(n,u),D!=null&&h.unshift(gl(n,D,x))):r||(D=Li(n,u),D!=null&&h.push(gl(n,D,x)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var dv=/\r\n?/g,hv=/\u0000|\uFFFD/g;function sp(t){return(typeof t=="string"?t:""+t).replace(dv,`
`).replace(hv,"")}function op(t,e){return e=sp(e),sp(t)===e}function Ot(t,e,n,l,r,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ba(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ba(t,""+l);break;case"className":Il(t,"class",l);break;case"tabIndex":Il(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Il(t,n,l);break;case"style":od(t,l,u);break;case"data":if(e!=="object"){Il(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=es(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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 u=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",r.name,r,null),Ot(t,e,"formEncType",r.formEncType,r,null),Ot(t,e,"formMethod",r.formMethod,r,null),Ot(t,e,"formTarget",r.formTarget,r,null)):(Ot(t,e,"encType",r.encType,r,null),Ot(t,e,"method",r.method,r,null),Ot(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=es(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=rn);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=es(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":yt("beforetoggle",t),yt("toggle",t),$l(t,"popover",l);break;case"xlinkActuate":on(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":on(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":on(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":on(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":on(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":on(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":on(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":on(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":on(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$l(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=q1.get(n)||n,$l(t,n,l))}}function Bu(t,e,n,l,r,u){switch(n){case"style":od(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ba(t,l):(typeof l=="number"||typeof l=="bigint")&&Ba(t,""+l);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[ge]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):$l(t,n,l)}}}function re(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var l=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,u,h,n,null)}}r&&Ot(t,e,"srcSet",n.srcSet,n,null),l&&Ot(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var v=u=h=r=null,x=null,D=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":r=B;break;case"type":h=B;break;case"checked":x=B;break;case"defaultChecked":D=B;break;case"value":u=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:Ot(t,e,l,B,n,null)}}ad(t,u,v,x,D,h,r,!1);return;case"select":yt("invalid",t),l=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":l=v;default:Ot(t,e,r,v,n,null)}e=u,n=h,t.multiple=!!l,e!=null?Na(t,!!l,e,!1):n!=null&&Na(t,!!l,n,!0);return;case"textarea":yt("invalid",t),u=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":l=v;break;case"defaultValue":r=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ot(t,e,h,v,n,null)}ld(t,l,r,u);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,x,l,n,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(l=0;l<pl.length;l++)yt(pl[l],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("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(D in n)if(n.hasOwnProperty(D)&&(l=n[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,D,l,n,null)}return;default:if(Po(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&Bu(t,e,B,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Ot(t,e,v,l,n,null))}function mv(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,v=null,x=null,D=null,B=null;for(_ in n){var G=n[_];if(n.hasOwnProperty(_)&&G!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":x=G;default:l.hasOwnProperty(_)||Ot(t,e,_,null,l,G)}}for(var w in l){var _=l[w];if(G=n[w],l.hasOwnProperty(w)&&(_!=null||G!=null))switch(w){case"type":u=_;break;case"name":r=_;break;case"checked":D=_;break;case"defaultChecked":B=_;break;case"value":h=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:_!==G&&Ot(t,e,w,_,l,G)}}Jo(t,h,v,x,D,B,u,r);return;case"select":_=h=v=w=null;for(u in n)if(x=n[u],n.hasOwnProperty(u)&&x!=null)switch(u){case"value":break;case"multiple":_=x;default:l.hasOwnProperty(u)||Ot(t,e,u,null,l,x)}for(r in l)if(u=l[r],x=n[r],l.hasOwnProperty(r)&&(u!=null||x!=null))switch(r){case"value":w=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==x&&Ot(t,e,r,u,l,x)}e=v,n=h,l=_,w!=null?Na(t,!!n,w,!1):!!l!=!!n&&(e!=null?Na(t,!!n,e,!0):Na(t,!!n,n?[]:"",!1));return;case"textarea":_=w=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ot(t,e,v,null,l,r)}for(h in l)if(r=l[h],u=n[h],l.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":w=r;break;case"defaultValue":_=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Ot(t,e,h,r,l,u)}id(t,w,_);return;case"option":for(var $ in n)if(w=n[$],n.hasOwnProperty($)&&w!=null&&!l.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:Ot(t,e,$,null,l,w)}for(x in l)if(w=l[x],_=n[x],l.hasOwnProperty(x)&&w!==_&&(w!=null||_!=null))switch(x){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ot(t,e,x,w,l,_)}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 ot in n)w=n[ot],n.hasOwnProperty(ot)&&w!=null&&!l.hasOwnProperty(ot)&&Ot(t,e,ot,null,l,w);for(D in l)if(w=l[D],_=n[D],l.hasOwnProperty(D)&&w!==_&&(w!=null||_!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Ot(t,e,D,w,l,_)}return;default:if(Po(e)){for(var _t in n)w=n[_t],n.hasOwnProperty(_t)&&w!==void 0&&!l.hasOwnProperty(_t)&&Bu(t,e,_t,void 0,l,w);for(B in l)w=l[B],_=n[B],!l.hasOwnProperty(B)||w===_||w===void 0&&_===void 0||Bu(t,e,B,w,l,_);return}}for(var C in n)w=n[C],n.hasOwnProperty(C)&&w!=null&&!l.hasOwnProperty(C)&&Ot(t,e,C,null,l,w);for(G in l)w=l[G],_=n[G],!l.hasOwnProperty(G)||w===_||w==null&&_==null||Ot(t,e,G,w,l,_)}function rp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],u=r.transferSize,h=r.initiatorType,v=r.duration;if(u&&v&&rp(h)){for(h=0,v=r.responseEnd,l+=1;l<n.length;l++){var x=n[l],D=x.startTime;if(D>v)break;var B=x.transferSize,G=x.initiatorType;B&&rp(G)&&(x=x.responseEnd,h+=B*(x<v?1:(v-D)/(x-D)))}if(--l,e+=8*(u+h)/(r.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 Lu=null,Uu=null;function Ps(t){return t.nodeType===9?t:t.ownerDocument}function up(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 cp(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 Hu(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 Gu=null;function gv(){var t=window.event;return t&&t.type==="popstate"?t===Gu?!1:(Gu=t,!0):(Gu=null,!1)}var fp=typeof setTimeout=="function"?setTimeout:void 0,yv=typeof clearTimeout=="function"?clearTimeout:void 0,dp=typeof Promise=="function"?Promise:void 0,vv=typeof queueMicrotask=="function"?queueMicrotask:typeof dp<"u"?function(t){return dp.resolve(null).then(t).catch(bv)}:fp;function bv(t){setTimeout(function(){throw t})}function Kn(t){return t==="head"}function hp(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),hi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")yl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,yl(n);for(var u=n.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[Ni]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&yl(t.ownerDocument.body);n=r}while(n);hi(e)}function mp(t,e){var n=t;t=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function qu(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":qu(n),Qo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Sv(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ni])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ye(t.nextSibling),t===null)break}return null}function xv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ye(t.nextSibling),t===null))return null;return t}function pp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ye(t.nextSibling),t===null))return null;return t}function Yu(t){return t.data==="$?"||t.data==="$~"}function ku(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Tv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ye(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 Xu=null;function gp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ye(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function yp(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 vp(t,e,n){switch(e=Ps(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function yl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Qo(t)}var ke=new Map,bp=new Set;function Ws(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=Y.d;Y.d={f:Av,r:Mv,D:Cv,C:Ev,L:Dv,m:wv,X:Rv,S:zv,M:Ov};function Av(){var t=Mn.f(),e=Ys();return t||e}function Mv(t){var e=_a(t);e!==null&&e.tag===5&&e.type==="form"?Bh(e):Mn.r(t)}var ci=typeof document>"u"?null:document;function Sp(t,e,n){var l=ci;if(l&&typeof e=="string"&&e){var r=Ne(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),bp.has(r)||(bp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),re(e,"link",t),ne(e),l.head.appendChild(e)))}}function Cv(t){Mn.D(t),Sp("dns-prefetch",t,null)}function Ev(t,e){Mn.C(t,e),Sp("preconnect",t,e)}function Dv(t,e,n){Mn.L(t,e,n);var l=ci;if(l&&t&&e){var r='link[rel="preload"][as="'+Ne(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ne(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ne(n.imageSizes)+'"]')):r+='[href="'+Ne(t)+'"]';var u=r;switch(e){case"style":u=fi(t);break;case"script":u=di(t)}ke.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),ke.set(u,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(vl(u))||e==="script"&&l.querySelector(bl(u))||(e=l.createElement("link"),re(e,"link",t),ne(e),l.head.appendChild(e)))}}function wv(t,e){Mn.m(t,e);var n=ci;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ne(l)+'"][href="'+Ne(t)+'"]',u=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=di(t)}if(!ke.has(u)&&(t=b({rel:"modulepreload",href:t},e),ke.set(u,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bl(u)))return}l=n.createElement("link"),re(l,"link",t),ne(l),n.head.appendChild(l)}}}function zv(t,e,n){Mn.S(t,e,n);var l=ci;if(l&&t){var r=Va(l).hoistableStyles,u=fi(t);e=e||"default";var h=r.get(u);if(!h){var v={loading:0,preload:null};if(h=l.querySelector(vl(u)))v.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=ke.get(u))&&Zu(t,n);var x=h=l.createElement("link");ne(x),re(x,"link",t),x._p=new Promise(function(D,B){x.onload=D,x.onerror=B}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,$s(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:v},r.set(u,h)}}}function Rv(t,e){Mn.X(t,e);var n=ci;if(n&&t){var l=Va(n).hoistableScripts,r=di(t),u=l.get(r);u||(u=n.querySelector(bl(r)),u||(t=b({src:t,async:!0},e),(e=ke.get(r))&&Qu(t,e),u=n.createElement("script"),ne(u),re(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function Ov(t,e){Mn.M(t,e);var n=ci;if(n&&t){var l=Va(n).hoistableScripts,r=di(t),u=l.get(r);u||(u=n.querySelector(bl(r)),u||(t=b({src:t,async:!0,type:"module"},e),(e=ke.get(r))&&Qu(t,e),u=n.createElement("script"),ne(u),re(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function xp(t,e,n,l){var r=(r=ut.current)?Ws(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=fi(n.href),n=Va(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=fi(n.href);var u=Va(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(vl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ke.set(t,n),u||_v(r,t,n,h.state))),e&&l===null)throw Error(o(528,""));return h}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=di(n),n=Va(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function fi(t){return'href="'+Ne(t)+'"'}function vl(t){return'link[rel="stylesheet"]['+t+"]"}function Tp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function _v(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),re(e,"link",n),ne(e),t.head.appendChild(e))}function di(t){return'[src="'+Ne(t)+'"]'}function bl(t){return"script[async]"+t}function Ap(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ne(n.href)+'"]');if(l)return e.instance=l,ne(l),l;var r=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ne(l),re(l,"style",r),$s(l,n.precedence,t),e.instance=l;case"stylesheet":r=fi(n.href);var u=t.querySelector(vl(r));if(u)return e.state.loading|=4,e.instance=u,ne(u),u;l=Tp(n),(r=ke.get(r))&&Zu(l,r),u=(t.ownerDocument||t).createElement("link"),ne(u);var h=u;return h._p=new Promise(function(v,x){h.onload=v,h.onerror=x}),re(u,"link",l),e.state.loading|=4,$s(u,n.precedence,t),e.instance=u;case"script":return u=di(n.src),(r=t.querySelector(bl(u)))?(e.instance=r,ne(r),r):(l=n,(r=ke.get(u))&&(l=b({},n),Qu(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ne(r),re(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,$s(l,n.precedence,t));return e.instance}function $s(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,u=r,h=0;h<l.length;h++){var v=l[h];if(v.dataset.precedence===e)u=v;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Zu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Qu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Is=null;function Mp(t,e,n){if(Is===null){var l=new Map,r=Is=new Map;r.set(n,l)}else r=Is,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[Ni]||u[ie]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var v=l.get(h);v?v.push(u):l.set(h,[u])}}return l}function Cp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Vv(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;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 Ep(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function jv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=fi(l.href),u=e.querySelector(vl(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=to.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,ne(u);return}u=e.ownerDocument||e,l=Tp(l),(r=ke.get(r))&&Zu(l,r),u=u.createElement("link"),ne(u);var h=u;h._p=new Promise(function(v,x){h.onload=v,h.onerror=x}),re(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=to.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ku=0;function Nv(t,e){return t.stylesheets&&t.count===0&&no(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&no(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Ku===0&&(Ku=62500*pv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&no(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Ku?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function to(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)no(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var eo=null;function no(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,eo=new Map,e.forEach(Bv,t),eo=null,to.call(t))}function Bv(t,e){if(!(e.state.loading&4)){var n=eo.get(t);if(n)var l=n.get(null);else{n=new Map,eo.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,r),n.set(h,r),this.count++,l=to.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Sl={$$typeof:Z,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Lv(t,e,n,l,r,u,h,v,x){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=Yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.hiddenUpdates=Yo(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Dp(t,e,n,l,r,u,h,v,x,D,B,G){return t=new Lv(t,e,n,h,x,D,B,G,v),e=1,u===!0&&(e|=24),u=we(3,null,null,e),t.current=u,u.stateNode=t,e=Er(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},Rr(u),t}function wp(t){return t?(t=ka,t):ka}function zp(t,e,n,l,r,u){r=wp(r),l.context===null?l.context=r:l.pendingContext=r,l=Bn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Ln(t,l,e),n!==null&&(Te(n,t,e),$i(n,t,e))}function Rp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ju(t,e){Rp(t,e),(t=t.alternate)&&Rp(t,e)}function Op(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&Te(e,t,67108864),Ju(t,67108864)}}function _p(t){if(t.tag===13||t.tag===31){var e=Ve();e=ko(e);var n=ca(t,e);n!==null&&Te(n,t,e),Ju(t,e)}}var ao=!0;function Uv(t,e,n,l){var r=z.T;z.T=null;var u=Y.p;try{Y.p=2,Fu(t,e,n,l)}finally{Y.p=u,z.T=r}}function Hv(t,e,n,l){var r=z.T;z.T=null;var u=Y.p;try{Y.p=8,Fu(t,e,n,l)}finally{Y.p=u,z.T=r}}function Fu(t,e,n,l){if(ao){var r=Pu(l);if(r===null)Nu(t,e,l,io,n),jp(t,l);else if(qv(r,t,e,n,l))l.stopPropagation();else if(jp(t,l),e&4&&-1<Gv.indexOf(t)){for(;r!==null;){var u=_a(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=la(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var x=1<<31-Ee(h);v.entanglements[1]|=x,h&=~x}an(u),(Ct&6)===0&&(Gs=Me()+500,ml(0))}}break;case 31:case 13:v=ca(u,2),v!==null&&Te(v,u,2),Ys(),Ju(u,2)}if(u=Pu(l),u===null&&Nu(t,e,l,io,n),u===r)break;r=u}r!==null&&l.stopPropagation()}else Nu(t,e,l,null,n)}}function Pu(t){return t=$o(t),Wu(t)}var io=null;function Wu(t){if(io=null,t=Oa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=g(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 io=t,null}function Vp(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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(C1()){case qf:return 2;case Yf:return 8;case Kl:case E1:return 32;case kf:return 268435456;default:return 32}default:return 32}}var $u=!1,Jn=null,Fn=null,Pn=null,xl=new Map,Tl=new Map,Wn=[],Gv="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 jp(t,e){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":xl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tl.delete(e.pointerId)}}function Al(t,e,n,l,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[r]},e!==null&&(e=_a(e),e!==null&&Op(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function qv(t,e,n,l,r){switch(e){case"focusin":return Jn=Al(Jn,t,e,n,l,r),!0;case"dragenter":return Fn=Al(Fn,t,e,n,l,r),!0;case"mouseover":return Pn=Al(Pn,t,e,n,l,r),!0;case"pointerover":var u=r.pointerId;return xl.set(u,Al(xl.get(u)||null,t,e,n,l,r)),!0;case"gotpointercapture":return u=r.pointerId,Tl.set(u,Al(Tl.get(u)||null,t,e,n,l,r)),!0}return!1}function Np(t){var e=Oa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Ff(t.priority,function(){_p(n)});return}}else if(e===31){if(e=g(n),e!==null){t.blockedOn=e,Ff(t.priority,function(){_p(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 lo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Pu(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Wo=l,n.target.dispatchEvent(l),Wo=null}else return e=_a(n),e!==null&&Op(e),t.blockedOn=n,!1;e.shift()}return!0}function Bp(t,e,n){lo(t)&&n.delete(e)}function Yv(){$u=!1,Jn!==null&&lo(Jn)&&(Jn=null),Fn!==null&&lo(Fn)&&(Fn=null),Pn!==null&&lo(Pn)&&(Pn=null),xl.forEach(Bp),Tl.forEach(Bp)}function so(t,e){t.blockedOn===e&&(t.blockedOn=null,$u||($u=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Yv)))}var oo=null;function Lp(t){oo!==t&&(oo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){oo===t&&(oo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Wu(l||n)===null)continue;break}var u=_a(n);u!==null&&(t.splice(e,3),e-=3,Pr(u,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function hi(t){function e(x){return so(x,t)}Jn!==null&&so(Jn,t),Fn!==null&&so(Fn,t),Pn!==null&&so(Pn,t),xl.forEach(e),Tl.forEach(e);for(var n=0;n<Wn.length;n++){var l=Wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],u=n[l+1],h=r[ge]||null;if(typeof u=="function")h||Lp(n);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ge]||null)v=h.formAction;else if(Wu(r)!==null)continue}else v=h.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Lp(n)}}}function Up(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Iu(t){this._internalRoot=t}ro.prototype.render=Iu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Ve();zp(n,l,t,e,null,null)},ro.prototype.unmount=Iu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zp(t.current,2,null,t,null,null),Ys(),e[Ra]=null}};function ro(t){this._internalRoot=t}ro.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Wn.length&&e!==0&&e<Wn[n].priority;n++);Wn.splice(n,0,t),n===0&&Np(t)}};var Hp=i.version;if(Hp!=="19.2.0")throw Error(o(527,Hp,"19.2.0"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var kv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{_i=uo.inject(kv),Ce=uo}catch{}}return Cl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,l="",r=Qh,u=Kh,h=Jh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Dp(t,1,!1,null,null,n,l,null,r,u,h,Up),t[Ra]=e.current,ju(t),new Iu(e)},Cl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var l=!1,r="",u=Qh,h=Kh,v=Jh,x=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),e=Dp(t,1,!0,e,n??null,l,r,x,u,h,v,Up),e.context=wp(null),n=e.current,l=Ve(),l=ko(l),r=Bn(l),r.callback=null,Ln(n,r,l),n=l,e.current.lanes=n,ji(e,n),an(e),t[Ra]=e.current,ju(t),new ro(e)},Cl.version="19.2.0",Cl}var Fp;function Iv(){if(Fp)return nc.exports;Fp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),nc.exports=$v(),nc.exports}var t3=Iv();function e3(){const[a,i]=X.useState(()=>sc());return X.useEffect(()=>{const s=document.querySelector("#adminmenuwrap"),o=document.querySelector("#wpadminbar");if(!s||!o)return;const c=new ResizeObserver(()=>{i(sc())});c.observe(s),c.observe(o);const d=()=>{i(sc())};return window.addEventListener("resize",d),()=>{c.disconnect(),window.removeEventListener("resize",d)}},[]),a}function sc(){const a=window.innerWidth,i=window.innerHeight,s=document.querySelector("#adminmenuwrap"),o=document.querySelector("#wpadminbar"),c=s?s.offsetWidth:0,d=o?o.offsetHeight:0;return{width:a-c,height:i-d,leftOffset:c,topOffset:d}}var gg,yg;const Xt=(yg=(gg=window.wp)==null?void 0:gg.i18n)!=null&&yg.__?a=>window.wp.i18n.__(a,"coupons-plus-for-woocommerce"):(a=>a),n3=({className:a,gap:i=12,radius:s=2,color:o="rgba(0,0,0,0.7)",darkColor:c,glowColor:d="rgba(0, 170, 255, 0.85)",darkGlowColor:f,colorLightVar:g,colorDarkVar:m,glowColorLightVar:p,glowColorDarkVar:y,opacity:b=.6,backgroundOpacity:S=0,speedMin:M=.4,speedMax:V=1.3,speedScale:L=1})=>{const R=X.useRef(null),q=X.useRef(null),[Q,Z]=X.useState(o),[P,F]=X.useState(d),W=(O,at)=>{if(!at)return null;const et=at.startsWith("--")?at:`--${at}`,St=getComputedStyle(O).getPropertyValue(et).trim();if(St)return St;const Et=document.documentElement;return getComputedStyle(Et).getPropertyValue(et).trim()||null},K=()=>{const O=document.documentElement;return O.classList.contains("dark")?!0:O.classList.contains("light")?!1:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches};return X.useEffect(()=>{var Zt;const O=q.current??document.documentElement,at=()=>{const jt=K();let Dt=o,z=d;if(jt){const Y=W(O,m),H=W(O,y);Dt=Y||c||Dt,z=H||f||z}else{const Y=W(O,g),H=W(O,p);Dt=Y||Dt,z=H||z}Z(Dt),F(z)};at();const et=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,St=()=>at();(Zt=et==null?void 0:et.addEventListener)==null||Zt.call(et,"change",St);const Et=new MutationObserver(()=>at());return Et.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style"]}),()=>{var jt;(jt=et==null?void 0:et.removeEventListener)==null||jt.call(et,"change",St),Et.disconnect()}},[o,c,d,f,g,m,p,y]),X.useEffect(()=>{const O=R.current,at=q.current;if(!O||!at)return;const et=O.getContext("2d");if(!et)return;let St=0,Et=!1;const Zt=Math.max(1,window.devicePixelRatio||1),jt=()=>{const{width:T,height:N}=at.getBoundingClientRect();O.width=Math.max(1,Math.floor(T*Zt)),O.height=Math.max(1,Math.floor(N*Zt)),O.style.width=`${Math.floor(T)}px`,O.style.height=`${Math.floor(N)}px`,et.setTransform(Zt,0,0,Zt,0,0)},Dt=new ResizeObserver(jt);Dt.observe(at),jt();let z=[];const Y=()=>{z=[];const{width:T,height:N}=at.getBoundingClientRect(),k=Math.ceil(T/i)+2,J=Math.ceil(N/i)+2,it=Math.min(M,V),ut=Math.max(M,V);for(let lt=-1;lt<k;lt++)for(let Lt=-1;Lt<J;Lt++){const Tt=lt*i+(Lt%2===0?0:i*.5),pe=Lt*i,$e=Math.random()*Math.PI*2,Ie=Math.max(ut-it,0),Ql=it+Math.random()*Ie;z.push({x:Tt,y:pe,phase:$e,speed:Ql})}},H=()=>{Y()};Y(),performance.now();const ft=T=>{if(Et)return;const{width:N,height:k}=at.getBoundingClientRect();if(et.clearRect(0,0,O.width,O.height),et.globalAlpha=b,S>0){const it=et.createRadialGradient(N*.5,k*.4,Math.min(N,k)*.1,N*.5,k*.5,Math.max(N,k)*.7);it.addColorStop(0,"rgba(0,0,0,0)"),it.addColorStop(1,`rgba(0,0,0,${Math.min(Math.max(S,0),1)})`),et.fillStyle=it,et.fillRect(0,0,N,k)}et.save(),et.fillStyle=Q;const J=T/1e3*Math.max(L,0);for(let it=0;it<z.length;it++){const ut=z[it],lt=(J*ut.speed+ut.phase)%2,Tt=.25+.55*(lt<1?lt:2-lt);if(Tt>.6){const pe=(Tt-.6)/.4;et.shadowColor=P,et.shadowBlur=6*pe}else et.shadowColor="transparent",et.shadowBlur=0;et.globalAlpha=Tt*b,et.beginPath(),et.arc(ut.x,ut.y,s,0,Math.PI*2),et.fill()}et.restore(),St=requestAnimationFrame(ft)},mt=()=>{jt(),H()};return window.addEventListener("resize",mt),St=requestAnimationFrame(ft),()=>{Et=!0,cancelAnimationFrame(St),window.removeEventListener("resize",mt),Dt.disconnect()}},[i,s,Q,P,b,S,M,V,L]),j.jsx("div",{ref:q,className:a,style:{position:"absolute",inset:0},children:j.jsx("canvas",{ref:R,style:{display:"block",width:"100%",height:"100%"}})})};var oc={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var Pp;function a3(){return Pp||(Pp=1,(function(a){(function(){var i={}.hasOwnProperty;function s(){for(var d="",f=0;f<arguments.length;f++){var g=arguments[f];g&&(d=c(d,o(g)))}return d}function o(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return s.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var f="";for(var g in d)i.call(d,g)&&d[g]&&(f=c(f,g));return f}function c(d,f){return f?d?d+" "+f:d+f:d}a.exports?(s.default=s,a.exports=s):window.classNames=s})()})(oc)),oc.exports}var i3=a3();const Dc=vg(i3);function bg(a){var i,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;i<c;i++)a[i]&&(s=bg(a[i]))&&(o&&(o+=" "),o+=s)}else for(s in a)a[s]&&(o&&(o+=" "),o+=s);return o}function l3(){for(var a,i,s=0,o="",c=arguments.length;s<c;s++)(a=arguments[s])&&(i=bg(a))&&(o&&(o+=" "),o+=i);return o}const sf="-",s3=a=>{const i=r3(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{const g=f.split(sf);return g[0]===""&&g.length!==1&&g.shift(),Sg(g,i)||o3(f)},getConflictingClassGroupIds:(f,g)=>{const m=s[f]||[];return g&&o[f]?[...m,...o[f]]:m}}},Sg=(a,i)=>{var f;if(a.length===0)return i.classGroupId;const s=a[0],o=i.nextPart.get(s),c=o?Sg(a.slice(1),o):void 0;if(c)return c;if(i.validators.length===0)return;const d=a.join(sf);return(f=i.validators.find(({validator:g})=>g(d)))==null?void 0:f.classGroupId},Wp=/^\[(.+)\]$/,o3=a=>{if(Wp.test(a)){const i=Wp.exec(a)[1],s=i==null?void 0:i.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},r3=a=>{const{theme:i,classGroups:s}=a,o={nextPart:new Map,validators:[]};for(const c in s)wc(s[c],o,c,i);return o},wc=(a,i,s,o)=>{a.forEach(c=>{if(typeof c=="string"){const d=c===""?i:$p(i,c);d.classGroupId=s;return}if(typeof c=="function"){if(u3(c)){wc(c(o),i,s,o);return}i.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([d,f])=>{wc(f,$p(i,d),s,o)})})},$p=(a,i)=>{let s=a;return i.split(sf).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},u3=a=>a.isThemeGetter,c3=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,o=new Map;const c=(d,f)=>{s.set(d,f),i++,i>a&&(i=0,o=s,s=new Map)};return{get(d){let f=s.get(d);if(f!==void 0)return f;if((f=o.get(d))!==void 0)return c(d,f),f},set(d,f){s.has(d)?s.set(d,f):c(d,f)}}},zc="!",Rc=":",f3=Rc.length,d3=a=>{const{prefix:i,experimentalParseClassName:s}=a;let o=c=>{const d=[];let f=0,g=0,m=0,p;for(let V=0;V<c.length;V++){let L=c[V];if(f===0&&g===0){if(L===Rc){d.push(c.slice(m,V)),m=V+f3;continue}if(L==="/"){p=V;continue}}L==="["?f++:L==="]"?f--:L==="("?g++:L===")"&&g--}const y=d.length===0?c:c.substring(m),b=h3(y),S=b!==y,M=p&&p>m?p-m:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:M}};if(i){const c=i+Rc,d=o;o=f=>f.startsWith(c)?d(f.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(s){const c=o;o=d=>s({className:d,parseClassName:c})}return o},h3=a=>a.endsWith(zc)?a.substring(0,a.length-1):a.startsWith(zc)?a.substring(1):a,m3=a=>{const i=Object.fromEntries(a.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const c=[];let d=[];return o.forEach(f=>{f[0]==="["||i[f]?(c.push(...d.sort(),f),d=[]):d.push(f)}),c.push(...d.sort()),c}},p3=a=>({cache:c3(a.cacheSize),parseClassName:d3(a),sortModifiers:m3(a),...s3(a)}),g3=/\s+/,y3=(a,i)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d}=i,f=[],g=a.trim().split(g3);let m="";for(let p=g.length-1;p>=0;p-=1){const y=g[p],{isExternal:b,modifiers:S,hasImportantModifier:M,baseClassName:V,maybePostfixModifierPosition:L}=s(y);if(b){m=y+(m.length>0?" "+m:m);continue}let R=!!L,q=o(R?V.substring(0,L):V);if(!q){if(!R){m=y+(m.length>0?" "+m:m);continue}if(q=o(V),!q){m=y+(m.length>0?" "+m:m);continue}R=!1}const Q=d(S).join(":"),Z=M?Q+zc:Q,P=Z+q;if(f.includes(P))continue;f.push(P);const F=c(q,R);for(let W=0;W<F.length;++W){const K=F[W];f.push(Z+K)}m=y+(m.length>0?" "+m:m)}return m};function v3(){let a=0,i,s,o="";for(;a<arguments.length;)(i=arguments[a++])&&(s=xg(i))&&(o&&(o+=" "),o+=s);return o}const xg=a=>{if(typeof a=="string")return a;let i,s="";for(let o=0;o<a.length;o++)a[o]&&(i=xg(a[o]))&&(s&&(s+=" "),s+=i);return s};function b3(a,...i){let s,o,c,d=f;function f(m){const p=i.reduce((y,b)=>b(y),a());return s=p3(p),o=s.cache.get,c=s.cache.set,d=g,g(m)}function g(m){const p=o(m);if(p)return p;const y=y3(m,s);return c(m,y),y}return function(){return d(v3.apply(null,arguments))}}const ee=a=>{const i=s=>s[a]||[];return i.isThemeGetter=!0,i},Tg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ag=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S3=/^\d+\/\d+$/,x3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T3=/\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$/,A3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mi=a=>S3.test(a),pt=a=>!!a&&!Number.isNaN(Number(a)),In=a=>!!a&&Number.isInteger(Number(a)),rc=a=>a.endsWith("%")&&pt(a.slice(0,-1)),Cn=a=>x3.test(a),E3=()=>!0,D3=a=>T3.test(a)&&!A3.test(a),Mg=()=>!1,w3=a=>M3.test(a),z3=a=>C3.test(a),R3=a=>!I(a)&&!tt(a),O3=a=>Ei(a,Dg,Mg),I=a=>Tg.test(a),Aa=a=>Ei(a,wg,D3),uc=a=>Ei(a,B3,pt),Ip=a=>Ei(a,Cg,Mg),_3=a=>Ei(a,Eg,z3),co=a=>Ei(a,zg,w3),tt=a=>Ag.test(a),El=a=>Di(a,wg),V3=a=>Di(a,L3),t0=a=>Di(a,Cg),j3=a=>Di(a,Dg),N3=a=>Di(a,Eg),fo=a=>Di(a,zg,!0),Ei=(a,i,s)=>{const o=Tg.exec(a);return o?o[1]?i(o[1]):s(o[2]):!1},Di=(a,i,s=!1)=>{const o=Ag.exec(a);return o?o[1]?i(o[1]):s:!1},Cg=a=>a==="position"||a==="percentage",Eg=a=>a==="image"||a==="url",Dg=a=>a==="length"||a==="size"||a==="bg-size",wg=a=>a==="length",B3=a=>a==="number",L3=a=>a==="family-name",zg=a=>a==="shadow",U3=()=>{const a=ee("color"),i=ee("font"),s=ee("text"),o=ee("font-weight"),c=ee("tracking"),d=ee("leading"),f=ee("breakpoint"),g=ee("container"),m=ee("spacing"),p=ee("radius"),y=ee("shadow"),b=ee("inset-shadow"),S=ee("text-shadow"),M=ee("drop-shadow"),V=ee("blur"),L=ee("perspective"),R=ee("aspect"),q=ee("ease"),Q=ee("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...P(),tt,I],W=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],O=()=>[tt,I,m],at=()=>[mi,"full","auto",...O()],et=()=>[In,"none","subgrid",tt,I],St=()=>["auto",{span:["full",In,tt,I]},In,tt,I],Et=()=>[In,"auto",tt,I],Zt=()=>["auto","min","max","fr",tt,I],jt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Dt=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...O()],Y=()=>[mi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],H=()=>[a,tt,I],ft=()=>[...P(),t0,Ip,{position:[tt,I]}],mt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",j3,O3,{size:[tt,I]}],N=()=>[rc,El,Aa],k=()=>["","none","full",p,tt,I],J=()=>["",pt,El,Aa],it=()=>["solid","dashed","dotted","double"],ut=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],lt=()=>[pt,rc,t0,Ip],Lt=()=>["","none",V,tt,I],Tt=()=>["none",pt,tt,I],pe=()=>["none",pt,tt,I],$e=()=>[pt,tt,I],Ie=()=>[mi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cn],breakpoint:[Cn],color:[E3],container:[Cn],"drop-shadow":[Cn],ease:["in","out","in-out"],font:[R3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cn],shadow:[Cn],spacing:["px",pt],text:[Cn],"text-shadow":[Cn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mi,I,tt,R]}],container:["container"],columns:[{columns:[pt,I,tt,g]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:F()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:at()}],"inset-x":[{"inset-x":at()}],"inset-y":[{"inset-y":at()}],start:[{start:at()}],end:[{end:at()}],top:[{top:at()}],right:[{right:at()}],bottom:[{bottom:at()}],left:[{left:at()}],visibility:["visible","invisible","collapse"],z:[{z:[In,"auto",tt,I]}],basis:[{basis:[mi,"full","auto",g,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pt,mi,"auto","initial","none",I]}],grow:[{grow:["",pt,tt,I]}],shrink:[{shrink:["",pt,tt,I]}],order:[{order:[In,"first","last","none",tt,I]}],"grid-cols":[{"grid-cols":et()}],"col-start-end":[{col:St()}],"col-start":[{"col-start":Et()}],"col-end":[{"col-end":Et()}],"grid-rows":[{"grid-rows":et()}],"row-start-end":[{row:St()}],"row-start":[{"row-start":Et()}],"row-end":[{"row-end":Et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Zt()}],"auto-rows":[{"auto-rows":Zt()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...jt(),"normal"]}],"justify-items":[{"justify-items":[...Dt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Dt()]}],"align-content":[{content:["normal",...jt()]}],"align-items":[{items:[...Dt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Dt(),{baseline:["","last"]}]}],"place-content":[{"place-content":jt()}],"place-items":[{"place-items":[...Dt(),"baseline"]}],"place-self":[{"place-self":["auto",...Dt()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[g,"screen",...Y()]}],"min-w":[{"min-w":[g,"screen","none",...Y()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[f]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",s,El,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,tt,uc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rc,I]}],"font-family":[{font:[V3,I,i]}],"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:[c,tt,I]}],"line-clamp":[{"line-clamp":[pt,"none",tt,uc]}],leading:[{leading:[d,...O()]}],"list-image":[{"list-image":["none",tt,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tt,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[pt,"from-font","auto",tt,Aa]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[pt,"auto",tt,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt,I]}],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",tt,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ft()}],"bg-repeat":[{bg:mt()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},In,tt,I],radial:["",tt,I],conic:[In,tt,I]},N3,_3]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pt,tt,I]}],"outline-w":[{outline:["",pt,El,Aa]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",y,fo,co]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",b,fo,co]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[pt,Aa]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",S,fo,co]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[pt,tt,I]}],"mix-blend":[{"mix-blend":[...ut(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ut()}],"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":[pt]}],"mask-image-linear-from-pos":[{"mask-linear-from":lt()}],"mask-image-linear-to-pos":[{"mask-linear-to":lt()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":lt()}],"mask-image-t-to-pos":[{"mask-t-to":lt()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":lt()}],"mask-image-r-to-pos":[{"mask-r-to":lt()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":lt()}],"mask-image-b-to-pos":[{"mask-b-to":lt()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":lt()}],"mask-image-l-to-pos":[{"mask-l-to":lt()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":lt()}],"mask-image-x-to-pos":[{"mask-x-to":lt()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":lt()}],"mask-image-y-to-pos":[{"mask-y-to":lt()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[tt,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":lt()}],"mask-image-radial-to-pos":[{"mask-radial-to":lt()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[pt]}],"mask-image-conic-from-pos":[{"mask-conic-from":lt()}],"mask-image-conic-to-pos":[{"mask-conic-to":lt()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ft()}],"mask-repeat":[{mask:mt()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tt,I]}],filter:[{filter:["","none",tt,I]}],blur:[{blur:Lt()}],brightness:[{brightness:[pt,tt,I]}],contrast:[{contrast:[pt,tt,I]}],"drop-shadow":[{"drop-shadow":["","none",M,fo,co]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",pt,tt,I]}],"hue-rotate":[{"hue-rotate":[pt,tt,I]}],invert:[{invert:["",pt,tt,I]}],saturate:[{saturate:[pt,tt,I]}],sepia:[{sepia:["",pt,tt,I]}],"backdrop-filter":[{"backdrop-filter":["","none",tt,I]}],"backdrop-blur":[{"backdrop-blur":Lt()}],"backdrop-brightness":[{"backdrop-brightness":[pt,tt,I]}],"backdrop-contrast":[{"backdrop-contrast":[pt,tt,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pt,tt,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pt,tt,I]}],"backdrop-invert":[{"backdrop-invert":["",pt,tt,I]}],"backdrop-opacity":[{"backdrop-opacity":[pt,tt,I]}],"backdrop-saturate":[{"backdrop-saturate":[pt,tt,I]}],"backdrop-sepia":[{"backdrop-sepia":["",pt,tt,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tt,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pt,"initial",tt,I]}],ease:[{ease:["linear","initial",q,tt,I]}],delay:[{delay:[pt,tt,I]}],animate:[{animate:["none",Q,tt,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[L,tt,I]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Tt()}],"rotate-x":[{"rotate-x":Tt()}],"rotate-y":[{"rotate-y":Tt()}],"rotate-z":[{"rotate-z":Tt()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[tt,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",tt,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",tt,I]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[pt,El,Aa,uc]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["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-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},H3=b3(U3);function Oo(...a){return H3(l3(a))}const of=X.createContext({});function _o(a){const i=X.useRef(null);return i.current===null&&(i.current=a()),i.current}const rf=typeof window<"u",Rg=rf?X.useLayoutEffect:X.useEffect,Vo=X.createContext(null);function uf(a,i){a.indexOf(i)===-1&&a.push(i)}function cf(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const En=(a,i,s)=>s>i?i:s<a?a:s;let ff=()=>{};const Dn={},Og=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function _g(a){return typeof a=="object"&&a!==null}const Vg=a=>/^0[^.\s]+$/u.test(a);function df(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ke=a=>a,G3=(a,i)=>s=>i(a(s)),Yl=(...a)=>a.reduce(G3),Nl=(a,i,s)=>{const o=i-a;return o===0?1:(s-a)/o};class hf{constructor(){this.subscriptions=[]}add(i){return uf(this.subscriptions,i),()=>cf(this.subscriptions,i)}notify(i,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,o);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ln=a=>a*1e3,Qe=a=>a/1e3;function jg(a,i){return i?a*(1e3/i):0}const Ng=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,q3=1e-7,Y3=12;function k3(a,i,s,o,c){let d,f,g=0;do f=i+(s-i)/2,d=Ng(f,o,c)-a,d>0?s=f:i=f;while(Math.abs(d)>q3&&++g<Y3);return f}function kl(a,i,s,o){if(a===i&&s===o)return Ke;const c=d=>k3(d,0,1,a,s);return d=>d===0||d===1?d:Ng(c(d),i,o)}const Bg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Lg=a=>i=>1-a(1-i),Ug=kl(.33,1.53,.69,.99),mf=Lg(Ug),Hg=Bg(mf),Gg=a=>(a*=2)<1?.5*mf(a):.5*(2-Math.pow(2,-10*(a-1))),pf=a=>1-Math.sin(Math.acos(a)),qg=Lg(pf),Yg=Bg(pf),X3=kl(.42,0,1,1),Z3=kl(0,0,.58,1),kg=kl(.42,0,.58,1),Q3=a=>Array.isArray(a)&&typeof a[0]!="number",Xg=a=>Array.isArray(a)&&typeof a[0]=="number",K3={linear:Ke,easeIn:X3,easeInOut:kg,easeOut:Z3,circIn:pf,circInOut:Yg,circOut:qg,backIn:mf,backInOut:Hg,backOut:Ug,anticipate:Gg},J3=a=>typeof a=="string",e0=a=>{if(Xg(a)){ff(a.length===4);const[i,s,o,c]=a;return kl(i,s,o,c)}else if(J3(a))return K3[a];return a},ho=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function F3(a,i){let s=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(p.schedule(y),a()),y(g)}const p={schedule:(y,b=!1,S=!1)=>{const V=S&&c?s:o;return b&&f.add(y),V.has(y)||V.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(g=y,c){d=!0;return}c=!0,[s,o]=[o,s],s.forEach(m),s.clear(),c=!1,d&&(d=!1,p.process(y))}};return p}const P3=40;function Zg(a,i){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ho.reduce((Z,P)=>(Z[P]=F3(d),Z),{}),{setup:g,read:m,resolveKeyframes:p,preUpdate:y,update:b,preRender:S,render:M,postRender:V}=f,L=()=>{const Z=Dn.useManualTiming?c.timestamp:performance.now();s=!1,Dn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(Z-c.timestamp,P3),1)),c.timestamp=Z,c.isProcessing=!0,g.process(c),m.process(c),p.process(c),y.process(c),b.process(c),S.process(c),M.process(c),V.process(c),c.isProcessing=!1,s&&i&&(o=!1,a(L))},R=()=>{s=!0,o=!0,c.isProcessing||a(L)};return{schedule:ho.reduce((Z,P)=>{const F=f[P];return Z[P]=(W,K=!1,O=!1)=>(s||R(),F.schedule(W,K,O)),Z},{}),cancel:Z=>{for(let P=0;P<ho.length;P++)f[ho[P]].cancel(Z)},state:c,steps:f}}const{schedule:Ht,cancel:ea,state:ue,steps:cc}=Zg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);let yo;function W3(){yo=void 0}const Ae={now:()=>(yo===void 0&&Ae.set(ue.isProcessing||Dn.useManualTiming?ue.timestamp:performance.now()),yo),set:a=>{yo=a,queueMicrotask(W3)}},Qg=a=>i=>typeof i=="string"&&i.startsWith(a),gf=Qg("--"),$3=Qg("var(--"),yf=a=>$3(a)?I3.test(a.split("/*")[0].trim()):!1,I3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Bl={...wi,transform:a=>En(0,1,a)},mo={...wi,default:1},Rl=a=>Math.round(a*1e5)/1e5,vf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tb(a){return a==null}const eb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bf=(a,i)=>s=>!!(typeof s=="string"&&eb.test(s)&&s.startsWith(a)||i&&!tb(s)&&Object.prototype.hasOwnProperty.call(s,i)),Kg=(a,i,s)=>o=>{if(typeof o!="string")return o;const[c,d,f,g]=o.match(vf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},nb=a=>En(0,255,a),fc={...wi,transform:a=>Math.round(nb(a))},Ea={test:bf("rgb","red"),parse:Kg("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:o=1})=>"rgba("+fc.transform(a)+", "+fc.transform(i)+", "+fc.transform(s)+", "+Rl(Bl.transform(o))+")"};function ab(a){let i="",s="",o="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Oc={test:bf("#"),parse:ab,transform:Ea.transform},Xl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),ta=Xl("deg"),sn=Xl("%"),rt=Xl("px"),ib=Xl("vh"),lb=Xl("vw"),n0={...sn,parse:a=>sn.parse(a)/100,transform:a=>sn.transform(a*100)},gi={test:bf("hsl","hue"),parse:Kg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:o=1})=>"hsla("+Math.round(a)+", "+sn.transform(Rl(i))+", "+sn.transform(Rl(s))+", "+Rl(Bl.transform(o))+")"},It={test:a=>Ea.test(a)||Oc.test(a)||gi.test(a),parse:a=>Ea.test(a)?Ea.parse(a):gi.test(a)?gi.parse(a):Oc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ea.transform(a):gi.transform(a),getAnimatableNone:a=>{const i=It.parse(a);return i.alpha=0,It.transform(i)}},sb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ob(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(vf))==null?void 0:i.length)||0)+(((s=a.match(sb))==null?void 0:s.length)||0)>0}const Jg="number",Fg="color",rb="var",ub="var(",a0="${}",cb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ll(a){const i=a.toString(),s=[],o={color:[],number:[],var:[]},c=[];let d=0;const g=i.replace(cb,m=>(It.test(m)?(o.color.push(d),c.push(Fg),s.push(It.parse(m))):m.startsWith(ub)?(o.var.push(d),c.push(rb),s.push(m)):(o.number.push(d),c.push(Jg),s.push(parseFloat(m))),++d,a0)).split(a0);return{values:s,split:g,indexes:o,types:c}}function Pg(a){return Ll(a).values}function Wg(a){const{split:i,types:s}=Ll(a),o=i.length;return c=>{let d="";for(let f=0;f<o;f++)if(d+=i[f],c[f]!==void 0){const g=s[f];g===Jg?d+=Rl(c[f]):g===Fg?d+=It.transform(c[f]):d+=c[f]}return d}}const fb=a=>typeof a=="number"?0:It.test(a)?It.getAnimatableNone(a):a;function db(a){const i=Pg(a);return Wg(a)(i.map(fb))}const na={test:ob,parse:Pg,createTransformer:Wg,getAnimatableNone:db};function dc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function hb({hue:a,saturation:i,lightness:s,alpha:o}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const g=s<.5?s*(1+i):s+i-s*i,m=2*s-g;c=dc(m,g,a+1/3),d=dc(m,g,a),f=dc(m,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function To(a,i){return s=>s>0?i:a}const Gt=(a,i,s)=>a+(i-a)*s,hc=(a,i,s)=>{const o=a*a,c=s*(i*i-o)+o;return c<0?0:Math.sqrt(c)},mb=[Oc,Ea,gi],pb=a=>mb.find(i=>i.test(a));function i0(a){const i=pb(a);if(!i)return!1;let s=i.parse(a);return i===gi&&(s=hb(s)),s}const l0=(a,i)=>{const s=i0(a),o=i0(i);if(!s||!o)return To(a,i);const c={...s};return d=>(c.red=hc(s.red,o.red,d),c.green=hc(s.green,o.green,d),c.blue=hc(s.blue,o.blue,d),c.alpha=Gt(s.alpha,o.alpha,d),Ea.transform(c))},_c=new Set(["none","hidden"]);function gb(a,i){return _c.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function yb(a,i){return s=>Gt(a,i,s)}function Sf(a){return typeof a=="number"?yb:typeof a=="string"?yf(a)?To:It.test(a)?l0:Sb:Array.isArray(a)?$g:typeof a=="object"?It.test(a)?l0:vb:To}function $g(a,i){const s=[...a],o=s.length,c=a.map((d,f)=>Sf(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)s[f]=c[f](d);return s}}function vb(a,i){const s={...a,...i},o={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(o[c]=Sf(a[c])(a[c],i[c]));return c=>{for(const d in o)s[d]=o[d](c);return s}}function bb(a,i){const s=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][o[d]],g=a.values[f]??0;s[c]=g,o[d]++}return s}const Sb=(a,i)=>{const s=na.createTransformer(i),o=Ll(a),c=Ll(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?_c.has(a)&&!c.values.length||_c.has(i)&&!o.values.length?gb(a,i):Yl($g(bb(o,c),c.values),s):To(a,i)};function Ig(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Gt(a,i,s):Sf(a)(a,i)}const xb=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>Ht.update(i,s),stop:()=>ea(i),now:()=>ue.isProcessing?ue.timestamp:Ae.now()}},ty=(a,i,s=10)=>{let o="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Ao=2e4;function xf(a){let i=0;const s=50;let o=a.next(i);for(;!o.done&&i<Ao;)i+=s,o=a.next(i);return i>=Ao?1/0:i}function Tb(a,i=100,s){const o=s({...a,keyframes:[0,i]}),c=Math.min(xf(o),Ao);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Qe(c)}}const Ab=5;function ey(a,i,s){const o=Math.max(i-Ab,0);return jg(s-a(o),i-o)}const kt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},mc=.001;function Mb({duration:a=kt.duration,bounce:i=kt.bounce,velocity:s=kt.velocity,mass:o=kt.mass}){let c,d,f=1-i;f=En(kt.minDamping,kt.maxDamping,f),a=En(kt.minDuration,kt.maxDuration,Qe(a)),f<1?(c=p=>{const y=p*f,b=y*a,S=y-s,M=Vc(p,f),V=Math.exp(-b);return mc-S/M*V},d=p=>{const b=p*f*a,S=b*s+s,M=Math.pow(f,2)*Math.pow(p,2)*a,V=Math.exp(-b),L=Vc(Math.pow(p,2),f);return(-c(p)+mc>0?-1:1)*((S-M)*V)/L}):(c=p=>{const y=Math.exp(-p*a),b=(p-s)*a+1;return-mc+y*b},d=p=>{const y=Math.exp(-p*a),b=(s-p)*(a*a);return y*b});const g=5/a,m=Eb(c,d,g);if(a=ln(a),isNaN(m))return{stiffness:kt.stiffness,damping:kt.damping,duration:a};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const Cb=12;function Eb(a,i,s){let o=s;for(let c=1;c<Cb;c++)o=o-a(o)/i(o);return o}function Vc(a,i){return a*Math.sqrt(1-i*i)}const Db=["duration","bounce"],wb=["stiffness","damping","mass"];function s0(a,i){return i.some(s=>a[s]!==void 0)}function zb(a){let i={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...a};if(!s0(a,wb)&&s0(a,Db))if(a.visualDuration){const s=a.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,d=2*En(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:kt.mass,stiffness:c,damping:d}}else{const s=Mb(a);i={...i,...s,mass:kt.mass},i.isResolvedFromDuration=!0}return i}function Mo(a=kt.visualDuration,i=kt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],g={done:!1,value:d},{stiffness:m,damping:p,mass:y,duration:b,velocity:S,isResolvedFromDuration:M}=zb({...s,velocity:-Qe(s.velocity||0)}),V=S||0,L=p/(2*Math.sqrt(m*y)),R=f-d,q=Qe(Math.sqrt(m/y)),Q=Math.abs(R)<5;o||(o=Q?kt.restSpeed.granular:kt.restSpeed.default),c||(c=Q?kt.restDelta.granular:kt.restDelta.default);let Z;if(L<1){const F=Vc(q,L);Z=W=>{const K=Math.exp(-L*q*W);return f-K*((V+L*q*R)/F*Math.sin(F*W)+R*Math.cos(F*W))}}else if(L===1)Z=F=>f-Math.exp(-q*F)*(R+(V+q*R)*F);else{const F=q*Math.sqrt(L*L-1);Z=W=>{const K=Math.exp(-L*q*W),O=Math.min(F*W,300);return f-K*((V+L*q*R)*Math.sinh(O)+F*R*Math.cosh(O))/F}}const P={calculatedDuration:M&&b||null,next:F=>{const W=Z(F);if(M)g.done=F>=b;else{let K=F===0?V:0;L<1&&(K=F===0?ln(V):ey(Z,F,W));const O=Math.abs(K)<=o,at=Math.abs(f-W)<=c;g.done=O&&at}return g.value=g.done?f:W,g},toString:()=>{const F=Math.min(xf(P),Ao),W=ty(K=>P.next(F*K).value,F,30);return F+"ms "+W},toTransition:()=>{}};return P}Mo.applyToOptions=a=>{const i=Tb(a,100,Mo);return a.ease=i.ease,a.duration=ln(i.duration),a.type="keyframes",a};function jc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:g,max:m,restDelta:p=.5,restSpeed:y}){const b=a[0],S={done:!1,value:b},M=O=>g!==void 0&&O<g||m!==void 0&&O>m,V=O=>g===void 0?m:m===void 0||Math.abs(g-O)<Math.abs(m-O)?g:m;let L=s*i;const R=b+L,q=f===void 0?R:f(R);q!==R&&(L=q-b);const Q=O=>-L*Math.exp(-O/o),Z=O=>q+Q(O),P=O=>{const at=Q(O),et=Z(O);S.done=Math.abs(at)<=p,S.value=S.done?q:et};let F,W;const K=O=>{M(S.value)&&(F=O,W=Mo({keyframes:[S.value,V(S.value)],velocity:ey(Z,O,S.value),damping:c,stiffness:d,restDelta:p,restSpeed:y}))};return K(0),{calculatedDuration:null,next:O=>{let at=!1;return!W&&F===void 0&&(at=!0,P(O),K(O)),F!==void 0&&O>=F?W.next(O-F):(!at&&P(O),S)}}}function Rb(a,i,s){const o=[],c=s||Dn.mix||Ig,d=a.length-1;for(let f=0;f<d;f++){let g=c(a[f],a[f+1]);if(i){const m=Array.isArray(i)?i[f]||Ke:i;g=Yl(m,g)}o.push(g)}return o}function Ob(a,i,{clamp:s=!0,ease:o,mixer:c}={}){const d=a.length;if(ff(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=Rb(i,o,c),m=g.length,p=y=>{if(f&&y<a[0])return i[0];let b=0;if(m>1)for(;b<a.length-2&&!(y<a[b+1]);b++);const S=Nl(a[b],a[b+1],y);return g[b](S)};return s?y=>p(En(a[0],a[d-1],y)):p}function _b(a,i){const s=a[a.length-1];for(let o=1;o<=i;o++){const c=Nl(0,i,o);a.push(Gt(s,1,c))}}function Vb(a){const i=[0];return _b(i,a.length-1),i}function jb(a,i){return a.map(s=>s*i)}function Nb(a,i){return a.map(()=>i||kg).splice(0,a.length-1)}function Ol({duration:a=300,keyframes:i,times:s,ease:o="easeInOut"}){const c=Q3(o)?o.map(e0):e0(o),d={done:!1,value:i[0]},f=jb(s&&s.length===i.length?s:Vb(i),a),g=Ob(f,i,{ease:Array.isArray(c)?c:Nb(i,c)});return{calculatedDuration:a,next:m=>(d.value=g(m),d.done=m>=a,d)}}const Bb=a=>a!==null;function Tf(a,{repeat:i,repeatType:s="loop"},o,c=1){const d=a.filter(Bb),g=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!g||o===void 0?d[g]:o}const Lb={decay:jc,inertia:jc,tween:Ol,keyframes:Ol,spring:Mo};function ny(a){typeof a.type=="string"&&(a.type=Lb[a.type])}class Af{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const Ub=a=>a/100;class Mf extends Af{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,c;const{motionValue:s}=this.options;s&&s.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(o=this.options).onStop)==null||c.call(o))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;ny(i);const{type:s=Ol,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:g}=i;const m=s||Ol;m!==Ol&&typeof g[0]!="number"&&(this.mixKeyframes=Yl(Ub,Ig(g[0],g[1])),g=[0,100]);const p=m({...i,keyframes:g});d==="mirror"&&(this.mirroredGenerator=m({...i,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=xf(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:b,repeatType:S,repeatDelay:M,type:V,onUpdate:L,finalKeyframe:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const q=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Q=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Z=this.currentTime,P=o;if(b){const O=Math.min(this.currentTime,c)/g;let at=Math.floor(O),et=O%1;!et&&O>=1&&(et=1),et===1&&at--,at=Math.min(at,b+1),!!(at%2)&&(S==="reverse"?(et=1-et,M&&(et-=M/g)):S==="mirror"&&(P=f)),Z=En(0,1,et)*g}const F=Q?{done:!1,value:y[0]}:P.next(Z);d&&(F.value=d(F.value));let{done:W}=F;!Q&&m!==null&&(W=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return K&&V!==jc&&(F.value=Tf(y,this.options,R,this.speed)),L&&L(F.value),K&&this.finish(),F}then(i,s){return this.finished.then(i,s)}get duration(){return Qe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Qe(i)}get time(){return Qe(this.currentTime)}set time(i){var s;i=ln(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Ae.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=xb,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function Hb(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Da=a=>a*180/Math.PI,Nc=a=>{const i=Da(Math.atan2(a[1],a[0]));return Bc(i)},Gb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Nc,rotateZ:Nc,skewX:a=>Da(Math.atan(a[1])),skewY:a=>Da(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Bc=a=>(a=a%360,a<0&&(a+=360),a),o0=Nc,r0=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),u0=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r0,scaleY:u0,scale:a=>(r0(a)+u0(a))/2,rotateX:a=>Bc(Da(Math.atan2(a[6],a[5]))),rotateY:a=>Bc(Da(Math.atan2(-a[2],a[0]))),rotateZ:o0,rotate:o0,skewX:a=>Da(Math.atan(a[4])),skewY:a=>Da(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Lc(a){return a.includes("scale")?1:0}function Uc(a,i){if(!a||a==="none")return Lc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=qb,c=s;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Gb,c=g}if(!c)return Lc(i);const d=o[i],f=c[1].split(",").map(kb);return typeof d=="function"?d(f):f[d]}const Yb=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Uc(s,i)};function kb(a){return parseFloat(a.trim())}const zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ri=new Set(zi),c0=a=>a===wi||a===rt,Xb=new Set(["x","y","z"]),Zb=zi.filter(a=>!Xb.has(a));function Qb(a){const i=[];return Zb.forEach(s=>{const o=a.getValue(s);o!==void 0&&(i.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),i}const wa={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Uc(i,"x"),y:(a,{transform:i})=>Uc(i,"y")};wa.translateX=wa.x;wa.translateY=wa.y;const za=new Set;let Hc=!1,Gc=!1,qc=!1;function ay(){if(Gc){const a=Array.from(za).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),s=new Map;i.forEach(o=>{const c=Qb(o);c.length&&(s.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([d,f])=>{var g;(g=o.getValue(d))==null||g.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Gc=!1,Hc=!1,za.forEach(a=>a.complete(qc)),za.clear()}function iy(){za.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Gc=!0)})}function Kb(){qc=!0,iy(),ay(),qc=!1}class Cf{constructor(i,s,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(za.add(this),Hc||(Hc=!0,Ht.read(iy),Ht.resolveKeyframes(ay))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:o,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&s){const g=o.readValue(s,f);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}Hb(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),za.delete(this)}cancel(){this.state==="scheduled"&&(za.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jb=a=>a.startsWith("--");function Fb(a,i,s){Jb(i)?a.style.setProperty(i,s):a.style[i]=s}const Pb=df(()=>window.ScrollTimeline!==void 0),Wb={};function $b(a,i){const s=df(a);return()=>Wb[i]??s()}const ly=$b(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zl=([a,i,s,o])=>`cubic-bezier(${a}, ${i}, ${s}, ${o})`,f0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zl([0,.65,.55,1]),circOut:zl([.55,0,1,.45]),backIn:zl([.31,.01,.66,-.59]),backOut:zl([.33,1.53,.69,.99])};function sy(a,i){if(a)return typeof a=="function"?ly()?ty(a,i):"ease-out":Xg(a)?zl(a):Array.isArray(a)?a.map(s=>sy(s,i)||f0.easeOut):f0[a]}function Ib(a,i,s,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:g="easeOut",times:m}={},p=void 0){const y={[i]:s};m&&(y.offset=m);const b=sy(g,c);Array.isArray(b)&&(y.easing=b);const S={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(y,S)}function oy(a){return typeof a=="function"&&"applyToOptions"in a}function t5({type:a,...i}){return oy(a)&&ly()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class e5 extends Af{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:g,onComplete:m}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,ff(typeof i.type!="string");const p=t5(i);this.animation=Ib(s,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=Tf(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(y):Fb(s,o,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s;this.isPseudoElement||(s=(i=this.animation).commitStyles)==null||s.call(i)}get duration(){var s,o;const i=((o=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:o.call(s).duration)||0;return Qe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Qe(i)}get time(){return Qe(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=ln(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&Pb()?(this.animation.timeline=i,Ke):s(this)}}const ry={anticipate:Gg,backInOut:Hg,circInOut:Yg};function n5(a){return a in ry}function a5(a){typeof a.ease=="string"&&n5(a.ease)&&(a.ease=ry[a.ease])}const d0=10;class i5 extends e5{constructor(i){a5(i),ny(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const g=new Mf({...f,autoplay:!1}),m=ln(this.finishedTime??this.time);s.setWithVelocity(g.sample(m-d0).value,g.sample(m).value,d0),g.stop()}}const h0=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(na.test(a)||a==="0")&&!a.startsWith("url("));function l5(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function s5(a,i,s,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=h0(c,i),g=h0(d,i);return!f||!g?!1:l5(a)||(s==="spring"||oy(s))&&o}function Yc(a){a.duration=0,a.type="keyframes"}const o5=new Set(["opacity","clipPath","filter","transform"]),r5=df(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function u5(a){var y;const{motionValue:i,name:s,repeatDelay:o,repeatType:c,damping:d,type:f}=a;if(!(((y=i==null?void 0:i.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=i.owner.getProps();return r5()&&s&&o5.has(s)&&(s!=="transform"||!p)&&!m&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const c5=40;class f5 extends Af{constructor({autoplay:i=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:g,name:m,motionValue:p,element:y,...b}){var V;super(),this.stop=()=>{var L,R;this._animation&&(this._animation.stop(),(L=this.stopTimeline)==null||L.call(this)),(R=this.keyframeResolver)==null||R.cancel()},this.createdAt=Ae.now();const S={autoplay:i,delay:s,type:o,repeat:c,repeatDelay:d,repeatType:f,name:m,motionValue:p,element:y,...b},M=(y==null?void 0:y.KeyframeResolver)||Cf;this.keyframeResolver=new M(g,(L,R,q)=>this.onKeyframesResolved(L,R,S,!q),m,p,y),(V=this.keyframeResolver)==null||V.scheduleResolve()}onKeyframesResolved(i,s,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:g,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=Ae.now(),s5(i,d,f,g)||((Dn.instantAnimations||!m)&&(y==null||y(Tf(i,o,s))),i[0]=i[i.length-1],Yc(o),o.repeat=0);const S={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>c5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:i},M=!p&&u5(S)?new i5({...S,element:S.motionValue.owner.current}):new Mf(S);M.finished.then(()=>this.notifyFinished()).catch(Ke),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),Kb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}const d5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function h5(a){const i=d5.exec(a);if(!i)return[,];const[,s,o,c]=i;return[`--${s??o}`,c]}function uy(a,i,s=1){const[o,c]=h5(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return Og(f)?parseFloat(f):f}return yf(c)?uy(c,i,s+1):c}function Ef(a,i){return(a==null?void 0:a[i])??(a==null?void 0:a.default)??a}const cy=new Set(["width","height","top","left","right","bottom",...zi]),m5={test:a=>a==="auto",parse:a=>a},fy=a=>i=>i.test(a),dy=[wi,rt,sn,ta,lb,ib,m5],m0=a=>dy.find(fy(a));function p5(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Vg(a):!0}const g5=new Set(["brightness","contrast","saturate","opacity"]);function y5(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=s.match(vf)||[];if(!o)return a;const c=s.replace(o,"");let d=g5.has(i)?1:0;return o!==s&&(d*=100),i+"("+d+c+")"}const v5=/\b([a-z-]*)\(.*?\)/gu,kc={...na,getAnimatableNone:a=>{const i=a.match(v5);return i?i.map(y5).join(" "):a}},p0={...wi,transform:Math.round},b5={rotate:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:mo,scaleX:mo,scaleY:mo,scaleZ:mo,skew:ta,skewX:ta,skewY:ta,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Bl,originX:n0,originY:n0,originZ:rt},Df={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt,...b5,zIndex:p0,fillOpacity:Bl,strokeOpacity:Bl,numOctaves:p0},S5={...Df,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:kc,WebkitFilter:kc},hy=a=>S5[a];function my(a,i){let s=hy(a);return s!==kc&&(s=na),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const x5=new Set(["auto","none","0"]);function T5(a,i,s){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!x5.has(d)&&Ll(d).values.length&&(c=a[o]),o++}if(c&&s)for(const d of i)a[d]=my(s,c)}class A5 extends Cf{constructor(i,s,o,c,d){super(i,s,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let p=i[m];if(typeof p=="string"&&(p=p.trim(),yf(p))){const y=uy(p,s.current);y!==void 0&&(i[m]=y),m===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!cy.has(o)||i.length!==2)return;const[c,d]=i,f=m0(c),g=m0(d);if(f!==g)if(c0(f)&&c0(g))for(let m=0;m<i.length;m++){const p=i[m];typeof p=="string"&&(i[m]=parseFloat(p))}else wa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||p5(i[c]))&&o.push(c);o.length&&T5(i,o,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wa[o](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){var g;const{element:i,name:s,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=wa[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(g=this.removedTransforms)!=null&&g.length&&this.removedTransforms.forEach(([m,p])=>{i.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function M5(a,i,s){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=(s==null?void 0:s[a])??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const py=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function gy(a){return _g(a)&&"offsetHeight"in a}const g0=30,C5=a=>!isNaN(parseFloat(a));class E5{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const c=Ae.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=C5(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new hf);const o=this.events[i].add(s);return i==="change"?()=>{o(),Ht.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>g0)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,g0);return jg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ai(a,i){return new E5(a,i)}const{schedule:wf}=Zg(queueMicrotask,!1),We={x:!1,y:!1};function yy(){return We.x||We.y}function D5(a){return a==="x"||a==="y"?We[a]?null:(We[a]=!0,()=>{We[a]=!1}):We.x||We.y?null:(We.x=We.y=!0,()=>{We.x=We.y=!1})}function vy(a,i){const s=M5(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[s,c,()=>o.abort()]}function y0(a){return!(a.pointerType==="touch"||yy())}function w5(a,i,s={}){const[o,c,d]=vy(a,s),f=g=>{if(!y0(g))return;const{target:m}=g,p=i(m,g);if(typeof p!="function"||!m)return;const y=b=>{y0(b)&&(p(b),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,c)};return o.forEach(g=>{g.addEventListener("pointerenter",f,c)}),d}const by=(a,i)=>i?a===i?!0:by(a,i.parentElement):!1,zf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,z5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function R5(a){return z5.has(a.tagName)||a.tabIndex!==-1}const vo=new WeakSet;function v0(a){return i=>{i.key==="Enter"&&a(i)}}function pc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const O5=(a,i)=>{const s=a.currentTarget;if(!s)return;const o=v0(()=>{if(vo.has(s))return;pc(s,"down");const c=v0(()=>{pc(s,"up")}),d=()=>pc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",o,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),i)};function b0(a){return zf(a)&&!yy()}function _5(a,i,s={}){const[o,c,d]=vy(a,s),f=g=>{const m=g.currentTarget;if(!b0(g))return;vo.add(m);const p=i(m,g),y=(M,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),vo.has(m)&&vo.delete(m),b0(M)&&typeof p=="function"&&p(M,{success:V})},b=M=>{y(M,m===window||m===document||s.useGlobalTarget||by(m,M.target))},S=M=>{y(M,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return o.forEach(g=>{(s.useGlobalTarget?window:g).addEventListener("pointerdown",f,c),gy(g)&&(g.addEventListener("focus",p=>O5(p,c)),!R5(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function Sy(a){return _g(a)&&"ownerSVGElement"in a}function V5(a){return Sy(a)&&a.tagName==="svg"}const fe=a=>!!(a&&a.getVelocity),j5=[...dy,It,na],N5=a=>j5.find(fy(a)),Ul=X.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function S0(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function B5(...a){return i=>{let s=!1;const o=a.map(c=>{const d=S0(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():S0(a[c],null)}}}}function L5(...a){return X.useCallback(B5(...a),a)}class U5 extends X.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const o=s.offsetParent,c=gy(o)&&o.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function H5({children:a,isPresent:i,anchorX:s,root:o}){const c=X.useId(),d=X.useRef(null),f=X.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=X.useContext(Ul),m=L5(d,a==null?void 0:a.ref);return X.useInsertionEffect(()=>{const{width:p,height:y,top:b,left:S,right:M}=f.current;if(i||!d.current||!p||!y)return;const V=s==="left"?`left: ${S}`:`right: ${M}`;d.current.dataset.motionPopId=c;const L=document.createElement("style");g&&(L.nonce=g);const R=o??document.head;return R.appendChild(L),L.sheet&&L.sheet.insertRule(`
          [data-motion-pop-id="${c}"] {
            position: absolute !important;
            width: ${p}px !important;
            height: ${y}px !important;
            ${V}px !important;
            top: ${b}px !important;
          }
        `),()=>{R.contains(L)&&R.removeChild(L)}},[i]),j.jsx(U5,{isPresent:i,childRef:d,sizeRef:f,children:X.cloneElement(a,{ref:m})})}const G5=({children:a,initial:i,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:f,anchorX:g,root:m})=>{const p=_o(q5),y=X.useId();let b=!0,S=X.useMemo(()=>(b=!1,{id:y,initial:i,isPresent:s,custom:c,onExitComplete:M=>{p.set(M,!0);for(const V of p.values())if(!V)return;o&&o()},register:M=>(p.set(M,!1),()=>p.delete(M))}),[s,p,o]);return d&&b&&(S={...S}),X.useMemo(()=>{p.forEach((M,V)=>p.set(V,!1))},[s]),X.useEffect(()=>{!s&&!p.size&&o&&o()},[s]),f==="popLayout"&&(a=j.jsx(H5,{isPresent:s,anchorX:g,root:m,children:a})),j.jsx(Vo.Provider,{value:S,children:a})};function q5(){return new Map}function xy(a=!0){const i=X.useContext(Vo);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=i,d=X.useId();X.useEffect(()=>{if(a)return c(d)},[a]);const f=X.useCallback(()=>a&&o&&o(d),[d,o,a]);return!s&&o?[!1,f]:[!0]}const po=a=>a.key||"";function x0(a){const i=[];return X.Children.forEach(a,s=>{X.isValidElement(s)&&i.push(s)}),i}const Y5=({children:a,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:g="left",root:m})=>{const[p,y]=xy(f),b=X.useMemo(()=>x0(a),[a]),S=f&&!p?[]:b.map(po),M=X.useRef(!0),V=X.useRef(b),L=_o(()=>new Map),[R,q]=X.useState(b),[Q,Z]=X.useState(b);Rg(()=>{M.current=!1,V.current=b;for(let W=0;W<Q.length;W++){const K=po(Q[W]);S.includes(K)?L.delete(K):L.get(K)!==!0&&L.set(K,!1)}},[Q,S.length,S.join("-")]);const P=[];if(b!==R){let W=[...b];for(let K=0;K<Q.length;K++){const O=Q[K],at=po(O);S.includes(at)||(W.splice(K,0,O),P.push(O))}return d==="wait"&&P.length&&(W=P),Z(x0(W)),q(b),null}const{forceRender:F}=X.useContext(of);return j.jsx(j.Fragment,{children:Q.map(W=>{const K=po(W),O=f&&!p?!1:b===Q||S.includes(K),at=()=>{if(L.has(K))L.set(K,!0);else return;let et=!0;L.forEach(St=>{St||(et=!1)}),et&&(F==null||F(),Z(V.current),f&&(y==null||y()),o&&o())};return j.jsx(G5,{isPresent:O,initial:!M.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:O?void 0:at,anchorX:g,children:W},K)})})},Ty=X.createContext({strict:!1}),T0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mi={};for(const a in T0)Mi[a]={isEnabled:i=>T0[a].some(s=>!!i[s])};function k5(a){for(const i in a)Mi[i]={...Mi[i],...a[i]}}const X5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Co(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||X5.has(a)}let Ay=a=>!Co(a);function My(a){typeof a=="function"&&(Ay=i=>i.startsWith("on")?!Co(i):a(i))}try{My(require("@emotion/is-prop-valid").default)}catch{}function Z5(a,i,s){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(Ay(c)||s===!0&&Co(c)||!i&&!Co(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}function Q5({children:a,isValidProp:i,...s}){i&&My(i),s={...X.useContext(Ul),...s},s.isStatic=_o(()=>s.isStatic);const o=X.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion]);return j.jsx(Ul.Provider,{value:o,children:a})}const jo=X.createContext({});function No(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Hl(a){return typeof a=="string"||Array.isArray(a)}const Rf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Of=["initial",...Rf];function Bo(a){return No(a.animate)||Of.some(i=>Hl(a[i]))}function Cy(a){return!!(Bo(a)||a.variants)}function K5(a,i){if(Bo(a)){const{initial:s,animate:o}=a;return{initial:s===!1||Hl(s)?s:void 0,animate:Hl(o)?o:void 0}}return a.inherit!==!1?i:{}}function J5(a){const{initial:i,animate:s}=K5(a,X.useContext(jo));return X.useMemo(()=>({initial:i,animate:s}),[A0(i),A0(s)])}function A0(a){return Array.isArray(a)?a.join(" "):a}const Gl={};function F5(a){for(const i in a)Gl[i]=a[i],gf(i)&&(Gl[i].isCSSVariable=!0)}function Ey(a,{layout:i,layoutId:s}){return Ri.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Gl[a]||a==="opacity")}const P5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W5=zi.length;function $5(a,i,s){let o="",c=!0;for(let d=0;d<W5;d++){const f=zi[d],g=a[f];if(g===void 0)continue;let m=!0;if(typeof g=="number"?m=g===(f.startsWith("scale")?1:0):m=parseFloat(g)===0,!m||s){const p=py(g,Df[f]);if(!m){c=!1;const y=P5[f]||f;o+=`${y}(${p}) `}s&&(i[f]=p)}}return o=o.trim(),s?o=s(i,c?"":o):c&&(o="none"),o}function _f(a,i,s){const{style:o,vars:c,transformOrigin:d}=a;let f=!1,g=!1;for(const m in i){const p=i[m];if(Ri.has(m)){f=!0;continue}else if(gf(m)){c[m]=p;continue}else{const y=py(p,Df[m]);m.startsWith("origin")?(g=!0,d[m]=y):o[m]=y}}if(i.transform||(f||s?o.transform=$5(i,a.transform,s):o.transform&&(o.transform="none")),g){const{originX:m="50%",originY:p="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${p} ${y}`}}const Vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dy(a,i,s){for(const o in i)!fe(i[o])&&!Ey(o,s)&&(a[o]=i[o])}function I5({transformTemplate:a},i){return X.useMemo(()=>{const s=Vf();return _f(s,i,a),Object.assign({},s.vars,s.style)},[i])}function t4(a,i){const s=a.style||{},o={};return Dy(o,s,a),Object.assign(o,I5(a,i)),o}function e4(a,i){const s={},o=t4(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=o,s}const n4={offset:"stroke-dashoffset",array:"stroke-dasharray"},a4={offset:"strokeDashoffset",array:"strokeDasharray"};function i4(a,i,s=1,o=0,c=!0){a.pathLength=1;const d=c?n4:a4;a[d.offset]=rt.transform(-o);const f=rt.transform(i),g=rt.transform(s);a[d.array]=`${f} ${g}`}function wy(a,{attrX:i,attrY:s,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...g},m,p,y){if(_f(a,g,p),m){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:S}=a;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),c!==void 0&&i4(b,c,d,f,!1)}const zy=()=>({...Vf(),attrs:{}}),Ry=a=>typeof a=="string"&&a.toLowerCase()==="svg";function l4(a,i,s,o){const c=X.useMemo(()=>{const d=zy();return wy(d,i,Ry(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Dy(d,a.style,a),c.style={...d,...c.style}}return c}const s4=["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 jf(a){return typeof a!="string"||a.includes("-")?!1:!!(s4.indexOf(a)>-1||/[A-Z]/u.test(a))}function o4(a,i,s,{latestValues:o},c,d=!1){const g=(jf(a)?l4:e4)(i,o,c,a),m=Z5(i,typeof a=="string",d),p=a!==X.Fragment?{...m,...g,ref:s}:{},{children:y}=i,b=X.useMemo(()=>fe(y)?y.get():y,[y]);return X.createElement(a,{...p,children:b})}function M0(a){const i=[{},{}];return a==null||a.values.forEach((s,o)=>{i[0][o]=s.get(),i[1][o]=s.getVelocity()}),i}function Nf(a,i,s,o){if(typeof i=="function"){const[c,d]=M0(o);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=M0(o);i=i(s!==void 0?s:a.custom,c,d)}return i}function bo(a){return fe(a)?a.get():a}function r4({scrapeMotionValuesFromProps:a,createRenderState:i},s,o,c){return{latestValues:u4(s,o,c,a),renderState:i()}}function u4(a,i,s,o){const c={},d=o(a,{});for(const S in d)c[S]=bo(d[S]);let{initial:f,animate:g}=a;const m=Bo(a),p=Cy(a);i&&p&&!m&&a.inherit!==!1&&(f===void 0&&(f=i.initial),g===void 0&&(g=i.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const b=y?g:f;if(b&&typeof b!="boolean"&&!No(b)){const S=Array.isArray(b)?b:[b];for(let M=0;M<S.length;M++){const V=Nf(a,S[M]);if(V){const{transitionEnd:L,transition:R,...q}=V;for(const Q in q){let Z=q[Q];if(Array.isArray(Z)){const P=y?Z.length-1:0;Z=Z[P]}Z!==null&&(c[Q]=Z)}for(const Q in L)c[Q]=L[Q]}}}return c}const Oy=a=>(i,s)=>{const o=X.useContext(jo),c=X.useContext(Vo),d=()=>r4(a,i,o,c);return s?d():_o(d)};function Bf(a,i,s){var d;const{style:o}=a,c={};for(const f in o)(fe(o[f])||i.style&&fe(i.style[f])||Ey(f,a)||((d=s==null?void 0:s.getValue(f))==null?void 0:d.liveStyle)!==void 0)&&(c[f]=o[f]);return c}const c4=Oy({scrapeMotionValuesFromProps:Bf,createRenderState:Vf});function _y(a,i,s){const o=Bf(a,i,s);for(const c in a)if(fe(a[c])||fe(i[c])){const d=zi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}const f4=Oy({scrapeMotionValuesFromProps:_y,createRenderState:zy}),d4=Symbol.for("motionComponentSymbol");function yi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function h4(a,i,s){return X.useCallback(o=>{o&&a.onMount&&a.onMount(o),i&&(o?i.mount(o):i.unmount()),s&&(typeof s=="function"?s(o):yi(s)&&(s.current=o))},[i])}const Lf=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m4="framerAppearId",Vy="data-"+Lf(m4),jy=X.createContext({});function p4(a,i,s,o,c){var L,R;const{visualElement:d}=X.useContext(jo),f=X.useContext(Ty),g=X.useContext(Vo),m=X.useContext(Ul).reducedMotion,p=X.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:i,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:m}));const y=p.current,b=X.useContext(jy);y&&!y.projection&&c&&(y.type==="html"||y.type==="svg")&&g4(p.current,s,c,b);const S=X.useRef(!1);X.useInsertionEffect(()=>{y&&S.current&&y.update(s,g)});const M=s[Vy],V=X.useRef(!!M&&!((L=window.MotionHandoffIsComplete)!=null&&L.call(window,M))&&((R=window.MotionHasOptimisedAnimation)==null?void 0:R.call(window,M)));return Rg(()=>{y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),V.current&&y.animationState&&y.animationState.animateChanges())}),X.useEffect(()=>{y&&(!V.current&&y.animationState&&y.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var q;(q=window.MotionHandoffMarkAsComplete)==null||q.call(window,M)}),V.current=!1),y.enteringChildren=void 0)}),y}function g4(a,i,s,o){const{layoutId:c,layout:d,drag:f,dragConstraints:g,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:Ny(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||g&&yi(g),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function Ny(a){if(a)return a.options.allowProjection!==!1?a.projection:Ny(a.parent)}function So(a,{forwardMotionProps:i=!1}={},s,o){s&&k5(s);const c=jf(a)?f4:c4;function d(g,m){let p;const y={...X.useContext(Ul),...g,layoutId:y4(g)},{isStatic:b}=y,S=J5(g),M=c(g,b);if(!b&&rf){v4();const V=b4(y);p=V.MeasureLayout,S.visualElement=p4(a,M,y,o,V.ProjectionNode)}return j.jsxs(jo.Provider,{value:S,children:[p&&S.visualElement?j.jsx(p,{visualElement:S.visualElement,...y}):null,o4(a,g,h4(M,S.visualElement,m),M,b,i)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=X.forwardRef(d);return f[d4]=a,f}function y4({layoutId:a}){const i=X.useContext(of).id;return i&&a!==void 0?i+"-"+a:a}function v4(a,i){X.useContext(Ty).strict}function b4(a){const{drag:i,layout:s}=Mi;if(!i&&!s)return{};const o={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(a)||s!=null&&s.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function S4(a,i){if(typeof Proxy>"u")return So;const s=new Map,o=(d,f)=>So(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,So(f,void 0,a,i)),s.get(f))})}function By({top:a,left:i,right:s,bottom:o}){return{x:{min:i,max:s},y:{min:a,max:o}}}function x4({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function T4(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function gc(a){return a===void 0||a===1}function Xc({scale:a,scaleX:i,scaleY:s}){return!gc(a)||!gc(i)||!gc(s)}function Ca(a){return Xc(a)||Ly(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Ly(a){return C0(a.x)||C0(a.y)}function C0(a){return a&&a!=="0%"}function Eo(a,i,s){const o=a-s,c=i*o;return s+c}function E0(a,i,s,o,c){return c!==void 0&&(a=Eo(a,c,o)),Eo(a,s,o)+i}function Zc(a,i=0,s=1,o,c){a.min=E0(a.min,i,s,o,c),a.max=E0(a.max,i,s,o,c)}function Uy(a,{x:i,y:s}){Zc(a.x,i.translate,i.scale,i.originPoint),Zc(a.y,s.translate,s.scale,s.originPoint)}const D0=.999999999999,w0=1.0000000000001;function A4(a,i,s,o=!1){const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let g=0;g<c;g++){d=s[g],f=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&bi(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Uy(a,f)),o&&Ca(d.latestValues)&&bi(a,d.latestValues))}i.x<w0&&i.x>D0&&(i.x=1),i.y<w0&&i.y>D0&&(i.y=1)}function vi(a,i){a.min=a.min+i,a.max=a.max+i}function z0(a,i,s,o,c=.5){const d=Gt(a.min,a.max,c);Zc(a,i,s,d,o)}function bi(a,i){z0(a.x,i.x,i.scaleX,i.scale,i.originX),z0(a.y,i.y,i.scaleY,i.scale,i.originY)}function Hy(a,i){return By(T4(a.getBoundingClientRect(),i))}function M4(a,i,s){const o=Hy(a,s),{scroll:c}=i;return c&&(vi(o.x,c.offset.x),vi(o.y,c.offset.y)),o}const R0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:R0(),y:R0()}),O0=()=>({min:0,max:0}),Jt=()=>({x:O0(),y:O0()}),Qc={current:null},Gy={current:!1};function C4(){if(Gy.current=!0,!!rf)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Qc.current=a.matches;a.addEventListener("change",i),i()}else Qc.current=!1}const E4=new WeakMap;function D4(a,i,s){for(const o in i){const c=i[o],d=s[o];if(fe(c))a.addValue(o,c);else if(fe(d))a.addValue(o,Ai(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,Ai(f!==void 0?f:c,{owner:a}))}}for(const o in s)i[o]===void 0&&a.removeValue(o);return i}const _0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class w4{scrapeMotionValuesFromProps(i,s,o){return{}}constructor({parent:i,props:s,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Cf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=Ae.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ht.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=p,this.parent=i,this.props=s,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=Bo(s),this.isVariantNode=Cy(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:y,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const S in b){const M=b[S];m[S]!==void 0&&fe(M)&&M.set(m[S])}}mount(i){var s;this.current=i,E4.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,c)=>this.bindToMotionValue(c,o)),Gy.current||C4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qc.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var i;this.projection&&this.projection.unmount(),ea(this.notifyUpdate),ea(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const o=Ri.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ht.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Mi){const s=Mi[i];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<_0.length;o++){const c=_0[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=D4(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const o=this.values.get(i);s!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&s!==void 0&&(o=Ai(s===null?void 0:s,{owner:this}),this.addValue(i,o)),o}readValue(i,s){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(Og(o)||Vg(o))?o=parseFloat(o):!N5(o)&&na.test(s)&&(o=my(i,s)),this.setBaseTarget(i,fe(o)?o.get():o)),fe(o)?o.get():o}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const f=Nf(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[i])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!fe(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new hf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){wf.render(this.render)}}class qy extends w4{constructor(){super(...arguments),this.KeyframeResolver=A5}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:o}){delete s[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;fe(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Yy(a,{style:i,vars:s},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c==null||c.applyProjectionStyles(d,o);for(f in s)d.setProperty(f,s[f])}function z4(a){return window.getComputedStyle(a)}class R4 extends qy{constructor(){super(...arguments),this.type="html",this.renderInstance=Yy}readValueFromInstance(i,s){var o;if(Ri.has(s))return(o=this.projection)!=null&&o.isProjecting?Lc(s):Yb(i,s);{const c=z4(i),d=(gf(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Hy(i,s)}build(i,s,o){_f(i,s,o.transformTemplate)}scrapeMotionValuesFromProps(i,s,o){return Bf(i,s,o)}}const ky=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function O4(a,i,s,o){Yy(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(ky.has(c)?c:Lf(c),i.attrs[c])}class _4 extends qy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ri.has(s)){const o=hy(s);return o&&o.default||0}return s=ky.has(s)?s:Lf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,o){return _y(i,s,o)}build(i,s,o){wy(i,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,s,o,c){O4(i,s,o,c)}mount(i){this.isSVGTag=Ry(i.tagName),super.mount(i)}}const Xy=(a,i)=>jf(a)?new _4(i):new R4(i,{allowProjection:a!==X.Fragment});function xi(a,i,s){const o=a.getProps();return Nf(o,i,s!==void 0?s:o.custom,a)}const Kc=a=>Array.isArray(a);function V4(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,Ai(s))}function j4(a){return Kc(a)?a[a.length-1]||0:a}function N4(a,i){const s=xi(a,i);let{transitionEnd:o={},transition:c={},...d}=s||{};d={...d,...o};for(const f in d){const g=j4(d[f]);V4(a,f,g)}}function B4(a){return!!(fe(a)&&a.add)}function Jc(a,i){const s=a.getValue("willChange");if(B4(s))return s.add(i);if(!s&&Dn.WillChange){const o=new Dn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function Zy(a){return a.props[Vy]}const L4=a=>a!==null;function U4(a,{repeat:i,repeatType:s="loop"},o){const c=a.filter(L4),d=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[d]}const H4={type:"spring",stiffness:500,damping:25,restSpeed:10},G4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),q4={type:"keyframes",duration:.8},Y4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},k4=(a,{keyframes:i})=>i.length>2?q4:Ri.has(a)?a.startsWith("scale")?G4(i[1]):H4:Y4;function X4({when:a,delay:i,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:g,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const Uf=(a,i,s,o={},c,d)=>f=>{const g=Ef(o,a)||{},m=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-ln(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-p,onUpdate:S=>{i.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:d?void 0:c};X4(g)||Object.assign(y,k4(a,y)),y.duration&&(y.duration=ln(y.duration)),y.repeatDelay&&(y.repeatDelay=ln(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Yc(y),y.delay===0&&(b=!0)),(Dn.instantAnimations||Dn.skipAnimations)&&(b=!0,Yc(y),y.delay=0),y.allowFlatten=!g.type&&!g.ease,b&&!d&&i.get()!==void 0){const S=U4(y.keyframes,g);if(S!==void 0){Ht.update(()=>{y.onUpdate(S),y.onComplete()});return}}return g.isSync?new Mf(y):new f5(y)};function Z4({protectedKeys:a,needsAnimating:i},s){const o=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,o}function Qy(a,i,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:d=a.getDefaultTransition(),transitionEnd:f,...g}=i;o&&(d=o);const m=[],p=c&&a.animationState&&a.animationState.getState()[c];for(const y in g){const b=a.getValue(y,a.latestValues[y]??null),S=g[y];if(S===void 0||p&&Z4(p,y))continue;const M={delay:s,...Ef(d||{},y)},V=b.get();if(V!==void 0&&!b.isAnimating&&!Array.isArray(S)&&S===V&&!M.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const q=Zy(a);if(q){const Q=window.MotionHandoffAnimation(q,y,Ht);Q!==null&&(M.startTime=Q,L=!0)}}Jc(a,y),b.start(Uf(y,b,S,a.shouldReduceMotion&&cy.has(y)?{type:!1}:M,a,L));const R=b.animation;R&&m.push(R)}return f&&Promise.all(m).then(()=>{Ht.update(()=>{f&&N4(a,f)})}),m}function Ky(a,i,s,o=0,c=1){const d=Array.from(a).sort((p,y)=>p.sortNodePosition(y)).indexOf(i),f=a.size,g=(f-1)*o;return typeof s=="function"?s(d,f):c===1?d*o:g-d*o}function Fc(a,i,s={}){var m;const o=xi(a,i,s.type==="exit"?(m=a.presenceContext)==null?void 0:m.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const d=o?()=>Promise.all(Qy(a,o,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:S}=c;return Q4(a,i,p,y,b,S,s)}:()=>Promise.resolve(),{when:g}=c;if(g){const[p,y]=g==="beforeChildren"?[d,f]:[f,d];return p().then(()=>y())}else return Promise.all([d(),f(s.delay)])}function Q4(a,i,s=0,o=0,c=0,d=1,f){const g=[];for(const m of a.variantChildren)m.notify("AnimationStart",i),g.push(Fc(m,i,{...f,delay:s+(typeof o=="function"?0:o)+Ky(a.variantChildren,m,o,c,d)}).then(()=>m.notify("AnimationComplete",i)));return Promise.all(g)}function K4(a,i,s={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>Fc(a,d,s));o=Promise.all(c)}else if(typeof i=="string")o=Fc(a,i,s);else{const c=typeof i=="function"?xi(a,i,s.custom):i;o=Promise.all(Qy(a,c,s))}return o.then(()=>{a.notify("AnimationComplete",i)})}function Jy(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let o=0;o<s;o++)if(i[o]!==a[o])return!1;return!0}const J4=Of.length;function Fy(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?Fy(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<J4;s++){const o=Of[s],c=a.props[o];(Hl(c)||c===!1)&&(i[o]=c)}return i}const F4=[...Rf].reverse(),P4=Rf.length;function W4(a){return i=>Promise.all(i.map(({animation:s,options:o})=>K4(a,s,o)))}function $4(a){let i=W4(a),s=V0(),o=!0;const c=m=>(p,y)=>{var S;const b=xi(a,y,m==="exit"?(S=a.presenceContext)==null?void 0:S.custom:void 0);if(b){const{transition:M,transitionEnd:V,...L}=b;p={...p,...L,...V}}return p};function d(m){i=m(a)}function f(m){const{props:p}=a,y=Fy(a.parent)||{},b=[],S=new Set;let M={},V=1/0;for(let R=0;R<P4;R++){const q=F4[R],Q=s[q],Z=p[q]!==void 0?p[q]:y[q],P=Hl(Z),F=q===m?Q.isActive:null;F===!1&&(V=R);let W=Z===y[q]&&Z!==p[q]&&P;if(W&&o&&a.manuallyAnimateOnMount&&(W=!1),Q.protectedKeys={...M},!Q.isActive&&F===null||!Z&&!Q.prevProp||No(Z)||typeof Z=="boolean")continue;const K=I4(Q.prevProp,Z);let O=K||q===m&&Q.isActive&&!W&&P||R>V&&P,at=!1;const et=Array.isArray(Z)?Z:[Z];let St=et.reduce(c(q),{});F===!1&&(St={});const{prevResolvedValues:Et={}}=Q,Zt={...Et,...St},jt=Y=>{O=!0,S.has(Y)&&(at=!0,S.delete(Y)),Q.needsAnimating[Y]=!0;const H=a.getValue(Y);H&&(H.liveStyle=!1)};for(const Y in Zt){const H=St[Y],ft=Et[Y];if(M.hasOwnProperty(Y))continue;let mt=!1;Kc(H)&&Kc(ft)?mt=!Jy(H,ft):mt=H!==ft,mt?H!=null?jt(Y):S.add(Y):H!==void 0&&S.has(Y)?jt(Y):Q.protectedKeys[Y]=!0}Q.prevProp=Z,Q.prevResolvedValues=St,Q.isActive&&(M={...M,...St}),o&&a.blockInitialAnimation&&(O=!1);const Dt=W&&K;O&&(!Dt||at)&&b.push(...et.map(Y=>{const H={type:q};if(typeof Y=="string"&&o&&!Dt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,mt=xi(ft,Y);if(ft.enteringChildren&&mt){const{delayChildren:T}=mt.transition||{};H.delay=Ky(ft.enteringChildren,a,T)}}return{animation:Y,options:H}}))}if(S.size){const R={};if(typeof p.initial!="boolean"){const q=xi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);q&&q.transition&&(R.transition=q.transition)}S.forEach(q=>{const Q=a.getBaseTarget(q),Z=a.getValue(q);Z&&(Z.liveStyle=!0),R[q]=Q??null}),b.push({animation:R})}let L=!!b.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(L=!1),o=!1,L?i(b):Promise.resolve()}function g(m,p){var b;if(s[m].isActive===p)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(S=>{var M;return(M=S.animationState)==null?void 0:M.setActive(m,p)}),s[m].isActive=p;const y=f(m);for(const S in s)s[S].protectedKeys={};return y}return{animateChanges:f,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=V0()}}}function I4(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!Jy(i,a):!1}function Ma(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function V0(){return{animate:Ma(!0),whileInView:Ma(),whileHover:Ma(),whileTap:Ma(),whileDrag:Ma(),whileFocus:Ma(),exit:Ma()}}class aa{constructor(i){this.isMounted=!1,this.node=i}update(){}}class tS extends aa{constructor(i){super(i),i.animationState||(i.animationState=$4(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();No(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let eS=0;class nS extends aa{constructor(){super(...arguments),this.id=eS++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const aS={animation:{Feature:tS},exit:{Feature:nS}};function ql(a,i,s,o={passive:!0}){return a.addEventListener(i,s,o),()=>a.removeEventListener(i,s)}function Zl(a){return{point:{x:a.pageX,y:a.pageY}}}const iS=a=>i=>zf(i)&&a(i,Zl(i));function _l(a,i,s,o){return ql(a,i,iS(s),o)}const Py=1e-4,lS=1-Py,sS=1+Py,Wy=.01,oS=0-Wy,rS=0+Wy;function me(a){return a.max-a.min}function uS(a,i,s){return Math.abs(a-i)<=s}function j0(a,i,s,o=.5){a.origin=o,a.originPoint=Gt(i.min,i.max,a.origin),a.scale=me(s)/me(i),a.translate=Gt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=lS&&a.scale<=sS||isNaN(a.scale))&&(a.scale=1),(a.translate>=oS&&a.translate<=rS||isNaN(a.translate))&&(a.translate=0)}function Vl(a,i,s,o){j0(a.x,i.x,s.x,o?o.originX:void 0),j0(a.y,i.y,s.y,o?o.originY:void 0)}function N0(a,i,s){a.min=s.min+i.min,a.max=a.min+me(i)}function cS(a,i,s){N0(a.x,i.x,s.x),N0(a.y,i.y,s.y)}function B0(a,i,s){a.min=i.min-s.min,a.max=a.min+me(i)}function jl(a,i,s){B0(a.x,i.x,s.x),B0(a.y,i.y,s.y)}function Ze(a){return[a("x"),a("y")]}const $y=({current:a})=>a?a.ownerDocument.defaultView:null,L0=(a,i)=>Math.abs(a-i);function fS(a,i){const s=L0(a.x,i.x),o=L0(a.y,i.y);return Math.sqrt(s**2+o**2)}class Iy{constructor(i,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=vc(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,V=fS(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!V)return;const{point:L}=S,{timestamp:R}=ue;this.history.push({...L,timestamp:R});const{onStart:q,onMove:Q}=this.handlers;M||(q&&q(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),Q&&Q(this.lastMoveEvent,S)},this.handlePointerMove=(S,M)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=yc(M,this.transformPagePoint),Ht.update(this.updatePoint,!0)},this.handlePointerUp=(S,M)=>{this.end();const{onEnd:V,onSessionEnd:L,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=vc(S.type==="pointercancel"?this.lastMoveEventInfo:yc(M,this.transformPagePoint),this.history);this.startEvent&&V&&V(S,q),L&&L(S,q)},!zf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const g=Zl(i),m=yc(g,this.transformPagePoint),{point:p}=m,{timestamp:y}=ue;this.history=[{...p,timestamp:y}];const{onSessionStart:b}=s;b&&b(i,vc(m,this.history)),this.removeListeners=Yl(_l(this.contextWindow,"pointermove",this.handlePointerMove),_l(this.contextWindow,"pointerup",this.handlePointerUp),_l(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),ea(this.updatePoint)}}function yc(a,i){return i?{point:i(a.point)}:a}function U0(a,i){return{x:a.x-i.x,y:a.y-i.y}}function vc({point:a},i){return{point:a,delta:U0(a,t1(i)),offset:U0(a,dS(i)),velocity:hS(i,.1)}}function dS(a){return a[0]}function t1(a){return a[a.length-1]}function hS(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,o=null;const c=t1(a);for(;s>=0&&(o=a[s],!(c.timestamp-o.timestamp>ln(i)));)s--;if(!o)return{x:0,y:0};const d=Qe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function mS(a,{min:i,max:s},o){return i!==void 0&&a<i?a=o?Gt(i,a,o.min):Math.max(a,i):s!==void 0&&a>s&&(a=o?Gt(s,a,o.max):Math.min(a,s)),a}function H0(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function pS(a,{top:i,left:s,bottom:o,right:c}){return{x:H0(a.x,s,c),y:H0(a.y,i,o)}}function G0(a,i){let s=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,o]=[o,s]),{min:s,max:o}}function gS(a,i){return{x:G0(a.x,i.x),y:G0(a.y,i.y)}}function yS(a,i){let s=.5;const o=me(a),c=me(i);return c>o?s=Nl(i.min,i.max-o,a.min):o>c&&(s=Nl(a.min,a.max-c,i.min)),En(0,1,s)}function vS(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const Pc=.35;function bS(a=Pc){return a===!1?a=0:a===!0&&(a=Pc),{x:q0(a,"left","right"),y:q0(a,"top","bottom")}}function q0(a,i,s){return{min:Y0(a,i),max:Y0(a,s)}}function Y0(a,i){return typeof a=="number"?a:a[i]||0}const SS=new WeakMap;class xS{constructor(i){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=i}start(i,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Zl(b).point)},f=(b,S)=>{const{drag:M,dragPropagation:V,onDragStart:L}=this.getProps();if(M&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=D5(M),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ze(q=>{let Q=this.getAxisMotionValue(q).get()||0;if(sn.test(Q)){const{projection:Z}=this.visualElement;if(Z&&Z.layout){const P=Z.layout.layoutBox[q];P&&(Q=me(P)*(parseFloat(Q)/100))}}this.originPoint[q]=Q}),L&&Ht.postRender(()=>L(b,S)),Jc(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},g=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:M,dragDirectionLock:V,onDirectionLock:L,onDrag:R}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:q}=S;if(V&&this.currentDirection===null){this.currentDirection=TS(q),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",S.point,q),this.updateAxis("y",S.point,q),this.visualElement.render(),R&&R(b,S)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ze(b=>{var S;return this.getAnimationState(b)==="paused"&&((S=this.getAxisMotionValue(b).animation)==null?void 0:S.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new Iy(i,{onSessionStart:d,onStart:f,onMove:g,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:$y(this.visualElement)})}stop(i,s){const o=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Ht.postRender(()=>g(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,o){const{drag:c}=this.getProps();if(!o||!go(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=mS(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&yi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=pS(o.layoutBox,i):this.constraints=!1,this.elastic=bS(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ze(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=vS(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!yi(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=M4(o,c.root,this.visualElement.getTransformPagePoint());let f=gS(c.layout.layoutBox,d);if(s){const g=s(x4(f));this.hasMutatedConstraints=!!g,g&&(f=By(g))}return f}startAnimation(i){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),m=this.constraints||{},p=Ze(y=>{if(!go(y,s,this.currentDirection))return;let b=m&&m[y]||{};f&&(b={min:0,max:0});const S=c?200:1e6,M=c?40:1e7,V={type:"inertia",velocity:o?i[y]:0,bounceStiffness:S,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(y,V)});return Promise.all(p).then(g)}startAxisValueAnimation(i,s){const o=this.getAxisMotionValue(i);return Jc(this.visualElement,i),o.start(Uf(i,o,0,s,this.visualElement,!1))}stopAnimation(){Ze(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Ze(i=>{var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){Ze(s=>{const{drag:o}=this.getProps();if(!go(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:g}=c.layout.layoutBox[s];d.set(i[s]-Gt(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!yi(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ze(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const m=g.get();c[f]=yS({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ze(f=>{if(!go(f,i,null))return;const g=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];g.set(Gt(m,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;SS.set(this.visualElement,this);const i=this.visualElement.current,s=_l(i,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();yi(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ht.read(o);const f=ql(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ze(y=>{const b=this.getAxisMotionValue(y);b&&(this.originPoint[y]+=m[y].translate,b.set(b.get()+m[y].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Pc,dragMomentum:g=!0}=i;return{...i,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:g}}}function go(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function TS(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class AS extends aa{constructor(i){super(i),this.removeGroupControls=Ke,this.removeListeners=Ke,this.controls=new xS(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const k0=a=>(i,s)=>{a&&Ht.postRender(()=>a(i,s))};class MS extends aa{constructor(){super(...arguments),this.removePointerDownListener=Ke}onPointerDown(i){this.session=new Iy(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$y(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:k0(i),onStart:k0(s),onMove:o,onEnd:(d,f)=>{delete this.session,c&&Ht.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=_l(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function X0(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Dl={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(rt.test(a))a=parseFloat(a);else return a;const s=X0(a,i.target.x),o=X0(a,i.target.y);return`${s}% ${o}%`}},CS={correct:(a,{treeScale:i,projectionDelta:s})=>{const o=a,c=na.parse(a);if(c.length>5)return o;const d=na.createTransformer(a),f=typeof c[0]!="number"?1:0,g=s.x.scale*i.x,m=s.y.scale*i.y;c[0+f]/=g,c[1+f]/=m;const p=Gt(g,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}};let bc=!1;class ES extends X.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;F5(DS),d&&(s.group&&s.group.add(d),o&&o.register&&c&&o.register(d),bc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),xo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,bc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ht.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),wf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=i;bc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function e1(a){const[i,s]=xy(),o=X.useContext(of);return j.jsx(ES,{...a,layoutGroup:o,switchLayoutGroup:X.useContext(jy),isPresent:i,safeToRemove:s})}const DS={borderRadius:{...Dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dl,borderTopRightRadius:Dl,borderBottomLeftRadius:Dl,borderBottomRightRadius:Dl,boxShadow:CS};function wS(a,i,s){const o=fe(a)?a:Ai(a);return o.start(Uf("",o,i,s)),o.animation}const zS=(a,i)=>a.depth-i.depth;class RS{constructor(){this.children=[],this.isDirty=!1}add(i){uf(this.children,i),this.isDirty=!0}remove(i){cf(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(zS),this.isDirty=!1,this.children.forEach(i)}}function OS(a,i){const s=Ae.now(),o=({timestamp:c})=>{const d=c-s;d>=i&&(ea(o),a(d-i))};return Ht.setup(o,!0),()=>ea(o)}const n1=["TopLeft","TopRight","BottomLeft","BottomRight"],_S=n1.length,Z0=a=>typeof a=="string"?parseFloat(a):a,Q0=a=>typeof a=="number"||rt.test(a);function VS(a,i,s,o,c,d){c?(a.opacity=Gt(0,s.opacity??1,jS(o)),a.opacityExit=Gt(i.opacity??1,0,NS(o))):d&&(a.opacity=Gt(i.opacity??1,s.opacity??1,o));for(let f=0;f<_S;f++){const g=`border${n1[f]}Radius`;let m=K0(i,g),p=K0(s,g);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Q0(m)===Q0(p)?(a[g]=Math.max(Gt(Z0(m),Z0(p),o),0),(sn.test(p)||sn.test(m))&&(a[g]+="%")):a[g]=p}(i.rotate||s.rotate)&&(a.rotate=Gt(i.rotate||0,s.rotate||0,o))}function K0(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const jS=a1(0,.5,qg),NS=a1(.5,.95,Ke);function a1(a,i,s){return o=>o<a?0:o>i?1:s(Nl(a,i,o))}function J0(a,i){a.min=i.min,a.max=i.max}function Xe(a,i){J0(a.x,i.x),J0(a.y,i.y)}function F0(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function P0(a,i,s,o,c){return a-=i,a=Eo(a,1/s,o),c!==void 0&&(a=Eo(a,1/c,o)),a}function BS(a,i=0,s=1,o=.5,c,d=a,f=a){if(sn.test(i)&&(i=parseFloat(i),i=Gt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let g=Gt(d.min,d.max,o);a===d&&(g-=i),a.min=P0(a.min,i,s,g,c),a.max=P0(a.max,i,s,g,c)}function W0(a,i,[s,o,c],d,f){BS(a,i[s],i[o],i[c],i.scale,d,f)}const LS=["x","scaleX","originX"],US=["y","scaleY","originY"];function $0(a,i,s,o){W0(a.x,i,LS,s?s.x:void 0,o?o.x:void 0),W0(a.y,i,US,s?s.y:void 0,o?o.y:void 0)}function I0(a){return a.translate===0&&a.scale===1}function i1(a){return I0(a.x)&&I0(a.y)}function tg(a,i){return a.min===i.min&&a.max===i.max}function HS(a,i){return tg(a.x,i.x)&&tg(a.y,i.y)}function eg(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function l1(a,i){return eg(a.x,i.x)&&eg(a.y,i.y)}function ng(a){return me(a.x)/me(a.y)}function ag(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class GS{constructor(){this.members=[]}add(i){uf(this.members,i),i.scheduleRender()}remove(i){if(cf(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let o;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(i,s){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.instance&&o.scheduleRender(),i.scheduleRender(),i.resumeFrom=o,s&&(i.resumeFrom.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:o}=i;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qS(a,i,s){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:y,rotateX:b,rotateY:S,skewX:M,skewY:V}=s;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotateX(${b}deg) `),S&&(o+=`rotateY(${S}deg) `),M&&(o+=`skewX(${M}deg) `),V&&(o+=`skewY(${V}deg) `)}const g=a.x.scale*i.x,m=a.y.scale*i.y;return(g!==1||m!==1)&&(o+=`scale(${g}, ${m})`),o||"none"}const Sc=["","X","Y","Z"],YS=1e3;let kS=0;function xc(a,i,s,o){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function s1(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=Zy(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",Ht,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&s1(o)}function o1({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},g=i==null?void 0:i()){this.id=kS++,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(QS),this.nodes.forEach(PS),this.nodes.forEach(WS),this.nodes.forEach(KS)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new RS)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new hf),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const m=this.eventHandlers.get(f);m&&m.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Sy(f)&&!V5(f),this.instance=f;const{layoutId:g,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||g)&&(this.isLayoutDirty=!0),a){let y,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ht.read(()=>{b=window.innerWidth}),a(f,()=>{const M=window.innerWidth;M!==b&&(b=M,this.root.updateBlockedByResize=!0,y&&y(),y=OS(S,250),xo.hasAnimatedSinceResize&&(xo.hasAnimatedSinceResize=!1,this.nodes.forEach(sg)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||p.getDefaultTransition()||n6,{onLayoutAnimationStart:L,onLayoutAnimationComplete:R}=p.getProps(),q=!this.targetLayout||!l1(this.targetLayout,M),Q=!b&&S;if(this.options.layoutRoot||this.resumeFrom||Q||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Z={...Ef(V,"layout"),onPlay:L,onComplete:R};(p.shouldReduceMotion||this.options.layoutRoot)&&(Z.delay=0,Z.type=!1),this.startAnimation(Z),this.setAnimationOrigin(y,Q)}else b||sg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ea(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($S),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&s1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:g,layout:m}=this.options;if(g===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ig);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(FS),this.nodes.forEach(XS),this.nodes.forEach(ZS)):this.nodes.forEach(lg),this.clearAllSnapshots();const g=Ae.now();ue.delta=En(0,1e3/60,g-ue.timestamp),ue.timestamp=g,ue.isProcessing=!0,cc.update.process(ue),cc.preRender.process(ue),cc.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(JS),this.sharedNodes.forEach(IS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ht.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ht.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!me(this.snapshot.measuredBox.x)&&!me(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!i1(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||Ca(this.latestValues)||y)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let m=this.removeElementScroll(g);return f&&(m=this.removeTransform(m)),a6(m),{animationId:this.root.animationId,measuredBox:g,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return Jt();const g=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(i6))){const{scroll:y}=this.root;y&&(vi(g.x,y.offset.x),vi(g.y,y.offset.y))}return g}removeElementScroll(f){var m;const g=Jt();if(Xe(g,f),(m=this.scroll)!=null&&m.wasRoot)return g;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:b,options:S}=y;y!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&Xe(g,f),vi(g.x,b.offset.x),vi(g.y,b.offset.y))}return g}applyTransform(f,g=!1){const m=Jt();Xe(m,f);for(let p=0;p<this.path.length;p++){const y=this.path[p];!g&&y.options.layoutScroll&&y.scroll&&y!==y.root&&bi(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ca(y.latestValues)&&bi(m,y.latestValues)}return Ca(this.latestValues)&&bi(m,this.latestValues),m}removeTransform(f){const g=Jt();Xe(g,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!Ca(p.latestValues))continue;Xc(p.latestValues)&&p.updateSnapshot();const y=Jt(),b=p.measurePageBox();Xe(y,b),$0(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return Ca(this.latestValues)&&$0(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var S;const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==g;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!(!this.layout||!(y||b))){if(this.resolvedRelativeTargetAt=ue.timestamp,!this.targetDelta&&!this.relativeTarget){const M=this.getClosestProjectingParent();M&&M.layout&&this.animationProgress!==1?(this.relativeParent=M,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),jl(this.relativeTargetOrigin,this.layout.layoutBox,M.layout.layoutBox),Xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Xe(this.target,this.layout.layoutBox),Uy(this.target,this.targetDelta)):Xe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const M=this.getClosestProjectingParent();M&&!!M.resumingFrom==!!this.resumingFrom&&!M.options.layoutScroll&&M.target&&this.animationProgress!==1?(this.relativeParent=M,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),jl(this.relativeTargetOrigin,this.target,M.target),Xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Xc(this.parent.latestValues)||Ly(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var V;const f=this.getLead(),g=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(V=this.parent)!=null&&V.isProjectionDirty)&&(m=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(m=!1),m)return;const{layout:p,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||y))return;Xe(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;A4(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Jt());const{target:M}=f;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(F0(this.prevProjectionDelta.x,this.projectionDelta.x),F0(this.prevProjectionDelta.y,this.projectionDelta.y)),Vl(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!ag(this.projectionDelta.x,this.prevProjectionDelta.x)||!ag(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var g;if((g=this.options.visualElement)==null||g.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(f,g=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},b=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=Jt(),M=m?m.source:void 0,V=this.layout?this.layout.source:void 0,L=M!==V,R=this.getStack(),q=!R||R.members.length<=1,Q=!!(L&&!q&&this.options.crossfade===!0&&!this.path.some(e6));this.animationProgress=0;let Z;this.mixTargetDelta=P=>{const F=P/1e3;og(b.x,f.x,F),og(b.y,f.y,F),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jl(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),t6(this.relativeTarget,this.relativeTargetOrigin,S,F),Z&&HS(this.relativeTarget,Z)&&(this.isProjectionDirty=!1),Z||(Z=Jt()),Xe(Z,this.relativeTarget)),L&&(this.animationValues=y,VS(y,p,this.latestValues,F,Q,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var g,m,p;this.notifyListeners("animationStart"),(g=this.currentAnimation)==null||g.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ht.update(()=>{xo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ai(0)),this.currentAnimation=wS(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:m,layout:p,latestValues:y}=f;if(!(!g||!m||!p)){if(this!==f&&this.layout&&p&&r1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Jt();const b=me(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+b;const S=me(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}Xe(g,m),bi(g,y),Vl(this.projectionDeltaWithTransform,this.layoutCorrected,g,y)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new GS),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var g;const{layoutId:f}=this.options;return f?((g=this.getStack())==null?void 0:g.lead)||this:this}getPrevLead(){var g;const{layoutId:f}=this.options;return f?(g=this.getStack())==null?void 0:g.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(g=!0),!g)return;const p={};m.z&&xc("z",f,p,this.animationValues);for(let y=0;y<Sc.length;y++)xc(`rotate${Sc[y]}`,f,p,this.animationValues),xc(`skew${Sc[y]}`,f,p,this.animationValues);f.render();for(const y in p)f.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=bo(g==null?void 0:g.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=bo(g==null?void 0:g.pointerEvents)||""),this.hasProjected&&!Ca(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=qS(this.projectionDeltaWithTransform,this.treeScale,y);m&&(b=m(y,b)),f.transform=b;const{x:S,y:M}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${M.origin*100}% 0`,p.animationValues?f.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const V in Gl){if(y[V]===void 0)continue;const{correct:L,applyTo:R,isCSSVariable:q}=Gl[V],Q=b==="none"?y[V]:L(y[V],p);if(R){const Z=R.length;for(let P=0;P<Z;P++)f[R[P]]=Q}else q?this.options.visualElement.renderState.vars[V]=Q:f[V]=Q}this.options.layoutId&&(f.pointerEvents=p===this?bo(g==null?void 0:g.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var g;return(g=f.currentAnimation)==null?void 0:g.stop()}),this.root.nodes.forEach(ig),this.root.sharedNodes.clear()}}}function XS(a){a.updateLayout()}function ZS(a){var s;const i=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:c}=a.layout,{animationType:d}=a.options,f=i.source!==a.layout.source;d==="size"?Ze(b=>{const S=f?i.measuredBox[b]:i.layoutBox[b],M=me(S);S.min=o[b].min,S.max=S.min+M}):r1(d,i.layoutBox,o)&&Ze(b=>{const S=f?i.measuredBox[b]:i.layoutBox[b],M=me(o[b]);S.max=S.min+M,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+M)});const g=Si();Vl(g,o,i.layoutBox);const m=Si();f?Vl(m,a.applyTransform(c,!0),i.measuredBox):Vl(m,o,i.layoutBox);const p=!i1(g);let y=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:M}=b;if(S&&M){const V=Jt();jl(V,i.layoutBox,S.layoutBox);const L=Jt();jl(L,o,M.layoutBox),l1(V,L)||(y=!0),b.options.layoutRoot&&(a.relativeTarget=L,a.relativeTargetOrigin=V,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:m,layoutDelta:g,hasLayoutChanged:p,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function QS(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function KS(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function JS(a){a.clearSnapshot()}function ig(a){a.clearMeasurements()}function lg(a){a.isLayoutDirty=!1}function FS(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function sg(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function PS(a){a.resolveTargetDelta()}function WS(a){a.calcProjection()}function $S(a){a.resetSkewAndRotation()}function IS(a){a.removeLeadSnapshot()}function og(a,i,s){a.translate=Gt(i.translate,0,s),a.scale=Gt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function rg(a,i,s,o){a.min=Gt(i.min,s.min,o),a.max=Gt(i.max,s.max,o)}function t6(a,i,s,o){rg(a.x,i.x,s.x,o),rg(a.y,i.y,s.y,o)}function e6(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const n6={duration:.45,ease:[.4,0,.1,1]},ug=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),cg=ug("applewebkit/")&&!ug("chrome/")?Math.round:Ke;function fg(a){a.min=cg(a.min),a.max=cg(a.max)}function a6(a){fg(a.x),fg(a.y)}function r1(a,i,s){return a==="position"||a==="preserve-aspect"&&!uS(ng(i),ng(s),.2)}function i6(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const l6=o1({attachResizeListener:(a,i)=>ql(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tc={current:void 0},u1=o1({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Tc.current){const a=new l6({});a.mount(window),a.setOptions({layoutScroll:!0}),Tc.current=a}return Tc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),s6={pan:{Feature:MS},drag:{Feature:AS,ProjectionNode:u1,MeasureLayout:e1}};function dg(a,i,s){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=o[c];d&&Ht.postRender(()=>d(i,Zl(i)))}class o6 extends aa{mount(){const{current:i}=this.node;i&&(this.unmount=w5(i,(s,o)=>(dg(this.node,o,"Start"),c=>dg(this.node,c,"End"))))}unmount(){}}class r6 extends aa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Yl(ql(this.node.current,"focus",()=>this.onFocus()),ql(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hg(a,i,s){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=o[c];d&&Ht.postRender(()=>d(i,Zl(i)))}class u6 extends aa{mount(){const{current:i}=this.node;i&&(this.unmount=_5(i,(s,o)=>(hg(this.node,o,"Start"),(c,{success:d})=>hg(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wc=new WeakMap,Ac=new WeakMap,c6=a=>{const i=Wc.get(a.target);i&&i(a)},f6=a=>{a.forEach(c6)};function d6({root:a,...i}){const s=a||document;Ac.has(s)||Ac.set(s,{});const o=Ac.get(s),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(f6,{root:a,...i})),o[c]}function h6(a,i,s){const o=d6(i);return Wc.set(a,s),o.observe(a),()=>{Wc.delete(a),o.unobserve(a)}}const m6={some:0,all:1};class p6 extends aa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:m6[c]},g=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),S=p?y:b;S&&S(m)};return h6(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(g6(i,s))&&this.startObserver()}unmount(){}}function g6({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const y6={inView:{Feature:p6},tap:{Feature:u6},focus:{Feature:r6},hover:{Feature:o6}},v6={layout:{ProjectionNode:u1,MeasureLayout:e1}},c1={...aS,...y6,...s6,...v6},Ti=S4(c1,Xy);function f1({className:a,style:i,colors:s=["#FF5733","#33FF57","#3357FF","#F1C40F"],mode:o="rotate",blur:c="medium",transition:d,scale:f=1,duration:g=5,children:m}){const p={repeat:1/0,duration:g,ease:"linear"},y={rotate:{background:[`conic-gradient(from 0deg at 50% 50%, ${s.join(", ")})`,`conic-gradient(from 360deg at 50% 50%, ${s.join(", ")})`],transition:{...d??p}},pulse:{background:s.map(S=>`radial-gradient(circle at 50% 50%, ${S} 0%, transparent 100%)`),scale:[1*f,1.1*f,1*f],opacity:[.5,.8,.5],transition:{...d??{...p,repeatType:"mirror"}}},breathe:{background:[...s.map(S=>`radial-gradient(circle at 50% 50%, ${S} 0%, transparent 100%)`)],scale:[1*f,1.05*f,1*f],transition:{...d??{...p,repeatType:"mirror"}}},colorShift:{background:s.map((S,M)=>{const V=s[(M+1)%s.length];return`conic-gradient(from 0deg at 50% 50%, ${S} 0%, ${V} 50%, ${S} 100%)`}),transition:{...d??{...p,repeatType:"mirror"}}},flowHorizontal:{background:s.map(S=>{const M=s[(s.indexOf(S)+1)%s.length];return`linear-gradient(to right, ${S}, ${M})`}),transition:{...d??{...p,repeatType:"mirror"}}},static:{background:`linear-gradient(to right, ${s.join(", ")})`}},b=S=>typeof S=="number"?`blur-[${S}px]`:{softest:"blur-xs",soft:"blur-sm",medium:"blur-md",strong:"blur-lg",stronger:"blur-xl",strongest:"blur-xl",none:"blur-none"}[S];return j.jsxs("div",{className:"relative",children:[j.jsx(Ti.div,{style:{...i,"--scale":f,willChange:"transform",backfaceVisibility:"hidden"},animate:y[o],className:Oo("pointer-events-none absolute inset-0 h-full w-full","scale-[var(--scale)] transform-gpu",b(c),a)}),m]})}const b6=[{imageURL:`${window.CouponsPlusWelcome.urls.storage}/images/filters.png`,title:Xt("Select your product filters"),description:{main:Xt("Select from a wide variety of product filters. You can combine several filters in a group to target more specific products."),secondary:Xt("These filtered items will be passed to your offers so you can apply an offer to them or use them as a condition for applying an offer.")}},{imageURL:`${window.CouponsPlusWelcome.urls.storage}/images/offers.png`,title:Xt("Add your offers"),description:{main:Xt("Add offers that use the filtered items from the previous step. You can apply a direct offer to these items (for example, a percentage discount) or use them as a condition for another promotion, such as a 'Buy X, Get Y FREE' offer or a shipping discount when buying specific items.")}}],S6=({})=>j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:"flex flex-col items-center gap-4",children:[j.jsx(f1,{colors:["#FF5733","#33FF57","#3357FF","#F1C40F"],mode:"flowHorizontal",blur:"medium",duration:3,scale:1,children:j.jsxs("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"min-w-14 min-h-14 max-w-14 max-h-14 relative z-100",children:[j.jsx("rect",{width:"46",height:"46",rx:"16",fill:"url(#paint0_linear_303_18)"}),j.jsx("rect",{width:"46",height:"46",rx:"16",fill:"#1F2327"}),j.jsx("path",{opacity:"0.8",d:"M31.1506 33.6324L36.6759 20.7545L36.6679 20.7424L25.8337 20.7252L24.5827 23.6477L31.1506 33.6324Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M30.096 10.7516L16.0869 10.7321L22.6548 20.7167L25.8337 20.7252L30.108 10.7698L30.096 10.7516Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M16.0755 34.0786L30.0885 34.1043L23.5207 24.1196L20.3356 24.1152L16.0675 34.0665L16.0755 34.0786Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M15.0249 11.2039L9.49974 24.0818L9.50775 24.094L20.3357 24.1152L21.5928 21.1887L15.0249 11.2039Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M36.6678 20.7423L30.108 10.7698L25.8337 20.7251L36.6678 20.7423Z",fill:"white"}),j.jsx("path",{opacity:"0.8",d:"M9.50752 24.094L16.0674 34.0666L20.3357 24.1151L9.50752 24.094Z",fill:"white"}),j.jsx("defs",{children:j.jsxs("linearGradient",{id:"paint0_linear_303_18",x1:"23",y1:"0",x2:"23",y2:"46",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{"stop-color":"#545454"}),j.jsx("stop",{offset:"1","stop-color":"#2A2A2A"})]})})]})}),j.jsxs("h1",{className:"text-6x text-gray-900 flex flex-col gap-0",children:[j.jsx("span",{className:"leading-5 opacity-80",children:Xt("Welcome to")}),j.jsx("span",{className:"text-12x font-bold",children:Xt("The Next-Generation")}),j.jsx("span",{className:"text-12x font-bold leading-7",children:Xt("Offers Engine")})]}),j.jsxs("div",{className:"relative flex flex-col items-center gap-2",children:[j.jsxs("a",{className:"relative px-5 h-9 flex items-center gap-2 text-base bg-blue-normal text-blue-10 rounded-full hover:cursor-pointer hover:scale-[1.01] hover:bg-blue-90 active:scale-[.98] transition-all duration-200 m-0",href:window.CouponsPlusWelcome.urls.coupons,children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"min-w-5 min-h-5 max-w-5 max-h-5",children:j.jsx("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm4.28 10.28a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 1 0-1.06 1.06l1.72 1.72H8.25a.75.75 0 0 0 0 1.5h5.69l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3Z",clipRule:"evenodd"})}),j.jsx("span",{children:"Create coupon"})]}),j.jsx("p",{className:"text-smaller-1 leading-4 text-gray-600 max-w-80 m-0",children:Xt("Coupons+ coupons are created on the same screen as the default WooCommerce coupons")})]})]}),j.jsxs("div",{children:[j.jsx("h1",{className:"text-7x",children:Xt("How does it work?")}),j.jsx("div",{className:"space-y-14",children:b6.map(({imageURL:a,title:i,description:{main:s,secondary:o}},c)=>j.jsxs("div",{className:"flex flex-col items-center gap-4",children:[j.jsx("div",{className:"h-8 w-8 flex items-center justify-center text-3x bg-gray-850 rounded-full text-gray-100",children:c+1}),j.jsxs("div",{className:"relative",children:[j.jsx("img",{src:a,alt:Xt("filters image"),className:"w-60 rounded-1 border-[2px] border-gray-200"}),j.jsxs("div",{className:"absolute top-0 -right-12 translate-x-full text-left",children:[j.jsx("h1",{className:"text-4x font-medium m-0",children:i}),j.jsx("p",{className:"text-base leading-[22px] text-gray-850",children:s}),o&&j.jsx("p",{className:"text-base leading-[22px] text-gray-450",children:o})]})]})]}))})]})]}),$c=({width:a="w-38"})=>j.jsxs("svg",{width:"265",height:"61",viewBox:"0 0 265 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`opacity-90 ${a}`,children:[j.jsx("rect",{y:"7.5",width:"46",height:"46",rx:"16",fill:"url(#paint0_linear_302_6)"}),j.jsx("rect",{y:"7.5",width:"46",height:"46",rx:"16",fill:"#1F2327"}),j.jsx("path",{opacity:"0.8",d:"M31.1506 41.1324L36.6759 28.2545L36.6679 28.2424L25.8337 28.2252L24.5827 31.1477L31.1506 41.1324Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M30.096 18.2516L16.0869 18.2321L22.6548 28.2167L25.8337 28.2252L30.108 18.2698L30.096 18.2516Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M16.0755 41.5786L30.0885 41.6044L23.5207 31.6197L20.3356 31.6152L16.0675 41.5665L16.0755 41.5786Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M15.0249 18.704L9.49974 31.5818L9.50775 31.594L20.3357 31.6153L21.5928 28.6888L15.0249 18.704Z",fill:"white","fill-opacity":"0.82"}),j.jsx("path",{opacity:"0.8",d:"M36.6678 28.2424L30.108 18.2698L25.8337 28.2252L36.6678 28.2424Z",fill:"white"}),j.jsx("path",{opacity:"0.8",d:"M9.50752 31.5941L16.0674 41.5666L20.3357 31.6152L9.50752 31.5941Z",fill:"white"}),j.jsx("path",{d:"M70.974 47.552C67.7233 47.552 64.9173 46.862 62.556 45.482C60.2253 44.0713 58.4313 42.124 57.174 39.64C55.9167 37.1253 55.288 34.2273 55.288 30.946C55.288 27.6647 55.9167 24.7667 57.174 22.252C58.4313 19.7373 60.2253 17.7747 62.556 16.364C64.9173 14.9533 67.7233 14.248 70.974 14.248C74.8993 14.248 78.1193 15.2293 80.634 17.192C83.1487 19.1547 84.6973 21.9147 85.28 25.472H78.196C77.828 23.7547 77.0153 22.436 75.758 21.516C74.5313 20.5653 72.906 20.09 70.882 20.09C68.9807 20.09 67.3553 20.5347 66.006 21.424C64.6567 22.2827 63.614 23.5247 62.878 25.15C62.1727 26.7753 61.82 28.7073 61.82 30.946C61.82 33.1847 62.1727 35.1167 62.878 36.742C63.614 38.3367 64.6567 39.5787 66.006 40.468C67.3553 41.3267 68.9807 41.756 70.882 41.756C72.906 41.756 74.5313 41.3267 75.758 40.468C76.9847 39.5787 77.782 38.3213 78.15 36.696H85.234C84.6513 40.1 83.1027 42.768 80.588 44.7C78.104 46.6013 74.8993 47.552 70.974 47.552ZM98.3425 47.552C96.0425 47.552 93.9572 47.046 92.0865 46.034C90.2465 45.022 88.7745 43.6113 87.6705 41.802C86.5972 39.9927 86.0605 37.9227 86.0605 35.592C86.0605 33.2307 86.5972 31.1607 87.6705 29.382C88.7745 27.5727 90.2619 26.162 92.1325 25.15C94.0032 24.138 96.0732 23.632 98.3425 23.632C100.643 23.632 102.713 24.138 104.553 25.15C106.423 26.162 107.895 27.5727 108.969 29.382C110.073 31.1607 110.625 33.2307 110.625 35.592C110.625 37.9227 110.073 39.9927 108.969 41.802C107.895 43.6113 106.423 45.022 104.553 46.034C102.713 47.046 100.643 47.552 98.3425 47.552ZM98.3425 41.986C99.3852 41.986 100.336 41.756 101.195 41.296C102.053 40.8053 102.728 40.0847 103.219 39.134C103.74 38.1833 104.001 37.0027 104.001 35.592C104.001 34.1813 103.74 33.0007 103.219 32.05C102.697 31.0993 102.007 30.394 101.149 29.934C100.321 29.4433 99.4005 29.198 98.3885 29.198C97.3459 29.198 96.3952 29.4433 95.5365 29.934C94.6779 30.394 93.9879 31.0993 93.4665 32.05C92.9452 32.97 92.6845 34.1507 92.6845 35.592C92.6845 37.0027 92.9299 38.1833 93.4205 39.134C93.9419 40.0847 94.6319 40.8053 95.4905 41.296C96.3492 41.756 97.2999 41.986 98.3425 41.986ZM120.458 47.552C117.821 47.552 115.751 46.6473 114.248 44.838C112.746 42.998 111.994 40.3607 111.994 36.926V24.184H118.388V36.328C118.388 38.1987 118.741 39.64 119.446 40.652C120.152 41.6333 121.21 42.124 122.62 42.124C124.154 42.124 125.334 41.5873 126.162 40.514C127.021 39.41 127.45 37.892 127.45 35.96V24.184H133.89V47H127.45V43.734C126.776 44.8993 125.856 45.8347 124.69 46.54C123.556 47.2147 122.145 47.552 120.458 47.552ZM136.498 57.12V24.184H142.938V27.312C143.674 26.3307 144.625 25.472 145.79 24.736C146.986 24 148.52 23.632 150.39 23.632C152.506 23.632 154.408 24.1533 156.094 25.196C157.781 26.2387 159.115 27.6647 160.096 29.474C161.078 31.2833 161.568 33.338 161.568 35.638C161.568 37.9073 161.078 39.9467 160.096 41.756C159.115 43.5653 157.781 44.9913 156.094 46.034C154.408 47.046 152.506 47.552 150.39 47.552C148.704 47.552 147.232 47.2453 145.974 46.632C144.748 46.0187 143.736 45.16 142.938 44.056V57.12H136.498ZM148.872 41.94C150.068 41.94 151.126 41.664 152.046 41.112C152.997 40.56 153.733 39.8087 154.254 38.858C154.776 37.9073 155.036 36.834 155.036 35.638C155.036 34.4113 154.776 33.3227 154.254 32.372C153.733 31.3907 152.997 30.624 152.046 30.072C151.126 29.52 150.068 29.244 148.872 29.244C147.676 29.244 146.618 29.52 145.698 30.072C144.778 30.624 144.058 31.3753 143.536 32.326C143.015 33.2767 142.754 34.3653 142.754 35.592C142.754 36.8187 143.015 37.9073 143.536 38.858C144.058 39.8087 144.778 40.56 145.698 41.112C146.618 41.664 147.676 41.94 148.872 41.94ZM174.87 47.552C172.57 47.552 170.485 47.046 168.614 46.034C166.774 45.022 165.302 43.6113 164.198 41.802C163.125 39.9927 162.588 37.9227 162.588 35.592C162.588 33.2307 163.125 31.1607 164.198 29.382C165.302 27.5727 166.79 26.162 168.66 25.15C170.531 24.138 172.601 23.632 174.87 23.632C177.17 23.632 179.24 24.138 181.08 25.15C182.951 26.162 184.423 27.5727 185.496 29.382C186.6 31.1607 187.152 33.2307 187.152 35.592C187.152 37.9227 186.6 39.9927 185.496 41.802C184.423 43.6113 182.951 45.022 181.08 46.034C179.24 47.046 177.17 47.552 174.87 47.552ZM174.87 41.986C175.913 41.986 176.864 41.756 177.722 41.296C178.581 40.8053 179.256 40.0847 179.746 39.134C180.268 38.1833 180.528 37.0027 180.528 35.592C180.528 34.1813 180.268 33.0007 179.746 32.05C179.225 31.0993 178.535 30.394 177.676 29.934C176.848 29.4433 175.928 29.198 174.916 29.198C173.874 29.198 172.923 29.4433 172.064 29.934C171.206 30.394 170.516 31.0993 169.994 32.05C169.473 32.97 169.212 34.1507 169.212 35.592C169.212 37.0027 169.458 38.1833 169.948 39.134C170.47 40.0847 171.16 40.8053 172.018 41.296C172.877 41.756 173.828 41.986 174.87 41.986ZM188.982 47V24.184H195.422V27.542C196.158 26.346 197.155 25.3953 198.412 24.69C199.7 23.9847 201.203 23.632 202.92 23.632C205.803 23.632 208.011 24.552 209.544 26.392C211.078 28.2013 211.844 30.8233 211.844 34.258V47H205.404V34.856C205.404 32.9853 205.021 31.5593 204.254 30.578C203.518 29.566 202.338 29.06 200.712 29.06C199.179 29.06 197.906 29.612 196.894 30.716C195.913 31.7893 195.422 33.292 195.422 35.224V47H188.982ZM223.899 47.552C220.832 47.552 218.318 46.8313 216.355 45.39C214.392 43.9487 213.288 42.0627 213.043 39.732H219.621C219.836 40.6213 220.357 41.342 221.185 41.894C222.013 42.4153 222.994 42.676 224.129 42.676C225.386 42.676 226.337 42.4613 226.981 42.032C227.656 41.572 227.993 41.02 227.993 40.376C227.993 39.8547 227.748 39.4407 227.257 39.134C226.766 38.7967 225.923 38.5667 224.727 38.444C224.298 38.3827 223.7 38.2907 222.933 38.168C222.197 38.0453 221.599 37.938 221.139 37.846C219.851 37.6007 218.67 37.202 217.597 36.65C216.554 36.0673 215.726 35.316 215.113 34.396C214.5 33.4453 214.193 32.2953 214.193 30.946C214.193 28.8913 214.96 27.1587 216.493 25.748C218.026 24.3373 220.28 23.632 223.255 23.632C226.26 23.632 228.622 24.2913 230.339 25.61C232.087 26.9287 233.068 28.7533 233.283 31.084H227.073C226.981 30.256 226.567 29.6273 225.831 29.198C225.095 28.7687 224.252 28.554 223.301 28.554C222.136 28.554 221.262 28.7533 220.679 29.152C220.096 29.5507 219.805 30.0413 219.805 30.624C219.805 31.5747 220.756 32.2187 222.657 32.556C222.933 32.5867 223.316 32.648 223.807 32.74C224.328 32.8013 224.85 32.878 225.371 32.97C225.923 33.0313 226.352 33.0927 226.659 33.154C227.579 33.2767 228.468 33.4913 229.327 33.798C230.216 34.074 230.998 34.4573 231.673 34.948C232.378 35.4387 232.93 36.0827 233.329 36.88C233.728 37.6773 233.927 38.6587 233.927 39.824C233.927 41.3573 233.544 42.7067 232.777 43.872C232.01 45.0373 230.876 45.942 229.373 46.586C227.901 47.23 226.076 47.552 223.899 47.552Z",fill:"#1F2327"}),j.jsx("path",{d:"M247.328 45.432V22.968H252.992V45.432H247.328ZM239.264 36.984V31.416H261.056V36.984H239.264Z",fill:"#1F2327"}),j.jsx("defs",{children:j.jsxs("linearGradient",{id:"paint0_linear_302_6",x1:"23",y1:"7.5",x2:"23",y2:"53.5",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{"stop-color":"#545454"}),j.jsx("stop",{offset:"1","stop-color":"#2A2A2A"})]})})]});function x6(a,i){X.useEffect(()=>{const s=o=>{!a||!a.current||a.current.contains(o.target)||i(o)};return document.addEventListener("mousedown",s),document.addEventListener("touchstart",s),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("touchstart",s)}},[a,i])}const T6={type:"spring",bounce:.1,duration:.4},Hf=X.createContext(null);function A6({defaultOpen:a=!1,open:i,onOpenChange:s}={}){const o=X.useId(),[c,d]=X.useState(a);return{isOpen:i??c,open:()=>{i===void 0&&d(!0),s==null||s(!0)},close:()=>{i===void 0&&d(!1),s==null||s(!1)},uniqueId:o}}function M6({children:a,transition:i=T6,defaultOpen:s,open:o,onOpenChange:c,variants:d,className:f,...g}){const m=A6({defaultOpen:s,open:o,onOpenChange:c});return j.jsx(Hf.Provider,{value:{...m,variants:d},children:j.jsx(Q5,{transition:i,children:j.jsx("div",{className:Oo("relative flex items-center justify-center",f),...g,children:a},m.uniqueId)})})}function C6({children:a,className:i,asChild:s=!1,...o}){const c=X.useContext(Hf);if(!c)throw new Error("MorphingPopoverTrigger must be used within MorphingPopover");if(s&&X.isValidElement(a)){const d=Ti.create(a.type),f=a.props;return X.createElement(d,{...f,onClick:c.open,layoutId:`popover-trigger-${c.uniqueId}`,className:f.className,key:c.uniqueId,"aria-expanded":c.isOpen,"aria-controls":`popover-content-${c.uniqueId}`})}return j.jsx(Ti.div,{layoutId:`popover-trigger-${c.uniqueId}`,onClick:c.open,children:X.createElement(Ti.button,{...o,layoutId:`popover-label-${c.uniqueId}`,key:c.uniqueId,className:i,"aria-expanded":c.isOpen,"aria-controls":`popover-content-${c.uniqueId}`},a)},c.uniqueId)}function E6({children:a,className:i,...s}){const o=X.useContext(Hf);if(!o)throw new Error("MorphingPopoverContent must be used within MorphingPopover");const c=X.useRef(null);return x6(c,o.close),X.useEffect(()=>{if(!o.isOpen)return;const d=f=>{f.key==="Escape"&&o.close()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o.isOpen,o.close]),j.jsx(Y5,{children:o.isOpen&&j.jsx(j.Fragment,{children:X.createElement(Ti.div,{...s,ref:c,layoutId:`popover-trigger-${o.uniqueId}`,key:o.uniqueId,id:`popover-content-${o.uniqueId}`,role:"dialog","aria-modal":"true",className:Oo("absolute overflow-hidden rounded-md border border-zinc-950/10 bg-white p-2 text-zinc-950 shadow-md dark:border-zinc-50/10 dark:bg-zinc-700 dark:text-zinc-50",i),initial:"initial",animate:"animate",exit:"exit",variants:o.variants},a)})})}function d1(a,i){return So(a,i,c1,Xy)}const Mc=d1("div"),D6=d1("svg");function w6({children:a,as:i="p",className:s,duration:o=2,spread:c=2}){const d=Ti.create(i),f=X.useMemo(()=>a.length*c,[a,c]);return j.jsx(d,{className:Oo("relative inline-block bg-[length:250%_100%,auto] bg-clip-text","text-transparent [--base-color:#a1a1aa] [--base-gradient-color:#000]","[background-repeat:no-repeat,padding-box] [--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))]","dark:[--base-color:#71717a] dark:[--base-gradient-color:#ffffff] dark:[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))]",s),initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:o,ease:"linear"},style:{"--spread":`${f}px`,backgroundImage:"var(--bg), linear-gradient(var(--base-color), var(--base-color))"},children:a})}const z6=lf.memo(w6),R6=async a=>{const i=await fetch(CouponsPlusWelcome.urls.API.activate,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":CouponsPlusWelcome.security.nonces.wp},body:JSON.stringify({license_key:a})});if(!i.ok)throw new Error("Failed to activate license. code: "+i.statusText+". body: "+await i.text());return i},O6=async()=>{const a=await fetch(CouponsPlusWelcome.urls.API.deactivate,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":CouponsPlusWelcome.security.nonces.wp},body:JSON.stringify({})});if(!a.ok)throw new Error("Failed to deactivate license. Please refresh the page and try again. code: "+a.statusText+". body: "+await a.text());return a},_6=async()=>{const a=await fetch(CouponsPlusWelcome.urls.API.status,{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":CouponsPlusWelcome.security.nonces.wp}});if(!a.ok)throw new Error("Failed to load license data. code: "+a.statusText+". body: "+await a.text());return a.json()},Ci={};function h1(a){return"init"in a}function Ic(a){return!!a.write}function mg(a){return"v"in a||"e"in a}function Do(a){if("e"in a)throw a.e;if((Ci?"production":void 0)!=="production"&&!("v"in a))throw new Error("[Bug] atom state is not initialized");return a.v}const wo=new WeakMap;function m1(a){var i;return zo(a)&&!!((i=wo.get(a))!=null&&i[0])}function V6(a){const i=wo.get(a);i!=null&&i[0]&&(i[0]=!1,i[1].forEach(s=>s()))}function tf(a,i){let s=wo.get(a);if(!s){s=[!0,new Set],wo.set(a,s);const o=()=>{s[0]=!1};a.then(o,o)}s[1].add(i)}function zo(a){return typeof(a==null?void 0:a.then)=="function"}function p1(a,i,s){if(!s.p.has(a)){s.p.add(a);const o=()=>s.p.delete(a);i.then(o,o)}}function g1(a,i,s){var o;const c=new Set;for(const d of((o=s.get(a))==null?void 0:o.t)||[])s.has(d)&&c.add(d);for(const d of i.p)c.add(d);return c}const j6=(a,i,...s)=>i.read(...s),N6=(a,i,...s)=>i.write(...s),B6=(a,i)=>{var s;return(s=i.unstable_onInit)==null?void 0:s.call(i,a)},L6=(a,i,s)=>{var o;return(o=i.onMount)==null?void 0:o.call(i,s)},U6=(a,i)=>{const s=de(a),o=s[0],c=s[9];if((Ci?"production":void 0)!=="production"&&!i)throw new Error("Atom is undefined or null");let d=o.get(i);return d||(d={d:new Map,p:new Set,n:0},o.set(i,d),c==null||c(a,i)),d},H6=a=>{const i=de(a),s=i[1],o=i[3],c=i[4],d=i[5],f=i[6],g=i[13],m=[],p=y=>{try{y()}catch(b){m.push(b)}};do{f.f&&p(f.f);const y=new Set,b=y.add.bind(y);o.forEach(S=>{var M;return(M=s.get(S))==null?void 0:M.l.forEach(b)}),o.clear(),d.forEach(b),d.clear(),c.forEach(b),c.clear(),y.forEach(p),o.size&&g(a)}while(o.size||d.size||c.size);if(m.length)throw new AggregateError(m)},G6=a=>{const i=de(a),s=i[1],o=i[2],c=i[3],d=i[11],f=i[14],g=i[17],m=[],p=new WeakSet,y=new WeakSet,b=Array.from(c);for(;b.length;){const S=b[b.length-1],M=d(a,S);if(y.has(S)){b.pop();continue}if(p.has(S)){if(o.get(S)===M.n)m.push([S,M]);else if((Ci?"production":void 0)!=="production"&&o.has(S))throw new Error("[Bug] invalidated atom exists");y.add(S),b.pop();continue}p.add(S);for(const V of g1(S,M,s))p.has(V)||b.push(V)}for(let S=m.length-1;S>=0;--S){const[M,V]=m[S];let L=!1;for(const R of V.d.keys())if(R!==M&&c.has(R)){L=!0;break}L&&(f(a,M),g(a,M)),o.delete(M)}},q6=(a,i)=>{var s,o;const c=de(a),d=c[1],f=c[2],g=c[3],m=c[6],p=c[7],y=c[11],b=c[12],S=c[13],M=c[14],V=c[16],L=c[17],R=y(a,i);if(mg(R)&&(d.has(i)&&f.get(i)!==R.n||Array.from(R.d).every(([O,at])=>M(a,O).n===at)))return R;R.d.clear();let q=!0;function Q(){d.has(i)&&(L(a,i),S(a),b(a))}function Z(O){var at;if(O===i){const St=y(a,O);if(!mg(St))if(h1(O))Ro(a,O,O.init);else throw new Error("no atom init");return Do(St)}const et=M(a,O);try{return Do(et)}finally{R.d.set(O,et.n),m1(R.v)&&p1(i,R.v,et),(at=d.get(O))==null||at.t.add(i),q||Q()}}let P,F;const W={get signal(){return P||(P=new AbortController),P.signal},get setSelf(){return(Ci?"production":void 0)!=="production"&&!Ic(i)&&console.warn("setSelf function cannot be used with read-only atom"),!F&&Ic(i)&&(F=(...O)=>{if((Ci?"production":void 0)!=="production"&&q&&console.warn("setSelf function cannot be called in sync"),!q)try{return V(a,i,...O)}finally{S(a),b(a)}}),F}},K=R.n;try{const O=p(a,i,Z,W);return Ro(a,i,O),zo(O)&&(tf(O,()=>P==null?void 0:P.abort()),O.then(Q,Q)),(s=m.r)==null||s.call(m,i),R}catch(O){return delete R.v,R.e=O,++R.n,R}finally{q=!1,K!==R.n&&f.get(i)===K&&(f.set(i,R.n),g.add(i),(o=m.c)==null||o.call(m,i))}},Y6=(a,i)=>{const s=de(a),o=s[1],c=s[2],d=s[11],f=[i];for(;f.length;){const g=f.pop(),m=d(a,g);for(const p of g1(g,m,o)){const y=d(a,p);c.set(p,y.n),f.push(p)}}},y1=(a,i,...s)=>{const o=de(a),c=o[3],d=o[6],f=o[8],g=o[11],m=o[12],p=o[13],y=o[14],b=o[15],S=o[17];let M=!0;const V=R=>Do(y(a,R)),L=(R,...q)=>{var Q;const Z=g(a,R);try{if(R===i){if(!h1(R))throw new Error("atom not writable");const P=Z.n,F=q[0];Ro(a,R,F),S(a,R),P!==Z.n&&(c.add(R),(Q=d.c)==null||Q.call(d,R),b(a,R));return}else return y1(a,R,...q)}finally{M||(p(a),m(a))}};try{return f(a,i,V,L,...s)}finally{M=!1}},k6=(a,i)=>{var s;const o=de(a),c=o[1],d=o[3],f=o[6],g=o[11],m=o[15],p=o[18],y=o[19],b=g(a,i),S=c.get(i);if(S&&!m1(b.v)){for(const[M,V]of b.d)if(!S.d.has(M)){const L=g(a,M);p(a,M).t.add(i),S.d.add(M),V!==L.n&&(d.add(M),(s=f.c)==null||s.call(f,M),m(a,M))}for(const M of S.d||[])if(!b.d.has(M)){S.d.delete(M);const V=y(a,M);V==null||V.t.delete(i)}}},v1=(a,i)=>{var s;const o=de(a),c=o[1],d=o[4],f=o[6],g=o[10],m=o[11],p=o[12],y=o[13],b=o[14],S=o[16],M=m(a,i);let V=c.get(i);if(!V){b(a,i);for(const L of M.d.keys())v1(a,L).t.add(i);if(V={l:new Set,d:new Set(M.d.keys()),t:new Set},c.set(i,V),(s=f.m)==null||s.call(f,i),Ic(i)){const L=()=>{let R=!0;const q=(...Q)=>{try{return S(a,i,...Q)}finally{R||(y(a),p(a))}};try{const Q=g(a,i,q);Q&&(V.u=()=>{R=!0;try{Q()}finally{R=!1}})}finally{R=!1}};d.add(L)}}return V},X6=(a,i)=>{var s;const o=de(a),c=o[1],d=o[5],f=o[6],g=o[11],m=o[19],p=g(a,i);let y=c.get(i);if(y&&!y.l.size&&!Array.from(y.t).some(b=>{var S;return(S=c.get(b))==null?void 0:S.d.has(i)})){y.u&&d.add(y.u),y=void 0,c.delete(i),(s=f.u)==null||s.call(f,i);for(const b of p.d.keys()){const S=m(a,b);S==null||S.t.delete(i)}return}return y},Ro=(a,i,s)=>{const o=de(a)[11],c=o(a,i),d="v"in c,f=c.v;if(zo(s))for(const g of c.d.keys())p1(i,s,o(a,g));c.v=s,delete c.e,(!d||!Object.is(f,c.v))&&(++c.n,zo(f)&&V6(f))},Z6=(a,i)=>{const s=de(a)[14];return Do(s(a,i))},Q6=(a,i,...s)=>{const o=de(a),c=o[12],d=o[13],f=o[16];try{return f(a,i,...s)}finally{d(a),c(a)}},K6=(a,i,s)=>{const o=de(a),c=o[12],d=o[18],f=o[19],m=d(a,i).l;return m.add(s),c(a),()=>{m.delete(s),f(a,i),c(a)}},b1=new WeakMap,de=a=>{const i=b1.get(a);if((Ci?"production":void 0)!=="production"&&!i)throw new Error("Store must be created by buildStore to read its building blocks");return i};function J6(...a){const i={get(o){const c=de(i)[21];return c(i,o)},set(o,...c){const d=de(i)[22];return d(i,o,...c)},sub(o,c){const d=de(i)[23];return d(i,o,c)}},s=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},j6,N6,B6,L6,U6,H6,G6,q6,Y6,y1,k6,v1,X6,Ro,Z6,Q6,K6,void 0].map((o,c)=>a[c]||o);return b1.set(i,Object.freeze(s)),i}const S1={};let F6=0;function Oi(a,i){const s=`atom${++F6}`,o={toString(){return(S1?"production":void 0)!=="production"&&this.debugLabel?s+":"+this.debugLabel:s}};return typeof a=="function"?o.read=a:(o.init=a,o.read=P6,o.write=W6),o}function P6(a){return a(this)}function W6(a,i,s){return i(this,typeof s=="function"?s(a(this)):s)}function $6(){return J6()}let wl;function I6(){return wl||(wl=$6(),(S1?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=wl),globalThis.__JOTAI_DEFAULT_STORE__!==wl&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),wl}const tx={},ex=X.createContext(void 0);function x1(a){return X.useContext(ex)||I6()}const ef=a=>typeof(a==null?void 0:a.then)=="function",nf=a=>{a.status||(a.status="pending",a.then(i=>{a.status="fulfilled",a.value=i},i=>{a.status="rejected",a.reason=i}))},nx=lf.use||(a=>{if(a.status==="pending")throw a;if(a.status==="fulfilled")return a.value;throw a.status==="rejected"?a.reason:(nf(a),a)}),Cc=new WeakMap,pg=(a,i)=>{let s=Cc.get(a);return s||(s=new Promise((o,c)=>{let d=a;const f=p=>y=>{d===p&&o(y)},g=p=>y=>{d===p&&c(y)},m=()=>{try{const p=i();ef(p)?(Cc.set(p,s),d=p,p.then(f(p),g(p)),tf(p,m)):o(p)}catch(p){c(p)}};a.then(f(a),g(a)),tf(a,m)}),Cc.set(a,s)),s};function ax(a,i){const{delay:s,unstable_promiseStatus:o=!lf.use}={},c=x1(),[[d,f,g],m]=X.useReducer(y=>{const b=c.get(a);return Object.is(y[0],b)&&y[1]===c&&y[2]===a?y:[b,c,a]},void 0,()=>[c.get(a),c,a]);let p=d;if((f!==c||g!==a)&&(m(),p=c.get(a)),X.useEffect(()=>{const y=c.sub(a,()=>{if(o)try{const b=c.get(a);ef(b)&&nf(pg(b,()=>c.get(a)))}catch{}if(typeof s=="number"){setTimeout(m,s);return}m()});return m(),y},[c,a,s,o]),X.useDebugValue(p),ef(p)){const y=pg(p,()=>c.get(a));return o&&nf(y),nx(y)}return p}function ix(a,i){const s=x1();return X.useCallback((...c)=>{if((tx?"production":void 0)!=="production"&&!("write"in a))throw new Error("not writable atom");return s.set(a,...c)},[s,a])}function pi(a,i){return[ax(a),ix(a)]}const lx=Oi(void 0),sx=Oi(!1),ox=Oi(!1),rx=Oi(!1),ux=Oi(!1),cx=Oi(null),fx=({})=>{const[a,i]=pi(sx),[s,o]=pi(lx),[c,d]=pi(ux),[f,g]=pi(rx),m=X.useRef(CouponsPlusWelcome.licenseKey||""),[p,y]=pi(cx),[b,S]=pi(ox);X.useEffect(()=>{s===void 0&&o(CouponsPlusWelcome.licenseKey)},[]),X.useEffect(()=>{typeof s=="string"&&s.length>0&&!c&&(d(!0),i(!0),(async()=>{try{const q=await _6();o(q)}catch(q){y(q)}finally{i(!1)}})())},[s,c,o,i,y,d]);const M=()=>{m.current&&(g(!0),y(null),setTimeout(async()=>{try{const R=await R6(m.current);o(m.current),console.log("response",R)}catch(R){console.log("Error activating license:",R),y(R)}finally{g(!1)}},2*1e3))},V=()=>{m.current&&(S(!0),y(null),setTimeout(async()=>{try{const R=await O6();console.log("response",R),o(void 0),m.current="",d(!1)}catch(R){console.log("Error deactivating license:",R),y(R)}finally{S(!1)}},100))},L=!s;return j.jsxs("div",{className:"space-y-3",children:[j.jsxs(M6,{open:f||a,onOpenChange:R=>!R&&g(!1),children:[j.jsx(C6,{asChild:!0,children:j.jsxs(Mc,{className:Dc("flex flex-col items-center gap-4 bg-gray-100/10 backdrop-blur-[4px] border-[1px] border-gray-150 rounded-1 px-6 py-3 w-90"),children:[j.jsxs(Mc,{layoutId:"logo-section",className:"flex items-center gap-2",children:[j.jsx($c,{}),j.jsx("span",{className:"font-semibold text-smaller-2 uppercase inline-flex py-1 px-2 rounded-4 bg-gray-850 text-white mt-[2px]",children:"PRO"})]}),L&&j.jsxs(j.Fragment,{children:[j.jsx("input",{type:"text",onChange:R=>{m.current=R.target.value},onPointerDown:R=>R.stopPropagation(),onClick:R=>R.stopPropagation(),className:"m-0 !px-4 py-0 w-full !h-10 flex items-center border-[1px] !border-gray-200 !rounded-3 !bg-gray-100/50 text-gray-800 placeholder:text-gray-350 active:!shadow-none focus:!shadow-none focus:!border-gray-350 focus:!ring-[2px] focus:!ring-offset-2 focus:!ring-gray-200",placeholder:Xt("Enter your license key")}),j.jsx("p",{className:"text-smaller-1 text-gray-450 leading-3",children:Xt("Do not share your license key. Improper use (abuse) of your license key might result in the suspension of your account.")}),j.jsxs("button",{onClick:M,className:"relative px-5 h-9 flex items-center justify-center gap-2 text-base bg-blue-normal text-blue-10 rounded-full hover:cursor-pointer hover:scale-[1.01] hover:bg-blue-90 active:scale-[.98] transition-all duration-200 m-0 w-full",children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"min-w-5 min-h-5 max-w-5 max-h-5",children:j.jsx("path",{fillRule:"evenodd",d:"M12 3.75a6.715 6.715 0 0 0-3.722 1.118.75.75 0 1 1-.828-1.25 8.25 8.25 0 0 1 12.8 6.883c0 3.014-.574 5.897-1.62 8.543a.75.75 0 0 1-1.395-.551A21.69 21.69 0 0 0 18.75 10.5 6.75 6.75 0 0 0 12 3.75ZM6.157 5.739a.75.75 0 0 1 .21 1.04A6.715 6.715 0 0 0 5.25 10.5c0 1.613-.463 3.12-1.265 4.393a.75.75 0 0 1-1.27-.8A6.715 6.715 0 0 0 3.75 10.5c0-1.68.503-3.246 1.367-4.55a.75.75 0 0 1 1.04-.211ZM12 7.5a3 3 0 0 0-3 3c0 3.1-1.176 5.927-3.105 8.056a.75.75 0 1 1-1.112-1.008A10.459 10.459 0 0 0 7.5 10.5a4.5 4.5 0 1 1 9 0c0 .547-.022 1.09-.067 1.626a.75.75 0 0 1-1.495-.123c.041-.495.062-.996.062-1.503a3 3 0 0 0-3-3Zm0 2.25a.75.75 0 0 1 .75.75c0 3.908-1.424 7.485-3.781 10.238a.75.75 0 0 1-1.14-.975A14.19 14.19 0 0 0 11.25 10.5a.75.75 0 0 1 .75-.75Zm3.239 5.183a.75.75 0 0 1 .515.927 19.417 19.417 0 0 1-2.585 5.544.75.75 0 0 1-1.243-.84 17.915 17.915 0 0 0 2.386-5.116.75.75 0 0 1 .927-.515Z",clipRule:"evenodd"})}),j.jsx("span",{children:Xt("Activate License")})]})]}),!L&&!b&&s&&typeof s!="string"&&j.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[j.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.is_activated?j.jsx(D6,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"min-w-12 min-h-12 max-w-12 max-h-12",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:260,damping:20,duration:.6,delay:.4},children:j.jsx("path",{fillRule:"evenodd",d:"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"})},"activated-icon"):j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"min-w-12 min-h-12 max-w-12 max-h-12",children:j.jsx("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-2.625 6c-.54 0-.828.419-.936.634a1.96 1.96 0 0 0-.189.866c0 .298.059.605.189.866.108.215.395.634.936.634.54 0 .828-.419.936-.634.13-.26.189-.568.189-.866 0-.298-.059-.605-.189-.866-.108-.215-.395-.634-.936-.634Zm4.314.634c.108-.215.395-.634.936-.634.54 0 .828.419.936.634.13.26.189.568.189.866 0 .298-.059.605-.189.866-.108.215-.395.634-.936.634-.54 0-.828-.419-.936-.634a1.96 1.96 0 0 1-.189-.866c0-.298.059-.605.189-.866Zm-4.34 7.964a.75.75 0 0 1-1.061-1.06 5.236 5.236 0 0 1 3.73-1.538 5.236 5.236 0 0 1 3.695 1.538.75.75 0 1 1-1.061 1.06 3.736 3.736 0 0 0-2.639-1.098 3.736 3.736 0 0 0-2.664 1.098Z",clipRule:"evenodd"})}),j.jsx("h2",{className:Dc("m-0 text-2x font-semibold text-gray-800"),children:s.is_activated?Xt("License Activated. Enjoy."):Xt("License Inactive")})]}),j.jsxs("div",{className:"space-y-1",children:[j.jsx("div",{className:"text-base font-semibold flex items-center rounded-2 py-2 px-3 bg-gray-150/80 text-gray-600 border-[1px] border-gray-150",children:s.data.key}),j.jsx("p",{className:"text-smaller-2 text-gray-400 m-0",children:Xt("License key")})]})]})]})}),j.jsx(E6,{className:"bg-gray-100/10 backdrop-blur-[4px] !border-[1px] !border-gray-150 !rounded-1 px-6 pt-2 pb-4 !shadow-none",children:j.jsx(f1,{colors:["#0894FF","#C959DD","#FF2E54","#FF9004"],mode:"breathe",blur:"medium",scale:1,duration:2,className:"opacity-10",children:j.jsxs("div",{className:"flex flex-col items-center gap-3",children:[j.jsxs(Mc,{layoutId:"logo-section",className:"flex items-center gap-2",children:[j.jsx($c,{}),j.jsx("span",{className:"font-semibold text-smaller-2 uppercase inline-flex py-1 px-2 rounded-4 bg-gray-850 text-white mt-[2px]",children:"PRO"})]}),j.jsx(z6,{className:"text-base [--base-color:var(--color-gray-800)] [--base-gradient-color:var(--color-blue-20)]",duration:3,spread:4,children:m.current&&m.current}),!1]})})})]}),s&&(typeof s=="string"?!a:!f)&&j.jsxs("button",{className:"w-90 h-9 flex items-center gap-2 justify-center bg-gray-350 text-gray-100 rounded-full   text-base font-medium hover:cursor-pointer active:scale-[.98] transition",onClick:V,children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"min-w-4 min-h-4 max-w-4 max-h-4",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})}),Xt(b?"Deactivating site...":"Deactivate site")]}),p&&j.jsxs("div",{className:"flex items-start gap-4 bg-gray-700/100 backdrop-blur-[8px] text-gray-100 w-90 rounded-1 px-5 py-4",children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"min-w-6 min-h-6 max-w-6 max-h-6 mt-[2px]",children:j.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"})}),j.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[j.jsx("h1",{className:"!text-3x m-0 text-gray-100",children:Xt("Cannot process license!")}),j.jsx("p",{className:"text-smaller-1 opacity-70 m-0",children:p.message})]})]})]})},Ec=[{id:"welcome",name:Xt("Welcome"),component:S6},CouponsPlusWelcome.hasCouponsPlusPro&&{id:"license",name:Xt("License"),component:fx}].filter(Boolean);function dx(){var g;const{width:a,height:i,leftOffset:s,topOffset:o}=e3(),[c,d]=X.useState(Ec[0].id),f=((g=Ec.find(m=>m.id===c))==null?void 0:g.component)||(()=>j.jsx("div",{className:"text-gray-600",children:"..."}));return j.jsxs("div",{id:"coupons-plus-welcome",className:"fixed z-10 w-full h-full bg-gray-100 py-4 px-16 overflow-auto",style:{width:`${a}px`,height:`${i}px`,left:`${s}px`,top:`${o}px`},children:[j.jsx("div",{className:"absolute top-0 left-0 w-full h-full",children:j.jsx(n3,{className:"pointer-events-none mask-radial-to-70% mask-radial-at-center opacity-60 ",opacity:.2,gap:19,radius:8,colorLightVar:"--color-blue-normal",glowColorLightVar:"--color-blue-10",colorDarkVar:"--color-blue-normal",glowColorDarkVar:"--color-blue-shade-500",backgroundOpacity:.3,speedMin:.1,speedMax:0,speedScale:.5,color:"red"})}),j.jsxs("div",{className:"space-y-12 relative z-10 flex flex-col items-center",children:[j.jsxs("div",{className:"relative flex justify-start w-full",children:[j.jsx($c,{}),j.jsx("div",{className:"absolute top-1/2 left-1/2 translate-x-[-50%] translate-y-[-50%] border-[1px] border-gray-150 rounded-full h-9 px-1 flex items-center gap-3 bg-gray-750/5 backdrop-blur-[20px]",children:Ec.map(({name:m,id:p})=>j.jsx("button",{className:Dc("px-3 h-7 rounded-full text-base",{"bg-transparent text-gray-600":c!==p,"bg-gray-800 text-gray-100 font-medium":c===p}),onClick:()=>d(p),children:m}))})]}),j.jsx(f,{})]})]})}t3.createRoot(document.getElementById("root")).render(j.jsx(X.StrictMode,{children:j.jsx(dx,{})}));
