var xd=t=>{throw TypeError(t)};var Gs=(t,e,n)=>e.has(t)||xd("Cannot "+n);var T=(t,e,n)=>(Gs(t,e,"read from private field"),n?n.call(t):e.get(t)),F=(t,e,n)=>e.has(t)?xd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Y=(t,e,n,a)=>(Gs(t,e,"write to private field"),a?a.call(t,n):e.set(t,n),n),Lt=(t,e,n)=>(Gs(t,e,"access private method"),n);var Dr=(t,e,n,a)=>({set _(l){Y(t,e,l,n)},get _(){return T(t,e,a)}});function Xp(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in t)){const i=Object.getOwnPropertyDescriptor(a,l);i&&Object.defineProperty(t,l,i.get?i:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Xm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zm={exports:{}},rs={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zp=Symbol.for("react.transitional.element"),kp=Symbol.for("react.fragment");function km(t,e,n){var a=null;if(n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),"key"in e){n={};for(var l in e)l!=="key"&&(n[l]=e[l])}else n=e;return e=n.ref,{$$typeof:Zp,type:t,key:a,ref:e!==void 0?e:null,props:n}}rs.Fragment=kp;rs.jsx=km;rs.jsxs=km;Zm.exports=rs;var b=Zm.exports,Km={exports:{}},os={},Pm={exports:{}},Jm={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(t){function e(C,U){var M=C.length;C.push(U);t:for(;0<M;){var D=M-1>>>1,L=C[D];if(0<l(L,U))C[D]=U,C[M]=L,M=D;else break t}}function n(C){return C.length===0?null:C[0]}function a(C){if(C.length===0)return null;var U=C[0],M=C.pop();if(M!==U){C[0]=M;t:for(var D=0,L=C.length,gt=L>>>1;D<gt;){var P=2*(D+1)-1,W=C[P],$=P+1,Et=C[$];if(0>l(W,M))$<L&&0>l(Et,W)?(C[D]=Et,C[$]=M,D=$):(C[D]=W,C[P]=M,D=P);else if($<L&&0>l(Et,M))C[D]=Et,C[$]=M,D=$;else break t}}return U}function l(C,U){var M=C.sortIndex-U.sortIndex;return M!==0?M:C.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var r=Date,o=r.now();t.unstable_now=function(){return r.now()-o}}var s=[],u=[],f=1,h=null,d=3,c=!1,w=!1,y=!1,x=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function S(C){for(var U=n(u);U!==null;){if(U.callback===null)a(u);else if(U.startTime<=C)a(u),U.sortIndex=U.expirationTime,e(s,U);else break;U=n(u)}}function E(C){if(y=!1,S(C),!w)if(n(s)!==null)w=!0,O||(O=!0,H());else{var U=n(u);U!==null&&ut(E,U.startTime-C)}}var O=!1,A=-1,R=5,z=-1;function _(){return x?!0:!(t.unstable_now()-z<R)}function Q(){if(x=!1,O){var C=t.unstable_now();z=C;var U=!0;try{t:{w=!1,y&&(y=!1,v(A),A=-1),c=!0;var M=d;try{e:{for(S(C),h=n(s);h!==null&&!(h.expirationTime>C&&_());){var D=h.callback;if(typeof D=="function"){h.callback=null,d=h.priorityLevel;var L=D(h.expirationTime<=C);if(C=t.unstable_now(),typeof L=="function"){h.callback=L,S(C),U=!0;break e}h===n(s)&&a(s),S(C)}else a(s);h=n(s)}if(h!==null)U=!0;else{var gt=n(u);gt!==null&&ut(E,gt.startTime-C),U=!1}}break t}finally{h=null,d=M,c=!1}U=void 0}}finally{U?H():O=!1}}}var H;if(typeof p=="function")H=function(){p(Q)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,K=et.port2;et.port1.onmessage=Q,H=function(){K.postMessage(null)}}else H=function(){m(Q,0)};function ut(C,U){A=m(function(){C(t.unstable_now())},U)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_next=function(C){switch(d){case 1:case 2:case 3:var U=3;break;default:U=d}var M=d;d=U;try{return C()}finally{d=M}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(C,U){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var M=d;d=C;try{return U()}finally{d=M}},t.unstable_scheduleCallback=function(C,U,M){var D=t.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?D+M:D):M=D,C){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=M+L,C={id:f++,callback:U,priorityLevel:C,startTime:M,expirationTime:L,sortIndex:-1},M>D?(C.sortIndex=M,e(u,C),n(s)===null&&C===n(u)&&(y?(v(A),A=-1):y=!0,ut(E,M-D))):(C.sortIndex=L,e(s,C),w||c||(w=!0,O||(O=!0,H()))),C},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(C){var U=d;return function(){var M=d;d=U;try{return C.apply(this,arguments)}finally{d=M}}}})(Jm);Pm.exports=Jm;var Kp=Pm.exports,$m={exports:{}},V={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pc=Symbol.for("react.transitional.element"),Pp=Symbol.for("react.portal"),Jp=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Fp=Symbol.for("react.profiler"),Wp=Symbol.for("react.consumer"),Ip=Symbol.for("react.context"),tb=Symbol.for("react.forward_ref"),eb=Symbol.for("react.suspense"),nb=Symbol.for("react.memo"),Fm=Symbol.for("react.lazy"),Sd=Symbol.iterator;function ab(t){return t===null||typeof t!="object"?null:(t=Sd&&t[Sd]||t["@@iterator"],typeof t=="function"?t:null)}var Wm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Im=Object.assign,tv={};function ei(t,e,n){this.props=t,this.context=e,this.refs=tv,this.updater=n||Wm}ei.prototype.isReactComponent={};ei.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ei.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function ev(){}ev.prototype=ei.prototype;function Jc(t,e,n){this.props=t,this.context=e,this.refs=tv,this.updater=n||Wm}var $c=Jc.prototype=new ev;$c.constructor=Jc;Im($c,ei.prototype);$c.isPureReactComponent=!0;var wd=Array.isArray,vt={H:null,A:null,T:null,S:null,V:null},nv=Object.prototype.hasOwnProperty;function Fc(t,e,n,a,l,i){return n=i.ref,{$$typeof:Pc,type:t,key:e,ref:n!==void 0?n:null,props:i}}function lb(t,e){return Fc(t.type,e,void 0,void 0,void 0,t.props)}function Wc(t){return typeof t=="object"&&t!==null&&t.$$typeof===Pc}function ib(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Ed=/\/+/g;function Qs(t,e){return typeof t=="object"&&t!==null&&t.key!=null?ib(""+t.key):e.toString(36)}function Ad(){}function rb(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Ad,Ad):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function ll(t,e,n,a,l){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var r=!1;if(t===null)r=!0;else switch(i){case"bigint":case"string":case"number":r=!0;break;case"object":switch(t.$$typeof){case Pc:case Pp:r=!0;break;case Fm:return r=t._init,ll(r(t._payload),e,n,a,l)}}if(r)return l=l(t),r=a===""?"."+Qs(t,0):a,wd(l)?(n="",r!=null&&(n=r.replace(Ed,"$&/")+"/"),ll(l,e,n,"",function(u){return u})):l!=null&&(Wc(l)&&(l=lb(l,n+(l.key==null||t&&t.key===l.key?"":(""+l.key).replace(Ed,"$&/")+"/")+r)),e.push(l)),1;r=0;var o=a===""?".":a+":";if(wd(t))for(var s=0;s<t.length;s++)a=t[s],i=o+Qs(a,s),r+=ll(a,e,n,i,l);else if(s=ab(t),typeof s=="function")for(t=s.call(t),s=0;!(a=t.next()).done;)a=a.value,i=o+Qs(a,s++),r+=ll(a,e,n,i,l);else if(i==="object"){if(typeof t.then=="function")return ll(rb(t),e,n,a,l);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return r}function jr(t,e,n){if(t==null)return t;var a=[],l=0;return ll(t,a,"","",function(i){return e.call(n,i,l++)}),a}function ob(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Td=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function sb(){}V.Children={map:jr,forEach:function(t,e,n){jr(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return jr(t,function(){e++}),e},toArray:function(t){return jr(t,function(e){return e})||[]},only:function(t){if(!Wc(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};V.Component=ei;V.Fragment=Jp;V.Profiler=Fp;V.PureComponent=Jc;V.StrictMode=$p;V.Suspense=eb;V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=vt;V.__COMPILER_RUNTIME={__proto__:null,c:function(t){return vt.H.useMemoCache(t)}};V.cache=function(t){return function(){return t.apply(null,arguments)}};V.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=Im({},t.props),l=t.key,i=void 0;if(e!=null)for(r in e.ref!==void 0&&(i=void 0),e.key!==void 0&&(l=""+e.key),e)!nv.call(e,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&e.ref===void 0||(a[r]=e[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var o=Array(r),s=0;s<r;s++)o[s]=arguments[s+2];a.children=o}return Fc(t.type,l,void 0,void 0,i,a)};V.createContext=function(t){return t={$$typeof:Ip,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Wp,_context:t},t};V.createElement=function(t,e,n){var a,l={},i=null;if(e!=null)for(a in e.key!==void 0&&(i=""+e.key),e)nv.call(e,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(l[a]=e[a]);var r=arguments.length-2;if(r===1)l.children=n;else if(1<r){for(var o=Array(r),s=0;s<r;s++)o[s]=arguments[s+2];l.children=o}if(t&&t.defaultProps)for(a in r=t.defaultProps,r)l[a]===void 0&&(l[a]=r[a]);return Fc(t,i,void 0,void 0,null,l)};V.createRef=function(){return{current:null}};V.forwardRef=function(t){return{$$typeof:tb,render:t}};V.isValidElement=Wc;V.lazy=function(t){return{$$typeof:Fm,_payload:{_status:-1,_result:t},_init:ob}};V.memo=function(t,e){return{$$typeof:nb,type:t,compare:e===void 0?null:e}};V.startTransition=function(t){var e=vt.T,n={};vt.T=n;try{var a=t(),l=vt.S;l!==null&&l(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(sb,Td)}catch(i){Td(i)}finally{vt.T=e}};V.unstable_useCacheRefresh=function(){return vt.H.useCacheRefresh()};V.use=function(t){return vt.H.use(t)};V.useActionState=function(t,e,n){return vt.H.useActionState(t,e,n)};V.useCallback=function(t,e){return vt.H.useCallback(t,e)};V.useContext=function(t){return vt.H.useContext(t)};V.useDebugValue=function(){};V.useDeferredValue=function(t,e){return vt.H.useDeferredValue(t,e)};V.useEffect=function(t,e,n){var a=vt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return a.useEffect(t,e)};V.useId=function(){return vt.H.useId()};V.useImperativeHandle=function(t,e,n){return vt.H.useImperativeHandle(t,e,n)};V.useInsertionEffect=function(t,e){return vt.H.useInsertionEffect(t,e)};V.useLayoutEffect=function(t,e){return vt.H.useLayoutEffect(t,e)};V.useMemo=function(t,e){return vt.H.useMemo(t,e)};V.useOptimistic=function(t,e){return vt.H.useOptimistic(t,e)};V.useReducer=function(t,e,n){return vt.H.useReducer(t,e,n)};V.useRef=function(t){return vt.H.useRef(t)};V.useState=function(t){return vt.H.useState(t)};V.useSyncExternalStore=function(t,e,n){return vt.H.useSyncExternalStore(t,e,n)};V.useTransition=function(){return vt.H.useTransition()};V.version="19.1.1";$m.exports=V;var g=$m.exports;const j=Xm(g),Ic=Xp({__proto__:null,default:j},[g]);var av={exports:{}},kt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ub=g;function lv(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Mn(){}var Zt={d:{f:Mn,r:function(){throw Error(lv(522))},D:Mn,C:Mn,L:Mn,m:Mn,X:Mn,S:Mn,M:Mn},p:0,findDOMNode:null},cb=Symbol.for("react.portal");function fb(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cb,key:a==null?null:""+a,children:t,containerInfo:e,implementation:n}}var Ri=ub.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ss(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;kt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(lv(299));return fb(t,e,null,n)};kt.flushSync=function(t){var e=Ri.T,n=Zt.p;try{if(Ri.T=null,Zt.p=2,t)return t()}finally{Ri.T=e,Zt.p=n,Zt.d.f()}};kt.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Zt.d.C(t,e))};kt.prefetchDNS=function(t){typeof t=="string"&&Zt.d.D(t)};kt.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,a=ss(n,e.crossOrigin),l=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?Zt.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:l,fetchPriority:i}):n==="script"&&Zt.d.X(t,{crossOrigin:a,integrity:l,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};kt.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=ss(e.as,e.crossOrigin);Zt.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Zt.d.M(t)};kt.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,a=ss(n,e.crossOrigin);Zt.d.L(t,n,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};kt.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=ss(e.as,e.crossOrigin);Zt.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Zt.d.m(t)};kt.requestFormReset=function(t){Zt.d.r(t)};kt.unstable_batchedUpdates=function(t,e){return t(e)};kt.useFormState=function(t,e,n){return Ri.H.useFormState(t,e,n)};kt.useFormStatus=function(){return Ri.H.useHostTransitionStatus()};kt.version="19.1.1";function iv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iv)}catch(t){console.error(t)}}iv(),av.exports=kt;var us=av.exports;const rv=Xm(us);/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Mt=Kp,ov=g,db=us;function N(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 sv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function cr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function uv(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 Nd(t){if(cr(t)!==t)throw Error(N(188))}function hb(t){var e=t.alternate;if(!e){if(e=cr(t),e===null)throw Error(N(188));return e!==t?null:t}for(var n=t,a=e;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Nd(l),t;if(i===a)return Nd(l),e;i=i.sibling}throw Error(N(188))}if(n.return!==a.return)n=l,a=i;else{for(var r=!1,o=l.child;o;){if(o===n){r=!0,n=l,a=i;break}if(o===a){r=!0,a=l,n=i;break}o=o.sibling}if(!r){for(o=i.child;o;){if(o===n){r=!0,n=i,a=l;break}if(o===a){r=!0,a=i,n=l;break}o=o.sibling}if(!r)throw Error(N(189))}}if(n.alternate!==a)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?t:e}function cv(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=cv(t),e!==null)return e;t=t.sibling}return null}var dt=Object.assign,mb=Symbol.for("react.element"),_r=Symbol.for("react.transitional.element"),Ei=Symbol.for("react.portal"),sl=Symbol.for("react.fragment"),fv=Symbol.for("react.strict_mode"),Lu=Symbol.for("react.profiler"),vb=Symbol.for("react.provider"),dv=Symbol.for("react.consumer"),un=Symbol.for("react.context"),tf=Symbol.for("react.forward_ref"),qu=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),ef=Symbol.for("react.memo"),Bn=Symbol.for("react.lazy"),Gu=Symbol.for("react.activity"),yb=Symbol.for("react.memo_cache_sentinel"),Od=Symbol.iterator;function hi(t){return t===null||typeof t!="object"?null:(t=Od&&t[Od]||t["@@iterator"],typeof t=="function"?t:null)}var gb=Symbol.for("react.client.reference");function Qu(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===gb?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sl:return"Fragment";case Lu:return"Profiler";case fv:return"StrictMode";case qu:return"Suspense";case Yu:return"SuspenseList";case Gu:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Ei:return"Portal";case un:return(t.displayName||"Context")+".Provider";case dv:return(t._context.displayName||"Context")+".Consumer";case tf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ef:return e=t.displayName||null,e!==null?e:Qu(t.type)||"Memo";case Bn:e=t._payload,t=t._init;try{return Qu(t(e))}catch{}}return null}var Ai=Array.isArray,B=ov.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt=db.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ra={pending:!1,data:null,method:null,action:null},Vu=[],ul=-1;function We(t){return{current:t}}function zt(t){0>ul||(t.current=Vu[ul],Vu[ul]=null,ul--)}function yt(t,e){ul++,Vu[ul]=t.current,t.current=e}var Ke=We(null),Xi=We(null),In=We(null),xo=We(null);function So(t,e){switch(yt(In,e),yt(Xi,t),yt(Ke,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?jh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=jh(e),t=Ry(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}zt(Ke),yt(Ke,t)}function Gl(){zt(Ke),zt(Xi),zt(In)}function Xu(t){t.memoizedState!==null&&yt(xo,t);var e=Ke.current,n=Ry(e,t.type);e!==n&&(yt(Xi,t),yt(Ke,n))}function wo(t){Xi.current===t&&(zt(Ke),zt(Xi)),xo.current===t&&(zt(xo),tr._currentValue=Ra)}var Zu=Object.prototype.hasOwnProperty,nf=Mt.unstable_scheduleCallback,Vs=Mt.unstable_cancelCallback,pb=Mt.unstable_shouldYield,bb=Mt.unstable_requestPaint,Pe=Mt.unstable_now,xb=Mt.unstable_getCurrentPriorityLevel,hv=Mt.unstable_ImmediatePriority,mv=Mt.unstable_UserBlockingPriority,Eo=Mt.unstable_NormalPriority,Sb=Mt.unstable_LowPriority,vv=Mt.unstable_IdlePriority,wb=Mt.log,Eb=Mt.unstable_setDisableYieldValue,fr=null,oe=null;function Pn(t){if(typeof wb=="function"&&Eb(t),oe&&typeof oe.setStrictMode=="function")try{oe.setStrictMode(fr,t)}catch{}}var se=Math.clz32?Math.clz32:Nb,Ab=Math.log,Tb=Math.LN2;function Nb(t){return t>>>=0,t===0?32:31-(Ab(t)/Tb|0)|0}var zr=256,Ur=4194304;function ba(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 cs(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var l=0,i=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?l=ba(a):(r&=o,r!==0?l=ba(r):n||(n=o&~t,n!==0&&(l=ba(n))))):(o=a&~i,o!==0?l=ba(o):r!==0?l=ba(r):n||(n=a&~t,n!==0&&(l=ba(n)))),l===0?0:e!==0&&e!==l&&!(e&i)&&(i=l&-l,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:l}function dr(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ob(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 yv(){var t=zr;return zr<<=1,!(zr&4194048)&&(zr=256),t}function gv(){var t=Ur;return Ur<<=1,!(Ur&62914560)&&(Ur=4194304),t}function Xs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function hr(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Cb(t,e,n,a,l,i){var r=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 o=t.entanglements,s=t.expirationTimes,u=t.hiddenUpdates;for(n=r&~n;0<n;){var f=31-se(n),h=1<<f;o[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var c=d[f];c!==null&&(c.lane&=-536870913)}n&=~h}a!==0&&pv(t,a,0),i!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=i&~(r&~e))}function pv(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&4194090}function bv(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-se(n),l=1<<a;l&e|t[a]&e&&(t[a]|=e),n&=~l}}function af(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 lf(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function xv(){var t=tt.p;return t!==0?t:(t=window.event,t===void 0?32:qy(t.type))}function Rb(t,e){var n=tt.p;try{return tt.p=t,e()}finally{tt.p=n}}var ha=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ha,It="__reactProps$"+ha,ni="__reactContainer$"+ha,ku="__reactEvents$"+ha,Mb="__reactListeners$"+ha,Db="__reactHandles$"+ha,Cd="__reactResources$"+ha,mr="__reactMarker$"+ha;function rf(t){delete t[Yt],delete t[It],delete t[ku],delete t[Mb],delete t[Db]}function cl(t){var e=t[Yt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ni]||n[Yt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Uh(t);t!==null;){if(n=t[Yt])return n;t=Uh(t)}return e}t=n,n=t.parentNode}return null}function ai(t){if(t=t[Yt]||t[ni]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Ti(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(N(33))}function xl(t){var e=t[Cd];return e||(e=t[Cd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function jt(t){t[mr]=!0}var Sv=new Set,wv={};function Qa(t,e){Ql(t,e),Ql(t+"Capture",e)}function Ql(t,e){for(wv[t]=e,t=0;t<e.length;t++)Sv.add(e[t])}var jb=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]*$"),Rd={},Md={};function _b(t){return Zu.call(Md,t)?!0:Zu.call(Rd,t)?!1:jb.test(t)?Md[t]=!0:(Rd[t]=!0,!1)}function no(t,e,n){if(_b(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Hr(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 en(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}var Zs,Dd;function il(t){if(Zs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Zs=e&&e[1]||"",Dd=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zs+t+Dd}var ks=!1;function Ks(t,e){if(!t||ks)return"";ks=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(c){var d=c}Reflect.construct(t,[],h)}else{try{h.call()}catch(c){d=c}t.call(h.prototype)}}else{try{throw Error()}catch(c){d=c}(h=t())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(c){if(c&&d&&typeof c.stack=="string")return[c.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),r=i[0],o=i[1];if(r&&o){var s=r.split(`
`),u=o.split(`
`);for(l=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;if(a===s.length||l===u.length)for(a=s.length-1,l=u.length-1;1<=a&&0<=l&&s[a]!==u[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==u[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==u[l]){var f=`
`+s[a].replace(" at new "," at ");return t.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",t.displayName)),f}while(1<=a&&0<=l);break}}}finally{ks=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?il(n):""}function zb(t){switch(t.tag){case 26:case 27:case 5:return il(t.type);case 16:return il("Lazy");case 13:return il("Suspense");case 19:return il("SuspenseList");case 0:case 15:return Ks(t.type,!1);case 11:return Ks(t.type.render,!1);case 1:return Ks(t.type,!0);case 31:return il("Activity");default:return""}}function jd(t){try{var e="";do e+=zb(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ev(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Ub(t){var e=Ev(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(r){a=""+r,i.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ao(t){t._valueTracker||(t._valueTracker=Ub(t))}function Av(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Ev(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function To(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 Hb=/[\n"\\]/g;function be(t){return t.replace(Hb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ku(t,e,n,a,l,i,r,o){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ye(e)):t.value!==""+ye(e)&&(t.value=""+ye(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Pu(t,r,ye(e)):n!=null?Pu(t,r,ye(n)):a!=null&&t.removeAttribute("value"),l==null&&i!=null&&(t.defaultChecked=!!i),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ye(o):t.removeAttribute("name")}function Tv(t,e,n,a,l,i,r,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null))return;n=n!=null?""+ye(n):"",e=e!=null?""+ye(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r)}function Pu(t,e,n){e==="number"&&To(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Sl(t,e,n,a){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&a&&(t[n].defaultSelected=!0)}else{for(n=""+ye(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,a&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Nv(t,e,n){if(e!=null&&(e=""+ye(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ye(n):""}function Ov(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(N(92));if(Ai(a)){if(1<a.length)throw Error(N(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=ye(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a)}function Vl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Bb=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 _d(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Bb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Cv(t,e,n){if(e!=null&&typeof e!="object")throw Error(N(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var l in e)a=e[l],e.hasOwnProperty(l)&&n[l]!==a&&_d(t,l,a)}else for(var i in e)e.hasOwnProperty(i)&&_d(t,i,e[i])}function of(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 Lb=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"]]),qb=/^[\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 ao(t){return qb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Ju=null;function sf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fl=null,wl=null;function zd(t){var e=ai(t);if(e&&(t=e.stateNode)){var n=t[It]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ku(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="'+be(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var l=a[It]||null;if(!l)throw Error(N(90));Ku(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Av(a)}break t;case"textarea":Nv(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Sl(t,!!n.multiple,e,!1)}}}var Ps=!1;function Rv(t,e,n){if(Ps)return t(e,n);Ps=!0;try{var a=t(e);return a}finally{if(Ps=!1,(fl!==null||wl!==null)&&(xs(),fl&&(e=fl,t=wl,wl=fl=null,zd(e),t)))for(e=0;e<t.length;e++)zd(t[e])}}function Zi(t,e){var n=t.stateNode;if(n===null)return null;var a=n[It]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(N(231,e,typeof n));return n}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=!1;if(yn)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){$u=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{$u=!1}var Jn=null,uf=null,lo=null;function Mv(){if(lo)return lo;var t,e=uf,n=e.length,a,l="value"in Jn?Jn.value:Jn.textContent,i=l.length;for(t=0;t<n&&e[t]===l[t];t++);var r=n-t;for(a=1;a<=r&&e[n-a]===l[i-a];a++);return lo=l.slice(t,1<a?1-a:void 0)}function io(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 Br(){return!0}function Ud(){return!1}function ee(t){function e(n,a,l,i,r){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Br:Ud,this.isPropagationStopped=Ud,this}return dt(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=Br)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Br)},persist:function(){},isPersistent:Br}),e}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=ee(Va),vr=dt({},Va,{view:0,detail:0}),Yb=ee(vr),Js,$s,vi,ds=dt({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cf,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!==vi&&(vi&&t.type==="mousemove"?(Js=t.screenX-vi.screenX,$s=t.screenY-vi.screenY):$s=Js=0,vi=t),Js)},movementY:function(t){return"movementY"in t?t.movementY:$s}}),Hd=ee(ds),Gb=dt({},ds,{dataTransfer:0}),Qb=ee(Gb),Vb=dt({},vr,{relatedTarget:0}),Fs=ee(Vb),Xb=dt({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),Zb=ee(Xb),kb=dt({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kb=ee(kb),Pb=dt({},Va,{data:0}),Bd=ee(Pb),Jb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$b={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"},Fb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Fb[t])?!!e[t]:!1}function cf(){return Wb}var Ib=dt({},vr,{key:function(t){if(t.key){var e=Jb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=io(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$b[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cf,charCode:function(t){return t.type==="keypress"?io(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?io(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),t1=ee(Ib),e1=dt({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ld=ee(e1),n1=dt({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cf}),a1=ee(n1),l1=dt({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),i1=ee(l1),r1=dt({},ds,{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}),o1=ee(r1),s1=dt({},Va,{newState:0,oldState:0}),u1=ee(s1),c1=[9,13,27,32],ff=yn&&"CompositionEvent"in window,Mi=null;yn&&"documentMode"in document&&(Mi=document.documentMode);var f1=yn&&"TextEvent"in window&&!Mi,Dv=yn&&(!ff||Mi&&8<Mi&&11>=Mi),qd=" ",Yd=!1;function jv(t,e){switch(t){case"keyup":return c1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _v(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var dl=!1;function d1(t,e){switch(t){case"compositionend":return _v(e);case"keypress":return e.which!==32?null:(Yd=!0,qd);case"textInput":return t=e.data,t===qd&&Yd?null:t;default:return null}}function h1(t,e){if(dl)return t==="compositionend"||!ff&&jv(t,e)?(t=Mv(),lo=uf=Jn=null,dl=!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 Dv&&e.locale!=="ko"?null:e.data;default:return null}}var m1={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 Gd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!m1[t.type]:e==="textarea"}function zv(t,e,n,a){fl?wl?wl.push(a):wl=[a]:fl=a,e=Vo(e,"onChange"),0<e.length&&(n=new fs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Di=null,ki=null;function v1(t){Ny(t,0)}function hs(t){var e=Ti(t);if(Av(e))return t}function Qd(t,e){if(t==="change")return e}var Uv=!1;if(yn){var Ws;if(yn){var Is="oninput"in document;if(!Is){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Is=typeof Vd.oninput=="function"}Ws=Is}else Ws=!1;Uv=Ws&&(!document.documentMode||9<document.documentMode)}function Xd(){Di&&(Di.detachEvent("onpropertychange",Hv),ki=Di=null)}function Hv(t){if(t.propertyName==="value"&&hs(ki)){var e=[];zv(e,ki,t,sf(t)),Rv(v1,e)}}function y1(t,e,n){t==="focusin"?(Xd(),Di=e,ki=n,Di.attachEvent("onpropertychange",Hv)):t==="focusout"&&Xd()}function g1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return hs(ki)}function p1(t,e){if(t==="click")return hs(e)}function b1(t,e){if(t==="input"||t==="change")return hs(e)}function x1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var de=typeof Object.is=="function"?Object.is:x1;function Ki(t,e){if(de(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Zu.call(e,l)||!de(t[l],e[l]))return!1}return!0}function Zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kd(t,e){var n=Zd(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Zd(n)}}function Bv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bv(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Lv(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=To(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=To(t.document)}return e}function df(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 S1=yn&&"documentMode"in document&&11>=document.documentMode,hl=null,Fu=null,ji=null,Wu=!1;function Kd(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wu||hl==null||hl!==To(a)||(a=hl,"selectionStart"in a&&df(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}),ji&&Ki(ji,a)||(ji=a,a=Vo(Fu,"onSelect"),0<a.length&&(e=new fs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=hl)))}function pa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ml={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},tu={},qv={};yn&&(qv=document.createElement("div").style,"AnimationEvent"in window||(delete ml.animationend.animation,delete ml.animationiteration.animation,delete ml.animationstart.animation),"TransitionEvent"in window||delete ml.transitionend.transition);function Xa(t){if(tu[t])return tu[t];if(!ml[t])return t;var e=ml[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in qv)return tu[t]=e[n];return t}var Yv=Xa("animationend"),Gv=Xa("animationiteration"),Qv=Xa("animationstart"),w1=Xa("transitionrun"),E1=Xa("transitionstart"),A1=Xa("transitioncancel"),Vv=Xa("transitionend"),Xv=new Map,Iu="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(" ");Iu.push("scrollEnd");function Ue(t,e){Xv.set(t,e),Qa(e,[t])}var Pd=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=Pd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:jd(e)},Pd.set(t,e),e)}return{value:t,source:e,stack:jd(e)}}var ve=[],vl=0,hf=0;function ms(){for(var t=vl,e=hf=vl=0;e<t;){var n=ve[e];ve[e++]=null;var a=ve[e];ve[e++]=null;var l=ve[e];ve[e++]=null;var i=ve[e];if(ve[e++]=null,a!==null&&l!==null){var r=a.pending;r===null?l.next=l:(l.next=r.next,r.next=l),a.pending=l}i!==0&&Zv(n,l,i)}}function vs(t,e,n,a){ve[vl++]=t,ve[vl++]=e,ve[vl++]=n,ve[vl++]=a,hf|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function mf(t,e,n,a){return vs(t,e,n,a),No(t)}function li(t,e){return vs(t,null,null,e),No(t)}function Zv(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=t.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(l=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,l&&e!==null&&(l=31-se(n),t=i.hiddenUpdates,a=t[l],a===null?t[l]=[e]:a.push(e),e.lane=n|536870912),i):null}function No(t){if(50<Qi)throw Qi=0,xc=null,Error(N(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var yl={};function T1(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function re(t,e,n,a){return new T1(t,e,n,a)}function vf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mn(t,e){var n=t.alternate;return n===null?(n=re(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 kv(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 ro(t,e,n,a,l,i){var r=0;if(a=t,typeof t=="function")vf(t)&&(r=1);else if(typeof t=="string")r=Ox(t,n,Ke.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Gu:return t=re(31,n,e,l),t.elementType=Gu,t.lanes=i,t;case sl:return Ma(n.children,l,i,e);case fv:r=8,l|=24;break;case Lu:return t=re(12,n,e,l|2),t.elementType=Lu,t.lanes=i,t;case qu:return t=re(13,n,e,l),t.elementType=qu,t.lanes=i,t;case Yu:return t=re(19,n,e,l),t.elementType=Yu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case vb:case un:r=10;break t;case dv:r=9;break t;case tf:r=11;break t;case ef:r=14;break t;case Bn:r=16,a=null;break t}r=29,n=Error(N(130,t===null?"null":typeof t,"")),a=null}return e=re(r,n,e,l),e.elementType=t,e.type=a,e.lanes=i,e}function Ma(t,e,n,a){return t=re(7,t,a,e),t.lanes=n,t}function eu(t,e,n){return t=re(6,t,null,e),t.lanes=n,t}function nu(t,e,n){return e=re(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var gl=[],pl=0,Oo=null,Co=0,ge=[],pe=0,Da=null,cn=1,fn="";function xa(t,e){gl[pl++]=Co,gl[pl++]=Oo,Oo=t,Co=e}function Kv(t,e,n){ge[pe++]=cn,ge[pe++]=fn,ge[pe++]=Da,Da=t;var a=cn;t=fn;var l=32-se(a)-1;a&=~(1<<l),n+=1;var i=32-se(e)+l;if(30<i){var r=l-l%5;i=(a&(1<<r)-1).toString(32),a>>=r,l-=r,cn=1<<32-se(e)+l|n<<l|a,fn=i+t}else cn=1<<i|n<<l|a,fn=t}function yf(t){t.return!==null&&(xa(t,1),Kv(t,1,0))}function gf(t){for(;t===Oo;)Oo=gl[--pl],gl[pl]=null,Co=gl[--pl],gl[pl]=null;for(;t===Da;)Da=ge[--pe],ge[pe]=null,fn=ge[--pe],ge[pe]=null,cn=ge[--pe],ge[pe]=null}var Xt=null,St=null,I=!1,ja=null,Qe=!1,tc=Error(N(519));function Ha(t){var e=Error(N(418,""));throw Pi(xe(e,t)),tc}function Jd(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Yt]=t,e[It]=a,n){case"dialog":Z("cancel",e),Z("close",e);break;case"iframe":case"object":case"embed":Z("load",e);break;case"video":case"audio":for(n=0;n<Fi.length;n++)Z(Fi[n],e);break;case"source":Z("error",e);break;case"img":case"image":case"link":Z("error",e),Z("load",e);break;case"details":Z("toggle",e);break;case"input":Z("invalid",e),Tv(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ao(e);break;case"select":Z("invalid",e);break;case"textarea":Z("invalid",e),Ov(e,a.value,a.defaultValue,a.children),Ao(e)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Cy(e.textContent,n)?(a.popover!=null&&(Z("beforetoggle",e),Z("toggle",e)),a.onScroll!=null&&Z("scroll",e),a.onScrollEnd!=null&&Z("scrollend",e),a.onClick!=null&&(e.onclick=Es),e=!0):e=!1,e||Ha(t)}function $d(t){for(Xt=t.return;Xt;)switch(Xt.tag){case 5:case 13:Qe=!1;return;case 27:case 3:Qe=!0;return;default:Xt=Xt.return}}function yi(t){if(t!==Xt)return!1;if(!I)return $d(t),I=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Nc(t.type,t.memoizedProps)),n=!n),n&&St&&Ha(t),$d(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){St=je(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}St=null}}else e===27?(e=St,ma(t.type)?(t=Rc,Rc=null,St=t):St=e):St=Xt?je(t.stateNode.nextSibling):null;return!0}function yr(){St=Xt=null,I=!1}function Fd(){var t=ja;return t!==null&&($t===null?$t=t:$t.push.apply($t,t),ja=null),t}function Pi(t){ja===null?ja=[t]:ja.push(t)}var ec=We(null),Za=null,dn=null;function qn(t,e,n){yt(ec,e._currentValue),e._currentValue=n}function vn(t){t._currentValue=ec.current,zt(ec)}function nc(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function ac(t,e,n,a){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){var r=l.child;i=i.firstContext;t:for(;i!==null;){var o=i;i=l;for(var s=0;s<e.length;s++)if(o.context===e[s]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),nc(i.return,n,t),a||(r=null);break t}i=o.next}}else if(l.tag===18){if(r=l.return,r===null)throw Error(N(341));r.lanes|=n,i=r.alternate,i!==null&&(i.lanes|=n),nc(r,n,t),r=null}else r=l.child;if(r!==null)r.return=l;else for(r=l;r!==null;){if(r===t){r=null;break}if(l=r.sibling,l!==null){l.return=r.return,r=l;break}r=r.return}l=r}}function gr(t,e,n,a){t=null;for(var l=e,i=!1;l!==null;){if(!i){if(l.flags&524288)i=!0;else if(l.flags&262144)break}if(l.tag===10){var r=l.alternate;if(r===null)throw Error(N(387));if(r=r.memoizedProps,r!==null){var o=l.type;de(l.pendingProps.value,r.value)||(t!==null?t.push(o):t=[o])}}else if(l===xo.current){if(r=l.alternate,r===null)throw Error(N(387));r.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(tr):t=[tr])}l=l.return}t!==null&&ac(e,t,n,a),e.flags|=262144}function Ro(t){for(t=t.firstContext;t!==null;){if(!de(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ba(t){Za=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Gt(t){return Pv(Za,t)}function Lr(t,e){return Za===null&&Ba(t),Pv(t,e)}function Pv(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(N(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var N1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},O1=Mt.unstable_scheduleCallback,C1=Mt.unstable_NormalPriority,Ct={$$typeof:un,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pf(){return{controller:new N1,data:new Map,refCount:0}}function pr(t){t.refCount--,t.refCount===0&&O1(C1,function(){t.controller.abort()})}var _i=null,lc=0,Xl=0,El=null;function R1(t,e){if(_i===null){var n=_i=[];lc=0,Xl=Gf(),El={status:"pending",value:void 0,then:function(a){n.push(a)}}}return lc++,e.then(Wd,Wd),e}function Wd(){if(--lc===0&&_i!==null){El!==null&&(El.status="fulfilled");var t=_i;_i=null,Xl=0,El=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function M1(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Id=B.S;B.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&R1(t,e),Id!==null&&Id(t,e)};var _a=We(null);function bf(){var t=_a.current;return t!==null?t:st.pooledCache}function oo(t,e){e===null?yt(_a,_a.current):yt(_a,e.pool)}function Jv(){var t=bf();return t===null?null:{parent:Ct._currentValue,pool:t}}var br=Error(N(460)),$v=Error(N(474)),ys=Error(N(542)),ic={then:function(){}};function th(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qr(){}function Fv(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(qr,qr),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t;default:if(typeof e.status=="string")e.then(qr,qr);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(N(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=a}},function(a){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t}throw zi=e,br}}var zi=null;function eh(){if(zi===null)throw Error(N(459));var t=zi;return zi=null,t}function nh(t){if(t===br||t===ys)throw Error(N(483))}var Ln=!1;function xf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rc(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 ta(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ea(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,at&2){var l=a.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),a.pending=e,e=No(t),Zv(t,null,n),e}return vs(t,a,e,n),No(t)}function Ui(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,bv(t,n)}}function au(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=r:i=i.next=r,n=n.next}while(n!==null);i===null?l=i=e:i=i.next=e}else l=i=e;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Hi(){if(oc){var t=El;if(t!==null)throw t}}function Bi(t,e,n,a){oc=!1;var l=t.updateQueue;Ln=!1;var i=l.firstBaseUpdate,r=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,u=s.next;s.next=null,r===null?i=u:r.next=u,r=s;var f=t.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==r&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=s))}if(i!==null){var h=l.baseState;r=0,f=u=s=null,o=i;do{var d=o.lane&-536870913,c=d!==o.lane;if(c?(J&d)===d:(a&d)===d){d!==0&&d===Xl&&(oc=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var w=t,y=o;d=e;var x=n;switch(y.tag){case 1:if(w=y.payload,typeof w=="function"){h=w.call(x,h,d);break t}h=w;break t;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,d=typeof w=="function"?w.call(x,h,d):w,d==null)break t;h=dt({},h,d);break t;case 2:Ln=!0}}d=o.callback,d!==null&&(t.flags|=64,c&&(t.flags|=8192),c=l.callbacks,c===null?l.callbacks=[d]:c.push(d))}else c={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,s=h):f=f.next=c,r|=d;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;c=o,o=c.next,c.next=null,l.lastBaseUpdate=c,l.shared.pending=null}}while(!0);f===null&&(s=h),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=f,i===null&&(l.shared.lanes=0),ua|=r,t.lanes=r,t.memoizedState=h}}function Wv(t,e){if(typeof t!="function")throw Error(N(191,t));t.call(e)}function Iv(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Wv(n[t],e)}var Zl=We(null),Mo=We(0);function ah(t,e){t=bn,yt(Mo,t),yt(Zl,e),bn=t|e.baseLanes}function sc(){yt(Mo,bn),yt(Zl,Zl.current)}function Sf(){bn=Mo.current,zt(Zl),zt(Mo)}var oa=0,X=null,rt=null,Nt=null,Do=!1,Al=!1,La=!1,jo=0,Ji=0,Tl=null,D1=0;function At(){throw Error(N(321))}function wf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!de(t[n],e[n]))return!1;return!0}function Ef(t,e,n,a,l,i){return oa=i,X=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,B.H=t===null||t.memoizedState===null?M0:D0,La=!1,i=n(a,l),La=!1,Al&&(i=e0(e,n,a,l)),t0(t),i}function t0(t){B.H=_o;var e=rt!==null&&rt.next!==null;if(oa=0,Nt=rt=X=null,Do=!1,Ji=0,Tl=null,e)throw Error(N(300));t===null||_t||(t=t.dependencies,t!==null&&Ro(t)&&(_t=!0))}function e0(t,e,n,a){X=t;var l=0;do{if(Al&&(Tl=null),Ji=0,Al=!1,25<=l)throw Error(N(301));if(l+=1,Nt=rt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}B.H=L1,i=e(n,a)}while(Al);return i}function j1(){var t=B.H,e=t.useState()[0];return e=typeof e.then=="function"?xr(e):e,t=t.useState()[0],(rt!==null?rt.memoizedState:null)!==t&&(X.flags|=1024),e}function Af(){var t=jo!==0;return jo=0,t}function Tf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Nf(t){if(Do){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Do=!1}oa=0,Nt=rt=X=null,Al=!1,Ji=jo=0,Tl=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?X.memoizedState=Nt=t:Nt=Nt.next=t,Nt}function Ot(){if(rt===null){var t=X.alternate;t=t!==null?t.memoizedState:null}else t=rt.next;var e=Nt===null?X.memoizedState:Nt.next;if(e!==null)Nt=e,rt=t;else{if(t===null)throw X.alternate===null?Error(N(467)):Error(N(310));rt=t,t={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Nt===null?X.memoizedState=Nt=t:Nt=Nt.next=t}return Nt}function Of(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xr(t){var e=Ji;return Ji+=1,Tl===null&&(Tl=[]),t=Fv(Tl,t,e),e=X,(Nt===null?e.memoizedState:Nt.next)===null&&(e=e.alternate,B.H=e===null||e.memoizedState===null?M0:D0),t}function gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xr(t);if(t.$$typeof===un)return Gt(t)}throw Error(N(438,String(t)))}function Cf(t){var e=null,n=X.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=X.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Of(),X.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=yb;return e.index++,n}function gn(t,e){return typeof e=="function"?e(t):e}function so(t){var e=Ot();return Rf(e,rt,t)}function Rf(t,e,n){var a=t.queue;if(a===null)throw Error(N(311));a.lastRenderedReducer=n;var l=t.baseQueue,i=a.pending;if(i!==null){if(l!==null){var r=l.next;l.next=i.next,i.next=r}e.baseQueue=l=i,a.pending=null}if(i=t.baseState,l===null)t.memoizedState=i;else{e=l.next;var o=r=null,s=null,u=e,f=!1;do{var h=u.lane&-536870913;if(h!==u.lane?(J&h)===h:(oa&h)===h){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Xl&&(f=!0);else if((oa&d)===d){u=u.next,d===Xl&&(f=!0);continue}else h={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=h,r=i):s=s.next=h,X.lanes|=d,ua|=d;h=u.action,La&&n(i,h),i=u.hasEagerState?u.eagerState:n(i,h)}else d={lane:h,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,r=i):s=s.next=d,X.lanes|=h,ua|=h;u=u.next}while(u!==null&&u!==e);if(s===null?r=i:s.next=o,!de(i,t.memoizedState)&&(_t=!0,f&&(n=El,n!==null)))throw n;t.memoizedState=i,t.baseState=r,t.baseQueue=s,a.lastRenderedState=i}return l===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function lu(t){var e=Ot(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var a=n.dispatch,l=n.pending,i=e.memoizedState;if(l!==null){n.pending=null;var r=l=l.next;do i=t(i,r.action),r=r.next;while(r!==l);de(i,e.memoizedState)||(_t=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,a]}function n0(t,e,n){var a=X,l=Ot(),i=I;if(i){if(n===void 0)throw Error(N(407));n=n()}else n=e();var r=!de((rt||l).memoizedState,n);r&&(l.memoizedState=n,_t=!0),l=l.queue;var o=i0.bind(null,a,l,t);if(Sr(2048,8,o,[t]),l.getSnapshot!==e||r||Nt!==null&&Nt.memoizedState.tag&1){if(a.flags|=2048,kl(9,ps(),l0.bind(null,a,l,n,e),null),st===null)throw Error(N(349));i||oa&124||a0(a,e,n)}return n}function a0(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=X.updateQueue,e===null?(e=Of(),X.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function l0(t,e,n,a){e.value=n,e.getSnapshot=a,r0(e)&&o0(t)}function i0(t,e,n){return n(function(){r0(e)&&o0(t)})}function r0(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!de(t,n)}catch{return!0}}function o0(t){var e=li(t,2);e!==null&&ce(e,t,2)}function uc(t){var e=Pt();if(typeof t=="function"){var n=t;if(t=n(),La){Pn(!0);try{n()}finally{Pn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:t},e}function s0(t,e,n,a){return t.baseState=n,Rf(t,rt,typeof a=="function"?a:gn)}function _1(t,e,n,a,l){if(bs(t))throw Error(N(485));if(t=e.action,t!==null){var i={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};B.T!==null?n(!0):i.isTransition=!1,a(i),n=e.pending,n===null?(i.next=e.pending=i,u0(e,i)):(i.next=n.next,e.pending=n.next=i)}}function u0(t,e){var n=e.action,a=e.payload,l=t.state;if(e.isTransition){var i=B.T,r={};B.T=r;try{var o=n(l,a),s=B.S;s!==null&&s(r,o),lh(t,e,o)}catch(u){cc(t,e,u)}finally{B.T=i}}else try{i=n(l,a),lh(t,e,i)}catch(u){cc(t,e,u)}}function lh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ih(t,e,a)},function(a){return cc(t,e,a)}):ih(t,e,n)}function ih(t,e,n){e.status="fulfilled",e.value=n,c0(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,u0(t,n)))}function cc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,c0(e),e=e.next;while(e!==a)}t.action=null}function c0(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function f0(t,e){return e}function rh(t,e){if(I){var n=st.formState;if(n!==null){t:{var a=X;if(I){if(St){e:{for(var l=St,i=Qe;l.nodeType!==8;){if(!i){l=null;break e}if(l=je(l.nextSibling),l===null){l=null;break e}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){St=je(l.nextSibling),a=l.data==="F!";break t}}Ha(a)}a=!1}a&&(e=n[0])}}return n=Pt(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f0,lastRenderedState:e},n.queue=a,n=O0.bind(null,X,a),a.dispatch=n,a=uc(!1),i=_f.bind(null,X,!1,a.queue),a=Pt(),l={state:e,dispatch:null,action:t,pending:null},a.queue=l,n=_1.bind(null,X,l,i,n),l.dispatch=n,a.memoizedState=t,[e,n,!1]}function oh(t){var e=Ot();return d0(e,rt,t)}function d0(t,e,n){if(e=Rf(t,e,f0)[0],t=so(gn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=xr(e)}catch(r){throw r===br?ys:r}else a=e;e=Ot();var l=e.queue,i=l.dispatch;return n!==e.memoizedState&&(X.flags|=2048,kl(9,ps(),z1.bind(null,l,n),null)),[a,i,t]}function z1(t,e){t.action=e}function sh(t){var e=Ot(),n=rt;if(n!==null)return d0(e,n,t);Ot(),e=e.memoizedState,n=Ot();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function kl(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=X.updateQueue,e===null&&(e=Of(),X.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function ps(){return{destroy:void 0,resource:void 0}}function h0(){return Ot().memoizedState}function uo(t,e,n,a){var l=Pt();a=a===void 0?null:a,X.flags|=t,l.memoizedState=kl(1|e,ps(),n,a)}function Sr(t,e,n,a){var l=Ot();a=a===void 0?null:a;var i=l.memoizedState.inst;rt!==null&&a!==null&&wf(a,rt.memoizedState.deps)?l.memoizedState=kl(e,i,n,a):(X.flags|=t,l.memoizedState=kl(1|e,i,n,a))}function uh(t,e){uo(8390656,8,t,e)}function m0(t,e){Sr(2048,8,t,e)}function v0(t,e){return Sr(4,2,t,e)}function y0(t,e){return Sr(4,4,t,e)}function g0(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 p0(t,e,n){n=n!=null?n.concat([t]):null,Sr(4,4,g0.bind(null,e,t),n)}function Mf(){}function b0(t,e){var n=Ot();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&wf(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function x0(t,e){var n=Ot();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&wf(e,a[1]))return a[0];if(a=t(),La){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a}function Df(t,e,n){return n===void 0||oa&1073741824?t.memoizedState=e:(t.memoizedState=n,t=cy(),X.lanes|=t,ua|=t,n)}function S0(t,e,n,a){return de(n,e)?n:Zl.current!==null?(t=Df(t,n,a),de(t,e)||(_t=!0),t):oa&42?(t=cy(),X.lanes|=t,ua|=t,e):(_t=!0,t.memoizedState=n)}function w0(t,e,n,a,l){var i=tt.p;tt.p=i!==0&&8>i?i:8;var r=B.T,o={};B.T=o,_f(t,!1,e,n);try{var s=l(),u=B.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=M1(s,a);Li(t,e,f,ue(t))}else Li(t,e,a,ue(t))}catch(h){Li(t,e,{then:function(){},status:"rejected",reason:h},ue())}finally{tt.p=i,B.T=r}}function U1(){}function fc(t,e,n,a){if(t.tag!==5)throw Error(N(476));var l=E0(t).queue;w0(t,l,e,Ra,n===null?U1:function(){return A0(t),n(a)})}function E0(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Ra,baseState:Ra,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:Ra},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function A0(t){var e=E0(t).next.queue;Li(t,e,{},ue())}function jf(){return Gt(tr)}function T0(){return Ot().memoizedState}function N0(){return Ot().memoizedState}function H1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ue();t=ta(n);var a=ea(e,t,n);a!==null&&(ce(a,e,n),Ui(a,e,n)),e={cache:pf()},t.payload=e;return}e=e.return}}function B1(t,e,n){var a=ue();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},bs(t)?C0(e,n):(n=mf(t,e,n,a),n!==null&&(ce(n,t,a),R0(n,e,a)))}function O0(t,e,n){var a=ue();Li(t,e,n,a)}function Li(t,e,n,a){var l={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(t))C0(e,l);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var r=e.lastRenderedState,o=i(r,n);if(l.hasEagerState=!0,l.eagerState=o,de(o,r))return vs(t,e,l,0),st===null&&ms(),!1}catch{}finally{}if(n=mf(t,e,l,a),n!==null)return ce(n,t,a),R0(n,e,a),!0}return!1}function _f(t,e,n,a){if(a={lane:2,revertLane:Gf(),action:a,hasEagerState:!1,eagerState:null,next:null},bs(t)){if(e)throw Error(N(479))}else e=mf(t,n,a,2),e!==null&&ce(e,t,2)}function bs(t){var e=t.alternate;return t===X||e!==null&&e===X}function C0(t,e){Al=Do=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function R0(t,e,n){if(n&4194048){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,bv(t,n)}}var _o={readContext:Gt,use:gs,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At},M0={readContext:Gt,use:gs,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Gt,useEffect:uh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,uo(4194308,4,g0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return uo(4194308,4,t,e)},useInsertionEffect:function(t,e){uo(4,2,t,e)},useMemo:function(t,e){var n=Pt();e=e===void 0?null:e;var a=t();if(La){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Pt();if(n!==void 0){var l=n(e);if(La){Pn(!0);try{n(e)}finally{Pn(!1)}}}else l=e;return a.memoizedState=a.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},a.queue=t,t=t.dispatch=B1.bind(null,X,t),[a.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=uc(t);var e=t.queue,n=O0.bind(null,X,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Mf,useDeferredValue:function(t,e){var n=Pt();return Df(n,t,e)},useTransition:function(){var t=uc(!1);return t=w0.bind(null,X,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=X,l=Pt();if(I){if(n===void 0)throw Error(N(407));n=n()}else{if(n=e(),st===null)throw Error(N(349));J&124||a0(a,e,n)}l.memoizedState=n;var i={value:n,getSnapshot:e};return l.queue=i,uh(i0.bind(null,a,i,t),[t]),a.flags|=2048,kl(9,ps(),l0.bind(null,a,i,n,e),null),n},useId:function(){var t=Pt(),e=st.identifierPrefix;if(I){var n=fn,a=cn;n=(a&~(1<<32-se(a)-1)).toString(32)+n,e="«"+e+"R"+n,n=jo++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=D1++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:jf,useFormState:rh,useActionState:rh,useOptimistic:function(t){var e=Pt();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=_f.bind(null,X,!0,n),n.dispatch=e,[t,e]},useMemoCache:Cf,useCacheRefresh:function(){return Pt().memoizedState=H1.bind(null,X)}},D0={readContext:Gt,use:gs,useCallback:b0,useContext:Gt,useEffect:m0,useImperativeHandle:p0,useInsertionEffect:v0,useLayoutEffect:y0,useMemo:x0,useReducer:so,useRef:h0,useState:function(){return so(gn)},useDebugValue:Mf,useDeferredValue:function(t,e){var n=Ot();return S0(n,rt.memoizedState,t,e)},useTransition:function(){var t=so(gn)[0],e=Ot().memoizedState;return[typeof t=="boolean"?t:xr(t),e]},useSyncExternalStore:n0,useId:T0,useHostTransitionStatus:jf,useFormState:oh,useActionState:oh,useOptimistic:function(t,e){var n=Ot();return s0(n,rt,t,e)},useMemoCache:Cf,useCacheRefresh:N0},L1={readContext:Gt,use:gs,useCallback:b0,useContext:Gt,useEffect:m0,useImperativeHandle:p0,useInsertionEffect:v0,useLayoutEffect:y0,useMemo:x0,useReducer:lu,useRef:h0,useState:function(){return lu(gn)},useDebugValue:Mf,useDeferredValue:function(t,e){var n=Ot();return rt===null?Df(n,t,e):S0(n,rt.memoizedState,t,e)},useTransition:function(){var t=lu(gn)[0],e=Ot().memoizedState;return[typeof t=="boolean"?t:xr(t),e]},useSyncExternalStore:n0,useId:T0,useHostTransitionStatus:jf,useFormState:sh,useActionState:sh,useOptimistic:function(t,e){var n=Ot();return rt!==null?s0(n,rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Cf,useCacheRefresh:N0},Nl=null,$i=0;function Yr(t){var e=$i;return $i+=1,Nl===null&&(Nl=[]),Fv(Nl,t,e)}function gi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Gr(t,e){throw e.$$typeof===mb?Error(N(525)):(t=Object.prototype.toString.call(e),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ch(t){var e=t._init;return e(t._payload)}function j0(t){function e(m,v){if(t){var p=m.deletions;p===null?(m.deletions=[v],m.flags|=16):p.push(v)}}function n(m,v){if(!t)return null;for(;v!==null;)e(m,v),v=v.sibling;return null}function a(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function l(m,v){return m=mn(m,v),m.index=0,m.sibling=null,m}function i(m,v,p){return m.index=p,t?(p=m.alternate,p!==null?(p=p.index,p<v?(m.flags|=67108866,v):p):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function r(m){return t&&m.alternate===null&&(m.flags|=67108866),m}function o(m,v,p,S){return v===null||v.tag!==6?(v=eu(p,m.mode,S),v.return=m,v):(v=l(v,p),v.return=m,v)}function s(m,v,p,S){var E=p.type;return E===sl?f(m,v,p.props.children,S,p.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Bn&&ch(E)===v.type)?(v=l(v,p.props),gi(v,p),v.return=m,v):(v=ro(p.type,p.key,p.props,null,m.mode,S),gi(v,p),v.return=m,v)}function u(m,v,p,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==p.containerInfo||v.stateNode.implementation!==p.implementation?(v=nu(p,m.mode,S),v.return=m,v):(v=l(v,p.children||[]),v.return=m,v)}function f(m,v,p,S,E){return v===null||v.tag!==7?(v=Ma(p,m.mode,S,E),v.return=m,v):(v=l(v,p),v.return=m,v)}function h(m,v,p){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=eu(""+v,m.mode,p),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _r:return p=ro(v.type,v.key,v.props,null,m.mode,p),gi(p,v),p.return=m,p;case Ei:return v=nu(v,m.mode,p),v.return=m,v;case Bn:var S=v._init;return v=S(v._payload),h(m,v,p)}if(Ai(v)||hi(v))return v=Ma(v,m.mode,p,null),v.return=m,v;if(typeof v.then=="function")return h(m,Yr(v),p);if(v.$$typeof===un)return h(m,Lr(m,v),p);Gr(m,v)}return null}function d(m,v,p,S){var E=v!==null?v.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return E!==null?null:o(m,v,""+p,S);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:return p.key===E?s(m,v,p,S):null;case Ei:return p.key===E?u(m,v,p,S):null;case Bn:return E=p._init,p=E(p._payload),d(m,v,p,S)}if(Ai(p)||hi(p))return E!==null?null:f(m,v,p,S,null);if(typeof p.then=="function")return d(m,v,Yr(p),S);if(p.$$typeof===un)return d(m,v,Lr(m,p),S);Gr(m,p)}return null}function c(m,v,p,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(p)||null,o(v,m,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _r:return m=m.get(S.key===null?p:S.key)||null,s(v,m,S,E);case Ei:return m=m.get(S.key===null?p:S.key)||null,u(v,m,S,E);case Bn:var O=S._init;return S=O(S._payload),c(m,v,p,S,E)}if(Ai(S)||hi(S))return m=m.get(p)||null,f(v,m,S,E,null);if(typeof S.then=="function")return c(m,v,p,Yr(S),E);if(S.$$typeof===un)return c(m,v,p,Lr(v,S),E);Gr(v,S)}return null}function w(m,v,p,S){for(var E=null,O=null,A=v,R=v=0,z=null;A!==null&&R<p.length;R++){A.index>R?(z=A,A=null):z=A.sibling;var _=d(m,A,p[R],S);if(_===null){A===null&&(A=z);break}t&&A&&_.alternate===null&&e(m,A),v=i(_,v,R),O===null?E=_:O.sibling=_,O=_,A=z}if(R===p.length)return n(m,A),I&&xa(m,R),E;if(A===null){for(;R<p.length;R++)A=h(m,p[R],S),A!==null&&(v=i(A,v,R),O===null?E=A:O.sibling=A,O=A);return I&&xa(m,R),E}for(A=a(A);R<p.length;R++)z=c(A,m,R,p[R],S),z!==null&&(t&&z.alternate!==null&&A.delete(z.key===null?R:z.key),v=i(z,v,R),O===null?E=z:O.sibling=z,O=z);return t&&A.forEach(function(Q){return e(m,Q)}),I&&xa(m,R),E}function y(m,v,p,S){if(p==null)throw Error(N(151));for(var E=null,O=null,A=v,R=v=0,z=null,_=p.next();A!==null&&!_.done;R++,_=p.next()){A.index>R?(z=A,A=null):z=A.sibling;var Q=d(m,A,_.value,S);if(Q===null){A===null&&(A=z);break}t&&A&&Q.alternate===null&&e(m,A),v=i(Q,v,R),O===null?E=Q:O.sibling=Q,O=Q,A=z}if(_.done)return n(m,A),I&&xa(m,R),E;if(A===null){for(;!_.done;R++,_=p.next())_=h(m,_.value,S),_!==null&&(v=i(_,v,R),O===null?E=_:O.sibling=_,O=_);return I&&xa(m,R),E}for(A=a(A);!_.done;R++,_=p.next())_=c(A,m,R,_.value,S),_!==null&&(t&&_.alternate!==null&&A.delete(_.key===null?R:_.key),v=i(_,v,R),O===null?E=_:O.sibling=_,O=_);return t&&A.forEach(function(H){return e(m,H)}),I&&xa(m,R),E}function x(m,v,p,S){if(typeof p=="object"&&p!==null&&p.type===sl&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:t:{for(var E=p.key;v!==null;){if(v.key===E){if(E=p.type,E===sl){if(v.tag===7){n(m,v.sibling),S=l(v,p.props.children),S.return=m,m=S;break t}}else if(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Bn&&ch(E)===v.type){n(m,v.sibling),S=l(v,p.props),gi(S,p),S.return=m,m=S;break t}n(m,v);break}else e(m,v);v=v.sibling}p.type===sl?(S=Ma(p.props.children,m.mode,S,p.key),S.return=m,m=S):(S=ro(p.type,p.key,p.props,null,m.mode,S),gi(S,p),S.return=m,m=S)}return r(m);case Ei:t:{for(E=p.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){n(m,v.sibling),S=l(v,p.children||[]),S.return=m,m=S;break t}else{n(m,v);break}else e(m,v);v=v.sibling}S=nu(p,m.mode,S),S.return=m,m=S}return r(m);case Bn:return E=p._init,p=E(p._payload),x(m,v,p,S)}if(Ai(p))return w(m,v,p,S);if(hi(p)){if(E=hi(p),typeof E!="function")throw Error(N(150));return p=E.call(p),y(m,v,p,S)}if(typeof p.then=="function")return x(m,v,Yr(p),S);if(p.$$typeof===un)return x(m,v,Lr(m,p),S);Gr(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,v!==null&&v.tag===6?(n(m,v.sibling),S=l(v,p),S.return=m,m=S):(n(m,v),S=eu(p,m.mode,S),S.return=m,m=S),r(m)):n(m,v)}return function(m,v,p,S){try{$i=0;var E=x(m,v,p,S);return Nl=null,E}catch(A){if(A===br||A===ys)throw A;var O=re(29,A,null,m.mode);return O.lanes=S,O.return=m,O}finally{}}}var Kl=j0(!0),_0=j0(!1),we=We(null),Je=null;function Yn(t){var e=t.alternate;yt(Rt,Rt.current&1),yt(we,t),Je===null&&(e===null||Zl.current!==null||e.memoizedState!==null)&&(Je=t)}function z0(t){if(t.tag===22){if(yt(Rt,Rt.current),yt(we,t),Je===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Je=t)}}else Gn()}function Gn(){yt(Rt,Rt.current),yt(we,we.current)}function hn(t){zt(we),Je===t&&(Je=null),zt(Rt)}var Rt=We(0);function zo(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==="$?"||Cc(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)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 iu(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:dt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var dc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=ue(),l=ta(a);l.payload=e,n!=null&&(l.callback=n),e=ea(t,l,a),e!==null&&(ce(e,t,a),Ui(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=ue(),l=ta(a);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=ea(t,l,a),e!==null&&(ce(e,t,a),Ui(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ue(),a=ta(n);a.tag=2,e!=null&&(a.callback=e),e=ea(t,a,n),e!==null&&(ce(e,t,n),Ui(e,t,n))}};function fh(t,e,n,a,l,i,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,r):e.prototype&&e.prototype.isPureReactComponent?!Ki(n,a)||!Ki(l,i):!0}function dh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&dc.enqueueReplaceState(e,e.state,null)}function qa(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=dt({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}var Uo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function U0(t){Uo(t)}function H0(t){console.error(t)}function B0(t){Uo(t)}function Ho(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function hh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function hc(t,e,n){return n=ta(n),n.tag=3,n.payload={element:null},n.callback=function(){Ho(t,e)},n}function L0(t){return t=ta(t),t.tag=3,t}function q0(t,e,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;t.payload=function(){return l(i)},t.callback=function(){hh(e,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){hh(e,n,a),typeof l!="function"&&(na===null?na=new Set([this]):na.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function q1(t,e,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&gr(e,n,l,!0),n=we.current,n!==null){switch(n.tag){case 13:return Je===null?Sc():n.alternate===null&&wt===0&&(wt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===ic?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),yu(t,a,l)),!1;case 22:return n.flags|=65536,a===ic?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),yu(t,a,l)),!1}throw Error(N(435,n.tag))}return yu(t,a,l),Sc(),!1}if(I)return e=we.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=l,a!==tc&&(t=Error(N(422),{cause:a}),Pi(xe(t,n)))):(a!==tc&&(e=Error(N(423),{cause:a}),Pi(xe(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,a=xe(a,n),l=hc(t.stateNode,a,l),au(t,l),wt!==4&&(wt=2)),!1;var i=Error(N(520),{cause:a});if(i=xe(i,n),Gi===null?Gi=[i]:Gi.push(i),wt!==4&&(wt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=hc(n.stateNode,a,t),au(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(na===null||!na.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=L0(l),q0(l,t,n,a),au(n,l),!1}n=n.return}while(n!==null);return!1}var Y0=Error(N(461)),_t=!1;function Ut(t,e,n,a){e.child=t===null?_0(e,null,n,a):Kl(e,t.child,n,a)}function mh(t,e,n,a,l){n=n.render;var i=e.ref;if("ref"in a){var r={};for(var o in a)o!=="ref"&&(r[o]=a[o])}else r=a;return Ba(e),a=Ef(t,e,n,r,i,l),o=Af(),t!==null&&!_t?(Tf(t,e,l),pn(t,e,l)):(I&&o&&yf(e),e.flags|=1,Ut(t,e,a,l),e.child)}function vh(t,e,n,a,l){if(t===null){var i=n.type;return typeof i=="function"&&!vf(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,G0(t,e,i,a,l)):(t=ro(n.type,null,a,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!zf(t,l)){var r=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ki,n(r,a)&&t.ref===e.ref)return pn(t,e,l)}return e.flags|=1,t=mn(i,a),t.ref=e.ref,t.return=e,e.child=t}function G0(t,e,n,a,l){if(t!==null){var i=t.memoizedProps;if(Ki(i,a)&&t.ref===e.ref)if(_t=!1,e.pendingProps=a=i,zf(t,l))t.flags&131072&&(_t=!0);else return e.lanes=t.lanes,pn(t,e,l)}return mc(t,e,n,a,l)}function Q0(t,e,n){var a=e.pendingProps,l=a.children,i=t!==null?t.memoizedState:null;if(a.mode==="hidden"){if(e.flags&128){if(a=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;e.childLanes=i&~a}else e.childLanes=0,e.child=null;return yh(t,e,a,n)}if(n&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&oo(e,i!==null?i.cachePool:null),i!==null?ah(e,i):sc(),z0(e);else return e.lanes=e.childLanes=536870912,yh(t,e,i!==null?i.baseLanes|n:n,n)}else i!==null?(oo(e,i.cachePool),ah(e,i),Gn(),e.memoizedState=null):(t!==null&&oo(e,null),sc(),Gn());return Ut(t,e,l,n),e.child}function yh(t,e,n,a){var l=bf();return l=l===null?null:{parent:Ct._currentValue,pool:l},e.memoizedState={baseLanes:n,cachePool:l},t!==null&&oo(e,null),sc(),z0(e),t!==null&&gr(t,e,a,!0),null}function co(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(N(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function mc(t,e,n,a,l){return Ba(e),n=Ef(t,e,n,a,void 0,l),a=Af(),t!==null&&!_t?(Tf(t,e,l),pn(t,e,l)):(I&&a&&yf(e),e.flags|=1,Ut(t,e,n,l),e.child)}function gh(t,e,n,a,l,i){return Ba(e),e.updateQueue=null,n=e0(e,a,n,l),t0(t),a=Af(),t!==null&&!_t?(Tf(t,e,i),pn(t,e,i)):(I&&a&&yf(e),e.flags|=1,Ut(t,e,n,i),e.child)}function ph(t,e,n,a,l){if(Ba(e),e.stateNode===null){var i=yl,r=n.contextType;typeof r=="object"&&r!==null&&(i=Gt(r)),i=new n(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=dc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},xf(e),r=n.contextType,i.context=typeof r=="object"&&r!==null?Gt(r):yl,i.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(iu(e,n,r,a),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&dc.enqueueReplaceState(i,i.state,null),Bi(e,a,i,l),Hi(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var o=e.memoizedProps,s=qa(n,o);i.props=s;var u=i.context,f=n.contextType;r=yl,typeof f=="object"&&f!==null&&(r=Gt(f));var h=n.getDerivedStateFromProps;f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==r)&&dh(e,i,a,r),Ln=!1;var d=e.memoizedState;i.state=d,Bi(e,a,i,l),Hi(),u=e.memoizedState,o||d!==u||Ln?(typeof h=="function"&&(iu(e,n,h,a),u=e.memoizedState),(s=Ln||fh(e,n,s,a,d,u,r))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=u),i.props=a,i.state=u,i.context=r,a=s):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,rc(t,e),r=e.memoizedProps,f=qa(n,r),i.props=f,h=e.pendingProps,d=i.context,u=n.contextType,s=yl,typeof u=="object"&&u!==null&&(s=Gt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==h||d!==s)&&dh(e,i,a,s),Ln=!1,d=e.memoizedState,i.state=d,Bi(e,a,i,l),Hi();var c=e.memoizedState;r!==h||d!==c||Ln||t!==null&&t.dependencies!==null&&Ro(t.dependencies)?(typeof o=="function"&&(iu(e,n,o,a),c=e.memoizedState),(f=Ln||fh(e,n,f,a,d,c,s)||t!==null&&t.dependencies!==null&&Ro(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,c,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,c,s)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=c),i.props=a,i.state=c,i.context=s,a=f):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,co(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=Kl(e,t.child,null,l),e.child=Kl(e,null,n,l)):Ut(t,e,n,l),e.memoizedState=i.state,t=e.child):t=pn(t,e,l),t}function bh(t,e,n,a){return yr(),e.flags|=256,Ut(t,e,n,a),e.child}var ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ou(t){return{baseLanes:t,cachePool:Jv()}}function su(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Se),t}function V0(t,e,n){var a=e.pendingProps,l=!1,i=(e.flags&128)!==0,r;if((r=i)||(r=t!==null&&t.memoizedState===null?!1:(Rt.current&2)!==0),r&&(l=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(I){if(l?Yn(e):Gn(),I){var o=St,s;if(s=o){t:{for(s=o,o=Qe;s.nodeType!==8;){if(!o){o=null;break t}if(s=je(s.nextSibling),s===null){o=null;break t}}o=s}o!==null?(e.memoizedState={dehydrated:o,treeContext:Da!==null?{id:cn,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},s=re(18,null,null,0),s.stateNode=o,s.return=e,e.child=s,Xt=e,St=null,s=!0):s=!1}s||Ha(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Cc(o)?e.lanes=32:e.lanes=536870912,null;hn(e)}return o=a.children,a=a.fallback,l?(Gn(),l=e.mode,o=Bo({mode:"hidden",children:o},l),a=Ma(a,l,n,null),o.return=e,a.return=e,o.sibling=a,e.child=o,l=e.child,l.memoizedState=ou(n),l.childLanes=su(t,r,n),e.memoizedState=ru,a):(Yn(e),vc(e,o))}if(s=t.memoizedState,s!==null&&(o=s.dehydrated,o!==null)){if(i)e.flags&256?(Yn(e),e.flags&=-257,e=uu(t,e,n)):e.memoizedState!==null?(Gn(),e.child=t.child,e.flags|=128,e=null):(Gn(),l=a.fallback,o=e.mode,a=Bo({mode:"visible",children:a.children},o),l=Ma(l,o,n,null),l.flags|=2,a.return=e,l.return=e,a.sibling=l,e.child=a,Kl(e,t.child,null,n),a=e.child,a.memoizedState=ou(n),a.childLanes=su(t,r,n),e.memoizedState=ru,e=l);else if(Yn(e),Cc(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;r=u,a=Error(N(419)),a.stack="",a.digest=r,Pi({value:a,source:null,stack:null}),e=uu(t,e,n)}else if(_t||gr(t,e,n,!1),r=(n&t.childLanes)!==0,_t||r){if(r=st,r!==null&&(a=n&-n,a=a&42?1:af(a),a=a&(r.suspendedLanes|n)?0:a,a!==0&&a!==s.retryLane))throw s.retryLane=a,li(t,a),ce(r,t,a),Y0;o.data==="$?"||Sc(),e=uu(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,St=je(o.nextSibling),Xt=e,I=!0,ja=null,Qe=!1,t!==null&&(ge[pe++]=cn,ge[pe++]=fn,ge[pe++]=Da,cn=t.id,fn=t.overflow,Da=e),e=vc(e,a.children),e.flags|=4096);return e}return l?(Gn(),l=a.fallback,o=e.mode,s=t.child,u=s.sibling,a=mn(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=mn(u,l):(l=Ma(l,o,n,null),l.flags|=2),l.return=e,a.return=e,a.sibling=l,e.child=a,a=l,l=e.child,o=t.child.memoizedState,o===null?o=ou(n):(s=o.cachePool,s!==null?(u=Ct._currentValue,s=s.parent!==u?{parent:u,pool:u}:s):s=Jv(),o={baseLanes:o.baseLanes|n,cachePool:s}),l.memoizedState=o,l.childLanes=su(t,r,n),e.memoizedState=ru,a):(Yn(e),n=t.child,t=n.sibling,n=mn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n)}function vc(t,e){return e=Bo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bo(t,e){return t=re(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function uu(t,e,n){return Kl(e,t.child,null,n),t=vc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),nc(t.return,e,n)}function cu(t,e,n,a,l){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=l)}function X0(t,e,n){var a=e.pendingProps,l=a.revealOrder,i=a.tail;if(Ut(t,e,a.children,n),a=Rt.current,a&2)a=a&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xh(t,n,e);else if(t.tag===19)xh(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}a&=1}switch(yt(Rt,a),l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&zo(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),cu(e,!1,l,n,i);break;case"backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&zo(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}cu(e,!0,n,null,i);break;case"together":cu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function pn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ua|=e.lanes,!(n&e.childLanes))if(t!==null){if(gr(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(N(153));if(e.child!==null){for(t=e.child,n=mn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=mn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zf(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&Ro(t)))}function Y1(t,e,n){switch(e.tag){case 3:So(e,e.stateNode.containerInfo),qn(e,Ct,t.memoizedState.cache),yr();break;case 27:case 5:Xu(e);break;case 4:So(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Yn(e),e.flags|=128,null):n&e.child.childLanes?V0(t,e,n):(Yn(e),t=pn(t,e,n),t!==null?t.sibling:null);Yn(e);break;case 19:var l=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(gr(t,e,n,!1),a=(n&e.childLanes)!==0),l){if(a)return X0(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),yt(Rt,Rt.current),a)break;return null;case 22:case 23:return e.lanes=0,Q0(t,e,n);case 24:qn(e,Ct,t.memoizedState.cache)}return pn(t,e,n)}function Z0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)_t=!0;else{if(!zf(t,n)&&!(e.flags&128))return _t=!1,Y1(t,e,n);_t=!!(t.flags&131072)}else _t=!1,I&&e.flags&1048576&&Kv(e,Co,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var a=e.elementType,l=a._init;if(a=l(a._payload),e.type=a,typeof a=="function")vf(a)?(t=qa(a,t),e.tag=1,e=ph(null,e,a,t,n)):(e.tag=0,e=mc(null,e,a,t,n));else{if(a!=null){if(l=a.$$typeof,l===tf){e.tag=11,e=mh(null,e,a,t,n);break t}else if(l===ef){e.tag=14,e=vh(null,e,a,t,n);break t}}throw e=Qu(a)||a,Error(N(306,e,""))}}return e;case 0:return mc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,l=qa(a,e.pendingProps),ph(t,e,a,l,n);case 3:t:{if(So(e,e.stateNode.containerInfo),t===null)throw Error(N(387));a=e.pendingProps;var i=e.memoizedState;l=i.element,rc(t,e),Bi(e,a,null,n);var r=e.memoizedState;if(a=r.cache,qn(e,Ct,a),a!==i.cache&&ac(e,[Ct],n,!0),Hi(),a=r.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=bh(t,e,a,n);break t}else if(a!==l){l=xe(Error(N(424)),e),Pi(l),e=bh(t,e,a,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(St=je(t.firstChild),Xt=e,I=!0,ja=null,Qe=!0,n=_0(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yr(),a===l){e=pn(t,e,n);break t}Ut(t,e,a,n)}e=e.child}return e;case 26:return co(t,e),t===null?(n=Bh(e.type,null,e.pendingProps,null))?e.memoizedState=n:I||(n=e.type,t=e.pendingProps,a=Xo(In.current).createElement(n),a[Yt]=e,a[It]=t,Bt(a,n,t),jt(a),e.stateNode=a):e.memoizedState=Bh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xu(e),t===null&&I&&(a=e.stateNode=Dy(e.type,e.pendingProps,In.current),Xt=e,Qe=!0,l=St,ma(e.type)?(Rc=l,St=je(a.firstChild)):St=l),Ut(t,e,e.pendingProps.children,n),co(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&I&&((l=a=St)&&(a=mx(a,e.type,e.pendingProps,Qe),a!==null?(e.stateNode=a,Xt=e,St=je(a.firstChild),Qe=!1,l=!0):l=!1),l||Ha(e)),Xu(e),l=e.type,i=e.pendingProps,r=t!==null?t.memoizedProps:null,a=i.children,Nc(l,i)?a=null:r!==null&&Nc(l,r)&&(e.flags|=32),e.memoizedState!==null&&(l=Ef(t,e,j1,null,null,n),tr._currentValue=l),co(t,e),Ut(t,e,a,n),e.child;case 6:return t===null&&I&&((t=n=St)&&(n=vx(n,e.pendingProps,Qe),n!==null?(e.stateNode=n,Xt=e,St=null,t=!0):t=!1),t||Ha(e)),null;case 13:return V0(t,e,n);case 4:return So(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Kl(e,null,a,n):Ut(t,e,a,n),e.child;case 11:return mh(t,e,e.type,e.pendingProps,n);case 7:return Ut(t,e,e.pendingProps,n),e.child;case 8:return Ut(t,e,e.pendingProps.children,n),e.child;case 12:return Ut(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,qn(e,e.type,a.value),Ut(t,e,a.children,n),e.child;case 9:return l=e.type._context,a=e.pendingProps.children,Ba(e),l=Gt(l),a=a(l),e.flags|=1,Ut(t,e,a,n),e.child;case 14:return vh(t,e,e.type,e.pendingProps,n);case 15:return G0(t,e,e.type,e.pendingProps,n);case 19:return X0(t,e,n);case 31:return a=e.pendingProps,n=e.mode,a={mode:a.mode,children:a.children},t===null?(n=Bo(a,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=mn(t.child,a),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Q0(t,e,n);case 24:return Ba(e),a=Gt(Ct),t===null?(l=bf(),l===null&&(l=st,i=pf(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),e.memoizedState={parent:a,cache:l},xf(e),qn(e,Ct,l)):(t.lanes&n&&(rc(t,e),Bi(e,null,null,n),Hi()),l=t.memoizedState,i=e.memoizedState,l.parent!==a?(l={parent:a,cache:a},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),qn(e,Ct,a)):(a=i.cache,qn(e,Ct,a),a!==l.cache&&ac(e,[Ct],n,!0))),Ut(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(N(156,e.tag))}function nn(t){t.flags|=4}function Sh(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!zy(e)){if(e=we.current,e!==null&&((J&4194048)===J?Je!==null:(J&62914560)!==J&&!(J&536870912)||e!==Je))throw zi=ic,$v;t.flags|=8192}}function Qr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?gv():536870912,t.lanes|=e,Pl|=e)}function pi(t,e){if(!I)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function pt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function G1(t,e,n){var a=e.pendingProps;switch(gf(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(e),null;case 1:return pt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),vn(Ct),Gl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(yi(e)?nn(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Fd())),pt(e),null;case 26:return n=e.memoizedState,t===null?(nn(e),n!==null?(pt(e),Sh(e,n)):(pt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(nn(e),pt(e),Sh(e,n)):(pt(e),e.flags&=-16777217):(t.memoizedProps!==a&&nn(e),pt(e),e.flags&=-16777217),null;case 27:wo(e),n=In.current;var l=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(!a){if(e.stateNode===null)throw Error(N(166));return pt(e),null}t=Ke.current,yi(e)?Jd(e):(t=Dy(l,a,n),e.stateNode=t,nn(e))}return pt(e),null;case 5:if(wo(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(!a){if(e.stateNode===null)throw Error(N(166));return pt(e),null}if(t=Ke.current,yi(e))Jd(e);else{switch(l=Xo(In.current),t){case 1:t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=l.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?l.createElement(n,{is:a.is}):l.createElement(n)}}t[Yt]=e,t[It]=a;t:for(l=e.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break t;for(;l.sibling===null;){if(l.return===null||l.return===e)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}e.stateNode=t;t:switch(Bt(t,n,a),n){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&nn(e)}}return pt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&nn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(N(166));if(t=In.current,yi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,l=Xt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}t[Yt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Cy(t.nodeValue,n)),t||Ha(e)}else t=Xo(t).createTextNode(a),t[Yt]=e,e.stateNode=t}return pt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=yi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!l)throw Error(N(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(N(317));l[Yt]=e}else yr(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;pt(e),l=!1}else l=Fd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(hn(e),e):(hn(e),null)}if(hn(e),e.flags&128)return e.lanes=n,e;if(n=a!==null,t=t!==null&&t.memoizedState!==null,n){a=e.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Qr(e,e.updateQueue),pt(e),null;case 4:return Gl(),t===null&&Qf(e.stateNode.containerInfo),pt(e),null;case 10:return vn(e.type),pt(e),null;case 19:if(zt(Rt),l=e.memoizedState,l===null)return pt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)pi(l,!1);else{if(wt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(i=zo(t),i!==null){for(e.flags|=128,pi(l,!1),t=i.updateQueue,e.updateQueue=t,Qr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)kv(n,t),n=n.sibling;return yt(Rt,Rt.current&1|2),e.child}t=t.sibling}l.tail!==null&&Pe()>qo&&(e.flags|=128,a=!0,pi(l,!1),e.lanes=4194304)}else{if(!a)if(t=zo(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Qr(e,t),pi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!I)return pt(e),null}else 2*Pe()-l.renderingStartTime>qo&&n!==536870912&&(e.flags|=128,a=!0,pi(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Pe(),e.sibling=null,t=Rt.current,yt(Rt,a?t&1|2:t&1),e):(pt(e),null);case 22:case 23:return hn(e),Sf(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?n&536870912&&!(e.flags&128)&&(pt(e),e.subtreeFlags&6&&(e.flags|=8192)):pt(e),n=e.updateQueue,n!==null&&Qr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&zt(_a),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),vn(Ct),pt(e),null;case 25:return null;case 30:return null}throw Error(N(156,e.tag))}function Q1(t,e){switch(gf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Ct),Gl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return wo(e),null;case 13:if(hn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(N(340));yr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return zt(Rt),null;case 4:return Gl(),null;case 10:return vn(e.type),null;case 22:case 23:return hn(e),Sf(),t!==null&&zt(_a),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Ct),null;case 25:return null;default:return null}}function k0(t,e){switch(gf(e),e.tag){case 3:vn(Ct),Gl();break;case 26:case 27:case 5:wo(e);break;case 4:Gl();break;case 13:hn(e);break;case 19:zt(Rt);break;case 10:vn(e.type);break;case 22:case 23:hn(e),Sf(),t!==null&&zt(_a);break;case 24:vn(Ct)}}function wr(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&t)===t){a=void 0;var i=n.create,r=n.inst;a=i(),r.destroy=a}n=n.next}while(n!==l)}}catch(o){ot(e,e.return,o)}}function sa(t,e,n){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&t)===t){var r=a.inst,o=r.destroy;if(o!==void 0){r.destroy=void 0,l=e;var s=n,u=o;try{u()}catch(f){ot(l,s,f)}}}a=a.next}while(a!==i)}}catch(f){ot(e,e.return,f)}}function K0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Iv(e,n)}catch(a){ot(t,t.return,a)}}}function P0(t,e,n){n.props=qa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){ot(t,e,a)}}function qi(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(l){ot(t,e,l)}}function Ze(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){ot(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){ot(t,e,l)}else n.current=null}function J0(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){ot(t,t.return,l)}}function fu(t,e,n){try{var a=t.stateNode;ux(a,t.type,n,e),a[It]=e}catch(l){ot(t,t.return,l)}}function $0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ma(t.type)||t.tag===4}function du(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$0(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&&ma(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 yc(t,e,n){var a=t.tag;if(a===5||a===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=Es));else if(a!==4&&(a===27&&ma(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(yc(t,e,n),t=t.sibling;t!==null;)yc(t,e,n),t=t.sibling}function Lo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ma(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Lo(t,e,n),t=t.sibling;t!==null;)Lo(t,e,n),t=t.sibling}function F0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Bt(e,a,n),e[Yt]=t,e[It]=n}catch(i){ot(t,t.return,i)}}var sn=!1,Tt=!1,hu=!1,wh=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function V1(t,e){if(t=t.containerInfo,Ac=Po,t=Lv(t),df(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var r=0,o=-1,s=-1,u=0,f=0,h=t,d=null;e:for(;;){for(var c;h!==n||l!==0&&h.nodeType!==3||(o=r+l),h!==i||a!==0&&h.nodeType!==3||(s=r+a),h.nodeType===3&&(r+=h.nodeValue.length),(c=h.firstChild)!==null;)d=h,h=c;for(;;){if(h===t)break e;if(d===n&&++u===l&&(o=r),d===i&&++f===a&&(s=r),(c=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=c}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tc={focusedElem:t,selectionRange:n},Po=!1,Dt=e;Dt!==null;)if(e=Dt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Dt=t;else for(;Dt!==null;){switch(e=Dt,i=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&i!==null){t=void 0,n=e,l=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var w=qa(n.type,l,n.elementType===n.type);t=a.getSnapshotBeforeUpdate(w,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(y){ot(n,n.return,y)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Oc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Oc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(N(163))}if(t=e.sibling,t!==null){t.return=e.return,Dt=t;break}Dt=e.return}}function W0(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(t,n),a&4&&wr(5,n);break;case 1:if(Dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){ot(n,n.return,r)}else{var l=qa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){ot(n,n.return,r)}}a&64&&K0(n),a&512&&qi(n,n.return);break;case 3:if(Dn(t,n),a&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{Iv(t,e)}catch(r){ot(n,n.return,r)}}break;case 27:e===null&&a&4&&F0(n);case 26:case 5:Dn(t,n),e===null&&a&4&&J0(n),a&512&&qi(n,n.return);break;case 12:Dn(t,n);break;case 13:Dn(t,n),a&4&&ey(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=W1.bind(null,n),yx(t,n))));break;case 22:if(a=n.memoizedState!==null||sn,!a){e=e!==null&&e.memoizedState!==null||Tt,l=sn;var i=Tt;sn=a,(Tt=e)&&!i?zn(t,n,(n.subtreeFlags&8772)!==0):Dn(t,n),sn=l,Tt=i}break;case 30:break;default:Dn(t,n)}}function I0(t){var e=t.alternate;e!==null&&(t.alternate=null,I0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&rf(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 mt=null,Jt=!1;function an(t,e,n){for(n=n.child;n!==null;)ty(t,e,n),n=n.sibling}function ty(t,e,n){if(oe&&typeof oe.onCommitFiberUnmount=="function")try{oe.onCommitFiberUnmount(fr,n)}catch{}switch(n.tag){case 26:Tt||Ze(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||Ze(n,e);var a=mt,l=Jt;ma(n.type)&&(mt=n.stateNode,Jt=!1),an(t,e,n),Vi(n.stateNode),mt=a,Jt=l;break;case 5:Tt||Ze(n,e);case 6:if(a=mt,l=Jt,mt=null,an(t,e,n),mt=a,Jt=l,mt!==null)if(Jt)try{(mt.nodeType===9?mt.body:mt.nodeName==="HTML"?mt.ownerDocument.body:mt).removeChild(n.stateNode)}catch(i){ot(n,e,i)}else try{mt.removeChild(n.stateNode)}catch(i){ot(n,e,i)}break;case 18:mt!==null&&(Jt?(t=mt,zh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ar(t)):zh(mt,n.stateNode));break;case 4:a=mt,l=Jt,mt=n.stateNode.containerInfo,Jt=!0,an(t,e,n),mt=a,Jt=l;break;case 0:case 11:case 14:case 15:Tt||sa(2,n,e),Tt||sa(4,n,e),an(t,e,n);break;case 1:Tt||(Ze(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&P0(n,e,a)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:Tt=(a=Tt)||n.memoizedState!==null,an(t,e,n),Tt=a;break;default:an(t,e,n)}}function ey(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ar(t)}catch(n){ot(e,e.return,n)}}function X1(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wh),e;default:throw Error(N(435,t.tag))}}function mu(t,e){var n=X1(t);e.forEach(function(a){var l=I1.bind(null,t,a);n.has(a)||(n.add(a),a.then(l,l))})}function ne(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],i=t,r=e,o=r;t:for(;o!==null;){switch(o.tag){case 27:if(ma(o.type)){mt=o.stateNode,Jt=!1;break t}break;case 5:mt=o.stateNode,Jt=!1;break t;case 3:case 4:mt=o.stateNode.containerInfo,Jt=!0;break t}o=o.return}if(mt===null)throw Error(N(160));ty(i,r,l),mt=null,Jt=!1,i=l.alternate,i!==null&&(i.return=null),l.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)ny(e,t),e=e.sibling}var De=null;function ny(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ne(e,t),ae(t),a&4&&(sa(3,t,t.return),wr(3,t),sa(5,t,t.return));break;case 1:ne(e,t),ae(t),a&512&&(Tt||n===null||Ze(n,n.return)),a&64&&sn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=De;if(ne(e,t),ae(t),a&512&&(Tt||n===null||Ze(n,n.return)),a&4){var i=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(a){case"title":i=l.getElementsByTagName("title")[0],(!i||i[mr]||i[Yt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(a),l.head.insertBefore(i,l.querySelector("head > title"))),Bt(i,a,n),i[Yt]=t,jt(i),a=i;break t;case"link":var r=qh("link","href",l).get(a+(n.href||""));if(r){for(var o=0;o<r.length;o++)if(i=r[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break e}}i=l.createElement(a),Bt(i,a,n),l.head.appendChild(i);break;case"meta":if(r=qh("meta","content",l).get(a+(n.content||""))){for(o=0;o<r.length;o++)if(i=r[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break e}}i=l.createElement(a),Bt(i,a,n),l.head.appendChild(i);break;default:throw Error(N(468,a))}i[Yt]=t,jt(i),a=i}t.stateNode=a}else Yh(l,t.type,t.stateNode);else t.stateNode=Lh(l,a,t.memoizedProps);else i!==a?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,a===null?Yh(l,t.type,t.stateNode):Lh(l,a,t.memoizedProps)):a===null&&t.stateNode!==null&&fu(t,t.memoizedProps,n.memoizedProps)}break;case 27:ne(e,t),ae(t),a&512&&(Tt||n===null||Ze(n,n.return)),n!==null&&a&4&&fu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ne(e,t),ae(t),a&512&&(Tt||n===null||Ze(n,n.return)),t.flags&32){l=t.stateNode;try{Vl(l,"")}catch(c){ot(t,t.return,c)}}a&4&&t.stateNode!=null&&(l=t.memoizedProps,fu(t,l,n!==null?n.memoizedProps:l)),a&1024&&(hu=!0);break;case 6:if(ne(e,t),ae(t),a&4){if(t.stateNode===null)throw Error(N(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(c){ot(t,t.return,c)}}break;case 3:if(mo=null,l=De,De=Zo(e.containerInfo),ne(e,t),De=l,ae(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ar(e.containerInfo)}catch(c){ot(t,t.return,c)}hu&&(hu=!1,ay(t));break;case 4:a=De,De=Zo(t.stateNode.containerInfo),ne(e,t),ae(t),De=a;break;case 12:ne(e,t),ae(t);break;case 13:ne(e,t),ae(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qf=Pe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,mu(t,a)));break;case 22:l=t.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=sn,f=Tt;if(sn=u||l,Tt=f||s,ne(e,t),Tt=f,sn=u,ae(t),a&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||s||sn||Tt||Sa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){s=n=e;try{if(i=s.stateNode,l)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=s.stateNode;var h=s.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(c){ot(s,s.return,c)}}}else if(e.tag===6){if(n===null){s=e;try{s.stateNode.nodeValue=l?"":s.memoizedProps}catch(c){ot(s,s.return,c)}}}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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,mu(t,n))));break;case 19:ne(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,mu(t,a)));break;case 30:break;case 21:break;default:ne(e,t),ae(t)}}function ae(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if($0(a)){n=a;break}a=a.return}if(n==null)throw Error(N(160));switch(n.tag){case 27:var l=n.stateNode,i=du(t);Lo(t,i,l);break;case 5:var r=n.stateNode;n.flags&32&&(Vl(r,""),n.flags&=-33);var o=du(t);Lo(t,o,r);break;case 3:case 4:var s=n.stateNode.containerInfo,u=du(t);yc(t,u,s);break;default:throw Error(N(161))}}catch(f){ot(t,t.return,f)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ay(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ay(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)W0(t,e.alternate,e),e=e.sibling}function Sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:sa(4,e,e.return),Sa(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&P0(e,e.return,n),Sa(e);break;case 27:Vi(e.stateNode);case 26:case 5:Ze(e,e.return),Sa(e);break;case 22:e.memoizedState===null&&Sa(e);break;case 30:Sa(e);break;default:Sa(e)}t=t.sibling}}function zn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,l=t,i=e,r=i.flags;switch(i.tag){case 0:case 11:case 15:zn(l,i,n),wr(4,i);break;case 1:if(zn(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(u){ot(a,a.return,u)}if(a=i,l=a.updateQueue,l!==null){var o=a.stateNode;try{var s=l.shared.hiddenCallbacks;if(s!==null)for(l.shared.hiddenCallbacks=null,l=0;l<s.length;l++)Wv(s[l],o)}catch(u){ot(a,a.return,u)}}n&&r&64&&K0(i),qi(i,i.return);break;case 27:F0(i);case 26:case 5:zn(l,i,n),n&&a===null&&r&4&&J0(i),qi(i,i.return);break;case 12:zn(l,i,n);break;case 13:zn(l,i,n),n&&r&4&&ey(l,i);break;case 22:i.memoizedState===null&&zn(l,i,n),qi(i,i.return);break;case 30:break;default:zn(l,i,n)}e=e.sibling}}function Uf(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&&pr(n))}function Hf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pr(t))}function Le(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ly(t,e,n,a),e=e.sibling}function ly(t,e,n,a){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Le(t,e,n,a),l&2048&&wr(9,e);break;case 1:Le(t,e,n,a);break;case 3:Le(t,e,n,a),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pr(t)));break;case 12:if(l&2048){Le(t,e,n,a),t=e.stateNode;try{var i=e.memoizedProps,r=i.id,o=i.onPostCommit;typeof o=="function"&&o(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){ot(e,e.return,s)}}else Le(t,e,n,a);break;case 13:Le(t,e,n,a);break;case 23:break;case 22:i=e.stateNode,r=e.alternate,e.memoizedState!==null?i._visibility&2?Le(t,e,n,a):Yi(t,e):i._visibility&2?Le(t,e,n,a):(i._visibility|=2,rl(t,e,n,a,(e.subtreeFlags&10256)!==0)),l&2048&&Uf(r,e);break;case 24:Le(t,e,n,a),l&2048&&Hf(e.alternate,e);break;default:Le(t,e,n,a)}}function rl(t,e,n,a,l){for(l=l&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var i=t,r=e,o=n,s=a,u=r.flags;switch(r.tag){case 0:case 11:case 15:rl(i,r,o,s,l),wr(8,r);break;case 23:break;case 22:var f=r.stateNode;r.memoizedState!==null?f._visibility&2?rl(i,r,o,s,l):Yi(i,r):(f._visibility|=2,rl(i,r,o,s,l)),l&&u&2048&&Uf(r.alternate,r);break;case 24:rl(i,r,o,s,l),l&&u&2048&&Hf(r.alternate,r);break;default:rl(i,r,o,s,l)}e=e.sibling}}function Yi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,l=a.flags;switch(a.tag){case 22:Yi(n,a),l&2048&&Uf(a.alternate,a);break;case 24:Yi(n,a),l&2048&&Hf(a.alternate,a);break;default:Yi(n,a)}e=e.sibling}}var Ni=8192;function Ia(t){if(t.subtreeFlags&Ni)for(t=t.child;t!==null;)iy(t),t=t.sibling}function iy(t){switch(t.tag){case 26:Ia(t),t.flags&Ni&&t.memoizedState!==null&&Rx(De,t.memoizedState,t.memoizedProps);break;case 5:Ia(t);break;case 3:case 4:var e=De;De=Zo(t.stateNode.containerInfo),Ia(t),De=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Ni,Ni=16777216,Ia(t),Ni=e):Ia(t));break;default:Ia(t)}}function ry(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 bi(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Dt=a,sy(a,t)}ry(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)oy(t),t=t.sibling}function oy(t){switch(t.tag){case 0:case 11:case 15:bi(t),t.flags&2048&&sa(9,t,t.return);break;case 3:bi(t);break;case 12:bi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,fo(t)):bi(t);break;default:bi(t)}}function fo(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Dt=a,sy(a,t)}ry(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:sa(8,e,e.return),fo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,fo(e));break;default:fo(e)}t=t.sibling}}function sy(t,e){for(;Dt!==null;){var n=Dt;switch(n.tag){case 0:case 11:case 15:sa(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Dt=a;else t:for(n=t;Dt!==null;){a=Dt;var l=a.sibling,i=a.return;if(I0(a),a===n){Dt=null;break t}if(l!==null){l.return=i,Dt=l;break t}Dt=i}}}var Z1={getCacheForType:function(t){var e=Gt(Ct),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},k1=typeof WeakMap=="function"?WeakMap:Map,at=0,st=null,k=null,J=0,nt=0,le=null,$n=!1,ii=!1,Bf=!1,bn=0,wt=0,ua=0,za=0,Lf=0,Se=0,Pl=0,Gi=null,$t=null,gc=!1,qf=0,qo=1/0,Yo=null,na=null,Ht=0,aa=null,Jl=null,Ol=0,pc=0,bc=null,uy=null,Qi=0,xc=null;function ue(){if(at&2&&J!==0)return J&-J;if(B.T!==null){var t=Xl;return t!==0?t:Gf()}return xv()}function cy(){Se===0&&(Se=!(J&536870912)||I?yv():536870912);var t=we.current;return t!==null&&(t.flags|=32),Se}function ce(t,e,n){(t===st&&(nt===2||nt===9)||t.cancelPendingCommit!==null)&&($l(t,0),Fn(t,J,Se,!1)),hr(t,n),(!(at&2)||t!==st)&&(t===st&&(!(at&2)&&(za|=n),wt===4&&Fn(t,J,Se,!1)),Ie(t))}function fy(t,e,n){if(at&6)throw Error(N(327));var a=!n&&(e&124)===0&&(e&t.expiredLanes)===0||dr(t,e),l=a?J1(t,e):vu(t,e,!0),i=a;do{if(l===0){ii&&!a&&Fn(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!K1(n)){l=vu(t,e,!1),i=!1;continue}if(l===2){if(i=e,t.errorRecoveryDisabledLanes&i)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var o=t;l=Gi;var s=o.current.memoizedState.isDehydrated;if(s&&($l(o,r).flags|=256),r=vu(o,r,!1),r!==2){if(Bf&&!s){o.errorRecoveryDisabledLanes|=i,za|=i,l=4;break t}i=$t,$t=l,i!==null&&($t===null?$t=i:$t.push.apply($t,i))}l=r}if(i=!1,l!==2)continue}}if(l===1){$l(t,0),Fn(t,e,0,!0);break}t:{switch(a=t,i=l,i){case 0:case 1:throw Error(N(345));case 4:if((e&4194048)!==e)break;case 6:Fn(a,e,Se,!$n);break t;case 2:$t=null;break;case 3:case 5:break;default:throw Error(N(329))}if((e&62914560)===e&&(l=qf+300-Pe(),10<l)){if(Fn(a,e,Se,!$n),cs(a,0,!0)!==0)break t;a.timeoutHandle=My(Eh.bind(null,a,n,$t,Yo,gc,e,Se,za,Pl,$n,i,2,-0,0),l);break t}Eh(a,n,$t,Yo,gc,e,Se,za,Pl,$n,i,0,-0,0)}}break}while(!0);Ie(t)}function Eh(t,e,n,a,l,i,r,o,s,u,f,h,d,c){if(t.timeoutHandle=-1,h=e.subtreeFlags,(h&8192||(h&16785408)===16785408)&&(Ii={stylesheets:null,count:0,unsuspend:Cx},iy(e),h=Mx(),h!==null)){t.cancelPendingCommit=h(Th.bind(null,t,e,i,n,a,l,r,o,s,f,1,d,c)),Fn(t,i,r,!u);return}Th(t,e,i,n,a,l,r,o,s)}function K1(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 a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!de(i(),l))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 Fn(t,e,n,a){e&=~Lf,e&=~za,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var l=e;0<l;){var i=31-se(l),r=1<<i;a[i]=-1,l&=~r}n!==0&&pv(t,n,e)}function xs(){return at&6?!0:(Er(0),!1)}function Yf(){if(k!==null){if(nt===0)var t=k.return;else t=k,dn=Za=null,Nf(t),Nl=null,$i=0,t=k;for(;t!==null;)k0(t.alternate,t),t=t.return;k=null}}function $l(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,fx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Yf(),st=t,k=n=mn(t.current,null),J=e,nt=0,le=null,$n=!1,ii=dr(t,e),Bf=!1,Pl=Se=Lf=za=ua=wt=0,$t=Gi=null,gc=!1,e&8&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var l=31-se(a),i=1<<l;e|=t[l],a&=~i}return bn=e,ms(),n}function dy(t,e){X=null,B.H=_o,e===br||e===ys?(e=eh(),nt=3):e===$v?(e=eh(),nt=4):nt=e===Y0?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,le=e,k===null&&(wt=1,Ho(t,xe(e,t.current)))}function hy(){var t=B.H;return B.H=_o,t===null?_o:t}function my(){var t=B.A;return B.A=Z1,t}function Sc(){wt=4,$n||(J&4194048)!==J&&we.current!==null||(ii=!0),!(ua&134217727)&&!(za&134217727)||st===null||Fn(st,J,Se,!1)}function vu(t,e,n){var a=at;at|=2;var l=hy(),i=my();(st!==t||J!==e)&&(Yo=null,$l(t,e)),e=!1;var r=wt;t:do try{if(nt!==0&&k!==null){var o=k,s=le;switch(nt){case 8:Yf(),r=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var u=nt;if(nt=0,le=null,bl(t,o,s,u),n&&ii){r=0;break t}break;default:u=nt,nt=0,le=null,bl(t,o,s,u)}}P1(),r=wt;break}catch(f){dy(t,f)}while(!0);return e&&t.shellSuspendCounter++,dn=Za=null,at=a,B.H=l,B.A=i,k===null&&(st=null,J=0,ms()),r}function P1(){for(;k!==null;)vy(k)}function J1(t,e){var n=at;at|=2;var a=hy(),l=my();st!==t||J!==e?(Yo=null,qo=Pe()+500,$l(t,e)):ii=dr(t,e);t:do try{if(nt!==0&&k!==null){e=k;var i=le;e:switch(nt){case 1:nt=0,le=null,bl(t,e,i,1);break;case 2:case 9:if(th(i)){nt=0,le=null,Ah(e);break}e=function(){nt!==2&&nt!==9||st!==t||(nt=7),Ie(t)},i.then(e,e);break t;case 3:nt=7;break t;case 4:nt=5;break t;case 7:th(i)?(nt=0,le=null,Ah(e)):(nt=0,le=null,bl(t,e,i,7));break;case 5:var r=null;switch(k.tag){case 26:r=k.memoizedState;case 5:case 27:var o=k;if(!r||zy(r)){nt=0,le=null;var s=o.sibling;if(s!==null)k=s;else{var u=o.return;u!==null?(k=u,Ss(u)):k=null}break e}}nt=0,le=null,bl(t,e,i,5);break;case 6:nt=0,le=null,bl(t,e,i,6);break;case 8:Yf(),wt=6;break t;default:throw Error(N(462))}}$1();break}catch(f){dy(t,f)}while(!0);return dn=Za=null,B.H=a,B.A=l,at=n,k!==null?0:(st=null,J=0,ms(),wt)}function $1(){for(;k!==null&&!pb();)vy(k)}function vy(t){var e=Z0(t.alternate,t,bn);t.memoizedProps=t.pendingProps,e===null?Ss(t):k=e}function Ah(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=gh(n,e,e.pendingProps,e.type,void 0,J);break;case 11:e=gh(n,e,e.pendingProps,e.type.render,e.ref,J);break;case 5:Nf(e);default:k0(n,e),e=k=kv(e,bn),e=Z0(n,e,bn)}t.memoizedProps=t.pendingProps,e===null?Ss(t):k=e}function bl(t,e,n,a){dn=Za=null,Nf(e),Nl=null,$i=0;var l=e.return;try{if(q1(t,l,e,n,J)){wt=1,Ho(t,xe(n,t.current)),k=null;return}}catch(i){if(l!==null)throw k=l,i;wt=1,Ho(t,xe(n,t.current)),k=null;return}e.flags&32768?(I||a===1?t=!0:ii||J&536870912?t=!1:($n=t=!0,(a===2||a===9||a===3||a===6)&&(a=we.current,a!==null&&a.tag===13&&(a.flags|=16384))),yy(e,t)):Ss(e)}function Ss(t){var e=t;do{if(e.flags&32768){yy(e,$n);return}t=e.return;var n=G1(e.alternate,e,bn);if(n!==null){k=n;return}if(e=e.sibling,e!==null){k=e;return}k=e=t}while(e!==null);wt===0&&(wt=5)}function yy(t,e){do{var n=Q1(t.alternate,t);if(n!==null){n.flags&=32767,k=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){k=t;return}k=t=n}while(t!==null);wt=6,k=null}function Th(t,e,n,a,l,i,r,o,s){t.cancelPendingCommit=null;do ws();while(Ht!==0);if(at&6)throw Error(N(327));if(e!==null){if(e===t.current)throw Error(N(177));if(i=e.lanes|e.childLanes,i|=hf,Cb(t,n,i,r,o,s),t===st&&(k=st=null,J=0),Jl=e,aa=t,Ol=n,pc=i,bc=l,uy=a,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,tx(Eo,function(){return Sy(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,e.subtreeFlags&13878||a){a=B.T,B.T=null,l=tt.p,tt.p=2,r=at,at|=4;try{V1(t,e,n)}finally{at=r,tt.p=l,B.T=a}}Ht=1,gy(),py(),by()}}function gy(){if(Ht===1){Ht=0;var t=aa,e=Jl,n=(e.flags&13878)!==0;if(e.subtreeFlags&13878||n){n=B.T,B.T=null;var a=tt.p;tt.p=2;var l=at;at|=4;try{ny(e,t);var i=Tc,r=Lv(t.containerInfo),o=i.focusedElem,s=i.selectionRange;if(r!==o&&o&&o.ownerDocument&&Bv(o.ownerDocument.documentElement,o)){if(s!==null&&df(o)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var h=o.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var c=d.getSelection(),w=o.textContent.length,y=Math.min(s.start,w),x=s.end===void 0?y:Math.min(s.end,w);!c.extend&&y>x&&(r=x,x=y,y=r);var m=kd(o,y),v=kd(o,x);if(m&&v&&(c.rangeCount!==1||c.anchorNode!==m.node||c.anchorOffset!==m.offset||c.focusNode!==v.node||c.focusOffset!==v.offset)){var p=h.createRange();p.setStart(m.node,m.offset),c.removeAllRanges(),y>x?(c.addRange(p),c.extend(v.node,v.offset)):(p.setEnd(v.node,v.offset),c.addRange(p))}}}}for(h=[],c=o;c=c.parentNode;)c.nodeType===1&&h.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<h.length;o++){var S=h[o];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Po=!!Ac,Tc=Ac=null}finally{at=l,tt.p=a,B.T=n}}t.current=e,Ht=2}}function py(){if(Ht===2){Ht=0;var t=aa,e=Jl,n=(e.flags&8772)!==0;if(e.subtreeFlags&8772||n){n=B.T,B.T=null;var a=tt.p;tt.p=2;var l=at;at|=4;try{W0(t,e.alternate,e)}finally{at=l,tt.p=a,B.T=n}}Ht=3}}function by(){if(Ht===4||Ht===3){Ht=0,bb();var t=aa,e=Jl,n=Ol,a=uy;e.subtreeFlags&10256||e.flags&10256?Ht=5:(Ht=0,Jl=aa=null,xy(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(na=null),lf(n),e=e.stateNode,oe&&typeof oe.onCommitFiberRoot=="function")try{oe.onCommitFiberRoot(fr,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=B.T,l=tt.p,tt.p=2,B.T=null;try{for(var i=t.onRecoverableError,r=0;r<a.length;r++){var o=a[r];i(o.value,{componentStack:o.stack})}}finally{B.T=e,tt.p=l}}Ol&3&&ws(),Ie(t),l=t.pendingLanes,n&4194090&&l&42?t===xc?Qi++:(Qi=0,xc=t):Qi=0,Er(0)}}function xy(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,pr(e)))}function ws(t){return gy(),py(),by(),Sy()}function Sy(){if(Ht!==5)return!1;var t=aa,e=pc;pc=0;var n=lf(Ol),a=B.T,l=tt.p;try{tt.p=32>n?32:n,B.T=null,n=bc,bc=null;var i=aa,r=Ol;if(Ht=0,Jl=aa=null,Ol=0,at&6)throw Error(N(331));var o=at;if(at|=4,oy(i.current),ly(i,i.current,r,n),at=o,Er(0,!1),oe&&typeof oe.onPostCommitFiberRoot=="function")try{oe.onPostCommitFiberRoot(fr,i)}catch{}return!0}finally{tt.p=l,B.T=a,xy(t,e)}}function Nh(t,e,n){e=xe(n,e),e=hc(t.stateNode,e,2),t=ea(t,e,2),t!==null&&(hr(t,2),Ie(t))}function ot(t,e,n){if(t.tag===3)Nh(t,t,n);else for(;e!==null;){if(e.tag===3){Nh(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){t=xe(n,t),n=L0(2),a=ea(e,n,2),a!==null&&(q0(n,a,e,t),hr(a,2),Ie(a));break}}e=e.return}}function yu(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new k1;var l=new Set;a.set(e,l)}else l=a.get(e),l===void 0&&(l=new Set,a.set(e,l));l.has(n)||(Bf=!0,l.add(n),t=F1.bind(null,t,e,n),e.then(t,t))}function F1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,st===t&&(J&n)===n&&(wt===4||wt===3&&(J&62914560)===J&&300>Pe()-qf?!(at&2)&&$l(t,0):Lf|=n,Pl===J&&(Pl=0)),Ie(t)}function wy(t,e){e===0&&(e=gv()),t=li(t,e),t!==null&&(hr(t,e),Ie(t))}function W1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),wy(t,n)}function I1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(N(314))}a!==null&&a.delete(e),wy(t,n)}function tx(t,e){return nf(t,e)}var Go=null,ol=null,wc=!1,Qo=!1,gu=!1,Ua=0;function Ie(t){t!==ol&&t.next===null&&(ol===null?Go=ol=t:ol=ol.next=t),Qo=!0,wc||(wc=!0,nx())}function Er(t,e){if(!gu&&Qo){gu=!0;do for(var n=!1,a=Go;a!==null;){if(t!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var r=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-se(42|t)+1)-1,i&=l&~(r&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Oh(a,i))}else i=J,i=cs(a,a===st?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(i&3)||dr(a,i)||(n=!0,Oh(a,i));a=a.next}while(n);gu=!1}}function ex(){Ey()}function Ey(){Qo=wc=!1;var t=0;Ua!==0&&(cx()&&(t=Ua),Ua=0);for(var e=Pe(),n=null,a=Go;a!==null;){var l=a.next,i=Ay(a,e);i===0?(a.next=null,n===null?Go=l:n.next=l,l===null&&(ol=n)):(n=a,(t!==0||i&3)&&(Qo=!0)),a=l}Er(t)}function Ay(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,l=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var r=31-se(i),o=1<<r,s=l[r];s===-1?(!(o&n)||o&a)&&(l[r]=Ob(o,e)):s<=e&&(t.expiredLanes|=o),i&=~o}if(e=st,n=J,n=cs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(nt===2||nt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Vs(a),t.callbackNode=null,t.callbackPriority=0;if(!(n&3)||dr(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Vs(a),lf(n)){case 2:case 8:n=mv;break;case 32:n=Eo;break;case 268435456:n=vv;break;default:n=Eo}return a=Ty.bind(null,t),n=nf(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Vs(a),t.callbackPriority=2,t.callbackNode=null,2}function Ty(t,e){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(ws()&&t.callbackNode!==n)return null;var a=J;return a=cs(t,t===st?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(fy(t,a,e),Ay(t,Pe()),t.callbackNode!=null&&t.callbackNode===n?Ty.bind(null,t):null)}function Oh(t,e){if(ws())return null;fy(t,e,!0)}function nx(){dx(function(){at&6?nf(hv,ex):Ey()})}function Gf(){return Ua===0&&(Ua=yv()),Ua}function Ch(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ao(""+t)}function Rh(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 ax(t,e,n,a,l){if(e==="submit"&&n&&n.stateNode===l){var i=Ch((l[It]||null).action),r=a.submitter;r&&(e=(e=r[It]||null)?Ch(e.formAction):r.getAttribute("formAction"),e!==null&&(i=e,r=null));var o=new fs("action","action",null,a,l);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ua!==0){var s=r?Rh(l,r):new FormData(l);fc(n,{pending:!0,data:s,method:l.method,action:i},null,s)}}else typeof i=="function"&&(o.preventDefault(),s=r?Rh(l,r):new FormData(l),fc(n,{pending:!0,data:s,method:l.method,action:i},i,s))},currentTarget:l}]})}}for(var pu=0;pu<Iu.length;pu++){var bu=Iu[pu],lx=bu.toLowerCase(),ix=bu[0].toUpperCase()+bu.slice(1);Ue(lx,"on"+ix)}Ue(Yv,"onAnimationEnd");Ue(Gv,"onAnimationIteration");Ue(Qv,"onAnimationStart");Ue("dblclick","onDoubleClick");Ue("focusin","onFocus");Ue("focusout","onBlur");Ue(w1,"onTransitionRun");Ue(E1,"onTransitionStart");Ue(A1,"onTransitionCancel");Ue(Vv,"onTransitionEnd");Ql("onMouseEnter",["mouseout","mouseover"]);Ql("onMouseLeave",["mouseout","mouseover"]);Ql("onPointerEnter",["pointerout","pointerover"]);Ql("onPointerLeave",["pointerout","pointerover"]);Qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),rx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function Ny(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],l=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var r=a.length-1;0<=r;r--){var o=a[r],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==i&&l.isPropagationStopped())break t;i=o,l.currentTarget=u;try{i(l)}catch(f){Uo(f)}l.currentTarget=null,i=s}else for(r=0;r<a.length;r++){if(o=a[r],s=o.instance,u=o.currentTarget,o=o.listener,s!==i&&l.isPropagationStopped())break t;i=o,l.currentTarget=u;try{i(l)}catch(f){Uo(f)}l.currentTarget=null,i=s}}}}function Z(t,e){var n=e[ku];n===void 0&&(n=e[ku]=new Set);var a=t+"__bubble";n.has(a)||(Oy(e,t,2,!1),n.add(a))}function xu(t,e,n){var a=0;e&&(a|=4),Oy(n,t,a,e)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Qf(t){if(!t[Vr]){t[Vr]=!0,Sv.forEach(function(n){n!=="selectionchange"&&(rx.has(n)||xu(n,!1,t),xu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vr]||(e[Vr]=!0,xu("selectionchange",!1,e))}}function Oy(t,e,n,a){switch(qy(e)){case 2:var l=_x;break;case 8:l=zx;break;default:l=kf}n=l.bind(null,e,n,t),l=void 0,!$u||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),a?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function Su(t,e,n,a,l){var i=a;if(!(e&1)&&!(e&2)&&a!==null)t:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var o=a.stateNode.containerInfo;if(o===l)break;if(r===4)for(r=a.return;r!==null;){var s=r.tag;if((s===3||s===4)&&r.stateNode.containerInfo===l)return;r=r.return}for(;o!==null;){if(r=cl(o),r===null)return;if(s=r.tag,s===5||s===6||s===26||s===27){a=i=r;continue t}o=o.parentNode}}a=a.return}Rv(function(){var u=i,f=sf(n),h=[];t:{var d=Xv.get(t);if(d!==void 0){var c=fs,w=t;switch(t){case"keypress":if(io(n)===0)break t;case"keydown":case"keyup":c=t1;break;case"focusin":w="focus",c=Fs;break;case"focusout":w="blur",c=Fs;break;case"beforeblur":case"afterblur":c=Fs;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":c=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=Qb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=a1;break;case Yv:case Gv:case Qv:c=Zb;break;case Vv:c=i1;break;case"scroll":case"scrollend":c=Yb;break;case"wheel":c=o1;break;case"copy":case"cut":case"paste":c=Kb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Ld;break;case"toggle":case"beforetoggle":c=u1}var y=(e&4)!==0,x=!y&&(t==="scroll"||t==="scrollend"),m=y?d!==null?d+"Capture":null:d;y=[];for(var v=u,p;v!==null;){var S=v;if(p=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||p===null||m===null||(S=Zi(v,m),S!=null&&y.push(Wi(v,S,p))),x)break;v=v.return}0<y.length&&(d=new c(d,w,null,n,f),h.push({event:d,listeners:y}))}}if(!(e&7)){t:{if(d=t==="mouseover"||t==="pointerover",c=t==="mouseout"||t==="pointerout",d&&n!==Ju&&(w=n.relatedTarget||n.fromElement)&&(cl(w)||w[ni]))break t;if((c||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,c?(w=n.relatedTarget||n.toElement,c=u,w=w?cl(w):null,w!==null&&(x=cr(w),y=w.tag,w!==x||y!==5&&y!==27&&y!==6)&&(w=null)):(c=null,w=u),c!==w)){if(y=Hd,S="onMouseLeave",m="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(y=Ld,S="onPointerLeave",m="onPointerEnter",v="pointer"),x=c==null?d:Ti(c),p=w==null?d:Ti(w),d=new y(S,v+"leave",c,n,f),d.target=x,d.relatedTarget=p,S=null,cl(f)===u&&(y=new y(m,v+"enter",w,n,f),y.target=p,y.relatedTarget=x,S=y),x=S,c&&w)e:{for(y=c,m=w,v=0,p=y;p;p=tl(p))v++;for(p=0,S=m;S;S=tl(S))p++;for(;0<v-p;)y=tl(y),v--;for(;0<p-v;)m=tl(m),p--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break e;y=tl(y),m=tl(m)}y=null}else y=null;c!==null&&Mh(h,d,c,y,!1),w!==null&&x!==null&&Mh(h,x,w,y,!0)}}t:{if(d=u?Ti(u):window,c=d.nodeName&&d.nodeName.toLowerCase(),c==="select"||c==="input"&&d.type==="file")var E=Qd;else if(Gd(d))if(Uv)E=b1;else{E=g1;var O=y1}else c=d.nodeName,!c||c.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&of(u.elementType)&&(E=Qd):E=p1;if(E&&(E=E(t,u))){zv(h,E,n,f);break t}O&&O(t,d,u),t==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Pu(d,"number",d.value)}switch(O=u?Ti(u):window,t){case"focusin":(Gd(O)||O.contentEditable==="true")&&(hl=O,Fu=u,ji=null);break;case"focusout":ji=Fu=hl=null;break;case"mousedown":Wu=!0;break;case"contextmenu":case"mouseup":case"dragend":Wu=!1,Kd(h,n,f);break;case"selectionchange":if(S1)break;case"keydown":case"keyup":Kd(h,n,f)}var A;if(ff)t:{switch(t){case"compositionstart":var R="onCompositionStart";break t;case"compositionend":R="onCompositionEnd";break t;case"compositionupdate":R="onCompositionUpdate";break t}R=void 0}else dl?jv(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Dv&&n.locale!=="ko"&&(dl||R!=="onCompositionStart"?R==="onCompositionEnd"&&dl&&(A=Mv()):(Jn=f,uf="value"in Jn?Jn.value:Jn.textContent,dl=!0)),O=Vo(u,R),0<O.length&&(R=new Bd(R,t,null,n,f),h.push({event:R,listeners:O}),A?R.data=A:(A=_v(n),A!==null&&(R.data=A)))),(A=f1?d1(t,n):h1(t,n))&&(R=Vo(u,"onBeforeInput"),0<R.length&&(O=new Bd("onBeforeInput","beforeinput",null,n,f),h.push({event:O,listeners:R}),O.data=A)),ax(h,t,u,n,f)}Ny(h,e)})}function Wi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Vo(t,e){for(var n=e+"Capture",a=[];t!==null;){var l=t,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=Zi(t,n),l!=null&&a.unshift(Wi(t,l,i)),l=Zi(t,e),l!=null&&a.push(Wi(t,l,i))),t.tag===3)return a;t=t.return}return[]}function tl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Mh(t,e,n,a,l){for(var i=e._reactName,r=[];n!==null&&n!==a;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===a)break;o!==5&&o!==26&&o!==27||u===null||(s=u,l?(u=Zi(n,i),u!=null&&r.unshift(Wi(n,u,s))):l||(u=Zi(n,i),u!=null&&r.push(Wi(n,u,s)))),n=n.return}r.length!==0&&t.push({event:e,listeners:r})}var ox=/\r\n?/g,sx=/\u0000|\uFFFD/g;function Dh(t){return(typeof t=="string"?t:""+t).replace(ox,`
`).replace(sx,"")}function Cy(t,e){return e=Dh(e),Dh(t)===e}function Es(){}function it(t,e,n,a,l,i){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Vl(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Vl(t,""+a);break;case"className":Hr(t,"class",a);break;case"tabIndex":Hr(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Hr(t,n,a);break;case"style":Cv(t,a,i);break;case"data":if(e!=="object"){Hr(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ao(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 i=="function"&&(n==="formAction"?(e!=="input"&&it(t,e,"name",l.name,l,null),it(t,e,"formEncType",l.formEncType,l,null),it(t,e,"formMethod",l.formMethod,l,null),it(t,e,"formTarget",l.formTarget,l,null)):(it(t,e,"encType",l.encType,l,null),it(t,e,"method",l.method,l,null),it(t,e,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ao(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Es);break;case"onScroll":a!=null&&Z("scroll",t);break;case"onScrollEnd":a!=null&&Z("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(N(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}n=ao(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":Z("beforetoggle",t),Z("toggle",t),no(t,"popover",a);break;case"xlinkActuate":en(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":en(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":en(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":en(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":en(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":en(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":en(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":en(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":en(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":no(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Lb.get(n)||n,no(t,n,a))}}function Ec(t,e,n,a,l,i){switch(n){case"style":Cv(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(N(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Vl(t,a):(typeof a=="number"||typeof a=="bigint")&&Vl(t,""+a);break;case"onScroll":a!=null&&Z("scroll",t);break;case"onScrollEnd":a!=null&&Z("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Es);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wv.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),i=t[It]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,l),typeof a=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,l);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):no(t,n,a)}}}function Bt(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z("error",t),Z("load",t);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var r=n[i];if(r!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,e));default:it(t,e,i,r,n,null)}}l&&it(t,e,"srcSet",n.srcSet,n,null),a&&it(t,e,"src",n.src,n,null);return;case"input":Z("invalid",t);var o=i=r=l=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":l=f;break;case"type":r=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(N(137,e));break;default:it(t,e,a,f,n,null)}}Tv(t,i,o,s,u,r,l,!1),Ao(t);return;case"select":Z("invalid",t),a=r=i=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":i=o;break;case"defaultValue":r=o;break;case"multiple":a=o;default:it(t,e,l,o,n,null)}e=i,n=r,t.multiple=!!a,e!=null?Sl(t,!!a,e,!1):n!=null&&Sl(t,!!a,n,!0);return;case"textarea":Z("invalid",t),i=l=a=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":a=o;break;case"defaultValue":l=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(N(91));break;default:it(t,e,r,o,n,null)}Ov(t,a,l,i),Ao(t);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:it(t,e,s,a,n,null)}return;case"dialog":Z("beforetoggle",t),Z("toggle",t),Z("cancel",t),Z("close",t);break;case"iframe":case"object":Z("load",t);break;case"video":case"audio":for(a=0;a<Fi.length;a++)Z(Fi[a],t);break;case"image":Z("error",t),Z("load",t);break;case"details":Z("toggle",t);break;case"embed":case"source":case"link":Z("error",t),Z("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,e));default:it(t,e,u,a,n,null)}return;default:if(of(e)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&Ec(t,e,f,a,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&it(t,e,o,a,n,null))}function ux(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,r=null,o=null,s=null,u=null,f=null;for(c in n){var h=n[c];if(n.hasOwnProperty(c)&&h!=null)switch(c){case"checked":break;case"value":break;case"defaultValue":s=h;default:a.hasOwnProperty(c)||it(t,e,c,null,a,h)}}for(var d in a){var c=a[d];if(h=n[d],a.hasOwnProperty(d)&&(c!=null||h!=null))switch(d){case"type":i=c;break;case"name":l=c;break;case"checked":u=c;break;case"defaultChecked":f=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(N(137,e));break;default:c!==h&&it(t,e,d,c,a,h)}}Ku(t,r,o,s,u,f,i,l);return;case"select":c=r=o=d=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":c=s;default:a.hasOwnProperty(i)||it(t,e,i,null,a,s)}for(l in a)if(i=a[l],s=n[l],a.hasOwnProperty(l)&&(i!=null||s!=null))switch(l){case"value":d=i;break;case"defaultValue":o=i;break;case"multiple":r=i;default:i!==s&&it(t,e,l,i,a,s)}e=o,n=r,a=c,d!=null?Sl(t,!!n,d,!1):!!a!=!!n&&(e!=null?Sl(t,!!n,e,!0):Sl(t,!!n,n?[]:"",!1));return;case"textarea":c=d=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:it(t,e,o,null,a,l)}for(r in a)if(l=a[r],i=n[r],a.hasOwnProperty(r)&&(l!=null||i!=null))switch(r){case"value":d=l;break;case"defaultValue":c=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(N(91));break;default:l!==i&&it(t,e,r,l,a,i)}Nv(t,d,c);return;case"option":for(var w in n)if(d=n[w],n.hasOwnProperty(w)&&d!=null&&!a.hasOwnProperty(w))switch(w){case"selected":t.selected=!1;break;default:it(t,e,w,null,a,d)}for(s in a)if(d=a[s],c=n[s],a.hasOwnProperty(s)&&d!==c&&(d!=null||c!=null))switch(s){case"selected":t.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:it(t,e,s,d,a,c)}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 y in n)d=n[y],n.hasOwnProperty(y)&&d!=null&&!a.hasOwnProperty(y)&&it(t,e,y,null,a,d);for(u in a)if(d=a[u],c=n[u],a.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(N(137,e));break;default:it(t,e,u,d,a,c)}return;default:if(of(e)){for(var x in n)d=n[x],n.hasOwnProperty(x)&&d!==void 0&&!a.hasOwnProperty(x)&&Ec(t,e,x,void 0,a,d);for(f in a)d=a[f],c=n[f],!a.hasOwnProperty(f)||d===c||d===void 0&&c===void 0||Ec(t,e,f,d,a,c);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&it(t,e,m,null,a,d);for(h in a)d=a[h],c=n[h],!a.hasOwnProperty(h)||d===c||d==null&&c==null||it(t,e,h,d,a,c)}var Ac=null,Tc=null;function Xo(t){return t.nodeType===9?t:t.ownerDocument}function jh(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 Ry(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 Nc(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 wu=null;function cx(){var t=window.event;return t&&t.type==="popstate"?t===wu?!1:(wu=t,!0):(wu=null,!1)}var My=typeof setTimeout=="function"?setTimeout:void 0,fx=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,dx=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(t){return _h.resolve(null).then(t).catch(hx)}:My;function hx(t){setTimeout(function(){throw t})}function ma(t){return t==="head"}function zh(t,e){var n=e,a=0,l=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(0<a&&8>a){n=a;var r=t.ownerDocument;if(n&1&&Vi(r.documentElement),n&2&&Vi(r.body),n&4)for(n=r.head,Vi(n),r=n.firstChild;r;){var o=r.nextSibling,s=r.nodeName;r[mr]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}if(l===0){t.removeChild(i),ar(e);return}l--}else n==="$"||n==="$?"||n==="$!"?l++:a=n.charCodeAt(0)-48;else a=0;n=i}while(n);ar(e)}function Oc(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":Oc(n),rf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function mx(t,e,n,a){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[mr])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=je(t.nextSibling),t===null)break}return null}function vx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=je(t.nextSibling),t===null))return null;return t}function Cc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function yx(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function je(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 Rc=null;function Uh(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 Dy(t,e,n){switch(e=Xo(n),t){case"html":if(t=e.documentElement,!t)throw Error(N(452));return t;case"head":if(t=e.head,!t)throw Error(N(453));return t;case"body":if(t=e.body,!t)throw Error(N(454));return t;default:throw Error(N(451))}}function Vi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);rf(t)}var Ee=new Map,Hh=new Set;function Zo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var wn=tt.d;tt.d={f:gx,r:px,D:bx,C:xx,L:Sx,m:wx,X:Ax,S:Ex,M:Tx};function gx(){var t=wn.f(),e=xs();return t||e}function px(t){var e=ai(t);e!==null&&e.tag===5&&e.type==="form"?A0(e):wn.r(t)}var ri=typeof document>"u"?null:document;function jy(t,e,n){var a=ri;if(a&&typeof e=="string"&&e){var l=be(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Hh.has(l)||(Hh.add(l),t={rel:t,crossOrigin:n,href:e},a.querySelector(l)===null&&(e=a.createElement("link"),Bt(e,"link",t),jt(e),a.head.appendChild(e)))}}function bx(t){wn.D(t),jy("dns-prefetch",t,null)}function xx(t,e){wn.C(t,e),jy("preconnect",t,e)}function Sx(t,e,n){wn.L(t,e,n);var a=ri;if(a&&t&&e){var l='link[rel="preload"][as="'+be(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+be(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+be(n.imageSizes)+'"]')):l+='[href="'+be(t)+'"]';var i=l;switch(e){case"style":i=Fl(t);break;case"script":i=oi(t)}Ee.has(i)||(t=dt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ee.set(i,t),a.querySelector(l)!==null||e==="style"&&a.querySelector(Ar(i))||e==="script"&&a.querySelector(Tr(i))||(e=a.createElement("link"),Bt(e,"link",t),jt(e),a.head.appendChild(e)))}}function wx(t,e){wn.m(t,e);var n=ri;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+be(a)+'"][href="'+be(t)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=oi(t)}if(!Ee.has(i)&&(t=dt({rel:"modulepreload",href:t},e),Ee.set(i,t),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tr(i)))return}a=n.createElement("link"),Bt(a,"link",t),jt(a),n.head.appendChild(a)}}}function Ex(t,e,n){wn.S(t,e,n);var a=ri;if(a&&t){var l=xl(a).hoistableStyles,i=Fl(t);e=e||"default";var r=l.get(i);if(!r){var o={loading:0,preload:null};if(r=a.querySelector(Ar(i)))o.loading=5;else{t=dt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ee.get(i))&&Vf(t,n);var s=r=a.createElement("link");jt(s),Bt(s,"link",t),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ho(r,e,a)}r={type:"stylesheet",instance:r,count:1,state:o},l.set(i,r)}}}function Ax(t,e){wn.X(t,e);var n=ri;if(n&&t){var a=xl(n).hoistableScripts,l=oi(t),i=a.get(l);i||(i=n.querySelector(Tr(l)),i||(t=dt({src:t,async:!0},e),(e=Ee.get(l))&&Xf(t,e),i=n.createElement("script"),jt(i),Bt(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Tx(t,e){wn.M(t,e);var n=ri;if(n&&t){var a=xl(n).hoistableScripts,l=oi(t),i=a.get(l);i||(i=n.querySelector(Tr(l)),i||(t=dt({src:t,async:!0,type:"module"},e),(e=Ee.get(l))&&Xf(t,e),i=n.createElement("script"),jt(i),Bt(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Bh(t,e,n,a){var l=(l=In.current)?Zo(l):null;if(!l)throw Error(N(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Fl(n.href),n=xl(l).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Fl(n.href);var i=xl(l).hoistableStyles,r=i.get(t);if(r||(l=l.ownerDocument||l,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,r),(i=l.querySelector(Ar(t)))&&!i._p&&(r.instance=i,r.state.loading=5),Ee.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},Ee.set(t,n),i||Nx(l,t,n,r.state))),e&&a===null)throw Error(N(528,""));return r}if(e&&a!==null)throw Error(N(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=oi(n),n=xl(l).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(N(444,t))}}function Fl(t){return'href="'+be(t)+'"'}function Ar(t){return'link[rel="stylesheet"]['+t+"]"}function _y(t){return dt({},t,{"data-precedence":t.precedence,precedence:null})}function Nx(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Bt(e,"link",n),jt(e),t.head.appendChild(e))}function oi(t){return'[src="'+be(t)+'"]'}function Tr(t){return"script[async]"+t}function Lh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+be(n.href)+'"]');if(a)return e.instance=a,jt(a),a;var l=dt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),jt(a),Bt(a,"style",l),ho(a,n.precedence,t),e.instance=a;case"stylesheet":l=Fl(n.href);var i=t.querySelector(Ar(l));if(i)return e.state.loading|=4,e.instance=i,jt(i),i;a=_y(n),(l=Ee.get(l))&&Vf(a,l),i=(t.ownerDocument||t).createElement("link"),jt(i);var r=i;return r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Bt(i,"link",a),e.state.loading|=4,ho(i,n.precedence,t),e.instance=i;case"script":return i=oi(n.src),(l=t.querySelector(Tr(i)))?(e.instance=l,jt(l),l):(a=n,(l=Ee.get(i))&&(a=dt({},n),Xf(a,l)),t=t.ownerDocument||t,l=t.createElement("script"),jt(l),Bt(l,"link",a),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(N(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(a=e.instance,e.state.loading|=4,ho(a,n.precedence,t));return e.instance}function ho(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,r=0;r<a.length;r++){var o=a[r];if(o.dataset.precedence===e)i=o;else if(i!==l)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Vf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var mo=null;function qh(t,e,n){if(mo===null){var a=new Map,l=mo=new Map;l.set(n,a)}else l=mo,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var i=n[l];if(!(i[mr]||i[Yt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(e)||"";r=t+r;var o=a.get(r);o?o.push(i):a.set(r,[i])}}return a}function Yh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Ox(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 zy(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Ii=null;function Cx(){}function Rx(t,e,n){if(Ii===null)throw Error(N(475));var a=Ii;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(e.state.loading&4)){if(e.instance===null){var l=Fl(n.href),i=t.querySelector(Ar(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=ko.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=i,jt(i);return}i=t.ownerDocument||t,n=_y(n),(l=Ee.get(l))&&Vf(n,l),i=i.createElement("link"),jt(i);var r=i;r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Bt(i,"link",n),e.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&!(e.state.loading&3)&&(a.count++,e=ko.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function Mx(){if(Ii===null)throw Error(N(475));var t=Ii;return t.stylesheets&&t.count===0&&Mc(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Mc(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function ko(){if(this.count--,this.count===0){if(this.stylesheets)Mc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ko=null;function Mc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ko=new Map,e.forEach(Dx,t),Ko=null,ko.call(t))}function Dx(t,e){if(!(e.state.loading&4)){var n=Ko.get(t);if(n)var a=n.get(null);else{n=new Map,Ko.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var r=l[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}l=e.instance,r=l.getAttribute("data-precedence"),i=n.get(r)||a,i===a&&n.set(null,l),n.set(r,l),this.count++,a=ko.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var tr={$$typeof:un,Provider:null,Consumer:null,_currentValue:Ra,_currentValue2:Ra,_threadCount:0};function jx(t,e,n,a,l,i,r,o){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=Xs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xs(0),this.hiddenUpdates=Xs(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Uy(t,e,n,a,l,i,r,o,s,u,f,h){return t=new jx(t,e,n,r,o,s,u,h),e=1,i===!0&&(e|=24),i=re(3,null,null,e),t.current=i,i.stateNode=t,e=pf(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:e},xf(i),t}function Hy(t){return t?(t=yl,t):yl}function By(t,e,n,a,l,i){l=Hy(l),a.context===null?a.context=l:a.pendingContext=l,a=ta(e),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=ea(t,a,e),n!==null&&(ce(n,t,e),Ui(n,t,e))}function Gh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Zf(t,e){Gh(t,e),(t=t.alternate)&&Gh(t,e)}function Ly(t){if(t.tag===13){var e=li(t,67108864);e!==null&&ce(e,t,67108864),Zf(t,67108864)}}var Po=!0;function _x(t,e,n,a){var l=B.T;B.T=null;var i=tt.p;try{tt.p=2,kf(t,e,n,a)}finally{tt.p=i,B.T=l}}function zx(t,e,n,a){var l=B.T;B.T=null;var i=tt.p;try{tt.p=8,kf(t,e,n,a)}finally{tt.p=i,B.T=l}}function kf(t,e,n,a){if(Po){var l=Dc(a);if(l===null)Su(t,e,a,Jo,n),Qh(t,a);else if(Hx(l,t,e,n,a))a.stopPropagation();else if(Qh(t,a),e&4&&-1<Ux.indexOf(t)){for(;l!==null;){var i=ai(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=ba(i.pendingLanes);if(r!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var s=1<<31-se(r);o.entanglements[1]|=s,r&=~s}Ie(i),!(at&6)&&(qo=Pe()+500,Er(0))}}break;case 13:o=li(i,2),o!==null&&ce(o,i,2),xs(),Zf(i,2)}if(i=Dc(a),i===null&&Su(t,e,a,Jo,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else Su(t,e,a,null,n)}}function Dc(t){return t=sf(t),Kf(t)}var Jo=null;function Kf(t){if(Jo=null,t=cl(t),t!==null){var e=cr(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=uv(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 Jo=t,null}function qy(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(xb()){case hv:return 2;case mv:return 8;case Eo:case Sb:return 32;case vv:return 268435456;default:return 32}default:return 32}}var jc=!1,la=null,ia=null,ra=null,er=new Map,nr=new Map,Qn=[],Ux="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 Qh(t,e){switch(t){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":er.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(e.pointerId)}}function xi(t,e,n,a,l,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},e!==null&&(e=ai(e),e!==null&&Ly(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function Hx(t,e,n,a,l){switch(e){case"focusin":return la=xi(la,t,e,n,a,l),!0;case"dragenter":return ia=xi(ia,t,e,n,a,l),!0;case"mouseover":return ra=xi(ra,t,e,n,a,l),!0;case"pointerover":var i=l.pointerId;return er.set(i,xi(er.get(i)||null,t,e,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,nr.set(i,xi(nr.get(i)||null,t,e,n,a,l)),!0}return!1}function Yy(t){var e=cl(t.target);if(e!==null){var n=cr(e);if(n!==null){if(e=n.tag,e===13){if(e=uv(n),e!==null){t.blockedOn=e,Rb(t.priority,function(){if(n.tag===13){var a=ue();a=af(a);var l=li(n,a);l!==null&&ce(l,n,a),Zf(n,a)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Dc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ju=a,n.target.dispatchEvent(a),Ju=null}else return e=ai(n),e!==null&&Ly(e),t.blockedOn=n,!1;e.shift()}return!0}function Vh(t,e,n){vo(t)&&n.delete(e)}function Bx(){jc=!1,la!==null&&vo(la)&&(la=null),ia!==null&&vo(ia)&&(ia=null),ra!==null&&vo(ra)&&(ra=null),er.forEach(Vh),nr.forEach(Vh)}function Xr(t,e){t.blockedOn===e&&(t.blockedOn=null,jc||(jc=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,Bx)))}var Zr=null;function Xh(t){Zr!==t&&(Zr=t,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,function(){Zr===t&&(Zr=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],l=t[e+2];if(typeof a!="function"){if(Kf(a||n)===null)continue;break}var i=ai(n);i!==null&&(t.splice(e,3),e-=3,fc(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function ar(t){function e(s){return Xr(s,t)}la!==null&&Xr(la,t),ia!==null&&Xr(ia,t),ra!==null&&Xr(ra,t),er.forEach(e),nr.forEach(e);for(var n=0;n<Qn.length;n++){var a=Qn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Yy(n),n.blockedOn===null&&Qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],r=l[It]||null;if(typeof i=="function")r||Xh(n);else if(r){var o=null;if(i&&i.hasAttribute("formAction")){if(l=i,r=i[It]||null)o=r.formAction;else if(Kf(l)!==null)continue}else o=r.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),Xh(n)}}}function Pf(t){this._internalRoot=t}As.prototype.render=Pf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(N(409));var n=e.current,a=ue();By(n,a,t,e,null,null)};As.prototype.unmount=Pf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;By(t.current,2,null,t,null,null),xs(),e[ni]=null}};function As(t){this._internalRoot=t}As.prototype.unstable_scheduleHydration=function(t){if(t){var e=xv();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Qn.length&&e!==0&&e<Qn[n].priority;n++);Qn.splice(n,0,t),n===0&&Yy(t)}};var Zh=ov.version;if(Zh!=="19.1.1")throw Error(N(527,Zh,"19.1.1"));tt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=hb(e),t=t!==null?cv(t):null,t=t===null?null:t.stateNode,t};var Lx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kr.isDisabled&&kr.supportsFiber)try{fr=kr.inject(Lx),oe=kr}catch{}}os.createRoot=function(t,e){if(!sv(t))throw Error(N(299));var n=!1,a="",l=U0,i=H0,r=B0,o=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Uy(t,1,!1,null,null,n,a,l,i,r,o,null),t[ni]=e.current,Qf(t),new Pf(e)};os.hydrateRoot=function(t,e,n){if(!sv(t))throw Error(N(299));var a=!1,l="",i=U0,r=H0,o=B0,s=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(s=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),e=Uy(t,1,!0,e,n??null,a,l,i,r,o,s,u),e.context=Hy(null),n=e.current,a=ue(),a=af(a),l=ta(a),l.callback=null,ea(n,l,a),n=a,e.current.lanes=n,hr(e,n),Ie(e),t[ni]=e.current,Qf(t),new As(e)};os.version="19.1.1";function Gy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gy)}catch(t){console.error(t)}}Gy(),Km.exports=os;var qx=Km.exports,Yx=(t,e,n,a,l,i,r,o)=>{let s=document.documentElement,u=["light","dark"];function f(c){(Array.isArray(t)?t:[t]).forEach(w=>{let y=w==="class",x=y&&i?l.map(m=>i[m]||m):l;y?(s.classList.remove(...x),s.classList.add(i&&i[c]?i[c]:c)):s.setAttribute(w,c)}),h(c)}function h(c){o&&u.includes(c)&&(s.style.colorScheme=c)}function d(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)f(a);else try{let c=localStorage.getItem(e)||n,w=r&&c==="system"?d():c;f(w)}catch{}},Gx=g.createContext(void 0),Qx={setTheme:t=>{},themes:[]},Vx=()=>{var t;return(t=g.useContext(Gx))!=null?t:Qx};g.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:a,enableColorScheme:l,defaultTheme:i,value:r,themes:o,nonce:s,scriptProps:u})=>{let f=JSON.stringify([n,e,i,t,o,r,a,l]).slice(1,-1);return g.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${Yx.toString()})(${f})`}})});var Xx=t=>{switch(t){case"success":return Kx;case"info":return Jx;case"warning":return Px;case"error":return $x;default:return null}},Zx=Array(12).fill(0),kx=({visible:t,className:e})=>j.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},j.createElement("div",{className:"sonner-spinner"},Zx.map((n,a)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Kx=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Px=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Jx=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),$x=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Fx=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Wx=()=>{let[t,e]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},_c=1,Ix=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...a}=t,l=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:_c++,i=this.toasts.find(o=>o.id===l),r=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),i?this.toasts=this.toasts.map(o=>o.id===l?(this.publish({...o,...t,id:l,title:n}),{...o,...t,id:l,dismissible:r,title:n}):o):this.addToast({title:n,...a,dismissible:r,id:l}),l},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let a=t instanceof Promise?t:t(),l=n!==void 0,i,r=a.then(async s=>{if(i=["resolve",s],j.isValidElement(s))l=!1,this.create({id:n,type:"default",message:s});else if(eS(s)&&!s.ok){l=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${s.status}`):e.error,f=typeof e.description=="function"?await e.description(`HTTP error! status: ${s.status}`):e.description;this.create({id:n,type:"error",message:u,description:f})}else if(e.success!==void 0){l=!1;let u=typeof e.success=="function"?await e.success(s):e.success,f=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"success",message:u,description:f})}}).catch(async s=>{if(i=["reject",s],e.error!==void 0){l=!1;let u=typeof e.error=="function"?await e.error(s):e.error,f=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"error",message:u,description:f})}}).finally(()=>{var s;l&&(this.dismiss(n),n=void 0),(s=e.finally)==null||s.call(e)}),o=()=>new Promise((s,u)=>r.then(()=>i[0]==="reject"?u(i[1]):s(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:o}:Object.assign(n,{unwrap:o})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||_c++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ft=new Ix,tS=(t,e)=>{let n=(e==null?void 0:e.id)||_c++;return Ft.addToast({title:t,...e,id:n}),n},eS=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",nS=tS,aS=()=>Ft.toasts,lS=()=>Ft.getActiveToasts();Object.assign(nS,{success:Ft.success,info:Ft.info,warning:Ft.warning,error:Ft.error,custom:Ft.custom,message:Ft.message,promise:Ft.promise,dismiss:Ft.dismiss,loading:Ft.loading},{getHistory:aS,getToasts:lS});function iS(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}iS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function Kr(t){return t.label!==void 0}var rS=3,oS="32px",sS="16px",kh=4e3,uS=356,cS=14,fS=20,dS=200;function Oe(...t){return t.filter(Boolean).join(" ")}function hS(t){let[e,n]=t.split("-"),a=[];return e&&a.push(e),n&&a.push(n),a}var mS=t=>{var e,n,a,l,i,r,o,s,u,f,h;let{invert:d,toast:c,unstyled:w,interacting:y,setHeights:x,visibleToasts:m,heights:v,index:p,toasts:S,expanded:E,removeToast:O,defaultRichColors:A,closeButton:R,style:z,cancelButtonStyle:_,actionButtonStyle:Q,className:H="",descriptionClassName:et="",duration:K,position:ut,gap:C,loadingIcon:U,expandByDefault:M,classNames:D,icons:L,closeButtonAriaLabel:gt="Close toast",pauseWhenPageIsHidden:P}=t,[W,$]=j.useState(null),[Et,En]=j.useState(null),[ct,Ka]=j.useState(!1),[An,va]=j.useState(!1),[Tn,Pa]=j.useState(!1),[Nn,Cr]=j.useState(!1),[Bs,Rr]=j.useState(!1),[Ls,fi]=j.useState(0),[Ja,md]=j.useState(0),di=j.useRef(c.duration||K||kh),vd=j.useRef(null),ya=j.useRef(null),Up=p===0,Hp=p+1<=m,he=c.type,$a=c.dismissible!==!1,Bp=c.className||"",Lp=c.descriptionClassName||"",Mr=j.useMemo(()=>v.findIndex(q=>q.toastId===c.id)||0,[v,c.id]),qp=j.useMemo(()=>{var q;return(q=c.closeButton)!=null?q:R},[c.closeButton,R]),yd=j.useMemo(()=>c.duration||K||kh,[c.duration,K]),qs=j.useRef(0),Fa=j.useRef(0),gd=j.useRef(0),Wa=j.useRef(null),[Yp,Gp]=ut.split("-"),pd=j.useMemo(()=>v.reduce((q,lt,ht)=>ht>=Mr?q:q+lt.height,0),[v,Mr]),bd=Wx(),Qp=c.invert||d,Ys=he==="loading";Fa.current=j.useMemo(()=>Mr*C+pd,[Mr,pd]),j.useEffect(()=>{di.current=yd},[yd]),j.useEffect(()=>{Ka(!0)},[]),j.useEffect(()=>{let q=ya.current;if(q){let lt=q.getBoundingClientRect().height;return md(lt),x(ht=>[{toastId:c.id,height:lt,position:c.position},...ht]),()=>x(ht=>ht.filter(Ae=>Ae.toastId!==c.id))}},[x,c.id]),j.useLayoutEffect(()=>{if(!ct)return;let q=ya.current,lt=q.style.height;q.style.height="auto";let ht=q.getBoundingClientRect().height;q.style.height=lt,md(ht),x(Ae=>Ae.find(Te=>Te.toastId===c.id)?Ae.map(Te=>Te.toastId===c.id?{...Te,height:ht}:Te):[{toastId:c.id,height:ht,position:c.position},...Ae])},[ct,c.title,c.description,x,c.id]);let On=j.useCallback(()=>{va(!0),fi(Fa.current),x(q=>q.filter(lt=>lt.toastId!==c.id)),setTimeout(()=>{O(c)},dS)},[c,O,x,Fa]);j.useEffect(()=>{if(c.promise&&he==="loading"||c.duration===1/0||c.type==="loading")return;let q;return E||y||P&&bd?(()=>{if(gd.current<qs.current){let lt=new Date().getTime()-qs.current;di.current=di.current-lt}gd.current=new Date().getTime()})():di.current!==1/0&&(qs.current=new Date().getTime(),q=setTimeout(()=>{var lt;(lt=c.onAutoClose)==null||lt.call(c,c),On()},di.current)),()=>clearTimeout(q)},[E,y,c,he,P,bd,On]),j.useEffect(()=>{c.delete&&On()},[On,c.delete]);function Vp(){var q,lt,ht;return L!=null&&L.loading?j.createElement("div",{className:Oe(D==null?void 0:D.loader,(q=c==null?void 0:c.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":he==="loading"},L.loading):U?j.createElement("div",{className:Oe(D==null?void 0:D.loader,(lt=c==null?void 0:c.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":he==="loading"},U):j.createElement(kx,{className:Oe(D==null?void 0:D.loader,(ht=c==null?void 0:c.classNames)==null?void 0:ht.loader),visible:he==="loading"})}return j.createElement("li",{tabIndex:0,ref:ya,className:Oe(H,Bp,D==null?void 0:D.toast,(e=c==null?void 0:c.classNames)==null?void 0:e.toast,D==null?void 0:D.default,D==null?void 0:D[he],(n=c==null?void 0:c.classNames)==null?void 0:n[he]),"data-sonner-toast":"","data-rich-colors":(a=c.richColors)!=null?a:A,"data-styled":!(c.jsx||c.unstyled||w),"data-mounted":ct,"data-promise":!!c.promise,"data-swiped":Bs,"data-removed":An,"data-visible":Hp,"data-y-position":Yp,"data-x-position":Gp,"data-index":p,"data-front":Up,"data-swiping":Tn,"data-dismissible":$a,"data-type":he,"data-invert":Qp,"data-swipe-out":Nn,"data-swipe-direction":Et,"data-expanded":!!(E||M&&ct),style:{"--index":p,"--toasts-before":p,"--z-index":S.length-p,"--offset":`${An?Ls:Fa.current}px`,"--initial-height":M?"auto":`${Ja}px`,...z,...c.style},onDragEnd:()=>{Pa(!1),$(null),Wa.current=null},onPointerDown:q=>{Ys||!$a||(vd.current=new Date,fi(Fa.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(Pa(!0),Wa.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,lt,ht,Ae;if(Nn||!$a)return;Wa.current=null;let Te=Number(((q=ya.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((lt=ya.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ga=new Date().getTime()-((ht=vd.current)==null?void 0:ht.getTime()),Ne=W==="x"?Te:Cn,Rn=Math.abs(Ne)/ga;if(Math.abs(Ne)>=fS||Rn>.11){fi(Fa.current),(Ae=c.onDismiss)==null||Ae.call(c,c),En(W==="x"?Te>0?"right":"left":Cn>0?"down":"up"),On(),Cr(!0),Rr(!1);return}Pa(!1),$(null)},onPointerMove:q=>{var lt,ht,Ae,Te;if(!Wa.current||!$a||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;let Cn=q.clientY-Wa.current.y,ga=q.clientX-Wa.current.x,Ne=(ht=t.swipeDirections)!=null?ht:hS(ut);!W&&(Math.abs(ga)>1||Math.abs(Cn)>1)&&$(Math.abs(ga)>Math.abs(Cn)?"x":"y");let Rn={x:0,y:0};W==="y"?(Ne.includes("top")||Ne.includes("bottom"))&&(Ne.includes("top")&&Cn<0||Ne.includes("bottom")&&Cn>0)&&(Rn.y=Cn):W==="x"&&(Ne.includes("left")||Ne.includes("right"))&&(Ne.includes("left")&&ga<0||Ne.includes("right")&&ga>0)&&(Rn.x=ga),(Math.abs(Rn.x)>0||Math.abs(Rn.y)>0)&&Rr(!0),(Ae=ya.current)==null||Ae.style.setProperty("--swipe-amount-x",`${Rn.x}px`),(Te=ya.current)==null||Te.style.setProperty("--swipe-amount-y",`${Rn.y}px`)}},qp&&!c.jsx?j.createElement("button",{"aria-label":gt,"data-disabled":Ys,"data-close-button":!0,onClick:Ys||!$a?()=>{}:()=>{var q;On(),(q=c.onDismiss)==null||q.call(c,c)},className:Oe(D==null?void 0:D.closeButton,(l=c==null?void 0:c.classNames)==null?void 0:l.closeButton)},(i=L==null?void 0:L.close)!=null?i:Fx):null,c.jsx||g.isValidElement(c.title)?c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title:j.createElement(j.Fragment,null,he||c.icon||c.promise?j.createElement("div",{"data-icon":"",className:Oe(D==null?void 0:D.icon,(r=c==null?void 0:c.classNames)==null?void 0:r.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Vp():null,c.type!=="loading"?c.icon||(L==null?void 0:L[he])||Xx(he):null):null,j.createElement("div",{"data-content":"",className:Oe(D==null?void 0:D.content,(o=c==null?void 0:c.classNames)==null?void 0:o.content)},j.createElement("div",{"data-title":"",className:Oe(D==null?void 0:D.title,(s=c==null?void 0:c.classNames)==null?void 0:s.title)},typeof c.title=="function"?c.title():c.title),c.description?j.createElement("div",{"data-description":"",className:Oe(et,Lp,D==null?void 0:D.description,(u=c==null?void 0:c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),g.isValidElement(c.cancel)?c.cancel:c.cancel&&Kr(c.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||_,onClick:q=>{var lt,ht;Kr(c.cancel)&&$a&&((ht=(lt=c.cancel).onClick)==null||ht.call(lt,q),On())},className:Oe(D==null?void 0:D.cancelButton,(f=c==null?void 0:c.classNames)==null?void 0:f.cancelButton)},c.cancel.label):null,g.isValidElement(c.action)?c.action:c.action&&Kr(c.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||Q,onClick:q=>{var lt,ht;Kr(c.action)&&((ht=(lt=c.action).onClick)==null||ht.call(lt,q),!q.defaultPrevented&&On())},className:Oe(D==null?void 0:D.actionButton,(h=c==null?void 0:c.classNames)==null?void 0:h.actionButton)},c.action.label):null))};function Kh(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function vS(t,e){let n={};return[t,e].forEach((a,l)=>{let i=l===1,r=i?"--mobile-offset":"--offset",o=i?sS:oS;function s(u){["top","right","bottom","left"].forEach(f=>{n[`${r}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof a=="number"||typeof a=="string"?s(a):typeof a=="object"?["top","right","bottom","left"].forEach(u=>{a[u]===void 0?n[`${r}-${u}`]=o:n[`${r}-${u}`]=typeof a[u]=="number"?`${a[u]}px`:a[u]}):s(o)}),n}var yS=g.forwardRef(function(t,e){let{invert:n,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:i,closeButton:r,className:o,offset:s,mobileOffset:u,theme:f="light",richColors:h,duration:d,style:c,visibleToasts:w=rS,toastOptions:y,dir:x=Kh(),gap:m=cS,loadingIcon:v,icons:p,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=t,[O,A]=j.useState([]),R=j.useMemo(()=>Array.from(new Set([a].concat(O.filter(P=>P.position).map(P=>P.position)))),[O,a]),[z,_]=j.useState([]),[Q,H]=j.useState(!1),[et,K]=j.useState(!1),[ut,C]=j.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=j.useRef(null),M=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=j.useRef(null),L=j.useRef(!1),gt=j.useCallback(P=>{A(W=>{var $;return($=W.find(Et=>Et.id===P.id))!=null&&$.delete||Ft.dismiss(P.id),W.filter(({id:Et})=>Et!==P.id)})},[]);return j.useEffect(()=>Ft.subscribe(P=>{if(P.dismiss){A(W=>W.map($=>$.id===P.id?{...$,delete:!0}:$));return}setTimeout(()=>{rv.flushSync(()=>{A(W=>{let $=W.findIndex(Et=>Et.id===P.id);return $!==-1?[...W.slice(0,$),{...W[$],...P},...W.slice($+1)]:[P,...W]})})})}),[]),j.useEffect(()=>{if(f!=="system"){C(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?C("dark"):C("light")),typeof window>"u")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:W})=>{C(W?"dark":"light")})}catch{P.addListener(({matches:$})=>{try{C($?"dark":"light")}catch(Et){console.error(Et)}})}},[f]),j.useEffect(()=>{O.length<=1&&H(!1)},[O]),j.useEffect(()=>{let P=W=>{var $,Et;l.every(En=>W[En]||W.code===En)&&(H(!0),($=U.current)==null||$.focus()),W.code==="Escape"&&(document.activeElement===U.current||(Et=U.current)!=null&&Et.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[l]),j.useEffect(()=>{if(U.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,L.current=!1)}},[U.current]),j.createElement("section",{ref:e,"aria-label":`${S} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((P,W)=>{var $;let[Et,En]=P.split("-");return O.length?j.createElement("ol",{key:P,dir:x==="auto"?Kh():x,tabIndex:-1,ref:U,className:o,"data-sonner-toaster":!0,"data-theme":ut,"data-y-position":Et,"data-lifted":Q&&O.length>1&&!i,"data-x-position":En,style:{"--front-toast-height":`${(($=z[0])==null?void 0:$.height)||0}px`,"--width":`${uS}px`,"--gap":`${m}px`,...c,...vS(s,u)},onBlur:ct=>{L.current&&!ct.currentTarget.contains(ct.relatedTarget)&&(L.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||L.current||(L.current=!0,D.current=ct.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{et||H(!1)},onDragEnd:()=>H(!1),onPointerDown:ct=>{ct.target instanceof HTMLElement&&ct.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},O.filter(ct=>!ct.position&&W===0||ct.position===P).map((ct,Ka)=>{var An,va;return j.createElement(mS,{key:ct.id,icons:p,index:Ka,toast:ct,defaultRichColors:h,duration:(An=y==null?void 0:y.duration)!=null?An:d,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:w,closeButton:(va=y==null?void 0:y.closeButton)!=null?va:r,interacting:et,position:P,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:gt,toasts:O.filter(Tn=>Tn.position==ct.position),heights:z.filter(Tn=>Tn.position==ct.position),setHeights:_,expandByDefault:i,gap:m,loadingIcon:v,expanded:Q,pauseWhenPageIsHidden:E,swipeDirections:t.swipeDirections})})):null}))});const gS=({...t})=>{const{theme:e="system"}=Vx();return b.jsx(yS,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};function Wt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(l){if(t==null||t(l),n===!1||!l.defaultPrevented)return e==null?void 0:e(l)}}function Ph(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Qy(...t){return e=>{let n=!1;const a=t.map(l=>{const i=Ph(l,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let l=0;l<a.length;l++){const i=a[l];typeof i=="function"?i():Ph(t[l],null)}}}}function He(...t){return g.useCallback(Qy(...t),t)}function pS(t,e){const n=g.createContext(e),a=i=>{const{children:r,...o}=i,s=g.useMemo(()=>o,Object.values(o));return b.jsx(n.Provider,{value:s,children:r})};a.displayName=t+"Provider";function l(i){const r=g.useContext(n);if(r)return r;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[a,l]}function Jf(t,e=[]){let n=[];function a(i,r){const o=g.createContext(r),s=n.length;n=[...n,r];const u=h=>{var m;const{scope:d,children:c,...w}=h,y=((m=d==null?void 0:d[t])==null?void 0:m[s])||o,x=g.useMemo(()=>w,Object.values(w));return b.jsx(y.Provider,{value:x,children:c})};u.displayName=i+"Provider";function f(h,d){var y;const c=((y=d==null?void 0:d[t])==null?void 0:y[s])||o,w=g.useContext(c);if(w)return w;if(r!==void 0)return r;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,f]}const l=()=>{const i=n.map(r=>g.createContext(r));return function(o){const s=(o==null?void 0:o[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...o,[t]:s}}),[o,s])}};return l.scopeName=t,[a,bS(l,...e)]}function bS(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const a=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(i){const r=a.reduce((o,{useScope:s,scopeName:u})=>{const h=s(i)[`__scope${u}`];return{...o,...h}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return n.scopeName=e.scopeName,n}function $f(t){const e=SS(t),n=g.forwardRef((a,l)=>{const{children:i,...r}=a,o=g.Children.toArray(i),s=o.find(ES);if(s){const u=s.props.children,f=o.map(h=>h===s?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:h);return b.jsx(e,{...r,ref:l,children:g.isValidElement(u)?g.cloneElement(u,void 0,f):null})}return b.jsx(e,{...r,ref:l,children:i})});return n.displayName=`${t}.Slot`,n}var xS=$f("Slot");function SS(t){const e=g.forwardRef((n,a)=>{const{children:l,...i}=n;if(g.isValidElement(l)){const r=TS(l),o=AS(i,l.props);return l.type!==g.Fragment&&(o.ref=a?Qy(a,r):r),g.cloneElement(l,o)}return g.Children.count(l)>1?g.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Vy=Symbol("radix.slottable");function wS(t){const e=({children:n})=>b.jsx(b.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=Vy,e}function ES(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Vy}function AS(t,e){const n={...e};for(const a in e){const l=t[a],i=e[a];/^on[A-Z]/.test(a)?l&&i?n[a]=(...o)=>{const s=i(...o);return l(...o),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...i}:a==="className"&&(n[a]=[l,i].filter(Boolean).join(" "))}return{...t,...n}}function TS(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var NS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kt=NS.reduce((t,e)=>{const n=$f(`Primitive.${e}`),a=g.forwardRef((l,i)=>{const{asChild:r,...o}=l,s=r?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(s,{...o,ref:i})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function OS(t,e){t&&us.flushSync(()=>t.dispatchEvent(e))}function Wl(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...n)=>{var a;return(a=e.current)==null?void 0:a.call(e,...n)},[])}function CS(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t);g.useEffect(()=>{const a=l=>{l.key==="Escape"&&n(l)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[n,e])}var RS="DismissableLayer",zc="dismissableLayer.update",MS="dismissableLayer.pointerDownOutside",DS="dismissableLayer.focusOutside",Jh,Xy=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ff=g.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:i,onInteractOutside:r,onDismiss:o,...s}=t,u=g.useContext(Xy),[f,h]=g.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,c]=g.useState({}),w=He(e,A=>h(A)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(x),v=f?y.indexOf(f):-1,p=u.layersWithOutsidePointerEventsDisabled.size>0,S=v>=m,E=zS(A=>{const R=A.target,z=[...u.branches].some(_=>_.contains(R));!S||z||(l==null||l(A),r==null||r(A),A.defaultPrevented||o==null||o())},d),O=US(A=>{const R=A.target;[...u.branches].some(_=>_.contains(R))||(i==null||i(A),r==null||r(A),A.defaultPrevented||o==null||o())},d);return CS(A=>{v===u.layers.size-1&&(a==null||a(A),!A.defaultPrevented&&o&&(A.preventDefault(),o()))},d),g.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$h(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Jh)}},[f,d,n,u]),g.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$h())},[f,u]),g.useEffect(()=>{const A=()=>c({});return document.addEventListener(zc,A),()=>document.removeEventListener(zc,A)},[]),b.jsx(Kt.div,{...s,ref:w,style:{pointerEvents:p?S?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,O.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,E.onPointerDownCapture)})});Ff.displayName=RS;var jS="DismissableLayerBranch",_S=g.forwardRef((t,e)=>{const n=g.useContext(Xy),a=g.useRef(null),l=He(e,a);return g.useEffect(()=>{const i=a.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(Kt.div,{...t,ref:l})});_S.displayName=jS;function zS(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t),a=g.useRef(!1),l=g.useRef(()=>{});return g.useEffect(()=>{const i=o=>{if(o.target&&!a.current){let s=function(){Zy(MS,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",l.current),l.current=s,e.addEventListener("click",l.current,{once:!0})):s()}else e.removeEventListener("click",l.current);a.current=!1},r=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(r),e.removeEventListener("pointerdown",i),e.removeEventListener("click",l.current)}},[e,n]),{onPointerDownCapture:()=>a.current=!0}}function US(t,e=globalThis==null?void 0:globalThis.document){const n=Wl(t),a=g.useRef(!1);return g.useEffect(()=>{const l=i=>{i.target&&!a.current&&Zy(DS,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",l),()=>e.removeEventListener("focusin",l)},[e,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function $h(){const t=new CustomEvent(zc);document.dispatchEvent(t)}function Zy(t,e,n,{discrete:a}){const l=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&l.addEventListener(t,e,{once:!0}),a?OS(l,i):l.dispatchEvent(i)}var ca=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},HS=Ic[" useId ".trim().toString()]||(()=>{}),BS=0;function Eu(t){const[e,n]=g.useState(HS());return ca(()=>{n(a=>a??String(BS++))},[t]),t||(e?`radix-${e}`:"")}const LS=["top","right","bottom","left"],fa=Math.min,ie=Math.max,$o=Math.round,Pr=Math.floor,$e=t=>({x:t,y:t}),qS={left:"right",right:"left",bottom:"top",top:"bottom"},YS={start:"end",end:"start"};function Uc(t,e,n){return ie(t,fa(e,n))}function xn(t,e){return typeof t=="function"?t(e):t}function Sn(t){return t.split("-")[0]}function si(t){return t.split("-")[1]}function Wf(t){return t==="x"?"y":"x"}function If(t){return t==="y"?"height":"width"}const GS=new Set(["top","bottom"]);function ke(t){return GS.has(Sn(t))?"y":"x"}function td(t){return Wf(ke(t))}function QS(t,e,n){n===void 0&&(n=!1);const a=si(t),l=td(t),i=If(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=Fo(r)),[r,Fo(r)]}function VS(t){const e=Fo(t);return[Hc(t),e,Hc(e)]}function Hc(t){return t.replace(/start|end/g,e=>YS[e])}const Fh=["left","right"],Wh=["right","left"],XS=["top","bottom"],ZS=["bottom","top"];function kS(t,e,n){switch(t){case"top":case"bottom":return n?e?Wh:Fh:e?Fh:Wh;case"left":case"right":return e?XS:ZS;default:return[]}}function KS(t,e,n,a){const l=si(t);let i=kS(Sn(t),n==="start",a);return l&&(i=i.map(r=>r+"-"+l),e&&(i=i.concat(i.map(Hc)))),i}function Fo(t){return t.replace(/left|right|bottom|top/g,e=>qS[e])}function PS(t){return{top:0,right:0,bottom:0,left:0,...t}}function ky(t){return typeof t!="number"?PS(t):{top:t,right:t,bottom:t,left:t}}function Wo(t){const{x:e,y:n,width:a,height:l}=t;return{width:a,height:l,top:n,left:e,right:e+a,bottom:n+l,x:e,y:n}}function Ih(t,e,n){let{reference:a,floating:l}=t;const i=ke(e),r=td(e),o=If(r),s=Sn(e),u=i==="y",f=a.x+a.width/2-l.width/2,h=a.y+a.height/2-l.height/2,d=a[o]/2-l[o]/2;let c;switch(s){case"top":c={x:f,y:a.y-l.height};break;case"bottom":c={x:f,y:a.y+a.height};break;case"right":c={x:a.x+a.width,y:h};break;case"left":c={x:a.x-l.width,y:h};break;default:c={x:a.x,y:a.y}}switch(si(e)){case"start":c[r]-=d*(n&&u?-1:1);break;case"end":c[r]+=d*(n&&u?-1:1);break}return c}const JS=async(t,e,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:i=[],platform:r}=n,o=i.filter(Boolean),s=await(r.isRTL==null?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:l}),{x:f,y:h}=Ih(u,a,s),d=a,c={},w=0;for(let y=0;y<o.length;y++){const{name:x,fn:m}=o[y],{x:v,y:p,data:S,reset:E}=await m({x:f,y:h,initialPlacement:a,placement:d,strategy:l,middlewareData:c,rects:u,platform:r,elements:{reference:t,floating:e}});f=v??f,h=p??h,c={...c,[x]:{...c[x],...S}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:l}):E.rects),{x:f,y:h}=Ih(u,d,s)),y=-1)}return{x:f,y:h,placement:d,strategy:l,middlewareData:c}};async function lr(t,e){var n;e===void 0&&(e={});const{x:a,y:l,platform:i,rects:r,elements:o,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=xn(e,t),w=ky(c),x=o[d?h==="floating"?"reference":"floating":h],m=Wo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:f,strategy:s})),v=h==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),S=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},E=Wo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:p,strategy:s}):v);return{top:(m.top-E.top+w.top)/S.y,bottom:(E.bottom-m.bottom+w.bottom)/S.y,left:(m.left-E.left+w.left)/S.x,right:(E.right-m.right+w.right)/S.x}}const $S=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:a,placement:l,rects:i,platform:r,elements:o,middlewareData:s}=e,{element:u,padding:f=0}=xn(t,e)||{};if(u==null)return{};const h=ky(f),d={x:n,y:a},c=td(l),w=If(c),y=await r.getDimensions(u),x=c==="y",m=x?"top":"left",v=x?"bottom":"right",p=x?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[c]-d[c]-i.floating[w],E=d[c]-i.reference[c],O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u));let A=O?O[p]:0;(!A||!await(r.isElement==null?void 0:r.isElement(O)))&&(A=o.floating[p]||i.floating[w]);const R=S/2-E/2,z=A/2-y[w]/2-1,_=fa(h[m],z),Q=fa(h[v],z),H=_,et=A-y[w]-Q,K=A/2-y[w]/2+R,ut=Uc(H,K,et),C=!s.arrow&&si(l)!=null&&K!==ut&&i.reference[w]/2-(K<H?_:Q)-y[w]/2<0,U=C?K<H?K-H:K-et:0;return{[c]:d[c]+U,data:{[c]:ut,centerOffset:K-ut-U,...C&&{alignmentOffset:U}},reset:C}}}),FS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,a;const{placement:l,middlewareData:i,rects:r,initialPlacement:o,platform:s,elements:u}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...x}=xn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Sn(l),v=ke(o),p=Sn(o)===o,S=await(s.isRTL==null?void 0:s.isRTL(u.floating)),E=d||(p||!y?[Fo(o)]:VS(o)),O=w!=="none";!d&&O&&E.push(...KS(o,y,w,S));const A=[o,...E],R=await lr(e,x),z=[];let _=((a=i.flip)==null?void 0:a.overflows)||[];if(f&&z.push(R[m]),h){const K=QS(l,r,S);z.push(R[K[0]],R[K[1]])}if(_=[..._,{placement:l,overflows:z}],!z.every(K=>K<=0)){var Q,H;const K=(((Q=i.flip)==null?void 0:Q.index)||0)+1,ut=A[K];if(ut&&(!(h==="alignment"?v!==ke(ut):!1)||_.every(M=>M.overflows[0]>0&&ke(M.placement)===v)))return{data:{index:K,overflows:_},reset:{placement:ut}};let C=(H=_.filter(U=>U.overflows[0]<=0).sort((U,M)=>U.overflows[1]-M.overflows[1])[0])==null?void 0:H.placement;if(!C)switch(c){case"bestFit":{var et;const U=(et=_.filter(M=>{if(O){const D=ke(M.placement);return D===v||D==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((M,D)=>M[1]-D[1])[0])==null?void 0:et[0];U&&(C=U);break}case"initialPlacement":C=o;break}if(l!==C)return{reset:{placement:C}}}return{}}}};function tm(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function em(t){return LS.some(e=>t[e]>=0)}const WS=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:a="referenceHidden",...l}=xn(t,e);switch(a){case"referenceHidden":{const i=await lr(e,{...l,elementContext:"reference"}),r=tm(i,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:em(r)}}}case"escaped":{const i=await lr(e,{...l,altBoundary:!0}),r=tm(i,n.floating);return{data:{escapedOffsets:r,escaped:em(r)}}}default:return{}}}}},Ky=new Set(["left","top"]);async function IS(t,e){const{placement:n,platform:a,elements:l}=t,i=await(a.isRTL==null?void 0:a.isRTL(l.floating)),r=Sn(n),o=si(n),s=ke(n)==="y",u=Ky.has(r)?-1:1,f=i&&s?-1:1,h=xn(e,t);let{mainAxis:d,crossAxis:c,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof w=="number"&&(c=o==="end"?w*-1:w),s?{x:c*f,y:d*u}:{x:d*u,y:c*f}}const tw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,a;const{x:l,y:i,placement:r,middlewareData:o}=e,s=await IS(e,t);return r===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:l+s.x,y:i+s.y,data:{...s,placement:r}}}}},ew=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:a,placement:l}=e,{mainAxis:i=!0,crossAxis:r=!1,limiter:o={fn:x=>{let{x:m,y:v}=x;return{x:m,y:v}}},...s}=xn(t,e),u={x:n,y:a},f=await lr(e,s),h=ke(Sn(l)),d=Wf(h);let c=u[d],w=u[h];if(i){const x=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=c+f[x],p=c-f[m];c=Uc(v,c,p)}if(r){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",v=w+f[x],p=w-f[m];w=Uc(v,w,p)}const y=o.fn({...e,[d]:c,[h]:w});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[d]:i,[h]:r}}}}}},nw=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:a,placement:l,rects:i,middlewareData:r}=e,{offset:o=0,mainAxis:s=!0,crossAxis:u=!0}=xn(t,e),f={x:n,y:a},h=ke(l),d=Wf(h);let c=f[d],w=f[h];const y=xn(o,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const p=d==="y"?"height":"width",S=i.reference[d]-i.floating[p]+x.mainAxis,E=i.reference[d]+i.reference[p]-x.mainAxis;c<S?c=S:c>E&&(c=E)}if(u){var m,v;const p=d==="y"?"width":"height",S=Ky.has(Sn(l)),E=i.reference[h]-i.floating[p]+(S&&((m=r.offset)==null?void 0:m[h])||0)+(S?0:x.crossAxis),O=i.reference[h]+i.reference[p]+(S?0:((v=r.offset)==null?void 0:v[h])||0)-(S?x.crossAxis:0);w<E?w=E:w>O&&(w=O)}return{[d]:c,[h]:w}}}},aw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,a;const{placement:l,rects:i,platform:r,elements:o}=e,{apply:s=()=>{},...u}=xn(t,e),f=await lr(e,u),h=Sn(l),d=si(l),c=ke(l)==="y",{width:w,height:y}=i.floating;let x,m;h==="top"||h==="bottom"?(x=h,m=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(m=h,x=d==="end"?"top":"bottom");const v=y-f.top-f.bottom,p=w-f.left-f.right,S=fa(y-f[x],v),E=fa(w-f[m],p),O=!e.middlewareData.shift;let A=S,R=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(R=p),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(A=v),O&&!d){const _=ie(f.left,0),Q=ie(f.right,0),H=ie(f.top,0),et=ie(f.bottom,0);c?R=w-2*(_!==0||Q!==0?_+Q:ie(f.left,f.right)):A=y-2*(H!==0||et!==0?H+et:ie(f.top,f.bottom))}await s({...e,availableWidth:R,availableHeight:A});const z=await r.getDimensions(o.floating);return w!==z.width||y!==z.height?{reset:{rects:!0}}:{}}}};function Ts(){return typeof window<"u"}function ui(t){return Py(t)?(t.nodeName||"").toLowerCase():"#document"}function fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tn(t){var e;return(e=(Py(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Py(t){return Ts()?t instanceof Node||t instanceof fe(t).Node:!1}function _e(t){return Ts()?t instanceof Element||t instanceof fe(t).Element:!1}function Fe(t){return Ts()?t instanceof HTMLElement||t instanceof fe(t).HTMLElement:!1}function nm(t){return!Ts()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fe(t).ShadowRoot}const lw=new Set(["inline","contents"]);function Nr(t){const{overflow:e,overflowX:n,overflowY:a,display:l}=ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+n)&&!lw.has(l)}const iw=new Set(["table","td","th"]);function rw(t){return iw.has(ui(t))}const ow=[":popover-open",":modal"];function Ns(t){return ow.some(e=>{try{return t.matches(e)}catch{return!1}})}const sw=["transform","translate","scale","rotate","perspective"],uw=["transform","translate","scale","rotate","perspective","filter"],cw=["paint","layout","strict","content"];function ed(t){const e=nd(),n=_e(t)?ze(t):t;return sw.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||uw.some(a=>(n.willChange||"").includes(a))||cw.some(a=>(n.contain||"").includes(a))}function fw(t){let e=da(t);for(;Fe(e)&&!Il(e);){if(ed(e))return e;if(Ns(e))return null;e=da(e)}return null}function nd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dw=new Set(["html","body","#document"]);function Il(t){return dw.has(ui(t))}function ze(t){return fe(t).getComputedStyle(t)}function Os(t){return _e(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function da(t){if(ui(t)==="html")return t;const e=t.assignedSlot||t.parentNode||nm(t)&&t.host||tn(t);return nm(e)?e.host:e}function Jy(t){const e=da(t);return Il(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fe(e)&&Nr(e)?e:Jy(e)}function ir(t,e,n){var a;e===void 0&&(e=[]),n===void 0&&(n=!0);const l=Jy(t),i=l===((a=t.ownerDocument)==null?void 0:a.body),r=fe(l);if(i){const o=Bc(r);return e.concat(r,r.visualViewport||[],Nr(l)?l:[],o&&n?ir(o):[])}return e.concat(l,ir(l,[],n))}function Bc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $y(t){const e=ze(t);let n=parseFloat(e.width)||0,a=parseFloat(e.height)||0;const l=Fe(t),i=l?t.offsetWidth:n,r=l?t.offsetHeight:a,o=$o(n)!==i||$o(a)!==r;return o&&(n=i,a=r),{width:n,height:a,$:o}}function ad(t){return _e(t)?t:t.contextElement}function Cl(t){const e=ad(t);if(!Fe(e))return $e(1);const n=e.getBoundingClientRect(),{width:a,height:l,$:i}=$y(e);let r=(i?$o(n.width):n.width)/a,o=(i?$o(n.height):n.height)/l;return(!r||!Number.isFinite(r))&&(r=1),(!o||!Number.isFinite(o))&&(o=1),{x:r,y:o}}const hw=$e(0);function Fy(t){const e=fe(t);return!nd()||!e.visualViewport?hw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function mw(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==fe(t)?!1:e}function Ya(t,e,n,a){e===void 0&&(e=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect(),i=ad(t);let r=$e(1);e&&(a?_e(a)&&(r=Cl(a)):r=Cl(t));const o=mw(i,n,a)?Fy(i):$e(0);let s=(l.left+o.x)/r.x,u=(l.top+o.y)/r.y,f=l.width/r.x,h=l.height/r.y;if(i){const d=fe(i),c=a&&_e(a)?fe(a):a;let w=d,y=Bc(w);for(;y&&a&&c!==w;){const x=Cl(y),m=y.getBoundingClientRect(),v=ze(y),p=m.left+(y.clientLeft+parseFloat(v.paddingLeft))*x.x,S=m.top+(y.clientTop+parseFloat(v.paddingTop))*x.y;s*=x.x,u*=x.y,f*=x.x,h*=x.y,s+=p,u+=S,w=fe(y),y=Bc(w)}}return Wo({width:f,height:h,x:s,y:u})}function ld(t,e){const n=Os(t).scrollLeft;return e?e.left+n:Ya(tn(t)).left+n}function Wy(t,e,n){n===void 0&&(n=!1);const a=t.getBoundingClientRect(),l=a.left+e.scrollLeft-(n?0:ld(t,a)),i=a.top+e.scrollTop;return{x:l,y:i}}function vw(t){let{elements:e,rect:n,offsetParent:a,strategy:l}=t;const i=l==="fixed",r=tn(a),o=e?Ns(e.floating):!1;if(a===r||o&&i)return n;let s={scrollLeft:0,scrollTop:0},u=$e(1);const f=$e(0),h=Fe(a);if((h||!h&&!i)&&((ui(a)!=="body"||Nr(r))&&(s=Os(a)),Fe(a))){const c=Ya(a);u=Cl(a),f.x=c.x+a.clientLeft,f.y=c.y+a.clientTop}const d=r&&!h&&!i?Wy(r,s,!0):$e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-s.scrollTop*u.y+f.y+d.y}}function yw(t){return Array.from(t.getClientRects())}function gw(t){const e=tn(t),n=Os(t),a=t.ownerDocument.body,l=ie(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),i=ie(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+ld(t);const o=-n.scrollTop;return ze(a).direction==="rtl"&&(r+=ie(e.clientWidth,a.clientWidth)-l),{width:l,height:i,x:r,y:o}}function pw(t,e){const n=fe(t),a=tn(t),l=n.visualViewport;let i=a.clientWidth,r=a.clientHeight,o=0,s=0;if(l){i=l.width,r=l.height;const u=nd();(!u||u&&e==="fixed")&&(o=l.offsetLeft,s=l.offsetTop)}return{width:i,height:r,x:o,y:s}}const bw=new Set(["absolute","fixed"]);function xw(t,e){const n=Ya(t,!0,e==="fixed"),a=n.top+t.clientTop,l=n.left+t.clientLeft,i=Fe(t)?Cl(t):$e(1),r=t.clientWidth*i.x,o=t.clientHeight*i.y,s=l*i.x,u=a*i.y;return{width:r,height:o,x:s,y:u}}function am(t,e,n){let a;if(e==="viewport")a=pw(t,n);else if(e==="document")a=gw(tn(t));else if(_e(e))a=xw(e,n);else{const l=Fy(t);a={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Wo(a)}function Iy(t,e){const n=da(t);return n===e||!_e(n)||Il(n)?!1:ze(n).position==="fixed"||Iy(n,e)}function Sw(t,e){const n=e.get(t);if(n)return n;let a=ir(t,[],!1).filter(o=>_e(o)&&ui(o)!=="body"),l=null;const i=ze(t).position==="fixed";let r=i?da(t):t;for(;_e(r)&&!Il(r);){const o=ze(r),s=ed(r);!s&&o.position==="fixed"&&(l=null),(i?!s&&!l:!s&&o.position==="static"&&!!l&&bw.has(l.position)||Nr(r)&&!s&&Iy(t,r))?a=a.filter(f=>f!==r):l=o,r=da(r)}return e.set(t,a),a}function ww(t){let{element:e,boundary:n,rootBoundary:a,strategy:l}=t;const r=[...n==="clippingAncestors"?Ns(e)?[]:Sw(e,this._c):[].concat(n),a],o=r[0],s=r.reduce((u,f)=>{const h=am(e,f,l);return u.top=ie(h.top,u.top),u.right=fa(h.right,u.right),u.bottom=fa(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},am(e,o,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Ew(t){const{width:e,height:n}=$y(t);return{width:e,height:n}}function Aw(t,e,n){const a=Fe(e),l=tn(e),i=n==="fixed",r=Ya(t,!0,i,e);let o={scrollLeft:0,scrollTop:0};const s=$e(0);function u(){s.x=ld(l)}if(a||!a&&!i)if((ui(e)!=="body"||Nr(l))&&(o=Os(e)),a){const c=Ya(e,!0,i,e);s.x=c.x+e.clientLeft,s.y=c.y+e.clientTop}else l&&u();i&&!a&&l&&u();const f=l&&!a&&!i?Wy(l,o):$e(0),h=r.left+o.scrollLeft-s.x-f.x,d=r.top+o.scrollTop-s.y-f.y;return{x:h,y:d,width:r.width,height:r.height}}function Au(t){return ze(t).position==="static"}function lm(t,e){if(!Fe(t)||ze(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return tn(t)===n&&(n=n.ownerDocument.body),n}function tg(t,e){const n=fe(t);if(Ns(t))return n;if(!Fe(t)){let l=da(t);for(;l&&!Il(l);){if(_e(l)&&!Au(l))return l;l=da(l)}return n}let a=lm(t,e);for(;a&&rw(a)&&Au(a);)a=lm(a,e);return a&&Il(a)&&Au(a)&&!ed(a)?n:a||fw(t)||n}const Tw=async function(t){const e=this.getOffsetParent||tg,n=this.getDimensions,a=await n(t.floating);return{reference:Aw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Nw(t){return ze(t).direction==="rtl"}const Ow={convertOffsetParentRelativeRectToViewportRelativeRect:vw,getDocumentElement:tn,getClippingRect:ww,getOffsetParent:tg,getElementRects:Tw,getClientRects:yw,getDimensions:Ew,getScale:Cl,isElement:_e,isRTL:Nw};function eg(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Cw(t,e){let n=null,a;const l=tn(t);function i(){var o;clearTimeout(a),(o=n)==null||o.disconnect(),n=null}function r(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),i();const u=t.getBoundingClientRect(),{left:f,top:h,width:d,height:c}=u;if(o||e(),!d||!c)return;const w=Pr(h),y=Pr(l.clientWidth-(f+d)),x=Pr(l.clientHeight-(h+c)),m=Pr(f),p={rootMargin:-w+"px "+-y+"px "+-x+"px "+-m+"px",threshold:ie(0,fa(1,s))||1};let S=!0;function E(O){const A=O[0].intersectionRatio;if(A!==s){if(!S)return r();A?r(!1,A):a=setTimeout(()=>{r(!1,1e-7)},1e3)}A===1&&!eg(u,t.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(E,{...p,root:l.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(t)}return r(!0),i}function Rw(t,e,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,u=ad(t),f=l||i?[...u?ir(u):[],...ir(e)]:[];f.forEach(m=>{l&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const h=u&&o?Cw(u,n):null;let d=-1,c=null;r&&(c=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&c&&(c.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var p;(p=c)==null||p.observe(e)})),n()}),u&&!s&&c.observe(u),c.observe(e));let w,y=s?Ya(t):null;s&&x();function x(){const m=Ya(t);y&&!eg(y,m)&&n(),y=m,w=requestAnimationFrame(x)}return n(),()=>{var m;f.forEach(v=>{l&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h==null||h(),(m=c)==null||m.disconnect(),c=null,s&&cancelAnimationFrame(w)}}const Mw=tw,Dw=ew,jw=FS,_w=aw,zw=WS,im=$S,Uw=nw,Hw=(t,e,n)=>{const a=new Map,l={platform:Ow,...n},i={...l.platform,_c:a};return JS(t,e,{...l,platform:i})};var Bw=typeof document<"u",Lw=function(){},yo=Bw?g.useLayoutEffect:Lw;function Io(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,a,l;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(a=n;a--!==0;)if(!Io(t[a],e[a]))return!1;return!0}if(l=Object.keys(t),n=l.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(e,l[a]))return!1;for(a=n;a--!==0;){const i=l[a];if(!(i==="_owner"&&t.$$typeof)&&!Io(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ng(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rm(t,e){const n=ng(t);return Math.round(e*n)/n}function Tu(t){const e=g.useRef(t);return yo(()=>{e.current=t}),e}function qw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:a=[],platform:l,elements:{reference:i,floating:r}={},transform:o=!0,whileElementsMounted:s,open:u}=t,[f,h]=g.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,c]=g.useState(a);Io(d,a)||c(a);const[w,y]=g.useState(null),[x,m]=g.useState(null),v=g.useCallback(M=>{M!==O.current&&(O.current=M,y(M))},[]),p=g.useCallback(M=>{M!==A.current&&(A.current=M,m(M))},[]),S=i||w,E=r||x,O=g.useRef(null),A=g.useRef(null),R=g.useRef(f),z=s!=null,_=Tu(s),Q=Tu(l),H=Tu(u),et=g.useCallback(()=>{if(!O.current||!A.current)return;const M={placement:e,strategy:n,middleware:d};Q.current&&(M.platform=Q.current),Hw(O.current,A.current,M).then(D=>{const L={...D,isPositioned:H.current!==!1};K.current&&!Io(R.current,L)&&(R.current=L,us.flushSync(()=>{h(L)}))})},[d,e,n,Q,H]);yo(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(M=>({...M,isPositioned:!1})))},[u]);const K=g.useRef(!1);yo(()=>(K.current=!0,()=>{K.current=!1}),[]),yo(()=>{if(S&&(O.current=S),E&&(A.current=E),S&&E){if(_.current)return _.current(S,E,et);et()}},[S,E,et,_,z]);const ut=g.useMemo(()=>({reference:O,floating:A,setReference:v,setFloating:p}),[v,p]),C=g.useMemo(()=>({reference:S,floating:E}),[S,E]),U=g.useMemo(()=>{const M={position:n,left:0,top:0};if(!C.floating)return M;const D=rm(C.floating,f.x),L=rm(C.floating,f.y);return o?{...M,transform:"translate("+D+"px, "+L+"px)",...ng(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,o,C.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:et,refs:ut,elements:C,floatingStyles:U}),[f,et,ut,C,U])}const Yw=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:a,padding:l}=typeof t=="function"?t(n):t;return a&&e(a)?a.current!=null?im({element:a.current,padding:l}).fn(n):{}:a?im({element:a,padding:l}).fn(n):{}}}},Gw=(t,e)=>({...Mw(t),options:[t,e]}),Qw=(t,e)=>({...Dw(t),options:[t,e]}),Vw=(t,e)=>({...Uw(t),options:[t,e]}),Xw=(t,e)=>({...jw(t),options:[t,e]}),Zw=(t,e)=>({..._w(t),options:[t,e]}),kw=(t,e)=>({...zw(t),options:[t,e]}),Kw=(t,e)=>({...Yw(t),options:[t,e]});var Pw="Arrow",ag=g.forwardRef((t,e)=>{const{children:n,width:a=10,height:l=5,...i}=t;return b.jsx(Kt.svg,{...i,ref:e,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});ag.displayName=Pw;var Jw=ag;function $w(t){const[e,n]=g.useState(void 0);return ca(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[0];let r,o;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;r=u.inlineSize,o=u.blockSize}else r=t.offsetWidth,o=t.offsetHeight;n({width:r,height:o})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else n(void 0)},[t]),e}var lg="Popper",[ig,rg]=Jf(lg),[iN,og]=ig(lg),sg="PopperAnchor",ug=g.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:a,...l}=t,i=og(sg,n),r=g.useRef(null),o=He(e,r);return g.useEffect(()=>{i.onAnchorChange((a==null?void 0:a.current)||r.current)}),a?null:b.jsx(Kt.div,{...l,ref:o})});ug.displayName=sg;var id="PopperContent",[Fw,Ww]=ig(id),cg=g.forwardRef((t,e)=>{var ct,Ka,An,va,Tn,Pa;const{__scopePopper:n,side:a="bottom",sideOffset:l=0,align:i="center",alignOffset:r=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:c="optimized",onPlaced:w,...y}=t,x=og(id,n),[m,v]=g.useState(null),p=He(e,Nn=>v(Nn)),[S,E]=g.useState(null),O=$w(S),A=(O==null?void 0:O.width)??0,R=(O==null?void 0:O.height)??0,z=a+(i!=="center"?"-"+i:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Q=Array.isArray(u)?u:[u],H=Q.length>0,et={padding:_,boundary:Q.filter(t2),altBoundary:H},{refs:K,floatingStyles:ut,placement:C,isPositioned:U,middlewareData:M}=qw({strategy:"fixed",placement:z,whileElementsMounted:(...Nn)=>Rw(...Nn,{animationFrame:c==="always"}),elements:{reference:x.anchor},middleware:[Gw({mainAxis:l+R,alignmentAxis:r}),s&&Qw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Vw():void 0,...et}),s&&Xw({...et}),Zw({...et,apply:({elements:Nn,rects:Cr,availableWidth:Bs,availableHeight:Rr})=>{const{width:Ls,height:fi}=Cr.reference,Ja=Nn.floating.style;Ja.setProperty("--radix-popper-available-width",`${Bs}px`),Ja.setProperty("--radix-popper-available-height",`${Rr}px`),Ja.setProperty("--radix-popper-anchor-width",`${Ls}px`),Ja.setProperty("--radix-popper-anchor-height",`${fi}px`)}}),S&&Kw({element:S,padding:o}),e2({arrowWidth:A,arrowHeight:R}),d&&kw({strategy:"referenceHidden",...et})]}),[D,L]=hg(C),gt=Wl(w);ca(()=>{U&&(gt==null||gt())},[U,gt]);const P=(ct=M.arrow)==null?void 0:ct.x,W=(Ka=M.arrow)==null?void 0:Ka.y,$=((An=M.arrow)==null?void 0:An.centerOffset)!==0,[Et,En]=g.useState();return ca(()=>{m&&En(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...ut,transform:U?ut.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Et,"--radix-popper-transform-origin":[(va=M.transformOrigin)==null?void 0:va.x,(Tn=M.transformOrigin)==null?void 0:Tn.y].join(" "),...((Pa=M.hide)==null?void 0:Pa.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:b.jsx(Fw,{scope:n,placedSide:D,onArrowChange:E,arrowX:P,arrowY:W,shouldHideArrow:$,children:b.jsx(Kt.div,{"data-side":D,"data-align":L,...y,ref:p,style:{...y.style,animation:U?void 0:"none"}})})})});cg.displayName=id;var fg="PopperArrow",Iw={top:"bottom",right:"left",bottom:"top",left:"right"},dg=g.forwardRef(function(e,n){const{__scopePopper:a,...l}=e,i=Ww(fg,a),r=Iw[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(Jw,{...l,ref:n,style:{...l.style,display:"block"}})})});dg.displayName=fg;function t2(t){return t!==null}var e2=t=>({name:"transformOrigin",options:t,fn(e){var x,m,v;const{placement:n,rects:a,middlewareData:l}=e,r=((x=l.arrow)==null?void 0:x.centerOffset)!==0,o=r?0:t.arrowWidth,s=r?0:t.arrowHeight,[u,f]=hg(n),h={start:"0%",center:"50%",end:"100%"}[f],d=(((m=l.arrow)==null?void 0:m.x)??0)+o/2,c=(((v=l.arrow)==null?void 0:v.y)??0)+s/2;let w="",y="";return u==="bottom"?(w=r?h:`${d}px`,y=`${-s}px`):u==="top"?(w=r?h:`${d}px`,y=`${a.floating.height+s}px`):u==="right"?(w=`${-s}px`,y=r?h:`${c}px`):u==="left"&&(w=`${a.floating.width+s}px`,y=r?h:`${c}px`),{data:{x:w,y}}}});function hg(t){const[e,n="center"]=t.split("-");return[e,n]}var n2=ug,a2=cg,l2=dg,i2="Portal",mg=g.forwardRef((t,e)=>{var o;const{container:n,...a}=t,[l,i]=g.useState(!1);ca(()=>i(!0),[]);const r=n||l&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return r?rv.createPortal(b.jsx(Kt.div,{...a,ref:e}),r):null});mg.displayName=i2;function r2(t,e){return g.useReducer((n,a)=>e[n][a]??n,t)}var Or=t=>{const{present:e,children:n}=t,a=o2(e),l=typeof n=="function"?n({present:a.isPresent}):g.Children.only(n),i=He(a.ref,s2(l));return typeof n=="function"||a.isPresent?g.cloneElement(l,{ref:i}):null};Or.displayName="Presence";function o2(t){const[e,n]=g.useState(),a=g.useRef(null),l=g.useRef(t),i=g.useRef("none"),r=t?"mounted":"unmounted",[o,s]=r2(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=Jr(a.current);i.current=o==="mounted"?u:"none"},[o]),ca(()=>{const u=a.current,f=l.current;if(f!==t){const d=i.current,c=Jr(u);t?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==c?"ANIMATION_OUT":"UNMOUNT"),l.current=t}},[t,s]),ca(()=>{if(e){let u;const f=e.ownerDocument.defaultView??window,h=c=>{const y=Jr(a.current).includes(c.animationName);if(c.target===e&&y&&(s("ANIMATION_END"),!l.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",u=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},d=c=>{c.target===e&&(i.current=Jr(a.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{f.clearTimeout(u),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:g.useCallback(u=>{a.current=u?getComputedStyle(u):null,n(u)},[])}}function Jr(t){return(t==null?void 0:t.animationName)||"none"}function s2(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var u2=Ic[" useInsertionEffect ".trim().toString()]||ca;function c2({prop:t,defaultProp:e,onChange:n=()=>{},caller:a}){const[l,i,r]=f2({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:l;{const f=g.useRef(t!==void 0);g.useEffect(()=>{const h=f.current;h!==o&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=o},[o,a])}const u=g.useCallback(f=>{var h;if(o){const d=d2(f)?f(t):f;d!==t&&((h=r.current)==null||h.call(r,d))}else i(f)},[o,t,i,r]);return[s,u]}function f2({defaultProp:t,onChange:e}){const[n,a]=g.useState(t),l=g.useRef(n),i=g.useRef(e);return u2(()=>{i.current=e},[e]),g.useEffect(()=>{var r;l.current!==n&&((r=i.current)==null||r.call(i,n),l.current=n)},[n,l]),[n,a,i]}function d2(t){return typeof t=="function"}var h2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),m2="VisuallyHidden",vg=g.forwardRef((t,e)=>b.jsx(Kt.span,{...t,ref:e,style:{...h2,...t.style}}));vg.displayName=m2;var v2=vg,[Cs,rN]=Jf("Tooltip",[rg]),rd=rg(),yg="TooltipProvider",y2=700,om="tooltip.open",[g2,gg]=Cs(yg),pg=t=>{const{__scopeTooltip:e,delayDuration:n=y2,skipDelayDuration:a=300,disableHoverableContent:l=!1,children:i}=t,r=g.useRef(!0),o=g.useRef(!1),s=g.useRef(0);return g.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),b.jsx(g2,{scope:e,isOpenDelayedRef:r,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(s.current),r.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>r.current=!0,a)},[a]),isPointerInTransitRef:o,onPointerInTransitChange:g.useCallback(u=>{o.current=u},[]),disableHoverableContent:l,children:i})};pg.displayName=yg;var bg="Tooltip",[oN,Rs]=Cs(bg),Lc="TooltipTrigger",p2=g.forwardRef((t,e)=>{const{__scopeTooltip:n,...a}=t,l=Rs(Lc,n),i=gg(Lc,n),r=rd(n),o=g.useRef(null),s=He(e,o,l.onTriggerChange),u=g.useRef(!1),f=g.useRef(!1),h=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),b.jsx(n2,{asChild:!0,...r,children:b.jsx(Kt.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:s,onPointerMove:Wt(t.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(l.onTriggerEnter(),f.current=!0)}),onPointerLeave:Wt(t.onPointerLeave,()=>{l.onTriggerLeave(),f.current=!1}),onPointerDown:Wt(t.onPointerDown,()=>{l.open&&l.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Wt(t.onFocus,()=>{u.current||l.onOpen()}),onBlur:Wt(t.onBlur,l.onClose),onClick:Wt(t.onClick,l.onClose)})})});p2.displayName=Lc;var b2="TooltipPortal",[sN,x2]=Cs(b2,{forceMount:void 0}),ti="TooltipContent",xg=g.forwardRef((t,e)=>{const n=x2(ti,t.__scopeTooltip),{forceMount:a=n.forceMount,side:l="top",...i}=t,r=Rs(ti,t.__scopeTooltip);return b.jsx(Or,{present:a||r.open,children:r.disableHoverableContent?b.jsx(Sg,{side:l,...i,ref:e}):b.jsx(S2,{side:l,...i,ref:e})})}),S2=g.forwardRef((t,e)=>{const n=Rs(ti,t.__scopeTooltip),a=gg(ti,t.__scopeTooltip),l=g.useRef(null),i=He(e,l),[r,o]=g.useState(null),{trigger:s,onClose:u}=n,f=l.current,{onPointerInTransitChange:h}=a,d=g.useCallback(()=>{o(null),h(!1)},[h]),c=g.useCallback((w,y)=>{const x=w.currentTarget,m={x:w.clientX,y:w.clientY},v=N2(m,x.getBoundingClientRect()),p=O2(m,v),S=C2(y.getBoundingClientRect()),E=M2([...p,...S]);o(E),h(!0)},[h]);return g.useEffect(()=>()=>d(),[d]),g.useEffect(()=>{if(s&&f){const w=x=>c(x,f),y=x=>c(x,s);return s.addEventListener("pointerleave",w),f.addEventListener("pointerleave",y),()=>{s.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",y)}}},[s,f,c,d]),g.useEffect(()=>{if(r){const w=y=>{const x=y.target,m={x:y.clientX,y:y.clientY},v=(s==null?void 0:s.contains(x))||(f==null?void 0:f.contains(x)),p=!R2(m,r);v?d():p&&(d(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[s,f,r,u,d]),b.jsx(Sg,{...t,ref:i})}),[w2,E2]=Cs(bg,{isInside:!1}),A2=wS("TooltipContent"),Sg=g.forwardRef((t,e)=>{const{__scopeTooltip:n,children:a,"aria-label":l,onEscapeKeyDown:i,onPointerDownOutside:r,...o}=t,s=Rs(ti,n),u=rd(n),{onClose:f}=s;return g.useEffect(()=>(document.addEventListener(om,f),()=>document.removeEventListener(om,f)),[f]),g.useEffect(()=>{if(s.trigger){const h=d=>{const c=d.target;c!=null&&c.contains(s.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[s.trigger,f]),b.jsx(Ff,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:b.jsxs(a2,{"data-state":s.stateAttribute,...u,...o,ref:e,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(A2,{children:a}),b.jsx(w2,{scope:n,isInside:!0,children:b.jsx(v2,{id:s.contentId,role:"tooltip",children:l||a})})]})})});xg.displayName=ti;var wg="TooltipArrow",T2=g.forwardRef((t,e)=>{const{__scopeTooltip:n,...a}=t,l=rd(n);return E2(wg,n).isInside?null:b.jsx(l2,{...l,...a,ref:e})});T2.displayName=wg;function N2(t,e){const n=Math.abs(e.top-t.y),a=Math.abs(e.bottom-t.y),l=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,a,l,i)){case i:return"left";case l:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function O2(t,e,n=5){const a=[];switch(e){case"top":a.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":a.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":a.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":a.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return a}function C2(t){const{top:e,right:n,bottom:a,left:l}=t;return[{x:l,y:e},{x:n,y:e},{x:n,y:a},{x:l,y:a}]}function R2(t,e){const{x:n,y:a}=t;let l=!1;for(let i=0,r=e.length-1;i<e.length;r=i++){const o=e[i],s=e[r],u=o.x,f=o.y,h=s.x,d=s.y;f>a!=d>a&&n<(h-u)*(a-f)/(d-f)+u&&(l=!l)}return l}function M2(t){const e=t.slice();return e.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),D2(e)}function D2(t){if(t.length<=1)return t.slice();const e=[];for(let a=0;a<t.length;a++){const l=t[a];for(;e.length>=2;){const i=e[e.length-1],r=e[e.length-2];if((i.x-r.x)*(l.y-r.y)>=(i.y-r.y)*(l.x-r.x))e.pop();else break}e.push(l)}e.pop();const n=[];for(let a=t.length-1;a>=0;a--){const l=t[a];for(;n.length>=2;){const i=n[n.length-1],r=n[n.length-2];if((i.x-r.x)*(l.y-r.y)>=(i.y-r.y)*(l.x-r.x))n.pop();else break}n.push(l)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var j2=pg,Eg=xg;function Ag(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(e=0;e<l;e++)t[e]&&(n=Ag(t[e]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}function Tg(){for(var t,e,n=0,a="",l=arguments.length;n<l;n++)(t=arguments[n])&&(e=Ag(t))&&(a&&(a+=" "),a+=e);return a}const od="-",_2=t=>{const e=U2(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:r=>{const o=r.split(od);return o[0]===""&&o.length!==1&&o.shift(),Ng(o,e)||z2(r)},getConflictingClassGroupIds:(r,o)=>{const s=n[r]||[];return o&&a[r]?[...s,...a[r]]:s}}},Ng=(t,e)=>{var r;if(t.length===0)return e.classGroupId;const n=t[0],a=e.nextPart.get(n),l=a?Ng(t.slice(1),a):void 0;if(l)return l;if(e.validators.length===0)return;const i=t.join(od);return(r=e.validators.find(({validator:o})=>o(i)))==null?void 0:r.classGroupId},sm=/^\[(.+)\]$/,z2=t=>{if(sm.test(t)){const e=sm.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},U2=t=>{const{theme:e,prefix:n}=t,a={nextPart:new Map,validators:[]};return B2(Object.entries(t.classGroups),n).forEach(([i,r])=>{qc(r,a,i,e)}),a},qc=(t,e,n,a)=>{t.forEach(l=>{if(typeof l=="string"){const i=l===""?e:um(e,l);i.classGroupId=n;return}if(typeof l=="function"){if(H2(l)){qc(l(a),e,n,a);return}e.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([i,r])=>{qc(r,um(e,i),n,a)})})},um=(t,e)=>{let n=t;return e.split(od).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},H2=t=>t.isThemeGetter,B2=(t,e)=>e?t.map(([n,a])=>{const l=a.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,o])=>[e+r,o])):i);return[n,l]}):t,L2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,a=new Map;const l=(i,r)=>{n.set(i,r),e++,e>t&&(e=0,a=n,n=new Map)};return{get(i){let r=n.get(i);if(r!==void 0)return r;if((r=a.get(i))!==void 0)return l(i,r),r},set(i,r){n.has(i)?n.set(i,r):l(i,r)}}},Og="!",q2=t=>{const{separator:e,experimentalParseClassName:n}=t,a=e.length===1,l=e[0],i=e.length,r=o=>{const s=[];let u=0,f=0,h;for(let x=0;x<o.length;x++){let m=o[x];if(u===0){if(m===l&&(a||o.slice(x,x+i)===e)){s.push(o.slice(f,x)),f=x+i;continue}if(m==="/"){h=x;continue}}m==="["?u++:m==="]"&&u--}const d=s.length===0?o:o.substring(f),c=d.startsWith(Og),w=c?d.substring(1):d,y=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:c,baseClassName:w,maybePostfixModifierPosition:y}};return n?o=>n({className:o,parseClassName:r}):r},Y2=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(a=>{a[0]==="["?(e.push(...n.sort(),a),n=[]):n.push(a)}),e.push(...n.sort()),e},G2=t=>({cache:L2(t.cacheSize),parseClassName:q2(t),..._2(t)}),Q2=/\s+/,V2=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:l}=e,i=[],r=t.trim().split(Q2);let o="";for(let s=r.length-1;s>=0;s-=1){const u=r[s],{modifiers:f,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:c}=n(u);let w=!!c,y=a(w?d.substring(0,c):d);if(!y){if(!w){o=u+(o.length>0?" "+o:o);continue}if(y=a(d),!y){o=u+(o.length>0?" "+o:o);continue}w=!1}const x=Y2(f).join(":"),m=h?x+Og:x,v=m+y;if(i.includes(v))continue;i.push(v);const p=l(y,w);for(let S=0;S<p.length;++S){const E=p[S];i.push(m+E)}o=u+(o.length>0?" "+o:o)}return o};function X2(){let t=0,e,n,a="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Cg(e))&&(a&&(a+=" "),a+=n);return a}const Cg=t=>{if(typeof t=="string")return t;let e,n="";for(let a=0;a<t.length;a++)t[a]&&(e=Cg(t[a]))&&(n&&(n+=" "),n+=e);return n};function Z2(t,...e){let n,a,l,i=r;function r(s){const u=e.reduce((f,h)=>h(f),t());return n=G2(u),a=n.cache.get,l=n.cache.set,i=o,o(s)}function o(s){const u=a(s);if(u)return u;const f=V2(s,n);return l(s,f),f}return function(){return i(X2.apply(null,arguments))}}const ft=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Rg=/^\[(?:([a-z-]+):)?(.+)\]$/i,k2=/^\d+\/\d+$/,K2=new Set(["px","full","screen"]),P2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=t=>Rl(t)||K2.has(t)||k2.test(t),jn=t=>ci(t,"length",rE),Rl=t=>!!t&&!Number.isNaN(Number(t)),Nu=t=>ci(t,"number",Rl),Si=t=>!!t&&Number.isInteger(Number(t)),I2=t=>t.endsWith("%")&&Rl(t.slice(0,-1)),G=t=>Rg.test(t),_n=t=>P2.test(t),tE=new Set(["length","size","percentage"]),eE=t=>ci(t,tE,Mg),nE=t=>ci(t,"position",Mg),aE=new Set(["image","url"]),lE=t=>ci(t,aE,sE),iE=t=>ci(t,"",oE),wi=()=>!0,ci=(t,e,n)=>{const a=Rg.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):n(a[2]):!1},rE=t=>J2.test(t)&&!$2.test(t),Mg=()=>!1,oE=t=>F2.test(t),sE=t=>W2.test(t),uE=()=>{const t=ft("colors"),e=ft("spacing"),n=ft("blur"),a=ft("brightness"),l=ft("borderColor"),i=ft("borderRadius"),r=ft("borderSpacing"),o=ft("borderWidth"),s=ft("contrast"),u=ft("grayscale"),f=ft("hueRotate"),h=ft("invert"),d=ft("gap"),c=ft("gradientColorStops"),w=ft("gradientColorStopPositions"),y=ft("inset"),x=ft("margin"),m=ft("opacity"),v=ft("padding"),p=ft("saturate"),S=ft("scale"),E=ft("sepia"),O=ft("skew"),A=ft("space"),R=ft("translate"),z=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",G,e],H=()=>[G,e],et=()=>["",ln,jn],K=()=>["auto",Rl,G],ut=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],C=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],gt=()=>[Rl,G];return{cacheSize:500,separator:":",theme:{colors:[wi],spacing:[ln,jn],blur:["none","",_n,G],brightness:gt(),borderColor:[t],borderRadius:["none","","full",_n,G],borderSpacing:H(),borderWidth:et(),contrast:gt(),grayscale:D(),hueRotate:gt(),invert:D(),gap:H(),gradientColorStops:[t],gradientColorStopPositions:[I2,jn],inset:Q(),margin:Q(),opacity:gt(),padding:H(),saturate:gt(),scale:gt(),sepia:D(),skew:gt(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[_n]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ut(),G]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Si,G]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Si,G]}],"grid-cols":[{"grid-cols":[wi]}],"col-start-end":[{col:["auto",{span:["full",Si,G]},G]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[wi]}],"row-start-end":[{row:["auto",{span:[Si,G]},G]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,e]}],"min-w":[{"min-w":[G,e,"min","max","fit"]}],"max-w":[{"max-w":[G,e,"none","full","min","max","fit","prose",{screen:[_n]},_n]}],h:[{h:[G,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,e,"auto","min","max","fit"]}],"font-size":[{text:["base",_n,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nu]}],"font-family":[{font:[wi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",Rl,Nu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,jn]}],"underline-offset":[{"underline-offset":["auto",ln,G]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ut(),nE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",eE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lE]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...C(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:C()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...C()]}],"outline-offset":[{"outline-offset":[ln,G]}],"outline-w":[{outline:[ln,jn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ln,jn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",_n,iE]}],"shadow-color":[{shadow:[wi]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",_n,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[p]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:gt()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:gt()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Si,G]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ln,jn,Nu]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},cE=Z2(uE);function bt(...t){return cE(Tg(t))}const fE=j2,dE=g.forwardRef(({className:t,sideOffset:e=4,...n},a)=>b.jsx(Eg,{ref:a,sideOffset:e,className:bt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));dE.displayName=Eg.displayName;var Ms=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ds=typeof window>"u"||"Deno"in globalThis;function Ce(){}function hE(t,e){return typeof t=="function"?t(e):t}function mE(t){return typeof t=="number"&&t>=0&&t!==1/0}function vE(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Yc(t,e){return typeof t=="function"?t(e):t}function yE(t,e){return typeof t=="function"?t(e):t}function cm(t,e){const{type:n="all",exact:a,fetchStatus:l,predicate:i,queryKey:r,stale:o}=t;if(r){if(a){if(e.queryHash!==sd(r,e.options))return!1}else if(!or(e.queryKey,r))return!1}if(n!=="all"){const s=e.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||l&&l!==e.state.fetchStatus||i&&!i(e))}function fm(t,e){const{exact:n,status:a,predicate:l,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(rr(e.options.mutationKey)!==rr(i))return!1}else if(!or(e.options.mutationKey,i))return!1}return!(a&&e.state.status!==a||l&&!l(e))}function sd(t,e){return((e==null?void 0:e.queryKeyHashFn)||rr)(t)}function rr(t){return JSON.stringify(t,(e,n)=>Gc(n)?Object.keys(n).sort().reduce((a,l)=>(a[l]=n[l],a),{}):n)}function or(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>or(t[n],e[n])):!1}function Dg(t,e){if(t===e)return t;const n=dm(t)&&dm(e);if(n||Gc(t)&&Gc(e)){const a=n?t:Object.keys(t),l=a.length,i=n?e:Object.keys(e),r=i.length,o=n?[]:{},s=new Set(a);let u=0;for(let f=0;f<r;f++){const h=n?f:i[f];(!n&&s.has(h)||n)&&t[h]===void 0&&e[h]===void 0?(o[h]=void 0,u++):(o[h]=Dg(t[h],e[h]),o[h]===t[h]&&t[h]!==void 0&&u++)}return l===r&&u===l?t:o}return e}function dm(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Gc(t){if(!hm(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!hm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function hm(t){return Object.prototype.toString.call(t)==="[object Object]"}function gE(t){return new Promise(e=>{setTimeout(e,t)})}function pE(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Dg(t,e):e}function bE(t,e,n=0){const a=[...t,e];return n&&a.length>n?a.slice(1):a}function xE(t,e,n=0){const a=[e,...t];return n&&a.length>n?a.slice(0,-1):a}var ud=Symbol();function jg(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===ud?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ea,Vn,_l,Hm,SE=(Hm=class extends Ms{constructor(){super();F(this,Ea);F(this,Vn);F(this,_l);Y(this,_l,e=>{if(!Ds&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Vn)||this.setEventListener(T(this,_l))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Vn))==null||e.call(this),Y(this,Vn,void 0))}setEventListener(e){var n;Y(this,_l,e),(n=T(this,Vn))==null||n.call(this),Y(this,Vn,e(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(e){T(this,Ea)!==e&&(Y(this,Ea,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof T(this,Ea)=="boolean"?T(this,Ea):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ea=new WeakMap,Vn=new WeakMap,_l=new WeakMap,Hm),_g=new SE,zl,Xn,Ul,Bm,wE=(Bm=class extends Ms{constructor(){super();F(this,zl,!0);F(this,Xn);F(this,Ul);Y(this,Ul,e=>{if(!Ds&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){T(this,Xn)||this.setEventListener(T(this,Ul))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Xn))==null||e.call(this),Y(this,Xn,void 0))}setEventListener(e){var n;Y(this,Ul,e),(n=T(this,Xn))==null||n.call(this),Y(this,Xn,e(this.setOnline.bind(this)))}setOnline(e){T(this,zl)!==e&&(Y(this,zl,e),this.listeners.forEach(a=>{a(e)}))}isOnline(){return T(this,zl)}},zl=new WeakMap,Xn=new WeakMap,Ul=new WeakMap,Bm),ts=new wE;function EE(){let t,e;const n=new Promise((l,i)=>{t=l,e=i});n.status="pending",n.catch(()=>{});function a(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{a({status:"fulfilled",value:l}),t(l)},n.reject=l=>{a({status:"rejected",reason:l}),e(l)},n}function AE(t){return Math.min(1e3*2**t,3e4)}function zg(t){return(t??"online")==="online"?ts.isOnline():!0}var Ug=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Ou(t){return t instanceof Ug}function Hg(t){let e=!1,n=0,a=!1,l;const i=EE(),r=y=>{var x;a||(d(new Ug(y)),(x=t.abort)==null||x.call(t))},o=()=>{e=!0},s=()=>{e=!1},u=()=>_g.isFocused()&&(t.networkMode==="always"||ts.isOnline())&&t.canRun(),f=()=>zg(t.networkMode)&&t.canRun(),h=y=>{var x;a||(a=!0,(x=t.onSuccess)==null||x.call(t,y),l==null||l(),i.resolve(y))},d=y=>{var x;a||(a=!0,(x=t.onError)==null||x.call(t,y),l==null||l(),i.reject(y))},c=()=>new Promise(y=>{var x;l=m=>{(a||u())&&y(m)},(x=t.onPause)==null||x.call(t)}).then(()=>{var y;l=void 0,a||(y=t.onContinue)==null||y.call(t)}),w=()=>{if(a)return;let y;const x=n===0?t.initialPromise:void 0;try{y=x??t.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(h).catch(m=>{var O;if(a)return;const v=t.retry??(Ds?0:3),p=t.retryDelay??AE,S=typeof p=="function"?p(n,m):p,E=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,m);if(e||!E){d(m);return}n++,(O=t.onFail)==null||O.call(t,n,m),gE(S).then(()=>u()?void 0:c()).then(()=>{e?d(m):w()})})};return{promise:i,cancel:r,continue:()=>(l==null||l(),i),cancelRetry:o,continueRetry:s,canStart:f,start:()=>(f()?w():c().then(w),i)}}var TE=t=>setTimeout(t,0);function NE(){let t=[],e=0,n=o=>{o()},a=o=>{o()},l=TE;const i=o=>{e?t.push(o):l(()=>{n(o)})},r=()=>{const o=t;t=[],o.length&&l(()=>{a(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;e++;try{s=o()}finally{e--,e||r()}return s},batchCalls:o=>(...s)=>{i(()=>{o(...s)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{a=o},setScheduler:o=>{l=o}}}var Vt=NE(),Aa,Lm,Bg=(Lm=class{constructor(){F(this,Aa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mE(this.gcTime)&&Y(this,Aa,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ds?1/0:5*60*1e3))}clearGcTimeout(){T(this,Aa)&&(clearTimeout(T(this,Aa)),Y(this,Aa,void 0))}},Aa=new WeakMap,Lm),Hl,Ta,me,Na,qt,sr,Oa,Re,rn,qm,OE=(qm=class extends Bg{constructor(e){super();F(this,Re);F(this,Hl);F(this,Ta);F(this,me);F(this,Na);F(this,qt);F(this,sr);F(this,Oa);Y(this,Oa,!1),Y(this,sr,e.defaultOptions),this.setOptions(e.options),this.observers=[],Y(this,Na,e.client),Y(this,me,T(this,Na).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Y(this,Hl,RE(this.options)),this.state=e.state??T(this,Hl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=T(this,qt))==null?void 0:e.promise}setOptions(e){this.options={...T(this,sr),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,me).remove(this)}setData(e,n){const a=pE(this.state.data,e,this.options);return Lt(this,Re,rn).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(e,n){Lt(this,Re,rn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var a,l;const n=(a=T(this,qt))==null?void 0:a.promise;return(l=T(this,qt))==null||l.cancel(e),n?n.then(Ce).catch(Ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Hl))}isActive(){return this.observers.some(e=>yE(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ud||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Yc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!vE(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(a=>a.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=T(this,qt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(a=>a.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=T(this,qt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),T(this,me).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(T(this,qt)&&(T(this,Oa)?T(this,qt).cancel({revert:!0}):T(this,qt).cancelRetry()),this.scheduleGc()),T(this,me).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Lt(this,Re,rn).call(this,{type:"invalidate"})}fetch(e,n){var u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,qt))return T(this,qt).continueRetry(),T(this,qt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(c=>c.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Y(this,Oa,!0),a.signal)})},i=()=>{const d=jg(this.options,n),w=(()=>{const y={client:T(this,Na),queryKey:this.queryKey,meta:this.meta};return l(y),y})();return Y(this,Oa,!1),this.options.persister?this.options.persister(d,w,this):d(w)},o=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Na),state:this.state,fetchFn:i};return l(d),d})();(u=this.options.behavior)==null||u.onFetch(o,this),Y(this,Ta,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&Lt(this,Re,rn).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const s=d=>{var c,w,y,x;Ou(d)&&d.silent||Lt(this,Re,rn).call(this,{type:"error",error:d}),Ou(d)||((w=(c=T(this,me).config).onError)==null||w.call(c,d,this),(x=(y=T(this,me).config).onSettled)==null||x.call(y,this.state.data,d,this)),this.scheduleGc()};return Y(this,qt,Hg({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:a.abort.bind(a),onSuccess:d=>{var c,w,y,x;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(m){s(m);return}(w=(c=T(this,me).config).onSuccess)==null||w.call(c,d,this),(x=(y=T(this,me).config).onSettled)==null||x.call(y,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,c)=>{Lt(this,Re,rn).call(this,{type:"failed",failureCount:d,error:c})},onPause:()=>{Lt(this,Re,rn).call(this,{type:"pause"})},onContinue:()=>{Lt(this,Re,rn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,qt).start()}},Hl=new WeakMap,Ta=new WeakMap,me=new WeakMap,Na=new WeakMap,qt=new WeakMap,sr=new WeakMap,Oa=new WeakMap,Re=new WeakSet,rn=function(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...CE(a.data,this.options),fetchMeta:e.meta??null};case"success":return Y(this,Ta,void 0),{...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=e.error;return Ou(l)&&l.revert&&T(this,Ta)?{...T(this,Ta),fetchStatus:"idle"}:{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),Vt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),T(this,me).notify({query:this,type:"updated",action:e})})},qm);function CE(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zg(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function RE(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,a=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var qe,Ym,ME=(Ym=class extends Ms{constructor(e={}){super();F(this,qe);this.config=e,Y(this,qe,new Map)}build(e,n,a){const l=n.queryKey,i=n.queryHash??sd(l,n);let r=this.get(i);return r||(r=new OE({client:e,queryKey:l,queryHash:i,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(l)}),this.add(r)),r}add(e){T(this,qe).has(e.queryHash)||(T(this,qe).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=T(this,qe).get(e.queryHash);n&&(e.destroy(),n===e&&T(this,qe).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return T(this,qe).get(e)}getAll(){return[...T(this,qe).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>cm(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>cm(e,a)):n}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qe=new WeakMap,Ym),Ye,Qt,Ca,Ge,Un,Gm,DE=(Gm=class extends Bg{constructor(e){super();F(this,Ge);F(this,Ye);F(this,Qt);F(this,Ca);this.mutationId=e.mutationId,Y(this,Qt,e.mutationCache),Y(this,Ye,[]),this.state=e.state||jE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){T(this,Ye).includes(e)||(T(this,Ye).push(e),this.clearGcTimeout(),T(this,Qt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Y(this,Ye,T(this,Ye).filter(n=>n!==e)),this.scheduleGc(),T(this,Qt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){T(this,Ye).length||(this.state.status==="pending"?this.scheduleGc():T(this,Qt).remove(this))}continue(){var e;return((e=T(this,Ca))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,r,o,s,u,f,h,d,c,w,y,x,m,v,p,S,E,O,A,R;const n=()=>{Lt(this,Ge,Un).call(this,{type:"continue"})};Y(this,Ca,Hg({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(z,_)=>{Lt(this,Ge,Un).call(this,{type:"failed",failureCount:z,error:_})},onPause:()=>{Lt(this,Ge,Un).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Qt).canRun(this)}));const a=this.state.status==="pending",l=!T(this,Ca).canStart();try{if(a)n();else{Lt(this,Ge,Un).call(this,{type:"pending",variables:e,isPaused:l}),await((r=(i=T(this,Qt).config).onMutate)==null?void 0:r.call(i,e,this));const _=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,e));_!==this.state.context&&Lt(this,Ge,Un).call(this,{type:"pending",context:_,variables:e,isPaused:l})}const z=await T(this,Ca).start();return await((f=(u=T(this,Qt).config).onSuccess)==null?void 0:f.call(u,z,e,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,z,e,this.state.context)),await((w=(c=T(this,Qt).config).onSettled)==null?void 0:w.call(c,z,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,z,null,e,this.state.context)),Lt(this,Ge,Un).call(this,{type:"success",data:z}),z}catch(z){try{throw await((v=(m=T(this,Qt).config).onError)==null?void 0:v.call(m,z,e,this.state.context,this)),await((S=(p=this.options).onError)==null?void 0:S.call(p,z,e,this.state.context)),await((O=(E=T(this,Qt).config).onSettled)==null?void 0:O.call(E,void 0,z,this.state.variables,this.state.context,this)),await((R=(A=this.options).onSettled)==null?void 0:R.call(A,void 0,z,e,this.state.context)),z}finally{Lt(this,Ge,Un).call(this,{type:"error",error:z})}}finally{T(this,Qt).runNext(this)}}},Ye=new WeakMap,Qt=new WeakMap,Ca=new WeakMap,Ge=new WeakSet,Un=function(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Vt.batch(()=>{T(this,Ye).forEach(a=>{a.onMutationUpdate(e)}),T(this,Qt).notify({mutation:this,type:"updated",action:e})})},Gm);function jE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on,Me,ur,Qm,_E=(Qm=class extends Ms{constructor(e={}){super();F(this,on);F(this,Me);F(this,ur);this.config=e,Y(this,on,new Set),Y(this,Me,new Map),Y(this,ur,0)}build(e,n,a){const l=new DE({mutationCache:this,mutationId:++Dr(this,ur)._,options:e.defaultMutationOptions(n),state:a});return this.add(l),l}add(e){T(this,on).add(e);const n=$r(e);if(typeof n=="string"){const a=T(this,Me).get(n);a?a.push(e):T(this,Me).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(T(this,on).delete(e)){const n=$r(e);if(typeof n=="string"){const a=T(this,Me).get(n);if(a)if(a.length>1){const l=a.indexOf(e);l!==-1&&a.splice(l,1)}else a[0]===e&&T(this,Me).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=$r(e);if(typeof n=="string"){const a=T(this,Me).get(n),l=a==null?void 0:a.find(i=>i.state.status==="pending");return!l||l===e}else return!0}runNext(e){var a;const n=$r(e);if(typeof n=="string"){const l=(a=T(this,Me).get(n))==null?void 0:a.find(i=>i!==e&&i.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Vt.batch(()=>{T(this,on).forEach(e=>{this.notify({type:"removed",mutation:e})}),T(this,on).clear(),T(this,Me).clear()})}getAll(){return Array.from(T(this,on))}find(e){const n={exact:!0,...e};return this.getAll().find(a=>fm(n,a))}findAll(e={}){return this.getAll().filter(n=>fm(e,n))}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Vt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ce))))}},on=new WeakMap,Me=new WeakMap,ur=new WeakMap,Qm);function $r(t){var e;return(e=t.options.scope)==null?void 0:e.id}function mm(t){return{onFetch:(e,n)=>{var f,h,d,c,w;const a=e.options,l=(d=(h=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:d.direction,i=((c=e.state.data)==null?void 0:c.pages)||[],r=((w=e.state.data)==null?void 0:w.pageParams)||[];let o={pages:[],pageParams:[]},s=0;const u=async()=>{let y=!1;const x=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(e.signal.aborted?y=!0:e.signal.addEventListener("abort",()=>{y=!0}),e.signal)})},m=jg(e.options,e.fetchOptions),v=async(p,S,E)=>{if(y)return Promise.reject();if(S==null&&p.pages.length)return Promise.resolve(p);const A=(()=>{const Q={client:e.client,queryKey:e.queryKey,pageParam:S,direction:E?"backward":"forward",meta:e.options.meta};return x(Q),Q})(),R=await m(A),{maxPages:z}=e.options,_=E?xE:bE;return{pages:_(p.pages,R,z),pageParams:_(p.pageParams,S,z)}};if(l&&i.length){const p=l==="backward",S=p?zE:vm,E={pages:i,pageParams:r},O=S(a,E);o=await v(E,O,p)}else{const p=t??i.length;do{const S=s===0?r[0]??a.initialPageParam:vm(a,o);if(s>0&&S==null)break;o=await v(o,S),s++}while(s<p)}return o};e.options.persister?e.fetchFn=()=>{var y,x;return(x=(y=e.options).persister)==null?void 0:x.call(y,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function vm(t,{pages:e,pageParams:n}){const a=e.length-1;return e.length>0?t.getNextPageParam(e[a],e,n[a],n):void 0}function zE(t,{pages:e,pageParams:n}){var a;return e.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,e[0],e,n[0],n):void 0}var xt,Zn,kn,Bl,Ll,Kn,ql,Yl,Vm,UE=(Vm=class{constructor(t={}){F(this,xt);F(this,Zn);F(this,kn);F(this,Bl);F(this,Ll);F(this,Kn);F(this,ql);F(this,Yl);Y(this,xt,t.queryCache||new ME),Y(this,Zn,t.mutationCache||new _E),Y(this,kn,t.defaultOptions||{}),Y(this,Bl,new Map),Y(this,Ll,new Map),Y(this,Kn,0)}mount(){Dr(this,Kn)._++,T(this,Kn)===1&&(Y(this,ql,_g.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,xt).onFocus())})),Y(this,Yl,ts.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,xt).onOnline())})))}unmount(){var t,e;Dr(this,Kn)._--,T(this,Kn)===0&&((t=T(this,ql))==null||t.call(this),Y(this,ql,void 0),(e=T(this,Yl))==null||e.call(this),Y(this,Yl,void 0))}isFetching(t){return T(this,xt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return T(this,Zn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=T(this,xt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=T(this,xt).build(this,e),a=n.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Yc(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return T(this,xt).findAll(t).map(({queryKey:e,state:n})=>{const a=n.data;return[e,a]})}setQueryData(t,e,n){const a=this.defaultQueryOptions({queryKey:t}),l=T(this,xt).get(a.queryHash),i=l==null?void 0:l.state.data,r=hE(e,i);if(r!==void 0)return T(this,xt).build(this,a).setData(r,{...n,manual:!0})}setQueriesData(t,e,n){return Vt.batch(()=>T(this,xt).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=T(this,xt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=T(this,xt);Vt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=T(this,xt);return Vt.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},a=Vt.batch(()=>T(this,xt).findAll(t).map(l=>l.cancel(n)));return Promise.all(a).then(Ce).catch(Ce)}invalidateQueries(t,e={}){return Vt.batch(()=>(T(this,xt).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},a=Vt.batch(()=>T(this,xt).findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let i=l.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ce)),l.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(Ce)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=T(this,xt).build(this,e);return n.isStaleByTime(Yc(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ce).catch(Ce)}fetchInfiniteQuery(t){return t.behavior=mm(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ce).catch(Ce)}ensureInfiniteQueryData(t){return t.behavior=mm(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ts.isOnline()?T(this,Zn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,xt)}getMutationCache(){return T(this,Zn)}getDefaultOptions(){return T(this,kn)}setDefaultOptions(t){Y(this,kn,t)}setQueryDefaults(t,e){T(this,Bl).set(rr(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...T(this,Bl).values()],n={};return e.forEach(a=>{or(t,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(t,e){T(this,Ll).set(rr(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...T(this,Ll).values()],n={};return e.forEach(a=>{or(t,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...T(this,kn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=sd(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===ud&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...T(this,kn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){T(this,xt).clear(),T(this,Zn).clear()}},xt=new WeakMap,Zn=new WeakMap,kn=new WeakMap,Bl=new WeakMap,Ll=new WeakMap,Kn=new WeakMap,ql=new WeakMap,Yl=new WeakMap,Vm),HE=g.createContext(void 0),BE=({client:t,children:e})=>(g.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),b.jsx(HE.Provider,{value:t,children:e}));/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function es(){return es=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},es.apply(this,arguments)}var Wn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Wn||(Wn={}));const ym="popstate";function LE(t){t===void 0&&(t={});function e(a,l){let{pathname:i,search:r,hash:o}=a.location;return Qc("",{pathname:i,search:r,hash:o},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){return typeof l=="string"?l:qg(l)}return YE(e,n,null,t)}function te(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Lg(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function qE(){return Math.random().toString(36).substr(2,8)}function gm(t,e){return{usr:t.state,key:t.key,idx:e}}function Qc(t,e,n,a){return n===void 0&&(n=null),es({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?js(e):e,{state:n,key:e&&e.key||a||qE()})}function qg(t){let{pathname:e="/",search:n="",hash:a=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function js(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}function YE(t,e,n,a){a===void 0&&(a={});let{window:l=document.defaultView,v5Compat:i=!1}=a,r=l.history,o=Wn.Pop,s=null,u=f();u==null&&(u=0,r.replaceState(es({},r.state,{idx:u}),""));function f(){return(r.state||{idx:null}).idx}function h(){o=Wn.Pop;let x=f(),m=x==null?null:x-u;u=x,s&&s({action:o,location:y.location,delta:m})}function d(x,m){o=Wn.Push;let v=Qc(y.location,x,m);u=f()+1;let p=gm(v,u),S=y.createHref(v);try{r.pushState(p,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(S)}i&&s&&s({action:o,location:y.location,delta:1})}function c(x,m){o=Wn.Replace;let v=Qc(y.location,x,m);u=f();let p=gm(v,u),S=y.createHref(v);r.replaceState(p,"",S),i&&s&&s({action:o,location:y.location,delta:0})}function w(x){let m=l.location.origin!=="null"?l.location.origin:l.location.href,v=typeof x=="string"?x:qg(x);return v=v.replace(/ $/,"%20"),te(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let y={get action(){return o},get location(){return t(l,r)},listen(x){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(ym,h),s=x,()=>{l.removeEventListener(ym,h),s=null}},createHref(x){return e(l,x)},createURL:w,encodeLocation(x){let m=w(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:c,go(x){return r.go(x)}};return y}var pm;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(pm||(pm={}));function GE(t,e,n){return n===void 0&&(n="/"),QE(t,e,n)}function QE(t,e,n,a){let l=typeof e=="string"?js(e):e,i=Qg(l.pathname||"/",n);if(i==null)return null;let r=Yg(t);VE(r);let o=null;for(let s=0;o==null&&s<r.length;++s){let u=eA(i);o=WE(r[s],u)}return o}function Yg(t,e,n,a){e===void 0&&(e=[]),n===void 0&&(n=[]),a===void 0&&(a="");let l=(i,r,o)=>{let s={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:r,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(a.length));let u=Ml([a,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Yg(i.children,e,f,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:$E(u,i.index),routesMeta:f})};return t.forEach((i,r)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))l(i,r);else for(let s of Gg(i.path))l(i,r,s)}),e}function Gg(t){let e=t.split("/");if(e.length===0)return[];let[n,...a]=e,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(a.length===0)return l?[i,""]:[i];let r=Gg(a.join("/")),o=[];return o.push(...r.map(s=>s===""?i:[i,s].join("/"))),l&&o.push(...r),o.map(s=>t.startsWith("/")&&s===""?"/":s)}function VE(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:FE(e.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const XE=/^:[\w-]+$/,ZE=3,kE=2,KE=1,PE=10,JE=-2,bm=t=>t==="*";function $E(t,e){let n=t.split("/"),a=n.length;return n.some(bm)&&(a+=JE),e&&(a+=kE),n.filter(l=>!bm(l)).reduce((l,i)=>l+(XE.test(i)?ZE:i===""?KE:PE),a)}function FE(t,e){return t.length===e.length&&t.slice(0,-1).every((a,l)=>a===e[l])?t[t.length-1]-e[e.length-1]:0}function WE(t,e,n){let{routesMeta:a}=t,l={},i="/",r=[];for(let o=0;o<a.length;++o){let s=a[o],u=o===a.length-1,f=i==="/"?e:e.slice(i.length)||"/",h=IE({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),d=s.route;if(!h)return null;Object.assign(l,h.params),r.push({params:l,pathname:Ml([i,h.pathname]),pathnameBase:nA(Ml([i,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(i=Ml([i,h.pathnameBase]))}return r}function IE(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,a]=tA(t.path,t.caseSensitive,t.end),l=e.match(n);if(!l)return null;let i=l[0],r=i.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:a.reduce((u,f,h)=>{let{paramName:d,isOptional:c}=f;if(d==="*"){let y=o[h]||"";r=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=o[h];return c&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:r,pattern:t}}function tA(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Lg(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let a=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,o,s)=>(a.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(a.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),a]}function eA(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Lg(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Qg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=t.charAt(n);return a&&a!=="/"?null:t.slice(n)||"/"}const Ml=t=>t.join("/").replace(/\/\/+/g,"/"),nA=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function aA(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Vg=["post","put","patch","delete"];new Set(Vg);const lA=["get",...Vg];new Set(lA);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ns(){return ns=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ns.apply(this,arguments)}const iA=g.createContext(null),rA=g.createContext(null),Xg=g.createContext(null),_s=g.createContext(null),zs=g.createContext({outlet:null,matches:[],isDataRoute:!1}),Zg=g.createContext(null);function cd(){return g.useContext(_s)!=null}function oA(){return cd()||te(!1),g.useContext(_s).location}function sA(t,e){return uA(t,e)}function uA(t,e,n,a){cd()||te(!1);let{navigator:l}=g.useContext(Xg),{matches:i}=g.useContext(zs),r=i[i.length-1],o=r?r.params:{};r&&r.pathname;let s=r?r.pathnameBase:"/";r&&r.route;let u=oA(),f;if(e){var h;let x=typeof e=="string"?js(e):e;s==="/"||(h=x.pathname)!=null&&h.startsWith(s)||te(!1),f=x}else f=u;let d=f.pathname||"/",c=d;if(s!=="/"){let x=s.replace(/^\//,"").split("/");c="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=GE(t,{pathname:c}),y=mA(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:Ml([s,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?s:Ml([s,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,a);return e&&y?g.createElement(_s.Provider,{value:{location:ns({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Wn.Pop}},y):y}function cA(){let t=pA(),e=aA(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),n?g.createElement("pre",{style:l},n):null,null)}const fA=g.createElement(cA,null);class dA extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?g.createElement(zs.Provider,{value:this.props.routeContext},g.createElement(Zg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hA(t){let{routeContext:e,match:n,children:a}=t,l=g.useContext(iA);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(zs.Provider,{value:e},a)}function mA(t,e,n,a){var l;if(e===void 0&&(e=[]),n===void 0&&(n=null),a===void 0&&(a=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=a)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let r=t,o=(l=n)==null?void 0:l.errors;if(o!=null){let f=r.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);f>=0||te(!1),r=r.slice(0,Math.min(r.length,f+1))}let s=!1,u=-1;if(n&&a&&a.v7_partialHydration)for(let f=0;f<r.length;f++){let h=r[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=f),h.route.id){let{loaderData:d,errors:c}=n,w=h.route.loader&&d[h.route.id]===void 0&&(!c||c[h.route.id]===void 0);if(h.route.lazy||w){s=!0,u>=0?r=r.slice(0,u+1):r=[r[0]];break}}}return r.reduceRight((f,h,d)=>{let c,w=!1,y=null,x=null;n&&(c=o&&h.route.id?o[h.route.id]:void 0,y=h.route.errorElement||fA,s&&(u<0&&d===0?(bA("route-fallback"),w=!0,x=null):u===d&&(w=!0,x=h.route.hydrateFallbackElement||null)));let m=e.concat(r.slice(0,d+1)),v=()=>{let p;return c?p=y:w?p=x:h.route.Component?p=g.createElement(h.route.Component,null):h.route.element?p=h.route.element:p=f,g.createElement(hA,{match:h,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:p})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?g.createElement(dA,{location:n.location,revalidation:n.revalidation,component:y,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var kg=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(kg||{});function vA(t){let e=g.useContext(rA);return e||te(!1),e}function yA(t){let e=g.useContext(zs);return e||te(!1),e}function gA(t){let e=yA(),n=e.matches[e.matches.length-1];return n.route.id||te(!1),n.route.id}function pA(){var t;let e=g.useContext(Zg),n=vA(kg.UseRouteError),a=gA();return e!==void 0?e:(t=n.errors)==null?void 0:t[a]}const xm={};function bA(t,e,n){xm[t]||(xm[t]=!0)}function xA(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function go(t){te(!1)}function SA(t){let{basename:e="/",children:n=null,location:a,navigationType:l=Wn.Pop,navigator:i,static:r=!1,future:o}=t;cd()&&te(!1);let s=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:s,navigator:i,static:r,future:ns({v7_relativeSplatPath:!1},o)}),[s,o,i,r]);typeof a=="string"&&(a=js(a));let{pathname:f="/",search:h="",hash:d="",state:c=null,key:w="default"}=a,y=g.useMemo(()=>{let x=Qg(f,s);return x==null?null:{location:{pathname:x,search:h,hash:d,state:c,key:w},navigationType:l}},[s,f,h,d,c,w,l]);return y==null?null:g.createElement(Xg.Provider,{value:u},g.createElement(_s.Provider,{children:n,value:y}))}function wA(t){let{children:e,location:n}=t;return sA(Vc(e),n)}new Promise(()=>{});function Vc(t,e){e===void 0&&(e=[]);let n=[];return g.Children.forEach(t,(a,l)=>{if(!g.isValidElement(a))return;let i=[...e,l];if(a.type===g.Fragment){n.push.apply(n,Vc(a.props.children,i));return}a.type!==go&&te(!1),!a.props.index||!a.props.children||te(!1);let r={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(r.children=Vc(a.props.children,i)),n.push(r)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const EA="6";try{window.__reactRouterVersion=EA}catch{}const AA="startTransition",Sm=Ic[AA];function TA(t){let{basename:e,children:n,future:a,window:l}=t,i=g.useRef();i.current==null&&(i.current=LE({window:l,v5Compat:!0}));let r=i.current,[o,s]=g.useState({action:r.action,location:r.location}),{v7_startTransition:u}=a||{},f=g.useCallback(h=>{u&&Sm?Sm(()=>s(h)):s(h)},[s,u]);return g.useLayoutEffect(()=>r.listen(f),[r,f]),g.useEffect(()=>xA(a),[a]),g.createElement(SA,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:r,future:a})}var wm;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(wm||(wm={}));var Em;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Em||(Em={}));const Am=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Tm=Tg,Kg=(t,e)=>n=>{var a;if((e==null?void 0:e.variants)==null)return Tm(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:i}=e,r=Object.keys(l).map(u=>{const f=n==null?void 0:n[u],h=i==null?void 0:i[u];if(f===null)return null;const d=Am(f)||Am(h);return l[u][d]}),o=n&&Object.entries(n).reduce((u,f)=>{let[h,d]=f;return d===void 0||(u[h]=d),u},{}),s=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((u,f)=>{let{class:h,className:d,...c}=f;return Object.entries(c).every(w=>{let[y,x]=w;return Array.isArray(x)?x.includes({...i,...o}[y]):{...i,...o}[y]===x})?[...u,h,d]:u},[]);return Tm(t,r,s,n==null?void 0:n.class,n==null?void 0:n.className)},NA=Kg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=g.forwardRef(({className:t,variant:e,size:n,asChild:a=!1,...l},i)=>{const r=a?xS:"button";return b.jsx(r,{className:bt(NA({variant:e,size:n,className:t})),ref:i,...l})});Ve.displayName="Button";const wa=g.forwardRef(({className:t,type:e,...n},a)=>b.jsx("input",{type:e,className:bt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...n}));wa.displayName="Input";var OA="Label",Pg=g.forwardRef((t,e)=>b.jsx(Kt.label,{...t,ref:e,onMouseDown:n=>{var l;n.target.closest("button, input, select, textarea")||((l=t.onMouseDown)==null||l.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Pg.displayName=OA;var Jg=Pg;const CA=Kg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Dl=g.forwardRef(({className:t,...e},n)=>b.jsx(Jg,{ref:n,className:bt(CA(),t),...e}));Dl.displayName=Jg.displayName;const as=g.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:bt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));as.displayName="Card";const Xc=g.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:bt("flex flex-col space-y-1.5 p-6",t),...e}));Xc.displayName="CardHeader";const Zc=g.forwardRef(({className:t,...e},n)=>b.jsx("h3",{ref:n,className:bt("text-2xl font-semibold leading-none tracking-tight",t),...e}));Zc.displayName="CardTitle";const RA=g.forwardRef(({className:t,...e},n)=>b.jsx("p",{ref:n,className:bt("text-sm text-muted-foreground",t),...e}));RA.displayName="CardDescription";const ls=g.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:bt("p-6 pt-0",t),...e}));ls.displayName="CardContent";const MA=g.forwardRef(({className:t,...e},n)=>b.jsx("div",{ref:n,className:bt("flex items-center p-6 pt-0",t),...e}));MA.displayName="CardFooter";var Cu="focusScope.autoFocusOnMount",Ru="focusScope.autoFocusOnUnmount",Nm={bubbles:!1,cancelable:!0},DA="FocusScope",$g=g.forwardRef((t,e)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:i,...r}=t,[o,s]=g.useState(null),u=Wl(l),f=Wl(i),h=g.useRef(null),d=He(e,y=>s(y)),c=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(a){let y=function(p){if(c.paused||!o)return;const S=p.target;o.contains(S)?h.current=S:Hn(h.current,{select:!0})},x=function(p){if(c.paused||!o)return;const S=p.relatedTarget;S!==null&&(o.contains(S)||Hn(h.current,{select:!0}))},m=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&Hn(o)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const v=new MutationObserver(m);return o&&v.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),v.disconnect()}}},[a,o,c.paused]),g.useEffect(()=>{if(o){Cm.add(c);const y=document.activeElement;if(!o.contains(y)){const m=new CustomEvent(Cu,Nm);o.addEventListener(Cu,u),o.dispatchEvent(m),m.defaultPrevented||(jA(BA(Fg(o)),{select:!0}),document.activeElement===y&&Hn(o))}return()=>{o.removeEventListener(Cu,u),setTimeout(()=>{const m=new CustomEvent(Ru,Nm);o.addEventListener(Ru,f),o.dispatchEvent(m),m.defaultPrevented||Hn(y??document.body,{select:!0}),o.removeEventListener(Ru,f),Cm.remove(c)},0)}}},[o,u,f,c]);const w=g.useCallback(y=>{if(!n&&!a||c.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,m=document.activeElement;if(x&&m){const v=y.currentTarget,[p,S]=_A(v);p&&S?!y.shiftKey&&m===S?(y.preventDefault(),n&&Hn(p,{select:!0})):y.shiftKey&&m===p&&(y.preventDefault(),n&&Hn(S,{select:!0})):m===v&&y.preventDefault()}},[n,a,c.paused]);return b.jsx(Kt.div,{tabIndex:-1,...r,ref:d,onKeyDown:w})});$g.displayName=DA;function jA(t,{select:e=!1}={}){const n=document.activeElement;for(const a of t)if(Hn(a,{select:e}),document.activeElement!==n)return}function _A(t){const e=Fg(t),n=Om(e,t),a=Om(e.reverse(),t);return[n,a]}function Fg(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Om(t,e){for(const n of t)if(!zA(n,{upTo:e}))return n}function zA(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function UA(t){return t instanceof HTMLInputElement&&"select"in t}function Hn(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&UA(t)&&e&&t.select()}}var Cm=HA();function HA(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Rm(t,e),t.unshift(e)},remove(e){var n;t=Rm(t,e),(n=t[0])==null||n.resume()}}}function Rm(t,e){const n=[...t],a=n.indexOf(e);return a!==-1&&n.splice(a,1),n}function BA(t){return t.filter(e=>e.tagName!=="A")}var Mu=0;function LA(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Mm()),document.body.insertAdjacentElement("beforeend",t[1]??Mm()),Mu++,()=>{Mu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Mu--}},[])}function Mm(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Xe=function(){return Xe=Object.assign||function(e){for(var n,a=1,l=arguments.length;a<l;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xe.apply(this,arguments)};function Wg(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(t);l<a.length;l++)e.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(t,a[l])&&(n[a[l]]=t[a[l]]);return n}function qA(t,e,n){if(n||arguments.length===2)for(var a=0,l=e.length,i;a<l;a++)(i||!(a in e))&&(i||(i=Array.prototype.slice.call(e,0,a)),i[a]=e[a]);return t.concat(i||Array.prototype.slice.call(e))}var po="right-scroll-bar-position",bo="width-before-scroll-bar",YA="with-scroll-bars-hidden",GA="--removed-body-scroll-bar-size";function Du(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function QA(t,e){var n=g.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(a){var l=n.value;l!==a&&(n.value=a,n.callback(a,l))}}}})[0];return n.callback=e,n.facade}var VA=typeof window<"u"?g.useLayoutEffect:g.useEffect,Dm=new WeakMap;function XA(t,e){var n=QA(null,function(a){return t.forEach(function(l){return Du(l,a)})});return VA(function(){var a=Dm.get(n);if(a){var l=new Set(a),i=new Set(t),r=n.current;l.forEach(function(o){i.has(o)||Du(o,null)}),i.forEach(function(o){l.has(o)||Du(o,r)})}Dm.set(n,t)},[t]),n}function ZA(t){return t}function kA(t,e){e===void 0&&(e=ZA);var n=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var r=e(i,a);return n.push(r),function(){n=n.filter(function(o){return o!==r})}},assignSyncMedium:function(i){for(a=!0;n.length;){var r=n;n=[],r.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){a=!0;var r=[];if(n.length){var o=n;n=[],o.forEach(i),r=n}var s=function(){var f=r;r=[],f.forEach(i)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(f){r.push(f),u()},filter:function(f){return r=r.filter(f),n}}}};return l}function KA(t){t===void 0&&(t={});var e=kA(null);return e.options=Xe({async:!0,ssr:!1},t),e}var Ig=function(t){var e=t.sideCar,n=Wg(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return g.createElement(a,Xe({},n))};Ig.isSideCarExport=!0;function PA(t,e){return t.useMedium(e),Ig}var tp=KA(),ju=function(){},Us=g.forwardRef(function(t,e){var n=g.useRef(null),a=g.useState({onScrollCapture:ju,onWheelCapture:ju,onTouchMoveCapture:ju}),l=a[0],i=a[1],r=t.forwardProps,o=t.children,s=t.className,u=t.removeScrollBar,f=t.enabled,h=t.shards,d=t.sideCar,c=t.noRelative,w=t.noIsolation,y=t.inert,x=t.allowPinchZoom,m=t.as,v=m===void 0?"div":m,p=t.gapMode,S=Wg(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,O=XA([n,e]),A=Xe(Xe({},S),l);return g.createElement(g.Fragment,null,f&&g.createElement(E,{sideCar:tp,removeScrollBar:u,shards:h,noRelative:c,noIsolation:w,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:p}),r?g.cloneElement(g.Children.only(o),Xe(Xe({},A),{ref:O})):g.createElement(v,Xe({},A,{className:s,ref:O}),o))});Us.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Us.classNames={fullWidth:bo,zeroRight:po};var JA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $A(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=JA();return e&&t.setAttribute("nonce",e),t}function FA(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function WA(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var IA=function(){var t=0,e=null;return{add:function(n){t==0&&(e=$A())&&(FA(e,n),WA(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},tT=function(){var t=IA();return function(e,n){g.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},ep=function(){var t=tT(),e=function(n){var a=n.styles,l=n.dynamic;return t(a,l),null};return e},eT={left:0,top:0,right:0,gap:0},_u=function(t){return parseInt(t||"",10)||0},nT=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],l=e[t==="padding"?"paddingRight":"marginRight"];return[_u(n),_u(a),_u(l)]},aT=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return eT;var e=nT(t),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-n+e[2]-e[0])}},lT=ep(),jl="data-scroll-locked",iT=function(t,e,n,a){var l=t.left,i=t.top,r=t.right,o=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(YA,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(o,"px ").concat(a,`;
  }
  body[`).concat(jl,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(a,";"),n==="margin"&&`
    padding-left: `.concat(l,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(r,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(a,`;
    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(po,` {
    right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(bo,` {
    margin-right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(po," .").concat(po,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(bo," .").concat(bo,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(jl,`] {
    `).concat(GA,": ").concat(o,`px;
  }
`)},jm=function(){var t=parseInt(document.body.getAttribute(jl)||"0",10);return isFinite(t)?t:0},rT=function(){g.useEffect(function(){return document.body.setAttribute(jl,(jm()+1).toString()),function(){var t=jm()-1;t<=0?document.body.removeAttribute(jl):document.body.setAttribute(jl,t.toString())}},[])},oT=function(t){var e=t.noRelative,n=t.noImportant,a=t.gapMode,l=a===void 0?"margin":a;rT();var i=g.useMemo(function(){return aT(l)},[l]);return g.createElement(lT,{styles:iT(i,!e,l,n?"":"!important")})},kc=!1;if(typeof window<"u")try{var Fr=Object.defineProperty({},"passive",{get:function(){return kc=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{kc=!1}var el=kc?{passive:!1}:!1,sT=function(t){return t.tagName==="TEXTAREA"},np=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!sT(t)&&n[e]==="visible")},uT=function(t){return np(t,"overflowY")},cT=function(t){return np(t,"overflowX")},_m=function(t,e){var n=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=ap(t,a);if(l){var i=lp(t,a),r=i[1],o=i[2];if(r>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},fT=function(t){var e=t.scrollTop,n=t.scrollHeight,a=t.clientHeight;return[e,n,a]},dT=function(t){var e=t.scrollLeft,n=t.scrollWidth,a=t.clientWidth;return[e,n,a]},ap=function(t,e){return t==="v"?uT(e):cT(e)},lp=function(t,e){return t==="v"?fT(e):dT(e)},hT=function(t,e){return t==="h"&&e==="rtl"?-1:1},mT=function(t,e,n,a,l){var i=hT(t,window.getComputedStyle(e).direction),r=i*a,o=n.target,s=e.contains(o),u=!1,f=r>0,h=0,d=0;do{if(!o)break;var c=lp(t,o),w=c[0],y=c[1],x=c[2],m=y-x-i*w;(w||m)&&ap(t,o)&&(h+=m,d+=w);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return(f&&Math.abs(h)<1||!f&&Math.abs(d)<1)&&(u=!0),u},Wr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},zm=function(t){return[t.deltaX,t.deltaY]},Um=function(t){return t&&"current"in t?t.current:t},vT=function(t,e){return t[0]===e[0]&&t[1]===e[1]},yT=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},gT=0,nl=[];function pT(t){var e=g.useRef([]),n=g.useRef([0,0]),a=g.useRef(),l=g.useState(gT++)[0],i=g.useState(ep)[0],r=g.useRef(t);g.useEffect(function(){r.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var y=qA([t.lockRef.current],(t.shards||[]).map(Um),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var o=g.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!r.current.allowPinchZoom;var m=Wr(y),v=n.current,p="deltaX"in y?y.deltaX:v[0]-m[0],S="deltaY"in y?y.deltaY:v[1]-m[1],E,O=y.target,A=Math.abs(p)>Math.abs(S)?"h":"v";if("touches"in y&&A==="h"&&O.type==="range")return!1;var R=_m(A,O);if(!R)return!0;if(R?E=A:(E=A==="v"?"h":"v",R=_m(A,O)),!R)return!1;if(!a.current&&"changedTouches"in y&&(p||S)&&(a.current=E),!E)return!0;var z=a.current||E;return mT(z,x,y,z==="h"?p:S)},[]),s=g.useCallback(function(y){var x=y;if(!(!nl.length||nl[nl.length-1]!==i)){var m="deltaY"in x?zm(x):Wr(x),v=e.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&vT(E.delta,m)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var p=(r.current.shards||[]).map(Um).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=p.length>0?o(x,p[0]):!r.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=g.useCallback(function(y,x,m,v){var p={name:y,delta:x,target:m,should:v,shadowParent:bT(m)};e.current.push(p),setTimeout(function(){e.current=e.current.filter(function(S){return S!==p})},1)},[]),f=g.useCallback(function(y){n.current=Wr(y),a.current=void 0},[]),h=g.useCallback(function(y){u(y.type,zm(y),y.target,o(y,t.lockRef.current))},[]),d=g.useCallback(function(y){u(y.type,Wr(y),y.target,o(y,t.lockRef.current))},[]);g.useEffect(function(){return nl.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",s,el),document.addEventListener("touchmove",s,el),document.addEventListener("touchstart",f,el),function(){nl=nl.filter(function(y){return y!==i}),document.removeEventListener("wheel",s,el),document.removeEventListener("touchmove",s,el),document.removeEventListener("touchstart",f,el)}},[]);var c=t.removeScrollBar,w=t.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:yT(l)}):null,c?g.createElement(oT,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function bT(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const xT=PA(tp,pT);var ip=g.forwardRef(function(t,e){return g.createElement(Us,Xe({},t,{ref:e,sideCar:xT}))});ip.classNames=Us.classNames;var ST=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},al=new WeakMap,Ir=new WeakMap,to={},zu=0,rp=function(t){return t&&(t.host||rp(t.parentNode))},wT=function(t,e){return e.map(function(n){if(t.contains(n))return n;var a=rp(n);return a&&t.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},ET=function(t,e,n,a){var l=wT(e,Array.isArray(t)?t:[t]);to[n]||(to[n]=new WeakMap);var i=to[n],r=[],o=new Set,s=new Set(l),u=function(h){!h||o.has(h)||(o.add(h),u(h.parentNode))};l.forEach(u);var f=function(h){!h||s.has(h)||Array.prototype.forEach.call(h.children,function(d){if(o.has(d))f(d);else try{var c=d.getAttribute(a),w=c!==null&&c!=="false",y=(al.get(d)||0)+1,x=(i.get(d)||0)+1;al.set(d,y),i.set(d,x),r.push(d),y===1&&w&&Ir.set(d,!0),x===1&&d.setAttribute(n,"true"),w||d.setAttribute(a,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return f(e),o.clear(),zu++,function(){r.forEach(function(h){var d=al.get(h)-1,c=i.get(h)-1;al.set(h,d),i.set(h,c),d||(Ir.has(h)||h.removeAttribute(a),Ir.delete(h)),c||h.removeAttribute(n)}),zu--,zu||(al=new WeakMap,al=new WeakMap,Ir=new WeakMap,to={})}},AT=function(t,e,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),l=ST(t);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),ET(a,l,n,"aria-hidden")):function(){return null}},Hs="Dialog",[op,uN]=Jf(Hs),[TT,Be]=op(Hs),sp=t=>{const{__scopeDialog:e,children:n,open:a,defaultOpen:l,onOpenChange:i,modal:r=!0}=t,o=g.useRef(null),s=g.useRef(null),[u,f]=c2({prop:a,defaultProp:l??!1,onChange:i,caller:Hs});return b.jsx(TT,{scope:e,triggerRef:o,contentRef:s,contentId:Eu(),titleId:Eu(),descriptionId:Eu(),open:u,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(h=>!h),[f]),modal:r,children:n})};sp.displayName=Hs;var up="DialogTrigger",NT=g.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Be(up,n),i=He(e,l.triggerRef);return b.jsx(Kt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":hd(l.open),...a,ref:i,onClick:Wt(t.onClick,l.onOpenToggle)})});NT.displayName=up;var fd="DialogPortal",[OT,cp]=op(fd,{forceMount:void 0}),fp=t=>{const{__scopeDialog:e,forceMount:n,children:a,container:l}=t,i=Be(fd,e);return b.jsx(OT,{scope:e,forceMount:n,children:g.Children.map(a,r=>b.jsx(Or,{present:n||i.open,children:b.jsx(mg,{asChild:!0,container:l,children:r})}))})};fp.displayName=fd;var is="DialogOverlay",dp=g.forwardRef((t,e)=>{const n=cp(is,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,i=Be(is,t.__scopeDialog);return i.modal?b.jsx(Or,{present:a||i.open,children:b.jsx(RT,{...l,ref:e})}):null});dp.displayName=is;var CT=$f("DialogOverlay.RemoveScroll"),RT=g.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Be(is,n);return b.jsx(ip,{as:CT,allowPinchZoom:!0,shards:[l.contentRef],children:b.jsx(Kt.div,{"data-state":hd(l.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Ga="DialogContent",hp=g.forwardRef((t,e)=>{const n=cp(Ga,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,i=Be(Ga,t.__scopeDialog);return b.jsx(Or,{present:a||i.open,children:i.modal?b.jsx(MT,{...l,ref:e}):b.jsx(DT,{...l,ref:e})})});hp.displayName=Ga;var MT=g.forwardRef((t,e)=>{const n=Be(Ga,t.__scopeDialog),a=g.useRef(null),l=He(e,n.contentRef,a);return g.useEffect(()=>{const i=a.current;if(i)return AT(i)},[]),b.jsx(mp,{...t,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,i=>{var r;i.preventDefault(),(r=n.triggerRef.current)==null||r.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,i=>{const r=i.detail.originalEvent,o=r.button===0&&r.ctrlKey===!0;(r.button===2||o)&&i.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,i=>i.preventDefault())})}),DT=g.forwardRef((t,e)=>{const n=Be(Ga,t.__scopeDialog),a=g.useRef(!1),l=g.useRef(!1);return b.jsx(mp,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var r,o;(r=t.onCloseAutoFocus)==null||r.call(t,i),i.defaultPrevented||(a.current||(o=n.triggerRef.current)==null||o.focus(),i.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:i=>{var s,u;(s=t.onInteractOutside)==null||s.call(t,i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const r=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(r))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&l.current&&i.preventDefault()}})}),mp=g.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:i,...r}=t,o=Be(Ga,n),s=g.useRef(null),u=He(e,s);return LA(),b.jsxs(b.Fragment,{children:[b.jsx($g,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:i,children:b.jsx(Ff,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":hd(o.open),...r,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(jT,{titleId:o.titleId}),b.jsx(zT,{contentRef:s,descriptionId:o.descriptionId})]})]})}),dd="DialogTitle",vp=g.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Be(dd,n);return b.jsx(Kt.h2,{id:l.titleId,...a,ref:e})});vp.displayName=dd;var yp="DialogDescription",gp=g.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Be(yp,n);return b.jsx(Kt.p,{id:l.descriptionId,...a,ref:e})});gp.displayName=yp;var pp="DialogClose",bp=g.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=Be(pp,n);return b.jsx(Kt.button,{type:"button",...a,ref:e,onClick:Wt(t.onClick,()=>l.onOpenChange(!1))})});bp.displayName=pp;function hd(t){return t?"open":"closed"}var xp="DialogTitleWarning",[cN,Sp]=pS(xp,{contentName:Ga,titleName:dd,docsSlug:"dialog"}),jT=({titleId:t})=>{const e=Sp(xp),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},_T="DialogDescriptionWarning",zT=({contentRef:t,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sp(_T).contentName}}.`;return g.useEffect(()=>{var i;const l=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&l&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null},UT=sp,HT=fp,wp=dp,Ep=hp,Ap=vp,Tp=gp,BT=bp;/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Np=(...t)=>t.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var qT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YT=g.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:l="",children:i,iconNode:r,...o},s)=>g.createElement("svg",{ref:s,...qT,width:e,height:e,stroke:t,strokeWidth:a?Number(n)*24/Number(e):n,className:Np("lucide",l),...o},[...r.map(([u,f])=>g.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ka=(t,e)=>{const n=g.forwardRef(({className:a,...l},i)=>g.createElement(YT,{ref:i,iconNode:e,className:Np(`lucide-${LT(t)}`,a),...l}));return n.displayName=`${t}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eo=ka("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GT=ka("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uu=ka("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QT=ka("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VT=ka("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XT=ka("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hu=ka("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ZT=UT,kT=HT,Op=g.forwardRef(({className:t,...e},n)=>b.jsx(wp,{ref:n,className:bt("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));Op.displayName=wp.displayName;const Cp=g.forwardRef(({className:t,children:e,...n},a)=>b.jsxs(kT,{children:[b.jsx(Op,{}),b.jsxs(Ep,{ref:a,className:bt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[e,b.jsxs(BT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[b.jsx(XT,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Cp.displayName=Ep.displayName;const Rp=({className:t,...e})=>b.jsx("div",{className:bt("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Rp.displayName="DialogHeader";const Mp=g.forwardRef(({className:t,...e},n)=>b.jsx(Ap,{ref:n,className:bt("text-lg font-semibold leading-none tracking-tight",t),...e}));Mp.displayName=Ap.displayName;const KT=g.forwardRef(({className:t,...e},n)=>b.jsx(Tp,{ref:n,className:bt("text-sm text-muted-foreground",t),...e}));KT.displayName=Tp.displayName;function PT({prizes:t,onSpin:e,isSpinning:n}){const[a,l]=g.useState(0),i=()=>{if(n)return;const o=5+Math.random()*5,s=Math.random()*360,u=a+o*360+s;l(u);const f=(360-s%360)%360,h=Math.floor(f/360*t.length),d=t[h];setTimeout(()=>{e(d)},3e3)},r=360/t.length;return b.jsxs("div",{className:"relative flex items-center justify-center",children:[b.jsxs("div",{className:"relative",children:[b.jsxs("div",{className:"w-80 h-80 rounded-full border-8 border-yellow-400 relative overflow-hidden shadow-2xl",style:{transform:`rotate(${a}deg)`,transition:n?"transform 3s cubic-bezier(0.23, 1, 0.32, 1)":"none"},children:[t.map((o,s)=>{const u=s*r,f=(s+1)*r,h=(u+f)/2;return b.jsx("div",{className:"absolute w-full h-full",style:{transform:`rotate(${u}deg)`,clipPath:`polygon(50% 50%, 50% 0%, ${50+50*Math.cos(r*Math.PI/180)}% ${50-50*Math.sin(r*Math.PI/180)}%)`},children:b.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{backgroundColor:o.color},children:b.jsx("span",{className:"text-white font-bold text-sm transform -rotate-90 origin-center",style:{transform:`rotate(${h-90}deg) translateY(-60px)`},children:o.name})})},o.id)}),b.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-16 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full border-4 border-yellow-300 flex items-center justify-center shadow-lg",children:b.jsx("span",{className:"text-red-800 font-bold text-xs",children:"SPIN"})})]}),b.jsx("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-2 z-10",children:b.jsx("div",{className:"w-0 h-0 border-l-4 border-r-4 border-b-8 border-l-transparent border-r-transparent border-b-red-600"})})]}),b.jsx("button",{onClick:i,disabled:n,className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-16 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-full border-4 border-yellow-300 flex items-center justify-center shadow-lg hover:from-yellow-300 hover:to-yellow-500 disabled:opacity-50 disabled:cursor-not-allowed z-20",children:b.jsx("span",{className:"text-red-800 font-bold text-xs",children:n?"...":"SPIN"})})]})}const JT=[{id:"1",name:"100.000",color:"#dc2626",probability:10},{id:"2",name:"ZONK",color:"#1f2937",probability:30},{id:"3",name:"50.000",color:"#dc2626",probability:15},{id:"4",name:"ZONK",color:"#1f2937",probability:25},{id:"5",name:"200.000",color:"#dc2626",probability:5},{id:"6",name:"ZONK",color:"#1f2937",probability:10},{id:"7",name:"30.000",color:"#dc2626",probability:4},{id:"8",name:"ZONK",color:"#1f2937",probability:1}],Dp=()=>{const t=localStorage.getItem("luckySpinPrizes");return t?JSON.parse(t):JT},Bu=t=>{localStorage.setItem("luckySpinPrizes",JSON.stringify(t))};function $T(){const[t,e]=g.useState(""),[n,a]=g.useState(""),[l,i]=g.useState(!1),[r,o]=g.useState(!1),[s,u]=g.useState(null),[f]=g.useState(Dp()),h=()=>{if(!t.trim()||!n.trim()){alert("Mohon isi Username dan Kode Tiket terlebih dahulu!");return}i(!0)},d=w=>{u(w),i(!1),o(!0)},c=()=>{o(!1),e(""),a("")};return b.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-red-900 via-red-800 to-red-900 relative overflow-hidden",children:[b.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[b.jsx("div",{className:"absolute top-20 left-10 text-yellow-400 text-6xl animate-bounce delay-100",children:"💰"}),b.jsx("div",{className:"absolute top-40 right-20 text-yellow-400 text-5xl animate-bounce delay-300",children:"🎰"}),b.jsx("div",{className:"absolute bottom-32 left-20 text-yellow-400 text-7xl animate-pulse delay-500",children:"💎"}),b.jsx("div",{className:"absolute bottom-20 right-32 text-yellow-400 text-6xl animate-bounce delay-700",children:"🏆"}),b.jsx("div",{className:"absolute top-32 left-1/4 w-4 h-4 bg-yellow-400 rounded-full animate-ping opacity-75"}),b.jsx("div",{className:"absolute top-64 right-1/3 w-3 h-3 bg-red-400 rounded-full animate-ping opacity-50 delay-1000"}),b.jsx("div",{className:"absolute bottom-48 left-1/3 w-5 h-5 bg-yellow-300 rounded-full animate-pulse opacity-60"}),b.jsx("div",{className:"absolute top-16 right-16 text-yellow-300 text-2xl animate-spin",children:"✨"}),b.jsx("div",{className:"absolute bottom-40 left-16 text-yellow-300 text-3xl animate-spin delay-500",children:"⭐"}),b.jsx("div",{className:"absolute top-1/2 left-8 text-yellow-300 text-2xl animate-pulse delay-1000",children:"💫"})]}),b.jsxs("div",{className:"relative z-10 p-6",children:[b.jsxs("div",{className:"text-center mb-8",children:[b.jsxs("div",{className:"inline-flex items-center gap-3 bg-gradient-to-r from-yellow-400 to-yellow-600 text-red-900 px-8 py-4 rounded-full shadow-2xl border-4 border-yellow-300",children:[b.jsx(eo,{className:"w-8 h-8"}),b.jsx("h1",{className:"text-4xl font-bold tracking-wider",children:"SLOT GACOR"}),b.jsx(eo,{className:"w-8 h-8"})]}),b.jsxs("div",{className:"mt-4 flex justify-center gap-4",children:[b.jsxs("div",{className:"flex items-center gap-2 bg-red-700/50 px-4 py-2 rounded-full border border-yellow-400",children:[b.jsx(Uu,{className:"w-4 h-4 text-yellow-400"}),b.jsx("span",{className:"text-yellow-400 font-bold",children:"JACKPOT READY"})]}),b.jsxs("div",{className:"flex items-center gap-2 bg-red-700/50 px-4 py-2 rounded-full border border-yellow-400",children:[b.jsx(Hu,{className:"w-4 h-4 text-yellow-400"}),b.jsx("span",{className:"text-yellow-400 font-bold",children:"MEGA WIN"})]})]})]}),b.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-center gap-12 max-w-7xl mx-auto",children:[b.jsx("div",{className:"flex-1 flex justify-center",children:b.jsxs("div",{className:"relative",children:[b.jsx("div",{className:"absolute inset-0 bg-yellow-400/20 rounded-full blur-xl scale-110 animate-pulse"}),b.jsx("div",{className:"relative",children:b.jsx(PT,{prizes:f,onSpin:d,isSpinning:l})}),b.jsx("div",{className:"absolute -top-8 -left-8 text-yellow-400 text-4xl animate-spin",children:"⚡"}),b.jsx("div",{className:"absolute -top-8 -right-8 text-yellow-400 text-4xl animate-spin delay-500",children:"⚡"}),b.jsx("div",{className:"absolute -bottom-8 -left-8 text-yellow-400 text-4xl animate-spin delay-1000",children:"⚡"}),b.jsx("div",{className:"absolute -bottom-8 -right-8 text-yellow-400 text-4xl animate-spin delay-1500",children:"⚡"})]})}),b.jsxs("div",{className:"flex-1 max-w-md",children:[b.jsxs("div",{className:"text-center mb-8",children:[b.jsxs("div",{className:"relative",children:[b.jsx("h2",{className:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-yellow-400 via-yellow-300 to-yellow-500 mb-4 tracking-wider animate-pulse",children:"SLOT GACOR"}),b.jsx("div",{className:"absolute -top-2 -left-2 text-red-300 text-8xl font-bold opacity-20 -z-10",children:"777"})]}),b.jsxs("div",{className:"flex justify-center gap-2 mb-4",children:[b.jsx("div",{className:"w-3 h-3 bg-yellow-400 rounded-full animate-bounce"}),b.jsx("div",{className:"w-3 h-3 bg-yellow-400 rounded-full animate-bounce delay-100"}),b.jsx("div",{className:"w-3 h-3 bg-yellow-400 rounded-full animate-bounce delay-200"})]})]}),b.jsx(as,{className:"bg-gradient-to-br from-red-800/80 to-red-900/80 border-2 border-yellow-400 backdrop-blur-sm shadow-2xl",children:b.jsxs(ls,{className:"p-8",children:[b.jsx("div",{className:"text-center mb-8",children:b.jsxs("div",{className:"inline-flex items-center gap-2 bg-gradient-to-r from-yellow-500 to-yellow-600 text-red-900 py-3 px-6 rounded-lg border-2 border-yellow-300 shadow-lg",children:[b.jsx(Uu,{className:"w-5 h-5"}),b.jsx("h3",{className:"text-xl font-bold",children:"MASUKKAN KODE TIKET"}),b.jsx(Uu,{className:"w-5 h-5"})]})}),b.jsxs("div",{className:"space-y-6",children:[b.jsxs("div",{className:"relative",children:[b.jsx(Dl,{htmlFor:"username",className:"text-yellow-300 font-bold text-lg mb-2 block",children:"👤 Username"}),b.jsx(wa,{id:"username",type:"text",value:t,onChange:w=>e(w.target.value),className:"bg-white/95 border-2 border-yellow-400 text-gray-800 placeholder-gray-500 h-14 text-center font-bold text-lg rounded-lg shadow-inner focus:border-yellow-300 focus:ring-2 focus:ring-yellow-300",placeholder:"Masukkan Username Anda",disabled:l})]}),b.jsxs("div",{className:"relative",children:[b.jsx(Dl,{htmlFor:"ticketCode",className:"text-yellow-300 font-bold text-lg mb-2 block",children:"🎫 Kode Tiket"}),b.jsx(wa,{id:"ticketCode",type:"text",value:n,onChange:w=>a(w.target.value),className:"bg-white/95 border-2 border-yellow-400 text-gray-800 placeholder-gray-500 h-14 text-center font-bold text-lg rounded-lg shadow-inner focus:border-yellow-300 focus:ring-2 focus:ring-yellow-300",placeholder:"Masukkan Kode Tiket",disabled:l})]}),b.jsx(Ve,{onClick:h,disabled:l,className:"w-full bg-gradient-to-r from-yellow-500 via-yellow-600 to-yellow-500 hover:from-yellow-400 hover:via-yellow-500 hover:to-yellow-400 text-red-900 font-bold text-2xl h-16 rounded-xl shadow-2xl disabled:opacity-50 border-2 border-yellow-300 transform hover:scale-105 transition-all duration-200",children:l?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"w-6 h-6 border-3 border-red-900 border-t-transparent rounded-full animate-spin"}),"SPINNING..."]}):b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hu,{className:"w-6 h-6"}),"SPIN NOW!",b.jsx(Hu,{className:"w-6 h-6"})]})})]}),b.jsx("div",{className:"text-center mt-6",children:b.jsx("p",{className:"text-yellow-300 text-sm animate-pulse",children:"🍀 Keberuntungan menanti Anda! 🍀"})})]})})]})]})]}),b.jsx(ZT,{open:r,onOpenChange:o,children:b.jsxs(Cp,{className:"bg-gradient-to-br from-yellow-400 via-yellow-500 to-yellow-600 border-4 border-red-600 text-red-900 max-w-md",children:[b.jsx(Rp,{children:b.jsxs(Mp,{className:"text-3xl font-bold text-center flex items-center justify-center gap-2",children:[b.jsx(eo,{className:"w-8 h-8"}),"SELAMAT!",b.jsx(eo,{className:"w-8 h-8"})]})}),b.jsxs("div",{className:"text-center py-8",children:[b.jsx("div",{className:"text-8xl mb-6 animate-bounce",children:(s==null?void 0:s.name)==="ZONK"?"😔":"🎉"}),b.jsx("p",{className:"text-xl font-bold mb-4",children:(s==null?void 0:s.name)==="ZONK"?"Jangan menyerah!":"Anda mendapatkan:"}),b.jsx("div",{className:"text-5xl font-bold py-6 px-8 rounded-2xl border-4 border-red-600 inline-block shadow-2xl",style:{backgroundColor:s==null?void 0:s.color},children:b.jsx("span",{className:"text-white drop-shadow-lg",children:s==null?void 0:s.name})}),b.jsxs("div",{className:"mt-6 space-y-2",children:[b.jsxs("p",{className:"text-red-800 font-bold",children:["👤 Username: ",t]}),b.jsxs("p",{className:"text-red-800 font-bold",children:["🎫 Kode Tiket: ",n]})]}),(s==null?void 0:s.name)!=="ZONK"&&b.jsx("div",{className:"mt-4 text-sm text-red-700",children:"🎊 Hubungi admin untuk claim hadiah! 🎊"})]}),b.jsx("div",{className:"flex justify-center",children:b.jsx(Ve,{onClick:c,className:"bg-red-600 hover:bg-red-700 text-white font-bold px-8 py-3 rounded-xl shadow-lg",children:(s==null?void 0:s.name)==="ZONK"?"Coba Lagi":"Tutup"})})]})})]})}const jp=g.forwardRef(({className:t,...e},n)=>b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:n,className:bt("w-full caption-bottom text-sm",t),...e})}));jp.displayName="Table";const _p=g.forwardRef(({className:t,...e},n)=>b.jsx("thead",{ref:n,className:bt("[&_tr]:border-b",t),...e}));_p.displayName="TableHeader";const zp=g.forwardRef(({className:t,...e},n)=>b.jsx("tbody",{ref:n,className:bt("[&_tr:last-child]:border-0",t),...e}));zp.displayName="TableBody";const FT=g.forwardRef(({className:t,...e},n)=>b.jsx("tfoot",{ref:n,className:bt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e}));FT.displayName="TableFooter";const Kc=g.forwardRef(({className:t,...e},n)=>b.jsx("tr",{ref:n,className:bt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));Kc.displayName="TableRow";const Oi=g.forwardRef(({className:t,...e},n)=>b.jsx("th",{ref:n,className:bt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...e}));Oi.displayName="TableHead";const Ci=g.forwardRef(({className:t,...e},n)=>b.jsx("td",{ref:n,className:bt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...e}));Ci.displayName="TableCell";const WT=g.forwardRef(({className:t,...e},n)=>b.jsx("caption",{ref:n,className:bt("mt-4 text-sm text-muted-foreground",t),...e}));WT.displayName="TableCaption";function IT(){const[t,e]=g.useState([]),[n,a]=g.useState(null),[l,i]=g.useState({name:"",color:"#dc2626",probability:10});g.useEffect(()=>{e(Dp())},[]);const r=f=>{if(f.preventDefault(),n){const h=t.map(d=>d.id===n.id?{...d,...l}:d);e(h),Bu(h),a(null)}else{const h={id:Date.now().toString(),...l},d=[...t,h];e(d),Bu(d)}i({name:"",color:"#dc2626",probability:10})},o=f=>{a(f),i({name:f.name,color:f.color,probability:f.probability})},s=f=>{const h=t.filter(d=>d.id!==f);e(h),Bu(h)},u=()=>{a(null),i({name:"",color:"#dc2626",probability:10})};return b.jsx("div",{className:"min-h-screen bg-gradient-to-br from-red-900 via-red-800 to-red-900 p-6",children:b.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[b.jsxs("div",{className:"text-center mb-8",children:[b.jsx("h1",{className:"text-4xl font-bold text-yellow-400 mb-2",children:"Admin Panel"}),b.jsx("p",{className:"text-red-200",children:"Kelola Hadiah Lucky Spin"})]}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[b.jsxs(as,{className:"bg-red-800/50 border-yellow-400",children:[b.jsx(Xc,{children:b.jsx(Zc,{className:"text-yellow-400",children:n?"Edit Hadiah":"Tambah Hadiah Baru"})}),b.jsx(ls,{children:b.jsxs("form",{onSubmit:r,className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx(Dl,{htmlFor:"name",className:"text-red-100",children:"Nama Hadiah"}),b.jsx(wa,{id:"name",type:"text",value:l.name,onChange:f=>i({...l,name:f.target.value}),className:"bg-red-700/50 border-red-600 text-white",placeholder:"Contoh: 100.000, ZONK",required:!0})]}),b.jsxs("div",{children:[b.jsx(Dl,{htmlFor:"color",className:"text-red-100",children:"Warna"}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx(wa,{id:"color",type:"color",value:l.color,onChange:f=>i({...l,color:f.target.value}),className:"w-16 h-10 bg-red-700/50 border-red-600"}),b.jsx(wa,{type:"text",value:l.color,onChange:f=>i({...l,color:f.target.value}),className:"bg-red-700/50 border-red-600 text-white",placeholder:"#dc2626"})]})]}),b.jsxs("div",{children:[b.jsx(Dl,{htmlFor:"probability",className:"text-red-100",children:"Probabilitas (%)"}),b.jsx(wa,{id:"probability",type:"number",min:"1",max:"100",value:l.probability,onChange:f=>i({...l,probability:parseInt(f.target.value)}),className:"bg-red-700/50 border-red-600 text-white",required:!0})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsxs(Ve,{type:"submit",className:"bg-yellow-600 hover:bg-yellow-700 text-red-900",children:[b.jsx(GT,{className:"w-4 h-4 mr-2"}),n?"Update":"Tambah"]}),n&&b.jsx(Ve,{type:"button",variant:"outline",onClick:u,className:"border-red-400 text-red-100",children:"Batal"})]})]})})]}),b.jsxs(as,{className:"bg-red-800/50 border-yellow-400",children:[b.jsx(Xc,{children:b.jsx(Zc,{className:"text-yellow-400",children:"Daftar Hadiah"})}),b.jsx(ls,{children:b.jsxs(jp,{children:[b.jsx(_p,{children:b.jsxs(Kc,{className:"border-red-600",children:[b.jsx(Oi,{className:"text-red-100",children:"Nama"}),b.jsx(Oi,{className:"text-red-100",children:"Warna"}),b.jsx(Oi,{className:"text-red-100",children:"Probabilitas"}),b.jsx(Oi,{className:"text-red-100",children:"Aksi"})]})}),b.jsx(zp,{children:t.map(f=>b.jsxs(Kc,{className:"border-red-600",children:[b.jsx(Ci,{className:"text-white font-medium",children:f.name}),b.jsx(Ci,{children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"w-6 h-6 rounded border border-red-400",style:{backgroundColor:f.color}}),b.jsx("span",{className:"text-red-100 text-sm",children:f.color})]})}),b.jsxs(Ci,{className:"text-white",children:[f.probability,"%"]}),b.jsx(Ci,{children:b.jsxs("div",{className:"flex gap-2",children:[b.jsx(Ve,{size:"sm",variant:"outline",onClick:()=>o(f),className:"border-yellow-400 text-yellow-400 hover:bg-yellow-400 hover:text-red-900",children:b.jsx(QT,{className:"w-4 h-4"})}),b.jsx(Ve,{size:"sm",variant:"outline",onClick:()=>s(f.id),className:"border-red-400 text-red-400 hover:bg-red-400 hover:text-white",children:b.jsx(VT,{className:"w-4 h-4"})})]})})]},f.id))})]})})]})]}),b.jsx("div",{className:"text-center",children:b.jsx(Ve,{onClick:()=>window.location.href="/",className:"bg-yellow-600 hover:bg-yellow-700 text-red-900",children:"Kembali ke Lucky Spin"})})]})})}function tN(){return b.jsx(IT,{})}function eN(){return b.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center bg-gradient-to-br from-gray-50 to-blue-50 p-6 text-center",children:b.jsxs("div",{className:"space-y-6 max-w-md",children:[b.jsxs("div",{className:"space-y-3",children:[b.jsx("h1",{className:"text-8xl font-bold text-blue-600",children:"404"}),b.jsx("h2",{className:"text-2xl font-semibold text-gray-800",children:"Page Not Found"}),b.jsx("p",{className:"text-muted-foreground",children:"The page you're looking for doesn't exist or may have been moved."})]}),b.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[b.jsx(Ve,{asChild:!0,children:b.jsx("a",{href:"/",children:"Return Home"})}),b.jsx(Ve,{variant:"outline",onClick:()=>window.history.back(),children:"Go Back"})]})]})})}const nN=new UE,aN=()=>b.jsx(BE,{client:nN,children:b.jsxs(fE,{children:[b.jsx(gS,{}),b.jsx(TA,{children:b.jsxs(wA,{children:[b.jsx(go,{path:"/",element:b.jsx($T,{})}),b.jsx(go,{path:"/admin",element:b.jsx(tN,{})}),b.jsx(go,{path:"*",element:b.jsx(eN,{})})]})})]})});qx.createRoot(document.getElementById("root")).render(b.jsx(aN,{}));
