@sampleapp.ai/sdk 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat-bar/typing-textarea.js +144 -0
- package/dist/components/chat-bar/voice-button/voice-icon.js +129 -0
- package/dist/components/chat-bar/voice-button.js +42 -0
- package/dist/components/chat-bar/voice-overlay.js +190 -0
- package/dist/components/chat-bar.js +546 -0
- package/dist/components/ui/button.js +141 -0
- package/dist/components/ui/card.js +77 -0
- package/dist/components/ui/textarea.js +68 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.es.js +6468 -95
- package/dist/index.js +4 -1
- package/dist/index.umd.js +96 -15
- package/dist/themes.js +189 -0
- package/package.json +5 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function($e,ga){typeof exports=="object"&&typeof module<"u"?ga(exports):typeof define=="function"&&define.amd?define(["exports"],ga):($e=typeof globalThis<"u"?globalThis:$e||self,ga($e.SampleApp={}))})(this,(function($e){"use strict";function ga(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ur={exports:{}},ot={},tf;function ig(){if(tf)return ot;tf=1;/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function A(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,K={};function Z(T,b,O){this.props=T,this.context=b,this.refs=K,this.updater=O||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(T,b){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,b,"setState")},Z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=Z.prototype;function q(T,b,O){this.props=T,this.context=b,this.refs=K,this.updater=O||w}var G=q.prototype=new Q;G.constructor=q,L(G,Z.prototype),G.isPureReactComponent=!0;var I=Array.isArray,Y={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function et(T,b,O,V,H,J){return O=J.ref,{$$typeof:a,type:T,key:b,ref:O!==void 0?O:null,props:J}}function W(T,b){return et(T.type,b,void 0,void 0,void 0,T.props)}function gt(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function St(T){var b={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(O){return b[O]})}var vt=/\/+/g;function xt(T,b){return typeof T=="object"&&T!==null&&T.key!=null?St(""+T.key):b.toString(36)}function Vt(){}function Kt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Vt,Vt):(T.status="pending",T.then(function(b){T.status==="pending"&&(T.status="fulfilled",T.value=b)},function(b){T.status==="pending"&&(T.status="rejected",T.reason=b)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Dt(T,b,O,V,H){var J=typeof T;(J==="undefined"||J==="boolean")&&(T=null);var k=!1;if(T===null)k=!0;else switch(J){case"bigint":case"string":case"number":k=!0;break;case"object":switch(T.$$typeof){case a:case l:k=!0;break;case g:return k=T._init,Dt(k(T._payload),b,O,V,H)}}if(k)return H=H(T),k=V===""?"."+xt(T,0):V,I(H)?(O="",k!=null&&(O=k.replace(vt,"$&/")+"/"),Dt(H,b,O,"",function(bt){return bt})):H!=null&&(gt(H)&&(H=W(H,O+(H.key==null||T&&T.key===H.key?"":(""+H.key).replace(vt,"$&/")+"/")+k)),b.push(H)),1;k=0;var yt=V===""?".":V+":";if(I(T))for(var rt=0;rt<T.length;rt++)V=T[rt],J=yt+xt(V,rt),k+=Dt(V,b,O,J,H);else if(rt=A(T),typeof rt=="function")for(T=rt.call(T),rt=0;!(V=T.next()).done;)V=V.value,J=yt+xt(V,rt++),k+=Dt(V,b,O,J,H);else if(J==="object"){if(typeof T.then=="function")return Dt(Kt(T),b,O,V,H);throw b=String(T),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.")}return k}function z(T,b,O){if(T==null)return T;var V=[],H=0;return Dt(T,V,"","",function(J){return b.call(O,J,H++)}),V}function j(T){if(T._status===-1){var b=T._result;b=b(),b.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=b)}if(T._status===1)return T._result.default;throw T._result}var P=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var b=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(b))return}console.error(T)};function at(){}return ot.Children={map:z,forEach:function(T,b,O){z(T,function(){b.apply(this,arguments)},O)},count:function(T){var b=0;return z(T,function(){b++}),b},toArray:function(T){return z(T,function(b){return b})||[]},only:function(T){if(!gt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ot.Component=Z,ot.Fragment=r,ot.Profiler=c,ot.PureComponent=q,ot.StrictMode=u,ot.Suspense=m,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ot.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},ot.cache=function(T){return function(){return T.apply(null,arguments)}},ot.cloneElement=function(T,b,O){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var V=L({},T.props),H=T.key,J=void 0;if(b!=null)for(k in b.ref!==void 0&&(J=void 0),b.key!==void 0&&(H=""+b.key),b)!F.call(b,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&b.ref===void 0||(V[k]=b[k]);var k=arguments.length-2;if(k===1)V.children=O;else if(1<k){for(var yt=Array(k),rt=0;rt<k;rt++)yt[rt]=arguments[rt+2];V.children=yt}return et(T.type,H,void 0,void 0,J,V)},ot.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},ot.createElement=function(T,b,O){var V,H={},J=null;if(b!=null)for(V in b.key!==void 0&&(J=""+b.key),b)F.call(b,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(H[V]=b[V]);var k=arguments.length-2;if(k===1)H.children=O;else if(1<k){for(var yt=Array(k),rt=0;rt<k;rt++)yt[rt]=arguments[rt+2];H.children=yt}if(T&&T.defaultProps)for(V in k=T.defaultProps,k)H[V]===void 0&&(H[V]=k[V]);return et(T,J,void 0,void 0,null,H)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(T){return{$$typeof:y,render:T}},ot.isValidElement=gt,ot.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:j}},ot.memo=function(T,b){return{$$typeof:p,type:T,compare:b===void 0?null:b}},ot.startTransition=function(T){var b=Y.T,O={};Y.T=O;try{var V=T(),H=Y.S;H!==null&&H(O,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(at,P)}catch(J){P(J)}finally{Y.T=b}},ot.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ot.use=function(T){return Y.H.use(T)},ot.useActionState=function(T,b,O){return Y.H.useActionState(T,b,O)},ot.useCallback=function(T,b){return Y.H.useCallback(T,b)},ot.useContext=function(T){return Y.H.useContext(T)},ot.useDebugValue=function(){},ot.useDeferredValue=function(T,b){return Y.H.useDeferredValue(T,b)},ot.useEffect=function(T,b,O){var V=Y.H;if(typeof O=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(T,b)},ot.useId=function(){return Y.H.useId()},ot.useImperativeHandle=function(T,b,O){return Y.H.useImperativeHandle(T,b,O)},ot.useInsertionEffect=function(T,b){return Y.H.useInsertionEffect(T,b)},ot.useLayoutEffect=function(T,b){return Y.H.useLayoutEffect(T,b)},ot.useMemo=function(T,b){return Y.H.useMemo(T,b)},ot.useOptimistic=function(T,b){return Y.H.useOptimistic(T,b)},ot.useReducer=function(T,b,O){return Y.H.useReducer(T,b,O)},ot.useRef=function(T){return Y.H.useRef(T)},ot.useState=function(T){return Y.H.useState(T)},ot.useSyncExternalStore=function(T,b,O){return Y.H.useSyncExternalStore(T,b,O)},ot.useTransition=function(){return Y.H.useTransition()},ot.version="19.1.1",ot}var ef;function or(){return ef||(ef=1,ur.exports=ig()),ur.exports}var pt=or();const nf=ga(pt);var cr={exports:{}},mi={},fr={exports:{}},dr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var af;function lg(){return af||(af=1,(function(a){function l(z,j){var P=z.length;z.push(j);t:for(;0<P;){var at=P-1>>>1,T=z[at];if(0<c(T,j))z[at]=j,z[P]=T,P=at;else break t}}function r(z){return z.length===0?null:z[0]}function u(z){if(z.length===0)return null;var j=z[0],P=z.pop();if(P!==j){z[0]=P;t:for(var at=0,T=z.length,b=T>>>1;at<b;){var O=2*(at+1)-1,V=z[O],H=O+1,J=z[H];if(0>c(V,P))H<T&&0>c(J,V)?(z[at]=J,z[H]=P,at=H):(z[at]=V,z[O]=P,at=O);else if(H<T&&0>c(J,P))z[at]=J,z[H]=P,at=H;else break t}}return j}function c(z,j){var P=z.sortIndex-j.sortIndex;return P!==0?P:z.id-j.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,y=f.now();a.unstable_now=function(){return f.now()-y}}var m=[],p=[],g=1,x=null,A=3,w=!1,L=!1,K=!1,Z=!1,Q=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var j=r(p);j!==null;){if(j.callback===null)u(p);else if(j.startTime<=z)u(p),j.sortIndex=j.expirationTime,l(m,j);else break;j=r(p)}}function Y(z){if(K=!1,I(z),!L)if(r(m)!==null)L=!0,F||(F=!0,xt());else{var j=r(p);j!==null&&Dt(Y,j.startTime-z)}}var F=!1,et=-1,W=5,gt=-1;function St(){return Z?!0:!(a.unstable_now()-gt<W)}function vt(){if(Z=!1,F){var z=a.unstable_now();gt=z;var j=!0;try{t:{L=!1,K&&(K=!1,q(et),et=-1),w=!0;var P=A;try{e:{for(I(z),x=r(m);x!==null&&!(x.expirationTime>z&&St());){var at=x.callback;if(typeof at=="function"){x.callback=null,A=x.priorityLevel;var T=at(x.expirationTime<=z);if(z=a.unstable_now(),typeof T=="function"){x.callback=T,I(z),j=!0;break e}x===r(m)&&u(m),I(z)}else u(m);x=r(m)}if(x!==null)j=!0;else{var b=r(p);b!==null&&Dt(Y,b.startTime-z),j=!1}}break t}finally{x=null,A=P,w=!1}j=void 0}}finally{j?xt():F=!1}}}var xt;if(typeof G=="function")xt=function(){G(vt)};else if(typeof MessageChannel<"u"){var Vt=new MessageChannel,Kt=Vt.port2;Vt.port1.onmessage=vt,xt=function(){Kt.postMessage(null)}}else xt=function(){Q(vt,0)};function Dt(z,j){et=Q(function(){z(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(z){z.callback=null},a.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<z?Math.floor(1e3/z):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(z){switch(A){case 1:case 2:case 3:var j=3;break;default:j=A}var P=A;A=j;try{return z()}finally{A=P}},a.unstable_requestPaint=function(){Z=!0},a.unstable_runWithPriority=function(z,j){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var P=A;A=z;try{return j()}finally{A=P}},a.unstable_scheduleCallback=function(z,j,P){var at=a.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?at+P:at):P=at,z){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=P+T,z={id:g++,callback:j,priorityLevel:z,startTime:P,expirationTime:T,sortIndex:-1},P>at?(z.sortIndex=P,l(p,z),r(m)===null&&z===r(p)&&(K?(q(et),et=-1):K=!0,Dt(Y,P-at))):(z.sortIndex=T,l(m,z),L||w||(L=!0,F||(F=!0,xt()))),z},a.unstable_shouldYield=St,a.unstable_wrapCallback=function(z){var j=A;return function(){var P=A;A=j;try{return z.apply(this,arguments)}finally{A=P}}}})(dr)),dr}var lf;function sg(){return lf||(lf=1,fr.exports=lg()),fr.exports}var hr={exports:{}},se={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var sf;function rg(){if(sf)return se;sf=1;var a=or();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(m,p,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:m,containerInfo:p,implementation:g}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,se.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return h(m,p,null,g)},se.flushSync=function(m){var p=f.T,g=u.p;try{if(f.T=null,u.p=2,m)return m()}finally{f.T=p,u.p=g,u.d.f()}},se.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(m,p))},se.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},se.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,x=y(g,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?u.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:A,fetchPriority:w}):g==="script"&&u.d.X(m,{crossOrigin:x,integrity:A,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},se.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=y(p.as,p.crossOrigin);u.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(m)},se.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,x=y(g,p.crossOrigin);u.d.L(m,g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},se.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=y(p.as,p.crossOrigin);u.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(m)},se.requestFormReset=function(m){u.d.r(m)},se.unstable_batchedUpdates=function(m,p){return m(p)},se.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},se.useFormStatus=function(){return f.H.useHostTransitionStatus()},se.version="19.1.1",se}var rf;function ug(){if(rf)return hr.exports;rf=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(l){console.error(l)}}return a(),hr.exports=rg(),hr.exports}var uf;function og(){if(uf)return mi;uf=1;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom-client.production.js
|
|
28
28
|
*
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var z=rd(),nl=Cn(),G=md();function r(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)t+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function L(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function F(l){var t=l,u=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(u=t.return),l=t.return;while(l)}return t.tag===3?u:null}function yl(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function _l(l){if(F(l)!==l)throw Error(r(188))}function _(l){var t=l.alternate;if(!t){if(t=F(l),t===null)throw Error(r(188));return t!==l?null:l}for(var u=l,a=t;;){var e=u.return;if(e===null)break;var n=e.alternate;if(n===null){if(a=e.return,a!==null){u=a;continue}break}if(e.child===n.child){for(n=e.child;n;){if(n===u)return _l(e),l;if(n===a)return _l(e),t;n=n.sibling}throw Error(r(188))}if(u.return!==a.return)u=e,a=n;else{for(var f=!1,c=e.child;c;){if(c===u){f=!0,u=e,a=n;break}if(c===a){f=!0,a=e,u=n;break}c=c.sibling}if(!f){for(c=n.child;c;){if(c===u){f=!0,u=n,a=e;break}if(c===a){f=!0,a=n,u=e;break}c=c.sibling}if(!f)throw Error(r(189))}}if(u.alternate!==a)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?l:t}function E(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=E(l),t!==null)return t;l=l.sibling}return null}var p=Object.assign,fl=Symbol.for("react.element"),al=Symbol.for("react.transitional.element"),ql=Symbol.for("react.portal"),Bl=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),Cl=Symbol.for("react.profiler"),yu=Symbol.for("react.provider"),zt=Symbol.for("react.consumer"),pl=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),Vl=Symbol.for("react.suspense_list"),Ll=Symbol.for("react.memo"),Kl=Symbol.for("react.lazy"),mt=Symbol.for("react.activity"),Bu=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function Rl(l){return l===null||typeof l!="object"?null:(l=_t&&l[_t]||l["@@iterator"],typeof l=="function"?l:null)}var vu=Symbol.for("react.client.reference");function ru(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===vu?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Bl:return"Fragment";case Cl:return"Profiler";case dt:return"StrictMode";case K:return"Suspense";case Vl:return"SuspenseList";case mt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case ql:return"Portal";case pl:return(l.displayName||"Context")+".Provider";case zt:return(l._context.displayName||"Context")+".Consumer";case yt:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Ll:return t=l.displayName||null,t!==null?t:ru(l.type)||"Memo";case Kl:t=l._payload,l=l._init;try{return ru(l(t))}catch{}}return null}var Hl=Array.isArray,S=nl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=G.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},tl=[],s=-1;function A(l){return{current:l}}function D(l){0>s||(l.current=tl[s],tl[s]=null,s--)}function M(l,t){s++,tl[s]=l.current,l.current=t}var H=A(null),J=A(null),Y=A(null),Jl=A(null);function cl(l,t){switch(M(Y,t),M(J,l),M(H,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Xo(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Xo(t),l=jo(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}D(H),M(H,l)}function jt(){D(H),D(J),D(Y)}function Kn(l){l.memoizedState!==null&&M(Jl,l);var t=H.current,u=jo(t,l.type);t!==u&&(M(J,l),M(H,u))}function Te(l){J.current===l&&(D(H),D(J)),Jl.current===l&&(D(Jl),he._currentValue=q)}var Jn=Object.prototype.hasOwnProperty,wn=z.unstable_scheduleCallback,Wn=z.unstable_cancelCallback,Od=z.unstable_shouldYield,Dd=z.unstable_requestPaint,gt=z.unstable_now,Ud=z.unstable_getCurrentPriorityLevel,bi=z.unstable_ImmediatePriority,Ti=z.unstable_UserBlockingPriority,Ee=z.unstable_NormalPriority,pd=z.unstable_LowPriority,Ei=z.unstable_IdlePriority,Rd=z.log,Hd=z.unstable_setDisableYieldValue,za=null,wl=null;function Zt(l){if(typeof Rd=="function"&&Hd(l),wl&&typeof wl.setStrictMode=="function")try{wl.setStrictMode(za,l)}catch{}}var Wl=Math.clz32?Math.clz32:qd,Nd=Math.log,xd=Math.LN2;function qd(l){return l>>>=0,l===0?32:31-(Nd(l)/xd|0)|0}var Ae=256,ze=4194304;function hu(l){var t=l&42;if(t!==0)return t;switch(l&-l){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:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function _e(l,t,u){var a=l.pendingLanes;if(a===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?e=hu(a):(f&=c,f!==0?e=hu(f):u||(u=c&~l,u!==0&&(e=hu(u))))):(c=a&~n,c!==0?e=hu(c):f!==0?e=hu(f):u||(u=a&~l,u!==0&&(e=hu(u)))),e===0?0:t!==0&&t!==e&&(t&n)===0&&(n=e&-e,u=t&-t,n>=u||n===32&&(u&4194048)!==0)?t:e}function _a(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Bd(l,t){switch(l){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 Ai(){var l=Ae;return Ae<<=1,(Ae&4194048)===0&&(Ae=256),l}function zi(){var l=ze;return ze<<=1,(ze&62914560)===0&&(ze=4194304),l}function kn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function Ma(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Yd(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,v=l.hiddenUpdates;for(u=f&~u;0<u;){var g=31-Wl(u),T=1<<g;c[g]=0,i[g]=-1;var h=v[g];if(h!==null)for(v[g]=null,g=0;g<h.length;g++){var m=h[g];m!==null&&(m.lane&=-536870913)}u&=~T}a!==0&&_i(l,a,0),n!==0&&e===0&&l.tag!==0&&(l.suspendedLanes|=n&~(f&~t))}function _i(l,t,u){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-Wl(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|u&4194090}function Mi(l,t){var u=l.entangledLanes|=t;for(l=l.entanglements;u;){var a=31-Wl(u),e=1<<a;e&t|l[a]&t&&(l[a]|=t),u&=~e}}function $n(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Fn(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Oi(){var l=O.p;return l!==0?l:(l=window.event,l===void 0?32:fd(l.type))}function Cd(l,t){var u=O.p;try{return O.p=l,t()}finally{O.p=u}}var Vt=Math.random().toString(36).slice(2),Nl="__reactFiber$"+Vt,Gl="__reactProps$"+Vt,Yu="__reactContainer$"+Vt,In="__reactEvents$"+Vt,Gd="__reactListeners$"+Vt,Qd="__reactHandles$"+Vt,Di="__reactResources$"+Vt,Oa="__reactMarker$"+Vt;function Pn(l){delete l[Nl],delete l[Gl],delete l[In],delete l[Gd],delete l[Qd]}function Cu(l){var t=l[Nl];if(t)return t;for(var u=l.parentNode;u;){if(t=u[Yu]||u[Nl]){if(u=t.alternate,t.child!==null||u!==null&&u.child!==null)for(l=Ko(l);l!==null;){if(u=l[Nl])return u;l=Ko(l)}return t}l=u,u=l.parentNode}return null}function Gu(l){if(l=l[Nl]||l[Yu]){var t=l.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return l}return null}function Da(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(r(33))}function Qu(l){var t=l[Di];return t||(t=l[Di]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tl(l){l[Oa]=!0}var Ui=new Set,pi={};function mu(l,t){Xu(l,t),Xu(l+"Capture",t)}function Xu(l,t){for(pi[l]=t,l=0;l<t.length;l++)Ui.add(t[l])}var Xd=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]*$"),Ri={},Hi={};function jd(l){return Jn.call(Hi,l)?!0:Jn.call(Ri,l)?!1:Xd.test(l)?Hi[l]=!0:(Ri[l]=!0,!1)}function Me(l,t,u){if(jd(t))if(u===null)l.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+u)}}function Oe(l,t,u){if(u===null)l.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+u)}}function Mt(l,t,u,a){if(a===null)l.removeAttribute(u);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(u);return}l.setAttributeNS(t,u,""+a)}}var lf,Ni;function ju(l){if(lf===void 0)try{throw Error()}catch(u){var t=u.stack.trim().match(/\n( *(at )?)/);lf=t&&t[1]||"",Ni=-1<u.stack.indexOf(`
|
|
34
|
-
at`)?" (<anonymous>)":-1<
|
|
35
|
-
`+
|
|
36
|
-
`),v
|
|
37
|
-
`);for(
|
|
38
|
-
`+i
|
|
39
|
-
Error generating stack: `+
|
|
40
|
-
`+u.stack}}function ut(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function qi(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vd(l){var t=qi(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function De(l){l._valueTracker||(l._valueTracker=Vd(l))}function Bi(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=qi(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function Ue(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Ld=/[\n"\\]/g;function at(l){return l.replace(Ld,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function af(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+ut(t)):l.value!==""+ut(t)&&(l.value=""+ut(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?ef(l,f,ut(t)):u!=null?ef(l,f,ut(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+ut(c):l.removeAttribute("name")}function Yi(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+ut(u):"",t=t!=null?""+ut(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function ef(l,t,u){t==="number"&&Ue(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Zu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e<u.length;e++)t["$"+u[e]]=!0;for(u=0;u<l.length;u++)e=t.hasOwnProperty("$"+l[u].value),l[u].selected!==e&&(l[u].selected=e),e&&a&&(l[u].defaultSelected=!0)}else{for(u=""+ut(u),t=null,e=0;e<l.length;e++){if(l[e].value===u){l[e].selected=!0,a&&(l[e].defaultSelected=!0);return}t!==null||l[e].disabled||(t=l[e])}t!==null&&(t.selected=!0)}}function Ci(l,t,u){if(t!=null&&(t=""+ut(t),t!==l.value&&(l.value=t),u==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=u!=null?""+ut(u):""}function Gi(l,t,u,a){if(t==null){if(a!=null){if(u!=null)throw Error(r(92));if(Hl(a)){if(1<a.length)throw Error(r(93));a=a[0]}u=a}u==null&&(u=""),t=u}u=ut(t),l.defaultValue=u,a=l.textContent,a===u&&a!==""&&a!==null&&(l.value=a)}function Vu(l,t){if(t){var u=l.firstChild;if(u&&u===l.lastChild&&u.nodeType===3){u.nodeValue=t;return}}l.textContent=t}var Kd=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 Qi(l,t,u){var a=t.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,u):typeof u!="number"||u===0||Kd.has(t)?t==="float"?l.cssFloat=u:l[t]=(""+u).trim():l[t]=u+"px"}function Xi(l,t,u){if(t!=null&&typeof t!="object")throw Error(r(62));if(l=l.style,u!=null){for(var a in u)!u.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var e in t)a=t[e],t.hasOwnProperty(e)&&u[e]!==a&&Qi(l,e,a)}else for(var n in t)t.hasOwnProperty(n)&&Qi(l,n,t[n])}function nf(l){if(l.indexOf("-")===-1)return!1;switch(l){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 Jd=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"]]),wd=/^[\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 pe(l){return wd.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var ff=null;function cf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Lu=null,Ku=null;function ji(l){var t=Gu(l);if(t&&(l=t.stateNode)){var u=l[Gl]||null;l:switch(l=t.stateNode,t.type){case"input":if(af(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),t=u.name,u.type==="radio"&&t!=null){for(u=l;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+at(""+t)+'"][type="radio"]'),t=0;t<u.length;t++){var a=u[t];if(a!==l&&a.form===l.form){var e=a[Gl]||null;if(!e)throw Error(r(90));af(a,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name)}}for(t=0;t<u.length;t++)a=u[t],a.form===l.form&&Bi(a)}break l;case"textarea":Ci(l,u.value,u.defaultValue);break l;case"select":t=u.value,t!=null&&Zu(l,!!u.multiple,t,!1)}}}var sf=!1;function Zi(l,t,u){if(sf)return l(t,u);sf=!0;try{var a=l(t);return a}finally{if(sf=!1,(Lu!==null||Ku!==null)&&(hn(),Lu&&(t=Lu,l=Ku,Ku=Lu=null,ji(t),l)))for(t=0;t<l.length;t++)ji(l[t])}}function Ua(l,t){var u=l.stateNode;if(u===null)return null;var a=u[Gl]||null;if(a===null)return null;u=a[t];l:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(u&&typeof u!="function")throw Error(r(231,t,typeof u));return u}var Ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),of=!1;if(Ot)try{var pa={};Object.defineProperty(pa,"passive",{get:function(){of=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{of=!1}var Lt=null,df=null,Re=null;function Vi(){if(Re)return Re;var l,t=df,u=t.length,a,e="value"in Lt?Lt.value:Lt.textContent,n=e.length;for(l=0;l<u&&t[l]===e[l];l++);var f=u-l;for(a=1;a<=f&&t[u-a]===e[n-a];a++);return Re=e.slice(l,1<a?1-a:void 0)}function He(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function Ne(){return!0}function Li(){return!1}function Ql(l){function t(u,a,e,n,f){this._reactName=u,this._targetInst=e,this.type=a,this.nativeEvent=n,this.target=f,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(u=l[c],this[c]=u?u(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Ne:Li,this.isPropagationStopped=Li,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Ne)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Ne)},persist:function(){},isPersistent:Ne}),t}var gu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xe=Ql(gu),Ra=p({},gu,{view:0,detail:0}),Wd=Ql(Ra),yf,vf,Ha,qe=p({},Ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hf,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Ha&&(Ha&&l.type==="mousemove"?(yf=l.screenX-Ha.screenX,vf=l.screenY-Ha.screenY):vf=yf=0,Ha=l),yf)},movementY:function(l){return"movementY"in l?l.movementY:vf}}),Ki=Ql(qe),kd=p({},qe,{dataTransfer:0}),$d=Ql(kd),Fd=p({},Ra,{relatedTarget:0}),rf=Ql(Fd),Id=p({},gu,{animationName:0,elapsedTime:0,pseudoElement:0}),Pd=Ql(Id),ly=p({},gu,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),ty=Ql(ly),uy=p({},gu,{data:0}),Ji=Ql(uy),ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ey={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"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fy(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=ny[l])?!!t[l]:!1}function hf(){return fy}var cy=p({},Ra,{key:function(l){if(l.key){var t=ay[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=He(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?ey[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hf,charCode:function(l){return l.type==="keypress"?He(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?He(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),iy=Ql(cy),sy=p({},qe,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wi=Ql(sy),oy=p({},Ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hf}),dy=Ql(oy),yy=p({},gu,{propertyName:0,elapsedTime:0,pseudoElement:0}),vy=Ql(yy),ry=p({},qe,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),hy=Ql(ry),my=p({},gu,{newState:0,oldState:0}),gy=Ql(my),Sy=[9,13,27,32],mf=Ot&&"CompositionEvent"in window,Na=null;Ot&&"documentMode"in document&&(Na=document.documentMode);var by=Ot&&"TextEvent"in window&&!Na,Wi=Ot&&(!mf||Na&&8<Na&&11>=Na),ki=" ",$i=!1;function Fi(l,t){switch(l){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ii(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ju=!1;function Ty(l,t){switch(l){case"compositionend":return Ii(t);case"keypress":return t.which!==32?null:($i=!0,ki);case"textInput":return l=t.data,l===ki&&$i?null:l;default:return null}}function Ey(l,t){if(Ju)return l==="compositionend"||!mf&&Fi(l,t)?(l=Vi(),Re=df=Lt=null,Ju=!1,l):null;switch(l){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 Wi&&t.locale!=="ko"?null:t.data;default:return null}}var Ay={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 Pi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!Ay[l.type]:t==="textarea"}function ls(l,t,u,a){Lu?Ku?Ku.push(a):Ku=[a]:Lu=a,t=En(t,"onChange"),0<t.length&&(u=new xe("onChange","change",null,u,a),l.push({event:u,listeners:t}))}var xa=null,qa=null;function zy(l){Bo(l,0)}function Be(l){var t=Da(l);if(Bi(t))return l}function ts(l,t){if(l==="change")return t}var us=!1;if(Ot){var gf;if(Ot){var Sf="oninput"in document;if(!Sf){var as=document.createElement("div");as.setAttribute("oninput","return;"),Sf=typeof as.oninput=="function"}gf=Sf}else gf=!1;us=gf&&(!document.documentMode||9<document.documentMode)}function es(){xa&&(xa.detachEvent("onpropertychange",ns),qa=xa=null)}function ns(l){if(l.propertyName==="value"&&Be(qa)){var t=[];ls(t,qa,l,cf(l)),Zi(zy,t)}}function _y(l,t,u){l==="focusin"?(es(),xa=t,qa=u,xa.attachEvent("onpropertychange",ns)):l==="focusout"&&es()}function My(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Be(qa)}function Oy(l,t){if(l==="click")return Be(t)}function Dy(l,t){if(l==="input"||l==="change")return Be(t)}function Uy(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var kl=typeof Object.is=="function"?Object.is:Uy;function Ba(l,t){if(kl(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var u=Object.keys(l),a=Object.keys(t);if(u.length!==a.length)return!1;for(a=0;a<u.length;a++){var e=u[a];if(!Jn.call(t,e)||!kl(l[e],t[e]))return!1}return!0}function fs(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function cs(l,t){var u=fs(l);l=0;for(var a;u;){if(u.nodeType===3){if(a=l+u.textContent.length,l<=t&&a>=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=fs(u)}}function is(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?is(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ss(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Ue(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=Ue(l.document)}return t}function bf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var py=Ot&&"documentMode"in document&&11>=document.documentMode,wu=null,Tf=null,Ya=null,Ef=!1;function os(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ef||wu==null||wu!==Ue(a)||(a=wu,"selectionStart"in a&&bf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ya&&Ba(Ya,a)||(Ya=a,a=En(Tf,"onSelect"),0<a.length&&(t=new xe("onSelect","select",null,t,u),l.push({event:t,listeners:a}),t.target=wu)))}function Su(l,t){var u={};return u[l.toLowerCase()]=t.toLowerCase(),u["Webkit"+l]="webkit"+t,u["Moz"+l]="moz"+t,u}var Wu={animationend:Su("Animation","AnimationEnd"),animationiteration:Su("Animation","AnimationIteration"),animationstart:Su("Animation","AnimationStart"),transitionrun:Su("Transition","TransitionRun"),transitionstart:Su("Transition","TransitionStart"),transitioncancel:Su("Transition","TransitionCancel"),transitionend:Su("Transition","TransitionEnd")},Af={},ds={};Ot&&(ds=document.createElement("div").style,"AnimationEvent"in window||(delete Wu.animationend.animation,delete Wu.animationiteration.animation,delete Wu.animationstart.animation),"TransitionEvent"in window||delete Wu.transitionend.transition);function bu(l){if(Af[l])return Af[l];if(!Wu[l])return l;var t=Wu[l],u;for(u in t)if(t.hasOwnProperty(u)&&u in ds)return Af[l]=t[u];return l}var ys=bu("animationend"),vs=bu("animationiteration"),rs=bu("animationstart"),Ry=bu("transitionrun"),Hy=bu("transitionstart"),Ny=bu("transitioncancel"),hs=bu("transitionend"),ms=new Map,zf="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(" ");zf.push("scrollEnd");function vt(l,t){ms.set(l,t),mu(t,[l])}var gs=new WeakMap;function et(l,t){if(typeof l=="object"&&l!==null){var u=gs.get(l);return u!==void 0?u:(t={value:l,source:t,stack:xi(t)},gs.set(l,t),t)}return{value:l,source:t,stack:xi(t)}}var nt=[],ku=0,_f=0;function Ye(){for(var l=ku,t=_f=ku=0;t<l;){var u=nt[t];nt[t++]=null;var a=nt[t];nt[t++]=null;var e=nt[t];nt[t++]=null;var n=nt[t];if(nt[t++]=null,a!==null&&e!==null){var f=a.pending;f===null?e.next=e:(e.next=f.next,f.next=e),a.pending=e}n!==0&&Ss(u,e,n)}}function Ce(l,t,u,a){nt[ku++]=l,nt[ku++]=t,nt[ku++]=u,nt[ku++]=a,_f|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function Mf(l,t,u,a){return Ce(l,t,u,a),Ge(l)}function $u(l,t){return Ce(l,null,null,t),Ge(l)}function Ss(l,t,u){l.lanes|=u;var a=l.alternate;a!==null&&(a.lanes|=u);for(var e=!1,n=l.return;n!==null;)n.childLanes|=u,a=n.alternate,a!==null&&(a.childLanes|=u),n.tag===22&&(l=n.stateNode,l===null||l._visibility&1||(e=!0)),l=n,n=n.return;return l.tag===3?(n=l.stateNode,e&&t!==null&&(e=31-Wl(u),l=n.hiddenUpdates,a=l[e],a===null?l[e]=[t]:a.push(t),t.lane=u|536870912),n):null}function Ge(l){if(50<ce)throw ce=0,Hc=null,Error(r(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var Fu={};function xy(l,t,u,a){this.tag=l,this.key=u,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $l(l,t,u,a){return new xy(l,t,u,a)}function Of(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Dt(l,t){var u=l.alternate;return u===null?(u=$l(l.tag,t,l.key,l.mode),u.elementType=l.elementType,u.type=l.type,u.stateNode=l.stateNode,u.alternate=l,l.alternate=u):(u.pendingProps=t,u.type=l.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=l.flags&65011712,u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,t=l.dependencies,u.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},u.sibling=l.sibling,u.index=l.index,u.ref=l.ref,u.refCleanup=l.refCleanup,u}function bs(l,t){l.flags&=65011714;var u=l.alternate;return u===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,t=u.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function Qe(l,t,u,a,e,n){var f=0;if(a=l,typeof l=="function")Of(l)&&(f=1);else if(typeof l=="string")f=Bv(l,u,H.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case mt:return l=$l(31,u,t,e),l.elementType=mt,l.lanes=n,l;case Bl:return Tu(u.children,e,n,t);case dt:f=8,e|=24;break;case Cl:return l=$l(12,u,t,e|2),l.elementType=Cl,l.lanes=n,l;case K:return l=$l(13,u,t,e),l.elementType=K,l.lanes=n,l;case Vl:return l=$l(19,u,t,e),l.elementType=Vl,l.lanes=n,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case yu:case pl:f=10;break l;case zt:f=9;break l;case yt:f=11;break l;case Ll:f=14;break l;case Kl:f=16,a=null;break l}f=29,u=Error(r(130,l===null?"null":typeof l,"")),a=null}return t=$l(f,u,t,e),t.elementType=l,t.type=a,t.lanes=n,t}function Tu(l,t,u,a){return l=$l(7,l,a,t),l.lanes=u,l}function Df(l,t,u){return l=$l(6,l,null,t),l.lanes=u,l}function Uf(l,t,u){return t=$l(4,l.children!==null?l.children:[],l.key,t),t.lanes=u,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var Iu=[],Pu=0,Xe=null,je=0,ft=[],ct=0,Eu=null,Ut=1,pt="";function Au(l,t){Iu[Pu++]=je,Iu[Pu++]=Xe,Xe=l,je=t}function Ts(l,t,u){ft[ct++]=Ut,ft[ct++]=pt,ft[ct++]=Eu,Eu=l;var a=Ut;l=pt;var e=32-Wl(a)-1;a&=~(1<<e),u+=1;var n=32-Wl(t)+e;if(30<n){var f=e-e%5;n=(a&(1<<f)-1).toString(32),a>>=f,e-=f,Ut=1<<32-Wl(t)+e|u<<e|a,pt=n+l}else Ut=1<<n|u<<e|a,pt=l}function pf(l){l.return!==null&&(Au(l,1),Ts(l,1,0))}function Rf(l){for(;l===Xe;)Xe=Iu[--Pu],Iu[Pu]=null,je=Iu[--Pu],Iu[Pu]=null;for(;l===Eu;)Eu=ft[--ct],ft[ct]=null,pt=ft[--ct],ft[ct]=null,Ut=ft[--ct],ft[ct]=null}var Yl=null,ol=null,W=!1,zu=null,St=!1,Hf=Error(r(519));function _u(l){var t=Error(r(418,""));throw Qa(et(t,l)),Hf}function Es(l){var t=l.stateNode,u=l.type,a=l.memoizedProps;switch(t[Nl]=l,t[Gl]=a,u){case"dialog":Z("cancel",t),Z("close",t);break;case"iframe":case"object":case"embed":Z("load",t);break;case"video":case"audio":for(u=0;u<se.length;u++)Z(se[u],t);break;case"source":Z("error",t);break;case"img":case"image":case"link":Z("error",t),Z("load",t);break;case"details":Z("toggle",t);break;case"input":Z("invalid",t),Yi(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),De(t);break;case"select":Z("invalid",t);break;case"textarea":Z("invalid",t),Gi(t,a.value,a.defaultValue,a.children),De(t)}u=a.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||t.textContent===""+u||a.suppressHydrationWarning===!0||Qo(t.textContent,u)?(a.popover!=null&&(Z("beforetoggle",t),Z("toggle",t)),a.onScroll!=null&&Z("scroll",t),a.onScrollEnd!=null&&Z("scrollend",t),a.onClick!=null&&(t.onclick=An),t=!0):t=!1,t||_u(l)}function As(l){for(Yl=l.return;Yl;)switch(Yl.tag){case 5:case 13:St=!1;return;case 27:case 3:St=!0;return;default:Yl=Yl.return}}function Ca(l){if(l!==Yl)return!1;if(!W)return As(l),W=!0,!1;var t=l.tag,u;if((u=t!==3&&t!==27)&&((u=t===5)&&(u=l.type,u=!(u!=="form"&&u!=="button")||wc(l.type,l.memoizedProps)),u=!u),u&&ol&&_u(l),As(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l:{for(l=l.nextSibling,t=0;l;){if(l.nodeType===8)if(u=l.data,u==="/$"){if(t===0){ol=ht(l.nextSibling);break l}t--}else u!=="$"&&u!=="$!"&&u!=="$?"||t++;l=l.nextSibling}ol=null}}else t===27?(t=ol,fu(l.type)?(l=Fc,Fc=null,ol=l):ol=t):ol=Yl?ht(l.stateNode.nextSibling):null;return!0}function Ga(){ol=Yl=null,W=!1}function zs(){var l=zu;return l!==null&&(Zl===null?Zl=l:Zl.push.apply(Zl,l),zu=null),l}function Qa(l){zu===null?zu=[l]:zu.push(l)}var Nf=A(null),Mu=null,Rt=null;function Kt(l,t,u){M(Nf,t._currentValue),t._currentValue=u}function Ht(l){l._currentValue=Nf.current,D(Nf)}function xf(l,t,u){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===u)break;l=l.return}}function qf(l,t,u,a){var e=l.child;for(e!==null&&(e.return=l);e!==null;){var n=e.dependencies;if(n!==null){var f=e.child;n=n.firstContext;l:for(;n!==null;){var c=n;n=e;for(var i=0;i<t.length;i++)if(c.context===t[i]){n.lanes|=u,c=n.alternate,c!==null&&(c.lanes|=u),xf(n.return,u,l),a||(f=null);break l}n=c.next}}else if(e.tag===18){if(f=e.return,f===null)throw Error(r(341));f.lanes|=u,n=f.alternate,n!==null&&(n.lanes|=u),xf(f,u,l),f=null}else f=e.child;if(f!==null)f.return=e;else for(f=e;f!==null;){if(f===l){f=null;break}if(e=f.sibling,e!==null){e.return=f.return,f=e;break}f=f.return}e=f}}function Xa(l,t,u,a){l=null;for(var e=t,n=!1;e!==null;){if(!n){if((e.flags&524288)!==0)n=!0;else if((e.flags&262144)!==0)break}if(e.tag===10){var f=e.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var c=e.type;kl(e.pendingProps.value,f.value)||(l!==null?l.push(c):l=[c])}}else if(e===Jl.current){if(f=e.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==e.memoizedState.memoizedState&&(l!==null?l.push(he):l=[he])}e=e.return}l!==null&&qf(t,l,u,a),t.flags|=262144}function Ze(l){for(l=l.firstContext;l!==null;){if(!kl(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Ou(l){Mu=l,Rt=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function xl(l){return _s(Mu,l)}function Ve(l,t){return Mu===null&&Ou(l),_s(l,t)}function _s(l,t){var u=t._currentValue;if(t={context:t,memoizedValue:u,next:null},Rt===null){if(l===null)throw Error(r(308));Rt=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Rt=Rt.next=t;return u}var qy=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(u,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(u){return u()})}},By=z.unstable_scheduleCallback,Yy=z.unstable_NormalPriority,Sl={$$typeof:pl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bf(){return{controller:new qy,data:new Map,refCount:0}}function ja(l){l.refCount--,l.refCount===0&&By(Yy,function(){l.controller.abort()})}var Za=null,Yf=0,la=0,ta=null;function Cy(l,t){if(Za===null){var u=Za=[];Yf=0,la=Gc(),ta={status:"pending",value:void 0,then:function(a){u.push(a)}}}return Yf++,t.then(Ms,Ms),t}function Ms(){if(--Yf===0&&Za!==null){ta!==null&&(ta.status="fulfilled");var l=Za;Za=null,la=0,ta=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function Gy(l,t){var u=[],a={status:"pending",value:null,reason:null,then:function(e){u.push(e)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var e=0;e<u.length;e++)(0,u[e])(t)},function(e){for(a.status="rejected",a.reason=e,e=0;e<u.length;e++)(0,u[e])(void 0)}),a}var Os=S.S;S.S=function(l,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cy(l,t),Os!==null&&Os(l,t)};var Du=A(null);function Cf(){var l=Du.current;return l!==null?l:el.pooledCache}function Le(l,t){t===null?M(Du,Du.current):M(Du,t.pool)}function Ds(){var l=Cf();return l===null?null:{parent:Sl._currentValue,pool:l}}var Va=Error(r(460)),Us=Error(r(474)),Ke=Error(r(542)),Gf={then:function(){}};function ps(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Je(){}function Rs(l,t,u){switch(u=l[u],u===void 0?l.push(t):u!==t&&(t.then(Je,Je),t=u),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Ns(l),l;default:if(typeof t.status=="string")t.then(Je,Je);else{if(l=el,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=t,l.status="pending",l.then(function(a){if(t.status==="pending"){var e=t;e.status="fulfilled",e.value=a}},function(a){if(t.status==="pending"){var e=t;e.status="rejected",e.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Ns(l),l}throw La=t,Va}}var La=null;function Hs(){if(La===null)throw Error(r(459));var l=La;return La=null,l}function Ns(l){if(l===Va||l===Ke)throw Error(r(483))}var Jt=!1;function Qf(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xf(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function wt(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Wt(l,t,u){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(k&2)!==0){var e=a.pending;return e===null?t.next=t:(t.next=e.next,e.next=t),a.pending=t,t=Ge(l),Ss(l,null,u),t}return Ce(l,a,t,u),Ge(l)}function Ka(l,t,u){if(t=t.updateQueue,t!==null&&(t=t.shared,(u&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,Mi(l,u)}}function jf(l,t){var u=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,u===a)){var e=null,n=null;if(u=u.firstBaseUpdate,u!==null){do{var f={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};n===null?e=n=f:n=n.next=f,u=u.next}while(u!==null);n===null?e=n=t:n=n.next=t}else e=n=t;u={baseState:a.baseState,firstBaseUpdate:e,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},l.updateQueue=u;return}l=u.lastBaseUpdate,l===null?u.firstBaseUpdate=t:l.next=t,u.lastBaseUpdate=t}var Zf=!1;function Ja(){if(Zf){var l=ta;if(l!==null)throw l}}function wa(l,t,u,a){Zf=!1;var e=l.updateQueue;Jt=!1;var n=e.firstBaseUpdate,f=e.lastBaseUpdate,c=e.shared.pending;if(c!==null){e.shared.pending=null;var i=c,v=i.next;i.next=null,f===null?n=v:f.next=v,f=i;var g=l.alternate;g!==null&&(g=g.updateQueue,c=g.lastBaseUpdate,c!==f&&(c===null?g.firstBaseUpdate=v:c.next=v,g.lastBaseUpdate=i))}if(n!==null){var T=e.baseState;f=0,g=v=i=null,c=n;do{var h=c.lane&-536870913,m=h!==c.lane;if(m?(V&h)===h:(a&h)===h){h!==0&&h===la&&(Zf=!0),g!==null&&(g=g.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var B=l,N=c;h=t;var ll=u;switch(N.tag){case 1:if(B=N.payload,typeof B=="function"){T=B.call(ll,T,h);break l}T=B;break l;case 3:B.flags=B.flags&-65537|128;case 0:if(B=N.payload,h=typeof B=="function"?B.call(ll,T,h):B,h==null)break l;T=p({},T,h);break l;case 2:Jt=!0}}h=c.callback,h!==null&&(l.flags|=64,m&&(l.flags|=8192),m=e.callbacks,m===null?e.callbacks=[h]:m.push(h))}else m={lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},g===null?(v=g=m,i=T):g=g.next=m,f|=h;if(c=c.next,c===null){if(c=e.shared.pending,c===null)break;m=c,c=m.next,m.next=null,e.lastBaseUpdate=m,e.shared.pending=null}}while(!0);g===null&&(i=T),e.baseState=i,e.firstBaseUpdate=v,e.lastBaseUpdate=g,n===null&&(e.shared.lanes=0),uu|=f,l.lanes=f,l.memoizedState=T}}function xs(l,t){if(typeof l!="function")throw Error(r(191,l));l.call(t)}function qs(l,t){var u=l.callbacks;if(u!==null)for(l.callbacks=null,l=0;l<u.length;l++)xs(u[l],t)}var ua=A(null),we=A(0);function Bs(l,t){l=Gt,M(we,l),M(ua,t),Gt=l|t.baseLanes}function Vf(){M(we,Gt),M(ua,ua.current)}function Lf(){Gt=we.current,D(ua),D(we)}var kt=0,Q=null,I=null,ml=null,We=!1,aa=!1,Uu=!1,ke=0,Wa=0,ea=null,Qy=0;function vl(){throw Error(r(321))}function Kf(l,t){if(t===null)return!1;for(var u=0;u<t.length&&u<l.length;u++)if(!kl(l[u],t[u]))return!1;return!0}function Jf(l,t,u,a,e,n){return kt=n,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,S.H=l===null||l.memoizedState===null?S0:b0,Uu=!1,n=u(a,e),Uu=!1,aa&&(n=Cs(t,u,a,e)),Ys(l),n}function Ys(l){S.H=tn;var t=I!==null&&I.next!==null;if(kt=0,ml=I=Q=null,We=!1,Wa=0,ea=null,t)throw Error(r(300));l===null||El||(l=l.dependencies,l!==null&&Ze(l)&&(El=!0))}function Cs(l,t,u,a){Q=l;var e=0;do{if(aa&&(ea=null),Wa=0,aa=!1,25<=e)throw Error(r(301));if(e+=1,ml=I=null,l.updateQueue!=null){var n=l.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}S.H=Jy,n=t(u,a)}while(aa);return n}function Xy(){var l=S.H,t=l.useState()[0];return t=typeof t.then=="function"?ka(t):t,l=l.useState()[0],(I!==null?I.memoizedState:null)!==l&&(Q.flags|=1024),t}function wf(){var l=ke!==0;return ke=0,l}function Wf(l,t,u){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~u}function kf(l){if(We){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}We=!1}kt=0,ml=I=Q=null,aa=!1,Wa=ke=0,ea=null}function Xl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ml===null?Q.memoizedState=ml=l:ml=ml.next=l,ml}function gl(){if(I===null){var l=Q.alternate;l=l!==null?l.memoizedState:null}else l=I.next;var t=ml===null?Q.memoizedState:ml.next;if(t!==null)ml=t,I=l;else{if(l===null)throw Q.alternate===null?Error(r(467)):Error(r(310));I=l,l={memoizedState:I.memoizedState,baseState:I.baseState,baseQueue:I.baseQueue,queue:I.queue,next:null},ml===null?Q.memoizedState=ml=l:ml=ml.next=l}return ml}function $f(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ka(l){var t=Wa;return Wa+=1,ea===null&&(ea=[]),l=Rs(ea,l,t),t=Q,(ml===null?t.memoizedState:ml.next)===null&&(t=t.alternate,S.H=t===null||t.memoizedState===null?S0:b0),l}function $e(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return ka(l);if(l.$$typeof===pl)return xl(l)}throw Error(r(438,String(l)))}function Ff(l){var t=null,u=Q.updateQueue;if(u!==null&&(t=u.memoCache),t==null){var a=Q.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(e){return e.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),u===null&&(u=$f(),Q.updateQueue=u),u.memoCache=t,u=t.data[t.index],u===void 0)for(u=t.data[t.index]=Array(l),a=0;a<l;a++)u[a]=Bu;return t.index++,u}function Nt(l,t){return typeof t=="function"?t(l):t}function Fe(l){var t=gl();return If(t,I,l)}function If(l,t,u){var a=l.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=u;var e=l.baseQueue,n=a.pending;if(n!==null){if(e!==null){var f=e.next;e.next=n.next,n.next=f}t.baseQueue=e=n,a.pending=null}if(n=l.baseState,e===null)l.memoizedState=n;else{t=e.next;var c=f=null,i=null,v=t,g=!1;do{var T=v.lane&-536870913;if(T!==v.lane?(V&T)===T:(kt&T)===T){var h=v.revertLane;if(h===0)i!==null&&(i=i.next={lane:0,revertLane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),T===la&&(g=!0);else if((kt&h)===h){v=v.next,h===la&&(g=!0);continue}else T={lane:0,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},i===null?(c=i=T,f=n):i=i.next=T,Q.lanes|=h,uu|=h;T=v.action,Uu&&u(n,T),n=v.hasEagerState?v.eagerState:u(n,T)}else h={lane:T,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},i===null?(c=i=h,f=n):i=i.next=h,Q.lanes|=T,uu|=T;v=v.next}while(v!==null&&v!==t);if(i===null?f=n:i.next=c,!kl(n,l.memoizedState)&&(El=!0,g&&(u=ta,u!==null)))throw u;l.memoizedState=n,l.baseState=f,l.baseQueue=i,a.lastRenderedState=n}return e===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function Pf(l){var t=gl(),u=t.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var a=u.dispatch,e=u.pending,n=t.memoizedState;if(e!==null){u.pending=null;var f=e=e.next;do n=l(n,f.action),f=f.next;while(f!==e);kl(n,t.memoizedState)||(El=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),u.lastRenderedState=n}return[n,a]}function Gs(l,t,u){var a=Q,e=gl(),n=W;if(n){if(u===void 0)throw Error(r(407));u=u()}else u=t();var f=!kl((I||e).memoizedState,u);f&&(e.memoizedState=u,El=!0),e=e.queue;var c=js.bind(null,a,e,l);if($a(2048,8,c,[l]),e.getSnapshot!==t||f||ml!==null&&ml.memoizedState.tag&1){if(a.flags|=2048,na(9,Ie(),Xs.bind(null,a,e,u,t),null),el===null)throw Error(r(349));n||(kt&124)!==0||Qs(a,t,u)}return u}function Qs(l,t,u){l.flags|=16384,l={getSnapshot:t,value:u},t=Q.updateQueue,t===null?(t=$f(),Q.updateQueue=t,t.stores=[l]):(u=t.stores,u===null?t.stores=[l]:u.push(l))}function Xs(l,t,u,a){t.value=u,t.getSnapshot=a,Zs(t)&&Vs(l)}function js(l,t,u){return u(function(){Zs(t)&&Vs(l)})}function Zs(l){var t=l.getSnapshot;l=l.value;try{var u=t();return!kl(l,u)}catch{return!0}}function Vs(l){var t=$u(l,2);t!==null&&tt(t,l,2)}function lc(l){var t=Xl();if(typeof l=="function"){var u=l;if(l=u(),Uu){Zt(!0);try{u()}finally{Zt(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:l},t}function Ls(l,t,u,a){return l.baseState=u,If(l,I,typeof a=="function"?a:Nt)}function jy(l,t,u,a,e){if(ln(l))throw Error(r(485));if(l=t.action,l!==null){var n={payload:e,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){n.listeners.push(f)}};S.T!==null?u(!0):n.isTransition=!1,a(n),u=t.pending,u===null?(n.next=t.pending=n,Ks(t,n)):(n.next=u.next,t.pending=u.next=n)}}function Ks(l,t){var u=t.action,a=t.payload,e=l.state;if(t.isTransition){var n=S.T,f={};S.T=f;try{var c=u(e,a),i=S.S;i!==null&&i(f,c),Js(l,t,c)}catch(v){tc(l,t,v)}finally{S.T=n}}else try{n=u(e,a),Js(l,t,n)}catch(v){tc(l,t,v)}}function Js(l,t,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(a){ws(l,t,a)},function(a){return tc(l,t,a)}):ws(l,t,u)}function ws(l,t,u){t.status="fulfilled",t.value=u,Ws(t),l.state=u,t=l.pending,t!==null&&(u=t.next,u===t?l.pending=null:(u=u.next,t.next=u,Ks(l,u)))}function tc(l,t,u){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=u,Ws(t),t=t.next;while(t!==a)}l.action=null}function Ws(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function ks(l,t){return t}function $s(l,t){if(W){var u=el.formState;if(u!==null){l:{var a=Q;if(W){if(ol){t:{for(var e=ol,n=St;e.nodeType!==8;){if(!n){e=null;break t}if(e=ht(e.nextSibling),e===null){e=null;break t}}n=e.data,e=n==="F!"||n==="F"?e:null}if(e){ol=ht(e.nextSibling),a=e.data==="F!";break l}}_u(a)}a=!1}a&&(t=u[0])}}return u=Xl(),u.memoizedState=u.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},u.queue=a,u=h0.bind(null,Q,a),a.dispatch=u,a=lc(!1),n=fc.bind(null,Q,!1,a.queue),a=Xl(),e={state:t,dispatch:null,action:l,pending:null},a.queue=e,u=jy.bind(null,Q,e,n,u),e.dispatch=u,a.memoizedState=l,[t,u,!1]}function Fs(l){var t=gl();return Is(t,I,l)}function Is(l,t,u){if(t=If(l,t,ks)[0],l=Fe(Nt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ka(t)}catch(f){throw f===Va?Ke:f}else a=t;t=gl();var e=t.queue,n=e.dispatch;return u!==t.memoizedState&&(Q.flags|=2048,na(9,Ie(),Zy.bind(null,e,u),null)),[a,n,l]}function Zy(l,t){l.action=t}function Ps(l){var t=gl(),u=I;if(u!==null)return Is(t,u,l);gl(),t=t.memoizedState,u=gl();var a=u.queue.dispatch;return u.memoizedState=l,[t,a,!1]}function na(l,t,u,a){return l={tag:l,create:u,deps:a,inst:t,next:null},t=Q.updateQueue,t===null&&(t=$f(),Q.updateQueue=t),u=t.lastEffect,u===null?t.lastEffect=l.next=l:(a=u.next,u.next=l,l.next=a,t.lastEffect=l),l}function Ie(){return{destroy:void 0,resource:void 0}}function l0(){return gl().memoizedState}function Pe(l,t,u,a){var e=Xl();a=a===void 0?null:a,Q.flags|=l,e.memoizedState=na(1|t,Ie(),u,a)}function $a(l,t,u,a){var e=gl();a=a===void 0?null:a;var n=e.memoizedState.inst;I!==null&&a!==null&&Kf(a,I.memoizedState.deps)?e.memoizedState=na(t,n,u,a):(Q.flags|=l,e.memoizedState=na(1|t,n,u,a))}function t0(l,t){Pe(8390656,8,l,t)}function u0(l,t){$a(2048,8,l,t)}function a0(l,t){return $a(4,2,l,t)}function e0(l,t){return $a(4,4,l,t)}function n0(l,t){if(typeof t=="function"){l=l();var u=t(l);return function(){typeof u=="function"?u():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function f0(l,t,u){u=u!=null?u.concat([l]):null,$a(4,4,n0.bind(null,t,l),u)}function uc(){}function c0(l,t){var u=gl();t=t===void 0?null:t;var a=u.memoizedState;return t!==null&&Kf(t,a[1])?a[0]:(u.memoizedState=[l,t],l)}function i0(l,t){var u=gl();t=t===void 0?null:t;var a=u.memoizedState;if(t!==null&&Kf(t,a[1]))return a[0];if(a=l(),Uu){Zt(!0);try{l()}finally{Zt(!1)}}return u.memoizedState=[a,t],a}function ac(l,t,u){return u===void 0||(kt&1073741824)!==0?l.memoizedState=t:(l.memoizedState=u,l=yo(),Q.lanes|=l,uu|=l,u)}function s0(l,t,u,a){return kl(u,t)?u:ua.current!==null?(l=ac(l,u,a),kl(l,t)||(El=!0),l):(kt&42)===0?(El=!0,l.memoizedState=u):(l=yo(),Q.lanes|=l,uu|=l,t)}function o0(l,t,u,a,e){var n=O.p;O.p=n!==0&&8>n?n:8;var f=S.T,c={};S.T=c,fc(l,!1,t,u);try{var i=e(),v=S.S;if(v!==null&&v(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var g=Gy(i,a);Fa(l,t,g,lt(l))}else Fa(l,t,a,lt(l))}catch(T){Fa(l,t,{then:function(){},status:"rejected",reason:T},lt())}finally{O.p=n,S.T=f}}function Vy(){}function ec(l,t,u,a){if(l.tag!==5)throw Error(r(476));var e=d0(l).queue;o0(l,e,t,q,u===null?Vy:function(){return y0(l),u(a)})}function d0(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:q},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function y0(l){var t=d0(l).next.queue;Fa(l,t,{},lt())}function nc(){return xl(he)}function v0(){return gl().memoizedState}function r0(){return gl().memoizedState}function Ly(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=lt();l=wt(u);var a=Wt(t,l,u);a!==null&&(tt(a,t,u),Ka(a,t,u)),t={cache:Bf()},l.payload=t;return}t=t.return}}function Ky(l,t,u){var a=lt();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},ln(l)?m0(t,u):(u=Mf(l,t,u,a),u!==null&&(tt(u,l,a),g0(u,t,a)))}function h0(l,t,u){var a=lt();Fa(l,t,u,a)}function Fa(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(ln(l))m0(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,kl(c,f))return Ce(l,t,e,0),el===null&&Ye(),!1}catch{}finally{}if(u=Mf(l,t,e,a),u!==null)return tt(u,l,a),g0(u,t,a),!0}return!1}function fc(l,t,u,a){if(a={lane:2,revertLane:Gc(),action:a,hasEagerState:!1,eagerState:null,next:null},ln(l)){if(t)throw Error(r(479))}else t=Mf(l,u,a,2),t!==null&&tt(t,l,2)}function ln(l){var t=l.alternate;return l===Q||t!==null&&t===Q}function m0(l,t){aa=We=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function g0(l,t,u){if((u&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,Mi(l,u)}}var tn={readContext:xl,use:$e,useCallback:vl,useContext:vl,useEffect:vl,useImperativeHandle:vl,useLayoutEffect:vl,useInsertionEffect:vl,useMemo:vl,useReducer:vl,useRef:vl,useState:vl,useDebugValue:vl,useDeferredValue:vl,useTransition:vl,useSyncExternalStore:vl,useId:vl,useHostTransitionStatus:vl,useFormState:vl,useActionState:vl,useOptimistic:vl,useMemoCache:vl,useCacheRefresh:vl},S0={readContext:xl,use:$e,useCallback:function(l,t){return Xl().memoizedState=[l,t===void 0?null:t],l},useContext:xl,useEffect:t0,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,Pe(4194308,4,n0.bind(null,t,l),u)},useLayoutEffect:function(l,t){return Pe(4194308,4,l,t)},useInsertionEffect:function(l,t){Pe(4,2,l,t)},useMemo:function(l,t){var u=Xl();t=t===void 0?null:t;var a=l();if(Uu){Zt(!0);try{l()}finally{Zt(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=Xl();if(u!==void 0){var e=u(t);if(Uu){Zt(!0);try{u(t)}finally{Zt(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=Ky.bind(null,Q,l),[a.memoizedState,l]},useRef:function(l){var t=Xl();return l={current:l},t.memoizedState=l},useState:function(l){l=lc(l);var t=l.queue,u=h0.bind(null,Q,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:uc,useDeferredValue:function(l,t){var u=Xl();return ac(u,l,t)},useTransition:function(){var l=lc(!1);return l=o0.bind(null,Q,l.queue,!0,!1),Xl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=Q,e=Xl();if(W){if(u===void 0)throw Error(r(407));u=u()}else{if(u=t(),el===null)throw Error(r(349));(V&124)!==0||Qs(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,t0(js.bind(null,a,n,l),[l]),a.flags|=2048,na(9,Ie(),Xs.bind(null,a,n,u,t),null),u},useId:function(){var l=Xl(),t=el.identifierPrefix;if(W){var u=pt,a=Ut;u=(a&~(1<<32-Wl(a)-1)).toString(32)+u,t="«"+t+"R"+u,u=ke++,0<u&&(t+="H"+u.toString(32)),t+="»"}else u=Qy++,t="«"+t+"r"+u.toString(32)+"»";return l.memoizedState=t},useHostTransitionStatus:nc,useFormState:$s,useActionState:$s,useOptimistic:function(l){var t=Xl();t.memoizedState=t.baseState=l;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=u,t=fc.bind(null,Q,!0,u),u.dispatch=t,[l,t]},useMemoCache:Ff,useCacheRefresh:function(){return Xl().memoizedState=Ly.bind(null,Q)}},b0={readContext:xl,use:$e,useCallback:c0,useContext:xl,useEffect:u0,useImperativeHandle:f0,useInsertionEffect:a0,useLayoutEffect:e0,useMemo:i0,useReducer:Fe,useRef:l0,useState:function(){return Fe(Nt)},useDebugValue:uc,useDeferredValue:function(l,t){var u=gl();return s0(u,I.memoizedState,l,t)},useTransition:function(){var l=Fe(Nt)[0],t=gl().memoizedState;return[typeof l=="boolean"?l:ka(l),t]},useSyncExternalStore:Gs,useId:v0,useHostTransitionStatus:nc,useFormState:Fs,useActionState:Fs,useOptimistic:function(l,t){var u=gl();return Ls(u,I,l,t)},useMemoCache:Ff,useCacheRefresh:r0},Jy={readContext:xl,use:$e,useCallback:c0,useContext:xl,useEffect:u0,useImperativeHandle:f0,useInsertionEffect:a0,useLayoutEffect:e0,useMemo:i0,useReducer:Pf,useRef:l0,useState:function(){return Pf(Nt)},useDebugValue:uc,useDeferredValue:function(l,t){var u=gl();return I===null?ac(u,l,t):s0(u,I.memoizedState,l,t)},useTransition:function(){var l=Pf(Nt)[0],t=gl().memoizedState;return[typeof l=="boolean"?l:ka(l),t]},useSyncExternalStore:Gs,useId:v0,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(l,t){var u=gl();return I!==null?Ls(u,I,l,t):(u.baseState=l,[l,u.queue.dispatch])},useMemoCache:Ff,useCacheRefresh:r0},fa=null,Ia=0;function un(l){var t=Ia;return Ia+=1,fa===null&&(fa=[]),Rs(fa,l,t)}function Pa(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function an(l,t){throw t.$$typeof===fl?Error(r(525)):(l=Object.prototype.toString.call(t),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function T0(l){var t=l._init;return t(l._payload)}function E0(l){function t(d,o){if(l){var y=d.deletions;y===null?(d.deletions=[o],d.flags|=16):y.push(o)}}function u(d,o){if(!l)return null;for(;o!==null;)t(d,o),o=o.sibling;return null}function a(d){for(var o=new Map;d!==null;)d.key!==null?o.set(d.key,d):o.set(d.index,d),d=d.sibling;return o}function e(d,o){return d=Dt(d,o),d.index=0,d.sibling=null,d}function n(d,o,y){return d.index=y,l?(y=d.alternate,y!==null?(y=y.index,y<o?(d.flags|=67108866,o):y):(d.flags|=67108866,o)):(d.flags|=1048576,o)}function f(d){return l&&d.alternate===null&&(d.flags|=67108866),d}function c(d,o,y,b){return o===null||o.tag!==6?(o=Df(y,d.mode,b),o.return=d,o):(o=e(o,y),o.return=d,o)}function i(d,o,y,b){var U=y.type;return U===Bl?g(d,o,y.props.children,b,y.key):o!==null&&(o.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Kl&&T0(U)===o.type)?(o=e(o,y.props),Pa(o,y),o.return=d,o):(o=Qe(y.type,y.key,y.props,null,d.mode,b),Pa(o,y),o.return=d,o)}function v(d,o,y,b){return o===null||o.tag!==4||o.stateNode.containerInfo!==y.containerInfo||o.stateNode.implementation!==y.implementation?(o=Uf(y,d.mode,b),o.return=d,o):(o=e(o,y.children||[]),o.return=d,o)}function g(d,o,y,b,U){return o===null||o.tag!==7?(o=Tu(y,d.mode,b,U),o.return=d,o):(o=e(o,y),o.return=d,o)}function T(d,o,y){if(typeof o=="string"&&o!==""||typeof o=="number"||typeof o=="bigint")return o=Df(""+o,d.mode,y),o.return=d,o;if(typeof o=="object"&&o!==null){switch(o.$$typeof){case al:return y=Qe(o.type,o.key,o.props,null,d.mode,y),Pa(y,o),y.return=d,y;case ql:return o=Uf(o,d.mode,y),o.return=d,o;case Kl:var b=o._init;return o=b(o._payload),T(d,o,y)}if(Hl(o)||Rl(o))return o=Tu(o,d.mode,y,null),o.return=d,o;if(typeof o.then=="function")return T(d,un(o),y);if(o.$$typeof===pl)return T(d,Ve(d,o),y);an(d,o)}return null}function h(d,o,y,b){var U=o!==null?o.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return U!==null?null:c(d,o,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case al:return y.key===U?i(d,o,y,b):null;case ql:return y.key===U?v(d,o,y,b):null;case Kl:return U=y._init,y=U(y._payload),h(d,o,y,b)}if(Hl(y)||Rl(y))return U!==null?null:g(d,o,y,b,null);if(typeof y.then=="function")return h(d,o,un(y),b);if(y.$$typeof===pl)return h(d,o,Ve(d,y),b);an(d,y)}return null}function m(d,o,y,b,U){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return d=d.get(y)||null,c(o,d,""+b,U);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case al:return d=d.get(b.key===null?y:b.key)||null,i(o,d,b,U);case ql:return d=d.get(b.key===null?y:b.key)||null,v(o,d,b,U);case Kl:var X=b._init;return b=X(b._payload),m(d,o,y,b,U)}if(Hl(b)||Rl(b))return d=d.get(y)||null,g(o,d,b,U,null);if(typeof b.then=="function")return m(d,o,y,un(b),U);if(b.$$typeof===pl)return m(d,o,y,Ve(o,b),U);an(o,b)}return null}function B(d,o,y,b){for(var U=null,X=null,R=o,x=o=0,zl=null;R!==null&&x<y.length;x++){R.index>x?(zl=R,R=null):zl=R.sibling;var w=h(d,R,y[x],b);if(w===null){R===null&&(R=zl);break}l&&R&&w.alternate===null&&t(d,R),o=n(w,o,x),X===null?U=w:X.sibling=w,X=w,R=zl}if(x===y.length)return u(d,R),W&&Au(d,x),U;if(R===null){for(;x<y.length;x++)R=T(d,y[x],b),R!==null&&(o=n(R,o,x),X===null?U=R:X.sibling=R,X=R);return W&&Au(d,x),U}for(R=a(R);x<y.length;x++)zl=m(R,d,x,y[x],b),zl!==null&&(l&&zl.alternate!==null&&R.delete(zl.key===null?x:zl.key),o=n(zl,o,x),X===null?U=zl:X.sibling=zl,X=zl);return l&&R.forEach(function(du){return t(d,du)}),W&&Au(d,x),U}function N(d,o,y,b){if(y==null)throw Error(r(151));for(var U=null,X=null,R=o,x=o=0,zl=null,w=y.next();R!==null&&!w.done;x++,w=y.next()){R.index>x?(zl=R,R=null):zl=R.sibling;var du=h(d,R,w.value,b);if(du===null){R===null&&(R=zl);break}l&&R&&du.alternate===null&&t(d,R),o=n(du,o,x),X===null?U=du:X.sibling=du,X=du,R=zl}if(w.done)return u(d,R),W&&Au(d,x),U;if(R===null){for(;!w.done;x++,w=y.next())w=T(d,w.value,b),w!==null&&(o=n(w,o,x),X===null?U=w:X.sibling=w,X=w);return W&&Au(d,x),U}for(R=a(R);!w.done;x++,w=y.next())w=m(R,d,x,w.value,b),w!==null&&(l&&w.alternate!==null&&R.delete(w.key===null?x:w.key),o=n(w,o,x),X===null?U=w:X.sibling=w,X=w);return l&&R.forEach(function(wv){return t(d,wv)}),W&&Au(d,x),U}function ll(d,o,y,b){if(typeof y=="object"&&y!==null&&y.type===Bl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case al:l:{for(var U=y.key;o!==null;){if(o.key===U){if(U=y.type,U===Bl){if(o.tag===7){u(d,o.sibling),b=e(o,y.props.children),b.return=d,d=b;break l}}else if(o.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Kl&&T0(U)===o.type){u(d,o.sibling),b=e(o,y.props),Pa(b,y),b.return=d,d=b;break l}u(d,o);break}else t(d,o);o=o.sibling}y.type===Bl?(b=Tu(y.props.children,d.mode,b,y.key),b.return=d,d=b):(b=Qe(y.type,y.key,y.props,null,d.mode,b),Pa(b,y),b.return=d,d=b)}return f(d);case ql:l:{for(U=y.key;o!==null;){if(o.key===U)if(o.tag===4&&o.stateNode.containerInfo===y.containerInfo&&o.stateNode.implementation===y.implementation){u(d,o.sibling),b=e(o,y.children||[]),b.return=d,d=b;break l}else{u(d,o);break}else t(d,o);o=o.sibling}b=Uf(y,d.mode,b),b.return=d,d=b}return f(d);case Kl:return U=y._init,y=U(y._payload),ll(d,o,y,b)}if(Hl(y))return B(d,o,y,b);if(Rl(y)){if(U=Rl(y),typeof U!="function")throw Error(r(150));return y=U.call(y),N(d,o,y,b)}if(typeof y.then=="function")return ll(d,o,un(y),b);if(y.$$typeof===pl)return ll(d,o,Ve(d,y),b);an(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,o!==null&&o.tag===6?(u(d,o.sibling),b=e(o,y),b.return=d,d=b):(u(d,o),b=Df(y,d.mode,b),b.return=d,d=b),f(d)):u(d,o)}return function(d,o,y,b){try{Ia=0;var U=ll(d,o,y,b);return fa=null,U}catch(R){if(R===Va||R===Ke)throw R;var X=$l(29,R,null,d.mode);return X.lanes=b,X.return=d,X}finally{}}}var ca=E0(!0),A0=E0(!1),it=A(null),bt=null;function $t(l){var t=l.alternate;M(bl,bl.current&1),M(it,l),bt===null&&(t===null||ua.current!==null||t.memoizedState!==null)&&(bt=l)}function z0(l){if(l.tag===22){if(M(bl,bl.current),M(it,l),bt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(bt=l)}}else Ft()}function Ft(){M(bl,bl.current),M(it,it.current)}function xt(l){D(it),bt===l&&(bt=null),D(bl)}var bl=A(0);function en(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||$c(u)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function cc(l,t,u,a){t=l.memoizedState,u=u(a,t),u=u==null?t:p({},t,u),l.memoizedState=u,l.lanes===0&&(l.updateQueue.baseState=u)}var ic={enqueueSetState:function(l,t,u){l=l._reactInternals;var a=lt(),e=wt(a);e.payload=t,u!=null&&(e.callback=u),t=Wt(l,e,a),t!==null&&(tt(t,l,a),Ka(t,l,a))},enqueueReplaceState:function(l,t,u){l=l._reactInternals;var a=lt(),e=wt(a);e.tag=1,e.payload=t,u!=null&&(e.callback=u),t=Wt(l,e,a),t!==null&&(tt(t,l,a),Ka(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var u=lt(),a=wt(u);a.tag=2,t!=null&&(a.callback=t),t=Wt(l,a,u),t!==null&&(tt(t,l,u),Ka(t,l,u))}};function _0(l,t,u,a,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,f):t.prototype&&t.prototype.isPureReactComponent?!Ba(u,a)||!Ba(e,n):!0}function M0(l,t,u,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,a),t.state!==l&&ic.enqueueReplaceState(t,t.state,null)}function pu(l,t){var u=t;if("ref"in t){u={};for(var a in t)a!=="ref"&&(u[a]=t[a])}if(l=l.defaultProps){u===t&&(u=p({},u));for(var e in l)u[e]===void 0&&(u[e]=l[e])}return u}var nn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}console.error(l)};function O0(l){nn(l)}function D0(l){console.error(l)}function U0(l){nn(l)}function fn(l,t){try{var u=l.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function p0(l,t,u){try{var a=l.onCaughtError;a(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function sc(l,t,u){return u=wt(u),u.tag=3,u.payload={element:null},u.callback=function(){fn(l,t)},u}function R0(l){return l=wt(l),l.tag=3,l}function H0(l,t,u,a){var e=u.type.getDerivedStateFromError;if(typeof e=="function"){var n=a.value;l.payload=function(){return e(n)},l.callback=function(){p0(t,u,a)}}var f=u.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){p0(t,u,a),typeof e!="function"&&(au===null?au=new Set([this]):au.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function wy(l,t,u,a,e){if(u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=u.alternate,t!==null&&Xa(t,u,e,!0),u=it.current,u!==null){switch(u.tag){case 13:return bt===null?xc():u.alternate===null&&dl===0&&(dl=3),u.flags&=-257,u.flags|=65536,u.lanes=e,a===Gf?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([a]):t.add(a),Bc(l,a,e)),!1;case 22:return u.flags|=65536,a===Gf?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([a]):u.add(a)),Bc(l,a,e)),!1}throw Error(r(435,u.tag))}return Bc(l,a,e),xc(),!1}if(W)return t=it.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=e,a!==Hf&&(l=Error(r(422),{cause:a}),Qa(et(l,u)))):(a!==Hf&&(t=Error(r(423),{cause:a}),Qa(et(t,u))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,a=et(a,u),e=sc(l.stateNode,a,e),jf(l,e),dl!==4&&(dl=2)),!1;var n=Error(r(520),{cause:a});if(n=et(n,u),fe===null?fe=[n]:fe.push(n),dl!==4&&(dl=2),t===null)return!0;a=et(a,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,l=e&-e,u.lanes|=l,l=sc(u.stateNode,a,l),jf(u,l),!1;case 1:if(t=u.type,n=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(au===null||!au.has(n))))return u.flags|=65536,e&=-e,u.lanes|=e,e=R0(e),H0(e,l,u,a),jf(u,e),!1}u=u.return}while(u!==null);return!1}var N0=Error(r(461)),El=!1;function Ml(l,t,u,a){t.child=l===null?A0(t,null,u,a):ca(t,l.child,u,a)}function x0(l,t,u,a,e){u=u.render;var n=t.ref;if("ref"in a){var f={};for(var c in a)c!=="ref"&&(f[c]=a[c])}else f=a;return Ou(t),a=Jf(l,t,u,f,n,e),c=wf(),l!==null&&!El?(Wf(l,t,e),qt(l,t,e)):(W&&c&&pf(t),t.flags|=1,Ml(l,t,a,e),t.child)}function q0(l,t,u,a,e){if(l===null){var n=u.type;return typeof n=="function"&&!Of(n)&&n.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=n,B0(l,t,n,a,e)):(l=Qe(u.type,null,a,t,t.mode,e),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!gc(l,e)){var f=n.memoizedProps;if(u=u.compare,u=u!==null?u:Ba,u(f,a)&&l.ref===t.ref)return qt(l,t,e)}return t.flags|=1,l=Dt(n,a),l.ref=t.ref,l.return=t,t.child=l}function B0(l,t,u,a,e){if(l!==null){var n=l.memoizedProps;if(Ba(n,a)&&l.ref===t.ref)if(El=!1,t.pendingProps=a=n,gc(l,e))(l.flags&131072)!==0&&(El=!0);else return t.lanes=l.lanes,qt(l,t,e)}return oc(l,t,u,a,e)}function Y0(l,t,u){var a=t.pendingProps,e=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|u:u,l!==null){for(e=t.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return C0(l,t,a,u)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Le(t,n!==null?n.cachePool:null),n!==null?Bs(t,n):Vf(),z0(t);else return t.lanes=t.childLanes=536870912,C0(l,t,n!==null?n.baseLanes|u:u,u)}else n!==null?(Le(t,n.cachePool),Bs(t,n),Ft(),t.memoizedState=null):(l!==null&&Le(t,null),Vf(),Ft());return Ml(l,t,e,u),t.child}function C0(l,t,u,a){var e=Cf();return e=e===null?null:{parent:Sl._currentValue,pool:e},t.memoizedState={baseLanes:u,cachePool:e},l!==null&&Le(t,null),Vf(),z0(t),l!==null&&Xa(l,t,a,!0),null}function cn(l,t){var u=t.ref;if(u===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(l===null||l.ref!==u)&&(t.flags|=4194816)}}function oc(l,t,u,a,e){return Ou(t),u=Jf(l,t,u,a,void 0,e),a=wf(),l!==null&&!El?(Wf(l,t,e),qt(l,t,e)):(W&&a&&pf(t),t.flags|=1,Ml(l,t,u,e),t.child)}function G0(l,t,u,a,e,n){return Ou(t),t.updateQueue=null,u=Cs(t,a,u,e),Ys(l),a=wf(),l!==null&&!El?(Wf(l,t,n),qt(l,t,n)):(W&&a&&pf(t),t.flags|=1,Ml(l,t,u,n),t.child)}function Q0(l,t,u,a,e){if(Ou(t),t.stateNode===null){var n=Fu,f=u.contextType;typeof f=="object"&&f!==null&&(n=xl(f)),n=new u(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ic,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Qf(t),f=u.contextType,n.context=typeof f=="object"&&f!==null?xl(f):Fu,n.state=t.memoizedState,f=u.getDerivedStateFromProps,typeof f=="function"&&(cc(t,u,f,a),n.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&ic.enqueueReplaceState(n,n.state,null),wa(t,a,n,e),Ja(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,i=pu(u,c);n.props=i;var v=n.context,g=u.contextType;f=Fu,typeof g=="object"&&g!==null&&(f=xl(g));var T=u.getDerivedStateFromProps;g=typeof T=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,g||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||v!==f)&&M0(t,n,a,f),Jt=!1;var h=t.memoizedState;n.state=h,wa(t,a,n,e),Ja(),v=t.memoizedState,c||h!==v||Jt?(typeof T=="function"&&(cc(t,u,T,a),v=t.memoizedState),(i=Jt||_0(t,u,i,a,h,v,f))?(g||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=v),n.props=a,n.state=v,n.context=f,a=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Xf(l,t),f=t.memoizedProps,g=pu(u,f),n.props=g,T=t.pendingProps,h=n.context,v=u.contextType,i=Fu,typeof v=="object"&&v!==null&&(i=xl(v)),c=u.getDerivedStateFromProps,(v=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==T||h!==i)&&M0(t,n,a,i),Jt=!1,h=t.memoizedState,n.state=h,wa(t,a,n,e),Ja();var m=t.memoizedState;f!==T||h!==m||Jt||l!==null&&l.dependencies!==null&&Ze(l.dependencies)?(typeof c=="function"&&(cc(t,u,c,a),m=t.memoizedState),(g=Jt||_0(t,u,g,a,h,m,i)||l!==null&&l.dependencies!==null&&Ze(l.dependencies))?(v||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,m,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),n.props=a,n.state=m,n.context=i,a=g):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,cn(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,u=a&&typeof u.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=ca(t,l.child,null,e),t.child=ca(t,null,u,e)):Ml(l,t,u,e),t.memoizedState=n.state,l=t.child):l=qt(l,t,e),l}function X0(l,t,u,a){return Ga(),t.flags|=256,Ml(l,t,u,a),t.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(l){return{baseLanes:l,cachePool:Ds()}}function vc(l,t,u){return l=l!==null?l.childLanes&~u:0,t&&(l|=st),l}function j0(l,t,u){var a=t.pendingProps,e=!1,n=(t.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(bl.current&2)!==0),f&&(e=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,l===null){if(W){if(e?$t(t):Ft(),W){var c=ol,i;if(i=c){l:{for(i=c,c=St;i.nodeType!==8;){if(!c){c=null;break l}if(i=ht(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(t.memoizedState={dehydrated:c,treeContext:Eu!==null?{id:Ut,overflow:pt}:null,retryLane:536870912,hydrationErrors:null},i=$l(18,null,null,0),i.stateNode=c,i.return=t,t.child=i,Yl=t,ol=null,i=!0):i=!1}i||_u(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return $c(c)?t.lanes=32:t.lanes=536870912,null;xt(t)}return c=a.children,a=a.fallback,e?(Ft(),e=t.mode,c=sn({mode:"hidden",children:c},e),a=Tu(a,e,u,null),c.return=t,a.return=t,c.sibling=a,t.child=c,e=t.child,e.memoizedState=yc(u),e.childLanes=vc(l,f,u),t.memoizedState=dc,a):($t(t),rc(t,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)t.flags&256?($t(t),t.flags&=-257,t=hc(l,t,u)):t.memoizedState!==null?(Ft(),t.child=l.child,t.flags|=128,t=null):(Ft(),e=a.fallback,c=t.mode,a=sn({mode:"visible",children:a.children},c),e=Tu(e,c,u,null),e.flags|=2,a.return=t,e.return=t,a.sibling=e,t.child=a,ca(t,l.child,null,u),a=t.child,a.memoizedState=yc(u),a.childLanes=vc(l,f,u),t.memoizedState=dc,t=e);else if($t(t),$c(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var v=f.dgst;f=v,a=Error(r(419)),a.stack="",a.digest=f,Qa({value:a,source:null,stack:null}),t=hc(l,t,u)}else if(El||Xa(l,t,u,!1),f=(u&l.childLanes)!==0,El||f){if(f=el,f!==null&&(a=u&-u,a=(a&42)!==0?1:$n(a),a=(a&(f.suspendedLanes|u))!==0?0:a,a!==0&&a!==i.retryLane))throw i.retryLane=a,$u(l,a),tt(f,l,a),N0;c.data==="$?"||xc(),t=hc(l,t,u)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=i.treeContext,ol=ht(c.nextSibling),Yl=t,W=!0,zu=null,St=!1,l!==null&&(ft[ct++]=Ut,ft[ct++]=pt,ft[ct++]=Eu,Ut=l.id,pt=l.overflow,Eu=t),t=rc(t,a.children),t.flags|=4096);return t}return e?(Ft(),e=a.fallback,c=t.mode,i=l.child,v=i.sibling,a=Dt(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&65011712,v!==null?e=Dt(v,e):(e=Tu(e,c,u,null),e.flags|=2),e.return=t,a.return=t,a.sibling=e,t.child=a,a=e,e=t.child,c=l.child.memoizedState,c===null?c=yc(u):(i=c.cachePool,i!==null?(v=Sl._currentValue,i=i.parent!==v?{parent:v,pool:v}:i):i=Ds(),c={baseLanes:c.baseLanes|u,cachePool:i}),e.memoizedState=c,e.childLanes=vc(l,f,u),t.memoizedState=dc,a):($t(t),u=l.child,l=u.sibling,u=Dt(u,{mode:"visible",children:a.children}),u.return=t,u.sibling=null,l!==null&&(f=t.deletions,f===null?(t.deletions=[l],t.flags|=16):f.push(l)),t.child=u,t.memoizedState=null,u)}function rc(l,t){return t=sn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function sn(l,t){return l=$l(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function hc(l,t,u){return ca(t,l.child,null,u),l=rc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Z0(l,t,u){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),xf(l.return,t,u)}function mc(l,t,u,a,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:u,tailMode:e}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=u,n.tailMode=e)}function V0(l,t,u){var a=t.pendingProps,e=a.revealOrder,n=a.tail;if(Ml(l,t,a.children,u),a=bl.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Z0(l,u,t);else if(l.tag===19)Z0(l,u,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(M(bl,a),e){case"forwards":for(u=t.child,e=null;u!==null;)l=u.alternate,l!==null&&en(l)===null&&(e=u),u=u.sibling;u=e,u===null?(e=t.child,t.child=null):(e=u.sibling,u.sibling=null),mc(t,!1,e,u,n);break;case"backwards":for(u=null,e=t.child,t.child=null;e!==null;){if(l=e.alternate,l!==null&&en(l)===null){t.child=e;break}l=e.sibling,e.sibling=u,u=e,e=l}mc(t,!0,u,null,n);break;case"together":mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qt(l,t,u){if(l!==null&&(t.dependencies=l.dependencies),uu|=t.lanes,(u&t.childLanes)===0)if(l!==null){if(Xa(l,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,u=Dt(l,l.pendingProps),t.child=u,u.return=t;l.sibling!==null;)l=l.sibling,u=u.sibling=Dt(l,l.pendingProps),u.return=t;u.sibling=null}return t.child}function gc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ze(l)))}function Wy(l,t,u){switch(t.tag){case 3:cl(t,t.stateNode.containerInfo),Kt(t,Sl,l.memoizedState.cache),Ga();break;case 27:case 5:Kn(t);break;case 4:cl(t,t.stateNode.containerInfo);break;case 10:Kt(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?($t(t),t.flags|=128,null):(u&t.child.childLanes)!==0?j0(l,t,u):($t(t),l=qt(l,t,u),l!==null?l.sibling:null);$t(t);break;case 19:var e=(l.flags&128)!==0;if(a=(u&t.childLanes)!==0,a||(Xa(l,t,u,!1),a=(u&t.childLanes)!==0),e){if(a)return V0(l,t,u);t.flags|=128}if(e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),M(bl,bl.current),a)break;return null;case 22:case 23:return t.lanes=0,Y0(l,t,u);case 24:Kt(t,Sl,l.memoizedState.cache)}return qt(l,t,u)}function L0(l,t,u){if(l!==null)if(l.memoizedProps!==t.pendingProps)El=!0;else{if(!gc(l,u)&&(t.flags&128)===0)return El=!1,Wy(l,t,u);El=(l.flags&131072)!==0}else El=!1,W&&(t.flags&1048576)!==0&&Ts(t,je,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,e=a._init;if(a=e(a._payload),t.type=a,typeof a=="function")Of(a)?(l=pu(a,l),t.tag=1,t=Q0(null,t,a,l,u)):(t.tag=0,t=oc(null,t,a,l,u));else{if(a!=null){if(e=a.$$typeof,e===yt){t.tag=11,t=x0(null,t,a,l,u);break l}else if(e===Ll){t.tag=14,t=q0(null,t,a,l,u);break l}}throw t=ru(a)||a,Error(r(306,t,""))}}return t;case 0:return oc(l,t,t.type,t.pendingProps,u);case 1:return a=t.type,e=pu(a,t.pendingProps),Q0(l,t,a,e,u);case 3:l:{if(cl(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;e=n.element,Xf(l,t),wa(t,a,null,u);var f=t.memoizedState;if(a=f.cache,Kt(t,Sl,a),a!==n.cache&&qf(t,[Sl],u,!0),Ja(),a=f.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=X0(l,t,a,u);break l}else if(a!==e){e=et(Error(r(424)),t),Qa(e),t=X0(l,t,a,u);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ol=ht(l.firstChild),Yl=t,W=!0,zu=null,St=!0,u=A0(t,null,a,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ga(),a===e){t=qt(l,t,u);break l}Ml(l,t,a,u)}t=t.child}return t;case 26:return cn(l,t),l===null?(u=ko(t.type,null,t.pendingProps,null))?t.memoizedState=u:W||(u=t.type,l=t.pendingProps,a=zn(Y.current).createElement(u),a[Nl]=t,a[Gl]=l,Dl(a,u,l),Tl(a),t.stateNode=a):t.memoizedState=ko(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Kn(t),l===null&&W&&(a=t.stateNode=Jo(t.type,t.pendingProps,Y.current),Yl=t,St=!0,e=ol,fu(t.type)?(Fc=e,ol=ht(a.firstChild)):ol=e),Ml(l,t,t.pendingProps.children,u),cn(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&W&&((e=a=ol)&&(a=Av(a,t.type,t.pendingProps,St),a!==null?(t.stateNode=a,Yl=t,ol=ht(a.firstChild),St=!1,e=!0):e=!1),e||_u(t)),Kn(t),e=t.type,n=t.pendingProps,f=l!==null?l.memoizedProps:null,a=n.children,wc(e,n)?a=null:f!==null&&wc(e,f)&&(t.flags|=32),t.memoizedState!==null&&(e=Jf(l,t,Xy,null,null,u),he._currentValue=e),cn(l,t),Ml(l,t,a,u),t.child;case 6:return l===null&&W&&((l=u=ol)&&(u=zv(u,t.pendingProps,St),u!==null?(t.stateNode=u,Yl=t,ol=null,l=!0):l=!1),l||_u(t)),null;case 13:return j0(l,t,u);case 4:return cl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=ca(t,null,a,u):Ml(l,t,a,u),t.child;case 11:return x0(l,t,t.type,t.pendingProps,u);case 7:return Ml(l,t,t.pendingProps,u),t.child;case 8:return Ml(l,t,t.pendingProps.children,u),t.child;case 12:return Ml(l,t,t.pendingProps.children,u),t.child;case 10:return a=t.pendingProps,Kt(t,t.type,a.value),Ml(l,t,a.children,u),t.child;case 9:return e=t.type._context,a=t.pendingProps.children,Ou(t),e=xl(e),a=a(e),t.flags|=1,Ml(l,t,a,u),t.child;case 14:return q0(l,t,t.type,t.pendingProps,u);case 15:return B0(l,t,t.type,t.pendingProps,u);case 19:return V0(l,t,u);case 31:return a=t.pendingProps,u=t.mode,a={mode:a.mode,children:a.children},l===null?(u=sn(a,u),u.ref=t.ref,t.child=u,u.return=t,t=u):(u=Dt(l.child,a),u.ref=t.ref,t.child=u,u.return=t,t=u),t;case 22:return Y0(l,t,u);case 24:return Ou(t),a=xl(Sl),l===null?(e=Cf(),e===null&&(e=el,n=Bf(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=u),e=n),t.memoizedState={parent:a,cache:e},Qf(t),Kt(t,Sl,e)):((l.lanes&u)!==0&&(Xf(l,t),wa(t,null,null,u),Ja()),e=l.memoizedState,n=t.memoizedState,e.parent!==a?(e={parent:a,cache:a},t.memoizedState=e,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=e),Kt(t,Sl,a)):(a=n.cache,Kt(t,Sl,a),a!==e.cache&&qf(t,[Sl],u,!0))),Ml(l,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Bt(l){l.flags|=4}function K0(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!ld(t)){if(t=it.current,t!==null&&((V&4194048)===V?bt!==null:(V&62914560)!==V&&(V&536870912)===0||t!==bt))throw La=Gf,Us;l.flags|=8192}}function on(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?zi():536870912,l.lanes|=t,da|=t)}function le(l,t){if(!W)switch(l.tailMode){case"hidden":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?l.tail=null:u.sibling=null;break;case"collapsed":u=l.tail;for(var a=null;u!==null;)u.alternate!==null&&(a=u),u=u.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function sl(l){var t=l.alternate!==null&&l.alternate.child===l.child,u=0,a=0;if(t)for(var e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags&65011712,a|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags,a|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=a,l.childLanes=u,t}function ky(l,t,u){var a=t.pendingProps;switch(Rf(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sl(t),null;case 1:return sl(t),null;case 3:return u=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ht(Sl),jt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(l===null||l.child===null)&&(Ca(t)?Bt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zs())),sl(t),null;case 26:return u=t.memoizedState,l===null?(Bt(t),u!==null?(sl(t),K0(t,u)):(sl(t),t.flags&=-16777217)):u?u!==l.memoizedState?(Bt(t),sl(t),K0(t,u)):(sl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Bt(t),sl(t),t.flags&=-16777217),null;case 27:Te(t),u=Y.current;var e=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Bt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return sl(t),null}l=H.current,Ca(t)?Es(t):(l=Jo(e,a,u),t.stateNode=l,Bt(t))}return sl(t),null;case 5:if(Te(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Bt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return sl(t),null}if(l=H.current,Ca(t))Es(t);else{switch(e=zn(Y.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":l=e.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?e.createElement("select",{is:a.is}):e.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?e.createElement(u,{is:a.is}):e.createElement(u)}}l[Nl]=t,l[Gl]=a;l:for(e=t.child;e!==null;){if(e.tag===5||e.tag===6)l.appendChild(e.stateNode);else if(e.tag!==4&&e.tag!==27&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break l;for(;e.sibling===null;){if(e.return===null||e.return===t)break l;e=e.return}e.sibling.return=e.return,e=e.sibling}t.stateNode=l;l:switch(Dl(l,u,a),u){case"button":case"input":case"select":case"textarea":l=!!a.autoFocus;break l;case"img":l=!0;break l;default:l=!1}l&&Bt(t)}}return sl(t),t.flags&=-16777217,null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&Bt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(l=Y.current,Ca(t)){if(l=t.stateNode,u=t.memoizedProps,a=null,e=Yl,e!==null)switch(e.tag){case 27:case 5:a=e.memoizedProps}l[Nl]=t,l=!!(l.nodeValue===u||a!==null&&a.suppressHydrationWarning===!0||Qo(l.nodeValue,u)),l||_u(t)}else l=zn(l).createTextNode(a),l[Nl]=t,t.stateNode=l}return sl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(e=Ca(t),a!==null&&a.dehydrated!==null){if(l===null){if(!e)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e[Nl]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;sl(t),e=!1}else e=zs(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null)}if(xt(t),(t.flags&128)!==0)return t.lanes=u,t;if(u=a!==null,l=l!==null&&l.memoizedState!==null,u){a=t.child,e=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(e=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==e&&(a.flags|=2048)}return u!==l&&u&&(t.child.flags|=8192),on(t,t.updateQueue),sl(t),null;case 4:return jt(),l===null&&Zc(t.stateNode.containerInfo),sl(t),null;case 10:return Ht(t.type),sl(t),null;case 19:if(D(bl),e=t.memoizedState,e===null)return sl(t),null;if(a=(t.flags&128)!==0,n=e.rendering,n===null)if(a)le(e,!1);else{if(dl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=en(l),n!==null){for(t.flags|=128,le(e,!1),l=n.updateQueue,t.updateQueue=l,on(t,l),t.subtreeFlags=0,l=u,u=t.child;u!==null;)bs(u,l),u=u.sibling;return M(bl,bl.current&1|2),t.child}l=l.sibling}e.tail!==null&>()>vn&&(t.flags|=128,a=!0,le(e,!1),t.lanes=4194304)}else{if(!a)if(l=en(n),l!==null){if(t.flags|=128,a=!0,l=l.updateQueue,t.updateQueue=l,on(t,l),le(e,!0),e.tail===null&&e.tailMode==="hidden"&&!n.alternate&&!W)return sl(t),null}else 2*gt()-e.renderingStartTime>vn&&u!==536870912&&(t.flags|=128,a=!0,le(e,!1),t.lanes=4194304);e.isBackwards?(n.sibling=t.child,t.child=n):(l=e.last,l!==null?l.sibling=n:t.child=n,e.last=n)}return e.tail!==null?(t=e.tail,e.rendering=t,e.tail=t.sibling,e.renderingStartTime=gt(),t.sibling=null,l=bl.current,M(bl,a?l&1|2:l&1),t):(sl(t),null);case 22:case 23:return xt(t),Lf(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(u&536870912)!==0&&(t.flags&128)===0&&(sl(t),t.subtreeFlags&6&&(t.flags|=8192)):sl(t),u=t.updateQueue,u!==null&&on(t,u.retryQueue),u=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==u&&(t.flags|=2048),l!==null&&D(Du),null;case 24:return u=null,l!==null&&(u=l.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Ht(Sl),sl(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function $y(l,t){switch(Rf(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Ht(Sl),jt(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 13:if(xt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ga()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return D(bl),null;case 4:return jt(),null;case 10:return Ht(t.type),null;case 22:case 23:return xt(t),Lf(),l!==null&&D(Du),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Ht(Sl),null;case 25:return null;default:return null}}function J0(l,t){switch(Rf(t),t.tag){case 3:Ht(Sl),jt();break;case 26:case 27:case 5:Te(t);break;case 4:jt();break;case 13:xt(t);break;case 19:D(bl);break;case 10:Ht(t.type);break;case 22:case 23:xt(t),Lf(),l!==null&&D(Du);break;case 24:Ht(Sl)}}function te(l,t){try{var u=t.updateQueue,a=u!==null?u.lastEffect:null;if(a!==null){var e=a.next;u=e;do{if((u.tag&l)===l){a=void 0;var n=u.create,f=u.inst;a=n(),f.destroy=a}u=u.next}while(u!==e)}}catch(c){ul(t,t.return,c)}}function It(l,t,u){try{var a=t.updateQueue,e=a!==null?a.lastEffect:null;if(e!==null){var n=e.next;a=n;do{if((a.tag&l)===l){var f=a.inst,c=f.destroy;if(c!==void 0){f.destroy=void 0,e=t;var i=u,v=c;try{v()}catch(g){ul(e,i,g)}}}a=a.next}while(a!==n)}}catch(g){ul(t,t.return,g)}}function w0(l){var t=l.updateQueue;if(t!==null){var u=l.stateNode;try{qs(t,u)}catch(a){ul(l,l.return,a)}}}function W0(l,t,u){u.props=pu(l.type,l.memoizedProps),u.state=l.memoizedState;try{u.componentWillUnmount()}catch(a){ul(l,t,a)}}function ue(l,t){try{var u=l.ref;if(u!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof u=="function"?l.refCleanup=u(a):u.current=a}}catch(e){ul(l,t,e)}}function Tt(l,t){var u=l.ref,a=l.refCleanup;if(u!==null)if(typeof a=="function")try{a()}catch(e){ul(l,t,e)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(e){ul(l,t,e)}else u.current=null}function k0(l){var t=l.type,u=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":u.autoFocus&&a.focus();break l;case"img":u.src?a.src=u.src:u.srcSet&&(a.srcset=u.srcSet)}}catch(e){ul(l,l.return,e)}}function Sc(l,t,u){try{var a=l.stateNode;gv(a,l.type,u,t),a[Gl]=t}catch(e){ul(l,l.return,e)}}function $0(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&fu(l.type)||l.tag===4}function bc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||$0(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&fu(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Tc(l,t,u){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(l,t):(t=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,t.appendChild(l),u=u._reactRootContainer,u!=null||t.onclick!==null||(t.onclick=An));else if(a!==4&&(a===27&&fu(l.type)&&(u=l.stateNode,t=null),l=l.child,l!==null))for(Tc(l,t,u),l=l.sibling;l!==null;)Tc(l,t,u),l=l.sibling}function dn(l,t,u){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?u.insertBefore(l,t):u.appendChild(l);else if(a!==4&&(a===27&&fu(l.type)&&(u=l.stateNode),l=l.child,l!==null))for(dn(l,t,u),l=l.sibling;l!==null;)dn(l,t,u),l=l.sibling}function F0(l){var t=l.stateNode,u=l.memoizedProps;try{for(var a=l.type,e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Dl(t,a,u),t[Nl]=l,t[Gl]=u}catch(n){ul(l,l.return,n)}}var Yt=!1,rl=!1,Ec=!1,I0=typeof WeakSet=="function"?WeakSet:Set,Al=null;function Fy(l,t){if(l=l.containerInfo,Kc=pn,l=ss(l),bf(l)){if("selectionStart"in l)var u={start:l.selectionStart,end:l.selectionEnd};else l:{u=(u=l.ownerDocument)&&u.defaultView||window;var a=u.getSelection&&u.getSelection();if(a&&a.rangeCount!==0){u=a.anchorNode;var e=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{u.nodeType,n.nodeType}catch{u=null;break l}var f=0,c=-1,i=-1,v=0,g=0,T=l,h=null;t:for(;;){for(var m;T!==u||e!==0&&T.nodeType!==3||(c=f+e),T!==n||a!==0&&T.nodeType!==3||(i=f+a),T.nodeType===3&&(f+=T.nodeValue.length),(m=T.firstChild)!==null;)h=T,T=m;for(;;){if(T===l)break t;if(h===u&&++v===e&&(c=f),h===n&&++g===a&&(i=f),(m=T.nextSibling)!==null)break;T=h,h=T.parentNode}T=m}u=c===-1||i===-1?null:{start:c,end:i}}else u=null}u=u||{start:0,end:0}}else u=null;for(Jc={focusedElem:l,selectionRange:u},pn=!1,Al=t;Al!==null;)if(t=Al,l=t.child,(t.subtreeFlags&1024)!==0&&l!==null)l.return=t,Al=l;else for(;Al!==null;){switch(t=Al,n=t.alternate,l=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&n!==null){l=void 0,u=t,e=n.memoizedProps,n=n.memoizedState,a=u.stateNode;try{var B=pu(u.type,e,u.elementType===u.type);l=a.getSnapshotBeforeUpdate(B,n),a.__reactInternalSnapshotBeforeUpdate=l}catch(N){ul(u,u.return,N)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,u=l.nodeType,u===9)kc(l);else if(u===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":kc(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=t.sibling,l!==null){l.return=t.return,Al=l;break}Al=t.return}}function P0(l,t,u){var a=u.flags;switch(u.tag){case 0:case 11:case 15:Pt(l,u),a&4&&te(5,u);break;case 1:if(Pt(l,u),a&4)if(l=u.stateNode,t===null)try{l.componentDidMount()}catch(f){ul(u,u.return,f)}else{var e=pu(u.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(e,t,l.__reactInternalSnapshotBeforeUpdate)}catch(f){ul(u,u.return,f)}}a&64&&w0(u),a&512&&ue(u,u.return);break;case 3:if(Pt(l,u),a&64&&(l=u.updateQueue,l!==null)){if(t=null,u.child!==null)switch(u.child.tag){case 27:case 5:t=u.child.stateNode;break;case 1:t=u.child.stateNode}try{qs(l,t)}catch(f){ul(u,u.return,f)}}break;case 27:t===null&&a&4&&F0(u);case 26:case 5:Pt(l,u),t===null&&a&4&&k0(u),a&512&&ue(u,u.return);break;case 12:Pt(l,u);break;case 13:Pt(l,u),a&4&&uo(l,u),a&64&&(l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(u=fv.bind(null,u),_v(l,u))));break;case 22:if(a=u.memoizedState!==null||Yt,!a){t=t!==null&&t.memoizedState!==null||rl,e=Yt;var n=rl;Yt=a,(rl=t)&&!n?lu(l,u,(u.subtreeFlags&8772)!==0):Pt(l,u),Yt=e,rl=n}break;case 30:break;default:Pt(l,u)}}function lo(l){var t=l.alternate;t!==null&&(l.alternate=null,lo(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&Pn(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var il=null,jl=!1;function Ct(l,t,u){for(u=u.child;u!==null;)to(l,t,u),u=u.sibling}function to(l,t,u){if(wl&&typeof wl.onCommitFiberUnmount=="function")try{wl.onCommitFiberUnmount(za,u)}catch{}switch(u.tag){case 26:rl||Tt(u,t),Ct(l,t,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:rl||Tt(u,t);var a=il,e=jl;fu(u.type)&&(il=u.stateNode,jl=!1),Ct(l,t,u),de(u.stateNode),il=a,jl=e;break;case 5:rl||Tt(u,t);case 6:if(a=il,e=jl,il=null,Ct(l,t,u),il=a,jl=e,il!==null)if(jl)try{(il.nodeType===9?il.body:il.nodeName==="HTML"?il.ownerDocument.body:il).removeChild(u.stateNode)}catch(n){ul(u,t,n)}else try{il.removeChild(u.stateNode)}catch(n){ul(u,t,n)}break;case 18:il!==null&&(jl?(l=il,Lo(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,u.stateNode),be(l)):Lo(il,u.stateNode));break;case 4:a=il,e=jl,il=u.stateNode.containerInfo,jl=!0,Ct(l,t,u),il=a,jl=e;break;case 0:case 11:case 14:case 15:rl||It(2,u,t),rl||It(4,u,t),Ct(l,t,u);break;case 1:rl||(Tt(u,t),a=u.stateNode,typeof a.componentWillUnmount=="function"&&W0(u,t,a)),Ct(l,t,u);break;case 21:Ct(l,t,u);break;case 22:rl=(a=rl)||u.memoizedState!==null,Ct(l,t,u),rl=a;break;default:Ct(l,t,u)}}function uo(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{be(l)}catch(u){ul(t,t.return,u)}}function Iy(l){switch(l.tag){case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new I0),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new I0),t;default:throw Error(r(435,l.tag))}}function Ac(l,t){var u=Iy(l);t.forEach(function(a){var e=cv.bind(null,l,a);u.has(a)||(u.add(a),a.then(e,e))})}function Fl(l,t){var u=t.deletions;if(u!==null)for(var a=0;a<u.length;a++){var e=u[a],n=l,f=t,c=f;l:for(;c!==null;){switch(c.tag){case 27:if(fu(c.type)){il=c.stateNode,jl=!1;break l}break;case 5:il=c.stateNode,jl=!1;break l;case 3:case 4:il=c.stateNode.containerInfo,jl=!0;break l}c=c.return}if(il===null)throw Error(r(160));to(n,f,e),il=null,jl=!1,n=e.alternate,n!==null&&(n.return=null),e.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ao(t,l),t=t.sibling}var rt=null;function ao(l,t){var u=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Fl(t,l),Il(l),a&4&&(It(3,l,l.return),te(3,l),It(5,l,l.return));break;case 1:Fl(t,l),Il(l),a&512&&(rl||u===null||Tt(u,u.return)),a&64&&Yt&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(u=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=u===null?a:u.concat(a))));break;case 26:var e=rt;if(Fl(t,l),Il(l),a&512&&(rl||u===null||Tt(u,u.return)),a&4){var n=u!==null?u.memoizedState:null;if(a=l.memoizedState,u===null)if(a===null)if(l.stateNode===null){l:{a=l.type,u=l.memoizedProps,e=e.ownerDocument||e;t:switch(a){case"title":n=e.getElementsByTagName("title")[0],(!n||n[Oa]||n[Nl]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=e.createElement(a),e.head.insertBefore(n,e.querySelector("head > title"))),Dl(n,a,u),n[Nl]=l,Tl(n),a=n;break l;case"link":var f=Io("link","href",e).get(a+(u.href||""));if(f){for(var c=0;c<f.length;c++)if(n=f[c],n.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&n.getAttribute("rel")===(u.rel==null?null:u.rel)&&n.getAttribute("title")===(u.title==null?null:u.title)&&n.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){f.splice(c,1);break t}}n=e.createElement(a),Dl(n,a,u),e.head.appendChild(n);break;case"meta":if(f=Io("meta","content",e).get(a+(u.content||""))){for(c=0;c<f.length;c++)if(n=f[c],n.getAttribute("content")===(u.content==null?null:""+u.content)&&n.getAttribute("name")===(u.name==null?null:u.name)&&n.getAttribute("property")===(u.property==null?null:u.property)&&n.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&n.getAttribute("charset")===(u.charSet==null?null:u.charSet)){f.splice(c,1);break t}}n=e.createElement(a),Dl(n,a,u),e.head.appendChild(n);break;default:throw Error(r(468,a))}n[Nl]=l,Tl(n),a=n}l.stateNode=a}else Po(e,l.type,l.stateNode);else l.stateNode=Fo(e,a,l.memoizedProps);else n!==a?(n===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):n.count--,a===null?Po(e,l.type,l.stateNode):Fo(e,a,l.memoizedProps)):a===null&&l.stateNode!==null&&Sc(l,l.memoizedProps,u.memoizedProps)}break;case 27:Fl(t,l),Il(l),a&512&&(rl||u===null||Tt(u,u.return)),u!==null&&a&4&&Sc(l,l.memoizedProps,u.memoizedProps);break;case 5:if(Fl(t,l),Il(l),a&512&&(rl||u===null||Tt(u,u.return)),l.flags&32){e=l.stateNode;try{Vu(e,"")}catch(m){ul(l,l.return,m)}}a&4&&l.stateNode!=null&&(e=l.memoizedProps,Sc(l,e,u!==null?u.memoizedProps:e)),a&1024&&(Ec=!0);break;case 6:if(Fl(t,l),Il(l),a&4){if(l.stateNode===null)throw Error(r(162));a=l.memoizedProps,u=l.stateNode;try{u.nodeValue=a}catch(m){ul(l,l.return,m)}}break;case 3:if(On=null,e=rt,rt=_n(t.containerInfo),Fl(t,l),rt=e,Il(l),a&4&&u!==null&&u.memoizedState.isDehydrated)try{be(t.containerInfo)}catch(m){ul(l,l.return,m)}Ec&&(Ec=!1,eo(l));break;case 4:a=rt,rt=_n(l.stateNode.containerInfo),Fl(t,l),Il(l),rt=a;break;case 12:Fl(t,l),Il(l);break;case 13:Fl(t,l),Il(l),l.child.flags&8192&&l.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Uc=gt()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Ac(l,a)));break;case 22:e=l.memoizedState!==null;var i=u!==null&&u.memoizedState!==null,v=Yt,g=rl;if(Yt=v||e,rl=g||i,Fl(t,l),rl=g,Yt=v,Il(l),a&8192)l:for(t=l.stateNode,t._visibility=e?t._visibility&-2:t._visibility|1,e&&(u===null||i||Yt||rl||Ru(l)),u=null,t=l;;){if(t.tag===5||t.tag===26){if(u===null){i=u=t;try{if(n=i.stateNode,e)f=n.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{c=i.stateNode;var T=i.memoizedProps.style,h=T!=null&&T.hasOwnProperty("display")?T.display:null;c.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(m){ul(i,i.return,m)}}}else if(t.tag===6){if(u===null){i=t;try{i.stateNode.nodeValue=e?"":i.memoizedProps}catch(m){ul(i,i.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(u=a.retryQueue,u!==null&&(a.retryQueue=null,Ac(l,u))));break;case 19:Fl(t,l),Il(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Ac(l,a)));break;case 30:break;case 21:break;default:Fl(t,l),Il(l)}}function Il(l){var t=l.flags;if(t&2){try{for(var u,a=l.return;a!==null;){if($0(a)){u=a;break}a=a.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var e=u.stateNode,n=bc(l);dn(l,n,e);break;case 5:var f=u.stateNode;u.flags&32&&(Vu(f,""),u.flags&=-33);var c=bc(l);dn(l,c,f);break;case 3:case 4:var i=u.stateNode.containerInfo,v=bc(l);Tc(l,v,i);break;default:throw Error(r(161))}}catch(g){ul(l,l.return,g)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function eo(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;eo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function Pt(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)P0(l,t.alternate,t),t=t.sibling}function Ru(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:It(4,t,t.return),Ru(t);break;case 1:Tt(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&W0(t,t.return,u),Ru(t);break;case 27:de(t.stateNode);case 26:case 5:Tt(t,t.return),Ru(t);break;case 22:t.memoizedState===null&&Ru(t);break;case 30:Ru(t);break;default:Ru(t)}l=l.sibling}}function lu(l,t,u){for(u=u&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,e=l,n=t,f=n.flags;switch(n.tag){case 0:case 11:case 15:lu(e,n,u),te(4,n);break;case 1:if(lu(e,n,u),a=n,e=a.stateNode,typeof e.componentDidMount=="function")try{e.componentDidMount()}catch(v){ul(a,a.return,v)}if(a=n,e=a.updateQueue,e!==null){var c=a.stateNode;try{var i=e.shared.hiddenCallbacks;if(i!==null)for(e.shared.hiddenCallbacks=null,e=0;e<i.length;e++)xs(i[e],c)}catch(v){ul(a,a.return,v)}}u&&f&64&&w0(n),ue(n,n.return);break;case 27:F0(n);case 26:case 5:lu(e,n,u),u&&a===null&&f&4&&k0(n),ue(n,n.return);break;case 12:lu(e,n,u);break;case 13:lu(e,n,u),u&&f&4&&uo(e,n);break;case 22:n.memoizedState===null&&lu(e,n,u),ue(n,n.return);break;case 30:break;default:lu(e,n,u)}t=t.sibling}}function zc(l,t){var u=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==u&&(l!=null&&l.refCount++,u!=null&&ja(u))}function _c(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&ja(l))}function Et(l,t,u,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)no(l,t,u,a),t=t.sibling}function no(l,t,u,a){var e=t.flags;switch(t.tag){case 0:case 11:case 15:Et(l,t,u,a),e&2048&&te(9,t);break;case 1:Et(l,t,u,a);break;case 3:Et(l,t,u,a),e&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&ja(l)));break;case 12:if(e&2048){Et(l,t,u,a),l=t.stateNode;try{var n=t.memoizedProps,f=n.id,c=n.onPostCommit;typeof c=="function"&&c(f,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(i){ul(t,t.return,i)}}else Et(l,t,u,a);break;case 13:Et(l,t,u,a);break;case 23:break;case 22:n=t.stateNode,f=t.alternate,t.memoizedState!==null?n._visibility&2?Et(l,t,u,a):ae(l,t):n._visibility&2?Et(l,t,u,a):(n._visibility|=2,ia(l,t,u,a,(t.subtreeFlags&10256)!==0)),e&2048&&zc(f,t);break;case 24:Et(l,t,u,a),e&2048&&_c(t.alternate,t);break;default:Et(l,t,u,a)}}function ia(l,t,u,a,e){for(e=e&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=l,f=t,c=u,i=a,v=f.flags;switch(f.tag){case 0:case 11:case 15:ia(n,f,c,i,e),te(8,f);break;case 23:break;case 22:var g=f.stateNode;f.memoizedState!==null?g._visibility&2?ia(n,f,c,i,e):ae(n,f):(g._visibility|=2,ia(n,f,c,i,e)),e&&v&2048&&zc(f.alternate,f);break;case 24:ia(n,f,c,i,e),e&&v&2048&&_c(f.alternate,f);break;default:ia(n,f,c,i,e)}t=t.sibling}}function ae(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var u=l,a=t,e=a.flags;switch(a.tag){case 22:ae(u,a),e&2048&&zc(a.alternate,a);break;case 24:ae(u,a),e&2048&&_c(a.alternate,a);break;default:ae(u,a)}t=t.sibling}}var ee=8192;function sa(l){if(l.subtreeFlags&ee)for(l=l.child;l!==null;)fo(l),l=l.sibling}function fo(l){switch(l.tag){case 26:sa(l),l.flags&ee&&l.memoizedState!==null&&Cv(rt,l.memoizedState,l.memoizedProps);break;case 5:sa(l);break;case 3:case 4:var t=rt;rt=_n(l.stateNode.containerInfo),sa(l),rt=t;break;case 22:l.memoizedState===null&&(t=l.alternate,t!==null&&t.memoizedState!==null?(t=ee,ee=16777216,sa(l),ee=t):sa(l));break;default:sa(l)}}function co(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function ne(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var u=0;u<t.length;u++){var a=t[u];Al=a,so(a,l)}co(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)io(l),l=l.sibling}function io(l){switch(l.tag){case 0:case 11:case 15:ne(l),l.flags&2048&&It(9,l,l.return);break;case 3:ne(l);break;case 12:ne(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,yn(l)):ne(l);break;default:ne(l)}}function yn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var u=0;u<t.length;u++){var a=t[u];Al=a,so(a,l)}co(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:It(8,t,t.return),yn(t);break;case 22:u=t.stateNode,u._visibility&2&&(u._visibility&=-3,yn(t));break;default:yn(t)}l=l.sibling}}function so(l,t){for(;Al!==null;){var u=Al;switch(u.tag){case 0:case 11:case 15:It(8,u,t);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var a=u.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ja(u.memoizedState.cache)}if(a=u.child,a!==null)a.return=u,Al=a;else l:for(u=l;Al!==null;){a=Al;var e=a.sibling,n=a.return;if(lo(a),a===u){Al=null;break l}if(e!==null){e.return=n,Al=e;break l}Al=n}}}var Py={getCacheForType:function(l){var t=xl(Sl),u=t.data.get(l);return u===void 0&&(u=l(),t.data.set(l,u)),u}},lv=typeof WeakMap=="function"?WeakMap:Map,k=0,el=null,j=null,V=0,$=0,Pl=null,tu=!1,oa=!1,Mc=!1,Gt=0,dl=0,uu=0,Hu=0,Oc=0,st=0,da=0,fe=null,Zl=null,Dc=!1,Uc=0,vn=1/0,rn=null,au=null,Ol=0,eu=null,ya=null,va=0,pc=0,Rc=null,oo=null,ce=0,Hc=null;function lt(){if((k&2)!==0&&V!==0)return V&-V;if(S.T!==null){var l=la;return l!==0?l:Gc()}return Oi()}function yo(){st===0&&(st=(V&536870912)===0||W?Ai():536870912);var l=it.current;return l!==null&&(l.flags|=32),st}function tt(l,t,u){(l===el&&($===2||$===9)||l.cancelPendingCommit!==null)&&(ra(l,0),nu(l,V,st,!1)),Ma(l,u),((k&2)===0||l!==el)&&(l===el&&((k&2)===0&&(Hu|=u),dl===4&&nu(l,V,st,!1)),At(l))}function vo(l,t,u){if((k&6)!==0)throw Error(r(327));var a=!u&&(t&124)===0&&(t&l.expiredLanes)===0||_a(l,t),e=a?av(l,t):qc(l,t,!0),n=a;do{if(e===0){oa&&!a&&nu(l,t,0,!1);break}else{if(u=l.current.alternate,n&&!tv(u)){e=qc(l,t,!1),n=!1;continue}if(e===2){if(n=t,l.errorRecoveryDisabledLanes&n)var f=0;else f=l.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;l:{var c=l;e=fe;var i=c.current.memoizedState.isDehydrated;if(i&&(ra(c,f).flags|=256),f=qc(c,f,!1),f!==2){if(Mc&&!i){c.errorRecoveryDisabledLanes|=n,Hu|=n,e=4;break l}n=Zl,Zl=e,n!==null&&(Zl===null?Zl=n:Zl.push.apply(Zl,n))}e=f}if(n=!1,e!==2)continue}}if(e===1){ra(l,0),nu(l,t,0,!0);break}l:{switch(a=l,n=e,n){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:nu(a,t,st,!tu);break l;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(e=Uc+300-gt(),10<e)){if(nu(a,t,st,!tu),_e(a,0,!0)!==0)break l;a.timeoutHandle=Zo(ro.bind(null,a,u,Zl,rn,Dc,t,st,Hu,da,tu,n,2,-0,0),e);break l}ro(a,u,Zl,rn,Dc,t,st,Hu,da,tu,n,0,-0,0)}}break}while(!0);At(l)}function ro(l,t,u,a,e,n,f,c,i,v,g,T,h,m){if(l.timeoutHandle=-1,T=t.subtreeFlags,(T&8192||(T&16785408)===16785408)&&(re={stylesheets:null,count:0,unsuspend:Yv},fo(t),T=Gv(),T!==null)){l.cancelPendingCommit=T(Eo.bind(null,l,t,n,u,a,e,f,c,i,g,1,h,m)),nu(l,n,f,!v);return}Eo(l,t,n,u,a,e,f,c,i)}function tv(l){for(var t=l;;){var u=t.tag;if((u===0||u===11||u===15)&&t.flags&16384&&(u=t.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var a=0;a<u.length;a++){var e=u[a],n=e.getSnapshot;e=e.value;try{if(!kl(n(),e))return!1}catch{return!1}}if(u=t.child,t.subtreeFlags&16384&&u!==null)u.return=t,t=u;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nu(l,t,u,a){t&=~Oc,t&=~Hu,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var e=t;0<e;){var n=31-Wl(e),f=1<<n;a[n]=-1,e&=~f}u!==0&&_i(l,u,t)}function hn(){return(k&6)===0?(ie(0),!1):!0}function Nc(){if(j!==null){if($===0)var l=j.return;else l=j,Rt=Mu=null,kf(l),fa=null,Ia=0,l=j;for(;l!==null;)J0(l.alternate,l),l=l.return;j=null}}function ra(l,t){var u=l.timeoutHandle;u!==-1&&(l.timeoutHandle=-1,bv(u)),u=l.cancelPendingCommit,u!==null&&(l.cancelPendingCommit=null,u()),Nc(),el=l,j=u=Dt(l.current,null),V=t,$=0,Pl=null,tu=!1,oa=_a(l,t),Mc=!1,da=st=Oc=Hu=uu=dl=0,Zl=fe=null,Dc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var e=31-Wl(a),n=1<<e;t|=l[e],a&=~n}return Gt=t,Ye(),u}function ho(l,t){Q=null,S.H=tn,t===Va||t===Ke?(t=Hs(),$=3):t===Us?(t=Hs(),$=4):$=t===N0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pl=t,j===null&&(dl=1,fn(l,et(t,l.current)))}function mo(){var l=S.H;return S.H=tn,l===null?tn:l}function go(){var l=S.A;return S.A=Py,l}function xc(){dl=4,tu||(V&4194048)!==V&&it.current!==null||(oa=!0),(uu&134217727)===0&&(Hu&134217727)===0||el===null||nu(el,V,st,!1)}function qc(l,t,u){var a=k;k|=2;var e=mo(),n=go();(el!==l||V!==t)&&(rn=null,ra(l,t)),t=!1;var f=dl;l:do try{if($!==0&&j!==null){var c=j,i=Pl;switch($){case 8:Nc(),f=6;break l;case 3:case 2:case 9:case 6:it.current===null&&(t=!0);var v=$;if($=0,Pl=null,ha(l,c,i,v),u&&oa){f=0;break l}break;default:v=$,$=0,Pl=null,ha(l,c,i,v)}}uv(),f=dl;break}catch(g){ho(l,g)}while(!0);return t&&l.shellSuspendCounter++,Rt=Mu=null,k=a,S.H=e,S.A=n,j===null&&(el=null,V=0,Ye()),f}function uv(){for(;j!==null;)So(j)}function av(l,t){var u=k;k|=2;var a=mo(),e=go();el!==l||V!==t?(rn=null,vn=gt()+500,ra(l,t)):oa=_a(l,t);l:do try{if($!==0&&j!==null){t=j;var n=Pl;t:switch($){case 1:$=0,Pl=null,ha(l,t,n,1);break;case 2:case 9:if(ps(n)){$=0,Pl=null,bo(t);break}t=function(){$!==2&&$!==9||el!==l||($=7),At(l)},n.then(t,t);break l;case 3:$=7;break l;case 4:$=5;break l;case 7:ps(n)?($=0,Pl=null,bo(t)):($=0,Pl=null,ha(l,t,n,7));break;case 5:var f=null;switch(j.tag){case 26:f=j.memoizedState;case 5:case 27:var c=j;if(!f||ld(f)){$=0,Pl=null;var i=c.sibling;if(i!==null)j=i;else{var v=c.return;v!==null?(j=v,mn(v)):j=null}break t}}$=0,Pl=null,ha(l,t,n,5);break;case 6:$=0,Pl=null,ha(l,t,n,6);break;case 8:Nc(),dl=6;break l;default:throw Error(r(462))}}ev();break}catch(g){ho(l,g)}while(!0);return Rt=Mu=null,S.H=a,S.A=e,k=u,j!==null?0:(el=null,V=0,Ye(),dl)}function ev(){for(;j!==null&&!Od();)So(j)}function So(l){var t=L0(l.alternate,l,Gt);l.memoizedProps=l.pendingProps,t===null?mn(l):j=t}function bo(l){var t=l,u=t.alternate;switch(t.tag){case 15:case 0:t=G0(u,t,t.pendingProps,t.type,void 0,V);break;case 11:t=G0(u,t,t.pendingProps,t.type.render,t.ref,V);break;case 5:kf(t);default:J0(u,t),t=j=bs(t,Gt),t=L0(u,t,Gt)}l.memoizedProps=l.pendingProps,t===null?mn(l):j=t}function ha(l,t,u,a){Rt=Mu=null,kf(t),fa=null,Ia=0;var e=t.return;try{if(wy(l,e,t,u,V)){dl=1,fn(l,et(u,l.current)),j=null;return}}catch(n){if(e!==null)throw j=e,n;dl=1,fn(l,et(u,l.current)),j=null;return}t.flags&32768?(W||a===1?l=!0:oa||(V&536870912)!==0?l=!1:(tu=l=!0,(a===2||a===9||a===3||a===6)&&(a=it.current,a!==null&&a.tag===13&&(a.flags|=16384))),To(t,l)):mn(t)}function mn(l){var t=l;do{if((t.flags&32768)!==0){To(t,tu);return}l=t.return;var u=ky(t.alternate,t,Gt);if(u!==null){j=u;return}if(t=t.sibling,t!==null){j=t;return}j=t=l}while(t!==null);dl===0&&(dl=5)}function To(l,t){do{var u=$y(l.alternate,l);if(u!==null){u.flags&=32767,j=u;return}if(u=l.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!t&&(l=l.sibling,l!==null)){j=l;return}j=l=u}while(l!==null);dl=6,j=null}function Eo(l,t,u,a,e,n,f,c,i){l.cancelPendingCommit=null;do gn();while(Ol!==0);if((k&6)!==0)throw Error(r(327));if(t!==null){if(t===l.current)throw Error(r(177));if(n=t.lanes|t.childLanes,n|=_f,Yd(l,u,n,f,c,i),l===el&&(j=el=null,V=0),ya=t,eu=l,va=u,pc=n,Rc=e,oo=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,iv(Ee,function(){return Oo(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=S.T,S.T=null,e=O.p,O.p=2,f=k,k|=4;try{Fy(l,t,u)}finally{k=f,O.p=e,S.T=a}}Ol=1,Ao(),zo(),_o()}}function Ao(){if(Ol===1){Ol=0;var l=eu,t=ya,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=S.T,S.T=null;var a=O.p;O.p=2;var e=k;k|=4;try{ao(t,l);var n=Jc,f=ss(l.containerInfo),c=n.focusedElem,i=n.selectionRange;if(f!==c&&c&&c.ownerDocument&&is(c.ownerDocument.documentElement,c)){if(i!==null&&bf(c)){var v=i.start,g=i.end;if(g===void 0&&(g=v),"selectionStart"in c)c.selectionStart=v,c.selectionEnd=Math.min(g,c.value.length);else{var T=c.ownerDocument||document,h=T&&T.defaultView||window;if(h.getSelection){var m=h.getSelection(),B=c.textContent.length,N=Math.min(i.start,B),ll=i.end===void 0?N:Math.min(i.end,B);!m.extend&&N>ll&&(f=ll,ll=N,N=f);var d=cs(c,N),o=cs(c,ll);if(d&&o&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==o.node||m.focusOffset!==o.offset)){var y=T.createRange();y.setStart(d.node,d.offset),m.removeAllRanges(),N>ll?(m.addRange(y),m.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),m.addRange(y))}}}}for(T=[],m=c;m=m.parentNode;)m.nodeType===1&&T.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<T.length;c++){var b=T[c];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}pn=!!Kc,Jc=Kc=null}finally{k=e,O.p=a,S.T=u}}l.current=t,Ol=2}}function zo(){if(Ol===2){Ol=0;var l=eu,t=ya,u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=S.T,S.T=null;var a=O.p;O.p=2;var e=k;k|=4;try{P0(l,t.alternate,t)}finally{k=e,O.p=a,S.T=u}}Ol=3}}function _o(){if(Ol===4||Ol===3){Ol=0,Dd();var l=eu,t=ya,u=va,a=oo;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ol=5:(Ol=0,ya=eu=null,Mo(l,l.pendingLanes));var e=l.pendingLanes;if(e===0&&(au=null),Fn(u),t=t.stateNode,wl&&typeof wl.onCommitFiberRoot=="function")try{wl.onCommitFiberRoot(za,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=S.T,e=O.p,O.p=2,S.T=null;try{for(var n=l.onRecoverableError,f=0;f<a.length;f++){var c=a[f];n(c.value,{componentStack:c.stack})}}finally{S.T=t,O.p=e}}(va&3)!==0&&gn(),At(l),e=l.pendingLanes,(u&4194090)!==0&&(e&42)!==0?l===Hc?ce++:(ce=0,Hc=l):ce=0,ie(0)}}function Mo(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,ja(t)))}function gn(l){return Ao(),zo(),_o(),Oo()}function Oo(){if(Ol!==5)return!1;var l=eu,t=pc;pc=0;var u=Fn(va),a=S.T,e=O.p;try{O.p=32>u?32:u,S.T=null,u=Rc,Rc=null;var n=eu,f=va;if(Ol=0,ya=eu=null,va=0,(k&6)!==0)throw Error(r(331));var c=k;if(k|=4,io(n.current),no(n,n.current,f,u),k=c,ie(0,!1),wl&&typeof wl.onPostCommitFiberRoot=="function")try{wl.onPostCommitFiberRoot(za,n)}catch{}return!0}finally{O.p=e,S.T=a,Mo(l,t)}}function Do(l,t,u){t=et(u,t),t=sc(l.stateNode,t,2),l=Wt(l,t,2),l!==null&&(Ma(l,2),At(l))}function ul(l,t,u){if(l.tag===3)Do(l,l,u);else for(;t!==null;){if(t.tag===3){Do(t,l,u);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(au===null||!au.has(a))){l=et(u,l),u=R0(2),a=Wt(t,u,2),a!==null&&(H0(u,a,t,l),Ma(a,2),At(a));break}}t=t.return}}function Bc(l,t,u){var a=l.pingCache;if(a===null){a=l.pingCache=new lv;var e=new Set;a.set(t,e)}else e=a.get(t),e===void 0&&(e=new Set,a.set(t,e));e.has(u)||(Mc=!0,e.add(u),l=nv.bind(null,l,t,u),t.then(l,l))}function nv(l,t,u){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&u,l.warmLanes&=~u,el===l&&(V&u)===u&&(dl===4||dl===3&&(V&62914560)===V&&300>gt()-Uc?(k&2)===0&&ra(l,0):Oc|=u,da===V&&(da=0)),At(l)}function Uo(l,t){t===0&&(t=zi()),l=$u(l,t),l!==null&&(Ma(l,t),At(l))}function fv(l){var t=l.memoizedState,u=0;t!==null&&(u=t.retryLane),Uo(l,u)}function cv(l,t){var u=0;switch(l.tag){case 13:var a=l.stateNode,e=l.memoizedState;e!==null&&(u=e.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Uo(l,u)}function iv(l,t){return wn(l,t)}var Sn=null,ma=null,Yc=!1,bn=!1,Cc=!1,Nu=0;function At(l){l!==ma&&l.next===null&&(ma===null?Sn=ma=l:ma=ma.next=l),bn=!0,Yc||(Yc=!0,ov())}function ie(l,t){if(!Cc&&bn){Cc=!0;do for(var u=!1,a=Sn;a!==null;){if(l!==0){var e=a.pendingLanes;if(e===0)var n=0;else{var f=a.suspendedLanes,c=a.pingedLanes;n=(1<<31-Wl(42|l)+1)-1,n&=e&~(f&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(u=!0,No(a,n))}else n=V,n=_e(a,a===el?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||_a(a,n)||(u=!0,No(a,n));a=a.next}while(u);Cc=!1}}function sv(){po()}function po(){bn=Yc=!1;var l=0;Nu!==0&&(Sv()&&(l=Nu),Nu=0);for(var t=gt(),u=null,a=Sn;a!==null;){var e=a.next,n=Ro(a,t);n===0?(a.next=null,u===null?Sn=e:u.next=e,e===null&&(ma=u)):(u=a,(l!==0||(n&3)!==0)&&(bn=!0)),a=e}ie(l)}function Ro(l,t){for(var u=l.suspendedLanes,a=l.pingedLanes,e=l.expirationTimes,n=l.pendingLanes&-62914561;0<n;){var f=31-Wl(n),c=1<<f,i=e[f];i===-1?((c&u)===0||(c&a)!==0)&&(e[f]=Bd(c,t)):i<=t&&(l.expiredLanes|=c),n&=~c}if(t=el,u=V,u=_e(l,l===t?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,u===0||l===t&&($===2||$===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&Wn(a),l.callbackNode=null,l.callbackPriority=0;if((u&3)===0||_a(l,u)){if(t=u&-u,t===l.callbackPriority)return t;switch(a!==null&&Wn(a),Fn(u)){case 2:case 8:u=Ti;break;case 32:u=Ee;break;case 268435456:u=Ei;break;default:u=Ee}return a=Ho.bind(null,l),u=wn(u,a),l.callbackPriority=t,l.callbackNode=u,t}return a!==null&&a!==null&&Wn(a),l.callbackPriority=2,l.callbackNode=null,2}function Ho(l,t){if(Ol!==0&&Ol!==5)return l.callbackNode=null,l.callbackPriority=0,null;var u=l.callbackNode;if(gn()&&l.callbackNode!==u)return null;var a=V;return a=_e(l,l===el?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(vo(l,a,t),Ro(l,gt()),l.callbackNode!=null&&l.callbackNode===u?Ho.bind(null,l):null)}function No(l,t){if(gn())return null;vo(l,t,!0)}function ov(){Tv(function(){(k&6)!==0?wn(bi,sv):po()})}function Gc(){return Nu===0&&(Nu=Ai()),Nu}function xo(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:pe(""+l)}function qo(l,t){var u=t.ownerDocument.createElement("input");return u.name=t.name,u.value=t.value,l.id&&u.setAttribute("form",l.id),t.parentNode.insertBefore(u,t),l=new FormData(l),u.parentNode.removeChild(u),l}function dv(l,t,u,a,e){if(t==="submit"&&u&&u.stateNode===e){var n=xo((e[Gl]||null).action),f=a.submitter;f&&(t=(t=f[Gl]||null)?xo(t.formAction):f.getAttribute("formAction"),t!==null&&(n=t,f=null));var c=new xe("action","action",null,a,e);l.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nu!==0){var i=f?qo(e,f):new FormData(e);ec(u,{pending:!0,data:i,method:e.method,action:n},null,i)}}else typeof n=="function"&&(c.preventDefault(),i=f?qo(e,f):new FormData(e),ec(u,{pending:!0,data:i,method:e.method,action:n},n,i))},currentTarget:e}]})}}for(var Qc=0;Qc<zf.length;Qc++){var Xc=zf[Qc],yv=Xc.toLowerCase(),vv=Xc[0].toUpperCase()+Xc.slice(1);vt(yv,"on"+vv)}vt(ys,"onAnimationEnd"),vt(vs,"onAnimationIteration"),vt(rs,"onAnimationStart"),vt("dblclick","onDoubleClick"),vt("focusin","onFocus"),vt("focusout","onBlur"),vt(Ry,"onTransitionRun"),vt(Hy,"onTransitionStart"),vt(Ny,"onTransitionCancel"),vt(hs,"onTransitionEnd"),Xu("onMouseEnter",["mouseout","mouseover"]),Xu("onMouseLeave",["mouseout","mouseover"]),Xu("onPointerEnter",["pointerout","pointerover"]),Xu("onPointerLeave",["pointerout","pointerover"]),mu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mu("onBeforeInput",["compositionend","keypress","textInput","paste"]),mu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var se="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(" "),rv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(se));function Bo(l,t){t=(t&4)!==0;for(var u=0;u<l.length;u++){var a=l[u],e=a.event;a=a.listeners;l:{var n=void 0;if(t)for(var f=a.length-1;0<=f;f--){var c=a[f],i=c.instance,v=c.currentTarget;if(c=c.listener,i!==n&&e.isPropagationStopped())break l;n=c,e.currentTarget=v;try{n(e)}catch(g){nn(g)}e.currentTarget=null,n=i}else for(f=0;f<a.length;f++){if(c=a[f],i=c.instance,v=c.currentTarget,c=c.listener,i!==n&&e.isPropagationStopped())break l;n=c,e.currentTarget=v;try{n(e)}catch(g){nn(g)}e.currentTarget=null,n=i}}}}function Z(l,t){var u=t[In];u===void 0&&(u=t[In]=new Set);var a=l+"__bubble";u.has(a)||(Yo(t,l,2,!1),u.add(a))}function jc(l,t,u){var a=0;t&&(a|=4),Yo(u,l,a,t)}var Tn="_reactListening"+Math.random().toString(36).slice(2);function Zc(l){if(!l[Tn]){l[Tn]=!0,Ui.forEach(function(u){u!=="selectionchange"&&(rv.has(u)||jc(u,!1,l),jc(u,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Tn]||(t[Tn]=!0,jc("selectionchange",!1,t))}}function Yo(l,t,u,a){switch(fd(t)){case 2:var e=jv;break;case 8:e=Zv;break;default:e=ui}u=e.bind(null,t,u,l),e=void 0,!of||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(e=!0),a?e!==void 0?l.addEventListener(t,u,{capture:!0,passive:e}):l.addEventListener(t,u,!0):e!==void 0?l.addEventListener(t,u,{passive:e}):l.addEventListener(t,u,!1)}function Vc(l,t,u,a,e){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var c=a.stateNode.containerInfo;if(c===e)break;if(f===4)for(f=a.return;f!==null;){var i=f.tag;if((i===3||i===4)&&f.stateNode.containerInfo===e)return;f=f.return}for(;c!==null;){if(f=Cu(c),f===null)return;if(i=f.tag,i===5||i===6||i===26||i===27){a=n=f;continue l}c=c.parentNode}}a=a.return}Zi(function(){var v=n,g=cf(u),T=[];l:{var h=ms.get(l);if(h!==void 0){var m=xe,B=l;switch(l){case"keypress":if(He(u)===0)break l;case"keydown":case"keyup":m=iy;break;case"focusin":B="focus",m=rf;break;case"focusout":B="blur",m=rf;break;case"beforeblur":case"afterblur":m=rf;break;case"click":if(u.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=$d;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=dy;break;case ys:case vs:case rs:m=Pd;break;case hs:m=vy;break;case"scroll":case"scrollend":m=Wd;break;case"wheel":m=hy;break;case"copy":case"cut":case"paste":m=ty;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=wi;break;case"toggle":case"beforetoggle":m=gy}var N=(t&4)!==0,ll=!N&&(l==="scroll"||l==="scrollend"),d=N?h!==null?h+"Capture":null:h;N=[];for(var o=v,y;o!==null;){var b=o;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||d===null||(b=Ua(o,d),b!=null&&N.push(oe(o,b,y))),ll)break;o=o.return}0<N.length&&(h=new m(h,B,null,u,g),T.push({event:h,listeners:N}))}}if((t&7)===0){l:{if(h=l==="mouseover"||l==="pointerover",m=l==="mouseout"||l==="pointerout",h&&u!==ff&&(B=u.relatedTarget||u.fromElement)&&(Cu(B)||B[Yu]))break l;if((m||h)&&(h=g.window===g?g:(h=g.ownerDocument)?h.defaultView||h.parentWindow:window,m?(B=u.relatedTarget||u.toElement,m=v,B=B?Cu(B):null,B!==null&&(ll=F(B),N=B.tag,B!==ll||N!==5&&N!==27&&N!==6)&&(B=null)):(m=null,B=v),m!==B)){if(N=Ki,b="onMouseLeave",d="onMouseEnter",o="mouse",(l==="pointerout"||l==="pointerover")&&(N=wi,b="onPointerLeave",d="onPointerEnter",o="pointer"),ll=m==null?h:Da(m),y=B==null?h:Da(B),h=new N(b,o+"leave",m,u,g),h.target=ll,h.relatedTarget=y,b=null,Cu(g)===v&&(N=new N(d,o+"enter",B,u,g),N.target=y,N.relatedTarget=ll,b=N),ll=b,m&&B)t:{for(N=m,d=B,o=0,y=N;y;y=ga(y))o++;for(y=0,b=d;b;b=ga(b))y++;for(;0<o-y;)N=ga(N),o--;for(;0<y-o;)d=ga(d),y--;for(;o--;){if(N===d||d!==null&&N===d.alternate)break t;N=ga(N),d=ga(d)}N=null}else N=null;m!==null&&Co(T,h,m,N,!1),B!==null&&ll!==null&&Co(T,ll,B,N,!0)}}l:{if(h=v?Da(v):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var U=ts;else if(Pi(h))if(us)U=Dy;else{U=My;var X=_y}else m=h.nodeName,!m||m.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?v&&nf(v.elementType)&&(U=ts):U=Oy;if(U&&(U=U(l,v))){ls(T,U,u,g);break l}X&&X(l,h,v),l==="focusout"&&v&&h.type==="number"&&v.memoizedProps.value!=null&&ef(h,"number",h.value)}switch(X=v?Da(v):window,l){case"focusin":(Pi(X)||X.contentEditable==="true")&&(wu=X,Tf=v,Ya=null);break;case"focusout":Ya=Tf=wu=null;break;case"mousedown":Ef=!0;break;case"contextmenu":case"mouseup":case"dragend":Ef=!1,os(T,u,g);break;case"selectionchange":if(py)break;case"keydown":case"keyup":os(T,u,g)}var R;if(mf)l:{switch(l){case"compositionstart":var x="onCompositionStart";break l;case"compositionend":x="onCompositionEnd";break l;case"compositionupdate":x="onCompositionUpdate";break l}x=void 0}else Ju?Fi(l,u)&&(x="onCompositionEnd"):l==="keydown"&&u.keyCode===229&&(x="onCompositionStart");x&&(Wi&&u.locale!=="ko"&&(Ju||x!=="onCompositionStart"?x==="onCompositionEnd"&&Ju&&(R=Vi()):(Lt=g,df="value"in Lt?Lt.value:Lt.textContent,Ju=!0)),X=En(v,x),0<X.length&&(x=new Ji(x,l,null,u,g),T.push({event:x,listeners:X}),R?x.data=R:(R=Ii(u),R!==null&&(x.data=R)))),(R=by?Ty(l,u):Ey(l,u))&&(x=En(v,"onBeforeInput"),0<x.length&&(X=new Ji("onBeforeInput","beforeinput",null,u,g),T.push({event:X,listeners:x}),X.data=R)),dv(T,l,v,u,g)}Bo(T,t)})}function oe(l,t,u){return{instance:l,listener:t,currentTarget:u}}function En(l,t){for(var u=t+"Capture",a=[];l!==null;){var e=l,n=e.stateNode;if(e=e.tag,e!==5&&e!==26&&e!==27||n===null||(e=Ua(l,u),e!=null&&a.unshift(oe(l,e,n)),e=Ua(l,t),e!=null&&a.push(oe(l,e,n))),l.tag===3)return a;l=l.return}return[]}function ga(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Co(l,t,u,a,e){for(var n=t._reactName,f=[];u!==null&&u!==a;){var c=u,i=c.alternate,v=c.stateNode;if(c=c.tag,i!==null&&i===a)break;c!==5&&c!==26&&c!==27||v===null||(i=v,e?(v=Ua(u,n),v!=null&&f.unshift(oe(u,v,i))):e||(v=Ua(u,n),v!=null&&f.push(oe(u,v,i)))),u=u.return}f.length!==0&&l.push({event:t,listeners:f})}var hv=/\r\n?/g,mv=/\u0000|\uFFFD/g;function Go(l){return(typeof l=="string"?l:""+l).replace(hv,`
|
|
41
|
-
`).replace(mv,"")}function Qo(l,t){return t=Go(t),Go(l)===t}function An(){}function P(l,t,u,a,e,n){switch(u){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Vu(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Vu(l,""+a);break;case"className":Oe(l,"class",a);break;case"tabIndex":Oe(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oe(l,u,a);break;case"style":Xi(l,a,n);break;case"data":if(t!=="object"){Oe(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||u!=="href")){l.removeAttribute(u);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(u);break}a=pe(""+a),l.setAttribute(u,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(u==="formAction"?(t!=="input"&&P(l,t,"name",e.name,e,null),P(l,t,"formEncType",e.formEncType,e,null),P(l,t,"formMethod",e.formMethod,e,null),P(l,t,"formTarget",e.formTarget,e,null)):(P(l,t,"encType",e.encType,e,null),P(l,t,"method",e.method,e,null),P(l,t,"target",e.target,e,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(u);break}a=pe(""+a),l.setAttribute(u,a);break;case"onClick":a!=null&&(l.onclick=An);break;case"onScroll":a!=null&&Z("scroll",l);break;case"onScrollEnd":a!=null&&Z("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(u=a.__html,u!=null){if(e.children!=null)throw Error(r(60));l.innerHTML=u}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}u=pe(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(u,""+a):l.removeAttribute(u);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":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(u,""):l.removeAttribute(u);break;case"capture":case"download":a===!0?l.setAttribute(u,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(u,a):l.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(u,a):l.removeAttribute(u);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(u):l.setAttribute(u,a);break;case"popover":Z("beforetoggle",l),Z("toggle",l),Me(l,"popover",a);break;case"xlinkActuate":Mt(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Mt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Mt(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Mt(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Mt(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Mt(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Mt(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Mt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Mt(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Me(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Jd.get(u)||u,Me(l,u,a))}}function Lc(l,t,u,a,e,n){switch(u){case"style":Xi(l,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(u=a.__html,u!=null){if(e.children!=null)throw Error(r(60));l.innerHTML=u}}break;case"children":typeof a=="string"?Vu(l,a):(typeof a=="number"||typeof a=="bigint")&&Vu(l,""+a);break;case"onScroll":a!=null&&Z("scroll",l);break;case"onScrollEnd":a!=null&&Z("scrollend",l);break;case"onClick":a!=null&&(l.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pi.hasOwnProperty(u))l:{if(u[0]==="o"&&u[1]==="n"&&(e=u.endsWith("Capture"),t=u.slice(2,e?u.length-7:void 0),n=l[Gl]||null,n=n!=null?n[u]:null,typeof n=="function"&&l.removeEventListener(t,n,e),typeof a=="function")){typeof n!="function"&&n!==null&&(u in l?l[u]=null:l.hasAttribute(u)&&l.removeAttribute(u)),l.addEventListener(t,a,e);break l}u in l?l[u]=a:a===!0?l.setAttribute(u,""):Me(l,u,a)}}}function Dl(l,t,u){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z("error",l),Z("load",l);var a=!1,e=!1,n;for(n in u)if(u.hasOwnProperty(n)){var f=u[n];if(f!=null)switch(n){case"src":a=!0;break;case"srcSet":e=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:P(l,t,n,f,u,null)}}e&&P(l,t,"srcSet",u.srcSet,u,null),a&&P(l,t,"src",u.src,u,null);return;case"input":Z("invalid",l);var c=n=f=e=null,i=null,v=null;for(a in u)if(u.hasOwnProperty(a)){var g=u[a];if(g!=null)switch(a){case"name":e=g;break;case"type":f=g;break;case"checked":i=g;break;case"defaultChecked":v=g;break;case"value":n=g;break;case"defaultValue":c=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(137,t));break;default:P(l,t,a,g,u,null)}}Yi(l,n,c,i,v,f,e,!1),De(l);return;case"select":Z("invalid",l),a=f=n=null;for(e in u)if(u.hasOwnProperty(e)&&(c=u[e],c!=null))switch(e){case"value":n=c;break;case"defaultValue":f=c;break;case"multiple":a=c;default:P(l,t,e,c,u,null)}t=n,u=f,l.multiple=!!a,t!=null?Zu(l,!!a,t,!1):u!=null&&Zu(l,!!a,u,!0);return;case"textarea":Z("invalid",l),n=e=a=null;for(f in u)if(u.hasOwnProperty(f)&&(c=u[f],c!=null))switch(f){case"value":a=c;break;case"defaultValue":e=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:P(l,t,f,c,u,null)}Gi(l,a,e,n),De(l);return;case"option":for(i in u)if(u.hasOwnProperty(i)&&(a=u[i],a!=null))switch(i){case"selected":l.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:P(l,t,i,a,u,null)}return;case"dialog":Z("beforetoggle",l),Z("toggle",l),Z("cancel",l),Z("close",l);break;case"iframe":case"object":Z("load",l);break;case"video":case"audio":for(a=0;a<se.length;a++)Z(se[a],l);break;case"image":Z("error",l),Z("load",l);break;case"details":Z("toggle",l);break;case"embed":case"source":case"link":Z("error",l),Z("load",l);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 u)if(u.hasOwnProperty(v)&&(a=u[v],a!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:P(l,t,v,a,u,null)}return;default:if(nf(t)){for(g in u)u.hasOwnProperty(g)&&(a=u[g],a!==void 0&&Lc(l,t,g,a,u,void 0));return}}for(c in u)u.hasOwnProperty(c)&&(a=u[c],a!=null&&P(l,t,c,a,u,null))}function gv(l,t,u,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var e=null,n=null,f=null,c=null,i=null,v=null,g=null;for(m in u){var T=u[m];if(u.hasOwnProperty(m)&&T!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":i=T;default:a.hasOwnProperty(m)||P(l,t,m,null,a,T)}}for(var h in a){var m=a[h];if(T=u[h],a.hasOwnProperty(h)&&(m!=null||T!=null))switch(h){case"type":n=m;break;case"name":e=m;break;case"checked":v=m;break;case"defaultChecked":g=m;break;case"value":f=m;break;case"defaultValue":c=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(137,t));break;default:m!==T&&P(l,t,h,m,a,T)}}af(l,f,c,i,v,g,n,e);return;case"select":m=f=c=h=null;for(n in u)if(i=u[n],u.hasOwnProperty(n)&&i!=null)switch(n){case"value":break;case"multiple":m=i;default:a.hasOwnProperty(n)||P(l,t,n,null,a,i)}for(e in a)if(n=a[e],i=u[e],a.hasOwnProperty(e)&&(n!=null||i!=null))switch(e){case"value":h=n;break;case"defaultValue":c=n;break;case"multiple":f=n;default:n!==i&&P(l,t,e,n,a,i)}t=c,u=f,a=m,h!=null?Zu(l,!!u,h,!1):!!a!=!!u&&(t!=null?Zu(l,!!u,t,!0):Zu(l,!!u,u?[]:"",!1));return;case"textarea":m=h=null;for(c in u)if(e=u[c],u.hasOwnProperty(c)&&e!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:P(l,t,c,null,a,e)}for(f in a)if(e=a[f],n=u[f],a.hasOwnProperty(f)&&(e!=null||n!=null))switch(f){case"value":h=e;break;case"defaultValue":m=e;break;case"children":break;case"dangerouslySetInnerHTML":if(e!=null)throw Error(r(91));break;default:e!==n&&P(l,t,f,e,a,n)}Ci(l,h,m);return;case"option":for(var B in u)if(h=u[B],u.hasOwnProperty(B)&&h!=null&&!a.hasOwnProperty(B))switch(B){case"selected":l.selected=!1;break;default:P(l,t,B,null,a,h)}for(i in a)if(h=a[i],m=u[i],a.hasOwnProperty(i)&&h!==m&&(h!=null||m!=null))switch(i){case"selected":l.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:P(l,t,i,h,a,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var N in u)h=u[N],u.hasOwnProperty(N)&&h!=null&&!a.hasOwnProperty(N)&&P(l,t,N,null,a,h);for(v in a)if(h=a[v],m=u[v],a.hasOwnProperty(v)&&h!==m&&(h!=null||m!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(137,t));break;default:P(l,t,v,h,a,m)}return;default:if(nf(t)){for(var ll in u)h=u[ll],u.hasOwnProperty(ll)&&h!==void 0&&!a.hasOwnProperty(ll)&&Lc(l,t,ll,void 0,a,h);for(g in a)h=a[g],m=u[g],!a.hasOwnProperty(g)||h===m||h===void 0&&m===void 0||Lc(l,t,g,h,a,m);return}}for(var d in u)h=u[d],u.hasOwnProperty(d)&&h!=null&&!a.hasOwnProperty(d)&&P(l,t,d,null,a,h);for(T in a)h=a[T],m=u[T],!a.hasOwnProperty(T)||h===m||h==null&&m==null||P(l,t,T,h,a,m)}var Kc=null,Jc=null;function zn(l){return l.nodeType===9?l:l.ownerDocument}function Xo(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jo(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function wc(l,t){return l==="textarea"||l==="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 Wc=null;function Sv(){var l=window.event;return l&&l.type==="popstate"?l===Wc?!1:(Wc=l,!0):(Wc=null,!1)}var Zo=typeof setTimeout=="function"?setTimeout:void 0,bv=typeof clearTimeout=="function"?clearTimeout:void 0,Vo=typeof Promise=="function"?Promise:void 0,Tv=typeof queueMicrotask=="function"?queueMicrotask:typeof Vo<"u"?function(l){return Vo.resolve(null).then(l).catch(Ev)}:Zo;function Ev(l){setTimeout(function(){throw l})}function fu(l){return l==="head"}function Lo(l,t){var u=t,a=0,e=0;do{var n=u.nextSibling;if(l.removeChild(u),n&&n.nodeType===8)if(u=n.data,u==="/$"){if(0<a&&8>a){u=a;var f=l.ownerDocument;if(u&1&&de(f.documentElement),u&2&&de(f.body),u&4)for(u=f.head,de(u),f=u.firstChild;f;){var c=f.nextSibling,i=f.nodeName;f[Oa]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&f.rel.toLowerCase()==="stylesheet"||u.removeChild(f),f=c}}if(e===0){l.removeChild(n),be(t);return}e--}else u==="$"||u==="$?"||u==="$!"?e++:a=u.charCodeAt(0)-48;else a=0;u=n}while(u);be(t)}function kc(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var u=t;switch(t=t.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":kc(u),Pn(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}l.removeChild(u)}}function Av(l,t,u,a){for(;l.nodeType===1;){var e=u;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[Oa])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(n=l.getAttribute("rel"),n==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(n!==e.rel||l.getAttribute("href")!==(e.href==null||e.href===""?null:e.href)||l.getAttribute("crossorigin")!==(e.crossOrigin==null?null:e.crossOrigin)||l.getAttribute("title")!==(e.title==null?null:e.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(n=l.getAttribute("src"),(n!==(e.src==null?null:e.src)||l.getAttribute("type")!==(e.type==null?null:e.type)||l.getAttribute("crossorigin")!==(e.crossOrigin==null?null:e.crossOrigin))&&n&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var n=e.name==null?null:""+e.name;if(e.type==="hidden"&&l.getAttribute("name")===n)return l}else return l;if(l=ht(l.nextSibling),l===null)break}return null}function zv(l,t,u){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!u||(l=ht(l.nextSibling),l===null))return null;return l}function $c(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState==="complete"}function _v(l,t){var u=l.ownerDocument;if(l.data!=="$?"||u.readyState==="complete")t();else{var a=function(){t(),u.removeEventListener("DOMContentLoaded",a)};u.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function ht(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return l}var Fc=null;function Ko(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var u=l.data;if(u==="$"||u==="$!"||u==="$?"){if(t===0)return l;t--}else u==="/$"&&t++}l=l.previousSibling}return null}function Jo(l,t,u){switch(t=zn(u),l){case"html":if(l=t.documentElement,!l)throw Error(r(452));return l;case"head":if(l=t.head,!l)throw Error(r(453));return l;case"body":if(l=t.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function de(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);Pn(l)}var ot=new Map,wo=new Set;function _n(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Qt=O.d;O.d={f:Mv,r:Ov,D:Dv,C:Uv,L:pv,m:Rv,X:Nv,S:Hv,M:xv};function Mv(){var l=Qt.f(),t=hn();return l||t}function Ov(l){var t=Gu(l);t!==null&&t.tag===5&&t.type==="form"?y0(t):Qt.r(l)}var Sa=typeof document>"u"?null:document;function Wo(l,t,u){var a=Sa;if(a&&typeof t=="string"&&t){var e=at(t);e='link[rel="'+l+'"][href="'+e+'"]',typeof u=="string"&&(e+='[crossorigin="'+u+'"]'),wo.has(e)||(wo.add(e),l={rel:l,crossOrigin:u,href:t},a.querySelector(e)===null&&(t=a.createElement("link"),Dl(t,"link",l),Tl(t),a.head.appendChild(t)))}}function Dv(l){Qt.D(l),Wo("dns-prefetch",l,null)}function Uv(l,t){Qt.C(l,t),Wo("preconnect",l,t)}function pv(l,t,u){Qt.L(l,t,u);var a=Sa;if(a&&l&&t){var e='link[rel="preload"][as="'+at(t)+'"]';t==="image"&&u&&u.imageSrcSet?(e+='[imagesrcset="'+at(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(e+='[imagesizes="'+at(u.imageSizes)+'"]')):e+='[href="'+at(l)+'"]';var n=e;switch(t){case"style":n=ba(l);break;case"script":n=Ta(l)}ot.has(n)||(l=p({rel:"preload",href:t==="image"&&u&&u.imageSrcSet?void 0:l,as:t},u),ot.set(n,l),a.querySelector(e)!==null||t==="style"&&a.querySelector(ye(n))||t==="script"&&a.querySelector(ve(n))||(t=a.createElement("link"),Dl(t,"link",l),Tl(t),a.head.appendChild(t)))}}function Rv(l,t){Qt.m(l,t);var u=Sa;if(u&&l){var a=t&&typeof t.as=="string"?t.as:"script",e='link[rel="modulepreload"][as="'+at(a)+'"][href="'+at(l)+'"]',n=e;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ta(l)}if(!ot.has(n)&&(l=p({rel:"modulepreload",href:l},t),ot.set(n,l),u.querySelector(e)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ve(n)))return}a=u.createElement("link"),Dl(a,"link",l),Tl(a),u.head.appendChild(a)}}}function Hv(l,t,u){Qt.S(l,t,u);var a=Sa;if(a&&l){var e=Qu(a).hoistableStyles,n=ba(l);t=t||"default";var f=e.get(n);if(!f){var c={loading:0,preload:null};if(f=a.querySelector(ye(n)))c.loading=5;else{l=p({rel:"stylesheet",href:l,"data-precedence":t},u),(u=ot.get(n))&&Ic(l,u);var i=f=a.createElement("link");Tl(i),Dl(i,"link",l),i._p=new Promise(function(v,g){i.onload=v,i.onerror=g}),i.addEventListener("load",function(){c.loading|=1}),i.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Mn(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:c},e.set(n,f)}}}function Nv(l,t){Qt.X(l,t);var u=Sa;if(u&&l){var a=Qu(u).hoistableScripts,e=Ta(l),n=a.get(e);n||(n=u.querySelector(ve(e)),n||(l=p({src:l,async:!0},t),(t=ot.get(e))&&Pc(l,t),n=u.createElement("script"),Tl(n),Dl(n,"link",l),u.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(e,n))}}function xv(l,t){Qt.M(l,t);var u=Sa;if(u&&l){var a=Qu(u).hoistableScripts,e=Ta(l),n=a.get(e);n||(n=u.querySelector(ve(e)),n||(l=p({src:l,async:!0,type:"module"},t),(t=ot.get(e))&&Pc(l,t),n=u.createElement("script"),Tl(n),Dl(n,"link",l),u.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(e,n))}}function ko(l,t,u,a){var e=(e=Y.current)?_n(e):null;if(!e)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(t=ba(u.href),u=Qu(e).hoistableStyles,a=u.get(t),a||(a={type:"style",instance:null,count:0,state:null},u.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){l=ba(u.href);var n=Qu(e).hoistableStyles,f=n.get(l);if(f||(e=e.ownerDocument||e,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,f),(n=e.querySelector(ye(l)))&&!n._p&&(f.instance=n,f.state.loading=5),ot.has(l)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ot.set(l,u),n||qv(e,l,u,f.state))),t&&a===null)throw Error(r(528,""));return f}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=u.async,u=u.src,typeof u=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ta(u),u=Qu(e).hoistableScripts,a=u.get(t),a||(a={type:"script",instance:null,count:0,state:null},u.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function ba(l){return'href="'+at(l)+'"'}function ye(l){return'link[rel="stylesheet"]['+l+"]"}function $o(l){return p({},l,{"data-precedence":l.precedence,precedence:null})}function qv(l,t,u,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Dl(t,"link",u),Tl(t),l.head.appendChild(t))}function Ta(l){return'[src="'+at(l)+'"]'}function ve(l){return"script[async]"+l}function Fo(l,t,u){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+at(u.href)+'"]');if(a)return t.instance=a,Tl(a),a;var e=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Tl(a),Dl(a,"style",e),Mn(a,u.precedence,l),t.instance=a;case"stylesheet":e=ba(u.href);var n=l.querySelector(ye(e));if(n)return t.state.loading|=4,t.instance=n,Tl(n),n;a=$o(u),(e=ot.get(e))&&Ic(a,e),n=(l.ownerDocument||l).createElement("link"),Tl(n);var f=n;return f._p=new Promise(function(c,i){f.onload=c,f.onerror=i}),Dl(n,"link",a),t.state.loading|=4,Mn(n,u.precedence,l),t.instance=n;case"script":return n=Ta(u.src),(e=l.querySelector(ve(n)))?(t.instance=e,Tl(e),e):(a=u,(e=ot.get(n))&&(a=p({},u),Pc(a,e)),l=l.ownerDocument||l,e=l.createElement("script"),Tl(e),Dl(e,"link",a),l.head.appendChild(e),t.instance=e);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Mn(a,u.precedence,l));return t.instance}function Mn(l,t,u){for(var a=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),e=a.length?a[a.length-1]:null,n=e,f=0;f<a.length;f++){var c=a[f];if(c.dataset.precedence===t)n=c;else if(n!==e)break}n?n.parentNode.insertBefore(l,n.nextSibling):(t=u.nodeType===9?u.head:u,t.insertBefore(l,t.firstChild))}function Ic(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function Pc(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var On=null;function Io(l,t,u){if(On===null){var a=new Map,e=On=new Map;e.set(u,a)}else e=On,a=e.get(u),a||(a=new Map,e.set(u,a));if(a.has(l))return a;for(a.set(l,null),u=u.getElementsByTagName(l),e=0;e<u.length;e++){var n=u[e];if(!(n[Oa]||n[Nl]||l==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var f=n.getAttribute(t)||"";f=l+f;var c=a.get(f);c?c.push(n):a.set(f,[n])}}return a}function Po(l,t,u){l=l.ownerDocument||l,l.head.insertBefore(u,t==="title"?l.querySelector("head > title"):null)}function Bv(l,t,u){if(u===1||t.itemProp!=null)return!1;switch(l){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 l=t.disabled,typeof t.precedence=="string"&&l==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 ld(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var re=null;function Yv(){}function Cv(l,t,u){if(re===null)throw Error(r(475));var a=re;if(t.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var e=ba(u.href),n=l.querySelector(ye(e));if(n){l=n._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=Dn.bind(a),l.then(a,a)),t.state.loading|=4,t.instance=n,Tl(n);return}n=l.ownerDocument||l,u=$o(u),(e=ot.get(e))&&Ic(u,e),n=n.createElement("link"),Tl(n);var f=n;f._p=new Promise(function(c,i){f.onload=c,f.onerror=i}),Dl(n,"link",u),t.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,l),(l=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Dn.bind(a),l.addEventListener("load",t),l.addEventListener("error",t))}}function Gv(){if(re===null)throw Error(r(475));var l=re;return l.stylesheets&&l.count===0&&li(l,l.stylesheets),0<l.count?function(t){var u=setTimeout(function(){if(l.stylesheets&&li(l,l.stylesheets),l.unsuspend){var a=l.unsuspend;l.unsuspend=null,a()}},6e4);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(u)}}:null}function Dn(){if(this.count--,this.count===0){if(this.stylesheets)li(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Un=null;function li(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Un=new Map,t.forEach(Qv,l),Un=null,Dn.call(l))}function Qv(l,t){if(!(t.state.loading&4)){var u=Un.get(l);if(u)var a=u.get(null);else{u=new Map,Un.set(l,u);for(var e=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<e.length;n++){var f=e[n];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(u.set(f.dataset.precedence,f),a=f)}a&&u.set(null,a)}e=t.instance,f=e.getAttribute("data-precedence"),n=u.get(f)||a,n===a&&u.set(null,e),u.set(f,e),this.count++,a=Dn.bind(this),e.addEventListener("load",a),e.addEventListener("error",a),n?n.parentNode.insertBefore(e,n.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(e,l.firstChild)),t.state.loading|=4}}var he={$$typeof:pl,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Xv(l,t,u,a,e,n,f,c){this.tag=1,this.containerInfo=l,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=kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0),this.hiddenUpdates=kn(null),this.identifierPrefix=a,this.onUncaughtError=e,this.onCaughtError=n,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function td(l,t,u,a,e,n,f,c,i,v,g,T){return l=new Xv(l,t,u,f,c,i,v,T),t=1,n===!0&&(t|=24),n=$l(3,null,null,t),l.current=n,n.stateNode=l,t=Bf(),t.refCount++,l.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:u,cache:t},Qf(n),l}function ud(l){return l?(l=Fu,l):Fu}function ad(l,t,u,a,e,n){e=ud(e),a.context===null?a.context=e:a.pendingContext=e,a=wt(t),a.payload={element:u},n=n===void 0?null:n,n!==null&&(a.callback=n),u=Wt(l,a,t),u!==null&&(tt(u,l,t),Ka(u,l,t))}function ed(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var u=l.retryLane;l.retryLane=u!==0&&u<t?u:t}}function ti(l,t){ed(l,t),(l=l.alternate)&&ed(l,t)}function nd(l){if(l.tag===13){var t=$u(l,67108864);t!==null&&tt(t,l,67108864),ti(l,67108864)}}var pn=!0;function jv(l,t,u,a){var e=S.T;S.T=null;var n=O.p;try{O.p=2,ui(l,t,u,a)}finally{O.p=n,S.T=e}}function Zv(l,t,u,a){var e=S.T;S.T=null;var n=O.p;try{O.p=8,ui(l,t,u,a)}finally{O.p=n,S.T=e}}function ui(l,t,u,a){if(pn){var e=ai(a);if(e===null)Vc(l,t,a,Rn,u),cd(l,a);else if(Lv(e,l,t,u,a))a.stopPropagation();else if(cd(l,a),t&4&&-1<Vv.indexOf(l)){for(;e!==null;){var n=Gu(e);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var f=hu(n.pendingLanes);if(f!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;f;){var i=1<<31-Wl(f);c.entanglements[1]|=i,f&=~i}At(n),(k&6)===0&&(vn=gt()+500,ie(0))}}break;case 13:c=$u(n,2),c!==null&&tt(c,n,2),hn(),ti(n,2)}if(n=ai(a),n===null&&Vc(l,t,a,Rn,u),n===e)break;e=n}e!==null&&a.stopPropagation()}else Vc(l,t,a,null,u)}}function ai(l){return l=cf(l),ei(l)}var Rn=null;function ei(l){if(Rn=null,l=Cu(l),l!==null){var t=F(l);if(t===null)l=null;else{var u=t.tag;if(u===13){if(l=yl(t),l!==null)return l;l=null}else if(u===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return Rn=l,null}function fd(l){switch(l){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(Ud()){case bi:return 2;case Ti:return 8;case Ee:case pd:return 32;case Ei:return 268435456;default:return 32}default:return 32}}var ni=!1,cu=null,iu=null,su=null,me=new Map,ge=new Map,ou=[],Vv="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 cd(l,t){switch(l){case"focusin":case"focusout":cu=null;break;case"dragenter":case"dragleave":iu=null;break;case"mouseover":case"mouseout":su=null;break;case"pointerover":case"pointerout":me.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ge.delete(t.pointerId)}}function Se(l,t,u,a,e,n){return l===null||l.nativeEvent!==n?(l={blockedOn:t,domEventName:u,eventSystemFlags:a,nativeEvent:n,targetContainers:[e]},t!==null&&(t=Gu(t),t!==null&&nd(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,e!==null&&t.indexOf(e)===-1&&t.push(e),l)}function Lv(l,t,u,a,e){switch(t){case"focusin":return cu=Se(cu,l,t,u,a,e),!0;case"dragenter":return iu=Se(iu,l,t,u,a,e),!0;case"mouseover":return su=Se(su,l,t,u,a,e),!0;case"pointerover":var n=e.pointerId;return me.set(n,Se(me.get(n)||null,l,t,u,a,e)),!0;case"gotpointercapture":return n=e.pointerId,ge.set(n,Se(ge.get(n)||null,l,t,u,a,e)),!0}return!1}function id(l){var t=Cu(l.target);if(t!==null){var u=F(t);if(u!==null){if(t=u.tag,t===13){if(t=yl(u),t!==null){l.blockedOn=t,Cd(l.priority,function(){if(u.tag===13){var a=lt();a=$n(a);var e=$u(u,a);e!==null&&tt(e,u,a),ti(u,a)}});return}}else if(t===3&&u.stateNode.current.memoizedState.isDehydrated){l.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Hn(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var u=ai(l.nativeEvent);if(u===null){u=l.nativeEvent;var a=new u.constructor(u.type,u);ff=a,u.target.dispatchEvent(a),ff=null}else return t=Gu(u),t!==null&&nd(t),l.blockedOn=u,!1;t.shift()}return!0}function sd(l,t,u){Hn(l)&&u.delete(t)}function Kv(){ni=!1,cu!==null&&Hn(cu)&&(cu=null),iu!==null&&Hn(iu)&&(iu=null),su!==null&&Hn(su)&&(su=null),me.forEach(sd),ge.forEach(sd)}function Nn(l,t){l.blockedOn===t&&(l.blockedOn=null,ni||(ni=!0,z.unstable_scheduleCallback(z.unstable_NormalPriority,Kv)))}var xn=null;function od(l){xn!==l&&(xn=l,z.unstable_scheduleCallback(z.unstable_NormalPriority,function(){xn===l&&(xn=null);for(var t=0;t<l.length;t+=3){var u=l[t],a=l[t+1],e=l[t+2];if(typeof a!="function"){if(ei(a||u)===null)continue;break}var n=Gu(u);n!==null&&(l.splice(t,3),t-=3,ec(n,{pending:!0,data:e,method:u.method,action:a},a,e))}}))}function be(l){function t(i){return Nn(i,l)}cu!==null&&Nn(cu,l),iu!==null&&Nn(iu,l),su!==null&&Nn(su,l),me.forEach(t),ge.forEach(t);for(var u=0;u<ou.length;u++){var a=ou[u];a.blockedOn===l&&(a.blockedOn=null)}for(;0<ou.length&&(u=ou[0],u.blockedOn===null);)id(u),u.blockedOn===null&&ou.shift();if(u=(l.ownerDocument||l).$$reactFormReplay,u!=null)for(a=0;a<u.length;a+=3){var e=u[a],n=u[a+1],f=e[Gl]||null;if(typeof n=="function")f||od(u);else if(f){var c=null;if(n&&n.hasAttribute("formAction")){if(e=n,f=n[Gl]||null)c=f.formAction;else if(ei(e)!==null)continue}else c=f.action;typeof c=="function"?u[a+1]=c:(u.splice(a,3),a-=3),od(u)}}}function fi(l){this._internalRoot=l}qn.prototype.render=fi.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(r(409));var u=t.current,a=lt();ad(u,a,l,t,null,null)},qn.prototype.unmount=fi.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;ad(l.current,2,null,l,null,null),hn(),t[Yu]=null}};function qn(l){this._internalRoot=l}qn.prototype.unstable_scheduleHydration=function(l){if(l){var t=Oi();l={blockedOn:null,target:l,priority:t};for(var u=0;u<ou.length&&t!==0&&t<ou[u].priority;u++);ou.splice(u,0,l),u===0&&id(l)}};var dd=nl.version;if(dd!=="19.1.1")throw Error(r(527,dd,"19.1.1"));O.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=_(t),l=l!==null?E(l):null,l=l===null?null:l.stateNode,l};var Jv={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:S,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bn.isDisabled&&Bn.supportsFiber)try{za=Bn.inject(Jv),wl=Bn}catch{}}return Ea.createRoot=function(l,t){if(!L(l))throw Error(r(299));var u=!1,a="",e=O0,n=D0,f=U0,c=null;return t!=null&&(t.unstable_strictMode===!0&&(u=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(e=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(c=t.unstable_transitionCallbacks)),t=td(l,1,!1,null,null,u,a,e,n,f,c,null),l[Yu]=t.current,Zc(l),new fi(t)},Ea.hydrateRoot=function(l,t,u){if(!L(l))throw Error(r(299));var a=!1,e="",n=O0,f=D0,c=U0,i=null,v=null;return u!=null&&(u.unstable_strictMode===!0&&(a=!0),u.identifierPrefix!==void 0&&(e=u.identifierPrefix),u.onUncaughtError!==void 0&&(n=u.onUncaughtError),u.onCaughtError!==void 0&&(f=u.onCaughtError),u.onRecoverableError!==void 0&&(c=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(i=u.unstable_transitionCallbacks),u.formState!==void 0&&(v=u.formState)),t=td(l,1,!0,t,u??null,a,e,n,f,c,i,v),t.context=ud(null),u=t.current,a=lt(),a=$n(a),e=wt(a),e.callback=null,Wt(u,e,a),u=a,t.current.lanes=u,Ma(t,u),At(t),l[Yu]=t.current,Zc(l),new qn(t)},Ea.version="19.1.1",Ea}var hi;function Sd(){if(hi)return Gn.exports;hi=1;function z(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z)}catch(nl){console.error(nl)}}return z(),Gn.exports=gd(),Gn.exports}var bd=Sd();const mi=xu(bd);var Zn={exports:{}},Aa={};/**
|
|
33
|
+
*/var a=sg(),l=or(),r=ug();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(h(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),t;if(o===i)return y(s),e;o=o.sibling}throw Error(u(188))}if(n.return!==i.return)n=s,i=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,i=o;break}if(v===i){d=!0,i=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,i=s;break}if(v===i){d=!0,i=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==i)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function p(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=p(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),gt=Symbol.for("react.activity"),St=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function xt(t){return t===null||typeof t!="object"?null:(t=vt&&t[vt]||t["@@iterator"],typeof t=="function"?t:null)}var Vt=Symbol.for("react.client.reference");function Kt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case Z:return"Profiler";case K:return"StrictMode";case Y:return"Suspense";case F:return"SuspenseList";case gt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case G:return(t.displayName||"Context")+".Provider";case q:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:Kt(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return Kt(t(e))}catch{}}return null}var Dt=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},at=[],T=-1;function b(t){return{current:t}}function O(t){0>T||(t.current=at[T],at[T]=null,T--)}function V(t,e){T++,at[T]=t.current,t.current=e}var H=b(null),J=b(null),k=b(null),yt=b(null);function rt(t,e){switch(V(k,e),V(J,t),V(H,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?w0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=w0(e),t=z0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}O(H),V(H,t)}function bt(){O(H),O(J),O(k)}function ne(t){t.memoizedState!==null&&V(yt,t);var e=H.current,n=z0(e,t.type);e!==n&&(V(J,t),V(H,n))}function $n(t){J.current===t&&(O(H),O(J)),yt.current===t&&(O(yt),Rl._currentValue=P)}var Hu=Object.prototype.hasOwnProperty,Yu=a.unstable_scheduleCallback,qu=a.unstable_cancelCallback,yx=a.unstable_shouldYield,gx=a.unstable_requestPaint,Qe=a.unstable_now,vx=a.unstable_getCurrentPriorityLevel,dm=a.unstable_ImmediatePriority,hm=a.unstable_UserBlockingPriority,Pl=a.unstable_NormalPriority,bx=a.unstable_LowPriority,mm=a.unstable_IdlePriority,Sx=a.log,xx=a.unstable_setDisableYieldValue,Bi=null,ve=null;function Tn(t){if(typeof Sx=="function"&&xx(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Bi,t)}catch{}}var be=Math.clz32?Math.clz32:Ex,Tx=Math.log,Ax=Math.LN2;function Ex(t){return t>>>=0,t===0?32:31-(Tx(t)/Ax|0)|0}var Jl=256,Fl=4194304;function In(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Wl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,o=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var v=i&134217727;return v!==0?(i=v&~o,i!==0?s=In(i):(d&=v,d!==0?s=In(d):n||(n=v&~t,n!==0&&(s=In(n))))):(v=i&~o,v!==0?s=In(v):d!==0?s=In(d):n||(n=i&~t,n!==0&&(s=In(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function Ui(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Mx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pm(){var t=Jl;return Jl<<=1,(Jl&4194048)===0&&(Jl=256),t}function ym(){var t=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),t}function Gu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ji(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Rx(t,e,n,i,s,o){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,S=t.expirationTimes,D=t.hiddenUpdates;for(n=d&~n;0<n;){var B=31-be(n),N=1<<B;v[B]=0,S[B]=-1;var C=D[B];if(C!==null)for(D[B]=null,B=0;B<C.length;B++){var _=C[B];_!==null&&(_.lane&=-536870913)}n&=~N}i!==0&&gm(t,i,0),o!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=o&~(d&~e))}function gm(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-be(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&4194090}function vm(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-be(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function Xu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ku(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function bm(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:$0(t.type))}function Dx(t,e){var n=j.p;try{return j.p=t,e()}finally{j.p=n}}var An=Math.random().toString(36).slice(2),ue="__reactFiber$"+An,he="__reactProps$"+An,Oa="__reactContainer$"+An,Ku="__reactEvents$"+An,Cx="__reactListeners$"+An,Ox="__reactHandles$"+An,Sm="__reactResources$"+An,Ni="__reactMarker$"+An;function Qu(t){delete t[ue],delete t[he],delete t[Ku],delete t[Cx],delete t[Ox]}function _a(t){var e=t[ue];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[ue]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=N0(t);t!==null;){if(n=t[ue])return n;t=N0(t)}return e}t=n,n=t.parentNode}return null}function Va(t){if(t=t[ue]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Li(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function wa(t){var e=t[Sm];return e||(e=t[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Ni]=!0}var xm=new Set,Tm={};function ta(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Tm[t]=e,t=0;t<e.length;t++)xm.add(e[t])}var _x=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]*$"),Am={},Em={};function Vx(t){return Hu.call(Em,t)?!0:Hu.call(Am,t)?!1:_x.test(t)?Em[t]=!0:(Am[t]=!0,!1)}function $l(t,e,n){if(Vx(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Il(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function nn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}var Zu,Mm;function Ba(t){if(Zu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Zu=e&&e[1]||"",Mm=-1<n.stack.indexOf(`
|
|
34
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
+
`+Zu+t+Mm}var Pu=!1;function Ju(t,e){if(!t||Pu)return"";Pu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(_){var C=_}Reflect.construct(t,[],N)}else{try{N.call()}catch(_){C=_}t.call(N.prototype)}}else{try{throw Error()}catch(_){C=_}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(_){if(_&&C&&typeof _.stack=="string")return[_.stack,C.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var S=d.split(`
|
|
36
|
+
`),D=v.split(`
|
|
37
|
+
`);for(s=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(i===S.length||s===D.length)for(i=S.length-1,s=D.length-1;1<=i&&0<=s&&S[i]!==D[s];)s--;for(;1<=i&&0<=s;i--,s--)if(S[i]!==D[s]){if(i!==1||s!==1)do if(i--,s--,0>s||S[i]!==D[s]){var B=`
|
|
38
|
+
`+S[i].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=i&&0<=s);break}}}finally{Pu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ba(n):""}function wx(t){switch(t.tag){case 26:case 27:case 5:return Ba(t.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 15:return Ju(t.type,!1);case 11:return Ju(t.type.render,!1);case 1:return Ju(t.type,!0);case 31:return Ba("Activity");default:return""}}function Rm(t){try{var e="";do e+=wx(t),t=t.return;while(t);return e}catch(n){return`
|
|
39
|
+
Error generating stack: `+n.message+`
|
|
40
|
+
`+n.stack}}function _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zx(t){var e=Dm(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(d){i=""+d,o.call(this,d)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(d){i=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ts(t){t._valueTracker||(t._valueTracker=zx(t))}function Cm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Dm(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function es(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Bx=/[\n"\\]/g;function Ve(t){return t.replace(Bx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Fu(t,e,n,i,s,o,d,v){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Wu(t,d,_e(e)):n!=null?Wu(t,d,_e(n)):i!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+_e(v):t.removeAttribute("name")}function Om(t,e,n,i,s,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null))return;n=n!=null?""+_e(n):"",e=e!=null?""+_e(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=v?t.checked:!!i,t.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d)}function Wu(t,e,n){e==="number"&&es(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ua(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&i&&(t[n].defaultSelected=!0)}else{for(n=""+_e(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function _m(t,e,n){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+_e(n):""}function Vm(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(u(92));if(Dt(i)){if(1<i.length)throw Error(u(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=_e(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i)}function ja(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ux=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 wm(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||Ux.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function zm(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&wm(t,s,i)}else for(var o in e)e.hasOwnProperty(o)&&wm(t,o,e[o])}function $u(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jx=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"]]),Nx=/^[\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 ns(t){return Nx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Iu=null;function to(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Na=null,La=null;function Bm(t){var e=Va(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Fu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[he]||null;if(!s)throw Error(u(90));Fu(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Cm(i)}break t;case"textarea":_m(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var eo=!1;function Um(t,e,n){if(eo)return t(e,n);eo=!0;try{var i=t(e);return i}finally{if(eo=!1,(Na!==null||La!==null)&&(qs(),Na&&(e=Na,t=La,La=Na=null,Bm(e),t)))for(e=0;e<t.length;e++)Bm(t[e])}}function Hi(t,e){var n=t.stateNode;if(n===null)return null;var i=n[he]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),no=!1;if(an)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){no=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{no=!1}var En=null,ao=null,as=null;function jm(){if(as)return as;var t,e=ao,n=e.length,i,s="value"in En?En.value:En.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var d=n-t;for(i=1;i<=d&&e[n-i]===s[o-i];i++);return as=s.slice(t,1<i?1-i:void 0)}function is(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ls(){return!0}function Nm(){return!1}function me(t){function e(n,i,s,o,d){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ls:Nm,this.isPropagationStopped=Nm,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),e}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ss=me(ea),qi=g({},ea,{view:0,detail:0}),Lx=me(qi),io,lo,Gi,rs=g({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gi&&(Gi&&t.type==="mousemove"?(io=t.screenX-Gi.screenX,lo=t.screenY-Gi.screenY):lo=io=0,Gi=t),io)},movementY:function(t){return"movementY"in t?t.movementY:lo}}),Lm=me(rs),Hx=g({},rs,{dataTransfer:0}),Yx=me(Hx),qx=g({},qi,{relatedTarget:0}),so=me(qx),Gx=g({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Xx=me(Gx),kx=g({},ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kx=me(kx),Qx=g({},ea,{data:0}),Hm=me(Qx),Zx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Px={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"},Jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Jx[t])?!!e[t]:!1}function ro(){return Fx}var Wx=g({},qi,{key:function(t){if(t.key){var e=Zx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=is(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Px[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(t){return t.type==="keypress"?is(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?is(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$x=me(Wx),Ix=g({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ym=me(Ix),tT=g({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),eT=me(tT),nT=g({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),aT=me(nT),iT=g({},rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),lT=me(iT),sT=g({},ea,{newState:0,oldState:0}),rT=me(sT),uT=[9,13,27,32],uo=an&&"CompositionEvent"in window,Xi=null;an&&"documentMode"in document&&(Xi=document.documentMode);var oT=an&&"TextEvent"in window&&!Xi,qm=an&&(!uo||Xi&&8<Xi&&11>=Xi),Gm=" ",Xm=!1;function km(t,e){switch(t){case"keyup":return uT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Km(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ha=!1;function cT(t,e){switch(t){case"compositionend":return Km(e);case"keypress":return e.which!==32?null:(Xm=!0,Gm);case"textInput":return t=e.data,t===Gm&&Xm?null:t;default:return null}}function fT(t,e){if(Ha)return t==="compositionend"||!uo&&km(t,e)?(t=jm(),as=ao=En=null,Ha=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return qm&&e.locale!=="ko"?null:e.data;default:return null}}var dT={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 Qm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!dT[t.type]:e==="textarea"}function Zm(t,e,n,i){Na?La?La.push(i):La=[i]:Na=i,e=Zs(e,"onChange"),0<e.length&&(n=new ss("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var ki=null,Ki=null;function hT(t){D0(t,0)}function us(t){var e=Li(t);if(Cm(e))return t}function Pm(t,e){if(t==="change")return e}var Jm=!1;if(an){var oo;if(an){var co="oninput"in document;if(!co){var Fm=document.createElement("div");Fm.setAttribute("oninput","return;"),co=typeof Fm.oninput=="function"}oo=co}else oo=!1;Jm=oo&&(!document.documentMode||9<document.documentMode)}function Wm(){ki&&(ki.detachEvent("onpropertychange",$m),Ki=ki=null)}function $m(t){if(t.propertyName==="value"&&us(Ki)){var e=[];Zm(e,Ki,t,to(t)),Um(hT,e)}}function mT(t,e,n){t==="focusin"?(Wm(),ki=e,Ki=n,ki.attachEvent("onpropertychange",$m)):t==="focusout"&&Wm()}function pT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return us(Ki)}function yT(t,e){if(t==="click")return us(e)}function gT(t,e){if(t==="input"||t==="change")return us(e)}function vT(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:vT;function Qi(t,e){if(Se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!Hu.call(e,s)||!Se(t[s],e[s]))return!1}return!0}function Im(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function tp(t,e){var n=Im(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Im(n)}}function ep(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ep(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function np(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=es(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=es(t.document)}return e}function fo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var bT=an&&"documentMode"in document&&11>=document.documentMode,Ya=null,ho=null,Zi=null,mo=!1;function ap(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mo||Ya==null||Ya!==es(i)||(i=Ya,"selectionStart"in i&&fo(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}),Zi&&Qi(Zi,i)||(Zi=i,i=Zs(ho,"onSelect"),0<i.length&&(e=new ss("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ya)))}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qa={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},po={},ip={};an&&(ip=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function aa(t){if(po[t])return po[t];if(!qa[t])return t;var e=qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ip)return po[t]=e[n];return t}var lp=aa("animationend"),sp=aa("animationiteration"),rp=aa("animationstart"),ST=aa("transitionrun"),xT=aa("transitionstart"),TT=aa("transitioncancel"),up=aa("transitionend"),op=new Map,yo="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(" ");yo.push("scrollEnd");function Ye(t,e){op.set(t,e),ta(e,[t])}var cp=new WeakMap;function we(t,e){if(typeof t=="object"&&t!==null){var n=cp.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Rm(e)},cp.set(t,e),e)}return{value:t,source:e,stack:Rm(e)}}var ze=[],Ga=0,go=0;function os(){for(var t=Ga,e=go=Ga=0;e<t;){var n=ze[e];ze[e++]=null;var i=ze[e];ze[e++]=null;var s=ze[e];ze[e++]=null;var o=ze[e];if(ze[e++]=null,i!==null&&s!==null){var d=i.pending;d===null?s.next=s:(s.next=d.next,d.next=s),i.pending=s}o!==0&&fp(n,s,o)}}function cs(t,e,n,i){ze[Ga++]=t,ze[Ga++]=e,ze[Ga++]=n,ze[Ga++]=i,go|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function vo(t,e,n,i){return cs(t,e,n,i),fs(t)}function Xa(t,e){return cs(t,null,null,e),fs(t)}function fp(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,o=t.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(s=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,s&&e!==null&&(s=31-be(n),t=o.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),o):null}function fs(t){if(50<vl)throw vl=0,Ec=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function AT(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(t,e,n,i){return new AT(t,e,n,i)}function bo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ln(t,e){var n=t.alternate;return n===null?(n=xe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function dp(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ds(t,e,n,i,s,o){var d=0;if(i=t,typeof t=="function")bo(t)&&(d=1);else if(typeof t=="string")d=MA(t,n,H.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gt:return t=xe(31,n,e,s),t.elementType=gt,t.lanes=o,t;case L:return ia(n.children,s,o,e);case K:d=8,s|=24;break;case Z:return t=xe(12,n,e,s|2),t.elementType=Z,t.lanes=o,t;case Y:return t=xe(13,n,e,s),t.elementType=Y,t.lanes=o,t;case F:return t=xe(19,n,e,s),t.elementType=F,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Q:case G:d=10;break t;case q:d=9;break t;case I:d=11;break t;case et:d=14;break t;case W:d=16,i=null;break t}d=29,n=Error(u(130,t===null?"null":typeof t,"")),i=null}return e=xe(d,n,e,s),e.elementType=t,e.type=i,e.lanes=o,e}function ia(t,e,n,i){return t=xe(7,t,i,e),t.lanes=n,t}function So(t,e,n){return t=xe(6,t,null,e),t.lanes=n,t}function xo(t,e,n){return e=xe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ka=[],Qa=0,hs=null,ms=0,Be=[],Ue=0,la=null,sn=1,rn="";function sa(t,e){Ka[Qa++]=ms,Ka[Qa++]=hs,hs=t,ms=e}function hp(t,e,n){Be[Ue++]=sn,Be[Ue++]=rn,Be[Ue++]=la,la=t;var i=sn;t=rn;var s=32-be(i)-1;i&=~(1<<s),n+=1;var o=32-be(e)+s;if(30<o){var d=s-s%5;o=(i&(1<<d)-1).toString(32),i>>=d,s-=d,sn=1<<32-be(e)+s|n<<s|i,rn=o+t}else sn=1<<o|n<<s|i,rn=t}function To(t){t.return!==null&&(sa(t,1),hp(t,1,0))}function Ao(t){for(;t===hs;)hs=Ka[--Qa],Ka[Qa]=null,ms=Ka[--Qa],Ka[Qa]=null;for(;t===la;)la=Be[--Ue],Be[Ue]=null,rn=Be[--Ue],Be[Ue]=null,sn=Be[--Ue],Be[Ue]=null}var fe=null,Ht=null,Et=!1,ra=null,Ze=!1,Eo=Error(u(519));function ua(t){var e=Error(u(418,""));throw Fi(we(e,t)),Eo}function mp(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[ue]=t,e[he]=i,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<Sl.length;n++)mt(Sl[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),Om(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),ts(e);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Vm(e,i.value,i.defaultValue,i.children),ts(e)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||V0(e.textContent,n)?(i.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),i.onScroll!=null&&mt("scroll",e),i.onScrollEnd!=null&&mt("scrollend",e),i.onClick!=null&&(e.onclick=Ps),e=!0):e=!1,e||ua(t)}function pp(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:fe=fe.return}}function Pi(t){if(t!==fe)return!1;if(!Et)return pp(t),Et=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Yc(t.type,t.memoizedProps)),n=!n),n&&Ht&&ua(t),pp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Ht=Ge(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Ht=null}}else e===27?(e=Ht,Yn(t.type)?(t=kc,kc=null,Ht=t):Ht=e):Ht=fe?Ge(t.stateNode.nextSibling):null;return!0}function Ji(){Ht=fe=null,Et=!1}function yp(){var t=ra;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),ra=null),t}function Fi(t){ra===null?ra=[t]:ra.push(t)}var Mo=b(null),oa=null,un=null;function Mn(t,e,n){V(Mo,e._currentValue),e._currentValue=n}function on(t){t._currentValue=Mo.current,O(Mo)}function Ro(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Do(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;t:for(;o!==null;){var v=o;o=s;for(var S=0;S<e.length;S++)if(v.context===e[S]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Ro(o.return,n,t),i||(d=null);break t}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Ro(d,n,t),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===t){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Wi(t,e,n,i){t=null;for(var s=e,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;Se(s.pendingProps.value,d.value)||(t!==null?t.push(v):t=[v])}}else if(s===yt.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Rl):t=[Rl])}s=s.return}t!==null&&Do(e,t,n,i),e.flags|=262144}function ps(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){oa=t,un=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return gp(oa,t)}function ys(t,e){return oa===null&&ca(t),gp(t,e)}function gp(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},un===null){if(t===null)throw Error(u(308));un=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else un=un.next=e;return n}var ET=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},MT=a.unstable_scheduleCallback,RT=a.unstable_NormalPriority,Pt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Co(){return{controller:new ET,data:new Map,refCount:0}}function $i(t){t.refCount--,t.refCount===0&&MT(RT,function(){t.controller.abort()})}var Ii=null,Oo=0,Za=0,Pa=null;function DT(t,e){if(Ii===null){var n=Ii=[];Oo=0,Za=Vc(),Pa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Oo++,e.then(vp,vp),e}function vp(){if(--Oo===0&&Ii!==null){Pa!==null&&(Pa.status="fulfilled");var t=Ii;Ii=null,Za=0,Pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function CT(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var bp=z.S;z.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&DT(t,e),bp!==null&&bp(t,e)};var fa=b(null);function _o(){var t=fa.current;return t!==null?t:zt.pooledCache}function gs(t,e){e===null?V(fa,fa.current):V(fa,e.pool)}function Sp(){var t=_o();return t===null?null:{parent:Pt._currentValue,pool:t}}var tl=Error(u(460)),xp=Error(u(474)),vs=Error(u(542)),Vo={then:function(){}};function Tp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bs(){}function Ap(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(bs,bs),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mp(t),t;default:if(typeof e.status=="string")e.then(bs,bs);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Mp(t),t}throw el=e,tl}}var el=null;function Ep(){if(el===null)throw Error(u(459));var t=el;return el=null,t}function Mp(t){if(t===tl||t===vs)throw Error(u(483))}var Rn=!1;function wo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Mt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=fs(t),fp(t,null,n),e}return cs(t,i,e,n),fs(t)}function nl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,vm(t,n)}}function Bo(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Uo=!1;function al(){if(Uo){var t=Pa;if(t!==null)throw t}}function il(t,e,n,i){Uo=!1;var s=t.updateQueue;Rn=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,D=S.next;S.next=null,d===null?o=D:d.next=D,d=S;var B=t.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==d&&(v===null?B.firstBaseUpdate=D:v.next=D,B.lastBaseUpdate=S))}if(o!==null){var N=s.baseState;d=0,B=D=S=null,v=o;do{var C=v.lane&-536870913,_=C!==v.lane;if(_?(Tt&C)===C:(i&C)===C){C!==0&&C===Za&&(Uo=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var ut=t,it=v;C=e;var _t=n;switch(it.tag){case 1:if(ut=it.payload,typeof ut=="function"){N=ut.call(_t,N,C);break t}N=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=it.payload,C=typeof ut=="function"?ut.call(_t,N,C):ut,C==null)break t;N=g({},N,C);break t;case 2:Rn=!0}}C=v.callback,C!==null&&(t.flags|=64,_&&(t.flags|=8192),_=s.callbacks,_===null?s.callbacks=[C]:_.push(C))}else _={lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(D=B=_,S=N):B=B.next=_,d|=C;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;_=v,v=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);B===null&&(S=N),s.baseState=S,s.firstBaseUpdate=D,s.lastBaseUpdate=B,o===null&&(s.shared.lanes=0),jn|=d,t.lanes=d,t.memoizedState=N}}function Rp(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Dp(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Rp(n[t],e)}var Ja=b(null),Ss=b(0);function Cp(t,e){t=yn,V(Ss,t),V(Ja,e),yn=t|e.baseLanes}function jo(){V(Ss,yn),V(Ja,Ja.current)}function No(){yn=Ss.current,O(Ja),O(Ss)}var On=0,ct=null,Ct=null,Qt=null,xs=!1,Fa=!1,da=!1,Ts=0,ll=0,Wa=null,OT=0;function Gt(){throw Error(u(321))}function Lo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Se(t[n],e[n]))return!1;return!0}function Ho(t,e,n,i,s,o){return On=o,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?fy:dy,da=!1,o=n(i,s),da=!1,Fa&&(o=_p(e,n,i,s)),Op(t),o}function Op(t){z.H=Cs;var e=Ct!==null&&Ct.next!==null;if(On=0,Qt=Ct=ct=null,xs=!1,ll=0,Wa=null,e)throw Error(u(300));t===null||Wt||(t=t.dependencies,t!==null&&ps(t)&&(Wt=!0))}function _p(t,e,n,i){ct=t;var s=0;do{if(Fa&&(Wa=null),ll=0,Fa=!1,25<=s)throw Error(u(301));if(s+=1,Qt=Ct=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=jT,o=e(n,i)}while(Fa);return o}function _T(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?sl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ct.flags|=1024),e}function Yo(){var t=Ts!==0;return Ts=0,t}function qo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Go(t){if(xs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xs=!1}On=0,Qt=Ct=ct=null,Fa=!1,ll=Ts=0,Wa=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Zt(){if(Ct===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Qt===null?ct.memoizedState:Qt.next;if(e!==null)Qt=e,Ct=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function Xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(t){var e=ll;return ll+=1,Wa===null&&(Wa=[]),t=Ap(Wa,t,e),e=ct,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?fy:dy),t}function As(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return sl(t);if(t.$$typeof===G)return oe(t)}throw Error(u(438,String(t)))}function ko(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=ct.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Xo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=St;return e.index++,n}function cn(t,e){return typeof e=="function"?e(t):e}function Es(t){var e=Zt();return Ko(e,Ct,t)}function Ko(t,e,n){var i=t.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=n;var s=t.baseQueue,o=i.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}e.baseQueue=s=o,i.pending=null}if(o=t.baseState,s===null)t.memoizedState=o;else{e=s.next;var v=d=null,S=null,D=e,B=!1;do{var N=D.lane&-536870913;if(N!==D.lane?(Tt&N)===N:(On&N)===N){var C=D.revertLane;if(C===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),N===Za&&(B=!0);else if((On&C)===C){D=D.next,C===Za&&(B=!0);continue}else N={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(v=S=N,d=o):S=S.next=N,ct.lanes|=C,jn|=C;N=D.action,da&&n(o,N),o=D.hasEagerState?D.eagerState:n(o,N)}else C={lane:N,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(v=S=C,d=o):S=S.next=C,ct.lanes|=N,jn|=N;D=D.next}while(D!==null&&D!==e);if(S===null?d=o:S.next=v,!Se(o,t.memoizedState)&&(Wt=!0,B&&(n=Pa,n!==null)))throw n;t.memoizedState=o,t.baseState=d,t.baseQueue=S,i.lastRenderedState=o}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function Qo(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=t(o,d.action),d=d.next;while(d!==s);Se(o,e.memoizedState)||(Wt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Vp(t,e,n){var i=ct,s=Zt(),o=Et;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var d=!Se((Ct||s).memoizedState,n);d&&(s.memoizedState=n,Wt=!0),s=s.queue;var v=Bp.bind(null,i,s,t);if(rl(2048,8,v,[t]),s.getSnapshot!==e||d||Qt!==null&&Qt.memoizedState.tag&1){if(i.flags|=2048,$a(9,Ms(),zp.bind(null,i,s,n,e),null),zt===null)throw Error(u(349));o||(On&124)!==0||wp(i,e,n)}return n}function wp(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Xo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function zp(t,e,n,i){e.value=n,e.getSnapshot=i,Up(e)&&jp(t)}function Bp(t,e,n){return n(function(){Up(e)&&jp(t)})}function Up(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Se(t,n)}catch{return!0}}function jp(t){var e=Xa(t,2);e!==null&&Re(e,t,2)}function Zo(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),da){Tn(!0);try{n()}finally{Tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:t},e}function Np(t,e,n,i){return t.baseState=n,Ko(t,Ct,typeof i=="function"?i:cn)}function VT(t,e,n,i,s){if(Ds(t))throw Error(u(485));if(t=e.action,t!==null){var o={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};z.T!==null?n(!0):o.isTransition=!1,i(o),n=e.pending,n===null?(o.next=e.pending=o,Lp(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Lp(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var o=z.T,d={};z.T=d;try{var v=n(s,i),S=z.S;S!==null&&S(d,v),Hp(t,e,v)}catch(D){Po(t,e,D)}finally{z.T=o}}else try{o=n(s,i),Hp(t,e,o)}catch(D){Po(t,e,D)}}function Hp(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Yp(t,e,i)},function(i){return Po(t,e,i)}):Yp(t,e,n)}function Yp(t,e,n){e.status="fulfilled",e.value=n,qp(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Lp(t,n)))}function Po(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,qp(e),e=e.next;while(e!==i)}t.action=null}function qp(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Gp(t,e){return e}function Xp(t,e){if(Et){var n=zt.formState;if(n!==null){t:{var i=ct;if(Et){if(Ht){e:{for(var s=Ht,o=Ze;s.nodeType!==8;){if(!o){s=null;break e}if(s=Ge(s.nextSibling),s===null){s=null;break e}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Ht=Ge(s.nextSibling),i=s.data==="F!";break t}}ua(i)}i=!1}i&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:e},n.queue=i,n=uy.bind(null,ct,i),i.dispatch=n,i=Zo(!1),o=Io.bind(null,ct,!1,i.queue),i=pe(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=VT.bind(null,ct,s,o,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function kp(t){var e=Zt();return Kp(e,Ct,t)}function Kp(t,e,n){if(e=Ko(t,e,Gp)[0],t=Es(cn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=sl(e)}catch(d){throw d===tl?vs:d}else i=e;e=Zt();var s=e.queue,o=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,$a(9,Ms(),wT.bind(null,s,n),null)),[i,o,t]}function wT(t,e){t.action=e}function Qp(t){var e=Zt(),n=Ct;if(n!==null)return Kp(e,n,t);Zt(),e=e.memoizedState,n=Zt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function $a(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Xo(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Ms(){return{destroy:void 0,resource:void 0}}function Zp(){return Zt().memoizedState}function Rs(t,e,n,i){var s=pe();i=i===void 0?null:i,ct.flags|=t,s.memoizedState=$a(1|e,Ms(),n,i)}function rl(t,e,n,i){var s=Zt();i=i===void 0?null:i;var o=s.memoizedState.inst;Ct!==null&&i!==null&&Lo(i,Ct.memoizedState.deps)?s.memoizedState=$a(e,o,n,i):(ct.flags|=t,s.memoizedState=$a(1|e,o,n,i))}function Pp(t,e){Rs(8390656,8,t,e)}function Jp(t,e){rl(2048,8,t,e)}function Fp(t,e){return rl(4,2,t,e)}function Wp(t,e){return rl(4,4,t,e)}function $p(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ip(t,e,n){n=n!=null?n.concat([t]):null,rl(4,4,$p.bind(null,e,t),n)}function Jo(){}function ty(t,e){var n=Zt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&Lo(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function ey(t,e){var n=Zt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&Lo(e,i[1]))return i[0];if(i=t(),da){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[i,e],i}function Fo(t,e,n){return n===void 0||(On&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=i0(),ct.lanes|=t,jn|=t,n)}function ny(t,e,n,i){return Se(n,e)?n:Ja.current!==null?(t=Fo(t,n,i),Se(t,e)||(Wt=!0),t):(On&42)===0?(Wt=!0,t.memoizedState=n):(t=i0(),ct.lanes|=t,jn|=t,e)}function ay(t,e,n,i,s){var o=j.p;j.p=o!==0&&8>o?o:8;var d=z.T,v={};z.T=v,Io(t,!1,e,n);try{var S=s(),D=z.S;if(D!==null&&D(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=CT(S,i);ul(t,e,B,Me(t))}else ul(t,e,i,Me(t))}catch(N){ul(t,e,{then:function(){},status:"rejected",reason:N},Me())}finally{j.p=o,z.T=d}}function zT(){}function Wo(t,e,n,i){if(t.tag!==5)throw Error(u(476));var s=iy(t).queue;ay(t,s,e,P,n===null?zT:function(){return ly(t),n(i)})}function iy(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:P},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ly(t){var e=iy(t).next.queue;ul(t,e,{},Me())}function $o(){return oe(Rl)}function sy(){return Zt().memoizedState}function ry(){return Zt().memoizedState}function BT(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Me();t=Dn(n);var i=Cn(e,t,n);i!==null&&(Re(i,e,n),nl(i,e,n)),e={cache:Co()},t.payload=e;return}e=e.return}}function UT(t,e,n){var i=Me();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(t)?oy(e,n):(n=vo(t,e,n,i),n!==null&&(Re(n,t,i),cy(n,e,i)))}function uy(t,e,n){var i=Me();ul(t,e,n,i)}function ul(t,e,n,i){var s={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ds(t))oy(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var d=e.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,Se(v,d))return cs(t,e,s,0),zt===null&&os(),!1}catch{}finally{}if(n=vo(t,e,s,i),n!==null)return Re(n,t,i),cy(n,e,i),!0}return!1}function Io(t,e,n,i){if(i={lane:2,revertLane:Vc(),action:i,hasEagerState:!1,eagerState:null,next:null},Ds(t)){if(e)throw Error(u(479))}else e=vo(t,n,i,2),e!==null&&Re(e,t,2)}function Ds(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function oy(t,e){Fa=xs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function cy(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,vm(t,n)}}var Cs={readContext:oe,use:As,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt},fy={readContext:oe,use:As,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:Pp,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Rs(4194308,4,$p.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Rs(4194308,4,t,e)},useInsertionEffect:function(t,e){Rs(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var i=t();if(da){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=pe();if(n!==void 0){var s=n(e);if(da){Tn(!0);try{n(e)}finally{Tn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=UT.bind(null,ct,t),[i.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Zo(t);var e=t.queue,n=uy.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Jo,useDeferredValue:function(t,e){var n=pe();return Fo(n,t,e)},useTransition:function(){var t=Zo(!1);return t=ay.bind(null,ct,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=ct,s=pe();if(Et){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),zt===null)throw Error(u(349));(Tt&124)!==0||wp(i,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Pp(Bp.bind(null,i,o,t),[t]),i.flags|=2048,$a(9,Ms(),zp.bind(null,i,o,n,e),null),n},useId:function(){var t=pe(),e=zt.identifierPrefix;if(Et){var n=rn,i=sn;n=(i&~(1<<32-be(i)-1)).toString(32)+n,e="«"+e+"R"+n,n=Ts++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=OT++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:$o,useFormState:Xp,useActionState:Xp,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Io.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:ko,useCacheRefresh:function(){return pe().memoizedState=BT.bind(null,ct)}},dy={readContext:oe,use:As,useCallback:ty,useContext:oe,useEffect:Jp,useImperativeHandle:Ip,useInsertionEffect:Fp,useLayoutEffect:Wp,useMemo:ey,useReducer:Es,useRef:Zp,useState:function(){return Es(cn)},useDebugValue:Jo,useDeferredValue:function(t,e){var n=Zt();return ny(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Es(cn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:sl(t),e]},useSyncExternalStore:Vp,useId:sy,useHostTransitionStatus:$o,useFormState:kp,useActionState:kp,useOptimistic:function(t,e){var n=Zt();return Np(n,Ct,t,e)},useMemoCache:ko,useCacheRefresh:ry},jT={readContext:oe,use:As,useCallback:ty,useContext:oe,useEffect:Jp,useImperativeHandle:Ip,useInsertionEffect:Fp,useLayoutEffect:Wp,useMemo:ey,useReducer:Qo,useRef:Zp,useState:function(){return Qo(cn)},useDebugValue:Jo,useDeferredValue:function(t,e){var n=Zt();return Ct===null?Fo(n,t,e):ny(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Qo(cn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:sl(t),e]},useSyncExternalStore:Vp,useId:sy,useHostTransitionStatus:$o,useFormState:Qp,useActionState:Qp,useOptimistic:function(t,e){var n=Zt();return Ct!==null?Np(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:ry},Ia=null,ol=0;function Os(t){var e=ol;return ol+=1,Ia===null&&(Ia=[]),Ap(Ia,t,e)}function cl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function _s(t,e){throw e.$$typeof===x?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hy(t){var e=t._init;return e(t._payload)}function my(t){function e(M,E){if(t){var R=M.deletions;R===null?(M.deletions=[E],M.flags|=16):R.push(E)}}function n(M,E){if(!t)return null;for(;E!==null;)e(M,E),E=E.sibling;return null}function i(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function s(M,E){return M=ln(M,E),M.index=0,M.sibling=null,M}function o(M,E,R){return M.index=R,t?(R=M.alternate,R!==null?(R=R.index,R<E?(M.flags|=67108866,E):R):(M.flags|=67108866,E)):(M.flags|=1048576,E)}function d(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function v(M,E,R,U){return E===null||E.tag!==6?(E=So(R,M.mode,U),E.return=M,E):(E=s(E,R),E.return=M,E)}function S(M,E,R,U){var tt=R.type;return tt===L?B(M,E,R.props.children,U,R.key):E!==null&&(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===W&&hy(tt)===E.type)?(E=s(E,R.props),cl(E,R),E.return=M,E):(E=ds(R.type,R.key,R.props,null,M.mode,U),cl(E,R),E.return=M,E)}function D(M,E,R,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=xo(R,M.mode,U),E.return=M,E):(E=s(E,R.children||[]),E.return=M,E)}function B(M,E,R,U,tt){return E===null||E.tag!==7?(E=ia(R,M.mode,U,tt),E.return=M,E):(E=s(E,R),E.return=M,E)}function N(M,E,R){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=So(""+E,M.mode,R),E.return=M,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return R=ds(E.type,E.key,E.props,null,M.mode,R),cl(R,E),R.return=M,R;case w:return E=xo(E,M.mode,R),E.return=M,E;case W:var U=E._init;return E=U(E._payload),N(M,E,R)}if(Dt(E)||xt(E))return E=ia(E,M.mode,R,null),E.return=M,E;if(typeof E.then=="function")return N(M,Os(E),R);if(E.$$typeof===G)return N(M,ys(M,E),R);_s(M,E)}return null}function C(M,E,R,U){var tt=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return tt!==null?null:v(M,E,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case A:return R.key===tt?S(M,E,R,U):null;case w:return R.key===tt?D(M,E,R,U):null;case W:return tt=R._init,R=tt(R._payload),C(M,E,R,U)}if(Dt(R)||xt(R))return tt!==null?null:B(M,E,R,U,null);if(typeof R.then=="function")return C(M,E,Os(R),U);if(R.$$typeof===G)return C(M,E,ys(M,R),U);_s(M,R)}return null}function _(M,E,R,U,tt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(R)||null,v(E,M,""+U,tt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case A:return M=M.get(U.key===null?R:U.key)||null,S(E,M,U,tt);case w:return M=M.get(U.key===null?R:U.key)||null,D(E,M,U,tt);case W:var dt=U._init;return U=dt(U._payload),_(M,E,R,U,tt)}if(Dt(U)||xt(U))return M=M.get(R)||null,B(E,M,U,tt,null);if(typeof U.then=="function")return _(M,E,R,Os(U),tt);if(U.$$typeof===G)return _(M,E,R,ys(E,U),tt);_s(E,U)}return null}function ut(M,E,R,U){for(var tt=null,dt=null,nt=E,lt=E=0,It=null;nt!==null&<<R.length;lt++){nt.index>lt?(It=nt,nt=null):It=nt.sibling;var At=C(M,nt,R[lt],U);if(At===null){nt===null&&(nt=It);break}t&&nt&&At.alternate===null&&e(M,nt),E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At,nt=It}if(lt===R.length)return n(M,nt),Et&&sa(M,lt),tt;if(nt===null){for(;lt<R.length;lt++)nt=N(M,R[lt],U),nt!==null&&(E=o(nt,E,lt),dt===null?tt=nt:dt.sibling=nt,dt=nt);return Et&&sa(M,lt),tt}for(nt=i(nt);lt<R.length;lt++)It=_(nt,M,lt,R[lt],U),It!==null&&(t&&It.alternate!==null&&nt.delete(It.key===null?lt:It.key),E=o(It,E,lt),dt===null?tt=It:dt.sibling=It,dt=It);return t&&nt.forEach(function(Kn){return e(M,Kn)}),Et&&sa(M,lt),tt}function it(M,E,R,U){if(R==null)throw Error(u(151));for(var tt=null,dt=null,nt=E,lt=E=0,It=null,At=R.next();nt!==null&&!At.done;lt++,At=R.next()){nt.index>lt?(It=nt,nt=null):It=nt.sibling;var Kn=C(M,nt,At.value,U);if(Kn===null){nt===null&&(nt=It);break}t&&nt&&Kn.alternate===null&&e(M,nt),E=o(Kn,E,lt),dt===null?tt=Kn:dt.sibling=Kn,dt=Kn,nt=It}if(At.done)return n(M,nt),Et&&sa(M,lt),tt;if(nt===null){for(;!At.done;lt++,At=R.next())At=N(M,At.value,U),At!==null&&(E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At);return Et&&sa(M,lt),tt}for(nt=i(nt);!At.done;lt++,At=R.next())At=_(nt,M,lt,At.value,U),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?lt:At.key),E=o(At,E,lt),dt===null?tt=At:dt.sibling=At,dt=At);return t&&nt.forEach(function(NA){return e(M,NA)}),Et&&sa(M,lt),tt}function _t(M,E,R,U){if(typeof R=="object"&&R!==null&&R.type===L&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case A:t:{for(var tt=R.key;E!==null;){if(E.key===tt){if(tt=R.type,tt===L){if(E.tag===7){n(M,E.sibling),U=s(E,R.props.children),U.return=M,M=U;break t}}else if(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===W&&hy(tt)===E.type){n(M,E.sibling),U=s(E,R.props),cl(U,R),U.return=M,M=U;break t}n(M,E);break}else e(M,E);E=E.sibling}R.type===L?(U=ia(R.props.children,M.mode,U,R.key),U.return=M,M=U):(U=ds(R.type,R.key,R.props,null,M.mode,U),cl(U,R),U.return=M,M=U)}return d(M);case w:t:{for(tt=R.key;E!==null;){if(E.key===tt)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){n(M,E.sibling),U=s(E,R.children||[]),U.return=M,M=U;break t}else{n(M,E);break}else e(M,E);E=E.sibling}U=xo(R,M.mode,U),U.return=M,M=U}return d(M);case W:return tt=R._init,R=tt(R._payload),_t(M,E,R,U)}if(Dt(R))return ut(M,E,R,U);if(xt(R)){if(tt=xt(R),typeof tt!="function")throw Error(u(150));return R=tt.call(R),it(M,E,R,U)}if(typeof R.then=="function")return _t(M,E,Os(R),U);if(R.$$typeof===G)return _t(M,E,ys(M,R),U);_s(M,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,E!==null&&E.tag===6?(n(M,E.sibling),U=s(E,R),U.return=M,M=U):(n(M,E),U=So(R,M.mode,U),U.return=M,M=U),d(M)):n(M,E)}return function(M,E,R,U){try{ol=0;var tt=_t(M,E,R,U);return Ia=null,tt}catch(nt){if(nt===tl||nt===vs)throw nt;var dt=xe(29,nt,null,M.mode);return dt.lanes=U,dt.return=M,dt}finally{}}}var ti=my(!0),py=my(!1),je=b(null),Pe=null;function _n(t){var e=t.alternate;V(Jt,Jt.current&1),V(je,t),Pe===null&&(e===null||Ja.current!==null||e.memoizedState!==null)&&(Pe=t)}function yy(t){if(t.tag===22){if(V(Jt,Jt.current),V(je,t),Pe===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Pe=t)}}else Vn()}function Vn(){V(Jt,Jt.current),V(je,je.current)}function fn(t){O(je),Pe===t&&(Pe=null),O(Jt)}var Jt=b(0);function Vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Xc(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function tc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ec={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Me(),s=Dn(i);s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(Re(e,t,i),nl(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Me(),s=Dn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(Re(e,t,i),nl(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Me(),i=Dn(n);i.tag=2,e!=null&&(i.callback=e),e=Cn(t,i,n),e!==null&&(Re(e,t,n),nl(e,t,n))}};function gy(t,e,n,i,s,o,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,d):e.prototype&&e.prototype.isPureReactComponent?!Qi(n,i)||!Qi(s,o):!0}function vy(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&ec.enqueueReplaceState(e,e.state,null)}function ha(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}var ws=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}console.error(t)};function by(t){ws(t)}function Sy(t){console.error(t)}function xy(t){ws(t)}function zs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Ty(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function nc(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){zs(t,e)},n}function Ay(t){return t=Dn(t),t.tag=3,t}function Ey(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;t.payload=function(){return s(o)},t.callback=function(){Ty(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Ty(e,n,i),typeof s!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function NT(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Wi(e,n,s,!0),n=je.current,n!==null){switch(n.tag){case 13:return Pe===null?Rc():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Vo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Cc(t,i,s)),!1;case 22:return n.flags|=65536,i===Vo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Cc(t,i,s)),!1}throw Error(u(435,n.tag))}return Cc(t,i,s),Rc(),!1}if(Et)return e=je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Eo&&(t=Error(u(422),{cause:i}),Fi(we(t,n)))):(i!==Eo&&(e=Error(u(423),{cause:i}),Fi(we(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=we(i,n),s=nc(t.stateNode,i,s),Bo(t,s),Yt!==4&&(Yt=2)),!1;var o=Error(u(520),{cause:i});if(o=we(o,n),gl===null?gl=[o]:gl.push(o),Yt!==4&&(Yt=2),e===null)return!0;i=we(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=nc(n.stateNode,i,t),Bo(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Nn===null||!Nn.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Ay(s),Ey(s,t,n,i),Bo(n,s),!1}n=n.return}while(n!==null);return!1}var My=Error(u(461)),Wt=!1;function ae(t,e,n,i){e.child=t===null?py(e,null,n,i):ti(e,t.child,n,i)}function Ry(t,e,n,i,s){n=n.render;var o=e.ref;if("ref"in i){var d={};for(var v in i)v!=="ref"&&(d[v]=i[v])}else d=i;return ca(e),i=Ho(t,e,n,d,o,s),v=Yo(),t!==null&&!Wt?(qo(t,e,s),dn(t,e,s)):(Et&&v&&To(e),e.flags|=1,ae(t,e,i,s),e.child)}function Dy(t,e,n,i,s){if(t===null){var o=n.type;return typeof o=="function"&&!bo(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Cy(t,e,o,i,s)):(t=ds(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!cc(t,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qi,n(d,i)&&t.ref===e.ref)return dn(t,e,s)}return e.flags|=1,t=ln(o,i),t.ref=e.ref,t.return=e,e.child=t}function Cy(t,e,n,i,s){if(t!==null){var o=t.memoizedProps;if(Qi(o,i)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=i=o,cc(t,s))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,dn(t,e,s)}return ac(t,e,n,i,s)}function Oy(t,e,n){var i=e.pendingProps,s=i.children,o=t!==null?t.memoizedState:null;if(i.mode==="hidden"){if((e.flags&128)!==0){if(i=o!==null?o.baseLanes|n:n,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;e.childLanes=o&~i}else e.childLanes=0,e.child=null;return _y(t,e,i,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&gs(e,o!==null?o.cachePool:null),o!==null?Cp(e,o):jo(),yy(e);else return e.lanes=e.childLanes=536870912,_y(t,e,o!==null?o.baseLanes|n:n,n)}else o!==null?(gs(e,o.cachePool),Cp(e,o),Vn(),e.memoizedState=null):(t!==null&&gs(e,null),jo(),Vn());return ae(t,e,s,n),e.child}function _y(t,e,n,i){var s=_o();return s=s===null?null:{parent:Pt._currentValue,pool:s},e.memoizedState={baseLanes:n,cachePool:s},t!==null&&gs(e,null),jo(),yy(e),t!==null&&Wi(t,e,i,!0),null}function Bs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ac(t,e,n,i,s){return ca(e),n=Ho(t,e,n,i,void 0,s),i=Yo(),t!==null&&!Wt?(qo(t,e,s),dn(t,e,s)):(Et&&i&&To(e),e.flags|=1,ae(t,e,n,s),e.child)}function Vy(t,e,n,i,s,o){return ca(e),e.updateQueue=null,n=_p(e,i,n,s),Op(t),i=Yo(),t!==null&&!Wt?(qo(t,e,o),dn(t,e,o)):(Et&&i&&To(e),e.flags|=1,ae(t,e,n,o),e.child)}function wy(t,e,n,i,s){if(ca(e),e.stateNode===null){var o=ka,d=n.contextType;typeof d=="object"&&d!==null&&(o=oe(d)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ec,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},wo(e),d=n.contextType,o.context=typeof d=="object"&&d!==null?oe(d):ka,o.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(tc(e,n,d,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&ec.enqueueReplaceState(o,o.state,null),il(e,i,o,s),al(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var v=e.memoizedProps,S=ha(n,v);o.props=S;var D=o.context,B=n.contextType;d=ka,typeof B=="object"&&B!==null&&(d=oe(B));var N=n.getDerivedStateFromProps;B=typeof N=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,B||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||D!==d)&&vy(e,o,i,d),Rn=!1;var C=e.memoizedState;o.state=C,il(e,i,o,s),al(),D=e.memoizedState,v||C!==D||Rn?(typeof N=="function"&&(tc(e,n,N,i),D=e.memoizedState),(S=Rn||gy(e,n,S,i,C,D,d))?(B||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=D),o.props=i,o.state=D,o.context=d,i=S):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,zo(t,e),d=e.memoizedProps,B=ha(n,d),o.props=B,N=e.pendingProps,C=o.context,D=n.contextType,S=ka,typeof D=="object"&&D!==null&&(S=oe(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==N||C!==S)&&vy(e,o,i,S),Rn=!1,C=e.memoizedState,o.state=C,il(e,i,o,s),al();var _=e.memoizedState;d!==N||C!==_||Rn||t!==null&&t.dependencies!==null&&ps(t.dependencies)?(typeof v=="function"&&(tc(e,n,v,i),_=e.memoizedState),(B=Rn||gy(e,n,B,i,C,_,S)||t!==null&&t.dependencies!==null&&ps(t.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,_,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,_,S)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=_),o.props=i,o.state=_,o.context=S,i=B):(typeof o.componentDidUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,Bs(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=ti(e,t.child,null,s),e.child=ti(e,null,n,s)):ae(t,e,n,s),e.memoizedState=o.state,t=e.child):t=dn(t,e,s),t}function zy(t,e,n,i){return Ji(),e.flags|=256,ae(t,e,n,i),e.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(t){return{baseLanes:t,cachePool:Sp()}}function sc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ne),t}function By(t,e,n){var i=e.pendingProps,s=!1,o=(e.flags&128)!==0,d;if((d=o)||(d=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),d&&(s=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(s?_n(e):Vn(),Et){var v=Ht,S;if(S=v){t:{for(S=v,v=Ze;S.nodeType!==8;){if(!v){v=null;break t}if(S=Ge(S.nextSibling),S===null){v=null;break t}}v=S}v!==null?(e.memoizedState={dehydrated:v,treeContext:la!==null?{id:sn,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},S=xe(18,null,null,0),S.stateNode=v,S.return=e,e.child=S,fe=e,Ht=null,S=!0):S=!1}S||ua(e)}if(v=e.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Xc(v)?e.lanes=32:e.lanes=536870912,null;fn(e)}return v=i.children,i=i.fallback,s?(Vn(),s=e.mode,v=Us({mode:"hidden",children:v},s),i=ia(i,s,n,null),v.return=e,i.return=e,v.sibling=i,e.child=v,s=e.child,s.memoizedState=lc(n),s.childLanes=sc(t,d,n),e.memoizedState=ic,i):(_n(e),rc(e,v))}if(S=t.memoizedState,S!==null&&(v=S.dehydrated,v!==null)){if(o)e.flags&256?(_n(e),e.flags&=-257,e=uc(t,e,n)):e.memoizedState!==null?(Vn(),e.child=t.child,e.flags|=128,e=null):(Vn(),s=i.fallback,v=e.mode,i=Us({mode:"visible",children:i.children},v),s=ia(s,v,n,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,ti(e,t.child,null,n),i=e.child,i.memoizedState=lc(n),i.childLanes=sc(t,d,n),e.memoizedState=ic,e=s);else if(_n(e),Xc(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var D=d.dgst;d=D,i=Error(u(419)),i.stack="",i.digest=d,Fi({value:i,source:null,stack:null}),e=uc(t,e,n)}else if(Wt||Wi(t,e,n,!1),d=(n&t.childLanes)!==0,Wt||d){if(d=zt,d!==null&&(i=n&-n,i=(i&42)!==0?1:Xu(i),i=(i&(d.suspendedLanes|n))!==0?0:i,i!==0&&i!==S.retryLane))throw S.retryLane=i,Xa(t,i),Re(d,t,i),My;v.data==="$?"||Rc(),e=uc(t,e,n)}else v.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Ht=Ge(v.nextSibling),fe=e,Et=!0,ra=null,Ze=!1,t!==null&&(Be[Ue++]=sn,Be[Ue++]=rn,Be[Ue++]=la,sn=t.id,rn=t.overflow,la=e),e=rc(e,i.children),e.flags|=4096);return e}return s?(Vn(),s=i.fallback,v=e.mode,S=t.child,D=S.sibling,i=ln(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,D!==null?s=ln(D,s):(s=ia(s,v,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,v=t.child.memoizedState,v===null?v=lc(n):(S=v.cachePool,S!==null?(D=Pt._currentValue,S=S.parent!==D?{parent:D,pool:D}:S):S=Sp(),v={baseLanes:v.baseLanes|n,cachePool:S}),s.memoizedState=v,s.childLanes=sc(t,d,n),e.memoizedState=ic,i):(_n(e),n=t.child,t=n.sibling,n=ln(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function rc(t,e){return e=Us({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Us(t,e){return t=xe(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function uc(t,e,n){return ti(e,t.child,null,n),t=rc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Uy(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Ro(t.return,e,n)}function oc(t,e,n,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=s)}function jy(t,e,n){var i=e.pendingProps,s=i.revealOrder,o=i.tail;if(ae(t,e,i.children,n),i=Jt.current,(i&2)!==0)i=i&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Uy(t,n,e);else if(t.tag===19)Uy(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}switch(V(Jt,i),s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&Vs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),oc(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Vs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}oc(e,!0,n,null,o);break;case"together":oc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function dn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),jn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Wi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ps(t)))}function LT(t,e,n){switch(e.tag){case 3:rt(e,e.stateNode.containerInfo),Mn(e,Pt,t.memoizedState.cache),Ji();break;case 27:case 5:ne(e);break;case 4:rt(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(_n(e),e.flags|=128,null):(n&e.child.childLanes)!==0?By(t,e,n):(_n(e),t=dn(t,e,n),t!==null?t.sibling:null);_n(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Wi(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return jy(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),V(Jt,Jt.current),i)break;return null;case 22:case 23:return e.lanes=0,Oy(t,e,n);case 24:Mn(e,Pt,t.memoizedState.cache)}return dn(t,e,n)}function Ny(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!cc(t,n)&&(e.flags&128)===0)return Wt=!1,LT(t,e,n);Wt=(t.flags&131072)!==0}else Wt=!1,Et&&(e.flags&1048576)!==0&&hp(e,ms,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var i=e.elementType,s=i._init;if(i=s(i._payload),e.type=i,typeof i=="function")bo(i)?(t=ha(i,t),e.tag=1,e=wy(null,e,i,t,n)):(e.tag=0,e=ac(null,e,i,t,n));else{if(i!=null){if(s=i.$$typeof,s===I){e.tag=11,e=Ry(null,e,i,t,n);break t}else if(s===et){e.tag=14,e=Dy(null,e,i,t,n);break t}}throw e=Kt(i)||i,Error(u(306,e,""))}}return e;case 0:return ac(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ha(i,e.pendingProps),wy(t,e,i,s,n);case 3:t:{if(rt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));i=e.pendingProps;var o=e.memoizedState;s=o.element,zo(t,e),il(e,i,null,n);var d=e.memoizedState;if(i=d.cache,Mn(e,Pt,i),i!==o.cache&&Do(e,[Pt],n,!0),al(),i=d.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=zy(t,e,i,n);break t}else if(i!==s){s=we(Error(u(424)),e),Fi(s),e=zy(t,e,i,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ht=Ge(t.firstChild),fe=e,Et=!0,ra=null,Ze=!0,n=py(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ji(),i===s){e=dn(t,e,n);break t}ae(t,e,i,n)}e=e.child}return e;case 26:return Bs(t,e),t===null?(n=q0(e.type,null,e.pendingProps,null))?e.memoizedState=n:Et||(n=e.type,t=e.pendingProps,i=Js(k.current).createElement(n),i[ue]=e,i[he]=t,le(i,n,t),Ft(i),e.stateNode=i):e.memoizedState=q0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ne(e),t===null&&Et&&(i=e.stateNode=L0(e.type,e.pendingProps,k.current),fe=e,Ze=!0,s=Ht,Yn(e.type)?(kc=s,Ht=Ge(i.firstChild)):Ht=s),ae(t,e,e.pendingProps.children,n),Bs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((s=i=Ht)&&(i=dA(i,e.type,e.pendingProps,Ze),i!==null?(e.stateNode=i,fe=e,Ht=Ge(i.firstChild),Ze=!1,s=!0):s=!1),s||ua(e)),ne(e),s=e.type,o=e.pendingProps,d=t!==null?t.memoizedProps:null,i=o.children,Yc(s,o)?i=null:d!==null&&Yc(s,d)&&(e.flags|=32),e.memoizedState!==null&&(s=Ho(t,e,_T,null,null,n),Rl._currentValue=s),Bs(t,e),ae(t,e,i,n),e.child;case 6:return t===null&&Et&&((t=n=Ht)&&(n=hA(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,fe=e,Ht=null,t=!0):t=!1),t||ua(e)),null;case 13:return By(t,e,n);case 4:return rt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ti(e,null,i,n):ae(t,e,i,n),e.child;case 11:return Ry(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Mn(e,e.type,i.value),ae(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,ca(e),s=oe(s),i=i(s),e.flags|=1,ae(t,e,i,n),e.child;case 14:return Dy(t,e,e.type,e.pendingProps,n);case 15:return Cy(t,e,e.type,e.pendingProps,n);case 19:return jy(t,e,n);case 31:return i=e.pendingProps,n=e.mode,i={mode:i.mode,children:i.children},t===null?(n=Us(i,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=ln(t.child,i),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Oy(t,e,n);case 24:return ca(e),i=oe(Pt),t===null?(s=_o(),s===null&&(s=zt,o=Co(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:i,cache:s},wo(e),Mn(e,Pt,s)):((t.lanes&n)!==0&&(zo(t,e),il(e,null,null,n),al()),s=t.memoizedState,o=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Mn(e,Pt,i)):(i=o.cache,Mn(e,Pt,i),i!==s.cache&&Do(e,[Pt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function hn(t){t.flags|=4}function Ly(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Q0(e)){if(e=je.current,e!==null&&((Tt&4194048)===Tt?Pe!==null:(Tt&62914560)!==Tt&&(Tt&536870912)===0||e!==Pe))throw el=Vo,xp;t.flags|=8192}}function js(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ym():536870912,t.lanes|=e,ii|=e)}function fl(t,e){if(!Et)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function HT(t,e,n){var i=e.pendingProps;switch(Ao(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),on(Pt),bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Pi(e)?hn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,yp())),Nt(e),null;case 26:return n=e.memoizedState,t===null?(hn(e),n!==null?(Nt(e),Ly(e,n)):(Nt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(hn(e),Nt(e),Ly(e,n)):(Nt(e),e.flags&=-16777217):(t.memoizedProps!==i&&hn(e),Nt(e),e.flags&=-16777217),null;case 27:$n(e),n=k.current;var s=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}t=H.current,Pi(e)?mp(e):(t=L0(s,i,n),e.stateNode=t,hn(e))}return Nt(e),null;case 5:if($n(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Nt(e),null}if(t=H.current,Pi(e))mp(e);else{switch(s=Js(k.current),t){case 1:t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof i.is=="string"?s.createElement("select",{is:i.is}):s.createElement("select"),i.multiple?t.multiple=!0:i.size&&(t.size=i.size);break;default:t=typeof i.is=="string"?s.createElement(n,{is:i.is}):s.createElement(n)}}t[ue]=e,t[he]=i;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=t;t:switch(le(t,n,i),n){case"button":case"input":case"select":case"textarea":t=!!i.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&hn(e)}}return Nt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&hn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(u(166));if(t=k.current,Pi(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=fe,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[ue]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||V0(t.nodeValue,n)),t||ua(e)}else t=Js(t).createTextNode(i),t[ue]=e,e.stateNode=t}return Nt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Pi(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ue]=e}else Ji(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),s=!1}else s=yp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(fn(e),e):(fn(e),null)}if(fn(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=i!==null,t=t!==null&&t.memoizedState!==null,n){i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool);var o=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),js(e,e.updateQueue),Nt(e),null;case 4:return bt(),t===null&&Uc(e.stateNode.containerInfo),Nt(e),null;case 10:return on(e.type),Nt(e),null;case 19:if(O(Jt),s=e.memoizedState,s===null)return Nt(e),null;if(i=(e.flags&128)!==0,o=s.rendering,o===null)if(i)fl(s,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=Vs(t),o!==null){for(e.flags|=128,fl(s,!1),t=o.updateQueue,e.updateQueue=t,js(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)dp(n,t),n=n.sibling;return V(Jt,Jt.current&1|2),e.child}t=t.sibling}s.tail!==null&&Qe()>Hs&&(e.flags|=128,i=!0,fl(s,!1),e.lanes=4194304)}else{if(!i)if(t=Vs(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,js(e,t),fl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Nt(e),null}else 2*Qe()-s.renderingStartTime>Hs&&n!==536870912&&(e.flags|=128,i=!0,fl(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(t=s.last,t!==null?t.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Qe(),e.sibling=null,t=Jt.current,V(Jt,i?t&1|2:t&1),e):(Nt(e),null);case 22:case 23:return fn(e),No(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&js(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&O(fa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),on(Pt),Nt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function YT(t,e){switch(Ao(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return on(Pt),bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $n(e),null;case 13:if(fn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ji()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return O(Jt),null;case 4:return bt(),null;case 10:return on(e.type),null;case 22:case 23:return fn(e),No(),t!==null&&O(fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return on(Pt),null;case 25:return null;default:return null}}function Hy(t,e){switch(Ao(e),e.tag){case 3:on(Pt),bt();break;case 26:case 27:case 5:$n(e);break;case 4:bt();break;case 13:fn(e);break;case 19:O(Jt);break;case 10:on(e.type);break;case 22:case 23:fn(e),No(),t!==null&&O(fa);break;case 24:on(Pt)}}function dl(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var o=n.create,d=n.inst;i=o(),d.destroy=i}n=n.next}while(n!==s)}}catch(v){wt(e,e.return,v)}}function wn(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&t)===t){var d=i.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=e;var S=n,D=v;try{D()}catch(B){wt(s,S,B)}}}i=i.next}while(i!==o)}}catch(B){wt(e,e.return,B)}}function Yy(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Dp(e,n)}catch(i){wt(t,t.return,i)}}}function qy(t,e,n){n.props=ha(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){wt(t,e,i)}}function hl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){wt(t,e,s)}}function Je(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){wt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){wt(t,e,s)}else n.current=null}function Gy(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){wt(t,t.return,s)}}function fc(t,e,n){try{var i=t.stateNode;rA(i,t.type,n,e),i[he]=e}catch(s){wt(t,t.return,s)}}function Xy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function dc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ps));else if(i!==4&&(i===27&&Yn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(hc(t,e,n),t=t.sibling;t!==null;)hc(t,e,n),t=t.sibling}function Ns(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Yn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ns(t,e,n),t=t.sibling;t!==null;)Ns(t,e,n),t=t.sibling}function ky(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);le(e,i,n),e[ue]=t,e[he]=n}catch(o){wt(t,t.return,o)}}var mn=!1,Xt=!1,mc=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,$t=null;function qT(t,e){if(t=t.containerInfo,Lc=er,t=np(t),fo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var d=0,v=-1,S=-1,D=0,B=0,N=t,C=null;e:for(;;){for(var _;N!==n||s!==0&&N.nodeType!==3||(v=d+s),N!==o||i!==0&&N.nodeType!==3||(S=d+i),N.nodeType===3&&(d+=N.nodeValue.length),(_=N.firstChild)!==null;)C=N,N=_;for(;;){if(N===t)break e;if(C===n&&++D===s&&(v=d),C===o&&++B===i&&(S=d),(_=N.nextSibling)!==null)break;N=C,C=N.parentNode}N=_}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hc={focusedElem:t,selectionRange:n},er=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,o=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,s=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var ut=ha(n.type,s,n.elementType===n.type);t=i.getSnapshotBeforeUpdate(ut,o),i.__reactInternalSnapshotBeforeUpdate=t}catch(it){wt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Gc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Gc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function Qy(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:zn(t,n),i&4&&dl(5,n);break;case 1:if(zn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){wt(n,n.return,d)}else{var s=ha(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){wt(n,n.return,d)}}i&64&&Yy(n),i&512&&hl(n,n.return);break;case 3:if(zn(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Dp(t,e)}catch(d){wt(n,n.return,d)}}break;case 27:e===null&&i&4&&ky(n);case 26:case 5:zn(t,n),e===null&&i&4&&Gy(n),i&512&&hl(n,n.return);break;case 12:zn(t,n);break;case 13:zn(t,n),i&4&&Jy(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=FT.bind(null,n),mA(t,n))));break;case 22:if(i=n.memoizedState!==null||mn,!i){e=e!==null&&e.memoizedState!==null||Xt,s=mn;var o=Xt;mn=i,(Xt=e)&&!o?Bn(t,n,(n.subtreeFlags&8772)!==0):zn(t,n),mn=s,Xt=o}break;case 30:break;default:zn(t,n)}}function Zy(t){var e=t.alternate;e!==null&&(t.alternate=null,Zy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Qu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,ye=!1;function pn(t,e,n){for(n=n.child;n!==null;)Py(t,e,n),n=n.sibling}function Py(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Bi,n)}catch{}switch(n.tag){case 26:Xt||Je(n,e),pn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xt||Je(n,e);var i=Ut,s=ye;Yn(n.type)&&(Ut=n.stateNode,ye=!1),pn(t,e,n),Tl(n.stateNode),Ut=i,ye=s;break;case 5:Xt||Je(n,e);case 6:if(i=Ut,s=ye,Ut=null,pn(t,e,n),Ut=i,ye=s,Ut!==null)if(ye)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(o){wt(n,e,o)}else try{Ut.removeChild(n.stateNode)}catch(o){wt(n,e,o)}break;case 18:Ut!==null&&(ye?(t=Ut,j0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),_l(t)):j0(Ut,n.stateNode));break;case 4:i=Ut,s=ye,Ut=n.stateNode.containerInfo,ye=!0,pn(t,e,n),Ut=i,ye=s;break;case 0:case 11:case 14:case 15:Xt||wn(2,n,e),Xt||wn(4,n,e),pn(t,e,n);break;case 1:Xt||(Je(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&qy(n,e,i)),pn(t,e,n);break;case 21:pn(t,e,n);break;case 22:Xt=(i=Xt)||n.memoizedState!==null,pn(t,e,n),Xt=i;break;default:pn(t,e,n)}}function Jy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_l(t)}catch(n){wt(e,e.return,n)}}function GT(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ky),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ky),e;default:throw Error(u(435,t.tag))}}function pc(t,e){var n=GT(t);e.forEach(function(i){var s=WT.bind(null,t,i);n.has(i)||(n.add(i),i.then(s,s))})}function Te(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],o=t,d=e,v=d;t:for(;v!==null;){switch(v.tag){case 27:if(Yn(v.type)){Ut=v.stateNode,ye=!1;break t}break;case 5:Ut=v.stateNode,ye=!1;break t;case 3:case 4:Ut=v.stateNode.containerInfo,ye=!0;break t}v=v.return}if(Ut===null)throw Error(u(160));Py(o,d,s),Ut=null,ye=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Fy(e,t),e=e.sibling}var qe=null;function Fy(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Te(e,t),Ae(t),i&4&&(wn(3,t,t.return),dl(3,t),wn(5,t,t.return));break;case 1:Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),i&64&&mn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=qe;if(Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[Ni]||o[ue]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),le(o,i,n),o[ue]=t,Ft(o),i=o;break t;case"link":var d=k0("link","href",s).get(i+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break e}}o=s.createElement(i),le(o,i,n),s.head.appendChild(o);break;case"meta":if(d=k0("meta","content",s).get(i+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break e}}o=s.createElement(i),le(o,i,n),s.head.appendChild(o);break;default:throw Error(u(468,i))}o[ue]=t,Ft(o),i=o}t.stateNode=i}else K0(s,t.type,t.stateNode);else t.stateNode=X0(s,i,t.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?K0(s,t.type,t.stateNode):X0(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&fc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),n!==null&&i&4&&fc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Te(e,t),Ae(t),i&512&&(Xt||n===null||Je(n,n.return)),t.flags&32){s=t.stateNode;try{ja(s,"")}catch(_){wt(t,t.return,_)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,fc(t,s,n!==null?n.memoizedProps:s)),i&1024&&(mc=!0);break;case 6:if(Te(e,t),Ae(t),i&4){if(t.stateNode===null)throw Error(u(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(_){wt(t,t.return,_)}}break;case 3:if($s=null,s=qe,qe=Fs(e.containerInfo),Te(e,t),qe=s,Ae(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{_l(e.containerInfo)}catch(_){wt(t,t.return,_)}mc&&(mc=!1,Wy(t));break;case 4:i=qe,qe=Fs(t.stateNode.containerInfo),Te(e,t),Ae(t),qe=i;break;case 12:Te(e,t),Ae(t);break;case 13:Te(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xc=Qe()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,pc(t,i)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,D=mn,B=Xt;if(mn=D||s,Xt=B||S,Te(e,t),Xt=B,mn=D,Ae(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||mn||Xt||ma(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(o=S.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=S.stateNode;var N=S.memoizedProps.style,C=N!=null&&N.hasOwnProperty("display")?N.display:null;v.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(_){wt(S,S.return,_)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(_){wt(S,S.return,_)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,pc(t,n))));break;case 19:Te(e,t),Ae(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,pc(t,i)));break;case 30:break;case 21:break;default:Te(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Xy(i)){n=i;break}i=i.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=dc(t);Ns(t,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(ja(d,""),n.flags&=-33);var v=dc(t);Ns(t,v,d);break;case 3:case 4:var S=n.stateNode.containerInfo,D=dc(t);hc(t,D,S);break;default:throw Error(u(161))}}catch(B){wt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Wy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Wy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function zn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qy(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wn(4,e,e.return),ma(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&qy(e,e.return,n),ma(e);break;case 27:Tl(e.stateNode);case 26:case 5:Je(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function Bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,o=e,d=o.flags;switch(o.tag){case 0:case 11:case 15:Bn(s,o,n),dl(4,o);break;case 1:if(Bn(s,o,n),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){wt(i,i.return,D)}if(i=o,s=i.updateQueue,s!==null){var v=i.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Rp(S[s],v)}catch(D){wt(i,i.return,D)}}n&&d&64&&Yy(o),hl(o,o.return);break;case 27:ky(o);case 26:case 5:Bn(s,o,n),n&&i===null&&d&4&&Gy(o),hl(o,o.return);break;case 12:Bn(s,o,n);break;case 13:Bn(s,o,n),n&&d&4&&Jy(s,o);break;case 22:o.memoizedState===null&&Bn(s,o,n),hl(o,o.return);break;case 30:break;default:Bn(s,o,n)}e=e.sibling}}function yc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&$i(n))}function gc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t))}function Fe(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$y(t,e,n,i),e=e.sibling}function $y(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,n,i),s&2048&&dl(9,e);break;case 1:Fe(t,e,n,i);break;case 3:Fe(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&$i(t)));break;case 12:if(s&2048){Fe(t,e,n,i),t=e.stateNode;try{var o=e.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){wt(e,e.return,S)}}else Fe(t,e,n,i);break;case 13:Fe(t,e,n,i);break;case 23:break;case 22:o=e.stateNode,d=e.alternate,e.memoizedState!==null?o._visibility&2?Fe(t,e,n,i):ml(t,e):o._visibility&2?Fe(t,e,n,i):(o._visibility|=2,ei(t,e,n,i,(e.subtreeFlags&10256)!==0)),s&2048&&yc(d,e);break;case 24:Fe(t,e,n,i),s&2048&&gc(e.alternate,e);break;default:Fe(t,e,n,i)}}function ei(t,e,n,i,s){for(s=s&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var o=t,d=e,v=n,S=i,D=d.flags;switch(d.tag){case 0:case 11:case 15:ei(o,d,v,S,s),dl(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?ei(o,d,v,S,s):ml(o,d):(B._visibility|=2,ei(o,d,v,S,s)),s&&D&2048&&yc(d.alternate,d);break;case 24:ei(o,d,v,S,s),s&&D&2048&&gc(d.alternate,d);break;default:ei(o,d,v,S,s)}e=e.sibling}}function ml(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:ml(n,i),s&2048&&yc(i.alternate,i);break;case 24:ml(n,i),s&2048&&gc(i.alternate,i);break;default:ml(n,i)}e=e.sibling}}var pl=8192;function ni(t){if(t.subtreeFlags&pl)for(t=t.child;t!==null;)Iy(t),t=t.sibling}function Iy(t){switch(t.tag){case 26:ni(t),t.flags&pl&&t.memoizedState!==null&&DA(qe,t.memoizedState,t.memoizedProps);break;case 5:ni(t);break;case 3:case 4:var e=qe;qe=Fs(t.stateNode.containerInfo),ni(t),qe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=pl,pl=16777216,ni(t),pl=e):ni(t));break;default:ni(t)}}function t0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function yl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];$t=i,n0(i,t)}t0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)e0(t),t=t.sibling}function e0(t){switch(t.tag){case 0:case 11:case 15:yl(t),t.flags&2048&&wn(9,t,t.return);break;case 3:yl(t);break;case 12:yl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ls(t)):yl(t);break;default:yl(t)}}function Ls(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];$t=i,n0(i,t)}t0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wn(8,e,e.return),Ls(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ls(e));break;default:Ls(e)}t=t.sibling}}function n0(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:wn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:$i(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,$t=i;else t:for(n=t;$t!==null;){i=$t;var s=i.sibling,o=i.return;if(Zy(i),i===n){$t=null;break t}if(s!==null){s.return=o,$t=s;break t}$t=o}}}var XT={getCacheForType:function(t){var e=oe(Pt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},kT=typeof WeakMap=="function"?WeakMap:Map,Mt=0,zt=null,ht=null,Tt=0,Rt=0,Ee=null,Un=!1,ai=!1,vc=!1,yn=0,Yt=0,jn=0,pa=0,bc=0,Ne=0,ii=0,gl=null,ge=null,Sc=!1,xc=0,Hs=1/0,Ys=null,Nn=null,ie=0,Ln=null,li=null,si=0,Tc=0,Ac=null,a0=null,vl=0,Ec=null;function Me(){if((Mt&2)!==0&&Tt!==0)return Tt&-Tt;if(z.T!==null){var t=Za;return t!==0?t:Vc()}return bm()}function i0(){Ne===0&&(Ne=(Tt&536870912)===0||Et?pm():536870912);var t=je.current;return t!==null&&(t.flags|=32),Ne}function Re(t,e,n){(t===zt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(ri(t,0),Hn(t,Tt,Ne,!1)),ji(t,n),((Mt&2)===0||t!==zt)&&(t===zt&&((Mt&2)===0&&(pa|=n),Yt===4&&Hn(t,Tt,Ne,!1)),We(t))}function l0(t,e,n){if((Mt&6)!==0)throw Error(u(327));var i=!n&&(e&124)===0&&(e&t.expiredLanes)===0||Ui(t,e),s=i?ZT(t,e):Dc(t,e,!0),o=i;do{if(s===0){ai&&!i&&Hn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!KT(n)){s=Dc(t,e,!1),o=!1;continue}if(s===2){if(o=e,t.errorRecoveryDisabledLanes&o)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var v=t;s=gl;var S=v.current.memoizedState.isDehydrated;if(S&&(ri(v,d).flags|=256),d=Dc(v,d,!1),d!==2){if(vc&&!S){v.errorRecoveryDisabledLanes|=o,pa|=o,s=4;break t}o=ge,ge=s,o!==null&&(ge===null?ge=o:ge.push.apply(ge,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){ri(t,0),Hn(t,e,0,!0);break}t:{switch(i=t,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Hn(i,e,Ne,!Un);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=xc+300-Qe(),10<s)){if(Hn(i,e,Ne,!Un),Wl(i,0,!0)!==0)break t;i.timeoutHandle=B0(s0.bind(null,i,n,ge,Ys,Sc,e,Ne,pa,ii,Un,o,2,-0,0),s);break t}s0(i,n,ge,Ys,Sc,e,Ne,pa,ii,Un,o,0,-0,0)}}break}while(!0);We(t)}function s0(t,e,n,i,s,o,d,v,S,D,B,N,C,_){if(t.timeoutHandle=-1,N=e.subtreeFlags,(N&8192||(N&16785408)===16785408)&&(Ml={stylesheets:null,count:0,unsuspend:RA},Iy(e),N=CA(),N!==null)){t.cancelPendingCommit=N(h0.bind(null,t,e,o,n,i,s,d,v,S,B,1,C,_)),Hn(t,o,d,!D);return}h0(t,e,o,n,i,s,d,v,S)}function KT(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],o=s.getSnapshot;s=s.value;try{if(!Se(o(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Hn(t,e,n,i){e&=~bc,e&=~pa,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var o=31-be(s),d=1<<o;i[o]=-1,s&=~d}n!==0&&gm(t,n,e)}function qs(){return(Mt&6)===0?(bl(0),!1):!0}function Mc(){if(ht!==null){if(Rt===0)var t=ht.return;else t=ht,un=oa=null,Go(t),Ia=null,ol=0,t=ht;for(;t!==null;)Hy(t.alternate,t),t=t.return;ht=null}}function ri(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,oA(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Mc(),zt=t,ht=n=ln(t.current,null),Tt=e,Rt=0,Ee=null,Un=!1,ai=Ui(t,e),vc=!1,ii=Ne=bc=pa=jn=Yt=0,ge=gl=null,Sc=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-be(i),o=1<<s;e|=t[s],i&=~o}return yn=e,os(),n}function r0(t,e){ct=null,z.H=Cs,e===tl||e===vs?(e=Ep(),Rt=3):e===xp?(e=Ep(),Rt=4):Rt=e===My?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,ht===null&&(Yt=1,zs(t,we(e,t.current)))}function u0(){var t=z.H;return z.H=Cs,t===null?Cs:t}function o0(){var t=z.A;return z.A=XT,t}function Rc(){Yt=4,Un||(Tt&4194048)!==Tt&&je.current!==null||(ai=!0),(jn&134217727)===0&&(pa&134217727)===0||zt===null||Hn(zt,Tt,Ne,!1)}function Dc(t,e,n){var i=Mt;Mt|=2;var s=u0(),o=o0();(zt!==t||Tt!==e)&&(Ys=null,ri(t,e)),e=!1;var d=Yt;t:do try{if(Rt!==0&&ht!==null){var v=ht,S=Ee;switch(Rt){case 8:Mc(),d=6;break t;case 3:case 2:case 9:case 6:je.current===null&&(e=!0);var D=Rt;if(Rt=0,Ee=null,ui(t,v,S,D),n&&ai){d=0;break t}break;default:D=Rt,Rt=0,Ee=null,ui(t,v,S,D)}}QT(),d=Yt;break}catch(B){r0(t,B)}while(!0);return e&&t.shellSuspendCounter++,un=oa=null,Mt=i,z.H=s,z.A=o,ht===null&&(zt=null,Tt=0,os()),d}function QT(){for(;ht!==null;)c0(ht)}function ZT(t,e){var n=Mt;Mt|=2;var i=u0(),s=o0();zt!==t||Tt!==e?(Ys=null,Hs=Qe()+500,ri(t,e)):ai=Ui(t,e);t:do try{if(Rt!==0&&ht!==null){e=ht;var o=Ee;e:switch(Rt){case 1:Rt=0,Ee=null,ui(t,e,o,1);break;case 2:case 9:if(Tp(o)){Rt=0,Ee=null,f0(e);break}e=function(){Rt!==2&&Rt!==9||zt!==t||(Rt=7),We(t)},o.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:Tp(o)?(Rt=0,Ee=null,f0(e)):(Rt=0,Ee=null,ui(t,e,o,7));break;case 5:var d=null;switch(ht.tag){case 26:d=ht.memoizedState;case 5:case 27:var v=ht;if(!d||Q0(d)){Rt=0,Ee=null;var S=v.sibling;if(S!==null)ht=S;else{var D=v.return;D!==null?(ht=D,Gs(D)):ht=null}break e}}Rt=0,Ee=null,ui(t,e,o,5);break;case 6:Rt=0,Ee=null,ui(t,e,o,6);break;case 8:Mc(),Yt=6;break t;default:throw Error(u(462))}}PT();break}catch(B){r0(t,B)}while(!0);return un=oa=null,z.H=i,z.A=s,Mt=n,ht!==null?0:(zt=null,Tt=0,os(),Yt)}function PT(){for(;ht!==null&&!yx();)c0(ht)}function c0(t){var e=Ny(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Gs(t):ht=e}function f0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Vy(n,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=Vy(n,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:Go(e);default:Hy(n,e),e=ht=dp(e,yn),e=Ny(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Gs(t):ht=e}function ui(t,e,n,i){un=oa=null,Go(e),Ia=null,ol=0;var s=e.return;try{if(NT(t,s,e,n,Tt)){Yt=1,zs(t,we(n,t.current)),ht=null;return}}catch(o){if(s!==null)throw ht=s,o;Yt=1,zs(t,we(n,t.current)),ht=null;return}e.flags&32768?(Et||i===1?t=!0:ai||(Tt&536870912)!==0?t=!1:(Un=t=!0,(i===2||i===9||i===3||i===6)&&(i=je.current,i!==null&&i.tag===13&&(i.flags|=16384))),d0(e,t)):Gs(e)}function Gs(t){var e=t;do{if((e.flags&32768)!==0){d0(e,Un);return}t=e.return;var n=HT(e.alternate,e,yn);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Yt===0&&(Yt=5)}function d0(t,e){do{var n=YT(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);Yt=6,ht=null}function h0(t,e,n,i,s,o,d,v,S){t.cancelPendingCommit=null;do Xs();while(ie!==0);if((Mt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=go,Rx(t,n,o,d,v,S),t===zt&&(ht=zt=null,Tt=0),li=e,Ln=t,si=n,Tc=o,Ac=s,a0=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,$T(Pl,function(){return v0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,s=j.p,j.p=2,d=Mt,Mt|=4;try{qT(t,e,n)}finally{Mt=d,j.p=s,z.T=i}}ie=1,m0(),p0(),y0()}}function m0(){if(ie===1){ie=0;var t=Ln,e=li,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var i=j.p;j.p=2;var s=Mt;Mt|=4;try{Fy(e,t);var o=Hc,d=np(t.containerInfo),v=o.focusedElem,S=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&ep(v.ownerDocument.documentElement,v)){if(S!==null&&fo(v)){var D=S.start,B=S.end;if(B===void 0&&(B=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(B,v.value.length);else{var N=v.ownerDocument||document,C=N&&N.defaultView||window;if(C.getSelection){var _=C.getSelection(),ut=v.textContent.length,it=Math.min(S.start,ut),_t=S.end===void 0?it:Math.min(S.end,ut);!_.extend&&it>_t&&(d=_t,_t=it,it=d);var M=tp(v,it),E=tp(v,_t);if(M&&E&&(_.rangeCount!==1||_.anchorNode!==M.node||_.anchorOffset!==M.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)){var R=N.createRange();R.setStart(M.node,M.offset),_.removeAllRanges(),it>_t?(_.addRange(R),_.extend(E.node,E.offset)):(R.setEnd(E.node,E.offset),_.addRange(R))}}}}for(N=[],_=v;_=_.parentNode;)_.nodeType===1&&N.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<N.length;v++){var U=N[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}er=!!Lc,Hc=Lc=null}finally{Mt=s,j.p=i,z.T=n}}t.current=e,ie=2}}function p0(){if(ie===2){ie=0;var t=Ln,e=li,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var i=j.p;j.p=2;var s=Mt;Mt|=4;try{Qy(t,e.alternate,e)}finally{Mt=s,j.p=i,z.T=n}}ie=3}}function y0(){if(ie===4||ie===3){ie=0,gx();var t=Ln,e=li,n=si,i=a0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ie=5:(ie=0,li=Ln=null,g0(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Nn=null),ku(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Bi,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=z.T,s=j.p,j.p=2,z.T=null;try{for(var o=t.onRecoverableError,d=0;d<i.length;d++){var v=i[d];o(v.value,{componentStack:v.stack})}}finally{z.T=e,j.p=s}}(si&3)!==0&&Xs(),We(t),s=t.pendingLanes,(n&4194090)!==0&&(s&42)!==0?t===Ec?vl++:(vl=0,Ec=t):vl=0,bl(0)}}function g0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,$i(e)))}function Xs(t){return m0(),p0(),y0(),v0()}function v0(){if(ie!==5)return!1;var t=Ln,e=Tc;Tc=0;var n=ku(si),i=z.T,s=j.p;try{j.p=32>n?32:n,z.T=null,n=Ac,Ac=null;var o=Ln,d=si;if(ie=0,li=Ln=null,si=0,(Mt&6)!==0)throw Error(u(331));var v=Mt;if(Mt|=4,e0(o.current),$y(o,o.current,d,n),Mt=v,bl(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Bi,o)}catch{}return!0}finally{j.p=s,z.T=i,g0(t,e)}}function b0(t,e,n){e=we(n,e),e=nc(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(ji(t,2),We(t))}function wt(t,e,n){if(t.tag===3)b0(t,t,n);else for(;e!==null;){if(e.tag===3){b0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Nn===null||!Nn.has(i))){t=we(n,t),n=Ay(2),i=Cn(e,n,2),i!==null&&(Ey(n,i,e,t),ji(i,2),We(i));break}}e=e.return}}function Cc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new kT;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(vc=!0,s.add(n),t=JT.bind(null,t,e,n),e.then(t,t))}function JT(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(Tt&n)===n&&(Yt===4||Yt===3&&(Tt&62914560)===Tt&&300>Qe()-xc?(Mt&2)===0&&ri(t,0):bc|=n,ii===Tt&&(ii=0)),We(t)}function S0(t,e){e===0&&(e=ym()),t=Xa(t,e),t!==null&&(ji(t,e),We(t))}function FT(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),S0(t,n)}function WT(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(e),S0(t,n)}function $T(t,e){return Yu(t,e)}var ks=null,oi=null,Oc=!1,Ks=!1,_c=!1,ya=0;function We(t){t!==oi&&t.next===null&&(oi===null?ks=oi=t:oi=oi.next=t),Ks=!0,Oc||(Oc=!0,tA())}function bl(t,e){if(!_c&&Ks){_c=!0;do for(var n=!1,i=ks;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var d=i.suspendedLanes,v=i.pingedLanes;o=(1<<31-be(42|t)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,E0(i,o))}else o=Tt,o=Wl(i,i===zt?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Ui(i,o)||(n=!0,E0(i,o));i=i.next}while(n);_c=!1}}function IT(){x0()}function x0(){Ks=Oc=!1;var t=0;ya!==0&&(uA()&&(t=ya),ya=0);for(var e=Qe(),n=null,i=ks;i!==null;){var s=i.next,o=T0(i,e);o===0?(i.next=null,n===null?ks=s:n.next=s,s===null&&(oi=n)):(n=i,(t!==0||(o&3)!==0)&&(Ks=!0)),i=s}bl(t)}function T0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var d=31-be(o),v=1<<d,S=s[d];S===-1?((v&n)===0||(v&i)!==0)&&(s[d]=Mx(v,e)):S<=e&&(t.expiredLanes|=v),o&=~v}if(e=zt,n=Tt,n=Wl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&qu(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ui(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&qu(i),ku(n)){case 2:case 8:n=hm;break;case 32:n=Pl;break;case 268435456:n=mm;break;default:n=Pl}return i=A0.bind(null,t),n=Yu(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&qu(i),t.callbackPriority=2,t.callbackNode=null,2}function A0(t,e){if(ie!==0&&ie!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Xs()&&t.callbackNode!==n)return null;var i=Tt;return i=Wl(t,t===zt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(l0(t,i,e),T0(t,Qe()),t.callbackNode!=null&&t.callbackNode===n?A0.bind(null,t):null)}function E0(t,e){if(Xs())return null;l0(t,e,!0)}function tA(){cA(function(){(Mt&6)!==0?Yu(dm,IT):x0()})}function Vc(){return ya===0&&(ya=pm()),ya}function M0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ns(""+t)}function R0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function eA(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var o=M0((s[he]||null).action),d=i.submitter;d&&(e=(e=d[he]||null)?M0(e.formAction):d.getAttribute("formAction"),e!==null&&(o=e,d=null));var v=new ss("action","action",null,i,s);t.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ya!==0){var S=d?R0(s,d):new FormData(s);Wo(n,{pending:!0,data:S,method:s.method,action:o},null,S)}}else typeof o=="function"&&(v.preventDefault(),S=d?R0(s,d):new FormData(s),Wo(n,{pending:!0,data:S,method:s.method,action:o},o,S))},currentTarget:s}]})}}for(var wc=0;wc<yo.length;wc++){var zc=yo[wc],nA=zc.toLowerCase(),aA=zc[0].toUpperCase()+zc.slice(1);Ye(nA,"on"+aA)}Ye(lp,"onAnimationEnd"),Ye(sp,"onAnimationIteration"),Ye(rp,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(ST,"onTransitionRun"),Ye(xT,"onTransitionStart"),Ye(TT,"onTransitionCancel"),Ye(up,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),iA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sl));function D0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var d=i.length-1;0<=d;d--){var v=i[d],S=v.instance,D=v.currentTarget;if(v=v.listener,S!==o&&s.isPropagationStopped())break t;o=v,s.currentTarget=D;try{o(s)}catch(B){ws(B)}s.currentTarget=null,o=S}else for(d=0;d<i.length;d++){if(v=i[d],S=v.instance,D=v.currentTarget,v=v.listener,S!==o&&s.isPropagationStopped())break t;o=v,s.currentTarget=D;try{o(s)}catch(B){ws(B)}s.currentTarget=null,o=S}}}}function mt(t,e){var n=e[Ku];n===void 0&&(n=e[Ku]=new Set);var i=t+"__bubble";n.has(i)||(C0(e,t,2,!1),n.add(i))}function Bc(t,e,n){var i=0;e&&(i|=4),C0(n,t,i,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Uc(t){if(!t[Qs]){t[Qs]=!0,xm.forEach(function(n){n!=="selectionchange"&&(iA.has(n)||Bc(n,!1,t),Bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,Bc("selectionchange",!1,e))}}function C0(t,e,n,i){switch($0(e)){case 2:var s=VA;break;case 8:s=wA;break;default:s=Jc}n=s.bind(null,e,n,t),s=void 0,!no||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function jc(t,e,n,i,s){var o=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var v=i.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=i.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=_a(v),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){i=o=d;continue t}v=v.parentNode}}i=i.return}Um(function(){var D=o,B=to(n),N=[];t:{var C=op.get(t);if(C!==void 0){var _=ss,ut=t;switch(t){case"keypress":if(is(n)===0)break t;case"keydown":case"keyup":_=$x;break;case"focusin":ut="focus",_=so;break;case"focusout":ut="blur",_=so;break;case"beforeblur":case"afterblur":_=so;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Lm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=eT;break;case lp:case sp:case rp:_=Xx;break;case up:_=aT;break;case"scroll":case"scrollend":_=Lx;break;case"wheel":_=lT;break;case"copy":case"cut":case"paste":_=Kx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ym;break;case"toggle":case"beforetoggle":_=rT}var it=(e&4)!==0,_t=!it&&(t==="scroll"||t==="scrollend"),M=it?C!==null?C+"Capture":null:C;it=[];for(var E=D,R;E!==null;){var U=E;if(R=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||R===null||M===null||(U=Hi(E,M),U!=null&&it.push(xl(E,U,R))),_t)break;E=E.return}0<it.length&&(C=new _(C,ut,null,n,B),N.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",C&&n!==Iu&&(ut=n.relatedTarget||n.fromElement)&&(_a(ut)||ut[Oa]))break t;if((_||C)&&(C=B.window===B?B:(C=B.ownerDocument)?C.defaultView||C.parentWindow:window,_?(ut=n.relatedTarget||n.toElement,_=D,ut=ut?_a(ut):null,ut!==null&&(_t=h(ut),it=ut.tag,ut!==_t||it!==5&&it!==27&&it!==6)&&(ut=null)):(_=null,ut=D),_!==ut)){if(it=Lm,U="onMouseLeave",M="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(it=Ym,U="onPointerLeave",M="onPointerEnter",E="pointer"),_t=_==null?C:Li(_),R=ut==null?C:Li(ut),C=new it(U,E+"leave",_,n,B),C.target=_t,C.relatedTarget=R,U=null,_a(B)===D&&(it=new it(M,E+"enter",ut,n,B),it.target=R,it.relatedTarget=_t,U=it),_t=U,_&&ut)e:{for(it=_,M=ut,E=0,R=it;R;R=ci(R))E++;for(R=0,U=M;U;U=ci(U))R++;for(;0<E-R;)it=ci(it),E--;for(;0<R-E;)M=ci(M),R--;for(;E--;){if(it===M||M!==null&&it===M.alternate)break e;it=ci(it),M=ci(M)}it=null}else it=null;_!==null&&O0(N,C,_,it,!1),ut!==null&&_t!==null&&O0(N,_t,ut,it,!0)}}t:{if(C=D?Li(D):window,_=C.nodeName&&C.nodeName.toLowerCase(),_==="select"||_==="input"&&C.type==="file")var tt=Pm;else if(Qm(C))if(Jm)tt=gT;else{tt=pT;var dt=mT}else _=C.nodeName,!_||_.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?D&&$u(D.elementType)&&(tt=Pm):tt=yT;if(tt&&(tt=tt(t,D))){Zm(N,tt,n,B);break t}dt&&dt(t,C,D),t==="focusout"&&D&&C.type==="number"&&D.memoizedProps.value!=null&&Wu(C,"number",C.value)}switch(dt=D?Li(D):window,t){case"focusin":(Qm(dt)||dt.contentEditable==="true")&&(Ya=dt,ho=D,Zi=null);break;case"focusout":Zi=ho=Ya=null;break;case"mousedown":mo=!0;break;case"contextmenu":case"mouseup":case"dragend":mo=!1,ap(N,n,B);break;case"selectionchange":if(bT)break;case"keydown":case"keyup":ap(N,n,B)}var nt;if(uo)t:{switch(t){case"compositionstart":var lt="onCompositionStart";break t;case"compositionend":lt="onCompositionEnd";break t;case"compositionupdate":lt="onCompositionUpdate";break t}lt=void 0}else Ha?km(t,n)&&(lt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(lt="onCompositionStart");lt&&(qm&&n.locale!=="ko"&&(Ha||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Ha&&(nt=jm()):(En=B,ao="value"in En?En.value:En.textContent,Ha=!0)),dt=Zs(D,lt),0<dt.length&&(lt=new Hm(lt,t,null,n,B),N.push({event:lt,listeners:dt}),nt?lt.data=nt:(nt=Km(n),nt!==null&&(lt.data=nt)))),(nt=oT?cT(t,n):fT(t,n))&&(lt=Zs(D,"onBeforeInput"),0<lt.length&&(dt=new Hm("onBeforeInput","beforeinput",null,n,B),N.push({event:dt,listeners:lt}),dt.data=nt)),eA(N,t,D,n,B)}D0(N,e)})}function xl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zs(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Hi(t,n),s!=null&&i.unshift(xl(t,s,o)),s=Hi(t,e),s!=null&&i.push(xl(t,s,o))),t.tag===3)return i;t=t.return}return[]}function ci(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function O0(t,e,n,i,s){for(var o=e._reactName,d=[];n!==null&&n!==i;){var v=n,S=v.alternate,D=v.stateNode;if(v=v.tag,S!==null&&S===i)break;v!==5&&v!==26&&v!==27||D===null||(S=D,s?(D=Hi(n,o),D!=null&&d.unshift(xl(n,D,S))):s||(D=Hi(n,o),D!=null&&d.push(xl(n,D,S)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var lA=/\r\n?/g,sA=/\u0000|\uFFFD/g;function _0(t){return(typeof t=="string"?t:""+t).replace(lA,`
|
|
41
|
+
`).replace(sA,"")}function V0(t,e){return e=_0(e),_0(t)===e}function Ps(){}function Ot(t,e,n,i,s,o){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||ja(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&ja(t,""+i);break;case"className":Il(t,"class",i);break;case"tabIndex":Il(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Il(t,n,i);break;case"style":zm(t,i,o);break;case"data":if(e!=="object"){Il(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=ns(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",s.name,s,null),Ot(t,e,"formEncType",s.formEncType,s,null),Ot(t,e,"formMethod",s.formMethod,s,null),Ot(t,e,"formTarget",s.formTarget,s,null)):(Ot(t,e,"encType",s.encType,s,null),Ot(t,e,"method",s.method,s,null),Ot(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=ns(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Ps);break;case"onScroll":i!=null&&mt("scroll",t);break;case"onScrollEnd":i!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=ns(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":mt("beforetoggle",t),mt("toggle",t),$l(t,"popover",i);break;case"xlinkActuate":nn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":nn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":nn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":nn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":nn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":nn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":nn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":nn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":nn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$l(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=jx.get(n)||n,$l(t,n,i))}}function Nc(t,e,n,i,s,o){switch(n){case"style":zm(t,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof i=="string"?ja(t,i):(typeof i=="number"||typeof i=="bigint")&&ja(t,""+i);break;case"onScroll":i!=null&&mt("scroll",t);break;case"onScrollEnd":i!=null&&mt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Ps);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tm.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),o=t[he]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):$l(t,n,i)}}}function le(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var i=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,o,d,n,null)}}s&&Ot(t,e,"srcSet",n.srcSet,n,null),i&&Ot(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var v=o=d=s=null,S=null,D=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":s=B;break;case"type":d=B;break;case"checked":S=B;break;case"defaultChecked":D=B;break;case"value":o=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:Ot(t,e,i,B,n,null)}}Om(t,o,v,S,D,d,s,!1),ts(t);return;case"select":mt("invalid",t),i=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":i=v;default:Ot(t,e,s,v,n,null)}e=o,n=d,t.multiple=!!i,e!=null?Ua(t,!!i,e,!1):n!=null&&Ua(t,!!i,n,!0);return;case"textarea":mt("invalid",t),o=s=i=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":i=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ot(t,e,d,v,n,null)}Vm(t,i,s,o),ts(t);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(i=n[S],i!=null))switch(S){case"selected":t.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ot(t,e,S,i,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(i=0;i<Sl.length;i++)mt(Sl[i],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(i=n[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,D,i,n,null)}return;default:if($u(e)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Nc(t,e,B,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Ot(t,e,v,i,n,null))}function rA(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,d=null,v=null,S=null,D=null,B=null;for(_ in n){var N=n[_];if(n.hasOwnProperty(_)&&N!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":S=N;default:i.hasOwnProperty(_)||Ot(t,e,_,null,i,N)}}for(var C in i){var _=i[C];if(N=n[C],i.hasOwnProperty(C)&&(_!=null||N!=null))switch(C){case"type":o=_;break;case"name":s=_;break;case"checked":D=_;break;case"defaultChecked":B=_;break;case"value":d=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:_!==N&&Ot(t,e,C,_,i,N)}}Fu(t,d,v,S,D,B,o,s);return;case"select":_=d=v=C=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":_=S;default:i.hasOwnProperty(o)||Ot(t,e,o,null,i,S)}for(s in i)if(o=i[s],S=n[s],i.hasOwnProperty(s)&&(o!=null||S!=null))switch(s){case"value":C=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==S&&Ot(t,e,s,o,i,S)}e=v,n=d,i=_,C!=null?Ua(t,!!n,C,!1):!!i!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":_=C=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ot(t,e,v,null,i,s)}for(d in i)if(s=i[d],o=n[d],i.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":C=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Ot(t,e,d,s,i,o)}_m(t,C,_);return;case"option":for(var ut in n)if(C=n[ut],n.hasOwnProperty(ut)&&C!=null&&!i.hasOwnProperty(ut))switch(ut){case"selected":t.selected=!1;break;default:Ot(t,e,ut,null,i,C)}for(S in i)if(C=i[S],_=n[S],i.hasOwnProperty(S)&&C!==_&&(C!=null||_!=null))switch(S){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Ot(t,e,S,C,i,_)}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 it in n)C=n[it],n.hasOwnProperty(it)&&C!=null&&!i.hasOwnProperty(it)&&Ot(t,e,it,null,i,C);for(D in i)if(C=i[D],_=n[D],i.hasOwnProperty(D)&&C!==_&&(C!=null||_!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(u(137,e));break;default:Ot(t,e,D,C,i,_)}return;default:if($u(e)){for(var _t in n)C=n[_t],n.hasOwnProperty(_t)&&C!==void 0&&!i.hasOwnProperty(_t)&&Nc(t,e,_t,void 0,i,C);for(B in i)C=i[B],_=n[B],!i.hasOwnProperty(B)||C===_||C===void 0&&_===void 0||Nc(t,e,B,C,i,_);return}}for(var M in n)C=n[M],n.hasOwnProperty(M)&&C!=null&&!i.hasOwnProperty(M)&&Ot(t,e,M,null,i,C);for(N in i)C=i[N],_=n[N],!i.hasOwnProperty(N)||C===_||C==null&&_==null||Ot(t,e,N,C,i,_)}var Lc=null,Hc=null;function Js(t){return t.nodeType===9?t:t.ownerDocument}function w0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function z0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Yc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var qc=null;function uA(){var t=window.event;return t&&t.type==="popstate"?t===qc?!1:(qc=t,!0):(qc=null,!1)}var B0=typeof setTimeout=="function"?setTimeout:void 0,oA=typeof clearTimeout=="function"?clearTimeout:void 0,U0=typeof Promise=="function"?Promise:void 0,cA=typeof queueMicrotask=="function"?queueMicrotask:typeof U0<"u"?function(t){return U0.resolve(null).then(t).catch(fA)}:B0;function fA(t){setTimeout(function(){throw t})}function Yn(t){return t==="head"}function j0(t,e){var n=e,i=0,s=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(0<i&&8>i){n=i;var d=t.ownerDocument;if(n&1&&Tl(d.documentElement),n&2&&Tl(d.body),n&4)for(n=d.head,Tl(n),d=n.firstChild;d;){var v=d.nextSibling,S=d.nodeName;d[Ni]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=v}}if(s===0){t.removeChild(o),_l(e);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:i=n.charCodeAt(0)-48;else i=0;n=o}while(n);_l(e)}function Gc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gc(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function dA(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[Ni])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function hA(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ge(t.nextSibling),t===null))return null;return t}function Xc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function mA(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var kc=null;function N0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function L0(t,e,n){switch(e=Js(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function Tl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Qu(t)}var Le=new Map,H0=new Set;function Fs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=j.d;j.d={f:pA,r:yA,D:gA,C:vA,L:bA,m:SA,X:TA,S:xA,M:AA};function pA(){var t=gn.f(),e=qs();return t||e}function yA(t){var e=Va(t);e!==null&&e.tag===5&&e.type==="form"?ly(e):gn.r(t)}var fi=typeof document>"u"?null:document;function Y0(t,e,n){var i=fi;if(i&&typeof e=="string"&&e){var s=Ve(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),H0.has(s)||(H0.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),le(e,"link",t),Ft(e),i.head.appendChild(e)))}}function gA(t){gn.D(t),Y0("dns-prefetch",t,null)}function vA(t,e){gn.C(t,e),Y0("preconnect",t,e)}function bA(t,e,n){gn.L(t,e,n);var i=fi;if(i&&t&&e){var s='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ve(n.imageSizes)+'"]')):s+='[href="'+Ve(t)+'"]';var o=s;switch(e){case"style":o=di(t);break;case"script":o=hi(t)}Le.has(o)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(o,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(Al(o))||e==="script"&&i.querySelector(El(o))||(e=i.createElement("link"),le(e,"link",t),Ft(e),i.head.appendChild(e)))}}function SA(t,e){gn.m(t,e);var n=fi;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ve(i)+'"][href="'+Ve(t)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=hi(t)}if(!Le.has(o)&&(t=g({rel:"modulepreload",href:t},e),Le.set(o,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(El(o)))return}i=n.createElement("link"),le(i,"link",t),Ft(i),n.head.appendChild(i)}}}function xA(t,e,n){gn.S(t,e,n);var i=fi;if(i&&t){var s=wa(i).hoistableStyles,o=di(t);e=e||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=i.querySelector(Al(o)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(o))&&Kc(t,n);var S=d=i.createElement("link");Ft(S),le(S,"link",t),S._p=new Promise(function(D,B){S.onload=D,S.onerror=B}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ws(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function TA(t,e){gn.X(t,e);var n=fi;if(n&&t){var i=wa(n).hoistableScripts,s=hi(t),o=i.get(s);o||(o=n.querySelector(El(s)),o||(t=g({src:t,async:!0},e),(e=Le.get(s))&&Qc(t,e),o=n.createElement("script"),Ft(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function AA(t,e){gn.M(t,e);var n=fi;if(n&&t){var i=wa(n).hoistableScripts,s=hi(t),o=i.get(s);o||(o=n.querySelector(El(s)),o||(t=g({src:t,async:!0,type:"module"},e),(e=Le.get(s))&&Qc(t,e),o=n.createElement("script"),Ft(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function q0(t,e,n,i){var s=(s=k.current)?Fs(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=di(n.href),n=wa(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=di(n.href);var o=wa(s).hoistableStyles,d=o.get(t);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,d),(o=s.querySelector(Al(t)))&&!o._p&&(d.instance=o,d.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),o||EA(s,t,n,d.state))),e&&i===null)throw Error(u(528,""));return d}if(e&&i!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=hi(n),n=wa(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function di(t){return'href="'+Ve(t)+'"'}function Al(t){return'link[rel="stylesheet"]['+t+"]"}function G0(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function EA(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),le(e,"link",n),Ft(e),t.head.appendChild(e))}function hi(t){return'[src="'+Ve(t)+'"]'}function El(t){return"script[async]"+t}function X0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(i)return e.instance=i,Ft(i),i;var s=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Ft(i),le(i,"style",s),Ws(i,n.precedence,t),e.instance=i;case"stylesheet":s=di(n.href);var o=t.querySelector(Al(s));if(o)return e.state.loading|=4,e.instance=o,Ft(o),o;i=G0(n),(s=Le.get(s))&&Kc(i,s),o=(t.ownerDocument||t).createElement("link"),Ft(o);var d=o;return d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),le(o,"link",i),e.state.loading|=4,Ws(o,n.precedence,t),e.instance=o;case"script":return o=hi(n.src),(s=t.querySelector(El(o)))?(e.instance=s,Ft(s),s):(i=n,(s=Le.get(o))&&(i=g({},n),Qc(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Ft(s),le(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,Ws(i,n.precedence,t));return e.instance}function Ws(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,d=0;d<i.length;d++){var v=i[d];if(v.dataset.precedence===e)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Qc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var $s=null;function k0(t,e,n){if($s===null){var i=new Map,s=$s=new Map;s.set(n,i)}else s=$s,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var o=n[s];if(!(o[Ni]||o[ue]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(e)||"";d=t+d;var v=i.get(d);v?v.push(o):i.set(d,[o])}}return i}function K0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function MA(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Q0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ml=null;function RA(){}function DA(t,e,n){if(Ml===null)throw Error(u(475));var i=Ml;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var s=di(n.href),o=t.querySelector(Al(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(i.count++,i=Is.bind(i),t.then(i,i)),e.state.loading|=4,e.instance=o,Ft(o);return}o=t.ownerDocument||t,n=G0(n),(s=Le.get(s))&&Kc(n,s),o=o.createElement("link"),Ft(o);var d=o;d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),le(o,"link",n),e.instance=o}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(i.count++,e=Is.bind(i),t.addEventListener("load",e),t.addEventListener("error",e))}}function CA(){if(Ml===null)throw Error(u(475));var t=Ml;return t.stylesheets&&t.count===0&&Zc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Zc(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function Is(){if(this.count--,this.count===0){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var tr=null;function Zc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,tr=new Map,e.forEach(OA,t),tr=null,Is.call(t))}function OA(t,e){if(!(e.state.loading&4)){var n=tr.get(t);if(n)var i=n.get(null);else{n=new Map,tr.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}s=e.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||i,o===i&&n.set(null,s),n.set(d,s),this.count++,i=Is.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Rl={$$typeof:G,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function _A(t,e,n,i,s,o,d,v){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Z0(t,e,n,i,s,o,d,v,S,D,B,N){return t=new _A(t,e,n,d,v,S,D,N),e=1,o===!0&&(e|=24),o=xe(3,null,null,e),t.current=o,o.stateNode=t,e=Co(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:e},wo(o),t}function P0(t){return t?(t=ka,t):ka}function J0(t,e,n,i,s,o){s=P0(s),i.context===null?i.context=s:i.pendingContext=s,i=Dn(e),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Cn(t,i,e),n!==null&&(Re(n,t,e),nl(n,t,e))}function F0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Pc(t,e){F0(t,e),(t=t.alternate)&&F0(t,e)}function W0(t){if(t.tag===13){var e=Xa(t,67108864);e!==null&&Re(e,t,67108864),Pc(t,67108864)}}var er=!0;function VA(t,e,n,i){var s=z.T;z.T=null;var o=j.p;try{j.p=2,Jc(t,e,n,i)}finally{j.p=o,z.T=s}}function wA(t,e,n,i){var s=z.T;z.T=null;var o=j.p;try{j.p=8,Jc(t,e,n,i)}finally{j.p=o,z.T=s}}function Jc(t,e,n,i){if(er){var s=Fc(i);if(s===null)jc(t,e,i,nr,n),I0(t,i);else if(BA(s,t,e,n,i))i.stopPropagation();else if(I0(t,i),e&4&&-1<zA.indexOf(t)){for(;s!==null;){var o=Va(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=In(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var S=1<<31-be(d);v.entanglements[1]|=S,d&=~S}We(o),(Mt&6)===0&&(Hs=Qe()+500,bl(0))}}break;case 13:v=Xa(o,2),v!==null&&Re(v,o,2),qs(),Pc(o,2)}if(o=Fc(i),o===null&&jc(t,e,i,nr,n),o===s)break;s=o}s!==null&&i.stopPropagation()}else jc(t,e,i,null,n)}}function Fc(t){return t=to(t),Wc(t)}var nr=null;function Wc(t){if(nr=null,t=_a(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return nr=t,null}function $0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vx()){case dm:return 2;case hm:return 8;case Pl:case bx:return 32;case mm:return 268435456;default:return 32}default:return 32}}var $c=!1,qn=null,Gn=null,Xn=null,Dl=new Map,Cl=new Map,kn=[],zA="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 I0(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":Dl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(e.pointerId)}}function Ol(t,e,n,i,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Va(e),e!==null&&W0(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function BA(t,e,n,i,s){switch(e){case"focusin":return qn=Ol(qn,t,e,n,i,s),!0;case"dragenter":return Gn=Ol(Gn,t,e,n,i,s),!0;case"mouseover":return Xn=Ol(Xn,t,e,n,i,s),!0;case"pointerover":var o=s.pointerId;return Dl.set(o,Ol(Dl.get(o)||null,t,e,n,i,s)),!0;case"gotpointercapture":return o=s.pointerId,Cl.set(o,Ol(Cl.get(o)||null,t,e,n,i,s)),!0}return!1}function tg(t){var e=_a(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Dx(t.priority,function(){if(n.tag===13){var i=Me();i=Xu(i);var s=Xa(n,i);s!==null&&Re(s,n,i),Pc(n,i)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ar(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Fc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Iu=i,n.target.dispatchEvent(i),Iu=null}else return e=Va(n),e!==null&&W0(e),t.blockedOn=n,!1;e.shift()}return!0}function eg(t,e,n){ar(t)&&n.delete(e)}function UA(){$c=!1,qn!==null&&ar(qn)&&(qn=null),Gn!==null&&ar(Gn)&&(Gn=null),Xn!==null&&ar(Xn)&&(Xn=null),Dl.forEach(eg),Cl.forEach(eg)}function ir(t,e){t.blockedOn===e&&(t.blockedOn=null,$c||($c=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,UA)))}var lr=null;function ng(t){lr!==t&&(lr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){lr===t&&(lr=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(Wc(i||n)===null)continue;break}var o=Va(n);o!==null&&(t.splice(e,3),e-=3,Wo(o,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function _l(t){function e(S){return ir(S,t)}qn!==null&&ir(qn,t),Gn!==null&&ir(Gn,t),Xn!==null&&ir(Xn,t),Dl.forEach(e),Cl.forEach(e);for(var n=0;n<kn.length;n++){var i=kn[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)tg(n),n.blockedOn===null&&kn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],o=n[i+1],d=s[he]||null;if(typeof o=="function")d||ng(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[he]||null)v=d.formAction;else if(Wc(s)!==null)continue}else v=d.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),ng(n)}}}function Ic(t){this._internalRoot=t}sr.prototype.render=Ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,i=Me();J0(n,i,t,e,null,null)},sr.prototype.unmount=Ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J0(t.current,2,null,t,null,null),qs(),e[Oa]=null}};function sr(t){this._internalRoot=t}sr.prototype.unstable_scheduleHydration=function(t){if(t){var e=bm();t={blockedOn:null,target:t,priority:e};for(var n=0;n<kn.length&&e!==0&&e<kn[n].priority;n++);kn.splice(n,0,t),n===0&&tg(t)}};var ag=l.version;if(ag!=="19.1.1")throw Error(u(527,ag,"19.1.1"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var jA={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rr.isDisabled&&rr.supportsFiber)try{Bi=rr.inject(jA),ve=rr}catch{}}return mi.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,i="",s=by,o=Sy,d=xy,v=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(v=e.unstable_transitionCallbacks)),e=Z0(t,1,!1,null,null,n,i,s,o,d,v,null),t[Oa]=e.current,Uc(t),new Ic(e)},mi.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var i=!1,s="",o=by,d=Sy,v=xy,S=null,D=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(D=n.formState)),e=Z0(t,1,!0,e,n??null,i,s,o,d,v,S,D),e.context=P0(null),n=e.current,i=Me(),i=Xu(i),s=Dn(i),s.callback=null,Cn(n,s,i),n=i,e.current.lanes=n,ji(e,n),We(e),t[Oa]=e.current,Uc(t),new sr(e)},mi.version="19.1.1",mi}var of;function cg(){if(of)return cr.exports;of=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(l){console.error(l)}}return a(),cr.exports=og(),cr.exports}var fg=cg();const cf=ga(fg);var mr={exports:{}},pi={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-jsx-runtime.production.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Error generating stack: `+u.message+`
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var ff;function dg(){if(ff)return pi;ff=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(u,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var y in c)y!=="key"&&(h[y]=c[y])}else h=c;return c=h.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:h}}return pi.Fragment=l,pi.jsx=r,pi.jsxs=r,pi}var df;function hg(){return df||(df=1,mr.exports=dg()),mr.exports}var X=hg();const mg=({settings:a,onClick:l})=>{const[r,u]=pt.useState(!1),c=()=>{const h=new CustomEvent("chatButtonClick",{detail:{settings:a}});document.dispatchEvent(h),l?.()};return X.jsxs("button",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e3,backgroundColor:a.baseSettings.primaryBrandColor,color:"white",fontSize:"14px",fontWeight:"bold",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',padding:"15px 20px",border:"none",borderRadius:"50px",boxShadow:r?"0 6px 20px rgba(0,0,0,0.2)":"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",transition:"all 0.2s ease-in-out",transform:r?"scale(1.05)":"scale(1)",display:"flex",alignItems:"center",gap:"8px",outline:"none",userSelect:"none"},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onClick:c,onFocus:()=>u(!0),onBlur:()=>u(!1),children:[a.aiChatSettings?.aiAssistantAvatar&&X.jsx("img",{src:a.aiChatSettings.aiAssistantAvatar,alt:"AI Assistant",style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"cover",flexShrink:0},onError:h=>{h.currentTarget.style.display="none"}}),"Ask AI"]})},pg=({settings:a,onClose:l})=>{const[r,u]=pt.useState(!0),[c,h]=pt.useState(""),f=()=>{u(!1),l?.()},y=m=>{h(m)};return pt.useEffect(()=>{const m=p=>{p.key==="Escape"&&f()};if(r)return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),pt.useEffect(()=>{if(r)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[r]),r?X.jsxs(X.Fragment,{children:[X.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)",zIndex:999,animation:"fadeIn 0.2s ease-out"},onClick:f}),X.jsxs("div",{style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",zIndex:1e3,width:"90%",maxWidth:"500px",maxHeight:"80vh",overflow:"hidden",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',animation:"slideIn 0.3s ease-out"},onClick:m=>m.stopPropagation(),children:[X.jsxs("div",{style:{padding:"24px 24px 20px 24px",borderBottom:"1px solid #f1f5f9",display:"flex",justifyContent:"space-between",alignItems:"center",background:`linear-gradient(135deg, ${a.baseSettings.primaryBrandColor}10, ${a.baseSettings.primaryBrandColor}05)`},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[a.aiChatSettings?.aiAssistantAvatar&&X.jsx("img",{src:a.aiChatSettings.aiAssistantAvatar,alt:"AI Assistant",style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"},onError:m=>{m.currentTarget.style.display="none"}}),X.jsx("h3",{style:{margin:0,color:a.baseSettings.primaryBrandColor,fontSize:"18px",fontWeight:"600",letterSpacing:"-0.025em"},children:a.baseSettings.organizationDisplayName})]}),X.jsx("button",{onClick:f,style:{background:"none",border:"none",fontSize:"20px",cursor:"pointer",color:"#64748b",padding:"8px",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="#f1f5f9",m.currentTarget.style.color="#334155"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent",m.currentTarget.style.color="#64748b"},children:"×"})]}),X.jsxs("div",{style:{padding:"24px",maxHeight:"60vh",overflowY:"auto"},children:[X.jsxs("div",{style:{position:"relative",marginBottom:"24px"},children:[X.jsx("input",{type:"text",placeholder:"Ask a question...",value:c,onChange:m=>h(m.target.value),style:{width:"100%",padding:"14px 16px",border:"2px solid #e2e8f0",borderRadius:"12px",fontSize:"16px",fontFamily:"inherit",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease",backgroundColor:"#fafafa"},onFocus:m=>{m.currentTarget.style.borderColor=a.baseSettings.primaryBrandColor,m.currentTarget.style.backgroundColor="white"},onBlur:m=>{m.currentTarget.style.borderColor="#e2e8f0",m.currentTarget.style.backgroundColor="#fafafa"},autoFocus:!0}),X.jsx("button",{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)",backgroundColor:a.baseSettings.primaryBrandColor,color:"white",border:"none",borderRadius:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"opacity 0.15s ease"},onMouseEnter:m=>{m.currentTarget.style.opacity="0.9"},onMouseLeave:m=>{m.currentTarget.style.opacity="1"},onClick:()=>{console.log("Search for:",c)},children:"Search"})]}),a.aiChatSettings?.exampleQuestions&&a.aiChatSettings.exampleQuestions.length>0&&X.jsxs("div",{children:[X.jsx("p",{style:{margin:"0 0 16px 0",fontWeight:"600",fontSize:"14px",color:"#475569",letterSpacing:"-0.025em"},children:"Popular questions:"}),X.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.aiChatSettings.exampleQuestions.map((m,p)=>X.jsx("button",{onClick:()=>y(m),style:{display:"block",width:"100%",padding:"12px 16px",border:"1px solid #e2e8f0",backgroundColor:"white",borderRadius:"10px",cursor:"pointer",textAlign:"left",fontSize:"14px",fontFamily:"inherit",color:"#334155",transition:"all 0.15s ease",lineHeight:"1.4"},onMouseEnter:g=>{g.currentTarget.style.backgroundColor="#f8fafc",g.currentTarget.style.borderColor=a.baseSettings.primaryBrandColor,g.currentTarget.style.transform="translateY(-1px)",g.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.1)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="white",g.currentTarget.style.borderColor="#e2e8f0",g.currentTarget.style.transform="translateY(0)",g.currentTarget.style.boxShadow="none"},children:m},p))})]})]})]}),X.jsx("style",{children:`
|
|
50
50
|
@keyframes fadeIn {
|
|
51
51
|
from { opacity: 0; }
|
|
52
52
|
to { opacity: 1; }
|
|
@@ -62,4 +62,85 @@ Error generating stack: `+u.message+`
|
|
|
62
62
|
transform: translate(-50%, -50%) scale(1);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`})]}):null};
|
|
65
|
+
`})]}):null};var pr={exports:{}},ft={};/**
|
|
66
|
+
* @license React
|
|
67
|
+
* react.production.min.js
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/var hf;function yg(){if(hf)return ft;hf=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function A(b){return b===null||typeof b!="object"?null:(b=x&&b[x]||b["@@iterator"],typeof b=="function"?b:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,K={};function Z(b,O,V){this.props=b,this.context=O,this.refs=K,this.updater=V||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(b,O){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,O,"setState")},Z.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Q(){}Q.prototype=Z.prototype;function q(b,O,V){this.props=b,this.context=O,this.refs=K,this.updater=V||w}var G=q.prototype=new Q;G.constructor=q,L(G,Z.prototype),G.isPureReactComponent=!0;var I=Array.isArray,Y=Object.prototype.hasOwnProperty,F={current:null},et={key:!0,ref:!0,__self:!0,__source:!0};function W(b,O,V){var H,J={},k=null,yt=null;if(O!=null)for(H in O.ref!==void 0&&(yt=O.ref),O.key!==void 0&&(k=""+O.key),O)Y.call(O,H)&&!et.hasOwnProperty(H)&&(J[H]=O[H]);var rt=arguments.length-2;if(rt===1)J.children=V;else if(1<rt){for(var bt=Array(rt),ne=0;ne<rt;ne++)bt[ne]=arguments[ne+2];J.children=bt}if(b&&b.defaultProps)for(H in rt=b.defaultProps,rt)J[H]===void 0&&(J[H]=rt[H]);return{$$typeof:a,type:b,key:k,ref:yt,props:J,_owner:F.current}}function gt(b,O){return{$$typeof:a,type:b.type,key:O,ref:b.ref,props:b.props,_owner:b._owner}}function St(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function vt(b){var O={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(V){return O[V]})}var xt=/\/+/g;function Vt(b,O){return typeof b=="object"&&b!==null&&b.key!=null?vt(""+b.key):O.toString(36)}function Kt(b,O,V,H,J){var k=typeof b;(k==="undefined"||k==="boolean")&&(b=null);var yt=!1;if(b===null)yt=!0;else switch(k){case"string":case"number":yt=!0;break;case"object":switch(b.$$typeof){case a:case l:yt=!0}}if(yt)return yt=b,J=J(yt),b=H===""?"."+Vt(yt,0):H,I(J)?(V="",b!=null&&(V=b.replace(xt,"$&/")+"/"),Kt(J,O,V,"",function(ne){return ne})):J!=null&&(St(J)&&(J=gt(J,V+(!J.key||yt&&yt.key===J.key?"":(""+J.key).replace(xt,"$&/")+"/")+b)),O.push(J)),1;if(yt=0,H=H===""?".":H+":",I(b))for(var rt=0;rt<b.length;rt++){k=b[rt];var bt=H+Vt(k,rt);yt+=Kt(k,O,V,bt,J)}else if(bt=A(b),typeof bt=="function")for(b=bt.call(b),rt=0;!(k=b.next()).done;)k=k.value,bt=H+Vt(k,rt++),yt+=Kt(k,O,V,bt,J);else if(k==="object")throw O=String(b),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return yt}function Dt(b,O,V){if(b==null)return b;var H=[],J=0;return Kt(b,H,"","",function(k){return O.call(V,k,J++)}),H}function z(b){if(b._status===-1){var O=b._result;O=O(),O.then(function(V){(b._status===0||b._status===-1)&&(b._status=1,b._result=V)},function(V){(b._status===0||b._status===-1)&&(b._status=2,b._result=V)}),b._status===-1&&(b._status=0,b._result=O)}if(b._status===1)return b._result.default;throw b._result}var j={current:null},P={transition:null},at={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:P,ReactCurrentOwner:F};function T(){throw Error("act(...) is not supported in production builds of React.")}return ft.Children={map:Dt,forEach:function(b,O,V){Dt(b,function(){O.apply(this,arguments)},V)},count:function(b){var O=0;return Dt(b,function(){O++}),O},toArray:function(b){return Dt(b,function(O){return O})||[]},only:function(b){if(!St(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},ft.Component=Z,ft.Fragment=r,ft.Profiler=c,ft.PureComponent=q,ft.StrictMode=u,ft.Suspense=m,ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=at,ft.act=T,ft.cloneElement=function(b,O,V){if(b==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var H=L({},b.props),J=b.key,k=b.ref,yt=b._owner;if(O!=null){if(O.ref!==void 0&&(k=O.ref,yt=F.current),O.key!==void 0&&(J=""+O.key),b.type&&b.type.defaultProps)var rt=b.type.defaultProps;for(bt in O)Y.call(O,bt)&&!et.hasOwnProperty(bt)&&(H[bt]=O[bt]===void 0&&rt!==void 0?rt[bt]:O[bt])}var bt=arguments.length-2;if(bt===1)H.children=V;else if(1<bt){rt=Array(bt);for(var ne=0;ne<bt;ne++)rt[ne]=arguments[ne+2];H.children=rt}return{$$typeof:a,type:b.type,key:J,ref:k,props:H,_owner:yt}},ft.createContext=function(b){return b={$$typeof:f,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},b.Provider={$$typeof:h,_context:b},b.Consumer=b},ft.createElement=W,ft.createFactory=function(b){var O=W.bind(null,b);return O.type=b,O},ft.createRef=function(){return{current:null}},ft.forwardRef=function(b){return{$$typeof:y,render:b}},ft.isValidElement=St,ft.lazy=function(b){return{$$typeof:g,_payload:{_status:-1,_result:b},_init:z}},ft.memo=function(b,O){return{$$typeof:p,type:b,compare:O===void 0?null:O}},ft.startTransition=function(b){var O=P.transition;P.transition={};try{b()}finally{P.transition=O}},ft.unstable_act=T,ft.useCallback=function(b,O){return j.current.useCallback(b,O)},ft.useContext=function(b){return j.current.useContext(b)},ft.useDebugValue=function(){},ft.useDeferredValue=function(b){return j.current.useDeferredValue(b)},ft.useEffect=function(b,O){return j.current.useEffect(b,O)},ft.useId=function(){return j.current.useId()},ft.useImperativeHandle=function(b,O,V){return j.current.useImperativeHandle(b,O,V)},ft.useInsertionEffect=function(b,O){return j.current.useInsertionEffect(b,O)},ft.useLayoutEffect=function(b,O){return j.current.useLayoutEffect(b,O)},ft.useMemo=function(b,O){return j.current.useMemo(b,O)},ft.useReducer=function(b,O,V){return j.current.useReducer(b,O,V)},ft.useRef=function(b){return j.current.useRef(b)},ft.useState=function(b){return j.current.useState(b)},ft.useSyncExternalStore=function(b,O,V){return j.current.useSyncExternalStore(b,O,V)},ft.useTransition=function(){return j.current.useTransition()},ft.version="18.3.1",ft}var mf;function pf(){return mf||(mf=1,pr.exports=yg()),pr.exports}var $=pf();/**
|
|
74
|
+
* @license lucide-react v0.544.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const gg=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vg=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,u)=>u?u.toUpperCase():r.toLowerCase()),yf=a=>{const l=vg(a);return l.charAt(0).toUpperCase()+l.slice(1)},gf=(...a)=>a.filter((l,r,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===r).join(" ").trim(),bg=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
|
|
79
|
+
* @license lucide-react v0.544.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/var Sg={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"};/**
|
|
84
|
+
* @license lucide-react v0.544.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const xg=$.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:h,iconNode:f,...y},m)=>$.createElement("svg",{ref:m,...Sg,width:l,height:l,stroke:a,strokeWidth:u?Number(r)*24/Number(l):r,className:gf("lucide",c),...!h&&!bg(y)&&{"aria-hidden":"true"},...y},[...f.map(([p,g])=>$.createElement(p,g)),...Array.isArray(h)?h:[h]]));/**
|
|
89
|
+
* @license lucide-react v0.544.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const yr=(a,l)=>{const r=$.forwardRef(({className:u,...c},h)=>$.createElement(xg,{ref:h,iconNode:l,className:gf(`lucide-${gg(yf(a))}`,`lucide-${a}`,u),...c}));return r.displayName=yf(a),r};/**
|
|
94
|
+
* @license lucide-react v0.544.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const Tg=yr("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
99
|
+
* @license lucide-react v0.544.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const Ag=yr("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
104
|
+
* @license lucide-react v0.544.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Eg=yr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var gr={exports:{}},yi={};/**
|
|
109
|
+
* @license React
|
|
110
|
+
* react-jsx-runtime.production.min.js
|
|
111
|
+
*
|
|
112
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the MIT license found in the
|
|
115
|
+
* LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/var vf;function Mg(){if(vf)return yi;vf=1;var a=pf(),l=Symbol.for("react.element"),r=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(y,m,p){var g,x={},A=null,w=null;p!==void 0&&(A=""+p),m.key!==void 0&&(A=""+m.key),m.ref!==void 0&&(w=m.ref);for(g in m)u.call(m,g)&&!h.hasOwnProperty(g)&&(x[g]=m[g]);if(y&&y.defaultProps)for(g in m=y.defaultProps,m)x[g]===void 0&&(x[g]=m[g]);return{$$typeof:l,type:y,key:A,ref:w,props:x,_owner:c.current}}return yi.Fragment=r,yi.jsx=f,yi.jsxs=f,yi}var bf;function Rg(){return bf||(bf=1,gr.exports=Mg()),gr.exports}var Ie=Rg();const vr=$.createContext({});function br(a){const l=$.useRef(null);return l.current===null&&(l.current=a()),l.current}const Sr=typeof window<"u",Sf=Sr?$.useLayoutEffect:$.useEffect,Vl=$.createContext(null);function xr(a,l){a.indexOf(l)===-1&&a.push(l)}function Tr(a,l){const r=a.indexOf(l);r>-1&&a.splice(r,1)}const tn=(a,l,r)=>r>l?l:r<a?a:r;let Ar=()=>{};const en={},xf=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Tf(a){return typeof a=="object"&&a!==null}const Af=a=>/^0[^.\s]+$/u.test(a);function Er(a){let l;return()=>(l===void 0&&(l=a()),l)}const De=a=>a,Dg=(a,l)=>r=>l(a(r)),gi=(...a)=>a.reduce(Dg),vi=(a,l,r)=>{const u=l-a;return u===0?1:(r-a)/u};class Mr{constructor(){this.subscriptions=[]}add(l){return xr(this.subscriptions,l),()=>Tr(this.subscriptions,l)}notify(l,r,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,r,u);else for(let h=0;h<c;h++){const f=this.subscriptions[h];f&&f(l,r,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Xe=a=>a*1e3,ke=a=>a/1e3;function Ef(a,l){return l?a*(1e3/l):0}const Mf=(a,l,r)=>(((1-3*r+3*l)*a+(3*r-6*l))*a+3*l)*a,Cg=1e-7,Og=12;function _g(a,l,r,u,c){let h,f,y=0;do f=l+(r-l)/2,h=Mf(f,u,c)-a,h>0?r=f:l=f;while(Math.abs(h)>Cg&&++y<Og);return f}function bi(a,l,r,u){if(a===l&&r===u)return De;const c=h=>_g(h,0,1,a,r);return h=>h===0||h===1?h:Mf(c(h),l,u)}const Rf=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Df=a=>l=>1-a(1-l),Cf=bi(.33,1.53,.69,.99),Rr=Df(Cf),Of=Rf(Rr),_f=a=>(a*=2)<1?.5*Rr(a):.5*(2-Math.pow(2,-10*(a-1))),Dr=a=>1-Math.sin(Math.acos(a)),Vf=Df(Dr),wf=Rf(Dr),Vg=bi(.42,0,1,1),wg=bi(0,0,.58,1),zf=bi(.42,0,.58,1),zg=a=>Array.isArray(a)&&typeof a[0]!="number",Bf=a=>Array.isArray(a)&&typeof a[0]=="number",Bg={linear:De,easeIn:Vg,easeInOut:zf,easeOut:wg,circIn:Dr,circInOut:wf,circOut:Vf,backIn:Rr,backInOut:Of,backOut:Cf,anticipate:_f},Ug=a=>typeof a=="string",Uf=a=>{if(Bf(a)){Ar(a.length===4);const[l,r,u,c]=a;return bi(l,r,u,c)}else if(Ug(a))return Bg[a];return a},wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jg(a,l){let r=new Set,u=new Set,c=!1,h=!1;const f=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function m(g){f.has(g)&&(p.schedule(g),a()),g(y)}const p={schedule:(g,x=!1,A=!1)=>{const L=A&&c?r:u;return x&&f.add(g),L.has(g)||L.add(g),g},cancel:g=>{u.delete(g),f.delete(g)},process:g=>{if(y=g,c){h=!0;return}c=!0,[r,u]=[u,r],r.forEach(m),r.clear(),c=!1,h&&(h=!1,p.process(g))}};return p}const Ng=40;function jf(a,l){let r=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,f=wl.reduce((G,I)=>(G[I]=jg(h),G),{}),{setup:y,read:m,resolveKeyframes:p,preUpdate:g,update:x,preRender:A,render:w,postRender:L}=f,K=()=>{const G=en.useManualTiming?c.timestamp:performance.now();r=!1,en.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,Ng),1)),c.timestamp=G,c.isProcessing=!0,y.process(c),m.process(c),p.process(c),g.process(c),x.process(c),A.process(c),w.process(c),L.process(c),c.isProcessing=!1,r&&l&&(u=!1,a(K))},Z=()=>{r=!0,u=!0,c.isProcessing||a(K)};return{schedule:wl.reduce((G,I)=>{const Y=f[I];return G[I]=(F,et=!1,W=!1)=>(r||Z(),Y.schedule(F,et,W)),G},{}),cancel:G=>{for(let I=0;I<wl.length;I++)f[wl[I]].cancel(G)},state:c,steps:f}}const{schedule:Bt,cancel:vn,state:te,steps:Cr}=jf(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0);let zl;function Lg(){zl=void 0}const de={now:()=>(zl===void 0&&de.set(te.isProcessing||en.useManualTiming?te.timestamp:performance.now()),zl),set:a=>{zl=a,queueMicrotask(Lg)}},Nf=a=>l=>typeof l=="string"&&l.startsWith(a),Or=Nf("--"),Hg=Nf("var(--"),_r=a=>Hg(a)?Yg.test(a.split("/*")[0].trim()):!1,Yg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,va={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Si={...va,transform:a=>tn(0,1,a)},Bl={...va,default:1},xi=a=>Math.round(a*1e5)/1e5,Vr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qg(a){return a==null}const Gg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wr=(a,l)=>r=>!!(typeof r=="string"&&Gg.test(r)&&r.startsWith(a)||l&&!qg(r)&&Object.prototype.hasOwnProperty.call(r,l)),Lf=(a,l,r)=>u=>{if(typeof u!="string")return u;const[c,h,f,y]=u.match(Vr);return{[a]:parseFloat(c),[l]:parseFloat(h),[r]:parseFloat(f),alpha:y!==void 0?parseFloat(y):1}},Xg=a=>tn(0,255,a),zr={...va,transform:a=>Math.round(Xg(a))},Qn={test:wr("rgb","red"),parse:Lf("red","green","blue"),transform:({red:a,green:l,blue:r,alpha:u=1})=>"rgba("+zr.transform(a)+", "+zr.transform(l)+", "+zr.transform(r)+", "+xi(Si.transform(u))+")"};function kg(a){let l="",r="",u="",c="";return a.length>5?(l=a.substring(1,3),r=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),r=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),l+=l,r+=r,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Br={test:wr("#"),parse:kg,transform:Qn.transform},Ti=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),bn=Ti("deg"),Ke=Ti("%"),st=Ti("px"),Kg=Ti("vh"),Qg=Ti("vw"),Hf={...Ke,parse:a=>Ke.parse(a)/100,transform:a=>Ke.transform(a*100)},ba={test:wr("hsl","hue"),parse:Lf("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:r,alpha:u=1})=>"hsla("+Math.round(a)+", "+Ke.transform(xi(l))+", "+Ke.transform(xi(r))+", "+xi(Si.transform(u))+")"},kt={test:a=>Qn.test(a)||Br.test(a)||ba.test(a),parse:a=>Qn.test(a)?Qn.parse(a):ba.test(a)?ba.parse(a):Br.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Qn.transform(a):ba.transform(a),getAnimatableNone:a=>{const l=kt.parse(a);return l.alpha=0,kt.transform(l)}},Zg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pg(a){return isNaN(a)&&typeof a=="string"&&(a.match(Vr)?.length||0)+(a.match(Zg)?.length||0)>0}const Yf="number",qf="color",Jg="var",Fg="var(",Gf="${}",Wg=/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 Ai(a){const l=a.toString(),r=[],u={color:[],number:[],var:[]},c=[];let h=0;const y=l.replace(Wg,m=>(kt.test(m)?(u.color.push(h),c.push(qf),r.push(kt.parse(m))):m.startsWith(Fg)?(u.var.push(h),c.push(Jg),r.push(m)):(u.number.push(h),c.push(Yf),r.push(parseFloat(m))),++h,Gf)).split(Gf);return{values:r,split:y,indexes:u,types:c}}function Xf(a){return Ai(a).values}function kf(a){const{split:l,types:r}=Ai(a),u=l.length;return c=>{let h="";for(let f=0;f<u;f++)if(h+=l[f],c[f]!==void 0){const y=r[f];y===Yf?h+=xi(c[f]):y===qf?h+=kt.transform(c[f]):h+=c[f]}return h}}const $g=a=>typeof a=="number"?0:kt.test(a)?kt.getAnimatableNone(a):a;function Ig(a){const l=Xf(a);return kf(a)(l.map($g))}const Sn={test:Pg,parse:Xf,createTransformer:kf,getAnimatableNone:Ig};function Ur(a,l,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?a+(l-a)*6*r:r<1/2?l:r<2/3?a+(l-a)*(2/3-r)*6:a}function tv({hue:a,saturation:l,lightness:r,alpha:u}){a/=360,l/=100,r/=100;let c=0,h=0,f=0;if(!l)c=h=f=r;else{const y=r<.5?r*(1+l):r+l-r*l,m=2*r-y;c=Ur(m,y,a+1/3),h=Ur(m,y,a),f=Ur(m,y,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:u}}function Ul(a,l){return r=>r>0?l:a}const jt=(a,l,r)=>a+(l-a)*r,jr=(a,l,r)=>{const u=a*a,c=r*(l*l-u)+u;return c<0?0:Math.sqrt(c)},ev=[Br,Qn,ba],nv=a=>ev.find(l=>l.test(a));function Kf(a){const l=nv(a);if(!l)return!1;let r=l.parse(a);return l===ba&&(r=tv(r)),r}const Qf=(a,l)=>{const r=Kf(a),u=Kf(l);if(!r||!u)return Ul(a,l);const c={...r};return h=>(c.red=jr(r.red,u.red,h),c.green=jr(r.green,u.green,h),c.blue=jr(r.blue,u.blue,h),c.alpha=jt(r.alpha,u.alpha,h),Qn.transform(c))},Nr=new Set(["none","hidden"]);function av(a,l){return Nr.has(a)?r=>r<=0?a:l:r=>r>=1?l:a}function iv(a,l){return r=>jt(a,l,r)}function Lr(a){return typeof a=="number"?iv:typeof a=="string"?_r(a)?Ul:kt.test(a)?Qf:rv:Array.isArray(a)?Zf:typeof a=="object"?kt.test(a)?Qf:lv:Ul}function Zf(a,l){const r=[...a],u=r.length,c=a.map((h,f)=>Lr(h)(h,l[f]));return h=>{for(let f=0;f<u;f++)r[f]=c[f](h);return r}}function lv(a,l){const r={...a,...l},u={};for(const c in r)a[c]!==void 0&&l[c]!==void 0&&(u[c]=Lr(a[c])(a[c],l[c]));return c=>{for(const h in u)r[h]=u[h](c);return r}}function sv(a,l){const r=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],f=a.indexes[h][u[h]],y=a.values[f]??0;r[c]=y,u[h]++}return r}const rv=(a,l)=>{const r=Sn.createTransformer(l),u=Ai(a),c=Ai(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Nr.has(a)&&!c.values.length||Nr.has(l)&&!u.values.length?av(a,l):gi(Zf(sv(u,c),c.values),r):Ul(a,l)};function Pf(a,l,r){return typeof a=="number"&&typeof l=="number"&&typeof r=="number"?jt(a,l,r):Lr(a)(a,l)}const uv=a=>{const l=({timestamp:r})=>a(r);return{start:(r=!0)=>Bt.update(l,r),stop:()=>vn(l),now:()=>te.isProcessing?te.timestamp:de.now()}},Jf=(a,l,r=10)=>{let u="";const c=Math.max(Math.round(l/r),2);for(let h=0;h<c;h++)u+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},jl=2e4;function Hr(a){let l=0;const r=50;let u=a.next(l);for(;!u.done&&l<jl;)l+=r,u=a.next(l);return l>=jl?1/0:l}function ov(a,l=100,r){const u=r({...a,keyframes:[0,l]}),c=Math.min(Hr(u),jl);return{type:"keyframes",ease:h=>u.next(c*h).value/l,duration:ke(c)}}const cv=5;function Ff(a,l,r){const u=Math.max(l-cv,0);return Ef(r-a(u),l-u)}const Lt={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},Yr=.001;function fv({duration:a=Lt.duration,bounce:l=Lt.bounce,velocity:r=Lt.velocity,mass:u=Lt.mass}){let c,h,f=1-l;f=tn(Lt.minDamping,Lt.maxDamping,f),a=tn(Lt.minDuration,Lt.maxDuration,ke(a)),f<1?(c=p=>{const g=p*f,x=g*a,A=g-r,w=qr(p,f),L=Math.exp(-x);return Yr-A/w*L},h=p=>{const x=p*f*a,A=x*r+r,w=Math.pow(f,2)*Math.pow(p,2)*a,L=Math.exp(-x),K=qr(Math.pow(p,2),f);return(-c(p)+Yr>0?-1:1)*((A-w)*L)/K}):(c=p=>{const g=Math.exp(-p*a),x=(p-r)*a+1;return-Yr+g*x},h=p=>{const g=Math.exp(-p*a),x=(r-p)*(a*a);return g*x});const y=5/a,m=hv(c,h,y);if(a=Xe(a),isNaN(m))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const p=Math.pow(m,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const dv=12;function hv(a,l,r){let u=r;for(let c=1;c<dv;c++)u=u-a(u)/l(u);return u}function qr(a,l){return a*Math.sqrt(1-l*l)}const mv=["duration","bounce"],pv=["stiffness","damping","mass"];function Wf(a,l){return l.some(r=>a[r]!==void 0)}function yv(a){let l={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!Wf(a,pv)&&Wf(a,mv))if(a.visualDuration){const r=a.visualDuration,u=2*Math.PI/(r*1.2),c=u*u,h=2*tn(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Lt.mass,stiffness:c,damping:h}}else{const r=fv(a);l={...l,...r,mass:Lt.mass},l.isResolvedFromDuration=!0}return l}function Nl(a=Lt.visualDuration,l=Lt.bounce){const r=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:u,restDelta:c}=r;const h=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],y={done:!1,value:h},{stiffness:m,damping:p,mass:g,duration:x,velocity:A,isResolvedFromDuration:w}=yv({...r,velocity:-ke(r.velocity||0)}),L=A||0,K=p/(2*Math.sqrt(m*g)),Z=f-h,Q=ke(Math.sqrt(m/g)),q=Math.abs(Z)<5;u||(u=q?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=q?Lt.restDelta.granular:Lt.restDelta.default);let G;if(K<1){const Y=qr(Q,K);G=F=>{const et=Math.exp(-K*Q*F);return f-et*((L+K*Q*Z)/Y*Math.sin(Y*F)+Z*Math.cos(Y*F))}}else if(K===1)G=Y=>f-Math.exp(-Q*Y)*(Z+(L+Q*Z)*Y);else{const Y=Q*Math.sqrt(K*K-1);G=F=>{const et=Math.exp(-K*Q*F),W=Math.min(Y*F,300);return f-et*((L+K*Q*Z)*Math.sinh(W)+Y*Z*Math.cosh(W))/Y}}const I={calculatedDuration:w&&x||null,next:Y=>{const F=G(Y);if(w)y.done=Y>=x;else{let et=Y===0?L:0;K<1&&(et=Y===0?Xe(L):Ff(G,Y,F));const W=Math.abs(et)<=u,gt=Math.abs(f-F)<=c;y.done=W&>}return y.value=y.done?f:F,y},toString:()=>{const Y=Math.min(Hr(I),jl),F=Jf(et=>I.next(Y*et).value,Y,30);return Y+"ms "+F},toTransition:()=>{}};return I}Nl.applyToOptions=a=>{const l=ov(a,100,Nl);return a.ease=l.ease,a.duration=Xe(l.duration),a.type="keyframes",a};function Gr({keyframes:a,velocity:l=0,power:r=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:y,max:m,restDelta:p=.5,restSpeed:g}){const x=a[0],A={done:!1,value:x},w=W=>y!==void 0&&W<y||m!==void 0&&W>m,L=W=>y===void 0?m:m===void 0||Math.abs(y-W)<Math.abs(m-W)?y:m;let K=r*l;const Z=x+K,Q=f===void 0?Z:f(Z);Q!==Z&&(K=Q-x);const q=W=>-K*Math.exp(-W/u),G=W=>Q+q(W),I=W=>{const gt=q(W),St=G(W);A.done=Math.abs(gt)<=p,A.value=A.done?Q:St};let Y,F;const et=W=>{w(A.value)&&(Y=W,F=Nl({keyframes:[A.value,L(A.value)],velocity:Ff(G,W,A.value),damping:c,stiffness:h,restDelta:p,restSpeed:g}))};return et(0),{calculatedDuration:null,next:W=>{let gt=!1;return!F&&Y===void 0&&(gt=!0,I(W),et(W)),Y!==void 0&&W>=Y?F.next(W-Y):(!gt&&I(W),A)}}}function gv(a,l,r){const u=[],c=r||en.mix||Pf,h=a.length-1;for(let f=0;f<h;f++){let y=c(a[f],a[f+1]);if(l){const m=Array.isArray(l)?l[f]||De:l;y=gi(m,y)}u.push(y)}return u}function vv(a,l,{clamp:r=!0,ease:u,mixer:c}={}){const h=a.length;if(Ar(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const f=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),l=[...l].reverse());const y=gv(l,u,c),m=y.length,p=g=>{if(f&&g<a[0])return l[0];let x=0;if(m>1)for(;x<a.length-2&&!(g<a[x+1]);x++);const A=vi(a[x],a[x+1],g);return y[x](A)};return r?g=>p(tn(a[0],a[h-1],g)):p}function bv(a,l){const r=a[a.length-1];for(let u=1;u<=l;u++){const c=vi(0,l,u);a.push(jt(r,1,c))}}function Sv(a){const l=[0];return bv(l,a.length-1),l}function xv(a,l){return a.map(r=>r*l)}function Tv(a,l){return a.map(()=>l||zf).splice(0,a.length-1)}function Ei({duration:a=300,keyframes:l,times:r,ease:u="easeInOut"}){const c=zg(u)?u.map(Uf):Uf(u),h={done:!1,value:l[0]},f=xv(r&&r.length===l.length?r:Sv(l),a),y=vv(f,l,{ease:Array.isArray(c)?c:Tv(l,c)});return{calculatedDuration:a,next:m=>(h.value=y(m),h.done=m>=a,h)}}const Av=a=>a!==null;function Xr(a,{repeat:l,repeatType:r="loop"},u,c=1){const h=a.filter(Av),y=c<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!y||u===void 0?h[y]:u}const Ev={decay:Gr,inertia:Gr,tween:Ei,keyframes:Ei,spring:Nl};function $f(a){typeof a.type=="string"&&(a.type=Ev[a.type])}class kr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}}const Mv=a=>a/100;class Kr extends kr{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;$f(l);const{type:r=Ei,repeat:u=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=l;let{keyframes:y}=l;const m=r||Ei;m!==Ei&&typeof y[0]!="number"&&(this.mixKeyframes=gi(Mv,Pf(y[0],y[1])),y=[0,100]);const p=m({...l,keyframes:y});h==="mirror"&&(this.mirroredGenerator=m({...l,keyframes:[...y].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Hr(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=p}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(l,r=!1){const{generator:u,totalDuration:c,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:y,calculatedDuration:m}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:g,repeat:x,repeatType:A,repeatDelay:w,type:L,onUpdate:K,finalKeyframe:Z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),r?this.currentTime=l:this.updateTime(l);const Q=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?Q<0:Q>c;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,I=u;if(x){const W=Math.min(this.currentTime,c)/y;let gt=Math.floor(W),St=W%1;!St&&W>=1&&(St=1),St===1&>--,gt=Math.min(gt,x+1),!!(gt%2)&&(A==="reverse"?(St=1-St,w&&(St-=w/y)):A==="mirror"&&(I=f)),G=tn(0,1,St)*y}const Y=q?{done:!1,value:g[0]}:I.next(G);h&&(Y.value=h(Y.value));let{done:F}=Y;!q&&m!==null&&(F=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const et=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return et&&L!==Gr&&(Y.value=Xr(g,this.options,Z,this.speed)),K&&K(Y.value),et&&this.finish(),Y}then(l,r){return this.finished.then(l,r)}get duration(){return ke(this.calculatedDuration)}get time(){return ke(this.currentTime)}set time(l){l=Xe(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(de.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l,r&&(this.time=ke(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=uv,startTime:r}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=r??u),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(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function Rv(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const Zn=a=>a*180/Math.PI,Qr=a=>{const l=Zn(Math.atan2(a[1],a[0]));return Zr(l)},Dv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Qr,rotateZ:Qr,skewX:a=>Zn(Math.atan(a[1])),skewY:a=>Zn(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Zr=a=>(a=a%360,a<0&&(a+=360),a),If=Qr,td=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ed=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Cv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:td,scaleY:ed,scale:a=>(td(a)+ed(a))/2,rotateX:a=>Zr(Zn(Math.atan2(a[6],a[5]))),rotateY:a=>Zr(Zn(Math.atan2(-a[2],a[0]))),rotateZ:If,rotate:If,skewX:a=>Zn(Math.atan(a[4])),skewY:a=>Zn(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Pr(a){return a.includes("scale")?1:0}function Jr(a,l){if(!a||a==="none")return Pr(l);const r=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(r)u=Cv,c=r;else{const y=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Dv,c=y}if(!c)return Pr(l);const h=u[l],f=c[1].split(",").map(_v);return typeof h=="function"?h(f):f[h]}const Ov=(a,l)=>{const{transform:r="none"}=getComputedStyle(a);return Jr(r,l)};function _v(a){return parseFloat(a.trim())}const Sa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xa=new Set(Sa),nd=a=>a===va||a===st,Vv=new Set(["x","y","z"]),wv=Sa.filter(a=>!Vv.has(a));function zv(a){const l=[];return wv.forEach(r=>{const u=a.getValue(r);u!==void 0&&(l.push([r,u.get()]),u.set(r.startsWith("scale")?1:0))}),l}const Pn={width:({x:a},{paddingLeft:l="0",paddingRight:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),height:({y:a},{paddingTop:l="0",paddingBottom:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>Jr(l,"x"),y:(a,{transform:l})=>Jr(l,"y")};Pn.translateX=Pn.x,Pn.translateY=Pn.y;const Jn=new Set;let Fr=!1,Wr=!1,$r=!1;function ad(){if(Wr){const a=Array.from(Jn).filter(u=>u.needsMeasurement),l=new Set(a.map(u=>u.element)),r=new Map;l.forEach(u=>{const c=zv(u);c.length&&(r.set(u,c),u.render())}),a.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=r.get(u);c&&c.forEach(([h,f])=>{u.getValue(h)?.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}Wr=!1,Fr=!1,Jn.forEach(a=>a.complete($r)),Jn.clear()}function id(){Jn.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Wr=!0)})}function Bv(){$r=!0,id(),ad(),$r=!1}class Ir{constructor(l,r,u,c,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=u,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Jn.add(this),Fr||(Fr=!0,Bt.read(id),Bt.resolveKeyframes(ad))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:u,motionValue:c}=this;if(l[0]===null){const h=c?.get(),f=l[l.length-1];if(h!==void 0)l[0]=h;else if(u&&r){const y=u.readValue(r,f);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=f),c&&h===void 0&&c.set(l[0])}Rv(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Jn.delete(this)}cancel(){this.state==="scheduled"&&(Jn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uv=a=>a.startsWith("--");function jv(a,l,r){Uv(l)?a.style.setProperty(l,r):a.style[l]=r}const Nv=Er(()=>window.ScrollTimeline!==void 0),Lv={};function Hv(a,l){const r=Er(a);return()=>Lv[l]??r()}const ld=Hv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mi=([a,l,r,u])=>`cubic-bezier(${a}, ${l}, ${r}, ${u})`,sd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mi([0,.65,.55,1]),circOut:Mi([.55,0,1,.45]),backIn:Mi([.31,.01,.66,-.59]),backOut:Mi([.33,1.53,.69,.99])};function rd(a,l){if(a)return typeof a=="function"?ld()?Jf(a,l):"ease-out":Bf(a)?Mi(a):Array.isArray(a)?a.map(r=>rd(r,l)||sd.easeOut):sd[a]}function Yv(a,l,r,{delay:u=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:y="easeOut",times:m}={},p=void 0){const g={[l]:r};m&&(g.offset=m);const x=rd(y,c);Array.isArray(x)&&(g.easing=x);const A={delay:u,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return p&&(A.pseudoElement=p),a.animate(g,A)}function ud(a){return typeof a=="function"&&"applyToOptions"in a}function qv({type:a,...l}){return ud(a)&&ld()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Gv extends kr{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,!l)return;const{element:r,name:u,keyframes:c,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:y,onComplete:m}=l;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=l,Ar(typeof l.type!="string");const p=qv(l);this.animation=Yv(r,u,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const g=Xr(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(g):jv(r,u,g),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return ke(Number(l))}get time(){return ke(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null,this.animation.currentTime=Xe(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(l){this.animation.startTime=l}attachTimeline({timeline:l,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&Nv()?(this.animation.timeline=l,De):r(this)}}const od={anticipate:_f,backInOut:Of,circInOut:wf};function Xv(a){return a in od}function kv(a){typeof a.ease=="string"&&Xv(a.ease)&&(a.ease=od[a.ease])}const cd=10;class Kv extends Gv{constructor(l){kv(l),$f(l),super(l),l.startTime&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:u,onComplete:c,element:h,...f}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const y=new Kr({...f,autoplay:!1}),m=Xe(this.finishedTime??this.time);r.setWithVelocity(y.sample(m-cd).value,y.sample(m).value,cd),y.stop()}}const fd=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Sn.test(a)||a==="0")&&!a.startsWith("url("));function Qv(a){const l=a[0];if(a.length===1)return!0;for(let r=0;r<a.length;r++)if(a[r]!==l)return!0}function Zv(a,l,r,u){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],f=fd(c,l),y=fd(h,l);return!f||!y?!1:Qv(a)||(r==="spring"||ud(r))&&u}function tu(a){a.duration=0,a.type}const Pv=new Set(["opacity","clipPath","filter","transform"]),Jv=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Fv(a){const{motionValue:l,name:r,repeatDelay:u,repeatType:c,damping:h,type:f}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=l.owner.getProps();return Jv()&&r&&Pv.has(r)&&(r!=="transform"||!p)&&!m&&!u&&c!=="mirror"&&h!==0&&f!=="inertia"}const Wv=40;class $v extends kr{constructor({autoplay:l=!0,delay:r=0,type:u="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",keyframes:y,name:m,motionValue:p,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const A={autoplay:l,delay:r,type:u,repeat:c,repeatDelay:h,repeatType:f,name:m,motionValue:p,element:g,...x},w=g?.KeyframeResolver||Ir;this.keyframeResolver=new w(y,(L,K,Z)=>this.onKeyframesResolved(L,K,A,!Z),m,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,u,c){this.keyframeResolver=void 0;const{name:h,type:f,velocity:y,delay:m,isHandoff:p,onUpdate:g}=u;this.resolvedAt=de.now(),Zv(l,h,f,y)||((en.instantAnimations||!m)&&g?.(Xr(l,u,r)),l[0]=l[l.length-1],tu(u),u.repeat=0);const A={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Wv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...u,keyframes:l},w=!p&&Fv(A)?new Kv({...A,element:A.motionValue.owner.current}):new Kr(A);w.finished.then(()=>this.notifyFinished()).catch(De),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bv()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Iv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t1(a){const l=Iv.exec(a);if(!l)return[,];const[,r,u,c]=l;return[`--${r??u}`,c]}function dd(a,l,r=1){const[u,c]=t1(a);if(!u)return;const h=window.getComputedStyle(l).getPropertyValue(u);if(h){const f=h.trim();return xf(f)?parseFloat(f):f}return _r(c)?dd(c,l,r+1):c}function eu(a,l){return a?.[l]??a?.default??a}const hd=new Set(["width","height","top","left","right","bottom",...Sa]),e1={test:a=>a==="auto",parse:a=>a},md=a=>l=>l.test(a),pd=[va,st,Ke,bn,Qg,Kg,e1],yd=a=>pd.find(md(a));function n1(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Af(a):!0}const a1=new Set(["brightness","contrast","saturate","opacity"]);function i1(a){const[l,r]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[u]=r.match(Vr)||[];if(!u)return a;const c=r.replace(u,"");let h=a1.has(l)?1:0;return u!==r&&(h*=100),l+"("+h+c+")"}const l1=/\b([a-z-]*)\(.*?\)/gu,nu={...Sn,getAnimatableNone:a=>{const l=a.match(l1);return l?l.map(i1).join(" "):a}},gd={...va,transform:Math.round},au={borderWidth:st,borderTopWidth:st,borderRightWidth:st,borderBottomWidth:st,borderLeftWidth:st,borderRadius:st,radius:st,borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomRightRadius:st,borderBottomLeftRadius:st,width:st,maxWidth:st,height:st,maxHeight:st,top:st,right:st,bottom:st,left:st,padding:st,paddingTop:st,paddingRight:st,paddingBottom:st,paddingLeft:st,margin:st,marginTop:st,marginRight:st,marginBottom:st,marginLeft:st,backgroundPositionX:st,backgroundPositionY:st,...{rotate:bn,rotateX:bn,rotateY:bn,rotateZ:bn,scale:Bl,scaleX:Bl,scaleY:Bl,scaleZ:Bl,skew:bn,skewX:bn,skewY:bn,distance:st,translateX:st,translateY:st,translateZ:st,x:st,y:st,z:st,perspective:st,transformPerspective:st,opacity:Si,originX:Hf,originY:Hf,originZ:st},zIndex:gd,fillOpacity:Si,strokeOpacity:Si,numOctaves:gd},s1={...au,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:nu,WebkitFilter:nu},vd=a=>s1[a];function bd(a,l){let r=vd(a);return r!==nu&&(r=Sn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}const r1=new Set(["auto","none","0"]);function u1(a,l,r){let u=0,c;for(;u<a.length&&!c;){const h=a[u];typeof h=="string"&&!r1.has(h)&&Ai(h).values.length&&(c=a[u]),u++}if(c&&r)for(const h of l)a[h]=bd(r,c)}class o1 extends Ir{constructor(l,r,u,c,h){super(l,r,u,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:r,name:u}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<l.length;m++){let p=l[m];if(typeof p=="string"&&(p=p.trim(),_r(p))){const g=dd(p,r.current);g!==void 0&&(l[m]=g),m===l.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!hd.has(u)||l.length!==2)return;const[c,h]=l,f=yd(c),y=yd(h);if(f!==y)if(nd(f)&&nd(y))for(let m=0;m<l.length;m++){const p=l[m];typeof p=="string"&&(l[m]=parseFloat(p))}else Pn[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:r}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||n1(l[c]))&&u.push(c);u.length&&u1(l,u,r)}measureInitialState(){const{element:l,unresolvedKeyframes:r,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:r,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(r);c&&c.jump(this.measuredOrigin,!1);const h=u.length-1,f=u[h];u[h]=Pn[r](l.measureViewportBox(),window.getComputedStyle(l.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,m])=>{l.getValue(y).set(m)}),this.resolveNoneKeyframes()}}function c1(a,l,r){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let u=document;const c=r?.[a]??u.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const Sd=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function xd(a){return Tf(a)&&"offsetHeight"in a}const Td=30,f1=a=>!isNaN(parseFloat(a));class d1{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=de.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=r.owner}setCurrent(l){this.current=l,this.updatedAt=de.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=f1(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){this.events[l]||(this.events[l]=new Mr);const u=this.events[l].add(r);return l==="change"?()=>{u(),Bt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,r){this.passiveEffect=l,this.stopPassiveEffect=r}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,r,u){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}jump(l,r=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Td)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Td);return Ef(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=l(r),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ta(a,l){return new d1(a,l)}const{schedule:iu}=jf(queueMicrotask,!1),He={x:!1,y:!1};function Ad(){return He.x||He.y}function h1(a){return a==="x"||a==="y"?He[a]?null:(He[a]=!0,()=>{He[a]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}function Ed(a,l){const r=c1(a),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[r,c,()=>u.abort()]}function Md(a){return!(a.pointerType==="touch"||Ad())}function m1(a,l,r={}){const[u,c,h]=Ed(a,r),f=y=>{if(!Md(y))return;const{target:m}=y,p=l(m,y);if(typeof p!="function"||!m)return;const g=x=>{Md(x)&&(p(x),m.removeEventListener("pointerleave",g))};m.addEventListener("pointerleave",g,c)};return u.forEach(y=>{y.addEventListener("pointerenter",f,c)}),h}const Rd=(a,l)=>l?a===l?!0:Rd(a,l.parentElement):!1,lu=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,p1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y1(a){return p1.has(a.tagName)||a.tabIndex!==-1}const Ll=new WeakSet;function Dd(a){return l=>{l.key==="Enter"&&a(l)}}function su(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const g1=(a,l)=>{const r=a.currentTarget;if(!r)return;const u=Dd(()=>{if(Ll.has(r))return;su(r,"down");const c=Dd(()=>{su(r,"up")}),h=()=>su(r,"cancel");r.addEventListener("keyup",c,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",u,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",u),l)};function Cd(a){return lu(a)&&!Ad()}function v1(a,l,r={}){const[u,c,h]=Ed(a,r),f=y=>{const m=y.currentTarget;if(!Cd(y))return;Ll.add(m);const p=l(m,y),g=(w,L)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",A),Ll.has(m)&&Ll.delete(m),Cd(w)&&typeof p=="function"&&p(w,{success:L})},x=w=>{g(w,m===window||m===document||r.useGlobalTarget||Rd(m,w.target))},A=w=>{g(w,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",A,c)};return u.forEach(y=>{(r.useGlobalTarget?window:y).addEventListener("pointerdown",f,c),xd(y)&&(y.addEventListener("focus",p=>g1(p,c)),!y1(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),h}function Od(a){return Tf(a)&&"ownerSVGElement"in a}function b1(a){return Od(a)&&a.tagName==="svg"}const re=a=>!!(a&&a.getVelocity),S1=[...pd,kt,Sn],x1=a=>S1.find(md(a)),ru=$.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});class T1 extends $.Component{getSnapshotBeforeUpdate(l){const r=this.props.childRef.current;if(r&&l.isPresent&&!this.props.isPresent){const u=r.offsetParent,c=xd(u)&&u.offsetWidth||0,h=this.props.sizeRef.current;h.height=r.offsetHeight||0,h.width=r.offsetWidth||0,h.top=r.offsetTop,h.left=r.offsetLeft,h.right=c-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function A1({children:a,isPresent:l,anchorX:r,root:u}){const c=$.useId(),h=$.useRef(null),f=$.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:y}=$.useContext(ru);return $.useInsertionEffect(()=>{const{width:m,height:p,top:g,left:x,right:A}=f.current;if(l||!h.current||!m||!p)return;const w=r==="left"?`left: ${x}`:`right: ${A}`;h.current.dataset.motionPopId=c;const L=document.createElement("style");y&&(L.nonce=y);const K=u??document.head;return K.appendChild(L),L.sheet&&L.sheet.insertRule(`
|
|
117
|
+
[data-motion-pop-id="${c}"] {
|
|
118
|
+
position: absolute !important;
|
|
119
|
+
width: ${m}px !important;
|
|
120
|
+
height: ${p}px !important;
|
|
121
|
+
${w}px !important;
|
|
122
|
+
top: ${g}px !important;
|
|
123
|
+
}
|
|
124
|
+
`),()=>{K.contains(L)&&K.removeChild(L)}},[l]),Ie.jsx(T1,{isPresent:l,childRef:h,sizeRef:f,children:$.cloneElement(a,{ref:h})})}const E1=({children:a,initial:l,isPresent:r,onExitComplete:u,custom:c,presenceAffectsLayout:h,mode:f,anchorX:y,root:m})=>{const p=br(M1),g=$.useId();let x=!0,A=$.useMemo(()=>(x=!1,{id:g,initial:l,isPresent:r,custom:c,onExitComplete:w=>{p.set(w,!0);for(const L of p.values())if(!L)return;u&&u()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[r,p,u]);return h&&x&&(A={...A}),$.useMemo(()=>{p.forEach((w,L)=>p.set(L,!1))},[r]),$.useEffect(()=>{!r&&!p.size&&u&&u()},[r]),f==="popLayout"&&(a=Ie.jsx(A1,{isPresent:r,anchorX:y,root:m,children:a})),Ie.jsx(Vl.Provider,{value:A,children:a})};function M1(){return new Map}function _d(a=!0){const l=$.useContext(Vl);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:u,register:c}=l,h=$.useId();$.useEffect(()=>{if(a)return c(h)},[a]);const f=$.useCallback(()=>a&&u&&u(h),[h,u,a]);return!r&&u?[!1,f]:[!0]}const Hl=a=>a.key||"";function Vd(a){const l=[];return $.Children.forEach(a,r=>{$.isValidElement(r)&&l.push(r)}),l}const R1=({children:a,custom:l,initial:r=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:y="left",root:m})=>{const[p,g]=_d(f),x=$.useMemo(()=>Vd(a),[a]),A=f&&!p?[]:x.map(Hl),w=$.useRef(!0),L=$.useRef(x),K=br(()=>new Map),[Z,Q]=$.useState(x),[q,G]=$.useState(x);Sf(()=>{w.current=!1,L.current=x;for(let F=0;F<q.length;F++){const et=Hl(q[F]);A.includes(et)?K.delete(et):K.get(et)!==!0&&K.set(et,!1)}},[q,A.length,A.join("-")]);const I=[];if(x!==Z){let F=[...x];for(let et=0;et<q.length;et++){const W=q[et],gt=Hl(W);A.includes(gt)||(F.splice(et,0,W),I.push(W))}return h==="wait"&&I.length&&(F=I),G(Vd(F)),Q(x),null}const{forceRender:Y}=$.useContext(vr);return Ie.jsx(Ie.Fragment,{children:q.map(F=>{const et=Hl(F),W=f&&!p?!1:x===q||A.includes(et),gt=()=>{if(K.has(et))K.set(et,!0);else return;let St=!0;K.forEach(vt=>{vt||(St=!1)}),St&&(Y?.(),G(L.current),f&&g?.(),u&&u())};return Ie.jsx(E1,{isPresent:W,initial:!w.current||r?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:m,onExitComplete:W?void 0:gt,anchorX:y,children:F},et)})})},wd=$.createContext({strict:!1}),zd={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"]},Aa={};for(const a in zd)Aa[a]={isEnabled:l=>zd[a].some(r=>!!l[r])};function D1(a){for(const l in a)Aa[l]={...Aa[l],...a[l]}}const C1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yl(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||C1.has(a)}let Bd=a=>!Yl(a);function O1(a){typeof a=="function"&&(Bd=l=>l.startsWith("on")?!Yl(l):a(l))}try{O1(require("@emotion/is-prop-valid").default)}catch{}function _1(a,l,r){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||(Bd(c)||r===!0&&Yl(c)||!l&&!Yl(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const ql=$.createContext({});function Gl(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Ri(a){return typeof a=="string"||Array.isArray(a)}const uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ou=["initial",...uu];function Xl(a){return Gl(a.animate)||ou.some(l=>Ri(a[l]))}function Ud(a){return!!(Xl(a)||a.variants)}function V1(a,l){if(Xl(a)){const{initial:r,animate:u}=a;return{initial:r===!1||Ri(r)?r:void 0,animate:Ri(u)?u:void 0}}return a.inherit!==!1?l:{}}function w1(a){const{initial:l,animate:r}=V1(a,$.useContext(ql));return $.useMemo(()=>({initial:l,animate:r}),[jd(l),jd(r)])}function jd(a){return Array.isArray(a)?a.join(" "):a}const Di={};function z1(a){for(const l in a)Di[l]=a[l],Or(l)&&(Di[l].isCSSVariable=!0)}function Nd(a,{layout:l,layoutId:r}){return xa.has(a)||a.startsWith("origin")||(l||r!==void 0)&&(!!Di[a]||a==="opacity")}const B1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U1=Sa.length;function j1(a,l,r){let u="",c=!0;for(let h=0;h<U1;h++){const f=Sa[h],y=a[f];if(y===void 0)continue;let m=!0;if(typeof y=="number"?m=y===(f.startsWith("scale")?1:0):m=parseFloat(y)===0,!m||r){const p=Sd(y,au[f]);if(!m){c=!1;const g=B1[f]||f;u+=`${g}(${p}) `}r&&(l[f]=p)}}return u=u.trim(),r?u=r(l,c?"":u):c&&(u="none"),u}function cu(a,l,r){const{style:u,vars:c,transformOrigin:h}=a;let f=!1,y=!1;for(const m in l){const p=l[m];if(xa.has(m)){f=!0;continue}else if(Or(m)){c[m]=p;continue}else{const g=Sd(p,au[m]);m.startsWith("origin")?(y=!0,h[m]=g):u[m]=g}}if(l.transform||(f||r?u.transform=j1(l,a.transform,r):u.transform&&(u.transform="none")),y){const{originX:m="50%",originY:p="50%",originZ:g=0}=h;u.transformOrigin=`${m} ${p} ${g}`}}const fu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ld(a,l,r){for(const u in l)!re(l[u])&&!Nd(u,r)&&(a[u]=l[u])}function N1({transformTemplate:a},l){return $.useMemo(()=>{const r=fu();return cu(r,l,a),Object.assign({},r.vars,r.style)},[l])}function L1(a,l){const r=a.style||{},u={};return Ld(u,r,a),Object.assign(u,N1(a,l)),u}function H1(a,l){const r={},u=L1(a,l);return a.drag&&a.dragListener!==!1&&(r.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(r.tabIndex=0),r.style=u,r}const Y1={offset:"stroke-dashoffset",array:"stroke-dasharray"},q1={offset:"strokeDashoffset",array:"strokeDasharray"};function G1(a,l,r=1,u=0,c=!0){a.pathLength=1;const h=c?Y1:q1;a[h.offset]=st.transform(-u);const f=st.transform(l),y=st.transform(r);a[h.array]=`${f} ${y}`}function Hd(a,{attrX:l,attrY:r,attrScale:u,pathLength:c,pathSpacing:h=1,pathOffset:f=0,...y},m,p,g){if(cu(a,y,p),m){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:A}=a;x.transform&&(A.transform=x.transform,delete x.transform),(A.transform||x.transformOrigin)&&(A.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),A.transform&&(A.transformBox=g?.transformBox??"fill-box",delete x.transformBox),l!==void 0&&(x.x=l),r!==void 0&&(x.y=r),u!==void 0&&(x.scale=u),c!==void 0&&G1(x,c,h,f,!1)}const Yd=()=>({...fu(),attrs:{}}),qd=a=>typeof a=="string"&&a.toLowerCase()==="svg";function X1(a,l,r,u){const c=$.useMemo(()=>{const h=Yd();return Hd(h,l,qd(u),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};Ld(h,a.style,a),c.style={...h,...c.style}}return c}const k1=["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 du(a){return typeof a!="string"||a.includes("-")?!1:!!(k1.indexOf(a)>-1||/[A-Z]/u.test(a))}function K1(a,l,r,{latestValues:u},c,h=!1){const y=(du(a)?X1:H1)(l,u,c,a),m=_1(l,typeof a=="string",h),p=a!==$.Fragment?{...m,...y,ref:r}:{},{children:g}=l,x=$.useMemo(()=>re(g)?g.get():g,[g]);return $.createElement(a,{...p,children:x})}function Gd(a){const l=[{},{}];return a?.values.forEach((r,u)=>{l[0][u]=r.get(),l[1][u]=r.getVelocity()}),l}function hu(a,l,r,u){if(typeof l=="function"){const[c,h]=Gd(u);l=l(r!==void 0?r:a.custom,c,h)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,h]=Gd(u);l=l(r!==void 0?r:a.custom,c,h)}return l}function kl(a){return re(a)?a.get():a}function Q1({scrapeMotionValuesFromProps:a,createRenderState:l},r,u,c){return{latestValues:Z1(r,u,c,a),renderState:l()}}function Z1(a,l,r,u){const c={},h=u(a,{});for(const A in h)c[A]=kl(h[A]);let{initial:f,animate:y}=a;const m=Xl(a),p=Ud(a);l&&p&&!m&&a.inherit!==!1&&(f===void 0&&(f=l.initial),y===void 0&&(y=l.animate));let g=r?r.initial===!1:!1;g=g||f===!1;const x=g?y:f;if(x&&typeof x!="boolean"&&!Gl(x)){const A=Array.isArray(x)?x:[x];for(let w=0;w<A.length;w++){const L=hu(a,A[w]);if(L){const{transitionEnd:K,transition:Z,...Q}=L;for(const q in Q){let G=Q[q];if(Array.isArray(G)){const I=g?G.length-1:0;G=G[I]}G!==null&&(c[q]=G)}for(const q in K)c[q]=K[q]}}}return c}const Xd=a=>(l,r)=>{const u=$.useContext(ql),c=$.useContext(Vl),h=()=>Q1(a,l,u,c);return r?h():br(h)};function mu(a,l,r){const{style:u}=a,c={};for(const h in u)(re(u[h])||l.style&&re(l.style[h])||Nd(h,a)||r?.getValue(h)?.liveStyle!==void 0)&&(c[h]=u[h]);return c}const P1=Xd({scrapeMotionValuesFromProps:mu,createRenderState:fu});function kd(a,l,r){const u=mu(a,l,r);for(const c in a)if(re(a[c])||re(l[c])){const h=Sa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[h]=a[c]}return u}const J1=Xd({scrapeMotionValuesFromProps:kd,createRenderState:Yd}),F1=Symbol.for("motionComponentSymbol");function Ea(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function W1(a,l,r){return $.useCallback(u=>{u&&a.onMount&&a.onMount(u),l&&(u?l.mount(u):l.unmount()),r&&(typeof r=="function"?r(u):Ea(r)&&(r.current=u))},[l])}const pu=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Kd="data-"+pu("framerAppearId"),Qd=$.createContext({});function $1(a,l,r,u,c){const{visualElement:h}=$.useContext(ql),f=$.useContext(wd),y=$.useContext(Vl),m=$.useContext(ru).reducedMotion,p=$.useRef(null);u=u||f.renderer,!p.current&&u&&(p.current=u(a,{visualState:l,parent:h,props:r,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:m}));const g=p.current,x=$.useContext(Qd);g&&!g.projection&&c&&(g.type==="html"||g.type==="svg")&&I1(p.current,r,c,x);const A=$.useRef(!1);$.useInsertionEffect(()=>{g&&A.current&&g.update(r,y)});const w=r[Kd],L=$.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return Sf(()=>{g&&(A.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),L.current&&g.animationState&&g.animationState.animateChanges())}),$.useEffect(()=>{g&&(!L.current&&g.animationState&&g.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),L.current=!1),g.enteringChildren=void 0)}),g}function I1(a,l,r,u){const{layoutId:c,layout:h,drag:f,dragConstraints:y,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=l;a.projection=new r(a.latestValues,l["data-framer-portal-id"]?void 0:Zd(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||y&&Ea(y),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:u,crossfade:g,layoutScroll:m,layoutRoot:p})}function Zd(a){if(a)return a.options.allowProjection!==!1?a.projection:Zd(a.parent)}function yu(a,{forwardMotionProps:l=!1}={},r,u){r&&D1(r);const c=du(a)?J1:P1;function h(y,m){let p;const g={...$.useContext(ru),...y,layoutId:tb(y)},{isStatic:x}=g,A=w1(y),w=c(y,x);if(!x&&Sr){eb();const L=nb(g);p=L.MeasureLayout,A.visualElement=$1(a,w,g,u,L.ProjectionNode)}return Ie.jsxs(ql.Provider,{value:A,children:[p&&A.visualElement?Ie.jsx(p,{visualElement:A.visualElement,...g}):null,K1(a,y,W1(w,A.visualElement,m),w,x,l)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=$.forwardRef(h);return f[F1]=a,f}function tb({layoutId:a}){const l=$.useContext(vr).id;return l&&a!==void 0?l+"-"+a:a}function eb(a,l){$.useContext(wd).strict}function nb(a){const{drag:l,layout:r}=Aa;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l?.isEnabled(a)||r?.isEnabled(a)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function ab(a,l){if(typeof Proxy>"u")return yu;const r=new Map,u=(h,f)=>yu(h,f,a,l),c=(h,f)=>u(h,f);return new Proxy(c,{get:(h,f)=>f==="create"?u:(r.has(f)||r.set(f,yu(f,void 0,a,l)),r.get(f))})}function Pd({top:a,left:l,right:r,bottom:u}){return{x:{min:l,max:r},y:{min:a,max:u}}}function ib({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function lb(a,l){if(!l)return a;const r=l({x:a.left,y:a.top}),u=l({x:a.right,y:a.bottom});return{top:r.y,left:r.x,bottom:u.y,right:u.x}}function gu(a){return a===void 0||a===1}function vu({scale:a,scaleX:l,scaleY:r}){return!gu(a)||!gu(l)||!gu(r)}function Fn(a){return vu(a)||Jd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Jd(a){return Fd(a.x)||Fd(a.y)}function Fd(a){return a&&a!=="0%"}function Kl(a,l,r){const u=a-r,c=l*u;return r+c}function Wd(a,l,r,u,c){return c!==void 0&&(a=Kl(a,c,u)),Kl(a,r,u)+l}function bu(a,l=0,r=1,u,c){a.min=Wd(a.min,l,r,u,c),a.max=Wd(a.max,l,r,u,c)}function $d(a,{x:l,y:r}){bu(a.x,l.translate,l.scale,l.originPoint),bu(a.y,r.translate,r.scale,r.originPoint)}const Id=.999999999999,th=1.0000000000001;function sb(a,l,r,u=!1){const c=r.length;if(!c)return;l.x=l.y=1;let h,f;for(let y=0;y<c;y++){h=r[y],f=h.projectionDelta;const{visualElement:m}=h.options;m&&m.props.style&&m.props.style.display==="contents"||(u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ra(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(l.x*=f.x.scale,l.y*=f.y.scale,$d(a,f)),u&&Fn(h.latestValues)&&Ra(a,h.latestValues))}l.x<th&&l.x>Id&&(l.x=1),l.y<th&&l.y>Id&&(l.y=1)}function Ma(a,l){a.min=a.min+l,a.max=a.max+l}function eh(a,l,r,u,c=.5){const h=jt(a.min,a.max,c);bu(a,l,r,h,u)}function Ra(a,l){eh(a.x,l.x,l.scaleX,l.scale,l.originX),eh(a.y,l.y,l.scaleY,l.scale,l.originY)}function nh(a,l){return Pd(lb(a.getBoundingClientRect(),l))}function rb(a,l,r){const u=nh(a,r),{scroll:c}=l;return c&&(Ma(u.x,c.offset.x),Ma(u.y,c.offset.y)),u}const ah=()=>({translate:0,scale:1,origin:0,originPoint:0}),Da=()=>({x:ah(),y:ah()}),ih=()=>({min:0,max:0}),qt=()=>({x:ih(),y:ih()}),Su={current:null},lh={current:!1};function ub(){if(lh.current=!0,!!Sr)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>Su.current=a.matches;a.addEventListener("change",l),l()}else Su.current=!1}const ob=new WeakMap;function cb(a,l,r){for(const u in l){const c=l[u],h=r[u];if(re(c))a.addValue(u,c);else if(re(h))a.addValue(u,Ta(c,{owner:a}));else if(h!==c)if(a.hasValue(u)){const f=a.getValue(u);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(u);a.addValue(u,Ta(f!==void 0?f:c,{owner:a}))}}for(const u in r)l[u]===void 0&&a.removeValue(u);return l}const sh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fb{scrapeMotionValuesFromProps(l,r,u){return{}}constructor({parent:l,props:r,presenceContext:u,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ir,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const A=de.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Bt.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=r.initial?{...m}:{},this.renderState=p,this.parent=l,this.props=r,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=Xl(r),this.isVariantNode=Ud(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const A in x){const w=x[A];m[A]!==void 0&&re(w)&&w.set(m[A])}}mount(l){this.current=l,ob.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,u)=>this.bindToMotionValue(u,r)),lh.current||ub(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Su.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vn(this.notifyUpdate),vn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.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(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const u=xa.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&Bt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,r)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),r.owner&&r.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Aa){const r=Aa[l];if(!r)continue;const{isEnabled:u,Feature:c}=r;if(!this.features[l]&&c&&u(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let u=0;u<sh.length;u++){const c=sh[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,f=l[h];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=cb(this,this.scrapeMotionValuesFromProps(l,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(l),()=>r.variantChildren.delete(l)}addValue(l,r){const u=this.values.get(l);r!==u&&(u&&this.removeValue(l),this.bindToMotionValue(l,r),this.values.set(l,r),this.latestValues[l]=r.get())}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);r&&(r(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l])return this.props.values[l];let u=this.values.get(l);return u===void 0&&r!==void 0&&(u=Ta(r===null?void 0:r,{owner:this}),this.addValue(l,u)),u}readValue(l,r){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(xf(u)||Af(u))?u=parseFloat(u):!x1(u)&&Sn.test(r)&&(u=bd(l,r)),this.setBaseTarget(l,re(u)?u.get():u)),re(u)?u.get():u}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const h=hu(this.props,r,this.presenceContext?.custom);h&&(u=h[l])}if(r&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!re(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new Mr),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){iu.render(this.render)}}class rh extends fb{constructor(){super(...arguments),this.KeyframeResolver=o1}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){return l.style?l.style[r]:void 0}removeValueFromRenderState(l,{vars:r,style:u}){delete r[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;re(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function uh(a,{style:l,vars:r},u,c){const h=a.style;let f;for(f in l)h[f]=l[f];c?.applyProjectionStyles(h,u);for(f in r)h.setProperty(f,r[f])}function db(a){return window.getComputedStyle(a)}class hb extends rh{constructor(){super(...arguments),this.type="html",this.renderInstance=uh}readValueFromInstance(l,r){if(xa.has(r))return this.projection?.isProjecting?Pr(r):Ov(l,r);{const u=db(l),c=(Or(r)?u.getPropertyValue(r):u[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:r}){return nh(l,r)}build(l,r,u){cu(l,r,u.transformTemplate)}scrapeMotionValuesFromProps(l,r,u){return mu(l,r,u)}}const oh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mb(a,l,r,u){uh(a,l,void 0,u);for(const c in l.attrs)a.setAttribute(oh.has(c)?c:pu(c),l.attrs[c])}class pb extends rh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(xa.has(r)){const u=vd(r);return u&&u.default||0}return r=oh.has(r)?r:pu(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,u){return kd(l,r,u)}build(l,r,u){Hd(l,r,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,r,u,c){mb(l,r,u,c)}mount(l){this.isSVGTag=qd(l.tagName),super.mount(l)}}const yb=(a,l)=>du(a)?new pb(l):new hb(l,{allowProjection:a!==$.Fragment});function Ca(a,l,r){const u=a.getProps();return hu(u,l,r!==void 0?r:u.custom,a)}const xu=a=>Array.isArray(a);function gb(a,l,r){a.hasValue(l)?a.getValue(l).set(r):a.addValue(l,Ta(r))}function vb(a){return xu(a)?a[a.length-1]||0:a}function bb(a,l){const r=Ca(a,l);let{transitionEnd:u={},transition:c={},...h}=r||{};h={...h,...u};for(const f in h){const y=vb(h[f]);gb(a,f,y)}}function Sb(a){return!!(re(a)&&a.add)}function Tu(a,l){const r=a.getValue("willChange");if(Sb(r))return r.add(l);if(!r&&en.WillChange){const u=new en.WillChange("auto");a.addValue("willChange",u),u.add(l)}}function ch(a){return a.props[Kd]}const xb=a=>a!==null;function Tb(a,{repeat:l,repeatType:r="loop"},u){const c=a.filter(xb),h=l&&r!=="loop"&&l%2===1?0:c.length-1;return c[h]}const Ab={type:"spring",stiffness:500,damping:25,restSpeed:10},Eb=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Mb={type:"keyframes",duration:.8},Rb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Db=(a,{keyframes:l})=>l.length>2?Mb:xa.has(a)?a.startsWith("scale")?Eb(l[1]):Ab:Rb;function Cb({when:a,delay:l,delayChildren:r,staggerChildren:u,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:y,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const Au=(a,l,r,u={},c,h)=>f=>{const y=eu(u,a)||{},m=y.delay||u.delay||0;let{elapsed:p=0}=u;p=p-Xe(m);const g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-p,onUpdate:A=>{l.set(A),y.onUpdate&&y.onUpdate(A)},onComplete:()=>{f(),y.onComplete&&y.onComplete()},name:a,motionValue:l,element:h?void 0:c};Cb(y)||Object.assign(g,Db(a,g)),g.duration&&(g.duration=Xe(g.duration)),g.repeatDelay&&(g.repeatDelay=Xe(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(tu(g),g.delay===0&&(x=!0)),(en.instantAnimations||en.skipAnimations)&&(x=!0,tu(g),g.delay=0),g.allowFlatten=!y.type&&!y.ease,x&&!h&&l.get()!==void 0){const A=Tb(g.keyframes,y);if(A!==void 0){Bt.update(()=>{g.onUpdate(A),g.onComplete()});return}}return y.isSync?new Kr(g):new $v(g)};function Ob({protectedKeys:a,needsAnimating:l},r){const u=a.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,u}function fh(a,l,{delay:r=0,transitionOverride:u,type:c}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:f,...y}=l;u&&(h=u);const m=[],p=c&&a.animationState&&a.animationState.getState()[c];for(const g in y){const x=a.getValue(g,a.latestValues[g]??null),A=y[g];if(A===void 0||p&&Ob(p,g))continue;const w={delay:r,...eu(h||{},g)},L=x.get();if(L!==void 0&&!x.isAnimating&&!Array.isArray(A)&&A===L&&!w.velocity)continue;let K=!1;if(window.MotionHandoffAnimation){const Q=ch(a);if(Q){const q=window.MotionHandoffAnimation(Q,g,Bt);q!==null&&(w.startTime=q,K=!0)}}Tu(a,g),x.start(Au(g,x,A,a.shouldReduceMotion&&hd.has(g)?{type:!1}:w,a,K));const Z=x.animation;Z&&m.push(Z)}return f&&Promise.all(m).then(()=>{Bt.update(()=>{f&&bb(a,f)})}),m}function dh(a,l,r,u=0,c=1){const h=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(l),f=a.size,y=(f-1)*u;return typeof r=="function"?r(h,f):c===1?h*u:y-h*u}function Eu(a,l,r={}){const u=Ca(a,l,r.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=u||{};r.transitionOverride&&(c=r.transitionOverride);const h=u?()=>Promise.all(fh(a,u,r)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:x}=c;return _b(a,l,m,p,g,x,r)}:()=>Promise.resolve(),{when:y}=c;if(y){const[m,p]=y==="beforeChildren"?[h,f]:[f,h];return m().then(()=>p())}else return Promise.all([h(),f(r.delay)])}function _b(a,l,r=0,u=0,c=0,h=1,f){const y=[];for(const m of a.variantChildren)m.notify("AnimationStart",l),y.push(Eu(m,l,{...f,delay:r+(typeof u=="function"?0:u)+dh(a.variantChildren,m,u,c,h)}).then(()=>m.notify("AnimationComplete",l)));return Promise.all(y)}function Vb(a,l,r={}){a.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(h=>Eu(a,h,r));u=Promise.all(c)}else if(typeof l=="string")u=Eu(a,l,r);else{const c=typeof l=="function"?Ca(a,l,r.custom):l;u=Promise.all(fh(a,c,r))}return u.then(()=>{a.notify("AnimationComplete",l)})}function hh(a,l){if(!Array.isArray(l))return!1;const r=l.length;if(r!==a.length)return!1;for(let u=0;u<r;u++)if(l[u]!==a[u])return!1;return!0}const wb=ou.length;function mh(a){if(!a)return;if(!a.isControllingVariants){const r=a.parent?mh(a.parent)||{}:{};return a.props.initial!==void 0&&(r.initial=a.props.initial),r}const l={};for(let r=0;r<wb;r++){const u=ou[r],c=a.props[u];(Ri(c)||c===!1)&&(l[u]=c)}return l}const zb=[...uu].reverse(),Bb=uu.length;function Ub(a){return l=>Promise.all(l.map(({animation:r,options:u})=>Vb(a,r,u)))}function jb(a){let l=Ub(a),r=ph(),u=!0;const c=m=>(p,g)=>{const x=Ca(a,g,m==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:A,transitionEnd:w,...L}=x;p={...p,...L,...w}}return p};function h(m){l=m(a)}function f(m){const{props:p}=a,g=mh(a.parent)||{},x=[],A=new Set;let w={},L=1/0;for(let Z=0;Z<Bb;Z++){const Q=zb[Z],q=r[Q],G=p[Q]!==void 0?p[Q]:g[Q],I=Ri(G),Y=Q===m?q.isActive:null;Y===!1&&(L=Z);let F=G===g[Q]&&G!==p[Q]&&I;if(F&&u&&a.manuallyAnimateOnMount&&(F=!1),q.protectedKeys={...w},!q.isActive&&Y===null||!G&&!q.prevProp||Gl(G)||typeof G=="boolean")continue;const et=Nb(q.prevProp,G);let W=et||Q===m&&q.isActive&&!F&&I||Z>L&&I,gt=!1;const St=Array.isArray(G)?G:[G];let vt=St.reduce(c(Q),{});Y===!1&&(vt={});const{prevResolvedValues:xt={}}=q,Vt={...xt,...vt},Kt=j=>{W=!0,A.has(j)&&(gt=!0,A.delete(j)),q.needsAnimating[j]=!0;const P=a.getValue(j);P&&(P.liveStyle=!1)};for(const j in Vt){const P=vt[j],at=xt[j];if(w.hasOwnProperty(j))continue;let T=!1;xu(P)&&xu(at)?T=!hh(P,at):T=P!==at,T?P!=null?Kt(j):A.add(j):P!==void 0&&A.has(j)?Kt(j):q.protectedKeys[j]=!0}q.prevProp=G,q.prevResolvedValues=vt,q.isActive&&(w={...w,...vt}),u&&a.blockInitialAnimation&&(W=!1);const Dt=F&&et;W&&(!Dt||gt)&&x.push(...St.map(j=>{const P={type:Q};if(typeof j=="string"&&u&&!Dt&&a.manuallyAnimateOnMount&&a.parent){const{parent:at}=a,T=Ca(at,j);if(at.enteringChildren&&T){const{delayChildren:b}=T.transition||{};P.delay=dh(at.enteringChildren,a,b)}}return{animation:j,options:P}}))}if(A.size){const Z={};if(typeof p.initial!="boolean"){const Q=Ca(a,Array.isArray(p.initial)?p.initial[0]:p.initial);Q&&Q.transition&&(Z.transition=Q.transition)}A.forEach(Q=>{const q=a.getBaseTarget(Q),G=a.getValue(Q);G&&(G.liveStyle=!0),Z[Q]=q??null}),x.push({animation:Z})}let K=!!x.length;return u&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(K=!1),u=!1,K?l(x):Promise.resolve()}function y(m,p){if(r[m].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(m,p)),r[m].isActive=p;const g=f(m);for(const x in r)r[x].protectedKeys={};return g}return{animateChanges:f,setActive:y,setAnimateFunction:h,getState:()=>r,reset:()=>{r=ph(),u=!0}}}function Nb(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!hh(l,a):!1}function Wn(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ph(){return{animate:Wn(!0),whileInView:Wn(),whileHover:Wn(),whileTap:Wn(),whileDrag:Wn(),whileFocus:Wn(),exit:Wn()}}class xn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class Lb extends xn{constructor(l){super(l),l.animationState||(l.animationState=jb(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Gl(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:r}=this.node.prevProps||{};l!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Hb=0;class Yb extends xn{constructor(){super(...arguments),this.id=Hb++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)return;const c=this.node.animationState.setActive("exit",!l);r&&!l&&c.then(()=>{r(this.id)})}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const qb={animation:{Feature:Lb},exit:{Feature:Yb}};function Ci(a,l,r,u={passive:!0}){return a.addEventListener(l,r,u),()=>a.removeEventListener(l,r)}function Oi(a){return{point:{x:a.pageX,y:a.pageY}}}const Gb=a=>l=>lu(l)&&a(l,Oi(l));function _i(a,l,r,u){return Ci(a,l,Gb(r),u)}const yh=1e-4,Xb=1-yh,kb=1+yh,gh=.01,Kb=0-gh,Qb=0+gh;function ce(a){return a.max-a.min}function Zb(a,l,r){return Math.abs(a-l)<=r}function vh(a,l,r,u=.5){a.origin=u,a.originPoint=jt(l.min,l.max,a.origin),a.scale=ce(r)/ce(l),a.translate=jt(r.min,r.max,a.origin)-a.originPoint,(a.scale>=Xb&&a.scale<=kb||isNaN(a.scale))&&(a.scale=1),(a.translate>=Kb&&a.translate<=Qb||isNaN(a.translate))&&(a.translate=0)}function Vi(a,l,r,u){vh(a.x,l.x,r.x,u?u.originX:void 0),vh(a.y,l.y,r.y,u?u.originY:void 0)}function bh(a,l,r){a.min=r.min+l.min,a.max=a.min+ce(l)}function Pb(a,l,r){bh(a.x,l.x,r.x),bh(a.y,l.y,r.y)}function Sh(a,l,r){a.min=l.min-r.min,a.max=a.min+ce(l)}function wi(a,l,r){Sh(a.x,l.x,r.x),Sh(a.y,l.y,r.y)}function Ce(a){return[a("x"),a("y")]}const xh=({current:a})=>a?a.ownerDocument.defaultView:null,Th=(a,l)=>Math.abs(a-l);function Jb(a,l){const r=Th(a.x,l.x),u=Th(a.y,l.y);return Math.sqrt(r**2+u**2)}class Ah{constructor(l,r,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Ru(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,L=Jb(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!L)return;const{point:K}=A,{timestamp:Z}=te;this.history.push({...K,timestamp:Z});const{onStart:Q,onMove:q}=this.handlers;w||(Q&&Q(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),q&&q(this.lastMoveEvent,A)},this.handlePointerMove=(A,w)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=Mu(w,this.transformPagePoint),Bt.update(this.updatePoint,!0)},this.handlePointerUp=(A,w)=>{this.end();const{onEnd:L,onSessionEnd:K,resumeAnimation:Z}=this.handlers;if(this.dragSnapToOrigin&&Z&&Z(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Ru(A.type==="pointercancel"?this.lastMoveEventInfo:Mu(w,this.transformPagePoint),this.history);this.startEvent&&L&&L(A,Q),K&&K(A,Q)},!lu(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Oi(l),m=Mu(y,this.transformPagePoint),{point:p}=m,{timestamp:g}=te;this.history=[{...p,timestamp:g}];const{onSessionStart:x}=r;x&&x(l,Ru(m,this.history)),this.removeListeners=gi(_i(this.contextWindow,"pointermove",this.handlePointerMove),_i(this.contextWindow,"pointerup",this.handlePointerUp),_i(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),vn(this.updatePoint)}}function Mu(a,l){return l?{point:l(a.point)}:a}function Eh(a,l){return{x:a.x-l.x,y:a.y-l.y}}function Ru({point:a},l){return{point:a,delta:Eh(a,Mh(l)),offset:Eh(a,Fb(l)),velocity:Wb(l,.1)}}function Fb(a){return a[0]}function Mh(a){return a[a.length-1]}function Wb(a,l){if(a.length<2)return{x:0,y:0};let r=a.length-1,u=null;const c=Mh(a);for(;r>=0&&(u=a[r],!(c.timestamp-u.timestamp>Xe(l)));)r--;if(!u)return{x:0,y:0};const h=ke(c.timestamp-u.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-u.x)/h,y:(c.y-u.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function $b(a,{min:l,max:r},u){return l!==void 0&&a<l?a=u?jt(l,a,u.min):Math.max(a,l):r!==void 0&&a>r&&(a=u?jt(r,a,u.max):Math.min(a,r)),a}function Rh(a,l,r){return{min:l!==void 0?a.min+l:void 0,max:r!==void 0?a.max+r-(a.max-a.min):void 0}}function Ib(a,{top:l,left:r,bottom:u,right:c}){return{x:Rh(a.x,r,c),y:Rh(a.y,l,u)}}function Dh(a,l){let r=l.min-a.min,u=l.max-a.max;return l.max-l.min<a.max-a.min&&([r,u]=[u,r]),{min:r,max:u}}function tS(a,l){return{x:Dh(a.x,l.x),y:Dh(a.y,l.y)}}function eS(a,l){let r=.5;const u=ce(a),c=ce(l);return c>u?r=vi(l.min,l.max-u,a.min):u>c&&(r=vi(a.min,a.max-c,l.min)),tn(0,1,r)}function nS(a,l){const r={};return l.min!==void 0&&(r.min=l.min-a.min),l.max!==void 0&&(r.max=l.max-a.min),r}const Du=.35;function aS(a=Du){return a===!1?a=0:a===!0&&(a=Du),{x:Ch(a,"left","right"),y:Ch(a,"top","bottom")}}function Ch(a,l,r){return{min:Oh(a,l),max:Oh(a,r)}}function Oh(a,l){return typeof a=="number"?a:a[l]||0}const iS=new WeakMap;class lS{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=x=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Oi(x).point)},f=(x,A)=>{const{drag:w,dragPropagation:L,onDragStart:K}=this.getProps();if(w&&!L&&(this.openDragLock&&this.openDragLock(),this.openDragLock=h1(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=A,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ce(Q=>{let q=this.getAxisMotionValue(Q).get()||0;if(Ke.test(q)){const{projection:G}=this.visualElement;if(G&&G.layout){const I=G.layout.layoutBox[Q];I&&(q=ce(I)*(parseFloat(q)/100))}}this.originPoint[Q]=q}),K&&Bt.postRender(()=>K(x,A)),Tu(this.visualElement,"transform");const{animationState:Z}=this.visualElement;Z&&Z.setActive("whileDrag",!0)},y=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A;const{dragPropagation:w,dragDirectionLock:L,onDirectionLock:K,onDrag:Z}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:Q}=A;if(L&&this.currentDirection===null){this.currentDirection=sS(Q),this.currentDirection!==null&&K&&K(this.currentDirection);return}this.updateAxis("x",A.point,Q),this.updateAxis("y",A.point,Q),this.visualElement.render(),Z&&Z(x,A)},m=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A,this.stop(x,A),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ce(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Ah(l,{onSessionStart:h,onStart:f,onMove:y,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:xh(this.visualElement)})}stop(l,r){const u=l||this.latestPointerEvent,c=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:y}=this.getProps();y&&Bt.postRender(()=>y(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:r}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(l,r,u){const{drag:c}=this.getProps();if(!u||!Ql(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let f=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(f=$b(f,this.constraints[l],this.elastic[l])),h.set(f)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&Ea(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=Ib(u.layoutBox,l):this.constraints=!1,this.elastic=aS(r),c!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&Ce(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=nS(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!Ea(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=rb(u,c.root,this.visualElement.getTransformPagePoint());let f=tS(c.layout.layoutBox,h);if(r){const y=r(ib(f));this.hasMutatedConstraints=!!y,y&&(f=Pd(y))}return f}startAnimation(l){const{drag:r,dragMomentum:u,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:y}=this.getProps(),m=this.constraints||{},p=Ce(g=>{if(!Ql(g,r,this.currentDirection))return;let x=m&&m[g]||{};f&&(x={min:0,max:0});const A=c?200:1e6,w=c?40:1e7,L={type:"inertia",velocity:u?l[g]:0,bounceStiffness:A,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(g,L)});return Promise.all(p).then(y)}startAxisValueAnimation(l,r){const u=this.getAxisMotionValue(l);return Tu(this.visualElement,l),u.start(Au(l,u,0,r,this.visualElement,!1))}stopAnimation(){Ce(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ce(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[r];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){Ce(r=>{const{drag:u}=this.getProps();if(!Ql(r,u,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:y}=c.layout.layoutBox[r];h.set(l[r]-jt(f,y,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:u}=this.visualElement;if(!Ea(r)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ce(f=>{const y=this.getAxisMotionValue(f);if(y&&this.constraints!==!1){const m=y.get();c[f]=eS({min:m,max:m},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.resolveConstraints(),Ce(f=>{if(!Ql(f,l,null))return;const y=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];y.set(jt(m,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;iS.set(this.visualElement,this);const l=this.visualElement.current,r=_i(l,"pointerdown",m=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(m)}),u=()=>{const{dragConstraints:m}=this.getProps();Ea(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",u);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Bt.read(u);const f=Ci(window,"resize",()=>this.scalePositionWithinConstraints()),y=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ce(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=m[g].translate,x.set(x.get()+m[g].translate))}),this.visualElement.render())}));return()=>{f(),r(),h(),y&&y()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=Du,dragMomentum:y=!0}=l;return{...l,drag:r,dragDirectionLock:u,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:y}}}function Ql(a,l,r){return(l===!0||l===a)&&(r===null||r===a)}function sS(a,l=10){let r=null;return Math.abs(a.y)>l?r="y":Math.abs(a.x)>l&&(r="x"),r}class rS extends xn{constructor(l){super(l),this.removeGroupControls=De,this.removeListeners=De,this.controls=new lS(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const _h=a=>(l,r)=>{a&&Bt.postRender(()=>a(l,r))};class uS extends xn{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(l){this.session=new Ah(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xh(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:_h(l),onStart:_h(r),onMove:u,onEnd:(h,f)=>{delete this.session,c&&Bt.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=_i(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Vh(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const zi={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(st.test(a))a=parseFloat(a);else return a;const r=Vh(a,l.target.x),u=Vh(a,l.target.y);return`${r}% ${u}%`}},oS={correct:(a,{treeScale:l,projectionDelta:r})=>{const u=a,c=Sn.parse(a);if(c.length>5)return u;const h=Sn.createTransformer(a),f=typeof c[0]!="number"?1:0,y=r.x.scale*l.x,m=r.y.scale*l.y;c[0+f]/=y,c[1+f]/=m;const p=jt(y,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),h(c)}};let Cu=!1;class cS extends $.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:u,layoutId:c}=this.props,{projection:h}=l;z1(fS),h&&(r.group&&r.group.add(h),u&&u.register&&c&&u.register(h),Cu&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:u,drag:c,isPresent:h}=this.props,{projection:f}=u;return f&&(f.isPresent=h,Cu=!0,c||l.layoutDependency!==r||r===void 0||l.isPresent!==h?f.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?f.promote():f.relegate()||Bt.postRender(()=>{const y=f.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),iu.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:u}=this.props,{projection:c}=l;Cu=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function wh(a){const[l,r]=_d(),u=$.useContext(vr);return Ie.jsx(cS,{...a,layoutGroup:u,switchLayoutGroup:$.useContext(Qd),isPresent:l,safeToRemove:r})}const fS={borderRadius:{...zi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zi,borderTopRightRadius:zi,borderBottomLeftRadius:zi,borderBottomRightRadius:zi,boxShadow:oS};function dS(a,l,r){const u=re(a)?a:Ta(a);return u.start(Au("",u,l,r)),u.animation}const hS=(a,l)=>a.depth-l.depth;class mS{constructor(){this.children=[],this.isDirty=!1}add(l){xr(this.children,l),this.isDirty=!0}remove(l){Tr(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(hS),this.isDirty=!1,this.children.forEach(l)}}function pS(a,l){const r=de.now(),u=({timestamp:c})=>{const h=c-r;h>=l&&(vn(u),a(h-l))};return Bt.setup(u,!0),()=>vn(u)}const zh=["TopLeft","TopRight","BottomLeft","BottomRight"],yS=zh.length,Bh=a=>typeof a=="string"?parseFloat(a):a,Uh=a=>typeof a=="number"||st.test(a);function gS(a,l,r,u,c,h){c?(a.opacity=jt(0,r.opacity??1,vS(u)),a.opacityExit=jt(l.opacity??1,0,bS(u))):h&&(a.opacity=jt(l.opacity??1,r.opacity??1,u));for(let f=0;f<yS;f++){const y=`border${zh[f]}Radius`;let m=jh(l,y),p=jh(r,y);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Uh(m)===Uh(p)?(a[y]=Math.max(jt(Bh(m),Bh(p),u),0),(Ke.test(p)||Ke.test(m))&&(a[y]+="%")):a[y]=p}(l.rotate||r.rotate)&&(a.rotate=jt(l.rotate||0,r.rotate||0,u))}function jh(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const vS=Nh(0,.5,Vf),bS=Nh(.5,.95,De);function Nh(a,l,r){return u=>u<a?0:u>l?1:r(vi(a,l,u))}function Lh(a,l){a.min=l.min,a.max=l.max}function Oe(a,l){Lh(a.x,l.x),Lh(a.y,l.y)}function Hh(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}function Yh(a,l,r,u,c){return a-=l,a=Kl(a,1/r,u),c!==void 0&&(a=Kl(a,1/c,u)),a}function SS(a,l=0,r=1,u=.5,c,h=a,f=a){if(Ke.test(l)&&(l=parseFloat(l),l=jt(f.min,f.max,l/100)-f.min),typeof l!="number")return;let y=jt(h.min,h.max,u);a===h&&(y-=l),a.min=Yh(a.min,l,r,y,c),a.max=Yh(a.max,l,r,y,c)}function qh(a,l,[r,u,c],h,f){SS(a,l[r],l[u],l[c],l.scale,h,f)}const xS=["x","scaleX","originX"],TS=["y","scaleY","originY"];function Gh(a,l,r,u){qh(a.x,l,xS,r?r.x:void 0,u?u.x:void 0),qh(a.y,l,TS,r?r.y:void 0,u?u.y:void 0)}function Xh(a){return a.translate===0&&a.scale===1}function kh(a){return Xh(a.x)&&Xh(a.y)}function Kh(a,l){return a.min===l.min&&a.max===l.max}function AS(a,l){return Kh(a.x,l.x)&&Kh(a.y,l.y)}function Qh(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function Zh(a,l){return Qh(a.x,l.x)&&Qh(a.y,l.y)}function Ph(a){return ce(a.x)/ce(a.y)}function Jh(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}class ES{constructor(){this.members=[]}add(l){xr(this.members,l),l.scheduleRender()}remove(l){if(Tr(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(l){const r=this.members.findIndex(c=>l===c);if(r===0)return!1;let u;for(let c=r;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){u=h;break}}return u?(this.promote(u),!0):!1}promote(l,r){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender(),l.resumeFrom=u,r&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:u}=l;r.onExitComplete&&r.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MS(a,l,r){let u="";const c=a.x.translate/l.x,h=a.y.translate/l.y,f=r?.z||0;if((c||h||f)&&(u=`translate3d(${c}px, ${h}px, ${f}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:p,rotate:g,rotateX:x,rotateY:A,skewX:w,skewY:L}=r;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),x&&(u+=`rotateX(${x}deg) `),A&&(u+=`rotateY(${A}deg) `),w&&(u+=`skewX(${w}deg) `),L&&(u+=`skewY(${L}deg) `)}const y=a.x.scale*l.x,m=a.y.scale*l.y;return(y!==1||m!==1)&&(u+=`scale(${y}, ${m})`),u||"none"}const Ou=["","X","Y","Z"],RS=1e3;let DS=0;function _u(a,l,r,u){const{latestValues:c}=l;c[a]&&(r[a]=c[a],l.setStaticValue(a,0),u&&(u[a]=0))}function Fh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const r=ch(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Bt,!(c||h))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&Fh(u)}function Wh({attachResizeListener:a,defaultParent:l,measureScroll:r,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},y=l?.()){this.id=DS++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(_S),this.nodes.forEach(BS),this.nodes.forEach(US),this.nodes.forEach(VS)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new mS)}addEventListener(f,y){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Mr),this.eventHandlers.get(f).add(y)}notifyListeners(f,...y){const m=this.eventHandlers.get(f);m&&m.notify(...y)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Od(f)&&!b1(f),this.instance=f;const{layoutId:y,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||y)&&(this.isLayoutDirty=!0),a){let g,x=0;const A=()=>this.root.updateBlockedByResize=!1;Bt.read(()=>{x=window.innerWidth}),a(f,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,g&&g(),g=pS(A,250),Zl.hasAnimatedSinceResize&&(Zl.hasAnimatedSinceResize=!1,this.nodes.forEach(tm)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&p&&(y||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:A,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const L=this.options.transition||p.getDefaultTransition()||YS,{onLayoutAnimationStart:K,onLayoutAnimationComplete:Z}=p.getProps(),Q=!this.targetLayout||!Zh(this.targetLayout,w),q=!x&&A;if(this.options.layoutRoot||this.resumeFrom||q||x&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...eu(L,"layout"),onPlay:K,onComplete:Z};(p.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(g,q)}else x||tm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vn(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(jS),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:y,layout:m}=this.options;if(y===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($h);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ih);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zS),this.nodes.forEach(CS),this.nodes.forEach(OS)):this.nodes.forEach(Ih),this.clearAllSnapshots();const y=de.now();te.delta=tn(0,1e3/60,y-te.timestamp),te.timestamp=y,te.isProcessing=!0,Cr.update.process(te),Cr.preRender.process(te),Cr.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,iu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wS),this.sharedNodes.forEach(NS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ce(this.snapshot.measuredBox.x)&&!ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(y=!1),y&&this.instance){const m=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!kh(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(y||Fn(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const y=this.measurePageBox();let m=this.removeElementScroll(y);return f&&(m=this.removeTransform(m)),qS(m),{animationId:this.root.animationId,measuredBox:y,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return qt();const y=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(GS))){const{scroll:p}=this.root;p&&(Ma(y.x,p.offset.x),Ma(y.y,p.offset.y))}return y}removeElementScroll(f){const y=qt();if(Oe(y,f),this.scroll?.wasRoot)return y;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:x}=p;p!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&Oe(y,f),Ma(y.x,g.offset.x),Ma(y.y,g.offset.y))}return y}applyTransform(f,y=!1){const m=qt();Oe(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];!y&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ra(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Fn(g.latestValues)&&Ra(m,g.latestValues)}return Fn(this.latestValues)&&Ra(m,this.latestValues),m}removeTransform(f){const y=qt();Oe(y,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!Fn(p.latestValues))continue;vu(p.latestValues)&&p.updateSnapshot();const g=qt(),x=p.measurePageBox();Oe(g,x),Gh(y,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return Fn(this.latestValues)&&Gh(y,this.latestValues),y}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==y;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=te.timestamp,!this.targetDelta&&!this.relativeTarget){const A=this.getClosestProjectingParent();A&&A.layout&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),wi(this.relativeTargetOrigin,this.layout.layoutBox,A.layout.layoutBox),Oe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oe(this.target,this.layout.layoutBox),$d(this.target,this.targetDelta)):Oe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const A=this.getClosestProjectingParent();A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),wi(this.relativeTargetOrigin,this.target,A.target),Oe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vu(this.parent.latestValues)||Jd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const f=this.getLead(),y=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===te.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Oe(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,A=this.treeScale.y;sb(this.layoutCorrected,this.treeScale,this.path,y),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=qt());const{target:w}=f;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hh(this.prevProjectionDelta.x,this.projectionDelta.x),Hh(this.prevProjectionDelta.y,this.projectionDelta.y)),Vi(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==A||!Jh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Da(),this.projectionDelta=Da(),this.projectionDeltaWithTransform=Da()}setAnimationOrigin(f,y=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},x=Da();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const A=qt(),w=m?m.source:void 0,L=this.layout?this.layout.source:void 0,K=w!==L,Z=this.getStack(),Q=!Z||Z.members.length<=1,q=!!(K&&!Q&&this.options.crossfade===!0&&!this.path.some(HS));this.animationProgress=0;let G;this.mixTargetDelta=I=>{const Y=I/1e3;em(x.x,f.x,Y),em(x.y,f.y,Y),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wi(A,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LS(this.relativeTarget,this.relativeTargetOrigin,A,Y),G&&AS(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=qt()),Oe(G,this.relativeTarget)),K&&(this.animationValues=g,gS(g,p,this.latestValues,Y,q,Q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{Zl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ta(0)),this.currentAnimation=dS(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(RS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:y,target:m,layout:p,latestValues:g}=f;if(!(!y||!m||!p)){if(this!==f&&this.layout&&p&&sm(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||qt();const x=ce(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const A=ce(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+A}Oe(y,m),Ra(y,g),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,y,g)}}registerSharedNode(f,y){this.sharedNodes.has(f)||this.sharedNodes.set(f,new ES),this.sharedNodes.get(f).add(y);const p=y.options.initialPromotionConfig;y.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(y):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:y,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let y=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(y=!0),!y)return;const p={};m.z&&_u("z",f,p,this.animationValues);for(let g=0;g<Ou.length;g++)_u(`rotate${Ou[g]}`,f,p,this.animationValues),_u(`skew${Ou[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=kl(y?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=kl(y?.pointerEvents)||""),this.hasProjected&&!Fn(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=MS(this.projectionDeltaWithTransform,this.treeScale,g);m&&(x=m(g,x)),f.transform=x;const{x:A,y:w}=this.projectionDelta;f.transformOrigin=`${A.origin*100}% ${w.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const L in Di){if(g[L]===void 0)continue;const{correct:K,applyTo:Z,isCSSVariable:Q}=Di[L],q=x==="none"?g[L]:K(g[L],p);if(Z){const G=Z.length;for(let I=0;I<G;I++)f[Z[I]]=q}else Q?this.options.visualElement.renderState.vars[L]=q:f[L]=q}this.options.layoutId&&(f.pointerEvents=p===this?kl(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach($h),this.root.sharedNodes.clear()}}}function CS(a){a.updateLayout()}function OS(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=a.layout,{animationType:c}=a.options,h=l.source!==a.layout.source;c==="size"?Ce(g=>{const x=h?l.measuredBox[g]:l.layoutBox[g],A=ce(x);x.min=r[g].min,x.max=x.min+A}):sm(c,l.layoutBox,r)&&Ce(g=>{const x=h?l.measuredBox[g]:l.layoutBox[g],A=ce(r[g]);x.max=x.min+A,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[g].max=a.relativeTarget[g].min+A)});const f=Da();Vi(f,r,l.layoutBox);const y=Da();h?Vi(y,a.applyTransform(u,!0),l.measuredBox):Vi(y,r,l.layoutBox);const m=!kh(f);let p=!1;if(!a.resumeFrom){const g=a.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:A}=g;if(x&&A){const w=qt();wi(w,l.layoutBox,x.layoutBox);const L=qt();wi(L,r,A.layoutBox),Zh(w,L)||(p=!0),g.options.layoutRoot&&(a.relativeTarget=L,a.relativeTargetOrigin=w,a.relativeParent=g)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:y,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function _S(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 VS(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function wS(a){a.clearSnapshot()}function $h(a){a.clearMeasurements()}function Ih(a){a.isLayoutDirty=!1}function zS(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function tm(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function BS(a){a.resolveTargetDelta()}function US(a){a.calcProjection()}function jS(a){a.resetSkewAndRotation()}function NS(a){a.removeLeadSnapshot()}function em(a,l,r){a.translate=jt(l.translate,0,r),a.scale=jt(l.scale,1,r),a.origin=l.origin,a.originPoint=l.originPoint}function nm(a,l,r,u){a.min=jt(l.min,r.min,u),a.max=jt(l.max,r.max,u)}function LS(a,l,r,u){nm(a.x,l.x,r.x,u),nm(a.y,l.y,r.y,u)}function HS(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const YS={duration:.45,ease:[.4,0,.1,1]},am=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),im=am("applewebkit/")&&!am("chrome/")?Math.round:De;function lm(a){a.min=im(a.min),a.max=im(a.max)}function qS(a){lm(a.x),lm(a.y)}function sm(a,l,r){return a==="position"||a==="preserve-aspect"&&!Zb(Ph(l),Ph(r),.2)}function GS(a){return a!==a.root&&a.scroll?.wasRoot}const XS=Wh({attachResizeListener:(a,l)=>Ci(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vu={current:void 0},rm=Wh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Vu.current){const a=new XS({});a.mount(window),a.setOptions({layoutScroll:!0}),Vu.current=a}return Vu.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),kS={pan:{Feature:uS},drag:{Feature:rS,ProjectionNode:rm,MeasureLayout:wh}};function um(a,l,r){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,h=u[c];h&&Bt.postRender(()=>h(l,Oi(l)))}class KS extends xn{mount(){const{current:l}=this.node;l&&(this.unmount=m1(l,(r,u)=>(um(this.node,u,"Start"),c=>um(this.node,c,"End"))))}unmount(){}}class QS extends xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=gi(Ci(this.node.current,"focus",()=>this.onFocus()),Ci(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function om(a,l,r){const{props:u}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&u.whileTap&&a.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),h=u[c];h&&Bt.postRender(()=>h(l,Oi(l)))}class ZS extends xn{mount(){const{current:l}=this.node;l&&(this.unmount=v1(l,(r,u)=>(om(this.node,u,"Start"),(c,{success:h})=>om(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wu=new WeakMap,zu=new WeakMap,PS=a=>{const l=wu.get(a.target);l&&l(a)},JS=a=>{a.forEach(PS)};function FS({root:a,...l}){const r=a||document;zu.has(r)||zu.set(r,{});const u=zu.get(r),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(JS,{root:a,...l})),u[c]}function WS(a,l,r){const u=FS(l);return wu.set(a,r),u.observe(a),()=>{wu.delete(a),u.unobserve(a)}}const $S={some:0,all:1};class IS extends xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:r,margin:u,amount:c="some",once:h}=l,f={root:r?r.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:$S[c]},y=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),A=p?g:x;A&&A(m)};return WS(this.node.current,f,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some(tx(l,r))&&this.startObserver()}unmount(){}}function tx({viewport:a={}},{viewport:l={}}={}){return r=>a[r]!==l[r]}const ex={...qb,...{inView:{Feature:IS},tap:{Feature:ZS},focus:{Feature:QS},hover:{Feature:KS}},...kS,...{layout:{ProjectionNode:rm,MeasureLayout:wh}}},ee=ab(ex,yb),nx={display:"flex",minHeight:"60px",width:"100%",borderRadius:"6px",border:"1px solid #e2e8f0",backgroundColor:"transparent",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)",outline:"none",fontFamily:"inherit",resize:"vertical",transition:"border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out"},ax={borderColor:"#0f172a",boxShadow:"0 0 0 1px #0f172a"},ix="#64748b",Bu=pt.forwardRef(({style:a,onFocus:l,onBlur:r,...u},c)=>{const[h,f]=pt.useState(!1),y={...nx,...h?ax:{},...a,"--placeholder-color":ix};u.disabled&&(y.cursor="not-allowed",y.opacity=.5);const m=g=>{f(!0),l?.(g)},p=g=>{f(!1),r?.(g)};return X.jsxs(X.Fragment,{children:[X.jsx("style",{children:`
|
|
125
|
+
.textarea-with-placeholder::placeholder {
|
|
126
|
+
color: var(--placeholder-color);
|
|
127
|
+
}
|
|
128
|
+
`}),X.jsx("textarea",{className:"textarea-with-placeholder",style:y,ref:c,onFocus:m,onBlur:p,...u})]})});Bu.displayName="Textarea";const cm=pt.forwardRef(({texts:a,typingSpeed:l=30,deletingSpeed:r=15,delayAfterText:u=800,onSubmit:c,isStreaming:h=!1,className:f="",placeholderClassName:y="",value:m,onChange:p,onFocus:g,onBlur:x,onKeyDown:A,onPaste:w,placeholder:L,rows:K=1,...Z},Q)=>{const[q,G]=pt.useState(""),[I,Y]=pt.useState(!1),[F,et]=pt.useState(0),[W,gt]=pt.useState(!1),[St,vt]=pt.useState(!1),[xt,Vt]=pt.useState(!1),Kt=pt.useRef(null),Dt=Q||Kt,z=a[F],j=m===""||m===void 0;pt.useEffect(()=>{if(!j)return;let at;return W?(at=setTimeout(()=>{gt(!1),Vt(!0),vt(!0)},u),()=>clearTimeout(at)):xt?(at=setTimeout(()=>{vt(!1),setTimeout(()=>{Vt(!1),Y(!0)},300)},3e3),()=>clearTimeout(at)):(I?q===""?(Y(!1),et(T=>(T+1)%a.length)):at=setTimeout(()=>{G(T=>T.slice(0,-1))},r):q===z?gt(!0):at=setTimeout(()=>{G(z.slice(0,q.length+1))},l),()=>clearTimeout(at))},[q,I,F,W,xt,z,a,l,r,u,j]);const P=at=>{if(at.key==="Tab"&&j){at.preventDefault(),p?.({target:{value:z}});return}if(at.key==="Enter"){if(at.shiftKey||(at.preventDefault(),h))return;c?.(at)}A?.(at)};return X.jsxs("div",{style:{position:"relative",width:"100%"},children:[j&&X.jsx("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none",display:"flex",alignItems:"flex-start",paddingLeft:"4px",paddingRight:"4px",paddingTop:"0",paddingBottom:"0",marginTop:"4px"},children:X.jsxs("p",{style:{color:"#a1a1aa",fontWeight:"500",lineHeight:"1.5",...y?{}:{}},children:[q,X.jsx(R1,{children:St&&X.jsx(ee.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3},style:{fontSize:"12px",color:"#d1d5db",backgroundColor:"#27272a",paddingLeft:"6px",paddingRight:"6px",paddingTop:"2px",paddingBottom:"2px",borderRadius:"8px",border:"1px solid #3f3f46",alignItems:"center",marginLeft:"8px",display:"inline-flex",whiteSpace:"nowrap"},children:"Tab to select"})})]})}),X.jsx(Bu,{ref:Dt,placeholder:L,style:f?{}:{},value:m,onFocus:g,onBlur:x,onChange:p,onKeyDown:P,onPaste:w,rows:K,...Z})]})});cm.displayName="TypingTextarea";const lx={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",whiteSpace:"nowrap",borderRadius:"6px",fontSize:"14px",fontWeight:"500",transition:"colors 0.15s ease-in-out",outline:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},sx={default:{backgroundColor:"#0f172a",color:"#f8fafc",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},destructive:{backgroundColor:"#dc2626",color:"#fef2f2",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},outline:{border:"1px solid #e2e8f0",backgroundColor:"transparent",color:"#0f172a",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},secondary:{backgroundColor:"#f1f5f9",color:"#0f172a",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},ghost:{backgroundColor:"transparent",color:"#0f172a"},link:{backgroundColor:"transparent",color:"#0f172a",textDecoration:"underline",textUnderlineOffset:"4px"},ghostOutline:{border:"1px solid #f1f5f9",backgroundColor:"transparent",color:"#64748b",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"}},rx={default:{height:"36px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"8px",paddingBottom:"8px"},sm:{height:"32px",paddingLeft:"12px",paddingRight:"12px",fontSize:"12px"},lg:{height:"40px",paddingLeft:"32px",paddingRight:"32px"},icon:{height:"32px",width:"32px",padding:"0"}},ux=a=>{switch(a){case"default":return{backgroundColor:"#1e293b"};case"destructive":return{backgroundColor:"#b91c1c"};case"outline":return{backgroundColor:"#f1f5f9",color:"#0f172a"};case"secondary":return{backgroundColor:"#e2e8f0"};case"ghost":return{backgroundColor:"#f1f5f9",color:"#0f172a"};case"link":return{};case"ghostOutline":return{backgroundColor:"#f1f5f9",color:"#0f172a"};default:return{}}},Uu=pt.forwardRef(({variant:a="default",size:l="default",asChild:r=!1,style:u,onMouseEnter:c,onMouseLeave:h,...f},y)=>{const[m,p]=pt.useState(!1),g={...lx,...sx[a],...rx[l],...m?ux(a):{},...u};f.disabled&&(g.pointerEvents="none",g.opacity=.5);const x=w=>{p(!0),c?.(w)},A=w=>{p(!1),h?.(w)};return r&&console.warn("asChild prop is not supported in the inline CSS version of Button. Consider using a wrapper component instead."),X.jsx("button",{style:g,ref:y,onMouseEnter:x,onMouseLeave:A,...f})});Uu.displayName="Button";const ox=({isRecording:a,isTranscribing:l})=>l?X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsx(ee.div,{style:{width:"12px",height:"12px",border:"2px solid white",borderTop:"2px solid transparent",borderRadius:"50%"},animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}):a?X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsx(ee.div,{style:{width:"12px",height:"12px",backgroundColor:"white",borderRadius:"2px"},animate:{scale:[1,.95,1]},transition:{duration:1,repeat:1/0,ease:"easeInOut"}})}):X.jsx("div",{style:{position:"relative",width:"20px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"2px"},children:[X.jsx(ee.div,{style:{width:"1.5px",height:"8px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.4,.8,.4],opacity:[.6,.9,.6]},transition:{duration:1.8,repeat:1/0,ease:"easeInOut",delay:0}}),X.jsx(ee.div,{style:{width:"1.5px",height:"12px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.5,1,.5],opacity:[.7,1,.7]},transition:{duration:2.1,repeat:1/0,ease:"easeInOut",delay:.2}}),X.jsx(ee.div,{style:{width:"1.5px",height:"16px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.6,1,.6],opacity:[.8,1,.8]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut",delay:.4}}),X.jsx(ee.div,{style:{width:"1.5px",height:"12px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.5,.9,.5],opacity:[.7,1,.7]},transition:{duration:1.9,repeat:1/0,ease:"easeInOut",delay:.6}}),X.jsx(ee.div,{style:{width:"1.5px",height:"8px",backgroundColor:"currentColor",borderRadius:"999px"},animate:{scaleY:[.4,.7,.4],opacity:[.6,.9,.6]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut",delay:.8}})]})}),cx=({isRecording:a,isTranscribing:l,onVoiceRecording:r,playgroundUid:u,isLoggedIn:c=!1})=>X.jsx(Uu,{size:"sm",variant:"ghostOutline",style:{height:"32px",paddingLeft:"8px",paddingRight:"8px",fontSize:"12px",fontWeight:"500",transition:"all 0.2s ease-in-out",...a&&{backgroundColor:"#ef4444",borderColor:"#ef4444",boxShadow:"0 10px 15px -3px rgba(239, 68, 68, 0.25)",color:"white"},...l&&{backgroundColor:"#3b82f6",borderColor:"#3b82f6",boxShadow:"0 10px 15px -3px rgba(59, 130, 246, 0.25)",color:"white"}},onClick:()=>{c&&!l?r():c||(window.location.href="/sign-up")},disabled:l,children:X.jsx(ox,{isRecording:a,isTranscribing:l})}),fx=({isRecording:a,isTranscribing:l,onDismiss:r})=>a||l?X.jsx(ee.div,{style:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.2)"},onClick:l?void 0:r,children:X.jsx(ee.div,{style:{backdropFilter:"blur(4px)",borderRadius:"16px",padding:"32px",border:"1px solid",borderColor:"rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.12)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"},onClick:c=>c.stopPropagation(),children:X.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"24px"},children:l?X.jsxs(X.Fragment,{children:[X.jsx(ee.div,{style:{width:"64px",height:"64px",border:"4px solid",borderColor:"rgba(255, 255, 255, 0.3)",borderTopColor:"white",borderRadius:"50%"},animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx("h3",{style:{fontSize:"20px",fontWeight:"600",marginBottom:"8px",color:"white"},children:"Just a sec..."}),X.jsx("p",{style:{color:"rgba(255, 255, 255, 0.7)"},children:"Let me write that down for you"})]})]}):X.jsxs(X.Fragment,{children:[X.jsx("div",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:"128px",height:"64px"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[X.jsx(ee.div,{style:{width:"8px",height:"32px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.4,.8,.4],opacity:[.6,.9,.6]},transition:{duration:1.8,repeat:1/0,ease:"easeInOut",delay:0}}),X.jsx(ee.div,{style:{width:"8px",height:"48px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.5,1,.5],opacity:[.7,1,.7]},transition:{duration:2.1,repeat:1/0,ease:"easeInOut",delay:.2}}),X.jsx(ee.div,{style:{width:"8px",height:"64px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.6,1,.6],opacity:[.8,1,.8]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut",delay:.4}}),X.jsx(ee.div,{style:{width:"8px",height:"48px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.5,.9,.5],opacity:[.7,1,.7]},transition:{duration:1.9,repeat:1/0,ease:"easeInOut",delay:.6}}),X.jsx(ee.div,{style:{width:"8px",height:"32px",borderRadius:"999px",backgroundColor:"white"},animate:{scaleY:[.4,.7,.4],opacity:[.6,.9,.6]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut",delay:.8}})]})}),X.jsxs("div",{style:{textAlign:"center"},children:[X.jsx("h3",{style:{fontSize:"20px",fontWeight:"600",marginBottom:"8px",color:"white"},children:"I'm listening..."}),X.jsx("p",{style:{color:"rgba(255, 255, 255, 0.7)"},children:"Tell me what you'd like to build today"})]}),X.jsx(ee.button,{style:{paddingLeft:"24px",paddingRight:"24px",paddingTop:"12px",paddingBottom:"12px",backdropFilter:"blur(4px)",borderRadius:"12px",fontWeight:"500",transition:"all 0.15s ease",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",cursor:"pointer"},onClick:r,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Stop"})]})})})}):null,dx={ocean:{primary:"#1ca0fb",shadow:{light:"#dbeafe",dark:"#1e40af"},gradient:"radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent), radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent), radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent), radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316)",placeholderText:{light:"#60a5fa",dark:"#93c5fd"},tabHint:{text:{light:"#1e40af",dark:"#dbeafe"},bg:{light:"#eff6ff",dark:"#1e3a8a"},border:{light:"#bfdbfe",dark:"#1e40af"}}},autumn:{primary:"#f97316",shadow:{light:"#fed7aa",dark:"#c2410c"},gradient:"radial-gradient(circle farthest-side at 0 100%, #dc2626, transparent), radial-gradient(circle farthest-side at 100% 0, #f59e0b, transparent), radial-gradient(circle farthest-side at 100% 100%, #eab308, transparent), radial-gradient(circle farthest-side at 0 0, #f97316, #141316)",placeholderText:{light:"#fb923c",dark:"#fdba74"},tabHint:{text:{light:"#c2410c",dark:"#fed7aa"},bg:{light:"#fff7ed",dark:"#9a3412"},border:{light:"#fde68a",dark:"#c2410c"}}},mint:{primary:"#10b981",shadow:{light:"#a7f3d0",dark:"#047857"},gradient:"radial-gradient(circle farthest-side at 0 100%, #059669, transparent), radial-gradient(circle farthest-side at 100% 0, #06b6d4, transparent), radial-gradient(circle farthest-side at 100% 100%, #10b981, transparent), radial-gradient(circle farthest-side at 0 0, #14b8a6, #141316)",placeholderText:{light:"#34d399",dark:"#6ee7b7"},tabHint:{text:{light:"#047857",dark:"#a7f3d0"},bg:{light:"#ecfdf5",dark:"#064e3b"},border:{light:"#a7f3d0",dark:"#047857"}}},sunset:{primary:"#ec4899",shadow:{light:"#fce7f3",dark:"#be185d"},gradient:"radial-gradient(circle farthest-side at 0 100%, #f59e0b, transparent), radial-gradient(circle farthest-side at 100% 0, #ec4899, transparent), radial-gradient(circle farthest-side at 100% 100%, #f97316, transparent), radial-gradient(circle farthest-side at 0 0, #ef4444, #141316)",placeholderText:{light:"#f472b6",dark:"#f9a8d4"},tabHint:{text:{light:"#be185d",dark:"#fce7f3"},bg:{light:"#fdf2f8",dark:"#831843"},border:{light:"#fbcfe8",dark:"#be185d"}}},lavender:{primary:"#8b5cf6",shadow:{light:"#ddd6fe",dark:"#5b21b6"},gradient:"radial-gradient(circle farthest-side at 0 100%, #6366f1, transparent), radial-gradient(circle farthest-side at 100% 0, #a855f7, transparent), radial-gradient(circle farthest-side at 100% 100%, #ec4899, transparent), radial-gradient(circle farthest-side at 0 0, #8b5cf6, #141316)",placeholderText:{light:"#a78bfa",dark:"#c4b5fd"},tabHint:{text:{light:"#5b21b6",dark:"#ddd6fe"},bg:{light:"#f5f3ff",dark:"#4c1d95"},border:{light:"#ddd6fe",dark:"#5b21b6"}}},forest:{primary:"#16a34a",shadow:{light:"#bbf7d0",dark:"#15803d"},gradient:"radial-gradient(circle farthest-side at 0 100%, #059669, transparent), radial-gradient(circle farthest-side at 100% 0, #16a34a, transparent), radial-gradient(circle farthest-side at 100% 100%, #65a30d, transparent), radial-gradient(circle farthest-side at 0 0, #166534, #141316)",placeholderText:{light:"#4ade80",dark:"#86efac"},tabHint:{text:{light:"#15803d",dark:"#bbf7d0"},bg:{light:"#f0fdf4",dark:"#14532d"},border:{light:"#bbf7d0",dark:"#15803d"}}},coral:{primary:"#06b6d4",shadow:{light:"#a5f3fc",dark:"#0e7490"},gradient:"radial-gradient(circle farthest-side at 0 100%, #0891b2, transparent), radial-gradient(circle farthest-side at 100% 0, #06b6d4, transparent), radial-gradient(circle farthest-side at 100% 100%, #0d9488, transparent), radial-gradient(circle farthest-side at 0 0, #0284c7, #141316)",placeholderText:{light:"#22d3ee",dark:"#67e8f9"},tabHint:{text:{light:"#0e7490",dark:"#a5f3fc"},bg:{light:"#ecfeff",dark:"#164e63"},border:{light:"#a5f3fc",dark:"#0e7490"}}}},fm=a=>dx[a||"ocean"],hx=(a,l)=>a?fm(a):fm(),ju=({query:a,placeholder:l="Ask anything...",setQuery:r,onSubmit:u,isStreaming:c,height:h,hasPendingEnv:f,playgroundUid:y,hasTypingAnimation:m=!1,isSubmitting:p,onCancel:g,typingTexts:x=["Build me an AI chatbot application using OpenAI API","Build me an ecommerce website using Stripe API","Build me a price tracking tool using AgentQL API","Build me a movie recommendation system using Qdrant API","Build me a weather forecasting app using OpenWeather API","Build me a SMS notification system using Twilio API","Build me a travel booking platform using Skyscanner API"],shouldFocusOnMount:A=!0,showModelSelector:w=!0,projectUid:L,theme:K})=>{const[Z,Q]=pt.useState(!0),[q,G]=pt.useState(!1),[I,Y]=pt.useState(!1),[,F]=pt.useState(!1),[et,W]=pt.useState(null),[gt,St]=pt.useState(null),vt=pt.useRef(null),xt=pt.useRef([]);pt.useRef(null);const Vt=pt.useRef(null),[Kt,Dt]=pt.useState(!1),z=pt.useMemo(()=>hx(K),[K,y]);pt.useEffect(()=>{Dt(!0)},[]),pt.useEffect(()=>{A&&Vt.current&&Kt&&(Vt.current.focus(),Vt.current.select())},[Kt,A]);const j=()=>{Q(!0)},P=()=>{Q(!0)},at=()=>{const V=Vt.current;if(V){V.style.height="auto";const H=Math.min(V.scrollHeight,200);V.style.height=`${H}px`}};pt.useEffect(()=>{at()},[a]),pt.useEffect(()=>{const V=H=>{const J=(H.metaKey||H.ctrlKey)&&H.key==="/",k=(H.key==="Enter"||H.key==="Escape")&&(q||I);J?(H.preventDefault(),O()):k&&(H.preventDefault(),q&&!I&&O())};return document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)}},[q,I]),pt.useEffect(()=>()=>{et&&clearTimeout(et),vt.current&&q&&vt.current.stop(),F(!1)},[et,q]);const T=()=>{I||(q&&b(),F(!1))},b=async()=>{if(vt.current&&q)return G(!1),Y(!0),et&&(clearTimeout(et),W(null)),new Promise(V=>{if(vt.current){let H=!1,J;vt.current.ondataavailable=k=>{k.data.size>0&&(H=!0,xt.current.push(k.data))},vt.current.onstop=async()=>{J&&clearTimeout(J);try{if(!H||xt.current.length===0)throw new Error("No audio data recorded");const k=new Blob(xt.current,{type:"audio/wav"});if(k.size<1024)throw new Error("Audio recording too short");const yt=new FormData;yt.append("audio",k,"recording.wav");const rt=await fetch("/api/voice/transcribe",{method:"POST",body:yt});if(rt.ok){const{transcription:bt}=await rt.json();if(bt&&bt.trim()){const ne=a?`${a} ${bt}`:bt;r(ne.trim()),setTimeout(()=>{if(Vt.current){Vt.current.focus();const $n=Vt.current.value.length;Vt.current.setSelectionRange($n,$n)}},100)}}else throw new Error("Transcription failed")}catch(k){console.error("Transcription error:",k),k instanceof Error&&(k.message.includes("No audio data")||k.message.includes("too short"))}finally{xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()}},J=setTimeout(()=>{console.warn("MediaRecorder stop timeout, forcing cleanup"),xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()},5e3);try{vt.current.stop()}catch(k){console.error("Error stopping MediaRecorder:",k),J&&clearTimeout(J),xt.current=[],vt.current=null,St(null),Y(!1),F(!1),V()}}else St(null),Y(!1),F(!1),V()})},O=async()=>{if(!I)if(q)await b();else try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new Error("Browser doesn't support microphone access");const V=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),H=new MediaRecorder(V,{mimeType:MediaRecorder.isTypeSupported("audio/webm")?"audio/webm":"audio/mp4"});vt.current=H,xt.current=[],H.ondataavailable=k=>{k.data.size>0&&xt.current.push(k.data)},H.start(200),G(!0),St(Date.now()),F(!0);const J=setTimeout(async()=>{await b()},6e4);W(J)}catch(V){console.error("Microphone access error:",V),V instanceof Error&&(V.name==="NotAllowedError"||V.name==="NotFoundError"||V.name==="NotReadableError"||V.name)}};return X.jsxs("div",{children:[X.jsx(fx,{isRecording:q,isTranscribing:I,onDismiss:T}),X.jsxs("div",{style:{position:"relative",padding:"2px",width:"100%",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"},children:[X.jsx("div",{style:{backgroundColor:z.shadow.dark,position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",transition:"opacity 0.3s ease-in-out",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",opacity:"1",pointerEvents:"none"}}),X.jsx("div",{style:{background:z.gradient,backgroundSize:"400% 400%",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",zIndex:1,filter:"blur(12px)",transition:"opacity 0.3s ease-in-out",pointerEvents:"none",opacity:Z?"0.8":"0.4",animation:"gradient-bg 5s ease infinite"}}),X.jsx("div",{style:{background:z.gradient,backgroundSize:"400% 400%",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",borderRadius:"0.85rem",zIndex:1,transition:"opacity 0.3s ease-in-out",pointerEvents:"none",opacity:Z?"1":"0.7",animation:"gradient-bg 5s ease infinite"}}),X.jsx("div",{style:{position:"relative",zIndex:10,borderRadius:"0.75rem",backgroundColor:"rgb(24, 24, 27)",width:"100%",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"0.5rem",paddingBottom:"0.5rem"},children:X.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[X.jsxs("div",{style:{position:"relative",display:"flex",paddingLeft:"8px",paddingRight:"8px",gap:"8px",paddingTop:"4px",paddingBottom:"4px"},children:[m&&x.length>0?X.jsx(cm,{texts:x,ref:Vt,style:{flex:1,width:"100%",border:"none",boxShadow:"none",outline:"none",paddingLeft:"4px",paddingRight:"4px",resize:"none",fontSize:"16px",overflow:"hidden",backgroundColor:"transparent",display:"block",paddingTop:"0",paddingBottom:"0",lineHeight:"1.5",overflowY:"auto",maxHeight:"192px",marginTop:"4px",color:"#f4f4f5",fontFamily:"inherit"},value:a,onFocus:j,onBlur:P,onChange:V=>r(V.target.value),onSubmit:V=>{if(q||I){V.preventDefault();return}u(V)},isStreaming:c,rows:1}):X.jsx(Bu,{ref:Vt,placeholder:l,style:{flex:1,width:"100%",border:"none",boxShadow:"none",outline:"none",paddingLeft:"4px",paddingRight:"4px",resize:"none",fontSize:"16px",overflow:"hidden",backgroundColor:"transparent",display:"block",paddingTop:"0",paddingBottom:"0",lineHeight:"1.5",overflowY:"auto",maxHeight:"192px",marginTop:"4px",color:"#f4f4f5",fontFamily:"inherit"},value:a,onFocus:j,onBlur:P,onChange:V=>r(V.target.value),onKeyDown:V=>{if(V.key==="Enter"){if(V.shiftKey||(V.preventDefault(),c))return;u(V)}},rows:1}),X.jsxs("div",{children:[X.jsx(cx,{isRecording:q,isTranscribing:I,onVoiceRecording:O,playgroundUid:y}),X.jsx(Uu,{style:{height:"32px",width:"32px",borderRadius:"6px"},disabled:a.length===0||p||f,variant:c?"outline":"default",onClick:V=>{c&&g?g():u(V)},children:p?X.jsx(Eg,{style:{height:"20px",width:"20px",animation:"spin 1s linear infinite"}}):c?X.jsx(Ag,{style:{height:"24px",width:"24px"}}):X.jsx(Tg,{style:{height:"20px",width:"20px"}})})]})]}),X.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"8px",paddingRight:"8px"},children:X.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:w&&X.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px"}})})})]})}),X.jsx("style",{children:`
|
|
129
|
+
@keyframes gradient-bg {
|
|
130
|
+
0%,
|
|
131
|
+
100% {
|
|
132
|
+
background-position: 0% 50%;
|
|
133
|
+
}
|
|
134
|
+
50% {
|
|
135
|
+
background-position: 100% 50%;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@keyframes spin {
|
|
139
|
+
from {
|
|
140
|
+
transform: rotate(0deg);
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
transform: rotate(360deg);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`})]})]})};function mx(){const a=document.createElement("div");return a.id="sampleapp-button-"+Date.now(),document.body.appendChild(a),a}function Nu(a,l){const r=l||document.body,u=document.createElement("div");u.id="sampleapp-modal-"+Date.now(),r.appendChild(u);const c=cf.createRoot(u),h=nf.createElement(pg,{settings:a,onClose:()=>{c.unmount(),u.remove()}});return c.render(h),{unmount:()=>{c.unmount(),u.remove()},show:()=>{u.style.display="block"},hide:()=>{u.style.display="none"}}}function Lu(a,l){const r=l||mx(),u=cf.createRoot(r),c=nf.createElement(mg,{settings:a});return u.render(c),{unmount:()=>{u.unmount(),r.remove()}}}const px={ModalSearchAndChat:Nu,ChatButton:Lu,ChatBar:ju};typeof window<"u"&&(window.SampleApp={ModalSearchAndChat:Nu,ChatButton:Lu,ChatBar:ju}),$e.ChatBar=ju,$e.ChatButton=Lu,$e.ModalSearchAndChat=Nu,$e.default=px,Object.defineProperties($e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|