unis_crm/frontend/dist/assets/index-DTZ3L0iU.js

277 lines
464 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();var Rc={exports:{}},Ul={};/**
* @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 Tp;function T2(){if(Tp)return Ul;Tp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return Ul.Fragment=i,Ul.jsx=s,Ul.jsxs=s,Ul}var Ep;function E2(){return Ep||(Ep=1,Rc.exports=T2()),Rc.exports}var y=E2(),Oc={exports:{}},ft={};/**
* @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 Mp;function M2(){if(Mp)return ft;Mp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function T(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,j={};function D(E,q,P){this.props=E,this.context=q,this.refs=j,this.updater=P||k}D.prototype.isReactComponent={},D.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},D.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function H(){}H.prototype=D.prototype;function L(E,q,P){this.props=E,this.context=q,this.refs=j,this.updater=P||k}var X=L.prototype=new H;X.constructor=L,N(X,D.prototype),X.isPureReactComponent=!0;var Q=Array.isArray;function it(){}var F={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function W(E,q,P){var $=P.ref;return{$$typeof:n,type:E,key:q,ref:$!==void 0?$:null,props:P}}function tt(E,q){return W(E.type,q,E.props)}function mt(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function gt(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(P){return q[P]})}var Yt=/\/+/g;function _t(E,q){return typeof E=="object"&&E!==null&&E.key!=null?gt(""+E.key):q.toString(36)}function vt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(it,it):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function _(E,q,P,$,st){var ot=typeof E;(ot==="undefined"||ot==="boolean")&&(E=null);var Et=!1;if(E===null)Et=!0;else switch(ot){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(E.$$typeof){case n:case i:Et=!0;break;case v:return Et=E._init,_(Et(E._payload),q,P,$,st)}}if(Et)return st=st(E),Et=$===""?"."+_t(E,0):$,Q(st)?(P="",Et!=null&&(P=Et.replace(Yt,"$&/")+"/"),_(st,q,P,"",function(Vn){return Vn})):st!=null&&(mt(st)&&(st=tt(st,P+(st.key==null||E&&E.key===st.key?"":(""+st.key).replace(Yt,"$&/")+"/")+Et)),q.push(st)),1;Et=0;var ae=$===""?".":$+":";if(Q(E))for(var pt=0;pt<E.length;pt++)$=E[pt],ot=ae+_t($,pt),Et+=_($,q,P,ot,st);else if(pt=T(E),typeof pt=="function")for(E=pt.call(E),pt=0;!($=E.next()).done;)$=$.value,ot=ae+_t($,pt++),Et+=_($,q,P,ot,st);else if(ot==="object"){if(typeof E.then=="function")return _(vt(E),q,P,$,st);throw q=String(E),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Et}function Z(E,q,P){if(E==null)return E;var $=[],st=0;return _(E,$,"","",function(ot){return q.call(P,ot,st++)}),$}function J(E){if(E._status===-1){var q=E._result;q=q(),q.then(function(P){(E._status===0||E._status===-1)&&(E._status=1,E._result=P)},function(P){(E._status===0||E._status===-1)&&(E._status=2,E._result=P)}),E._status===-1&&(E._status=0,E._result=q)}if(E._status===1)return E._result.default;throw E._result}var ct=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},K={map:Z,forEach:function(E,q,P){Z(E,function(){q.apply(this,arguments)},P)},count:function(E){var q=0;return Z(E,function(){q++}),q},toArray:function(E){return Z(E,function(q){return q})||[]},only:function(E){if(!mt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ft.Activity=x,ft.Children=K,ft.Component=D,ft.Fragment=s,ft.Profiler=u,ft.PureComponent=L,ft.StrictMode=r,ft.Suspense=m,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ft.__COMPILER_RUNTIME={__proto__:null,c:function(E){return F.H.useMemoCache(E)}},ft.cache=function(E){return function(){return E.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(E,q,P){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var $=N({},E.props),st=E.key;if(q!=null)for(ot in q.key!==void 0&&(st=""+q.key),q)!Y.call(q,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&q.ref===void 0||($[ot]=q[ot]);var ot=arguments.length-2;if(ot===1)$.children=P;else if(1<ot){for(var Et=Array(ot),ae=0;ae<ot;ae++)Et[ae]=arguments[ae+2];$.children=Et}return W(E.type,st,$)},ft.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ft.createElement=function(E,q,P){var $,st={},ot=null;if(q!=null)for($ in q.key!==void 0&&(ot=""+q.key),q)Y.call(q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(st[$]=q[$]);var Et=arguments.length-2;if(Et===1)st.children=P;else if(1<Et){for(var ae=Array(Et),pt=0;pt<Et;pt++)ae[pt]=arguments[pt+2];st.children=ae}if(E&&E.defaultProps)for($ in Et=E.defaultProps,Et)st[$]===void 0&&(st[$]=Et[$]);return W(E,ot,st)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(E){return{$$typeof:h,render:E}},ft.isValidElement=mt,ft.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:J}},ft.memo=function(E,q){return{$$typeof:g,type:E,compare:q===void 0?null:q}},ft.startTransition=function(E){var q=F.T,P={};F.T=P;try{var $=E(),st=F.S;st!==null&&st(P,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(it,ct)}catch(ot){ct(ot)}finally{q!==null&&P.types!==null&&(q.types=P.types),F.T=q}},ft.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ft.use=function(E){return F.H.use(E)},ft.useActionState=function(E,q,P){return F.H.useActionState(E,q,P)},ft.useCallback=function(E,q){return F.H.useCallback(E,q)},ft.useContext=function(E){return F.H.useContext(E)},ft.useDebugValue=function(){},ft.useDeferredValue=function(E,q){return F.H.useDeferredValue(E,q)},ft.useEffect=function(E,q){return F.H.useEffect(E,q)},ft.useEffectEvent=function(E){return F.H.useEffectEvent(E)},ft.useId=function(){return F.H.useId()},ft.useImperativeHandle=function(E,q,P){return F.H.useImperativeHandle(E,q,P)},ft.useInsertionEffect=function(E,q){return F.H.useInsertionEffect(E,q)},ft.useLayoutEffect=function(E,q){return F.H.useLayoutEffect(E,q)},ft.useMemo=function(E,q){return F.H.useMemo(E,q)},ft.useOptimistic=function(E,q){return F.H.useOptimistic(E,q)},ft.useReducer=function(E,q,P){return F.H.useReducer(E,q,P)},ft.useRef=function(E){return F.H.useRef(E)},ft.useState=function(E){return F.H.useState(E)},ft.useSyncExternalStore=function(E,q,P){return F.H.useSyncExternalStore(E,q,P)},ft.useTransition=function(){return F.H.useTransition()},ft.version="19.2.4",ft}var Ap;function Vf(){return Ap||(Ap=1,Oc.exports=M2()),Oc.exports}var A=Vf(),zc={exports:{}},Hl={},_c={exports:{}},Vc={};/**
* @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 kp;function A2(){return kp||(kp=1,(function(n){function i(_,Z){var J=_.length;_.push(Z);t:for(;0<J;){var ct=J-1>>>1,K=_[ct];if(0<u(K,Z))_[ct]=Z,_[J]=K,J=ct;else break t}}function s(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var Z=_[0],J=_.pop();if(J!==Z){_[0]=J;t:for(var ct=0,K=_.length,E=K>>>1;ct<E;){var q=2*(ct+1)-1,P=_[q],$=q+1,st=_[$];if(0>u(P,J))$<K&&0>u(st,P)?(_[ct]=st,_[$]=J,ct=$):(_[ct]=P,_[q]=J,ct=q);else if($<K&&0>u(st,J))_[ct]=st,_[$]=J,ct=$;else break t}}return Z}function u(_,Z){var J=_.sortIndex-Z.sortIndex;return J!==0?J:_.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],v=1,x=null,S=3,T=!1,k=!1,N=!1,j=!1,D=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function X(_){for(var Z=s(g);Z!==null;){if(Z.callback===null)r(g);else if(Z.startTime<=_)r(g),Z.sortIndex=Z.expirationTime,i(m,Z);else break;Z=s(g)}}function Q(_){if(N=!1,X(_),!k)if(s(m)!==null)k=!0,it||(it=!0,gt());else{var Z=s(g);Z!==null&&vt(Q,Z.startTime-_)}}var it=!1,F=-1,Y=5,W=-1;function tt(){return j?!0:!(n.unstable_now()-W<Y)}function mt(){if(j=!1,it){var _=n.unstable_now();W=_;var Z=!0;try{t:{k=!1,N&&(N=!1,H(F),F=-1),T=!0;var J=S;try{e:{for(X(_),x=s(m);x!==null&&!(x.expirationTime>_&&tt());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,S=x.priorityLevel;var K=ct(x.expirationTime<=_);if(_=n.unstable_now(),typeof K=="function"){x.callback=K,X(_),Z=!0;break e}x===s(m)&&r(m),X(_)}else r(m);x=s(m)}if(x!==null)Z=!0;else{var E=s(g);E!==null&&vt(Q,E.startTime-_),Z=!1}}break t}finally{x=null,S=J,T=!1}Z=void 0}}finally{Z?gt():it=!1}}}var gt;if(typeof L=="function")gt=function(){L(mt)};else if(typeof MessageChannel<"u"){var Yt=new MessageChannel,_t=Yt.port2;Yt.port1.onmessage=mt,gt=function(){_t.postMessage(null)}}else gt=function(){D(mt,0)};function vt(_,Z){F=D(function(){_(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(_){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var J=S;S=Z;try{return _()}finally{S=J}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(_,Z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var J=S;S=_;try{return Z()}finally{S=J}},n.unstable_scheduleCallback=function(_,Z,J){var ct=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ct+J:ct):J=ct,_){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=J+K,_={id:v++,callback:Z,priorityLevel:_,startTime:J,expirationTime:K,sortIndex:-1},J>ct?(_.sortIndex=J,i(g,_),s(m)===null&&_===s(g)&&(N?(H(F),F=-1):N=!0,vt(Q,J-ct))):(_.sortIndex=K,i(m,_),k||T||(k=!0,it||(it=!0,gt()))),_},n.unstable_shouldYield=tt,n.unstable_wrapCallback=function(_){var Z=S;return function(){var J=S;S=Z;try{return _.apply(this,arguments)}finally{S=J}}}})(Vc)),Vc}var Np;function k2(){return Np||(Np=1,_c.exports=A2()),_c.exports}var Lc={exports:{}},me={};/**
* @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 Cp;function N2(){if(Cp)return me;Cp=1;var n=Vf();function i(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={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},u=Symbol.for("react.portal");function f(m,g,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:m,containerInfo:g,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(m,g,null,v)},me.flushSync=function(m){var g=d.T,v=r.p;try{if(d.T=null,r.p=2,m)return m()}finally{d.T=g,r.p=v,r.d.f()}},me.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(m,g))},me.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},me.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,x=h(v,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,T=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?r.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:T}):v==="script"&&r.d.X(m,{crossOrigin:x,integrity:S,fetchPriority:T,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},me.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(m)},me.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,x=h(v,g.crossOrigin);r.d.L(m,v,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},me.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=h(g.as,g.crossOrigin);r.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(m)},me.requestFormReset=function(m){r.d.r(m)},me.unstable_batchedUpdates=function(m,g){return m(g)},me.useFormState=function(m,g,v){return d.H.useFormState(m,g,v)},me.useFormStatus=function(){return d.H.useHostTransitionStatus()},me.version="19.2.4",me}var jp;function C2(){if(jp)return Lc.exports;jp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Lc.exports=N2(),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 Dp;function j2(){if(Dp)return Hl;Dp=1;var n=k2(),i=Vf(),s=C2();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function d(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 h(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(f(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return m(o),t;if(c===l)return m(o),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=c;else{for(var p=!1,b=o.child;b;){if(b===a){p=!0,a=o,l=c;break}if(b===l){p=!0,l=o,a=c;break}b=b.sibling}if(!p){for(b=c.child;b;){if(b===a){p=!0,a=c,l=o;break}if(b===l){p=!0,l=c,a=o;break}b=b.sibling}if(!p)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),L=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),mt=Symbol.iterator;function gt(t){return t===null||typeof t!="object"?null:(t=mt&&t[mt]||t["@@iterator"],typeof t=="function"?t:null)}var Yt=Symbol.for("react.client.reference");function _t(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case D:return"Profiler";case j:return"StrictMode";case Q:return"Suspense";case it:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case L:return t.displayName||"Context";case H:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:_t(t.type)||"Memo";case Y:e=t._payload,t=t._init;try{return _t(t(e))}catch{}}return null}var vt=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ct=[],K=-1;function E(t){return{current:t}}function q(t){0>K||(t.current=ct[K],ct[K]=null,K--)}function P(t,e){K++,ct[K]=t.current,t.current=e}var $=E(null),st=E(null),ot=E(null),Et=E(null);function ae(t,e){switch(P(ot,e),P(st,t),P($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?K0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=K0(e),t=Z0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q($),P($,t)}function pt(){q($),q(st),q(ot)}function Vn(t){t.memoizedState!==null&&P(Et,t);var e=$.current,a=Z0(e,t.type);e!==a&&(P(st,t),P($,a))}function mn(t){st.current===t&&(q($),q(st)),Et.current===t&&(q(Et),_l._currentValue=J)}var Ln,Pa;function Ve(t){if(Ln===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Ln=e&&e[1]||"",Pa=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ln+t+Pa}var po=!1;function go(t,e){if(!t||po)return"";po=!0;var a=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(V){var z=V}Reflect.construct(t,[],G)}else{try{G.call()}catch(V){z=V}t.call(G.prototype)}}else{try{throw Error()}catch(V){z=V}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(V){if(V&&z&&typeof V.stack=="string")return[V.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],b=c[1];if(p&&b){var w=p.split(`
`),O=b.split(`
`);for(o=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;if(l===w.length||o===O.length)for(l=w.length-1,o=O.length-1;1<=l&&0<=o&&w[l]!==O[o];)o--;for(;1<=l&&0<=o;l--,o--)if(w[l]!==O[o]){if(l!==1||o!==1)do if(l--,o--,0>o||w[l]!==O[o]){var B=`
`+w[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=o);break}}}finally{po=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ve(a):""}function tb(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return go(t.type,!1);case 11:return go(t.type.render,!1);case 1:return go(t.type,!0);case 31:return Ve("Activity");default:return""}}function Td(t){try{var e="",a=null;do e+=tb(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var yo=Object.prototype.hasOwnProperty,vo=n.unstable_scheduleCallback,xo=n.unstable_cancelCallback,eb=n.unstable_shouldYield,nb=n.unstable_requestPaint,Me=n.unstable_now,ab=n.unstable_getCurrentPriorityLevel,Ed=n.unstable_ImmediatePriority,Md=n.unstable_UserBlockingPriority,ds=n.unstable_NormalPriority,ib=n.unstable_LowPriority,Ad=n.unstable_IdlePriority,lb=n.log,sb=n.unstable_setDisableYieldValue,Zi=null,Ae=null;function Bn(t){if(typeof lb=="function"&&sb(t),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Zi,t)}catch{}}var ke=Math.clz32?Math.clz32:ub,rb=Math.log,ob=Math.LN2;function ub(t){return t>>>=0,t===0?32:31-(rb(t)/ob|0)|0}var hs=256,ms=262144,ps=4194304;function ba(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 gs(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?o=ba(l):(p&=b,p!==0?o=ba(p):a||(a=b&~t,a!==0&&(o=ba(a))))):(b=l&~c,b!==0?o=ba(b):p!==0?o=ba(p):a||(a=l&~t,a!==0&&(o=ba(a)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:o}function Pi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function cb(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 kd(){var t=ps;return ps<<=1,(ps&62914560)===0&&(ps=4194304),t}function bo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Fi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fb(t,e,a,l,o,c){var p=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var b=t.entanglements,w=t.expirationTimes,O=t.hiddenUpdates;for(a=p&~a;0<a;){var B=31-ke(a),G=1<<B;b[B]=0,w[B]=-1;var z=O[B];if(z!==null)for(O[B]=null,B=0;B<z.length;B++){var V=z[B];V!==null&&(V.lane&=-536870913)}a&=~G}l!==0&&Nd(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(p&~e))}function Nd(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ke(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function Cd(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-ke(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function jd(t,e){var a=e&-e;return a=(a&42)!==0?1:So(a),(a&(t.suspendedLanes|e))!==0?0:a}function So(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 wo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Dd(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:gp(t.type))}function Rd(t,e){var a=Z.p;try{return Z.p=t,e()}finally{Z.p=a}}var Un=Math.random().toString(36).slice(2),se="__reactFiber$"+Un,ve="__reactProps$"+Un,Fa="__reactContainer$"+Un,To="__reactEvents$"+Un,db="__reactListeners$"+Un,hb="__reactHandles$"+Un,Od="__reactResources$"+Un,Ji="__reactMarker$"+Un;function Eo(t){delete t[se],delete t[ve],delete t[To],delete t[db],delete t[hb]}function Ja(t){var e=t[se];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Fa]||a[se]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=tp(t);t!==null;){if(a=t[se])return a;t=tp(t)}return e}t=a,a=t.parentNode}return null}function Wa(t){if(t=t[se]||t[Fa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Wi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function $a(t){var e=t[Od];return e||(e=t[Od]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ie(t){t[Ji]=!0}var zd=new Set,_d={};function Sa(t,e){Ia(t,e),Ia(t+"Capture",e)}function Ia(t,e){for(_d[t]=e,t=0;t<e.length;t++)zd.add(e[t])}var mb=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]*$"),Vd={},Ld={};function pb(t){return yo.call(Ld,t)?!0:yo.call(Vd,t)?!1:mb.test(t)?Ld[t]=!0:(Vd[t]=!0,!1)}function ys(t,e,a){if(pb(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){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,""+a)}}function vs(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function pn(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function Le(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gb(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Mo(t){if(!t._valueTracker){var e=Bd(t)?"checked":"value";t._valueTracker=gb(t,e,""+t[e])}}function Ud(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=Bd(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function xs(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 yb=/[\n"\\]/g;function Be(t){return t.replace(yb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ao(t,e,a,l,o,c,p,b){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Le(e)):t.value!==""+Le(e)&&(t.value=""+Le(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?ko(t,p,Le(e)):a!=null?ko(t,p,Le(a)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Le(b):t.removeAttribute("name")}function Hd(t,e,a,l,o,c,p,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Mo(t);return}a=a!=null?""+Le(a):"",e=e!=null?""+Le(e):a,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),Mo(t)}function ko(t,e,a){e==="number"&&xs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function ti(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Le(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Yd(t,e,a){if(e!=null&&(e=""+Le(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Le(a):""}function qd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(vt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Le(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),Mo(t)}function ei(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var vb=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 Gd(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||vb.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function Xd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&Gd(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&Gd(t,c,e[c])}function No(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 xb=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"]]),bb=/^[\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 bs(t){return bb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function gn(){}var Co=null;function jo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ni=null,ai=null;function Qd(t){var e=Wa(t);if(e&&(t=e.stateNode)){var a=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ao(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Be(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[ve]||null;if(!o)throw Error(r(90));Ao(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&Ud(l)}break t;case"textarea":Yd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&ti(t,!!a.multiple,e,!1)}}}var Do=!1;function Kd(t,e,a){if(Do)return t(e,a);Do=!0;try{var l=t(e);return l}finally{if(Do=!1,(ni!==null||ai!==null)&&(rr(),ni&&(e=ni,t=ai,ai=ni=null,Qd(e),t)))for(e=0;e<t.length;e++)Qd(t[e])}}function $i(t,e){var a=t.stateNode;if(a===null)return null;var l=a[ve]||null;if(l===null)return null;a=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(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=!1;if(yn)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Ro=!1}var Hn=null,Oo=null,Ss=null;function Zd(){if(Ss)return Ss;var t,e=Oo,a=e.length,l,o="value"in Hn?Hn.value:Hn.textContent,c=o.length;for(t=0;t<a&&e[t]===o[t];t++);var p=a-t;for(l=1;l<=p&&e[a-l]===o[c-l];l++);return Ss=o.slice(t,1<l?1-l:void 0)}function ws(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 Ts(){return!0}function Pd(){return!1}function xe(t){function e(a,l,o,c,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(a=t[b],this[b]=a?a(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ts:Pd,this.isPropagationStopped=Pd,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ts)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ts)},persist:function(){},isPersistent:Ts}),e}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=xe(wa),tl=x({},wa,{view:0,detail:0}),Sb=xe(tl),zo,_o,el,Ms=x({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lo,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!==el&&(el&&t.type==="mousemove"?(zo=t.screenX-el.screenX,_o=t.screenY-el.screenY):_o=zo=0,el=t),zo)},movementY:function(t){return"movementY"in t?t.movementY:_o}}),Fd=xe(Ms),wb=x({},Ms,{dataTransfer:0}),Tb=xe(wb),Eb=x({},tl,{relatedTarget:0}),Vo=xe(Eb),Mb=x({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ab=xe(Mb),kb=x({},wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Nb=xe(kb),Cb=x({},wa,{data:0}),Jd=xe(Cb),jb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Db={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"},Rb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ob(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rb[t])?!!e[t]:!1}function Lo(){return Ob}var zb=x({},tl,{key:function(t){if(t.key){var e=jb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ws(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Db[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lo,charCode:function(t){return t.type==="keypress"?ws(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ws(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_b=xe(zb),Vb=x({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=xe(Vb),Lb=x({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lo}),Bb=xe(Lb),Ub=x({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hb=xe(Ub),Yb=x({},Ms,{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}),qb=xe(Yb),Gb=x({},wa,{newState:0,oldState:0}),Xb=xe(Gb),Qb=[9,13,27,32],Bo=yn&&"CompositionEvent"in window,nl=null;yn&&"documentMode"in document&&(nl=document.documentMode);var Kb=yn&&"TextEvent"in window&&!nl,$d=yn&&(!Bo||nl&&8<nl&&11>=nl),Id=" ",th=!1;function eh(t,e){switch(t){case"keyup":return Qb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ii=!1;function Zb(t,e){switch(t){case"compositionend":return nh(e);case"keypress":return e.which!==32?null:(th=!0,Id);case"textInput":return t=e.data,t===Id&&th?null:t;default:return null}}function Pb(t,e){if(ii)return t==="compositionend"||!Bo&&eh(t,e)?(t=Zd(),Ss=Oo=Hn=null,ii=!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 $d&&e.locale!=="ko"?null:e.data;default:return null}}var Fb={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 ah(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Fb[t.type]:e==="textarea"}function ih(t,e,a,l){ni?ai?ai.push(l):ai=[l]:ni=l,e=mr(e,"onChange"),0<e.length&&(a=new Es("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var al=null,il=null;function Jb(t){H0(t,0)}function As(t){var e=Wi(t);if(Ud(e))return t}function lh(t,e){if(t==="change")return e}var sh=!1;if(yn){var Uo;if(yn){var Ho="oninput"in document;if(!Ho){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),Ho=typeof rh.oninput=="function"}Uo=Ho}else Uo=!1;sh=Uo&&(!document.documentMode||9<document.documentMode)}function oh(){al&&(al.detachEvent("onpropertychange",uh),il=al=null)}function uh(t){if(t.propertyName==="value"&&As(il)){var e=[];ih(e,il,t,jo(t)),Kd(Jb,e)}}function Wb(t,e,a){t==="focusin"?(oh(),al=e,il=a,al.attachEvent("onpropertychange",uh)):t==="focusout"&&oh()}function $b(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return As(il)}function Ib(t,e){if(t==="click")return As(e)}function t1(t,e){if(t==="input"||t==="change")return As(e)}function e1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:e1;function ll(t,e){if(Ne(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!yo.call(e,o)||!Ne(t[o],e[o]))return!1}return!0}function ch(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fh(t,e){var a=ch(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=ch(a)}}function dh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?dh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=xs(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=xs(t.document)}return e}function Yo(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 n1=yn&&"documentMode"in document&&11>=document.documentMode,li=null,qo=null,sl=null,Go=!1;function mh(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Go||li==null||li!==xs(l)||(l=li,"selectionStart"in l&&Yo(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}),sl&&ll(sl,l)||(sl=l,l=mr(qo,"onSelect"),0<l.length&&(e=new Es("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=li)))}function Ta(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var si={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Xo={},ph={};yn&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Ea(t){if(Xo[t])return Xo[t];if(!si[t])return t;var e=si[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in ph)return Xo[t]=e[a];return t}var gh=Ea("animationend"),yh=Ea("animationiteration"),vh=Ea("animationstart"),a1=Ea("transitionrun"),i1=Ea("transitionstart"),l1=Ea("transitioncancel"),xh=Ea("transitionend"),bh=new Map,Qo="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(" ");Qo.push("scrollEnd");function Je(t,e){bh.set(t,e),Sa(e,[t])}var ks=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)},Ue=[],ri=0,Ko=0;function Ns(){for(var t=ri,e=Ko=ri=0;e<t;){var a=Ue[e];Ue[e++]=null;var l=Ue[e];Ue[e++]=null;var o=Ue[e];Ue[e++]=null;var c=Ue[e];if(Ue[e++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&Sh(a,o,c)}}function Cs(t,e,a,l){Ue[ri++]=t,Ue[ri++]=e,Ue[ri++]=a,Ue[ri++]=l,Ko|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Zo(t,e,a,l){return Cs(t,e,a,l),js(t)}function Ma(t,e){return Cs(t,null,null,e),js(t)}function Sh(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-ke(a),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),c):null}function js(t){if(50<Nl)throw Nl=0,nc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var oi={};function s1(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 Ce(t,e,a,l){return new s1(t,e,a,l)}function Po(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vn(t,e){var a=t.alternate;return a===null?(a=Ce(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function wh(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ds(t,e,a,l,o,c){var p=0;if(l=t,typeof t=="function")Po(t)&&(p=1);else if(typeof t=="string")p=f2(t,a,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=Ce(31,a,e,o),t.elementType=W,t.lanes=c,t;case N:return Aa(a.children,o,c,e);case j:p=8,o|=24;break;case D:return t=Ce(12,a,e,o|2),t.elementType=D,t.lanes=c,t;case Q:return t=Ce(13,a,e,o),t.elementType=Q,t.lanes=c,t;case it:return t=Ce(19,a,e,o),t.elementType=it,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case L:p=10;break t;case H:p=9;break t;case X:p=11;break t;case F:p=14;break t;case Y:p=16,l=null;break t}p=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Ce(p,a,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Aa(t,e,a,l){return t=Ce(7,t,l,e),t.lanes=a,t}function Fo(t,e,a){return t=Ce(6,t,null,e),t.lanes=a,t}function Th(t){var e=Ce(18,null,null,0);return e.stateNode=t,e}function Jo(t,e,a){return e=Ce(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Eh=new WeakMap;function He(t,e){if(typeof t=="object"&&t!==null){var a=Eh.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Td(e)},Eh.set(t,e),e)}return{value:t,source:e,stack:Td(e)}}var ui=[],ci=0,Rs=null,rl=0,Ye=[],qe=0,Yn=null,an=1,ln="";function xn(t,e){ui[ci++]=rl,ui[ci++]=Rs,Rs=t,rl=e}function Mh(t,e,a){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Yn,Yn=t;var l=an;t=ln;var o=32-ke(l)-1;l&=~(1<<o),a+=1;var c=32-ke(e)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,an=1<<32-ke(e)+o|a<<o|l,ln=c+t}else an=1<<c|a<<o|l,ln=t}function Wo(t){t.return!==null&&(xn(t,1),Mh(t,1,0))}function $o(t){for(;t===Rs;)Rs=ui[--ci],ui[ci]=null,rl=ui[--ci],ui[ci]=null;for(;t===Yn;)Yn=Ye[--qe],Ye[qe]=null,ln=Ye[--qe],Ye[qe]=null,an=Ye[--qe],Ye[qe]=null}function Ah(t,e){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Yn,an=e.id,ln=e.overflow,Yn=t}var re=null,Bt=null,Mt=!1,qn=null,Ge=!1,Io=Error(r(519));function Gn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ol(He(e,t)),Io}function kh(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[se]=t,e[ve]=l,a){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(a=0;a<jl.length;a++)bt(jl[a],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),Hd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),qd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||X0(e.textContent,a)?(l.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),l.onScroll!=null&&bt("scroll",e),l.onScrollEnd!=null&&bt("scrollend",e),l.onClick!=null&&(e.onclick=gn),e=!0):e=!1,e||Gn(t,!0)}function Nh(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:re=re.return}}function fi(t){if(t!==re)return!1;if(!Mt)return Nh(t),Mt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||yc(t.type,t.memoizedProps)),a=!a),a&&Bt&&Gn(t),Nh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=I0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=I0(t)}else e===27?(e=Bt,aa(t.type)?(t=wc,wc=null,Bt=t):Bt=e):Bt=re?Qe(t.stateNode.nextSibling):null;return!0}function ka(){Bt=re=null,Mt=!1}function tu(){var t=qn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),qn=null),t}function ol(t){qn===null?qn=[t]:qn.push(t)}var eu=E(null),Na=null,bn=null;function Xn(t,e,a){P(eu,e._currentValue),e._currentValue=a}function Sn(t){t._currentValue=eu.current,q(eu)}function nu(t,e,a){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===a)break;t=t.return}}function au(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;t:for(;c!==null;){var b=c;c=o;for(var w=0;w<e.length;w++)if(b.context===e[w]){c.lanes|=a,b=c.alternate,b!==null&&(b.lanes|=a),nu(c.return,a,t),l||(p=null);break t}c=b.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),nu(p,a,t),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===t){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function di(t,e,a,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var b=o.type;Ne(o.pendingProps.value,p.value)||(t!==null?t.push(b):t=[b])}}else if(o===Et.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(_l):t=[_l])}o=o.return}t!==null&&au(e,t,a,l),e.flags|=262144}function Os(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ca(t){Na=t,bn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Ch(Na,t)}function zs(t,e){return Na===null&&Ca(t),Ch(t,e)}function Ch(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},bn===null){if(t===null)throw Error(r(308));bn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else bn=bn.next=e;return a}var r1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},o1=n.unstable_scheduleCallback,u1=n.unstable_NormalPriority,Ft={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iu(){return{controller:new r1,data:new Map,refCount:0}}function ul(t){t.refCount--,t.refCount===0&&o1(u1,function(){t.controller.abort()})}var cl=null,lu=0,hi=0,mi=null;function c1(t,e){if(cl===null){var a=cl=[];lu=0,hi=oc(),mi={status:"pending",value:void 0,then:function(l){a.push(l)}}}return lu++,e.then(jh,jh),e}function jh(){if(--lu===0&&cl!==null){mi!==null&&(mi.status="fulfilled");var t=cl;cl=null,hi=0,mi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function f1(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Dh=_.S;_.S=function(t,e){m0=Me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&c1(t,e),Dh!==null&&Dh(t,e)};var ja=E(null);function su(){var t=ja.current;return t!==null?t:Vt.pooledCache}function _s(t,e){e===null?P(ja,ja.current):P(ja,e.pool)}function Rh(){var t=su();return t===null?null:{parent:Ft._currentValue,pool:t}}var pi=Error(r(460)),ru=Error(r(474)),Vs=Error(r(542)),Ls={then:function(){}};function Oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function zh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(gn,gn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Vh(t),t;default:if(typeof e.status=="string")e.then(gn,gn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Vh(t),t}throw Ra=e,pi}}function Da(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ra=a,pi):a}}var Ra=null;function _h(){if(Ra===null)throw Error(r(459));var t=Ra;return Ra=null,t}function Vh(t){if(t===pi||t===Vs)throw Error(r(483))}var gi=null,fl=0;function Bs(t){var e=fl;return fl+=1,gi===null&&(gi=[]),zh(gi,t,e)}function dl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Us(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Lh(t){function e(C,M){if(t){var R=C.deletions;R===null?(C.deletions=[M],C.flags|=16):R.push(M)}}function a(C,M){if(!t)return null;for(;M!==null;)e(C,M),M=M.sibling;return null}function l(C){for(var M=new Map;C!==null;)C.key!==null?M.set(C.key,C):M.set(C.index,C),C=C.sibling;return M}function o(C,M){return C=vn(C,M),C.index=0,C.sibling=null,C}function c(C,M,R){return C.index=R,t?(R=C.alternate,R!==null?(R=R.index,R<M?(C.flags|=67108866,M):R):(C.flags|=67108866,M)):(C.flags|=1048576,M)}function p(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function b(C,M,R,U){return M===null||M.tag!==6?(M=Fo(R,C.mode,U),M.return=C,M):(M=o(M,R),M.return=C,M)}function w(C,M,R,U){var rt=R.type;return rt===N?B(C,M,R.props.children,U,R.key):M!==null&&(M.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Y&&Da(rt)===M.type)?(M=o(M,R.props),dl(M,R),M.return=C,M):(M=Ds(R.type,R.key,R.props,null,C.mode,U),dl(M,R),M.return=C,M)}function O(C,M,R,U){return M===null||M.tag!==4||M.stateNode.containerInfo!==R.containerInfo||M.stateNode.implementation!==R.implementation?(M=Jo(R,C.mode,U),M.return=C,M):(M=o(M,R.children||[]),M.return=C,M)}function B(C,M,R,U,rt){return M===null||M.tag!==7?(M=Aa(R,C.mode,U,rt),M.return=C,M):(M=o(M,R),M.return=C,M)}function G(C,M,R){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Fo(""+M,C.mode,R),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return R=Ds(M.type,M.key,M.props,null,C.mode,R),dl(R,M),R.return=C,R;case k:return M=Jo(M,C.mode,R),M.return=C,M;case Y:return M=Da(M),G(C,M,R)}if(vt(M)||gt(M))return M=Aa(M,C.mode,R,null),M.return=C,M;if(typeof M.then=="function")return G(C,Bs(M),R);if(M.$$typeof===L)return G(C,zs(C,M),R);Us(C,M)}return null}function z(C,M,R,U){var rt=M!==null?M.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return rt!==null?null:b(C,M,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return R.key===rt?w(C,M,R,U):null;case k:return R.key===rt?O(C,M,R,U):null;case Y:return R=Da(R),z(C,M,R,U)}if(vt(R)||gt(R))return rt!==null?null:B(C,M,R,U,null);if(typeof R.then=="function")return z(C,M,Bs(R),U);if(R.$$typeof===L)return z(C,M,zs(C,R),U);Us(C,R)}return null}function V(C,M,R,U,rt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(R)||null,b(M,C,""+U,rt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case T:return C=C.get(U.key===null?R:U.key)||null,w(M,C,U,rt);case k:return C=C.get(U.key===null?R:U.key)||null,O(M,C,U,rt);case Y:return U=Da(U),V(C,M,R,U,rt)}if(vt(U)||gt(U))return C=C.get(R)||null,B(M,C,U,rt,null);if(typeof U.then=="function")return V(C,M,R,Bs(U),rt);if(U.$$typeof===L)return V(C,M,R,zs(M,U),rt);Us(M,U)}return null}function I(C,M,R,U){for(var rt=null,At=null,lt=M,ht=M=0,Tt=null;lt!==null&&ht<R.length;ht++){lt.index>ht?(Tt=lt,lt=null):Tt=lt.sibling;var kt=z(C,lt,R[ht],U);if(kt===null){lt===null&&(lt=Tt);break}t&&lt&&kt.alternate===null&&e(C,lt),M=c(kt,M,ht),At===null?rt=kt:At.sibling=kt,At=kt,lt=Tt}if(ht===R.length)return a(C,lt),Mt&&xn(C,ht),rt;if(lt===null){for(;ht<R.length;ht++)lt=G(C,R[ht],U),lt!==null&&(M=c(lt,M,ht),At===null?rt=lt:At.sibling=lt,At=lt);return Mt&&xn(C,ht),rt}for(lt=l(lt);ht<R.length;ht++)Tt=V(lt,C,ht,R[ht],U),Tt!==null&&(t&&Tt.alternate!==null&&lt.delete(Tt.key===null?ht:Tt.key),M=c(Tt,M,ht),At===null?rt=Tt:At.sibling=Tt,At=Tt);return t&&lt.forEach(function(oa){return e(C,oa)}),Mt&&xn(C,ht),rt}function ut(C,M,R,U){if(R==null)throw Error(r(151));for(var rt=null,At=null,lt=M,ht=M=0,Tt=null,kt=R.next();lt!==null&&!kt.done;ht++,kt=R.next()){lt.index>ht?(Tt=lt,lt=null):Tt=lt.sibling;var oa=z(C,lt,kt.value,U);if(oa===null){lt===null&&(lt=Tt);break}t&&lt&&oa.alternate===null&&e(C,lt),M=c(oa,M,ht),At===null?rt=oa:At.sibling=oa,At=oa,lt=Tt}if(kt.done)return a(C,lt),Mt&&xn(C,ht),rt;if(lt===null){for(;!kt.done;ht++,kt=R.next())kt=G(C,kt.value,U),kt!==null&&(M=c(kt,M,ht),At===null?rt=kt:At.sibling=kt,At=kt);return Mt&&xn(C,ht),rt}for(lt=l(lt);!kt.done;ht++,kt=R.next())kt=V(lt,C,ht,kt.value,U),kt!==null&&(t&&kt.alternate!==null&&lt.delete(kt.key===null?ht:kt.key),M=c(kt,M,ht),At===null?rt=kt:At.sibling=kt,At=kt);return t&&lt.forEach(function(w2){return e(C,w2)}),Mt&&xn(C,ht),rt}function zt(C,M,R,U){if(typeof R=="object"&&R!==null&&R.type===N&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case T:t:{for(var rt=R.key;M!==null;){if(M.key===rt){if(rt=R.type,rt===N){if(M.tag===7){a(C,M.sibling),U=o(M,R.props.children),U.return=C,C=U;break t}}else if(M.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Y&&Da(rt)===M.type){a(C,M.sibling),U=o(M,R.props),dl(U,R),U.return=C,C=U;break t}a(C,M);break}else e(C,M);M=M.sibling}R.type===N?(U=Aa(R.props.children,C.mode,U,R.key),U.return=C,C=U):(U=Ds(R.type,R.key,R.props,null,C.mode,U),dl(U,R),U.return=C,C=U)}return p(C);case k:t:{for(rt=R.key;M!==null;){if(M.key===rt)if(M.tag===4&&M.stateNode.containerInfo===R.containerInfo&&M.stateNode.implementation===R.implementation){a(C,M.sibling),U=o(M,R.children||[]),U.return=C,C=U;break t}else{a(C,M);break}else e(C,M);M=M.sibling}U=Jo(R,C.mode,U),U.return=C,C=U}return p(C);case Y:return R=Da(R),zt(C,M,R,U)}if(vt(R))return I(C,M,R,U);if(gt(R)){if(rt=gt(R),typeof rt!="function")throw Error(r(150));return R=rt.call(R),ut(C,M,R,U)}if(typeof R.then=="function")return zt(C,M,Bs(R),U);if(R.$$typeof===L)return zt(C,M,zs(C,R),U);Us(C,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,M!==null&&M.tag===6?(a(C,M.sibling),U=o(M,R),U.return=C,C=U):(a(C,M),U=Fo(R,C.mode,U),U.return=C,C=U),p(C)):a(C,M)}return function(C,M,R,U){try{fl=0;var rt=zt(C,M,R,U);return gi=null,rt}catch(lt){if(lt===pi||lt===Vs)throw lt;var At=Ce(29,lt,null,C.mode);return At.lanes=U,At.return=C,At}finally{}}}var Oa=Lh(!0),Bh=Lh(!1),Qn=!1;function ou(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uu(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 Kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Nt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=js(t),Sh(t,null,a),e}return Cs(t,l,e,a),js(t)}function hl(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Cd(t,a)}}function cu(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=e:c=c.next=e}else o=c=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var fu=!1;function ml(){if(fu){var t=mi;if(t!==null)throw t}}function pl(t,e,a,l){fu=!1;var o=t.updateQueue;Qn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var w=b,O=w.next;w.next=null,p===null?c=O:p.next=O,p=w;var B=t.alternate;B!==null&&(B=B.updateQueue,b=B.lastBaseUpdate,b!==p&&(b===null?B.firstBaseUpdate=O:b.next=O,B.lastBaseUpdate=w))}if(c!==null){var G=o.baseState;p=0,B=O=w=null,b=c;do{var z=b.lane&-536870913,V=z!==b.lane;if(V?(wt&z)===z:(l&z)===z){z!==0&&z===hi&&(fu=!0),B!==null&&(B=B.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var I=t,ut=b;z=e;var zt=a;switch(ut.tag){case 1:if(I=ut.payload,typeof I=="function"){G=I.call(zt,G,z);break t}G=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ut.payload,z=typeof I=="function"?I.call(zt,G,z):I,z==null)break t;G=x({},G,z);break t;case 2:Qn=!0}}z=b.callback,z!==null&&(t.flags|=64,V&&(t.flags|=8192),V=o.callbacks,V===null?o.callbacks=[z]:V.push(z))}else V={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},B===null?(O=B=V,w=G):B=B.next=V,p|=z;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;V=b,b=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);B===null&&(w=G),o.baseState=w,o.firstBaseUpdate=O,o.lastBaseUpdate=B,c===null&&(o.shared.lanes=0),$n|=p,t.lanes=p,t.memoizedState=G}}function Uh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Hh(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Uh(a[t],e)}var yi=E(null),Hs=E(0);function Yh(t,e){t=jn,P(Hs,t),P(yi,e),jn=t|e.baseLanes}function du(){P(Hs,jn),P(yi,yi.current)}function hu(){jn=Hs.current,q(yi),q(Hs)}var je=E(null),Xe=null;function Pn(t){var e=t.alternate;P(Zt,Zt.current&1),P(je,t),Xe===null&&(e===null||yi.current!==null||e.memoizedState!==null)&&(Xe=t)}function mu(t){P(Zt,Zt.current),P(je,t),Xe===null&&(Xe=t)}function qh(t){t.tag===22?(P(Zt,Zt.current),P(je,t),Xe===null&&(Xe=t)):Fn()}function Fn(){P(Zt,Zt.current),P(je,je.current)}function De(t){q(je),Xe===t&&(Xe=null),q(Zt)}var Zt=E(0);function Ys(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||bc(a)||Sc(a)))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 wn=0,dt=null,Rt=null,Jt=null,qs=!1,vi=!1,za=!1,Gs=0,gl=0,xi=null,d1=0;function Xt(){throw Error(r(321))}function pu(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ne(t[a],e[a]))return!1;return!0}function gu(t,e,a,l,o,c){return wn=c,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?Mm:Du,za=!1,c=a(l,o),za=!1,vi&&(c=Xh(e,a,l,o)),Gh(t),c}function Gh(t){_.H=xl;var e=Rt!==null&&Rt.next!==null;if(wn=0,Jt=Rt=dt=null,qs=!1,gl=0,xi=null,e)throw Error(r(300));t===null||Wt||(t=t.dependencies,t!==null&&Os(t)&&(Wt=!0))}function Xh(t,e,a,l){dt=t;var o=0;do{if(vi&&(xi=null),gl=0,vi=!1,25<=o)throw Error(r(301));if(o+=1,Jt=Rt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=Am,c=e(a,l)}while(vi);return c}function h1(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?yl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(dt.flags|=1024),e}function yu(){var t=Gs!==0;return Gs=0,t}function vu(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function xu(t){if(qs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}qs=!1}wn=0,Jt=Rt=dt=null,vi=!1,gl=Gs=0,xi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?dt.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Pt(){if(Rt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Jt===null?dt.memoizedState:Jt.next;if(e!==null)Jt=e,Rt=t;else{if(t===null)throw dt.alternate===null?Error(r(467)):Error(r(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Jt===null?dt.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yl(t){var e=gl;return gl+=1,xi===null&&(xi=[]),t=zh(xi,t,e),e=dt,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?Mm:Du),t}function Qs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return yl(t);if(t.$$typeof===L)return oe(t)}throw Error(r(438,String(t)))}function bu(t){var e=null,a=dt.updateQueue;if(a!==null&&(e=a.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(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Xs(),dt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=tt;return e.index++,a}function Tn(t,e){return typeof e=="function"?e(t):e}function Ks(t){var e=Pt();return Su(e,Rt,t)}function Su(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var b=p=null,w=null,O=e,B=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(wt&G)===G:(wn&G)===G){var z=O.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===hi&&(B=!0);else if((wn&z)===z){O=O.next,z===hi&&(B=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},w===null?(b=w=G,p=c):w=w.next=G,dt.lanes|=z,$n|=z;G=O.action,za&&a(c,G),c=O.hasEagerState?O.eagerState:a(c,G)}else z={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},w===null?(b=w=z,p=c):w=w.next=z,dt.lanes|=G,$n|=G;O=O.next}while(O!==null&&O!==e);if(w===null?p=c:w.next=b,!Ne(c,t.memoizedState)&&(Wt=!0,B&&(a=mi,a!==null)))throw a;t.memoizedState=c,t.baseState=p,t.baseQueue=w,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function wu(t){var e=Pt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,c=e.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=t(c,p.action),p=p.next;while(p!==o);Ne(c,e.memoizedState)||(Wt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function Qh(t,e,a){var l=dt,o=Pt(),c=Mt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var p=!Ne((Rt||o).memoizedState,a);if(p&&(o.memoizedState=a,Wt=!0),o=o.queue,Mu(Ph.bind(null,l,o,t),[t]),o.getSnapshot!==e||p||Jt!==null&&Jt.memoizedState.tag&1){if(l.flags|=2048,bi(9,{destroy:void 0},Zh.bind(null,l,o,a,e),null),Vt===null)throw Error(r(349));c||(wn&127)!==0||Kh(l,e,a)}return a}function Kh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=dt.updateQueue,e===null?(e=Xs(),dt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Zh(t,e,a,l){e.value=a,e.getSnapshot=l,Fh(e)&&Jh(t)}function Ph(t,e,a){return a(function(){Fh(e)&&Jh(t)})}function Fh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ne(t,a)}catch{return!0}}function Jh(t){var e=Ma(t,2);e!==null&&Ee(e,t,2)}function Tu(t){var e=pe();if(typeof t=="function"){var a=t;if(t=a(),za){Bn(!0);try{a()}finally{Bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:t},e}function Wh(t,e,a,l){return t.baseState=a,Su(t,Rt,typeof l=="function"?l:Tn)}function m1(t,e,a,l,o){if(Fs(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};_.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,$h(e,c)):(c.next=a.next,e.pending=a.next=c)}}function $h(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=_.T,p={};_.T=p;try{var b=a(o,l),w=_.S;w!==null&&w(p,b),Ih(t,e,b)}catch(O){Eu(t,e,O)}finally{c!==null&&p.types!==null&&(c.types=p.types),_.T=c}}else try{c=a(o,l),Ih(t,e,c)}catch(O){Eu(t,e,O)}}function Ih(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){tm(t,e,l)},function(l){return Eu(t,e,l)}):tm(t,e,a)}function tm(t,e,a){e.status="fulfilled",e.value=a,em(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,$h(t,a)))}function Eu(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,em(e),e=e.next;while(e!==l)}t.action=null}function em(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function nm(t,e){return e}function am(t,e){if(Mt){var a=Vt.formState;if(a!==null){t:{var l=dt;if(Mt){if(Bt){e:{for(var o=Bt,c=Ge;o.nodeType!==8;){if(!c){o=null;break e}if(o=Qe(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Bt=Qe(o.nextSibling),l=o.data==="F!";break t}}Gn(l)}l=!1}l&&(e=a[0])}}return a=pe(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nm,lastRenderedState:e},a.queue=l,a=wm.bind(null,dt,l),l.dispatch=a,l=Tu(!1),c=ju.bind(null,dt,!1,l.queue),l=pe(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=m1.bind(null,dt,o,c,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function im(t){var e=Pt();return lm(e,Rt,t)}function lm(t,e,a){if(e=Su(t,e,nm)[0],t=Ks(Tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=yl(e)}catch(p){throw p===pi?Vs:p}else l=e;e=Pt();var o=e.queue,c=o.dispatch;return a!==e.memoizedState&&(dt.flags|=2048,bi(9,{destroy:void 0},p1.bind(null,o,a),null)),[l,c,t]}function p1(t,e){t.action=e}function sm(t){var e=Pt(),a=Rt;if(a!==null)return lm(e,a,t);Pt(),e=e.memoizedState,a=Pt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function bi(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=dt.updateQueue,e===null&&(e=Xs(),dt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function rm(){return Pt().memoizedState}function Zs(t,e,a,l){var o=pe();dt.flags|=t,o.memoizedState=bi(1|e,{destroy:void 0},a,l===void 0?null:l)}function Ps(t,e,a,l){var o=Pt();l=l===void 0?null:l;var c=o.memoizedState.inst;Rt!==null&&l!==null&&pu(l,Rt.memoizedState.deps)?o.memoizedState=bi(e,c,a,l):(dt.flags|=t,o.memoizedState=bi(1|e,c,a,l))}function om(t,e){Zs(8390656,8,t,e)}function Mu(t,e){Ps(2048,8,t,e)}function g1(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=Xs(),dt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function um(t){var e=Pt().memoizedState;return g1({ref:e,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function cm(t,e){return Ps(4,2,t,e)}function fm(t,e){return Ps(4,4,t,e)}function dm(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function hm(t,e,a){a=a!=null?a.concat([t]):null,Ps(4,4,dm.bind(null,e,t),a)}function Au(){}function mm(t,e){var a=Pt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&pu(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function pm(t,e){var a=Pt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&pu(e,l[1]))return l[0];if(l=t(),za){Bn(!0);try{t()}finally{Bn(!1)}}return a.memoizedState=[l,e],l}function ku(t,e,a){return a===void 0||(wn&1073741824)!==0&&(wt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=g0(),dt.lanes|=t,$n|=t,a)}function gm(t,e,a,l){return Ne(a,e)?a:yi.current!==null?(t=ku(t,a,l),Ne(t,e)||(Wt=!0),t):(wn&42)===0||(wn&1073741824)!==0&&(wt&261930)===0?(Wt=!0,t.memoizedState=a):(t=g0(),dt.lanes|=t,$n|=t,e)}function ym(t,e,a,l,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var p=_.T,b={};_.T=b,ju(t,!1,e,a);try{var w=o(),O=_.S;if(O!==null&&O(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var B=f1(w,l);vl(t,e,B,ze(t))}else vl(t,e,l,ze(t))}catch(G){vl(t,e,{then:function(){},status:"rejected",reason:G},ze())}finally{Z.p=c,p!==null&&b.types!==null&&(p.types=b.types),_.T=p}}function y1(){}function Nu(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=vm(t).queue;ym(t,o,e,J,a===null?y1:function(){return xm(t),a(l)})}function vm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:J},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function xm(t){var e=vm(t);e.next===null&&(e=t.alternate.memoizedState),vl(t,e.next.queue,{},ze())}function Cu(){return oe(_l)}function bm(){return Pt().memoizedState}function Sm(){return Pt().memoizedState}function v1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=ze();t=Kn(a);var l=Zn(e,t,a);l!==null&&(Ee(l,e,a),hl(l,e,a)),e={cache:iu()},t.payload=e;return}e=e.return}}function x1(t,e,a){var l=ze();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fs(t)?Tm(e,a):(a=Zo(t,e,a,l),a!==null&&(Ee(a,t,l),Em(a,e,l)))}function wm(t,e,a){var l=ze();vl(t,e,a,l)}function vl(t,e,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fs(t))Tm(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var p=e.lastRenderedState,b=c(p,a);if(o.hasEagerState=!0,o.eagerState=b,Ne(b,p))return Cs(t,e,o,0),Vt===null&&Ns(),!1}catch{}finally{}if(a=Zo(t,e,o,l),a!==null)return Ee(a,t,l),Em(a,e,l),!0}return!1}function ju(t,e,a,l){if(l={lane:2,revertLane:oc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Fs(t)){if(e)throw Error(r(479))}else e=Zo(t,a,l,2),e!==null&&Ee(e,t,2)}function Fs(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function Tm(t,e){vi=qs=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Em(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Cd(t,a)}}var xl={readContext:oe,use:Qs,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};xl.useEffectEvent=Xt;var Mm={readContext:oe,use:Qs,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:om,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Zs(4194308,4,dm.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Zs(4194308,4,t,e)},useInsertionEffect:function(t,e){Zs(4,2,t,e)},useMemo:function(t,e){var a=pe();e=e===void 0?null:e;var l=t();if(za){Bn(!0);try{t()}finally{Bn(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=pe();if(a!==void 0){var o=a(e);if(za){Bn(!0);try{a(e)}finally{Bn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=x1.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Tu(t);var e=t.queue,a=wm.bind(null,dt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Au,useDeferredValue:function(t,e){var a=pe();return ku(a,t,e)},useTransition:function(){var t=Tu(!1);return t=ym.bind(null,dt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=dt,o=pe();if(Mt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Vt===null)throw Error(r(349));(wt&127)!==0||Kh(l,e,a)}o.memoizedState=a;var c={value:a,getSnapshot:e};return o.queue=c,om(Ph.bind(null,l,c,t),[t]),l.flags|=2048,bi(9,{destroy:void 0},Zh.bind(null,l,c,a,e),null),a},useId:function(){var t=pe(),e=Vt.identifierPrefix;if(Mt){var a=ln,l=an;a=(l&~(1<<32-ke(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Gs++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=d1++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cu,useFormState:am,useActionState:am,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=ju.bind(null,dt,!0,a),a.dispatch=e,[t,e]},useMemoCache:bu,useCacheRefresh:function(){return pe().memoizedState=v1.bind(null,dt)},useEffectEvent:function(t){var e=pe(),a={impl:t};return e.memoizedState=a,function(){if((Nt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Du={readContext:oe,use:Qs,useCallback:mm,useContext:oe,useEffect:Mu,useImperativeHandle:hm,useInsertionEffect:cm,useLayoutEffect:fm,useMemo:pm,useReducer:Ks,useRef:rm,useState:function(){return Ks(Tn)},useDebugValue:Au,useDeferredValue:function(t,e){var a=Pt();return gm(a,Rt.memoizedState,t,e)},useTransition:function(){var t=Ks(Tn)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:yl(t),e]},useSyncExternalStore:Qh,useId:bm,useHostTransitionStatus:Cu,useFormState:im,useActionState:im,useOptimistic:function(t,e){var a=Pt();return Wh(a,Rt,t,e)},useMemoCache:bu,useCacheRefresh:Sm};Du.useEffectEvent=um;var Am={readContext:oe,use:Qs,useCallback:mm,useContext:oe,useEffect:Mu,useImperativeHandle:hm,useInsertionEffect:cm,useLayoutEffect:fm,useMemo:pm,useReducer:wu,useRef:rm,useState:function(){return wu(Tn)},useDebugValue:Au,useDeferredValue:function(t,e){var a=Pt();return Rt===null?ku(a,t,e):gm(a,Rt.memoizedState,t,e)},useTransition:function(){var t=wu(Tn)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:yl(t),e]},useSyncExternalStore:Qh,useId:bm,useHostTransitionStatus:Cu,useFormState:sm,useActionState:sm,useOptimistic:function(t,e){var a=Pt();return Rt!==null?Wh(a,Rt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:bu,useCacheRefresh:Sm};Am.useEffectEvent=um;function Ru(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:x({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Ou={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=ze(),o=Kn(l);o.payload=e,a!=null&&(o.callback=a),e=Zn(t,o,l),e!==null&&(Ee(e,t,l),hl(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=ze(),o=Kn(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=Zn(t,o,l),e!==null&&(Ee(e,t,l),hl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=ze(),l=Kn(a);l.tag=2,e!=null&&(l.callback=e),e=Zn(t,l,a),e!==null&&(Ee(e,t,a),hl(e,t,a))}};function km(t,e,a,l,o,c,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,p):e.prototype&&e.prototype.isPureReactComponent?!ll(a,l)||!ll(o,c):!0}function Nm(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&Ou.enqueueReplaceState(e,e.state,null)}function _a(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=x({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function Cm(t){ks(t)}function jm(t){console.error(t)}function Dm(t){ks(t)}function Js(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Rm(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function zu(t,e,a){return a=Kn(a),a.tag=3,a.payload={element:null},a.callback=function(){Js(t,e)},a}function Om(t){return t=Kn(t),t.tag=3,t}function zm(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){Rm(e,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){Rm(e,a,l),typeof o!="function"&&(In===null?In=new Set([this]):In.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function b1(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&di(e,a,o,!0),a=je.current,a!==null){switch(a.tag){case 31:case 13:return Xe===null?or():a.alternate===null&&Qt===0&&(Qt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Ls?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),lc(t,l,o)),!1;case 22:return a.flags|=65536,l===Ls?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),lc(t,l,o)),!1}throw Error(r(435,a.tag))}return lc(t,l,o),or(),!1}if(Mt)return e=je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==Io&&(t=Error(r(422),{cause:l}),ol(He(t,a)))):(l!==Io&&(e=Error(r(423),{cause:l}),ol(He(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=He(l,a),o=zu(t.stateNode,l,o),cu(t,o),Qt!==4&&(Qt=2)),!1;var c=Error(r(520),{cause:l});if(c=He(c,a),kl===null?kl=[c]:kl.push(c),Qt!==4&&(Qt=2),e===null)return!0;l=He(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=zu(a.stateNode,l,t),cu(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(In===null||!In.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Om(o),zm(o,t,a,l),cu(a,o),!1}a=a.return}while(a!==null);return!1}var _u=Error(r(461)),Wt=!1;function ue(t,e,a,l){e.child=t===null?Bh(e,null,a,l):Oa(e,t.child,a,l)}function _m(t,e,a,l,o){a=a.render;var c=e.ref;if("ref"in l){var p={};for(var b in l)b!=="ref"&&(p[b]=l[b])}else p=l;return Ca(e),l=gu(t,e,a,p,c,o),b=yu(),t!==null&&!Wt?(vu(t,e,o),En(t,e,o)):(Mt&&b&&Wo(e),e.flags|=1,ue(t,e,l,o),e.child)}function Vm(t,e,a,l,o){if(t===null){var c=a.type;return typeof c=="function"&&!Po(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,Lm(t,e,c,l,o)):(t=Ds(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Gu(t,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:ll,a(p,l)&&t.ref===e.ref)return En(t,e,o)}return e.flags|=1,t=vn(c,l),t.ref=e.ref,t.return=e,e.child=t}function Lm(t,e,a,l,o){if(t!==null){var c=t.memoizedProps;if(ll(c,l)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=l=c,Gu(t,o))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,En(t,e,o)}return Vu(t,e,a,l,o)}function Bm(t,e,a,l){var o=l.children,c=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(c=c!==null?c.baseLanes|a:a,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,e.child=null;return Um(t,e,c,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_s(e,c!==null?c.cachePool:null),c!==null?Yh(e,c):du(),qh(e);else return l=e.lanes=536870912,Um(t,e,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(_s(e,c.cachePool),Yh(e,c),Fn(),e.memoizedState=null):(t!==null&&_s(e,null),du(),Fn());return ue(t,e,o,a),e.child}function bl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Um(t,e,a,l,o){var c=su();return c=c===null?null:{parent:Ft._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&_s(e,null),du(),qh(e),t!==null&&di(t,e,l,!0),e.childLanes=o,null}function Ws(t,e){return e=Is({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Hm(t,e,a){return Oa(e,t.child,null,a),t=Ws(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function S1(t,e,a){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Mt){if(l.mode==="hidden")return t=Ws(e,l),e.lanes=536870912,bl(null,t);if(mu(e),(t=Bt)?(t=$0(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Yn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Th(t),a.return=e,e.child=a,re=e,Bt=null)):t=null,t===null)throw Gn(e);return e.lanes=536870912,null}return Ws(e,l)}var c=t.memoizedState;if(c!==null){var p=c.dehydrated;if(mu(e),o)if(e.flags&256)e.flags&=-257,e=Hm(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Wt||di(t,e,a,!1),o=(a&t.childLanes)!==0,Wt||o){if(l=Vt,l!==null&&(p=jd(l,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,Ma(t,p),Ee(l,t,p),_u;or(),e=Hm(t,e,a)}else t=c.treeContext,Bt=Qe(p.nextSibling),re=e,Mt=!0,qn=null,Ge=!1,t!==null&&Ah(e,t),e=Ws(e,l),e.flags|=4096;return e}return t=vn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $s(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Vu(t,e,a,l,o){return Ca(e),a=gu(t,e,a,l,void 0,o),l=yu(),t!==null&&!Wt?(vu(t,e,o),En(t,e,o)):(Mt&&l&&Wo(e),e.flags|=1,ue(t,e,a,o),e.child)}function Ym(t,e,a,l,o,c){return Ca(e),e.updateQueue=null,a=Xh(e,l,a,o),Gh(t),l=yu(),t!==null&&!Wt?(vu(t,e,c),En(t,e,c)):(Mt&&l&&Wo(e),e.flags|=1,ue(t,e,a,c),e.child)}function qm(t,e,a,l,o){if(Ca(e),e.stateNode===null){var c=oi,p=a.contextType;typeof p=="object"&&p!==null&&(c=oe(p)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ou,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},ou(e),p=a.contextType,c.context=typeof p=="object"&&p!==null?oe(p):oi,c.state=e.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Ru(e,a,p,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Ou.enqueueReplaceState(c,c.state,null),pl(e,l,c,o),ml(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var b=e.memoizedProps,w=_a(a,b);c.props=w;var O=c.context,B=a.contextType;p=oi,typeof B=="object"&&B!==null&&(p=oe(B));var G=a.getDerivedStateFromProps;B=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||O!==p)&&Nm(e,c,l,p),Qn=!1;var z=e.memoizedState;c.state=z,pl(e,l,c,o),ml(),O=e.memoizedState,b||z!==O||Qn?(typeof G=="function"&&(Ru(e,a,G,l),O=e.memoizedState),(w=Qn||km(e,a,w,l,z,O,p))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),c.props=l,c.state=O,c.context=p,l=w):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,uu(t,e),p=e.memoizedProps,B=_a(a,p),c.props=B,G=e.pendingProps,z=c.context,O=a.contextType,w=oi,typeof O=="object"&&O!==null&&(w=oe(O)),b=a.getDerivedStateFromProps,(O=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==G||z!==w)&&Nm(e,c,l,w),Qn=!1,z=e.memoizedState,c.state=z,pl(e,l,c,o),ml();var V=e.memoizedState;p!==G||z!==V||Qn||t!==null&&t.dependencies!==null&&Os(t.dependencies)?(typeof b=="function"&&(Ru(e,a,b,l),V=e.memoizedState),(B=Qn||km(e,a,B,l,z,V,w)||t!==null&&t.dependencies!==null&&Os(t.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,V,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,V,w)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=V),c.props=l,c.state=V,c.context=w,l=B):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,$s(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Oa(e,t.child,null,o),e.child=Oa(e,null,a,o)):ue(t,e,a,o),e.memoizedState=c.state,t=e.child):t=En(t,e,o),t}function Gm(t,e,a,l){return ka(),e.flags|=256,ue(t,e,a,l),e.child}var Lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bu(t){return{baseLanes:t,cachePool:Rh()}}function Uu(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Oe),t}function Xm(t,e,a){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,p;if((p=c)||(p=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),p&&(o=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(Mt){if(o?Pn(e):Fn(),(t=Bt)?(t=$0(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Yn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Th(t),a.return=e,e.child=a,re=e,Bt=null)):t=null,t===null)throw Gn(e);return Sc(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,o?(Fn(),o=e.mode,b=Is({mode:"hidden",children:b},o),l=Aa(l,o,a,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=Bu(a),l.childLanes=Uu(t,p,a),e.memoizedState=Lu,bl(null,l)):(Pn(e),Hu(e,b))}var w=t.memoizedState;if(w!==null&&(b=w.dehydrated,b!==null)){if(c)e.flags&256?(Pn(e),e.flags&=-257,e=Yu(t,e,a)):e.memoizedState!==null?(Fn(),e.child=t.child,e.flags|=128,e=null):(Fn(),b=l.fallback,o=e.mode,l=Is({mode:"visible",children:l.children},o),b=Aa(b,o,a,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,Oa(e,t.child,null,a),l=e.child,l.memoizedState=Bu(a),l.childLanes=Uu(t,p,a),e.memoizedState=Lu,e=bl(null,l));else if(Pn(e),Sc(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var O=p.dgst;p=O,l=Error(r(419)),l.stack="",l.digest=p,ol({value:l,source:null,stack:null}),e=Yu(t,e,a)}else if(Wt||di(t,e,a,!1),p=(a&t.childLanes)!==0,Wt||p){if(p=Vt,p!==null&&(l=jd(p,a),l!==0&&l!==w.retryLane))throw w.retryLane=l,Ma(t,l),Ee(p,t,l),_u;bc(b)||or(),e=Yu(t,e,a)}else bc(b)?(e.flags|=192,e.child=t.child,e=null):(t=w.treeContext,Bt=Qe(b.nextSibling),re=e,Mt=!0,qn=null,Ge=!1,t!==null&&Ah(e,t),e=Hu(e,l.children),e.flags|=4096);return e}return o?(Fn(),b=l.fallback,o=e.mode,w=t.child,O=w.sibling,l=vn(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,O!==null?b=vn(O,b):(b=Aa(b,o,a,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,bl(null,l),l=e.child,b=t.child.memoizedState,b===null?b=Bu(a):(o=b.cachePool,o!==null?(w=Ft._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Rh(),b={baseLanes:b.baseLanes|a,cachePool:o}),l.memoizedState=b,l.childLanes=Uu(t,p,a),e.memoizedState=Lu,bl(t.child,l)):(Pn(e),a=t.child,t=a.sibling,a=vn(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=a,e.memoizedState=null,a)}function Hu(t,e){return e=Is({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Is(t,e){return t=Ce(22,t,null,e),t.lanes=0,t}function Yu(t,e,a){return Oa(e,t.child,null,a),t=Hu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Qm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),nu(t.return,e,a)}function qu(t,e,a,l,o,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Km(t,e,a){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=Zt.current,b=(p&2)!==0;if(b?(p=p&1|2,e.flags|=128):p&=1,P(Zt,p),ue(t,e,l,a),l=Mt?rl:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qm(t,a,e);else if(t.tag===19)Qm(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Ys(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),qu(e,!1,o,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Ys(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}qu(e,!0,a,null,c,l);break;case"together":qu(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function En(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),$n|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(di(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=vn(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=vn(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Gu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Os(t)))}function w1(t,e,a){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),Xn(e,Ft,t.memoizedState.cache),ka();break;case 27:case 5:Vn(e);break;case 4:ae(e,e.stateNode.containerInfo);break;case 10:Xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,mu(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Pn(e),e.flags|=128,null):(a&e.child.childLanes)!==0?Xm(t,e,a):(Pn(e),t=En(t,e,a),t!==null?t.sibling:null);Pn(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(di(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return Km(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(Zt,Zt.current),l)break;return null;case 22:return e.lanes=0,Bm(t,e,a,e.pendingProps);case 24:Xn(e,Ft,t.memoizedState.cache)}return En(t,e,a)}function Zm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!Gu(t,a)&&(e.flags&128)===0)return Wt=!1,w1(t,e,a);Wt=(t.flags&131072)!==0}else Wt=!1,Mt&&(e.flags&1048576)!==0&&Mh(e,rl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Da(e.elementType),e.type=t,typeof t=="function")Po(t)?(l=_a(t,l),e.tag=1,e=qm(null,e,t,l,a)):(e.tag=0,e=Vu(null,e,t,l,a));else{if(t!=null){var o=t.$$typeof;if(o===X){e.tag=11,e=_m(null,e,t,l,a);break t}else if(o===F){e.tag=14,e=Vm(null,e,t,l,a);break t}}throw e=_t(t)||t,Error(r(306,e,""))}}return e;case 0:return Vu(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=_a(l,e.pendingProps),qm(t,e,l,o,a);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,uu(t,e),pl(e,l,null,a);var p=e.memoizedState;if(l=p.cache,Xn(e,Ft,l),l!==c.cache&&au(e,[Ft],a,!0),ml(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Gm(t,e,l,a);break t}else if(l!==o){o=He(Error(r(424)),e),ol(o),e=Gm(t,e,l,a);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(Bt=Qe(t.firstChild),re=e,Mt=!0,qn=null,Ge=!0,a=Bh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ka(),l===o){e=En(t,e,a);break t}ue(t,e,l,a)}e=e.child}return e;case 26:return $s(t,e),t===null?(a=ip(e.type,null,e.pendingProps,null))?e.memoizedState=a:Mt||(a=e.type,t=e.pendingProps,l=pr(ot.current).createElement(a),l[se]=e,l[ve]=t,ce(l,a,t),ie(l),e.stateNode=l):e.memoizedState=ip(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Vn(e),t===null&&Mt&&(l=e.stateNode=ep(e.type,e.pendingProps,ot.current),re=e,Ge=!0,o=Bt,aa(e.type)?(wc=o,Bt=Qe(l.firstChild)):Bt=o),ue(t,e,e.pendingProps.children,a),$s(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((o=l=Bt)&&(l=$1(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,re=e,Bt=Qe(l.firstChild),Ge=!1,o=!0):o=!1),o||Gn(e)),Vn(e),o=e.type,c=e.pendingProps,p=t!==null?t.memoizedProps:null,l=c.children,yc(o,c)?l=null:p!==null&&yc(o,p)&&(e.flags|=32),e.memoizedState!==null&&(o=gu(t,e,h1,null,null,a),_l._currentValue=o),$s(t,e),ue(t,e,l,a),e.child;case 6:return t===null&&Mt&&((t=a=Bt)&&(a=I1(a,e.pendingProps,Ge),a!==null?(e.stateNode=a,re=e,Bt=null,t=!0):t=!1),t||Gn(e)),null;case 13:return Xm(t,e,a);case 4:return ae(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Oa(e,null,l,a):ue(t,e,l,a),e.child;case 11:return _m(t,e,e.type,e.pendingProps,a);case 7:return ue(t,e,e.pendingProps,a),e.child;case 8:return ue(t,e,e.pendingProps.children,a),e.child;case 12:return ue(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Xn(e,e.type,l.value),ue(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Ca(e),o=oe(o),l=l(o),e.flags|=1,ue(t,e,l,a),e.child;case 14:return Vm(t,e,e.type,e.pendingProps,a);case 15:return Lm(t,e,e.type,e.pendingProps,a);case 19:return Km(t,e,a);case 31:return S1(t,e,a);case 22:return Bm(t,e,a,e.pendingProps);case 24:return Ca(e),l=oe(Ft),t===null?(o=su(),o===null&&(o=Vt,c=iu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),e.memoizedState={parent:l,cache:o},ou(e),Xn(e,Ft,o)):((t.lanes&a)!==0&&(uu(t,e),pl(e,null,null,a),ml()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Xn(e,Ft,l)):(l=c.cache,Xn(e,Ft,l),l!==o.cache&&au(e,[Ft],a,!0))),ue(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Mn(t){t.flags|=4}function Xu(t,e,a,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(b0())t.flags|=8192;else throw Ra=Ls,ru}else t.flags&=-16777217}function Pm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!up(e))if(b0())t.flags|=8192;else throw Ra=Ls,ru}function tr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?kd():536870912,t.lanes|=e,Ei|=e)}function Sl(t,e){if(!Mt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function T1(t,e,a){var l=e.pendingProps;switch($o(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Sn(Ft),pt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(fi(e)?Mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,tu())),Ut(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Mn(e),c!==null?(Ut(e),Pm(e,c)):(Ut(e),Xu(e,o,null,l,a))):c?c!==t.memoizedState?(Mn(e),Ut(e),Pm(e,c)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Mn(e),Ut(e),Xu(e,o,t,l,a)),null;case 27:if(mn(e),a=ot.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Mn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}t=$.current,fi(e)?kh(e):(t=ep(o,l,a),e.stateNode=t,Mn(e))}return Ut(e),null;case 5:if(mn(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Mn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}if(c=$.current,fi(e))kh(e);else{var p=pr(ot.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[se]=e,c[ve]=l;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=c;t:switch(ce(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Mn(e)}}return Ut(e),Xu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Mn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=ot.current,fi(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=re,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[se]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||X0(t.nodeValue,a)),t||Gn(e,!0)}else t=pr(t).createTextNode(l),t[se]=e,e.stateNode=t}return Ut(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=fi(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[se]=e}else ka(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else a=tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=fi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[se]=e}else ka(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),o=!1}else o=tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),tr(e,e.updateQueue),Ut(e),null);case 4:return pt(),t===null&&dc(e.stateNode.containerInfo),Ut(e),null;case 10:return Sn(e.type),Ut(e),null;case 19:if(q(Zt),l=e.memoizedState,l===null)return Ut(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Sl(l,!1);else{if(Qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Ys(t),c!==null){for(e.flags|=128,Sl(l,!1),t=c.updateQueue,e.updateQueue=t,tr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)wh(a,t),a=a.sibling;return P(Zt,Zt.current&1|2),Mt&&xn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Me()>lr&&(e.flags|=128,o=!0,Sl(l,!1),e.lanes=4194304)}else{if(!o)if(t=Ys(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,tr(e,t),Sl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Mt)return Ut(e),null}else 2*Me()-l.renderingStartTime>lr&&a!==536870912&&(e.flags|=128,o=!0,Sl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Me(),t.sibling=null,a=Zt.current,P(Zt,o?a&1|2:a&1),Mt&&xn(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return De(e),hu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),a=e.updateQueue,a!==null&&tr(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&q(ja),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Sn(Ft),Ut(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function E1(t,e){switch($o(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sn(Ft),pt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return mn(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(r(340));ka()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ka()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Zt),null;case 4:return pt(),null;case 10:return Sn(e.type),null;case 22:case 23:return De(e),hu(),t!==null&&q(ja),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sn(Ft),null;case 25:return null;default:return null}}function Fm(t,e){switch($o(e),e.tag){case 3:Sn(Ft),pt();break;case 26:case 27:case 5:mn(e);break;case 4:pt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:q(Zt);break;case 10:Sn(e.type);break;case 22:case 23:De(e),hu(),t!==null&&q(ja);break;case 24:Sn(Ft)}}function wl(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var c=a.create,p=a.inst;l=c(),p.destroy=l}a=a.next}while(a!==o)}}catch(b){jt(e,e.return,b)}}function Jn(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var p=l.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=e;var w=a,O=b;try{O()}catch(B){jt(o,w,B)}}}l=l.next}while(l!==c)}}catch(B){jt(e,e.return,B)}}function Jm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Hh(e,a)}catch(l){jt(t,t.return,l)}}}function Wm(t,e,a){a.props=_a(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){jt(t,e,l)}}function Tl(t,e){try{var a=t.ref;if(a!==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 a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){jt(t,e,o)}}function sn(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){jt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){jt(t,e,o)}else a.current=null}function $m(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){jt(t,t.return,o)}}function Qu(t,e,a){try{var l=t.stateNode;K1(l,t.type,a,e),l[ve]=e}catch(o){jt(t,t.return,o)}}function Im(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&aa(t.type)||t.tag===4}function Ku(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Im(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&&aa(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 Zu(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=gn));else if(l!==4&&(l===27&&aa(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Zu(t,e,a),t=t.sibling;t!==null;)Zu(t,e,a),t=t.sibling}function er(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&aa(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(er(t,e,a),t=t.sibling;t!==null;)er(t,e,a),t=t.sibling}function t0(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ce(e,l,a),e[se]=t,e[ve]=a}catch(c){jt(t,t.return,c)}}var An=!1,$t=!1,Pu=!1,e0=typeof WeakSet=="function"?WeakSet:Set,le=null;function M1(t,e){if(t=t.containerInfo,pc=wr,t=hh(t),Yo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var p=0,b=-1,w=-1,O=0,B=0,G=t,z=null;e:for(;;){for(var V;G!==a||o!==0&&G.nodeType!==3||(b=p+o),G!==c||l!==0&&G.nodeType!==3||(w=p+l),G.nodeType===3&&(p+=G.nodeValue.length),(V=G.firstChild)!==null;)z=G,G=V;for(;;){if(G===t)break e;if(z===a&&++O===o&&(b=p),z===c&&++B===l&&(w=p),(V=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=V}a=b===-1||w===-1?null:{start:b,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(gc={focusedElem:t,selectionRange:a},wr=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,c=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(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var I=_a(a.type,o);t=l.getSnapshotBeforeUpdate(I,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(ut){jt(a,a.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)xc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xc(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}}function n0(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Nn(t,a),l&4&&wl(5,a);break;case 1:if(Nn(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(p){jt(a,a.return,p)}else{var o=_a(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){jt(a,a.return,p)}}l&64&&Jm(a),l&512&&Tl(a,a.return);break;case 3:if(Nn(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Hh(t,e)}catch(p){jt(a,a.return,p)}}break;case 27:e===null&&l&4&&t0(a);case 26:case 5:Nn(t,a),e===null&&l&4&&$m(a),l&512&&Tl(a,a.return);break;case 12:Nn(t,a);break;case 31:Nn(t,a),l&4&&l0(t,a);break;case 13:Nn(t,a),l&4&&s0(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=z1.bind(null,a),t2(t,a))));break;case 22:if(l=a.memoizedState!==null||An,!l){e=e!==null&&e.memoizedState!==null||$t,o=An;var c=$t;An=l,($t=e)&&!c?Cn(t,a,(a.subtreeFlags&8772)!==0):Nn(t,a),An=o,$t=c}break;case 30:break;default:Nn(t,a)}}function a0(t){var e=t.alternate;e!==null&&(t.alternate=null,a0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Eo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,be=!1;function kn(t,e,a){for(a=a.child;a!==null;)i0(t,e,a),a=a.sibling}function i0(t,e,a){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(Zi,a)}catch{}switch(a.tag){case 26:$t||sn(a,e),kn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||sn(a,e);var l=Ht,o=be;aa(a.type)&&(Ht=a.stateNode,be=!1),kn(t,e,a),Rl(a.stateNode),Ht=l,be=o;break;case 5:$t||sn(a,e);case 6:if(l=Ht,o=be,Ht=null,kn(t,e,a),Ht=l,be=o,Ht!==null)if(be)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(a.stateNode)}catch(c){jt(a,e,c)}else try{Ht.removeChild(a.stateNode)}catch(c){jt(a,e,c)}break;case 18:Ht!==null&&(be?(t=Ht,J0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ri(t)):J0(Ht,a.stateNode));break;case 4:l=Ht,o=be,Ht=a.stateNode.containerInfo,be=!0,kn(t,e,a),Ht=l,be=o;break;case 0:case 11:case 14:case 15:Jn(2,a,e),$t||Jn(4,a,e),kn(t,e,a);break;case 1:$t||(sn(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Wm(a,e,l)),kn(t,e,a);break;case 21:kn(t,e,a);break;case 22:$t=(l=$t)||a.memoizedState!==null,kn(t,e,a),$t=l;break;default:kn(t,e,a)}}function l0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ri(t)}catch(a){jt(e,e.return,a)}}}function s0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ri(t)}catch(a){jt(e,e.return,a)}}function A1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new e0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new e0),e;default:throw Error(r(435,t.tag))}}function nr(t,e){var a=A1(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var o=_1.bind(null,t,l);l.then(o,o)}})}function Se(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=t,p=e,b=p;t:for(;b!==null;){switch(b.tag){case 27:if(aa(b.type)){Ht=b.stateNode,be=!1;break t}break;case 5:Ht=b.stateNode,be=!1;break t;case 3:case 4:Ht=b.stateNode.containerInfo,be=!0;break t}b=b.return}if(Ht===null)throw Error(r(160));i0(c,p,o),Ht=null,be=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)r0(e,t),e=e.sibling}var We=null;function r0(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),we(t),l&4&&(Jn(3,t,t.return),wl(3,t),Jn(5,t,t.return));break;case 1:Se(e,t),we(t),l&512&&($t||a===null||sn(a,a.return)),l&64&&An&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=We;if(Se(e,t),we(t),l&512&&($t||a===null||sn(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ji]||c[se]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),ce(c,l,a),c[se]=t,ie(c),l=c;break t;case"link":var p=rp("link","href",o).get(l+(a.href||""));if(p){for(var b=0;b<p.length;b++)if(c=p[b],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(b,1);break e}}c=o.createElement(l),ce(c,l,a),o.head.appendChild(c);break;case"meta":if(p=rp("meta","content",o).get(l+(a.content||""))){for(b=0;b<p.length;b++)if(c=p[b],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(b,1);break e}}c=o.createElement(l),ce(c,l,a),o.head.appendChild(c);break;default:throw Error(r(468,l))}c[se]=t,ie(c),l=c}t.stateNode=l}else op(o,t.type,t.stateNode);else t.stateNode=sp(o,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?op(o,t.type,t.stateNode):sp(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Qu(t,t.memoizedProps,a.memoizedProps)}break;case 27:Se(e,t),we(t),l&512&&($t||a===null||sn(a,a.return)),a!==null&&l&4&&Qu(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Se(e,t),we(t),l&512&&($t||a===null||sn(a,a.return)),t.flags&32){o=t.stateNode;try{ei(o,"")}catch(I){jt(t,t.return,I)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,Qu(t,o,a!==null?a.memoizedProps:o)),l&1024&&(Pu=!0);break;case 6:if(Se(e,t),we(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(I){jt(t,t.return,I)}}break;case 3:if(vr=null,o=We,We=gr(e.containerInfo),Se(e,t),We=o,we(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ri(e.containerInfo)}catch(I){jt(t,t.return,I)}Pu&&(Pu=!1,o0(t));break;case 4:l=We,We=gr(t.stateNode.containerInfo),Se(e,t),we(t),We=l;break;case 12:Se(e,t),we(t);break;case 31:Se(e,t),we(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,nr(t,l)));break;case 13:Se(e,t),we(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ir=Me()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,nr(t,l)));break;case 22:o=t.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,O=An,B=$t;if(An=O||o,$t=B||w,Se(e,t),$t=B,An=O,we(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||w||An||$t||Va(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){w=a=e;try{if(c=w.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=w.stateNode;var G=w.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(I){jt(w,w.return,I)}}}else if(e.tag===6){if(a===null){w=e;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(I){jt(w,w.return,I)}}}else if(e.tag===18){if(a===null){w=e;try{var V=w.stateNode;o?W0(V,!0):W0(w.stateNode,!1)}catch(I){jt(w,w.return,I)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,nr(t,a))));break;case 19:Se(e,t),we(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,nr(t,l)));break;case 30:break;case 21:break;default:Se(e,t),we(t)}}function we(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(Im(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=Ku(t);er(t,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(ei(p,""),a.flags&=-33);var b=Ku(t);er(t,b,p);break;case 3:case 4:var w=a.stateNode.containerInfo,O=Ku(t);Zu(t,O,w);break;default:throw Error(r(161))}}catch(B){jt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function o0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;o0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Nn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)n0(t,e.alternate,e),e=e.sibling}function Va(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Jn(4,e,e.return),Va(e);break;case 1:sn(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&Wm(e,e.return,a),Va(e);break;case 27:Rl(e.stateNode);case 26:case 5:sn(e,e.return),Va(e);break;case 22:e.memoizedState===null&&Va(e);break;case 30:Va(e);break;default:Va(e)}t=t.sibling}}function Cn(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,p=c.flags;switch(c.tag){case 0:case 11:case 15:Cn(o,c,a),wl(4,c);break;case 1:if(Cn(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){jt(l,l.return,O)}if(l=c,o=l.updateQueue,o!==null){var b=l.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Uh(w[o],b)}catch(O){jt(l,l.return,O)}}a&&p&64&&Jm(c),Tl(c,c.return);break;case 27:t0(c);case 26:case 5:Cn(o,c,a),a&&l===null&&p&4&&$m(c),Tl(c,c.return);break;case 12:Cn(o,c,a);break;case 31:Cn(o,c,a),a&&p&4&&l0(o,c);break;case 13:Cn(o,c,a),a&&p&4&&s0(o,c);break;case 22:c.memoizedState===null&&Cn(o,c,a),Tl(c,c.return);break;case 30:break;default:Cn(o,c,a)}e=e.sibling}}function Fu(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&ul(a))}function Ju(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ul(t))}function $e(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)u0(t,e,a,l),e=e.sibling}function u0(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,a,l),o&2048&&wl(9,e);break;case 1:$e(t,e,a,l);break;case 3:$e(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ul(t)));break;case 12:if(o&2048){$e(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,p=c.id,b=c.onPostCommit;typeof b=="function"&&b(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(w){jt(e,e.return,w)}}else $e(t,e,a,l);break;case 31:$e(t,e,a,l);break;case 13:$e(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,p=e.alternate,e.memoizedState!==null?c._visibility&2?$e(t,e,a,l):El(t,e):c._visibility&2?$e(t,e,a,l):(c._visibility|=2,Si(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Fu(p,e);break;case 24:$e(t,e,a,l),o&2048&&Ju(e.alternate,e);break;default:$e(t,e,a,l)}}function Si(t,e,a,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,p=e,b=a,w=l,O=p.flags;switch(p.tag){case 0:case 11:case 15:Si(c,p,b,w,o),wl(8,p);break;case 23:break;case 22:var B=p.stateNode;p.memoizedState!==null?B._visibility&2?Si(c,p,b,w,o):El(c,p):(B._visibility|=2,Si(c,p,b,w,o)),o&&O&2048&&Fu(p.alternate,p);break;case 24:Si(c,p,b,w,o),o&&O&2048&&Ju(p.alternate,p);break;default:Si(c,p,b,w,o)}e=e.sibling}}function El(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:El(a,l),o&2048&&Fu(l.alternate,l);break;case 24:El(a,l),o&2048&&Ju(l.alternate,l);break;default:El(a,l)}e=e.sibling}}var Ml=8192;function wi(t,e,a){if(t.subtreeFlags&Ml)for(t=t.child;t!==null;)c0(t,e,a),t=t.sibling}function c0(t,e,a){switch(t.tag){case 26:wi(t,e,a),t.flags&Ml&&t.memoizedState!==null&&d2(a,We,t.memoizedState,t.memoizedProps);break;case 5:wi(t,e,a);break;case 3:case 4:var l=We;We=gr(t.stateNode.containerInfo),wi(t,e,a),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ml,Ml=16777216,wi(t,e,a),Ml=l):wi(t,e,a));break;default:wi(t,e,a)}}function f0(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 Al(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];le=l,h0(l,t)}f0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)d0(t),t=t.sibling}function d0(t){switch(t.tag){case 0:case 11:case 15:Al(t),t.flags&2048&&Jn(9,t,t.return);break;case 3:Al(t);break;case 12:Al(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ar(t)):Al(t);break;default:Al(t)}}function ar(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];le=l,h0(l,t)}f0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Jn(8,e,e.return),ar(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,ar(e));break;default:ar(e)}t=t.sibling}}function h0(t,e){for(;le!==null;){var a=le;switch(a.tag){case 0:case 11:case 15:Jn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ul(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,le=l;else t:for(a=t;le!==null;){l=le;var o=l.sibling,c=l.return;if(a0(l),l===a){le=null;break t}if(o!==null){o.return=c,le=o;break t}le=c}}}var k1={getCacheForType:function(t){var e=oe(Ft),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return oe(Ft).controller.signal}},N1=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Vt=null,xt=null,wt=0,Ct=0,Re=null,Wn=!1,Ti=!1,Wu=!1,jn=0,Qt=0,$n=0,La=0,$u=0,Oe=0,Ei=0,kl=null,Te=null,Iu=!1,ir=0,m0=0,lr=1/0,sr=null,In=null,te=0,ta=null,Mi=null,Dn=0,tc=0,ec=null,p0=null,Nl=0,nc=null;function ze(){return(Nt&2)!==0&&wt!==0?wt&-wt:_.T!==null?oc():Dd()}function g0(){if(Oe===0)if((wt&536870912)===0||Mt){var t=ms;ms<<=1,(ms&3932160)===0&&(ms=262144),Oe=t}else Oe=536870912;return t=je.current,t!==null&&(t.flags|=32),Oe}function Ee(t,e,a){(t===Vt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(Ai(t,0),ea(t,wt,Oe,!1)),Fi(t,a),((Nt&2)===0||t!==Vt)&&(t===Vt&&((Nt&2)===0&&(La|=a),Qt===4&&ea(t,wt,Oe,!1)),rn(t))}function y0(t,e,a){if((Nt&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Pi(t,e),o=l?D1(t,e):ic(t,e,!0),c=l;do{if(o===0){Ti&&!l&&ea(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!C1(a)){o=ic(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var b=t;o=kl;var w=b.current.memoizedState.isDehydrated;if(w&&(Ai(b,p).flags|=256),p=ic(b,p,!1),p!==2){if(Wu&&!w){b.errorRecoveryDisabledLanes|=c,La|=c,o=4;break t}c=Te,Te=o,c!==null&&(Te===null?Te=c:Te.push.apply(Te,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ai(t,0),ea(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ea(l,e,Oe,!Wn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=ir+300-Me(),10<o)){if(ea(l,e,Oe,!Wn),gs(l,0,!0)!==0)break t;Dn=e,l.timeoutHandle=P0(v0.bind(null,l,a,Te,sr,Iu,e,Oe,La,Ei,Wn,c,"Throttled",-0,0),o);break t}v0(l,a,Te,sr,Iu,e,Oe,La,Ei,Wn,c,null,-0,0)}}break}while(!0);rn(t)}function v0(t,e,a,l,o,c,p,b,w,O,B,G,z,V){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:gn},c0(e,c,G);var I=(c&62914560)===c?ir-Me():(c&4194048)===c?m0-Me():0;if(I=h2(G,I),I!==null){Dn=c,t.cancelPendingCommit=I(A0.bind(null,t,e,c,a,l,o,p,b,w,B,G,null,z,V)),ea(t,c,p,!O);return}}A0(t,e,c,a,l,o,p,b,w)}function C1(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!Ne(c(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 ea(t,e,a,l){e&=~$u,e&=~La,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-ke(o),p=1<<c;l[c]=-1,o&=~p}a!==0&&Nd(t,a,e)}function rr(){return(Nt&6)===0?(Cl(0),!1):!0}function ac(){if(xt!==null){if(Ct===0)var t=xt.return;else t=xt,bn=Na=null,xu(t),gi=null,fl=0,t=xt;for(;t!==null;)Fm(t.alternate,t),t=t.return;xt=null}}function Ai(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,F1(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Dn=0,ac(),Vt=t,xt=a=vn(t.current,null),wt=e,Ct=0,Re=null,Wn=!1,Ti=Pi(t,e),Wu=!1,Ei=Oe=$u=La=$n=Qt=0,Te=kl=null,Iu=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-ke(l),c=1<<o;e|=t[o],l&=~c}return jn=e,Ns(),a}function x0(t,e){dt=null,_.H=xl,e===pi||e===Vs?(e=_h(),Ct=3):e===ru?(e=_h(),Ct=4):Ct=e===_u?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,xt===null&&(Qt=1,Js(t,He(e,t.current)))}function b0(){var t=je.current;return t===null?!0:(wt&4194048)===wt?Xe===null:(wt&62914560)===wt||(wt&536870912)!==0?t===Xe:!1}function S0(){var t=_.H;return _.H=xl,t===null?xl:t}function w0(){var t=_.A;return _.A=k1,t}function or(){Qt=4,Wn||(wt&4194048)!==wt&&je.current!==null||(Ti=!0),($n&134217727)===0&&(La&134217727)===0||Vt===null||ea(Vt,wt,Oe,!1)}function ic(t,e,a){var l=Nt;Nt|=2;var o=S0(),c=w0();(Vt!==t||wt!==e)&&(sr=null,Ai(t,e)),e=!1;var p=Qt;t:do try{if(Ct!==0&&xt!==null){var b=xt,w=Re;switch(Ct){case 8:ac(),p=6;break t;case 3:case 2:case 9:case 6:je.current===null&&(e=!0);var O=Ct;if(Ct=0,Re=null,ki(t,b,w,O),a&&Ti){p=0;break t}break;default:O=Ct,Ct=0,Re=null,ki(t,b,w,O)}}j1(),p=Qt;break}catch(B){x0(t,B)}while(!0);return e&&t.shellSuspendCounter++,bn=Na=null,Nt=l,_.H=o,_.A=c,xt===null&&(Vt=null,wt=0,Ns()),p}function j1(){for(;xt!==null;)T0(xt)}function D1(t,e){var a=Nt;Nt|=2;var l=S0(),o=w0();Vt!==t||wt!==e?(sr=null,lr=Me()+500,Ai(t,e)):Ti=Pi(t,e);t:do try{if(Ct!==0&&xt!==null){e=xt;var c=Re;e:switch(Ct){case 1:Ct=0,Re=null,ki(t,e,c,1);break;case 2:case 9:if(Oh(c)){Ct=0,Re=null,E0(e);break}e=function(){Ct!==2&&Ct!==9||Vt!==t||(Ct=7),rn(t)},c.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Oh(c)?(Ct=0,Re=null,E0(e)):(Ct=0,Re=null,ki(t,e,c,7));break;case 5:var p=null;switch(xt.tag){case 26:p=xt.memoizedState;case 5:case 27:var b=xt;if(p?up(p):b.stateNode.complete){Ct=0,Re=null;var w=b.sibling;if(w!==null)xt=w;else{var O=b.return;O!==null?(xt=O,ur(O)):xt=null}break e}}Ct=0,Re=null,ki(t,e,c,5);break;case 6:Ct=0,Re=null,ki(t,e,c,6);break;case 8:ac(),Qt=6;break t;default:throw Error(r(462))}}R1();break}catch(B){x0(t,B)}while(!0);return bn=Na=null,_.H=l,_.A=o,Nt=a,xt!==null?0:(Vt=null,wt=0,Ns(),Qt)}function R1(){for(;xt!==null&&!eb();)T0(xt)}function T0(t){var e=Zm(t.alternate,t,jn);t.memoizedProps=t.pendingProps,e===null?ur(t):xt=e}function E0(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Ym(a,e,e.pendingProps,e.type,void 0,wt);break;case 11:e=Ym(a,e,e.pendingProps,e.type.render,e.ref,wt);break;case 5:xu(e);default:Fm(a,e),e=xt=wh(e,jn),e=Zm(a,e,jn)}t.memoizedProps=t.pendingProps,e===null?ur(t):xt=e}function ki(t,e,a,l){bn=Na=null,xu(e),gi=null,fl=0;var o=e.return;try{if(b1(t,o,e,a,wt)){Qt=1,Js(t,He(a,t.current)),xt=null;return}}catch(c){if(o!==null)throw xt=o,c;Qt=1,Js(t,He(a,t.current)),xt=null;return}e.flags&32768?(Mt||l===1?t=!0:Ti||(wt&536870912)!==0?t=!1:(Wn=t=!0,(l===2||l===9||l===3||l===6)&&(l=je.current,l!==null&&l.tag===13&&(l.flags|=16384))),M0(e,t)):ur(e)}function ur(t){var e=t;do{if((e.flags&32768)!==0){M0(e,Wn);return}t=e.return;var a=T1(e.alternate,e,jn);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Qt===0&&(Qt=5)}function M0(t,e){do{var a=E1(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);Qt=6,xt=null}function A0(t,e,a,l,o,c,p,b,w){t.cancelPendingCommit=null;do cr();while(te!==0);if((Nt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=Ko,fb(t,a,c,p,b,w),t===Vt&&(xt=Vt=null,wt=0),Mi=e,ta=t,Dn=a,tc=c,ec=o,p0=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,V1(ds,function(){return D0(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,o=Z.p,Z.p=2,p=Nt,Nt|=4;try{M1(t,e,a)}finally{Nt=p,Z.p=o,_.T=l}}te=1,k0(),N0(),C0()}}function k0(){if(te===1){te=0;var t=ta,e=Mi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=Z.p;Z.p=2;var o=Nt;Nt|=4;try{r0(e,t);var c=gc,p=hh(t.containerInfo),b=c.focusedElem,w=c.selectionRange;if(p!==b&&b&&b.ownerDocument&&dh(b.ownerDocument.documentElement,b)){if(w!==null&&Yo(b)){var O=w.start,B=w.end;if(B===void 0&&(B=O),"selectionStart"in b)b.selectionStart=O,b.selectionEnd=Math.min(B,b.value.length);else{var G=b.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var V=z.getSelection(),I=b.textContent.length,ut=Math.min(w.start,I),zt=w.end===void 0?ut:Math.min(w.end,I);!V.extend&&ut>zt&&(p=zt,zt=ut,ut=p);var C=fh(b,ut),M=fh(b,zt);if(C&&M&&(V.rangeCount!==1||V.anchorNode!==C.node||V.anchorOffset!==C.offset||V.focusNode!==M.node||V.focusOffset!==M.offset)){var R=G.createRange();R.setStart(C.node,C.offset),V.removeAllRanges(),ut>zt?(V.addRange(R),V.extend(M.node,M.offset)):(R.setEnd(M.node,M.offset),V.addRange(R))}}}}for(G=[],V=b;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var U=G[b];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}wr=!!pc,gc=pc=null}finally{Nt=o,Z.p=l,_.T=a}}t.current=e,te=2}}function N0(){if(te===2){te=0;var t=ta,e=Mi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=Z.p;Z.p=2;var o=Nt;Nt|=4;try{n0(t,e.alternate,e)}finally{Nt=o,Z.p=l,_.T=a}}te=3}}function C0(){if(te===4||te===3){te=0,nb();var t=ta,e=Mi,a=Dn,l=p0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Mi=ta=null,j0(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(In=null),wo(a),e=e.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(Zi,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=_.T,o=Z.p,Z.p=2,_.T=null;try{for(var c=t.onRecoverableError,p=0;p<l.length;p++){var b=l[p];c(b.value,{componentStack:b.stack})}}finally{_.T=e,Z.p=o}}(Dn&3)!==0&&cr(),rn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===nc?Nl++:(Nl=0,nc=t):Nl=0,Cl(0)}}function j0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ul(e)))}function cr(){return k0(),N0(),C0(),D0()}function D0(){if(te!==5)return!1;var t=ta,e=tc;tc=0;var a=wo(Dn),l=_.T,o=Z.p;try{Z.p=32>a?32:a,_.T=null,a=ec,ec=null;var c=ta,p=Dn;if(te=0,Mi=ta=null,Dn=0,(Nt&6)!==0)throw Error(r(331));var b=Nt;if(Nt|=4,d0(c.current),u0(c,c.current,p,a),Nt=b,Cl(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Zi,c)}catch{}return!0}finally{Z.p=o,_.T=l,j0(t,e)}}function R0(t,e,a){e=He(a,e),e=zu(t.stateNode,e,2),t=Zn(t,e,2),t!==null&&(Fi(t,2),rn(t))}function jt(t,e,a){if(t.tag===3)R0(t,t,a);else for(;e!==null;){if(e.tag===3){R0(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(In===null||!In.has(l))){t=He(a,t),a=Om(2),l=Zn(e,a,2),l!==null&&(zm(a,l,e,t),Fi(l,2),rn(l));break}}e=e.return}}function lc(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new N1;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(Wu=!0,o.add(a),t=O1.bind(null,t,e,a),e.then(t,t))}function O1(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Vt===t&&(wt&a)===a&&(Qt===4||Qt===3&&(wt&62914560)===wt&&300>Me()-ir?(Nt&2)===0&&Ai(t,0):$u|=a,Ei===wt&&(Ei=0)),rn(t)}function O0(t,e){e===0&&(e=kd()),t=Ma(t,e),t!==null&&(Fi(t,e),rn(t))}function z1(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),O0(t,a)}function _1(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),O0(t,a)}function V1(t,e){return vo(t,e)}var fr=null,Ni=null,sc=!1,dr=!1,rc=!1,na=0;function rn(t){t!==Ni&&t.next===null&&(Ni===null?fr=Ni=t:Ni=Ni.next=t),dr=!0,sc||(sc=!0,B1())}function Cl(t,e){if(!rc&&dr){rc=!0;do for(var a=!1,l=fr;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-ke(42|t)+1)-1,c&=o&~(p&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,L0(l,c))}else c=wt,c=gs(l,l===Vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Pi(l,c)||(a=!0,L0(l,c));l=l.next}while(a);rc=!1}}function L1(){z0()}function z0(){dr=sc=!1;var t=0;na!==0&&P1()&&(t=na);for(var e=Me(),a=null,l=fr;l!==null;){var o=l.next,c=_0(l,e);c===0?(l.next=null,a===null?fr=o:a.next=o,o===null&&(Ni=a)):(a=l,(t!==0||(c&3)!==0)&&(dr=!0)),l=o}te!==0&&te!==5||Cl(t),na!==0&&(na=0)}function _0(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var p=31-ke(c),b=1<<p,w=o[p];w===-1?((b&a)===0||(b&l)!==0)&&(o[p]=cb(b,e)):w<=e&&(t.expiredLanes|=b),c&=~b}if(e=Vt,a=wt,a=gs(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&xo(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Pi(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&xo(l),wo(a)){case 2:case 8:a=Md;break;case 32:a=ds;break;case 268435456:a=Ad;break;default:a=ds}return l=V0.bind(null,t),a=vo(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&xo(l),t.callbackPriority=2,t.callbackNode=null,2}function V0(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(cr()&&t.callbackNode!==a)return null;var l=wt;return l=gs(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(y0(t,l,e),_0(t,Me()),t.callbackNode!=null&&t.callbackNode===a?V0.bind(null,t):null)}function L0(t,e){if(cr())return null;y0(t,e,!0)}function B1(){J1(function(){(Nt&6)!==0?vo(Ed,L1):z0()})}function oc(){if(na===0){var t=hi;t===0&&(t=hs,hs<<=1,(hs&261888)===0&&(hs=256)),na=t}return na}function B0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:bs(""+t)}function U0(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function U1(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var c=B0((o[ve]||null).action),p=l.submitter;p&&(e=(e=p[ve]||null)?B0(e.formAction):p.getAttribute("formAction"),e!==null&&(c=e,p=null));var b=new Es("action","action",null,l,o);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(na!==0){var w=p?U0(o,p):new FormData(o);Nu(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(b.preventDefault(),w=p?U0(o,p):new FormData(o),Nu(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var uc=0;uc<Qo.length;uc++){var cc=Qo[uc],H1=cc.toLowerCase(),Y1=cc[0].toUpperCase()+cc.slice(1);Je(H1,"on"+Y1)}Je(gh,"onAnimationEnd"),Je(yh,"onAnimationIteration"),Je(vh,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(a1,"onTransitionRun"),Je(i1,"onTransitionStart"),Je(l1,"onTransitionCancel"),Je(xh,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("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 jl="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(" "),q1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jl));function H0(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var p=l.length-1;0<=p;p--){var b=l[p],w=b.instance,O=b.currentTarget;if(b=b.listener,w!==c&&o.isPropagationStopped())break t;c=b,o.currentTarget=O;try{c(o)}catch(B){ks(B)}o.currentTarget=null,c=w}else for(p=0;p<l.length;p++){if(b=l[p],w=b.instance,O=b.currentTarget,b=b.listener,w!==c&&o.isPropagationStopped())break t;c=b,o.currentTarget=O;try{c(o)}catch(B){ks(B)}o.currentTarget=null,c=w}}}}function bt(t,e){var a=e[To];a===void 0&&(a=e[To]=new Set);var l=t+"__bubble";a.has(l)||(Y0(e,t,2,!1),a.add(l))}function fc(t,e,a){var l=0;e&&(l|=4),Y0(a,t,l,e)}var hr="_reactListening"+Math.random().toString(36).slice(2);function dc(t){if(!t[hr]){t[hr]=!0,zd.forEach(function(a){a!=="selectionchange"&&(q1.has(a)||fc(a,!1,t),fc(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hr]||(e[hr]=!0,fc("selectionchange",!1,e))}}function Y0(t,e,a,l){switch(gp(e)){case 2:var o=g2;break;case 8:o=y2;break;default:o=kc}a=o.bind(null,e,a,t),o=void 0,!Ro||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function hc(t,e,a,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var b=l.stateNode.containerInfo;if(b===o)break;if(p===4)for(p=l.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;b!==null;){if(p=Ja(b),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){l=c=p;continue t}b=b.parentNode}}l=l.return}Kd(function(){var O=c,B=jo(a),G=[];t:{var z=bh.get(t);if(z!==void 0){var V=Es,I=t;switch(t){case"keypress":if(ws(a)===0)break t;case"keydown":case"keyup":V=_b;break;case"focusin":I="focus",V=Vo;break;case"focusout":I="blur",V=Vo;break;case"beforeblur":case"afterblur":V=Vo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Tb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Bb;break;case gh:case yh:case vh:V=Ab;break;case xh:V=Hb;break;case"scroll":case"scrollend":V=Sb;break;case"wheel":V=qb;break;case"copy":case"cut":case"paste":V=Nb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Wd;break;case"toggle":case"beforetoggle":V=Xb}var ut=(e&4)!==0,zt=!ut&&(t==="scroll"||t==="scrollend"),C=ut?z!==null?z+"Capture":null:z;ut=[];for(var M=O,R;M!==null;){var U=M;if(R=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||R===null||C===null||(U=$i(M,C),U!=null&&ut.push(Dl(M,U,R))),zt)break;M=M.return}0<ut.length&&(z=new V(z,I,null,a,B),G.push({event:z,listeners:ut}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",z&&a!==Co&&(I=a.relatedTarget||a.fromElement)&&(Ja(I)||I[Fa]))break t;if((V||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,V?(I=a.relatedTarget||a.toElement,V=O,I=I?Ja(I):null,I!==null&&(zt=f(I),ut=I.tag,I!==zt||ut!==5&&ut!==27&&ut!==6)&&(I=null)):(V=null,I=O),V!==I)){if(ut=Fd,U="onMouseLeave",C="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(ut=Wd,U="onPointerLeave",C="onPointerEnter",M="pointer"),zt=V==null?z:Wi(V),R=I==null?z:Wi(I),z=new ut(U,M+"leave",V,a,B),z.target=zt,z.relatedTarget=R,U=null,Ja(B)===O&&(ut=new ut(C,M+"enter",I,a,B),ut.target=R,ut.relatedTarget=zt,U=ut),zt=U,V&&I)e:{for(ut=G1,C=V,M=I,R=0,U=C;U;U=ut(U))R++;U=0;for(var rt=M;rt;rt=ut(rt))U++;for(;0<R-U;)C=ut(C),R--;for(;0<U-R;)M=ut(M),U--;for(;R--;){if(C===M||M!==null&&C===M.alternate){ut=C;break e}C=ut(C),M=ut(M)}ut=null}else ut=null;V!==null&&q0(G,z,V,ut,!1),I!==null&&zt!==null&&q0(G,zt,I,ut,!0)}}t:{if(z=O?Wi(O):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var At=lh;else if(ah(z))if(sh)At=t1;else{At=$b;var lt=Wb}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&No(O.elementType)&&(At=lh):At=Ib;if(At&&(At=At(t,O))){ih(G,At,a,B);break t}lt&&lt(t,z,O),t==="focusout"&&O&&z.type==="number"&&O.memoizedProps.value!=null&&ko(z,"number",z.value)}switch(lt=O?Wi(O):window,t){case"focusin":(ah(lt)||lt.contentEditable==="true")&&(li=lt,qo=O,sl=null);break;case"focusout":sl=qo=li=null;break;case"mousedown":Go=!0;break;case"contextmenu":case"mouseup":case"dragend":Go=!1,mh(G,a,B);break;case"selectionchange":if(n1)break;case"keydown":case"keyup":mh(G,a,B)}var ht;if(Bo)t:{switch(t){case"compositionstart":var Tt="onCompositionStart";break t;case"compositionend":Tt="onCompositionEnd";break t;case"compositionupdate":Tt="onCompositionUpdate";break t}Tt=void 0}else ii?eh(t,a)&&(Tt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Tt="onCompositionStart");Tt&&($d&&a.locale!=="ko"&&(ii||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&ii&&(ht=Zd()):(Hn=B,Oo="value"in Hn?Hn.value:Hn.textContent,ii=!0)),lt=mr(O,Tt),0<lt.length&&(Tt=new Jd(Tt,t,null,a,B),G.push({event:Tt,listeners:lt}),ht?Tt.data=ht:(ht=nh(a),ht!==null&&(Tt.data=ht)))),(ht=Kb?Zb(t,a):Pb(t,a))&&(Tt=mr(O,"onBeforeInput"),0<Tt.length&&(lt=new Jd("onBeforeInput","beforeinput",null,a,B),G.push({event:lt,listeners:Tt}),lt.data=ht)),U1(G,t,O,a,B)}H0(G,e)})}function Dl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function mr(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$i(t,a),o!=null&&l.unshift(Dl(t,o,c)),o=$i(t,e),o!=null&&l.push(Dl(t,o,c))),t.tag===3)return l;t=t.return}return[]}function G1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function q0(t,e,a,l,o){for(var c=e._reactName,p=[];a!==null&&a!==l;){var b=a,w=b.alternate,O=b.stateNode;if(b=b.tag,w!==null&&w===l)break;b!==5&&b!==26&&b!==27||O===null||(w=O,o?(O=$i(a,c),O!=null&&p.unshift(Dl(a,O,w))):o||(O=$i(a,c),O!=null&&p.push(Dl(a,O,w)))),a=a.return}p.length!==0&&t.push({event:e,listeners:p})}var X1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function G0(t){return(typeof t=="string"?t:""+t).replace(X1,`
`).replace(Q1,"")}function X0(t,e){return e=G0(e),G0(t)===e}function Ot(t,e,a,l,o,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ei(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ei(t,""+l);break;case"className":vs(t,"class",l);break;case"tabIndex":vs(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vs(t,a,l);break;case"style":Xd(t,l,c);break;case"data":if(e!=="object"){vs(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=bs(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(e!=="input"&&Ot(t,e,"name",o.name,o,null),Ot(t,e,"formEncType",o.formEncType,o,null),Ot(t,e,"formMethod",o.formMethod,o,null),Ot(t,e,"formTarget",o.formTarget,o,null)):(Ot(t,e,"encType",o.encType,o,null),Ot(t,e,"method",o.method,o,null),Ot(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=bs(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=gn);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}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}a=bs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);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(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":bt("beforetoggle",t),bt("toggle",t),ys(t,"popover",l);break;case"xlinkActuate":pn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":pn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":pn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":pn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":pn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":pn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":pn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":pn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":pn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ys(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=xb.get(a)||a,ys(t,a,l))}}function mc(t,e,a,l,o,c){switch(a){case"style":Xd(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?ei(t,l):(typeof l=="number"||typeof l=="bigint")&&ei(t,""+l);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_d.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),c=t[ve]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):ys(t,a,l)}}}function ce(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,c,p,a,null)}}o&&Ot(t,e,"srcSet",a.srcSet,a,null),l&&Ot(t,e,"src",a.src,a,null);return;case"input":bt("invalid",t);var b=c=p=o=null,w=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var B=a[l];if(B!=null)switch(l){case"name":o=B;break;case"type":p=B;break;case"checked":w=B;break;case"defaultChecked":O=B;break;case"value":c=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:Ot(t,e,l,B,a,null)}}Hd(t,c,b,w,O,p,o,!1);return;case"select":bt("invalid",t),l=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":p=b;break;case"multiple":l=b;default:Ot(t,e,o,b,a,null)}e=c,a=p,t.multiple=!!l,e!=null?ti(t,!!l,e,!1):a!=null&&ti(t,!!l,a,!0);return;case"textarea":bt("invalid",t),c=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(b=a[p],b!=null))switch(p){case"value":l=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Ot(t,e,p,b,a,null)}qd(t,l,o,c);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,w,l,a,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(l=0;l<jl.length;l++)bt(jl[l],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("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(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,O,l,a,null)}return;default:if(No(e)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&mc(t,e,B,l,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null&&Ot(t,e,b,l,a,null))}function K1(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,b=null,w=null,O=null,B=null;for(V in a){var G=a[V];if(a.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":w=G;default:l.hasOwnProperty(V)||Ot(t,e,V,null,l,G)}}for(var z in l){var V=l[z];if(G=a[z],l.hasOwnProperty(z)&&(V!=null||G!=null))switch(z){case"type":c=V;break;case"name":o=V;break;case"checked":O=V;break;case"defaultChecked":B=V;break;case"value":p=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:V!==G&&Ot(t,e,z,V,l,G)}}Ao(t,p,b,w,O,B,c,o);return;case"select":V=p=b=z=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":V=w;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,w)}for(o in l)if(c=l[o],w=a[o],l.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":z=c;break;case"defaultValue":b=c;break;case"multiple":p=c;default:c!==w&&Ot(t,e,o,c,l,w)}e=b,a=p,l=V,z!=null?ti(t,!!a,z,!1):!!l!=!!a&&(e!=null?ti(t,!!a,e,!0):ti(t,!!a,a?[]:"",!1));return;case"textarea":V=z=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ot(t,e,b,null,l,o)}for(p in l)if(o=l[p],c=a[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Ot(t,e,p,o,l,c)}Yd(t,z,V);return;case"option":for(var I in a)if(z=a[I],a.hasOwnProperty(I)&&z!=null&&!l.hasOwnProperty(I))switch(I){case"selected":t.selected=!1;break;default:Ot(t,e,I,null,l,z)}for(w in l)if(z=l[w],V=a[w],l.hasOwnProperty(w)&&z!==V&&(z!=null||V!=null))switch(w){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ot(t,e,w,z,l,V)}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 ut in a)z=a[ut],a.hasOwnProperty(ut)&&z!=null&&!l.hasOwnProperty(ut)&&Ot(t,e,ut,null,l,z);for(O in l)if(z=l[O],V=a[O],l.hasOwnProperty(O)&&z!==V&&(z!=null||V!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:Ot(t,e,O,z,l,V)}return;default:if(No(e)){for(var zt in a)z=a[zt],a.hasOwnProperty(zt)&&z!==void 0&&!l.hasOwnProperty(zt)&&mc(t,e,zt,void 0,l,z);for(B in l)z=l[B],V=a[B],!l.hasOwnProperty(B)||z===V||z===void 0&&V===void 0||mc(t,e,B,z,l,V);return}}for(var C in a)z=a[C],a.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Ot(t,e,C,null,l,z);for(G in l)z=l[G],V=a[G],!l.hasOwnProperty(G)||z===V||z==null&&V==null||Ot(t,e,G,z,l,V)}function Q0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],c=o.transferSize,p=o.initiatorType,b=o.duration;if(c&&b&&Q0(p)){for(p=0,b=o.responseEnd,l+=1;l<a.length;l++){var w=a[l],O=w.startTime;if(O>b)break;var B=w.transferSize,G=w.initiatorType;B&&Q0(G)&&(w=w.responseEnd,p+=B*(w<b?1:(b-O)/(w-O)))}if(--l,e+=8*(c+p)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var pc=null,gc=null;function pr(t){return t.nodeType===9?t:t.ownerDocument}function K0(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 Z0(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 yc(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 vc=null;function P1(){var t=window.event;return t&&t.type==="popstate"?t===vc?!1:(vc=t,!0):(vc=null,!1)}var P0=typeof setTimeout=="function"?setTimeout:void 0,F1=typeof clearTimeout=="function"?clearTimeout:void 0,F0=typeof Promise=="function"?Promise:void 0,J1=typeof queueMicrotask=="function"?queueMicrotask:typeof F0<"u"?function(t){return F0.resolve(null).then(t).catch(W1)}:P0;function W1(t){setTimeout(function(){throw t})}function aa(t){return t==="head"}function J0(t,e){var a=e,l=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(o),Ri(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Rl(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Rl(a);for(var c=a.firstChild;c;){var p=c.nextSibling,b=c.nodeName;c[Ji]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&Rl(t.ownerDocument.body);a=o}while(a);Ri(e)}function W0(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function xc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":xc(a),Eo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function $1(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ji])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Qe(t.nextSibling),t===null)break}return null}function I1(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Qe(t.nextSibling),t===null))return null;return t}function $0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Qe(t.nextSibling),t===null))return null;return t}function bc(t){return t.data==="$?"||t.data==="$~"}function Sc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function t2(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Qe(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 wc=null;function I0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Qe(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function tp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function ep(t,e,a){switch(e=pr(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Rl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Eo(t)}var Ke=new Map,np=new Set;function gr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Rn=Z.d;Z.d={f:e2,r:n2,D:a2,C:i2,L:l2,m:s2,X:o2,S:r2,M:u2};function e2(){var t=Rn.f(),e=rr();return t||e}function n2(t){var e=Wa(t);e!==null&&e.tag===5&&e.type==="form"?xm(e):Rn.r(t)}var Ci=typeof document>"u"?null:document;function ap(t,e,a){var l=Ci;if(l&&typeof e=="string"&&e){var o=Be(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),np.has(o)||(np.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),ce(e,"link",t),ie(e),l.head.appendChild(e)))}}function a2(t){Rn.D(t),ap("dns-prefetch",t,null)}function i2(t,e){Rn.C(t,e),ap("preconnect",t,e)}function l2(t,e,a){Rn.L(t,e,a);var l=Ci;if(l&&t&&e){var o='link[rel="preload"][as="'+Be(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Be(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Be(a.imageSizes)+'"]')):o+='[href="'+Be(t)+'"]';var c=o;switch(e){case"style":c=ji(t);break;case"script":c=Di(t)}Ke.has(c)||(t=x({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Ke.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Ol(c))||e==="script"&&l.querySelector(zl(c))||(e=l.createElement("link"),ce(e,"link",t),ie(e),l.head.appendChild(e)))}}function s2(t,e){Rn.m(t,e);var a=Ci;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Be(l)+'"][href="'+Be(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Di(t)}if(!Ke.has(c)&&(t=x({rel:"modulepreload",href:t},e),Ke.set(c,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zl(c)))return}l=a.createElement("link"),ce(l,"link",t),ie(l),a.head.appendChild(l)}}}function r2(t,e,a){Rn.S(t,e,a);var l=Ci;if(l&&t){var o=$a(l).hoistableStyles,c=ji(t);e=e||"default";var p=o.get(c);if(!p){var b={loading:0,preload:null};if(p=l.querySelector(Ol(c)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Ke.get(c))&&Tc(t,a);var w=p=l.createElement("link");ie(w),ce(w,"link",t),w._p=new Promise(function(O,B){w.onload=O,w.onerror=B}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,yr(p,e,l)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(c,p)}}}function o2(t,e){Rn.X(t,e);var a=Ci;if(a&&t){var l=$a(a).hoistableScripts,o=Di(t),c=l.get(o);c||(c=a.querySelector(zl(o)),c||(t=x({src:t,async:!0},e),(e=Ke.get(o))&&Ec(t,e),c=a.createElement("script"),ie(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function u2(t,e){Rn.M(t,e);var a=Ci;if(a&&t){var l=$a(a).hoistableScripts,o=Di(t),c=l.get(o);c||(c=a.querySelector(zl(o)),c||(t=x({src:t,async:!0,type:"module"},e),(e=Ke.get(o))&&Ec(t,e),c=a.createElement("script"),ie(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function ip(t,e,a,l){var o=(o=ot.current)?gr(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ji(a.href),a=$a(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ji(a.href);var c=$a(o).hoistableStyles,p=c.get(t);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,p),(c=o.querySelector(Ol(t)))&&!c._p&&(p.instance=c,p.state.loading=5),Ke.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ke.set(t,a),c||c2(o,t,a,p.state))),e&&l===null)throw Error(r(528,""));return p}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Di(a),a=$a(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ji(t){return'href="'+Be(t)+'"'}function Ol(t){return'link[rel="stylesheet"]['+t+"]"}function lp(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function c2(t,e,a,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}),ce(e,"link",a),ie(e),t.head.appendChild(e))}function Di(t){return'[src="'+Be(t)+'"]'}function zl(t){return"script[async]"+t}function sp(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Be(a.href)+'"]');if(l)return e.instance=l,ie(l),l;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ie(l),ce(l,"style",o),yr(l,a.precedence,t),e.instance=l;case"stylesheet":o=ji(a.href);var c=t.querySelector(Ol(o));if(c)return e.state.loading|=4,e.instance=c,ie(c),c;l=lp(a),(o=Ke.get(o))&&Tc(l,o),c=(t.ownerDocument||t).createElement("link"),ie(c);var p=c;return p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),ce(c,"link",l),e.state.loading|=4,yr(c,a.precedence,t),e.instance=c;case"script":return c=Di(a.src),(o=t.querySelector(zl(c)))?(e.instance=o,ie(o),o):(l=a,(o=Ke.get(c))&&(l=x({},a),Ec(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),ie(o),ce(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,yr(l,a.precedence,t));return e.instance}function yr(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var b=l[p];if(b.dataset.precedence===e)c=b;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Tc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ec(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vr=null;function rp(t,e,a){if(vr===null){var l=new Map,o=vr=new Map;o.set(a,l)}else o=vr,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var c=a[o];if(!(c[Ji]||c[se]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(e)||"";p=t+p;var b=l.get(p);b?b.push(c):l.set(p,[c])}}return l}function op(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function f2(t,e,a){if(a===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 up(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d2(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ji(l.href),c=e.querySelector(Ol(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=xr.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,ie(c);return}c=e.ownerDocument||e,l=lp(l),(o=Ke.get(o))&&Tc(l,o),c=c.createElement("link"),ie(c);var p=c;p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),ce(c,"link",l),a.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=xr.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Mc=0;function h2(t,e){return t.stylesheets&&t.count===0&&Sr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Sr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Mc===0&&(Mc=62500*Z1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Sr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Mc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function xr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var br=null;function Sr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,br=new Map,e.forEach(m2,t),br=null,xr.call(t))}function m2(t,e){if(!(e.state.loading&4)){var a=br.get(t);if(a)var l=a.get(null);else{a=new Map,br.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=e.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||l,c===l&&a.set(null,o),a.set(p,o),this.count++,l=xr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var _l={$$typeof:L,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function p2(t,e,a,l,o,c,p,b,w){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=bo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.hiddenUpdates=bo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function cp(t,e,a,l,o,c,p,b,w,O,B,G){return t=new p2(t,e,a,p,w,O,B,G,b),e=1,c===!0&&(e|=24),c=Ce(3,null,null,e),t.current=c,c.stateNode=t,e=iu(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},ou(c),t}function fp(t){return t?(t=oi,t):oi}function dp(t,e,a,l,o,c){o=fp(o),l.context===null?l.context=o:l.pendingContext=o,l=Kn(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Zn(t,l,e),a!==null&&(Ee(a,t,e),hl(a,t,e))}function hp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Ac(t,e){hp(t,e),(t=t.alternate)&&hp(t,e)}function mp(t){if(t.tag===13||t.tag===31){var e=Ma(t,67108864);e!==null&&Ee(e,t,67108864),Ac(t,67108864)}}function pp(t){if(t.tag===13||t.tag===31){var e=ze();e=So(e);var a=Ma(t,e);a!==null&&Ee(a,t,e),Ac(t,e)}}var wr=!0;function g2(t,e,a,l){var o=_.T;_.T=null;var c=Z.p;try{Z.p=2,kc(t,e,a,l)}finally{Z.p=c,_.T=o}}function y2(t,e,a,l){var o=_.T;_.T=null;var c=Z.p;try{Z.p=8,kc(t,e,a,l)}finally{Z.p=c,_.T=o}}function kc(t,e,a,l){if(wr){var o=Nc(l);if(o===null)hc(t,e,l,Tr,a),yp(t,l);else if(x2(o,t,e,a,l))l.stopPropagation();else if(yp(t,l),e&4&&-1<v2.indexOf(t)){for(;o!==null;){var c=Wa(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=ba(c.pendingLanes);if(p!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var w=1<<31-ke(p);b.entanglements[1]|=w,p&=~w}rn(c),(Nt&6)===0&&(lr=Me()+500,Cl(0))}}break;case 31:case 13:b=Ma(c,2),b!==null&&Ee(b,c,2),rr(),Ac(c,2)}if(c=Nc(l),c===null&&hc(t,e,l,Tr,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else hc(t,e,l,null,a)}}function Nc(t){return t=jo(t),Cc(t)}var Tr=null;function Cc(t){if(Tr=null,t=Ja(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=d(e),t!==null)return t;t=null}else if(a===31){if(t=h(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Tr=t,null}function gp(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(ab()){case Ed:return 2;case Md:return 8;case ds:case ib:return 32;case Ad:return 268435456;default:return 32}default:return 32}}var jc=!1,ia=null,la=null,sa=null,Vl=new Map,Ll=new Map,ra=[],v2="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 yp(t,e){switch(t){case"focusin":case"focusout":ia=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Vl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ll.delete(e.pointerId)}}function Bl(t,e,a,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=Wa(e),e!==null&&mp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function x2(t,e,a,l,o){switch(e){case"focusin":return ia=Bl(ia,t,e,a,l,o),!0;case"dragenter":return la=Bl(la,t,e,a,l,o),!0;case"mouseover":return sa=Bl(sa,t,e,a,l,o),!0;case"pointerover":var c=o.pointerId;return Vl.set(c,Bl(Vl.get(c)||null,t,e,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Ll.set(c,Bl(Ll.get(c)||null,t,e,a,l,o)),!0}return!1}function vp(t){var e=Ja(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=d(a),e!==null){t.blockedOn=e,Rd(t.priority,function(){pp(a)});return}}else if(e===31){if(e=h(a),e!==null){t.blockedOn=e,Rd(t.priority,function(){pp(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Er(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Nc(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Co=l,a.target.dispatchEvent(l),Co=null}else return e=Wa(a),e!==null&&mp(e),t.blockedOn=a,!1;e.shift()}return!0}function xp(t,e,a){Er(t)&&a.delete(e)}function b2(){jc=!1,ia!==null&&Er(ia)&&(ia=null),la!==null&&Er(la)&&(la=null),sa!==null&&Er(sa)&&(sa=null),Vl.forEach(xp),Ll.forEach(xp)}function Mr(t,e){t.blockedOn===e&&(t.blockedOn=null,jc||(jc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,b2)))}var Ar=null;function bp(t){Ar!==t&&(Ar=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ar===t&&(Ar=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Cc(l||a)===null)continue;break}var c=Wa(a);c!==null&&(t.splice(e,3),e-=3,Nu(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ri(t){function e(w){return Mr(w,t)}ia!==null&&Mr(ia,t),la!==null&&Mr(la,t),sa!==null&&Mr(sa,t),Vl.forEach(e),Ll.forEach(e);for(var a=0;a<ra.length;a++){var l=ra[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ra.length&&(a=ra[0],a.blockedOn===null);)vp(a),a.blockedOn===null&&ra.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],p=o[ve]||null;if(typeof c=="function")p||bp(a);else if(p){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[ve]||null)b=p.formAction;else if(Cc(o)!==null)continue}else b=p.action;typeof b=="function"?a[l+1]=b:(a.splice(l,3),l-=3),bp(a)}}}function Sp(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Dc(t){this._internalRoot=t}kr.prototype.render=Dc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=ze();dp(a,l,t,e,null,null)},kr.prototype.unmount=Dc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;dp(t.current,2,null,t,null,null),rr(),e[Fa]=null}};function kr(t){this._internalRoot=t}kr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dd();t={blockedOn:null,target:t,priority:e};for(var a=0;a<ra.length&&e!==0&&e<ra[a].priority;a++);ra.splice(a,0,t),a===0&&vp(t)}};var wp=i.version;if(wp!=="19.2.4")throw Error(r(527,wp,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var S2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{Zi=Nr.inject(S2),Ae=Nr}catch{}}return Hl.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=Cm,c=jm,p=Dm;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=cp(t,1,!1,null,null,a,l,null,o,c,p,Sp),t[Fa]=e.current,dc(t),new Dc(e)},Hl.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",c=Cm,p=jm,b=Dm,w=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),e=cp(t,1,!0,e,a??null,l,o,w,c,p,b,Sp),e.context=fp(null),a=e.current,l=ze(),l=So(l),o=Kn(l),o.callback=null,Zn(a,o,l),a=l,e.current.lanes=a,Fi(e,a),rn(e),t[Fa]=e.current,dc(t),new kr(e)},Hl.version="19.2.4",Hl}var Rp;function D2(){if(Rp)return zc.exports;Rp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),zc.exports=j2(),zc.exports}var R2=D2();/**
* react-router v7.13.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Op="popstate";function zp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function O2(n={}){function i(r,u){var g;let f=(g=u.state)==null?void 0:g.masked,{pathname:d,search:h,hash:m}=f||r.location;return of("",{pathname:d,search:h,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,u){return typeof u=="string"?u:$l(u)}return _2(i,s,null,n)}function Gt(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function fn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function z2(){return Math.random().toString(36).substring(2,10)}function _p(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function of(n,i,s=null,r,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?qi(i):i,state:s,key:i&&i.key||r||z2(),unstable_mask:u}}function $l({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function qi(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function _2(n,i,s,r={}){let{window:u=document.defaultView,v5Compat:f=!1}=r,d=u.history,h="POP",m=null,g=v();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function v(){return(d.state||{idx:null}).idx}function x(){h="POP";let j=v(),D=j==null?null:j-g;g=j,m&&m({action:h,location:N.location,delta:D})}function S(j,D){h="PUSH";let H=zp(j)?j:of(N.location,j,D);g=v()+1;let L=_p(H,g),X=N.createHref(H.unstable_mask||H);try{d.pushState(L,"",X)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(X)}f&&m&&m({action:h,location:N.location,delta:1})}function T(j,D){h="REPLACE";let H=zp(j)?j:of(N.location,j,D);g=v();let L=_p(H,g),X=N.createHref(H.unstable_mask||H);d.replaceState(L,"",X),f&&m&&m({action:h,location:N.location,delta:0})}function k(j){return V2(j)}let N={get action(){return h},get location(){return n(u,d)},listen(j){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(Op,x),m=j,()=>{u.removeEventListener(Op,x),m=null}},createHref(j){return i(u,j)},createURL:k,encodeLocation(j){let D=k(j);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:T,go(j){return d.go(j)}};return N}function V2(n,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Gt(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:$l(n);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function by(n,i,s="/"){return L2(n,i,s,!1)}function L2(n,i,s,r){let u=typeof i=="string"?qi(i):i,f=zn(u.pathname||"/",s);if(f==null)return null;let d=Sy(n);B2(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let g=F2(f);h=Z2(d[m],g,r)}return h}function Sy(n,i=[],s=[],r="",u=!1){let f=(d,h,m=u,g)=>{let v={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&m)return;Gt(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let x=un([r,v.relativePath]),S=s.concat(v);d.children&&d.children.length>0&&(Gt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Sy(d.children,i,S,x,m)),!(d.path==null&&!d.index)&&i.push({path:x,score:Q2(x,d.index),routesMeta:S})};return n.forEach((d,h)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))f(d,h);else for(let g of wy(d.path))f(d,h,!0,g)}),i}function wy(n){let i=n.split("/");if(i.length===0)return[];let[s,...r]=i,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return u?[f,""]:[f];let d=wy(r.join("/")),h=[];return h.push(...d.map(m=>m===""?f:[f,m].join("/"))),u&&h.push(...d),h.map(m=>n.startsWith("/")&&m===""?"/":m)}function B2(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:K2(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var U2=/^:[\w-]+$/,H2=3,Y2=2,q2=1,G2=10,X2=-2,Vp=n=>n==="*";function Q2(n,i){let s=n.split("/"),r=s.length;return s.some(Vp)&&(r+=X2),i&&(r+=Y2),s.filter(u=>!Vp(u)).reduce((u,f)=>u+(U2.test(f)?H2:f===""?q2:G2),r)}function K2(n,i){return n.length===i.length&&n.slice(0,-1).every((r,u)=>r===i[u])?n[n.length-1]-i[i.length-1]:0}function Z2(n,i,s=!1){let{routesMeta:r}=n,u={},f="/",d=[];for(let h=0;h<r.length;++h){let m=r[h],g=h===r.length-1,v=f==="/"?i:i.slice(f.length)||"/",x=Kr({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},v),S=m.route;if(!x&&g&&s&&!r[r.length-1].route.index&&(x=Kr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!x)return null;Object.assign(u,x.params),d.push({params:u,pathname:un([f,x.pathname]),pathnameBase:I2(un([f,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(f=un([f,x.pathnameBase]))}return d}function Kr(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,r]=P2(n.path,n.caseSensitive,n.end),u=i.match(s);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:r.reduce((g,{paramName:v,isOptional:x},S)=>{if(v==="*"){let k=h[S]||"";d=f.slice(0,f.length-k.length).replace(/(.)\/+$/,"$1")}const T=h[S];return x&&!T?g[v]=void 0:g[v]=(T||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:d,pattern:n}}function P2(n,i=!1,s=!0){fn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m,g,v)=>{if(r.push({paramName:h,isOptional:m!=null}),m){let x=v.charAt(g+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function F2(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return fn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function zn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var J2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function W2(n,i="/"){let{pathname:s,search:r="",hash:u=""}=typeof n=="string"?qi(n):n,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Lp(s.substring(1),"/"):f=Lp(s,i)):f=i,{pathname:f,search:tS(r),hash:eS(u)}}function Lp(n,i){let s=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function Bc(n,i,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $2(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Ty(n){let i=$2(n);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Lf(n,i,s,r=!1){let u;typeof n=="string"?u=qi(n):(u={...n},Gt(!u.pathname||!u.pathname.includes("?"),Bc("?","pathname","search",u)),Gt(!u.pathname||!u.pathname.includes("#"),Bc("#","pathname","hash",u)),Gt(!u.search||!u.search.includes("#"),Bc("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,h;if(d==null)h=s;else{let x=i.length-1;if(!r&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),x-=1;u.pathname=S.join("/")}h=x>=0?i[x]:"/"}let m=W2(u,h),g=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(g||v)&&(m.pathname+="/"),m}var un=n=>n.join("/").replace(/\/\/+/g,"/"),I2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),tS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,eS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,nS=class{constructor(n,i,s,r=!1){this.status=n,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function aS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function iS(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function My(n,i){let s=n;if(typeof s!="string"||!J2.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,u=!1;if(Ey)try{let f=new URL(window.location.href),d=s.startsWith("//")?new URL(f.protocol+s):new URL(s),h=zn(d.pathname,i);d.origin===f.origin&&h!=null?s=h+d.search+d.hash:u=!0}catch{fn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ay=["POST","PUT","PATCH","DELETE"];new Set(Ay);var lS=["GET",...Ay];new Set(lS);var Gi=A.createContext(null);Gi.displayName="DataRouter";var ro=A.createContext(null);ro.displayName="DataRouterState";var sS=A.createContext(!1),ky=A.createContext({isTransitioning:!1});ky.displayName="ViewTransition";var rS=A.createContext(new Map);rS.displayName="Fetchers";var oS=A.createContext(null);oS.displayName="Await";var Fe=A.createContext(null);Fe.displayName="Navigation";var ls=A.createContext(null);ls.displayName="Location";var hn=A.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var Bf=A.createContext(null);Bf.displayName="RouteError";var Ny="REACT_ROUTER_ERROR",uS="REDIRECT",cS="ROUTE_ERROR_RESPONSE";function fS(n){if(n.startsWith(`${Ny}:${uS}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function dS(n){if(n.startsWith(`${Ny}:${cS}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new nS(i.status,i.statusText,i.data)}catch{}}function hS(n,{relative:i}={}){Gt(ss(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=A.useContext(Fe),{hash:u,pathname:f,search:d}=rs(n,{relative:i}),h=f;return s!=="/"&&(h=f==="/"?s:un([s,f])),r.createHref({pathname:h,search:d,hash:u})}function ss(){return A.useContext(ls)!=null}function _n(){return Gt(ss(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ls).location}var Cy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jy(n){A.useContext(Fe).static||A.useLayoutEffect(n)}function mS(){let{isDataRoute:n}=A.useContext(hn);return n?CS():pS()}function pS(){Gt(ss(),"useNavigate() may be used only in the context of a <Router> component.");let n=A.useContext(Gi),{basename:i,navigator:s}=A.useContext(Fe),{matches:r}=A.useContext(hn),{pathname:u}=_n(),f=JSON.stringify(Ty(r)),d=A.useRef(!1);return jy(()=>{d.current=!0}),A.useCallback((m,g={})=>{if(fn(d.current,Cy),!d.current)return;if(typeof m=="number"){s.go(m);return}let v=Lf(m,JSON.parse(f),u,g.relative==="path");n==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:un([i,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[i,s,f,u,n])}var gS=A.createContext(null);function yS(n){let i=A.useContext(hn).outlet;return A.useMemo(()=>i&&A.createElement(gS.Provider,{value:n},i),[i,n])}function rs(n,{relative:i}={}){let{matches:s}=A.useContext(hn),{pathname:r}=_n(),u=JSON.stringify(Ty(s));return A.useMemo(()=>Lf(n,JSON.parse(u),r,i==="path"),[n,u,r,i])}function vS(n,i){return Dy(n,i)}function Dy(n,i,s){var j;Gt(ss(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(Fe),{matches:u}=A.useContext(hn),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let D=g&&g.path||"";Oy(h,!g||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let v=_n(),x;if(i){let D=typeof i=="string"?qi(i):i;Gt(m==="/"||((j=D.pathname)==null?void 0:j.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${D.pathname}" was given in the \`location\` prop.`),x=D}else x=v;let S=x.pathname||"/",T=S;if(m!=="/"){let D=m.replace(/^\//,"").split("/");T="/"+S.replace(/^\//,"").split("/").slice(D.length).join("/")}let k=by(n,{pathname:T});fn(g||k!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),fn(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=TS(k&&k.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:un([m,r.encodeLocation?r.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?m:un([m,r.encodeLocation?r.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),u,s);return i&&N?A.createElement(ls.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},N):N}function xS(){let n=NS(),i=aS(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},i),s?A.createElement("pre",{style:u},s):null,d)}var bS=A.createElement(xS,null),Ry=class extends A.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=dS(n.digest);s&&(n=s)}let i=n!==void 0?A.createElement(hn.Provider,{value:this.props.routeContext},A.createElement(Bf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?A.createElement(SS,{error:n},i):i}};Ry.contextType=sS;var Uc=new WeakMap;function SS({children:n,error:i}){let{basename:s}=A.useContext(Fe);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=fS(i.digest);if(r){let u=Uc.get(i);if(u)throw u;let f=My(r.location,s);if(Ey&&!Uc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Uc.set(i,d),d}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function wS({routeContext:n,match:i,children:s}){let r=A.useContext(Gi);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),A.createElement(hn.Provider,{value:n},s)}function TS(n,i=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let u=n,f=r==null?void 0:r.errors;if(f!=null){let v=u.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);Gt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let d=!1,h=-1;if(s&&r){d=r.renderFallback;for(let v=0;v<u.length;v++){let x=u[v];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(h=v),x.route.id){let{loaderData:S,errors:T}=r,k=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!T||T[x.route.id]===void 0);if(x.route.lazy||k){s.isStatic&&(d=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let m=s==null?void 0:s.onError,g=r&&m?(v,x)=>{var S,T;m(v,{location:r.location,params:((T=(S=r.matches)==null?void 0:S[0])==null?void 0:T.params)??{},unstable_pattern:iS(r.matches),errorInfo:x})}:void 0;return u.reduceRight((v,x,S)=>{let T,k=!1,N=null,j=null;r&&(T=f&&x.route.id?f[x.route.id]:void 0,N=x.route.errorElement||bS,d&&(h<0&&S===0?(Oy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,j=null):h===S&&(k=!0,j=x.route.hydrateFallbackElement||null)));let D=i.concat(u.slice(0,S+1)),H=()=>{let L;return T?L=N:k?L=j:x.route.Component?L=A.createElement(x.route.Component,null):x.route.element?L=x.route.element:L=v,A.createElement(wS,{match:x,routeContext:{outlet:v,matches:D,isDataRoute:r!=null},children:L})};return r&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?A.createElement(Ry,{location:r.location,revalidation:r.revalidation,component:N,error:T,children:H(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:g}):H()},null)}function Uf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ES(n){let i=A.useContext(Gi);return Gt(i,Uf(n)),i}function MS(n){let i=A.useContext(ro);return Gt(i,Uf(n)),i}function AS(n){let i=A.useContext(hn);return Gt(i,Uf(n)),i}function Hf(n){let i=AS(n),s=i.matches[i.matches.length-1];return Gt(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function kS(){return Hf("useRouteId")}function NS(){var r;let n=A.useContext(Bf),i=MS("useRouteError"),s=Hf("useRouteError");return n!==void 0?n:(r=i.errors)==null?void 0:r[s]}function CS(){let{router:n}=ES("useNavigate"),i=Hf("useNavigate"),s=A.useRef(!1);return jy(()=>{s.current=!0}),A.useCallback(async(u,f={})=>{fn(s.current,Cy),s.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var Bp={};function Oy(n,i,s){!i&&!Bp[n]&&(Bp[n]=!0,fn(!1,s))}A.memo(jS);function jS({routes:n,future:i,state:s,isStatic:r,onError:u}){return Dy(n,void 0,{state:s,isStatic:r,onError:u})}function DS(n){return yS(n.context)}function Ha(n){Gt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function RS({basename:n="/",children:i=null,location:s,navigationType:r="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Gt(!ss(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:h,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[h,u,f,d]);typeof s=="string"&&(s=qi(s));let{pathname:g="/",search:v="",hash:x="",state:S=null,key:T="default",unstable_mask:k}=s,N=A.useMemo(()=>{let j=zn(g,h);return j==null?null:{location:{pathname:j,search:v,hash:x,state:S,key:T,unstable_mask:k},navigationType:r}},[h,g,v,x,S,T,r,k]);return fn(N!=null,`<Router basename="${h}"> is not able to match the URL "${g}${v}${x}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:A.createElement(Fe.Provider,{value:m},A.createElement(ls.Provider,{children:i,value:N}))}function OS({children:n,location:i}){return vS(uf(n),i)}function uf(n,i=[]){let s=[];return A.Children.forEach(n,(r,u)=>{if(!A.isValidElement(r))return;let f=[...i,u];if(r.type===A.Fragment){s.push.apply(s,uf(r.props.children,f));return}Gt(r.type===Ha,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Gt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=uf(r.props.children,f)),s.push(d)}),s}var Lr="get",Br="application/x-www-form-urlencoded";function oo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function zS(n){return oo(n)&&n.tagName.toLowerCase()==="button"}function _S(n){return oo(n)&&n.tagName.toLowerCase()==="form"}function VS(n){return oo(n)&&n.tagName.toLowerCase()==="input"}function LS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function BS(n,i){return n.button===0&&(!i||i==="_self")&&!LS(n)}var Cr=null;function US(){if(Cr===null)try{new FormData(document.createElement("form"),0),Cr=!1}catch{Cr=!0}return Cr}var HS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hc(n){return n!=null&&!HS.has(n)?(fn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Br}"`),null):n}function YS(n,i){let s,r,u,f,d;if(_S(n)){let h=n.getAttribute("action");r=h?zn(h,i):null,s=n.getAttribute("method")||Lr,u=Hc(n.getAttribute("enctype"))||Br,f=new FormData(n)}else if(zS(n)||VS(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||h.getAttribute("action");if(r=m?zn(m,i):null,s=n.getAttribute("formmethod")||h.getAttribute("method")||Lr,u=Hc(n.getAttribute("formenctype"))||Hc(h.getAttribute("enctype"))||Br,f=new FormData(h,n),!US()){let{name:g,type:v,value:x}=n;if(v==="image"){let S=g?`${g}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else g&&f.append(g,x)}}else{if(oo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Lr,r=null,u=Br,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:r,method:s.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function qS(n,i,s,r){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:i&&zn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${r}`,u}async function GS(n,i){if(n.id in i)return i[n.id];try{let s=await import(n.module);return i[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function XS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function QS(n,i,s){let r=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let d=await GS(f,s);return d.links?d.links():[]}return[]}));return FS(r.flat(1).filter(XS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Up(n,i,s,r,u,f){let d=(m,g)=>s[g]?m.route.id!==s[g].route.id:!0,h=(m,g)=>{var v;return s[g].pathname!==m.pathname||((v=s[g].route.path)==null?void 0:v.endsWith("*"))&&s[g].params["*"]!==m.params["*"]};return f==="assets"?i.filter((m,g)=>d(m,g)||h(m,g)):f==="data"?i.filter((m,g)=>{var x;let v=r.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(d(m,g)||h(m,g))return!0;if(m.route.shouldRevalidate){let S=m.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((x=s[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function KS(n,i,{includeHydrateFallback:s}={}){return ZS(n.map(r=>{let u=i.routes[r.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),s&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function ZS(n){return[...new Set(n)]}function PS(n){let i={},s=Object.keys(n).sort();for(let r of s)i[r]=n[r];return i}function FS(n,i){let s=new Set;return new Set(i),n.reduce((r,u)=>{let f=JSON.stringify(PS(u));return s.has(f)||(s.add(f),r.push({key:f,link:u})),r},[])}function zy(){let n=A.useContext(Gi);return Yf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function JS(){let n=A.useContext(ro);return Yf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var qf=A.createContext(void 0);qf.displayName="FrameworkContext";function _y(){let n=A.useContext(qf);return Yf(n,"You must render this element inside a <HydratedRouter> element"),n}function WS(n,i){let s=A.useContext(qf),[r,u]=A.useState(!1),[f,d]=A.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:g,onMouseLeave:v,onTouchStart:x}=i,S=A.useRef(null);A.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let N=D=>{D.forEach(H=>{d(H.isIntersecting)})},j=new IntersectionObserver(N,{threshold:.5});return S.current&&j.observe(S.current),()=>{j.disconnect()}}},[n]),A.useEffect(()=>{if(r){let N=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(N)}}},[r]);let T=()=>{u(!0)},k=()=>{u(!1),d(!1)};return s?n!=="intent"?[f,S,{}]:[f,S,{onFocus:Yl(h,T),onBlur:Yl(m,k),onMouseEnter:Yl(g,T),onMouseLeave:Yl(v,k),onTouchStart:Yl(x,T)}]:[!1,S,{}]}function Yl(n,i){return s=>{n&&n(s),s.defaultPrevented||i(s)}}function $S({page:n,...i}){let{router:s}=zy(),r=A.useMemo(()=>by(s.routes,n,s.basename),[s.routes,n,s.basename]);return r?A.createElement(tw,{page:n,matches:r,...i}):null}function IS(n){let{manifest:i,routeModules:s}=_y(),[r,u]=A.useState([]);return A.useEffect(()=>{let f=!1;return QS(n,i,s).then(d=>{f||u(d)}),()=>{f=!0}},[n,i,s]),r}function tw({page:n,matches:i,...s}){let r=_n(),{future:u,manifest:f,routeModules:d}=_y(),{basename:h}=zy(),{loaderData:m,matches:g}=JS(),v=A.useMemo(()=>Up(n,i,g,f,r,"data"),[n,i,g,f,r]),x=A.useMemo(()=>Up(n,i,g,f,r,"assets"),[n,i,g,f,r]),S=A.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let N=new Set,j=!1;if(i.forEach(H=>{var X;let L=f.routes[H.route.id];!L||!L.hasLoader||(!v.some(Q=>Q.route.id===H.route.id)&&H.route.id in m&&((X=d[H.route.id])!=null&&X.shouldRevalidate)||L.hasClientLoader?j=!0:N.add(H.route.id))}),N.size===0)return[];let D=qS(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return j&&N.size>0&&D.searchParams.set("_routes",i.filter(H=>N.has(H.route.id)).map(H=>H.route.id).join(",")),[D.pathname+D.search]},[h,u.unstable_trailingSlashAwareDataRequests,m,r,f,v,i,n,d]),T=A.useMemo(()=>KS(x,f),[x,f]),k=IS(x);return A.createElement(A.Fragment,null,S.map(N=>A.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...s})),T.map(N=>A.createElement("link",{key:N,rel:"modulepreload",href:N,...s})),k.map(({key:N,link:j})=>A.createElement("link",{key:N,nonce:s.nonce,...j,crossOrigin:j.crossOrigin??s.crossOrigin})))}function ew(...n){return i=>{n.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{nw&&(window.__reactRouterVersion="7.13.1")}catch{}function aw({basename:n,children:i,unstable_useTransitions:s,window:r}){let u=A.useRef();u.current==null&&(u.current=O2({window:r,v5Compat:!0}));let f=u.current,[d,h]=A.useState({action:f.action,location:f.location}),m=A.useCallback(g=>{s===!1?h(g):A.startTransition(()=>h(g))},[s]);return A.useLayoutEffect(()=>f.listen(m),[f,m]),A.createElement(RS,{basename:n,children:i,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:s})}var Vy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zr=A.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:u,reloadDocument:f,replace:d,unstable_mask:h,state:m,target:g,to:v,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:T,...k},N){let{basename:j,navigator:D,unstable_useTransitions:H}=A.useContext(Fe),L=typeof v=="string"&&Vy.test(v),X=My(v,j);v=X.to;let Q=hS(v,{relative:u}),it=_n(),F=null;if(h){let vt=Lf(h,[],it.unstable_mask?it.unstable_mask.pathname:"/",!0);j!=="/"&&(vt.pathname=vt.pathname==="/"?j:un([j,vt.pathname])),F=D.createHref(vt)}let[Y,W,tt]=WS(r,k),mt=rw(v,{replace:d,unstable_mask:h,state:m,target:g,preventScrollReset:x,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:T,unstable_useTransitions:H});function gt(vt){i&&i(vt),vt.defaultPrevented||mt(vt)}let Yt=!(X.isExternal||f),_t=A.createElement("a",{...k,...tt,href:(Yt?F:void 0)||X.absoluteURL||Q,onClick:Yt?gt:i,ref:ew(N,W),target:g,"data-discover":!L&&s==="render"?"true":void 0});return Y&&!L?A.createElement(A.Fragment,null,_t,A.createElement($S,{page:Q})):_t});Zr.displayName="Link";var iw=A.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:u=!1,style:f,to:d,viewTransition:h,children:m,...g},v){let x=rs(d,{relative:g.relative}),S=_n(),T=A.useContext(ro),{navigator:k,basename:N}=A.useContext(Fe),j=T!=null&&dw(x)&&h===!0,D=k.encodeLocation?k.encodeLocation(x).pathname:x.pathname,H=S.pathname,L=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;s||(H=H.toLowerCase(),L=L?L.toLowerCase():null,D=D.toLowerCase()),L&&N&&(L=zn(L,N)||L);const X=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let Q=H===D||!u&&H.startsWith(D)&&H.charAt(X)==="/",it=L!=null&&(L===D||!u&&L.startsWith(D)&&L.charAt(D.length)==="/"),F={isActive:Q,isPending:it,isTransitioning:j},Y=Q?i:void 0,W;typeof r=="function"?W=r(F):W=[r,Q?"active":null,it?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let tt=typeof f=="function"?f(F):f;return A.createElement(Zr,{...g,"aria-current":Y,className:W,ref:v,style:tt,to:d,viewTransition:h},typeof m=="function"?m(F):m)});iw.displayName="NavLink";var lw=A.forwardRef(({discover:n="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:u,state:f,method:d=Lr,action:h,onSubmit:m,relative:g,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:S,...T},k)=>{let{unstable_useTransitions:N}=A.useContext(Fe),j=cw(),D=fw(h,{relative:g}),H=d.toLowerCase()==="get"?"get":"post",L=typeof h=="string"&&Vy.test(h),X=Q=>{if(m&&m(Q),Q.defaultPrevented)return;Q.preventDefault();let it=Q.nativeEvent.submitter,F=(it==null?void 0:it.getAttribute("formmethod"))||d,Y=()=>j(it||Q.currentTarget,{fetcherKey:i,method:F,navigate:s,replace:u,state:f,relative:g,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:S});N&&s!==!1?A.startTransition(()=>Y()):Y()};return A.createElement("form",{ref:k,method:H,action:D,onSubmit:r?m:X,...T,"data-discover":!L&&n==="render"?"true":void 0})});lw.displayName="Form";function sw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ly(n){let i=A.useContext(Gi);return Gt(i,sw(n)),i}function rw(n,{target:i,replace:s,unstable_mask:r,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let v=mS(),x=_n(),S=rs(n,{relative:d});return A.useCallback(T=>{if(BS(T,i)){T.preventDefault();let k=s!==void 0?s:$l(x)===$l(S),N=()=>v(n,{replace:k,unstable_mask:r,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m});g?A.startTransition(()=>N()):N()}},[x,v,S,s,r,u,i,n,f,d,h,m,g])}var ow=0,uw=()=>`__${String(++ow)}__`;function cw(){let{router:n}=Ly("useSubmit"),{basename:i}=A.useContext(Fe),s=kS(),r=n.fetch,u=n.navigate;return A.useCallback(async(f,d={})=>{let{action:h,method:m,encType:g,formData:v,body:x}=YS(f,i);if(d.navigate===!1){let S=d.fetcherKey||uw();await r(S,s,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||m,formEncType:d.encType||g,flushSync:d.flushSync})}else await u(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||m,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,u,i,s])}function fw(n,{relative:i}={}){let{basename:s}=A.useContext(Fe),r=A.useContext(hn);Gt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),f={...rs(n||".",{relative:i})},d=_n();if(n==null){f.search=d.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(x=>x).forEach(x=>h.append("index",x));let v=h.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:un([s,f.pathname])),$l(f)}function dw(n,{relative:i}={}){let s=A.useContext(ky);Gt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ly("useViewTransitionState"),u=rs(n,{relative:i});if(!s.isTransitioning)return!1;let f=zn(s.currentLocation.pathname,r)||s.currentLocation.pathname,d=zn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Kr(u.pathname,d)!=null||Kr(u.pathname,f)!=null}/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mw=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,r)=>r?r.toUpperCase():s.toLowerCase()),Hp=n=>{const i=mw(n);return i.charAt(0).toUpperCase()+i.slice(1)},By=(...n)=>n.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim(),pw=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var gw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yw=A.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:f,iconNode:d,...h},m)=>A.createElement("svg",{ref:m,...gw,width:i,height:i,stroke:n,strokeWidth:r?Number(s)*24/Number(i):s,className:By("lucide",u),...!f&&!pw(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,v])=>A.createElement(g,v)),...Array.isArray(f)?f:[f]]));/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const St=(n,i)=>{const s=A.forwardRef(({className:r,...u},f)=>A.createElement(yw,{ref:f,iconNode:i,className:By(`lucide-${hw(Hp(n))}`,`lucide-${n}`,r),...u}));return s.displayName=Hp(n),s};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vw=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Yp=St("activity",vw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xw=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],bw=St("bell",xw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sw=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],ww=St("briefcase",Sw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tw=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Yc=St("building-2",Tw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ew=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],qp=St("building",Ew);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mw=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Aw=St("calendar-check",Mw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kw=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Nw=St("calendar-days",kw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cw=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Pr=St("calendar",Cw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jw=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Dw=St("camera",jw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rw=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Ow=St("chart-column",Rw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fr=St("chevron-right",zw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _w=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Uy=St("circle-check",_w);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Lw=St("circle-question-mark",Vw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hy=St("clock",Bw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uw=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Gp=St("dollar-sign",Uw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hw=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Jr=St("file-text",Hw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yw=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Yy=St("funnel",Yw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qw=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Gw=St("house",qw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xw=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Qw=St("link",Xw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kw=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Zw=St("list-todo",Kw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pw=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Fw=St("log-out",Pw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jw=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ww=St("mail",Jw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $w=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],cf=St("map-pin",$w);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Iw=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],tT=St("mic",Iw);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eT=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],qy=St("moon",eT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nT=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],qc=St("phone",nT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gy=St("plus",aT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xy=St("search",iT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lT=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],sT=St("send",lT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oT=St("settings",rT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],cT=St("shield",uT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fT=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Qy=St("sun",fT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dT=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],hT=St("tag",dT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mT=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],pT=St("trending-up",mT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gT=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Il=St("user",gT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ky=St("users",yT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zy=St("x",vT);function Py(n){var i,s,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=Py(n[i]))&&(r&&(r+=" "),r+=s)}else for(s in n)n[s]&&(r&&(r+=" "),r+=s);return r}function xT(){for(var n,i,s=0,r="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=Py(n))&&(r&&(r+=" "),r+=i);return r}const bT=(n,i)=>{const s=new Array(n.length+i.length);for(let r=0;r<n.length;r++)s[r]=n[r];for(let r=0;r<i.length;r++)s[n.length+r]=i[r];return s},ST=(n,i)=>({classGroupId:n,validator:i}),Fy=(n=new Map,i=null,s)=>({nextPart:n,validators:i,classGroupId:s}),Wr="-",Xp=[],wT="arbitrary..",TT=n=>{const i=MT(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return ET(d);const h=d.split(Wr),m=h[0]===""&&h.length>1?1:0;return Jy(h,m,i)},getConflictingClassGroupIds:(d,h)=>{if(h){const m=r[d],g=s[d];return m?g?bT(g,m):m:g||Xp}return s[d]||Xp}}},Jy=(n,i,s)=>{if(n.length-i===0)return s.classGroupId;const u=n[i],f=s.nextPart.get(u);if(f){const g=Jy(n,i+1,f);if(g)return g}const d=s.validators;if(d===null)return;const h=i===0?n.join(Wr):n.slice(i).join(Wr),m=d.length;for(let g=0;g<m;g++){const v=d[g];if(v.validator(h))return v.classGroupId}},ET=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),s=i.indexOf(":"),r=i.slice(0,s);return r?wT+r:void 0})(),MT=n=>{const{theme:i,classGroups:s}=n;return AT(s,i)},AT=(n,i)=>{const s=Fy();for(const r in n){const u=n[r];Gf(u,s,r,i)}return s},Gf=(n,i,s,r)=>{const u=n.length;for(let f=0;f<u;f++){const d=n[f];kT(d,i,s,r)}},kT=(n,i,s,r)=>{if(typeof n=="string"){NT(n,i,s);return}if(typeof n=="function"){CT(n,i,s,r);return}jT(n,i,s,r)},NT=(n,i,s)=>{const r=n===""?i:Wy(i,n);r.classGroupId=s},CT=(n,i,s,r)=>{if(DT(n)){Gf(n(r),i,s,r);return}i.validators===null&&(i.validators=[]),i.validators.push(ST(s,n))},jT=(n,i,s,r)=>{const u=Object.entries(n),f=u.length;for(let d=0;d<f;d++){const[h,m]=u[d];Gf(m,Wy(i,h),s,r)}},Wy=(n,i)=>{let s=n;const r=i.split(Wr),u=r.length;for(let f=0;f<u;f++){const d=r[f];let h=s.nextPart.get(d);h||(h=Fy(),s.nextPart.set(d,h)),s=h}return s},DT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,RT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),r=Object.create(null);const u=(f,d)=>{s[f]=d,i++,i>n&&(i=0,r=s,s=Object.create(null))};return{get(f){let d=s[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return u(f,d),d},set(f,d){f in s?s[f]=d:u(f,d)}}},ff="!",Qp=":",OT=[],Kp=(n,i,s,r,u)=>({modifiers:n,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:r,isExternal:u}),zT=n=>{const{prefix:i,experimentalParseClassName:s}=n;let r=u=>{const f=[];let d=0,h=0,m=0,g;const v=u.length;for(let N=0;N<v;N++){const j=u[N];if(d===0&&h===0){if(j===Qp){f.push(u.slice(m,N)),m=N+1;continue}if(j==="/"){g=N;continue}}j==="["?d++:j==="]"?d--:j==="("?h++:j===")"&&h--}const x=f.length===0?u:u.slice(m);let S=x,T=!1;x.endsWith(ff)?(S=x.slice(0,-1),T=!0):x.startsWith(ff)&&(S=x.slice(1),T=!0);const k=g&&g>m?g-m:void 0;return Kp(f,T,S,k)};if(i){const u=i+Qp,f=r;r=d=>d.startsWith(u)?f(d.slice(u.length)):Kp(OT,!1,d,void 0,!0)}if(s){const u=r;r=f=>s({className:f,parseClassName:u})}return r},_T=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((s,r)=>{i.set(s,1e6+r)}),s=>{const r=[];let u=[];for(let f=0;f<s.length;f++){const d=s[f],h=d[0]==="[",m=i.has(d);h||m?(u.length>0&&(u.sort(),r.push(...u),u=[]),r.push(d)):u.push(d)}return u.length>0&&(u.sort(),r.push(...u)),r}},VT=n=>({cache:RT(n.cacheSize),parseClassName:zT(n),sortModifiers:_T(n),...TT(n)}),LT=/\s+/,BT=(n,i)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:f}=i,d=[],h=n.trim().split(LT);let m="";for(let g=h.length-1;g>=0;g-=1){const v=h[g],{isExternal:x,modifiers:S,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:N}=s(v);if(x){m=v+(m.length>0?" "+m:m);continue}let j=!!N,D=r(j?k.substring(0,N):k);if(!D){if(!j){m=v+(m.length>0?" "+m:m);continue}if(D=r(k),!D){m=v+(m.length>0?" "+m:m);continue}j=!1}const H=S.length===0?"":S.length===1?S[0]:f(S).join(":"),L=T?H+ff:H,X=L+D;if(d.indexOf(X)>-1)continue;d.push(X);const Q=u(D,j);for(let it=0;it<Q.length;++it){const F=Q[it];d.push(L+F)}m=v+(m.length>0?" "+m:m)}return m},UT=(...n)=>{let i=0,s,r,u="";for(;i<n.length;)(s=n[i++])&&(r=$y(s))&&(u&&(u+=" "),u+=r);return u},$y=n=>{if(typeof n=="string")return n;let i,s="";for(let r=0;r<n.length;r++)n[r]&&(i=$y(n[r]))&&(s&&(s+=" "),s+=i);return s},HT=(n,...i)=>{let s,r,u,f;const d=m=>{const g=i.reduce((v,x)=>x(v),n());return s=VT(g),r=s.cache.get,u=s.cache.set,f=h,h(m)},h=m=>{const g=r(m);if(g)return g;const v=BT(m,s);return u(m,v),v};return f=d,(...m)=>f(UT(...m))},YT=[],ee=n=>{const i=s=>s[n]||YT;return i.isThemeGetter=!0,i},Iy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,GT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XT=/\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$/,QT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,KT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ua=n=>qT.test(n),yt=n=>!!n&&!Number.isNaN(Number(n)),ca=n=>!!n&&Number.isInteger(Number(n)),Gc=n=>n.endsWith("%")&&yt(n.slice(0,-1)),On=n=>GT.test(n),ev=()=>!0,PT=n=>XT.test(n)&&!QT.test(n),Xf=()=>!1,FT=n=>KT.test(n),JT=n=>ZT.test(n),WT=n=>!et(n)&&!at(n),$T=n=>va(n,iv,Xf),et=n=>Iy.test(n),Ba=n=>va(n,lv,PT),Zp=n=>va(n,s4,yt),IT=n=>va(n,rv,ev),t4=n=>va(n,sv,Xf),Pp=n=>va(n,nv,Xf),e4=n=>va(n,av,JT),jr=n=>va(n,ov,FT),at=n=>tv.test(n),ql=n=>Za(n,lv),n4=n=>Za(n,sv),Fp=n=>Za(n,nv),a4=n=>Za(n,iv),i4=n=>Za(n,av),Dr=n=>Za(n,ov,!0),l4=n=>Za(n,rv,!0),va=(n,i,s)=>{const r=Iy.exec(n);return r?r[1]?i(r[1]):s(r[2]):!1},Za=(n,i,s=!1)=>{const r=tv.exec(n);return r?r[1]?i(r[1]):s:!1},nv=n=>n==="position"||n==="percentage",av=n=>n==="image"||n==="url",iv=n=>n==="length"||n==="size"||n==="bg-size",lv=n=>n==="length",s4=n=>n==="number",sv=n=>n==="family-name",rv=n=>n==="number"||n==="weight",ov=n=>n==="shadow",r4=()=>{const n=ee("color"),i=ee("font"),s=ee("text"),r=ee("font-weight"),u=ee("tracking"),f=ee("leading"),d=ee("breakpoint"),h=ee("container"),m=ee("spacing"),g=ee("radius"),v=ee("shadow"),x=ee("inset-shadow"),S=ee("text-shadow"),T=ee("drop-shadow"),k=ee("blur"),N=ee("perspective"),j=ee("aspect"),D=ee("ease"),H=ee("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...X(),at,et],it=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],Y=()=>[at,et,m],W=()=>[ua,"full","auto",...Y()],tt=()=>[ca,"none","subgrid",at,et],mt=()=>["auto",{span:["full",ca,at,et]},ca,at,et],gt=()=>[ca,"auto",at,et],Yt=()=>["auto","min","max","fr",at,et],_t=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],vt=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...Y()],Z=()=>[ua,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],J=()=>[ua,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ct=()=>[ua,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],K=()=>[n,at,et],E=()=>[...X(),Fp,Pp,{position:[at,et]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",a4,$T,{size:[at,et]}],$=()=>[Gc,ql,Ba],st=()=>["","none","full",g,at,et],ot=()=>["",yt,ql,Ba],Et=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pt=()=>[yt,Gc,Fp,Pp],Vn=()=>["","none",k,at,et],mn=()=>["none",yt,at,et],Ln=()=>["none",yt,at,et],Pa=()=>[yt,at,et],Ve=()=>[ua,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[ev],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[WT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",yt],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ua,et,at,j]}],container:["container"],columns:[{columns:[yt,et,at,h]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:Q()}],overflow:[{overflow:it()}],"overflow-x":[{"overflow-x":it()}],"overflow-y":[{"overflow-y":it()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[ca,"auto",at,et]}],basis:[{basis:[ua,"full","auto",h,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,ua,"auto","initial","none",et]}],grow:[{grow:["",yt,at,et]}],shrink:[{shrink:["",yt,at,et]}],order:[{order:[ca,"first","last","none",at,et]}],"grid-cols":[{"grid-cols":tt()}],"col-start-end":[{col:mt()}],"col-start":[{"col-start":gt()}],"col-end":[{"col-end":gt()}],"grid-rows":[{"grid-rows":tt()}],"row-start-end":[{row:mt()}],"row-start":[{"row-start":gt()}],"row-end":[{"row-end":gt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Yt()}],"auto-rows":[{"auto-rows":Yt()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[..._t(),"normal"]}],"justify-items":[{"justify-items":[...vt(),"normal"]}],"justify-self":[{"justify-self":["auto",...vt()]}],"align-content":[{content:["normal",..._t()]}],"align-items":[{items:[...vt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...vt(),{baseline:["","last"]}]}],"place-content":[{"place-content":_t()}],"place-items":[{"place-items":[...vt(),"baseline"]}],"place-self":[{"place-self":["auto",...vt()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ct()]}],"min-block-size":[{"min-block":["auto",...ct()]}],"max-block-size":[{"max-block":["none",...ct()]}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",s,ql,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,l4,IT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gc,et]}],"font-family":[{font:[n4,t4,i]}],"font-features":[{"font-features":[et]}],"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:[u,at,et]}],"line-clamp":[{"line-clamp":[yt,"none",at,Zp]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",at,et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",at,et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Et(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",at,Ba]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[yt,"auto",at,et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",at,et]}],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",at,et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ca,at,et],radial:["",at,et],conic:[ca,at,et]},i4,e4]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"border-w":[{border:ot()}],"border-w-x":[{"border-x":ot()}],"border-w-y":[{"border-y":ot()}],"border-w-s":[{"border-s":ot()}],"border-w-e":[{"border-e":ot()}],"border-w-bs":[{"border-bs":ot()}],"border-w-be":[{"border-be":ot()}],"border-w-t":[{"border-t":ot()}],"border-w-r":[{"border-r":ot()}],"border-w-b":[{"border-b":ot()}],"border-w-l":[{"border-l":ot()}],"divide-x":[{"divide-x":ot()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ot()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Et(),"hidden","none"]}],"divide-style":[{divide:[...Et(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...Et(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,at,et]}],"outline-w":[{outline:["",yt,ql,Ba]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",v,Dr,jr]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",x,Dr,jr]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ot()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[yt,Ba]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ot()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",S,Dr,jr]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[yt,at,et]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"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":[yt]}],"mask-image-linear-from-pos":[{"mask-linear-from":pt()}],"mask-image-linear-to-pos":[{"mask-linear-to":pt()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":pt()}],"mask-image-t-to-pos":[{"mask-t-to":pt()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":pt()}],"mask-image-r-to-pos":[{"mask-r-to":pt()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":pt()}],"mask-image-b-to-pos":[{"mask-b-to":pt()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":pt()}],"mask-image-l-to-pos":[{"mask-l-to":pt()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":pt()}],"mask-image-x-to-pos":[{"mask-x-to":pt()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":pt()}],"mask-image-y-to-pos":[{"mask-y-to":pt()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[at,et]}],"mask-image-radial-from-pos":[{"mask-radial-from":pt()}],"mask-image-radial-to-pos":[{"mask-radial-to":pt()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":X()}],"mask-image-conic-pos":[{"mask-conic":[yt]}],"mask-image-conic-from-pos":[{"mask-conic-from":pt()}],"mask-image-conic-to-pos":[{"mask-conic-to":pt()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",at,et]}],filter:[{filter:["","none",at,et]}],blur:[{blur:Vn()}],brightness:[{brightness:[yt,at,et]}],contrast:[{contrast:[yt,at,et]}],"drop-shadow":[{"drop-shadow":["","none",T,Dr,jr]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",yt,at,et]}],"hue-rotate":[{"hue-rotate":[yt,at,et]}],invert:[{invert:["",yt,at,et]}],saturate:[{saturate:[yt,at,et]}],sepia:[{sepia:["",yt,at,et]}],"backdrop-filter":[{"backdrop-filter":["","none",at,et]}],"backdrop-blur":[{"backdrop-blur":Vn()}],"backdrop-brightness":[{"backdrop-brightness":[yt,at,et]}],"backdrop-contrast":[{"backdrop-contrast":[yt,at,et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,at,et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,at,et]}],"backdrop-invert":[{"backdrop-invert":["",yt,at,et]}],"backdrop-opacity":[{"backdrop-opacity":[yt,at,et]}],"backdrop-saturate":[{"backdrop-saturate":[yt,at,et]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,at,et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",at,et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",at,et]}],ease:[{ease:["linear","initial",D,at,et]}],delay:[{delay:[yt,at,et]}],animate:[{animate:["none",H,at,et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,at,et]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:mn()}],"rotate-x":[{"rotate-x":mn()}],"rotate-y":[{"rotate-y":mn()}],"rotate-z":[{"rotate-z":mn()}],scale:[{scale:Ln()}],"scale-x":[{"scale-x":Ln()}],"scale-y":[{"scale-y":Ln()}],"scale-z":[{"scale-z":Ln()}],"scale-3d":["scale-3d"],skew:[{skew:Pa()}],"skew-x":[{"skew-x":Pa()}],"skew-y":[{"skew-y":Pa()}],transform:[{transform:[at,et,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",at,et]}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",at,et]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[yt,ql,Ba,Zp]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},o4=HT(r4);function Gl(...n){return o4(xT(n))}const u4={theme:"system",setTheme:()=>null},uv=A.createContext(u4);function c4({children:n,defaultTheme:i="system",storageKey:s="crm-ui-theme",...r}){const[u,f]=A.useState(()=>localStorage.getItem(s)||i);A.useEffect(()=>{const h=window.document.documentElement;if(h.classList.remove("light","dark"),u==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";h.classList.add(m);return}h.classList.add(u)},[u]);const d={theme:u,setTheme:h=>{localStorage.setItem(s,h),f(h)}};return y.jsx(uv.Provider,{...r,value:d,children:n})}const cv=()=>{const n=A.useContext(uv);if(n===void 0)throw new Error("useTheme must be used within a ThemeProvider");return n},Qf=A.createContext({});function Kf(n){const i=A.useRef(null);return i.current===null&&(i.current=n()),i.current}const f4=typeof window<"u",fv=f4?A.useLayoutEffect:A.useEffect,uo=A.createContext(null);function Zf(n,i){n.indexOf(i)===-1&&n.push(i)}function $r(n,i){const s=n.indexOf(i);s>-1&&n.splice(s,1)}const dn=(n,i,s)=>s>i?i:s<n?n:s;let Pf=()=>{};const pa={},dv=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function hv(n){return typeof n=="object"&&n!==null}const mv=n=>/^0[^.\s]+$/u.test(n);function pv(n){let i;return()=>(i===void 0&&(i=n()),i)}const Pe=n=>n,d4=(n,i)=>s=>i(n(s)),os=(...n)=>n.reduce(d4),ts=(n,i,s)=>{const r=i-n;return r===0?1:(s-n)/r};class Ff{constructor(){this.subscriptions=[]}add(i){return Zf(this.subscriptions,i),()=>$r(this.subscriptions,i)}notify(i,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,s,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(i,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=n=>n*1e3,Ze=n=>n/1e3;function gv(n,i){return i?n*(1e3/i):0}const yv=(n,i,s)=>(((1-3*s+3*i)*n+(3*s-6*i))*n+3*i)*n,h4=1e-7,m4=12;function p4(n,i,s,r,u){let f,d,h=0;do d=i+(s-i)/2,f=yv(d,r,u)-n,f>0?s=d:i=d;while(Math.abs(f)>h4&&++h<m4);return d}function us(n,i,s,r){if(n===i&&s===r)return Pe;const u=f=>p4(f,0,1,n,s);return f=>f===0||f===1?f:yv(u(f),i,r)}const vv=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,xv=n=>i=>1-n(1-i),bv=us(.33,1.53,.69,.99),Jf=xv(bv),Sv=vv(Jf),wv=n=>n>=1?1:(n*=2)<1?.5*Jf(n):.5*(2-Math.pow(2,-10*(n-1))),Wf=n=>1-Math.sin(Math.acos(n)),Tv=xv(Wf),Ev=vv(Wf),g4=us(.42,0,1,1),y4=us(0,0,.58,1),Mv=us(.42,0,.58,1),v4=n=>Array.isArray(n)&&typeof n[0]!="number",Av=n=>Array.isArray(n)&&typeof n[0]=="number",x4={linear:Pe,easeIn:g4,easeInOut:Mv,easeOut:y4,circIn:Wf,circInOut:Ev,circOut:Tv,backIn:Jf,backInOut:Sv,backOut:bv,anticipate:wv},b4=n=>typeof n=="string",Jp=n=>{if(Av(n)){Pf(n.length===4);const[i,s,r,u]=n;return us(i,s,r,u)}else if(b4(n))return x4[n];return n},Rr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function S4(n,i){let s=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(v){d.has(v)&&(g.schedule(v),n()),v(h)}const g={schedule:(v,x=!1,S=!1)=>{const k=S&&u?s:r;return x&&d.add(v),k.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(h=v,u){f=!0;return}u=!0;const x=s;s=r,r=x,s.forEach(m),s.clear(),u=!1,f&&(f=!1,g.process(v))}};return g}const w4=40;function kv(n,i){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Rr.reduce((L,X)=>(L[X]=S4(f),L),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:v,update:x,preRender:S,render:T,postRender:k}=d,N=()=>{const L=pa.useManualTiming,X=L?u.timestamp:performance.now();s=!1,L||(u.delta=r?1e3/60:Math.max(Math.min(X-u.timestamp,w4),1)),u.timestamp=X,u.isProcessing=!0,h.process(u),m.process(u),g.process(u),v.process(u),x.process(u),S.process(u),T.process(u),k.process(u),u.isProcessing=!1,s&&i&&(r=!1,n(N))},j=()=>{s=!0,r=!0,u.isProcessing||n(N)};return{schedule:Rr.reduce((L,X)=>{const Q=d[X];return L[X]=(it,F=!1,Y=!1)=>(s||j(),Q.schedule(it,F,Y)),L},{}),cancel:L=>{for(let X=0;X<Rr.length;X++)d[Rr[X]].cancel(L)},state:u,steps:d}}const{schedule:Lt,cancel:ga,state:fe,steps:Xc}=kv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let Ur;function T4(){Ur=void 0}const ge={now:()=>(Ur===void 0&&ge.set(fe.isProcessing||pa.useManualTiming?fe.timestamp:performance.now()),Ur),set:n=>{Ur=n,queueMicrotask(T4)}},Nv=n=>i=>typeof i=="string"&&i.startsWith(n),Cv=Nv("--"),E4=Nv("var(--"),$f=n=>E4(n)?M4.test(n.split("/*")[0].trim()):!1,M4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Wp(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Xi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},es={...Xi,transform:n=>dn(0,1,n)},Or={...Xi,default:1},Pl=n=>Math.round(n*1e5)/1e5,If=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function A4(n){return n==null}const k4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,td=(n,i)=>s=>!!(typeof s=="string"&&k4.test(s)&&s.startsWith(n)||i&&!A4(s)&&Object.prototype.hasOwnProperty.call(s,i)),jv=(n,i,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(If);return{[n]:parseFloat(u),[i]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},N4=n=>dn(0,255,n),Qc={...Xi,transform:n=>Math.round(N4(n))},Ga={test:td("rgb","red"),parse:jv("red","green","blue"),transform:({red:n,green:i,blue:s,alpha:r=1})=>"rgba("+Qc.transform(n)+", "+Qc.transform(i)+", "+Qc.transform(s)+", "+Pl(es.transform(r))+")"};function C4(n){let i="",s="",r="",u="";return n.length>5?(i=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),i+=i,s+=s,r+=r,u+=u),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const df={test:td("#"),parse:C4,transform:Ga.transform},cs=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),da=cs("deg"),cn=cs("%"),nt=cs("px"),j4=cs("vh"),D4=cs("vw"),$p={...cn,parse:n=>cn.parse(n)/100,transform:n=>cn.transform(n*100)},_i={test:td("hsl","hue"),parse:jv("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+cn.transform(Pl(i))+", "+cn.transform(Pl(s))+", "+Pl(es.transform(r))+")"},It={test:n=>Ga.test(n)||df.test(n)||_i.test(n),parse:n=>Ga.test(n)?Ga.parse(n):_i.test(n)?_i.parse(n):df.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ga.transform(n):_i.transform(n),getAnimatableNone:n=>{const i=It.parse(n);return i.alpha=0,It.transform(i)}},R4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O4(n){var i,s;return isNaN(n)&&typeof n=="string"&&(((i=n.match(If))==null?void 0:i.length)||0)+(((s=n.match(R4))==null?void 0:s.length)||0)>0}const Dv="number",Rv="color",z4="var",_4="var(",Ip="${}",V4=/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 Hi(n){const i=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=i.replace(V4,m=>(It.test(m)?(r.color.push(f),u.push(Rv),s.push(It.parse(m))):m.startsWith(_4)?(r.var.push(f),u.push(z4),s.push(m)):(r.number.push(f),u.push(Dv),s.push(parseFloat(m))),++f,Ip)).split(Ip);return{values:s,split:h,indexes:r,types:u}}function L4(n){return Hi(n).values}function Ov({split:n,types:i}){const s=n.length;return r=>{let u="";for(let f=0;f<s;f++)if(u+=n[f],r[f]!==void 0){const d=i[f];d===Dv?u+=Pl(r[f]):d===Rv?u+=It.transform(r[f]):u+=r[f]}return u}}function B4(n){return Ov(Hi(n))}const U4=n=>typeof n=="number"?0:It.test(n)?It.getAnimatableNone(n):n,H4=(n,i)=>typeof n=="number"?i!=null&&i.trim().endsWith("/")?n:0:U4(n);function Y4(n){const i=Hi(n);return Ov(i)(i.values.map((r,u)=>H4(r,i.split[u])))}const en={test:O4,parse:L4,createTransformer:B4,getAnimatableNone:Y4};function Kc(n,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(i-n)*6*s:s<1/2?i:s<2/3?n+(i-n)*(2/3-s)*6:n}function q4({hue:n,saturation:i,lightness:s,alpha:r}){n/=360,i/=100,s/=100;let u=0,f=0,d=0;if(!i)u=f=d=s;else{const h=s<.5?s*(1+i):s+i-s*i,m=2*s-h;u=Kc(m,h,n+1/3),f=Kc(m,h,n),d=Kc(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function Ir(n,i){return s=>s>0?i:n}const qt=(n,i,s)=>n+(i-n)*s,Zc=(n,i,s)=>{const r=n*n,u=s*(i*i-r)+r;return u<0?0:Math.sqrt(u)},G4=[df,Ga,_i],X4=n=>G4.find(i=>i.test(n));function tg(n){const i=X4(n);if(!i)return!1;let s=i.parse(n);return i===_i&&(s=q4(s)),s}const eg=(n,i)=>{const s=tg(n),r=tg(i);if(!s||!r)return Ir(n,i);const u={...s};return f=>(u.red=Zc(s.red,r.red,f),u.green=Zc(s.green,r.green,f),u.blue=Zc(s.blue,r.blue,f),u.alpha=qt(s.alpha,r.alpha,f),Ga.transform(u))},hf=new Set(["none","hidden"]);function Q4(n,i){return hf.has(n)?s=>s<=0?n:i:s=>s>=1?i:n}function K4(n,i){return s=>qt(n,i,s)}function ed(n){return typeof n=="number"?K4:typeof n=="string"?$f(n)?Ir:It.test(n)?eg:F4:Array.isArray(n)?zv:typeof n=="object"?It.test(n)?eg:Z4:Ir}function zv(n,i){const s=[...n],r=s.length,u=n.map((f,d)=>ed(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function Z4(n,i){const s={...n,...i},r={};for(const u in s)n[u]!==void 0&&i[u]!==void 0&&(r[u]=ed(n[u])(n[u],i[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function P4(n,i){const s=[],r={color:0,var:0,number:0};for(let u=0;u<i.values.length;u++){const f=i.types[u],d=n.indexes[f][r[f]],h=n.values[d]??0;s[u]=h,r[f]++}return s}const F4=(n,i)=>{const s=en.createTransformer(i),r=Hi(n),u=Hi(i);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?hf.has(n)&&!u.values.length||hf.has(i)&&!r.values.length?Q4(n,i):os(zv(P4(r,u),u.values),s):Ir(n,i)};function _v(n,i,s){return typeof n=="number"&&typeof i=="number"&&typeof s=="number"?qt(n,i,s):ed(n)(n,i)}const J4=n=>{const i=({timestamp:s})=>n(s);return{start:(s=!0)=>Lt.update(i,s),stop:()=>ga(i),now:()=>fe.isProcessing?fe.timestamp:ge.now()}},Vv=(n,i,s=10)=>{let r="";const u=Math.max(Math.round(i/s),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},to=2e4;function nd(n){let i=0;const s=50;let r=n.next(i);for(;!r.done&&i<to;)i+=s,r=n.next(i);return i>=to?1/0:i}function W4(n,i=100,s){const r=s({...n,keyframes:[0,i]}),u=Math.min(nd(r),to);return{type:"keyframes",ease:f=>r.next(u*f).value/i,duration:Ze(u)}}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};function mf(n,i){return n*Math.sqrt(1-i*i)}const $4=12;function I4(n,i,s){let r=s;for(let u=1;u<$4;u++)r=r-n(r)/i(r);return r}const Pc=.001;function tE({duration:n=Kt.duration,bounce:i=Kt.bounce,velocity:s=Kt.velocity,mass:r=Kt.mass}){let u,f,d=1-i;d=dn(Kt.minDamping,Kt.maxDamping,d),n=dn(Kt.minDuration,Kt.maxDuration,Ze(n)),d<1?(u=g=>{const v=g*d,x=v*n,S=v-s,T=mf(g,d),k=Math.exp(-x);return Pc-S/T*k},f=g=>{const x=g*d*n,S=x*s+s,T=Math.pow(d,2)*Math.pow(g,2)*n,k=Math.exp(-x),N=mf(Math.pow(g,2),d);return(-u(g)+Pc>0?-1:1)*((S-T)*k)/N}):(u=g=>{const v=Math.exp(-g*n),x=(g-s)*n+1;return-Pc+v*x},f=g=>{const v=Math.exp(-g*n),x=(s-g)*(n*n);return v*x});const h=5/n,m=I4(u,f,h);if(n=_e(n),isNaN(m))return{stiffness:Kt.stiffness,damping:Kt.damping,duration:n};{const g=Math.pow(m,2)*r;return{stiffness:g,damping:d*2*Math.sqrt(r*g),duration:n}}}const eE=["duration","bounce"],nE=["stiffness","damping","mass"];function ng(n,i){return i.some(s=>n[s]!==void 0)}function aE(n){let i={velocity:Kt.velocity,stiffness:Kt.stiffness,damping:Kt.damping,mass:Kt.mass,isResolvedFromDuration:!1,...n};if(!ng(n,nE)&&ng(n,eE))if(i.velocity=0,n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*dn(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Kt.mass,stiffness:u,damping:f}}else{const s=tE({...n,velocity:0});i={...i,...s,mass:Kt.mass},i.isResolvedFromDuration=!0}return i}function eo(n=Kt.visualDuration,i=Kt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:g,mass:v,duration:x,velocity:S,isResolvedFromDuration:T}=aE({...s,velocity:-Ze(s.velocity||0)}),k=S||0,N=g/(2*Math.sqrt(m*v)),j=d-f,D=Ze(Math.sqrt(m/v)),H=Math.abs(j)<5;r||(r=H?Kt.restSpeed.granular:Kt.restSpeed.default),u||(u=H?Kt.restDelta.granular:Kt.restDelta.default);let L,X,Q,it,F,Y;if(N<1)Q=mf(D,N),it=(k+N*D*j)/Q,L=tt=>{const mt=Math.exp(-N*D*tt);return d-mt*(it*Math.sin(Q*tt)+j*Math.cos(Q*tt))},F=N*D*it+j*Q,Y=N*D*j-it*Q,X=tt=>Math.exp(-N*D*tt)*(F*Math.sin(Q*tt)+Y*Math.cos(Q*tt));else if(N===1){L=mt=>d-Math.exp(-D*mt)*(j+(k+D*j)*mt);const tt=k+D*j;X=mt=>Math.exp(-D*mt)*(D*tt*mt-k)}else{const tt=D*Math.sqrt(N*N-1);L=_t=>{const vt=Math.exp(-N*D*_t),_=Math.min(tt*_t,300);return d-vt*((k+N*D*j)*Math.sinh(_)+tt*j*Math.cosh(_))/tt};const mt=(k+N*D*j)/tt,gt=N*D*mt-j*tt,Yt=N*D*j-mt*tt;X=_t=>{const vt=Math.exp(-N*D*_t),_=Math.min(tt*_t,300);return vt*(gt*Math.sinh(_)+Yt*Math.cosh(_))}}const W={calculatedDuration:T&&x||null,velocity:tt=>_e(X(tt)),next:tt=>{if(!T&&N<1){const gt=Math.exp(-N*D*tt),Yt=Math.sin(Q*tt),_t=Math.cos(Q*tt),vt=d-gt*(it*Yt+j*_t),_=_e(gt*(F*Yt+Y*_t));return h.done=Math.abs(_)<=r&&Math.abs(d-vt)<=u,h.value=h.done?d:vt,h}const mt=L(tt);if(T)h.done=tt>=x;else{const gt=_e(X(tt));h.done=Math.abs(gt)<=r&&Math.abs(d-mt)<=u}return h.value=h.done?d:mt,h},toString:()=>{const tt=Math.min(nd(W),to),mt=Vv(gt=>W.next(tt*gt).value,tt,30);return tt+"ms "+mt},toTransition:()=>{}};return W}eo.applyToOptions=n=>{const i=W4(n,100,eo);return n.ease=i.ease,n.duration=_e(i.duration),n.type="keyframes",n};const iE=5;function Lv(n,i,s){const r=Math.max(i-iE,0);return gv(s-n(r),i-r)}function pf({keyframes:n,velocity:i=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:m,restDelta:g=.5,restSpeed:v}){const x=n[0],S={done:!1,value:x},T=Y=>h!==void 0&&Y<h||m!==void 0&&Y>m,k=Y=>h===void 0?m:m===void 0||Math.abs(h-Y)<Math.abs(m-Y)?h:m;let N=s*i;const j=x+N,D=d===void 0?j:d(j);D!==j&&(N=D-x);const H=Y=>-N*Math.exp(-Y/r),L=Y=>D+H(Y),X=Y=>{const W=H(Y),tt=L(Y);S.done=Math.abs(W)<=g,S.value=S.done?D:tt};let Q,it;const F=Y=>{T(S.value)&&(Q=Y,it=eo({keyframes:[S.value,k(S.value)],velocity:Lv(L,Y,S.value),damping:u,stiffness:f,restDelta:g,restSpeed:v}))};return F(0),{calculatedDuration:null,next:Y=>{let W=!1;return!it&&Q===void 0&&(W=!0,X(Y),F(Y)),Q!==void 0&&Y>=Q?it.next(Y-Q):(!W&&X(Y),S)}}}function lE(n,i,s){const r=[],u=s||pa.mix||_v,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(i){const m=Array.isArray(i)?i[d]||Pe:i;h=os(m,h)}r.push(h)}return r}function sE(n,i,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(Pf(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const h=lE(i,r,u),m=h.length,g=v=>{if(d&&v<n[0])return i[0];let x=0;if(m>1)for(;x<n.length-2&&!(v<n[x+1]);x++);const S=ts(n[x],n[x+1],v);return h[x](S)};return s?v=>g(dn(n[0],n[f-1],v)):g}function rE(n,i){const s=n[n.length-1];for(let r=1;r<=i;r++){const u=ts(0,i,r);n.push(qt(s,1,u))}}function oE(n){const i=[0];return rE(i,n.length-1),i}function uE(n,i){return n.map(s=>s*i)}function cE(n,i){return n.map(()=>i||Mv).splice(0,n.length-1)}function Fl({duration:n=300,keyframes:i,times:s,ease:r="easeInOut"}){const u=v4(r)?r.map(Jp):Jp(r),f={done:!1,value:i[0]},d=uE(s&&s.length===i.length?s:oE(i),n),h=sE(d,i,{ease:Array.isArray(u)?u:cE(i,u)});return{calculatedDuration:n,next:m=>(f.value=h(m),f.done=m>=n,f)}}const fE=n=>n!==null;function ad(n,{repeat:i,repeatType:s="loop"},r,u=1){const f=n.filter(fE),h=u<0||i&&s!=="loop"&&i%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const dE={decay:pf,inertia:pf,tween:Fl,keyframes:Fl,spring:eo};function Bv(n){typeof n.type=="string"&&(n.type=dE[n.type])}class id{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 hE=n=>n/100;class ld extends id{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,u;const{motionValue:s}=this.options;s&&s.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(r=this.options).onStop)==null||u.call(r))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Bv(i);const{type:s=Fl,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=i;let{keyframes:h}=i;const m=s||Fl;m!==Fl&&typeof h[0]!="number"&&(this.mixKeyframes=os(hE,_v(h[0],h[1])),h=[0,100]);const g=m({...i,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...i,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=nd(g));const{calculatedDuration:v}=g;this.calculatedDuration=v,this.resolvedDuration=v+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=g}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:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:T,type:k,onUpdate:N,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-u/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const D=this.currentTime-g*(this.playbackSpeed>=0?1:-1),H=this.playbackSpeed>=0?D<0:D>u;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let L=this.currentTime,X=r;if(x){const Y=Math.min(this.currentTime,u)/h;let W=Math.floor(Y),tt=Y%1;!tt&&Y>=1&&(tt=1),tt===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(tt=1-tt,T&&(tt-=T/h)):S==="mirror"&&(X=d)),L=dn(0,1,tt)*h}const Q=H?{done:!1,value:v[0]}:X.next(L);f&&!H&&(Q.value=f(Q.value));let{done:it}=Q;!H&&m!==null&&(it=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return F&&k!==pf&&(Q.value=ad(v,this.options,j,this.speed)),N&&N(Q.value),F&&this.finish(),Q}then(i,s){return this.finished.then(i,s)}get duration(){return Ze(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ze(i)}get time(){return Ze(this.currentTime)}set time(i){i=_e(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const s=this.generator.next(i).value;return Lv(r=>this.generator.next(r).value,i,s)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;s&&this.driver&&this.updateTime(ge.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=Ze(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:i=J4,startTime:s}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),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(ge.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 mE(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const Xa=n=>n*180/Math.PI,gf=n=>{const i=Xa(Math.atan2(n[1],n[0]));return yf(i)},pE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:gf,rotateZ:gf,skewX:n=>Xa(Math.atan(n[1])),skewY:n=>Xa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},yf=n=>(n=n%360,n<0&&(n+=360),n),ag=gf,ig=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),lg=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),gE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ig,scaleY:lg,scale:n=>(ig(n)+lg(n))/2,rotateX:n=>yf(Xa(Math.atan2(n[6],n[5]))),rotateY:n=>yf(Xa(Math.atan2(-n[2],n[0]))),rotateZ:ag,rotate:ag,skewX:n=>Xa(Math.atan(n[4])),skewY:n=>Xa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function vf(n){return n.includes("scale")?1:0}function xf(n,i){if(!n||n==="none")return vf(i);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=gE,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=pE,u=h}if(!u)return vf(i);const f=r[i],d=u[1].split(",").map(vE);return typeof f=="function"?f(d):d[f]}const yE=(n,i)=>{const{transform:s="none"}=getComputedStyle(n);return xf(s,i)};function vE(n){return parseFloat(n.trim())}const Qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ki=new Set(Qi),sg=n=>n===Xi||n===nt,xE=new Set(["x","y","z"]),bE=Qi.filter(n=>!xE.has(n));function SE(n){const i=[];return bE.forEach(s=>{const r=n.getValue(s);r!==void 0&&(i.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),i}const ma={width:({x:n},{paddingLeft:i="0",paddingRight:s="0",boxSizing:r})=>{const u=n.max-n.min;return r==="border-box"?u:u-parseFloat(i)-parseFloat(s)},height:({y:n},{paddingTop:i="0",paddingBottom:s="0",boxSizing:r})=>{const u=n.max-n.min;return r==="border-box"?u:u-parseFloat(i)-parseFloat(s)},top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>xf(i,"x"),y:(n,{transform:i})=>xf(i,"y")};ma.translateX=ma.x;ma.translateY=ma.y;const Qa=new Set;let bf=!1,Sf=!1,wf=!1;function Uv(){if(Sf){const n=Array.from(Qa).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),s=new Map;i.forEach(r=>{const u=SE(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([f,d])=>{var h;(h=r.getValue(f))==null||h.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sf=!1,bf=!1,Qa.forEach(n=>n.complete(wf)),Qa.clear()}function Hv(){Qa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Sf=!0)})}function wE(){wf=!0,Hv(),Uv(),wf=!1}class sd{constructor(i,s,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Qa.add(this),bf||(bf=!0,Lt.read(Hv),Lt.resolveKeyframes(Uv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:r,motionValue:u}=this;if(i[0]===null){const f=u==null?void 0:u.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&s){const h=r.readValue(s,d);h!=null&&(i[0]=h)}i[0]===void 0&&(i[0]=d),u&&f===void 0&&u.set(i[0])}mE(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Qa.delete(this)}cancel(){this.state==="scheduled"&&(Qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const TE=n=>n.startsWith("--");function Yv(n,i,s){TE(i)?n.style.setProperty(i,s):n.style[i]=s}const EE={};function qv(n,i){const s=pv(n);return()=>EE[i]??s()}const ME=qv(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Gv=qv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zl=([n,i,s,r])=>`cubic-bezier(${n}, ${i}, ${s}, ${r})`,rg={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 Xv(n,i){if(n)return typeof n=="function"?Gv()?Vv(n,i):"ease-out":Av(n)?Zl(n):Array.isArray(n)?n.map(s=>Xv(s,i)||rg.easeOut):rg[n]}function AE(n,i,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:m}={},g=void 0){const v={[i]:s};m&&(v.offset=m);const x=Xv(h,u);Array.isArray(x)&&(v.easing=x);const S={delay:r,duration:u,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),n.animate(v,S)}function Qv(n){return typeof n=="function"&&"applyToOptions"in n}function kE({type:n,...i}){return Qv(n)&&Gv()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Kv extends id{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Pf(typeof i.type!="string");const g=kE(i);this.animation=AE(s,r,u,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=ad(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Yv(s,r,v),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 s,r,u;const i=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((u=(r=this.animation).commitStyles)==null||u.call(r))}get duration(){var s,r;const i=((r=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:r.call(s).duration)||0;return Ze(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ze(i)}get time(){return Ze(Number(this.animation.currentTime)||0)}set time(i){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_e(i),s&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:s,rangeEnd:r,observe:u}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&ME()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),r&&(this.animation.rangeEnd=r),Pe):u(this)}}const Zv={anticipate:wv,backInOut:Sv,circInOut:Ev};function NE(n){return n in Zv}function CE(n){typeof n.ease=="string"&&NE(n.ease)&&(n.ease=Zv[n.ease])}const Fc=10;class jE extends Kv{constructor(i){CE(i),Bv(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const h=new ld({...d,autoplay:!1}),m=Math.max(Fc,ge.now()-this.startTime),g=dn(0,Fc,m-Fc),v=h.sample(m).value,{name:x}=this.options;f&&x&&Yv(f,x,v),s.setWithVelocity(h.sample(Math.max(0,m-g)).value,v,g),h.stop()}}const og=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(en.test(n)||n==="0")&&!n.startsWith("url("));function DE(n){const i=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==i)return!0}function RE(n,i,s,r){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=og(u,i),h=og(f,i);return!d||!h?!1:DE(n)||(s==="spring"||Qv(s))&&r}function Tf(n){n.duration=0,n.type="keyframes"}const OE=new Set(["opacity","clipPath","filter","transform"]),zE=pv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _E(n){var v;const{motionValue:i,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(((v=i==null?void 0:i.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=i.owner.getProps();return zE()&&s&&OE.has(s)&&(s!=="transform"||!g)&&!m&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const VE=40;class LE extends id{constructor({autoplay:i=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:m,motionValue:g,element:v,...x}){var k;super(),this.stop=()=>{var N,j;this._animation&&(this._animation.stop(),(N=this.stopTimeline)==null||N.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=ge.now();const S={autoplay:i,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:m,motionValue:g,element:v,...x},T=(v==null?void 0:v.KeyframeResolver)||sd;this.keyframeResolver=new T(h,(N,j,D)=>this.onKeyframesResolved(N,j,S,!D),m,g,v),(k=this.keyframeResolver)==null||k.scheduleResolve()}onKeyframesResolved(i,s,r,u){var D,H;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:m,isHandoff:g,onUpdate:v}=r;this.resolvedAt=ge.now();let x=!0;RE(i,f,d,h)||(x=!1,(pa.instantAnimations||!m)&&(v==null||v(ad(i,r,s))),i[0]=i[i.length-1],Tf(r),r.repeat=0);const T={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>VE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:i},k=x&&!g&&_E(T),N=(H=(D=T.motionValue)==null?void 0:D.owner)==null?void 0:H.current,j=k?new jE({...T,element:N}):new ld(T);j.finished.then(()=>{this.notifyFinished()}).catch(Pe),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}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(),wE()),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()}}function Pv(n,i,s,r=0,u=1){const f=Array.from(n).sort((g,v)=>g.sortNodePosition(v)).indexOf(i),d=n.size,h=(d-1)*r;return typeof s=="function"?s(f,d):u===1?f*r:h-f*r}const BE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UE(n){const i=BE.exec(n);if(!i)return[,];const[,s,r,u]=i;return[`--${s??r}`,u]}function Fv(n,i,s=1){const[r,u]=UE(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return dv(d)?parseFloat(d):d}return $f(u)?Fv(u,i,s+1):u}const HE={type:"spring",stiffness:500,damping:25,restSpeed:10},YE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),qE={type:"keyframes",duration:.8},GE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XE=(n,{keyframes:i})=>i.length>2?qE:Ki.has(n)?n.startsWith("scale")?YE(i[1]):HE:GE,QE=n=>n!==null;function KE(n,{repeat:i,repeatType:s="loop"},r){const u=n.filter(QE),f=i&&s!=="loop"&&i%2===1?0:u.length-1;return u[f]}function Jv(n,i){if(n!=null&&n.inherit&&i){const{inherit:s,...r}=n;return{...i,...r}}return n}function rd(n,i){const s=(n==null?void 0:n[i])??(n==null?void 0:n.default)??n;return s!==n?Jv(s,n):s}function ZE({when:n,delay:i,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const od=(n,i,s,r={},u,f)=>d=>{const h=rd(r,n)||{},m=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-_e(m);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-g,onUpdate:S=>{i.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:f?void 0:u};ZE(h)||Object.assign(v,XE(n,v)),v.duration&&(v.duration=_e(v.duration)),v.repeatDelay&&(v.repeatDelay=_e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Tf(v),v.delay===0&&(x=!0)),(pa.instantAnimations||pa.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(x=!0,Tf(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,x&&!f&&i.get()!==void 0){const S=KE(v.keyframes,h);if(S!==void 0){Lt.update(()=>{v.onUpdate(S),v.onComplete()});return}}return h.isSync?new ld(v):new LE(v)};function ug(n){const i=[{},{}];return n==null||n.values.forEach((s,r)=>{i[0][r]=s.get(),i[1][r]=s.getVelocity()}),i}function ud(n,i,s,r){if(typeof i=="function"){const[u,f]=ug(r);i=i(s!==void 0?s:n.custom,u,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,f]=ug(r);i=i(s!==void 0?s:n.custom,u,f)}return i}function Ka(n,i,s){const r=n.getProps();return ud(r,i,s!==void 0?s:r.custom,n)}const Wv=new Set(["width","height","top","left","right","bottom",...Qi]),cg=30,PE=n=>!isNaN(parseFloat(n));class FE{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const u=ge.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ge.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=PE(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 Ff);const r=this.events[i].add(s);return i==="change"?()=>{r(),Lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}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=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>cg)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,cg);return gv(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 Yi(n,i){return new FE(n,i)}const Ef=n=>Array.isArray(n);function JE(n,i,s){n.hasValue(i)?n.getValue(i).set(s):n.addValue(i,Yi(s))}function WE(n){return Ef(n)?n[n.length-1]||0:n}function $E(n,i){const s=Ka(n,i);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const h=WE(f[d]);JE(n,d,h)}}const de=n=>!!(n&&n.getVelocity);function IE(n){return!!(de(n)&&n.add)}function Mf(n,i){const s=n.getValue("willChange");if(IE(s))return s.add(i);if(!s&&pa.WillChange){const r=new pa.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function cd(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const t3="framerAppearId",$v="data-"+cd(t3);function Iv(n){return n.props[$v]}function e3({protectedKeys:n,needsAnimating:i},s){const r=n.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,r}function tx(n,i,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:f,transitionEnd:d,...h}=i;const m=n.getDefaultTransition();f=f?Jv(f,m):m;const g=f==null?void 0:f.reduceMotion;r&&(f=r);const v=[],x=u&&n.animationState&&n.animationState.getState()[u];for(const S in h){const T=n.getValue(S,n.latestValues[S]??null),k=h[S];if(k===void 0||x&&e3(x,S))continue;const N={delay:s,...rd(f||{},S)},j=T.get();if(j!==void 0&&!T.isAnimating&&!Array.isArray(k)&&k===j&&!N.velocity)continue;let D=!1;if(window.MotionHandoffAnimation){const X=Iv(n);if(X){const Q=window.MotionHandoffAnimation(X,S,Lt);Q!==null&&(N.startTime=Q,D=!0)}}Mf(n,S);const H=g??n.shouldReduceMotion;T.start(od(S,T,k,H&&Wv.has(S)?{type:!1}:N,n,D));const L=T.animation;L&&v.push(L)}if(d){const S=()=>Lt.update(()=>{d&&$E(n,d)});v.length?Promise.all(v).then(S):S()}return v}function Af(n,i,s={}){var m;const r=Ka(n,i,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(tx(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:x,staggerDirection:S}=u;return n3(n,i,g,v,x,S,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[g,v]=h==="beforeChildren"?[f,d]:[d,f];return g().then(()=>v())}else return Promise.all([f(),d(s.delay)])}function n3(n,i,s=0,r=0,u=0,f=1,d){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",i),h.push(Af(m,i,{...d,delay:s+(typeof r=="function"?0:r)+Pv(n.variantChildren,m,r,u,f)}).then(()=>m.notify("AnimationComplete",i)));return Promise.all(h)}function a3(n,i,s={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const u=i.map(f=>Af(n,f,s));r=Promise.all(u)}else if(typeof i=="string")r=Af(n,i,s);else{const u=typeof i=="function"?Ka(n,i,s.custom):i;r=Promise.all(tx(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",i)})}const i3={test:n=>n==="auto",parse:n=>n},ex=n=>i=>i.test(n),nx=[Xi,nt,cn,da,D4,j4,i3],fg=n=>nx.find(ex(n));function l3(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||mv(n):!0}const s3=new Set(["brightness","contrast","saturate","opacity"]);function r3(n){const[i,s]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=s.match(If)||[];if(!r)return n;const u=s.replace(r,"");let f=s3.has(i)?1:0;return r!==s&&(f*=100),i+"("+f+u+")"}const o3=/\b([a-z-]*)\(.*?\)/gu,kf={...en,getAnimatableNone:n=>{const i=n.match(o3);return i?i.map(r3).join(" "):n}},Nf={...en,getAnimatableNone:n=>{const i=en.parse(n);return en.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},dg={...Xi,transform:Math.round},u3={rotate:da,rotateX:da,rotateY:da,rotateZ:da,scale:Or,scaleX:Or,scaleY:Or,scaleZ:Or,skew:da,skewX:da,skewY:da,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:es,originX:$p,originY:$p,originZ:nt},fd={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,inset:nt,insetBlock:nt,insetBlockStart:nt,insetBlockEnd:nt,insetInline:nt,insetInlineStart:nt,insetInlineEnd:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,paddingBlock:nt,paddingBlockStart:nt,paddingBlockEnd:nt,paddingInline:nt,paddingInlineStart:nt,paddingInlineEnd:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,marginBlock:nt,marginBlockStart:nt,marginBlockEnd:nt,marginInline:nt,marginInlineStart:nt,marginInlineEnd:nt,fontSize:nt,backgroundPositionX:nt,backgroundPositionY:nt,...u3,zIndex:dg,fillOpacity:es,strokeOpacity:es,numOctaves:dg},c3={...fd,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:kf,WebkitFilter:kf,mask:Nf,WebkitMask:Nf},ax=n=>c3[n],f3=new Set([kf,Nf]);function ix(n,i){let s=ax(n);return f3.has(s)||(s=en),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const d3=new Set(["auto","none","0"]);function h3(n,i,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!d3.has(f)&&Hi(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of i)n[f]=ix(s,u)}class m3 extends sd{constructor(i,s,r,u,f){super(i,s,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let x=i[v];if(typeof x=="string"&&(x=x.trim(),$f(x))){const S=Fv(x,s.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Wv.has(r)||i.length!==2)return;const[u,f]=i,d=fg(u),h=fg(f),m=Wp(u),g=Wp(f);if(m!==g&&ma[r]){this.needsMeasurement=!0;return}if(d!==h)if(sg(d)&&sg(h))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ma[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,r=[];for(let u=0;u<i.length;u++)(i[u]===null||l3(i[u]))&&r.push(u);r.length&&h3(i,r,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ma[r](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&i.getValue(r,u).jump(u,!1)}measureEndState(){var h;const{element:i,name:s,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const u=i.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=ma[s](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,g])=>{i.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const p3=new Set(["opacity","clipPath","filter","transform"]);function lx(n,i,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=(s==null?void 0:s[n])??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(r=>r!=null)}const sx=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function Hr(n){return hv(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:dd}=kv(queueMicrotask,!1),tn={x:!1,y:!1};function rx(){return tn.x||tn.y}function g3(n){return n==="x"||n==="y"?tn[n]?null:(tn[n]=!0,()=>{tn[n]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}function ox(n,i){const s=lx(n),r=new AbortController,u={passive:!0,...i,signal:r.signal};return[s,u,()=>r.abort()]}function y3(n){return!(n.pointerType==="touch"||rx())}function v3(n,i,s={}){const[r,u,f]=ox(n,s);return r.forEach(d=>{let h=!1,m=!1,g;const v=()=>{d.removeEventListener("pointerleave",k)},x=j=>{g&&(g(j),g=void 0),v()},S=j=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),m&&(m=!1,x(j))},T=()=>{h=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},k=j=>{if(j.pointerType!=="touch"){if(h){m=!0;return}x(j)}},N=j=>{if(!y3(j))return;m=!1;const D=i(d,j);typeof D=="function"&&(g=D,d.addEventListener("pointerleave",k,u))};d.addEventListener("pointerenter",N,u),d.addEventListener("pointerdown",T,u)}),f}const ux=(n,i)=>i?n===i?!0:ux(n,i.parentElement):!1,hd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,x3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function b3(n){return x3.has(n.tagName)||n.isContentEditable===!0}const S3=new Set(["INPUT","SELECT","TEXTAREA"]);function w3(n){return S3.has(n.tagName)||n.isContentEditable===!0}const Yr=new WeakSet;function hg(n){return i=>{i.key==="Enter"&&n(i)}}function Jc(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const T3=(n,i)=>{const s=n.currentTarget;if(!s)return;const r=hg(()=>{if(Yr.has(s))return;Jc(s,"down");const u=hg(()=>{Jc(s,"up")}),f=()=>Jc(s,"cancel");s.addEventListener("keyup",u,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",r,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),i)};function mg(n){return hd(n)&&!rx()}const pg=new WeakSet;function E3(n,i,s={}){const[r,u,f]=ox(n,s),d=h=>{const m=h.currentTarget;if(!mg(h)||pg.has(h))return;Yr.add(m),s.stopPropagation&&pg.add(h);const g=i(m,h),v=(T,k)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Yr.has(m)&&Yr.delete(m),mg(T)&&typeof g=="function"&&g(T,{success:k})},x=T=>{v(T,m===window||m===document||s.useGlobalTarget||ux(m,T.target))},S=T=>{v(T,!1)};window.addEventListener("pointerup",x,u),window.addEventListener("pointercancel",S,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Hr(h)&&(h.addEventListener("focus",g=>T3(g,u)),!b3(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function md(n){return hv(n)&&"ownerSVGElement"in n}const qr=new WeakMap;let ha;const cx=(n,i,s)=>(r,u)=>u&&u[0]?u[0][n+"Size"]:md(r)&&"getBBox"in r?r.getBBox()[i]:r[s],M3=cx("inline","width","offsetWidth"),A3=cx("block","height","offsetHeight");function k3({target:n,borderBoxSize:i}){var s;(s=qr.get(n))==null||s.forEach(r=>{r(n,{get width(){return M3(n,i)},get height(){return A3(n,i)}})})}function N3(n){n.forEach(k3)}function C3(){typeof ResizeObserver>"u"||(ha=new ResizeObserver(N3))}function j3(n,i){ha||C3();const s=lx(n);return s.forEach(r=>{let u=qr.get(r);u||(u=new Set,qr.set(r,u)),u.add(i),ha==null||ha.observe(r)}),()=>{s.forEach(r=>{const u=qr.get(r);u==null||u.delete(i),u!=null&&u.size||ha==null||ha.unobserve(r)})}}const Gr=new Set;let Vi;function D3(){Vi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gr.forEach(i=>i(n))},window.addEventListener("resize",Vi)}function R3(n){return Gr.add(n),Vi||D3(),()=>{Gr.delete(n),!Gr.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function gg(n,i){return typeof n=="function"?R3(n):j3(n,i)}function O3(n){return md(n)&&n.tagName==="svg"}const z3=[...nx,It,en],_3=n=>z3.find(ex(n)),yg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Li=()=>({x:yg(),y:yg()}),vg=()=>({min:0,max:0}),ne=()=>({x:vg(),y:vg()}),V3=new WeakMap;function co(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function ns(n){return typeof n=="string"||Array.isArray(n)}const pd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gd=["initial",...pd];function fo(n){return co(n.animate)||gd.some(i=>ns(n[i]))}function fx(n){return!!(fo(n)||n.variants)}function L3(n,i,s){for(const r in i){const u=i[r],f=s[r];if(de(u))n.addValue(r,u);else if(de(f))n.addValue(r,Yi(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(r);n.addValue(r,Yi(d!==void 0?d:u,{owner:n}))}}for(const r in s)i[r]===void 0&&n.removeValue(r);return i}const Cf={current:null},dx={current:!1},B3=typeof window<"u";function U3(){if(dx.current=!0,!!B3)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>Cf.current=n.matches;n.addEventListener("change",i),i()}else Cf.current=!1}const xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let no={};function hx(n){no=n}function H3(){return no}class Y3{scrapeMotionValuesFromProps(i,s,r){return{}}constructor({parent:i,props:s,presenceContext:r,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:d,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=ge.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Lt.render(this.render,!1,!0))};const{latestValues:g,renderState:v}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=v,this.parent=i,this.props=s,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=fo(s),this.isVariantNode=fx(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const T in S){const k=S[T];g[T]!==void 0&&de(k)&&k.set(g[T])}}mount(i){var s,r;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=i,V3.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((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dx.current||U3(),this.shouldReduceMotion=Cf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),ga(this.notifyUpdate),ga(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 r=this.features[s];r&&(r.unmount(),r.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){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&p3.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:m,ease:g,duration:v}=s.accelerate,x=new Kv({element:this.current,name:i,keyframes:h,times:m,ease:g,duration:_e(v)}),S=d(x);this.valueSubscriptions.set(i,()=>{S(),x.cancel()});return}const r=Ki.has(i);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Lt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{u(),f&&f(),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 no){const s=no[i];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[i]&&u&&r(this.props)&&(this.features[i]=new u(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ne()}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 r=0;r<xg.length;r++){const u=xg[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=i[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=L3(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 r=this.values.get(i);s!==r&&(r&&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 r=this.values.get(i);return r===void 0&&s!==void 0&&(r=Yi(s===null?void 0:s,{owner:this}),this.addValue(i,r)),r}readValue(i,s){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(dv(r)||mv(r))?r=parseFloat(r):!_3(r)&&en.test(s)&&(r=ix(i,s)),this.setBaseTarget(i,de(r)?r.get():r)),de(r)?r.get():r}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var f;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const d=ud(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);d&&(r=d[i])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,i);return u!==void 0&&!de(u)?u:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new Ff),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){dd.render(this.render)}}class mx extends Y3{constructor(){super(...arguments),this.KeyframeResolver=m3}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const r=i.style;return r?r[s]:void 0}removeValueFromRenderState(i,{vars:s,style:r}){delete s[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;de(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class xa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function px({top:n,left:i,right:s,bottom:r}){return{x:{min:i,max:s},y:{min:n,max:r}}}function q3({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function G3(n,i){if(!i)return n;const s=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function Wc(n){return n===void 0||n===1}function jf({scale:n,scaleX:i,scaleY:s}){return!Wc(n)||!Wc(i)||!Wc(s)}function Ya(n){return jf(n)||gx(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function gx(n){return bg(n.x)||bg(n.y)}function bg(n){return n&&n!=="0%"}function ao(n,i,s){const r=n-s,u=i*r;return s+u}function Sg(n,i,s,r,u){return u!==void 0&&(n=ao(n,u,r)),ao(n,s,r)+i}function Df(n,i=0,s=1,r,u){n.min=Sg(n.min,i,s,r,u),n.max=Sg(n.max,i,s,r,u)}function yx(n,{x:i,y:s}){Df(n.x,i.translate,i.scale,i.originPoint),Df(n.y,s.translate,s.scale,s.originPoint)}const wg=.999999999999,Tg=1.0000000000001;function X3(n,i,s,r=!1){var h;const u=s.length;if(!u)return;i.x=i.y=1;let f,d;for(let m=0;m<u;m++){f=s[m],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ui(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,yx(n,d)),r&&Ya(f.latestValues)&&Ui(n,f.latestValues,(h=f.layout)==null?void 0:h.layoutBox))}i.x<Tg&&i.x>wg&&(i.x=1),i.y<Tg&&i.y>wg&&(i.y=1)}function Bi(n,i){n.min=n.min+i,n.max=n.max+i}function Eg(n,i,s,r,u=.5){const f=qt(n.min,n.max,u);Df(n,i,s,f,r)}function Mg(n,i){return typeof n=="string"?parseFloat(n)/100*(i.max-i.min):n}function Ui(n,i,s){const r=s??n;Eg(n.x,Mg(i.x,r.x),i.scaleX,i.scale,i.originX),Eg(n.y,Mg(i.y,r.y),i.scaleY,i.scale,i.originY)}function vx(n,i){return px(G3(n.getBoundingClientRect(),i))}function Q3(n,i,s){const r=vx(n,s),{scroll:u}=i;return u&&(Bi(r.x,u.offset.x),Bi(r.y,u.offset.y)),r}const K3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z3=Qi.length;function P3(n,i,s){let r="",u=!0;for(let f=0;f<Z3;f++){const d=Qi[f],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(d.startsWith("scale")?1:0);else{const g=parseFloat(h);m=d.startsWith("scale")?g===1:g===0}if(!m||s){const g=sx(h,fd[d]);if(!m){u=!1;const v=K3[d]||d;r+=`${v}(${g}) `}s&&(i[d]=g)}}return r=r.trim(),s?r=s(i,u?"":r):u&&(r="none"),r}function yd(n,i,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const m in i){const g=i[m];if(Ki.has(m)){d=!0;continue}else if(Cv(m)){u[m]=g;continue}else{const v=sx(g,fd[m]);m.startsWith("origin")?(h=!0,f[m]=v):r[m]=v}}if(i.transform||(d||s?r.transform=P3(i,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:v=0}=f;r.transformOrigin=`${m} ${g} ${v}`}}function xx(n,{style:i,vars:s},r,u){const f=n.style;let d;for(d in i)f[d]=i[d];u==null||u.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function Ag(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const Xl={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(nt.test(n))n=parseFloat(n);else return n;const s=Ag(n,i.target.x),r=Ag(n,i.target.y);return`${s}% ${r}%`}},F3={correct:(n,{treeScale:i,projectionDelta:s})=>{const r=n,u=en.parse(n);if(u.length>5)return r;const f=en.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*i.x,m=s.y.scale*i.y;u[0+d]/=h,u[1+d]/=m;const g=qt(h,m,.5);return typeof u[2+d]=="number"&&(u[2+d]/=g),typeof u[3+d]=="number"&&(u[3+d]/=g),f(u)}},Rf={borderRadius:{...Xl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xl,borderTopRightRadius:Xl,borderBottomLeftRadius:Xl,borderBottomRightRadius:Xl,boxShadow:F3};function bx(n,{layout:i,layoutId:s}){return Ki.has(n)||n.startsWith("origin")||(i||s!==void 0)&&(!!Rf[n]||n==="opacity")}function vd(n,i,s){var d;const r=n.style,u=i==null?void 0:i.style,f={};if(!r)return f;for(const h in r)(de(r[h])||u&&de(u[h])||bx(h,n)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=r[h]);return f}function J3(n){return window.getComputedStyle(n)}class W3 extends mx{constructor(){super(...arguments),this.type="html",this.renderInstance=xx}readValueFromInstance(i,s){var r;if(Ki.has(s))return(r=this.projection)!=null&&r.isProjecting?vf(s):yE(i,s);{const u=J3(i),f=(Cv(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(i,{transformPagePoint:s}){return vx(i,s)}build(i,s,r){yd(i,s,r.transformTemplate)}scrapeMotionValuesFromProps(i,s,r){return vd(i,s,r)}}const $3={offset:"stroke-dashoffset",array:"stroke-dasharray"},I3={offset:"strokeDashoffset",array:"strokeDasharray"};function tM(n,i,s=1,r=0,u=!0){n.pathLength=1;const f=u?$3:I3;n[f.offset]=`${-r}`,n[f.array]=`${i} ${s}`}const eM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sx(n,{attrX:i,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},m,g,v){if(yd(n,h,g),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:S}=n;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete x.transformBox);for(const T of eM)x[T]!==void 0&&(S[T]=x[T],delete x[T]);i!==void 0&&(x.x=i),s!==void 0&&(x.y=s),r!==void 0&&(x.scale=r),u!==void 0&&tM(x,u,f,d,!1)}const wx=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"]),Tx=n=>typeof n=="string"&&n.toLowerCase()==="svg";function nM(n,i,s,r){xx(n,i,void 0,r);for(const u in i.attrs)n.setAttribute(wx.has(u)?u:cd(u),i.attrs[u])}function Ex(n,i,s){const r=vd(n,i,s);for(const u in n)if(de(n[u])||de(i[u])){const f=Qi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}class aM extends mx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ne}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ki.has(s)){const r=ax(s);return r&&r.default||0}return s=wx.has(s)?s:cd(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,r){return Ex(i,s,r)}build(i,s,r){Sx(i,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,s,r,u){nM(i,s,r,u)}mount(i){this.isSVGTag=Tx(i.tagName),super.mount(i)}}const iM=gd.length;function Mx(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?Mx(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const i={};for(let s=0;s<iM;s++){const r=gd[s],u=n.props[r];(ns(u)||u===!1)&&(i[r]=u)}return i}function Ax(n,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(i[r]!==n[r])return!1;return!0}const lM=[...pd].reverse(),sM=pd.length;function rM(n){return i=>Promise.all(i.map(({animation:s,options:r})=>a3(n,s,r)))}function oM(n){let i=rM(n),s=kg(),r=!0,u=!1;const f=g=>(v,x)=>{var T;const S=Ka(n,x,g==="exit"?(T=n.presenceContext)==null?void 0:T.custom:void 0);if(S){const{transition:k,transitionEnd:N,...j}=S;v={...v,...j,...N}}return v};function d(g){i=g(n)}function h(g){const{props:v}=n,x=Mx(n.parent)||{},S=[],T=new Set;let k={},N=1/0;for(let D=0;D<sM;D++){const H=lM[D],L=s[H],X=v[H]!==void 0?v[H]:x[H],Q=ns(X),it=H===g?L.isActive:null;it===!1&&(N=D);let F=X===x[H]&&X!==v[H]&&Q;if(F&&(r||u)&&n.manuallyAnimateOnMount&&(F=!1),L.protectedKeys={...k},!L.isActive&&it===null||!X&&!L.prevProp||co(X)||typeof X=="boolean")continue;if(H==="exit"&&L.isActive&&it!==!0){L.prevResolvedValues&&(k={...k,...L.prevResolvedValues});continue}const Y=uM(L.prevProp,X);let W=Y||H===g&&L.isActive&&!F&&Q||D>N&&Q,tt=!1;const mt=Array.isArray(X)?X:[X];let gt=mt.reduce(f(H),{});it===!1&&(gt={});const{prevResolvedValues:Yt={}}=L,_t={...Yt,...gt},vt=J=>{W=!0,T.has(J)&&(tt=!0,T.delete(J)),L.needsAnimating[J]=!0;const ct=n.getValue(J);ct&&(ct.liveStyle=!1)};for(const J in _t){const ct=gt[J],K=Yt[J];if(k.hasOwnProperty(J))continue;let E=!1;Ef(ct)&&Ef(K)?E=!Ax(ct,K):E=ct!==K,E?ct!=null?vt(J):T.add(J):ct!==void 0&&T.has(J)?vt(J):L.protectedKeys[J]=!0}L.prevProp=X,L.prevResolvedValues=gt,L.isActive&&(k={...k,...gt}),(r||u)&&n.blockInitialAnimation&&(W=!1);const _=F&&Y;W&&(!_||tt)&&S.push(...mt.map(J=>{const ct={type:H};if(typeof J=="string"&&(r||u)&&!_&&n.manuallyAnimateOnMount&&n.parent){const{parent:K}=n,E=Ka(K,J);if(K.enteringChildren&&E){const{delayChildren:q}=E.transition||{};ct.delay=Pv(K.enteringChildren,n,q)}}return{animation:J,options:ct}}))}if(T.size){const D={};if(typeof v.initial!="boolean"){const H=Ka(n,Array.isArray(v.initial)?v.initial[0]:v.initial);H&&H.transition&&(D.transition=H.transition)}T.forEach(H=>{const L=n.getBaseTarget(H),X=n.getValue(H);X&&(X.liveStyle=!0),D[H]=L??null}),S.push({animation:D})}let j=!!S.length;return r&&(v.initial===!1||v.initial===v.animate)&&!n.manuallyAnimateOnMount&&(j=!1),r=!1,u=!1,j?i(S):Promise.resolve()}function m(g,v){var S;if(s[g].isActive===v)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(T=>{var k;return(k=T.animationState)==null?void 0:k.setActive(g,v)}),s[g].isActive=v;const x=h(g);for(const T in s)s[T].protectedKeys={};return x}return{animateChanges:h,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=kg(),u=!0}}}function uM(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Ax(i,n):!1}function Ua(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kg(){return{animate:Ua(!0),whileInView:Ua(),whileHover:Ua(),whileTap:Ua(),whileDrag:Ua(),whileFocus:Ua(),exit:Ua()}}function Of(n,i){n.min=i.min,n.max=i.max}function Ie(n,i){Of(n.x,i.x),Of(n.y,i.y)}function Ng(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const kx=1e-4,cM=1-kx,fM=1+kx,Nx=.01,dM=0-Nx,hM=0+Nx;function ye(n){return n.max-n.min}function mM(n,i,s){return Math.abs(n-i)<=s}function Cg(n,i,s,r=.5){n.origin=r,n.originPoint=qt(i.min,i.max,n.origin),n.scale=ye(s)/ye(i),n.translate=qt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=cM&&n.scale<=fM||isNaN(n.scale))&&(n.scale=1),(n.translate>=dM&&n.translate<=hM||isNaN(n.translate))&&(n.translate=0)}function Jl(n,i,s,r){Cg(n.x,i.x,s.x,r?r.originX:void 0),Cg(n.y,i.y,s.y,r?r.originY:void 0)}function jg(n,i,s){n.min=s.min+i.min,n.max=n.min+ye(i)}function pM(n,i,s){jg(n.x,i.x,s.x),jg(n.y,i.y,s.y)}function Dg(n,i,s){n.min=i.min-s.min,n.max=n.min+ye(i)}function io(n,i,s){Dg(n.x,i.x,s.x),Dg(n.y,i.y,s.y)}function Rg(n,i,s,r,u){return n-=i,n=ao(n,1/s,r),u!==void 0&&(n=ao(n,1/u,r)),n}function gM(n,i=0,s=1,r=.5,u,f=n,d=n){if(cn.test(i)&&(i=parseFloat(i),i=qt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=qt(f.min,f.max,r);n===f&&(h-=i),n.min=Rg(n.min,i,s,h,u),n.max=Rg(n.max,i,s,h,u)}function Og(n,i,[s,r,u],f,d){gM(n,i[s],i[r],i[u],i.scale,f,d)}const yM=["x","scaleX","originX"],vM=["y","scaleY","originY"];function zg(n,i,s,r){Og(n.x,i,yM,s?s.x:void 0,r?r.x:void 0),Og(n.y,i,vM,s?s.y:void 0,r?r.y:void 0)}function _g(n){return n.translate===0&&n.scale===1}function Cx(n){return _g(n.x)&&_g(n.y)}function Vg(n,i){return n.min===i.min&&n.max===i.max}function xM(n,i){return Vg(n.x,i.x)&&Vg(n.y,i.y)}function Lg(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function jx(n,i){return Lg(n.x,i.x)&&Lg(n.y,i.y)}function Bg(n){return ye(n.x)/ye(n.y)}function Ug(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function on(n){return[n("x"),n("y")]}function bM(n,i,s){let r="";const u=n.x.translate/i.x,f=n.y.translate/i.y,d=(s==null?void 0:s.z)||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:g,rotate:v,rotateX:x,rotateY:S,skewX:T,skewY:k}=s;g&&(r=`perspective(${g}px) ${r}`),v&&(r+=`rotate(${v}deg) `),x&&(r+=`rotateX(${x}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),k&&(r+=`skewY(${k}deg) `)}const h=n.x.scale*i.x,m=n.y.scale*i.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const Dx=["TopLeft","TopRight","BottomLeft","BottomRight"],SM=Dx.length,Hg=n=>typeof n=="string"?parseFloat(n):n,Yg=n=>typeof n=="number"||nt.test(n);function wM(n,i,s,r,u,f){u?(n.opacity=qt(0,s.opacity??1,TM(r)),n.opacityExit=qt(i.opacity??1,0,EM(r))):f&&(n.opacity=qt(i.opacity??1,s.opacity??1,r));for(let d=0;d<SM;d++){const h=`border${Dx[d]}Radius`;let m=qg(i,h),g=qg(s,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Yg(m)===Yg(g)?(n[h]=Math.max(qt(Hg(m),Hg(g),r),0),(cn.test(g)||cn.test(m))&&(n[h]+="%")):n[h]=g}(i.rotate||s.rotate)&&(n.rotate=qt(i.rotate||0,s.rotate||0,r))}function qg(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const TM=Rx(0,.5,Tv),EM=Rx(.5,.95,Pe);function Rx(n,i,s){return r=>r<n?0:r>i?1:s(ts(n,i,r))}function MM(n,i,s){const r=de(n)?n:Yi(n);return r.start(od("",r,i,s)),r.animation}function as(n,i,s,r={passive:!0}){return n.addEventListener(i,s,r),()=>n.removeEventListener(i,s)}const AM=(n,i)=>n.depth-i.depth;class kM{constructor(){this.children=[],this.isDirty=!1}add(i){Zf(this.children,i),this.isDirty=!0}remove(i){$r(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(AM),this.isDirty=!1,this.children.forEach(i)}}function NM(n,i){const s=ge.now(),r=({timestamp:u})=>{const f=u-s;f>=i&&(ga(r),n(f-i))};return Lt.setup(r,!0),()=>ga(r)}function Xr(n){return de(n)?n.get():n}class CM{constructor(){this.members=[]}add(i){Zf(this.members,i);for(let s=this.members.length-1;s>=0;s--){const r=this.members[s];if(r===i||r===this.lead||r===this.prevLead)continue;const u=r.instance;(!u||u.isConnected===!1)&&!r.snapshot&&($r(this.members,r),r.unmount())}i.scheduleRender()}remove(i){if($r(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){var s;for(let r=this.members.indexOf(i)-1;r>=0;r--){const u=this.members[r];if(u.isPresent!==!1&&((s=u.instance)==null?void 0:s.isConnected)!==!1)return this.promote(u),!0}return!1}promote(i,s){var u;const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.updateSnapshot(),i.scheduleRender();const{layoutDependency:f}=r.options,{layoutDependency:d}=i.options;(f===void 0||f!==d)&&(i.resumeFrom=r,s&&(r.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),(u=i.root)!=null&&u.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var s,r,u,f,d;(r=(s=i.options).onExitComplete)==null||r.call(s),(d=(u=i.resumingFrom)==null?void 0:(f=u.options).onExitComplete)==null||d.call(f)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const Qr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$c=["","X","Y","Z"],jM=1e3;let DM=0;function Ic(n,i,s,r){const{latestValues:u}=i;u[n]&&(s[n]=u[n],i.setStaticValue(n,0),r&&(r[n]=0))}function Ox(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const s=Iv(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Lt,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Ox(r)}function zx({attachResizeListener:n,defaultParent:i,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=i==null?void 0:i()){this.id=DM++,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.layoutVersion=0,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(zM),this.nodes.forEach(BM),this.nodes.forEach(UM),this.nodes.forEach(_M)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new kM)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ff),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=md(d)&&!O3(d),this.instance=d;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;Lt.read(()=>{x=window.innerWidth}),n(d,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,v&&v(),v=NM(S,250),Qr.hasAnimatedSinceResize&&(Qr.hasAnimatedSinceResize=!1,this.nodes.forEach(Qg)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||g.getDefaultTransition()||XM,{onLayoutAnimationStart:N,onLayoutAnimationComplete:j}=g.getProps(),D=!this.targetLayout||!jx(this.targetLayout,T),H=!x&&S;if(this.options.layoutRoot||this.resumeFrom||H||x&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...rd(k,"layout"),onPlay:N,onComplete:j};(g.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(v,H)}else x||Qg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ga(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(HM),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ox(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(LM),this.nodes.forEach(RM),this.nodes.forEach(OM)):this.nodes.forEach(Xg),this.clearAllSnapshots();const h=ge.now();fe.delta=dn(0,1e3/60,h-fe.timestamp),fe.timestamp=h,fe.isProcessing=!0,Xc.update.process(fe),Xc.preRender.process(fe),Xc.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(VM),this.sharedNodes.forEach(YM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Cx(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;d&&this.instance&&(h||Ya(this.latestValues)||v)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),QM(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:d}=this.options;if(!d)return ne();const h=d.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(KM))){const{scroll:v}=this.root;v&&(Bi(h.x,v.offset.x),Bi(h.y,v.offset.y))}return h}removeElementScroll(d){var m;const h=ne();if(Ie(h,d),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:x,options:S}=v;v!==this.root&&x&&S.layoutScroll&&(x.wasRoot&&Ie(h,d),Bi(h.x,x.offset.x),Bi(h.y,x.offset.y))}return h}applyTransform(d,h=!1){var g,v;const m=ne();Ie(m,d);for(let x=0;x<this.path.length;x++){const S=this.path[x];!h&&S.options.layoutScroll&&S.scroll&&S!==S.root&&Ui(m,{x:-S.scroll.offset.x,y:-S.scroll.offset.y}),Ya(S.latestValues)&&Ui(m,S.latestValues,(g=S.layout)==null?void 0:g.layoutBox)}return Ya(this.latestValues)&&Ui(m,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),m}removeTransform(d){var m;const h=ne();Ie(h,d);for(let g=0;g<this.path.length;g++){const v=this.path[g];if(!Ya(v.latestValues))continue;let x;v.instance&&(jf(v.latestValues)&&v.updateSnapshot(),x=ne(),Ie(x,v.measurePageBox())),zg(h,v.latestValues,(m=v.snapshot)==null?void 0:m.layoutBox,x)}return Ya(this.latestValues)&&zg(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var T;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=fe.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ne(),this.targetWithTransforms=ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ie(this.target,this.layout.layoutBox),yx(this.target,this.targetDelta)):Ie(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||jf(this.parent.latestValues)||gx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),io(this.relativeTargetOrigin,h,m),Ie(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var k;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(m=!1),m)return;const{layout:g,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||v))return;Ie(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;X3(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ne());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ng(this.prevProjectionDelta.x,this.projectionDelta.x),Ng(this.prevProjectionDelta.y,this.projectionDelta.y)),Jl(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!Ug(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ug(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Li(),this.projectionDelta=Li(),this.projectionDeltaWithTransform=Li()}setAnimationOrigin(d,h=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},x=Li();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=ne(),T=m?m.source:void 0,k=this.layout?this.layout.source:void 0,N=T!==k,j=this.getStack(),D=!j||j.members.length<=1,H=!!(N&&!D&&this.options.crossfade===!0&&!this.path.some(GM));this.animationProgress=0;let L;this.mixTargetDelta=X=>{const Q=X/1e3;Kg(x.x,d.x,Q),Kg(x.y,d.y,Q),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(io(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qM(this.relativeTarget,this.relativeTargetOrigin,S,Q),L&&xM(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=ne()),Ie(L,this.relativeTarget)),N&&(this.animationValues=v,wM(v,g,this.latestValues,Q,H,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(ga(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Lt.update(()=>{Qr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yi(0)),this.motionValue.jump(0,!1),this.currentAnimation=MM(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),d.onUpdate&&d.onUpdate(v)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:v}=d;if(!(!h||!m||!g)){if(this!==d&&this.layout&&g&&_x(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||ne();const x=ye(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+x;const S=ye(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+S}Ie(h,m),Ui(h,v),Jl(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new CM),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&Ic("z",d,g,this.animationValues);for(let v=0;v<$c.length;v++)Ic(`rotate${$c[v]}`,d,g,this.animationValues),Ic(`skew${$c[v]}`,d,g,this.animationValues);d.render();for(const v in g)d.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Xr(h==null?void 0:h.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Xr(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Ya(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=g.animationValues||g.latestValues;this.applyTransformsToTarget();let x=bM(this.projectionDeltaWithTransform,this.treeScale,v);m&&(x=m(v,x)),d.transform=x;const{x:S,y:T}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,g.animationValues?d.opacity=g===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const k in Rf){if(v[k]===void 0)continue;const{correct:N,applyTo:j,isCSSVariable:D}=Rf[k],H=x==="none"?v[k]:N(v[k],g);if(j){const L=j.length;for(let X=0;X<L;X++)d[j[X]]=H}else D?this.options.visualElement.renderState.vars[k]=H:d[k]=H}this.options.layoutId&&(d.pointerEvents=g===this?Xr(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Gg),this.root.sharedNodes.clear()}}}function RM(n){n.updateLayout()}function OM(n){var s;const i=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=n.layout,{animationType:f}=n.options,d=i.source!==n.layout.source;if(f==="size")on(x=>{const S=d?i.measuredBox[x]:i.layoutBox[x],T=ye(S);S.min=r[x].min,S.max=S.min+T});else if(f==="x"||f==="y"){const x=f==="x"?"y":"x";Of(d?i.measuredBox[x]:i.layoutBox[x],r[x])}else _x(f,i.layoutBox,r)&&on(x=>{const S=d?i.measuredBox[x]:i.layoutBox[x],T=ye(r[x]);S.max=S.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+T)});const h=Li();Jl(h,r,i.layoutBox);const m=Li();d?Jl(m,n.applyTransform(u,!0),i.measuredBox):Jl(m,r,i.layoutBox);const g=!Cx(h);let v=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:S,layout:T}=x;if(S&&T){const k=ne();io(k,i.layoutBox,S.layoutBox);const N=ne();io(N,r,T.layoutBox),jx(k,N)||(v=!0),x.options.layoutRoot&&(n.relativeTarget=N,n.relativeTargetOrigin=k,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:i,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function zM(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function _M(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function VM(n){n.clearSnapshot()}function Gg(n){n.clearMeasurements()}function Xg(n){n.isLayoutDirty=!1}function LM(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function Qg(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function BM(n){n.resolveTargetDelta()}function UM(n){n.calcProjection()}function HM(n){n.resetSkewAndRotation()}function YM(n){n.removeLeadSnapshot()}function Kg(n,i,s){n.translate=qt(i.translate,0,s),n.scale=qt(i.scale,1,s),n.origin=i.origin,n.originPoint=i.originPoint}function Zg(n,i,s,r){n.min=qt(i.min,s.min,r),n.max=qt(i.max,s.max,r)}function qM(n,i,s,r){Zg(n.x,i.x,s.x,r),Zg(n.y,i.y,s.y,r)}function GM(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const XM={duration:.45,ease:[.4,0,.1,1]},Pg=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Fg=Pg("applewebkit/")&&!Pg("chrome/")?Math.round:Pe;function Jg(n){n.min=Fg(n.min),n.max=Fg(n.max)}function QM(n){Jg(n.x),Jg(n.y)}function _x(n,i,s){return n==="position"||n==="preserve-aspect"&&!mM(Bg(i),Bg(s),.2)}function KM(n){var i;return n!==n.root&&((i=n.scroll)==null?void 0:i.wasRoot)}const ZM=zx({attachResizeListener:(n,i)=>as(n,"resize",i),measureScroll:()=>{var n,i;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),tf={current:void 0},Vx=zx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!tf.current){const n=new ZM({});n.mount(window),n.setOptions({layoutScroll:!0}),tf.current=n}return tf.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),xd=A.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Wg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function PM(...n){return i=>{let s=!1;const r=n.map(u=>{const f=Wg(u,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Wg(n[u],null)}}}}function FM(...n){return A.useCallback(PM(...n),n)}class JM extends A.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(Hr(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=s.offsetParent,u=Hr(r)&&r.offsetWidth||0,f=Hr(r)&&r.offsetHeight||0,d=getComputedStyle(s),h=this.props.sizeRef.current;h.height=parseFloat(d.height),h.width=parseFloat(d.width),h.top=s.offsetTop,h.left=s.offsetLeft,h.right=u-h.width-h.left,h.bottom=f-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function WM({children:n,isPresent:i,anchorX:s,anchorY:r,root:u,pop:f}){var S;const d=A.useId(),h=A.useRef(null),m=A.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=A.useContext(xd),v=((S=n.props)==null?void 0:S.ref)??(n==null?void 0:n.ref),x=FM(h,v);return A.useInsertionEffect(()=>{const{width:T,height:k,top:N,left:j,right:D,bottom:H}=m.current;if(i||f===!1||!h.current||!T||!k)return;const L=s==="left"?`left: ${j}`:`right: ${D}`,X=r==="bottom"?`bottom: ${H}`:`top: ${N}`;h.current.dataset.motionPopId=d;const Q=document.createElement("style");g&&(Q.nonce=g);const it=u??document.head;return it.appendChild(Q),Q.sheet&&Q.sheet.insertRule(`
[data-motion-pop-id="${d}"] {
position: absolute !important;
width: ${T}px !important;
height: ${k}px !important;
${L}px !important;
${X}px !important;
}
`),()=>{var F;(F=h.current)==null||F.removeAttribute("data-motion-pop-id"),it.contains(Q)&&it.removeChild(Q)}},[i]),y.jsx(JM,{isPresent:i,childRef:h,sizeRef:m,pop:f,children:f===!1?n:A.cloneElement(n,{ref:x})})}const $M=({children:n,initial:i,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:m,root:g})=>{const v=Kf(IM),x=A.useId();let S=!0,T=A.useMemo(()=>(S=!1,{id:x,initial:i,isPresent:s,custom:u,onExitComplete:k=>{v.set(k,!0);for(const N of v.values())if(!N)return;r&&r()},register:k=>(v.set(k,!1),()=>v.delete(k))}),[s,v,r]);return f&&S&&(T={...T}),A.useMemo(()=>{v.forEach((k,N)=>v.set(N,!1))},[s]),A.useEffect(()=>{!s&&!v.size&&r&&r()},[s]),n=y.jsx(WM,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:m,root:g,children:n}),y.jsx(uo.Provider,{value:T,children:n})};function IM(){return new Map}function Lx(n=!0){const i=A.useContext(uo);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=i,f=A.useId();A.useEffect(()=>{if(n)return u(f)},[n]);const d=A.useCallback(()=>n&&r&&r(f),[f,r,n]);return!s&&r?[!1,d]:[!0]}const zr=n=>n.key||"";function $g(n){const i=[];return A.Children.forEach(n,s=>{A.isValidElement(s)&&i.push(s)}),i}const bd=({children:n,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:m="top",root:g})=>{const[v,x]=Lx(d),S=A.useMemo(()=>$g(n),[n]),T=d&&!v?[]:S.map(zr),k=A.useRef(!0),N=A.useRef(S),j=Kf(()=>new Map),D=A.useRef(new Set),[H,L]=A.useState(S),[X,Q]=A.useState(S);fv(()=>{k.current=!1,N.current=S;for(let Y=0;Y<X.length;Y++){const W=zr(X[Y]);T.includes(W)?(j.delete(W),D.current.delete(W)):j.get(W)!==!0&&j.set(W,!1)}},[X,T.length,T.join("-")]);const it=[];if(S!==H){let Y=[...S];for(let W=0;W<X.length;W++){const tt=X[W],mt=zr(tt);T.includes(mt)||(Y.splice(W,0,tt),it.push(tt))}return f==="wait"&&it.length&&(Y=it),Q($g(Y)),L(S),null}const{forceRender:F}=A.useContext(Qf);return y.jsx(y.Fragment,{children:X.map(Y=>{const W=zr(Y),tt=d&&!v?!1:S===X||T.includes(W),mt=()=>{if(D.current.has(W))return;if(j.has(W))D.current.add(W),j.set(W,!0);else return;let gt=!0;j.forEach(Yt=>{Yt||(gt=!1)}),gt&&(F==null||F(),Q(N.current),d&&(x==null||x()),r&&r())};return y.jsx($M,{isPresent:tt,initial:!k.current||s?void 0:!1,custom:i,presenceAffectsLayout:u,mode:f,root:g,onExitComplete:tt?void 0:mt,anchorX:h,anchorY:m,children:Y},W)})})},Bx=A.createContext({strict:!1}),Ig={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"]};let ty=!1;function t5(){if(ty)return;const n={};for(const i in Ig)n[i]={isEnabled:s=>Ig[i].some(r=>!!s[r])};hx(n),ty=!0}function Ux(){return t5(),H3()}function e5(n){const i=Ux();for(const s in n)i[s]={...i[s],...n[s]};hx(i)}const n5=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","propagate","ignoreStrict","viewport"]);function lo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||n5.has(n)}let Hx=n=>!lo(n);function a5(n){typeof n=="function"&&(Hx=i=>i.startsWith("on")?!lo(i):n(i))}try{a5(require("@emotion/is-prop-valid").default)}catch{}function i5(n,i,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||de(n[u])||(Hx(u)||s===!0&&lo(u)||!i&&!lo(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const ho=A.createContext({});function l5(n,i){if(fo(n)){const{initial:s,animate:r}=n;return{initial:s===!1||ns(s)?s:void 0,animate:ns(r)?r:void 0}}return n.inherit!==!1?i:{}}function s5(n){const{initial:i,animate:s}=l5(n,A.useContext(ho));return A.useMemo(()=>({initial:i,animate:s}),[ey(i),ey(s)])}function ey(n){return Array.isArray(n)?n.join(" "):n}const Sd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yx(n,i,s){for(const r in i)!de(i[r])&&!bx(r,s)&&(n[r]=i[r])}function r5({transformTemplate:n},i){return A.useMemo(()=>{const s=Sd();return yd(s,i,n),Object.assign({},s.vars,s.style)},[i])}function o5(n,i){const s=n.style||{},r={};return Yx(r,s,n),Object.assign(r,r5(n,i)),r}function u5(n,i){const s={},r=o5(n,i);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const qx=()=>({...Sd(),attrs:{}});function c5(n,i,s,r){const u=A.useMemo(()=>{const f=qx();return Sx(f,i,Tx(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};Yx(f,n.style,n),u.style={...f,...u.style}}return u}const f5=["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 wd(n){return typeof n!="string"||n.includes("-")?!1:!!(f5.indexOf(n)>-1||/[A-Z]/u.test(n))}function d5(n,i,s,{latestValues:r},u,f=!1,d){const m=(d??wd(n)?c5:u5)(i,r,u,n),g=i5(i,typeof n=="string",f),v=n!==A.Fragment?{...g,...m,ref:s}:{},{children:x}=i,S=A.useMemo(()=>de(x)?x.get():x,[x]);return A.createElement(n,{...v,children:S})}function h5({scrapeMotionValuesFromProps:n,createRenderState:i},s,r,u){return{latestValues:m5(s,r,u,n),renderState:i()}}function m5(n,i,s,r){const u={},f=r(n,{});for(const S in f)u[S]=Xr(f[S]);let{initial:d,animate:h}=n;const m=fo(n),g=fx(n);i&&g&&!m&&n.inherit!==!1&&(d===void 0&&(d=i.initial),h===void 0&&(h=i.animate));let v=s?s.initial===!1:!1;v=v||d===!1;const x=v?h:d;if(x&&typeof x!="boolean"&&!co(x)){const S=Array.isArray(x)?x:[x];for(let T=0;T<S.length;T++){const k=ud(n,S[T]);if(k){const{transitionEnd:N,transition:j,...D}=k;for(const H in D){let L=D[H];if(Array.isArray(L)){const X=v?L.length-1:0;L=L[X]}L!==null&&(u[H]=L)}for(const H in N)u[H]=N[H]}}}return u}const Gx=n=>(i,s)=>{const r=A.useContext(ho),u=A.useContext(uo),f=()=>h5(n,i,r,u);return s?f():Kf(f)},p5=Gx({scrapeMotionValuesFromProps:vd,createRenderState:Sd}),g5=Gx({scrapeMotionValuesFromProps:Ex,createRenderState:qx}),y5=Symbol.for("motionComponentSymbol");function v5(n,i,s){const r=A.useRef(s);A.useInsertionEffect(()=>{r.current=s});const u=A.useRef(null);return A.useCallback(f=>{var h;f&&((h=n.onMount)==null||h.call(n,f));const d=r.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(u.current=m)}else u.current?(u.current(),u.current=null):d(f);else d&&(d.current=f);i&&(f?i.mount(f):i.unmount())},[i])}const Xx=A.createContext({});function zi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function x5(n,i,s,r,u,f){var L,X;const{visualElement:d}=A.useContext(ho),h=A.useContext(Bx),m=A.useContext(uo),g=A.useContext(xd),v=g.reducedMotion,x=g.skipAnimations,S=A.useRef(null),T=A.useRef(!1);r=r||h.renderer,!S.current&&r&&(S.current=r(n,{visualState:i,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:f}),T.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const k=S.current,N=A.useContext(Xx);k&&!k.projection&&u&&(k.type==="html"||k.type==="svg")&&b5(S.current,s,u,N);const j=A.useRef(!1);A.useInsertionEffect(()=>{k&&j.current&&k.update(s,m)});const D=s[$v],H=A.useRef(!!D&&typeof window<"u"&&!((L=window.MotionHandoffIsComplete)!=null&&L.call(window,D))&&((X=window.MotionHasOptimisedAnimation)==null?void 0:X.call(window,D)));return fv(()=>{T.current=!0,k&&(j.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),k.scheduleRenderMicrotask(),H.current&&k.animationState&&k.animationState.animateChanges())}),A.useEffect(()=>{k&&(!H.current&&k.animationState&&k.animationState.animateChanges(),H.current&&(queueMicrotask(()=>{var Q;(Q=window.MotionHandoffMarkAsComplete)==null||Q.call(window,D)}),H.current=!1),k.enteringChildren=void 0)}),k}function b5(n,i,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutCrossfade:v}=i;n.projection=new s(n.latestValues,i["data-framer-portal-id"]?void 0:Qx(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&zi(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:m,layoutRoot:g})}function Qx(n){if(n)return n.options.allowProjection!==!1?n.projection:Qx(n.parent)}function ef(n,{forwardMotionProps:i=!1,type:s}={},r,u){r&&e5(r);const f=s?s==="svg":wd(n),d=f?g5:p5;function h(g,v){let x;const S={...A.useContext(xd),...g,layoutId:S5(g)},{isStatic:T}=S,k=s5(g),N=d(g,T);if(!T&&typeof window<"u"){w5();const j=T5(S);x=j.MeasureLayout,k.visualElement=x5(n,N,S,u,j.ProjectionNode,f)}return y.jsxs(ho.Provider,{value:k,children:[x&&k.visualElement?y.jsx(x,{visualElement:k.visualElement,...S}):null,d5(n,g,v5(N,k.visualElement,v),N,T,i,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=A.forwardRef(h);return m[y5]=n,m}function S5({layoutId:n}){const i=A.useContext(Qf).id;return i&&n!==void 0?i+"-"+n:n}function w5(n,i){A.useContext(Bx).strict}function T5(n){const i=Ux(),{drag:s,layout:r}=i;if(!s&&!r)return{};const u={...s,...r};return{MeasureLayout:s!=null&&s.isEnabled(n)||r!=null&&r.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function E5(n,i){if(typeof Proxy>"u")return ef;const s=new Map,r=(f,d)=>ef(f,d,n,i),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,ef(d,void 0,n,i)),s.get(d))})}const M5=(n,i)=>i.isSVG??wd(n)?new aM(i):new W3(i,{allowProjection:n!==A.Fragment});class A5 extends xa{constructor(i){super(i),i.animationState||(i.animationState=oM(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();co(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 k5=0;class N5 extends xa{constructor(){super(...arguments),this.id=k5++,this.isExitComplete=!1}update(){var f;if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;if(i&&r===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const m=Ka(this.node,d,h);if(m){const{transition:g,transitionEnd:v,...x}=m;for(const S in x)(f=this.node.getValue(S))==null||f.jump(x[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!i);s&&!i&&u.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const C5={animation:{Feature:A5},exit:{Feature:N5}};function fs(n){return{point:{x:n.pageX,y:n.pageY}}}const j5=n=>i=>hd(i)&&n(i,fs(i));function Wl(n,i,s,r){return as(n,i,j5(s),r)}const Kx=({current:n})=>n?n.ownerDocument.defaultView:null,ny=(n,i)=>Math.abs(n-i);function D5(n,i){const s=ny(n.x,i.x),r=ny(n.y,i.y);return Math.sqrt(s**2+r**2)}const ay=new Set(["auto","scroll"]);class Zx{constructor(i,s,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=T=>{this.handleScroll(T.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=_r(this.lastRawMoveEventInfo,this.transformPagePoint));const T=nf(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,N=D5(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!k&&!N)return;const{point:j}=T,{timestamp:D}=fe;this.history.push({...j,timestamp:D});const{onStart:H,onMove:L}=this.handlers;k||(H&&H(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,T)},this.handlePointerMove=(T,k)=>{this.lastMoveEvent=T,this.lastRawMoveEventInfo=k,this.lastMoveEventInfo=_r(k,this.transformPagePoint),Lt.update(this.updatePoint,!0)},this.handlePointerUp=(T,k)=>{this.end();const{onEnd:N,onSessionEnd:j,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=nf(T.type==="pointercancel"?this.lastMoveEventInfo:_r(k,this.transformPagePoint),this.history);this.startEvent&&N&&N(T,H),j&&j(T,H)},!hd(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const m=fs(i),g=_r(m,this.transformPagePoint),{point:v}=g,{timestamp:x}=fe;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=s;S&&S(i,nf(g,this.history)),this.removeListeners=os(Wl(this.contextWindow,"pointermove",this.handlePointerMove),Wl(this.contextWindow,"pointerup",this.handlePointerUp),Wl(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(i){let s=i.parentElement;for(;s;){const r=getComputedStyle(s);(ay.has(r.overflowX)||ay.has(r.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const r=i===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:u.x-s.x,y:u.y-s.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,u),Lt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ga(this.updatePoint)}}function _r(n,i){return i?{point:i(n.point)}:n}function iy(n,i){return{x:n.x-i.x,y:n.y-i.y}}function nf({point:n},i){return{point:n,delta:iy(n,Px(i)),offset:iy(n,R5(i)),velocity:O5(i,.1)}}function R5(n){return n[0]}function Px(n){return n[n.length-1]}function O5(n,i){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Px(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>_e(i)));)s--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&u.timestamp-r.timestamp>_e(i)*2&&(r=n[1]);const f=Ze(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function z5(n,{min:i,max:s},r){return i!==void 0&&n<i?n=r?qt(i,n,r.min):Math.max(n,i):s!==void 0&&n>s&&(n=r?qt(s,n,r.max):Math.min(n,s)),n}function ly(n,i,s){return{min:i!==void 0?n.min+i:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function _5(n,{top:i,left:s,bottom:r,right:u}){return{x:ly(n.x,s,u),y:ly(n.y,i,r)}}function sy(n,i){let s=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function V5(n,i){return{x:sy(n.x,i.x),y:sy(n.y,i.y)}}function L5(n,i){let s=.5;const r=ye(n),u=ye(i);return u>r?s=ts(i.min,i.max-r,n.min):r>u&&(s=ts(n.min,n.max-u,i.min)),dn(0,1,s)}function B5(n,i){const s={};return i.min!==void 0&&(s.min=i.min-n.min),i.max!==void 0&&(s.max=i.max-n.min),s}const zf=.35;function U5(n=zf){return n===!1?n=0:n===!0&&(n=zf),{x:ry(n,"left","right"),y:ry(n,"top","bottom")}}function ry(n,i,s){return{min:oy(n,i),max:oy(n,s)}}function oy(n,i){return typeof n=="number"?n:n[i]||0}const H5=new WeakMap;class Y5{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=ne(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=x=>{s&&this.snapToCursor(fs(x).point),this.stopAnimation()},d=(x,S)=>{const{drag:T,dragPropagation:k,onDragStart:N}=this.getProps();if(T&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=g3(T),!this.openDragLock))return;this.latestPointerEvent=x,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),on(D=>{let H=this.getAxisMotionValue(D).get()||0;if(cn.test(H)){const{projection:L}=this.visualElement;if(L&&L.layout){const X=L.layout.layoutBox[D];X&&(H=ye(X)*(parseFloat(H)/100))}}this.originPoint[D]=H}),N&&Lt.update(()=>N(x,S),!1,!0),Mf(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},h=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:k,onDirectionLock:N,onDrag:j}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:D}=S;if(k&&this.currentDirection===null){this.currentDirection=G5(D),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",S.point,D),this.updateAxis("y",S.point,D),this.visualElement.render(),j&&Lt.update(()=>j(x,S),!1,!0)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Zx(i,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:Kx(this.visualElement),element:this.visualElement.current})}stop(i,s){const r=i||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Lt.postRender(()=>h(r,u))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,r){const{drag:u}=this.getProps();if(!r||!Vr(i,u,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=z5(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:i,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;i&&zi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=_5(r.layoutBox,i):this.constraints=!1,this.elastic=U5(s),u!==this.constraints&&!zi(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&on(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=B5(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!zi(i))return!1;const r=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Q3(r,u.root,this.visualElement.getTransformPagePoint());let d=V5(u.layout.layoutBox,f);if(s){const h=s(q3(d));this.hasMutatedConstraints=!!h,h&&(d=px(h))}return d}startAnimation(i){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=on(v=>{if(!Vr(v,s,this.currentDirection))return;let x=m&&m[v]||{};(d===!0||d===v)&&(x={min:0,max:0});const S=u?200:1e6,T=u?40:1e7,k={type:"inertia",velocity:r?i[v]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(v,k)});return Promise.all(g).then(h)}startAxisValueAnimation(i,s){const r=this.getAxisMotionValue(i);return Mf(this.visualElement,i),r.start(od(i,r,0,s,this.visualElement,!1))}stopAnimation(){on(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){on(s=>{const{drag:r}=this.getProps();if(!Vr(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s],m=f.get()||0;f.set(i[s]-qt(d,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!zi(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};on(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();u[d]=L5({min:m,max:m},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),on(d=>{if(!Vr(d,i,null))return;const h=this.getAxisMotionValue(d),{min:m,max:g}=this.constraints[d];h.set(qt(m,g,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;H5.set(this.visualElement,this);const i=this.visualElement.current,s=Wl(i,"pointerdown",g=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=g.target,T=S!==i&&w3(S);v&&x&&!T&&this.start(g)});let r;const u=()=>{const{dragConstraints:g}=this.getProps();zi(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=q5(i,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Lt.read(u);const h=as(window,"resize",()=>this.scalePositionWithinConstraints()),m=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:v})=>{this.isDragging&&v&&(on(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=g[x].translate,S.set(S.get()+g[x].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),m&&m(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=zf,dragMomentum:h=!0}=i;return{...i,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function uy(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function q5(n,i,s){const r=gg(n,uy(s)),u=gg(i,uy(s));return()=>{r(),u()}}function Vr(n,i,s){return(i===!0||i===n)&&(s===null||s===n)}function G5(n,i=10){let s=null;return Math.abs(n.y)>i?s="y":Math.abs(n.x)>i&&(s="x"),s}class X5 extends xa{constructor(i){super(i),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new Y5(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const af=n=>(i,s)=>{n&&Lt.update(()=>n(i,s),!1,!0)};class Q5 extends xa{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(i){this.session=new Zx(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kx(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:af(i),onStart:af(s),onMove:af(r),onEnd:(f,d)=>{delete this.session,u&&Lt.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=Wl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let lf=!1;class K5 extends A.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=i;f&&(s.group&&s.group.add(f),r&&r.register&&u&&r.register(f),lf&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,i.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),lf=!0,u||i.layoutDependency!==s||s===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Lt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),dd.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=i;lf=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Fx(n){const[i,s]=Lx(),r=A.useContext(Qf);return y.jsx(K5,{...n,layoutGroup:r,switchLayoutGroup:A.useContext(Xx),isPresent:i,safeToRemove:s})}const Z5={pan:{Feature:Q5},drag:{Feature:X5,ProjectionNode:Vx,MeasureLayout:Fx}};function cy(n,i,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=r[u];f&&Lt.postRender(()=>f(i,fs(i)))}class P5 extends xa{mount(){const{current:i}=this.node;i&&(this.unmount=v3(i,(s,r)=>(cy(this.node,r,"Start"),u=>cy(this.node,u,"End"))))}unmount(){}}class F5 extends xa{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=os(as(this.node.current,"focus",()=>this.onFocus()),as(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fy(n,i,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=r[u];f&&Lt.postRender(()=>f(i,fs(i)))}class J5 extends xa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:r}=this.node.props;this.unmount=E3(i,(u,f)=>(fy(this.node,f,"Start"),(d,{success:h})=>fy(this.node,d,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const _f=new WeakMap,sf=new WeakMap,W5=n=>{const i=_f.get(n.target);i&&i(n)},$5=n=>{n.forEach(W5)};function I5({root:n,...i}){const s=n||document;sf.has(s)||sf.set(s,{});const r=sf.get(s),u=JSON.stringify(i);return r[u]||(r[u]=new IntersectionObserver($5,{root:n,...i})),r[u]}function tA(n,i,s){const r=I5(i);return _f.set(n,s),r.observe(n),()=>{_f.delete(n),r.unobserve(n)}}const eA={some:0,all:1};class nA extends xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:eA[u]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=g?v:x;S&&S(m)};return tA(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(aA(i,s))&&this.startObserver()}unmount(){}}function aA({viewport:n={}},{viewport:i={}}={}){return s=>n[s]!==i[s]}const iA={inView:{Feature:nA},tap:{Feature:J5},focus:{Feature:F5},hover:{Feature:P5}},lA={layout:{ProjectionNode:Vx,MeasureLayout:Fx}},sA={...C5,...iA,...Z5,...lA},he=E5(sA,M5),dy=[{name:"首页",path:"/",icon:Gw},{name:"拓展",path:"/expansion",icon:Ky},{name:"商机",path:"/opportunities",icon:ww},{name:"工作",path:"/work",icon:Aw},{name:"我的",path:"/profile",icon:Il}];function rA(){const n=_n(),{theme:i,setTheme:s}=cv();return y.jsxs("div",{className:"flex h-screen bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-50 transition-colors duration-300",children:[y.jsxs("aside",{className:"hidden w-64 flex-col border-r border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 md:flex transition-colors duration-300",children:[y.jsxs("div",{className:"flex h-16 items-center justify-between border-b border-slate-200 dark:border-slate-800 px-6",children:[y.jsx("span",{className:"text-lg font-bold bg-gradient-to-r from-violet-600 to-indigo-600 bg-clip-text text-transparent",children:"紫光汇智CRM"}),y.jsx("button",{onClick:()=>s(i==="dark"?"light":"dark"),className:"rounded-full p-2 text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800 transition-colors",children:i==="dark"?y.jsx(Qy,{className:"h-4 w-4"}):y.jsx(qy,{className:"h-4 w-4"})})]}),y.jsx("nav",{className:"flex-1 space-y-2 p-4",children:dy.map(r=>{const u=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path);return y.jsxs(Zr,{to:r.path,className:Gl("flex items-center gap-3 rounded-xl px-3 py-3 text-sm font-medium transition-all duration-200",u?"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400 shadow-sm":"text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800/50 hover:text-slate-900 dark:hover:text-slate-50"),children:[y.jsx(r.icon,{className:Gl("h-5 w-5 transition-transform",u&&"scale-110")}),r.name]},r.name)})})]}),y.jsx("main",{className:"flex-1 overflow-y-auto pb-20 md:pb-0 relative",children:y.jsx("div",{className:"mx-auto max-w-5xl p-4 md:p-8",children:y.jsx(bd,{mode:"wait",children:y.jsx(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:y.jsx(DS,{})},n.pathname)})})}),y.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-50 flex h-16 border-t border-slate-200 dark:border-slate-800 bg-white/80 dark:bg-slate-900/80 backdrop-blur-xl pb-safe md:hidden transition-colors duration-300",children:dy.map(r=>{const u=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path);return y.jsxs(Zr,{to:r.path,className:Gl("flex flex-1 flex-col items-center justify-center gap-1 text-[10px] font-medium transition-all duration-200",u?"text-violet-600 dark:text-violet-400":"text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-50"),children:[y.jsx("div",{className:Gl("flex h-8 w-8 items-center justify-center rounded-full transition-all duration-200",u?"bg-violet-100 dark:bg-violet-500/20":"bg-transparent"),children:y.jsx(r.icon,{className:Gl("h-5 w-5",u&&"fill-violet-100 dark:fill-violet-500/20")})}),r.name]},r.name)})})]})}function oA(){const n=[{name:"本月新增商机",value:"12",icon:pT,color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-500/20"},{name:"跟进中客户",value:"48",icon:Ky,color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-500/20"},{name:"已成单项目",value:"3",icon:Uy,color:"text-violet-600 dark:text-violet-400",bg:"bg-violet-100 dark:bg-violet-500/20"},{name:"本月打卡天数",value:"20",icon:Ow,color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-500/20"}];return y.jsxs("div",{className:"space-y-6",children:[y.jsxs("header",{children:[y.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),y.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:"欢迎回来,张三。今天是你入职的第 365 天。"})]}),y.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:n.map((i,s)=>y.jsx(he.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-5 shadow-sm backdrop-blur-sm transition-all hover:shadow-md dark:hover:bg-slate-900",children:y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("div",{className:`flex h-12 w-12 items-center justify-center rounded-xl ${i.bg}`,children:y.jsx(i.icon,{className:`h-6 w-6 ${i.color}`})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-slate-500 dark:text-slate-400",children:i.name}),y.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:i.value})]})]})},i.name))}),y.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[y.jsxs(he.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[y.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"待办事项"}),y.jsx("ul",{className:"space-y-3",children:["跟进 A 公司云桌面扩容项目","提交本周销售日报","拜访 B 渠道商王总","更新 C 项目商机阶段"].map((i,s)=>y.jsxs("li",{className:"group flex cursor-pointer items-center gap-3 rounded-xl border border-slate-50 dark:border-slate-800/50 p-3 transition-all hover:bg-slate-50 dark:hover:bg-slate-800",children:[y.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-full border-2 border-slate-300 dark:border-slate-600 group-hover:border-violet-500 dark:group-hover:border-violet-400 transition-colors"}),y.jsx("span",{className:"text-sm text-slate-700 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-white transition-colors",children:i})]},s))})]}),y.jsxs(he.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[y.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"最新动态"}),y.jsx("div",{className:"space-y-5",children:[{title:"商机阶段更新",desc:"D 项目已推进至方案交流阶段",time:"10分钟前"},{title:"日报已点评",desc:"主管对你昨天的日报给出了 95 分",time:"2小时前"},{title:"新渠道录入",desc:"成功录入 E 渠道商信息",time:"昨天"}].map((i,s)=>y.jsxs("div",{className:"flex gap-4",children:[y.jsxs("div",{className:"relative mt-1 flex h-3 w-3 items-center justify-center",children:[y.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-violet-400 opacity-20"}),y.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-violet-500"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white",children:i.title}),y.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:i.desc}),y.jsx("p",{className:"mt-1 text-[10px] text-slate-400 dark:text-slate-500",children:i.time})]})]},s))})]})]})]})}function uA(){const[n,i]=A.useState("sales"),[s,r]=A.useState(null),u=[{id:1,type:"sales",name:"李四",phone:"13812345678",email:"lisi@example.com",dept:"华东大区",industry:"教育",title:"高级销售",intent:"高",stage:"初步沟通",hasExp:!0,inProgress:!0,active:!0,expectedJoinDate:"2024-05-01",notes:"候选人对提成机制比较关注在教育行业有5年以上的客户资源积累。"},{id:2,type:"sales",name:"王五",phone:"13987654321",email:"wangwu@example.com",dept:"华北大区",industry:"医疗",title:"销售经理",intent:"中",stage:"方案交流",hasExp:!1,inProgress:!1,active:!0,expectedJoinDate:"待定",notes:"需要进一步沟通产品线细节,目前在看其他几家竞品的机会。"}],f=[{id:1,type:"channel",name:"某某科技代理商",province:"浙江",industry:"政府",revenue:"500万",size:50,contact:"张总",contactTitle:"总经理",phone:"13800138000",stage:"合作洽谈",landed:!0,expectedSignDate:"2024-04-15",notes:"对方在政务云桌面领域有深厚资源,希望能拿到省级独家代理权。"},{id:2,type:"channel",name:"云端服务提供商",province:"江苏",industry:"金融",revenue:"1000万",size:120,contact:"李总",contactTitle:"业务总监",phone:"13900139000",stage:"初步接触",landed:!1,expectedSignDate:"待定",notes:"初步接触,对方正在评估多家供应商,对我们的售后响应速度有较高要求。"}],d=[{id:1,date:"2024-03-15 14:30",type:"电话沟通",content:"初步沟通了合作意向,对方对我们的产品比较感兴趣,约定下周进行详细的产品演示。",user:"张三"},{id:2,date:"2024-03-10 10:00",type:"微信沟通",content:"发送了公司介绍和产品白皮书,对方表示会内部评估。",user:"张三"}];return y.jsxs("div",{className:"space-y-6",children:[y.jsxs("header",{className:"flex items-center justify-between",children:[y.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"拓展管理"}),y.jsxs("button",{className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-violet-700 active:scale-95 transition-all",children:[y.jsx(Gy,{className:"h-4 w-4"}),y.jsx("span",{className:"hidden sm:inline",children:"新增"})]})]}),y.jsxs("div",{className:"flex rounded-xl bg-slate-100 dark:bg-slate-900/50 p-1 backdrop-blur-sm border border-slate-200/50 dark:border-slate-800/50",children:[y.jsx("button",{onClick:()=>i("sales"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${n==="sales"?"bg-white dark:bg-slate-800 text-violet-600 dark:text-violet-400 shadow-sm":"text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white"}`,children:"销售人员拓展"}),y.jsx("button",{onClick:()=>i("channel"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${n==="channel"?"bg-white dark:bg-slate-800 text-violet-600 dark:text-violet-400 shadow-sm":"text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white"}`,children:"渠道拓展"})]}),y.jsxs("div",{className:"relative group",children:[y.jsx(Xy,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-500 transition-colors"}),y.jsx("input",{type:"text",placeholder:"搜索姓名、渠道名称、行业...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 py-2.5 pl-10 pr-4 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),y.jsx("div",{className:"space-y-4",children:n==="sales"?u.map((h,m)=>y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:m*.05},onClick:()=>r(h),className:"cursor-pointer rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-5 shadow-sm backdrop-blur-sm transition-all hover:shadow-md hover:border-violet-100 dark:hover:border-violet-900/50",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{children:[y.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:h.name}),y.jsxs("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[h.dept," · ",h.title]})]}),y.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${h.active?"bg-emerald-100 dark:bg-emerald-500/20 text-emerald-700 dark:text-emerald-400":"bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300"}`,children:h.active?"在职":"离职"})]}),y.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Yc,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),h.industry]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"意向:"}),y.jsx("span",{className:h.intent==="高"?"text-rose-600 dark:text-rose-400 font-medium":"",children:h.intent})]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),h.stage]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"云桌面经验:"}),h.hasExp?"有":"无"]})]}),y.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 dark:border-slate-800/50 pt-3",children:y.jsx("button",{className:"text-sm font-medium text-violet-600 dark:text-violet-400 hover:text-violet-700 dark:hover:text-violet-300 transition-colors",children:"查看详情与跟进"})})]},h.id)):f.map((h,m)=>y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:m*.05},onClick:()=>r(h),className:"cursor-pointer rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-5 shadow-sm backdrop-blur-sm transition-all hover:shadow-md hover:border-violet-100 dark:hover:border-violet-900/50",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{children:[y.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:h.name}),y.jsxs("div",{className:"mt-1 flex items-center gap-2 text-sm text-slate-500 dark:text-slate-400",children:[y.jsx(cf,{className:"h-3.5 w-3.5"}),h.province]})]}),y.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${h.landed?"bg-emerald-100 dark:bg-emerald-500/20 text-emerald-700 dark:text-emerald-400":"bg-amber-100 dark:bg-amber-500/20 text-amber-700 dark:text-amber-400"}`,children:h.landed?"已落地":"未落地"})]}),y.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Yc,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),h.industry]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Il,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),h.contact]}),y.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(qc,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),h.phone]}),y.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),y.jsx("span",{className:"font-medium text-slate-900 dark:text-white",children:h.stage})]})]}),y.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 dark:border-slate-800/50 pt-3",children:y.jsx("button",{className:"text-sm font-medium text-violet-600 dark:text-violet-400 hover:text-violet-700 dark:hover:text-violet-300 transition-colors",children:"查看详情与跟进"})})]},h.id))}),y.jsx(bd,{children:s&&y.jsxs(y.Fragment,{children:[y.jsx(he.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>r(null),className:"fixed inset-0 bg-slate-900/20 dark:bg-slate-900/60 backdrop-blur-sm z-40"}),y.jsxs(he.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed inset-y-0 right-0 w-full max-w-md bg-white dark:bg-slate-900 shadow-2xl border-l border-slate-200 dark:border-slate-800 z-50 flex flex-col",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800 px-6 py-4",children:[y.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:s.type==="sales"?"销售拓展详情":"渠道拓展详情"}),y.jsx("button",{onClick:()=>r(null),className:"rounded-full p-2 text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y.jsx(Zy,{className:"h-5 w-5"})})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8",children:[y.jsxs("div",{children:[y.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-white",children:s.name}),y.jsx("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:s.type==="sales"?`${s.dept} · ${s.title}`:`${s.province} · ${s.industry}`}),y.jsxs("div",{className:"mt-3 flex gap-2",children:[y.jsx("span",{className:"rounded-full bg-violet-50 dark:bg-violet-500/10 px-2.5 py-1 text-xs font-medium text-violet-600 dark:text-violet-400",children:s.stage}),s.type==="sales"?y.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${s.active?"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400"}`,children:s.active?"在职":"离职"}):y.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${s.landed?"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-amber-50 dark:bg-amber-500/10 text-amber-600 dark:text-amber-400"}`,children:s.landed?"已落地":"未落地"})]})]}),y.jsxs("div",{className:"space-y-3",children:[y.jsxs("h4",{className:"text-sm font-semibold text-slate-900 dark:text-white flex items-center gap-2",children:[y.jsx(Jr,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),y.jsxs("div",{className:"rounded-xl border border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/20 p-4 grid grid-cols-2 gap-4 text-sm",children:[s.type==="sales"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(qc,{className:"h-3 w-3"})," 联系电话"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.phone})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Ww,{className:"h-3 w-3"})," 邮箱"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white truncate",title:s.email,children:s.email})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Yc,{className:"h-3 w-3"})," 负责行业"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.industry})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"云桌面经验"}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.hasExp?"有":"无"})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"意向度"}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.intent})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Pr,{className:"h-3 w-3"})," 预计入职"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.expectedJoinDate})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Il,{className:"h-3 w-3"})," 联系人"]}),y.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[s.contact," (",s.contactTitle,")"]})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(qc,{className:"h-3 w-3"})," 联系电话"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.phone})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"营收规模"}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.revenue})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"公司人数"}),y.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[s.size,"人"]})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Pr,{className:"h-3 w-3"})," 预计签约"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.expectedSignDate})]})]}),y.jsxs("div",{className:"col-span-2",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"备注说明"}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white leading-relaxed",children:s.notes})]})]})]}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("h4",{className:"text-sm font-semibold text-slate-900 dark:text-white flex items-center gap-2",children:[y.jsx(Hy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),y.jsx("button",{className:"text-xs font-medium text-violet-600 dark:text-violet-400 hover:text-violet-700",children:"添加记录"})]}),y.jsx("div",{className:"relative pl-4 border-l-2 border-slate-100 dark:border-slate-800 space-y-6",children:d.map(h=>y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute -left-[21px] mt-1.5 h-2.5 w-2.5 rounded-full bg-violet-500 ring-4 ring-white dark:ring-slate-900"}),y.jsxs("div",{className:"rounded-xl border border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/20 p-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-xs font-medium text-violet-600 dark:text-violet-400 bg-violet-50 dark:bg-violet-500/10 px-2 py-0.5 rounded",children:h.type}),y.jsx("span",{className:"text-xs text-slate-400",children:h.date})]}),y.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:h.content}),y.jsxs("p",{className:"text-xs text-slate-400 mt-2",children:["跟进人: ",h.user]})]})]},h.id))})]})]}),y.jsx("div",{className:"border-t border-slate-100 dark:border-slate-800 p-4 bg-slate-50 dark:bg-slate-900/50",children:y.jsxs("div",{className:"flex gap-3",children:[y.jsx("button",{className:"flex-1 rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2.5 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors",children:"编辑资料"}),y.jsx("button",{className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white hover:bg-violet-700 transition-colors shadow-sm",children:"写跟进"})]})})]})]})})]})}function cA(){const[n,i]=A.useState("all"),[s,r]=A.useState(null),u=[{id:"HD-20231024-001",name:"A市第一人民医院云桌面扩容",client:"A市第一人民医院",owner:"张三",amount:"1,200,000",date:"2023-12-15",confidence:80,stage:"招投标",type:"扩容",pushedToOMS:!0,product:"VDI云桌面",source:"渠道推荐",notes:"客户现有500点并发本次计划扩容300点主要用于门诊医生工作站。对性能要求较高需要重点测试3D渲染能力。"},{id:"HB-20231025-002",name:"B大学新校区机房建设",client:"B大学",owner:"李四",amount:"3,500,000",date:"2024-03-01",confidence:40,stage:"方案交流",type:"新建",pushedToOMS:!1,product:"VOI云桌面",source:"市场活动",notes:"新校区规划了5个公共机房共计800台终端。目前处于方案设计阶段竞争对手有深信服和锐捷。"},{id:"HN-20231026-003",name:"C集团办公云桌面替换",client:"C集团",owner:"王五",amount:"800,000",date:"2023-11-30",confidence:90,stage:"商务谈判",type:"新建",pushedToOMS:!0,product:"IDV云桌面",source:"主动开发",notes:"替换原有传统PC客户对数据安全和外设兼容性要求极高。POC测试已通过目前正在进行价格谈判。"}],f=[{id:1,date:"2023-10-25 14:30",type:"现场拜访",content:"与信息科主任沟通了扩容需求,确认了具体的点数和预算范围。主任对我们的前期服务比较认可。",user:"张三"},{id:2,date:"2023-10-20 10:00",type:"电话沟通",content:"初步了解了医院近期的信息化建设规划,得知有云桌面扩容的意向。",user:"张三"}],d=h=>h>=80?"text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border-emerald-200 dark:border-emerald-500/20":h>=50?"text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 border-amber-200 dark:border-amber-500/20":"text-rose-600 dark:text-rose-400 bg-rose-50 dark:bg-rose-500/10 border-rose-200 dark:border-rose-500/20";return y.jsxs("div",{className:"space-y-6",children:[y.jsxs("header",{className:"flex items-center justify-between",children:[y.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"商机储备"}),y.jsxs("button",{className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-violet-700 active:scale-95 transition-all",children:[y.jsx(Gy,{className:"h-4 w-4"}),y.jsx("span",{className:"hidden sm:inline",children:"新增商机"})]})]}),y.jsxs("div",{className:"flex gap-3",children:[y.jsxs("div",{className:"relative flex-1 group",children:[y.jsx(Xy,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-500 transition-colors"}),y.jsx("input",{type:"text",placeholder:"搜索项目名称、客户、编码...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 py-2.5 pl-10 pr-4 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),y.jsx("button",{className:"flex items-center justify-center rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 px-4 text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800 transition-colors",children:y.jsx(Yy,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide",children:["全部","初步沟通","方案交流","招投标","商务谈判","已成交"].map(h=>y.jsx("button",{onClick:()=>i(h),className:`whitespace-nowrap rounded-full px-4 py-1.5 text-sm font-medium transition-all duration-200 ${n===h||n==="all"&&h==="全部"?"bg-slate-800 dark:bg-violet-600 text-white shadow-sm":"bg-white dark:bg-slate-900/50 text-slate-600 dark:text-slate-400 border border-slate-200 dark:border-slate-800 hover:bg-slate-50 dark:hover:bg-slate-800"}`,children:h},h))}),y.jsx("div",{className:"space-y-4",children:u.map((h,m)=>y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:m*.05},onClick:()=>r(h),className:"group cursor-pointer relative rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-5 shadow-sm backdrop-blur-sm transition-all hover:shadow-md hover:border-violet-100 dark:hover:border-violet-900/50",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{className:"pr-8",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:h.id}),h.pushedToOMS&&y.jsx("span",{className:"rounded bg-violet-50 dark:bg-violet-500/10 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:text-violet-400",children:"已推OMS"})]}),y.jsx("h3",{className:"mt-1 text-lg font-semibold text-slate-900 dark:text-white line-clamp-1",children:h.name})]}),y.jsxs("div",{className:`flex flex-col items-center justify-center rounded-lg border p-2 ${d(h.confidence)}`,children:[y.jsxs("span",{className:"text-xs font-semibold",children:[h.confidence,"%"]}),y.jsx("span",{className:"text-[10px] opacity-80",children:"把握度"})]})]}),y.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300 col-span-2",children:[y.jsx(qp,{className:"h-4 w-4 text-slate-400 dark:text-slate-500 shrink-0"}),y.jsx("span",{className:"truncate",children:h.client})]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Gp,{className:"h-4 w-4 text-slate-400 dark:text-slate-500 shrink-0"}),y.jsxs("span",{className:"font-medium text-slate-900 dark:text-white",children:["¥",h.amount]})]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Pr,{className:"h-4 w-4 text-slate-400 dark:text-slate-500 shrink-0"}),h.date]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx(Yp,{className:"h-4 w-4 text-slate-400 dark:text-slate-500 shrink-0"}),y.jsx("span",{className:"rounded-full bg-slate-100 dark:bg-slate-800 px-2 py-0.5 text-xs font-medium text-slate-700 dark:text-slate-300",children:h.stage})]}),y.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[y.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"类型:"}),h.type]})]}),y.jsx("button",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-slate-300 dark:text-slate-600 opacity-0 transition-all group-hover:opacity-100 group-hover:text-violet-500 dark:group-hover:text-violet-400 md:block hidden",children:y.jsx(Fr,{className:"h-6 w-6"})}),y.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 dark:border-slate-800/50 pt-3 md:hidden",children:y.jsxs("button",{className:"flex items-center text-sm font-medium text-violet-600 dark:text-violet-400",children:["查看详情 ",y.jsx(Fr,{className:"h-4 w-4 ml-1"})]})})]},h.id))}),y.jsx(bd,{children:s&&y.jsxs(y.Fragment,{children:[y.jsx(he.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>r(null),className:"fixed inset-0 bg-slate-900/20 dark:bg-slate-900/60 backdrop-blur-sm z-40"}),y.jsxs(he.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed inset-y-0 right-0 w-full max-w-md bg-white dark:bg-slate-900 shadow-2xl border-l border-slate-200 dark:border-slate-800 z-50 flex flex-col",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800 px-6 py-4",children:[y.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"商机详情"}),y.jsx("button",{onClick:()=>r(null),className:"rounded-full p-2 text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y.jsx(Zy,{className:"h-5 w-5"})})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:s.id}),s.pushedToOMS&&y.jsx("span",{className:"rounded bg-violet-50 dark:bg-violet-500/10 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:text-violet-400",children:"已推OMS"})]}),y.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-white leading-tight",children:s.name}),y.jsxs("div",{className:"mt-3 flex gap-2",children:[y.jsx("span",{className:"rounded-full bg-slate-100 dark:bg-slate-800 px-2.5 py-1 text-xs font-medium text-slate-700 dark:text-slate-300",children:s.stage}),y.jsxs("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${d(s.confidence)}`,children:["把握度 ",s.confidence,"%"]})]})]}),y.jsxs("div",{className:"space-y-3",children:[y.jsxs("h4",{className:"text-sm font-semibold text-slate-900 dark:text-white flex items-center gap-2",children:[y.jsx(Jr,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),y.jsxs("div",{className:"rounded-xl border border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/20 p-4 grid grid-cols-2 gap-4 text-sm",children:[y.jsxs("div",{className:"col-span-2",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(qp,{className:"h-3 w-3"})," 客户名称"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.client})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Gp,{className:"h-3 w-3"})," 商机金额"]}),y.jsxs("p",{className:"font-medium text-rose-600 dark:text-rose-400",children:["¥",s.amount]})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Pr,{className:"h-3 w-3"})," 预计结单"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.date})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Il,{className:"h-3 w-3"})," 负责人"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.owner})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(hT,{className:"h-3 w-3"})," 商机类型"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.type})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Yp,{className:"h-3 w-3"})," 产品类别"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.product})]}),y.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[y.jsxs("p",{className:"text-slate-500 dark:text-slate-400 mb-1 flex items-center gap-1",children:[y.jsx(Qw,{className:"h-3 w-3"})," 商机来源"]}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:s.source})]}),y.jsxs("div",{className:"col-span-2",children:[y.jsx("p",{className:"text-slate-500 dark:text-slate-400 mb-1",children:"备注说明"}),y.jsx("p",{className:"font-medium text-slate-900 dark:text-white leading-relaxed",children:s.notes})]})]})]}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("h4",{className:"text-sm font-semibold text-slate-900 dark:text-white flex items-center gap-2",children:[y.jsx(Hy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),y.jsx("button",{className:"text-xs font-medium text-violet-600 dark:text-violet-400 hover:text-violet-700",children:"添加记录"})]}),y.jsx("div",{className:"relative pl-4 border-l-2 border-slate-100 dark:border-slate-800 space-y-6",children:f.map(h=>y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute -left-[21px] mt-1.5 h-2.5 w-2.5 rounded-full bg-violet-500 ring-4 ring-white dark:ring-slate-900"}),y.jsxs("div",{className:"rounded-xl border border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/20 p-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-xs font-medium text-violet-600 dark:text-violet-400 bg-violet-50 dark:bg-violet-500/10 px-2 py-0.5 rounded",children:h.type}),y.jsx("span",{className:"text-xs text-slate-400",children:h.date})]}),y.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:h.content}),y.jsxs("p",{className:"text-xs text-slate-400 mt-2",children:["跟进人: ",h.user]})]})]},h.id))})]})]}),y.jsx("div",{className:"border-t border-slate-100 dark:border-slate-800 p-4 bg-slate-50 dark:bg-slate-900/50",children:y.jsxs("div",{className:"flex gap-3",children:[y.jsx("button",{className:"flex-1 rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2.5 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors",children:"编辑商机"}),y.jsx("button",{className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white hover:bg-violet-700 transition-colors shadow-sm",children:"写跟进"})]})})]})]})})]})}const Jx=6048e5,fA=864e5,hy=Symbol.for("constructDateFrom");function ya(n,i){return typeof n=="function"?n(i):n&&typeof n=="object"&&hy in n?n[hy](i):n instanceof Date?new n.constructor(i):new Date(i)}function nn(n,i){return ya(i||n,n)}let dA={};function mo(){return dA}function is(n,i){var h,m,g,v;const s=mo(),r=(i==null?void 0:i.weekStartsOn)??((m=(h=i==null?void 0:i.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??s.weekStartsOn??((v=(g=s.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,u=nn(n,i==null?void 0:i.in),f=u.getDay(),d=(f<r?7:0)+f-r;return u.setDate(u.getDate()-d),u.setHours(0,0,0,0),u}function so(n,i){return is(n,{...i,weekStartsOn:1})}function Wx(n,i){const s=nn(n,i==null?void 0:i.in),r=s.getFullYear(),u=ya(s,0);u.setFullYear(r+1,0,4),u.setHours(0,0,0,0);const f=so(u),d=ya(s,0);d.setFullYear(r,0,4),d.setHours(0,0,0,0);const h=so(d);return s.getTime()>=f.getTime()?r+1:s.getTime()>=h.getTime()?r:r-1}function my(n){const i=nn(n),s=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return s.setUTCFullYear(i.getFullYear()),+n-+s}function hA(n,...i){const s=ya.bind(null,i.find(r=>typeof r=="object"));return i.map(s)}function py(n,i){const s=nn(n,i==null?void 0:i.in);return s.setHours(0,0,0,0),s}function mA(n,i,s){const[r,u]=hA(s==null?void 0:s.in,n,i),f=py(r),d=py(u),h=+f-my(f),m=+d-my(d);return Math.round((h-m)/fA)}function pA(n,i){const s=Wx(n,i),r=ya(n,0);return r.setFullYear(s,0,4),r.setHours(0,0,0,0),so(r)}function gA(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function yA(n){return!(!gA(n)&&typeof n!="number"||isNaN(+nn(n)))}function vA(n,i){const s=nn(n,i==null?void 0:i.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const xA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bA=(n,i,s)=>{let r;const u=xA[n];return typeof u=="string"?r=u:i===1?r=u.one:r=u.other.replace("{{count}}",i.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+r:r+" ago":r};function rf(n){return(i={})=>{const s=i.width?String(i.width):n.defaultWidth;return n.formats[s]||n.formats[n.defaultWidth]}}const SA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},TA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EA={date:rf({formats:SA,defaultWidth:"full"}),time:rf({formats:wA,defaultWidth:"full"}),dateTime:rf({formats:TA,defaultWidth:"full"})},MA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},AA=(n,i,s,r)=>MA[n];function Ql(n){return(i,s)=>{const r=s!=null&&s.context?String(s.context):"standalone";let u;if(r==="formatting"&&n.formattingValues){const d=n.defaultFormattingWidth||n.defaultWidth,h=s!=null&&s.width?String(s.width):d;u=n.formattingValues[h]||n.formattingValues[d]}else{const d=n.defaultWidth,h=s!=null&&s.width?String(s.width):n.defaultWidth;u=n.values[h]||n.values[d]}const f=n.argumentCallback?n.argumentCallback(i):i;return u[f]}}const kA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},NA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},DA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},RA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},OA=(n,i)=>{const s=Number(n),r=s%100;if(r>20||r<10)switch(r%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},zA={ordinalNumber:OA,era:Ql({values:kA,defaultWidth:"wide"}),quarter:Ql({values:NA,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ql({values:CA,defaultWidth:"wide"}),day:Ql({values:jA,defaultWidth:"wide"}),dayPeriod:Ql({values:DA,defaultWidth:"wide",formattingValues:RA,defaultFormattingWidth:"wide"})};function Kl(n){return(i,s={})=>{const r=s.width,u=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],f=i.match(u);if(!f)return null;const d=f[0],h=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],m=Array.isArray(h)?VA(h,x=>x.test(d)):_A(h,x=>x.test(d));let g;g=n.valueCallback?n.valueCallback(m):m,g=s.valueCallback?s.valueCallback(g):g;const v=i.slice(d.length);return{value:g,rest:v}}}function _A(n,i){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&i(n[s]))return s}function VA(n,i){for(let s=0;s<n.length;s++)if(i(n[s]))return s}function LA(n){return(i,s={})=>{const r=i.match(n.matchPattern);if(!r)return null;const u=r[0],f=i.match(n.parsePattern);if(!f)return null;let d=n.valueCallback?n.valueCallback(f[0]):f[0];d=s.valueCallback?s.valueCallback(d):d;const h=i.slice(u.length);return{value:d,rest:h}}}const BA=/^(\d+)(th|st|nd|rd)?/i,UA=/\d+/i,HA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},YA={any:[/^b/i,/^(a|c)/i]},qA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GA={any:[/1/i,/2/i,/3/i,/4/i]},XA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},QA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ZA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},PA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JA={ordinalNumber:LA({matchPattern:BA,parsePattern:UA,valueCallback:n=>parseInt(n,10)}),era:Kl({matchPatterns:HA,defaultMatchWidth:"wide",parsePatterns:YA,defaultParseWidth:"any"}),quarter:Kl({matchPatterns:qA,defaultMatchWidth:"wide",parsePatterns:GA,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Kl({matchPatterns:XA,defaultMatchWidth:"wide",parsePatterns:QA,defaultParseWidth:"any"}),day:Kl({matchPatterns:KA,defaultMatchWidth:"wide",parsePatterns:ZA,defaultParseWidth:"any"}),dayPeriod:Kl({matchPatterns:PA,defaultMatchWidth:"any",parsePatterns:FA,defaultParseWidth:"any"})},WA={code:"en-US",formatDistance:bA,formatLong:EA,formatRelative:AA,localize:zA,match:JA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $A(n,i){const s=nn(n,i==null?void 0:i.in);return mA(s,vA(s))+1}function IA(n,i){const s=nn(n,i==null?void 0:i.in),r=+so(s)-+pA(s);return Math.round(r/Jx)+1}function $x(n,i){var v,x,S,T;const s=nn(n,i==null?void 0:i.in),r=s.getFullYear(),u=mo(),f=(i==null?void 0:i.firstWeekContainsDate)??((x=(v=i==null?void 0:i.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??u.firstWeekContainsDate??((T=(S=u.locale)==null?void 0:S.options)==null?void 0:T.firstWeekContainsDate)??1,d=ya((i==null?void 0:i.in)||n,0);d.setFullYear(r+1,0,f),d.setHours(0,0,0,0);const h=is(d,i),m=ya((i==null?void 0:i.in)||n,0);m.setFullYear(r,0,f),m.setHours(0,0,0,0);const g=is(m,i);return+s>=+h?r+1:+s>=+g?r:r-1}function tk(n,i){var h,m,g,v;const s=mo(),r=(i==null?void 0:i.firstWeekContainsDate)??((m=(h=i==null?void 0:i.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((v=(g=s.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,u=$x(n,i),f=ya((i==null?void 0:i.in)||n,0);return f.setFullYear(u,0,r),f.setHours(0,0,0,0),is(f,i)}function ek(n,i){const s=nn(n,i==null?void 0:i.in),r=+is(s,i)-+tk(s,i);return Math.round(r/Jx)+1}function Dt(n,i){const s=n<0?"-":"",r=Math.abs(n).toString().padStart(i,"0");return s+r}const fa={y(n,i){const s=n.getFullYear(),r=s>0?s:1-s;return Dt(i==="yy"?r%100:r,i.length)},M(n,i){const s=n.getMonth();return i==="M"?String(s+1):Dt(s+1,2)},d(n,i){return Dt(n.getDate(),i.length)},a(n,i){const s=n.getHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(n,i){return Dt(n.getHours()%12||12,i.length)},H(n,i){return Dt(n.getHours(),i.length)},m(n,i){return Dt(n.getMinutes(),i.length)},s(n,i){return Dt(n.getSeconds(),i.length)},S(n,i){const s=i.length,r=n.getMilliseconds(),u=Math.trunc(r*Math.pow(10,s-3));return Dt(u,i.length)}},Oi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gy={G:function(n,i,s){const r=n.getFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return s.era(r,{width:"abbreviated"});case"GGGGG":return s.era(r,{width:"narrow"});case"GGGG":default:return s.era(r,{width:"wide"})}},y:function(n,i,s){if(i==="yo"){const r=n.getFullYear(),u=r>0?r:1-r;return s.ordinalNumber(u,{unit:"year"})}return fa.y(n,i)},Y:function(n,i,s,r){const u=$x(n,r),f=u>0?u:1-u;if(i==="YY"){const d=f%100;return Dt(d,2)}return i==="Yo"?s.ordinalNumber(f,{unit:"year"}):Dt(f,i.length)},R:function(n,i){const s=Wx(n);return Dt(s,i.length)},u:function(n,i){const s=n.getFullYear();return Dt(s,i.length)},Q:function(n,i,s){const r=Math.ceil((n.getMonth()+1)/3);switch(i){case"Q":return String(r);case"QQ":return Dt(r,2);case"Qo":return s.ordinalNumber(r,{unit:"quarter"});case"QQQ":return s.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,i,s){const r=Math.ceil((n.getMonth()+1)/3);switch(i){case"q":return String(r);case"qq":return Dt(r,2);case"qo":return s.ordinalNumber(r,{unit:"quarter"});case"qqq":return s.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,i,s){const r=n.getMonth();switch(i){case"M":case"MM":return fa.M(n,i);case"Mo":return s.ordinalNumber(r+1,{unit:"month"});case"MMM":return s.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(r,{width:"wide",context:"formatting"})}},L:function(n,i,s){const r=n.getMonth();switch(i){case"L":return String(r+1);case"LL":return Dt(r+1,2);case"Lo":return s.ordinalNumber(r+1,{unit:"month"});case"LLL":return s.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(r,{width:"wide",context:"standalone"})}},w:function(n,i,s,r){const u=ek(n,r);return i==="wo"?s.ordinalNumber(u,{unit:"week"}):Dt(u,i.length)},I:function(n,i,s){const r=IA(n);return i==="Io"?s.ordinalNumber(r,{unit:"week"}):Dt(r,i.length)},d:function(n,i,s){return i==="do"?s.ordinalNumber(n.getDate(),{unit:"date"}):fa.d(n,i)},D:function(n,i,s){const r=$A(n);return i==="Do"?s.ordinalNumber(r,{unit:"dayOfYear"}):Dt(r,i.length)},E:function(n,i,s){const r=n.getDay();switch(i){case"E":case"EE":case"EEE":return s.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(r,{width:"short",context:"formatting"});case"EEEE":default:return s.day(r,{width:"wide",context:"formatting"})}},e:function(n,i,s,r){const u=n.getDay(),f=(u-r.weekStartsOn+8)%7||7;switch(i){case"e":return String(f);case"ee":return Dt(f,2);case"eo":return s.ordinalNumber(f,{unit:"day"});case"eee":return s.day(u,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(u,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(u,{width:"short",context:"formatting"});case"eeee":default:return s.day(u,{width:"wide",context:"formatting"})}},c:function(n,i,s,r){const u=n.getDay(),f=(u-r.weekStartsOn+8)%7||7;switch(i){case"c":return String(f);case"cc":return Dt(f,i.length);case"co":return s.ordinalNumber(f,{unit:"day"});case"ccc":return s.day(u,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(u,{width:"narrow",context:"standalone"});case"cccccc":return s.day(u,{width:"short",context:"standalone"});case"cccc":default:return s.day(u,{width:"wide",context:"standalone"})}},i:function(n,i,s){const r=n.getDay(),u=r===0?7:r;switch(i){case"i":return String(u);case"ii":return Dt(u,i.length);case"io":return s.ordinalNumber(u,{unit:"day"});case"iii":return s.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(r,{width:"short",context:"formatting"});case"iiii":default:return s.day(r,{width:"wide",context:"formatting"})}},a:function(n,i,s){const u=n.getHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return s.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(n,i,s){const r=n.getHours();let u;switch(r===12?u=Oi.noon:r===0?u=Oi.midnight:u=r/12>=1?"pm":"am",i){case"b":case"bb":return s.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(u,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(u,{width:"wide",context:"formatting"})}},B:function(n,i,s){const r=n.getHours();let u;switch(r>=17?u=Oi.evening:r>=12?u=Oi.afternoon:r>=4?u=Oi.morning:u=Oi.night,i){case"B":case"BB":case"BBB":return s.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(u,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(u,{width:"wide",context:"formatting"})}},h:function(n,i,s){if(i==="ho"){let r=n.getHours()%12;return r===0&&(r=12),s.ordinalNumber(r,{unit:"hour"})}return fa.h(n,i)},H:function(n,i,s){return i==="Ho"?s.ordinalNumber(n.getHours(),{unit:"hour"}):fa.H(n,i)},K:function(n,i,s){const r=n.getHours()%12;return i==="Ko"?s.ordinalNumber(r,{unit:"hour"}):Dt(r,i.length)},k:function(n,i,s){let r=n.getHours();return r===0&&(r=24),i==="ko"?s.ordinalNumber(r,{unit:"hour"}):Dt(r,i.length)},m:function(n,i,s){return i==="mo"?s.ordinalNumber(n.getMinutes(),{unit:"minute"}):fa.m(n,i)},s:function(n,i,s){return i==="so"?s.ordinalNumber(n.getSeconds(),{unit:"second"}):fa.s(n,i)},S:function(n,i){return fa.S(n,i)},X:function(n,i,s){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(i){case"X":return vy(r);case"XXXX":case"XX":return qa(r);case"XXXXX":case"XXX":default:return qa(r,":")}},x:function(n,i,s){const r=n.getTimezoneOffset();switch(i){case"x":return vy(r);case"xxxx":case"xx":return qa(r);case"xxxxx":case"xxx":default:return qa(r,":")}},O:function(n,i,s){const r=n.getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+yy(r,":");case"OOOO":default:return"GMT"+qa(r,":")}},z:function(n,i,s){const r=n.getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+yy(r,":");case"zzzz":default:return"GMT"+qa(r,":")}},t:function(n,i,s){const r=Math.trunc(+n/1e3);return Dt(r,i.length)},T:function(n,i,s){return Dt(+n,i.length)}};function yy(n,i=""){const s=n>0?"-":"+",r=Math.abs(n),u=Math.trunc(r/60),f=r%60;return f===0?s+String(u):s+String(u)+i+Dt(f,2)}function vy(n,i){return n%60===0?(n>0?"-":"+")+Dt(Math.abs(n)/60,2):qa(n,i)}function qa(n,i=""){const s=n>0?"-":"+",r=Math.abs(n),u=Dt(Math.trunc(r/60),2),f=Dt(r%60,2);return s+u+i+f}const xy=(n,i)=>{switch(n){case"P":return i.date({width:"short"});case"PP":return i.date({width:"medium"});case"PPP":return i.date({width:"long"});case"PPPP":default:return i.date({width:"full"})}},Ix=(n,i)=>{switch(n){case"p":return i.time({width:"short"});case"pp":return i.time({width:"medium"});case"ppp":return i.time({width:"long"});case"pppp":default:return i.time({width:"full"})}},nk=(n,i)=>{const s=n.match(/(P+)(p+)?/)||[],r=s[1],u=s[2];if(!u)return xy(n,i);let f;switch(r){case"P":f=i.dateTime({width:"short"});break;case"PP":f=i.dateTime({width:"medium"});break;case"PPP":f=i.dateTime({width:"long"});break;case"PPPP":default:f=i.dateTime({width:"full"});break}return f.replace("{{date}}",xy(r,i)).replace("{{time}}",Ix(u,i))},ak={p:Ix,P:nk},ik=/^D+$/,lk=/^Y+$/,sk=["D","DD","YY","YYYY"];function rk(n){return ik.test(n)}function ok(n){return lk.test(n)}function uk(n,i,s){const r=ck(n,i,s);if(console.warn(r),sk.includes(n))throw new RangeError(r)}function ck(n,i,s){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${i}\`) for formatting ${r} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hk=/^'([^]*?)'?$/,mk=/''/g,pk=/[a-zA-Z]/;function gk(n,i,s){var v,x,S,T;const r=mo(),u=r.locale??WA,f=r.firstWeekContainsDate??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,d=r.weekStartsOn??((T=(S=r.locale)==null?void 0:S.options)==null?void 0:T.weekStartsOn)??0,h=nn(n,s==null?void 0:s.in);if(!yA(h))throw new RangeError("Invalid time value");let m=i.match(dk).map(k=>{const N=k[0];if(N==="p"||N==="P"){const j=ak[N];return j(k,u.formatLong)}return k}).join("").match(fk).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const N=k[0];if(N==="'")return{isToken:!1,value:yk(k)};if(gy[N])return{isToken:!0,value:k};if(N.match(pk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return{isToken:!1,value:k}});u.localize.preprocessor&&(m=u.localize.preprocessor(h,m));const g={firstWeekContainsDate:f,weekStartsOn:d,locale:u};return m.map(k=>{if(!k.isToken)return k.value;const N=k.value;(ok(N)||rk(N))&&uk(N,i,String(n));const j=gy[N[0]];return j(h,N,u.localize,g)}).join("")}function yk(n){const i=n.match(hk);return i?i[1].replace(mk,"'"):n}function vk(){const[n,i]=A.useState(!1),[s,r]=A.useState(""),u=()=>{i(!n),n||setTimeout(()=>{r(d=>d+(d?`
`:"")+"今天拜访了A市第一人民医院信息科主任沟通了云桌面扩容需求对方表示下个月会启动招标流程。"),i(!1)},2e3)},f=[{id:1,date:"2024-03-15",type:"日报",content:`1. 拜访了A市第一人民医院信息科主任沟通了云桌面扩容需求...
2. 与B大学新校区机房建设项目的负责人进行了电话沟通...`,status:"已点评",score:95,comment:"跟进很紧密继续保持。A市医院的项目需要重点关注招标时间点。"},{id:2,date:"2024-03-14",type:"外勤打卡",content:"浙江省杭州市西湖区某某街道某某大厦 (C集团总部)",status:"正常",score:null,comment:null},{id:3,date:"2024-03-14",type:"日报",content:`1. 整理了C集团办公云桌面替换项目的POC测试报告...
2. 参加了华东大区周例会...`,status:"已阅",score:null,comment:null},{id:4,date:"2024-03-13",type:"外勤打卡",content:"上海市浦东新区某某路某某科技园 (D公司)",status:"正常",score:null,comment:null}];return y.jsxs("div",{className:"space-y-6",children:[y.jsx("header",{className:"flex items-center justify-between",children:y.jsxs("div",{children:[y.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),y.jsxs("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-1",children:["今天是 ",gk(new Date,"yyyy年MM月dd日 EEEE")]})]})}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[y.jsxs("div",{className:"lg:col-span-7 xl:col-span-8 space-y-6",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("div",{className:"h-6 w-1 bg-violet-600 rounded-full"}),y.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"今日工作"})]}),y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(cf,{className:"h-5 w-5 text-emerald-500 dark:text-emerald-400"}),y.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"外勤打卡"})]}),y.jsx("span",{className:"text-xs font-medium text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 px-2.5 py-1 rounded-full",children:"定位已获取"})]}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"当前位置"}),y.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-300 bg-slate-50 dark:bg-slate-800/50 p-3 rounded-xl border border-slate-100 dark:border-slate-800",children:"浙江省杭州市西湖区某某街道某某大厦"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"备注说明 (选填)"}),y.jsx("textarea",{rows:2,placeholder:"请输入打卡备注...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]})]}),y.jsxs("div",{className:"space-y-4 flex flex-col",children:[y.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"现场照片 (必填)"}),y.jsxs("div",{className:"group flex flex-1 min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-xl border-2 border-dashed border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800/50 transition-all hover:border-violet-400 dark:hover:border-violet-500 hover:bg-violet-50 dark:hover:bg-violet-500/10",children:[y.jsx(Dw,{className:"mb-2 h-6 w-6 text-slate-400 dark:text-slate-500 group-hover:text-violet-500 transition-colors"}),y.jsx("span",{className:"text-xs text-slate-500 dark:text-slate-400 group-hover:text-violet-600 dark:group-hover:text-violet-400 transition-colors",children:"点击拍照"})]})]})]}),y.jsxs("button",{className:"mt-6 flex w-full items-center justify-center gap-2 rounded-xl bg-slate-900 dark:bg-white px-4 py-3 text-sm font-semibold text-white dark:text-slate-900 shadow-sm hover:bg-slate-800 dark:hover:bg-slate-100 active:scale-[0.98] transition-all",children:[y.jsx(Uy,{className:"h-4 w-4"}),"确认打卡"]})]}),y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Nw,{className:"h-5 w-5 text-violet-600 dark:text-violet-400"}),y.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"每日表"})]}),y.jsx("span",{className:"text-xs font-medium text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 px-2.5 py-1 rounded-full",children:"待提交"})]}),y.jsxs("div",{className:"space-y-5",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[y.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[y.jsx(Jr,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"今日工作内容"]}),y.jsxs("button",{onClick:u,className:`flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium transition-all duration-300 ${n?"bg-rose-100 dark:bg-rose-500/20 text-rose-600 dark:text-rose-400 animate-pulse":"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400 hover:bg-violet-100 dark:hover:bg-violet-500/20"}`,children:[y.jsx(tT,{className:"h-3.5 w-3.5"}),n?"正在识别...":"语音输入 (HubMind)"]})]}),y.jsx("textarea",{rows:4,value:s,onChange:d=>r(d.target.value),placeholder:"请输入今日拜访客户、沟通进展、遇到的问题等...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"mb-2 flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[y.jsx(Zw,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"明日工作计划"]}),y.jsx("textarea",{rows:3,placeholder:"1. 上午拜访...\\n2. 下午整理...\\n3. 推进...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),y.jsxs("button",{className:"flex w-full items-center justify-center gap-2 rounded-xl bg-violet-600 px-4 py-3 text-sm font-semibold text-white shadow-sm hover:bg-violet-700 active:scale-[0.98] transition-all",children:[y.jsx(sT,{className:"h-4 w-4"}),"提交日报"]})]})]})]}),y.jsxs("div",{className:"lg:col-span-5 xl:col-span-4 space-y-6 lg:sticky lg:top-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"h-6 w-1 bg-slate-300 dark:bg-slate-700 rounded-full"}),y.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"历史记录"})]}),y.jsx("button",{className:"p-2 text-slate-400 hover:text-violet-600 dark:hover:text-violet-400 transition-colors",children:y.jsx(Yy,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"space-y-4 max-h-[calc(100vh-12rem)] overflow-y-auto pr-2 scrollbar-hide",children:f.map((d,h)=>y.jsxs(he.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:h*.1},className:"group cursor-pointer rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-4 shadow-sm backdrop-blur-sm transition-all hover:shadow-md hover:border-violet-100 dark:hover:border-violet-900/50",children:[y.jsxs("div",{className:"flex items-start justify-between mb-3",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-full ${d.type==="日报"?"bg-blue-50 dark:bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"}`,children:d.type==="日报"?y.jsx(Jr,{className:"h-4 w-4"}):y.jsx(cf,{className:"h-4 w-4"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:d.type}),y.jsx("p",{className:"text-[10px] text-slate-500 dark:text-slate-400",children:d.date})]})]}),y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[y.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-medium ${d.status==="已点评"?"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400":d.status==="已阅"?"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400":"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"}`,children:d.status}),d.score&&y.jsxs("span",{className:"text-[10px] font-bold text-rose-600 dark:text-rose-400",children:[d.score,"分"]})]})]}),y.jsxs("div",{className:"pl-11",children:[y.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-300 line-clamp-2 leading-relaxed",children:d.content}),d.comment&&y.jsxs("div",{className:"mt-2 rounded-lg bg-slate-50 dark:bg-slate-800/50 p-2.5 border border-slate-100 dark:border-slate-800/50",children:[y.jsx("p",{className:"text-[10px] font-medium text-slate-900 dark:text-white mb-0.5",children:"主管点评:"}),y.jsx("p",{className:"text-[10px] text-slate-600 dark:text-slate-400",children:d.comment})]})]})]},d.id))})]})]})]})}function xk(){const{theme:n,setTheme:i}=cv();return y.jsxs("div",{className:"space-y-6",children:[y.jsx("header",{className:"flex items-center justify-between",children:y.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"我的"})}),y.jsxs(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm transition-all",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-violet-100 dark:bg-violet-500/20 text-2xl font-bold text-violet-600 dark:text-violet-400",children:"张"}),y.jsxs("div",{className:"flex-1",children:[y.jsx("h2",{className:"text-xl font-bold text-slate-900 dark:text-white",children:"张三"}),y.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:"高级销售 · 华东大区"})]}),y.jsx("button",{className:"rounded-full bg-slate-50 dark:bg-slate-800 p-2 text-slate-400 dark:text-slate-500 hover:bg-slate-100 dark:hover:bg-slate-700 hover:text-slate-600 dark:hover:text-slate-300 transition-colors",children:y.jsx(oT,{className:"h-5 w-5"})})]}),y.jsxs("div",{className:"mt-6 grid grid-cols-3 divide-x divide-slate-100 dark:divide-slate-800 border-t border-slate-50 dark:border-slate-800/50 pt-6",children:[y.jsxs("div",{className:"text-center",children:[y.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:"12"}),y.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:"本月商机"})]}),y.jsxs("div",{className:"text-center",children:[y.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:"8"}),y.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:"本月拓展"})]}),y.jsxs("div",{className:"text-center",children:[y.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:"95"}),y.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:"平均分"})]})]})]}),y.jsx(he.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 shadow-sm backdrop-blur-sm overflow-hidden transition-all",children:y.jsxs("ul",{className:"divide-y divide-slate-50 dark:divide-slate-800/50",children:[y.jsx("li",{children:y.jsxs("button",{onClick:()=>i(n==="dark"?"light":"dark"),className:"flex w-full items-center justify-between p-4 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors md:hidden",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-slate-100 dark:bg-slate-800",children:n==="dark"?y.jsx(Qy,{className:"h-5 w-5 text-amber-500"}):y.jsx(qy,{className:"h-5 w-5 text-indigo-500"})}),y.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:n==="dark"?"切换亮色模式":"切换暗色模式"})]}),y.jsx(Fr,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})}),[{icon:Il,label:"个人资料",color:"text-blue-500 dark:text-blue-400",bg:"bg-blue-50 dark:bg-blue-500/10"},{icon:bw,label:"消息通知",color:"text-amber-500 dark:text-amber-400",bg:"bg-amber-50 dark:bg-amber-500/10"},{icon:cT,label:"账号安全",color:"text-emerald-500 dark:text-emerald-400",bg:"bg-emerald-50 dark:bg-emerald-500/10"},{icon:Lw,label:"帮助中心",color:"text-violet-500 dark:text-violet-400",bg:"bg-violet-50 dark:bg-violet-500/10"}].map((s,r)=>y.jsx("li",{children:y.jsxs("button",{className:"flex w-full items-center justify-between p-4 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-xl ${s.bg}`,children:y.jsx(s.icon,{className:`h-5 w-5 ${s.color}`})}),y.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:s.label})]}),y.jsx(Fr,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})},r))]})}),y.jsxs(he.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},className:"flex w-full items-center justify-center gap-2 rounded-2xl border border-rose-100 dark:border-rose-900/50 bg-rose-50 dark:bg-rose-500/10 p-4 text-sm font-semibold text-rose-600 dark:text-rose-400 transition-all hover:bg-rose-100 dark:hover:bg-rose-500/20 active:scale-[0.98]",children:[y.jsx(Fw,{className:"h-5 w-5"}),"退出登录"]})]})}function bk(){return y.jsx(c4,{defaultTheme:"light",storageKey:"crm-theme",children:y.jsx(aw,{children:y.jsx(OS,{children:y.jsxs(Ha,{path:"/",element:y.jsx(rA,{}),children:[y.jsx(Ha,{index:!0,element:y.jsx(oA,{})}),y.jsx(Ha,{path:"expansion",element:y.jsx(uA,{})}),y.jsx(Ha,{path:"opportunities",element:y.jsx(cA,{})}),y.jsx(Ha,{path:"work",element:y.jsx(vk,{})}),y.jsx(Ha,{path:"profile",element:y.jsx(xk,{})})]})})})})}R2.createRoot(document.getElementById("root")).render(y.jsx(A.StrictMode,{children:y.jsx(bk,{})}));