280 lines
525 KiB
JavaScript
280 lines
525 KiB
JavaScript
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=l(o);fetch(o.href,f)}})();var Zc={exports:{}},$l={};/**
|
||
* @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 Xp;function W2(){if(Xp)return $l;Xp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:h,ref:o!==void 0?o:null,props:f}}return $l.Fragment=n,$l.jsx=l,$l.jsxs=l,$l}var Pp;function I2(){return Pp||(Pp=1,Zc.exports=W2()),Zc.exports}var d=I2(),Jc={exports:{}},be={};/**
|
||
* @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 Qp;function eS(){if(Qp)return be;Qp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function A(T,G,O){this.props=T,this.context=G,this.refs=M,this.updater=O||N}A.prototype.isReactComponent={},A.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function z(){}z.prototype=A.prototype;function U(T,G,O){this.props=T,this.context=G,this.refs=M,this.updater=O||N}var Y=U.prototype=new z;Y.constructor=U,E(Y,A.prototype),Y.isPureReactComponent=!0;var Q=Array.isArray;function ae(){}var K={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function I(T,G,O){var ne=O.ref;return{$$typeof:a,type:T,key:G,ref:ne!==void 0?ne:null,props:O}}function se(T,G){return I(T.type,G,T.props)}function de(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function pe(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(O){return G[O]})}var Ae=/\/+/g;function ve(T,G){return typeof T=="object"&&T!==null&&T.key!=null?pe(""+T.key):G.toString(36)}function $(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ae,ae):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,G,O,ne,le){var Z=typeof T;(Z==="undefined"||Z==="boolean")&&(T=null);var ce=!1;if(T===null)ce=!0;else switch(Z){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(T.$$typeof){case a:case n:ce=!0;break;case y:return ce=T._init,R(ce(T._payload),G,O,ne,le)}}if(ce)return le=le(T),ce=ne===""?"."+ve(T,0):ne,Q(le)?(O="",ce!=null&&(O=ce.replace(Ae,"$&/")+"/"),R(le,G,O,"",function(ft){return ft})):le!=null&&(de(le)&&(le=se(le,O+(le.key==null||T&&T.key===le.key?"":(""+le.key).replace(Ae,"$&/")+"/")+ce)),G.push(le)),1;ce=0;var De=ne===""?".":ne+":";if(Q(T))for(var ge=0;ge<T.length;ge++)ne=T[ge],Z=De+ve(ne,ge),ce+=R(ne,G,O,Z,le);else if(ge=k(T),typeof ge=="function")for(T=ge.call(T),ge=0;!(ne=T.next()).done;)ne=ne.value,Z=De+ve(ne,ge++),ce+=R(ne,G,O,Z,le);else if(Z==="object"){if(typeof T.then=="function")return R($(T),G,O,ne,le);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ce}function J(T,G,O){if(T==null)return T;var ne=[],le=0;return R(T,ne,"","",function(Z){return G.call(O,Z,le++)}),ne}function ee(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(O){(T._status===0||T._status===-1)&&(T._status=1,T._result=O)},function(O){(T._status===0||T._status===-1)&&(T._status=2,T._result=O)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var he=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=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(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},W={map:J,forEach:function(T,G,O){J(T,function(){G.apply(this,arguments)},O)},count:function(T){var G=0;return J(T,function(){G++}),G},toArray:function(T){return J(T,function(G){return G})||[]},only:function(T){if(!de(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return be.Activity=v,be.Children=W,be.Component=A,be.Fragment=l,be.Profiler=o,be.PureComponent=U,be.StrictMode=r,be.Suspense=p,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return K.H.useMemoCache(T)}},be.cache=function(T){return function(){return T.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(T,G,O){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ne=E({},T.props),le=T.key;if(G!=null)for(Z in G.key!==void 0&&(le=""+G.key),G)!B.call(G,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&G.ref===void 0||(ne[Z]=G[Z]);var Z=arguments.length-2;if(Z===1)ne.children=O;else if(1<Z){for(var ce=Array(Z),De=0;De<Z;De++)ce[De]=arguments[De+2];ne.children=ce}return I(T.type,le,ne)},be.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},be.createElement=function(T,G,O){var ne,le={},Z=null;if(G!=null)for(ne in G.key!==void 0&&(Z=""+G.key),G)B.call(G,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(le[ne]=G[ne]);var ce=arguments.length-2;if(ce===1)le.children=O;else if(1<ce){for(var De=Array(ce),ge=0;ge<ce;ge++)De[ge]=arguments[ge+2];le.children=De}if(T&&T.defaultProps)for(ne in ce=T.defaultProps,ce)le[ne]===void 0&&(le[ne]=ce[ne]);return I(T,Z,le)},be.createRef=function(){return{current:null}},be.forwardRef=function(T){return{$$typeof:m,render:T}},be.isValidElement=de,be.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:ee}},be.memo=function(T,G){return{$$typeof:g,type:T,compare:G===void 0?null:G}},be.startTransition=function(T){var G=K.T,O={};K.T=O;try{var ne=T(),le=K.S;le!==null&&le(O,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(ae,he)}catch(Z){he(Z)}finally{G!==null&&O.types!==null&&(G.types=O.types),K.T=G}},be.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},be.use=function(T){return K.H.use(T)},be.useActionState=function(T,G,O){return K.H.useActionState(T,G,O)},be.useCallback=function(T,G){return K.H.useCallback(T,G)},be.useContext=function(T){return K.H.useContext(T)},be.useDebugValue=function(){},be.useDeferredValue=function(T,G){return K.H.useDeferredValue(T,G)},be.useEffect=function(T,G){return K.H.useEffect(T,G)},be.useEffectEvent=function(T){return K.H.useEffectEvent(T)},be.useId=function(){return K.H.useId()},be.useImperativeHandle=function(T,G,O){return K.H.useImperativeHandle(T,G,O)},be.useInsertionEffect=function(T,G){return K.H.useInsertionEffect(T,G)},be.useLayoutEffect=function(T,G){return K.H.useLayoutEffect(T,G)},be.useMemo=function(T,G){return K.H.useMemo(T,G)},be.useOptimistic=function(T,G){return K.H.useOptimistic(T,G)},be.useReducer=function(T,G,O){return K.H.useReducer(T,G,O)},be.useRef=function(T){return K.H.useRef(T)},be.useState=function(T){return K.H.useState(T)},be.useSyncExternalStore=function(T,G,O){return K.H.useSyncExternalStore(T,G,O)},be.useTransition=function(){return K.H.useTransition()},be.version="19.2.4",be}var Kp;function nf(){return Kp||(Kp=1,Jc.exports=eS()),Jc.exports}var w=nf(),$c={exports:{}},Wl={},Wc={exports:{}},Ic={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Fp;function tS(){return Fp||(Fp=1,(function(a){function n(R,J){var ee=R.length;R.push(J);e:for(;0<ee;){var he=ee-1>>>1,W=R[he];if(0<o(W,J))R[he]=J,R[ee]=W,ee=he;else break e}}function l(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var J=R[0],ee=R.pop();if(ee!==J){R[0]=ee;e:for(var he=0,W=R.length,T=W>>>1;he<T;){var G=2*(he+1)-1,O=R[G],ne=G+1,le=R[ne];if(0>o(O,ee))ne<W&&0>o(le,O)?(R[he]=le,R[ne]=ee,he=ne):(R[he]=O,R[G]=ee,he=G);else if(ne<W&&0>o(le,ee))R[he]=le,R[ne]=ee,he=ne;else break e}}return J}function o(R,J){var ee=R.sortIndex-J.sortIndex;return ee!==0?ee:R.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,v=null,S=3,k=!1,N=!1,E=!1,M=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function Y(R){for(var J=l(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=R)r(g),J.sortIndex=J.expirationTime,n(p,J);else break;J=l(g)}}function Q(R){if(E=!1,Y(R),!N)if(l(p)!==null)N=!0,ae||(ae=!0,pe());else{var J=l(g);J!==null&&$(Q,J.startTime-R)}}var ae=!1,K=-1,B=5,I=-1;function se(){return M?!0:!(a.unstable_now()-I<B)}function de(){if(M=!1,ae){var R=a.unstable_now();I=R;var J=!0;try{e:{N=!1,E&&(E=!1,z(K),K=-1),k=!0;var ee=S;try{t:{for(Y(R),v=l(p);v!==null&&!(v.expirationTime>R&&se());){var he=v.callback;if(typeof he=="function"){v.callback=null,S=v.priorityLevel;var W=he(v.expirationTime<=R);if(R=a.unstable_now(),typeof W=="function"){v.callback=W,Y(R),J=!0;break t}v===l(p)&&r(p),Y(R)}else r(p);v=l(p)}if(v!==null)J=!0;else{var T=l(g);T!==null&&$(Q,T.startTime-R),J=!1}}break e}finally{v=null,S=ee,k=!1}J=void 0}}finally{J?pe():ae=!1}}}var pe;if(typeof U=="function")pe=function(){U(de)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,ve=Ae.port2;Ae.port1.onmessage=de,pe=function(){ve.postMessage(null)}}else pe=function(){A(de,0)};function $(R,J){K=A(function(){R(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(R){switch(S){case 1:case 2:case 3:var J=3;break;default:J=S}var ee=S;S=J;try{return R()}finally{S=ee}},a.unstable_requestPaint=function(){M=!0},a.unstable_runWithPriority=function(R,J){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ee=S;S=R;try{return J()}finally{S=ee}},a.unstable_scheduleCallback=function(R,J,ee){var he=a.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?he+ee:he):ee=he,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ee+W,R={id:y++,callback:J,priorityLevel:R,startTime:ee,expirationTime:W,sortIndex:-1},ee>he?(R.sortIndex=ee,n(g,R),l(p)===null&&R===l(g)&&(E?(z(K),K=-1):E=!0,$(Q,ee-he))):(R.sortIndex=W,n(p,R),N||k||(N=!0,ae||(ae=!0,pe()))),R},a.unstable_shouldYield=se,a.unstable_wrapCallback=function(R){var J=S;return function(){var ee=S;S=J;try{return R.apply(this,arguments)}finally{S=ee}}}})(Ic)),Ic}var Zp;function aS(){return Zp||(Zp=1,Wc.exports=tS()),Wc.exports}var ed={exports:{}},St={};/**
|
||
* @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 Jp;function nS(){if(Jp)return St;Jp=1;var a=nf();function n(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,St.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return f(p,g,null,y)},St.flushSync=function(p){var g=h.T,y=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=g,r.p=y,r.d.f()}},St.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},St.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},St.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:k}):y==="script"&&r.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},St.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},St.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin);r.d.L(p,y,{crossOrigin:v,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})}},St.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},St.requestFormReset=function(p){r.d.r(p)},St.unstable_batchedUpdates=function(p,g){return p(g)},St.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},St.useFormStatus=function(){return h.H.useHostTransitionStatus()},St.version="19.2.4",St}var $p;function sS(){if($p)return ed.exports;$p=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),ed.exports=nS(),ed.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 Wp;function lS(){if(Wp)return Wl;Wp=1;var a=aS(),n=nf(),l=sS();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,i=t;;){var u=s.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){s=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===s)return p(u),e;if(c===i)return p(u),t;c=c.sibling}throw Error(r(188))}if(s.return!==i.return)s=u,i=c;else{for(var x=!1,b=u.child;b;){if(b===s){x=!0,s=u,i=c;break}if(b===i){x=!0,i=u,s=c;break}b=b.sibling}if(!x){for(b=c.child;b;){if(b===s){x=!0,s=c,i=u;break}if(b===i){x=!0,i=c,s=u;break}b=b.sibling}if(!x)throw Error(r(189))}}if(s.alternate!==i)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),U=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case M:return"StrictMode";case Q:return"Suspense";case ae:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case U:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var $=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},he=[],W=-1;function T(e){return{current:e}}function G(e){0>W||(e.current=he[W],he[W]=null,W--)}function O(e,t){W++,he[W]=e.current,e.current=t}var ne=T(null),le=T(null),Z=T(null),ce=T(null);function De(e,t){switch(O(Z,t),O(le,e),O(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=mp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ne),O(ne,e)}function ge(){G(ne),G(le),G(Z)}function ft(e){e.memoizedState!==null&&O(ce,e);var t=ne.current,s=mp(t,e.type);t!==s&&(O(le,e),O(ne,s))}function bt(e){le.current===e&&(G(ne),G(le)),ce.current===e&&(G(ce),Kl._currentValue=ee)}var Ot,tt;function wt(e){if(Ot===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Ot=t&&t[1]||"",tt=-1<s.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Ot+e+tt}var al=!1;function nl(e,t){if(!e||al)return"";al=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(H){var L=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){L=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){L=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&L&&typeof H.stack=="string")return[H.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),x=c[0],b=c[1];if(x&&b){var j=x.split(`
|
||
`),V=b.split(`
|
||
`);for(u=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;u<V.length&&!V[u].includes("DetermineComponentFrameRoot");)u++;if(i===j.length||u===V.length)for(i=j.length-1,u=V.length-1;1<=i&&0<=u&&j[i]!==V[u];)u--;for(;1<=i&&0<=u;i--,u--)if(j[i]!==V[u]){if(i!==1||u!==1)do if(i--,u--,0>u||j[i]!==V[u]){var q=`
|
||
`+j[i].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=i&&0<=u);break}}}finally{al=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?wt(s):""}function Vo(e,t){switch(e.tag){case 26:case 27:case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return e.child!==t&&t!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return nl(e.type,!1);case 11:return nl(e.type.render,!1);case 1:return nl(e.type,!0);case 31:return wt("Activity");default:return""}}function sl(e){try{var t="",s=null;do t+=Vo(e,s),s=e,e=e.return;while(e);return t}catch(i){return`
|
||
Error generating stack: `+i.message+`
|
||
`+i.stack}}var es=Object.prototype.hasOwnProperty,ts=a.unstable_scheduleCallback,as=a.unstable_cancelCallback,F=a.unstable_shouldYield,ye=a.unstable_requestPaint,te=a.unstable_now,Rb=a.unstable_getCurrentPriorityLevel,Pf=a.unstable_ImmediatePriority,Qf=a.unstable_UserBlockingPriority,Ni=a.unstable_NormalPriority,Ob=a.unstable_LowPriority,Kf=a.unstable_IdlePriority,zb=a.log,_b=a.unstable_setDisableYieldValue,ll=null,zt=null;function Ga(e){if(typeof zb=="function"&&_b(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(ll,e)}catch{}}var _t=Math.clz32?Math.clz32:Lb,Vb=Math.log,Ub=Math.LN2;function Lb(e){return e>>>=0,e===0?32:31-(Vb(e)/Ub|0)|0}var Ti=256,Ei=262144,Ci=4194304;function En(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Mi(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?u=En(i):(x&=b,x!==0?u=En(x):s||(s=b&~e,s!==0&&(u=En(s))))):(b=i&~c,b!==0?u=En(b):x!==0?u=En(x):s||(s=i&~e,s!==0&&(u=En(s)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,s=t&-t,c>=s||c===32&&(s&4194048)!==0)?t:u}function il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ff(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function Uo(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function rl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Hb(e,t,s,i,u,c){var x=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,j=e.expirationTimes,V=e.hiddenUpdates;for(s=x&~s;0<s;){var q=31-_t(s),P=1<<q;b[q]=0,j[q]=-1;var L=V[q];if(L!==null)for(V[q]=null,q=0;q<L.length;q++){var H=L[q];H!==null&&(H.lane&=-536870913)}s&=~P}i!==0&&Zf(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(x&~t))}function Zf(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-_t(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|s&261930}function Jf(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var i=31-_t(s),u=1<<i;u&t|e[i]&t&&(e[i]|=t),s&=~u}}function $f(e,t){var s=t&-t;return s=(s&42)!==0?1:Lo(s),(s&(e.suspendedLanes|t))!==0?0:s}function Lo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Up(e.type))}function If(e,t){var s=J.p;try{return J.p=e,t()}finally{J.p=s}}var Xa=Math.random().toString(36).slice(2),ht="__reactFiber$"+Xa,Tt="__reactProps$"+Xa,ns="__reactContainer$"+Xa,Ho="__reactEvents$"+Xa,Yb="__reactListeners$"+Xa,qb="__reactHandles$"+Xa,eh="__reactResources$"+Xa,ol="__reactMarker$"+Xa;function Yo(e){delete e[ht],delete e[Tt],delete e[Ho],delete e[Yb],delete e[qb]}function ss(e){var t=e[ht];if(t)return t;for(var s=e.parentNode;s;){if(t=s[ns]||s[ht]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=Sp(e);e!==null;){if(s=e[ht])return s;e=Sp(e)}return t}e=s,s=e.parentNode}return null}function ls(e){if(e=e[ht]||e[ns]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ul(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function is(e){var t=e[eh];return t||(t=e[eh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[ol]=!0}var th=new Set,ah={};function Cn(e,t){rs(e,t),rs(e+"Capture",t)}function rs(e,t){for(ah[e]=t,e=0;e<t.length;e++)th.add(t[e])}var Gb=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]*$"),nh={},sh={};function Xb(e){return es.call(sh,e)?!0:es.call(nh,e)?!1:Gb.test(e)?sh[e]=!0:(nh[e]=!0,!1)}function Ai(e,t,s){if(Xb(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function Di(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function Sa(e,t,s,i){if(i===null)e.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+i)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pb(e,t,s){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){s=""+x,c.call(this,x)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qo(e){if(!e._valueTracker){var t=lh(e)?"checked":"value";e._valueTracker=Pb(e,t,""+e[t])}}function ih(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),i="";return e&&(i=lh(e)?e.checked?"true":"false":e.value),e=i,e!==s?(t.setValue(e),!0):!1}function Ri(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qb=/[\n"\\]/g;function Qt(e){return e.replace(Qb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Go(e,t,s,i,u,c,x,b){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Xo(e,x,Pt(t)):s!=null?Xo(e,x,Pt(s)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Pt(b):e.removeAttribute("name")}function rh(e,t,s,i,u,c,x,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||s!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){qo(e);return}s=s!=null?""+Pt(s):"",t=t!=null?""+Pt(t):s,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),qo(e)}function Xo(e,t,s){t==="number"&&Ri(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function os(e,t,s,i){if(e=e.options,t){t={};for(var u=0;u<s.length;u++)t["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=t.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&i&&(e[s].defaultSelected=!0)}else{for(s=""+Pt(s),t=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function oh(e,t,s){if(t!=null&&(t=""+Pt(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+Pt(s):""}function uh(e,t,s,i){if(t==null){if(i!=null){if(s!=null)throw Error(r(92));if($(i)){if(1<i.length)throw Error(r(93));i=i[0]}s=i}s==null&&(s=""),t=s}s=Pt(t),e.defaultValue=s,i=e.textContent,i===s&&i!==""&&i!==null&&(e.value=i),qo(e)}function us(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Kb=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 ch(e,t,s){var i=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,s):typeof s!="number"||s===0||Kb.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function dh(e,t,s){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,s!=null){for(var i in s)!s.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&s[u]!==i&&ch(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&ch(e,c,t[c])}function Po(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fb=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"]]),Zb=/^[\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 Oi(e){return Zb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wa(){}var Qo=null;function Ko(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cs=null,ds=null;function fh(e){var t=ls(e);if(t&&(e=t.stateNode)){var s=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Go(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var i=s[t];if(i!==e&&i.form===e.form){var u=i[Tt]||null;if(!u)throw Error(r(90));Go(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<s.length;t++)i=s[t],i.form===e.form&&ih(i)}break e;case"textarea":oh(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&os(e,!!s.multiple,t,!1)}}}var Fo=!1;function hh(e,t,s){if(Fo)return e(t,s);Fo=!0;try{var i=e(t);return i}finally{if(Fo=!1,(cs!==null||ds!==null)&&(br(),cs&&(t=cs,e=ds,ds=cs=null,fh(t),e)))for(t=0;t<e.length;t++)fh(e[t])}}function cl(e,t){var s=e.stateNode;if(s===null)return null;var i=s[Tt]||null;if(i===null)return null;s=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(ka)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{Zo=!1}var Pa=null,Jo=null,zi=null;function mh(){if(zi)return zi;var e,t=Jo,s=t.length,i,u="value"in Pa?Pa.value:Pa.textContent,c=u.length;for(e=0;e<s&&t[e]===u[e];e++);var x=s-e;for(i=1;i<=x&&t[s-i]===u[c-i];i++);return zi=u.slice(e,1<i?1-i:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vi(){return!0}function ph(){return!1}function Et(e){function t(s,i,u,c,x){this._reactName=s,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=x,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(s=e[b],this[b]=s?s(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vi:ph,this.isPropagationStopped=ph,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Vi)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=Et(Mn),fl=v({},Mn,{view:0,detail:0}),Jb=Et(fl),$o,Wo,hl,Li=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hl&&(hl&&e.type==="mousemove"?($o=e.screenX-hl.screenX,Wo=e.screenY-hl.screenY):Wo=$o=0,hl=e),$o)},movementY:function(e){return"movementY"in e?e.movementY:Wo}}),gh=Et(Li),$b=v({},Li,{dataTransfer:0}),Wb=Et($b),Ib=v({},fl,{relatedTarget:0}),Io=Et(Ib),e1=v({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),t1=Et(e1),a1=v({},Mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n1=Et(a1),s1=v({},Mn,{data:0}),xh=Et(s1),l1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=r1[e])?!!t[e]:!1}function eu(){return o1}var u1=v({},fl,{key:function(e){if(e.key){var t=l1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eu,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c1=Et(u1),d1=v({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yh=Et(d1),f1=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eu}),h1=Et(f1),m1=v({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),p1=Et(m1),g1=v({},Li,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),x1=Et(g1),y1=v({},Mn,{newState:0,oldState:0}),v1=Et(y1),b1=[9,13,27,32],tu=ka&&"CompositionEvent"in window,ml=null;ka&&"documentMode"in document&&(ml=document.documentMode);var S1=ka&&"TextEvent"in window&&!ml,vh=ka&&(!tu||ml&&8<ml&&11>=ml),bh=" ",Sh=!1;function wh(e,t){switch(e){case"keyup":return b1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fs=!1;function w1(e,t){switch(e){case"compositionend":return kh(t);case"keypress":return t.which!==32?null:(Sh=!0,bh);case"textInput":return e=t.data,e===bh&&Sh?null:e;default:return null}}function k1(e,t){if(fs)return e==="compositionend"||!tu&&wh(e,t)?(e=mh(),zi=Jo=Pa=null,fs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vh&&t.locale!=="ko"?null:t.data;default:return null}}var j1={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 jh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j1[e.type]:t==="textarea"}function Nh(e,t,s,i){cs?ds?ds.push(i):ds=[i]:cs=i,t=Er(t,"onChange"),0<t.length&&(s=new Ui("onChange","change",null,s,i),e.push({event:s,listeners:t}))}var pl=null,gl=null;function N1(e){rp(e,0)}function Bi(e){var t=ul(e);if(ih(t))return e}function Th(e,t){if(e==="change")return t}var Eh=!1;if(ka){var au;if(ka){var nu="oninput"in document;if(!nu){var Ch=document.createElement("div");Ch.setAttribute("oninput","return;"),nu=typeof Ch.oninput=="function"}au=nu}else au=!1;Eh=au&&(!document.documentMode||9<document.documentMode)}function Mh(){pl&&(pl.detachEvent("onpropertychange",Ah),gl=pl=null)}function Ah(e){if(e.propertyName==="value"&&Bi(gl)){var t=[];Nh(t,gl,e,Ko(e)),hh(N1,t)}}function T1(e,t,s){e==="focusin"?(Mh(),pl=t,gl=s,pl.attachEvent("onpropertychange",Ah)):e==="focusout"&&Mh()}function E1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(gl)}function C1(e,t){if(e==="click")return Bi(t)}function M1(e,t){if(e==="input"||e==="change")return Bi(t)}function A1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:A1;function xl(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(i=0;i<s.length;i++){var u=s[i];if(!es.call(t,u)||!Vt(e[u],t[u]))return!1}return!0}function Dh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rh(e,t){var s=Dh(e);e=0;for(var i;s;){if(s.nodeType===3){if(i=e+s.textContent.length,e<=t&&i>=t)return{node:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Dh(s)}}function Oh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Oh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ri(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Ri(e.document)}return t}function su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var D1=ka&&"documentMode"in document&&11>=document.documentMode,hs=null,lu=null,yl=null,iu=!1;function _h(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;iu||hs==null||hs!==Ri(i)||(i=hs,"selectionStart"in i&&su(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),yl&&xl(yl,i)||(yl=i,i=Er(lu,"onSelect"),0<i.length&&(t=new Ui("onSelect","select",null,t,s),e.push({event:t,listeners:i}),t.target=hs)))}function An(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ms={animationend:An("Animation","AnimationEnd"),animationiteration:An("Animation","AnimationIteration"),animationstart:An("Animation","AnimationStart"),transitionrun:An("Transition","TransitionRun"),transitionstart:An("Transition","TransitionStart"),transitioncancel:An("Transition","TransitionCancel"),transitionend:An("Transition","TransitionEnd")},ru={},Vh={};ka&&(Vh=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Dn(e){if(ru[e])return ru[e];if(!ms[e])return e;var t=ms[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Vh)return ru[e]=t[s];return e}var Uh=Dn("animationend"),Lh=Dn("animationiteration"),Bh=Dn("animationstart"),R1=Dn("transitionrun"),O1=Dn("transitionstart"),z1=Dn("transitioncancel"),Hh=Dn("transitionend"),Yh=new Map,ou="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(" ");ou.push("scrollEnd");function sa(e,t){Yh.set(e,t),Cn(t,[e])}var Hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kt=[],ps=0,uu=0;function Yi(){for(var e=ps,t=uu=ps=0;t<e;){var s=Kt[t];Kt[t++]=null;var i=Kt[t];Kt[t++]=null;var u=Kt[t];Kt[t++]=null;var c=Kt[t];if(Kt[t++]=null,i!==null&&u!==null){var x=i.pending;x===null?u.next=u:(u.next=x.next,x.next=u),i.pending=u}c!==0&&qh(s,u,c)}}function qi(e,t,s,i){Kt[ps++]=e,Kt[ps++]=t,Kt[ps++]=s,Kt[ps++]=i,uu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function cu(e,t,s,i){return qi(e,t,s,i),Gi(e)}function Rn(e,t){return qi(e,null,null,t),Gi(e)}function qh(e,t,s){e.lanes|=s;var i=e.alternate;i!==null&&(i.lanes|=s);for(var u=!1,c=e.return;c!==null;)c.childLanes|=s,i=c.alternate,i!==null&&(i.childLanes|=s),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-_t(s),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=s|536870912),c):null}function Gi(e){if(50<Hl)throw Hl=0,vc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gs={};function _1(e,t,s,i){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,s,i){return new _1(e,t,s,i)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var s=e.alternate;return s===null?(s=Ut(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Gh(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xi(e,t,s,i,u,c){var x=0;if(i=e,typeof e=="function")du(e)&&(x=1);else if(typeof e=="string")x=H2(e,s,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Ut(31,s,t,u),e.elementType=I,e.lanes=c,e;case E:return On(s.children,u,c,t);case M:x=8,u|=24;break;case A:return e=Ut(12,s,t,u|2),e.elementType=A,e.lanes=c,e;case Q:return e=Ut(13,s,t,u),e.elementType=Q,e.lanes=c,e;case ae:return e=Ut(19,s,t,u),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:x=10;break e;case z:x=9;break e;case Y:x=11;break e;case K:x=14;break e;case B:x=16,i=null;break e}x=29,s=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=Ut(x,s,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function On(e,t,s,i){return e=Ut(7,e,i,t),e.lanes=s,e}function fu(e,t,s){return e=Ut(6,e,null,t),e.lanes=s,e}function Xh(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function hu(e,t,s){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ph=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var s=Ph.get(e);return s!==void 0?s:(t={value:e,source:t,stack:sl(t)},Ph.set(e,t),t)}return{value:e,source:t,stack:sl(t)}}var xs=[],ys=0,Pi=null,vl=0,Zt=[],Jt=0,Qa=null,ha=1,ma="";function Na(e,t){xs[ys++]=vl,xs[ys++]=Pi,Pi=e,vl=t}function Qh(e,t,s){Zt[Jt++]=ha,Zt[Jt++]=ma,Zt[Jt++]=Qa,Qa=e;var i=ha;e=ma;var u=32-_t(i)-1;i&=~(1<<u),s+=1;var c=32-_t(t)+u;if(30<c){var x=u-u%5;c=(i&(1<<x)-1).toString(32),i>>=x,u-=x,ha=1<<32-_t(t)+u|s<<u|i,ma=c+e}else ha=1<<c|s<<u|i,ma=e}function mu(e){e.return!==null&&(Na(e,1),Qh(e,1,0))}function pu(e){for(;e===Pi;)Pi=xs[--ys],xs[ys]=null,vl=xs[--ys],xs[ys]=null;for(;e===Qa;)Qa=Zt[--Jt],Zt[Jt]=null,ma=Zt[--Jt],Zt[Jt]=null,ha=Zt[--Jt],Zt[Jt]=null}function Kh(e,t){Zt[Jt++]=ha,Zt[Jt++]=ma,Zt[Jt++]=Qa,ha=t.id,ma=t.overflow,Qa=e}var mt=null,Ge=null,Me=!1,Ka=null,$t=!1,gu=Error(r(519));function Fa(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(Ft(t,e)),gu}function Fh(e){var t=e.stateNode,s=e.type,i=e.memoizedProps;switch(t[ht]=e,t[Tt]=i,s){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(s=0;s<ql.length;s++)Te(ql[s],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),rh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),uh(t,i.value,i.defaultValue,i.children)}s=i.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||i.suppressHydrationWarning===!0||dp(t.textContent,s)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=wa),t=!0):t=!1,t||Fa(e,!0)}function Zh(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:mt=mt.return}}function vs(e){if(e!==mt)return!1;if(!Me)return Zh(e),Me=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||zc(e.type,e.memoizedProps)),s=!s),s&&Ge&&Fa(e),Zh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=bp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=bp(e)}else t===27?(t=Ge,un(e.type)?(e=Bc,Bc=null,Ge=e):Ge=t):Ge=mt?It(e.stateNode.nextSibling):null;return!0}function zn(){Ge=mt=null,Me=!1}function xu(){var e=Ka;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Ka=null),e}function bl(e){Ka===null?Ka=[e]:Ka.push(e)}var yu=T(null),_n=null,Ta=null;function Za(e,t,s){O(yu,t._currentValue),t._currentValue=s}function Ea(e){e._currentValue=yu.current,G(yu)}function vu(e,t,s){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===s)break;e=e.return}}function bu(e,t,s,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var x=u.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=u;for(var j=0;j<t.length;j++)if(b.context===t[j]){c.lanes|=s,b=c.alternate,b!==null&&(b.lanes|=s),vu(c.return,s,e),i||(x=null);break e}c=b.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(r(341));x.lanes|=s,c=x.alternate,c!==null&&(c.lanes|=s),vu(x,s,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function bs(e,t,s,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var b=u.type;Vt(u.pendingProps.value,x.value)||(e!==null?e.push(b):e=[b])}}else if(u===ce.current){if(x=u.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Kl):e=[Kl])}u=u.return}e!==null&&bu(t,e,s,i),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!Vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vn(e){_n=e,Ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Jh(_n,e)}function Ki(e,t){return _n===null&&Vn(e),Jh(e,t)}function Jh(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Ta===null){if(e===null)throw Error(r(308));Ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ta=Ta.next=t;return s}var V1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},U1=a.unstable_scheduleCallback,L1=a.unstable_NormalPriority,at={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Su(){return{controller:new V1,data:new Map,refCount:0}}function Sl(e){e.refCount--,e.refCount===0&&U1(L1,function(){e.controller.abort()})}var wl=null,wu=0,Ss=0,ws=null;function B1(e,t){if(wl===null){var s=wl=[];wu=0,Ss=Nc(),ws={status:"pending",value:void 0,then:function(i){s.push(i)}}}return wu++,t.then($h,$h),t}function $h(){if(--wu===0&&wl!==null){ws!==null&&(ws.status="fulfilled");var e=wl;wl=null,Ss=0,ws=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function H1(e,t){var s=[],i={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<s.length;u++)(0,s[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),i}var Wh=R.S;R.S=function(e,t){_0=te(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&B1(e,t),Wh!==null&&Wh(e,t)};var Un=T(null);function ku(){var e=Un.current;return e!==null?e:Ye.pooledCache}function Fi(e,t){t===null?O(Un,Un.current):O(Un,t.pool)}function Ih(){var e=ku();return e===null?null:{parent:at._currentValue,pool:e}}var ks=Error(r(460)),ju=Error(r(474)),Zi=Error(r(542)),Ji={then:function(){}};function em(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tm(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(wa,wa),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e;default:if(typeof t.status=="string")t.then(wa,wa);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e}throw Bn=t,ks}}function Ln(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Bn=s,ks):s}}var Bn=null;function am(){if(Bn===null)throw Error(r(459));var e=Bn;return Bn=null,e}function nm(e){if(e===ks||e===Zi)throw Error(r(483))}var js=null,kl=0;function $i(e){var t=kl;return kl+=1,js===null&&(js=[]),tm(js,e,t)}function jl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wi(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sm(e){function t(D,C){if(e){var _=D.deletions;_===null?(D.deletions=[C],D.flags|=16):_.push(C)}}function s(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function i(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function u(D,C){return D=ja(D,C),D.index=0,D.sibling=null,D}function c(D,C,_){return D.index=_,e?(_=D.alternate,_!==null?(_=_.index,_<C?(D.flags|=67108866,C):_):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function b(D,C,_,X){return C===null||C.tag!==6?(C=fu(_,D.mode,X),C.return=D,C):(C=u(C,_),C.return=D,C)}function j(D,C,_,X){var me=_.type;return me===E?q(D,C,_.props.children,X,_.key):C!==null&&(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===B&&Ln(me)===C.type)?(C=u(C,_.props),jl(C,_),C.return=D,C):(C=Xi(_.type,_.key,_.props,null,D.mode,X),jl(C,_),C.return=D,C)}function V(D,C,_,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==_.containerInfo||C.stateNode.implementation!==_.implementation?(C=hu(_,D.mode,X),C.return=D,C):(C=u(C,_.children||[]),C.return=D,C)}function q(D,C,_,X,me){return C===null||C.tag!==7?(C=On(_,D.mode,X,me),C.return=D,C):(C=u(C,_),C.return=D,C)}function P(D,C,_){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=fu(""+C,D.mode,_),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return _=Xi(C.type,C.key,C.props,null,D.mode,_),jl(_,C),_.return=D,_;case N:return C=hu(C,D.mode,_),C.return=D,C;case B:return C=Ln(C),P(D,C,_)}if($(C)||pe(C))return C=On(C,D.mode,_,null),C.return=D,C;if(typeof C.then=="function")return P(D,$i(C),_);if(C.$$typeof===U)return P(D,Ki(D,C),_);Wi(D,C)}return null}function L(D,C,_,X){var me=C!==null?C.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return me!==null?null:b(D,C,""+_,X);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case k:return _.key===me?j(D,C,_,X):null;case N:return _.key===me?V(D,C,_,X):null;case B:return _=Ln(_),L(D,C,_,X)}if($(_)||pe(_))return me!==null?null:q(D,C,_,X,null);if(typeof _.then=="function")return L(D,C,$i(_),X);if(_.$$typeof===U)return L(D,C,Ki(D,_),X);Wi(D,_)}return null}function H(D,C,_,X,me){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return D=D.get(_)||null,b(C,D,""+X,me);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return D=D.get(X.key===null?_:X.key)||null,j(C,D,X,me);case N:return D=D.get(X.key===null?_:X.key)||null,V(C,D,X,me);case B:return X=Ln(X),H(D,C,_,X,me)}if($(X)||pe(X))return D=D.get(_)||null,q(C,D,X,me,null);if(typeof X.then=="function")return H(D,C,_,$i(X),me);if(X.$$typeof===U)return H(D,C,_,Ki(C,X),me);Wi(C,X)}return null}function ie(D,C,_,X){for(var me=null,Re=null,fe=C,we=C=0,Ce=null;fe!==null&&we<_.length;we++){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var Oe=L(D,fe,_[we],X);if(Oe===null){fe===null&&(fe=Ce);break}e&&fe&&Oe.alternate===null&&t(D,fe),C=c(Oe,C,we),Re===null?me=Oe:Re.sibling=Oe,Re=Oe,fe=Ce}if(we===_.length)return s(D,fe),Me&&Na(D,we),me;if(fe===null){for(;we<_.length;we++)fe=P(D,_[we],X),fe!==null&&(C=c(fe,C,we),Re===null?me=fe:Re.sibling=fe,Re=fe);return Me&&Na(D,we),me}for(fe=i(fe);we<_.length;we++)Ce=H(fe,D,we,_[we],X),Ce!==null&&(e&&Ce.alternate!==null&&fe.delete(Ce.key===null?we:Ce.key),C=c(Ce,C,we),Re===null?me=Ce:Re.sibling=Ce,Re=Ce);return e&&fe.forEach(function(mn){return t(D,mn)}),Me&&Na(D,we),me}function xe(D,C,_,X){if(_==null)throw Error(r(151));for(var me=null,Re=null,fe=C,we=C=0,Ce=null,Oe=_.next();fe!==null&&!Oe.done;we++,Oe=_.next()){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var mn=L(D,fe,Oe.value,X);if(mn===null){fe===null&&(fe=Ce);break}e&&fe&&mn.alternate===null&&t(D,fe),C=c(mn,C,we),Re===null?me=mn:Re.sibling=mn,Re=mn,fe=Ce}if(Oe.done)return s(D,fe),Me&&Na(D,we),me;if(fe===null){for(;!Oe.done;we++,Oe=_.next())Oe=P(D,Oe.value,X),Oe!==null&&(C=c(Oe,C,we),Re===null?me=Oe:Re.sibling=Oe,Re=Oe);return Me&&Na(D,we),me}for(fe=i(fe);!Oe.done;we++,Oe=_.next())Oe=H(fe,D,we,Oe.value,X),Oe!==null&&(e&&Oe.alternate!==null&&fe.delete(Oe.key===null?we:Oe.key),C=c(Oe,C,we),Re===null?me=Oe:Re.sibling=Oe,Re=Oe);return e&&fe.forEach(function($2){return t(D,$2)}),Me&&Na(D,we),me}function He(D,C,_,X){if(typeof _=="object"&&_!==null&&_.type===E&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case k:e:{for(var me=_.key;C!==null;){if(C.key===me){if(me=_.type,me===E){if(C.tag===7){s(D,C.sibling),X=u(C,_.props.children),X.return=D,D=X;break e}}else if(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===B&&Ln(me)===C.type){s(D,C.sibling),X=u(C,_.props),jl(X,_),X.return=D,D=X;break e}s(D,C);break}else t(D,C);C=C.sibling}_.type===E?(X=On(_.props.children,D.mode,X,_.key),X.return=D,D=X):(X=Xi(_.type,_.key,_.props,null,D.mode,X),jl(X,_),X.return=D,D=X)}return x(D);case N:e:{for(me=_.key;C!==null;){if(C.key===me)if(C.tag===4&&C.stateNode.containerInfo===_.containerInfo&&C.stateNode.implementation===_.implementation){s(D,C.sibling),X=u(C,_.children||[]),X.return=D,D=X;break e}else{s(D,C);break}else t(D,C);C=C.sibling}X=hu(_,D.mode,X),X.return=D,D=X}return x(D);case B:return _=Ln(_),He(D,C,_,X)}if($(_))return ie(D,C,_,X);if(pe(_)){if(me=pe(_),typeof me!="function")throw Error(r(150));return _=me.call(_),xe(D,C,_,X)}if(typeof _.then=="function")return He(D,C,$i(_),X);if(_.$$typeof===U)return He(D,C,Ki(D,_),X);Wi(D,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,C!==null&&C.tag===6?(s(D,C.sibling),X=u(C,_),X.return=D,D=X):(s(D,C),X=fu(_,D.mode,X),X.return=D,D=X),x(D)):s(D,C)}return function(D,C,_,X){try{kl=0;var me=He(D,C,_,X);return js=null,me}catch(fe){if(fe===ks||fe===Zi)throw fe;var Re=Ut(29,fe,null,D.mode);return Re.lanes=X,Re.return=D,Re}finally{}}}var Hn=sm(!0),lm=sm(!1),Ja=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=Gi(e),qh(e,null,s),t}return qi(e,i,t,s),Gi(e)}function Nl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Jf(e,s)}}function Eu(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var u=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};c===null?u=c=x:c=c.next=x,s=s.next}while(s!==null);c===null?u=c=t:c=c.next=t}else u=c=t;s={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Cu=!1;function Tl(){if(Cu){var e=ws;if(e!==null)throw e}}function El(e,t,s,i){Cu=!1;var u=e.updateQueue;Ja=!1;var c=u.firstBaseUpdate,x=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var j=b,V=j.next;j.next=null,x===null?c=V:x.next=V,x=j;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==x&&(b===null?q.firstBaseUpdate=V:b.next=V,q.lastBaseUpdate=j))}if(c!==null){var P=u.baseState;x=0,q=V=j=null,b=c;do{var L=b.lane&-536870913,H=L!==b.lane;if(H?(Ee&L)===L:(i&L)===L){L!==0&&L===Ss&&(Cu=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ie=e,xe=b;L=t;var He=s;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){P=ie.call(He,P,L);break e}P=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,L=typeof ie=="function"?ie.call(He,P,L):ie,L==null)break e;P=v({},P,L);break e;case 2:Ja=!0}}L=b.callback,L!==null&&(e.flags|=64,H&&(e.flags|=8192),H=u.callbacks,H===null?u.callbacks=[L]:H.push(L))}else H={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(V=q=H,j=P):q=q.next=H,x|=L;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;H=b,b=H.next,H.next=null,u.lastBaseUpdate=H,u.shared.pending=null}}while(!0);q===null&&(j=P),u.baseState=j,u.firstBaseUpdate=V,u.lastBaseUpdate=q,c===null&&(u.shared.lanes=0),nn|=x,e.lanes=x,e.memoizedState=P}}function im(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function rm(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)im(s[e],t)}var Ns=T(null),Ii=T(0);function om(e,t){e=Va,O(Ii,e),O(Ns,t),Va=e|t.baseLanes}function Mu(){O(Ii,Va),O(Ns,Ns.current)}function Au(){Va=Ii.current,G(Ns),G(Ii)}var Lt=T(null),Wt=null;function Ia(e){var t=e.alternate;O(Ie,Ie.current&1),O(Lt,e),Wt===null&&(t===null||Ns.current!==null||t.memoizedState!==null)&&(Wt=e)}function Du(e){O(Ie,Ie.current),O(Lt,e),Wt===null&&(Wt=e)}function um(e){e.tag===22?(O(Ie,Ie.current),O(Lt,e),Wt===null&&(Wt=e)):en()}function en(){O(Ie,Ie.current),O(Lt,Lt.current)}function Bt(e){G(Lt),Wt===e&&(Wt=null),G(Ie)}var Ie=T(0);function er(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Uc(s)||Lc(s)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ca=0,Se=null,Le=null,nt=null,tr=!1,Ts=!1,Yn=!1,ar=0,Cl=0,Es=null,Y1=0;function Je(){throw Error(r(321))}function Ru(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Vt(e[s],t[s]))return!1;return!0}function Ou(e,t,s,i,u,c){return Ca=c,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Qm:Fu,Yn=!1,c=s(i,u),Yn=!1,Ts&&(c=dm(t,s,i,u)),cm(e),c}function cm(e){R.H=Dl;var t=Le!==null&&Le.next!==null;if(Ca=0,nt=Le=Se=null,tr=!1,Cl=0,Es=null,t)throw Error(r(300));e===null||st||(e=e.dependencies,e!==null&&Qi(e)&&(st=!0))}function dm(e,t,s,i){Se=e;var u=0;do{if(Ts&&(Es=null),Cl=0,Ts=!1,25<=u)throw Error(r(301));if(u+=1,nt=Le=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=Km,c=t(s,i)}while(Ts);return c}function q1(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?Ml(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Se.flags|=1024),t}function zu(){var e=ar!==0;return ar=0,e}function _u(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Vu(e){if(tr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tr=!1}Ca=0,nt=Le=Se=null,Ts=!1,Cl=ar=0,Es=null}function kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Se.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=nt===null?Se.memoizedState:nt.next;if(t!==null)nt=t,Le=e;else{if(e===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},nt===null?Se.memoizedState=nt=e:nt=nt.next=e}return nt}function nr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(e){var t=Cl;return Cl+=1,Es===null&&(Es=[]),e=tm(Es,e,t),t=Se,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Qm:Fu),e}function sr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ml(e);if(e.$$typeof===U)return pt(e)}throw Error(r(438,String(e)))}function Uu(e){var t=null,s=Se.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var i=Se.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=nr(),Se.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),i=0;i<e;i++)s[i]=se;return t.index++,s}function Ma(e,t){return typeof t=="function"?t(e):t}function lr(e){var t=et();return Lu(t,Le,e)}function Lu(e,t,s){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=s;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var x=u.next;u.next=c.next,c.next=x}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var b=x=null,j=null,V=t,q=!1;do{var P=V.lane&-536870913;if(P!==V.lane?(Ee&P)===P:(Ca&P)===P){var L=V.revertLane;if(L===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),P===Ss&&(q=!0);else if((Ca&L)===L){V=V.next,L===Ss&&(q=!0);continue}else P={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},j===null?(b=j=P,x=c):j=j.next=P,Se.lanes|=L,nn|=L;P=V.action,Yn&&s(c,P),c=V.hasEagerState?V.eagerState:s(c,P)}else L={lane:P,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},j===null?(b=j=L,x=c):j=j.next=L,Se.lanes|=P,nn|=P;V=V.next}while(V!==null&&V!==t);if(j===null?x=c:j.next=b,!Vt(c,e.memoizedState)&&(st=!0,q&&(s=ws,s!==null)))throw s;e.memoizedState=c,e.baseState=x,e.baseQueue=j,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Bu(e){var t=et(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var i=s.dispatch,u=s.pending,c=t.memoizedState;if(u!==null){s.pending=null;var x=u=u.next;do c=e(c,x.action),x=x.next;while(x!==u);Vt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),s.lastRenderedState=c}return[c,i]}function fm(e,t,s){var i=Se,u=et(),c=Me;if(c){if(s===void 0)throw Error(r(407));s=s()}else s=t();var x=!Vt((Le||u).memoizedState,s);if(x&&(u.memoizedState=s,st=!0),u=u.queue,qu(pm.bind(null,i,u,e),[e]),u.getSnapshot!==t||x||nt!==null&&nt.memoizedState.tag&1){if(i.flags|=2048,Cs(9,{destroy:void 0},mm.bind(null,i,u,s,t),null),Ye===null)throw Error(r(349));c||(Ca&127)!==0||hm(i,t,s)}return s}function hm(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Se.updateQueue,t===null?(t=nr(),Se.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function mm(e,t,s,i){t.value=s,t.getSnapshot=i,gm(t)&&xm(e)}function pm(e,t,s){return s(function(){gm(t)&&xm(e)})}function gm(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Vt(e,s)}catch{return!0}}function xm(e){var t=Rn(e,2);t!==null&&Rt(t,e,2)}function Hu(e){var t=kt();if(typeof e=="function"){var s=e;if(e=s(),Yn){Ga(!0);try{s()}finally{Ga(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},t}function ym(e,t,s,i){return e.baseState=s,Lu(e,Le,typeof i=="function"?i:Ma)}function G1(e,t,s,i,u){if(or(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){c.listeners.push(x)}};R.T!==null?s(!0):c.isTransition=!1,i(c),s=t.pending,s===null?(c.next=t.pending=c,vm(t,c)):(c.next=s.next,t.pending=s.next=c)}}function vm(e,t){var s=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=R.T,x={};R.T=x;try{var b=s(u,i),j=R.S;j!==null&&j(x,b),bm(e,t,b)}catch(V){Yu(e,t,V)}finally{c!==null&&x.types!==null&&(c.types=x.types),R.T=c}}else try{c=s(u,i),bm(e,t,c)}catch(V){Yu(e,t,V)}}function bm(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(i){Sm(e,t,i)},function(i){return Yu(e,t,i)}):Sm(e,t,s)}function Sm(e,t,s){t.status="fulfilled",t.value=s,wm(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,vm(e,s)))}function Yu(e,t,s){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=s,wm(t),t=t.next;while(t!==i)}e.action=null}function wm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function km(e,t){return t}function jm(e,t){if(Me){var s=Ye.formState;if(s!==null){e:{var i=Se;if(Me){if(Ge){t:{for(var u=Ge,c=$t;u.nodeType!==8;){if(!c){u=null;break t}if(u=It(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ge=It(u.nextSibling),i=u.data==="F!";break e}}Fa(i)}i=!1}i&&(t=s[0])}}return s=kt(),s.memoizedState=s.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:km,lastRenderedState:t},s.queue=i,s=Gm.bind(null,Se,i),i.dispatch=s,i=Hu(!1),c=Ku.bind(null,Se,!1,i.queue),i=kt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,s=G1.bind(null,Se,u,c,s),u.dispatch=s,i.memoizedState=e,[t,s,!1]}function Nm(e){var t=et();return Tm(t,Le,e)}function Tm(e,t,s){if(t=Lu(e,t,km)[0],e=lr(Ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ml(t)}catch(x){throw x===ks?Zi:x}else i=t;t=et();var u=t.queue,c=u.dispatch;return s!==t.memoizedState&&(Se.flags|=2048,Cs(9,{destroy:void 0},X1.bind(null,u,s),null)),[i,c,e]}function X1(e,t){e.action=t}function Em(e){var t=et(),s=Le;if(s!==null)return Tm(t,s,e);et(),t=t.memoizedState,s=et();var i=s.queue.dispatch;return s.memoizedState=e,[t,i,!1]}function Cs(e,t,s,i){return e={tag:e,create:s,deps:i,inst:t,next:null},t=Se.updateQueue,t===null&&(t=nr(),Se.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(i=s.next,s.next=e,e.next=i,t.lastEffect=e),e}function Cm(){return et().memoizedState}function ir(e,t,s,i){var u=kt();Se.flags|=e,u.memoizedState=Cs(1|t,{destroy:void 0},s,i===void 0?null:i)}function rr(e,t,s,i){var u=et();i=i===void 0?null:i;var c=u.memoizedState.inst;Le!==null&&i!==null&&Ru(i,Le.memoizedState.deps)?u.memoizedState=Cs(t,c,s,i):(Se.flags|=e,u.memoizedState=Cs(1|t,c,s,i))}function Mm(e,t){ir(8390656,8,e,t)}function qu(e,t){rr(2048,8,e,t)}function P1(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=nr(),Se.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function Am(e){var t=et().memoizedState;return P1({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Dm(e,t){return rr(4,2,e,t)}function Rm(e,t){return rr(4,4,e,t)}function Om(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zm(e,t,s){s=s!=null?s.concat([e]):null,rr(4,4,Om.bind(null,t,e),s)}function Gu(){}function _m(e,t){var s=et();t=t===void 0?null:t;var i=s.memoizedState;return t!==null&&Ru(t,i[1])?i[0]:(s.memoizedState=[e,t],e)}function Vm(e,t){var s=et();t=t===void 0?null:t;var i=s.memoizedState;if(t!==null&&Ru(t,i[1]))return i[0];if(i=e(),Yn){Ga(!0);try{e()}finally{Ga(!1)}}return s.memoizedState=[i,t],i}function Xu(e,t,s){return s===void 0||(Ca&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=U0(),Se.lanes|=e,nn|=e,s)}function Um(e,t,s,i){return Vt(s,t)?s:Ns.current!==null?(e=Xu(e,s,i),Vt(e,t)||(st=!0),e):(Ca&42)===0||(Ca&1073741824)!==0&&(Ee&261930)===0?(st=!0,e.memoizedState=s):(e=U0(),Se.lanes|=e,nn|=e,t)}function Lm(e,t,s,i,u){var c=J.p;J.p=c!==0&&8>c?c:8;var x=R.T,b={};R.T=b,Ku(e,!1,t,s);try{var j=u(),V=R.S;if(V!==null&&V(b,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var q=H1(j,i);Al(e,t,q,qt(e))}else Al(e,t,i,qt(e))}catch(P){Al(e,t,{then:function(){},status:"rejected",reason:P},qt())}finally{J.p=c,x!==null&&b.types!==null&&(x.types=b.types),R.T=x}}function Q1(){}function Pu(e,t,s,i){if(e.tag!==5)throw Error(r(476));var u=Bm(e).queue;Lm(e,u,t,ee,s===null?Q1:function(){return Hm(e),s(i)})}function Bm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:ee},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hm(e){var t=Bm(e);t.next===null&&(t=e.alternate.memoizedState),Al(e,t.next.queue,{},qt())}function Qu(){return pt(Kl)}function Ym(){return et().memoizedState}function qm(){return et().memoizedState}function K1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=qt();e=$a(s);var i=Wa(t,e,s);i!==null&&(Rt(i,t,s),Nl(i,t,s)),t={cache:Su()},e.payload=t;return}t=t.return}}function F1(e,t,s){var i=qt();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},or(e)?Xm(t,s):(s=cu(e,t,s,i),s!==null&&(Rt(s,e,i),Pm(s,t,i)))}function Gm(e,t,s){var i=qt();Al(e,t,s,i)}function Al(e,t,s,i){var u={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(or(e))Xm(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var x=t.lastRenderedState,b=c(x,s);if(u.hasEagerState=!0,u.eagerState=b,Vt(b,x))return qi(e,t,u,0),Ye===null&&Yi(),!1}catch{}finally{}if(s=cu(e,t,u,i),s!==null)return Rt(s,e,i),Pm(s,t,i),!0}return!1}function Ku(e,t,s,i){if(i={lane:2,revertLane:Nc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},or(e)){if(t)throw Error(r(479))}else t=cu(e,s,i,2),t!==null&&Rt(t,e,2)}function or(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Xm(e,t){Ts=tr=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Pm(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Jf(e,s)}}var Dl={readContext:pt,use:sr,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Dl.useEffectEvent=Je;var Qm={readContext:pt,use:sr,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Mm,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,ir(4194308,4,Om.bind(null,t,e),s)},useLayoutEffect:function(e,t){return ir(4194308,4,e,t)},useInsertionEffect:function(e,t){ir(4,2,e,t)},useMemo:function(e,t){var s=kt();t=t===void 0?null:t;var i=e();if(Yn){Ga(!0);try{e()}finally{Ga(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=kt();if(s!==void 0){var u=s(t);if(Yn){Ga(!0);try{s(t)}finally{Ga(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=F1.bind(null,Se,e),[i.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hu(e);var t=e.queue,s=Gm.bind(null,Se,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Gu,useDeferredValue:function(e,t){var s=kt();return Xu(s,e,t)},useTransition:function(){var e=Hu(!1);return e=Lm.bind(null,Se,e.queue,!0,!1),kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=Se,u=kt();if(Me){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Ye===null)throw Error(r(349));(Ee&127)!==0||hm(i,t,s)}u.memoizedState=s;var c={value:s,getSnapshot:t};return u.queue=c,Mm(pm.bind(null,i,c,e),[e]),i.flags|=2048,Cs(9,{destroy:void 0},mm.bind(null,i,c,s,t),null),s},useId:function(){var e=kt(),t=Ye.identifierPrefix;if(Me){var s=ma,i=ha;s=(i&~(1<<32-_t(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=ar++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=Y1++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qu,useFormState:jm,useActionState:jm,useOptimistic:function(e){var t=kt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Ku.bind(null,Se,!0,s),s.dispatch=t,[e,t]},useMemoCache:Uu,useCacheRefresh:function(){return kt().memoizedState=K1.bind(null,Se)},useEffectEvent:function(e){var t=kt(),s={impl:e};return t.memoizedState=s,function(){if((ze&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Fu={readContext:pt,use:sr,useCallback:_m,useContext:pt,useEffect:qu,useImperativeHandle:zm,useInsertionEffect:Dm,useLayoutEffect:Rm,useMemo:Vm,useReducer:lr,useRef:Cm,useState:function(){return lr(Ma)},useDebugValue:Gu,useDeferredValue:function(e,t){var s=et();return Um(s,Le.memoizedState,e,t)},useTransition:function(){var e=lr(Ma)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:fm,useId:Ym,useHostTransitionStatus:Qu,useFormState:Nm,useActionState:Nm,useOptimistic:function(e,t){var s=et();return ym(s,Le,e,t)},useMemoCache:Uu,useCacheRefresh:qm};Fu.useEffectEvent=Am;var Km={readContext:pt,use:sr,useCallback:_m,useContext:pt,useEffect:qu,useImperativeHandle:zm,useInsertionEffect:Dm,useLayoutEffect:Rm,useMemo:Vm,useReducer:Bu,useRef:Cm,useState:function(){return Bu(Ma)},useDebugValue:Gu,useDeferredValue:function(e,t){var s=et();return Le===null?Xu(s,e,t):Um(s,Le.memoizedState,e,t)},useTransition:function(){var e=Bu(Ma)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:fm,useId:Ym,useHostTransitionStatus:Qu,useFormState:Em,useActionState:Em,useOptimistic:function(e,t){var s=et();return Le!==null?ym(s,Le,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Uu,useCacheRefresh:qm};Km.useEffectEvent=Am;function Zu(e,t,s,i){t=e.memoizedState,s=s(i,t),s=s==null?t:v({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Ju={enqueueSetState:function(e,t,s){e=e._reactInternals;var i=qt(),u=$a(i);u.payload=t,s!=null&&(u.callback=s),t=Wa(e,u,i),t!==null&&(Rt(t,e,i),Nl(t,e,i))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var i=qt(),u=$a(i);u.tag=1,u.payload=t,s!=null&&(u.callback=s),t=Wa(e,u,i),t!==null&&(Rt(t,e,i),Nl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=qt(),i=$a(s);i.tag=2,t!=null&&(i.callback=t),t=Wa(e,i,s),t!==null&&(Rt(t,e,s),Nl(t,e,s))}};function Fm(e,t,s,i,u,c,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,x):t.prototype&&t.prototype.isPureReactComponent?!xl(s,i)||!xl(u,c):!0}function Zm(e,t,s,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,i),t.state!==e&&Ju.enqueueReplaceState(t,t.state,null)}function qn(e,t){var s=t;if("ref"in t){s={};for(var i in t)i!=="ref"&&(s[i]=t[i])}if(e=e.defaultProps){s===t&&(s=v({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}function Jm(e){Hi(e)}function $m(e){console.error(e)}function Wm(e){Hi(e)}function ur(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Im(e,t,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function $u(e,t,s){return s=$a(s),s.tag=3,s.payload={element:null},s.callback=function(){ur(e,t)},s}function e0(e){return e=$a(e),e.tag=3,e}function t0(e,t,s,i){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){Im(t,s,i)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Im(t,s,i),typeof u!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function Z1(e,t,s,i,u){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=s.alternate,t!==null&&bs(t,s,u,!0),s=Lt.current,s!==null){switch(s.tag){case 31:case 13:return Wt===null?Sr():s.alternate===null&&$e===0&&($e=3),s.flags&=-257,s.flags|=65536,s.lanes=u,i===Ji?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([i]):t.add(i),wc(e,i,u)),!1;case 22:return s.flags|=65536,i===Ji?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([i]):s.add(i)),wc(e,i,u)),!1}throw Error(r(435,s.tag))}return wc(e,i,u),Sr(),!1}if(Me)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==gu&&(e=Error(r(422),{cause:i}),bl(Ft(e,s)))):(i!==gu&&(t=Error(r(423),{cause:i}),bl(Ft(t,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=Ft(i,s),u=$u(e.stateNode,i,u),Eu(e,u),$e!==4&&($e=2)),!1;var c=Error(r(520),{cause:i});if(c=Ft(c,s),Bl===null?Bl=[c]:Bl.push(c),$e!==4&&($e=2),t===null)return!0;i=Ft(i,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=$u(s.stateNode,i,e),Eu(s,e),!1;case 1:if(t=s.type,c=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(sn===null||!sn.has(c))))return s.flags|=65536,u&=-u,s.lanes|=u,u=e0(u),t0(u,e,s,i),Eu(s,u),!1}s=s.return}while(s!==null);return!1}var Wu=Error(r(461)),st=!1;function gt(e,t,s,i){t.child=e===null?lm(t,null,s,i):Hn(t,e.child,s,i)}function a0(e,t,s,i,u){s=s.render;var c=t.ref;if("ref"in i){var x={};for(var b in i)b!=="ref"&&(x[b]=i[b])}else x=i;return Vn(t),i=Ou(e,t,s,x,c,u),b=zu(),e!==null&&!st?(_u(e,t,u),Aa(e,t,u)):(Me&&b&&mu(t),t.flags|=1,gt(e,t,i,u),t.child)}function n0(e,t,s,i,u){if(e===null){var c=s.type;return typeof c=="function"&&!du(c)&&c.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=c,s0(e,t,c,i,u)):(e=Xi(s.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ic(e,u)){var x=c.memoizedProps;if(s=s.compare,s=s!==null?s:xl,s(x,i)&&e.ref===t.ref)return Aa(e,t,u)}return t.flags|=1,e=ja(c,i),e.ref=t.ref,e.return=t,t.child=e}function s0(e,t,s,i,u){if(e!==null){var c=e.memoizedProps;if(xl(c,i)&&e.ref===t.ref)if(st=!1,t.pendingProps=i=c,ic(e,u))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Aa(e,t,u)}return Iu(e,t,s,i,u)}function l0(e,t,s,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|s:s,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return i0(e,t,c,s,i)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fi(t,c!==null?c.cachePool:null),c!==null?om(t,c):Mu(),um(t);else return i=t.lanes=536870912,i0(e,t,c!==null?c.baseLanes|s:s,s,i)}else c!==null?(Fi(t,c.cachePool),om(t,c),en(),t.memoizedState=null):(e!==null&&Fi(t,null),Mu(),en());return gt(e,t,u,s),t.child}function Rl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function i0(e,t,s,i,u){var c=ku();return c=c===null?null:{parent:at._currentValue,pool:c},t.memoizedState={baseLanes:s,cachePool:c},e!==null&&Fi(t,null),Mu(),um(t),e!==null&&bs(e,t,i,!0),t.childLanes=u,null}function cr(e,t){return t=fr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function r0(e,t,s){return Hn(t,e.child,null,s),e=cr(t,t.pendingProps),e.flags|=2,Bt(t),t.memoizedState=null,e}function J1(e,t,s){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(i.mode==="hidden")return e=cr(t,i),t.lanes=536870912,Rl(null,e);if(Du(t),(e=Ge)?(e=vp(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ha,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},s=Xh(e),s.return=t,t.child=s,mt=t,Ge=null)):e=null,e===null)throw Fa(t);return t.lanes=536870912,null}return cr(t,i)}var c=e.memoizedState;if(c!==null){var x=c.dehydrated;if(Du(t),u)if(t.flags&256)t.flags&=-257,t=r0(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(st||bs(e,t,s,!1),u=(s&e.childLanes)!==0,st||u){if(i=Ye,i!==null&&(x=$f(i,s),x!==0&&x!==c.retryLane))throw c.retryLane=x,Rn(e,x),Rt(i,e,x),Wu;Sr(),t=r0(e,t,s)}else e=c.treeContext,Ge=It(x.nextSibling),mt=t,Me=!0,Ka=null,$t=!1,e!==null&&Kh(t,e),t=cr(t,i),t.flags|=4096;return t}return e=ja(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function dr(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Iu(e,t,s,i,u){return Vn(t),s=Ou(e,t,s,i,void 0,u),i=zu(),e!==null&&!st?(_u(e,t,u),Aa(e,t,u)):(Me&&i&&mu(t),t.flags|=1,gt(e,t,s,u),t.child)}function o0(e,t,s,i,u,c){return Vn(t),t.updateQueue=null,s=dm(t,i,s,u),cm(e),i=zu(),e!==null&&!st?(_u(e,t,c),Aa(e,t,c)):(Me&&i&&mu(t),t.flags|=1,gt(e,t,s,c),t.child)}function u0(e,t,s,i,u){if(Vn(t),t.stateNode===null){var c=gs,x=s.contextType;typeof x=="object"&&x!==null&&(c=pt(x)),c=new s(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ju,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Nu(t),x=s.contextType,c.context=typeof x=="object"&&x!==null?pt(x):gs,c.state=t.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Zu(t,s,x,i),c.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(x=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),x!==c.state&&Ju.enqueueReplaceState(c,c.state,null),El(t,i,c,u),Tl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,j=qn(s,b);c.props=j;var V=c.context,q=s.contextType;x=gs,typeof q=="object"&&q!==null&&(x=pt(q));var P=s.getDerivedStateFromProps;q=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||V!==x)&&Zm(t,c,i,x),Ja=!1;var L=t.memoizedState;c.state=L,El(t,i,c,u),Tl(),V=t.memoizedState,b||L!==V||Ja?(typeof P=="function"&&(Zu(t,s,P,i),V=t.memoizedState),(j=Ja||Fm(t,s,j,i,L,V,x))?(q||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=x,i=j):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Tu(e,t),x=t.memoizedProps,q=qn(s,x),c.props=q,P=t.pendingProps,L=c.context,V=s.contextType,j=gs,typeof V=="object"&&V!==null&&(j=pt(V)),b=s.getDerivedStateFromProps,(V=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x!==P||L!==j)&&Zm(t,c,i,j),Ja=!1,L=t.memoizedState,c.state=L,El(t,i,c,u),Tl();var H=t.memoizedState;x!==P||L!==H||Ja||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof b=="function"&&(Zu(t,s,b,i),H=t.memoizedState),(q=Ja||Fm(t,s,q,i,L,H,j)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(V||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,H,j),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,H,j)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=j,i=q):(typeof c.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,dr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Hn(t,e.child,null,u),t.child=Hn(t,null,s,u)):gt(e,t,s,u),t.memoizedState=c.state,e=t.child):e=Aa(e,t,u),e}function c0(e,t,s,i){return zn(),t.flags|=256,gt(e,t,s,i),t.child}var ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tc(e){return{baseLanes:e,cachePool:Ih()}}function ac(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=Yt),e}function d0(e,t,s){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,x;if((x=c)||(x=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(u?Ia(t):en(),(e=Ge)?(e=vp(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ha,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},s=Xh(e),s.return=t,t.child=s,mt=t,Ge=null)):e=null,e===null)throw Fa(t);return Lc(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,u?(en(),u=t.mode,b=fr({mode:"hidden",children:b},u),i=On(i,u,s,null),b.return=t,i.return=t,b.sibling=i,t.child=b,i=t.child,i.memoizedState=tc(s),i.childLanes=ac(e,x,s),t.memoizedState=ec,Rl(null,i)):(Ia(t),nc(t,b))}var j=e.memoizedState;if(j!==null&&(b=j.dehydrated,b!==null)){if(c)t.flags&256?(Ia(t),t.flags&=-257,t=sc(e,t,s)):t.memoizedState!==null?(en(),t.child=e.child,t.flags|=128,t=null):(en(),b=i.fallback,u=t.mode,i=fr({mode:"visible",children:i.children},u),b=On(b,u,s,null),b.flags|=2,i.return=t,b.return=t,i.sibling=b,t.child=i,Hn(t,e.child,null,s),i=t.child,i.memoizedState=tc(s),i.childLanes=ac(e,x,s),t.memoizedState=ec,t=Rl(null,i));else if(Ia(t),Lc(b)){if(x=b.nextSibling&&b.nextSibling.dataset,x)var V=x.dgst;x=V,i=Error(r(419)),i.stack="",i.digest=x,bl({value:i,source:null,stack:null}),t=sc(e,t,s)}else if(st||bs(e,t,s,!1),x=(s&e.childLanes)!==0,st||x){if(x=Ye,x!==null&&(i=$f(x,s),i!==0&&i!==j.retryLane))throw j.retryLane=i,Rn(e,i),Rt(x,e,i),Wu;Uc(b)||Sr(),t=sc(e,t,s)}else Uc(b)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ge=It(b.nextSibling),mt=t,Me=!0,Ka=null,$t=!1,e!==null&&Kh(t,e),t=nc(t,i.children),t.flags|=4096);return t}return u?(en(),b=i.fallback,u=t.mode,j=e.child,V=j.sibling,i=ja(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.subtreeFlags&65011712,V!==null?b=ja(V,b):(b=On(b,u,s,null),b.flags|=2),b.return=t,i.return=t,i.sibling=b,t.child=i,Rl(null,i),i=t.child,b=e.child.memoizedState,b===null?b=tc(s):(u=b.cachePool,u!==null?(j=at._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=Ih(),b={baseLanes:b.baseLanes|s,cachePool:u}),i.memoizedState=b,i.childLanes=ac(e,x,s),t.memoizedState=ec,Rl(e.child,i)):(Ia(t),s=e.child,e=s.sibling,s=ja(s,{mode:"visible",children:i.children}),s.return=t,s.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=s,t.memoizedState=null,s)}function nc(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function sc(e,t,s){return Hn(t,e.child,null,s),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function f0(e,t,s){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),vu(e.return,t,s)}function lc(e,t,s,i,u,c){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:u,treeForkCount:c}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=s,x.tailMode=u,x.treeForkCount=c)}function h0(e,t,s){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var x=Ie.current,b=(x&2)!==0;if(b?(x=x&1|2,t.flags|=128):x&=1,O(Ie,x),gt(e,t,i,s),i=Me?vl:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&f0(e,s,t);else if(e.tag===19)f0(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(s=t.child,u=null;s!==null;)e=s.alternate,e!==null&&er(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=t.child,t.child=null):(u=s.sibling,s.sibling=null),lc(t,!1,u,s,c,i);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&er(e)===null){t.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}lc(t,!0,s,null,c,i);break;case"together":lc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Aa(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),nn|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(bs(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=ja(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=ja(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function ic(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function $1(e,t,s){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Za(t,at,e.memoizedState.cache),zn();break;case 27:case 5:ft(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ia(t),t.flags|=128,null):(s&t.child.childLanes)!==0?d0(e,t,s):(Ia(t),e=Aa(e,t,s),e!==null?e.sibling:null);Ia(t);break;case 19:var u=(e.flags&128)!==0;if(i=(s&t.childLanes)!==0,i||(bs(e,t,s,!1),i=(s&t.childLanes)!==0),u){if(i)return h0(e,t,s);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),O(Ie,Ie.current),i)break;return null;case 22:return t.lanes=0,l0(e,t,s,t.pendingProps);case 24:Za(t,at,e.memoizedState.cache)}return Aa(e,t,s)}function m0(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!ic(e,s)&&(t.flags&128)===0)return st=!1,$1(e,t,s);st=(e.flags&131072)!==0}else st=!1,Me&&(t.flags&1048576)!==0&&Qh(t,vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ln(t.elementType),t.type=e,typeof e=="function")du(e)?(i=qn(e,i),t.tag=1,t=u0(null,t,e,i,s)):(t.tag=0,t=Iu(null,t,e,i,s));else{if(e!=null){var u=e.$$typeof;if(u===Y){t.tag=11,t=a0(null,t,e,i,s);break e}else if(u===K){t.tag=14,t=n0(null,t,e,i,s);break e}}throw t=ve(e)||e,Error(r(306,t,""))}}return t;case 0:return Iu(e,t,t.type,t.pendingProps,s);case 1:return i=t.type,u=qn(i,t.pendingProps),u0(e,t,i,u,s);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Tu(e,t),El(t,i,null,s);var x=t.memoizedState;if(i=x.cache,Za(t,at,i),i!==c.cache&&bu(t,[at],s,!0),Tl(),i=x.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=c0(e,t,i,s);break e}else if(i!==u){u=Ft(Error(r(424)),t),bl(u),t=c0(e,t,i,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=It(e.firstChild),mt=t,Me=!0,Ka=null,$t=!0,s=lm(t,null,i,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(zn(),i===u){t=Aa(e,t,s);break e}gt(e,t,i,s)}t=t.child}return t;case 26:return dr(e,t),e===null?(s=Np(t.type,null,t.pendingProps,null))?t.memoizedState=s:Me||(s=t.type,e=t.pendingProps,i=Cr(Z.current).createElement(s),i[ht]=t,i[Tt]=e,xt(i,s,e),ct(i),t.stateNode=i):t.memoizedState=Np(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ft(t),e===null&&Me&&(i=t.stateNode=wp(t.type,t.pendingProps,Z.current),mt=t,$t=!0,u=Ge,un(t.type)?(Bc=u,Ge=It(i.firstChild)):Ge=u),gt(e,t,t.pendingProps.children,s),dr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((u=i=Ge)&&(i=E2(i,t.type,t.pendingProps,$t),i!==null?(t.stateNode=i,mt=t,Ge=It(i.firstChild),$t=!1,u=!0):u=!1),u||Fa(t)),ft(t),u=t.type,c=t.pendingProps,x=e!==null?e.memoizedProps:null,i=c.children,zc(u,c)?i=null:x!==null&&zc(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=Ou(e,t,q1,null,null,s),Kl._currentValue=u),dr(e,t),gt(e,t,i,s),t.child;case 6:return e===null&&Me&&((e=s=Ge)&&(s=C2(s,t.pendingProps,$t),s!==null?(t.stateNode=s,mt=t,Ge=null,e=!0):e=!1),e||Fa(t)),null;case 13:return d0(e,t,s);case 4:return De(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Hn(t,null,i,s):gt(e,t,i,s),t.child;case 11:return a0(e,t,t.type,t.pendingProps,s);case 7:return gt(e,t,t.pendingProps,s),t.child;case 8:return gt(e,t,t.pendingProps.children,s),t.child;case 12:return gt(e,t,t.pendingProps.children,s),t.child;case 10:return i=t.pendingProps,Za(t,t.type,i.value),gt(e,t,i.children,s),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Vn(t),u=pt(u),i=i(u),t.flags|=1,gt(e,t,i,s),t.child;case 14:return n0(e,t,t.type,t.pendingProps,s);case 15:return s0(e,t,t.type,t.pendingProps,s);case 19:return h0(e,t,s);case 31:return J1(e,t,s);case 22:return l0(e,t,s,t.pendingProps);case 24:return Vn(t),i=pt(at),e===null?(u=ku(),u===null&&(u=Ye,c=Su(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=s),u=c),t.memoizedState={parent:i,cache:u},Nu(t),Za(t,at,u)):((e.lanes&s)!==0&&(Tu(e,t),El(t,null,null,s),Tl()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Za(t,at,i)):(i=c.cache,Za(t,at,i),i!==u.cache&&bu(t,[at],s,!0))),gt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Da(e){e.flags|=4}function rc(e,t,s,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Y0())e.flags|=8192;else throw Bn=Ji,ju}else e.flags&=-16777217}function p0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ap(t))if(Y0())e.flags|=8192;else throw Bn=Ji,ju}function hr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ff():536870912,e.lanes|=t,Rs|=t)}function Ol(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(t)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=s,t}function W1(e,t,s){var i=t.pendingProps;switch(pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return s=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ea(at),ge(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(vs(t)?Da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xu())),Xe(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(Da(t),c!==null?(Xe(t),p0(t,c)):(Xe(t),rc(t,u,null,i,s))):c?c!==e.memoizedState?(Da(t),Xe(t),p0(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Da(t),Xe(t),rc(t,u,e,i,s)),null;case 27:if(bt(t),s=Z.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Da(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}e=ne.current,vs(t)?Fh(t):(e=wp(u,i,s),t.stateNode=e,Da(t))}return Xe(t),null;case 5:if(bt(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Da(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}if(c=ne.current,vs(t))Fh(t);else{var x=Cr(Z.current);switch(c){case 1:c=x.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=x.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=x.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?x.createElement(u,{is:i.is}):x.createElement(u)}}c[ht]=t,c[Tt]=i;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)c.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=c;e:switch(xt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Da(t)}}return Xe(t),rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Da(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=Z.current,vs(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,u=mt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[ht]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||dp(e.nodeValue,s)),e||Fa(t,!0)}else e=Cr(e).createTextNode(i),e[ht]=t,t.stateNode=e}return Xe(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=vs(t),s!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ht]=t}else zn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else s=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Xe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=vs(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ht]=t}else zn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),u=!1}else u=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),hr(t,t.updateQueue),Xe(t),null);case 4:return ge(),e===null&&Mc(t.stateNode.containerInfo),Xe(t),null;case 10:return Ea(t.type),Xe(t),null;case 19:if(G(Ie),i=t.memoizedState,i===null)return Xe(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)Ol(i,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=er(e),c!==null){for(t.flags|=128,Ol(i,!1),e=c.updateQueue,t.updateQueue=e,hr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Gh(s,e),s=s.sibling;return O(Ie,Ie.current&1|2),Me&&Na(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&te()>yr&&(t.flags|=128,u=!0,Ol(i,!1),t.lanes=4194304)}else{if(!u)if(e=er(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,hr(t,e),Ol(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Me)return Xe(t),null}else 2*te()-i.renderingStartTime>yr&&s!==536870912&&(t.flags|=128,u=!0,Ol(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=te(),e.sibling=null,s=Ie.current,O(Ie,u?s&1|2:s&1),Me&&Na(t,i.treeForkCount),e):(Xe(t),null);case 22:case 23:return Bt(t),Au(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),s=t.updateQueue,s!==null&&hr(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&G(Un),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ea(at),Xe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function I1(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ea(at),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bt(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(r(340));zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ie),null;case 4:return ge(),null;case 10:return Ea(t.type),null;case 22:case 23:return Bt(t),Au(),e!==null&&G(Un),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ea(at),null;case 25:return null;default:return null}}function g0(e,t){switch(pu(t),t.tag){case 3:Ea(at),ge();break;case 26:case 27:case 5:bt(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:G(Ie);break;case 10:Ea(t.type);break;case 22:case 23:Bt(t),Au(),e!==null&&G(Un);break;case 24:Ea(at)}}function zl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var u=i.next;s=u;do{if((s.tag&e)===e){i=void 0;var c=s.create,x=s.inst;i=c(),x.destroy=i}s=s.next}while(s!==u)}}catch(b){Ve(t,t.return,b)}}function tn(e,t,s){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var x=i.inst,b=x.destroy;if(b!==void 0){x.destroy=void 0,u=t;var j=s,V=b;try{V()}catch(q){Ve(u,j,q)}}}i=i.next}while(i!==c)}}catch(q){Ve(t,t.return,q)}}function x0(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{rm(t,s)}catch(i){Ve(e,e.return,i)}}}function y0(e,t,s){s.props=qn(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(i){Ve(e,t,i)}}function _l(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(u){Ve(e,t,u)}}function pa(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(u){Ve(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Ve(e,t,u)}else s.current=null}function v0(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(u){Ve(e,e.return,u)}}function oc(e,t,s){try{var i=e.stateNode;S2(i,e.type,s,t),i[Tt]=t}catch(u){Ve(e,e.return,u)}}function b0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&un(e.type)||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&un(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cc(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=wa));else if(i!==4&&(i===27&&un(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(cc(e,t,s),e=e.sibling;e!==null;)cc(e,t,s),e=e.sibling}function mr(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&un(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(mr(e,t,s),e=e.sibling;e!==null;)mr(e,t,s),e=e.sibling}function S0(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);xt(t,i,s),t[ht]=e,t[Tt]=s}catch(c){Ve(e,e.return,c)}}var Ra=!1,lt=!1,dc=!1,w0=typeof WeakSet=="function"?WeakSet:Set,dt=null;function e2(e,t){if(e=e.containerInfo,Rc=_r,e=zh(e),su(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var x=0,b=-1,j=-1,V=0,q=0,P=e,L=null;t:for(;;){for(var H;P!==s||u!==0&&P.nodeType!==3||(b=x+u),P!==c||i!==0&&P.nodeType!==3||(j=x+i),P.nodeType===3&&(x+=P.nodeValue.length),(H=P.firstChild)!==null;)L=P,P=H;for(;;){if(P===e)break t;if(L===s&&++V===u&&(b=x),L===c&&++q===i&&(j=x),(H=P.nextSibling)!==null)break;P=L,L=P.parentNode}P=H}s=b===-1||j===-1?null:{start:b,end:j}}else s=null}s=s||{start:0,end:0}}else s=null;for(Oc={focusedElem:e,selectionRange:s},_r=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)u=e[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,s=t,u=c.memoizedProps,c=c.memoizedState,i=s.stateNode;try{var ie=qn(s.type,u);e=i.getSnapshotBeforeUpdate(ie,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Ve(s,s.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Vc(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function k0(e,t,s){var i=s.flags;switch(s.tag){case 0:case 11:case 15:za(e,s),i&4&&zl(5,s);break;case 1:if(za(e,s),i&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(s,s.return,x)}else{var u=qn(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(s,s.return,x)}}i&64&&x0(s),i&512&&_l(s,s.return);break;case 3:if(za(e,s),i&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{rm(e,t)}catch(x){Ve(s,s.return,x)}}break;case 27:t===null&&i&4&&S0(s);case 26:case 5:za(e,s),t===null&&i&4&&v0(s),i&512&&_l(s,s.return);break;case 12:za(e,s);break;case 31:za(e,s),i&4&&T0(e,s);break;case 13:za(e,s),i&4&&E0(e,s),i&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=u2.bind(null,s),M2(e,s))));break;case 22:if(i=s.memoizedState!==null||Ra,!i){t=t!==null&&t.memoizedState!==null||lt,u=Ra;var c=lt;Ra=i,(lt=t)&&!c?_a(e,s,(s.subtreeFlags&8772)!==0):za(e,s),Ra=u,lt=c}break;case 30:break;default:za(e,s)}}function j0(e){var t=e.alternate;t!==null&&(e.alternate=null,j0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ct=!1;function Oa(e,t,s){for(s=s.child;s!==null;)N0(e,t,s),s=s.sibling}function N0(e,t,s){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(ll,s)}catch{}switch(s.tag){case 26:lt||pa(s,t),Oa(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:lt||pa(s,t);var i=Pe,u=Ct;un(s.type)&&(Pe=s.stateNode,Ct=!1),Oa(e,t,s),Xl(s.stateNode),Pe=i,Ct=u;break;case 5:lt||pa(s,t);case 6:if(i=Pe,u=Ct,Pe=null,Oa(e,t,s),Pe=i,Ct=u,Pe!==null)if(Ct)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(s.stateNode)}catch(c){Ve(s,t,c)}else try{Pe.removeChild(s.stateNode)}catch(c){Ve(s,t,c)}break;case 18:Pe!==null&&(Ct?(e=Pe,xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Hs(e)):xp(Pe,s.stateNode));break;case 4:i=Pe,u=Ct,Pe=s.stateNode.containerInfo,Ct=!0,Oa(e,t,s),Pe=i,Ct=u;break;case 0:case 11:case 14:case 15:tn(2,s,t),lt||tn(4,s,t),Oa(e,t,s);break;case 1:lt||(pa(s,t),i=s.stateNode,typeof i.componentWillUnmount=="function"&&y0(s,t,i)),Oa(e,t,s);break;case 21:Oa(e,t,s);break;case 22:lt=(i=lt)||s.memoizedState!==null,Oa(e,t,s),lt=i;break;default:Oa(e,t,s)}}function T0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hs(e)}catch(s){Ve(t,t.return,s)}}}function E0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hs(e)}catch(s){Ve(t,t.return,s)}}function t2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new w0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new w0),t;default:throw Error(r(435,e.tag))}}function pr(e,t){var s=t2(e);t.forEach(function(i){if(!s.has(i)){s.add(i);var u=c2.bind(null,e,i);i.then(u,u)}})}function Mt(e,t){var s=t.deletions;if(s!==null)for(var i=0;i<s.length;i++){var u=s[i],c=e,x=t,b=x;e:for(;b!==null;){switch(b.tag){case 27:if(un(b.type)){Pe=b.stateNode,Ct=!1;break e}break;case 5:Pe=b.stateNode,Ct=!1;break e;case 3:case 4:Pe=b.stateNode.containerInfo,Ct=!0;break e}b=b.return}if(Pe===null)throw Error(r(160));N0(c,x,u),Pe=null,Ct=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)C0(t,e),t=t.sibling}var la=null;function C0(e,t){var s=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),At(e),i&4&&(tn(3,e,e.return),zl(3,e),tn(5,e,e.return));break;case 1:Mt(t,e),At(e),i&512&&(lt||s===null||pa(s,s.return)),i&64&&Ra&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?i:s.concat(i))));break;case 26:var u=la;if(Mt(t,e),At(e),i&512&&(lt||s===null||pa(s,s.return)),i&4){var c=s!==null?s.memoizedState:null;if(i=e.memoizedState,s===null)if(i===null)if(e.stateNode===null){e:{i=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ol]||c[ht]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),xt(c,i,s),c[ht]=e,ct(c),i=c;break e;case"link":var x=Cp("link","href",u).get(i+(s.href||""));if(x){for(var b=0;b<x.length;b++)if(c=x[b],c.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&c.getAttribute("rel")===(s.rel==null?null:s.rel)&&c.getAttribute("title")===(s.title==null?null:s.title)&&c.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(b,1);break t}}c=u.createElement(i),xt(c,i,s),u.head.appendChild(c);break;case"meta":if(x=Cp("meta","content",u).get(i+(s.content||""))){for(b=0;b<x.length;b++)if(c=x[b],c.getAttribute("content")===(s.content==null?null:""+s.content)&&c.getAttribute("name")===(s.name==null?null:s.name)&&c.getAttribute("property")===(s.property==null?null:s.property)&&c.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&c.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(b,1);break t}}c=u.createElement(i),xt(c,i,s),u.head.appendChild(c);break;default:throw Error(r(468,i))}c[ht]=e,ct(c),i=c}e.stateNode=i}else Mp(u,e.type,e.stateNode);else e.stateNode=Ep(u,i,e.memoizedProps);else c!==i?(c===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):c.count--,i===null?Mp(u,e.type,e.stateNode):Ep(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&oc(e,e.memoizedProps,s.memoizedProps)}break;case 27:Mt(t,e),At(e),i&512&&(lt||s===null||pa(s,s.return)),s!==null&&i&4&&oc(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Mt(t,e),At(e),i&512&&(lt||s===null||pa(s,s.return)),e.flags&32){u=e.stateNode;try{us(u,"")}catch(ie){Ve(e,e.return,ie)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,oc(e,u,s!==null?s.memoizedProps:u)),i&1024&&(dc=!0);break;case 6:if(Mt(t,e),At(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,s=e.stateNode;try{s.nodeValue=i}catch(ie){Ve(e,e.return,ie)}}break;case 3:if(Dr=null,u=la,la=Mr(t.containerInfo),Mt(t,e),la=u,At(e),i&4&&s!==null&&s.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(ie){Ve(e,e.return,ie)}dc&&(dc=!1,M0(e));break;case 4:i=la,la=Mr(e.stateNode.containerInfo),Mt(t,e),At(e),la=i;break;case 12:Mt(t,e),At(e);break;case 31:Mt(t,e),At(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,pr(e,i)));break;case 13:Mt(t,e),At(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(xr=te()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,pr(e,i)));break;case 22:u=e.memoizedState!==null;var j=s!==null&&s.memoizedState!==null,V=Ra,q=lt;if(Ra=V||u,lt=q||j,Mt(t,e),lt=q,Ra=V,At(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(s===null||j||Ra||lt||Gn(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){j=s=t;try{if(c=j.stateNode,u)x=c.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{b=j.stateNode;var P=j.memoizedProps.style,L=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ie){Ve(j,j.return,ie)}}}else if(t.tag===6){if(s===null){j=t;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(ie){Ve(j,j.return,ie)}}}else if(t.tag===18){if(s===null){j=t;try{var H=j.stateNode;u?yp(H,!0):yp(j.stateNode,!1)}catch(ie){Ve(j,j.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(s=i.retryQueue,s!==null&&(i.retryQueue=null,pr(e,s))));break;case 19:Mt(t,e),At(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,pr(e,i)));break;case 30:break;case 21:break;default:Mt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{for(var s,i=e.return;i!==null;){if(b0(i)){s=i;break}i=i.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,c=uc(e);mr(e,c,u);break;case 5:var x=s.stateNode;s.flags&32&&(us(x,""),s.flags&=-33);var b=uc(e);mr(e,b,x);break;case 3:case 4:var j=s.stateNode.containerInfo,V=uc(e);cc(e,V,j);break;default:throw Error(r(161))}}catch(q){Ve(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function M0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;M0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function za(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)k0(e,t.alternate,t),t=t.sibling}function Gn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tn(4,t,t.return),Gn(t);break;case 1:pa(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&y0(t,t.return,s),Gn(t);break;case 27:Xl(t.stateNode);case 26:case 5:pa(t,t.return),Gn(t);break;case 22:t.memoizedState===null&&Gn(t);break;case 30:Gn(t);break;default:Gn(t)}e=e.sibling}}function _a(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,x=c.flags;switch(c.tag){case 0:case 11:case 15:_a(u,c,s),zl(4,c);break;case 1:if(_a(u,c,s),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(V){Ve(i,i.return,V)}if(i=c,u=i.updateQueue,u!==null){var b=i.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)im(j[u],b)}catch(V){Ve(i,i.return,V)}}s&&x&64&&x0(c),_l(c,c.return);break;case 27:S0(c);case 26:case 5:_a(u,c,s),s&&i===null&&x&4&&v0(c),_l(c,c.return);break;case 12:_a(u,c,s);break;case 31:_a(u,c,s),s&&x&4&&T0(u,c);break;case 13:_a(u,c,s),s&&x&4&&E0(u,c);break;case 22:c.memoizedState===null&&_a(u,c,s),_l(c,c.return);break;case 30:break;default:_a(u,c,s)}t=t.sibling}}function fc(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Sl(s))}function hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sl(e))}function ia(e,t,s,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)A0(e,t,s,i),t=t.sibling}function A0(e,t,s,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:ia(e,t,s,i),u&2048&&zl(9,t);break;case 1:ia(e,t,s,i);break;case 3:ia(e,t,s,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sl(e)));break;case 12:if(u&2048){ia(e,t,s,i),e=t.stateNode;try{var c=t.memoizedProps,x=c.id,b=c.onPostCommit;typeof b=="function"&&b(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ve(t,t.return,j)}}else ia(e,t,s,i);break;case 31:ia(e,t,s,i);break;case 13:ia(e,t,s,i);break;case 23:break;case 22:c=t.stateNode,x=t.alternate,t.memoizedState!==null?c._visibility&2?ia(e,t,s,i):Vl(e,t):c._visibility&2?ia(e,t,s,i):(c._visibility|=2,Ms(e,t,s,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&fc(x,t);break;case 24:ia(e,t,s,i),u&2048&&hc(t.alternate,t);break;default:ia(e,t,s,i)}}function Ms(e,t,s,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,x=t,b=s,j=i,V=x.flags;switch(x.tag){case 0:case 11:case 15:Ms(c,x,b,j,u),zl(8,x);break;case 23:break;case 22:var q=x.stateNode;x.memoizedState!==null?q._visibility&2?Ms(c,x,b,j,u):Vl(c,x):(q._visibility|=2,Ms(c,x,b,j,u)),u&&V&2048&&fc(x.alternate,x);break;case 24:Ms(c,x,b,j,u),u&&V&2048&&hc(x.alternate,x);break;default:Ms(c,x,b,j,u)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,i=t,u=i.flags;switch(i.tag){case 22:Vl(s,i),u&2048&&fc(i.alternate,i);break;case 24:Vl(s,i),u&2048&&hc(i.alternate,i);break;default:Vl(s,i)}t=t.sibling}}var Ul=8192;function As(e,t,s){if(e.subtreeFlags&Ul)for(e=e.child;e!==null;)D0(e,t,s),e=e.sibling}function D0(e,t,s){switch(e.tag){case 26:As(e,t,s),e.flags&Ul&&e.memoizedState!==null&&Y2(s,la,e.memoizedState,e.memoizedProps);break;case 5:As(e,t,s);break;case 3:case 4:var i=la;la=Mr(e.stateNode.containerInfo),As(e,t,s),la=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ul,Ul=16777216,As(e,t,s),Ul=i):As(e,t,s));break;default:As(e,t,s)}}function R0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ll(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];dt=i,z0(i,e)}R0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)O0(e),e=e.sibling}function O0(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&tn(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gr(e)):Ll(e);break;default:Ll(e)}}function gr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];dt=i,z0(i,e)}R0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tn(8,t,t.return),gr(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,gr(t));break;default:gr(t)}e=e.sibling}}function z0(e,t){for(;dt!==null;){var s=dt;switch(s.tag){case 0:case 11:case 15:tn(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var i=s.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Sl(s.memoizedState.cache)}if(i=s.child,i!==null)i.return=s,dt=i;else e:for(s=e;dt!==null;){i=dt;var u=i.sibling,c=i.return;if(j0(i),i===s){dt=null;break e}if(u!==null){u.return=c,dt=u;break e}dt=c}}}var a2={getCacheForType:function(e){var t=pt(at),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return pt(at).controller.signal}},n2=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ye=null,Ne=null,Ee=0,_e=0,Ht=null,an=!1,Ds=!1,mc=!1,Va=0,$e=0,nn=0,Xn=0,pc=0,Yt=0,Rs=0,Bl=null,Dt=null,gc=!1,xr=0,_0=0,yr=1/0,vr=null,sn=null,rt=0,ln=null,Os=null,Ua=0,xc=0,yc=null,V0=null,Hl=0,vc=null;function qt(){return(ze&2)!==0&&Ee!==0?Ee&-Ee:R.T!==null?Nc():Wf()}function U0(){if(Yt===0)if((Ee&536870912)===0||Me){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),Yt=e}else Yt=536870912;return e=Lt.current,e!==null&&(e.flags|=32),Yt}function Rt(e,t,s){(e===Ye&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(zs(e,0),rn(e,Ee,Yt,!1)),rl(e,s),((ze&2)===0||e!==Ye)&&(e===Ye&&((ze&2)===0&&(Xn|=s),$e===4&&rn(e,Ee,Yt,!1)),ga(e))}function L0(e,t,s){if((ze&6)!==0)throw Error(r(327));var i=!s&&(t&127)===0&&(t&e.expiredLanes)===0||il(e,t),u=i?i2(e,t):Sc(e,t,!0),c=i;do{if(u===0){Ds&&!i&&rn(e,t,0,!1);break}else{if(s=e.current.alternate,c&&!s2(s)){u=Sc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var b=e;u=Bl;var j=b.current.memoizedState.isDehydrated;if(j&&(zs(b,x).flags|=256),x=Sc(b,x,!1),x!==2){if(mc&&!j){b.errorRecoveryDisabledLanes|=c,Xn|=c,u=4;break e}c=Dt,Dt=u,c!==null&&(Dt===null?Dt=c:Dt.push.apply(Dt,c))}u=x}if(c=!1,u!==2)continue}}if(u===1){zs(e,0),rn(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:rn(i,t,Yt,!an);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=xr+300-te(),10<u)){if(rn(i,t,Yt,!an),Mi(i,0,!0)!==0)break e;Ua=t,i.timeoutHandle=pp(B0.bind(null,i,s,Dt,vr,gc,t,Yt,Xn,Rs,an,c,"Throttled",-0,0),u);break e}B0(i,s,Dt,vr,gc,t,Yt,Xn,Rs,an,c,null,-0,0)}}break}while(!0);ga(e)}function B0(e,t,s,i,u,c,x,b,j,V,q,P,L,H){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wa},D0(t,c,P);var ie=(c&62914560)===c?xr-te():(c&4194048)===c?_0-te():0;if(ie=q2(P,ie),ie!==null){Ua=c,e.cancelPendingCommit=ie(K0.bind(null,e,t,c,s,i,u,x,b,j,q,P,null,L,H)),rn(e,c,x,!V);return}}K0(e,t,c,s,i,u,x,b,j)}function s2(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var i=0;i<s.length;i++){var u=s[i],c=u.getSnapshot;u=u.value;try{if(!Vt(c(),u))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rn(e,t,s,i){t&=~pc,t&=~Xn,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-_t(u),x=1<<c;i[c]=-1,u&=~x}s!==0&&Zf(e,s,t)}function br(){return(ze&6)===0?(Yl(0),!1):!0}function bc(){if(Ne!==null){if(_e===0)var e=Ne.return;else e=Ne,Ta=_n=null,Vu(e),js=null,kl=0,e=Ne;for(;e!==null;)g0(e.alternate,e),e=e.return;Ne=null}}function zs(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,j2(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Ua=0,bc(),Ye=e,Ne=s=ja(e.current,null),Ee=t,_e=0,Ht=null,an=!1,Ds=il(e,t),mc=!1,Rs=Yt=pc=Xn=nn=$e=0,Dt=Bl=null,gc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-_t(i),c=1<<u;t|=e[u],i&=~c}return Va=t,Yi(),s}function H0(e,t){Se=null,R.H=Dl,t===ks||t===Zi?(t=am(),_e=3):t===ju?(t=am(),_e=4):_e=t===Wu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,Ne===null&&($e=1,ur(e,Ft(t,e.current)))}function Y0(){var e=Lt.current;return e===null?!0:(Ee&4194048)===Ee?Wt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Wt:!1}function q0(){var e=R.H;return R.H=Dl,e===null?Dl:e}function G0(){var e=R.A;return R.A=a2,e}function Sr(){$e=4,an||(Ee&4194048)!==Ee&&Lt.current!==null||(Ds=!0),(nn&134217727)===0&&(Xn&134217727)===0||Ye===null||rn(Ye,Ee,Yt,!1)}function Sc(e,t,s){var i=ze;ze|=2;var u=q0(),c=G0();(Ye!==e||Ee!==t)&&(vr=null,zs(e,t)),t=!1;var x=$e;e:do try{if(_e!==0&&Ne!==null){var b=Ne,j=Ht;switch(_e){case 8:bc(),x=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var V=_e;if(_e=0,Ht=null,_s(e,b,j,V),s&&Ds){x=0;break e}break;default:V=_e,_e=0,Ht=null,_s(e,b,j,V)}}l2(),x=$e;break}catch(q){H0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Ta=_n=null,ze=i,R.H=u,R.A=c,Ne===null&&(Ye=null,Ee=0,Yi()),x}function l2(){for(;Ne!==null;)X0(Ne)}function i2(e,t){var s=ze;ze|=2;var i=q0(),u=G0();Ye!==e||Ee!==t?(vr=null,yr=te()+500,zs(e,t)):Ds=il(e,t);e:do try{if(_e!==0&&Ne!==null){t=Ne;var c=Ht;t:switch(_e){case 1:_e=0,Ht=null,_s(e,t,c,1);break;case 2:case 9:if(em(c)){_e=0,Ht=null,P0(t);break}t=function(){_e!==2&&_e!==9||Ye!==e||(_e=7),ga(e)},c.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:em(c)?(_e=0,Ht=null,P0(t)):(_e=0,Ht=null,_s(e,t,c,7));break;case 5:var x=null;switch(Ne.tag){case 26:x=Ne.memoizedState;case 5:case 27:var b=Ne;if(x?Ap(x):b.stateNode.complete){_e=0,Ht=null;var j=b.sibling;if(j!==null)Ne=j;else{var V=b.return;V!==null?(Ne=V,wr(V)):Ne=null}break t}}_e=0,Ht=null,_s(e,t,c,5);break;case 6:_e=0,Ht=null,_s(e,t,c,6);break;case 8:bc(),$e=6;break e;default:throw Error(r(462))}}r2();break}catch(q){H0(e,q)}while(!0);return Ta=_n=null,R.H=i,R.A=u,ze=s,Ne!==null?0:(Ye=null,Ee=0,Yi(),$e)}function r2(){for(;Ne!==null&&!F();)X0(Ne)}function X0(e){var t=m0(e.alternate,e,Va);e.memoizedProps=e.pendingProps,t===null?wr(e):Ne=t}function P0(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=o0(s,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=o0(s,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Vu(t);default:g0(s,t),t=Ne=Gh(t,Va),t=m0(s,t,Va)}e.memoizedProps=e.pendingProps,t===null?wr(e):Ne=t}function _s(e,t,s,i){Ta=_n=null,Vu(t),js=null,kl=0;var u=t.return;try{if(Z1(e,u,t,s,Ee)){$e=1,ur(e,Ft(s,e.current)),Ne=null;return}}catch(c){if(u!==null)throw Ne=u,c;$e=1,ur(e,Ft(s,e.current)),Ne=null;return}t.flags&32768?(Me||i===1?e=!0:Ds||(Ee&536870912)!==0?e=!1:(an=e=!0,(i===2||i===9||i===3||i===6)&&(i=Lt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Q0(t,e)):wr(t)}function wr(e){var t=e;do{if((t.flags&32768)!==0){Q0(t,an);return}e=t.return;var s=W1(t.alternate,t,Va);if(s!==null){Ne=s;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);$e===0&&($e=5)}function Q0(e,t){do{var s=I1(e.alternate,e);if(s!==null){s.flags&=32767,Ne=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=s}while(e!==null);$e=6,Ne=null}function K0(e,t,s,i,u,c,x,b,j){e.cancelPendingCommit=null;do kr();while(rt!==0);if((ze&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=uu,Hb(e,s,c,x,b,j),e===Ye&&(Ne=Ye=null,Ee=0),Os=t,ln=e,Ua=s,xc=c,yc=u,V0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,d2(Ni,function(){return W0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,u=J.p,J.p=2,x=ze,ze|=4;try{e2(e,t,s)}finally{ze=x,J.p=u,R.T=i}}rt=1,F0(),Z0(),J0()}}function F0(){if(rt===1){rt=0;var e=ln,t=Os,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=R.T,R.T=null;var i=J.p;J.p=2;var u=ze;ze|=4;try{C0(t,e);var c=Oc,x=zh(e.containerInfo),b=c.focusedElem,j=c.selectionRange;if(x!==b&&b&&b.ownerDocument&&Oh(b.ownerDocument.documentElement,b)){if(j!==null&&su(b)){var V=j.start,q=j.end;if(q===void 0&&(q=V),"selectionStart"in b)b.selectionStart=V,b.selectionEnd=Math.min(q,b.value.length);else{var P=b.ownerDocument||document,L=P&&P.defaultView||window;if(L.getSelection){var H=L.getSelection(),ie=b.textContent.length,xe=Math.min(j.start,ie),He=j.end===void 0?xe:Math.min(j.end,ie);!H.extend&&xe>He&&(x=He,He=xe,xe=x);var D=Rh(b,xe),C=Rh(b,He);if(D&&C&&(H.rangeCount!==1||H.anchorNode!==D.node||H.anchorOffset!==D.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var _=P.createRange();_.setStart(D.node,D.offset),H.removeAllRanges(),xe>He?(H.addRange(_),H.extend(C.node,C.offset)):(_.setEnd(C.node,C.offset),H.addRange(_))}}}}for(P=[],H=b;H=H.parentNode;)H.nodeType===1&&P.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var X=P[b];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}_r=!!Rc,Oc=Rc=null}finally{ze=u,J.p=i,R.T=s}}e.current=t,rt=2}}function Z0(){if(rt===2){rt=0;var e=ln,t=Os,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=R.T,R.T=null;var i=J.p;J.p=2;var u=ze;ze|=4;try{k0(e,t.alternate,t)}finally{ze=u,J.p=i,R.T=s}}rt=3}}function J0(){if(rt===4||rt===3){rt=0,ye();var e=ln,t=Os,s=Ua,i=V0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,Os=ln=null,$0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(sn=null),Bo(s),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(ll,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=R.T,u=J.p,J.p=2,R.T=null;try{for(var c=e.onRecoverableError,x=0;x<i.length;x++){var b=i[x];c(b.value,{componentStack:b.stack})}}finally{R.T=t,J.p=u}}(Ua&3)!==0&&kr(),ga(e),u=e.pendingLanes,(s&261930)!==0&&(u&42)!==0?e===vc?Hl++:(Hl=0,vc=e):Hl=0,Yl(0)}}function $0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sl(t)))}function kr(){return F0(),Z0(),J0(),W0()}function W0(){if(rt!==5)return!1;var e=ln,t=xc;xc=0;var s=Bo(Ua),i=R.T,u=J.p;try{J.p=32>s?32:s,R.T=null,s=yc,yc=null;var c=ln,x=Ua;if(rt=0,Os=ln=null,Ua=0,(ze&6)!==0)throw Error(r(331));var b=ze;if(ze|=4,O0(c.current),A0(c,c.current,x,s),ze=b,Yl(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(ll,c)}catch{}return!0}finally{J.p=u,R.T=i,$0(e,t)}}function I0(e,t,s){t=Ft(s,t),t=$u(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(rl(e,2),ga(e))}function Ve(e,t,s){if(e.tag===3)I0(e,e,s);else for(;t!==null;){if(t.tag===3){I0(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(sn===null||!sn.has(i))){e=Ft(s,e),s=e0(2),i=Wa(t,s,2),i!==null&&(t0(s,i,t,e),rl(i,2),ga(i));break}}t=t.return}}function wc(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new n2;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(s)||(mc=!0,u.add(s),e=o2.bind(null,e,t,s),t.then(e,e))}function o2(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ye===e&&(Ee&s)===s&&($e===4||$e===3&&(Ee&62914560)===Ee&&300>te()-xr?(ze&2)===0&&zs(e,0):pc|=s,Rs===Ee&&(Rs=0)),ga(e)}function ep(e,t){t===0&&(t=Ff()),e=Rn(e,t),e!==null&&(rl(e,t),ga(e))}function u2(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),ep(e,s)}function c2(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),ep(e,s)}function d2(e,t){return ts(e,t)}var jr=null,Vs=null,kc=!1,Nr=!1,jc=!1,on=0;function ga(e){e!==Vs&&e.next===null&&(Vs===null?jr=Vs=e:Vs=Vs.next=e),Nr=!0,kc||(kc=!0,h2())}function Yl(e,t){if(!jc&&Nr){jc=!0;do for(var s=!1,i=jr;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var x=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-_t(42|e)+1)-1,c&=u&~(x&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(s=!0,sp(i,c))}else c=Ee,c=Mi(i,i===Ye?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||il(i,c)||(s=!0,sp(i,c));i=i.next}while(s);jc=!1}}function f2(){tp()}function tp(){Nr=kc=!1;var e=0;on!==0&&k2()&&(e=on);for(var t=te(),s=null,i=jr;i!==null;){var u=i.next,c=ap(i,t);c===0?(i.next=null,s===null?jr=u:s.next=u,u===null&&(Vs=s)):(s=i,(e!==0||(c&3)!==0)&&(Nr=!0)),i=u}rt!==0&&rt!==5||Yl(e),on!==0&&(on=0)}function ap(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var x=31-_t(c),b=1<<x,j=u[x];j===-1?((b&s)===0||(b&i)!==0)&&(u[x]=Bb(b,t)):j<=t&&(e.expiredLanes|=b),c&=~b}if(t=Ye,s=Ee,s=Mi(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,s===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&as(i),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||il(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(i!==null&&as(i),Bo(s)){case 2:case 8:s=Qf;break;case 32:s=Ni;break;case 268435456:s=Kf;break;default:s=Ni}return i=np.bind(null,e),s=ts(s,i),e.callbackPriority=t,e.callbackNode=s,t}return i!==null&&i!==null&&as(i),e.callbackPriority=2,e.callbackNode=null,2}function np(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(kr()&&e.callbackNode!==s)return null;var i=Ee;return i=Mi(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(L0(e,i,t),ap(e,te()),e.callbackNode!=null&&e.callbackNode===s?np.bind(null,e):null)}function sp(e,t){if(kr())return null;L0(e,t,!0)}function h2(){N2(function(){(ze&6)!==0?ts(Pf,f2):tp()})}function Nc(){if(on===0){var e=Ss;e===0&&(e=Ti,Ti<<=1,(Ti&261888)===0&&(Ti=256)),on=e}return on}function lp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Oi(""+e)}function ip(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function m2(e,t,s,i,u){if(t==="submit"&&s&&s.stateNode===u){var c=lp((u[Tt]||null).action),x=i.submitter;x&&(t=(t=x[Tt]||null)?lp(t.formAction):x.getAttribute("formAction"),t!==null&&(c=t,x=null));var b=new Ui("action","action",null,i,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(on!==0){var j=x?ip(u,x):new FormData(u);Pu(s,{pending:!0,data:j,method:u.method,action:c},null,j)}}else typeof c=="function"&&(b.preventDefault(),j=x?ip(u,x):new FormData(u),Pu(s,{pending:!0,data:j,method:u.method,action:c},c,j))},currentTarget:u}]})}}for(var Tc=0;Tc<ou.length;Tc++){var Ec=ou[Tc],p2=Ec.toLowerCase(),g2=Ec[0].toUpperCase()+Ec.slice(1);sa(p2,"on"+g2)}sa(Uh,"onAnimationEnd"),sa(Lh,"onAnimationIteration"),sa(Bh,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(R1,"onTransitionRun"),sa(O1,"onTransitionStart"),sa(z1,"onTransitionCancel"),sa(Hh,"onTransitionEnd"),rs("onMouseEnter",["mouseout","mouseover"]),rs("onMouseLeave",["mouseout","mouseover"]),rs("onPointerEnter",["pointerout","pointerover"]),rs("onPointerLeave",["pointerout","pointerover"]),Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),x2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function rp(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var i=e[s],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var x=i.length-1;0<=x;x--){var b=i[x],j=b.instance,V=b.currentTarget;if(b=b.listener,j!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=V;try{c(u)}catch(q){Hi(q)}u.currentTarget=null,c=j}else for(x=0;x<i.length;x++){if(b=i[x],j=b.instance,V=b.currentTarget,b=b.listener,j!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=V;try{c(u)}catch(q){Hi(q)}u.currentTarget=null,c=j}}}}function Te(e,t){var s=t[Ho];s===void 0&&(s=t[Ho]=new Set);var i=e+"__bubble";s.has(i)||(op(t,e,2,!1),s.add(i))}function Cc(e,t,s){var i=0;t&&(i|=4),op(s,e,i,t)}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Mc(e){if(!e[Tr]){e[Tr]=!0,th.forEach(function(s){s!=="selectionchange"&&(x2.has(s)||Cc(s,!1,e),Cc(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tr]||(t[Tr]=!0,Cc("selectionchange",!1,t))}}function op(e,t,s,i){switch(Up(t)){case 2:var u=P2;break;case 8:u=Q2;break;default:u=Xc}s=u.bind(null,t,s,e),u=void 0,!Zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,s,{capture:!0,passive:u}):e.addEventListener(t,s,!0):u!==void 0?e.addEventListener(t,s,{passive:u}):e.addEventListener(t,s,!1)}function Ac(e,t,s,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var b=i.stateNode.containerInfo;if(b===u)break;if(x===4)for(x=i.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;b!==null;){if(x=ss(b),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){i=c=x;continue e}b=b.parentNode}}i=i.return}hh(function(){var V=c,q=Ko(s),P=[];e:{var L=Yh.get(e);if(L!==void 0){var H=Ui,ie=e;switch(e){case"keypress":if(_i(s)===0)break e;case"keydown":case"keyup":H=c1;break;case"focusin":ie="focus",H=Io;break;case"focusout":ie="blur",H=Io;break;case"beforeblur":case"afterblur":H=Io;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Wb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=h1;break;case Uh:case Lh:case Bh:H=t1;break;case Hh:H=p1;break;case"scroll":case"scrollend":H=Jb;break;case"wheel":H=x1;break;case"copy":case"cut":case"paste":H=n1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=yh;break;case"toggle":case"beforetoggle":H=v1}var xe=(t&4)!==0,He=!xe&&(e==="scroll"||e==="scrollend"),D=xe?L!==null?L+"Capture":null:L;xe=[];for(var C=V,_;C!==null;){var X=C;if(_=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||_===null||D===null||(X=cl(C,D),X!=null&&xe.push(Gl(C,X,_))),He)break;C=C.return}0<xe.length&&(L=new H(L,ie,null,s,q),P.push({event:L,listeners:xe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",L&&s!==Qo&&(ie=s.relatedTarget||s.fromElement)&&(ss(ie)||ie[ns]))break e;if((H||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,H?(ie=s.relatedTarget||s.toElement,H=V,ie=ie?ss(ie):null,ie!==null&&(He=f(ie),xe=ie.tag,ie!==He||xe!==5&&xe!==27&&xe!==6)&&(ie=null)):(H=null,ie=V),H!==ie)){if(xe=gh,X="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(xe=yh,X="onPointerLeave",D="onPointerEnter",C="pointer"),He=H==null?L:ul(H),_=ie==null?L:ul(ie),L=new xe(X,C+"leave",H,s,q),L.target=He,L.relatedTarget=_,X=null,ss(q)===V&&(xe=new xe(D,C+"enter",ie,s,q),xe.target=_,xe.relatedTarget=He,X=xe),He=X,H&&ie)t:{for(xe=y2,D=H,C=ie,_=0,X=D;X;X=xe(X))_++;X=0;for(var me=C;me;me=xe(me))X++;for(;0<_-X;)D=xe(D),_--;for(;0<X-_;)C=xe(C),X--;for(;_--;){if(D===C||C!==null&&D===C.alternate){xe=D;break t}D=xe(D),C=xe(C)}xe=null}else xe=null;H!==null&&up(P,L,H,xe,!1),ie!==null&&He!==null&&up(P,He,ie,xe,!0)}}e:{if(L=V?ul(V):window,H=L.nodeName&&L.nodeName.toLowerCase(),H==="select"||H==="input"&&L.type==="file")var Re=Th;else if(jh(L))if(Eh)Re=M1;else{Re=E1;var fe=T1}else H=L.nodeName,!H||H.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?V&&Po(V.elementType)&&(Re=Th):Re=C1;if(Re&&(Re=Re(e,V))){Nh(P,Re,s,q);break e}fe&&fe(e,L,V),e==="focusout"&&V&&L.type==="number"&&V.memoizedProps.value!=null&&Xo(L,"number",L.value)}switch(fe=V?ul(V):window,e){case"focusin":(jh(fe)||fe.contentEditable==="true")&&(hs=fe,lu=V,yl=null);break;case"focusout":yl=lu=hs=null;break;case"mousedown":iu=!0;break;case"contextmenu":case"mouseup":case"dragend":iu=!1,_h(P,s,q);break;case"selectionchange":if(D1)break;case"keydown":case"keyup":_h(P,s,q)}var we;if(tu)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else fs?wh(e,s)&&(Ce="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(vh&&s.locale!=="ko"&&(fs||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&fs&&(we=mh()):(Pa=q,Jo="value"in Pa?Pa.value:Pa.textContent,fs=!0)),fe=Er(V,Ce),0<fe.length&&(Ce=new xh(Ce,e,null,s,q),P.push({event:Ce,listeners:fe}),we?Ce.data=we:(we=kh(s),we!==null&&(Ce.data=we)))),(we=S1?w1(e,s):k1(e,s))&&(Ce=Er(V,"onBeforeInput"),0<Ce.length&&(fe=new xh("onBeforeInput","beforeinput",null,s,q),P.push({event:fe,listeners:Ce}),fe.data=we)),m2(P,e,V,s,q)}rp(P,t)})}function Gl(e,t,s){return{instance:e,listener:t,currentTarget:s}}function Er(e,t){for(var s=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=cl(e,s),u!=null&&i.unshift(Gl(e,u,c)),u=cl(e,t),u!=null&&i.push(Gl(e,u,c))),e.tag===3)return i;e=e.return}return[]}function y2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function up(e,t,s,i,u){for(var c=t._reactName,x=[];s!==null&&s!==i;){var b=s,j=b.alternate,V=b.stateNode;if(b=b.tag,j!==null&&j===i)break;b!==5&&b!==26&&b!==27||V===null||(j=V,u?(V=cl(s,c),V!=null&&x.unshift(Gl(s,V,j))):u||(V=cl(s,c),V!=null&&x.push(Gl(s,V,j)))),s=s.return}x.length!==0&&e.push({event:t,listeners:x})}var v2=/\r\n?/g,b2=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(v2,`
|
||
`).replace(b2,"")}function dp(e,t){return t=cp(t),cp(e)===t}function Be(e,t,s,i,u,c){switch(s){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||us(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&us(e,""+i);break;case"className":Di(e,"class",i);break;case"tabIndex":Di(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(e,s,i);break;case"style":dh(e,i,c);break;case"data":if(t!=="object"){Di(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=Oi(""+i),e.setAttribute(s,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(s,"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"&&(s==="formAction"?(t!=="input"&&Be(e,t,"name",u.name,u,null),Be(e,t,"formEncType",u.formEncType,u,null),Be(e,t,"formMethod",u.formMethod,u,null),Be(e,t,"formTarget",u.formTarget,u,null)):(Be(e,t,"encType",u.encType,u,null),Be(e,t,"method",u.method,u,null),Be(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=Oi(""+i),e.setAttribute(s,i);break;case"onClick":i!=null&&(e.onclick=wa);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(s=i.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}s=Oi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""+i):e.removeAttribute(s);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":i===!0?e.setAttribute(s,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,i):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(s,i):e.removeAttribute(s);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(s):e.setAttribute(s,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ai(e,"popover",i);break;case"xlinkActuate":Sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Sa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Sa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Sa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Sa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ai(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Fb.get(s)||s,Ai(e,s,i))}}function Dc(e,t,s,i,u,c){switch(s){case"style":dh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(s=i.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"children":typeof i=="string"?us(e,i):(typeof i=="number"||typeof i=="bigint")&&us(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=wa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ah.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),t=s.slice(2,u?s.length-7:void 0),c=e[Tt]||null,c=c!=null?c[s]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,i,u);break e}s in e?e[s]=i:i===!0?e.setAttribute(s,""):Ai(e,s,i)}}}function xt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,u=!1,c;for(c in s)if(s.hasOwnProperty(c)){var x=s[c];if(x!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Be(e,t,c,x,s,null)}}u&&Be(e,t,"srcSet",s.srcSet,s,null),i&&Be(e,t,"src",s.src,s,null);return;case"input":Te("invalid",e);var b=c=x=u=null,j=null,V=null;for(i in s)if(s.hasOwnProperty(i)){var q=s[i];if(q!=null)switch(i){case"name":u=q;break;case"type":x=q;break;case"checked":j=q;break;case"defaultChecked":V=q;break;case"value":c=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:Be(e,t,i,q,s,null)}}rh(e,c,b,j,V,x,u,!1);return;case"select":Te("invalid",e),i=x=c=null;for(u in s)if(s.hasOwnProperty(u)&&(b=s[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":x=b;break;case"multiple":i=b;default:Be(e,t,u,b,s,null)}t=c,s=x,e.multiple=!!i,t!=null?os(e,!!i,t,!1):s!=null&&os(e,!!i,s,!0);return;case"textarea":Te("invalid",e),c=u=i=null;for(x in s)if(s.hasOwnProperty(x)&&(b=s[x],b!=null))switch(x){case"value":i=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Be(e,t,x,b,s,null)}uh(e,i,u,c);return;case"option":for(j in s)if(s.hasOwnProperty(j)&&(i=s[j],i!=null))switch(j){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Be(e,t,j,i,s,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<ql.length;i++)Te(ql[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in s)if(s.hasOwnProperty(V)&&(i=s[V],i!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Be(e,t,V,i,s,null)}return;default:if(Po(t)){for(q in s)s.hasOwnProperty(q)&&(i=s[q],i!==void 0&&Dc(e,t,q,i,s,void 0));return}}for(b in s)s.hasOwnProperty(b)&&(i=s[b],i!=null&&Be(e,t,b,i,s,null))}function S2(e,t,s,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,x=null,b=null,j=null,V=null,q=null;for(H in s){var P=s[H];if(s.hasOwnProperty(H)&&P!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":j=P;default:i.hasOwnProperty(H)||Be(e,t,H,null,i,P)}}for(var L in i){var H=i[L];if(P=s[L],i.hasOwnProperty(L)&&(H!=null||P!=null))switch(L){case"type":c=H;break;case"name":u=H;break;case"checked":V=H;break;case"defaultChecked":q=H;break;case"value":x=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:H!==P&&Be(e,t,L,H,i,P)}}Go(e,x,b,j,V,q,c,u);return;case"select":H=x=b=L=null;for(c in s)if(j=s[c],s.hasOwnProperty(c)&&j!=null)switch(c){case"value":break;case"multiple":H=j;default:i.hasOwnProperty(c)||Be(e,t,c,null,i,j)}for(u in i)if(c=i[u],j=s[u],i.hasOwnProperty(u)&&(c!=null||j!=null))switch(u){case"value":L=c;break;case"defaultValue":b=c;break;case"multiple":x=c;default:c!==j&&Be(e,t,u,c,i,j)}t=b,s=x,i=H,L!=null?os(e,!!s,L,!1):!!i!=!!s&&(t!=null?os(e,!!s,t,!0):os(e,!!s,s?[]:"",!1));return;case"textarea":H=L=null;for(b in s)if(u=s[b],s.hasOwnProperty(b)&&u!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Be(e,t,b,null,i,u)}for(x in i)if(u=i[x],c=s[x],i.hasOwnProperty(x)&&(u!=null||c!=null))switch(x){case"value":L=u;break;case"defaultValue":H=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Be(e,t,x,u,i,c)}oh(e,L,H);return;case"option":for(var ie in s)if(L=s[ie],s.hasOwnProperty(ie)&&L!=null&&!i.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Be(e,t,ie,null,i,L)}for(j in i)if(L=i[j],H=s[j],i.hasOwnProperty(j)&&L!==H&&(L!=null||H!=null))switch(j){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Be(e,t,j,L,i,H)}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 xe in s)L=s[xe],s.hasOwnProperty(xe)&&L!=null&&!i.hasOwnProperty(xe)&&Be(e,t,xe,null,i,L);for(V in i)if(L=i[V],H=s[V],i.hasOwnProperty(V)&&L!==H&&(L!=null||H!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:Be(e,t,V,L,i,H)}return;default:if(Po(t)){for(var He in s)L=s[He],s.hasOwnProperty(He)&&L!==void 0&&!i.hasOwnProperty(He)&&Dc(e,t,He,void 0,i,L);for(q in i)L=i[q],H=s[q],!i.hasOwnProperty(q)||L===H||L===void 0&&H===void 0||Dc(e,t,q,L,i,H);return}}for(var D in s)L=s[D],s.hasOwnProperty(D)&&L!=null&&!i.hasOwnProperty(D)&&Be(e,t,D,null,i,L);for(P in i)L=i[P],H=s[P],!i.hasOwnProperty(P)||L===H||L==null&&H==null||Be(e,t,P,L,i,H)}function fp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),i=0;i<s.length;i++){var u=s[i],c=u.transferSize,x=u.initiatorType,b=u.duration;if(c&&b&&fp(x)){for(x=0,b=u.responseEnd,i+=1;i<s.length;i++){var j=s[i],V=j.startTime;if(V>b)break;var q=j.transferSize,P=j.initiatorType;q&&fp(P)&&(j=j.responseEnd,x+=q*(j<b?1:(b-V)/(j-V)))}if(--i,t+=8*(c+x)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Oc=null;function Cr(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function zc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _c=null;function k2(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var pp=typeof setTimeout=="function"?setTimeout:void 0,j2=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,N2=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(e){return gp.resolve(null).then(e).catch(T2)}:pp;function T2(e){setTimeout(function(){throw e})}function un(e){return e==="head"}function xp(e,t){var s=t,i=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(i===0){e.removeChild(u),Hs(t);return}i--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")i++;else if(s==="html")Xl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Xl(s);for(var c=s.firstChild;c;){var x=c.nextSibling,b=c.nodeName;c[ol]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||s.removeChild(c),c=x}}else s==="body"&&Xl(e.ownerDocument.body);s=u}while(s);Hs(t)}function yp(e,t){var s=e;e=0;do{var i=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),i&&i.nodeType===8)if(s=i.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=i}while(s)}function Vc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Vc(s),Yo(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function E2(e,t,s,i){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ol])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function C2(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=It(e.nextSibling),e===null))return null;return e}function vp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function Uc(e){return e.data==="$?"||e.data==="$~"}function Lc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function M2(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var i=function(){t(),s.removeEventListener("DOMContentLoaded",i)};s.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bc=null;function bp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return It(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function Sp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function wp(e,t,s){switch(t=Cr(s),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Xl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yo(e)}var ea=new Map,kp=new Set;function Mr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var La=J.d;J.d={f:A2,r:D2,D:R2,C:O2,L:z2,m:_2,X:U2,S:V2,M:L2};function A2(){var e=La.f(),t=br();return e||t}function D2(e){var t=ls(e);t!==null&&t.tag===5&&t.type==="form"?Hm(t):La.r(e)}var Us=typeof document>"u"?null:document;function jp(e,t,s){var i=Us;if(i&&typeof t=="string"&&t){var u=Qt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),kp.has(u)||(kp.add(u),e={rel:e,crossOrigin:s,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),xt(t,"link",e),ct(t),i.head.appendChild(t)))}}function R2(e){La.D(e),jp("dns-prefetch",e,null)}function O2(e,t){La.C(e,t),jp("preconnect",e,t)}function z2(e,t,s){La.L(e,t,s);var i=Us;if(i&&e&&t){var u='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+Qt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+Qt(s.imageSizes)+'"]')):u+='[href="'+Qt(e)+'"]';var c=u;switch(t){case"style":c=Ls(e);break;case"script":c=Bs(e)}ea.has(c)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),ea.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Pl(c))||t==="script"&&i.querySelector(Ql(c))||(t=i.createElement("link"),xt(t,"link",e),ct(t),i.head.appendChild(t)))}}function _2(e,t){La.m(e,t);var s=Us;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Qt(i)+'"][href="'+Qt(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Bs(e)}if(!ea.has(c)&&(e=v({rel:"modulepreload",href:e},t),ea.set(c,e),s.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ql(c)))return}i=s.createElement("link"),xt(i,"link",e),ct(i),s.head.appendChild(i)}}}function V2(e,t,s){La.S(e,t,s);var i=Us;if(i&&e){var u=is(i).hoistableStyles,c=Ls(e);t=t||"default";var x=u.get(c);if(!x){var b={loading:0,preload:null};if(x=i.querySelector(Pl(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=ea.get(c))&&Hc(e,s);var j=x=i.createElement("link");ct(j),xt(j,"link",e),j._p=new Promise(function(V,q){j.onload=V,j.onerror=q}),j.addEventListener("load",function(){b.loading|=1}),j.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ar(x,t,i)}x={type:"stylesheet",instance:x,count:1,state:b},u.set(c,x)}}}function U2(e,t){La.X(e,t);var s=Us;if(s&&e){var i=is(s).hoistableScripts,u=Bs(e),c=i.get(u);c||(c=s.querySelector(Ql(u)),c||(e=v({src:e,async:!0},t),(t=ea.get(u))&&Yc(e,t),c=s.createElement("script"),ct(c),xt(c,"link",e),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function L2(e,t){La.M(e,t);var s=Us;if(s&&e){var i=is(s).hoistableScripts,u=Bs(e),c=i.get(u);c||(c=s.querySelector(Ql(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ea.get(u))&&Yc(e,t),c=s.createElement("script"),ct(c),xt(c,"link",e),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function Np(e,t,s,i){var u=(u=Z.current)?Mr(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Ls(s.href),s=is(u).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Ls(s.href);var c=is(u).hoistableStyles,x=c.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,x),(c=u.querySelector(Pl(e)))&&!c._p&&(x.instance=c,x.state.loading=5),ea.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},ea.set(e,s),c||B2(u,e,s,x.state))),t&&i===null)throw Error(r(528,""));return x}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Bs(s),s=is(u).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ls(e){return'href="'+Qt(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function Tp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function B2(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),xt(t,"link",s),ct(t),e.head.appendChild(t))}function Bs(e){return'[src="'+Qt(e)+'"]'}function Ql(e){return"script[async]"+e}function Ep(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Qt(s.href)+'"]');if(i)return t.instance=i,ct(i),i;var u=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ct(i),xt(i,"style",u),Ar(i,s.precedence,e),t.instance=i;case"stylesheet":u=Ls(s.href);var c=e.querySelector(Pl(u));if(c)return t.state.loading|=4,t.instance=c,ct(c),c;i=Tp(s),(u=ea.get(u))&&Hc(i,u),c=(e.ownerDocument||e).createElement("link"),ct(c);var x=c;return x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),xt(c,"link",i),t.state.loading|=4,Ar(c,s.precedence,e),t.instance=c;case"script":return c=Bs(s.src),(u=e.querySelector(Ql(c)))?(t.instance=u,ct(u),u):(i=s,(u=ea.get(c))&&(i=v({},s),Yc(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),ct(u),xt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ar(i,s.precedence,e));return t.instance}function Ar(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,x=0;x<i.length;x++){var b=i[x];if(b.dataset.precedence===t)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function Hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Dr=null;function Cp(e,t,s){if(Dr===null){var i=new Map,u=Dr=new Map;u.set(s,i)}else u=Dr,i=u.get(s),i||(i=new Map,u.set(s,i));if(i.has(e))return i;for(i.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var c=s[u];if(!(c[ol]||c[ht]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var x=c.getAttribute(t)||"";x=e+x;var b=i.get(x);b?b.push(c):i.set(x,[c])}}return i}function Mp(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function H2(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y2(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=Ls(i.href),c=t.querySelector(Pl(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Rr.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=c,ct(c);return}c=t.ownerDocument||t,i=Tp(i),(u=ea.get(u))&&Hc(i,u),c=c.createElement("link"),ct(c);var x=c;x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),xt(c,"link",i),s.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Rr.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var qc=0;function q2(e,t){return e.stylesheets&&e.count===0&&zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var i=setTimeout(function(){if(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&qc===0&&(qc=62500*w2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>qc?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Or=null;function zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Or=new Map,t.forEach(G2,e),Or=null,Rr.call(e))}function G2(e,t){if(!(t.state.loading&4)){var s=Or.get(e);if(s)var i=s.get(null);else{s=new Map,Or.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var x=u[c];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),i=x)}i&&s.set(null,i)}u=t.instance,x=u.getAttribute("data-precedence"),c=s.get(x)||i,c===i&&s.set(null,u),s.set(x,u),this.count++,i=Rr.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Kl={$$typeof:U,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function X2(e,t,s,i,u,c,x,b,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.hiddenUpdates=Uo(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Dp(e,t,s,i,u,c,x,b,j,V,q,P){return e=new X2(e,t,s,x,j,V,q,P,b),t=1,c===!0&&(t|=24),c=Ut(3,null,null,t),e.current=c,c.stateNode=e,t=Su(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:s,cache:t},Nu(c),e}function Rp(e){return e?(e=gs,e):gs}function Op(e,t,s,i,u,c){u=Rp(u),i.context===null?i.context=u:i.pendingContext=u,i=$a(t),i.payload={element:s},c=c===void 0?null:c,c!==null&&(i.callback=c),s=Wa(e,i,t),s!==null&&(Rt(s,e,t),Nl(s,e,t))}function zp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Gc(e,t){zp(e,t),(e=e.alternate)&&zp(e,t)}function _p(e){if(e.tag===13||e.tag===31){var t=Rn(e,67108864);t!==null&&Rt(t,e,67108864),Gc(e,67108864)}}function Vp(e){if(e.tag===13||e.tag===31){var t=qt();t=Lo(t);var s=Rn(e,t);s!==null&&Rt(s,e,t),Gc(e,t)}}var _r=!0;function P2(e,t,s,i){var u=R.T;R.T=null;var c=J.p;try{J.p=2,Xc(e,t,s,i)}finally{J.p=c,R.T=u}}function Q2(e,t,s,i){var u=R.T;R.T=null;var c=J.p;try{J.p=8,Xc(e,t,s,i)}finally{J.p=c,R.T=u}}function Xc(e,t,s,i){if(_r){var u=Pc(i);if(u===null)Ac(e,t,i,Vr,s),Lp(e,i);else if(F2(u,e,t,s,i))i.stopPropagation();else if(Lp(e,i),t&4&&-1<K2.indexOf(e)){for(;u!==null;){var c=ls(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var x=En(c.pendingLanes);if(x!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;x;){var j=1<<31-_t(x);b.entanglements[1]|=j,x&=~j}ga(c),(ze&6)===0&&(yr=te()+500,Yl(0))}}break;case 31:case 13:b=Rn(c,2),b!==null&&Rt(b,c,2),br(),Gc(c,2)}if(c=Pc(i),c===null&&Ac(e,t,i,Vr,s),c===u)break;u=c}u!==null&&i.stopPropagation()}else Ac(e,t,i,null,s)}}function Pc(e){return e=Ko(e),Qc(e)}var Vr=null;function Qc(e){if(Vr=null,e=ss(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=h(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vr=e,null}function Up(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(Rb()){case Pf:return 2;case Qf:return 8;case Ni:case Ob:return 32;case Kf:return 268435456;default:return 32}default:return 32}}var Kc=!1,cn=null,dn=null,fn=null,Fl=new Map,Zl=new Map,hn=[],K2="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 Lp(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(t.pointerId)}}function Jl(e,t,s,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:s,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=ls(t),t!==null&&_p(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function F2(e,t,s,i,u){switch(t){case"focusin":return cn=Jl(cn,e,t,s,i,u),!0;case"dragenter":return dn=Jl(dn,e,t,s,i,u),!0;case"mouseover":return fn=Jl(fn,e,t,s,i,u),!0;case"pointerover":var c=u.pointerId;return Fl.set(c,Jl(Fl.get(c)||null,e,t,s,i,u)),!0;case"gotpointercapture":return c=u.pointerId,Zl.set(c,Jl(Zl.get(c)||null,e,t,s,i,u)),!0}return!1}function Bp(e){var t=ss(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=h(s),t!==null){e.blockedOn=t,If(e.priority,function(){Vp(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,If(e.priority,function(){Vp(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ur(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Pc(e.nativeEvent);if(s===null){s=e.nativeEvent;var i=new s.constructor(s.type,s);Qo=i,s.target.dispatchEvent(i),Qo=null}else return t=ls(s),t!==null&&_p(t),e.blockedOn=s,!1;t.shift()}return!0}function Hp(e,t,s){Ur(e)&&s.delete(t)}function Z2(){Kc=!1,cn!==null&&Ur(cn)&&(cn=null),dn!==null&&Ur(dn)&&(dn=null),fn!==null&&Ur(fn)&&(fn=null),Fl.forEach(Hp),Zl.forEach(Hp)}function Lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Kc||(Kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Z2)))}var Br=null;function Yp(e){Br!==e&&(Br=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Br===e&&(Br=null);for(var t=0;t<e.length;t+=3){var s=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(Qc(i||s)===null)continue;break}var c=ls(s);c!==null&&(e.splice(t,3),t-=3,Pu(c,{pending:!0,data:u,method:s.method,action:i},i,u))}}))}function Hs(e){function t(j){return Lr(j,e)}cn!==null&&Lr(cn,e),dn!==null&&Lr(dn,e),fn!==null&&Lr(fn,e),Fl.forEach(t),Zl.forEach(t);for(var s=0;s<hn.length;s++){var i=hn[s];i.blockedOn===e&&(i.blockedOn=null)}for(;0<hn.length&&(s=hn[0],s.blockedOn===null);)Bp(s),s.blockedOn===null&&hn.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(i=0;i<s.length;i+=3){var u=s[i],c=s[i+1],x=u[Tt]||null;if(typeof c=="function")x||Yp(s);else if(x){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,x=c[Tt]||null)b=x.formAction;else if(Qc(u)!==null)continue}else b=x.action;typeof b=="function"?s[i+1]=b:(s.splice(i,3),i-=3),Yp(s)}}}function qp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(x){return u=x})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(s,20)}function s(){if(!i&&!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 i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Fc(e){this._internalRoot=e}Hr.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var s=t.current,i=qt();Op(s,i,e,t,null,null)},Hr.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Op(e.current,2,null,e,null,null),br(),t[ns]=null}};function Hr(e){this._internalRoot=e}Hr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wf();e={blockedOn:null,target:e,priority:t};for(var s=0;s<hn.length&&t!==0&&t<hn[s].priority;s++);hn.splice(s,0,e),s===0&&Bp(e)}};var Gp=n.version;if(Gp!=="19.2.4")throw Error(r(527,Gp,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var J2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yr.isDisabled&&Yr.supportsFiber)try{ll=Yr.inject(J2),zt=Yr}catch{}}return Wl.createRoot=function(e,t){if(!o(e))throw Error(r(299));var s=!1,i="",u=Jm,c=$m,x=Wm;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=Dp(e,1,!1,null,null,s,i,null,u,c,x,qp),e[ns]=t.current,Mc(e),new Fc(t)},Wl.hydrateRoot=function(e,t,s){if(!o(e))throw Error(r(299));var i=!1,u="",c=Jm,x=$m,b=Wm,j=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(c=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError),s.formState!==void 0&&(j=s.formState)),t=Dp(e,1,!0,t,s??null,i,u,j,c,x,b,qp),t.context=Rp(null),s=t.current,i=qt(),i=Lo(i),u=$a(i),u.callback=null,Wa(s,u,i),s=i,t.current.lanes=s,rl(t,s),ga(t),e[ns]=t.current,Mc(e),new Hr(t)},Wl.version="19.2.4",Wl}var Ip;function iS(){if(Ip)return $c.exports;Ip=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),$c.exports=lS(),$c.exports}var rS=iS();/**
|
||
* 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 eg="popstate";function tg(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function oS(a={}){function n(r,o){var g;let f=(g=o.state)==null?void 0:g.masked,{pathname:h,search:m,hash:p}=f||r.location;return Td("",{pathname:h,search:m,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function l(r,o){return typeof o=="string"?o:ci(o)}return cS(n,l,null,a)}function Qe(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function na(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function uS(){return Math.random().toString(36).substring(2,10)}function ag(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Td(a,n,l=null,r,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?Js(n):n,state:l,key:n&&n.key||r||uS(),unstable_mask:o}}function ci({pathname:a="/",search:n="",hash:l=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),l&&l!=="#"&&(a+=l.charAt(0)==="#"?l:"#"+l),a}function Js(a){let n={};if(a){let l=a.indexOf("#");l>=0&&(n.hash=a.substring(l),a=a.substring(0,l));let r=a.indexOf("?");r>=0&&(n.search=a.substring(r),a=a.substring(0,r)),a&&(n.pathname=a)}return n}function cS(a,n,l,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function v(){m="POP";let M=y(),A=M==null?null:M-g;g=M,p&&p({action:m,location:E.location,delta:A})}function S(M,A){m="PUSH";let z=tg(M)?M:Td(E.location,M,A);g=y()+1;let U=ag(z,g),Y=E.createHref(z.unstable_mask||z);try{h.pushState(U,"",Y)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;o.location.assign(Y)}f&&p&&p({action:m,location:E.location,delta:1})}function k(M,A){m="REPLACE";let z=tg(M)?M:Td(E.location,M,A);g=y();let U=ag(z,g),Y=E.createHref(z.unstable_mask||z);h.replaceState(U,"",Y),f&&p&&p({action:m,location:E.location,delta:0})}function N(M){return dS(M)}let E={get action(){return m},get location(){return a(o,h)},listen(M){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(eg,v),p=M,()=>{o.removeEventListener(eg,v),p=null}},createHref(M){return n(o,M)},createURL:N,encodeLocation(M){let A=N(M);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:S,replace:k,go(M){return h.go(M)}};return E}function dS(a,n=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(l,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:ci(a);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=l+r),new URL(r,l)}function Jx(a,n,l="/"){return fS(a,n,l,!1)}function fS(a,n,l,r){let o=typeof n=="string"?Js(n):n,f=qa(o.pathname||"/",l);if(f==null)return null;let h=$x(a);hS(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=jS(f);m=wS(h[p],g,r)}return m}function $x(a,n=[],l=[],r="",o=!1){let f=(h,m,p=o,g)=>{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;Qe(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let v=ya([r,y.relativePath]),S=l.concat(y);h.children&&h.children.length>0&&(Qe(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),$x(h.children,n,S,v,p)),!(h.path==null&&!h.index)&&n.push({path:v,score:bS(v,h.index),routesMeta:S})};return a.forEach((h,m)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,m);else for(let g of Wx(h.path))f(h,m,!0,g)}),n}function Wx(a){let n=a.split("/");if(n.length===0)return[];let[l,...r]=n,o=l.endsWith("?"),f=l.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=Wx(r.join("/")),m=[];return m.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&m.push(...h),m.map(p=>a.startsWith("/")&&p===""?"/":p)}function hS(a){a.sort((n,l)=>n.score!==l.score?l.score-n.score:SS(n.routesMeta.map(r=>r.childrenIndex),l.routesMeta.map(r=>r.childrenIndex)))}var mS=/^:[\w-]+$/,pS=3,gS=2,xS=1,yS=10,vS=-2,ng=a=>a==="*";function bS(a,n){let l=a.split("/"),r=l.length;return l.some(ng)&&(r+=vS),n&&(r+=gS),l.filter(o=>!ng(o)).reduce((o,f)=>o+(mS.test(f)?pS:f===""?xS:yS),r)}function SS(a,n){return a.length===n.length&&a.slice(0,-1).every((r,o)=>r===n[o])?a[a.length-1]-n[n.length-1]:0}function wS(a,n,l=!1){let{routesMeta:r}=a,o={},f="/",h=[];for(let m=0;m<r.length;++m){let p=r[m],g=m===r.length-1,y=f==="/"?n:n.slice(f.length)||"/",v=ho({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),S=p.route;if(!v&&g&&l&&!r[r.length-1].route.index&&(v=ho({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),h.push({params:o,pathname:ya([f,v.pathname]),pathnameBase:CS(ya([f,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(f=ya([f,v.pathnameBase]))}return h}function ho(a,n){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[l,r]=kS(a.path,a.caseSensitive,a.end),o=n.match(l);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:v},S)=>{if(y==="*"){let N=m[S]||"";h=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const k=m[S];return v&&!k?g[y]=void 0:g[y]=(k||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:a}}function kS(a,n=!1,l=!0){na(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],o="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p,g,y)=>{if(r.push({paramName:m,isOptional:p!=null}),p){let v=y.charAt(g+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),o+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?o+="\\/*$":a!==""&&a!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function jS(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return na(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function qa(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let l=n.endsWith("/")?n.length-1:n.length,r=a.charAt(l);return r&&r!=="/"?null:a.slice(l)||"/"}var NS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function TS(a,n="/"){let{pathname:l,search:r="",hash:o=""}=typeof a=="string"?Js(a):a,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=sg(l.substring(1),"/"):f=sg(l,n)):f=n,{pathname:f,search:MS(r),hash:AS(o)}}function sg(a,n){let l=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(o=>{o===".."?l.length>1&&l.pop():o!=="."&&l.push(o)}),l.length>1?l.join("/"):"/"}function td(a,n,l,r){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ES(a){return a.filter((n,l)=>l===0||n.route.path&&n.route.path.length>0)}function sf(a){let n=ES(a);return n.map((l,r)=>r===n.length-1?l.pathname:l.pathnameBase)}function Co(a,n,l,r=!1){let o;typeof a=="string"?o=Js(a):(o={...a},Qe(!o.pathname||!o.pathname.includes("?"),td("?","pathname","search",o)),Qe(!o.pathname||!o.pathname.includes("#"),td("#","pathname","hash",o)),Qe(!o.search||!o.search.includes("#"),td("#","search","hash",o)));let f=a===""||o.pathname==="",h=f?"/":o.pathname,m;if(h==null)m=l;else{let v=n.length-1;if(!r&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),v-=1;o.pathname=S.join("/")}m=v>=0?n[v]:"/"}let p=TS(o,m),g=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var ya=a=>a.join("/").replace(/\/\/+/g,"/"),CS=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),MS=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,AS=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,DS=class{constructor(a,n,l,r=!1){this.status=a,this.statusText=n||"",this.internal=r,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function RS(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function OS(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ix=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ey(a,n){let l=a;if(typeof l!="string"||!NS.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let r=l,o=!1;if(Ix)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),m=qa(h.pathname,n);h.origin===f.origin&&m!=null?l=m+h.search+h.hash:o=!0}catch{na(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ty=["POST","PUT","PATCH","DELETE"];new Set(ty);var zS=["GET",...ty];new Set(zS);var $s=w.createContext(null);$s.displayName="DataRouter";var Mo=w.createContext(null);Mo.displayName="DataRouterState";var _S=w.createContext(!1),ay=w.createContext({isTransitioning:!1});ay.displayName="ViewTransition";var VS=w.createContext(new Map);VS.displayName="Fetchers";var US=w.createContext(null);US.displayName="Await";var Xt=w.createContext(null);Xt.displayName="Navigation";var xi=w.createContext(null);xi.displayName="Location";var ca=w.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var lf=w.createContext(null);lf.displayName="RouteError";var ny="REACT_ROUTER_ERROR",LS="REDIRECT",BS="ROUTE_ERROR_RESPONSE";function HS(a){if(a.startsWith(`${ny}:${LS}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function YS(a){if(a.startsWith(`${ny}:${BS}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new DS(n.status,n.statusText,n.data)}catch{}}function qS(a,{relative:n}={}){Qe(Ws(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:r}=w.useContext(Xt),{hash:o,pathname:f,search:h}=vi(a,{relative:n}),m=f;return l!=="/"&&(m=f==="/"?l:ya([l,f])),r.createHref({pathname:m,search:h,hash:o})}function Ws(){return w.useContext(xi)!=null}function da(){return Qe(Ws(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(xi).location}var sy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ly(a){w.useContext(Xt).static||w.useLayoutEffect(a)}function yi(){let{isDataRoute:a}=w.useContext(ca);return a?nw():GS()}function GS(){Qe(Ws(),"useNavigate() may be used only in the context of a <Router> component.");let a=w.useContext($s),{basename:n,navigator:l}=w.useContext(Xt),{matches:r}=w.useContext(ca),{pathname:o}=da(),f=JSON.stringify(sf(r)),h=w.useRef(!1);return ly(()=>{h.current=!0}),w.useCallback((p,g={})=>{if(na(h.current,sy),!h.current)return;if(typeof p=="number"){l.go(p);return}let y=Co(p,JSON.parse(f),o,g.relative==="path");a==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:ya([n,y.pathname])),(g.replace?l.replace:l.push)(y,g.state,g)},[n,l,f,o,a])}var XS=w.createContext(null);function PS(a){let n=w.useContext(ca).outlet;return w.useMemo(()=>n&&w.createElement(XS.Provider,{value:a},n),[n,a])}function vi(a,{relative:n}={}){let{matches:l}=w.useContext(ca),{pathname:r}=da(),o=JSON.stringify(sf(l));return w.useMemo(()=>Co(a,JSON.parse(o),r,n==="path"),[a,o,r,n])}function QS(a,n){return iy(a,n)}function iy(a,n,l){var M;Qe(Ws(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=w.useContext(Xt),{matches:o}=w.useContext(ca),f=o[o.length-1],h=f?f.params:{},m=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let A=g&&g.path||"";oy(m,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=da(),v;if(n){let A=typeof n=="string"?Js(n):n;Qe(p==="/"||((M=A.pathname)==null?void 0:M.startsWith(p)),`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 "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),v=A}else v=y;let S=v.pathname||"/",k=S;if(p!=="/"){let A=p.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=Jx(a,{pathname:k});na(g||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),na(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 E=$S(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},h,A.params),pathname:ya([p,r.encodeLocation?r.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:ya([p,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,l);return n&&E?w.createElement(xi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},E):E}function KS(){let a=aw(),n=RS(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),l=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:f},"ErrorBoundary")," or"," ",w.createElement("code",{style:f},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},n),l?w.createElement("pre",{style:o},l):null,h)}var FS=w.createElement(KS,null),ry=class extends w.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const l=YS(a.digest);l&&(a=l)}let n=a!==void 0?w.createElement(ca.Provider,{value:this.props.routeContext},w.createElement(lf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?w.createElement(ZS,{error:a},n):n}};ry.contextType=_S;var ad=new WeakMap;function ZS({children:a,error:n}){let{basename:l}=w.useContext(Xt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let r=HS(n.digest);if(r){let o=ad.get(n);if(o)throw o;let f=ey(r.location,l);if(Ix&&!ad.get(n))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw ad.set(n,h),h}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function JS({routeContext:a,match:n,children:l}){let r=w.useContext($s);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(ca.Provider,{value:a},l)}function $S(a,n=[],l){let r=l==null?void 0:l.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let o=a,f=r==null?void 0:r.errors;if(f!=null){let y=o.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Qe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let h=!1,m=-1;if(l&&r){h=r.renderFallback;for(let y=0;y<o.length;y++){let v=o[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:S,errors:k}=r,N=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!k||k[v.route.id]===void 0);if(v.route.lazy||N){l.isStatic&&(h=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let p=l==null?void 0:l.onError,g=r&&p?(y,v)=>{var S,k;p(y,{location:r.location,params:((k=(S=r.matches)==null?void 0:S[0])==null?void 0:k.params)??{},unstable_pattern:OS(r.matches),errorInfo:v})}:void 0;return o.reduceRight((y,v,S)=>{let k,N=!1,E=null,M=null;r&&(k=f&&v.route.id?f[v.route.id]:void 0,E=v.route.errorElement||FS,h&&(m<0&&S===0?(oy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,M=null):m===S&&(N=!0,M=v.route.hydrateFallbackElement||null)));let A=n.concat(o.slice(0,S+1)),z=()=>{let U;return k?U=E:N?U=M:v.route.Component?U=w.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=y,w.createElement(JS,{match:v,routeContext:{outlet:y,matches:A,isDataRoute:r!=null},children:U})};return r&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?w.createElement(ry,{location:r.location,revalidation:r.revalidation,component:E,error:k,children:z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:g}):z()},null)}function rf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WS(a){let n=w.useContext($s);return Qe(n,rf(a)),n}function IS(a){let n=w.useContext(Mo);return Qe(n,rf(a)),n}function ew(a){let n=w.useContext(ca);return Qe(n,rf(a)),n}function of(a){let n=ew(a),l=n.matches[n.matches.length-1];return Qe(l.route.id,`${a} can only be used on routes that contain a unique "id"`),l.route.id}function tw(){return of("useRouteId")}function aw(){var r;let a=w.useContext(lf),n=IS("useRouteError"),l=of("useRouteError");return a!==void 0?a:(r=n.errors)==null?void 0:r[l]}function nw(){let{router:a}=WS("useNavigate"),n=of("useNavigate"),l=w.useRef(!1);return ly(()=>{l.current=!0}),w.useCallback(async(o,f={})=>{na(l.current,sy),l.current&&(typeof o=="number"?await a.navigate(o):await a.navigate(o,{fromRouteId:n,...f}))},[a,n])}var lg={};function oy(a,n,l){!n&&!lg[a]&&(lg[a]=!0,na(!1,l))}w.memo(sw);function sw({routes:a,future:n,state:l,isStatic:r,onError:o}){return iy(a,void 0,{state:l,isStatic:r,onError:o})}function uy({to:a,replace:n,state:l,relative:r}){Qe(Ws(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.useContext(Xt);na(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=w.useContext(ca),{pathname:h}=da(),m=yi(),p=Co(a,sf(f),h,r==="path"),g=JSON.stringify(p);return w.useEffect(()=>{m(JSON.parse(g),{replace:n,state:l,relative:r})},[m,g,r,n,l]),null}function lw(a){return PS(a.context)}function yn(a){Qe(!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 iw({basename:a="/",children:n=null,location:l,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){Qe(!Ws(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:m,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[m,o,f,h]);typeof l=="string"&&(l=Js(l));let{pathname:g="/",search:y="",hash:v="",state:S=null,key:k="default",unstable_mask:N}=l,E=w.useMemo(()=>{let M=qa(g,m);return M==null?null:{location:{pathname:M,search:y,hash:v,state:S,key:k,unstable_mask:N},navigationType:r}},[m,g,y,v,S,k,r,N]);return na(E!=null,`<Router basename="${m}"> is not able to match the URL "${g}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:w.createElement(Xt.Provider,{value:p},w.createElement(xi.Provider,{children:n,value:E}))}function rw({children:a,location:n}){return QS(Ed(a),n)}function Ed(a,n=[]){let l=[];return w.Children.forEach(a,(r,o)=>{if(!w.isValidElement(r))return;let f=[...n,o];if(r.type===w.Fragment){l.push.apply(l,Ed(r.props.children,f));return}Qe(r.type===yn,`[${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>`),Qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={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&&(h.children=Ed(r.props.children,f)),l.push(h)}),l}var eo="get",to="application/x-www-form-urlencoded";function Ao(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function ow(a){return Ao(a)&&a.tagName.toLowerCase()==="button"}function uw(a){return Ao(a)&&a.tagName.toLowerCase()==="form"}function cw(a){return Ao(a)&&a.tagName.toLowerCase()==="input"}function dw(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function fw(a,n){return a.button===0&&(!n||n==="_self")&&!dw(a)}function Cd(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((n,l)=>{let r=a[l];return n.concat(Array.isArray(r)?r.map(o=>[l,o]):[[l,r]])},[]))}function hw(a,n){let l=Cd(a);return n&&n.forEach((r,o)=>{l.has(o)||n.getAll(o).forEach(f=>{l.append(o,f)})}),l}var qr=null;function mw(){if(qr===null)try{new FormData(document.createElement("form"),0),qr=!1}catch{qr=!0}return qr}var pw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nd(a){return a!=null&&!pw.has(a)?(na(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${to}"`),null):a}function gw(a,n){let l,r,o,f,h;if(uw(a)){let m=a.getAttribute("action");r=m?qa(m,n):null,l=a.getAttribute("method")||eo,o=nd(a.getAttribute("enctype"))||to,f=new FormData(a)}else if(ow(a)||cw(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=a.getAttribute("formaction")||m.getAttribute("action");if(r=p?qa(p,n):null,l=a.getAttribute("formmethod")||m.getAttribute("method")||eo,o=nd(a.getAttribute("formenctype"))||nd(m.getAttribute("enctype"))||to,f=new FormData(m,a),!mw()){let{name:g,type:y,value:v}=a;if(y==="image"){let S=g?`${g}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else g&&f.append(g,v)}}else{if(Ao(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=eo,r=null,o=to,h=a}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:l.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function uf(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function xw(a,n,l,r){let o=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return l?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:n&&qa(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function yw(a,n){if(a.id in n)return n[a.id];try{let l=await import(a.module);return n[a.id]=l,l}catch(l){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vw(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function bw(a,n,l){let r=await Promise.all(a.map(async o=>{let f=n.routes[o.route.id];if(f){let h=await yw(f,l);return h.links?h.links():[]}return[]}));return jw(r.flat(1).filter(vw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ig(a,n,l,r,o,f){let h=(p,g)=>l[g]?p.route.id!==l[g].route.id:!0,m=(p,g)=>{var y;return l[g].pathname!==p.pathname||((y=l[g].route.path)==null?void 0:y.endsWith("*"))&&l[g].params["*"]!==p.params["*"]};return f==="assets"?n.filter((p,g)=>h(p,g)||m(p,g)):f==="data"?n.filter((p,g)=>{var v;let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let S=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=l[0])==null?void 0:v.params)||{},nextUrl:new URL(a,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function Sw(a,n,{includeHydrateFallback:l}={}){return ww(a.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),l&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function ww(a){return[...new Set(a)]}function kw(a){let n={},l=Object.keys(a).sort();for(let r of l)n[r]=a[r];return n}function jw(a,n){let l=new Set;return new Set(n),a.reduce((r,o)=>{let f=JSON.stringify(kw(o));return l.has(f)||(l.add(f),r.push({key:f,link:o})),r},[])}function cy(){let a=w.useContext($s);return uf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Nw(){let a=w.useContext(Mo);return uf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var cf=w.createContext(void 0);cf.displayName="FrameworkContext";function dy(){let a=w.useContext(cf);return uf(a,"You must render this element inside a <HydratedRouter> element"),a}function Tw(a,n){let l=w.useContext(cf),[r,o]=w.useState(!1),[f,h]=w.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:v}=n,S=w.useRef(null);w.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let E=A=>{A.forEach(z=>{h(z.isIntersecting)})},M=new IntersectionObserver(E,{threshold:.5});return S.current&&M.observe(S.current),()=>{M.disconnect()}}},[a]),w.useEffect(()=>{if(r){let E=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(E)}}},[r]);let k=()=>{o(!0)},N=()=>{o(!1),h(!1)};return l?a!=="intent"?[f,S,{}]:[f,S,{onFocus:Il(m,k),onBlur:Il(p,N),onMouseEnter:Il(g,k),onMouseLeave:Il(y,N),onTouchStart:Il(v,k)}]:[!1,S,{}]}function Il(a,n){return l=>{a&&a(l),l.defaultPrevented||n(l)}}function Ew({page:a,...n}){let{router:l}=cy(),r=w.useMemo(()=>Jx(l.routes,a,l.basename),[l.routes,a,l.basename]);return r?w.createElement(Mw,{page:a,matches:r,...n}):null}function Cw(a){let{manifest:n,routeModules:l}=dy(),[r,o]=w.useState([]);return w.useEffect(()=>{let f=!1;return bw(a,n,l).then(h=>{f||o(h)}),()=>{f=!0}},[a,n,l]),r}function Mw({page:a,matches:n,...l}){let r=da(),{future:o,manifest:f,routeModules:h}=dy(),{basename:m}=cy(),{loaderData:p,matches:g}=Nw(),y=w.useMemo(()=>ig(a,n,g,f,r,"data"),[a,n,g,f,r]),v=w.useMemo(()=>ig(a,n,g,f,r,"assets"),[a,n,g,f,r]),S=w.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let E=new Set,M=!1;if(n.forEach(z=>{var Y;let U=f.routes[z.route.id];!U||!U.hasLoader||(!y.some(Q=>Q.route.id===z.route.id)&&z.route.id in p&&((Y=h[z.route.id])!=null&&Y.shouldRevalidate)||U.hasClientLoader?M=!0:E.add(z.route.id))}),E.size===0)return[];let A=xw(a,m,o.unstable_trailingSlashAwareDataRequests,"data");return M&&E.size>0&&A.searchParams.set("_routes",n.filter(z=>E.has(z.route.id)).map(z=>z.route.id).join(",")),[A.pathname+A.search]},[m,o.unstable_trailingSlashAwareDataRequests,p,r,f,y,n,a,h]),k=w.useMemo(()=>Sw(v,f),[v,f]),N=Cw(v);return w.createElement(w.Fragment,null,S.map(E=>w.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),k.map(E=>w.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),N.map(({key:E,link:M})=>w.createElement("link",{key:E,nonce:l.nonce,...M,crossOrigin:M.crossOrigin??l.crossOrigin})))}function Aw(...a){return n=>{a.forEach(l=>{typeof l=="function"?l(n):l!=null&&(l.current=n)})}}var Dw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dw&&(window.__reactRouterVersion="7.13.1")}catch{}function Rw({basename:a,children:n,unstable_useTransitions:l,window:r}){let o=w.useRef();o.current==null&&(o.current=oS({window:r,v5Compat:!0}));let f=o.current,[h,m]=w.useState({action:f.action,location:f.location}),p=w.useCallback(g=>{l===!1?m(g):w.startTransition(()=>m(g))},[l]);return w.useLayoutEffect(()=>f.listen(p),[f,p]),w.createElement(iw,{basename:a,children:n,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:l})}var fy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mo=w.forwardRef(function({onClick:n,discover:l="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,unstable_mask:m,state:p,target:g,to:y,preventScrollReset:v,viewTransition:S,unstable_defaultShouldRevalidate:k,...N},E){let{basename:M,navigator:A,unstable_useTransitions:z}=w.useContext(Xt),U=typeof y=="string"&&fy.test(y),Y=ey(y,M);y=Y.to;let Q=qS(y,{relative:o}),ae=da(),K=null;if(m){let $=Co(m,[],ae.unstable_mask?ae.unstable_mask.pathname:"/",!0);M!=="/"&&($.pathname=$.pathname==="/"?M:ya([M,$.pathname])),K=A.createHref($)}let[B,I,se]=Tw(r,N),de=Vw(y,{replace:h,unstable_mask:m,state:p,target:g,preventScrollReset:v,relative:o,viewTransition:S,unstable_defaultShouldRevalidate:k,unstable_useTransitions:z});function pe($){n&&n($),$.defaultPrevented||de($)}let Ae=!(Y.isExternal||f),ve=w.createElement("a",{...N,...se,href:(Ae?K:void 0)||Y.absoluteURL||Q,onClick:Ae?pe:n,ref:Aw(E,I),target:g,"data-discover":!U&&l==="render"?"true":void 0});return B&&!U?w.createElement(w.Fragment,null,ve,w.createElement(Ew,{page:Q})):ve});mo.displayName="Link";var Ow=w.forwardRef(function({"aria-current":n="page",caseSensitive:l=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:m,children:p,...g},y){let v=vi(h,{relative:g.relative}),S=da(),k=w.useContext(Mo),{navigator:N,basename:E}=w.useContext(Xt),M=k!=null&&qw(v)&&m===!0,A=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,z=S.pathname,U=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;l||(z=z.toLowerCase(),U=U?U.toLowerCase():null,A=A.toLowerCase()),U&&E&&(U=qa(U,E)||U);const Y=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Q=z===A||!o&&z.startsWith(A)&&z.charAt(Y)==="/",ae=U!=null&&(U===A||!o&&U.startsWith(A)&&U.charAt(A.length)==="/"),K={isActive:Q,isPending:ae,isTransitioning:M},B=Q?n:void 0,I;typeof r=="function"?I=r(K):I=[r,Q?"active":null,ae?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(K):f;return w.createElement(mo,{...g,"aria-current":B,className:I,ref:y,style:se,to:h,viewTransition:m},typeof p=="function"?p(K):p)});Ow.displayName="NavLink";var zw=w.forwardRef(({discover:a="render",fetcherKey:n,navigate:l,reloadDocument:r,replace:o,state:f,method:h=eo,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...k},N)=>{let{unstable_useTransitions:E}=w.useContext(Xt),M=Hw(),A=Yw(m,{relative:g}),z=h.toLowerCase()==="get"?"get":"post",U=typeof m=="string"&&fy.test(m),Y=Q=>{if(p&&p(Q),Q.defaultPrevented)return;Q.preventDefault();let ae=Q.nativeEvent.submitter,K=(ae==null?void 0:ae.getAttribute("formmethod"))||h,B=()=>M(ae||Q.currentTarget,{fetcherKey:n,method:K,navigate:l,replace:o,state:f,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S});E&&l!==!1?w.startTransition(()=>B()):B()};return w.createElement("form",{ref:N,method:z,action:A,onSubmit:r?p:Y,...k,"data-discover":!U&&a==="render"?"true":void 0})});zw.displayName="Form";function _w(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hy(a){let n=w.useContext($s);return Qe(n,_w(a)),n}function Vw(a,{target:n,replace:l,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let y=yi(),v=da(),S=vi(a,{relative:h});return w.useCallback(k=>{if(fw(k,n)){k.preventDefault();let N=l!==void 0?l:ci(v)===ci(S),E=()=>y(a,{replace:N,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p});g?w.startTransition(()=>E()):E()}},[v,y,S,l,r,o,n,a,f,h,m,p,g])}function Uw(a){na(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=w.useRef(Cd(a)),l=w.useRef(!1),r=da(),o=w.useMemo(()=>hw(r.search,l.current?null:n.current),[r.search]),f=yi(),h=w.useCallback((m,p)=>{const g=Cd(typeof m=="function"?m(new URLSearchParams(o)):m);l.current=!0,f("?"+g,p)},[f,o]);return[o,h]}var Lw=0,Bw=()=>`__${String(++Lw)}__`;function Hw(){let{router:a}=hy("useSubmit"),{basename:n}=w.useContext(Xt),l=tw(),r=a.fetch,o=a.navigate;return w.useCallback(async(f,h={})=>{let{action:m,method:p,encType:g,formData:y,body:v}=gw(f,n);if(h.navigate===!1){let S=h.fetcherKey||Bw();await r(S,l,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:v,formMethod:h.method||p,formEncType:h.encType||g,flushSync:h.flushSync})}else await o(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:v,formMethod:h.method||p,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,n,l])}function Yw(a,{relative:n}={}){let{basename:l}=w.useContext(Xt),r=w.useContext(ca);Qe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...vi(a||".",{relative:n})},h=da();if(a==null){f.search=h.search;let m=new URLSearchParams(f.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(v=>v).forEach(v=>m.append("index",v));let y=m.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:ya([l,f.pathname])),ci(f)}function qw(a,{relative:n}={}){let l=w.useContext(ay);Qe(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hy("useViewTransitionState"),o=vi(a,{relative:n});if(!l.isTransitioning)return!1;let f=qa(l.currentLocation.pathname,r)||l.currentLocation.pathname,h=qa(l.nextLocation.pathname,r)||l.nextLocation.pathname;return ho(o.pathname,h)!=null||ho(o.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 Gw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,l,r)=>r?r.toUpperCase():l.toLowerCase()),rg=a=>{const n=Xw(a);return n.charAt(0).toUpperCase()+n.slice(1)},my=(...a)=>a.filter((n,l,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===l).join(" ").trim(),Pw=a=>{for(const n in a)if(n.startsWith("aria-")||n==="role"||n==="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 Qw={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 Kw=w.forwardRef(({color:a="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...m},p)=>w.createElement("svg",{ref:p,...Qw,width:n,height:n,stroke:a,strokeWidth:r?Number(l)*24/Number(n):l,className:my("lucide",o),...!f&&!Pw(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>w.createElement(g,y)),...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 je=(a,n)=>{const l=w.forwardRef(({className:r,...o},f)=>w.createElement(Kw,{ref:f,iconNode:n,className:my(`lucide-${Gw(rg(a))}`,`lucide-${a}`,r),...o}));return l.displayName=rg(a),l};/**
|
||
* @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 Fw=[["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"}]],og=je("activity",Fw);/**
|
||
* @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:"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"}]],Jw=je("bell",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=[["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"}]],py=je("briefcase",$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 Ww=[["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"}]],ao=je("building-2",Ww);/**
|
||
* @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 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"}]],ug=je("building",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 ek=[["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"}]],tk=je("calendar-check",ek);/**
|
||
* @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 ak=[["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"}]],gy=je("calendar-days",ak);/**
|
||
* @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 nk=[["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"}]],po=je("calendar",nk);/**
|
||
* @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 sk=[["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"}]],lk=je("camera",sk);/**
|
||
* @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 ik=[["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"}]],rk=je("chart-column",ik);/**
|
||
* @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 ok=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],go=je("chevron-right",ok);/**
|
||
* @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 uk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],xy=je("circle-check",uk);/**
|
||
* @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 ck=[["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"}]],dk=je("circle-question-mark",ck);/**
|
||
* @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 fk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yy=je("clock",fk);/**
|
||
* @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 hk=[["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"}]],cg=je("dollar-sign",hk);/**
|
||
* @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 mk=[["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"}]],xo=je("file-text",mk);/**
|
||
* @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 pk=[["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"}]],gk=je("funnel",pk);/**
|
||
* @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 xk=[["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"}]],yk=je("house",xk);/**
|
||
* @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 vk=[["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"}]],bk=je("link",vk);/**
|
||
* @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 Sk=[["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"}]],wk=je("list-todo",Sk);/**
|
||
* @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 kk=[["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"}]],jk=je("log-out",kk);/**
|
||
* @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 Nk=[["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"}]],vy=je("mail",Nk);/**
|
||
* @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 Tk=[["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"}]],Md=je("map-pin",Tk);/**
|
||
* @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 Ek=[["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"}]],Ck=je("mic",Ek);/**
|
||
* @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 Mk=[["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"}]],by=je("moon",Mk);/**
|
||
* @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 Ak=[["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"}]],no=je("phone",Ak);/**
|
||
* @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 Dk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sy=je("plus",Dk);/**
|
||
* @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 Rk=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ok=je("refresh-cw",Rk);/**
|
||
* @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 zk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wy=je("search",zk);/**
|
||
* @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 _k=[["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"}]],Vk=je("send",_k);/**
|
||
* @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 Uk=[["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"}]],Lk=je("settings",Uk);/**
|
||
* @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 Bk=[["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"}]],Hk=je("shield",Bk);/**
|
||
* @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 Yk=[["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"}]],ky=je("sun",Yk);/**
|
||
* @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 qk=[["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"}]],Gk=je("tag",qk);/**
|
||
* @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 Xk=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Pk=je("trending-up",Xk);/**
|
||
* @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 Qk=[["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"}]],di=je("user",Qk);/**
|
||
* @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 Kk=[["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"}]],jy=je("users",Kk);/**
|
||
* @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 Fk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bi=je("x",Fk);function Ny(a){var n,l,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(n=0;n<o;n++)a[n]&&(l=Ny(a[n]))&&(r&&(r+=" "),r+=l)}else for(l in a)a[l]&&(r&&(r+=" "),r+=l);return r}function Zk(){for(var a,n,l=0,r="",o=arguments.length;l<o;l++)(a=arguments[l])&&(n=Ny(a))&&(r&&(r+=" "),r+=n);return r}const Jk=(a,n)=>{const l=new Array(a.length+n.length);for(let r=0;r<a.length;r++)l[r]=a[r];for(let r=0;r<n.length;r++)l[a.length+r]=n[r];return l},$k=(a,n)=>({classGroupId:a,validator:n}),Ty=(a=new Map,n=null,l)=>({nextPart:a,validators:n,classGroupId:l}),yo="-",dg=[],Wk="arbitrary..",Ik=a=>{const n=tj(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return ej(h);const m=h.split(yo),p=m[0]===""&&m.length>1?1:0;return Ey(m,p,n)},getConflictingClassGroupIds:(h,m)=>{if(m){const p=r[h],g=l[h];return p?g?Jk(g,p):p:g||dg}return l[h]||dg}}},Ey=(a,n,l)=>{if(a.length-n===0)return l.classGroupId;const o=a[n],f=l.nextPart.get(o);if(f){const g=Ey(a,n+1,f);if(g)return g}const h=l.validators;if(h===null)return;const m=n===0?a.join(yo):a.slice(n).join(yo),p=h.length;for(let g=0;g<p;g++){const y=h[g];if(y.validator(m))return y.classGroupId}},ej=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=a.slice(1,-1),l=n.indexOf(":"),r=n.slice(0,l);return r?Wk+r:void 0})(),tj=a=>{const{theme:n,classGroups:l}=a;return aj(l,n)},aj=(a,n)=>{const l=Ty();for(const r in a){const o=a[r];df(o,l,r,n)}return l},df=(a,n,l,r)=>{const o=a.length;for(let f=0;f<o;f++){const h=a[f];nj(h,n,l,r)}},nj=(a,n,l,r)=>{if(typeof a=="string"){sj(a,n,l);return}if(typeof a=="function"){lj(a,n,l,r);return}ij(a,n,l,r)},sj=(a,n,l)=>{const r=a===""?n:Cy(n,a);r.classGroupId=l},lj=(a,n,l,r)=>{if(rj(a)){df(a(r),n,l,r);return}n.validators===null&&(n.validators=[]),n.validators.push($k(l,a))},ij=(a,n,l,r)=>{const o=Object.entries(a),f=o.length;for(let h=0;h<f;h++){const[m,p]=o[h];df(p,Cy(n,m),l,r)}},Cy=(a,n)=>{let l=a;const r=n.split(yo),o=r.length;for(let f=0;f<o;f++){const h=r[f];let m=l.nextPart.get(h);m||(m=Ty(),l.nextPart.set(h,m)),l=m}return l},rj=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,oj=a=>{if(a<1)return{get:()=>{},set:()=>{}};let n=0,l=Object.create(null),r=Object.create(null);const o=(f,h)=>{l[f]=h,n++,n>a&&(n=0,r=l,l=Object.create(null))};return{get(f){let h=l[f];if(h!==void 0)return h;if((h=r[f])!==void 0)return o(f,h),h},set(f,h){f in l?l[f]=h:o(f,h)}}},Ad="!",fg=":",uj=[],hg=(a,n,l,r,o)=>({modifiers:a,hasImportantModifier:n,baseClassName:l,maybePostfixModifierPosition:r,isExternal:o}),cj=a=>{const{prefix:n,experimentalParseClassName:l}=a;let r=o=>{const f=[];let h=0,m=0,p=0,g;const y=o.length;for(let E=0;E<y;E++){const M=o[E];if(h===0&&m===0){if(M===fg){f.push(o.slice(p,E)),p=E+1;continue}if(M==="/"){g=E;continue}}M==="["?h++:M==="]"?h--:M==="("?m++:M===")"&&m--}const v=f.length===0?o:o.slice(p);let S=v,k=!1;v.endsWith(Ad)?(S=v.slice(0,-1),k=!0):v.startsWith(Ad)&&(S=v.slice(1),k=!0);const N=g&&g>p?g-p:void 0;return hg(f,k,S,N)};if(n){const o=n+fg,f=r;r=h=>h.startsWith(o)?f(h.slice(o.length)):hg(uj,!1,h,void 0,!0)}if(l){const o=r;r=f=>l({className:f,parseClassName:o})}return r},dj=a=>{const n=new Map;return a.orderSensitiveModifiers.forEach((l,r)=>{n.set(l,1e6+r)}),l=>{const r=[];let o=[];for(let f=0;f<l.length;f++){const h=l[f],m=h[0]==="[",p=n.has(h);m||p?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(h)):o.push(h)}return o.length>0&&(o.sort(),r.push(...o)),r}},fj=a=>({cache:oj(a.cacheSize),parseClassName:cj(a),sortModifiers:dj(a),...Ik(a)}),hj=/\s+/,mj=(a,n)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:f}=n,h=[],m=a.trim().split(hj);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:v,modifiers:S,hasImportantModifier:k,baseClassName:N,maybePostfixModifierPosition:E}=l(y);if(v){p=y+(p.length>0?" "+p:p);continue}let M=!!E,A=r(M?N.substring(0,E):N);if(!A){if(!M){p=y+(p.length>0?" "+p:p);continue}if(A=r(N),!A){p=y+(p.length>0?" "+p:p);continue}M=!1}const z=S.length===0?"":S.length===1?S[0]:f(S).join(":"),U=k?z+Ad:z,Y=U+A;if(h.indexOf(Y)>-1)continue;h.push(Y);const Q=o(A,M);for(let ae=0;ae<Q.length;++ae){const K=Q[ae];h.push(U+K)}p=y+(p.length>0?" "+p:p)}return p},pj=(...a)=>{let n=0,l,r,o="";for(;n<a.length;)(l=a[n++])&&(r=My(l))&&(o&&(o+=" "),o+=r);return o},My=a=>{if(typeof a=="string")return a;let n,l="";for(let r=0;r<a.length;r++)a[r]&&(n=My(a[r]))&&(l&&(l+=" "),l+=n);return l},gj=(a,...n)=>{let l,r,o,f;const h=p=>{const g=n.reduce((y,v)=>v(y),a());return l=fj(g),r=l.cache.get,o=l.cache.set,f=m,m(p)},m=p=>{const g=r(p);if(g)return g;const y=mj(p,l);return o(p,y),y};return f=h,(...p)=>f(pj(...p))},xj=[],ot=a=>{const n=l=>l[a]||xj;return n.isThemeGetter=!0,n},Ay=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bj=/\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$/,Sj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=a=>yj.test(a),ke=a=>!!a&&!Number.isNaN(Number(a)),gn=a=>!!a&&Number.isInteger(Number(a)),sd=a=>a.endsWith("%")&&ke(a.slice(0,-1)),Ba=a=>vj.test(a),Ry=()=>!0,jj=a=>bj.test(a)&&!Sj.test(a),ff=()=>!1,Nj=a=>wj.test(a),Tj=a=>kj.test(a),Ej=a=>!re(a)&&!ue(a),Cj=a=>Nn(a,_y,ff),re=a=>Ay.test(a),Pn=a=>Nn(a,Vy,jj),mg=a=>Nn(a,Vj,ke),Mj=a=>Nn(a,Ly,Ry),Aj=a=>Nn(a,Uy,ff),pg=a=>Nn(a,Oy,ff),Dj=a=>Nn(a,zy,Tj),Gr=a=>Nn(a,By,Nj),ue=a=>Dy.test(a),ei=a=>In(a,Vy),Rj=a=>In(a,Uy),gg=a=>In(a,Oy),Oj=a=>In(a,_y),zj=a=>In(a,zy),Xr=a=>In(a,By,!0),_j=a=>In(a,Ly,!0),Nn=(a,n,l)=>{const r=Ay.exec(a);return r?r[1]?n(r[1]):l(r[2]):!1},In=(a,n,l=!1)=>{const r=Dy.exec(a);return r?r[1]?n(r[1]):l:!1},Oy=a=>a==="position"||a==="percentage",zy=a=>a==="image"||a==="url",_y=a=>a==="length"||a==="size"||a==="bg-size",Vy=a=>a==="length",Vj=a=>a==="number",Uy=a=>a==="family-name",Ly=a=>a==="number"||a==="weight",By=a=>a==="shadow",Uj=()=>{const a=ot("color"),n=ot("font"),l=ot("text"),r=ot("font-weight"),o=ot("tracking"),f=ot("leading"),h=ot("breakpoint"),m=ot("container"),p=ot("spacing"),g=ot("radius"),y=ot("shadow"),v=ot("inset-shadow"),S=ot("text-shadow"),k=ot("drop-shadow"),N=ot("blur"),E=ot("perspective"),M=ot("aspect"),A=ot("ease"),z=ot("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...Y(),ue,re],ae=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],B=()=>[ue,re,p],I=()=>[pn,"full","auto",...B()],se=()=>[gn,"none","subgrid",ue,re],de=()=>["auto",{span:["full",gn,ue,re]},gn,ue,re],pe=()=>[gn,"auto",ue,re],Ae=()=>["auto","min","max","fr",ue,re],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...B()],J=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],ee=()=>[pn,"screen","full","dvw","lvw","svw","min","max","fit",...B()],he=()=>[pn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],W=()=>[a,ue,re],T=()=>[...Y(),gg,pg,{position:[ue,re]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",Oj,Cj,{size:[ue,re]}],ne=()=>[sd,ei,Pn],le=()=>["","none","full",g,ue,re],Z=()=>["",ke,ei,Pn],ce=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[ke,sd,gg,pg],ft=()=>["","none",N,ue,re],bt=()=>["none",ke,ue,re],Ot=()=>["none",ke,ue,re],tt=()=>[ke,ue,re],wt=()=>[pn,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ba],breakpoint:[Ba],color:[Ry],container:[Ba],"drop-shadow":[Ba],ease:["in","out","in-out"],font:[Ej],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ba],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ba],shadow:[Ba],spacing:["px",ke],text:[Ba],"text-shadow":[Ba],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,re,ue,M]}],container:["container"],columns:[{columns:[ke,re,ue,m]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[gn,"auto",ue,re]}],basis:[{basis:[pn,"full","auto",m,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,pn,"auto","initial","none",re]}],grow:[{grow:["",ke,ue,re]}],shrink:[{shrink:["",ke,ue,re]}],order:[{order:[gn,"first","last","none",ue,re]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",l,ei,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_j,Mj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sd,re]}],"font-family":[{font:[Rj,Aj,n]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ue,re]}],"line-clamp":[{"line-clamp":[ke,"none",ue,mg]}],leading:[{leading:[f,...B()]}],"list-image":[{"list-image":["none",ue,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ue,Pn]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[ke,"auto",ue,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,re]}],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",ue,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gn,ue,re],radial:["",ue,re],conic:[gn,ue,re]},zj,Dj]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ue,re]}],"outline-w":[{outline:["",ke,ei,Pn]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",y,Xr,Gr]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",v,Xr,Gr]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[ke,Pn]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",S,Xr,Gr]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[ke,ue,re]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[ue,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,re]}],filter:[{filter:["","none",ue,re]}],blur:[{blur:ft()}],brightness:[{brightness:[ke,ue,re]}],contrast:[{contrast:[ke,ue,re]}],"drop-shadow":[{"drop-shadow":["","none",k,Xr,Gr]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",ke,ue,re]}],"hue-rotate":[{"hue-rotate":[ke,ue,re]}],invert:[{invert:["",ke,ue,re]}],saturate:[{saturate:[ke,ue,re]}],sepia:[{sepia:["",ke,ue,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,re]}],"backdrop-blur":[{"backdrop-blur":ft()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ue,re]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ue,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ue,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ue,re]}],"backdrop-invert":[{"backdrop-invert":["",ke,ue,re]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ue,re]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ue,re]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ue,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ue,re]}],ease:[{ease:["linear","initial",A,ue,re]}],delay:[{delay:[ke,ue,re]}],animate:[{animate:["none",z,ue,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ue,re]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:Ot()}],"scale-x":[{"scale-x":Ot()}],"scale-y":[{"scale-y":Ot()}],"scale-z":[{"scale-z":Ot()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[ue,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,re]}],"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":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",ue,re]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[ke,ei,Pn,mg]}],stroke:[{stroke:["none",...W()]}],"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"]}},Lj=gj(Uj);function ti(...a){return Lj(Zk(a))}const Bj={theme:"system",setTheme:()=>null},Hy=w.createContext(Bj);function Hj({children:a,defaultTheme:n="system",storageKey:l="crm-ui-theme",...r}){const[o,f]=w.useState(()=>localStorage.getItem(l)||n);w.useEffect(()=>{const m=window.document.documentElement;if(m.classList.remove("light","dark"),o==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";m.classList.add(p);return}m.classList.add(o)},[o]);const h={theme:o,setTheme:m=>{localStorage.setItem(l,m),f(m)}};return d.jsx(Hy.Provider,{...r,value:h,children:a})}const Yy=()=>{const a=w.useContext(Hy);if(a===void 0)throw new Error("useTheme must be used within a ThemeProvider");return a},hf=w.createContext({});function mf(a){const n=w.useRef(null);return n.current===null&&(n.current=a()),n.current}const Yj=typeof window<"u",qy=Yj?w.useLayoutEffect:w.useEffect,Do=w.createContext(null);function pf(a,n){a.indexOf(n)===-1&&a.push(n)}function vo(a,n){const l=a.indexOf(n);l>-1&&a.splice(l,1)}const ba=(a,n,l)=>l>n?n:l<a?a:l;let gf=()=>{};const wn={},Gy=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Xy(a){return typeof a=="object"&&a!==null}const Py=a=>/^0[^.\s]+$/u.test(a);function Qy(a){let n;return()=>(n===void 0&&(n=a()),n)}const aa=a=>a,qj=(a,n)=>l=>n(a(l)),Si=(...a)=>a.reduce(qj),fi=(a,n,l)=>{const r=n-a;return r===0?1:(l-a)/r};class xf{constructor(){this.subscriptions=[]}add(n){return pf(this.subscriptions,n),()=>vo(this.subscriptions,n)}notify(n,l,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](n,l,r);else for(let f=0;f<o;f++){const h=this.subscriptions[f];h&&h(n,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gt=a=>a*1e3,ta=a=>a/1e3;function Ky(a,n){return n?a*(1e3/n):0}const Fy=(a,n,l)=>(((1-3*l+3*n)*a+(3*l-6*n))*a+3*n)*a,Gj=1e-7,Xj=12;function Pj(a,n,l,r,o){let f,h,m=0;do h=n+(l-n)/2,f=Fy(h,r,o)-a,f>0?l=h:n=h;while(Math.abs(f)>Gj&&++m<Xj);return h}function wi(a,n,l,r){if(a===n&&l===r)return aa;const o=f=>Pj(f,0,1,a,l);return f=>f===0||f===1?f:Fy(o(f),n,r)}const Zy=a=>n=>n<=.5?a(2*n)/2:(2-a(2*(1-n)))/2,Jy=a=>n=>1-a(1-n),$y=wi(.33,1.53,.69,.99),yf=Jy($y),Wy=Zy(yf),Iy=a=>a>=1?1:(a*=2)<1?.5*yf(a):.5*(2-Math.pow(2,-10*(a-1))),vf=a=>1-Math.sin(Math.acos(a)),ev=Jy(vf),tv=Zy(vf),Qj=wi(.42,0,1,1),Kj=wi(0,0,.58,1),av=wi(.42,0,.58,1),Fj=a=>Array.isArray(a)&&typeof a[0]!="number",nv=a=>Array.isArray(a)&&typeof a[0]=="number",Zj={linear:aa,easeIn:Qj,easeInOut:av,easeOut:Kj,circIn:vf,circInOut:tv,circOut:ev,backIn:yf,backInOut:Wy,backOut:$y,anticipate:Iy},Jj=a=>typeof a=="string",xg=a=>{if(nv(a)){gf(a.length===4);const[n,l,r,o]=a;return wi(n,l,r,o)}else if(Jj(a))return Zj[a];return a},Pr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $j(a,n){let l=new Set,r=new Set,o=!1,f=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(y){h.has(y)&&(g.schedule(y),a()),y(m)}const g={schedule:(y,v=!1,S=!1)=>{const N=S&&o?l:r;return v&&h.add(y),N.add(y),y},cancel:y=>{r.delete(y),h.delete(y)},process:y=>{if(m=y,o){f=!0;return}o=!0;const v=l;l=r,r=v,l.forEach(p),l.clear(),o=!1,f&&(f=!1,g.process(y))}};return g}const Wj=40;function sv(a,n){let l=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,h=Pr.reduce((U,Y)=>(U[Y]=$j(f),U),{}),{setup:m,read:p,resolveKeyframes:g,preUpdate:y,update:v,preRender:S,render:k,postRender:N}=h,E=()=>{const U=wn.useManualTiming,Y=U?o.timestamp:performance.now();l=!1,U||(o.delta=r?1e3/60:Math.max(Math.min(Y-o.timestamp,Wj),1)),o.timestamp=Y,o.isProcessing=!0,m.process(o),p.process(o),g.process(o),y.process(o),v.process(o),S.process(o),k.process(o),N.process(o),o.isProcessing=!1,l&&n&&(r=!1,a(E))},M=()=>{l=!0,r=!0,o.isProcessing||a(E)};return{schedule:Pr.reduce((U,Y)=>{const Q=h[Y];return U[Y]=(ae,K=!1,B=!1)=>(l||M(),Q.schedule(ae,K,B)),U},{}),cancel:U=>{for(let Y=0;Y<Pr.length;Y++)h[Pr[Y]].cancel(U)},state:o,steps:h}}const{schedule:qe,cancel:kn,state:yt,steps:ld}=sv(typeof requestAnimationFrame<"u"?requestAnimationFrame:aa,!0);let so;function Ij(){so=void 0}const jt={now:()=>(so===void 0&&jt.set(yt.isProcessing||wn.useManualTiming?yt.timestamp:performance.now()),so),set:a=>{so=a,queueMicrotask(Ij)}},lv=a=>n=>typeof n=="string"&&n.startsWith(a),iv=lv("--"),eN=lv("var(--"),bf=a=>eN(a)?tN.test(a.split("/*")[0].trim()):!1,tN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yg(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Is={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},hi={...Is,transform:a=>ba(0,1,a)},Qr={...Is,default:1},ii=a=>Math.round(a*1e5)/1e5,Sf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aN(a){return a==null}const nN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wf=(a,n)=>l=>!!(typeof l=="string"&&nN.test(l)&&l.startsWith(a)||n&&!aN(l)&&Object.prototype.hasOwnProperty.call(l,n)),rv=(a,n,l)=>r=>{if(typeof r!="string")return r;const[o,f,h,m]=r.match(Sf);return{[a]:parseFloat(o),[n]:parseFloat(f),[l]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},sN=a=>ba(0,255,a),id={...Is,transform:a=>Math.round(sN(a))},Zn={test:wf("rgb","red"),parse:rv("red","green","blue"),transform:({red:a,green:n,blue:l,alpha:r=1})=>"rgba("+id.transform(a)+", "+id.transform(n)+", "+id.transform(l)+", "+ii(hi.transform(r))+")"};function lN(a){let n="",l="",r="",o="";return a.length>5?(n=a.substring(1,3),l=a.substring(3,5),r=a.substring(5,7),o=a.substring(7,9)):(n=a.substring(1,2),l=a.substring(2,3),r=a.substring(3,4),o=a.substring(4,5),n+=n,l+=l,r+=r,o+=o),{red:parseInt(n,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Dd={test:wf("#"),parse:lN,transform:Zn.transform},ki=a=>({test:n=>typeof n=="string"&&n.endsWith(a)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${a}`}),vn=ki("deg"),va=ki("%"),oe=ki("px"),iN=ki("vh"),rN=ki("vw"),vg={...va,parse:a=>va.parse(a)/100,transform:a=>va.transform(a*100)},Gs={test:wf("hsl","hue"),parse:rv("hue","saturation","lightness"),transform:({hue:a,saturation:n,lightness:l,alpha:r=1})=>"hsla("+Math.round(a)+", "+va.transform(ii(n))+", "+va.transform(ii(l))+", "+ii(hi.transform(r))+")"},it={test:a=>Zn.test(a)||Dd.test(a)||Gs.test(a),parse:a=>Zn.test(a)?Zn.parse(a):Gs.test(a)?Gs.parse(a):Dd.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Zn.transform(a):Gs.transform(a),getAnimatableNone:a=>{const n=it.parse(a);return n.alpha=0,it.transform(n)}},oN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uN(a){var n,l;return isNaN(a)&&typeof a=="string"&&(((n=a.match(Sf))==null?void 0:n.length)||0)+(((l=a.match(oN))==null?void 0:l.length)||0)>0}const ov="number",uv="color",cN="var",dN="var(",bg="${}",fN=/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 Fs(a){const n=a.toString(),l=[],r={color:[],number:[],var:[]},o=[];let f=0;const m=n.replace(fN,p=>(it.test(p)?(r.color.push(f),o.push(uv),l.push(it.parse(p))):p.startsWith(dN)?(r.var.push(f),o.push(cN),l.push(p)):(r.number.push(f),o.push(ov),l.push(parseFloat(p))),++f,bg)).split(bg);return{values:l,split:m,indexes:r,types:o}}function hN(a){return Fs(a).values}function cv({split:a,types:n}){const l=a.length;return r=>{let o="";for(let f=0;f<l;f++)if(o+=a[f],r[f]!==void 0){const h=n[f];h===ov?o+=ii(r[f]):h===uv?o+=it.transform(r[f]):o+=r[f]}return o}}function mN(a){return cv(Fs(a))}const pN=a=>typeof a=="number"?0:it.test(a)?it.getAnimatableNone(a):a,gN=(a,n)=>typeof a=="number"?n!=null&&n.trim().endsWith("/")?a:0:pN(a);function xN(a){const n=Fs(a);return cv(n)(n.values.map((r,o)=>gN(r,n.split[o])))}const ua={test:uN,parse:hN,createTransformer:mN,getAnimatableNone:xN};function rd(a,n,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(n-a)*6*l:l<1/2?n:l<2/3?a+(n-a)*(2/3-l)*6:a}function yN({hue:a,saturation:n,lightness:l,alpha:r}){a/=360,n/=100,l/=100;let o=0,f=0,h=0;if(!n)o=f=h=l;else{const m=l<.5?l*(1+n):l+n-l*n,p=2*l-m;o=rd(p,m,a+1/3),f=rd(p,m,a),h=rd(p,m,a-1/3)}return{red:Math.round(o*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:r}}function bo(a,n){return l=>l>0?n:a}const Fe=(a,n,l)=>a+(n-a)*l,od=(a,n,l)=>{const r=a*a,o=l*(n*n-r)+r;return o<0?0:Math.sqrt(o)},vN=[Dd,Zn,Gs],bN=a=>vN.find(n=>n.test(a));function Sg(a){const n=bN(a);if(!n)return!1;let l=n.parse(a);return n===Gs&&(l=yN(l)),l}const wg=(a,n)=>{const l=Sg(a),r=Sg(n);if(!l||!r)return bo(a,n);const o={...l};return f=>(o.red=od(l.red,r.red,f),o.green=od(l.green,r.green,f),o.blue=od(l.blue,r.blue,f),o.alpha=Fe(l.alpha,r.alpha,f),Zn.transform(o))},Rd=new Set(["none","hidden"]);function SN(a,n){return Rd.has(a)?l=>l<=0?a:n:l=>l>=1?n:a}function wN(a,n){return l=>Fe(a,n,l)}function kf(a){return typeof a=="number"?wN:typeof a=="string"?bf(a)?bo:it.test(a)?wg:NN:Array.isArray(a)?dv:typeof a=="object"?it.test(a)?wg:kN:bo}function dv(a,n){const l=[...a],r=l.length,o=a.map((f,h)=>kf(f)(f,n[h]));return f=>{for(let h=0;h<r;h++)l[h]=o[h](f);return l}}function kN(a,n){const l={...a,...n},r={};for(const o in l)a[o]!==void 0&&n[o]!==void 0&&(r[o]=kf(a[o])(a[o],n[o]));return o=>{for(const f in r)l[f]=r[f](o);return l}}function jN(a,n){const l=[],r={color:0,var:0,number:0};for(let o=0;o<n.values.length;o++){const f=n.types[o],h=a.indexes[f][r[f]],m=a.values[h]??0;l[o]=m,r[f]++}return l}const NN=(a,n)=>{const l=ua.createTransformer(n),r=Fs(a),o=Fs(n);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Rd.has(a)&&!o.values.length||Rd.has(n)&&!r.values.length?SN(a,n):Si(dv(jN(r,o),o.values),l):bo(a,n)};function fv(a,n,l){return typeof a=="number"&&typeof n=="number"&&typeof l=="number"?Fe(a,n,l):kf(a)(a,n)}const TN=a=>{const n=({timestamp:l})=>a(l);return{start:(l=!0)=>qe.update(n,l),stop:()=>kn(n),now:()=>yt.isProcessing?yt.timestamp:jt.now()}},hv=(a,n,l=10)=>{let r="";const o=Math.max(Math.round(n/l),2);for(let f=0;f<o;f++)r+=Math.round(a(f/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},So=2e4;function jf(a){let n=0;const l=50;let r=a.next(n);for(;!r.done&&n<So;)n+=l,r=a.next(n);return n>=So?1/0:n}function EN(a,n=100,l){const r=l({...a,keyframes:[0,n]}),o=Math.min(jf(r),So);return{type:"keyframes",ease:f=>r.next(o*f).value/n,duration:ta(o)}}const We={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 Od(a,n){return a*Math.sqrt(1-n*n)}const CN=12;function MN(a,n,l){let r=l;for(let o=1;o<CN;o++)r=r-a(r)/n(r);return r}const ud=.001;function AN({duration:a=We.duration,bounce:n=We.bounce,velocity:l=We.velocity,mass:r=We.mass}){let o,f,h=1-n;h=ba(We.minDamping,We.maxDamping,h),a=ba(We.minDuration,We.maxDuration,ta(a)),h<1?(o=g=>{const y=g*h,v=y*a,S=y-l,k=Od(g,h),N=Math.exp(-v);return ud-S/k*N},f=g=>{const v=g*h*a,S=v*l+l,k=Math.pow(h,2)*Math.pow(g,2)*a,N=Math.exp(-v),E=Od(Math.pow(g,2),h);return(-o(g)+ud>0?-1:1)*((S-k)*N)/E}):(o=g=>{const y=Math.exp(-g*a),v=(g-l)*a+1;return-ud+y*v},f=g=>{const y=Math.exp(-g*a),v=(l-g)*(a*a);return y*v});const m=5/a,p=MN(o,f,m);if(a=Gt(a),isNaN(p))return{stiffness:We.stiffness,damping:We.damping,duration:a};{const g=Math.pow(p,2)*r;return{stiffness:g,damping:h*2*Math.sqrt(r*g),duration:a}}}const DN=["duration","bounce"],RN=["stiffness","damping","mass"];function kg(a,n){return n.some(l=>a[l]!==void 0)}function ON(a){let n={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...a};if(!kg(a,RN)&&kg(a,DN))if(n.velocity=0,a.visualDuration){const l=a.visualDuration,r=2*Math.PI/(l*1.2),o=r*r,f=2*ba(.05,1,1-(a.bounce||0))*Math.sqrt(o);n={...n,mass:We.mass,stiffness:o,damping:f}}else{const l=AN({...a,velocity:0});n={...n,...l,mass:We.mass},n.isResolvedFromDuration=!0}return n}function wo(a=We.visualDuration,n=We.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:n}:a;let{restSpeed:r,restDelta:o}=l;const f=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],m={done:!1,value:f},{stiffness:p,damping:g,mass:y,duration:v,velocity:S,isResolvedFromDuration:k}=ON({...l,velocity:-ta(l.velocity||0)}),N=S||0,E=g/(2*Math.sqrt(p*y)),M=h-f,A=ta(Math.sqrt(p/y)),z=Math.abs(M)<5;r||(r=z?We.restSpeed.granular:We.restSpeed.default),o||(o=z?We.restDelta.granular:We.restDelta.default);let U,Y,Q,ae,K,B;if(E<1)Q=Od(A,E),ae=(N+E*A*M)/Q,U=se=>{const de=Math.exp(-E*A*se);return h-de*(ae*Math.sin(Q*se)+M*Math.cos(Q*se))},K=E*A*ae+M*Q,B=E*A*M-ae*Q,Y=se=>Math.exp(-E*A*se)*(K*Math.sin(Q*se)+B*Math.cos(Q*se));else if(E===1){U=de=>h-Math.exp(-A*de)*(M+(N+A*M)*de);const se=N+A*M;Y=de=>Math.exp(-A*de)*(A*se*de-N)}else{const se=A*Math.sqrt(E*E-1);U=ve=>{const $=Math.exp(-E*A*ve),R=Math.min(se*ve,300);return h-$*((N+E*A*M)*Math.sinh(R)+se*M*Math.cosh(R))/se};const de=(N+E*A*M)/se,pe=E*A*de-M*se,Ae=E*A*M-de*se;Y=ve=>{const $=Math.exp(-E*A*ve),R=Math.min(se*ve,300);return $*(pe*Math.sinh(R)+Ae*Math.cosh(R))}}const I={calculatedDuration:k&&v||null,velocity:se=>Gt(Y(se)),next:se=>{if(!k&&E<1){const pe=Math.exp(-E*A*se),Ae=Math.sin(Q*se),ve=Math.cos(Q*se),$=h-pe*(ae*Ae+M*ve),R=Gt(pe*(K*Ae+B*ve));return m.done=Math.abs(R)<=r&&Math.abs(h-$)<=o,m.value=m.done?h:$,m}const de=U(se);if(k)m.done=se>=v;else{const pe=Gt(Y(se));m.done=Math.abs(pe)<=r&&Math.abs(h-de)<=o}return m.value=m.done?h:de,m},toString:()=>{const se=Math.min(jf(I),So),de=hv(pe=>I.next(se*pe).value,se,30);return se+"ms "+de},toTransition:()=>{}};return I}wo.applyToOptions=a=>{const n=EN(a,100,wo);return a.ease=n.ease,a.duration=Gt(n.duration),a.type="keyframes",a};const zN=5;function mv(a,n,l){const r=Math.max(n-zN,0);return Ky(l-a(r),n-r)}function zd({keyframes:a,velocity:n=0,power:l=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:f=500,modifyTarget:h,min:m,max:p,restDelta:g=.5,restSpeed:y}){const v=a[0],S={done:!1,value:v},k=B=>m!==void 0&&B<m||p!==void 0&&B>p,N=B=>m===void 0?p:p===void 0||Math.abs(m-B)<Math.abs(p-B)?m:p;let E=l*n;const M=v+E,A=h===void 0?M:h(M);A!==M&&(E=A-v);const z=B=>-E*Math.exp(-B/r),U=B=>A+z(B),Y=B=>{const I=z(B),se=U(B);S.done=Math.abs(I)<=g,S.value=S.done?A:se};let Q,ae;const K=B=>{k(S.value)&&(Q=B,ae=wo({keyframes:[S.value,N(S.value)],velocity:mv(U,B,S.value),damping:o,stiffness:f,restDelta:g,restSpeed:y}))};return K(0),{calculatedDuration:null,next:B=>{let I=!1;return!ae&&Q===void 0&&(I=!0,Y(B),K(B)),Q!==void 0&&B>=Q?ae.next(B-Q):(!I&&Y(B),S)}}}function _N(a,n,l){const r=[],o=l||wn.mix||fv,f=a.length-1;for(let h=0;h<f;h++){let m=o(a[h],a[h+1]);if(n){const p=Array.isArray(n)?n[h]||aa:n;m=Si(p,m)}r.push(m)}return r}function VN(a,n,{clamp:l=!0,ease:r,mixer:o}={}){const f=a.length;if(gf(f===n.length),f===1)return()=>n[0];if(f===2&&n[0]===n[1])return()=>n[1];const h=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),n=[...n].reverse());const m=_N(n,r,o),p=m.length,g=y=>{if(h&&y<a[0])return n[0];let v=0;if(p>1)for(;v<a.length-2&&!(y<a[v+1]);v++);const S=fi(a[v],a[v+1],y);return m[v](S)};return l?y=>g(ba(a[0],a[f-1],y)):g}function UN(a,n){const l=a[a.length-1];for(let r=1;r<=n;r++){const o=fi(0,n,r);a.push(Fe(l,1,o))}}function LN(a){const n=[0];return UN(n,a.length-1),n}function BN(a,n){return a.map(l=>l*n)}function HN(a,n){return a.map(()=>n||av).splice(0,a.length-1)}function ri({duration:a=300,keyframes:n,times:l,ease:r="easeInOut"}){const o=Fj(r)?r.map(xg):xg(r),f={done:!1,value:n[0]},h=BN(l&&l.length===n.length?l:LN(n),a),m=VN(h,n,{ease:Array.isArray(o)?o:HN(n,o)});return{calculatedDuration:a,next:p=>(f.value=m(p),f.done=p>=a,f)}}const YN=a=>a!==null;function Nf(a,{repeat:n,repeatType:l="loop"},r,o=1){const f=a.filter(YN),m=o<0||n&&l!=="loop"&&n%2===1?0:f.length-1;return!m||r===void 0?f[m]:r}const qN={decay:zd,inertia:zd,tween:ri,keyframes:ri,spring:wo};function pv(a){typeof a.type=="string"&&(a.type=qN[a.type])}class Tf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,l){return this.finished.then(n,l)}}const GN=a=>a/100;class Ef extends Tf{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:l}=this.options;l&&l.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;pv(n);const{type:l=ri,repeat:r=0,repeatDelay:o=0,repeatType:f,velocity:h=0}=n;let{keyframes:m}=n;const p=l||ri;p!==ri&&typeof m[0]!="number"&&(this.mixKeyframes=Si(GN,fv(m[0],m[1])),m=[0,100]);const g=p({...n,keyframes:m});f==="mirror"&&(this.mirroredGenerator=p({...n,keyframes:[...m].reverse(),velocity:-h})),g.calculatedDuration===null&&(g.calculatedDuration=jf(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=g}updateTime(n){const l=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(n,l=!1){const{generator:r,totalDuration:o,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:y,repeat:v,repeatType:S,repeatDelay:k,type:N,onUpdate:E,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-o/this.speed,this.startTime)),l?this.currentTime=n:this.updateTime(n);const A=this.currentTime-g*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?A<0:A>o;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let U=this.currentTime,Y=r;if(v){const B=Math.min(this.currentTime,o)/m;let I=Math.floor(B),se=B%1;!se&&B>=1&&(se=1),se===1&&I--,I=Math.min(I,v+1),!!(I%2)&&(S==="reverse"?(se=1-se,k&&(se-=k/m)):S==="mirror"&&(Y=h)),U=ba(0,1,se)*m}const Q=z?{done:!1,value:y[0]}:Y.next(U);f&&!z&&(Q.value=f(Q.value));let{done:ae}=Q;!z&&p!==null&&(ae=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ae);return K&&N!==zd&&(Q.value=Nf(y,this.options,M,this.speed)),E&&E(Q.value),K&&this.finish(),Q}then(n,l){return this.finished.then(n,l)}get duration(){return ta(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ta(n)}get time(){return ta(this.currentTime)}set time(n){n=Gt(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=n,this.tick(n))}getGeneratorVelocity(){const n=this.currentTime;if(n<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(n);const l=this.generator.next(n).value;return mv(r=>this.generator.next(r).value,n,l)}get speed(){return this.playbackSpeed}set speed(n){const l=this.playbackSpeed!==n;l&&this.driver&&this.updateTime(jt.now()),this.playbackSpeed=n,l&&this.driver&&(this.time=ta(this.currentTime))}play(){var o,f;if(this.isStopped)return;const{driver:n=TN,startTime:l}=this.options;this.driver||(this.driver=n(h=>this.tick(h))),(f=(o=this.options).onPlay)==null||f.call(o);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=l??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(jt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(n=this.options).onComplete)==null||l.call(n)}cancel(){var n,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(n=this.options).onCancel)==null||l.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),n.observe(this)}}function XN(a){for(let n=1;n<a.length;n++)a[n]??(a[n]=a[n-1])}const Jn=a=>a*180/Math.PI,_d=a=>{const n=Jn(Math.atan2(a[1],a[0]));return Vd(n)},PN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:_d,rotateZ:_d,skewX:a=>Jn(Math.atan(a[1])),skewY:a=>Jn(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Vd=a=>(a=a%360,a<0&&(a+=360),a),jg=_d,Ng=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Tg=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),QN={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ng,scaleY:Tg,scale:a=>(Ng(a)+Tg(a))/2,rotateX:a=>Vd(Jn(Math.atan2(a[6],a[5]))),rotateY:a=>Vd(Jn(Math.atan2(-a[2],a[0]))),rotateZ:jg,rotate:jg,skewX:a=>Jn(Math.atan(a[4])),skewY:a=>Jn(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Ud(a){return a.includes("scale")?1:0}function Ld(a,n){if(!a||a==="none")return Ud(n);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(l)r=QN,o=l;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=PN,o=m}if(!o)return Ud(n);const f=r[n],h=o[1].split(",").map(FN);return typeof f=="function"?f(h):h[f]}const KN=(a,n)=>{const{transform:l="none"}=getComputedStyle(a);return Ld(l,n)};function FN(a){return parseFloat(a.trim())}const el=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tl=new Set(el),Eg=a=>a===Is||a===oe,ZN=new Set(["x","y","z"]),JN=el.filter(a=>!ZN.has(a));function $N(a){const n=[];return JN.forEach(l=>{const r=a.getValue(l);r!==void 0&&(n.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),n}const Sn={width:({x:a},{paddingLeft:n="0",paddingRight:l="0",boxSizing:r})=>{const o=a.max-a.min;return r==="border-box"?o:o-parseFloat(n)-parseFloat(l)},height:({y:a},{paddingTop:n="0",paddingBottom:l="0",boxSizing:r})=>{const o=a.max-a.min;return r==="border-box"?o:o-parseFloat(n)-parseFloat(l)},top:(a,{top:n})=>parseFloat(n),left:(a,{left:n})=>parseFloat(n),bottom:({y:a},{top:n})=>parseFloat(n)+(a.max-a.min),right:({x:a},{left:n})=>parseFloat(n)+(a.max-a.min),x:(a,{transform:n})=>Ld(n,"x"),y:(a,{transform:n})=>Ld(n,"y")};Sn.translateX=Sn.x;Sn.translateY=Sn.y;const $n=new Set;let Bd=!1,Hd=!1,Yd=!1;function gv(){if(Hd){const a=Array.from($n).filter(r=>r.needsMeasurement),n=new Set(a.map(r=>r.element)),l=new Map;n.forEach(r=>{const o=$N(r);o.length&&(l.set(r,o),r.render())}),a.forEach(r=>r.measureInitialState()),n.forEach(r=>{r.render();const o=l.get(r);o&&o.forEach(([f,h])=>{var m;(m=r.getValue(f))==null||m.set(h)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Hd=!1,Bd=!1,$n.forEach(a=>a.complete(Yd)),$n.clear()}function xv(){$n.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Hd=!0)})}function WN(){Yd=!0,xv(),gv(),Yd=!1}class Cf{constructor(n,l,r,o,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=l,this.name=r,this.motionValue=o,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?($n.add(this),Bd||(Bd=!0,qe.read(xv),qe.resolveKeyframes(gv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:l,element:r,motionValue:o}=this;if(n[0]===null){const f=o==null?void 0:o.get(),h=n[n.length-1];if(f!==void 0)n[0]=f;else if(r&&l){const m=r.readValue(l,h);m!=null&&(n[0]=m)}n[0]===void 0&&(n[0]=h),o&&f===void 0&&o.set(n[0])}XN(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),$n.delete(this)}cancel(){this.state==="scheduled"&&($n.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const IN=a=>a.startsWith("--");function yv(a,n,l){IN(n)?a.style.setProperty(n,l):a.style[n]=l}const eT={};function vv(a,n){const l=Qy(a);return()=>eT[n]??l()}const tT=vv(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bv=vv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),li=([a,n,l,r])=>`cubic-bezier(${a}, ${n}, ${l}, ${r})`,Cg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:li([0,.65,.55,1]),circOut:li([.55,0,1,.45]),backIn:li([.31,.01,.66,-.59]),backOut:li([.33,1.53,.69,.99])};function Sv(a,n){if(a)return typeof a=="function"?bv()?hv(a,n):"ease-out":nv(a)?li(a):Array.isArray(a)?a.map(l=>Sv(l,n)||Cg.easeOut):Cg[a]}function aT(a,n,l,{delay:r=0,duration:o=300,repeat:f=0,repeatType:h="loop",ease:m="easeOut",times:p}={},g=void 0){const y={[n]:l};p&&(y.offset=p);const v=Sv(m,o);Array.isArray(v)&&(y.easing=v);const S={delay:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),a.animate(y,S)}function wv(a){return typeof a=="function"&&"applyToOptions"in a}function nT({type:a,...n}){return wv(a)&&bv()?a.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class kv extends Tf{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:l,name:r,keyframes:o,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:m,onComplete:p}=n;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=n,gf(typeof n.type!="string");const g=nT(n);this.animation=aT(l,r,o,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=Nf(o,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(y),yv(l,r,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,l;(l=(n=this.animation).finish)==null||l.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,r,o;const n=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var l,r;const n=((r=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:r.call(l).duration)||0;return ta(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ta(n)}get time(){return ta(Number(this.animation.currentTime)||0)}set time(n){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Gt(n),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:l,rangeEnd:r,observe:o}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&tT()?(this.animation.timeline=n,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),aa):o(this)}}const jv={anticipate:Iy,backInOut:Wy,circInOut:tv};function sT(a){return a in jv}function lT(a){typeof a.ease=="string"&&sT(a.ease)&&(a.ease=jv[a.ease])}const cd=10;class iT extends kv{constructor(n){lT(n),pv(n),super(n),n.startTime!==void 0&&n.autoplay!==!1&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:l,onUpdate:r,onComplete:o,element:f,...h}=this.options;if(!l)return;if(n!==void 0){l.set(n);return}const m=new Ef({...h,autoplay:!1}),p=Math.max(cd,jt.now()-this.startTime),g=ba(0,cd,p-cd),y=m.sample(p).value,{name:v}=this.options;f&&v&&yv(f,v,y),l.setWithVelocity(m.sample(Math.max(0,p-g)).value,y,g),m.stop()}}const Mg=(a,n)=>n==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ua.test(a)||a==="0")&&!a.startsWith("url("));function rT(a){const n=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==n)return!0}function oT(a,n,l,r){const o=a[0];if(o===null)return!1;if(n==="display"||n==="visibility")return!0;const f=a[a.length-1],h=Mg(o,n),m=Mg(f,n);return!h||!m?!1:rT(a)||(l==="spring"||wv(l))&&r}function qd(a){a.duration=0,a.type="keyframes"}const uT=new Set(["opacity","clipPath","filter","transform"]),cT=Qy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dT(a){var y;const{motionValue:n,name:l,repeatDelay:r,repeatType:o,damping:f,type:h}=a;if(!(((y=n==null?void 0:n.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=n.owner.getProps();return cT()&&l&&uT.has(l)&&(l!=="transform"||!g)&&!p&&!r&&o!=="mirror"&&f!==0&&h!=="inertia"}const fT=40;class hT extends Tf{constructor({autoplay:n=!0,delay:l=0,type:r="keyframes",repeat:o=0,repeatDelay:f=0,repeatType:h="loop",keyframes:m,name:p,motionValue:g,element:y,...v}){var N;super(),this.stop=()=>{var E,M;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(M=this.keyframeResolver)==null||M.cancel()},this.createdAt=jt.now();const S={autoplay:n,delay:l,type:r,repeat:o,repeatDelay:f,repeatType:h,name:p,motionValue:g,element:y,...v},k=(y==null?void 0:y.KeyframeResolver)||Cf;this.keyframeResolver=new k(m,(E,M,A)=>this.onKeyframesResolved(E,M,S,!A),p,g,y),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(n,l,r,o){var A,z;this.keyframeResolver=void 0;const{name:f,type:h,velocity:m,delay:p,isHandoff:g,onUpdate:y}=r;this.resolvedAt=jt.now();let v=!0;oT(n,f,h,m)||(v=!1,(wn.instantAnimations||!p)&&(y==null||y(Nf(n,r,l))),n[0]=n[n.length-1],qd(r),r.repeat=0);const k={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>fT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:n},N=v&&!g&&dT(k),E=(z=(A=k.motionValue)==null?void 0:A.owner)==null?void 0:z.current,M=N?new iT({...k,element:E}):new Ef(k);M.finished.then(()=>{this.notifyFinished()}).catch(aa),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(n,l){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),WN()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function Nv(a,n,l,r=0,o=1){const f=Array.from(a).sort((g,y)=>g.sortNodePosition(y)).indexOf(n),h=a.size,m=(h-1)*r;return typeof l=="function"?l(f,h):o===1?f*r:m-f*r}const mT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pT(a){const n=mT.exec(a);if(!n)return[,];const[,l,r,o]=n;return[`--${l??r}`,o]}function Tv(a,n,l=1){const[r,o]=pT(a);if(!r)return;const f=window.getComputedStyle(n).getPropertyValue(r);if(f){const h=f.trim();return Gy(h)?parseFloat(h):h}return bf(o)?Tv(o,n,l+1):o}const gT={type:"spring",stiffness:500,damping:25,restSpeed:10},xT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),yT={type:"keyframes",duration:.8},vT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bT=(a,{keyframes:n})=>n.length>2?yT:tl.has(a)?a.startsWith("scale")?xT(n[1]):gT:vT,ST=a=>a!==null;function wT(a,{repeat:n,repeatType:l="loop"},r){const o=a.filter(ST),f=n&&l!=="loop"&&n%2===1?0:o.length-1;return o[f]}function Ev(a,n){if(a!=null&&a.inherit&&n){const{inherit:l,...r}=a;return{...n,...r}}return a}function Mf(a,n){const l=(a==null?void 0:a[n])??(a==null?void 0:a.default)??a;return l!==a?Ev(l,a):l}function kT({when:a,delay:n,delayChildren:l,staggerChildren:r,staggerDirection:o,repeat:f,repeatType:h,repeatDelay:m,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const Af=(a,n,l,r={},o,f)=>h=>{const m=Mf(r,a)||{},p=m.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Gt(p);const y={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:n.getVelocity(),...m,delay:-g,onUpdate:S=>{n.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:a,motionValue:n,element:f?void 0:o};kT(m)||Object.assign(y,bT(a,y)),y.duration&&(y.duration=Gt(y.duration)),y.repeatDelay&&(y.repeatDelay=Gt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(qd(y),y.delay===0&&(v=!0)),(wn.instantAnimations||wn.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(v=!0,qd(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,v&&!f&&n.get()!==void 0){const S=wT(y.keyframes,m);if(S!==void 0){qe.update(()=>{y.onUpdate(S),y.onComplete()});return}}return m.isSync?new Ef(y):new hT(y)};function Ag(a){const n=[{},{}];return a==null||a.values.forEach((l,r)=>{n[0][r]=l.get(),n[1][r]=l.getVelocity()}),n}function Df(a,n,l,r){if(typeof n=="function"){const[o,f]=Ag(r);n=n(l!==void 0?l:a.custom,o,f)}if(typeof n=="string"&&(n=a.variants&&a.variants[n]),typeof n=="function"){const[o,f]=Ag(r);n=n(l!==void 0?l:a.custom,o,f)}return n}function Wn(a,n,l){const r=a.getProps();return Df(r,n,l!==void 0?l:r.custom,a)}const Cv=new Set(["width","height","top","left","right","bottom",...el]),Dg=30,jT=a=>!isNaN(parseFloat(a));class NT{constructor(n,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const o=jt.now();if(this.updatedAt!==o&&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 h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=l.owner}setCurrent(n){this.current=n,this.updatedAt=jt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=jT(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,l){this.events[n]||(this.events[n]=new xf);const r=this.events[n].add(l);return n==="change"?()=>{r(),qe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,l){this.passiveEffect=n,this.stopPassiveEffect=l}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-r}jump(n,l=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Dg)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Dg);return Ky(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(n){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=n(l),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 n,l;(n=this.dependents)==null||n.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zs(a,n){return new NT(a,n)}const Gd=a=>Array.isArray(a);function TT(a,n,l){a.hasValue(n)?a.getValue(n).set(l):a.addValue(n,Zs(l))}function ET(a){return Gd(a)?a[a.length-1]||0:a}function CT(a,n){const l=Wn(a,n);let{transitionEnd:r={},transition:o={},...f}=l||{};f={...f,...r};for(const h in f){const m=ET(f[h]);TT(a,h,m)}}const vt=a=>!!(a&&a.getVelocity);function MT(a){return!!(vt(a)&&a.add)}function Xd(a,n){const l=a.getValue("willChange");if(MT(l))return l.add(n);if(!l&&wn.WillChange){const r=new wn.WillChange("auto");a.addValue("willChange",r),r.add(n)}}function Rf(a){return a.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const AT="framerAppearId",Mv="data-"+Rf(AT);function Av(a){return a.props[Mv]}function DT({protectedKeys:a,needsAnimating:n},l){const r=a.hasOwnProperty(l)&&n[l]!==!0;return n[l]=!1,r}function Dv(a,n,{delay:l=0,transitionOverride:r,type:o}={}){let{transition:f,transitionEnd:h,...m}=n;const p=a.getDefaultTransition();f=f?Ev(f,p):p;const g=f==null?void 0:f.reduceMotion;r&&(f=r);const y=[],v=o&&a.animationState&&a.animationState.getState()[o];for(const S in m){const k=a.getValue(S,a.latestValues[S]??null),N=m[S];if(N===void 0||v&&DT(v,S))continue;const E={delay:l,...Mf(f||{},S)},M=k.get();if(M!==void 0&&!k.isAnimating&&!Array.isArray(N)&&N===M&&!E.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const Y=Av(a);if(Y){const Q=window.MotionHandoffAnimation(Y,S,qe);Q!==null&&(E.startTime=Q,A=!0)}}Xd(a,S);const z=g??a.shouldReduceMotion;k.start(Af(S,k,N,z&&Cv.has(S)?{type:!1}:E,a,A));const U=k.animation;U&&y.push(U)}if(h){const S=()=>qe.update(()=>{h&&CT(a,h)});y.length?Promise.all(y).then(S):S()}return y}function Pd(a,n,l={}){var p;const r=Wn(a,n,l.type==="exit"?(p=a.presenceContext)==null?void 0:p.custom:void 0);let{transition:o=a.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(o=l.transitionOverride);const f=r?()=>Promise.all(Dv(a,r,l)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:S}=o;return RT(a,n,g,y,v,S,l)}:()=>Promise.resolve(),{when:m}=o;if(m){const[g,y]=m==="beforeChildren"?[f,h]:[h,f];return g().then(()=>y())}else return Promise.all([f(),h(l.delay)])}function RT(a,n,l=0,r=0,o=0,f=1,h){const m=[];for(const p of a.variantChildren)p.notify("AnimationStart",n),m.push(Pd(p,n,{...h,delay:l+(typeof r=="function"?0:r)+Nv(a.variantChildren,p,r,o,f)}).then(()=>p.notify("AnimationComplete",n)));return Promise.all(m)}function OT(a,n,l={}){a.notify("AnimationStart",n);let r;if(Array.isArray(n)){const o=n.map(f=>Pd(a,f,l));r=Promise.all(o)}else if(typeof n=="string")r=Pd(a,n,l);else{const o=typeof n=="function"?Wn(a,n,l.custom):n;r=Promise.all(Dv(a,o,l))}return r.then(()=>{a.notify("AnimationComplete",n)})}const zT={test:a=>a==="auto",parse:a=>a},Rv=a=>n=>n.test(a),Ov=[Is,oe,va,vn,rN,iN,zT],Rg=a=>Ov.find(Rv(a));function _T(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Py(a):!0}const VT=new Set(["brightness","contrast","saturate","opacity"]);function UT(a){const[n,l]=a.slice(0,-1).split("(");if(n==="drop-shadow")return a;const[r]=l.match(Sf)||[];if(!r)return a;const o=l.replace(r,"");let f=VT.has(n)?1:0;return r!==l&&(f*=100),n+"("+f+o+")"}const LT=/\b([a-z-]*)\(.*?\)/gu,Qd={...ua,getAnimatableNone:a=>{const n=a.match(LT);return n?n.map(UT).join(" "):a}},Kd={...ua,getAnimatableNone:a=>{const n=ua.parse(a);return ua.createTransformer(a)(n.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Og={...Is,transform:Math.round},BT={rotate:vn,rotateX:vn,rotateY:vn,rotateZ:vn,scale:Qr,scaleX:Qr,scaleY:Qr,scaleZ:Qr,skew:vn,skewX:vn,skewY:vn,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:hi,originX:vg,originY:vg,originZ:oe},Of={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,inset:oe,insetBlock:oe,insetBlockStart:oe,insetBlockEnd:oe,insetInline:oe,insetInlineStart:oe,insetInlineEnd:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,paddingBlock:oe,paddingBlockStart:oe,paddingBlockEnd:oe,paddingInline:oe,paddingInlineStart:oe,paddingInlineEnd:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,marginBlock:oe,marginBlockStart:oe,marginBlockEnd:oe,marginInline:oe,marginInlineStart:oe,marginInlineEnd:oe,fontSize:oe,backgroundPositionX:oe,backgroundPositionY:oe,...BT,zIndex:Og,fillOpacity:hi,strokeOpacity:hi,numOctaves:Og},HT={...Of,color:it,backgroundColor:it,outlineColor:it,fill:it,stroke:it,borderColor:it,borderTopColor:it,borderRightColor:it,borderBottomColor:it,borderLeftColor:it,filter:Qd,WebkitFilter:Qd,mask:Kd,WebkitMask:Kd},zv=a=>HT[a],YT=new Set([Qd,Kd]);function _v(a,n){let l=zv(a);return YT.has(l)||(l=ua),l.getAnimatableNone?l.getAnimatableNone(n):void 0}const qT=new Set(["auto","none","0"]);function GT(a,n,l){let r=0,o;for(;r<a.length&&!o;){const f=a[r];typeof f=="string"&&!qT.has(f)&&Fs(f).values.length&&(o=a[r]),r++}if(o&&l)for(const f of n)a[f]=_v(l,o)}class XT extends Cf{constructor(n,l,r,o,f){super(n,l,r,o,f,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let v=n[y];if(typeof v=="string"&&(v=v.trim(),bf(v))){const S=Tv(v,l.current);S!==void 0&&(n[y]=S),y===n.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!Cv.has(r)||n.length!==2)return;const[o,f]=n,h=Rg(o),m=Rg(f),p=yg(o),g=yg(f);if(p!==g&&Sn[r]){this.needsMeasurement=!0;return}if(h!==m)if(Eg(h)&&Eg(m))for(let y=0;y<n.length;y++){const v=n[y];typeof v=="string"&&(n[y]=parseFloat(v))}else Sn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:l}=this,r=[];for(let o=0;o<n.length;o++)(n[o]===null||_T(n[o]))&&r.push(o);r.length&>(n,r,l)}measureInitialState(){const{element:n,unresolvedKeyframes:l,name:r}=this;if(!n||!n.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Sn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l[0]=this.measuredOrigin;const o=l[l.length-1];o!==void 0&&n.getValue(r,o).jump(o,!1)}measureEndState(){var m;const{element:n,name:l,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(l);o&&o.jump(this.measuredOrigin,!1);const f=r.length-1,h=r[f];r[f]=Sn[l](n.measureViewportBox(),window.getComputedStyle(n.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([p,g])=>{n.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const PT=new Set(["opacity","clipPath","filter","transform"]);function Vv(a,n,l){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const o=(l==null?void 0:l[a])??r.querySelectorAll(a);return o?Array.from(o):[]}return Array.from(a).filter(r=>r!=null)}const Uv=(a,n)=>n&&typeof a=="number"?n.transform(a):a;function lo(a){return Xy(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:zf}=sv(queueMicrotask,!1),oa={x:!1,y:!1};function Lv(){return oa.x||oa.y}function QT(a){return a==="x"||a==="y"?oa[a]?null:(oa[a]=!0,()=>{oa[a]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}function Bv(a,n){const l=Vv(a),r=new AbortController,o={passive:!0,...n,signal:r.signal};return[l,o,()=>r.abort()]}function KT(a){return!(a.pointerType==="touch"||Lv())}function FT(a,n,l={}){const[r,o,f]=Bv(a,l);return r.forEach(h=>{let m=!1,p=!1,g;const y=()=>{h.removeEventListener("pointerleave",N)},v=M=>{g&&(g(M),g=void 0),y()},S=M=>{m=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),p&&(p=!1,v(M))},k=()=>{m=!0,window.addEventListener("pointerup",S,o),window.addEventListener("pointercancel",S,o)},N=M=>{if(M.pointerType!=="touch"){if(m){p=!0;return}v(M)}},E=M=>{if(!KT(M))return;p=!1;const A=n(h,M);typeof A=="function"&&(g=A,h.addEventListener("pointerleave",N,o))};h.addEventListener("pointerenter",E,o),h.addEventListener("pointerdown",k,o)}),f}const Hv=(a,n)=>n?a===n?!0:Hv(a,n.parentElement):!1,_f=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,ZT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function JT(a){return ZT.has(a.tagName)||a.isContentEditable===!0}const $T=new Set(["INPUT","SELECT","TEXTAREA"]);function WT(a){return $T.has(a.tagName)||a.isContentEditable===!0}const io=new WeakSet;function zg(a){return n=>{n.key==="Enter"&&a(n)}}function dd(a,n){a.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const IT=(a,n)=>{const l=a.currentTarget;if(!l)return;const r=zg(()=>{if(io.has(l))return;dd(l,"down");const o=zg(()=>{dd(l,"up")}),f=()=>dd(l,"cancel");l.addEventListener("keyup",o,n),l.addEventListener("blur",f,n)});l.addEventListener("keydown",r,n),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),n)};function _g(a){return _f(a)&&!Lv()}const Vg=new WeakSet;function e5(a,n,l={}){const[r,o,f]=Bv(a,l),h=m=>{const p=m.currentTarget;if(!_g(m)||Vg.has(m))return;io.add(p),l.stopPropagation&&Vg.add(m);const g=n(p,m),y=(k,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),io.has(p)&&io.delete(p),_g(k)&&typeof g=="function"&&g(k,{success:N})},v=k=>{y(k,p===window||p===document||l.useGlobalTarget||Hv(p,k.target))},S=k=>{y(k,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",S,o)};return r.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",h,o),lo(m)&&(m.addEventListener("focus",g=>IT(g,o)),!JT(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Vf(a){return Xy(a)&&"ownerSVGElement"in a}const ro=new WeakMap;let bn;const Yv=(a,n,l)=>(r,o)=>o&&o[0]?o[0][a+"Size"]:Vf(r)&&"getBBox"in r?r.getBBox()[n]:r[l],t5=Yv("inline","width","offsetWidth"),a5=Yv("block","height","offsetHeight");function n5({target:a,borderBoxSize:n}){var l;(l=ro.get(a))==null||l.forEach(r=>{r(a,{get width(){return t5(a,n)},get height(){return a5(a,n)}})})}function s5(a){a.forEach(n5)}function l5(){typeof ResizeObserver>"u"||(bn=new ResizeObserver(s5))}function i5(a,n){bn||l5();const l=Vv(a);return l.forEach(r=>{let o=ro.get(r);o||(o=new Set,ro.set(r,o)),o.add(n),bn==null||bn.observe(r)}),()=>{l.forEach(r=>{const o=ro.get(r);o==null||o.delete(n),o!=null&&o.size||bn==null||bn.unobserve(r)})}}const oo=new Set;let Xs;function r5(){Xs=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};oo.forEach(n=>n(a))},window.addEventListener("resize",Xs)}function o5(a){return oo.add(a),Xs||r5(),()=>{oo.delete(a),!oo.size&&typeof Xs=="function"&&(window.removeEventListener("resize",Xs),Xs=void 0)}}function Ug(a,n){return typeof a=="function"?o5(a):i5(a,n)}function u5(a){return Vf(a)&&a.tagName==="svg"}const c5=[...Ov,it,ua],d5=a=>c5.find(Rv(a)),Lg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ps=()=>({x:Lg(),y:Lg()}),Bg=()=>({min:0,max:0}),ut=()=>({x:Bg(),y:Bg()}),f5=new WeakMap;function Ro(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function mi(a){return typeof a=="string"||Array.isArray(a)}const Uf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lf=["initial",...Uf];function Oo(a){return Ro(a.animate)||Lf.some(n=>mi(a[n]))}function qv(a){return!!(Oo(a)||a.variants)}function h5(a,n,l){for(const r in n){const o=n[r],f=l[r];if(vt(o))a.addValue(r,o);else if(vt(f))a.addValue(r,Zs(o,{owner:a}));else if(f!==o)if(a.hasValue(r)){const h=a.getValue(r);h.liveStyle===!0?h.jump(o):h.hasAnimated||h.set(o)}else{const h=a.getStaticValue(r);a.addValue(r,Zs(h!==void 0?h:o,{owner:a}))}}for(const r in l)n[r]===void 0&&a.removeValue(r);return n}const Fd={current:null},Gv={current:!1},m5=typeof window<"u";function p5(){if(Gv.current=!0,!!m5)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),n=()=>Fd.current=a.matches;a.addEventListener("change",n),n()}else Fd.current=!1}const Hg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ko={};function Xv(a){ko=a}function g5(){return ko}class x5{scrapeMotionValuesFromProps(n,l,r){return{}}constructor({parent:n,props:l,presenceContext:r,reducedMotionConfig:o,skipAnimations:f,blockInitialAnimation:h,visualState:m},p={}){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=Cf,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 k=jt.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,qe.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=m;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},this.renderState=y,this.parent=n,this.props=l,this.presenceContext=r,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=f,this.options=p,this.blockInitialAnimation=!!h,this.isControllingVariants=Oo(l),this.isVariantNode=qv(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:v,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const k in S){const N=S[k];g[k]!==void 0&&vt(N)&&N.set(g[k])}}mount(n){var l,r;if(this.hasBeenMounted)for(const o in this.initialValues)(l=this.values.get(o))==null||l.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=n,f5.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,f)=>this.bindToMotionValue(f,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Gv.current||p5(),this.shouldReduceMotion=Fd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),kn(this.notifyUpdate),kn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,l){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),l.accelerate&&PT.has(n)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:p,ease:g,duration:y}=l.accelerate,v=new kv({element:this.current,name:n,keyframes:m,times:p,ease:g,duration:Gt(y)}),S=h(v);this.valueSubscriptions.set(n,()=>{S(),v.cancel()});return}const r=tl.has(n);r&&this.onBindTransform&&this.onBindTransform();const o=l.on("change",h=>{this.latestValues[n]=h,this.props.onUpdate&&qe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,n,l)),this.valueSubscriptions.set(n,()=>{o(),f&&f(),l.owner&&l.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in ko){const l=ko[n];if(!l)continue;const{isEnabled:r,Feature:o}=l;if(!this.features[n]&&o&&r(this.props)&&(this.features[n]=new o(this)),this.features[n]){const f=this.features[n];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):ut()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,l){this.latestValues[n]=l}update(n,l){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<Hg.length;r++){const o=Hg[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const f="on"+o,h=n[f];h&&(this.propEventSubscriptions[o]=this.on(o,h))}this.prevMotionValues=h5(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(n),()=>l.variantChildren.delete(n)}addValue(n,l){const r=this.values.get(n);l!==r&&(r&&this.removeValue(n),this.bindToMotionValue(n,l),this.values.set(n,l),this.latestValues[n]=l.get())}removeValue(n){this.values.delete(n);const l=this.valueSubscriptions.get(n);l&&(l(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,l){if(this.props.values&&this.props.values[n])return this.props.values[n];let r=this.values.get(n);return r===void 0&&l!==void 0&&(r=Zs(l===null?void 0:l,{owner:this}),this.addValue(n,r)),r}readValue(n,l){let r=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return r!=null&&(typeof r=="string"&&(Gy(r)||Py(r))?r=parseFloat(r):!d5(r)&&ua.test(l)&&(r=_v(n,l)),this.setBaseTarget(n,vt(r)?r.get():r)),vt(r)?r.get():r}setBaseTarget(n,l){this.baseTarget[n]=l}getBaseTarget(n){var f;const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const h=Df(this.props,l,(f=this.presenceContext)==null?void 0:f.custom);h&&(r=h[n])}if(l&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,n);return o!==void 0&&!vt(o)?o:this.initialValues[n]!==void 0&&r===void 0?void 0:this.baseTarget[n]}on(n,l){return this.events[n]||(this.events[n]=new xf),this.events[n].add(l)}notify(n,...l){this.events[n]&&this.events[n].notify(...l)}scheduleRenderMicrotask(){zf.render(this.render)}}class Pv extends x5{constructor(){super(...arguments),this.KeyframeResolver=XT}sortInstanceNodePosition(n,l){return n.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(n,l){const r=n.style;return r?r[l]:void 0}removeValueFromRenderState(n,{vars:l,style:r}){delete l[n],delete r[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;vt(n)&&(this.childSubscription=n.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Tn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Qv({top:a,left:n,right:l,bottom:r}){return{x:{min:n,max:l},y:{min:a,max:r}}}function y5({x:a,y:n}){return{top:n.min,right:a.max,bottom:n.max,left:a.min}}function v5(a,n){if(!n)return a;const l=n({x:a.left,y:a.top}),r=n({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function fd(a){return a===void 0||a===1}function Zd({scale:a,scaleX:n,scaleY:l}){return!fd(a)||!fd(n)||!fd(l)}function Kn(a){return Zd(a)||Kv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Kv(a){return Yg(a.x)||Yg(a.y)}function Yg(a){return a&&a!=="0%"}function jo(a,n,l){const r=a-l,o=n*r;return l+o}function qg(a,n,l,r,o){return o!==void 0&&(a=jo(a,o,r)),jo(a,l,r)+n}function Jd(a,n=0,l=1,r,o){a.min=qg(a.min,n,l,r,o),a.max=qg(a.max,n,l,r,o)}function Fv(a,{x:n,y:l}){Jd(a.x,n.translate,n.scale,n.originPoint),Jd(a.y,l.translate,l.scale,l.originPoint)}const Gg=.999999999999,Xg=1.0000000000001;function b5(a,n,l,r=!1){var m;const o=l.length;if(!o)return;n.x=n.y=1;let f,h;for(let p=0;p<o;p++){f=l[p],h=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&&Ks(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(n.x*=h.x.scale,n.y*=h.y.scale,Fv(a,h)),r&&Kn(f.latestValues)&&Ks(a,f.latestValues,(m=f.layout)==null?void 0:m.layoutBox))}n.x<Xg&&n.x>Gg&&(n.x=1),n.y<Xg&&n.y>Gg&&(n.y=1)}function Qs(a,n){a.min=a.min+n,a.max=a.max+n}function Pg(a,n,l,r,o=.5){const f=Fe(a.min,a.max,o);Jd(a,n,l,f,r)}function Qg(a,n){return typeof a=="string"?parseFloat(a)/100*(n.max-n.min):a}function Ks(a,n,l){const r=l??a;Pg(a.x,Qg(n.x,r.x),n.scaleX,n.scale,n.originX),Pg(a.y,Qg(n.y,r.y),n.scaleY,n.scale,n.originY)}function Zv(a,n){return Qv(v5(a.getBoundingClientRect(),n))}function S5(a,n,l){const r=Zv(a,l),{scroll:o}=n;return o&&(Qs(r.x,o.offset.x),Qs(r.y,o.offset.y)),r}const w5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},k5=el.length;function j5(a,n,l){let r="",o=!0;for(let f=0;f<k5;f++){const h=el[f],m=a[h];if(m===void 0)continue;let p=!0;if(typeof m=="number")p=m===(h.startsWith("scale")?1:0);else{const g=parseFloat(m);p=h.startsWith("scale")?g===1:g===0}if(!p||l){const g=Uv(m,Of[h]);if(!p){o=!1;const y=w5[h]||h;r+=`${y}(${g}) `}l&&(n[h]=g)}}return r=r.trim(),l?r=l(n,o?"":r):o&&(r="none"),r}function Bf(a,n,l){const{style:r,vars:o,transformOrigin:f}=a;let h=!1,m=!1;for(const p in n){const g=n[p];if(tl.has(p)){h=!0;continue}else if(iv(p)){o[p]=g;continue}else{const y=Uv(g,Of[p]);p.startsWith("origin")?(m=!0,f[p]=y):r[p]=y}}if(n.transform||(h||l?r.transform=j5(n,a.transform,l):r.transform&&(r.transform="none")),m){const{originX:p="50%",originY:g="50%",originZ:y=0}=f;r.transformOrigin=`${p} ${g} ${y}`}}function Jv(a,{style:n,vars:l},r,o){const f=a.style;let h;for(h in n)f[h]=n[h];o==null||o.applyProjectionStyles(f,r);for(h in l)f.setProperty(h,l[h])}function Kg(a,n){return n.max===n.min?0:a/(n.max-n.min)*100}const ai={correct:(a,n)=>{if(!n.target)return a;if(typeof a=="string")if(oe.test(a))a=parseFloat(a);else return a;const l=Kg(a,n.target.x),r=Kg(a,n.target.y);return`${l}% ${r}%`}},N5={correct:(a,{treeScale:n,projectionDelta:l})=>{const r=a,o=ua.parse(a);if(o.length>5)return r;const f=ua.createTransformer(a),h=typeof o[0]!="number"?1:0,m=l.x.scale*n.x,p=l.y.scale*n.y;o[0+h]/=m,o[1+h]/=p;const g=Fe(m,p,.5);return typeof o[2+h]=="number"&&(o[2+h]/=g),typeof o[3+h]=="number"&&(o[3+h]/=g),f(o)}},$d={borderRadius:{...ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ai,borderTopRightRadius:ai,borderBottomLeftRadius:ai,borderBottomRightRadius:ai,boxShadow:N5};function $v(a,{layout:n,layoutId:l}){return tl.has(a)||a.startsWith("origin")||(n||l!==void 0)&&(!!$d[a]||a==="opacity")}function Hf(a,n,l){var h;const r=a.style,o=n==null?void 0:n.style,f={};if(!r)return f;for(const m in r)(vt(r[m])||o&&vt(o[m])||$v(m,a)||((h=l==null?void 0:l.getValue(m))==null?void 0:h.liveStyle)!==void 0)&&(f[m]=r[m]);return f}function T5(a){return window.getComputedStyle(a)}class E5 extends Pv{constructor(){super(...arguments),this.type="html",this.renderInstance=Jv}readValueFromInstance(n,l){var r;if(tl.has(l))return(r=this.projection)!=null&&r.isProjecting?Ud(l):KN(n,l);{const o=T5(n),f=(iv(l)?o.getPropertyValue(l):o[l])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(n,{transformPagePoint:l}){return Zv(n,l)}build(n,l,r){Bf(n,l,r.transformTemplate)}scrapeMotionValuesFromProps(n,l,r){return Hf(n,l,r)}}const C5={offset:"stroke-dashoffset",array:"stroke-dasharray"},M5={offset:"strokeDashoffset",array:"strokeDasharray"};function A5(a,n,l=1,r=0,o=!0){a.pathLength=1;const f=o?C5:M5;a[f.offset]=`${-r}`,a[f.array]=`${n} ${l}`}const D5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wv(a,{attrX:n,attrY:l,attrScale:r,pathLength:o,pathSpacing:f=1,pathOffset:h=0,...m},p,g,y){if(Bf(a,m,g),p){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:S}=a;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox);for(const k of D5)v[k]!==void 0&&(S[k]=v[k],delete v[k]);n!==void 0&&(v.x=n),l!==void 0&&(v.y=l),r!==void 0&&(v.scale=r),o!==void 0&&A5(v,o,f,h,!1)}const Iv=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"]),eb=a=>typeof a=="string"&&a.toLowerCase()==="svg";function R5(a,n,l,r){Jv(a,n,void 0,r);for(const o in n.attrs)a.setAttribute(Iv.has(o)?o:Rf(o),n.attrs[o])}function tb(a,n,l){const r=Hf(a,n,l);for(const o in a)if(vt(a[o])||vt(n[o])){const f=el.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[f]=a[o]}return r}class O5 extends Pv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(n,l){return n[l]}readValueFromInstance(n,l){if(tl.has(l)){const r=zv(l);return r&&r.default||0}return l=Iv.has(l)?l:Rf(l),n.getAttribute(l)}scrapeMotionValuesFromProps(n,l,r){return tb(n,l,r)}build(n,l,r){Wv(n,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(n,l,r,o){R5(n,l,r,o)}mount(n){this.isSVGTag=eb(n.tagName),super.mount(n)}}const z5=Lf.length;function ab(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?ab(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const n={};for(let l=0;l<z5;l++){const r=Lf[l],o=a.props[r];(mi(o)||o===!1)&&(n[r]=o)}return n}function nb(a,n){if(!Array.isArray(n))return!1;const l=n.length;if(l!==a.length)return!1;for(let r=0;r<l;r++)if(n[r]!==a[r])return!1;return!0}const _5=[...Uf].reverse(),V5=Uf.length;function U5(a){return n=>Promise.all(n.map(({animation:l,options:r})=>OT(a,l,r)))}function L5(a){let n=U5(a),l=Fg(),r=!0,o=!1;const f=g=>(y,v)=>{var k;const S=Wn(a,v,g==="exit"?(k=a.presenceContext)==null?void 0:k.custom:void 0);if(S){const{transition:N,transitionEnd:E,...M}=S;y={...y,...M,...E}}return y};function h(g){n=g(a)}function m(g){const{props:y}=a,v=ab(a.parent)||{},S=[],k=new Set;let N={},E=1/0;for(let A=0;A<V5;A++){const z=_5[A],U=l[z],Y=y[z]!==void 0?y[z]:v[z],Q=mi(Y),ae=z===g?U.isActive:null;ae===!1&&(E=A);let K=Y===v[z]&&Y!==y[z]&&Q;if(K&&(r||o)&&a.manuallyAnimateOnMount&&(K=!1),U.protectedKeys={...N},!U.isActive&&ae===null||!Y&&!U.prevProp||Ro(Y)||typeof Y=="boolean")continue;if(z==="exit"&&U.isActive&&ae!==!0){U.prevResolvedValues&&(N={...N,...U.prevResolvedValues});continue}const B=B5(U.prevProp,Y);let I=B||z===g&&U.isActive&&!K&&Q||A>E&&Q,se=!1;const de=Array.isArray(Y)?Y:[Y];let pe=de.reduce(f(z),{});ae===!1&&(pe={});const{prevResolvedValues:Ae={}}=U,ve={...Ae,...pe},$=ee=>{I=!0,k.has(ee)&&(se=!0,k.delete(ee)),U.needsAnimating[ee]=!0;const he=a.getValue(ee);he&&(he.liveStyle=!1)};for(const ee in ve){const he=pe[ee],W=Ae[ee];if(N.hasOwnProperty(ee))continue;let T=!1;Gd(he)&&Gd(W)?T=!nb(he,W):T=he!==W,T?he!=null?$(ee):k.add(ee):he!==void 0&&k.has(ee)?$(ee):U.protectedKeys[ee]=!0}U.prevProp=Y,U.prevResolvedValues=pe,U.isActive&&(N={...N,...pe}),(r||o)&&a.blockInitialAnimation&&(I=!1);const R=K&&B;I&&(!R||se)&&S.push(...de.map(ee=>{const he={type:z};if(typeof ee=="string"&&(r||o)&&!R&&a.manuallyAnimateOnMount&&a.parent){const{parent:W}=a,T=Wn(W,ee);if(W.enteringChildren&&T){const{delayChildren:G}=T.transition||{};he.delay=Nv(W.enteringChildren,a,G)}}return{animation:ee,options:he}}))}if(k.size){const A={};if(typeof y.initial!="boolean"){const z=Wn(a,Array.isArray(y.initial)?y.initial[0]:y.initial);z&&z.transition&&(A.transition=z.transition)}k.forEach(z=>{const U=a.getBaseTarget(z),Y=a.getValue(z);Y&&(Y.liveStyle=!0),A[z]=U??null}),S.push({animation:A})}let M=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(M=!1),r=!1,o=!1,M?n(S):Promise.resolve()}function p(g,y){var S;if(l[g].isActive===y)return Promise.resolve();(S=a.variantChildren)==null||S.forEach(k=>{var N;return(N=k.animationState)==null?void 0:N.setActive(g,y)}),l[g].isActive=y;const v=m(g);for(const k in l)l[k].protectedKeys={};return v}return{animateChanges:m,setActive:p,setAnimateFunction:h,getState:()=>l,reset:()=>{l=Fg(),o=!0}}}function B5(a,n){return typeof n=="string"?n!==a:Array.isArray(n)?!nb(n,a):!1}function Qn(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fg(){return{animate:Qn(!0),whileInView:Qn(),whileHover:Qn(),whileTap:Qn(),whileDrag:Qn(),whileFocus:Qn(),exit:Qn()}}function Wd(a,n){a.min=n.min,a.max=n.max}function ra(a,n){Wd(a.x,n.x),Wd(a.y,n.y)}function Zg(a,n){a.translate=n.translate,a.scale=n.scale,a.originPoint=n.originPoint,a.origin=n.origin}const sb=1e-4,H5=1-sb,Y5=1+sb,lb=.01,q5=0-lb,G5=0+lb;function Nt(a){return a.max-a.min}function X5(a,n,l){return Math.abs(a-n)<=l}function Jg(a,n,l,r=.5){a.origin=r,a.originPoint=Fe(n.min,n.max,a.origin),a.scale=Nt(l)/Nt(n),a.translate=Fe(l.min,l.max,a.origin)-a.originPoint,(a.scale>=H5&&a.scale<=Y5||isNaN(a.scale))&&(a.scale=1),(a.translate>=q5&&a.translate<=G5||isNaN(a.translate))&&(a.translate=0)}function oi(a,n,l,r){Jg(a.x,n.x,l.x,r?r.originX:void 0),Jg(a.y,n.y,l.y,r?r.originY:void 0)}function $g(a,n,l){a.min=l.min+n.min,a.max=a.min+Nt(n)}function P5(a,n,l){$g(a.x,n.x,l.x),$g(a.y,n.y,l.y)}function Wg(a,n,l){a.min=n.min-l.min,a.max=a.min+Nt(n)}function No(a,n,l){Wg(a.x,n.x,l.x),Wg(a.y,n.y,l.y)}function Ig(a,n,l,r,o){return a-=n,a=jo(a,1/l,r),o!==void 0&&(a=jo(a,1/o,r)),a}function Q5(a,n=0,l=1,r=.5,o,f=a,h=a){if(va.test(n)&&(n=parseFloat(n),n=Fe(h.min,h.max,n/100)-h.min),typeof n!="number")return;let m=Fe(f.min,f.max,r);a===f&&(m-=n),a.min=Ig(a.min,n,l,m,o),a.max=Ig(a.max,n,l,m,o)}function ex(a,n,[l,r,o],f,h){Q5(a,n[l],n[r],n[o],n.scale,f,h)}const K5=["x","scaleX","originX"],F5=["y","scaleY","originY"];function tx(a,n,l,r){ex(a.x,n,K5,l?l.x:void 0,r?r.x:void 0),ex(a.y,n,F5,l?l.y:void 0,r?r.y:void 0)}function ax(a){return a.translate===0&&a.scale===1}function ib(a){return ax(a.x)&&ax(a.y)}function nx(a,n){return a.min===n.min&&a.max===n.max}function Z5(a,n){return nx(a.x,n.x)&&nx(a.y,n.y)}function sx(a,n){return Math.round(a.min)===Math.round(n.min)&&Math.round(a.max)===Math.round(n.max)}function rb(a,n){return sx(a.x,n.x)&&sx(a.y,n.y)}function lx(a){return Nt(a.x)/Nt(a.y)}function ix(a,n){return a.translate===n.translate&&a.scale===n.scale&&a.originPoint===n.originPoint}function xa(a){return[a("x"),a("y")]}function J5(a,n,l){let r="";const o=a.x.translate/n.x,f=a.y.translate/n.y,h=(l==null?void 0:l.z)||0;if((o||f||h)&&(r=`translate3d(${o}px, ${f}px, ${h}px) `),(n.x!==1||n.y!==1)&&(r+=`scale(${1/n.x}, ${1/n.y}) `),l){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:S,skewX:k,skewY:N}=l;g&&(r=`perspective(${g}px) ${r}`),y&&(r+=`rotate(${y}deg) `),v&&(r+=`rotateX(${v}deg) `),S&&(r+=`rotateY(${S}deg) `),k&&(r+=`skewX(${k}deg) `),N&&(r+=`skewY(${N}deg) `)}const m=a.x.scale*n.x,p=a.y.scale*n.y;return(m!==1||p!==1)&&(r+=`scale(${m}, ${p})`),r||"none"}const ob=["TopLeft","TopRight","BottomLeft","BottomRight"],$5=ob.length,rx=a=>typeof a=="string"?parseFloat(a):a,ox=a=>typeof a=="number"||oe.test(a);function W5(a,n,l,r,o,f){o?(a.opacity=Fe(0,l.opacity??1,I5(r)),a.opacityExit=Fe(n.opacity??1,0,e4(r))):f&&(a.opacity=Fe(n.opacity??1,l.opacity??1,r));for(let h=0;h<$5;h++){const m=`border${ob[h]}Radius`;let p=ux(n,m),g=ux(l,m);if(p===void 0&&g===void 0)continue;p||(p=0),g||(g=0),p===0||g===0||ox(p)===ox(g)?(a[m]=Math.max(Fe(rx(p),rx(g),r),0),(va.test(g)||va.test(p))&&(a[m]+="%")):a[m]=g}(n.rotate||l.rotate)&&(a.rotate=Fe(n.rotate||0,l.rotate||0,r))}function ux(a,n){return a[n]!==void 0?a[n]:a.borderRadius}const I5=ub(0,.5,ev),e4=ub(.5,.95,aa);function ub(a,n,l){return r=>r<a?0:r>n?1:l(fi(a,n,r))}function t4(a,n,l){const r=vt(a)?a:Zs(a);return r.start(Af("",r,n,l)),r.animation}function pi(a,n,l,r={passive:!0}){return a.addEventListener(n,l,r),()=>a.removeEventListener(n,l)}const a4=(a,n)=>a.depth-n.depth;class n4{constructor(){this.children=[],this.isDirty=!1}add(n){pf(this.children,n),this.isDirty=!0}remove(n){vo(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(a4),this.isDirty=!1,this.children.forEach(n)}}function s4(a,n){const l=jt.now(),r=({timestamp:o})=>{const f=o-l;f>=n&&(kn(r),a(f-n))};return qe.setup(r,!0),()=>kn(r)}function uo(a){return vt(a)?a.get():a}class l4{constructor(){this.members=[]}add(n){pf(this.members,n);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===n||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(vo(this.members,r),r.unmount())}n.scheduleRender()}remove(n){if(vo(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(n){var l;for(let r=this.members.indexOf(n)-1;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1&&((l=o.instance)==null?void 0:l.isConnected)!==!1)return this.promote(o),!0}return!1}promote(n,l){var o;const r=this.lead;if(n!==r&&(this.prevLead=r,this.lead=n,n.show(),r)){r.updateSnapshot(),n.scheduleRender();const{layoutDependency:f}=r.options,{layoutDependency:h}=n.options;(f===void 0||f!==h)&&(n.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(n.snapshot=r.snapshot,n.snapshot.latestValues=r.animationValues||r.latestValues),(o=n.root)!=null&&o.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(n=>{var l,r,o,f,h;(r=(l=n.options).onExitComplete)==null||r.call(l),(h=(o=n.resumingFrom)==null?void 0:(f=o.options).onExitComplete)==null||h.call(f)})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){var n;(n=this.lead)!=null&&n.snapshot&&(this.lead.snapshot=void 0)}}const co={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hd=["","X","Y","Z"],i4=1e3;let r4=0;function md(a,n,l,r){const{latestValues:o}=n;o[a]&&(l[a]=o[a],n.setStaticValue(a,0),r&&(r[a]=0))}function cb(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:n}=a.options;if(!n)return;const l=Av(n);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:o,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",qe,!(o||f))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&cb(r)}function db({attachResizeListener:a,defaultParent:n,measureScroll:l,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(h={},m=n==null?void 0:n()){this.id=r4++,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(c4),this.nodes.forEach(m4),this.nodes.forEach(p4),this.nodes.forEach(d4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new n4)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new xf),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const p=this.eventHandlers.get(h);p&&p.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Vf(h)&&!u5(h),this.instance=h;const{layoutId:m,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||m)&&(this.isLayoutDirty=!0),a){let y,v=0;const S=()=>this.root.updateBlockedByResize=!1;qe.read(()=>{v=window.innerWidth}),a(h,()=>{const k=window.innerWidth;k!==v&&(v=k,this.root.updateBlockedByResize=!0,y&&y(),y=s4(S,250),co.hasAnimatedSinceResize&&(co.hasAnimatedSinceResize=!1,this.nodes.forEach(fx)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&g&&(m||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||g.getDefaultTransition()||b4,{onLayoutAnimationStart:E,onLayoutAnimationComplete:M}=g.getProps(),A=!this.targetLayout||!rb(this.targetLayout,k),z=!v&&S;if(this.options.layoutRoot||this.resumeFrom||z||v&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={...Mf(N,"layout"),onPlay:E,onComplete:M};(g.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(y,z)}else v||fx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kn(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(g4),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:m,layout:p}=this.options;if(m===void 0&&!p)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(h4),this.nodes.forEach(o4),this.nodes.forEach(u4)):this.nodes.forEach(dx),this.clearAllSnapshots();const m=jt.now();yt.delta=ba(0,1e3/60,m-yt.timestamp),yt.timestamp=m,yt.isProcessing=!0,ld.update.process(yt),ld.preRender.process(yt),ld.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(f4),this.sharedNodes.forEach(x4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(m=!1),m&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:p,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!ib(this.projectionDelta),p=this.getTransformTemplate(),g=p?p(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;h&&this.instance&&(m||Kn(this.latestValues)||y)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let p=this.removeElementScroll(m);return h&&(p=this.removeTransform(p)),S4(p),{animationId:this.root.animationId,measuredBox:m,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:h}=this.options;if(!h)return ut();const m=h.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(w4))){const{scroll:y}=this.root;y&&(Qs(m.x,y.offset.x),Qs(m.y,y.offset.y))}return m}removeElementScroll(h){var p;const m=ut();if(ra(m,h),(p=this.scroll)!=null&&p.wasRoot)return m;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:v,options:S}=y;y!==this.root&&v&&S.layoutScroll&&(v.wasRoot&&ra(m,h),Qs(m.x,v.offset.x),Qs(m.y,v.offset.y))}return m}applyTransform(h,m=!1){var g,y;const p=ut();ra(p,h);for(let v=0;v<this.path.length;v++){const S=this.path[v];!m&&S.options.layoutScroll&&S.scroll&&S!==S.root&&Ks(p,{x:-S.scroll.offset.x,y:-S.scroll.offset.y}),Kn(S.latestValues)&&Ks(p,S.latestValues,(g=S.layout)==null?void 0:g.layoutBox)}return Kn(this.latestValues)&&Ks(p,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),p}removeTransform(h){var p;const m=ut();ra(m,h);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!Kn(y.latestValues))continue;let v;y.instance&&(Zd(y.latestValues)&&y.updateSnapshot(),v=ut(),ra(v,y.measurePageBox())),tx(m,y.latestValues,(p=y.snapshot)==null?void 0:p.layoutBox,v)}return Kn(this.latestValues)&&tx(m,this.latestValues),m}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var k;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==m;if(!(h||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=yt.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=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ra(this.target,this.layout.layoutBox),Fv(this.target,this.targetDelta)):ra(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||Zd(this.parent.latestValues)||Kv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,m,p){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),No(this.relativeTargetOrigin,m,p),ra(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let p=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(p=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;ra(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,S=this.treeScale.y;b5(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=ut());const{target:k}=h;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zg(this.prevProjectionDelta.x,this.projectionDelta.x),Zg(this.prevProjectionDelta.y,this.projectionDelta.y)),oi(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!ix(this.projectionDelta.x,this.prevProjectionDelta.x)||!ix(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),h){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ps(),this.projectionDelta=Ps(),this.projectionDeltaWithTransform=Ps()}setAnimationOrigin(h,m=!1){const p=this.snapshot,g=p?p.latestValues:{},y={...this.latestValues},v=Ps();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=ut(),k=p?p.source:void 0,N=this.layout?this.layout.source:void 0,E=k!==N,M=this.getStack(),A=!M||M.members.length<=1,z=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(v4));this.animationProgress=0;let U;this.mixTargetDelta=Y=>{const Q=Y/1e3;hx(v.x,h.x,Q),hx(v.y,h.y,Q),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(No(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y4(this.relativeTarget,this.relativeTargetOrigin,S,Q),U&&Z5(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=ut()),ra(U,this.relativeTarget)),E&&(this.animationValues=y,W5(y,g,this.latestValues,Q,z,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var m,p,g;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(g=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||g.stop(),this.pendingAnimation&&(kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{co.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zs(0)),this.motionValue.jump(0,!1),this.currentAnimation=t4(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),h.onUpdate&&h.onUpdate(y)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(i4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:p,layout:g,latestValues:y}=h;if(!(!m||!p||!g)){if(this!==h&&this.layout&&g&&fb(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||ut();const v=Nt(this.layout.layoutBox.x);p.x.min=h.target.x.min,p.x.max=p.x.min+v;const S=Nt(this.layout.layoutBox.y);p.y.min=h.target.y.min,p.y.max=p.y.min+S}ra(m,p),Ks(m,y),oi(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new l4),this.sharedNodes.get(h).add(m);const g=m.options.initialPromotionConfig;m.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(m):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var m;const{layoutId:h}=this.options;return h?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:h}=this.options;return h?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:m,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:p}=h;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const g={};p.z&&md("z",h,g,this.animationValues);for(let y=0;y<hd.length;y++)md(`rotate${hd[y]}`,h,g,this.animationValues),md(`skew${hd[y]}`,h,g,this.animationValues);h.render();for(const y in g)h.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);h.scheduleRender()}applyProjectionStyles(h,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=uo(m==null?void 0:m.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=uo(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Kn(this.latestValues)&&(h.transform=p?p({},""):"none",this.hasProjected=!1);return}h.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let v=J5(this.projectionDeltaWithTransform,this.treeScale,y);p&&(v=p(y,v)),h.transform=v;const{x:S,y:k}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${k.origin*100}% 0`,g.animationValues?h.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const N in $d){if(y[N]===void 0)continue;const{correct:E,applyTo:M,isCSSVariable:A}=$d[N],z=v==="none"?y[N]:E(y[N],g);if(M){const U=M.length;for(let Y=0;Y<U;Y++)h[M[Y]]=z}else A?this.options.visualElement.renderState.vars[N]=z:h[N]=z}this.options.layoutId&&(h.pointerEvents=g===this?uo(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var m;return(m=h.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(cx),this.root.sharedNodes.clear()}}}function o4(a){a.updateLayout()}function u4(a){var l;const n=((l=a.resumeFrom)==null?void 0:l.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=a.layout,{animationType:f}=a.options,h=n.source!==a.layout.source;if(f==="size")xa(v=>{const S=h?n.measuredBox[v]:n.layoutBox[v],k=Nt(S);S.min=r[v].min,S.max=S.min+k});else if(f==="x"||f==="y"){const v=f==="x"?"y":"x";Wd(h?n.measuredBox[v]:n.layoutBox[v],r[v])}else fb(f,n.layoutBox,r)&&xa(v=>{const S=h?n.measuredBox[v]:n.layoutBox[v],k=Nt(r[v]);S.max=S.min+k,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+k)});const m=Ps();oi(m,r,n.layoutBox);const p=Ps();h?oi(p,a.applyTransform(o,!0),n.measuredBox):oi(p,r,n.layoutBox);const g=!ib(m);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:k}=v;if(S&&k){const N=ut();No(N,n.layoutBox,S.layoutBox);const E=ut();No(E,r,k.layoutBox),rb(N,E)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=E,a.relativeTargetOrigin=N,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:p,layoutDelta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function c4(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function d4(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function f4(a){a.clearSnapshot()}function cx(a){a.clearMeasurements()}function dx(a){a.isLayoutDirty=!1}function h4(a){const{visualElement:n}=a.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),a.resetTransform()}function fx(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function m4(a){a.resolveTargetDelta()}function p4(a){a.calcProjection()}function g4(a){a.resetSkewAndRotation()}function x4(a){a.removeLeadSnapshot()}function hx(a,n,l){a.translate=Fe(n.translate,0,l),a.scale=Fe(n.scale,1,l),a.origin=n.origin,a.originPoint=n.originPoint}function mx(a,n,l,r){a.min=Fe(n.min,l.min,r),a.max=Fe(n.max,l.max,r)}function y4(a,n,l,r){mx(a.x,n.x,l.x,r),mx(a.y,n.y,l.y,r)}function v4(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const b4={duration:.45,ease:[.4,0,.1,1]},px=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),gx=px("applewebkit/")&&!px("chrome/")?Math.round:aa;function xx(a){a.min=gx(a.min),a.max=gx(a.max)}function S4(a){xx(a.x),xx(a.y)}function fb(a,n,l){return a==="position"||a==="preserve-aspect"&&!X5(lx(n),lx(l),.2)}function w4(a){var n;return a!==a.root&&((n=a.scroll)==null?void 0:n.wasRoot)}const k4=db({attachResizeListener:(a,n)=>pi(a,"resize",n),measureScroll:()=>{var a,n;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),pd={current:void 0},hb=db({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!pd.current){const a=new k4({});a.mount(window),a.setOptions({layoutScroll:!0}),pd.current=a}return pd.current},resetTransform:(a,n)=>{a.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Yf=w.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function yx(a,n){if(typeof a=="function")return a(n);a!=null&&(a.current=n)}function j4(...a){return n=>{let l=!1;const r=a.map(o=>{const f=yx(o,n);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let o=0;o<r.length;o++){const f=r[o];typeof f=="function"?f():yx(a[o],null)}}}}function N4(...a){return w.useCallback(j4(...a),a)}class T4 extends w.Component{getSnapshotBeforeUpdate(n){const l=this.props.childRef.current;if(lo(l)&&n.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,o=lo(r)&&r.offsetWidth||0,f=lo(r)&&r.offsetHeight||0,h=getComputedStyle(l),m=this.props.sizeRef.current;m.height=parseFloat(h.height),m.width=parseFloat(h.width),m.top=l.offsetTop,m.left=l.offsetLeft,m.right=o-m.width-m.left,m.bottom=f-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function E4({children:a,isPresent:n,anchorX:l,anchorY:r,root:o,pop:f}){var S;const h=w.useId(),m=w.useRef(null),p=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=w.useContext(Yf),y=((S=a.props)==null?void 0:S.ref)??(a==null?void 0:a.ref),v=N4(m,y);return w.useInsertionEffect(()=>{const{width:k,height:N,top:E,left:M,right:A,bottom:z}=p.current;if(n||f===!1||!m.current||!k||!N)return;const U=l==="left"?`left: ${M}`:`right: ${A}`,Y=r==="bottom"?`bottom: ${z}`:`top: ${E}`;m.current.dataset.motionPopId=h;const Q=document.createElement("style");g&&(Q.nonce=g);const ae=o??document.head;return ae.appendChild(Q),Q.sheet&&Q.sheet.insertRule(`
|
||
[data-motion-pop-id="${h}"] {
|
||
position: absolute !important;
|
||
width: ${k}px !important;
|
||
height: ${N}px !important;
|
||
${U}px !important;
|
||
${Y}px !important;
|
||
}
|
||
`),()=>{var K;(K=m.current)==null||K.removeAttribute("data-motion-pop-id"),ae.contains(Q)&&ae.removeChild(Q)}},[n]),d.jsx(T4,{isPresent:n,childRef:m,sizeRef:p,pop:f,children:f===!1?a:w.cloneElement(a,{ref:v})})}const C4=({children:a,initial:n,isPresent:l,onExitComplete:r,custom:o,presenceAffectsLayout:f,mode:h,anchorX:m,anchorY:p,root:g})=>{const y=mf(M4),v=w.useId();let S=!0,k=w.useMemo(()=>(S=!1,{id:v,initial:n,isPresent:l,custom:o,onExitComplete:N=>{y.set(N,!0);for(const E of y.values())if(!E)return;r&&r()},register:N=>(y.set(N,!1),()=>y.delete(N))}),[l,y,r]);return f&&S&&(k={...k}),w.useMemo(()=>{y.forEach((N,E)=>y.set(E,!1))},[l]),w.useEffect(()=>{!l&&!y.size&&r&&r()},[l]),a=d.jsx(E4,{pop:h==="popLayout",isPresent:l,anchorX:m,anchorY:p,root:g,children:a}),d.jsx(Do.Provider,{value:k,children:a})};function M4(){return new Map}function mb(a=!0){const n=w.useContext(Do);if(n===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:o}=n,f=w.useId();w.useEffect(()=>{if(a)return o(f)},[a]);const h=w.useCallback(()=>a&&r&&r(f),[f,r,a]);return!l&&r?[!1,h]:[!0]}const Kr=a=>a.key||"";function vx(a){const n=[];return w.Children.forEach(a,l=>{w.isValidElement(l)&&n.push(l)}),n}const Ya=({children:a,custom:n,initial:l=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:f="sync",propagate:h=!1,anchorX:m="left",anchorY:p="top",root:g})=>{const[y,v]=mb(h),S=w.useMemo(()=>vx(a),[a]),k=h&&!y?[]:S.map(Kr),N=w.useRef(!0),E=w.useRef(S),M=mf(()=>new Map),A=w.useRef(new Set),[z,U]=w.useState(S),[Y,Q]=w.useState(S);qy(()=>{N.current=!1,E.current=S;for(let B=0;B<Y.length;B++){const I=Kr(Y[B]);k.includes(I)?(M.delete(I),A.current.delete(I)):M.get(I)!==!0&&M.set(I,!1)}},[Y,k.length,k.join("-")]);const ae=[];if(S!==z){let B=[...S];for(let I=0;I<Y.length;I++){const se=Y[I],de=Kr(se);k.includes(de)||(B.splice(I,0,se),ae.push(se))}return f==="wait"&&ae.length&&(B=ae),Q(vx(B)),U(S),null}const{forceRender:K}=w.useContext(hf);return d.jsx(d.Fragment,{children:Y.map(B=>{const I=Kr(B),se=h&&!y?!1:S===Y||k.includes(I),de=()=>{if(A.current.has(I))return;if(M.has(I))A.current.add(I),M.set(I,!0);else return;let pe=!0;M.forEach(Ae=>{Ae||(pe=!1)}),pe&&(K==null||K(),Q(E.current),h&&(v==null||v()),r&&r())};return d.jsx(C4,{isPresent:se,initial:!N.current||l?void 0:!1,custom:n,presenceAffectsLayout:o,mode:f,root:g,onExitComplete:se?void 0:de,anchorX:m,anchorY:p,children:B},I)})})},pb=w.createContext({strict:!1}),bx={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 Sx=!1;function A4(){if(Sx)return;const a={};for(const n in bx)a[n]={isEnabled:l=>bx[n].some(r=>!!l[r])};Xv(a),Sx=!0}function gb(){return A4(),g5()}function D4(a){const n=gb();for(const l in a)n[l]={...n[l],...a[l]};Xv(n)}const R4=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 To(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||R4.has(a)}let xb=a=>!To(a);function O4(a){typeof a=="function"&&(xb=n=>n.startsWith("on")?!To(n):a(n))}try{O4(require("@emotion/is-prop-valid").default)}catch{}function z4(a,n,l){const r={};for(const o in a)o==="values"&&typeof a.values=="object"||vt(a[o])||(xb(o)||l===!0&&To(o)||!n&&!To(o)||a.draggable&&o.startsWith("onDrag"))&&(r[o]=a[o]);return r}const zo=w.createContext({});function _4(a,n){if(Oo(a)){const{initial:l,animate:r}=a;return{initial:l===!1||mi(l)?l:void 0,animate:mi(r)?r:void 0}}return a.inherit!==!1?n:{}}function V4(a){const{initial:n,animate:l}=_4(a,w.useContext(zo));return w.useMemo(()=>({initial:n,animate:l}),[wx(n),wx(l)])}function wx(a){return Array.isArray(a)?a.join(" "):a}const qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yb(a,n,l){for(const r in n)!vt(n[r])&&!$v(r,l)&&(a[r]=n[r])}function U4({transformTemplate:a},n){return w.useMemo(()=>{const l=qf();return Bf(l,n,a),Object.assign({},l.vars,l.style)},[n])}function L4(a,n){const l=a.style||{},r={};return yb(r,l,a),Object.assign(r,U4(a,n)),r}function B4(a,n){const l={},r=L4(a,n);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=r,l}const vb=()=>({...qf(),attrs:{}});function H4(a,n,l,r){const o=w.useMemo(()=>{const f=vb();return Wv(f,n,eb(r),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[n]);if(a.style){const f={};yb(f,a.style,a),o.style={...f,...o.style}}return o}const Y4=["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 Gf(a){return typeof a!="string"||a.includes("-")?!1:!!(Y4.indexOf(a)>-1||/[A-Z]/u.test(a))}function q4(a,n,l,{latestValues:r},o,f=!1,h){const p=(h??Gf(a)?H4:B4)(n,r,o,a),g=z4(n,typeof a=="string",f),y=a!==w.Fragment?{...g,...p,ref:l}:{},{children:v}=n,S=w.useMemo(()=>vt(v)?v.get():v,[v]);return w.createElement(a,{...y,children:S})}function G4({scrapeMotionValuesFromProps:a,createRenderState:n},l,r,o){return{latestValues:X4(l,r,o,a),renderState:n()}}function X4(a,n,l,r){const o={},f=r(a,{});for(const S in f)o[S]=uo(f[S]);let{initial:h,animate:m}=a;const p=Oo(a),g=qv(a);n&&g&&!p&&a.inherit!==!1&&(h===void 0&&(h=n.initial),m===void 0&&(m=n.animate));let y=l?l.initial===!1:!1;y=y||h===!1;const v=y?m:h;if(v&&typeof v!="boolean"&&!Ro(v)){const S=Array.isArray(v)?v:[v];for(let k=0;k<S.length;k++){const N=Df(a,S[k]);if(N){const{transitionEnd:E,transition:M,...A}=N;for(const z in A){let U=A[z];if(Array.isArray(U)){const Y=y?U.length-1:0;U=U[Y]}U!==null&&(o[z]=U)}for(const z in E)o[z]=E[z]}}}return o}const bb=a=>(n,l)=>{const r=w.useContext(zo),o=w.useContext(Do),f=()=>G4(a,n,r,o);return l?f():mf(f)},P4=bb({scrapeMotionValuesFromProps:Hf,createRenderState:qf}),Q4=bb({scrapeMotionValuesFromProps:tb,createRenderState:vb}),K4=Symbol.for("motionComponentSymbol");function F4(a,n,l){const r=w.useRef(l);w.useInsertionEffect(()=>{r.current=l});const o=w.useRef(null);return w.useCallback(f=>{var m;f&&((m=a.onMount)==null||m.call(a,f));const h=r.current;if(typeof h=="function")if(f){const p=h(f);typeof p=="function"&&(o.current=p)}else o.current?(o.current(),o.current=null):h(f);else h&&(h.current=f);n&&(f?n.mount(f):n.unmount())},[n])}const Sb=w.createContext({});function qs(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Z4(a,n,l,r,o,f){var U,Y;const{visualElement:h}=w.useContext(zo),m=w.useContext(pb),p=w.useContext(Do),g=w.useContext(Yf),y=g.reducedMotion,v=g.skipAnimations,S=w.useRef(null),k=w.useRef(!1);r=r||m.renderer,!S.current&&r&&(S.current=r(a,{visualState:n,parent:h,props:l,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y,skipAnimations:v,isSVG:f}),k.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const N=S.current,E=w.useContext(Sb);N&&!N.projection&&o&&(N.type==="html"||N.type==="svg")&&J4(S.current,l,o,E);const M=w.useRef(!1);w.useInsertionEffect(()=>{N&&M.current&&N.update(l,p)});const A=l[Mv],z=w.useRef(!!A&&typeof window<"u"&&!((U=window.MotionHandoffIsComplete)!=null&&U.call(window,A))&&((Y=window.MotionHasOptimisedAnimation)==null?void 0:Y.call(window,A)));return qy(()=>{k.current=!0,N&&(M.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),z.current&&N.animationState&&N.animationState.animateChanges())}),w.useEffect(()=>{N&&(!z.current&&N.animationState&&N.animationState.animateChanges(),z.current&&(queueMicrotask(()=>{var Q;(Q=window.MotionHandoffMarkAsComplete)==null||Q.call(window,A)}),z.current=!1),N.enteringChildren=void 0)}),N}function J4(a,n,l,r){const{layoutId:o,layout:f,drag:h,dragConstraints:m,layoutScroll:p,layoutRoot:g,layoutCrossfade:y}=n;a.projection=new l(a.latestValues,n["data-framer-portal-id"]?void 0:wb(a.parent)),a.projection.setOptions({layoutId:o,layout:f,alwaysMeasureLayout:!!h||m&&qs(m),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:p,layoutRoot:g})}function wb(a){if(a)return a.options.allowProjection!==!1?a.projection:wb(a.parent)}function gd(a,{forwardMotionProps:n=!1,type:l}={},r,o){r&&D4(r);const f=l?l==="svg":Gf(a),h=f?Q4:P4;function m(g,y){let v;const S={...w.useContext(Yf),...g,layoutId:$4(g)},{isStatic:k}=S,N=V4(g),E=h(g,k);if(!k&&typeof window<"u"){W4();const M=I4(S);v=M.MeasureLayout,N.visualElement=Z4(a,E,S,o,M.ProjectionNode,f)}return d.jsxs(zo.Provider,{value:N,children:[v&&N.visualElement?d.jsx(v,{visualElement:N.visualElement,...S}):null,q4(a,g,F4(E,N.visualElement,y),E,k,n,f)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const p=w.forwardRef(m);return p[K4]=a,p}function $4({layoutId:a}){const n=w.useContext(hf).id;return n&&a!==void 0?n+"-"+a:a}function W4(a,n){w.useContext(pb).strict}function I4(a){const n=gb(),{drag:l,layout:r}=n;if(!l&&!r)return{};const o={...l,...r};return{MeasureLayout:l!=null&&l.isEnabled(a)||r!=null&&r.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function e3(a,n){if(typeof Proxy>"u")return gd;const l=new Map,r=(f,h)=>gd(f,h,a,n),o=(f,h)=>r(f,h);return new Proxy(o,{get:(f,h)=>h==="create"?r:(l.has(h)||l.set(h,gd(h,void 0,a,n)),l.get(h))})}const t3=(a,n)=>n.isSVG??Gf(a)?new O5(n):new E5(n,{allowProjection:a!==w.Fragment});class a3 extends Tn{constructor(n){super(n),n.animationState||(n.animationState=L5(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Ro(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:l}=this.node.prevProps||{};n!==l&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let n3=0;class s3 extends Tn{constructor(){super(...arguments),this.id=n3++,this.isExitComplete=!1}update(){var f;if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===r)return;if(n&&r===!1){if(this.isExitComplete){const{initial:h,custom:m}=this.node.getProps();if(typeof h=="string"){const p=Wn(this.node,h,m);if(p){const{transition:g,transitionEnd:y,...v}=p;for(const S in v)(f=this.node.getValue(S))==null||f.jump(v[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!n);l&&!n&&o.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:n,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const l3={animation:{Feature:a3},exit:{Feature:s3}};function ji(a){return{point:{x:a.pageX,y:a.pageY}}}const i3=a=>n=>_f(n)&&a(n,ji(n));function ui(a,n,l,r){return pi(a,n,i3(l),r)}const kb=({current:a})=>a?a.ownerDocument.defaultView:null,kx=(a,n)=>Math.abs(a-n);function r3(a,n){const l=kx(a.x,n.x),r=kx(a.y,n.y);return Math.sqrt(l**2+r**2)}const jx=new Set(["auto","scroll"]);class jb{constructor(n,l,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:m}={}){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=k=>{this.handleScroll(k.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Fr(this.lastRawMoveEventInfo,this.transformPagePoint));const k=xd(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,E=r3(k.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!E)return;const{point:M}=k,{timestamp:A}=yt;this.history.push({...M,timestamp:A});const{onStart:z,onMove:U}=this.handlers;N||(z&&z(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,k)},this.handlePointerMove=(k,N)=>{this.lastMoveEvent=k,this.lastRawMoveEventInfo=N,this.lastMoveEventInfo=Fr(N,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(k,N)=>{this.end();const{onEnd:E,onSessionEnd:M,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=xd(k.type==="pointercancel"?this.lastMoveEventInfo:Fr(N,this.transformPagePoint),this.history);this.startEvent&&E&&E(k,z),M&&M(k,z)},!_f(n))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=o||window;const p=ji(n),g=Fr(p,this.transformPagePoint),{point:y}=g,{timestamp:v}=yt;this.history=[{...y,timestamp:v}];const{onSessionStart:S}=l;S&&S(n,xd(g,this.history)),this.removeListeners=Si(ui(this.contextWindow,"pointermove",this.handlePointerMove),ui(this.contextWindow,"pointerup",this.handlePointerUp),ui(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(n){let l=n.parentElement;for(;l;){const r=getComputedStyle(l);(jx.has(r.overflowX)||jx.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(n){const l=this.scrollPositions.get(n);if(!l)return;const r=n===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},f={x:o.x-l.x,y:o.y-l.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(n,o),qe.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),kn(this.updatePoint)}}function Fr(a,n){return n?{point:n(a.point)}:a}function Nx(a,n){return{x:a.x-n.x,y:a.y-n.y}}function xd({point:a},n){return{point:a,delta:Nx(a,Nb(n)),offset:Nx(a,o3(n)),velocity:u3(n,.1)}}function o3(a){return a[0]}function Nb(a){return a[a.length-1]}function u3(a,n){if(a.length<2)return{x:0,y:0};let l=a.length-1,r=null;const o=Nb(a);for(;l>=0&&(r=a[l],!(o.timestamp-r.timestamp>Gt(n)));)l--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&o.timestamp-r.timestamp>Gt(n)*2&&(r=a[1]);const f=ta(o.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const h={x:(o.x-r.x)/f,y:(o.y-r.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function c3(a,{min:n,max:l},r){return n!==void 0&&a<n?a=r?Fe(n,a,r.min):Math.max(a,n):l!==void 0&&a>l&&(a=r?Fe(l,a,r.max):Math.min(a,l)),a}function Tx(a,n,l){return{min:n!==void 0?a.min+n:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function d3(a,{top:n,left:l,bottom:r,right:o}){return{x:Tx(a.x,l,o),y:Tx(a.y,n,r)}}function Ex(a,n){let l=n.min-a.min,r=n.max-a.max;return n.max-n.min<a.max-a.min&&([l,r]=[r,l]),{min:l,max:r}}function f3(a,n){return{x:Ex(a.x,n.x),y:Ex(a.y,n.y)}}function h3(a,n){let l=.5;const r=Nt(a),o=Nt(n);return o>r?l=fi(n.min,n.max-r,a.min):r>o&&(l=fi(a.min,a.max-o,n.min)),ba(0,1,l)}function m3(a,n){const l={};return n.min!==void 0&&(l.min=n.min-a.min),n.max!==void 0&&(l.max=n.max-a.min),l}const Id=.35;function p3(a=Id){return a===!1?a=0:a===!0&&(a=Id),{x:Cx(a,"left","right"),y:Cx(a,"top","bottom")}}function Cx(a,n,l){return{min:Mx(a,n),max:Mx(a,l)}}function Mx(a,n){return typeof a=="number"?a:a[n]||0}const g3=new WeakMap;class x3{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const f=v=>{l&&this.snapToCursor(ji(v).point),this.stopAnimation()},h=(v,S)=>{const{drag:k,dragPropagation:N,onDragStart:E}=this.getProps();if(k&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QT(k),!this.openDragLock))return;this.latestPointerEvent=v,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),xa(A=>{let z=this.getAxisMotionValue(A).get()||0;if(va.test(z)){const{projection:U}=this.visualElement;if(U&&U.layout){const Y=U.layout.layoutBox[A];Y&&(z=Nt(Y)*(parseFloat(z)/100))}}this.originPoint[A]=z}),E&&qe.update(()=>E(v,S),!1,!0),Xd(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:k,dragDirectionLock:N,onDirectionLock:E,onDrag:M}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=S;if(N&&this.currentDirection===null){this.currentDirection=v3(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",S.point,A),this.updateAxis("y",S.point,A),this.visualElement.render(),M&&qe.update(()=>M(v,S),!1,!0)},p=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new jb(n,{onSessionStart:f,onStart:h,onMove:m,onSessionEnd:p,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:kb(this.visualElement),element:this.visualElement.current})}stop(n,l){const r=n||this.latestPointerEvent,o=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!o||!r)return;const{velocity:h}=o;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&qe.postRender(()=>m(r,o))}cancel(){this.isDragging=!1;const{projection:n,animationState:l}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,l,r){const{drag:o}=this.getProps();if(!r||!Zr(n,o,this.currentDirection))return;const f=this.getAxisMotionValue(n);let h=this.originPoint[n]+r[n];this.constraints&&this.constraints[n]&&(h=c3(h,this.constraints[n],this.elastic[n])),f.set(h)}resolveConstraints(){var f;const{dragConstraints:n,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,o=this.constraints;n&&qs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=d3(r.layoutBox,n):this.constraints=!1,this.elastic=p3(l),o!==this.constraints&&!qs(n)&&r&&this.constraints&&!this.hasMutatedConstraints&&xa(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=m3(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:l}=this.getProps();if(!n||!qs(n))return!1;const r=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const f=S5(r,o.root,this.visualElement.getTransformPagePoint());let h=f3(o.layout.layoutBox,f);if(l){const m=l(y5(h));this.hasMutatedConstraints=!!m,m&&(h=Qv(m))}return h}startAnimation(n){const{drag:l,dragMomentum:r,dragElastic:o,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},g=xa(y=>{if(!Zr(y,l,this.currentDirection))return;let v=p&&p[y]||{};(h===!0||h===y)&&(v={min:0,max:0});const S=o?200:1e6,k=o?40:1e7,N={type:"inertia",velocity:r?n[y]:0,bounceStiffness:S,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,N)});return Promise.all(g).then(m)}startAxisValueAnimation(n,l){const r=this.getAxisMotionValue(n);return Xd(this.visualElement,n),r.start(Af(n,r,0,l,this.visualElement,!1))}stopAnimation(){xa(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const l=`_drag${n.toUpperCase()}`,r=this.visualElement.getProps(),o=r[l];return o||this.visualElement.getValue(n,(r.initial?r.initial[n]:void 0)||0)}snapToCursor(n){xa(l=>{const{drag:r}=this.getProps();if(!Zr(l,r,this.currentDirection))return;const{projection:o}=this.visualElement,f=this.getAxisMotionValue(l);if(o&&o.layout){const{min:h,max:m}=o.layout.layoutBox[l],p=f.get()||0;f.set(n[l]-Fe(h,m,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!qs(l)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};xa(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const p=m.get();o[h]=h3({min:p,max:p},this.constraints[h])}});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(),xa(h=>{if(!Zr(h,n,null))return;const m=this.getAxisMotionValue(h),{min:p,max:g}=this.constraints[h];m.set(Fe(p,g,o[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;g3.set(this.visualElement,this);const n=this.visualElement.current,l=ui(n,"pointerdown",g=>{const{drag:y,dragListener:v=!0}=this.getProps(),S=g.target,k=S!==n&&WT(S);y&&v&&!k&&this.start(g)});let r;const o=()=>{const{dragConstraints:g}=this.getProps();qs(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=y3(n,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",o);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),qe.read(o);const m=pi(window,"resize",()=>this.scalePositionWithinConstraints()),p=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(xa(v=>{const S=this.getAxisMotionValue(v);S&&(this.originPoint[v]+=g[v].translate,S.set(S.get()+g[v].translate))}),this.visualElement.render())}));return()=>{m(),l(),h(),p&&p(),r&&r()}}getProps(){const n=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:f=!1,dragElastic:h=Id,dragMomentum:m=!0}=n;return{...n,drag:l,dragDirectionLock:r,dragPropagation:o,dragConstraints:f,dragElastic:h,dragMomentum:m}}}function Ax(a){let n=!0;return()=>{if(n){n=!1;return}a()}}function y3(a,n,l){const r=Ug(a,Ax(l)),o=Ug(n,Ax(l));return()=>{r(),o()}}function Zr(a,n,l){return(n===!0||n===a)&&(l===null||l===a)}function v3(a,n=10){let l=null;return Math.abs(a.y)>n?l="y":Math.abs(a.x)>n&&(l="x"),l}class b3 extends Tn{constructor(n){super(n),this.removeGroupControls=aa,this.removeListeners=aa,this.controls=new x3(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aa}update(){const{dragControls:n}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};n!==l&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const yd=a=>(n,l)=>{a&&qe.update(()=>a(n,l),!1,!0)};class S3 extends Tn{constructor(){super(...arguments),this.removePointerDownListener=aa}onPointerDown(n){this.session=new jb(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kb(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:l,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:yd(n),onStart:yd(l),onMove:yd(r),onEnd:(f,h)=>{delete this.session,o&&qe.postRender(()=>o(f,h))}}}mount(){this.removePointerDownListener=ui(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let vd=!1;class w3 extends w.Component{componentDidMount(){const{visualElement:n,layoutGroup:l,switchLayoutGroup:r,layoutId:o}=this.props,{projection:f}=n;f&&(l.group&&l.group.add(f),r&&r.register&&o&&r.register(f),vd&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),co.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:l,visualElement:r,drag:o,isPresent:f}=this.props,{projection:h}=r;return h&&(h.isPresent=f,n.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),vd=!0,o||n.layoutDependency!==l||l===void 0||n.isPresent!==f?h.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?h.promote():h.relegate()||qe.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),zf.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:o}=n;vd=!0,o&&(o.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Tb(a){const[n,l]=mb(),r=w.useContext(hf);return d.jsx(w3,{...a,layoutGroup:r,switchLayoutGroup:w.useContext(Sb),isPresent:n,safeToRemove:l})}const k3={pan:{Feature:S3},drag:{Feature:b3,ProjectionNode:hb,MeasureLayout:Tb}};function Dx(a,n,l){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",l==="Start");const o="onHover"+l,f=r[o];f&&qe.postRender(()=>f(n,ji(n)))}class j3 extends Tn{mount(){const{current:n}=this.node;n&&(this.unmount=FT(n,(l,r)=>(Dx(this.node,r,"Start"),o=>Dx(this.node,o,"End"))))}unmount(){}}class N3 extends Tn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=Si(pi(this.node.current,"focus",()=>this.onFocus()),pi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rx(a,n,l){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",l==="Start");const o="onTap"+(l==="End"?"":l),f=r[o];f&&qe.postRender(()=>f(n,ji(n)))}class T3 extends Tn{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=e5(n,(o,f)=>(Rx(this.node,f,"Start"),(h,{success:m})=>Rx(this.node,h,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const ef=new WeakMap,bd=new WeakMap,E3=a=>{const n=ef.get(a.target);n&&n(a)},C3=a=>{a.forEach(E3)};function M3({root:a,...n}){const l=a||document;bd.has(l)||bd.set(l,{});const r=bd.get(l),o=JSON.stringify(n);return r[o]||(r[o]=new IntersectionObserver(C3,{root:a,...n})),r[o]}function A3(a,n,l){const r=M3(n);return ef.set(a,l),r.observe(a),()=>{ef.delete(a),r.unobserve(a)}}const D3={some:0,all:1};class R3 extends Tn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:l,margin:r,amount:o="some",once:f}=n,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:D3[o]},m=p=>{const{isIntersecting:g}=p;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:y,onViewportLeave:v}=this.node.getProps(),S=g?y:v;S&&S(p)};return A3(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:l}=this.node;["amount","margin","root"].some(O3(n,l))&&this.startObserver()}unmount(){}}function O3({viewport:a={}},{viewport:n={}}={}){return l=>a[l]!==n[l]}const z3={inView:{Feature:R3},tap:{Feature:T3},focus:{Feature:N3},hover:{Feature:j3}},_3={layout:{ProjectionNode:hb,MeasureLayout:Tb}},V3={...l3,...z3,...k3,..._3},Ze=e3(V3,t3),Ox=[{name:"首页",path:"/",icon:yk},{name:"拓展",path:"/expansion",icon:jy},{name:"商机",path:"/opportunities",icon:py},{name:"工作",path:"/work",icon:tk},{name:"我的",path:"/profile",icon:di}];function U3(){const a=da(),{theme:n,setTheme:l}=Yy();return d.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:[d.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:[d.jsxs("div",{className:"flex h-16 items-center justify-between border-b border-slate-200 dark:border-slate-800 px-6",children:[d.jsx("span",{className:"text-lg font-bold bg-gradient-to-r from-violet-600 to-indigo-600 bg-clip-text text-transparent",children:"紫光汇智CRM"}),d.jsx("button",{onClick:()=>l(n==="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:n==="dark"?d.jsx(ky,{className:"h-4 w-4"}):d.jsx(by,{className:"h-4 w-4"})})]}),d.jsx("nav",{className:"flex-1 space-y-2 p-4",children:Ox.map(r=>{const o=a.pathname===r.path||r.path!=="/"&&a.pathname.startsWith(r.path);return d.jsxs(mo,{to:r.path,className:ti("flex items-center gap-3 rounded-xl px-3 py-3 text-sm font-medium transition-all duration-200",o?"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:[d.jsx(r.icon,{className:ti("h-5 w-5 transition-transform",o&&"scale-110")}),r.name]},r.name)})})]}),d.jsx("main",{className:"flex-1 overflow-y-auto pb-20 md:pb-0 relative",children:d.jsx("div",{className:"mx-auto max-w-5xl p-4 md:p-8",children:d.jsx(Ya,{mode:"wait",children:d.jsx(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:d.jsx(lw,{})},a.pathname)})})}),d.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:Ox.map(r=>{const o=a.pathname===r.path||r.path!=="/"&&a.pathname.startsWith(r.path);return d.jsxs(mo,{to:r.path,className:ti("flex flex-1 flex-col items-center justify-center gap-1 text-[10px] font-medium transition-all duration-200",o?"text-violet-600 dark:text-violet-400":"text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-50"),children:[d.jsx("div",{className:ti("flex h-8 w-8 items-center justify-center rounded-full transition-all duration-200",o?"bg-violet-100 dark:bg-violet-500/20":"bg-transparent"),children:d.jsx(r.icon,{className:ti("h-5 w-5",o&&"fill-violet-100 dark:fill-violet-500/20")})}),r.name]},r.name)})})]})}const L3="/login";async function Ke(a,n,l=!1){const r=new Headers(n==null?void 0:n.headers);if(!r.has("Content-Type")&&(n!=null&&n.body)&&r.set("Content-Type","application/json"),l){const h=localStorage.getItem("accessToken");h&&r.set("Authorization",`Bearer ${h}`);const m=H3();m!==void 0&&r.set("X-User-Id",String(m))}const o=await fetch(a,{...n,headers:r});if(o.status===401||o.status===403)throw Xf(),window.location.href=`${L3}?timeout=1`,new Error("登录已失效,请重新登录");let f=null;try{f=await o.json()}catch{if(!o.ok)throw new Error(`请求失败(${o.status})`)}if(!o.ok)throw new Error((f==null?void 0:f.msg)||(f==null?void 0:f.message)||`请求失败(${o.status})`);if(!f)throw new Error("接口返回为空");if(f.code!=="0")throw new Error(f.msg||"请求失败");return f.data}function Eb(){return!!localStorage.getItem("accessToken")}function Xf(){localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("username"),localStorage.removeItem("availableTenants"),localStorage.removeItem("activeTenantId"),sessionStorage.removeItem("userProfile")}function B3(a,n){if(localStorage.setItem("accessToken",a.accessToken),localStorage.setItem("refreshToken",a.refreshToken),localStorage.setItem("username",n),a.availableTenants){localStorage.setItem("availableTenants",JSON.stringify(a.availableTenants));try{const l=JSON.parse(atob(a.accessToken.split(".")[1]));(l==null?void 0:l.tenantId)!==void 0&&localStorage.setItem("activeTenantId",String(l.tenantId))}catch{localStorage.removeItem("activeTenantId")}}}function H3(){try{const a=sessionStorage.getItem("userProfile");if(a){const n=JSON.parse(a);if(typeof n.userId=="number"&&Number.isFinite(n.userId))return n.userId}}catch{}try{const a=localStorage.getItem("accessToken");if(!a)return;const n=JSON.parse(atob(a.split(".")[1]));if(typeof n.userId=="number"&&Number.isFinite(n.userId))return n.userId}catch{return}}async function Y3(){return Ke("/api/sys/auth/captcha")}async function q3(a){return Ke("/api/sys/auth/login",{method:"POST",body:JSON.stringify(a)})}async function G3(a,n){const l=new URLSearchParams({key:a});return l.set("defaultValue",n),Ke(`/api/sys/api/params/value?${l.toString()}`)}async function X3(){return Ke("/api/sys/api/open/platform/config")}async function fo(){return Ke("/api/sys/api/users/me",void 0,!0)}async function zx(){return Ke("/api/profile/overview",void 0,!0)}async function P3(a){return Ke("/api/sys/api/users/profile",{method:"PUT",body:JSON.stringify(a)},!0)}async function Sd(a){return Ke(`/api/sys/api/users/${a}`,void 0,!0)}async function Q3(){return Ke("/api/dashboard/home",void 0,!0)}async function K3(){return Ke("/api/work/overview",void 0,!0)}async function F3(a,n){const l=new URLSearchParams({lat:String(a),lon:String(n)});return Ke(`/api/work/reverse-geocode?${l.toString()}`,void 0,!0)}async function Z3(a){return Ke("/api/work/checkins",{method:"POST",body:JSON.stringify(a)},!0)}async function J3(a){return Ke("/api/work/daily-reports",{method:"POST",body:JSON.stringify(a)},!0)}async function _x(a,n){const l=new URLSearchParams;a&&a.trim()&&l.set("keyword",a.trim()),n&&n.trim()&&n!=="全部"&&l.set("stage",n.trim());const r=l.toString();return Ke(`/api/opportunities/overview${r?`?${r}`:""}`,void 0,!0)}async function $3(a){return Ke("/api/opportunities",{method:"POST",body:JSON.stringify(a)},!0)}async function W3(a,n){return Ke(`/api/opportunities/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function I3(a,n){return Ke(`/api/opportunities/${a}/followups`,{method:"POST",body:JSON.stringify(n)},!0)}async function eE(a){const n=new URLSearchParams;a&&a.trim()&&n.set("keyword",a.trim());const l=n.toString();return Ke(`/api/expansion/overview${l?`?${l}`:""}`,void 0,!0)}async function tE(){return Ke("/api/expansion/meta",void 0,!0)}async function aE(a){return Ke("/api/expansion/sales",{method:"POST",body:JSON.stringify(a)},!0)}async function nE(a){return Ke("/api/expansion/channel",{method:"POST",body:JSON.stringify(a)},!0)}async function sE(a,n){return Ke(`/api/expansion/sales/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function lE(a,n){return Ke(`/api/expansion/channel/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function iE(a,n,l){return Ke(`/api/expansion/${a}/${n}/followups`,{method:"POST",body:JSON.stringify(l)},!0)}const Jr=5,rE=[{name:"本月新增商机",metricKey:"monthlyOpportunities",icon:Pk,color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-500/20"},{name:"跟进中客户",metricKey:"followingCustomers",icon:jy,color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-500/20"},{name:"已成单项目",metricKey:"wonProjects",icon:xy,color:"text-violet-600 dark:text-violet-400",bg:"bg-violet-100 dark:bg-violet-500/20"},{name:"本月打卡天数",metricKey:"monthlyCheckins",icon:rk,color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-500/20"}];function oE(){var N,E,M,A;const[a,n]=w.useState({}),[l,r]=w.useState(!1),[o,f]=w.useState(!1);w.useEffect(()=>{let z=!1;async function U(){try{const Y=await Q3();z||n(Y??{})}catch{z||n({})}}return U(),()=>{z=!0}},[]),w.useEffect(()=>{r(!1),f(!1)},[a.todos,a.activities]);const h=new Map((a.stats??[]).map(z=>[z.metricKey,z.value])),m=rE.map(z=>({...z,value:h.get(z.metricKey)})),p=(N=a.todos)!=null&&N.length?a.todos:[{id:0,title:"无"}],g=(E=a.activities)!=null&&E.length?a.activities:[{id:0,title:"无",content:"无",timeText:"无"}],y=l?p:p.slice(0,Jr),v=o?g:g.slice(0,Jr),S=p.length>Jr&&((M=p[0])==null?void 0:M.id)!==0,k=g.length>Jr&&((A=g[0])==null?void 0:A.id)!==0;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),d.jsxs("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:["欢迎回来,",a.realName||"无","。今天是你入职的第 ",a.onboardingDays??0," 天。"]})]}),d.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:m.map((z,U)=>d.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:U*.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:d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:`flex h-12 w-12 items-center justify-center rounded-xl ${z.bg}`,children:d.jsx(z.icon,{className:`h-6 w-6 ${z.color}`})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-500 dark:text-slate-400",children:z.name}),d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:z.value??0})]})]})},z.name))}),d.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[d.jsxs(Ze.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:[d.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"待办事项"}),d.jsx("ul",{className:"space-y-3",children:y.map((z,U)=>d.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:[d.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"}),d.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:z.title||"无"})]},z.id??U))}),S&&!l?d.jsx("button",{type:"button",onClick:()=>r(!0),className:"mt-4 w-full rounded-xl border border-dashed border-slate-200 dark:border-slate-700 px-3 py-2 text-sm font-medium text-slate-500 transition-colors hover:border-violet-300 hover:text-violet-600 dark:text-slate-400 dark:hover:border-violet-700 dark:hover:text-violet-400",children:"..."}):null]}),d.jsxs(Ze.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:[d.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"最新动态"}),d.jsx("div",{className:"space-y-5",children:v.map((z,U)=>d.jsxs("div",{className:"flex gap-4",children:[d.jsxs("div",{className:"relative mt-1 flex h-3 w-3 items-center justify-center",children:[d.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-violet-400 opacity-20"}),d.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-violet-500"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white",children:z.title||"无"}),d.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:z.content||"无"}),d.jsx("p",{className:"mt-1 text-[10px] text-slate-400 dark:text-slate-500",children:z.timeText||"无"})]})]},z.id??U))}),k&&!o?d.jsx("button",{type:"button",onClick:()=>f(!0),className:"mt-4 w-full rounded-xl border border-dashed border-slate-200 dark:border-slate-700 px-3 py-2 text-sm font-medium text-slate-500 transition-colors hover:border-violet-300 hover:text-violet-600 dark:text-slate-400 dark:hover:border-violet-700 dark:hover:text-violet-400",children:"..."}):null]})]})]})}const $r={candidateName:"",mobile:"",email:"",industry:"",title:"",intentLevel:"medium",stage:"initial_contact",hasDesktopExp:!1,inProgress:!0,employmentStatus:"active",expectedJoinDate:"",remark:""},Wr={channelName:"",province:"",industry:"",contactName:"",contactTitle:"",contactMobile:"",stage:"initial_contact",landedFlag:!1,expectedSignDate:"",remark:""};function tf(a=new Date){const n=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-n).toISOString().slice(0,16)}const Vx={followUpType:"电话沟通",content:"",nextAction:"",followUpTime:tf()};function wd({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-[70] bg-slate-900/35 backdrop-blur-sm dark:bg-slate-950/70"}),d.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-[80] p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto flex h-full w-full items-end sm:max-w-3xl sm:items-center",children:d.jsxs("div",{className:"flex h-[92dvh] w-full flex-col overflow-hidden rounded-t-3xl border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:h-full sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n})]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(bi,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o})]})})})]})}function uE(){const[a,n]=w.useState("sales"),[l,r]=w.useState(null),[o,f]=w.useState(""),[h,m]=w.useState([]),[p,g]=w.useState([]),[y,v]=w.useState([]),[S,k]=w.useState(0),[N,E]=w.useState(!1),[M,A]=w.useState(!1),[z,U]=w.useState(!1),[Y,Q]=w.useState(!1),[ae,K]=w.useState(""),[B,I]=w.useState(""),[se,de]=w.useState(""),[pe,Ae]=w.useState($r),[ve,$]=w.useState(Wr),[R,J]=w.useState($r),[ee,he]=w.useState(Wr),[W,T]=w.useState(Vx),G=N||M||z;w.useEffect(()=>{let F=!1;async function ye(){try{const te=await tE();F||v(te.departments??[])}catch{F||v([])}}return ye(),()=>{F=!0}},[]),w.useEffect(()=>{let F=!1;async function ye(){try{const te=await eE(o);if(F)return;m(te.salesItems??[]),g(te.channelItems??[]),r(null)}catch{F||(m([]),g([]),r(null))}}return ye(),()=>{F=!0}},[o,S]);const O=(l==null?void 0:l.followUps)??[],ne=(F,ye)=>{Ae(te=>({...te,[F]:ye}))},le=(F,ye)=>{$(te=>({...te,[F]:ye}))},Z=(F,ye)=>{J(te=>({...te,[F]:ye}))},ce=(F,ye)=>{he(te=>({...te,[F]:ye}))},De=(F,ye)=>{T(te=>({...te,[F]:ye}))},ge=()=>{E(!1),K(""),Ae($r),$(Wr)},ft=()=>{A(!1),I(""),J($r),he(Wr)},bt=()=>{U(!1),de(""),T({...Vx,followUpTime:tf()})},Ot=()=>{K(""),E(!0)},tt=()=>{l&&(I(""),l.type==="sales"?J({candidateName:l.name??"",mobile:l.phone==="无"?"":l.phone??"",email:l.email==="无"?"":l.email??"",targetDeptId:l.targetDeptId,industry:l.industry==="无"?"":l.industry??"",title:l.title==="无"?"":l.title??"",intentLevel:l.intentLevel??"medium",stage:l.stageCode??"initial_contact",hasDesktopExp:!!l.hasExp,inProgress:!!l.inProgress,employmentStatus:l.employmentStatus??"active",expectedJoinDate:l.expectedJoinDate==="无"?"":l.expectedJoinDate??"",remark:l.notes==="无"?"":l.notes??""}):he({channelName:l.name??"",province:l.province==="无"?"":l.province??"",industry:l.industry==="无"?"":l.industry??"",annualRevenue:l.annualRevenue?Number(l.annualRevenue):void 0,staffSize:l.size??void 0,contactName:l.contact==="无"?"":l.contact??"",contactTitle:l.contactTitle==="无"?"":l.contactTitle??"",contactMobile:l.phone==="无"?"":l.phone??"",stage:l.stageCode??"initial_contact",landedFlag:!!l.landed,expectedSignDate:l.expectedSignDate==="无"?"":l.expectedSignDate??"",remark:l.notes==="无"?"":l.notes??""}),A(!0))},wt=()=>{l&&(de(""),T({followUpType:"电话沟通",content:"",nextAction:"",followUpTime:tf()}),U(!0))},al=async()=>{if(!Y){Q(!0),K("");try{a==="sales"?await aE({...pe,expectedJoinDate:pe.expectedJoinDate||void 0,targetDeptId:pe.targetDeptId||void 0}):await nE({...ve,annualRevenue:ve.annualRevenue||void 0,staffSize:ve.staffSize||void 0,expectedSignDate:ve.expectedSignDate||void 0}),ge(),k(F=>F+1)}catch(F){K(F instanceof Error?F.message:"新增失败")}finally{Q(!1)}}},nl=async()=>{if(!(!l||Y)){Q(!0),I("");try{l.type==="sales"?await sE(l.id,{...R,expectedJoinDate:R.expectedJoinDate||void 0,targetDeptId:R.targetDeptId||void 0}):await lE(l.id,{...ee,annualRevenue:ee.annualRevenue||void 0,staffSize:ee.staffSize||void 0,expectedSignDate:ee.expectedSignDate||void 0}),ft(),r(null),k(F=>F+1)}catch(F){I(F instanceof Error?F.message:"编辑失败")}finally{Q(!1)}}},Vo=async()=>{if(!(!l||Y)){Q(!0),de("");try{await iE(l.type,l.id,{...W,nextAction:W.nextAction||void 0,followUpTime:new Date(W.followUpTime).toISOString()}),bt(),r(null),k(F=>F+1)}catch(F){de(F instanceof Error?F.message:"新增跟进失败")}finally{Q(!1)}}},sl=()=>d.jsx("div",{className:"rounded-2xl border border-slate-100 bg-white p-10 text-center text-sm text-slate-400 shadow-sm backdrop-blur-sm dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-500",children:"暂无"}),es=F=>{n(F),r(null)},ts=(F,ye)=>d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"候选人姓名"}),d.jsx("input",{value:F.candidateName,onChange:te=>ye("candidateName",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系电话"}),d.jsx("input",{value:F.mobile,onChange:te=>ye("mobile",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"邮箱"}),d.jsx("input",{value:F.email,onChange:te=>ye("email",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"目标部门"}),d.jsxs("select",{value:F.targetDeptId??"",onChange:te=>ye("targetDeptId",te.target.value?Number(te.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"",children:"请选择"}),y.map(te=>d.jsx("option",{value:te.id,children:te.name||"无"},te.id))]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"负责行业"}),d.jsx("input",{value:F.industry,onChange:te=>ye("industry",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"岗位名称"}),d.jsx("input",{value:F.title,onChange:te=>ye("title",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"意向度"}),d.jsxs("select",{value:F.intentLevel,onChange:te=>ye("intentLevel",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"high",children:"高"}),d.jsx("option",{value:"medium",children:"中"}),d.jsx("option",{value:"low",children:"低"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsxs("select",{value:F.stage,onChange:te=>ye("stage",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"initial_contact",children:"初步沟通"}),d.jsx("option",{value:"solution_discussion",children:"方案交流"}),d.jsx("option",{value:"bidding",children:"招投标"}),d.jsx("option",{value:"business_negotiation",children:"商务谈判"}),d.jsx("option",{value:"won",children:"已成交"}),d.jsx("option",{value:"lost",children:"已放弃"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"人员状态"}),d.jsxs("select",{value:F.employmentStatus,onChange:te=>ye("employmentStatus",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"active",children:"在职"}),d.jsx("option",{value:"left",children:"离职"}),d.jsx("option",{value:"joined",children:"已入职"}),d.jsx("option",{value:"abandoned",children:"已放弃"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计入职"}),d.jsx("input",{type:"date",value:F.expectedJoinDate,onChange:te=>ye("expectedJoinDate",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"云桌面经验"}),d.jsx("input",{type:"checkbox",checked:!!F.hasDesktopExp,onChange:te=>ye("hasDesktopExp",te.target.checked)})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"持续跟进"}),d.jsx("input",{type:"checkbox",checked:!!F.inProgress,onChange:te=>ye("inProgress",te.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:F.remark,onChange:te=>ye("remark",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),as=(F,ye)=>d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"渠道名称"}),d.jsx("input",{value:F.channelName,onChange:te=>ye("channelName",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"省份"}),d.jsx("input",{value:F.province,onChange:te=>ye("province",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"行业"}),d.jsx("input",{value:F.industry,onChange:te=>ye("industry",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"年营收"}),d.jsx("input",{type:"number",value:F.annualRevenue??"",onChange:te=>ye("annualRevenue",te.target.value?Number(te.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"公司人数"}),d.jsx("input",{type:"number",value:F.staffSize??"",onChange:te=>ye("staffSize",te.target.value?Number(te.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系人"}),d.jsx("input",{value:F.contactName,onChange:te=>ye("contactName",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系人职务"}),d.jsx("input",{value:F.contactTitle,onChange:te=>ye("contactTitle",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系电话"}),d.jsx("input",{value:F.contactMobile,onChange:te=>ye("contactMobile",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsxs("select",{value:F.stage,onChange:te=>ye("stage",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"initial_contact",children:"初步接触"}),d.jsx("option",{value:"solution_discussion",children:"方案交流"}),d.jsx("option",{value:"business_negotiation",children:"合作洽谈"}),d.jsx("option",{value:"bidding",children:"招投标"}),d.jsx("option",{value:"won",children:"已合作"}),d.jsx("option",{value:"lost",children:"已终止"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计签约"}),d.jsx("input",{type:"date",value:F.expectedSignDate,onChange:te=>ye("expectedSignDate",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 sm:col-span-2 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"是否已落地"}),d.jsx("input",{type:"checkbox",checked:!!F.landedFlag,onChange:te=>ye("landedFlag",te.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:F.remark,onChange:te=>ye("remark",te.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3",children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"拓展管理"}),d.jsxs("button",{onClick:Ot,className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm transition-all hover:bg-violet-700 active:scale-95",children:[d.jsx(Sy,{className:"h-4 w-4"}),d.jsx("span",{className:"hidden sm:inline",children:"新增"})]})]}),d.jsxs("div",{className:"flex rounded-xl border border-slate-200/50 bg-slate-100 p-1 backdrop-blur-sm dark:border-slate-800/50 dark:bg-slate-900/50",children:[d.jsx("button",{onClick:()=>es("sales"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${a==="sales"?"bg-white text-violet-600 shadow-sm dark:bg-slate-800 dark:text-violet-400":"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-white"}`,children:"销售人员拓展"}),d.jsx("button",{onClick:()=>es("channel"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${a==="channel"?"bg-white text-violet-600 shadow-sm dark:bg-slate-800 dark:text-violet-400":"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-white"}`,children:"渠道拓展"})]}),d.jsxs("div",{className:"group relative",children:[d.jsx(wy,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400 transition-colors group-focus-within:text-violet-500"}),d.jsx("input",{type:"text",placeholder:"搜索姓名、渠道名称、行业...",value:o,onChange:F=>f(F.target.value),className:"w-full rounded-xl border border-slate-200 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-900 outline-none transition-all placeholder:text-slate-400 focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50 dark:text-white dark:placeholder:text-slate-500"})]}),d.jsx("div",{className:"space-y-4",children:a==="sales"?h.length>0?h.map((F,ye)=>d.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ye*.05},onClick:()=>r(F),className:"cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:F.name||"无"}),d.jsxs("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[F.dept||"无"," · ",F.title||"无"]})]}),d.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${F.active?"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400":"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-300"}`,children:F.active?"在职":"离职"})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(ao,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),F.industry||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"意向:"}),d.jsx("span",{className:F.intent==="高"?"font-medium text-rose-600 dark:text-rose-400":"",children:F.intent||"无"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),F.stage||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"云桌面经验:"}),F.hasExp?"有":"无"]})]}),d.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 pt-3 dark:border-slate-800/50",children:d.jsx("button",{className:"text-sm font-medium text-violet-600 transition-colors hover:text-violet-700 dark:text-violet-400 dark:hover:text-violet-300",children:"查看详情与跟进"})})]},F.id)):sl():p.length>0?p.map((F,ye)=>d.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ye*.05},onClick:()=>r(F),className:"cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:F.name||"无"}),d.jsxs("div",{className:"mt-1 flex items-center gap-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsx(Md,{className:"h-3.5 w-3.5"}),F.province||"无"]})]}),d.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${F.landed?"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400":"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-400"}`,children:F.landed?"已落地":"未落地"})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(ao,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),F.industry||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(di,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),F.contact||"无"]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(no,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),F.phone||"无"]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),d.jsx("span",{className:"font-medium text-slate-900 dark:text-white",children:F.stage||"无"})]})]}),d.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 pt-3 dark:border-slate-800/50",children:d.jsx("button",{className:"text-sm font-medium text-violet-600 transition-colors hover:text-violet-700 dark:text-violet-400 dark:hover:text-violet-300",children:"查看详情与跟进"})})]},F.id)):sl()}),d.jsx(Ya,{children:N&&d.jsxs(wd,{title:`新增${a==="sales"?"销售人员拓展":"渠道拓展"}`,subtitle:"支持电脑和手机填写,提交后自动刷新列表。",onClose:ge,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:ge,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void al(),disabled:Y,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:Y?"提交中...":"确认新增"})]}),children:[a==="sales"?ts(pe,ne):as(ve,le),ae?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:ae}):null]})}),d.jsx(Ya,{children:M&&l&&d.jsxs(wd,{title:`编辑${l.type==="sales"?"销售人员拓展":"渠道拓展"}`,subtitle:"修改后会实时更新本人名下的拓展资料。",onClose:ft,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:ft,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void nl(),disabled:Y,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:Y?"保存中...":"保存修改"})]}),children:[l.type==="sales"?ts(R,Z):as(ee,ce),B?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:B}):null]})}),d.jsx(Ya,{children:z&&l&&d.jsxs(wd,{title:"新增跟进",subtitle:"仅允许为当前登录人名下的拓展对象写入跟进记录。",onClose:bt,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:bt,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void Vo(),disabled:Y,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:Y?"提交中...":"确认提交"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进类型"}),d.jsxs("select",{value:W.followUpType,onChange:F=>De("followUpType",F.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"电话沟通",children:"电话沟通"}),d.jsx("option",{value:"拜访面谈",children:"拜访面谈"}),d.jsx("option",{value:"微信触达",children:"微信触达"}),d.jsx("option",{value:"方案沟通",children:"方案沟通"}),d.jsx("option",{value:"其他",children:"其他"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进时间"}),d.jsx("input",{type:"datetime-local",value:W.followUpTime,onChange:F=>De("followUpTime",F.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进内容"}),d.jsx("textarea",{rows:5,value:W.content,onChange:F=>De("content",F.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"下一步动作"}),d.jsx("input",{value:W.nextAction,onChange:F=>De("nextAction",F.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),se?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:se}):null]})}),d.jsx(Ya,{children:l&&d.jsxs(d.Fragment,{children:[d.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>r(null),className:`fixed inset-0 z-40 bg-slate-900/20 backdrop-blur-sm transition-opacity dark:bg-slate-900/60 ${G?"pointer-events-none opacity-30":""}`}),d.jsxs(Ze.div,{initial:{x:"100%",y:0},animate:{x:0,y:0},exit:{x:"100%",y:0},transition:{type:"spring",damping:25,stiffness:200},className:`fixed inset-x-0 bottom-0 z-50 flex h-[88dvh] w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-opacity dark:border-slate-800 dark:bg-slate-900 sm:inset-y-0 sm:right-0 sm:left-auto sm:h-full sm:max-w-md sm:rounded-none sm:rounded-l-3xl sm:border-l ${G?"pointer-events-none opacity-20":""}`,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"h-1.5 w-10 rounded-full bg-slate-200 sm:hidden dark:bg-slate-700"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:l.type==="sales"?"销售拓展详情":"渠道拓展详情"})]}),d.jsx("button",{onClick:()=>r(null),className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(bi,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto px-5 py-5 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-white",children:l.name||"无"}),d.jsx("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:l.type==="sales"?`${l.dept||"无"} · ${l.title||"无"}`:`${l.province||"无"} · ${l.industry||"无"}`}),d.jsxs("div",{className:"mt-3 flex gap-2",children:[d.jsx("span",{className:"rounded-full bg-violet-50 px-2.5 py-1 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:l.stage||"无"}),l.type==="sales"?d.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${l.active?"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400":"bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400"}`,children:l.active?"在职":"离职"}):d.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${l.landed?"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400":"bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400"}`,children:l.landed?"已落地":"未落地"})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-xl border border-slate-100 bg-slate-50/50 p-4 text-sm dark:border-slate-800 dark:bg-slate-800/20",children:[l.type==="sales"?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(no,{className:"h-3 w-3"})," 联系电话"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.phone||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(vy,{className:"h-3 w-3"})," 邮箱"]}),d.jsx("p",{className:"truncate font-medium text-slate-900 dark:text-white",title:l.email,children:l.email||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(ao,{className:"h-3 w-3"})," 负责行业"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.industry||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"云桌面经验"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.hasExp?"有":"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"意向度"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.intent||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计入职"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.expectedJoinDate||"无"})]})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(di,{className:"h-3 w-3"})," 联系人"]}),d.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[l.contact||"无"," (",l.contactTitle||"无",")"]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(no,{className:"h-3 w-3"})," 联系电话"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.phone||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"营收规模"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.revenue||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"公司人数"}),d.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[l.size??0,"人"]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计签约"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.expectedSignDate||"无"})]})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"备注说明"}),d.jsx("p",{className:"leading-relaxed font-medium text-slate-900 dark:text-white",children:l.notes||"无"})]})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(yy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),d.jsx("button",{onClick:wt,className:"text-xs font-medium text-violet-600 hover:text-violet-700 dark:text-violet-400",children:"添加记录"})]}),O.length>0?d.jsx("div",{className:"relative space-y-6 border-l-2 border-slate-100 pl-4 dark:border-slate-800",children:O.map(F=>d.jsxs("div",{className:"relative",children:[d.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"}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[d.jsx("span",{className:"rounded bg-violet-50 px-2 py-0.5 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:F.type||"无"}),d.jsx("span",{className:"text-xs text-slate-400",children:F.date||"无"})]}),d.jsx("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:F.content||"无"}),d.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["跟进人: ",F.user||"无"]})]})]},F.id))}):d.jsx("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-6 text-center text-sm text-slate-400 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-500",children:"暂无"})]})]}),d.jsx("div",{className:"sticky bottom-0 bg-slate-50/95 p-4 backdrop-blur sm:static dark:bg-slate-900/90",children:d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[d.jsx("button",{onClick:tt,className:"flex-1 rounded-xl border border-slate-200 bg-white px-4 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"编辑资料"}),d.jsx("button",{onClick:wt,className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700",children:"写跟进"})]})})]})]})})]})}const Ux=["全部","初步沟通","方案交流","招投标","商务谈判","已成交"],kd={opportunityName:"",customerName:"",amount:0,expectedCloseDate:"",confidencePct:50,stage:"初步沟通",opportunityType:"新建",productType:"VDI云桌面",source:"主动开发",pushedToOms:!1,description:""};function af(a=new Date){const n=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-n).toISOString().slice(0,16)}const Lx={followUpType:"电话沟通",content:"",nextAction:"",followUpTime:af()};function Bx(a){return a==null||Number.isNaN(Number(a))?"0":new Intl.NumberFormat("zh-CN").format(Number(a))}function cE(a){return{opportunityName:a.name||"",customerName:a.client||"",amount:a.amount||0,expectedCloseDate:a.date||"",confidencePct:a.confidence??50,stage:a.stage||"初步沟通",opportunityType:a.type||"新建",productType:a.product||"VDI云桌面",source:a.source||"主动开发",pushedToOms:!!a.pushedToOms,description:a.notes||""}}function Hx({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-[70] bg-slate-900/35 backdrop-blur-sm dark:bg-slate-950/70"}),d.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-[80] p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto flex h-full w-full items-end sm:max-w-3xl sm:items-center",children:d.jsxs("div",{className:"flex h-[92dvh] w-full flex-col overflow-hidden rounded-t-3xl border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:h-full sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n})]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(bi,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o})]})})})]})}function dE(){const[a,n]=w.useState("全部"),[l,r]=w.useState(""),[o,f]=w.useState(null),[h,m]=w.useState(!1),[p,g]=w.useState(!1),[y,v]=w.useState(!1),[S,k]=w.useState(!1),[N,E]=w.useState(""),[M,A]=w.useState(""),[z,U]=w.useState([]),[Y,Q]=w.useState(kd),[ae,K]=w.useState(Lx),B=h||p||y;w.useEffect(()=>{let O=!1;async function ne(){try{const le=await _x(l,a);O||(U(le.items??[]),f(null))}catch{O||(U([]),f(null))}}return ne(),()=>{O=!0}},[l,a]);const I=(o==null?void 0:o.followUps)??[],se=O=>O>=80?"text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border-emerald-200 dark:border-emerald-500/20":O>=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",de=(O,ne)=>{Q(le=>({...le,[O]:ne}))},pe=(O,ne)=>{K(le=>({...le,[O]:ne}))},Ae=()=>{E(""),Q(kd),m(!0)},ve=()=>{m(!1),g(!1),k(!1),E(""),Q(kd)},$=()=>{v(!1),A(""),K({...Lx,followUpTime:af()})},R=async O=>{const le=(await _x(l,a)).items??[];U(le),O&&f(le.find(Z=>Z.id===O)??null)},J=async()=>{if(!S){k(!0),E("");try{await $3(Y),await R(),ve()}catch(O){E(O instanceof Error?O.message:"新增商机失败"),k(!1)}}},ee=()=>{o&&(E(""),Q(cE(o)),g(!0))},he=async()=>{if(!(!o||S)){k(!0),E("");try{await W3(o.id,Y),await R(o.id),ve()}catch(O){E(O instanceof Error?O.message:"编辑商机失败"),k(!1)}}},W=()=>{o&&(A(""),K({followUpType:"电话沟通",content:"",nextAction:"",followUpTime:af()}),v(!0))},T=async()=>{if(!(!o||S)){k(!0),A("");try{await I3(o.id,{...ae,nextAction:ae.nextAction||void 0,followUpTime:new Date(ae.followUpTime).toISOString()}),await R(),$(),f(null),k(!1)}catch(O){A(O instanceof Error?O.message:"新增跟进失败"),k(!1)}}},G=()=>d.jsx("div",{className:"rounded-2xl border border-slate-100 bg-white p-10 text-center text-sm text-slate-400 shadow-sm backdrop-blur-sm dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-500",children:"暂无商机数据,先新增一条试试。"});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3",children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"商机储备"}),d.jsxs("button",{onClick:Ae,className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm transition-all hover:bg-violet-700 active:scale-95",children:[d.jsx(Sy,{className:"h-4 w-4"}),d.jsx("span",{className:"hidden sm:inline",children:"新增商机"})]})]}),d.jsxs("div",{className:"relative group",children:[d.jsx(wy,{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"}),d.jsx("input",{type:"text",placeholder:"搜索项目名称、客户、编码...",value:l,onChange:O=>r(O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-900 outline-none transition-all placeholder:text-slate-400 focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50 dark:text-white dark:placeholder:text-slate-500"})]}),d.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide",children:Ux.map(O=>d.jsx("button",{onClick:()=>n(O),className:`whitespace-nowrap rounded-full px-4 py-1.5 text-sm font-medium transition-all duration-200 ${a===O?"bg-slate-800 text-white shadow-sm dark:bg-violet-600":"border border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-400 dark:hover:bg-slate-800"}`,children:O},O))}),d.jsx("div",{className:"space-y-4",children:z.length>0?z.map((O,ne)=>d.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ne*.05},onClick:()=>f(O),className:"group relative cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"pr-8",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:O.code||`#${O.id}`}),O.pushedToOms?d.jsx("span",{className:"rounded bg-violet-50 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:"已推OMS"}):null]}),d.jsx("h3",{className:"mt-1 line-clamp-1 text-lg font-semibold text-slate-900 dark:text-white",children:O.name||"未命名商机"})]}),d.jsxs("div",{className:`flex flex-col items-center justify-center rounded-lg border p-2 ${se(O.confidence??0)}`,children:[d.jsxs("span",{className:"text-xs font-semibold",children:[O.confidence??0,"%"]}),d.jsx("span",{className:"text-[10px] opacity-80",children:"把握度"})]})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(ug,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsx("span",{className:"truncate",children:O.client||"未命名客户"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(cg,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsxs("span",{className:"font-medium text-slate-900 dark:text-white",children:["¥",Bx(O.amount)]})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(po,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),O.date||"未设置"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(og,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsx("span",{className:"rounded-full bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300",children:O.stage||"初步沟通"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"类型:"}),O.type||"新建"]})]}),d.jsx("div",{className:"mt-4 hidden items-center justify-end border-t border-slate-50 pt-3 md:flex dark:border-slate-800/50",children:d.jsxs("button",{className:"flex items-center text-sm font-medium text-violet-600 dark:text-violet-400",children:["查看详情 ",d.jsx(go,{className:"ml-1 h-4 w-4"})]})}),d.jsx("div",{className:"mt-4 flex items-center justify-end border-t border-slate-50 pt-3 md:hidden dark:border-slate-800/50",children:d.jsxs("button",{className:"flex items-center text-sm font-medium text-violet-600 dark:text-violet-400",children:["查看详情 ",d.jsx(go,{className:"ml-1 h-4 w-4"})]})})]},O.id)):G()}),d.jsx(Ya,{children:(h||p)&&d.jsxs(Hx,{title:p?"编辑商机":"新增商机",subtitle:p?"支持手机与电脑端修改商机资料,保存后会同步刷新详情与列表。":"支持手机与电脑端填写,提交后会自动刷新商机列表。",onClose:ve,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:ve,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void(p?he():J()),disabled:S,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:S?"提交中...":p?"保存修改":"确认新增"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机名称"}),d.jsx("input",{value:Y.opportunityName,onChange:O=>de("opportunityName",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"客户名称"}),d.jsx("input",{value:Y.customerName,onChange:O=>de("customerName",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机金额"}),d.jsx("input",{type:"number",min:"0",value:Y.amount||"",onChange:O=>de("amount",Number(O.target.value)||0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计结单"}),d.jsx("input",{type:"date",value:Y.expectedCloseDate,onChange:O=>de("expectedCloseDate",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"把握度"}),d.jsx("input",{type:"number",min:"0",max:"100",value:Y.confidencePct,onChange:O=>de("confidencePct",Number(O.target.value)||0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsx("select",{value:Y.stage,onChange:O=>de("stage",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:Ux.filter(O=>O!=="全部").map(O=>d.jsx("option",{value:O,children:O},O))})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机类型"}),d.jsxs("select",{value:Y.opportunityType,onChange:O=>de("opportunityType",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"新建",children:"新建"}),d.jsx("option",{value:"扩容",children:"扩容"}),d.jsx("option",{value:"替换",children:"替换"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"产品类别"}),d.jsxs("select",{value:Y.productType,onChange:O=>de("productType",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"VDI云桌面",children:"VDI云桌面"}),d.jsx("option",{value:"VOI云桌面",children:"VOI云桌面"}),d.jsx("option",{value:"IDV云桌面",children:"IDV云桌面"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机来源"}),d.jsxs("select",{value:Y.source,onChange:O=>de("source",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"主动开发",children:"主动开发"}),d.jsx("option",{value:"渠道推荐",children:"渠道推荐"}),d.jsx("option",{value:"市场活动",children:"市场活动"}),d.jsx("option",{value:"老客转介绍",children:"老客转介绍"})]})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 sm:col-span-2 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"是否已推送 OMS"}),d.jsx("input",{type:"checkbox",checked:!!Y.pushedToOms,onChange:O=>de("pushedToOms",O.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:Y.description||"",onChange:O=>de("description",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),N?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:N}):null]})}),d.jsx(Ya,{children:y&&o&&d.jsxs(Hx,{title:"新增跟进",subtitle:"商机跟进与拓展管理保持同样的填写方式,方便手机与电脑端使用。",onClose:$,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:$,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void T(),disabled:S,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:S?"提交中...":"确认提交"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进类型"}),d.jsxs("select",{value:ae.followUpType,onChange:O=>pe("followUpType",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"电话沟通",children:"电话沟通"}),d.jsx("option",{value:"拜访面谈",children:"拜访面谈"}),d.jsx("option",{value:"微信触达",children:"微信触达"}),d.jsx("option",{value:"方案沟通",children:"方案沟通"}),d.jsx("option",{value:"其他",children:"其他"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进时间"}),d.jsx("input",{type:"datetime-local",value:ae.followUpTime,onChange:O=>pe("followUpTime",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进内容"}),d.jsx("textarea",{rows:5,value:ae.content,onChange:O=>pe("content",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"下一步动作"}),d.jsx("input",{value:ae.nextAction,onChange:O=>pe("nextAction",O.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),M?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:M}):null]})}),d.jsx(Ya,{children:o&&d.jsxs(d.Fragment,{children:[d.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>f(null),className:`fixed inset-0 z-40 bg-slate-900/20 backdrop-blur-sm transition-opacity dark:bg-slate-900/60 ${B?"pointer-events-none opacity-30":""}`}),d.jsxs(Ze.div,{initial:{x:"100%",y:0},animate:{x:0,y:0},exit:{x:"100%",y:0},transition:{type:"spring",damping:25,stiffness:200},className:`fixed inset-x-0 bottom-0 z-50 flex h-[88dvh] w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-opacity dark:border-slate-800 dark:bg-slate-900 sm:inset-y-0 sm:right-0 sm:left-auto sm:h-full sm:max-w-md sm:rounded-none sm:rounded-l-3xl sm:border-l ${B?"pointer-events-none opacity-20":""}`,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"h-1.5 w-10 rounded-full bg-slate-200 sm:hidden dark:bg-slate-700"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"商机详情"})]}),d.jsx("button",{onClick:()=>f(null),className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(bi,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto px-5 py-5 sm:px-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:o.code||`#${o.id}`}),o.pushedToOms?d.jsx("span",{className:"rounded bg-violet-50 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:"已推OMS"}):null]}),d.jsx("h3",{className:"text-xl font-bold leading-tight text-slate-900 dark:text-white",children:o.name||"未命名商机"}),d.jsxs("div",{className:"mt-3 flex gap-2",children:[d.jsx("span",{className:"rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300",children:o.stage||"初步沟通"}),d.jsxs("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${se(o.confidence??0)}`,children:["把握度 ",o.confidence??0,"%"]})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-xl border border-slate-100 bg-slate-50/50 p-4 text-sm dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"col-span-2",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(ug,{className:"h-3 w-3"})," 客户名称"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.client||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(cg,{className:"h-3 w-3"})," 商机金额"]}),d.jsxs("p",{className:"font-medium text-rose-600 dark:text-rose-400",children:["¥",Bx(o.amount)]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计结单"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.date||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(di,{className:"h-3 w-3"})," 负责人"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.owner||"当前用户"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(Gk,{className:"h-3 w-3"})," 商机类型"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.type||"新建"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(og,{className:"h-3 w-3"})," 产品类别"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.product||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(bk,{className:"h-3 w-3"})," 商机来源"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.source||"无"})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"备注说明"}),d.jsx("p",{className:"leading-relaxed font-medium text-slate-900 dark:text-white",children:o.notes||"无"})]})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(yy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),d.jsx("button",{onClick:W,className:"text-xs font-medium text-violet-600 hover:text-violet-700 dark:text-violet-400",children:"添加记录"})]}),I.length>0?d.jsx("div",{className:"relative space-y-6 border-l-2 border-slate-100 pl-4 dark:border-slate-800",children:I.map(O=>d.jsxs("div",{className:"relative",children:[d.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"}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[d.jsx("span",{className:"rounded bg-violet-50 px-2 py-0.5 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:O.type||"无"}),d.jsx("span",{className:"text-xs text-slate-400",children:O.date||"无"})]}),d.jsx("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:O.content||"无"}),d.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["跟进人: ",O.user||"无"]})]})]},O.id))}):d.jsx("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-6 text-center text-sm text-slate-400 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-500",children:"暂无跟进记录"})]})]}),d.jsx("div",{className:"sticky bottom-0 bg-slate-50/95 p-4 backdrop-blur sm:static dark:bg-slate-900/90",children:d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[d.jsx("button",{onClick:ee,className:"flex-1 rounded-xl border border-slate-200 bg-white px-4 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"编辑商机"}),d.jsx("button",{onClick:W,className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700",children:"写跟进"})]})})]})]})})]})}const Cb=6048e5,fE=864e5,Yx=Symbol.for("constructDateFrom");function jn(a,n){return typeof a=="function"?a(n):a&&typeof a=="object"&&Yx in a?a[Yx](n):a instanceof Date?new a.constructor(n):new Date(n)}function fa(a,n){return jn(n||a,a)}let hE={};function _o(){return hE}function gi(a,n){var m,p,g,y;const l=_o(),r=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??l.weekStartsOn??((y=(g=l.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,o=fa(a,n==null?void 0:n.in),f=o.getDay(),h=(f<r?7:0)+f-r;return o.setDate(o.getDate()-h),o.setHours(0,0,0,0),o}function Eo(a,n){return gi(a,{...n,weekStartsOn:1})}function Mb(a,n){const l=fa(a,n==null?void 0:n.in),r=l.getFullYear(),o=jn(l,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const f=Eo(o),h=jn(l,0);h.setFullYear(r,0,4),h.setHours(0,0,0,0);const m=Eo(h);return l.getTime()>=f.getTime()?r+1:l.getTime()>=m.getTime()?r:r-1}function qx(a){const n=fa(a),l=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return l.setUTCFullYear(n.getFullYear()),+a-+l}function mE(a,...n){const l=jn.bind(null,n.find(r=>typeof r=="object"));return n.map(l)}function Gx(a,n){const l=fa(a,n==null?void 0:n.in);return l.setHours(0,0,0,0),l}function pE(a,n,l){const[r,o]=mE(l==null?void 0:l.in,a,n),f=Gx(r),h=Gx(o),m=+f-qx(f),p=+h-qx(h);return Math.round((m-p)/fE)}function gE(a,n){const l=Mb(a,n),r=jn(a,0);return r.setFullYear(l,0,4),r.setHours(0,0,0,0),Eo(r)}function xE(a){return a instanceof Date||typeof a=="object"&&Object.prototype.toString.call(a)==="[object Date]"}function yE(a){return!(!xE(a)&&typeof a!="number"||isNaN(+fa(a)))}function vE(a,n){const l=fa(a,n==null?void 0:n.in);return l.setFullYear(l.getFullYear(),0,1),l.setHours(0,0,0,0),l}const bE={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"}},SE=(a,n,l)=>{let r;const o=bE[a];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+r:r+" ago":r};function jd(a){return(n={})=>{const l=n.width?String(n.width):a.defaultWidth;return a.formats[l]||a.formats[a.defaultWidth]}}const wE={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kE={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jE={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NE={date:jd({formats:wE,defaultWidth:"full"}),time:jd({formats:kE,defaultWidth:"full"}),dateTime:jd({formats:jE,defaultWidth:"full"})},TE={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},EE=(a,n,l,r)=>TE[a];function ni(a){return(n,l)=>{const r=l!=null&&l.context?String(l.context):"standalone";let o;if(r==="formatting"&&a.formattingValues){const h=a.defaultFormattingWidth||a.defaultWidth,m=l!=null&&l.width?String(l.width):h;o=a.formattingValues[m]||a.formattingValues[h]}else{const h=a.defaultWidth,m=l!=null&&l.width?String(l.width):a.defaultWidth;o=a.values[m]||a.values[h]}const f=a.argumentCallback?a.argumentCallback(n):n;return o[f]}}const CE={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ME={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AE={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"]},DE={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"]},RE={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"}},OE={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"}},zE=(a,n)=>{const l=Number(a),r=l%100;if(r>20||r<10)switch(r%10){case 1:return l+"st";case 2:return l+"nd";case 3:return l+"rd"}return l+"th"},_E={ordinalNumber:zE,era:ni({values:CE,defaultWidth:"wide"}),quarter:ni({values:ME,defaultWidth:"wide",argumentCallback:a=>a-1}),month:ni({values:AE,defaultWidth:"wide"}),day:ni({values:DE,defaultWidth:"wide"}),dayPeriod:ni({values:RE,defaultWidth:"wide",formattingValues:OE,defaultFormattingWidth:"wide"})};function si(a){return(n,l={})=>{const r=l.width,o=r&&a.matchPatterns[r]||a.matchPatterns[a.defaultMatchWidth],f=n.match(o);if(!f)return null;const h=f[0],m=r&&a.parsePatterns[r]||a.parsePatterns[a.defaultParseWidth],p=Array.isArray(m)?UE(m,v=>v.test(h)):VE(m,v=>v.test(h));let g;g=a.valueCallback?a.valueCallback(p):p,g=l.valueCallback?l.valueCallback(g):g;const y=n.slice(h.length);return{value:g,rest:y}}}function VE(a,n){for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&n(a[l]))return l}function UE(a,n){for(let l=0;l<a.length;l++)if(n(a[l]))return l}function LE(a){return(n,l={})=>{const r=n.match(a.matchPattern);if(!r)return null;const o=r[0],f=n.match(a.parsePattern);if(!f)return null;let h=a.valueCallback?a.valueCallback(f[0]):f[0];h=l.valueCallback?l.valueCallback(h):h;const m=n.slice(o.length);return{value:h,rest:m}}}const BE=/^(\d+)(th|st|nd|rd)?/i,HE=/\d+/i,YE={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},qE={any:[/^b/i,/^(a|c)/i]},GE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XE={any:[/1/i,/2/i,/3/i,/4/i]},PE={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},QE={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]},KE={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},FE={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]},ZE={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},JE={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}},$E={ordinalNumber:LE({matchPattern:BE,parsePattern:HE,valueCallback:a=>parseInt(a,10)}),era:si({matchPatterns:YE,defaultMatchWidth:"wide",parsePatterns:qE,defaultParseWidth:"any"}),quarter:si({matchPatterns:GE,defaultMatchWidth:"wide",parsePatterns:XE,defaultParseWidth:"any",valueCallback:a=>a+1}),month:si({matchPatterns:PE,defaultMatchWidth:"wide",parsePatterns:QE,defaultParseWidth:"any"}),day:si({matchPatterns:KE,defaultMatchWidth:"wide",parsePatterns:FE,defaultParseWidth:"any"}),dayPeriod:si({matchPatterns:ZE,defaultMatchWidth:"any",parsePatterns:JE,defaultParseWidth:"any"})},WE={code:"en-US",formatDistance:SE,formatLong:NE,formatRelative:EE,localize:_E,match:$E,options:{weekStartsOn:0,firstWeekContainsDate:1}};function IE(a,n){const l=fa(a,n==null?void 0:n.in);return pE(l,vE(l))+1}function eC(a,n){const l=fa(a,n==null?void 0:n.in),r=+Eo(l)-+gE(l);return Math.round(r/Cb)+1}function Ab(a,n){var y,v,S,k;const l=fa(a,n==null?void 0:n.in),r=l.getFullYear(),o=_o(),f=(n==null?void 0:n.firstWeekContainsDate)??((v=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((k=(S=o.locale)==null?void 0:S.options)==null?void 0:k.firstWeekContainsDate)??1,h=jn((n==null?void 0:n.in)||a,0);h.setFullYear(r+1,0,f),h.setHours(0,0,0,0);const m=gi(h,n),p=jn((n==null?void 0:n.in)||a,0);p.setFullYear(r,0,f),p.setHours(0,0,0,0);const g=gi(p,n);return+l>=+m?r+1:+l>=+g?r:r-1}function tC(a,n){var m,p,g,y;const l=_o(),r=(n==null?void 0:n.firstWeekContainsDate)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??l.firstWeekContainsDate??((y=(g=l.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,o=Ab(a,n),f=jn((n==null?void 0:n.in)||a,0);return f.setFullYear(o,0,r),f.setHours(0,0,0,0),gi(f,n)}function aC(a,n){const l=fa(a,n==null?void 0:n.in),r=+gi(l,n)-+tC(l,n);return Math.round(r/Cb)+1}function Ue(a,n){const l=a<0?"-":"",r=Math.abs(a).toString().padStart(n,"0");return l+r}const xn={y(a,n){const l=a.getFullYear(),r=l>0?l:1-l;return Ue(n==="yy"?r%100:r,n.length)},M(a,n){const l=a.getMonth();return n==="M"?String(l+1):Ue(l+1,2)},d(a,n){return Ue(a.getDate(),n.length)},a(a,n){const l=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h(a,n){return Ue(a.getHours()%12||12,n.length)},H(a,n){return Ue(a.getHours(),n.length)},m(a,n){return Ue(a.getMinutes(),n.length)},s(a,n){return Ue(a.getSeconds(),n.length)},S(a,n){const l=n.length,r=a.getMilliseconds(),o=Math.trunc(r*Math.pow(10,l-3));return Ue(o,n.length)}},Ys={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xx={G:function(a,n,l){const r=a.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return l.era(r,{width:"abbreviated"});case"GGGGG":return l.era(r,{width:"narrow"});case"GGGG":default:return l.era(r,{width:"wide"})}},y:function(a,n,l){if(n==="yo"){const r=a.getFullYear(),o=r>0?r:1-r;return l.ordinalNumber(o,{unit:"year"})}return xn.y(a,n)},Y:function(a,n,l,r){const o=Ab(a,r),f=o>0?o:1-o;if(n==="YY"){const h=f%100;return Ue(h,2)}return n==="Yo"?l.ordinalNumber(f,{unit:"year"}):Ue(f,n.length)},R:function(a,n){const l=Mb(a);return Ue(l,n.length)},u:function(a,n){const l=a.getFullYear();return Ue(l,n.length)},Q:function(a,n,l){const r=Math.ceil((a.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return l.ordinalNumber(r,{unit:"quarter"});case"QQQ":return l.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return l.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return l.quarter(r,{width:"wide",context:"formatting"})}},q:function(a,n,l){const r=Math.ceil((a.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return l.ordinalNumber(r,{unit:"quarter"});case"qqq":return l.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return l.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return l.quarter(r,{width:"wide",context:"standalone"})}},M:function(a,n,l){const r=a.getMonth();switch(n){case"M":case"MM":return xn.M(a,n);case"Mo":return l.ordinalNumber(r+1,{unit:"month"});case"MMM":return l.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return l.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return l.month(r,{width:"wide",context:"formatting"})}},L:function(a,n,l){const r=a.getMonth();switch(n){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return l.ordinalNumber(r+1,{unit:"month"});case"LLL":return l.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return l.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return l.month(r,{width:"wide",context:"standalone"})}},w:function(a,n,l,r){const o=aC(a,r);return n==="wo"?l.ordinalNumber(o,{unit:"week"}):Ue(o,n.length)},I:function(a,n,l){const r=eC(a);return n==="Io"?l.ordinalNumber(r,{unit:"week"}):Ue(r,n.length)},d:function(a,n,l){return n==="do"?l.ordinalNumber(a.getDate(),{unit:"date"}):xn.d(a,n)},D:function(a,n,l){const r=IE(a);return n==="Do"?l.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,n.length)},E:function(a,n,l){const r=a.getDay();switch(n){case"E":case"EE":case"EEE":return l.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return l.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return l.day(r,{width:"short",context:"formatting"});case"EEEE":default:return l.day(r,{width:"wide",context:"formatting"})}},e:function(a,n,l,r){const o=a.getDay(),f=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(f);case"ee":return Ue(f,2);case"eo":return l.ordinalNumber(f,{unit:"day"});case"eee":return l.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return l.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return l.day(o,{width:"short",context:"formatting"});case"eeee":default:return l.day(o,{width:"wide",context:"formatting"})}},c:function(a,n,l,r){const o=a.getDay(),f=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(f);case"cc":return Ue(f,n.length);case"co":return l.ordinalNumber(f,{unit:"day"});case"ccc":return l.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return l.day(o,{width:"narrow",context:"standalone"});case"cccccc":return l.day(o,{width:"short",context:"standalone"});case"cccc":default:return l.day(o,{width:"wide",context:"standalone"})}},i:function(a,n,l){const r=a.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return Ue(o,n.length);case"io":return l.ordinalNumber(o,{unit:"day"});case"iii":return l.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return l.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return l.day(r,{width:"short",context:"formatting"});case"iiii":default:return l.day(r,{width:"wide",context:"formatting"})}},a:function(a,n,l){const o=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(a,n,l){const r=a.getHours();let o;switch(r===12?o=Ys.noon:r===0?o=Ys.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(a,n,l){const r=a.getHours();let o;switch(r>=17?o=Ys.evening:r>=12?o=Ys.afternoon:r>=4?o=Ys.morning:o=Ys.night,n){case"B":case"BB":case"BBB":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(a,n,l){if(n==="ho"){let r=a.getHours()%12;return r===0&&(r=12),l.ordinalNumber(r,{unit:"hour"})}return xn.h(a,n)},H:function(a,n,l){return n==="Ho"?l.ordinalNumber(a.getHours(),{unit:"hour"}):xn.H(a,n)},K:function(a,n,l){const r=a.getHours()%12;return n==="Ko"?l.ordinalNumber(r,{unit:"hour"}):Ue(r,n.length)},k:function(a,n,l){let r=a.getHours();return r===0&&(r=24),n==="ko"?l.ordinalNumber(r,{unit:"hour"}):Ue(r,n.length)},m:function(a,n,l){return n==="mo"?l.ordinalNumber(a.getMinutes(),{unit:"minute"}):xn.m(a,n)},s:function(a,n,l){return n==="so"?l.ordinalNumber(a.getSeconds(),{unit:"second"}):xn.s(a,n)},S:function(a,n){return xn.S(a,n)},X:function(a,n,l){const r=a.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Qx(r);case"XXXX":case"XX":return Fn(r);case"XXXXX":case"XXX":default:return Fn(r,":")}},x:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"x":return Qx(r);case"xxxx":case"xx":return Fn(r);case"xxxxx":case"xxx":default:return Fn(r,":")}},O:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Px(r,":");case"OOOO":default:return"GMT"+Fn(r,":")}},z:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Px(r,":");case"zzzz":default:return"GMT"+Fn(r,":")}},t:function(a,n,l){const r=Math.trunc(+a/1e3);return Ue(r,n.length)},T:function(a,n,l){return Ue(+a,n.length)}};function Px(a,n=""){const l=a>0?"-":"+",r=Math.abs(a),o=Math.trunc(r/60),f=r%60;return f===0?l+String(o):l+String(o)+n+Ue(f,2)}function Qx(a,n){return a%60===0?(a>0?"-":"+")+Ue(Math.abs(a)/60,2):Fn(a,n)}function Fn(a,n=""){const l=a>0?"-":"+",r=Math.abs(a),o=Ue(Math.trunc(r/60),2),f=Ue(r%60,2);return l+o+n+f}const Kx=(a,n)=>{switch(a){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Db=(a,n)=>{switch(a){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},nC=(a,n)=>{const l=a.match(/(P+)(p+)?/)||[],r=l[1],o=l[2];if(!o)return Kx(a,n);let f;switch(r){case"P":f=n.dateTime({width:"short"});break;case"PP":f=n.dateTime({width:"medium"});break;case"PPP":f=n.dateTime({width:"long"});break;case"PPPP":default:f=n.dateTime({width:"full"});break}return f.replace("{{date}}",Kx(r,n)).replace("{{time}}",Db(o,n))},sC={p:Db,P:nC},lC=/^D+$/,iC=/^Y+$/,rC=["D","DD","YY","YYYY"];function oC(a){return lC.test(a)}function uC(a){return iC.test(a)}function cC(a,n,l){const r=dC(a,n,l);if(console.warn(r),rC.includes(a))throw new RangeError(r)}function dC(a,n,l){const r=a[0]==="Y"?"years":"days of the month";return`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${r} to the input \`${l}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mC=/^'([^]*?)'?$/,pC=/''/g,gC=/[a-zA-Z]/;function xC(a,n,l){var y,v,S,k;const r=_o(),o=r.locale??WE,f=r.firstWeekContainsDate??((v=(y=r.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??1,h=r.weekStartsOn??((k=(S=r.locale)==null?void 0:S.options)==null?void 0:k.weekStartsOn)??0,m=fa(a,l==null?void 0:l.in);if(!yE(m))throw new RangeError("Invalid time value");let p=n.match(hC).map(N=>{const E=N[0];if(E==="p"||E==="P"){const M=sC[E];return M(N,o.formatLong)}return N}).join("").match(fC).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const E=N[0];if(E==="'")return{isToken:!1,value:yC(N)};if(Xx[E])return{isToken:!0,value:N};if(E.match(gC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:N}});o.localize.preprocessor&&(p=o.localize.preprocessor(m,p));const g={firstWeekContainsDate:f,weekStartsOn:h,locale:o};return p.map(N=>{if(!N.isToken)return N.value;const E=N.value;(uC(E)||oC(E))&&cC(E,n,String(a));const M=Xx[E[0]];return M(m,E,o.localize,g)}).join("")}function yC(a){const n=a.match(mC);return n?n[1].replace(pC,"'"):a}const Nd=["全部","日报","外勤打卡"],Fx={locationText:"",remark:""},vC={workContent:"",tomorrowPlan:"",sourceType:"manual"};function bC(a){return a?a==="updated"?"已更新":"已打卡":"待打卡"}function SC(a){return a?a==="reviewed"||a==="已点评"?"已点评":"已提交":"待提交"}function Zx(a){return a==="submitted"||a==="reviewed"||a==="已提交"||a==="已点评"}function wC(){const a=w.useRef(!1),[n,l]=w.useState(!0),[r,o]=w.useState(!1),[f,h]=w.useState(!1),[m,p]=w.useState(!1),[g,y]=w.useState(!1),[v,S]=w.useState("全部"),[k,N]=w.useState(""),[E,M]=w.useState(""),[A,z]=w.useState(""),[U,Y]=w.useState(""),[Q,ae]=w.useState(""),[K,B]=w.useState(""),[I,se]=w.useState([]),[de,pe]=w.useState(),[Ae,ve]=w.useState(),[$,R]=w.useState(Fx),[J,ee]=w.useState(vC),he=w.useMemo(()=>v==="全部"?I:I.filter(Z=>Z.type===v),[I,v]);w.useEffect(()=>{le()},[]),w.useEffect(()=>{n||a.current||(a.current=!0,T())},[n]);const W=()=>{if(f){h(!1);return}h(!0),window.setTimeout(()=>{ee(Z=>({...Z,workContent:Z.workContent+(Z.workContent?`
|
||
`:"")+"今天拜访了A市第一人民医院信息科主任,沟通了云桌面扩容需求,对方表示下个月会启动招标流程。",sourceType:"voice_assist"})),h(!1)},2e3)},T=async()=>{if(!navigator.geolocation){N("当前浏览器不支持定位,请手动填写当前位置。");return}z(""),o(!0),N("正在获取当前位置..."),navigator.geolocation.getCurrentPosition(async Z=>{const ce=Number(Z.coords.latitude.toFixed(6)),De=Number(Z.coords.longitude.toFixed(6));try{const ge=await F3(ce,De);R(ft=>({...ft,locationText:ge||`定位坐标:${ce}, ${De}`,latitude:ce,longitude:De})),N("定位已刷新,已为你填入具体地点名称。")}catch{R(ge=>({...ge,locationText:`定位坐标:${ce}, ${De}`,latitude:ce,longitude:De})),N("已获取坐标,但地点名称解析失败,你也可以手动补充。")}finally{o(!1)}},()=>{N("定位获取失败,请手动填写当前位置。"),o(!1)},{enableHighAccuracy:!0,timeout:1e4})},G=async()=>{var Z;if(!m){z(""),ae(""),p(!0);try{await Z3({locationText:$.locationText.trim(),remark:((Z=$.remark)==null?void 0:Z.trim())||void 0,longitude:$.longitude,latitude:$.latitude}),await le(),R(Fx),ae("打卡已记录,本日可继续新增打卡。")}catch(ce){z(ce instanceof Error?ce.message:"打卡提交失败")}finally{p(!1)}}},O=async()=>{if(!g){Y(""),B(""),y(!0);try{await J3({workContent:J.workContent.trim(),tomorrowPlan:J.tomorrowPlan.trim(),sourceType:J.sourceType||"manual"}),await le(),B("日报已保存,今日再次提交会覆盖当天内容。")}catch(Z){Y(Z instanceof Error?Z.message:"日报提交失败")}finally{y(!1)}}},ne=()=>{S(Z=>{const ce=Nd.indexOf(Z);return Nd[(ce+1)%Nd.length]})};async function le(){var Z,ce,De,ge,ft,bt,Ot;l(!0),M("");try{const tt=await K3();se(tt.history??[]),pe((Z=tt.todayCheckIn)==null?void 0:Z.status),ve((ce=tt.todayReport)==null?void 0:ce.status),R({locationText:"",remark:"",longitude:void 0,latitude:void 0}),ee({workContent:Zx((De=tt.todayReport)==null?void 0:De.status)?"":((ge=tt.todayReport)==null?void 0:ge.workContent)??"",tomorrowPlan:Zx((ft=tt.todayReport)==null?void 0:ft.status)?"":((bt=tt.todayReport)==null?void 0:bt.tomorrowPlan)??"",sourceType:((Ot=tt.todayReport)==null?void 0:Ot.sourceType)??"manual"})}catch(tt){M(tt instanceof Error?tt.message:"工作台数据加载失败"),se([]),pe(void 0),ve(void 0)}finally{l(!1)}}return d.jsxs("div",{className:"space-y-6",children:[d.jsx("header",{className:"flex items-center justify-between",children:d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),d.jsxs("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-1",children:["今天是 ",xC(new Date,"yyyy年MM月dd日 EEEE")]})]})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[d.jsxs("div",{className:"lg:col-span-7 xl:col-span-8 space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("div",{className:"h-6 w-1 bg-violet-600 rounded-full"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"今日工作"})]}),d.jsxs(Ze.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:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Md,{className:"h-5 w-5 text-emerald-500 dark:text-emerald-400"}),d.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"外勤打卡"})]}),d.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:n?"加载中...":bC(de)})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"当前位置"}),d.jsxs("button",{onClick:()=>void T(),disabled:r,className:"inline-flex items-center gap-1 rounded-full bg-violet-50 px-2.5 py-1 text-[11px] font-medium text-violet-600 transition-colors hover:bg-violet-100 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-violet-500/10 dark:text-violet-400 dark:hover:bg-violet-500/20",children:[d.jsx(Ok,{className:`h-3.5 w-3.5 ${r?"animate-spin":""}`}),r?"刷新中":"刷新定位"]})]}),d.jsx("textarea",{rows:3,value:$.locationText,onChange:Z=>R(ce=>({...ce,locationText:Z.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"}),k?d.jsx("p",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400",children:k}):null]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"备注说明 (选填)"}),d.jsx("textarea",{rows:2,value:$.remark??"",onChange:Z=>R(ce=>({...ce,remark:Z.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"})]})]}),d.jsxs("div",{className:"space-y-4 flex flex-col",children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"现场照片 (必填)"}),d.jsxs("div",{onClick:()=>void T(),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:[d.jsx(lk,{className:"mb-2 h-6 w-6 text-slate-400 dark:text-slate-500 group-hover:text-violet-500 transition-colors"}),d.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:r?"正在刷新定位...":"点击拍照"})]}),A?d.jsx("p",{className:"text-xs text-rose-500",children:A}):null,Q?d.jsx("p",{className:"text-xs text-emerald-500",children:Q}):null]})]}),d.jsxs("button",{onClick:()=>void G(),disabled:m||n,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 disabled:cursor-not-allowed disabled:opacity-60",children:[d.jsx(xy,{className:"h-4 w-4"}),m?"提交中...":"确认打卡"]})]}),d.jsxs(Ze.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:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(gy,{className:"h-5 w-5 text-violet-600 dark:text-violet-400"}),d.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"每日表"})]}),d.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:n?"加载中...":SC(Ae)})]}),d.jsxs("div",{className:"space-y-5",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[d.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"今日工作内容"]}),d.jsxs("button",{onClick:W,className:`flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium transition-all duration-300 ${f?"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:[d.jsx(Ck,{className:"h-3.5 w-3.5"}),f?"正在识别...":"语音输入 (HubMind)"]})]}),d.jsx("textarea",{rows:4,value:J.workContent,onChange:Z=>ee(ce=>({...ce,workContent:Z.target.value,sourceType:"manual"})),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"})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"mb-2 flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[d.jsx(wk,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"明日工作计划"]}),d.jsx("textarea",{rows:3,value:J.tomorrowPlan,onChange:Z=>ee(ce=>({...ce,tomorrowPlan:Z.target.value})),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"})]}),U?d.jsx("p",{className:"text-xs text-rose-500",children:U}):null,K?d.jsx("p",{className:"text-xs text-emerald-500",children:K}):null,E?d.jsx("p",{className:"text-xs text-rose-500",children:E}):null,d.jsxs("button",{onClick:()=>void O(),disabled:g||n,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 disabled:cursor-not-allowed disabled:opacity-60",children:[d.jsx(Vk,{className:"h-4 w-4"}),g?"提交中...":"提交日报"]})]})]})]}),d.jsxs("div",{className:"lg:col-span-5 xl:col-span-4 space-y-6 lg:sticky lg:top-6",children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"h-6 w-1 bg-slate-300 dark:bg-slate-700 rounded-full"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"历史记录"})]}),d.jsx("button",{onClick:ne,title:`当前筛选:${v}`,className:"p-2 text-slate-400 hover:text-violet-600 dark:hover:text-violet-400 transition-colors",children:d.jsx(gk,{className:"h-4 w-4"})})]}),d.jsxs("div",{className:"space-y-4 max-h-[calc(100vh-12rem)] overflow-y-auto pr-2 scrollbar-hide",children:[he.map((Z,ce)=>d.jsxs(Ze.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:ce*.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:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-full ${Z.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:Z.type==="日报"?d.jsx(xo,{className:"h-4 w-4"}):d.jsx(Md,{className:"h-4 w-4"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:Z.type}),d.jsx("p",{className:"text-[10px] text-slate-500 dark:text-slate-400",children:[Z.date,Z.time].filter(Boolean).join(" ")})]})]}),d.jsxs("div",{className:"flex flex-col items-end gap-1",children:[d.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-medium ${Z.status==="已点评"?"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400":Z.status==="已阅"||Z.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:Z.status}),Z.score?d.jsxs("span",{className:"text-[10px] font-bold text-rose-600 dark:text-rose-400",children:[Z.score,"分"]}):null]})]}),d.jsxs("div",{className:"pl-11",children:[d.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-300 line-clamp-2 leading-relaxed whitespace-pre-line",children:Z.content}),Z.comment?d.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:[d.jsx("p",{className:"text-[10px] font-medium text-slate-900 dark:text-white mb-0.5",children:"主管点评:"}),d.jsx("p",{className:"text-[10px] text-slate-600 dark:text-slate-400",children:Z.comment})]}):null]})]},`${Z.type}-${Z.id}-${ce}`)),!n&&he.length===0?d.jsxs("div",{className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 text-center text-sm text-slate-400 dark:text-slate-500 shadow-sm",children:["当前没有",v==="全部"?"":v,"记录"]}):null]})]})]})]})}const kC=[{key:"personal",icon:di,label:"个人资料",color:"text-blue-500 dark:text-blue-400",bg:"bg-blue-50 dark:bg-blue-500/10"},{key:"notice",icon:Jw,label:"消息通知",color:"text-amber-500 dark:text-amber-400",bg:"bg-amber-50 dark:bg-amber-500/10"},{key:"security",icon:Hk,label:"账号安全",color:"text-emerald-500 dark:text-emerald-400",bg:"bg-emerald-50 dark:bg-emerald-500/10"},{key:"help",icon:dk,label:"帮助中心",color:"text-violet-500 dark:text-violet-400",bg:"bg-violet-50 dark:bg-violet-500/10"}],jC={displayName:"",email:"",phone:""};function Ha(a){return a&&a.trim()?a:"无"}function Ir(a){return typeof a=="number"&&Number.isFinite(a)?a:0}function NC({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(Ze.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-40 bg-slate-900/25 backdrop-blur-sm dark:bg-slate-900/70"}),d.jsx(Ze.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-50 p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto h-full w-full sm:max-w-3xl",children:d.jsxs("div",{className:"flex h-full flex-col overflow-hidden border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n})]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(bi,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o})]})})})]})}function TC(){var Ae,ve;const{theme:a,setTheme:n}=Yy(),l=yi(),[r,o]=w.useState(null),[f,h]=w.useState(null),[m,p]=w.useState(null),[g,y]=w.useState(!1),[v,S]=w.useState(jC),[k,N]=w.useState(!1),[E,M]=w.useState(!1),[A,z]=w.useState("");w.useEffect(()=>{let $=!1;async function R(){try{const J=await fo(),[ee,he]=await Promise.all([zx(),Sd(J.userId)]);$||(o(ee),h(J),p(he))}catch{$||(o(null),h(null),p(null))}}return R(),()=>{$=!0}},[]);const U=()=>{Xf(),l("/login",{replace:!0})},Y=async()=>{N(!0),z("");try{const $=await fo(),R=await Sd($.userId);h($),p(R),S({userId:$.userId,username:$.username,displayName:$.displayName||"",email:$.email||"",phone:$.phone||"",pwdResetRequired:$.pwdResetRequired,isPlatformAdmin:$.isPlatformAdmin,orgId:R.orgId}),y(!0)}catch($){z($ instanceof Error?$.message:"获取个人资料失败"),y(!0)}finally{N(!1)}},Q=()=>{E||(y(!1),z(""))},ae=async()=>{if(!E){M(!0),z("");try{await P3({...v,email:v.email||void 0,phone:v.phone||void 0});const $=await fo(),[R,J]=await Promise.all([zx(),Sd($.userId)]);o(R),h($),p(J),S({userId:$.userId,username:$.username,displayName:$.displayName||"",email:$.email||"",phone:$.phone||"",pwdResetRequired:$.pwdResetRequired,isPlatformAdmin:$.isPlatformAdmin,orgId:J.orgId}),y(!1)}catch($){z($ instanceof Error?$.message:"保存失败")}finally{M(!1)}}},K=Ha((f==null?void 0:f.displayName)||(r==null?void 0:r.realName)),B=Ha((Ae=m==null?void 0:m.roles)==null?void 0:Ae.map($=>$.roleName).filter(Boolean).join("、")),I=Ha((ve=m==null?void 0:m.memberships)==null?void 0:ve.map($=>$.orgName).filter(Boolean).join("、")),se=K==="无"?"无":K.slice(0,1),de=Ha(f==null?void 0:f.email),pe=Ha(f==null?void 0:f.phone);return d.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[d.jsx("header",{className:"flex items-center justify-between",children:d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"我的"})}),d.jsxs(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-2xl border border-slate-100 bg-white p-4 shadow-sm backdrop-blur-sm transition-all dark:border-slate-800 dark:bg-slate-900/50 sm:p-6",children:[d.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-start sm:justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center rounded-full bg-violet-100 text-2xl font-bold text-violet-600 dark:bg-violet-500/20 dark:text-violet-400",children:se}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("h2",{className:"truncate text-xl font-bold text-slate-900 dark:text-white",children:K}),d.jsxs("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[B," · ",I]})]})]}),d.jsx("button",{className:"self-end rounded-full bg-slate-50 p-2 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:bg-slate-800 dark:text-slate-500 dark:hover:bg-slate-700 dark:hover:text-slate-300 sm:self-start",children:d.jsx(Lk,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-3 border-t border-slate-50 pt-6 dark:border-slate-800/50 sm:grid-cols-3 sm:gap-0 sm:divide-x sm:divide-slate-100 dark:sm:divide-slate-800",children:[d.jsxs("div",{className:"rounded-2xl bg-slate-50 px-4 py-4 text-center dark:bg-slate-800/40 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:Ir(r==null?void 0:r.monthlyOpportunityCount)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"本月商机"})]}),d.jsxs("div",{className:"rounded-2xl bg-slate-50 px-4 py-4 text-center dark:bg-slate-800/40 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:Ir(r==null?void 0:r.monthlyExpansionCount)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"本月拓展"})]}),d.jsxs("div",{className:"rounded-2xl bg-slate-50 px-4 py-4 text-center dark:bg-slate-800/40 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:Ir(r==null?void 0:r.averageScore)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"平均分"})]})]})]}),d.jsx(Ze.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-sm backdrop-blur-sm transition-all dark:border-slate-800 dark:bg-slate-900/50",children:d.jsxs("ul",{className:"divide-y divide-slate-50 dark:divide-slate-800/50",children:[d.jsx("li",{children:d.jsxs("button",{onClick:()=>n(a==="dark"?"light":"dark"),className:"flex w-full items-center justify-between p-4 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50 md:hidden",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-slate-100 dark:bg-slate-800",children:a==="dark"?d.jsx(ky,{className:"h-5 w-5 text-amber-500"}):d.jsx(by,{className:"h-5 w-5 text-indigo-500"})}),d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:a==="dark"?"切换亮色模式":"切换暗色模式"})]}),d.jsx(go,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})}),kC.map($=>d.jsx("li",{children:d.jsxs("button",{onClick:$.key==="personal"?()=>void Y():void 0,className:"flex w-full items-center justify-between p-4 text-left transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-xl ${$.bg}`,children:d.jsx($.icon,{className:`h-5 w-5 ${$.color}`})}),d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:$.label})]}),d.jsx(go,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})},$.key))]})}),d.jsxs(Ze.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},onClick:U,className:"flex w-full items-center justify-center gap-2 rounded-2xl border border-rose-100 bg-rose-50 p-4 text-sm font-semibold text-rose-600 transition-all hover:bg-rose-100 active:scale-[0.98] dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-400 dark:hover:bg-rose-500/20",children:[d.jsx(jk,{className:"h-5 w-5"}),"退出登录"]}),d.jsx(Ya,{children:g&&d.jsx(NC,{title:"个人资料",subtitle:"个人资料编辑复用了 unisbase-spring-boot-starter 提供的 /sys/api/users 接口。",onClose:Q,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:Q,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void ae(),disabled:E||k,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:E?"保存中...":"保存资料"})]}),children:A&&!f?d.jsx("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:A}):d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex flex-col gap-4 rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20 sm:flex-row sm:items-center",children:[d.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-violet-100 text-2xl font-bold text-violet-600 dark:bg-violet-500/20 dark:text-violet-400",children:(v.displayName||(f==null?void 0:f.displayName)||"无").slice(0,1)}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("div",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:Ha(f==null?void 0:f.displayName)}),d.jsxs("div",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[B," · ",I]}),d.jsxs("div",{className:"mt-2 text-xs text-slate-400 dark:text-slate-500",children:["账号:",Ha(f==null?void 0:f.username)]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"显示名称"}),d.jsx("input",{value:v.displayName,onChange:$=>S(R=>({...R,displayName:$.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"用户名"}),d.jsx("div",{className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/40 dark:text-slate-400",children:Ha(f==null?void 0:f.username)})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-slate-700 dark:text-slate-300",children:[d.jsx(no,{className:"h-4 w-4 text-slate-400"}),"手机号"]}),d.jsx("input",{value:v.phone,onChange:$=>S(R=>({...R,phone:$.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-slate-700 dark:text-slate-300",children:[d.jsx(vy,{className:"h-4 w-4 text-slate-400"}),"邮箱"]}),d.jsx("input",{value:v.email,onChange:$=>S(R=>({...R,email:$.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(py,{className:"h-4 w-4 text-violet-500"}),"岗位信息"]}),d.jsxs("div",{className:"mt-3 space-y-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["岗位:",B]}),d.jsxs("p",{children:["状态:",Ha(r==null?void 0:r.accountStatus)]})]})]}),d.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(ao,{className:"h-4 w-4 text-emerald-500"}),"组织信息"]}),d.jsxs("div",{className:"mt-3 space-y-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["部门:",I]}),d.jsxs("p",{className:"flex items-center gap-2",children:[d.jsx(gy,{className:"h-4 w-4 text-slate-400"}),"入职天数:",Ir(r==null?void 0:r.onboardingDays)]})]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/70 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-400",children:["当前手机号:",pe]}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/70 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-400",children:["当前邮箱:",de]})]}),A?d.jsx("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:A}):null]})})})]})}const EC={username:"",password:"",tenantCode:"",captchaCode:"",remember:!0};function CC(){const a=yi(),[n,l]=Uw(),[r,o]=w.useState(EC),[f,h]=w.useState(null),[m,p]=w.useState(!0),[g,y]=w.useState(null),[v,S]=w.useState(!1),[k,N]=w.useState(!0),[E,M]=w.useState(""),A="紫光汇智CRM系统",z=(g==null?void 0:g.systemDescription)||"聚焦客户拓展、商机推进与销售协同,让团队每天的工作节奏更清晰。",U=w.useMemo(()=>g!=null&&g.loginBgUrl?{backgroundImage:`linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(241, 245, 249, 0.94)), url(${g.loginBgUrl})`}:void 0,[g==null?void 0:g.loginBgUrl]),Y=async()=>{if(!m)return;const K=await Y3();h(K)};if(w.useEffect(()=>{const K=localStorage.getItem("rememberedUsername");K&&o(B=>({...B,username:K}))},[]),w.useEffect(()=>{(async()=>{try{const[B,I]=await Promise.all([G3("security.captcha.enabled","true").catch(()=>"true"),X3().catch(()=>null)]);y(I);const se=B!=="false";p(se),se&&await Y()}catch{p(!0);try{await Y()}catch{h(null)}}finally{N(!1)}})()},[]),w.useEffect(()=>{if(n.get("timeout")==="1"){M("登录超时,请重新登录");const K=new URLSearchParams(n);K.delete("timeout"),l(K,{replace:!0})}},[n,l]),Eb())return d.jsx(uy,{to:"/",replace:!0});const Q=(K,B)=>{o(I=>({...I,[K]:B})),M("")},ae=async K=>{if(K.preventDefault(),!v){if(!r.username.trim()||!r.password.trim()){M("请输入用户名和密码");return}if(m&&!r.captchaCode.trim()){M("请输入验证码");return}S(!0),M("");try{const B=await q3({username:r.username.trim(),password:r.password,tenantCode:r.tenantCode.trim()||void 0,captchaId:m?f==null?void 0:f.captchaId:void 0,captchaCode:m?r.captchaCode.trim():void 0});B3(B,r.username.trim()),r.remember?localStorage.setItem("rememberedUsername",r.username.trim()):localStorage.removeItem("rememberedUsername");try{const I=await fo();sessionStorage.setItem("userProfile",JSON.stringify(I))}catch{sessionStorage.removeItem("userProfile")}a("/",{replace:!0})}catch(B){if(Xf(),M(B instanceof Error?B.message:"登录失败,请稍后重试"),o(I=>({...I,captchaCode:""})),m)try{await Y()}catch{h(null)}}finally{S(!1)}}};return d.jsxs("div",{className:"login-page-shell",style:U,children:[d.jsx("div",{className:"login-page-backdrop"}),d.jsxs("div",{className:"login-page-grid",children:[d.jsxs("section",{className:"login-page-brand",children:[d.jsxs("div",{className:"login-brand-lockup",children:[d.jsx("div",{className:"login-brand-mark",children:g!=null&&g.logoUrl?d.jsx("img",{src:g.logoUrl,alt:A}):d.jsx("span",{children:"紫"})}),d.jsxs("div",{children:[d.jsx("p",{className:"login-brand-kicker",children:"智慧销售协同平台"}),d.jsx("h1",{children:A})]})]}),d.jsxs("div",{className:"login-hero-copy",children:[d.jsx("p",{className:"login-hero-tag",children:"Sales Workspace"}),d.jsxs("h2",{children:["统一客户管理",d.jsx("br",{}),"高效推进业务增长"]}),d.jsx("p",{children:z})]}),d.jsxs("div",{className:"login-brand-meta",children:[d.jsx("span",{children:"首页"}),d.jsx("span",{children:"拓展"}),d.jsx("span",{children:"商机"}),d.jsx("span",{children:"工作"}),d.jsx("span",{children:"我的"})]})]}),d.jsx("section",{className:"login-panel",children:d.jsxs("div",{className:"login-panel-card",children:[d.jsxs("div",{className:"login-panel-header",children:[d.jsx("p",{className:"login-panel-eyebrow",children:"欢迎回来"}),d.jsx("h3",{children:"紫光汇智CRM系统"})]}),d.jsxs("form",{className:"login-form",onSubmit:ae,children:[d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"用户名"}),d.jsx("input",{autoComplete:"username",value:r.username,onChange:K=>Q("username",K.target.value),placeholder:"请输入用户名"})]}),d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"密码"}),d.jsx("input",{type:"password",autoComplete:"current-password",value:r.password,onChange:K=>Q("password",K.target.value),placeholder:"请输入密码"})]}),d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"租户编码"}),d.jsx("input",{value:r.tenantCode,onChange:K=>Q("tenantCode",K.target.value),placeholder:"可选,不填则按后端默认租户登录"})]}),m?d.jsxs("div",{className:"login-field",children:[d.jsx("span",{children:"验证码"}),d.jsxs("div",{className:"login-captcha-row",children:[d.jsx("input",{value:r.captchaCode,onChange:K=>Q("captchaCode",K.target.value),placeholder:"请输入验证码"}),d.jsx("button",{className:"login-captcha-button",type:"button",onClick:()=>void Y(),disabled:k,children:f!=null&&f.imageBase64?d.jsx("img",{src:f.imageBase64,alt:"验证码"}):d.jsx("span",{children:k?"加载中...":"刷新验证码"})})]})]}):null,d.jsx("div",{className:"login-form-meta",children:d.jsxs("label",{className:"login-checkbox",children:[d.jsx("input",{type:"checkbox",checked:r.remember,onChange:K=>Q("remember",K.target.checked)}),d.jsx("span",{children:"记住用户名"})]})}),E?d.jsx("div",{className:"login-error",children:E}):null,d.jsx("button",{className:"login-submit",type:"submit",disabled:v||k,children:v?"登录中...":"立即登录"})]})]})})]})]})}function MC({children:a}){return Eb()?a:d.jsx(uy,{to:"/login",replace:!0})}function AC(){return d.jsx(Hj,{defaultTheme:"light",storageKey:"crm-theme",children:d.jsx(Rw,{children:d.jsxs(rw,{children:[d.jsx(yn,{path:"/login",element:d.jsx(CC,{})}),d.jsxs(yn,{path:"/",element:d.jsx(MC,{children:d.jsx(U3,{})}),children:[d.jsx(yn,{index:!0,element:d.jsx(oE,{})}),d.jsx(yn,{path:"expansion",element:d.jsx(uE,{})}),d.jsx(yn,{path:"opportunities",element:d.jsx(dE,{})}),d.jsx(yn,{path:"work",element:d.jsx(wC,{})}),d.jsx(yn,{path:"profile",element:d.jsx(TC,{})})]})]})})})}rS.createRoot(document.getElementById("root")).render(d.jsx(w.StrictMode,{children:d.jsx(AC,{})}));
|