var Q1=Object.defineProperty;var K1=(l,i,o)=>i in l?Q1(l,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[i]=o;var Lt=(l,i,o)=>K1(l,typeof i!="symbol"?i+"":i,o);function Z1(l,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=o(c);fetch(c.href,f)}})();function By(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var hf={exports:{}},Oo={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xp;function I1(){if(xp)return Oo;xp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:l,type:r,key:d,ref:c!==void 0?c:null,props:f}}return Oo.Fragment=i,Oo.jsx=o,Oo.jsxs=o,Oo}var Ep;function F1(){return Ep||(Ep=1,hf.exports=I1()),hf.exports}var H=F1(),gf={exports:{}},Ke={};/**
 * @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 wp;function J1(){if(wp)return Ke;wp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),x=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,C={};function T(A,O,W){this.props=A,this.context=O,this.refs=C,this.updater=W||E}T.prototype.isReactComponent={},T.prototype.setState=function(A,O){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,O,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function U(){}U.prototype=T.prototype;function k(A,O,W){this.props=A,this.context=O,this.refs=C,this.updater=W||E}var j=k.prototype=new U;j.constructor=k,R(j,T.prototype),j.isPureReactComponent=!0;var L=Array.isArray;function G(){}var Y={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function le(A,O,W){var Q=W.ref;return{$$typeof:l,type:A,key:O,ref:Q!==void 0?Q:null,props:W}}function ge(A,O){return le(A.type,O,A.props)}function me(A){return typeof A=="object"&&A!==null&&A.$$typeof===l}function ue(A){var O={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return O[W]})}var F=/\/+/g;function ae(A,O){return typeof A=="object"&&A!==null&&A.key!=null?ue(""+A.key):O.toString(36)}function he(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(G,G):(A.status="pending",A.then(function(O){A.status==="pending"&&(A.status="fulfilled",A.value=O)},function(O){A.status==="pending"&&(A.status="rejected",A.reason=O)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function M(A,O,W,Q,te){var P=typeof A;(P==="undefined"||P==="boolean")&&(A=null);var de=!1;if(A===null)de=!0;else switch(P){case"bigint":case"string":case"number":de=!0;break;case"object":switch(A.$$typeof){case l:case i:de=!0;break;case v:return de=A._init,M(de(A._payload),O,W,Q,te)}}if(de)return te=te(A),de=Q===""?"."+ae(A,0):Q,L(te)?(W="",de!=null&&(W=de.replace(F,"$&/")+"/"),M(te,O,W,"",function(De){return De})):te!=null&&(me(te)&&(te=ge(te,W+(te.key==null||A&&A.key===te.key?"":(""+te.key).replace(F,"$&/")+"/")+de)),O.push(te)),1;de=0;var ce=Q===""?".":Q+":";if(L(A))for(var be=0;be<A.length;be++)Q=A[be],P=ce+ae(Q,be),de+=M(Q,O,W,P,te);else if(be=w(A),typeof be=="function")for(A=be.call(A),be=0;!(Q=A.next()).done;)Q=Q.value,P=ce+ae(Q,be++),de+=M(Q,O,W,P,te);else if(P==="object"){if(typeof A.then=="function")return M(he(A),O,W,Q,te);throw O=String(A),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return de}function N(A,O,W){if(A==null)return A;var Q=[],te=0;return M(A,Q,"","",function(P){return O.call(W,P,te++)}),Q}function X(A){if(A._status===-1){var O=A._result;O=O(),O.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=O)}if(A._status===1)return A._result.default;throw A._result}var I=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},q={map:N,forEach:function(A,O,W){N(A,function(){O.apply(this,arguments)},W)},count:function(A){var O=0;return N(A,function(){O++}),O},toArray:function(A){return N(A,function(O){return O})||[]},only:function(A){if(!me(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ke.Activity=h,Ke.Children=q,Ke.Component=T,Ke.Fragment=o,Ke.Profiler=c,Ke.PureComponent=k,Ke.StrictMode=r,Ke.Suspense=y,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Y.H.useMemoCache(A)}},Ke.cache=function(A){return function(){return A.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(A,O,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Q=R({},A.props),te=A.key;if(O!=null)for(P in O.key!==void 0&&(te=""+O.key),O)!_.call(O,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&O.ref===void 0||(Q[P]=O[P]);var P=arguments.length-2;if(P===1)Q.children=W;else if(1<P){for(var de=Array(P),ce=0;ce<P;ce++)de[ce]=arguments[ce+2];Q.children=de}return le(A.type,te,Q)},Ke.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},Ke.createElement=function(A,O,W){var Q,te={},P=null;if(O!=null)for(Q in O.key!==void 0&&(P=""+O.key),O)_.call(O,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(te[Q]=O[Q]);var de=arguments.length-2;if(de===1)te.children=W;else if(1<de){for(var ce=Array(de),be=0;be<de;be++)ce[be]=arguments[be+2];te.children=ce}if(A&&A.defaultProps)for(Q in de=A.defaultProps,de)te[Q]===void 0&&(te[Q]=de[Q]);return le(A,P,te)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(A){return{$$typeof:p,render:A}},Ke.isValidElement=me,Ke.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:X}},Ke.memo=function(A,O){return{$$typeof:m,type:A,compare:O===void 0?null:O}},Ke.startTransition=function(A){var O=Y.T,W={};Y.T=W;try{var Q=A(),te=Y.S;te!==null&&te(W,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(G,I)}catch(P){I(P)}finally{O!==null&&W.types!==null&&(O.types=W.types),Y.T=O}},Ke.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},Ke.use=function(A){return Y.H.use(A)},Ke.useActionState=function(A,O,W){return Y.H.useActionState(A,O,W)},Ke.useCallback=function(A,O){return Y.H.useCallback(A,O)},Ke.useContext=function(A){return Y.H.useContext(A)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(A,O){return Y.H.useDeferredValue(A,O)},Ke.useEffect=function(A,O){return Y.H.useEffect(A,O)},Ke.useEffectEvent=function(A){return Y.H.useEffectEvent(A)},Ke.useId=function(){return Y.H.useId()},Ke.useImperativeHandle=function(A,O,W){return Y.H.useImperativeHandle(A,O,W)},Ke.useInsertionEffect=function(A,O){return Y.H.useInsertionEffect(A,O)},Ke.useLayoutEffect=function(A,O){return Y.H.useLayoutEffect(A,O)},Ke.useMemo=function(A,O){return Y.H.useMemo(A,O)},Ke.useOptimistic=function(A,O){return Y.H.useOptimistic(A,O)},Ke.useReducer=function(A,O,W){return Y.H.useReducer(A,O,W)},Ke.useRef=function(A){return Y.H.useRef(A)},Ke.useState=function(A){return Y.H.useState(A)},Ke.useSyncExternalStore=function(A,O,W){return Y.H.useSyncExternalStore(A,O,W)},Ke.useTransition=function(){return Y.H.useTransition()},Ke.version="19.2.4",Ke}var Tp;function Zo(){return Tp||(Tp=1,gf.exports=J1()),gf.exports}var S=Zo();const ve=By(S),Hy=Z1({__proto__:null,default:ve},[S]);var pf={exports:{}},zo={},yf={exports:{}},vf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Rp;function W1(){return Rp||(Rp=1,(function(l){function i(M,N){var X=M.length;M.push(N);e:for(;0<X;){var I=X-1>>>1,q=M[I];if(0<c(q,N))M[I]=N,M[X]=q,X=I;else break e}}function o(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var N=M[0],X=M.pop();if(X!==N){M[0]=X;e:for(var I=0,q=M.length,A=q>>>1;I<A;){var O=2*(I+1)-1,W=M[O],Q=O+1,te=M[Q];if(0>c(W,X))Q<q&&0>c(te,W)?(M[I]=te,M[Q]=X,I=Q):(M[I]=W,M[O]=X,I=O);else if(Q<q&&0>c(te,X))M[I]=te,M[Q]=X,I=Q;else break e}}return N}function c(M,N){var X=M.sortIndex-N.sortIndex;return X!==0?X:M.id-N.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var y=[],m=[],v=1,h=null,x=3,w=!1,E=!1,R=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function j(M){for(var N=o(m);N!==null;){if(N.callback===null)r(m);else if(N.startTime<=M)r(m),N.sortIndex=N.expirationTime,i(y,N);else break;N=o(m)}}function L(M){if(R=!1,j(M),!E)if(o(y)!==null)E=!0,G||(G=!0,ue());else{var N=o(m);N!==null&&he(L,N.startTime-M)}}var G=!1,Y=-1,_=5,le=-1;function ge(){return C?!0:!(l.unstable_now()-le<_)}function me(){if(C=!1,G){var M=l.unstable_now();le=M;var N=!0;try{e:{E=!1,R&&(R=!1,U(Y),Y=-1),w=!0;var X=x;try{t:{for(j(M),h=o(y);h!==null&&!(h.expirationTime>M&&ge());){var I=h.callback;if(typeof I=="function"){h.callback=null,x=h.priorityLevel;var q=I(h.expirationTime<=M);if(M=l.unstable_now(),typeof q=="function"){h.callback=q,j(M),N=!0;break t}h===o(y)&&r(y),j(M)}else r(y);h=o(y)}if(h!==null)N=!0;else{var A=o(m);A!==null&&he(L,A.startTime-M),N=!1}}break e}finally{h=null,x=X,w=!1}N=void 0}}finally{N?ue():G=!1}}}var ue;if(typeof k=="function")ue=function(){k(me)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ae=F.port2;F.port1.onmessage=me,ue=function(){ae.postMessage(null)}}else ue=function(){T(me,0)};function he(M,N){Y=T(function(){M(l.unstable_now())},N)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(M){M.callback=null},l.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return x},l.unstable_next=function(M){switch(x){case 1:case 2:case 3:var N=3;break;default:N=x}var X=x;x=N;try{return M()}finally{x=X}},l.unstable_requestPaint=function(){C=!0},l.unstable_runWithPriority=function(M,N){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var X=x;x=M;try{return N()}finally{x=X}},l.unstable_scheduleCallback=function(M,N,X){var I=l.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?I+X:I):X=I,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=X+q,M={id:v++,callback:N,priorityLevel:M,startTime:X,expirationTime:q,sortIndex:-1},X>I?(M.sortIndex=X,i(m,M),o(y)===null&&M===o(m)&&(R?(U(Y),Y=-1):R=!0,he(L,X-I))):(M.sortIndex=q,i(y,M),E||w||(E=!0,G||(G=!0,ue()))),M},l.unstable_shouldYield=ge,l.unstable_wrapCallback=function(M){var N=x;return function(){var X=x;x=N;try{return M.apply(this,arguments)}finally{x=X}}}})(vf)),vf}var Ap;function $1(){return Ap||(Ap=1,yf.exports=W1()),yf.exports}var bf={exports:{}},fn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cp;function P1(){if(Cp)return fn;Cp=1;var l=Zo();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,m,v){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:h==null?null:""+h,children:y,containerInfo:m,implementation:v}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fn.createPortal=function(y,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(y,m,null,v)},fn.flushSync=function(y){var m=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=m,r.p=v,r.d.f()}},fn.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},fn.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},fn.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var v=m.as,h=p(v,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:h,integrity:x,fetchPriority:w}):v==="script"&&r.d.X(y,{crossOrigin:h,integrity:x,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},fn.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},fn.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,h=p(v,m.crossOrigin);r.d.L(y,v,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},fn.preloadModule=function(y,m){if(typeof y=="string")if(m){var v=p(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},fn.requestFormReset=function(y){r.d.r(y)},fn.unstable_batchedUpdates=function(y,m){return y(m)},fn.useFormState=function(y,m,v){return d.H.useFormState(y,m,v)},fn.useFormStatus=function(){return d.H.useHostTransitionStatus()},fn.version="19.2.4",fn}var Mp;function Vy(){if(Mp)return bf.exports;Mp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),bf.exports=P1(),bf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Op;function eS(){if(Op)return zo;Op=1;var l=$1(),i=Zo(),o=Vy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return y(s),e;if(u===a)return y(s),t;u=u.sibling}throw Error(r(188))}if(n.return!==a.return)n=s,a=u;else{for(var g=!1,b=s.child;b;){if(b===n){g=!0,n=s,a=u;break}if(b===a){g=!0,a=s,n=u;break}b=b.sibling}if(!g){for(b=u.child;b;){if(b===n){g=!0,n=u,a=s;break}if(b===a){g=!0,a=u,n=s;break}b=b.sibling}if(!g)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),k=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case T:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case G:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case k:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case j:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var he=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},I=[],q=-1;function A(e){return{current:e}}function O(e){0>q||(e.current=I[q],I[q]=null,q--)}function W(e,t){q++,I[q]=e.current,e.current=t}var Q=A(null),te=A(null),P=A(null),de=A(null);function ce(e,t){switch(W(P,t),W(te,e),W(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xg(t),e=Qg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(Q),W(Q,e)}function be(){O(Q),O(te),O(P)}function De(e){e.memoizedState!==null&&W(de,e);var t=Q.current,n=Qg(t,e.type);t!==n&&(W(te,e),W(Q,n))}function we(e){te.current===e&&(O(Q),O(te)),de.current===e&&(O(de),Ro._currentValue=X)}var Ye,Se;function pe(e){if(Ye===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Se=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ye+e+Se}var Re=!1;function Ge(e,t){if(!e||Re)return"";Re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var J=ee}Reflect.construct(e,[],se)}else{try{se.call()}catch(ee){J=ee}e.call(se.prototype)}}else{try{throw Error()}catch(ee){J=ee}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),g=u[0],b=u[1];if(g&&b){var z=g.split(`
`),Z=b.split(`
`);for(s=a=0;a<z.length&&!z[a].includes("DetermineComponentFrameRoot");)a++;for(;s<Z.length&&!Z[s].includes("DetermineComponentFrameRoot");)s++;if(a===z.length||s===Z.length)for(a=z.length-1,s=Z.length-1;1<=a&&0<=s&&z[a]!==Z[s];)s--;for(;1<=a&&0<=s;a--,s--)if(z[a]!==Z[s]){if(a!==1||s!==1)do if(a--,s--,0>s||z[a]!==Z[s]){var ne=`
`+z[a].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=a&&0<=s);break}}}finally{Re=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pe(n):""}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe("Lazy");case 13:return e.child!==t&&t!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Ge(e.type,!1);case 11:return Ge(e.type.render,!1);case 1:return Ge(e.type,!0);case 31:return pe("Activity");default:return""}}function Ee(e){try{var t="",n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var fe=Object.prototype.hasOwnProperty,oe=l.unstable_scheduleCallback,B=l.unstable_cancelCallback,$=l.unstable_shouldYield,re=l.unstable_requestPaint,xe=l.unstable_now,Ue=l.unstable_getCurrentPriorityLevel,Xe=l.unstable_ImmediatePriority,ut=l.unstable_UserBlockingPriority,Je=l.unstable_NormalPriority,ke=l.unstable_LowPriority,Qe=l.unstable_IdlePriority,He=l.log,rt=l.unstable_setDisableYieldValue,gt=null,pt=null;function Ut(e){if(typeof He=="function"&&rt(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(gt,e)}catch{}}var it=Math.clz32?Math.clz32:qe,ot=Math.log,Tt=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(ot(e)/Tt|0)|0}var ct=256,Ot=262144,st=4194304;function _t(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~u,a!==0?s=_t(a):(g&=b,g!==0?s=_t(g):n||(n=b&~e,n!==0&&(s=_t(n))))):(b=a&~u,b!==0?s=_t(b):g!==0?s=_t(g):n||(n=a&~e,n!==0&&(s=_t(n)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:s}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function St(){var e=st;return st<<=1,(st&62914560)===0&&(st=4194304),e}function tn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function je(e,t,n,a,s,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,z=e.expirationTimes,Z=e.hiddenUpdates;for(n=g&~n;0<n;){var ne=31-it(n),se=1<<ne;b[ne]=0,z[ne]=-1;var J=Z[ne];if(J!==null)for(Z[ne]=null,ne=0;ne<J.length;ne++){var ee=J[ne];ee!==null&&(ee.lane&=-536870913)}n&=~se}a!==0&&xt(e,a,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function xt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-it(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function yt(e,t){var n=t&-t;return n=(n&42)!==0?1:Ht(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ht(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Vt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pn(){var e=N.p;return e!==0?e:(e=window.event,e===void 0?32:hp(e.type))}function nr(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var nl=Math.random().toString(36).slice(2),Wt="__reactFiber$"+nl,on="__reactProps$"+nl,dl="__reactContainer$"+nl,Xa="__reactEvents$"+nl,jb="__reactListeners$"+nl,kb="__reactHandles$"+nl,_d="__reactResources$"+nl,Hi="__reactMarker$"+nl;function iu(e){delete e[Wt],delete e[on],delete e[Xa],delete e[jb],delete e[kb]}function Qa(e){var t=e[Wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dl]||n[Wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$g(e);e!==null;){if(n=e[Wt])return n;e=$g(e)}return t}e=n,n=e.parentNode}return null}function Ka(e){if(e=e[Wt]||e[dl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Za(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(e){e[Hi]=!0}var Nd=new Set,Dd={};function pa(e,t){Ia(e,t),Ia(e+"Capture",t)}function Ia(e,t){for(Dd[e]=t,e=0;e<t.length;e++)Nd.add(t[e])}var Ub=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]*$"),jd={},kd={};function Lb(e){return fe.call(kd,e)?!0:fe.call(jd,e)?!1:Ub.test(e)?kd[e]=!0:(jd[e]=!0,!1)}function lr(e,t,n){if(Lb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ar(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ml(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Bn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bb(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ou(e){if(!e._valueTracker){var t=Ud(e)?"checked":"value";e._valueTracker=Bb(e,t,""+e[t])}}function Ld(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ud(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Hb=/[\n"\\]/g;function Hn(e){return e.replace(Hb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ru(e,t,n,a,s,u,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bn(t)):e.value!==""+Bn(t)&&(e.value=""+Bn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?su(e,g,Bn(t)):n!=null?su(e,g,Bn(n)):a!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Bn(b):e.removeAttribute("name")}function Bd(e,t,n,a,s,u,g,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ou(e);return}n=n!=null?""+Bn(n):"",t=t!=null?""+Bn(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),ou(e)}function su(e,t,n){t==="number"&&ir(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Fa(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Bn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Hd(e,t,n){if(t!=null&&(t=""+Bn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bn(n):""}function Vd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(he(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Bn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ou(e)}function Ja(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yd(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Vb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function qd(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Yd(e,s,a)}else for(var u in t)t.hasOwnProperty(u)&&Yd(e,u,t[u])}function uu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yb=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 or(e){return qb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hl(){}var cu=null;function fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wa=null,$a=null;function Gd(e){var t=Ka(e);if(t&&(e=t.stateNode)){var n=e[on]||null;e:switch(e=t.stateNode,t.type){case"input":if(ru(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Hn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[on]||null;if(!s)throw Error(r(90));ru(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ld(a)}break e;case"textarea":Hd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Fa(e,!!n.multiple,t,!1)}}}var du=!1;function Xd(e,t,n){if(du)return e(t,n);du=!0;try{var a=e(t);return a}finally{if(du=!1,(Wa!==null||$a!==null)&&(Zr(),Wa&&(t=Wa,e=$a,$a=Wa=null,Gd(t),e)))for(t=0;t<e.length;t++)Gd(e[t])}}function Yi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[on]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var gl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=!1;if(gl)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){mu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{mu=!1}var Bl=null,hu=null,rr=null;function Qd(){if(rr)return rr;var e,t=hu,n=t.length,a,s="value"in Bl?Bl.value:Bl.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===s[u-a];a++);return rr=s.slice(e,1<a?1-a:void 0)}function sr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ur(){return!0}function Kd(){return!1}function yn(e){function t(n,a,s,u,g){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ur:Kd,this.isPropagationStopped=Kd,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ur)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ur)},persist:function(){},isPersistent:ur}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=yn(ya),Gi=h({},ya,{view:0,detail:0}),Gb=yn(Gi),gu,pu,Xi,fr=h({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xi&&(Xi&&e.type==="mousemove"?(gu=e.screenX-Xi.screenX,pu=e.screenY-Xi.screenY):pu=gu=0,Xi=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:pu}}),Zd=yn(fr),Xb=h({},fr,{dataTransfer:0}),Qb=yn(Xb),Kb=h({},Gi,{relatedTarget:0}),yu=yn(Kb),Zb=h({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),Ib=yn(Zb),Fb=h({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jb=yn(Fb),Wb=h({},ya,{data:0}),Id=yn(Wb),$b={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pb={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"},e0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e0[e])?!!t[e]:!1}function vu(){return t0}var n0=h({},Gi,{key:function(e){if(e.key){var t=$b[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(e){return e.type==="keypress"?sr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l0=yn(n0),a0=h({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=yn(a0),i0=h({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),o0=yn(i0),r0=h({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),s0=yn(r0),u0=h({},fr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),c0=yn(u0),f0=h({},ya,{newState:0,oldState:0}),d0=yn(f0),m0=[9,13,27,32],bu=gl&&"CompositionEvent"in window,Qi=null;gl&&"documentMode"in document&&(Qi=document.documentMode);var h0=gl&&"TextEvent"in window&&!Qi,Jd=gl&&(!bu||Qi&&8<Qi&&11>=Qi),Wd=" ",$d=!1;function Pd(e,t){switch(e){case"keyup":return m0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pa=!1;function g0(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:($d=!0,Wd);case"textInput":return e=t.data,e===Wd&&$d?null:e;default:return null}}function p0(e,t){if(Pa)return e==="compositionend"||!bu&&Pd(e,t)?(e=Qd(),rr=hu=Bl=null,Pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jd&&t.locale!=="ko"?null:t.data;default:return null}}var y0={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 tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!y0[e.type]:t==="textarea"}function nm(e,t,n,a){Wa?$a?$a.push(a):$a=[a]:Wa=a,t=es(t,"onChange"),0<t.length&&(n=new cr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ki=null,Zi=null;function v0(e){Bg(e,0)}function dr(e){var t=Vi(e);if(Ld(t))return e}function lm(e,t){if(e==="change")return t}var am=!1;if(gl){var Su;if(gl){var xu="oninput"in document;if(!xu){var im=document.createElement("div");im.setAttribute("oninput","return;"),xu=typeof im.oninput=="function"}Su=xu}else Su=!1;am=Su&&(!document.documentMode||9<document.documentMode)}function om(){Ki&&(Ki.detachEvent("onpropertychange",rm),Zi=Ki=null)}function rm(e){if(e.propertyName==="value"&&dr(Zi)){var t=[];nm(t,Zi,e,fu(e)),Xd(v0,t)}}function b0(e,t,n){e==="focusin"?(om(),Ki=t,Zi=n,Ki.attachEvent("onpropertychange",rm)):e==="focusout"&&om()}function S0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dr(Zi)}function x0(e,t){if(e==="click")return dr(t)}function E0(e,t){if(e==="input"||e==="change")return dr(t)}function w0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var An=typeof Object.is=="function"?Object.is:w0;function Ii(e,t){if(An(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!fe.call(t,s)||!An(e[s],t[s]))return!1}return!0}function sm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var n=sm(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sm(n)}}function cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ir(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ir(e.document)}return t}function Eu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var T0=gl&&"documentMode"in document&&11>=document.documentMode,ei=null,wu=null,Fi=null,Tu=!1;function dm(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tu||ei==null||ei!==ir(a)||(a=ei,"selectionStart"in a&&Eu(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}),Fi&&Ii(Fi,a)||(Fi=a,a=es(wu,"onSelect"),0<a.length&&(t=new cr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ei)))}function va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ti={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},Ru={},mm={};gl&&(mm=document.createElement("div").style,"AnimationEvent"in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),"TransitionEvent"in window||delete ti.transitionend.transition);function ba(e){if(Ru[e])return Ru[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mm)return Ru[e]=t[n];return e}var hm=ba("animationend"),gm=ba("animationiteration"),pm=ba("animationstart"),R0=ba("transitionrun"),A0=ba("transitionstart"),C0=ba("transitioncancel"),ym=ba("transitionend"),vm=new Map,Au="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(" ");Au.push("scrollEnd");function Jn(e,t){vm.set(e,t),pa(t,[e])}var mr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vn=[],ni=0,Cu=0;function hr(){for(var e=ni,t=Cu=ni=0;t<e;){var n=Vn[t];Vn[t++]=null;var a=Vn[t];Vn[t++]=null;var s=Vn[t];Vn[t++]=null;var u=Vn[t];if(Vn[t++]=null,a!==null&&s!==null){var g=a.pending;g===null?s.next=s:(s.next=g.next,g.next=s),a.pending=s}u!==0&&bm(n,s,u)}}function gr(e,t,n,a){Vn[ni++]=e,Vn[ni++]=t,Vn[ni++]=n,Vn[ni++]=a,Cu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mu(e,t,n,a){return gr(e,t,n,a),pr(e)}function Sa(e,t){return gr(e,null,null,t),pr(e)}function bm(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-it(n),e=u.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),u):null}function pr(e){if(50<vo)throw vo=0,Lc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function M0(e,t,n,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,t,n,a){return new M0(e,t,n,a)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pl(e,t){var n=e.alternate;return n===null?(n=Cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Sm(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yr(e,t,n,a,s,u){var g=0;if(a=e,typeof e=="function")Ou(e)&&(g=1);else if(typeof e=="string")g=D1(e,n,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Cn(31,n,t,s),e.elementType=le,e.lanes=u,e;case R:return xa(n.children,s,u,t);case C:g=8,s|=24;break;case T:return e=Cn(12,n,t,s|2),e.elementType=T,e.lanes=u,e;case L:return e=Cn(13,n,t,s),e.elementType=L,e.lanes=u,e;case G:return e=Cn(19,n,t,s),e.elementType=G,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:g=10;break e;case U:g=9;break e;case j:g=11;break e;case Y:g=14;break e;case _:g=16,a=null;break e}g=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Cn(g,n,t,s),t.elementType=e,t.type=a,t.lanes=u,t}function xa(e,t,n,a){return e=Cn(7,e,a,t),e.lanes=n,e}function zu(e,t,n){return e=Cn(6,e,null,t),e.lanes=n,e}function xm(e){var t=Cn(18,null,null,0);return t.stateNode=e,t}function _u(e,t,n){return t=Cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Em=new WeakMap;function Yn(e,t){if(typeof e=="object"&&e!==null){var n=Em.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ee(t)},Em.set(e,t),t)}return{value:e,source:t,stack:Ee(t)}}var ai=[],ii=0,vr=null,Ji=0,qn=[],Gn=0,Hl=null,ll=1,al="";function yl(e,t){ai[ii++]=Ji,ai[ii++]=vr,vr=e,Ji=t}function wm(e,t,n){qn[Gn++]=ll,qn[Gn++]=al,qn[Gn++]=Hl,Hl=e;var a=ll;e=al;var s=32-it(a)-1;a&=~(1<<s),n+=1;var u=32-it(t)+s;if(30<u){var g=s-s%5;u=(a&(1<<g)-1).toString(32),a>>=g,s-=g,ll=1<<32-it(t)+s|n<<s|a,al=u+e}else ll=1<<u|n<<s|a,al=e}function Nu(e){e.return!==null&&(yl(e,1),wm(e,1,0))}function Du(e){for(;e===vr;)vr=ai[--ii],ai[ii]=null,Ji=ai[--ii],ai[ii]=null;for(;e===Hl;)Hl=qn[--Gn],qn[Gn]=null,al=qn[--Gn],qn[Gn]=null,ll=qn[--Gn],qn[Gn]=null}function Tm(e,t){qn[Gn++]=ll,qn[Gn++]=al,qn[Gn++]=Hl,ll=t.id,al=t.overflow,Hl=e}var rn=null,Nt=null,at=!1,Vl=null,Xn=!1,ju=Error(r(519));function Yl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wi(Yn(t,e)),ju}function Rm(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Wt]=e,t[on]=a,n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<So.length;n++)tt(So[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":tt("invalid",t),Bd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":tt("invalid",t);break;case"textarea":tt("invalid",t),Vd(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||qg(t.textContent,n)?(a.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),a.onScroll!=null&&tt("scroll",t),a.onScrollEnd!=null&&tt("scrollend",t),a.onClick!=null&&(t.onclick=hl),t=!0):t=!1,t||Yl(e,!0)}function Am(e){for(rn=e.return;rn;)switch(rn.tag){case 5:case 31:case 13:Xn=!1;return;case 27:case 3:Xn=!0;return;default:rn=rn.return}}function oi(e){if(e!==rn)return!1;if(!at)return Am(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||$c(e.type,e.memoizedProps)),n=!n),n&&Nt&&Yl(e),Am(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Nt=Wg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Nt=Wg(e)}else t===27?(t=Nt,ta(e.type)?(e=lf,lf=null,Nt=e):Nt=t):Nt=rn?Kn(e.stateNode.nextSibling):null;return!0}function Ea(){Nt=rn=null,at=!1}function ku(){var e=Vl;return e!==null&&(xn===null?xn=e:xn.push.apply(xn,e),Vl=null),e}function Wi(e){Vl===null?Vl=[e]:Vl.push(e)}var Uu=A(null),wa=null,vl=null;function ql(e,t,n){W(Uu,t._currentValue),t._currentValue=n}function bl(e){e._currentValue=Uu.current,O(Uu)}function Lu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Bu(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var g=s.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=s;for(var z=0;z<t.length;z++)if(b.context===t[z]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Lu(u.return,n,e),a||(g=null);break e}u=b.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(r(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),Lu(g,n,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function ri(e,t,n,a){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var b=s.type;An(s.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(s===de.current){if(g=s.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ro):e=[Ro])}s=s.return}e!==null&&Bu(t,e,n,a),t.flags|=262144}function br(e){for(e=e.firstContext;e!==null;){if(!An(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){wa=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function sn(e){return Cm(wa,e)}function Sr(e,t){return wa===null&&Ta(e),Cm(e,t)}function Cm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vl===null){if(e===null)throw Error(r(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return n}var O0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},z0=l.unstable_scheduleCallback,_0=l.unstable_NormalPriority,Qt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hu(){return{controller:new O0,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&z0(_0,function(){e.controller.abort()})}var Pi=null,Vu=0,si=0,ui=null;function N0(e,t){if(Pi===null){var n=Pi=[];Vu=0,si=Gc(),ui={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Vu++,t.then(Mm,Mm),t}function Mm(){if(--Vu===0&&Pi!==null){ui!==null&&(ui.status="fulfilled");var e=Pi;Pi=null,si=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Om=M.S;M.S=function(e,t){dg=xe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&N0(e,t),Om!==null&&Om(e,t)};var Ra=A(null);function Yu(){var e=Ra.current;return e!==null?e:Mt.pooledCache}function xr(e,t){t===null?W(Ra,Ra.current):W(Ra,t.pool)}function zm(){var e=Yu();return e===null?null:{parent:Qt._currentValue,pool:e}}var ci=Error(r(460)),qu=Error(r(474)),Er=Error(r(542)),wr={then:function(){}};function _m(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nm(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(hl,hl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jm(e),e;default:if(typeof t.status=="string")t.then(hl,hl);else{if(e=Mt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jm(e),e}throw Ca=t,ci}}function Aa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ca=n,ci):n}}var Ca=null;function Dm(){if(Ca===null)throw Error(r(459));var e=Ca;return Ca=null,e}function jm(e){if(e===ci||e===Er)throw Error(r(483))}var fi=null,eo=0;function Tr(e){var t=eo;return eo+=1,fi===null&&(fi=[]),Nm(fi,e,t)}function to(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Rr(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function km(e){function t(V,D){if(e){var K=V.deletions;K===null?(V.deletions=[D],V.flags|=16):K.push(D)}}function n(V,D){if(!e)return null;for(;D!==null;)t(V,D),D=D.sibling;return null}function a(V){for(var D=new Map;V!==null;)V.key!==null?D.set(V.key,V):D.set(V.index,V),V=V.sibling;return D}function s(V,D){return V=pl(V,D),V.index=0,V.sibling=null,V}function u(V,D,K){return V.index=K,e?(K=V.alternate,K!==null?(K=K.index,K<D?(V.flags|=67108866,D):K):(V.flags|=67108866,D)):(V.flags|=1048576,D)}function g(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function b(V,D,K,ie){return D===null||D.tag!==6?(D=zu(K,V.mode,ie),D.return=V,D):(D=s(D,K),D.return=V,D)}function z(V,D,K,ie){var Ne=K.type;return Ne===R?ne(V,D,K.props.children,ie,K.key):D!==null&&(D.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===_&&Aa(Ne)===D.type)?(D=s(D,K.props),to(D,K),D.return=V,D):(D=yr(K.type,K.key,K.props,null,V.mode,ie),to(D,K),D.return=V,D)}function Z(V,D,K,ie){return D===null||D.tag!==4||D.stateNode.containerInfo!==K.containerInfo||D.stateNode.implementation!==K.implementation?(D=_u(K,V.mode,ie),D.return=V,D):(D=s(D,K.children||[]),D.return=V,D)}function ne(V,D,K,ie,Ne){return D===null||D.tag!==7?(D=xa(K,V.mode,ie,Ne),D.return=V,D):(D=s(D,K),D.return=V,D)}function se(V,D,K){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=zu(""+D,V.mode,K),D.return=V,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return K=yr(D.type,D.key,D.props,null,V.mode,K),to(K,D),K.return=V,K;case E:return D=_u(D,V.mode,K),D.return=V,D;case _:return D=Aa(D),se(V,D,K)}if(he(D)||ue(D))return D=xa(D,V.mode,K,null),D.return=V,D;if(typeof D.then=="function")return se(V,Tr(D),K);if(D.$$typeof===k)return se(V,Sr(V,D),K);Rr(V,D)}return null}function J(V,D,K,ie){var Ne=D!==null?D.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Ne!==null?null:b(V,D,""+K,ie);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return K.key===Ne?z(V,D,K,ie):null;case E:return K.key===Ne?Z(V,D,K,ie):null;case _:return K=Aa(K),J(V,D,K,ie)}if(he(K)||ue(K))return Ne!==null?null:ne(V,D,K,ie,null);if(typeof K.then=="function")return J(V,D,Tr(K),ie);if(K.$$typeof===k)return J(V,D,Sr(V,K),ie);Rr(V,K)}return null}function ee(V,D,K,ie,Ne){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return V=V.get(K)||null,b(D,V,""+ie,Ne);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return V=V.get(ie.key===null?K:ie.key)||null,z(D,V,ie,Ne);case E:return V=V.get(ie.key===null?K:ie.key)||null,Z(D,V,ie,Ne);case _:return ie=Aa(ie),ee(V,D,K,ie,Ne)}if(he(ie)||ue(ie))return V=V.get(K)||null,ne(D,V,ie,Ne,null);if(typeof ie.then=="function")return ee(V,D,K,Tr(ie),Ne);if(ie.$$typeof===k)return ee(V,D,K,Sr(D,ie),Ne);Rr(D,ie)}return null}function Ae(V,D,K,ie){for(var Ne=null,dt=null,ze=D,Fe=D=0,lt=null;ze!==null&&Fe<K.length;Fe++){ze.index>Fe?(lt=ze,ze=null):lt=ze.sibling;var mt=J(V,ze,K[Fe],ie);if(mt===null){ze===null&&(ze=lt);break}e&&ze&&mt.alternate===null&&t(V,ze),D=u(mt,D,Fe),dt===null?Ne=mt:dt.sibling=mt,dt=mt,ze=lt}if(Fe===K.length)return n(V,ze),at&&yl(V,Fe),Ne;if(ze===null){for(;Fe<K.length;Fe++)ze=se(V,K[Fe],ie),ze!==null&&(D=u(ze,D,Fe),dt===null?Ne=ze:dt.sibling=ze,dt=ze);return at&&yl(V,Fe),Ne}for(ze=a(ze);Fe<K.length;Fe++)lt=ee(ze,V,Fe,K[Fe],ie),lt!==null&&(e&&lt.alternate!==null&&ze.delete(lt.key===null?Fe:lt.key),D=u(lt,D,Fe),dt===null?Ne=lt:dt.sibling=lt,dt=lt);return e&&ze.forEach(function(oa){return t(V,oa)}),at&&yl(V,Fe),Ne}function Le(V,D,K,ie){if(K==null)throw Error(r(151));for(var Ne=null,dt=null,ze=D,Fe=D=0,lt=null,mt=K.next();ze!==null&&!mt.done;Fe++,mt=K.next()){ze.index>Fe?(lt=ze,ze=null):lt=ze.sibling;var oa=J(V,ze,mt.value,ie);if(oa===null){ze===null&&(ze=lt);break}e&&ze&&oa.alternate===null&&t(V,ze),D=u(oa,D,Fe),dt===null?Ne=oa:dt.sibling=oa,dt=oa,ze=lt}if(mt.done)return n(V,ze),at&&yl(V,Fe),Ne;if(ze===null){for(;!mt.done;Fe++,mt=K.next())mt=se(V,mt.value,ie),mt!==null&&(D=u(mt,D,Fe),dt===null?Ne=mt:dt.sibling=mt,dt=mt);return at&&yl(V,Fe),Ne}for(ze=a(ze);!mt.done;Fe++,mt=K.next())mt=ee(ze,V,Fe,mt.value,ie),mt!==null&&(e&&mt.alternate!==null&&ze.delete(mt.key===null?Fe:mt.key),D=u(mt,D,Fe),dt===null?Ne=mt:dt.sibling=mt,dt=mt);return e&&ze.forEach(function(X1){return t(V,X1)}),at&&yl(V,Fe),Ne}function Ct(V,D,K,ie){if(typeof K=="object"&&K!==null&&K.type===R&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case w:e:{for(var Ne=K.key;D!==null;){if(D.key===Ne){if(Ne=K.type,Ne===R){if(D.tag===7){n(V,D.sibling),ie=s(D,K.props.children),ie.return=V,V=ie;break e}}else if(D.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===_&&Aa(Ne)===D.type){n(V,D.sibling),ie=s(D,K.props),to(ie,K),ie.return=V,V=ie;break e}n(V,D);break}else t(V,D);D=D.sibling}K.type===R?(ie=xa(K.props.children,V.mode,ie,K.key),ie.return=V,V=ie):(ie=yr(K.type,K.key,K.props,null,V.mode,ie),to(ie,K),ie.return=V,V=ie)}return g(V);case E:e:{for(Ne=K.key;D!==null;){if(D.key===Ne)if(D.tag===4&&D.stateNode.containerInfo===K.containerInfo&&D.stateNode.implementation===K.implementation){n(V,D.sibling),ie=s(D,K.children||[]),ie.return=V,V=ie;break e}else{n(V,D);break}else t(V,D);D=D.sibling}ie=_u(K,V.mode,ie),ie.return=V,V=ie}return g(V);case _:return K=Aa(K),Ct(V,D,K,ie)}if(he(K))return Ae(V,D,K,ie);if(ue(K)){if(Ne=ue(K),typeof Ne!="function")throw Error(r(150));return K=Ne.call(K),Le(V,D,K,ie)}if(typeof K.then=="function")return Ct(V,D,Tr(K),ie);if(K.$$typeof===k)return Ct(V,D,Sr(V,K),ie);Rr(V,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,D!==null&&D.tag===6?(n(V,D.sibling),ie=s(D,K),ie.return=V,V=ie):(n(V,D),ie=zu(K,V.mode,ie),ie.return=V,V=ie),g(V)):n(V,D)}return function(V,D,K,ie){try{eo=0;var Ne=Ct(V,D,K,ie);return fi=null,Ne}catch(ze){if(ze===ci||ze===Er)throw ze;var dt=Cn(29,ze,null,V.mode);return dt.lanes=ie,dt.return=V,dt}finally{}}}var Ma=km(!0),Um=km(!1),Gl=!1;function Gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ql(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(vt&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=pr(e),bm(e,null,n),t}return gr(e,a,t,n),pr(e)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Pe(e,n)}}function Qu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ku=!1;function lo(){if(Ku){var e=ui;if(e!==null)throw e}}function ao(e,t,n,a){Ku=!1;var s=e.updateQueue;Gl=!1;var u=s.firstBaseUpdate,g=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var z=b,Z=z.next;z.next=null,g===null?u=Z:g.next=Z,g=z;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,b=ne.lastBaseUpdate,b!==g&&(b===null?ne.firstBaseUpdate=Z:b.next=Z,ne.lastBaseUpdate=z))}if(u!==null){var se=s.baseState;g=0,ne=Z=z=null,b=u;do{var J=b.lane&-536870913,ee=J!==b.lane;if(ee?(nt&J)===J:(a&J)===J){J!==0&&J===si&&(Ku=!0),ne!==null&&(ne=ne.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var Ae=e,Le=b;J=t;var Ct=n;switch(Le.tag){case 1:if(Ae=Le.payload,typeof Ae=="function"){se=Ae.call(Ct,se,J);break e}se=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Le.payload,J=typeof Ae=="function"?Ae.call(Ct,se,J):Ae,J==null)break e;se=h({},se,J);break e;case 2:Gl=!0}}J=b.callback,J!==null&&(e.flags|=64,ee&&(e.flags|=8192),ee=s.callbacks,ee===null?s.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:b.tag,payload:b.payload,callback:b.callback,next:null},ne===null?(Z=ne=ee,z=se):ne=ne.next=ee,g|=J;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;ee=b,b=ee.next,ee.next=null,s.lastBaseUpdate=ee,s.shared.pending=null}}while(!0);ne===null&&(z=se),s.baseState=z,s.firstBaseUpdate=Z,s.lastBaseUpdate=ne,u===null&&(s.shared.lanes=0),Jl|=g,e.lanes=g,e.memoizedState=se}}function Lm(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Bm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Lm(n[e],t)}var di=A(null),Ar=A(0);function Hm(e,t){e=Ml,W(Ar,e),W(di,t),Ml=e|t.baseLanes}function Zu(){W(Ar,Ml),W(di,di.current)}function Iu(){Ml=Ar.current,O(di),O(Ar)}var Mn=A(null),Qn=null;function Kl(e){var t=e.alternate;W(Gt,Gt.current&1),W(Mn,e),Qn===null&&(t===null||di.current!==null||t.memoizedState!==null)&&(Qn=e)}function Fu(e){W(Gt,Gt.current),W(Mn,e),Qn===null&&(Qn=e)}function Vm(e){e.tag===22?(W(Gt,Gt.current),W(Mn,e),Qn===null&&(Qn=e)):Zl()}function Zl(){W(Gt,Gt.current),W(Mn,Mn.current)}function On(e){O(Mn),Qn===e&&(Qn=null),O(Gt)}var Gt=A(0);function Cr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||tf(n)||nf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sl=0,Ie=null,Rt=null,Kt=null,Mr=!1,mi=!1,Oa=!1,Or=0,io=0,hi=null,j0=0;function Yt(){throw Error(r(321))}function Ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!An(e[n],t[n]))return!1;return!0}function Wu(e,t,n,a,s,u){return Sl=u,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?wh:dc,Oa=!1,u=n(a,s),Oa=!1,mi&&(u=qm(t,n,a,s)),Ym(e),u}function Ym(e){M.H=so;var t=Rt!==null&&Rt.next!==null;if(Sl=0,Kt=Rt=Ie=null,Mr=!1,io=0,hi=null,t)throw Error(r(300));e===null||Zt||(e=e.dependencies,e!==null&&br(e)&&(Zt=!0))}function qm(e,t,n,a){Ie=e;var s=0;do{if(mi&&(hi=null),io=0,mi=!1,25<=s)throw Error(r(301));if(s+=1,Kt=Rt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Th,u=t(n,a)}while(mi);return u}function k0(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?oo(t):t,e=e.useState()[0],(Rt!==null?Rt.memoizedState:null)!==e&&(Ie.flags|=1024),t}function $u(){var e=Or!==0;return Or=0,e}function Pu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ec(e){if(Mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mr=!1}Sl=0,Kt=Rt=Ie=null,mi=!1,io=Or=0,hi=null}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?Ie.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function Xt(){if(Rt===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Rt.next;var t=Kt===null?Ie.memoizedState:Kt.next;if(t!==null)Kt=t,Rt=e;else{if(e===null)throw Ie.alternate===null?Error(r(467)):Error(r(310));Rt=e,e={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Kt===null?Ie.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function zr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oo(e){var t=io;return io+=1,hi===null&&(hi=[]),e=Nm(hi,e,t),t=Ie,(Kt===null?t.memoizedState:Kt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?wh:dc),e}function _r(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oo(e);if(e.$$typeof===k)return sn(e)}throw Error(r(438,String(e)))}function tc(e){var t=null,n=Ie.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ie.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=zr(),Ie.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ge;return t.index++,n}function xl(e,t){return typeof t=="function"?t(e):t}function Nr(e){var t=Xt();return nc(t,Rt,e)}function nc(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var s=e.baseQueue,u=a.pending;if(u!==null){if(s!==null){var g=s.next;s.next=u.next,u.next=g}t.baseQueue=s=u,a.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var b=g=null,z=null,Z=t,ne=!1;do{var se=Z.lane&-536870913;if(se!==Z.lane?(nt&se)===se:(Sl&se)===se){var J=Z.revertLane;if(J===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),se===si&&(ne=!0);else if((Sl&J)===J){Z=Z.next,J===si&&(ne=!0);continue}else se={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(b=z=se,g=u):z=z.next=se,Ie.lanes|=J,Jl|=J;se=Z.action,Oa&&n(u,se),u=Z.hasEagerState?Z.eagerState:n(u,se)}else J={lane:se,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(b=z=J,g=u):z=z.next=J,Ie.lanes|=se,Jl|=se;Z=Z.next}while(Z!==null&&Z!==t);if(z===null?g=u:z.next=b,!An(u,e.memoizedState)&&(Zt=!0,ne&&(n=ui,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=z,a.lastRenderedState=u}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function lc(e){var t=Xt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do u=e(u,g.action),g=g.next;while(g!==s);An(u,t.memoizedState)||(Zt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function Gm(e,t,n){var a=Ie,s=Xt(),u=at;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var g=!An((Rt||s).memoizedState,n);if(g&&(s.memoizedState=n,Zt=!0),s=s.queue,oc(Km.bind(null,a,s,e),[e]),s.getSnapshot!==t||g||Kt!==null&&Kt.memoizedState.tag&1){if(a.flags|=2048,gi(9,{destroy:void 0},Qm.bind(null,a,s,n,t),null),Mt===null)throw Error(r(349));u||(Sl&127)!==0||Xm(a,t,n)}return n}function Xm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t=zr(),Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qm(e,t,n,a){t.value=n,t.getSnapshot=a,Zm(t)&&Im(e)}function Km(e,t,n){return n(function(){Zm(t)&&Im(e)})}function Zm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!An(e,n)}catch{return!0}}function Im(e){var t=Sa(e,2);t!==null&&En(t,e,2)}function ac(e){var t=hn();if(typeof e=="function"){var n=e;if(e=n(),Oa){Ut(!0);try{n()}finally{Ut(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t}function Fm(e,t,n,a){return e.baseState=n,nc(e,Rt,typeof a=="function"?a:xl)}function U0(e,t,n,a,s){if(kr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};M.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,Jm(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Jm(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var u=M.T,g={};M.T=g;try{var b=n(s,a),z=M.S;z!==null&&z(g,b),Wm(e,t,b)}catch(Z){ic(e,t,Z)}finally{u!==null&&g.types!==null&&(u.types=g.types),M.T=u}}else try{u=n(s,a),Wm(e,t,u)}catch(Z){ic(e,t,Z)}}function Wm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$m(e,t,a)},function(a){return ic(e,t,a)}):$m(e,t,n)}function $m(e,t,n){t.status="fulfilled",t.value=n,Pm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jm(e,n)))}function ic(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Pm(t),t=t.next;while(t!==a)}e.action=null}function Pm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function eh(e,t){return t}function th(e,t){if(at){var n=Mt.formState;if(n!==null){e:{var a=Ie;if(at){if(Nt){t:{for(var s=Nt,u=Xn;s.nodeType!==8;){if(!u){s=null;break t}if(s=Kn(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Nt=Kn(s.nextSibling),a=s.data==="F!";break e}}Yl(a)}a=!1}a&&(t=n[0])}}return n=hn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eh,lastRenderedState:t},n.queue=a,n=Sh.bind(null,Ie,a),a.dispatch=n,a=ac(!1),u=fc.bind(null,Ie,!1,a.queue),a=hn(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=U0.bind(null,Ie,s,u,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function nh(e){var t=Xt();return lh(t,Rt,e)}function lh(e,t,n){if(t=nc(e,t,eh)[0],e=Nr(xl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=oo(t)}catch(g){throw g===ci?Er:g}else a=t;t=Xt();var s=t.queue,u=s.dispatch;return n!==t.memoizedState&&(Ie.flags|=2048,gi(9,{destroy:void 0},L0.bind(null,s,n),null)),[a,u,e]}function L0(e,t){e.action=t}function ah(e){var t=Xt(),n=Rt;if(n!==null)return lh(t,n,e);Xt(),t=t.memoizedState,n=Xt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function gi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=zr(),Ie.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ih(){return Xt().memoizedState}function Dr(e,t,n,a){var s=hn();Ie.flags|=e,s.memoizedState=gi(1|t,{destroy:void 0},n,a===void 0?null:a)}function jr(e,t,n,a){var s=Xt();a=a===void 0?null:a;var u=s.memoizedState.inst;Rt!==null&&a!==null&&Ju(a,Rt.memoizedState.deps)?s.memoizedState=gi(t,u,n,a):(Ie.flags|=e,s.memoizedState=gi(1|t,u,n,a))}function oh(e,t){Dr(8390656,8,e,t)}function oc(e,t){jr(2048,8,e,t)}function B0(e){Ie.flags|=4;var t=Ie.updateQueue;if(t===null)t=zr(),Ie.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rh(e){var t=Xt().memoizedState;return B0({ref:t,nextImpl:e}),function(){if((vt&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function sh(e,t){return jr(4,2,e,t)}function uh(e,t){return jr(4,4,e,t)}function ch(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fh(e,t,n){n=n!=null?n.concat([e]):null,jr(4,4,ch.bind(null,t,e),n)}function rc(){}function dh(e,t){var n=Xt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ju(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function mh(e,t){var n=Xt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ju(t,a[1]))return a[0];if(a=e(),Oa){Ut(!0);try{e()}finally{Ut(!1)}}return n.memoizedState=[a,t],a}function sc(e,t,n){return n===void 0||(Sl&1073741824)!==0&&(nt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=hg(),Ie.lanes|=e,Jl|=e,n)}function hh(e,t,n,a){return An(n,t)?n:di.current!==null?(e=sc(e,n,a),An(e,t)||(Zt=!0),e):(Sl&42)===0||(Sl&1073741824)!==0&&(nt&261930)===0?(Zt=!0,e.memoizedState=n):(e=hg(),Ie.lanes|=e,Jl|=e,t)}function gh(e,t,n,a,s){var u=N.p;N.p=u!==0&&8>u?u:8;var g=M.T,b={};M.T=b,fc(e,!1,t,n);try{var z=s(),Z=M.S;if(Z!==null&&Z(b,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ne=D0(z,a);ro(e,t,ne,Nn(e))}else ro(e,t,a,Nn(e))}catch(se){ro(e,t,{then:function(){},status:"rejected",reason:se},Nn())}finally{N.p=u,g!==null&&b.types!==null&&(g.types=b.types),M.T=g}}function H0(){}function uc(e,t,n,a){if(e.tag!==5)throw Error(r(476));var s=ph(e).queue;gh(e,s,t,X,n===null?H0:function(){return yh(e),n(a)})}function ph(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:X},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=ph(e);t.next===null&&(t=e.alternate.memoizedState),ro(e,t.next.queue,{},Nn())}function cc(){return sn(Ro)}function vh(){return Xt().memoizedState}function bh(){return Xt().memoizedState}function V0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nn();e=Xl(n);var a=Ql(t,e,n);a!==null&&(En(a,t,n),no(a,t,n)),t={cache:Hu()},e.payload=t;return}t=t.return}}function Y0(e,t,n){var a=Nn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},kr(e)?xh(t,n):(n=Mu(e,t,n,a),n!==null&&(En(n,e,a),Eh(n,t,a)))}function Sh(e,t,n){var a=Nn();ro(e,t,n,a)}function ro(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(kr(e))xh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,b=u(g,n);if(s.hasEagerState=!0,s.eagerState=b,An(b,g))return gr(e,t,s,0),Mt===null&&hr(),!1}catch{}finally{}if(n=Mu(e,t,s,a),n!==null)return En(n,e,a),Eh(n,t,a),!0}return!1}function fc(e,t,n,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},kr(e)){if(t)throw Error(r(479))}else t=Mu(e,n,a,2),t!==null&&En(t,e,2)}function kr(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function xh(e,t){mi=Mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Pe(e,n)}}var so={readContext:sn,use:_r,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};so.useEffectEvent=Yt;var wh={readContext:sn,use:_r,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:oh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Dr(4194308,4,ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dr(4194308,4,e,t)},useInsertionEffect:function(e,t){Dr(4,2,e,t)},useMemo:function(e,t){var n=hn();t=t===void 0?null:t;var a=e();if(Oa){Ut(!0);try{e()}finally{Ut(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=hn();if(n!==void 0){var s=n(t);if(Oa){Ut(!0);try{n(t)}finally{Ut(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Y0.bind(null,Ie,e),[a.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:function(e){e=ac(e);var t=e.queue,n=Sh.bind(null,Ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rc,useDeferredValue:function(e,t){var n=hn();return sc(n,e,t)},useTransition:function(){var e=ac(!1);return e=gh.bind(null,Ie,e.queue,!0,!1),hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ie,s=hn();if(at){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Mt===null)throw Error(r(349));(nt&127)!==0||Xm(a,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,oh(Km.bind(null,a,u,e),[e]),a.flags|=2048,gi(9,{destroy:void 0},Qm.bind(null,a,u,n,t),null),n},useId:function(){var e=hn(),t=Mt.identifierPrefix;if(at){var n=al,a=ll;n=(a&~(1<<32-it(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Or++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=j0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:th,useActionState:th,useOptimistic:function(e){var t=hn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fc.bind(null,Ie,!0,n),n.dispatch=t,[e,t]},useMemoCache:tc,useCacheRefresh:function(){return hn().memoizedState=V0.bind(null,Ie)},useEffectEvent:function(e){var t=hn(),n={impl:e};return t.memoizedState=n,function(){if((vt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},dc={readContext:sn,use:_r,useCallback:dh,useContext:sn,useEffect:oc,useImperativeHandle:fh,useInsertionEffect:sh,useLayoutEffect:uh,useMemo:mh,useReducer:Nr,useRef:ih,useState:function(){return Nr(xl)},useDebugValue:rc,useDeferredValue:function(e,t){var n=Xt();return hh(n,Rt.memoizedState,e,t)},useTransition:function(){var e=Nr(xl)[0],t=Xt().memoizedState;return[typeof e=="boolean"?e:oo(e),t]},useSyncExternalStore:Gm,useId:vh,useHostTransitionStatus:cc,useFormState:nh,useActionState:nh,useOptimistic:function(e,t){var n=Xt();return Fm(n,Rt,e,t)},useMemoCache:tc,useCacheRefresh:bh};dc.useEffectEvent=rh;var Th={readContext:sn,use:_r,useCallback:dh,useContext:sn,useEffect:oc,useImperativeHandle:fh,useInsertionEffect:sh,useLayoutEffect:uh,useMemo:mh,useReducer:lc,useRef:ih,useState:function(){return lc(xl)},useDebugValue:rc,useDeferredValue:function(e,t){var n=Xt();return Rt===null?sc(n,e,t):hh(n,Rt.memoizedState,e,t)},useTransition:function(){var e=lc(xl)[0],t=Xt().memoizedState;return[typeof e=="boolean"?e:oo(e),t]},useSyncExternalStore:Gm,useId:vh,useHostTransitionStatus:cc,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var n=Xt();return Rt!==null?Fm(n,Rt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:tc,useCacheRefresh:bh};Th.useEffectEvent=rh;function mc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Nn(),s=Xl(a);s.payload=t,n!=null&&(s.callback=n),t=Ql(e,s,a),t!==null&&(En(t,e,a),no(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Nn(),s=Xl(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ql(e,s,a),t!==null&&(En(t,e,a),no(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nn(),a=Xl(n);a.tag=2,t!=null&&(a.callback=t),t=Ql(e,a,n),t!==null&&(En(t,e,n),no(t,e,n))}};function Rh(e,t,n,a,s,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,g):t.prototype&&t.prototype.isPureReactComponent?!Ii(n,a)||!Ii(s,u):!0}function Ah(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function za(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=h({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Ch(e){mr(e)}function Mh(e){console.error(e)}function Oh(e){mr(e)}function Ur(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function gc(e,t,n){return n=Xl(n),n.tag=3,n.payload={element:null},n.callback=function(){Ur(e,t)},n}function _h(e){return e=Xl(e),e.tag=3,e}function Nh(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=a.value;e.payload=function(){return s(u)},e.callback=function(){zh(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){zh(t,n,a),typeof s!="function"&&(Wl===null?Wl=new Set([this]):Wl.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function q0(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ri(t,n,s,!0),n=Mn.current,n!==null){switch(n.tag){case 31:case 13:return Qn===null?Ir():n.alternate===null&&qt===0&&(qt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===wr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Vc(e,a,s)),!1;case 22:return n.flags|=65536,a===wr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Vc(e,a,s)),!1}throw Error(r(435,n.tag))}return Vc(e,a,s),Ir(),!1}if(at)return t=Mn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==ju&&(e=Error(r(422),{cause:a}),Wi(Yn(e,n)))):(a!==ju&&(t=Error(r(423),{cause:a}),Wi(Yn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Yn(a,n),s=gc(e.stateNode,a,s),Qu(e,s),qt!==4&&(qt=2)),!1;var u=Error(r(520),{cause:a});if(u=Yn(u,n),yo===null?yo=[u]:yo.push(u),qt!==4&&(qt=2),t===null)return!0;a=Yn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=gc(n.stateNode,a,e),Qu(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wl===null||!Wl.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=_h(s),Nh(s,e,n,a),Qu(n,s),!1}n=n.return}while(n!==null);return!1}var pc=Error(r(461)),Zt=!1;function un(e,t,n,a){t.child=e===null?Um(t,null,n,a):Ma(t,e.child,n,a)}function Dh(e,t,n,a,s){n=n.render;var u=t.ref;if("ref"in a){var g={};for(var b in a)b!=="ref"&&(g[b]=a[b])}else g=a;return Ta(t),a=Wu(e,t,n,g,u,s),b=$u(),e!==null&&!Zt?(Pu(e,t,s),El(e,t,s)):(at&&b&&Nu(t),t.flags|=1,un(e,t,a,s),t.child)}function jh(e,t,n,a,s){if(e===null){var u=n.type;return typeof u=="function"&&!Ou(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,kh(e,t,u,a,s)):(e=yr(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Tc(e,s)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(g,a)&&e.ref===t.ref)return El(e,t,s)}return t.flags|=1,e=pl(u,a),e.ref=t.ref,e.return=t,t.child=e}function kh(e,t,n,a,s){if(e!==null){var u=e.memoizedProps;if(Ii(u,a)&&e.ref===t.ref)if(Zt=!1,t.pendingProps=a=u,Tc(e,s))(e.flags&131072)!==0&&(Zt=!0);else return t.lanes=e.lanes,El(e,t,s)}return yc(e,t,n,a,s)}function Uh(e,t,n,a){var s=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~u}else a=0,t.child=null;return Lh(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xr(t,u!==null?u.cachePool:null),u!==null?Hm(t,u):Zu(),Vm(t);else return a=t.lanes=536870912,Lh(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(xr(t,u.cachePool),Hm(t,u),Zl(),t.memoizedState=null):(e!==null&&xr(t,null),Zu(),Zl());return un(e,t,s,n),t.child}function uo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lh(e,t,n,a,s){var u=Yu();return u=u===null?null:{parent:Qt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&xr(t,null),Zu(),Vm(t),e!==null&&ri(e,t,a,!0),t.childLanes=s,null}function Lr(e,t){return t=Hr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bh(e,t,n){return Ma(t,e.child,null,n),e=Lr(t,t.pendingProps),e.flags|=2,On(t),t.memoizedState=null,e}function G0(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=Lr(t,a),t.lanes=536870912,uo(null,e);if(Fu(t),(e=Nt)?(e=Jg(e,Xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},n=xm(e),n.return=t,t.child=n,rn=t,Nt=null)):e=null,e===null)throw Yl(t);return t.lanes=536870912,null}return Lr(t,a)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(Fu(t),s)if(t.flags&256)t.flags&=-257,t=Bh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Zt||ri(e,t,n,!1),s=(n&e.childLanes)!==0,Zt||s){if(a=Mt,a!==null&&(g=yt(a,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,Sa(e,g),En(a,e,g),pc;Ir(),t=Bh(e,t,n)}else e=u.treeContext,Nt=Kn(g.nextSibling),rn=t,at=!0,Vl=null,Xn=!1,e!==null&&Tm(t,e),t=Lr(t,a),t.flags|=4096;return t}return e=pl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Br(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yc(e,t,n,a,s){return Ta(t),n=Wu(e,t,n,a,void 0,s),a=$u(),e!==null&&!Zt?(Pu(e,t,s),El(e,t,s)):(at&&a&&Nu(t),t.flags|=1,un(e,t,n,s),t.child)}function Hh(e,t,n,a,s,u){return Ta(t),t.updateQueue=null,n=qm(t,a,n,s),Ym(e),a=$u(),e!==null&&!Zt?(Pu(e,t,u),El(e,t,u)):(at&&a&&Nu(t),t.flags|=1,un(e,t,n,u),t.child)}function Vh(e,t,n,a,s){if(Ta(t),t.stateNode===null){var u=li,g=n.contextType;typeof g=="object"&&g!==null&&(u=sn(g)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=hc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Gu(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?sn(g):li,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(mc(t,n,g,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&hc.enqueueReplaceState(u,u.state,null),ao(t,a,u,s),lo(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,z=za(n,b);u.props=z;var Z=u.context,ne=n.contextType;g=li,typeof ne=="object"&&ne!==null&&(g=sn(ne));var se=n.getDerivedStateFromProps;ne=typeof se=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,ne||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||Z!==g)&&Ah(t,u,a,g),Gl=!1;var J=t.memoizedState;u.state=J,ao(t,a,u,s),lo(),Z=t.memoizedState,b||J!==Z||Gl?(typeof se=="function"&&(mc(t,n,se,a),Z=t.memoizedState),(z=Gl||Rh(t,n,z,a,J,Z,g))?(ne||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=Z),u.props=a,u.state=Z,u.context=g,a=z):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Xu(e,t),g=t.memoizedProps,ne=za(n,g),u.props=ne,se=t.pendingProps,J=u.context,Z=n.contextType,z=li,typeof Z=="object"&&Z!==null&&(z=sn(Z)),b=n.getDerivedStateFromProps,(Z=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==se||J!==z)&&Ah(t,u,a,z),Gl=!1,J=t.memoizedState,u.state=J,ao(t,a,u,s),lo();var ee=t.memoizedState;g!==se||J!==ee||Gl||e!==null&&e.dependencies!==null&&br(e.dependencies)?(typeof b=="function"&&(mc(t,n,b,a),ee=t.memoizedState),(ne=Gl||Rh(t,n,ne,a,J,ee,z)||e!==null&&e.dependencies!==null&&br(e.dependencies))?(Z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,ee,z),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,ee,z)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=ee),u.props=a,u.state=ee,u.context=z,a=ne):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Br(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ma(t,e.child,null,s),t.child=Ma(t,null,n,s)):un(e,t,n,s),t.memoizedState=u.state,e=t.child):e=El(e,t,s),e}function Yh(e,t,n,a){return Ea(),t.flags|=256,un(e,t,n,a),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:zm()}}function Sc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_n),e}function qh(e,t,n){var a=t.pendingProps,s=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(Gt.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(s?Kl(t):Zl(),(e=Nt)?(e=Jg(e,Xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},n=xm(e),n.return=t,t.child=n,rn=t,Nt=null)):e=null,e===null)throw Yl(t);return nf(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,s?(Zl(),s=t.mode,b=Hr({mode:"hidden",children:b},s),a=xa(a,s,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=bc(n),a.childLanes=Sc(e,g,n),t.memoizedState=vc,uo(null,a)):(Kl(t),xc(t,b))}var z=e.memoizedState;if(z!==null&&(b=z.dehydrated,b!==null)){if(u)t.flags&256?(Kl(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState!==null?(Zl(),t.child=e.child,t.flags|=128,t=null):(Zl(),b=a.fallback,s=t.mode,a=Hr({mode:"visible",children:a.children},s),b=xa(b,s,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,Ma(t,e.child,null,n),a=t.child,a.memoizedState=bc(n),a.childLanes=Sc(e,g,n),t.memoizedState=vc,t=uo(null,a));else if(Kl(t),nf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var Z=g.dgst;g=Z,a=Error(r(419)),a.stack="",a.digest=g,Wi({value:a,source:null,stack:null}),t=Ec(e,t,n)}else if(Zt||ri(e,t,n,!1),g=(n&e.childLanes)!==0,Zt||g){if(g=Mt,g!==null&&(a=yt(g,n),a!==0&&a!==z.retryLane))throw z.retryLane=a,Sa(e,a),En(g,e,a),pc;tf(b)||Ir(),t=Ec(e,t,n)}else tf(b)?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,Nt=Kn(b.nextSibling),rn=t,at=!0,Vl=null,Xn=!1,e!==null&&Tm(t,e),t=xc(t,a.children),t.flags|=4096);return t}return s?(Zl(),b=a.fallback,s=t.mode,z=e.child,Z=z.sibling,a=pl(z,{mode:"hidden",children:a.children}),a.subtreeFlags=z.subtreeFlags&65011712,Z!==null?b=pl(Z,b):(b=xa(b,s,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,uo(null,a),a=t.child,b=e.child.memoizedState,b===null?b=bc(n):(s=b.cachePool,s!==null?(z=Qt._currentValue,s=s.parent!==z?{parent:z,pool:z}:s):s=zm(),b={baseLanes:b.baseLanes|n,cachePool:s}),a.memoizedState=b,a.childLanes=Sc(e,g,n),t.memoizedState=vc,uo(e.child,a)):(Kl(t),n=e.child,e=n.sibling,n=pl(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Hr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hr(e,t){return e=Cn(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ma(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Lu(e.return,t,n)}function wc(e,t,n,a,s,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=s,g.treeForkCount=u)}function Xh(e,t,n){var a=t.pendingProps,s=a.revealOrder,u=a.tail;a=a.children;var g=Gt.current,b=(g&2)!==0;if(b?(g=g&1|2,t.flags|=128):g&=1,W(Gt,g),un(e,t,a,n),a=at?Ji:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,n,t);else if(e.tag===19)Gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Cr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),wc(t,!1,s,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Cr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}wc(t,!0,n,null,u,a);break;case"together":wc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function El(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ri(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=pl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&br(e)))}function X0(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),ql(t,Qt,e.memoizedState.cache),Ea();break;case 27:case 5:De(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:ql(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Kl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?qh(e,t,n):(Kl(t),e=El(e,t,n),e!==null?e.sibling:null);Kl(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(ri(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Xh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),W(Gt,Gt.current),a)break;return null;case 22:return t.lanes=0,Uh(e,t,n,t.pendingProps);case 24:ql(t,Qt,e.memoizedState.cache)}return El(e,t,n)}function Qh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zt=!0;else{if(!Tc(e,n)&&(t.flags&128)===0)return Zt=!1,X0(e,t,n);Zt=(e.flags&131072)!==0}else Zt=!1,at&&(t.flags&1048576)!==0&&wm(t,Ji,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Aa(t.elementType),t.type=e,typeof e=="function")Ou(e)?(a=za(e,a),t.tag=1,t=Vh(null,t,e,a,n)):(t.tag=0,t=yc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===j){t.tag=11,t=Dh(null,t,e,a,n);break e}else if(s===Y){t.tag=14,t=jh(null,t,e,a,n);break e}}throw t=ae(e)||e,Error(r(306,t,""))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=za(a,t.pendingProps),Vh(e,t,a,s,n);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;s=u.element,Xu(e,t),ao(t,a,null,n);var g=t.memoizedState;if(a=g.cache,ql(t,Qt,a),a!==u.cache&&Bu(t,[Qt],n,!0),lo(),a=g.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Yh(e,t,a,n);break e}else if(a!==s){s=Yn(Error(r(424)),t),Wi(s),t=Yh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Nt=Kn(e.firstChild),rn=t,at=!0,Vl=null,Xn=!0,n=Um(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ea(),a===s){t=El(e,t,n);break e}un(e,t,a,n)}t=t.child}return t;case 26:return Br(e,t),e===null?(n=np(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=ts(P.current).createElement(n),a[Wt]=t,a[on]=e,cn(a,n,e),nn(a),t.stateNode=a):t.memoizedState=np(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return De(t),e===null&&at&&(a=t.stateNode=Pg(t.type,t.pendingProps,P.current),rn=t,Xn=!0,s=Nt,ta(t.type)?(lf=s,Nt=Kn(a.firstChild)):Nt=s),un(e,t,t.pendingProps.children,n),Br(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&((s=a=Nt)&&(a=S1(a,t.type,t.pendingProps,Xn),a!==null?(t.stateNode=a,rn=t,Nt=Kn(a.firstChild),Xn=!1,s=!0):s=!1),s||Yl(t)),De(t),s=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,a=u.children,$c(s,u)?a=null:g!==null&&$c(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=Wu(e,t,k0,null,null,n),Ro._currentValue=s),Br(e,t),un(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=Nt)&&(n=x1(n,t.pendingProps,Xn),n!==null?(t.stateNode=n,rn=t,Nt=null,e=!0):e=!1),e||Yl(t)),null;case 13:return qh(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ma(t,null,a,n):un(e,t,a,n),t.child;case 11:return Dh(e,t,t.type,t.pendingProps,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ql(t,t.type,a.value),un(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Ta(t),s=sn(s),a=a(s),t.flags|=1,un(e,t,a,n),t.child;case 14:return jh(e,t,t.type,t.pendingProps,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 19:return Xh(e,t,n);case 31:return G0(e,t,n);case 22:return Uh(e,t,n,t.pendingProps);case 24:return Ta(t),a=sn(Qt),e===null?(s=Yu(),s===null&&(s=Mt,u=Hu(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),t.memoizedState={parent:a,cache:s},Gu(t),ql(t,Qt,s)):((e.lanes&n)!==0&&(Xu(e,t),ao(t,null,null,n),lo()),s=e.memoizedState,u=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),ql(t,Qt,a)):(a=u.cache,ql(t,Qt,a),a!==s.cache&&Bu(t,[Qt],n,!0))),un(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wl(e){e.flags|=4}function Rc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(vg())e.flags|=8192;else throw Ca=wr,qu}else e.flags&=-16777217}function Kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t))if(vg())e.flags|=8192;else throw Ca=wr,qu}function Vr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?St():536870912,e.lanes|=t,bi|=t)}function co(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Q0(e,t,n){var a=t.pendingProps;switch(Du(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bl(Qt),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oi(t)?wl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ku())),Dt(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(wl(t),u!==null?(Dt(t),Kh(t,u)):(Dt(t),Rc(t,s,null,a,n))):u?u!==e.memoizedState?(wl(t),Dt(t),Kh(t,u)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&wl(t),Dt(t),Rc(t,s,e,a,n)),null;case 27:if(we(t),n=P.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Dt(t),null}e=Q.current,oi(t)?Rm(t):(e=Pg(s,a,n),t.stateNode=e,wl(t))}return Dt(t),null;case 5:if(we(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Dt(t),null}if(u=Q.current,oi(t))Rm(t);else{var g=ts(P.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?g.createElement(s,{is:a.is}):g.createElement(s)}}u[Wt]=t,u[on]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(cn(u,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&wl(t)}}return Dt(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=P.current,oi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=rn,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[Wt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qg(e.nodeValue,n)),e||Yl(t,!0)}else e=ts(e).createTextNode(a),e[Wt]=t,t.stateNode=e}return Dt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=oi(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Wt]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else n=ku(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(On(t),t):(On(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Dt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=oi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[Wt]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),s=!1}else s=ku(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(On(t),t):(On(t),null)}return On(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vr(t,t.updateQueue),Dt(t),null);case 4:return be(),e===null&&Zc(t.stateNode.containerInfo),Dt(t),null;case 10:return bl(t.type),Dt(t),null;case 19:if(O(Gt),a=t.memoizedState,a===null)return Dt(t),null;if(s=(t.flags&128)!==0,u=a.rendering,u===null)if(s)co(a,!1);else{if(qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Cr(e),u!==null){for(t.flags|=128,co(a,!1),e=u.updateQueue,t.updateQueue=e,Vr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Sm(n,e),n=n.sibling;return W(Gt,Gt.current&1|2),at&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&xe()>Qr&&(t.flags|=128,s=!0,co(a,!1),t.lanes=4194304)}else{if(!s)if(e=Cr(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Vr(t,e),co(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!at)return Dt(t),null}else 2*xe()-a.renderingStartTime>Qr&&n!==536870912&&(t.flags|=128,s=!0,co(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=xe(),e.sibling=null,n=Gt.current,W(Gt,s?n&1|2:n&1),at&&yl(t,a.treeForkCount),e):(Dt(t),null);case 22:case 23:return On(t),Iu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),n=t.updateQueue,n!==null&&Vr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&O(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bl(Qt),Dt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function K0(e,t){switch(Du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bl(Qt),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(On(t),t.alternate===null)throw Error(r(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(On(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(Gt),null;case 4:return be(),null;case 10:return bl(t.type),null;case 22:case 23:return On(t),Iu(),e!==null&&O(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bl(Qt),null;case 25:return null;default:return null}}function Zh(e,t){switch(Du(t),t.tag){case 3:bl(Qt),be();break;case 26:case 27:case 5:we(t);break;case 4:be();break;case 31:t.memoizedState!==null&&On(t);break;case 13:On(t);break;case 19:O(Gt);break;case 10:bl(t.type);break;case 22:case 23:On(t),Iu(),e!==null&&O(Ra);break;case 24:bl(Qt)}}function fo(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var u=n.create,g=n.inst;a=u(),g.destroy=a}n=n.next}while(n!==s)}}catch(b){wt(t,t.return,b)}}function Il(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){var g=a.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,s=t;var z=n,Z=b;try{Z()}catch(ne){wt(s,z,ne)}}}a=a.next}while(a!==u)}}catch(ne){wt(t,t.return,ne)}}function Ih(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Bm(t,n)}catch(a){wt(e,e.return,a)}}}function Fh(e,t,n){n.props=za(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){wt(e,t,a)}}function mo(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){wt(e,t,s)}}function il(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){wt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){wt(e,t,s)}else n.current=null}function Jh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){wt(e,e.return,s)}}function Ac(e,t,n){try{var a=e.stateNode;h1(a,e.type,n,t),a[on]=t}catch(s){wt(e,e.return,s)}}function Wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ta(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hl));else if(a!==4&&(a===27&&ta(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Yr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ta(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yr(e,t,n),e=e.sibling;e!==null;)Yr(e,t,n),e=e.sibling}function $h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);cn(t,a,n),t[Wt]=e,t[on]=n}catch(u){wt(e,e.return,u)}}var Tl=!1,It=!1,Oc=!1,Ph=typeof WeakSet=="function"?WeakSet:Set,ln=null;function Z0(e,t){if(e=e.containerInfo,Jc=ss,e=fm(e),Eu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,b=-1,z=-1,Z=0,ne=0,se=e,J=null;t:for(;;){for(var ee;se!==n||s!==0&&se.nodeType!==3||(b=g+s),se!==u||a!==0&&se.nodeType!==3||(z=g+a),se.nodeType===3&&(g+=se.nodeValue.length),(ee=se.firstChild)!==null;)J=se,se=ee;for(;;){if(se===e)break t;if(J===n&&++Z===s&&(b=g),J===u&&++ne===a&&(z=g),(ee=se.nextSibling)!==null)break;se=J,J=se.parentNode}se=ee}n=b===-1||z===-1?null:{start:b,end:z}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wc={focusedElem:e,selectionRange:n},ss=!1,ln=t;ln!==null;)if(t=ln,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ln=e;else for(;ln!==null;){switch(t=ln,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,s=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var Ae=za(n.type,s);e=a.getSnapshotBeforeUpdate(Ae,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(Le){wt(n,n.return,Le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ef(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ln=e;break}ln=t.return}}function eg(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Al(e,n),a&4&&fo(5,n);break;case 1:if(Al(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){wt(n,n.return,g)}else{var s=za(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){wt(n,n.return,g)}}a&64&&Ih(n),a&512&&mo(n,n.return);break;case 3:if(Al(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Bm(e,t)}catch(g){wt(n,n.return,g)}}break;case 27:t===null&&a&4&&$h(n);case 26:case 5:Al(e,n),t===null&&a&4&&Jh(n),a&512&&mo(n,n.return);break;case 12:Al(e,n);break;case 31:Al(e,n),a&4&&lg(e,n);break;case 13:Al(e,n),a&4&&ag(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=n1.bind(null,n),E1(e,n))));break;case 22:if(a=n.memoizedState!==null||Tl,!a){t=t!==null&&t.memoizedState!==null||It,s=Tl;var u=It;Tl=a,(It=t)&&!u?Cl(e,n,(n.subtreeFlags&8772)!==0):Al(e,n),Tl=s,It=u}break;case 30:break;default:Al(e,n)}}function tg(e){var t=e.alternate;t!==null&&(e.alternate=null,tg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&iu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var kt=null,vn=!1;function Rl(e,t,n){for(n=n.child;n!==null;)ng(e,t,n),n=n.sibling}function ng(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(gt,n)}catch{}switch(n.tag){case 26:It||il(n,t),Rl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:It||il(n,t);var a=kt,s=vn;ta(n.type)&&(kt=n.stateNode,vn=!1),Rl(e,t,n),Eo(n.stateNode),kt=a,vn=s;break;case 5:It||il(n,t);case 6:if(a=kt,s=vn,kt=null,Rl(e,t,n),kt=a,vn=s,kt!==null)if(vn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(u){wt(n,t,u)}else try{kt.removeChild(n.stateNode)}catch(u){wt(n,t,u)}break;case 18:kt!==null&&(vn?(e=kt,Ig(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ci(e)):Ig(kt,n.stateNode));break;case 4:a=kt,s=vn,kt=n.stateNode.containerInfo,vn=!0,Rl(e,t,n),kt=a,vn=s;break;case 0:case 11:case 14:case 15:Il(2,n,t),It||Il(4,n,t),Rl(e,t,n);break;case 1:It||(il(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Fh(n,t,a)),Rl(e,t,n);break;case 21:Rl(e,t,n);break;case 22:It=(a=It)||n.memoizedState!==null,Rl(e,t,n),It=a;break;default:Rl(e,t,n)}}function lg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ci(e)}catch(n){wt(t,t.return,n)}}}function ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ci(e)}catch(n){wt(t,t.return,n)}}function I0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ph),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ph),t;default:throw Error(r(435,e.tag))}}function qr(e,t){var n=I0(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=l1.bind(null,e,a);a.then(s,s)}})}function bn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],u=e,g=t,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(ta(b.type)){kt=b.stateNode,vn=!1;break e}break;case 5:kt=b.stateNode,vn=!1;break e;case 3:case 4:kt=b.stateNode.containerInfo,vn=!0;break e}b=b.return}if(kt===null)throw Error(r(160));ng(u,g,s),kt=null,vn=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ig(t,e),t=t.sibling}var Wn=null;function ig(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bn(t,e),Sn(e),a&4&&(Il(3,e,e.return),fo(3,e),Il(5,e,e.return));break;case 1:bn(t,e),Sn(e),a&512&&(It||n===null||il(n,n.return)),a&64&&Tl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Wn;if(bn(t,e),Sn(e),a&512&&(It||n===null||il(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Hi]||u[Wt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(a),s.head.insertBefore(u,s.querySelector("head > title"))),cn(u,a,n),u[Wt]=e,nn(u),a=u;break e;case"link":var g=ip("link","href",s).get(a+(n.href||""));if(g){for(var b=0;b<g.length;b++)if(u=g[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(b,1);break t}}u=s.createElement(a),cn(u,a,n),s.head.appendChild(u);break;case"meta":if(g=ip("meta","content",s).get(a+(n.content||""))){for(b=0;b<g.length;b++)if(u=g[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(b,1);break t}}u=s.createElement(a),cn(u,a,n),s.head.appendChild(u);break;default:throw Error(r(468,a))}u[Wt]=e,nn(u),a=u}e.stateNode=a}else op(s,e.type,e.stateNode);else e.stateNode=ap(s,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?op(s,e.type,e.stateNode):ap(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ac(e,e.memoizedProps,n.memoizedProps)}break;case 27:bn(t,e),Sn(e),a&512&&(It||n===null||il(n,n.return)),n!==null&&a&4&&Ac(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bn(t,e),Sn(e),a&512&&(It||n===null||il(n,n.return)),e.flags&32){s=e.stateNode;try{Ja(s,"")}catch(Ae){wt(e,e.return,Ae)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Ac(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Oc=!0);break;case 6:if(bn(t,e),Sn(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Ae){wt(e,e.return,Ae)}}break;case 3:if(as=null,s=Wn,Wn=ns(t.containerInfo),bn(t,e),Wn=s,Sn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(Ae){wt(e,e.return,Ae)}Oc&&(Oc=!1,og(e));break;case 4:a=Wn,Wn=ns(e.stateNode.containerInfo),bn(t,e),Sn(e),Wn=a;break;case 12:bn(t,e),Sn(e);break;case 31:bn(t,e),Sn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qr(e,a)));break;case 13:bn(t,e),Sn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xr=xe()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qr(e,a)));break;case 22:s=e.memoizedState!==null;var z=n!==null&&n.memoizedState!==null,Z=Tl,ne=It;if(Tl=Z||s,It=ne||z,bn(t,e),It=ne,Tl=Z,Sn(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||z||Tl||It||_a(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){z=n=t;try{if(u=z.stateNode,s)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=z.stateNode;var se=z.memoizedProps.style,J=se!=null&&se.hasOwnProperty("display")?se.display:null;b.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Ae){wt(z,z.return,Ae)}}}else if(t.tag===6){if(n===null){z=t;try{z.stateNode.nodeValue=s?"":z.memoizedProps}catch(Ae){wt(z,z.return,Ae)}}}else if(t.tag===18){if(n===null){z=t;try{var ee=z.stateNode;s?Fg(ee,!0):Fg(z.stateNode,!1)}catch(Ae){wt(z,z.return,Ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,qr(e,n))));break;case 19:bn(t,e),Sn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qr(e,a)));break;case 30:break;case 21:break;default:bn(t,e),Sn(e)}}function Sn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Wh(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,u=Cc(e);Yr(e,u,s);break;case 5:var g=n.stateNode;n.flags&32&&(Ja(g,""),n.flags&=-33);var b=Cc(e);Yr(e,b,g);break;case 3:case 4:var z=n.stateNode.containerInfo,Z=Cc(e);Mc(e,Z,z);break;default:throw Error(r(161))}}catch(ne){wt(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function og(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;og(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Al(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)eg(e,t.alternate,t),t=t.sibling}function _a(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Il(4,t,t.return),_a(t);break;case 1:il(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Fh(t,t.return,n),_a(t);break;case 27:Eo(t.stateNode);case 26:case 5:il(t,t.return),_a(t);break;case 22:t.memoizedState===null&&_a(t);break;case 30:_a(t);break;default:_a(t)}e=e.sibling}}function Cl(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:Cl(s,u,n),fo(4,u);break;case 1:if(Cl(s,u,n),a=u,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(Z){wt(a,a.return,Z)}if(a=u,s=a.updateQueue,s!==null){var b=a.stateNode;try{var z=s.shared.hiddenCallbacks;if(z!==null)for(s.shared.hiddenCallbacks=null,s=0;s<z.length;s++)Lm(z[s],b)}catch(Z){wt(a,a.return,Z)}}n&&g&64&&Ih(u),mo(u,u.return);break;case 27:$h(u);case 26:case 5:Cl(s,u,n),n&&a===null&&g&4&&Jh(u),mo(u,u.return);break;case 12:Cl(s,u,n);break;case 31:Cl(s,u,n),n&&g&4&&lg(s,u);break;case 13:Cl(s,u,n),n&&g&4&&ag(s,u);break;case 22:u.memoizedState===null&&Cl(s,u,n),mo(u,u.return);break;case 30:break;default:Cl(s,u,n)}t=t.sibling}}function zc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$i(n))}function _c(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function $n(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rg(e,t,n,a),t=t.sibling}function rg(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:$n(e,t,n,a),s&2048&&fo(9,t);break;case 1:$n(e,t,n,a);break;case 3:$n(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(s&2048){$n(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,b=u.onPostCommit;typeof b=="function"&&b(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){wt(t,t.return,z)}}else $n(e,t,n,a);break;case 31:$n(e,t,n,a);break;case 13:$n(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?$n(e,t,n,a):ho(e,t):u._visibility&2?$n(e,t,n,a):(u._visibility|=2,pi(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&zc(g,t);break;case 24:$n(e,t,n,a),s&2048&&_c(t.alternate,t);break;default:$n(e,t,n,a)}}function pi(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,b=n,z=a,Z=g.flags;switch(g.tag){case 0:case 11:case 15:pi(u,g,b,z,s),fo(8,g);break;case 23:break;case 22:var ne=g.stateNode;g.memoizedState!==null?ne._visibility&2?pi(u,g,b,z,s):ho(u,g):(ne._visibility|=2,pi(u,g,b,z,s)),s&&Z&2048&&zc(g.alternate,g);break;case 24:pi(u,g,b,z,s),s&&Z&2048&&_c(g.alternate,g);break;default:pi(u,g,b,z,s)}t=t.sibling}}function ho(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:ho(n,a),s&2048&&zc(a.alternate,a);break;case 24:ho(n,a),s&2048&&_c(a.alternate,a);break;default:ho(n,a)}t=t.sibling}}var go=8192;function yi(e,t,n){if(e.subtreeFlags&go)for(e=e.child;e!==null;)sg(e,t,n),e=e.sibling}function sg(e,t,n){switch(e.tag){case 26:yi(e,t,n),e.flags&go&&e.memoizedState!==null&&j1(n,Wn,e.memoizedState,e.memoizedProps);break;case 5:yi(e,t,n);break;case 3:case 4:var a=Wn;Wn=ns(e.stateNode.containerInfo),yi(e,t,n),Wn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=go,go=16777216,yi(e,t,n),go=a):yi(e,t,n));break;default:yi(e,t,n)}}function ug(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function po(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ln=a,fg(a,e)}ug(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cg(e),e=e.sibling}function cg(e){switch(e.tag){case 0:case 11:case 15:po(e),e.flags&2048&&Il(9,e,e.return);break;case 3:po(e);break;case 12:po(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gr(e)):po(e);break;default:po(e)}}function Gr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ln=a,fg(a,e)}ug(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Il(8,t,t.return),Gr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gr(t));break;default:Gr(t)}e=e.sibling}}function fg(e,t){for(;ln!==null;){var n=ln;switch(n.tag){case 0:case 11:case 15:Il(8,n,t);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:$i(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ln=a;else e:for(n=e;ln!==null;){a=ln;var s=a.sibling,u=a.return;if(tg(a),a===n){ln=null;break e}if(s!==null){s.return=u,ln=s;break e}ln=u}}}var F0={getCacheForType:function(e){var t=sn(Qt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return sn(Qt).controller.signal}},J0=typeof WeakMap=="function"?WeakMap:Map,vt=0,Mt=null,et=null,nt=0,Et=0,zn=null,Fl=!1,vi=!1,Nc=!1,Ml=0,qt=0,Jl=0,Na=0,Dc=0,_n=0,bi=0,yo=null,xn=null,jc=!1,Xr=0,dg=0,Qr=1/0,Kr=null,Wl=null,$t=0,$l=null,Si=null,Ol=0,kc=0,Uc=null,mg=null,vo=0,Lc=null;function Nn(){return(vt&2)!==0&&nt!==0?nt&-nt:M.T!==null?Gc():pn()}function hg(){if(_n===0)if((nt&536870912)===0||at){var e=Ot;Ot<<=1,(Ot&3932160)===0&&(Ot=262144),_n=e}else _n=536870912;return e=Mn.current,e!==null&&(e.flags|=32),_n}function En(e,t,n){(e===Mt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xi(e,0),Pl(e,nt,_n,!1)),ft(e,n),((vt&2)===0||e!==Mt)&&(e===Mt&&((vt&2)===0&&(Na|=n),qt===4&&Pl(e,nt,_n,!1)),ol(e))}function gg(e,t,n){if((vt&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||$e(e,t),s=a?P0(e,t):Hc(e,t,!0),u=a;do{if(s===0){vi&&!a&&Pl(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!W0(n)){s=Hc(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var b=e;s=yo;var z=b.current.memoizedState.isDehydrated;if(z&&(xi(b,g).flags|=256),g=Hc(b,g,!1),g!==2){if(Nc&&!z){b.errorRecoveryDisabledLanes|=u,Na|=u,s=4;break e}u=xn,xn=s,u!==null&&(xn===null?xn=u:xn.push.apply(xn,u))}s=g}if(u=!1,s!==2)continue}}if(s===1){xi(e,0),Pl(e,t,0,!0);break}e:{switch(a=e,u=s,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Pl(a,t,_n,!Fl);break e;case 2:xn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Xr+300-xe(),10<s)){if(Pl(a,t,_n,!Fl),Te(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=Kg(pg.bind(null,a,n,xn,Kr,jc,t,_n,Na,bi,Fl,u,"Throttled",-0,0),s);break e}pg(a,n,xn,Kr,jc,t,_n,Na,bi,Fl,u,null,-0,0)}}break}while(!0);ol(e)}function pg(e,t,n,a,s,u,g,b,z,Z,ne,se,J,ee){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hl},sg(t,u,se);var Ae=(u&62914560)===u?Xr-xe():(u&4194048)===u?dg-xe():0;if(Ae=k1(se,Ae),Ae!==null){Ol=u,e.cancelPendingCommit=Ae(Tg.bind(null,e,t,u,n,a,s,g,b,z,ne,se,null,J,ee)),Pl(e,u,g,!Z);return}}Tg(e,t,u,n,a,s,g,b,z)}function W0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],u=s.getSnapshot;s=s.value;try{if(!An(u(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pl(e,t,n,a){t&=~Dc,t&=~Na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var u=31-it(s),g=1<<u;a[u]=-1,s&=~g}n!==0&&xt(e,n,t)}function Zr(){return(vt&6)===0?(bo(0),!1):!0}function Bc(){if(et!==null){if(Et===0)var e=et.return;else e=et,vl=wa=null,ec(e),fi=null,eo=0,e=et;for(;e!==null;)Zh(e.alternate,e),e=e.return;et=null}}function xi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,y1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ol=0,Bc(),Mt=e,et=n=pl(e.current,null),nt=t,Et=0,zn=null,Fl=!1,vi=$e(e,t),Nc=!1,bi=_n=Dc=Na=Jl=qt=0,xn=yo=null,jc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-it(a),u=1<<s;t|=e[s],a&=~u}return Ml=t,hr(),n}function yg(e,t){Ie=null,M.H=so,t===ci||t===Er?(t=Dm(),Et=3):t===qu?(t=Dm(),Et=4):Et=t===pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zn=t,et===null&&(qt=1,Ur(e,Yn(t,e.current)))}function vg(){var e=Mn.current;return e===null?!0:(nt&4194048)===nt?Qn===null:(nt&62914560)===nt||(nt&536870912)!==0?e===Qn:!1}function bg(){var e=M.H;return M.H=so,e===null?so:e}function Sg(){var e=M.A;return M.A=F0,e}function Ir(){qt=4,Fl||(nt&4194048)!==nt&&Mn.current!==null||(vi=!0),(Jl&134217727)===0&&(Na&134217727)===0||Mt===null||Pl(Mt,nt,_n,!1)}function Hc(e,t,n){var a=vt;vt|=2;var s=bg(),u=Sg();(Mt!==e||nt!==t)&&(Kr=null,xi(e,t)),t=!1;var g=qt;e:do try{if(Et!==0&&et!==null){var b=et,z=zn;switch(Et){case 8:Bc(),g=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(t=!0);var Z=Et;if(Et=0,zn=null,Ei(e,b,z,Z),n&&vi){g=0;break e}break;default:Z=Et,Et=0,zn=null,Ei(e,b,z,Z)}}$0(),g=qt;break}catch(ne){yg(e,ne)}while(!0);return t&&e.shellSuspendCounter++,vl=wa=null,vt=a,M.H=s,M.A=u,et===null&&(Mt=null,nt=0,hr()),g}function $0(){for(;et!==null;)xg(et)}function P0(e,t){var n=vt;vt|=2;var a=bg(),s=Sg();Mt!==e||nt!==t?(Kr=null,Qr=xe()+500,xi(e,t)):vi=$e(e,t);e:do try{if(Et!==0&&et!==null){t=et;var u=zn;t:switch(Et){case 1:Et=0,zn=null,Ei(e,t,u,1);break;case 2:case 9:if(_m(u)){Et=0,zn=null,Eg(t);break}t=function(){Et!==2&&Et!==9||Mt!==e||(Et=7),ol(e)},u.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:_m(u)?(Et=0,zn=null,Eg(t)):(Et=0,zn=null,Ei(e,t,u,7));break;case 5:var g=null;switch(et.tag){case 26:g=et.memoizedState;case 5:case 27:var b=et;if(g?rp(g):b.stateNode.complete){Et=0,zn=null;var z=b.sibling;if(z!==null)et=z;else{var Z=b.return;Z!==null?(et=Z,Fr(Z)):et=null}break t}}Et=0,zn=null,Ei(e,t,u,5);break;case 6:Et=0,zn=null,Ei(e,t,u,6);break;case 8:Bc(),qt=6;break e;default:throw Error(r(462))}}e1();break}catch(ne){yg(e,ne)}while(!0);return vl=wa=null,M.H=a,M.A=s,vt=n,et!==null?0:(Mt=null,nt=0,hr(),qt)}function e1(){for(;et!==null&&!$();)xg(et)}function xg(e){var t=Qh(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,t===null?Fr(e):et=t}function Eg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hh(n,t,t.pendingProps,t.type,void 0,nt);break;case 11:t=Hh(n,t,t.pendingProps,t.type.render,t.ref,nt);break;case 5:ec(t);default:Zh(n,t),t=et=Sm(t,Ml),t=Qh(n,t,Ml)}e.memoizedProps=e.pendingProps,t===null?Fr(e):et=t}function Ei(e,t,n,a){vl=wa=null,ec(t),fi=null,eo=0;var s=t.return;try{if(q0(e,s,t,n,nt)){qt=1,Ur(e,Yn(n,e.current)),et=null;return}}catch(u){if(s!==null)throw et=s,u;qt=1,Ur(e,Yn(n,e.current)),et=null;return}t.flags&32768?(at||a===1?e=!0:vi||(nt&536870912)!==0?e=!1:(Fl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mn.current,a!==null&&a.tag===13&&(a.flags|=16384))),wg(t,e)):Fr(t)}function Fr(e){var t=e;do{if((t.flags&32768)!==0){wg(t,Fl);return}e=t.return;var n=Q0(t.alternate,t,Ml);if(n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);qt===0&&(qt=5)}function wg(e,t){do{var n=K0(e.alternate,e);if(n!==null){n.flags&=32767,et=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){et=e;return}et=e=n}while(e!==null);qt=6,et=null}function Tg(e,t,n,a,s,u,g,b,z){e.cancelPendingCommit=null;do Jr();while($t!==0);if((vt&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Cu,je(e,n,u,g,b,z),e===Mt&&(et=Mt=null,nt=0),Si=t,$l=e,Ol=n,kc=u,Uc=s,mg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a1(Je,function(){return Og(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,s=N.p,N.p=2,g=vt,vt|=4;try{Z0(e,t,n)}finally{vt=g,N.p=s,M.T=a}}$t=1,Rg(),Ag(),Cg()}}function Rg(){if($t===1){$t=0;var e=$l,t=Si,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var a=N.p;N.p=2;var s=vt;vt|=4;try{ig(t,e);var u=Wc,g=fm(e.containerInfo),b=u.focusedElem,z=u.selectionRange;if(g!==b&&b&&b.ownerDocument&&cm(b.ownerDocument.documentElement,b)){if(z!==null&&Eu(b)){var Z=z.start,ne=z.end;if(ne===void 0&&(ne=Z),"selectionStart"in b)b.selectionStart=Z,b.selectionEnd=Math.min(ne,b.value.length);else{var se=b.ownerDocument||document,J=se&&se.defaultView||window;if(J.getSelection){var ee=J.getSelection(),Ae=b.textContent.length,Le=Math.min(z.start,Ae),Ct=z.end===void 0?Le:Math.min(z.end,Ae);!ee.extend&&Le>Ct&&(g=Ct,Ct=Le,Le=g);var V=um(b,Le),D=um(b,Ct);if(V&&D&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==D.node||ee.focusOffset!==D.offset)){var K=se.createRange();K.setStart(V.node,V.offset),ee.removeAllRanges(),Le>Ct?(ee.addRange(K),ee.extend(D.node,D.offset)):(K.setEnd(D.node,D.offset),ee.addRange(K))}}}}for(se=[],ee=b;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<se.length;b++){var ie=se[b];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}ss=!!Jc,Wc=Jc=null}finally{vt=s,N.p=a,M.T=n}}e.current=t,$t=2}}function Ag(){if($t===2){$t=0;var e=$l,t=Si,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var a=N.p;N.p=2;var s=vt;vt|=4;try{eg(e,t.alternate,t)}finally{vt=s,N.p=a,M.T=n}}$t=3}}function Cg(){if($t===4||$t===3){$t=0,re();var e=$l,t=Si,n=Ol,a=mg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$t=5:($t=0,Si=$l=null,Mg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Wl=null),Vt(n),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(gt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,s=N.p,N.p=2,M.T=null;try{for(var u=e.onRecoverableError,g=0;g<a.length;g++){var b=a[g];u(b.value,{componentStack:b.stack})}}finally{M.T=t,N.p=s}}(Ol&3)!==0&&Jr(),ol(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Lc?vo++:(vo=0,Lc=e):vo=0,bo(0)}}function Mg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Jr(){return Rg(),Ag(),Cg(),Og()}function Og(){if($t!==5)return!1;var e=$l,t=kc;kc=0;var n=Vt(Ol),a=M.T,s=N.p;try{N.p=32>n?32:n,M.T=null,n=Uc,Uc=null;var u=$l,g=Ol;if($t=0,Si=$l=null,Ol=0,(vt&6)!==0)throw Error(r(331));var b=vt;if(vt|=4,cg(u.current),rg(u,u.current,g,n),vt=b,bo(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(gt,u)}catch{}return!0}finally{N.p=s,M.T=a,Mg(e,t)}}function zg(e,t,n){t=Yn(n,t),t=gc(e.stateNode,t,2),e=Ql(e,t,2),e!==null&&(ft(e,2),ol(e))}function wt(e,t,n){if(e.tag===3)zg(e,e,n);else for(;t!==null;){if(t.tag===3){zg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Wl===null||!Wl.has(a))){e=Yn(n,e),n=_h(2),a=Ql(t,n,2),a!==null&&(Nh(n,a,t,e),ft(a,2),ol(a));break}}t=t.return}}function Vc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new J0;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Nc=!0,s.add(n),e=t1.bind(null,e,t,n),t.then(e,e))}function t1(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Mt===e&&(nt&n)===n&&(qt===4||qt===3&&(nt&62914560)===nt&&300>xe()-Xr?(vt&2)===0&&xi(e,0):Dc|=n,bi===nt&&(bi=0)),ol(e)}function _g(e,t){t===0&&(t=St()),e=Sa(e,t),e!==null&&(ft(e,t),ol(e))}function n1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_g(e,n)}function l1(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),_g(e,n)}function a1(e,t){return oe(e,t)}var Wr=null,wi=null,Yc=!1,$r=!1,qc=!1,ea=0;function ol(e){e!==wi&&e.next===null&&(wi===null?Wr=wi=e:wi=wi.next=e),$r=!0,Yc||(Yc=!0,o1())}function bo(e,t){if(!qc&&$r){qc=!0;do for(var n=!1,a=Wr;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var u=0;else{var g=a.suspendedLanes,b=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=s&~(g&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,kg(a,u))}else u=nt,u=Te(a,a===Mt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||$e(a,u)||(n=!0,kg(a,u));a=a.next}while(n);qc=!1}}function i1(){Ng()}function Ng(){$r=Yc=!1;var e=0;ea!==0&&p1()&&(e=ea);for(var t=xe(),n=null,a=Wr;a!==null;){var s=a.next,u=Dg(a,t);u===0?(a.next=null,n===null?Wr=s:n.next=s,s===null&&(wi=n)):(n=a,(e!==0||(u&3)!==0)&&($r=!0)),a=s}$t!==0&&$t!==5||bo(e),ea!==0&&(ea=0)}function Dg(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-it(u),b=1<<g,z=s[g];z===-1?((b&n)===0||(b&a)!==0)&&(s[g]=bt(b,t)):z<=t&&(e.expiredLanes|=b),u&=~b}if(t=Mt,n=nt,n=Te(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&B(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||$e(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&B(a),Vt(n)){case 2:case 8:n=ut;break;case 32:n=Je;break;case 268435456:n=Qe;break;default:n=Je}return a=jg.bind(null,e),n=oe(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&B(a),e.callbackPriority=2,e.callbackNode=null,2}function jg(e,t){if($t!==0&&$t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Jr()&&e.callbackNode!==n)return null;var a=nt;return a=Te(e,e===Mt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gg(e,a,t),Dg(e,xe()),e.callbackNode!=null&&e.callbackNode===n?jg.bind(null,e):null)}function kg(e,t){if(Jr())return null;gg(e,t,!0)}function o1(){v1(function(){(vt&6)!==0?oe(Xe,i1):Ng()})}function Gc(){if(ea===0){var e=si;e===0&&(e=ct,ct<<=1,(ct&261888)===0&&(ct=256)),ea=e}return ea}function Ug(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:or(""+e)}function Lg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function r1(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var u=Ug((s[on]||null).action),g=a.submitter;g&&(t=(t=g[on]||null)?Ug(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var b=new cr("action","action",null,a,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ea!==0){var z=g?Lg(s,g):new FormData(s);uc(n,{pending:!0,data:z,method:s.method,action:u},null,z)}}else typeof u=="function"&&(b.preventDefault(),z=g?Lg(s,g):new FormData(s),uc(n,{pending:!0,data:z,method:s.method,action:u},u,z))},currentTarget:s}]})}}for(var Xc=0;Xc<Au.length;Xc++){var Qc=Au[Xc],s1=Qc.toLowerCase(),u1=Qc[0].toUpperCase()+Qc.slice(1);Jn(s1,"on"+u1)}Jn(hm,"onAnimationEnd"),Jn(gm,"onAnimationIteration"),Jn(pm,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(R0,"onTransitionRun"),Jn(A0,"onTransitionStart"),Jn(C0,"onTransitionCancel"),Jn(ym,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="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(" "),c1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(So));function Bg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var g=a.length-1;0<=g;g--){var b=a[g],z=b.instance,Z=b.currentTarget;if(b=b.listener,z!==u&&s.isPropagationStopped())break e;u=b,s.currentTarget=Z;try{u(s)}catch(ne){mr(ne)}s.currentTarget=null,u=z}else for(g=0;g<a.length;g++){if(b=a[g],z=b.instance,Z=b.currentTarget,b=b.listener,z!==u&&s.isPropagationStopped())break e;u=b,s.currentTarget=Z;try{u(s)}catch(ne){mr(ne)}s.currentTarget=null,u=z}}}}function tt(e,t){var n=t[Xa];n===void 0&&(n=t[Xa]=new Set);var a=e+"__bubble";n.has(a)||(Hg(t,e,2,!1),n.add(a))}function Kc(e,t,n){var a=0;t&&(a|=4),Hg(n,e,a,t)}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Pr]){e[Pr]=!0,Nd.forEach(function(n){n!=="selectionchange"&&(c1.has(n)||Kc(n,!1,e),Kc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pr]||(t[Pr]=!0,Kc("selectionchange",!1,t))}}function Hg(e,t,n,a){switch(hp(t)){case 2:var s=B1;break;case 8:s=H1;break;default:s=uf}n=s.bind(null,t,n,e),s=void 0,!mu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ic(e,t,n,a,s){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var b=a.stateNode.containerInfo;if(b===s)break;if(g===4)for(g=a.return;g!==null;){var z=g.tag;if((z===3||z===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;b!==null;){if(g=Qa(b),g===null)return;if(z=g.tag,z===5||z===6||z===26||z===27){a=u=g;continue e}b=b.parentNode}}a=a.return}Xd(function(){var Z=u,ne=fu(n),se=[];e:{var J=vm.get(e);if(J!==void 0){var ee=cr,Ae=e;switch(e){case"keypress":if(sr(n)===0)break e;case"keydown":case"keyup":ee=l0;break;case"focusin":Ae="focus",ee=yu;break;case"focusout":Ae="blur",ee=yu;break;case"beforeblur":case"afterblur":ee=yu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Qb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=o0;break;case hm:case gm:case pm:ee=Ib;break;case ym:ee=s0;break;case"scroll":case"scrollend":ee=Gb;break;case"wheel":ee=c0;break;case"copy":case"cut":case"paste":ee=Jb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Fd;break;case"toggle":case"beforetoggle":ee=d0}var Le=(t&4)!==0,Ct=!Le&&(e==="scroll"||e==="scrollend"),V=Le?J!==null?J+"Capture":null:J;Le=[];for(var D=Z,K;D!==null;){var ie=D;if(K=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||K===null||V===null||(ie=Yi(D,V),ie!=null&&Le.push(xo(D,ie,K))),Ct)break;D=D.return}0<Le.length&&(J=new ee(J,Ae,null,n,ne),se.push({event:J,listeners:Le}))}}if((t&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",J&&n!==cu&&(Ae=n.relatedTarget||n.fromElement)&&(Qa(Ae)||Ae[dl]))break e;if((ee||J)&&(J=ne.window===ne?ne:(J=ne.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(Ae=n.relatedTarget||n.toElement,ee=Z,Ae=Ae?Qa(Ae):null,Ae!==null&&(Ct=f(Ae),Le=Ae.tag,Ae!==Ct||Le!==5&&Le!==27&&Le!==6)&&(Ae=null)):(ee=null,Ae=Z),ee!==Ae)){if(Le=Zd,ie="onMouseLeave",V="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Le=Fd,ie="onPointerLeave",V="onPointerEnter",D="pointer"),Ct=ee==null?J:Vi(ee),K=Ae==null?J:Vi(Ae),J=new Le(ie,D+"leave",ee,n,ne),J.target=Ct,J.relatedTarget=K,ie=null,Qa(ne)===Z&&(Le=new Le(V,D+"enter",Ae,n,ne),Le.target=K,Le.relatedTarget=Ct,ie=Le),Ct=ie,ee&&Ae)t:{for(Le=f1,V=ee,D=Ae,K=0,ie=V;ie;ie=Le(ie))K++;ie=0;for(var Ne=D;Ne;Ne=Le(Ne))ie++;for(;0<K-ie;)V=Le(V),K--;for(;0<ie-K;)D=Le(D),ie--;for(;K--;){if(V===D||D!==null&&V===D.alternate){Le=V;break t}V=Le(V),D=Le(D)}Le=null}else Le=null;ee!==null&&Vg(se,J,ee,Le,!1),Ae!==null&&Ct!==null&&Vg(se,Ct,Ae,Le,!0)}}e:{if(J=Z?Vi(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var dt=lm;else if(tm(J))if(am)dt=E0;else{dt=S0;var ze=b0}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&uu(Z.elementType)&&(dt=lm):dt=x0;if(dt&&(dt=dt(e,Z))){nm(se,dt,n,ne);break e}ze&&ze(e,J,Z),e==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&su(J,"number",J.value)}switch(ze=Z?Vi(Z):window,e){case"focusin":(tm(ze)||ze.contentEditable==="true")&&(ei=ze,wu=Z,Fi=null);break;case"focusout":Fi=wu=ei=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,dm(se,n,ne);break;case"selectionchange":if(T0)break;case"keydown":case"keyup":dm(se,n,ne)}var Fe;if(bu)e:{switch(e){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else Pa?Pd(e,n)&&(lt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(lt="onCompositionStart");lt&&(Jd&&n.locale!=="ko"&&(Pa||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Pa&&(Fe=Qd()):(Bl=ne,hu="value"in Bl?Bl.value:Bl.textContent,Pa=!0)),ze=es(Z,lt),0<ze.length&&(lt=new Id(lt,e,null,n,ne),se.push({event:lt,listeners:ze}),Fe?lt.data=Fe:(Fe=em(n),Fe!==null&&(lt.data=Fe)))),(Fe=h0?g0(e,n):p0(e,n))&&(lt=es(Z,"onBeforeInput"),0<lt.length&&(ze=new Id("onBeforeInput","beforeinput",null,n,ne),se.push({event:ze,listeners:lt}),ze.data=Fe)),r1(se,e,Z,n,ne)}Bg(se,t)})}function xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function es(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Yi(e,n),s!=null&&a.unshift(xo(e,s,u)),s=Yi(e,t),s!=null&&a.push(xo(e,s,u))),e.tag===3)return a;e=e.return}return[]}function f1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vg(e,t,n,a,s){for(var u=t._reactName,g=[];n!==null&&n!==a;){var b=n,z=b.alternate,Z=b.stateNode;if(b=b.tag,z!==null&&z===a)break;b!==5&&b!==26&&b!==27||Z===null||(z=Z,s?(Z=Yi(n,u),Z!=null&&g.unshift(xo(n,Z,z))):s||(Z=Yi(n,u),Z!=null&&g.push(xo(n,Z,z)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var d1=/\r\n?/g,m1=/\u0000|\uFFFD/g;function Yg(e){return(typeof e=="string"?e:""+e).replace(d1,`
`).replace(m1,"")}function qg(e,t){return t=Yg(t),Yg(e)===t}function At(e,t,n,a,s,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ja(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ja(e,""+a);break;case"className":ar(e,"class",a);break;case"tabIndex":ar(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ar(e,n,a);break;case"style":qd(e,a,u);break;case"data":if(t!=="object"){ar(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=or(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&At(e,t,"name",s.name,s,null),At(e,t,"formEncType",s.formEncType,s,null),At(e,t,"formMethod",s.formMethod,s,null),At(e,t,"formTarget",s.formTarget,s,null)):(At(e,t,"encType",s.encType,s,null),At(e,t,"method",s.method,s,null),At(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=or(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=hl);break;case"onScroll":a!=null&&tt("scroll",e);break;case"onScrollEnd":a!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}n=or(""+a),e.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"?e.setAttribute(n,""+a):e.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"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":tt("beforetoggle",e),tt("toggle",e),lr(e,"popover",a);break;case"xlinkActuate":ml(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ml(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ml(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ml(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ml(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ml(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ml(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ml(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ml(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":lr(e,"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=Yb.get(n)||n,lr(e,n,a))}}function Fc(e,t,n,a,s,u){switch(n){case"style":qd(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ja(e,a):(typeof a=="number"||typeof a=="bigint")&&Ja(e,""+a);break;case"onScroll":a!=null&&tt("scroll",e);break;case"onScrollEnd":a!=null&&tt("scrollend",e);break;case"onClick":a!=null&&(e.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),u=e[on]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):lr(e,n,a)}}}function cn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var a=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:At(e,t,u,g,n,null)}}s&&At(e,t,"srcSet",n.srcSet,n,null),a&&At(e,t,"src",n.src,n,null);return;case"input":tt("invalid",e);var b=u=g=s=null,z=null,Z=null;for(a in n)if(n.hasOwnProperty(a)){var ne=n[a];if(ne!=null)switch(a){case"name":s=ne;break;case"type":g=ne;break;case"checked":z=ne;break;case"defaultChecked":Z=ne;break;case"value":u=ne;break;case"defaultValue":b=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,t));break;default:At(e,t,a,ne,n,null)}}Bd(e,u,b,z,Z,g,s,!1);return;case"select":tt("invalid",e),a=g=u=null;for(s in n)if(n.hasOwnProperty(s)&&(b=n[s],b!=null))switch(s){case"value":u=b;break;case"defaultValue":g=b;break;case"multiple":a=b;default:At(e,t,s,b,n,null)}t=u,n=g,e.multiple=!!a,t!=null?Fa(e,!!a,t,!1):n!=null&&Fa(e,!!a,n,!0);return;case"textarea":tt("invalid",e),u=s=a=null;for(g in n)if(n.hasOwnProperty(g)&&(b=n[g],b!=null))switch(g){case"value":a=b;break;case"defaultValue":s=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:At(e,t,g,b,n,null)}Vd(e,a,s,u);return;case"option":for(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:At(e,t,z,a,n,null)}return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(a=0;a<So.length;a++)tt(So[a],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in n)if(n.hasOwnProperty(Z)&&(a=n[Z],a!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:At(e,t,Z,a,n,null)}return;default:if(uu(t)){for(ne in n)n.hasOwnProperty(ne)&&(a=n[ne],a!==void 0&&Fc(e,t,ne,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&At(e,t,b,a,n,null))}function h1(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,g=null,b=null,z=null,Z=null,ne=null;for(ee in n){var se=n[ee];if(n.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":z=se;default:a.hasOwnProperty(ee)||At(e,t,ee,null,a,se)}}for(var J in a){var ee=a[J];if(se=n[J],a.hasOwnProperty(J)&&(ee!=null||se!=null))switch(J){case"type":u=ee;break;case"name":s=ee;break;case"checked":Z=ee;break;case"defaultChecked":ne=ee;break;case"value":g=ee;break;case"defaultValue":b=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,t));break;default:ee!==se&&At(e,t,J,ee,a,se)}}ru(e,g,b,z,Z,ne,u,s);return;case"select":ee=g=b=J=null;for(u in n)if(z=n[u],n.hasOwnProperty(u)&&z!=null)switch(u){case"value":break;case"multiple":ee=z;default:a.hasOwnProperty(u)||At(e,t,u,null,a,z)}for(s in a)if(u=a[s],z=n[s],a.hasOwnProperty(s)&&(u!=null||z!=null))switch(s){case"value":J=u;break;case"defaultValue":b=u;break;case"multiple":g=u;default:u!==z&&At(e,t,s,u,a,z)}t=b,n=g,a=ee,J!=null?Fa(e,!!n,J,!1):!!a!=!!n&&(t!=null?Fa(e,!!n,t,!0):Fa(e,!!n,n?[]:"",!1));return;case"textarea":ee=J=null;for(b in n)if(s=n[b],n.hasOwnProperty(b)&&s!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:At(e,t,b,null,a,s)}for(g in a)if(s=a[g],u=n[g],a.hasOwnProperty(g)&&(s!=null||u!=null))switch(g){case"value":J=s;break;case"defaultValue":ee=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==u&&At(e,t,g,s,a,u)}Hd(e,J,ee);return;case"option":for(var Ae in n)if(J=n[Ae],n.hasOwnProperty(Ae)&&J!=null&&!a.hasOwnProperty(Ae))switch(Ae){case"selected":e.selected=!1;break;default:At(e,t,Ae,null,a,J)}for(z in a)if(J=a[z],ee=n[z],a.hasOwnProperty(z)&&J!==ee&&(J!=null||ee!=null))switch(z){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:At(e,t,z,J,a,ee)}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 Le in n)J=n[Le],n.hasOwnProperty(Le)&&J!=null&&!a.hasOwnProperty(Le)&&At(e,t,Le,null,a,J);for(Z in a)if(J=a[Z],ee=n[Z],a.hasOwnProperty(Z)&&J!==ee&&(J!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,t));break;default:At(e,t,Z,J,a,ee)}return;default:if(uu(t)){for(var Ct in n)J=n[Ct],n.hasOwnProperty(Ct)&&J!==void 0&&!a.hasOwnProperty(Ct)&&Fc(e,t,Ct,void 0,a,J);for(ne in a)J=a[ne],ee=n[ne],!a.hasOwnProperty(ne)||J===ee||J===void 0&&ee===void 0||Fc(e,t,ne,J,a,ee);return}}for(var V in n)J=n[V],n.hasOwnProperty(V)&&J!=null&&!a.hasOwnProperty(V)&&At(e,t,V,null,a,J);for(se in a)J=a[se],ee=n[se],!a.hasOwnProperty(se)||J===ee||J==null&&ee==null||At(e,t,se,J,a,ee)}function Gg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],u=s.transferSize,g=s.initiatorType,b=s.duration;if(u&&b&&Gg(g)){for(g=0,b=s.responseEnd,a+=1;a<n.length;a++){var z=n[a],Z=z.startTime;if(Z>b)break;var ne=z.transferSize,se=z.initiatorType;ne&&Gg(se)&&(z=z.responseEnd,g+=ne*(z<b?1:(b-Z)/(z-Z)))}if(--a,t+=8*(u+g)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Jc=null,Wc=null;function ts(e){return e.nodeType===9?e:e.ownerDocument}function Xg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $c(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pc=null;function p1(){var e=window.event;return e&&e.type==="popstate"?e===Pc?!1:(Pc=e,!0):(Pc=null,!1)}var Kg=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,Zg=typeof Promise=="function"?Promise:void 0,v1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zg<"u"?function(e){return Zg.resolve(null).then(e).catch(b1)}:Kg;function b1(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function Ig(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),Ci(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Eo(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Eo(n);for(var u=n.firstChild;u;){var g=u.nextSibling,b=u.nodeName;u[Hi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&Eo(e.ownerDocument.body);n=s}while(n);Ci(t)}function Fg(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ef(n),iu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function S1(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Hi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Kn(e.nextSibling),e===null)break}return null}function x1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Kn(e.nextSibling),e===null))return null;return e}function Jg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Kn(e.nextSibling),e===null))return null;return e}function tf(e){return e.data==="$?"||e.data==="$~"}function nf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var lf=null;function Wg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Kn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $g(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Pg(e,t,n){switch(t=ts(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Eo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);iu(e)}var Zn=new Map,ep=new Set;function ns(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zl=N.d;N.d={f:w1,r:T1,D:R1,C:A1,L:C1,m:M1,X:z1,S:O1,M:_1};function w1(){var e=zl.f(),t=Zr();return e||t}function T1(e){var t=Ka(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):zl.r(e)}var Ti=typeof document>"u"?null:document;function tp(e,t,n){var a=Ti;if(a&&typeof t=="string"&&t){var s=Hn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),ep.has(s)||(ep.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),cn(t,"link",e),nn(t),a.head.appendChild(t)))}}function R1(e){zl.D(e),tp("dns-prefetch",e,null)}function A1(e,t){zl.C(e,t),tp("preconnect",e,t)}function C1(e,t,n){zl.L(e,t,n);var a=Ti;if(a&&e&&t){var s='link[rel="preload"][as="'+Hn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Hn(n.imageSizes)+'"]')):s+='[href="'+Hn(e)+'"]';var u=s;switch(t){case"style":u=Ri(e);break;case"script":u=Ai(e)}Zn.has(u)||(e=h({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(u,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(wo(u))||t==="script"&&a.querySelector(To(u))||(t=a.createElement("link"),cn(t,"link",e),nn(t),a.head.appendChild(t)))}}function M1(e,t){zl.m(e,t);var n=Ti;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Hn(a)+'"][href="'+Hn(e)+'"]',u=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ai(e)}if(!Zn.has(u)&&(e=h({rel:"modulepreload",href:e},t),Zn.set(u,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(To(u)))return}a=n.createElement("link"),cn(a,"link",e),nn(a),n.head.appendChild(a)}}}function O1(e,t,n){zl.S(e,t,n);var a=Ti;if(a&&e){var s=Za(a).hoistableStyles,u=Ri(e);t=t||"default";var g=s.get(u);if(!g){var b={loading:0,preload:null};if(g=a.querySelector(wo(u)))b.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(u))&&af(e,n);var z=g=a.createElement("link");nn(z),cn(z,"link",e),z._p=new Promise(function(Z,ne){z.onload=Z,z.onerror=ne}),z.addEventListener("load",function(){b.loading|=1}),z.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ls(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:b},s.set(u,g)}}}function z1(e,t){zl.X(e,t);var n=Ti;if(n&&e){var a=Za(n).hoistableScripts,s=Ai(e),u=a.get(s);u||(u=n.querySelector(To(s)),u||(e=h({src:e,async:!0},t),(t=Zn.get(s))&&of(e,t),u=n.createElement("script"),nn(u),cn(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function _1(e,t){zl.M(e,t);var n=Ti;if(n&&e){var a=Za(n).hoistableScripts,s=Ai(e),u=a.get(s);u||(u=n.querySelector(To(s)),u||(e=h({src:e,async:!0,type:"module"},t),(t=Zn.get(s))&&of(e,t),u=n.createElement("script"),nn(u),cn(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function np(e,t,n,a){var s=(s=P.current)?ns(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ri(n.href),n=Za(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ri(n.href);var u=Za(s).hoistableStyles,g=u.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=s.querySelector(wo(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),u||N1(s,e,n,g.state))),t&&a===null)throw Error(r(528,""));return g}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ai(n),n=Za(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ri(e){return'href="'+Hn(e)+'"'}function wo(e){return'link[rel="stylesheet"]['+e+"]"}function lp(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function N1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),cn(t,"link",n),nn(t),e.head.appendChild(t))}function Ai(e){return'[src="'+Hn(e)+'"]'}function To(e){return"script[async]"+e}function ap(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(a)return t.instance=a,nn(a),a;var s=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nn(a),cn(a,"style",s),ls(a,n.precedence,e),t.instance=a;case"stylesheet":s=Ri(n.href);var u=e.querySelector(wo(s));if(u)return t.state.loading|=4,t.instance=u,nn(u),u;a=lp(n),(s=Zn.get(s))&&af(a,s),u=(e.ownerDocument||e).createElement("link"),nn(u);var g=u;return g._p=new Promise(function(b,z){g.onload=b,g.onerror=z}),cn(u,"link",a),t.state.loading|=4,ls(u,n.precedence,e),t.instance=u;case"script":return u=Ai(n.src),(s=e.querySelector(To(u)))?(t.instance=s,nn(s),s):(a=n,(s=Zn.get(u))&&(a=h({},n),of(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),nn(s),cn(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ls(a,n.precedence,e));return t.instance}function ls(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,u=s,g=0;g<a.length;g++){var b=a[g];if(b.dataset.precedence===t)u=b;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function of(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var as=null;function ip(e,t,n){if(as===null){var a=new Map,s=as=new Map;s.set(n,a)}else s=as,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var u=n[s];if(!(u[Hi]||u[Wt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var b=a.get(g);b?b.push(u):a.set(g,[u])}}return a}function op(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function D1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function j1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ri(a.href),u=t.querySelector(wo(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=is.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,nn(u);return}u=t.ownerDocument||t,a=lp(a),(s=Zn.get(s))&&af(a,s),u=u.createElement("link"),nn(u);var g=u;g._p=new Promise(function(b,z){g.onload=b,g.onerror=z}),cn(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=is.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var rf=0;function k1(e,t){return e.stylesheets&&e.count===0&&rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&rf===0&&(rf=62500*g1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>rf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function is(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var os=null;function rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,os=new Map,t.forEach(U1,e),os=null,is.call(e))}function U1(e,t){if(!(t.state.loading&4)){var n=os.get(e);if(n)var a=n.get(null);else{n=new Map,os.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var g=s[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}s=t.instance,g=s.getAttribute("data-precedence"),u=n.get(g)||a,u===a&&n.set(null,s),n.set(g,s),this.count++,a=is.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ro={$$typeof:k,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function L1(e,t,n,a,s,u,g,b,z){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tn(0),this.hiddenUpdates=tn(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function sp(e,t,n,a,s,u,g,b,z,Z,ne,se){return e=new L1(e,t,n,g,z,Z,ne,se,b),t=1,u===!0&&(t|=24),u=Cn(3,null,null,t),e.current=u,u.stateNode=e,t=Hu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},Gu(u),e}function up(e){return e?(e=li,e):li}function cp(e,t,n,a,s,u){s=up(s),a.context===null?a.context=s:a.pendingContext=s,a=Xl(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=Ql(e,a,t),n!==null&&(En(n,e,t),no(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sf(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&En(t,e,67108864),sf(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=Nn();t=Ht(t);var n=Sa(e,t);n!==null&&En(n,e,t),sf(e,t)}}var ss=!0;function B1(e,t,n,a){var s=M.T;M.T=null;var u=N.p;try{N.p=2,uf(e,t,n,a)}finally{N.p=u,M.T=s}}function H1(e,t,n,a){var s=M.T;M.T=null;var u=N.p;try{N.p=8,uf(e,t,n,a)}finally{N.p=u,M.T=s}}function uf(e,t,n,a){if(ss){var s=cf(a);if(s===null)Ic(e,t,a,us,n),gp(e,a);else if(Y1(s,e,t,n,a))a.stopPropagation();else if(gp(e,a),t&4&&-1<V1.indexOf(e)){for(;s!==null;){var u=Ka(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=_t(u.pendingLanes);if(g!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var z=1<<31-it(g);b.entanglements[1]|=z,g&=~z}ol(u),(vt&6)===0&&(Qr=xe()+500,bo(0))}}break;case 31:case 13:b=Sa(u,2),b!==null&&En(b,u,2),Zr(),sf(u,2)}if(u=cf(a),u===null&&Ic(e,t,a,us,n),u===s)break;s=u}s!==null&&a.stopPropagation()}else Ic(e,t,a,null,n)}}function cf(e){return e=fu(e),ff(e)}var us=null;function ff(e){if(us=null,e=Qa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return us=e,null}function hp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ue()){case Xe:return 2;case ut:return 8;case Je:case ke:return 32;case Qe:return 268435456;default:return 32}default:return 32}}var df=!1,na=null,la=null,aa=null,Ao=new Map,Co=new Map,ia=[],V1="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 gp(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":Ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(t.pointerId)}}function Mo(e,t,n,a,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Ka(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Y1(e,t,n,a,s){switch(t){case"focusin":return na=Mo(na,e,t,n,a,s),!0;case"dragenter":return la=Mo(la,e,t,n,a,s),!0;case"mouseover":return aa=Mo(aa,e,t,n,a,s),!0;case"pointerover":var u=s.pointerId;return Ao.set(u,Mo(Ao.get(u)||null,e,t,n,a,s)),!0;case"gotpointercapture":return u=s.pointerId,Co.set(u,Mo(Co.get(u)||null,e,t,n,a,s)),!0}return!1}function pp(e){var t=Qa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,nr(e.priority,function(){mp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,nr(e.priority,function(){mp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);cu=a,n.target.dispatchEvent(a),cu=null}else return t=Ka(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function yp(e,t,n){cs(e)&&n.delete(t)}function q1(){df=!1,na!==null&&cs(na)&&(na=null),la!==null&&cs(la)&&(la=null),aa!==null&&cs(aa)&&(aa=null),Ao.forEach(yp),Co.forEach(yp)}function fs(e,t){e.blockedOn===t&&(e.blockedOn=null,df||(df=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,q1)))}var ds=null;function vp(e){ds!==e&&(ds=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){ds===e&&(ds=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(ff(a||n)===null)continue;break}var u=Ka(n);u!==null&&(e.splice(t,3),t-=3,uc(u,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Ci(e){function t(z){return fs(z,e)}na!==null&&fs(na,e),la!==null&&fs(la,e),aa!==null&&fs(aa,e),Ao.forEach(t),Co.forEach(t);for(var n=0;n<ia.length;n++){var a=ia[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)pp(n),n.blockedOn===null&&ia.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],u=n[a+1],g=s[on]||null;if(typeof u=="function")g||vp(n);else if(g){var b=null;if(u&&u.hasAttribute("formAction")){if(s=u,g=u[on]||null)b=g.formAction;else if(ff(s)!==null)continue}else b=g.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),vp(n)}}}function bp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function mf(e){this._internalRoot=e}ms.prototype.render=mf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Nn();cp(n,a,e,t,null,null)},ms.prototype.unmount=mf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cp(e.current,2,null,e,null,null),Zr(),t[dl]=null}};function ms(e){this._internalRoot=e}ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=pn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ia.length&&t!==0&&t<ia[n].priority;n++);ia.splice(n,0,e),n===0&&pp(e)}};var Sp=i.version;if(Sp!=="19.2.4")throw Error(r(527,Sp,"19.2.4"));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var G1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{gt=hs.inject(G1),pt=hs}catch{}}return zo.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",s=Ch,u=Mh,g=Oh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=sp(e,1,!1,null,null,n,a,null,s,u,g,bp),e[dl]=t.current,Zc(e),new mf(t)},zo.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,s="",u=Ch,g=Mh,b=Oh,z=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(z=n.formState)),t=sp(e,1,!0,t,n??null,a,s,z,u,g,b,bp),t.context=up(null),n=t.current,a=Nn(),a=Ht(a),s=Xl(a),s.callback=null,Ql(n,s,a),n=a,t.current.lanes=n,ft(t,n),ol(t),e[dl]=t.current,Zc(e),new ms(t)},zo.version="19.2.4",zo}var zp;function tS(){if(zp)return pf.exports;zp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),pf.exports=eS(),pf.exports}var nS=tS(),lS=(l,i,o,r,c,f,d,p)=>{let y=document.documentElement,m=["light","dark"];function v(w){(Array.isArray(l)?l:[l]).forEach(E=>{let R=E==="class",C=R&&f?c.map(T=>f[T]||T):c;R?(y.classList.remove(...C),y.classList.add(f&&f[w]?f[w]:w)):y.setAttribute(E,w)}),h(w)}function h(w){p&&m.includes(w)&&(y.style.colorScheme=w)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)v(r);else try{let w=localStorage.getItem(i)||o,E=d&&w==="system"?x():w;v(E)}catch{}},aS=S.createContext(void 0),iS={setTheme:l=>{},themes:[]},oS=()=>{var l;return(l=S.useContext(aS))!=null?l:iS};S.memo(({forcedTheme:l,storageKey:i,attribute:o,enableSystem:r,enableColorScheme:c,defaultTheme:f,value:d,themes:p,nonce:y,scriptProps:m})=>{let v=JSON.stringify([o,i,f,l,p,d,r,c]).slice(1,-1);return S.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?y:"",dangerouslySetInnerHTML:{__html:`(${lS.toString()})(${v})`}})});var Ya=Vy();const rS=By(Ya);function sS(l){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",i.appendChild(o),o.styleSheet?o.styleSheet.cssText=l:o.appendChild(document.createTextNode(l))}const uS=l=>{switch(l){case"success":return dS;case"info":return hS;case"warning":return mS;case"error":return gS;default:return null}},cS=Array(12).fill(0),fS=({visible:l,className:i})=>ve.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":l},ve.createElement("div",{className:"sonner-spinner"},cS.map((o,r)=>ve.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dS=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),mS=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ve.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"})),hS=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),gS=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.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"})),pS=ve.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"},ve.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ve.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),yS=()=>{const[l,i]=ve.useState(document.hidden);return ve.useEffect(()=>{const o=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),l};let Gf=1;class vS{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const o=this.subscribers.indexOf(i);this.subscribers.splice(o,1)}),this.publish=i=>{this.subscribers.forEach(o=>o(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var o;const{message:r,...c}=i,f=typeof(i==null?void 0:i.id)=="number"||((o=i.id)==null?void 0:o.length)>0?i.id:Gf++,d=this.toasts.find(y=>y.id===f),p=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(y=>y.id===f?(this.publish({...y,...i,id:f,title:r}),{...y,...i,id:f,dismissible:p,title:r}):y):this.addToast({title:r,...c,dismissible:p,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:i,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(r=>r({id:o.id,dismiss:!0}))}),i),this.message=(i,o)=>this.create({...o,message:i}),this.error=(i,o)=>this.create({...o,message:i,type:"error"}),this.success=(i,o)=>this.create({...o,type:"success",message:i}),this.info=(i,o)=>this.create({...o,type:"info",message:i}),this.warning=(i,o)=>this.create({...o,type:"warning",message:i}),this.loading=(i,o)=>this.create({...o,type:"loading",message:i}),this.promise=(i,o)=>{if(!o)return;let r;o.loading!==void 0&&(r=this.create({...o,promise:i,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=r!==void 0,d;const p=c.then(async m=>{if(d=["resolve",m],ve.isValidElement(m))f=!1,this.create({id:r,type:"default",message:m});else if(SS(m)&&!m.ok){f=!1;const h=typeof o.error=="function"?await o.error(`HTTP error! status: ${m.status}`):o.error,x=typeof o.description=="function"?await o.description(`HTTP error! status: ${m.status}`):o.description,E=typeof h=="object"&&!ve.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:x,...E})}else if(m instanceof Error){f=!1;const h=typeof o.error=="function"?await o.error(m):o.error,x=typeof o.description=="function"?await o.description(m):o.description,E=typeof h=="object"&&!ve.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:x,...E})}else if(o.success!==void 0){f=!1;const h=typeof o.success=="function"?await o.success(m):o.success,x=typeof o.description=="function"?await o.description(m):o.description,E=typeof h=="object"&&!ve.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:x,...E})}}).catch(async m=>{if(d=["reject",m],o.error!==void 0){f=!1;const v=typeof o.error=="function"?await o.error(m):o.error,h=typeof o.description=="function"?await o.description(m):o.description,w=typeof v=="object"&&!ve.isValidElement(v)?v:{message:v};this.create({id:r,type:"error",description:h,...w})}}).finally(()=>{f&&(this.dismiss(r),r=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((m,v)=>p.then(()=>d[0]==="reject"?v(d[1]):m(d[1])).catch(v));return typeof r!="string"&&typeof r!="number"?{unwrap:y}:Object.assign(r,{unwrap:y})},this.custom=(i,o)=>{const r=(o==null?void 0:o.id)||Gf++;return this.create({jsx:i(r),id:r,...o}),r},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const wn=new vS,bS=(l,i)=>{const o=(i==null?void 0:i.id)||Gf++;return wn.addToast({title:l,...i,id:o}),o},SS=l=>l&&typeof l=="object"&&"ok"in l&&typeof l.ok=="boolean"&&"status"in l&&typeof l.status=="number",xS=bS,ES=()=>wn.toasts,wS=()=>wn.getActiveToasts(),Oi=Object.assign(xS,{success:wn.success,info:wn.info,warning:wn.warning,error:wn.error,custom:wn.custom,message:wn.message,promise:wn.promise,dismiss:wn.dismiss,loading:wn.loading},{getHistory:ES,getToasts:wS});sS("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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 gs(l){return l.label!==void 0}const TS=3,RS="24px",AS="16px",_p=4e3,CS=356,MS=14,OS=45,zS=200;function rl(...l){return l.filter(Boolean).join(" ")}function _S(l){const[i,o]=l.split("-"),r=[];return i&&r.push(i),o&&r.push(o),r}const NS=l=>{var i,o,r,c,f,d,p,y,m;const{invert:v,toast:h,unstyled:x,interacting:w,setHeights:E,visibleToasts:R,heights:C,index:T,toasts:U,expanded:k,removeToast:j,defaultRichColors:L,closeButton:G,style:Y,cancelButtonStyle:_,actionButtonStyle:le,className:ge="",descriptionClassName:me="",duration:ue,position:F,gap:ae,expandByDefault:he,classNames:M,icons:N,closeButtonAriaLabel:X="Close toast"}=l,[I,q]=ve.useState(null),[A,O]=ve.useState(null),[W,Q]=ve.useState(!1),[te,P]=ve.useState(!1),[de,ce]=ve.useState(!1),[be,De]=ve.useState(!1),[we,Ye]=ve.useState(!1),[Se,pe]=ve.useState(0),[Re,Ge]=ve.useState(0),ye=ve.useRef(h.duration||ue||_p),Ee=ve.useRef(null),fe=ve.useRef(null),oe=T===0,B=T+1<=R,$=h.type,re=h.dismissible!==!1,xe=h.className||"",Ue=h.descriptionClassName||"",Xe=ve.useMemo(()=>C.findIndex(Te=>Te.toastId===h.id)||0,[C,h.id]),ut=ve.useMemo(()=>{var Te;return(Te=h.closeButton)!=null?Te:G},[h.closeButton,G]),Je=ve.useMemo(()=>h.duration||ue||_p,[h.duration,ue]),ke=ve.useRef(0),Qe=ve.useRef(0),He=ve.useRef(0),rt=ve.useRef(null),[gt,pt]=F.split("-"),Ut=ve.useMemo(()=>C.reduce((Te,$e,bt)=>bt>=Xe?Te:Te+$e.height,0),[C,Xe]),it=yS(),ot=h.invert||v,Tt=$==="loading";Qe.current=ve.useMemo(()=>Xe*ae+Ut,[Xe,Ut]),ve.useEffect(()=>{ye.current=Je},[Je]),ve.useEffect(()=>{Q(!0)},[]),ve.useEffect(()=>{const Te=fe.current;if(Te){const $e=Te.getBoundingClientRect().height;return Ge($e),E(bt=>[{toastId:h.id,height:$e,position:h.position},...bt]),()=>E(bt=>bt.filter(St=>St.toastId!==h.id))}},[E,h.id]),ve.useLayoutEffect(()=>{if(!W)return;const Te=fe.current,$e=Te.style.height;Te.style.height="auto";const bt=Te.getBoundingClientRect().height;Te.style.height=$e,Ge(bt),E(St=>St.find(ft=>ft.toastId===h.id)?St.map(ft=>ft.toastId===h.id?{...ft,height:bt}:ft):[{toastId:h.id,height:bt,position:h.position},...St])},[W,h.title,h.description,E,h.id,h.jsx,h.action,h.cancel]);const qe=ve.useCallback(()=>{P(!0),pe(Qe.current),E(Te=>Te.filter($e=>$e.toastId!==h.id)),setTimeout(()=>{j(h)},zS)},[h,j,E,Qe]);ve.useEffect(()=>{if(h.promise&&$==="loading"||h.duration===1/0||h.type==="loading")return;let Te;return k||w||it?(()=>{if(He.current<ke.current){const St=new Date().getTime()-ke.current;ye.current=ye.current-St}He.current=new Date().getTime()})():(()=>{ye.current!==1/0&&(ke.current=new Date().getTime(),Te=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),qe()},ye.current))})(),()=>clearTimeout(Te)},[k,w,h,$,it,qe]),ve.useEffect(()=>{h.delete&&(qe(),h.onDismiss==null||h.onDismiss.call(h,h))},[qe,h.delete]);function ct(){var Te;if(N!=null&&N.loading){var $e;return ve.createElement("div",{className:rl(M==null?void 0:M.loader,h==null||($e=h.classNames)==null?void 0:$e.loader,"sonner-loader"),"data-visible":$==="loading"},N.loading)}return ve.createElement(fS,{className:rl(M==null?void 0:M.loader,h==null||(Te=h.classNames)==null?void 0:Te.loader),visible:$==="loading"})}const Ot=h.icon||(N==null?void 0:N[$])||uS($);var st,_t;return ve.createElement("li",{tabIndex:0,ref:fe,className:rl(ge,xe,M==null?void 0:M.toast,h==null||(i=h.classNames)==null?void 0:i.toast,M==null?void 0:M.default,M==null?void 0:M[$],h==null||(o=h.classNames)==null?void 0:o[$]),"data-sonner-toast":"","data-rich-colors":(st=h.richColors)!=null?st:L,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":W,"data-promise":!!h.promise,"data-swiped":we,"data-removed":te,"data-visible":B,"data-y-position":gt,"data-x-position":pt,"data-index":T,"data-front":oe,"data-swiping":de,"data-dismissible":re,"data-type":$,"data-invert":ot,"data-swipe-out":be,"data-swipe-direction":A,"data-expanded":!!(k||he&&W),"data-testid":h.testId,style:{"--index":T,"--toasts-before":T,"--z-index":U.length-T,"--offset":`${te?Se:Qe.current}px`,"--initial-height":he?"auto":`${Re}px`,...Y,...h.style},onDragEnd:()=>{ce(!1),q(null),rt.current=null},onPointerDown:Te=>{Te.button!==2&&(Tt||!re||(Ee.current=new Date,pe(Qe.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(ce(!0),rt.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,$e,bt;if(be||!re)return;rt.current=null;const St=Number(((Te=fe.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number((($e=fe.current)==null?void 0:$e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ft=new Date().getTime()-((bt=Ee.current)==null?void 0:bt.getTime()),je=I==="x"?St:tn,xt=Math.abs(je)/ft;if(Math.abs(je)>=OS||xt>.11){pe(Qe.current),h.onDismiss==null||h.onDismiss.call(h,h),O(I==="x"?St>0?"right":"left":tn>0?"down":"up"),qe(),De(!0);return}else{var Pe,yt;(Pe=fe.current)==null||Pe.style.setProperty("--swipe-amount-x","0px"),(yt=fe.current)==null||yt.style.setProperty("--swipe-amount-y","0px")}Ye(!1),ce(!1),q(null)},onPointerMove:Te=>{var $e,bt,St;if(!rt.current||!re||(($e=window.getSelection())==null?void 0:$e.toString().length)>0)return;const ft=Te.clientY-rt.current.y,je=Te.clientX-rt.current.x;var xt;const Pe=(xt=l.swipeDirections)!=null?xt:_S(F);!I&&(Math.abs(je)>1||Math.abs(ft)>1)&&q(Math.abs(je)>Math.abs(ft)?"x":"y");let yt={x:0,y:0};const Ht=Vt=>1/(1.5+Math.abs(Vt)/20);if(I==="y"){if(Pe.includes("top")||Pe.includes("bottom"))if(Pe.includes("top")&&ft<0||Pe.includes("bottom")&&ft>0)yt.y=ft;else{const Vt=ft*Ht(ft);yt.y=Math.abs(Vt)<Math.abs(ft)?Vt:ft}}else if(I==="x"&&(Pe.includes("left")||Pe.includes("right")))if(Pe.includes("left")&&je<0||Pe.includes("right")&&je>0)yt.x=je;else{const Vt=je*Ht(je);yt.x=Math.abs(Vt)<Math.abs(je)?Vt:je}(Math.abs(yt.x)>0||Math.abs(yt.y)>0)&&Ye(!0),(bt=fe.current)==null||bt.style.setProperty("--swipe-amount-x",`${yt.x}px`),(St=fe.current)==null||St.style.setProperty("--swipe-amount-y",`${yt.y}px`)}},ut&&!h.jsx&&$!=="loading"?ve.createElement("button",{"aria-label":X,"data-disabled":Tt,"data-close-button":!0,onClick:Tt||!re?()=>{}:()=>{qe(),h.onDismiss==null||h.onDismiss.call(h,h)},className:rl(M==null?void 0:M.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(_t=N==null?void 0:N.close)!=null?_t:pS):null,($||h.icon||h.promise)&&h.icon!==null&&((N==null?void 0:N[$])!==null||h.icon)?ve.createElement("div",{"data-icon":"",className:rl(M==null?void 0:M.icon,h==null||(c=h.classNames)==null?void 0:c.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||ct():null,h.type!=="loading"?Ot:null):null,ve.createElement("div",{"data-content":"",className:rl(M==null?void 0:M.content,h==null||(f=h.classNames)==null?void 0:f.content)},ve.createElement("div",{"data-title":"",className:rl(M==null?void 0:M.title,h==null||(d=h.classNames)==null?void 0:d.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?ve.createElement("div",{"data-description":"",className:rl(me,Ue,M==null?void 0:M.description,h==null||(p=h.classNames)==null?void 0:p.description)},typeof h.description=="function"?h.description():h.description):null),ve.isValidElement(h.cancel)?h.cancel:h.cancel&&gs(h.cancel)?ve.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||_,onClick:Te=>{gs(h.cancel)&&re&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Te),qe())},className:rl(M==null?void 0:M.cancelButton,h==null||(y=h.classNames)==null?void 0:y.cancelButton)},h.cancel.label):null,ve.isValidElement(h.action)?h.action:h.action&&gs(h.action)?ve.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||le,onClick:Te=>{gs(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Te),!Te.defaultPrevented&&qe())},className:rl(M==null?void 0:M.actionButton,h==null||(m=h.classNames)==null?void 0:m.actionButton)},h.action.label):null)};function Np(){if(typeof window>"u"||typeof document>"u")return"ltr";const l=document.documentElement.getAttribute("dir");return l==="auto"||!l?window.getComputedStyle(document.documentElement).direction:l}function DS(l,i){const o={};return[l,i].forEach((r,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",p=f?AS:RS;function y(m){["top","right","bottom","left"].forEach(v=>{o[`${d}-${v}`]=typeof m=="number"?`${m}px`:m})}typeof r=="number"||typeof r=="string"?y(r):typeof r=="object"?["top","right","bottom","left"].forEach(m=>{r[m]===void 0?o[`${d}-${m}`]=p:o[`${d}-${m}`]=typeof r[m]=="number"?`${r[m]}px`:r[m]}):y(p)}),o}const jS=ve.forwardRef(function(i,o){const{id:r,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:y,className:m,offset:v,mobileOffset:h,theme:x="light",richColors:w,duration:E,style:R,visibleToasts:C=TS,toastOptions:T,dir:U=Np(),gap:k=MS,icons:j,containerAriaLabel:L="Notifications"}=i,[G,Y]=ve.useState([]),_=ve.useMemo(()=>r?G.filter(W=>W.toasterId===r):G.filter(W=>!W.toasterId),[G,r]),le=ve.useMemo(()=>Array.from(new Set([f].concat(_.filter(W=>W.position).map(W=>W.position)))),[_,f]),[ge,me]=ve.useState([]),[ue,F]=ve.useState(!1),[ae,he]=ve.useState(!1),[M,N]=ve.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=ve.useRef(null),I=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),q=ve.useRef(null),A=ve.useRef(!1),O=ve.useCallback(W=>{Y(Q=>{var te;return(te=Q.find(P=>P.id===W.id))!=null&&te.delete||wn.dismiss(W.id),Q.filter(({id:P})=>P!==W.id)})},[]);return ve.useEffect(()=>wn.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{Y(Q=>Q.map(te=>te.id===W.id?{...te,delete:!0}:te))});return}setTimeout(()=>{rS.flushSync(()=>{Y(Q=>{const te=Q.findIndex(P=>P.id===W.id);return te!==-1?[...Q.slice(0,te),{...Q[te],...W},...Q.slice(te+1)]:[W,...Q]})})})}),[G]),ve.useEffect(()=>{if(x!=="system"){N(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:Q})=>{N(Q?"dark":"light")})}catch{W.addListener(({matches:te})=>{try{N(te?"dark":"light")}catch(P){console.error(P)}})}},[x]),ve.useEffect(()=>{G.length<=1&&F(!1)},[G]),ve.useEffect(()=>{const W=Q=>{var te;if(d.every(ce=>Q[ce]||Q.code===ce)){var de;F(!0),(de=X.current)==null||de.focus()}Q.code==="Escape"&&(document.activeElement===X.current||(te=X.current)!=null&&te.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[d]),ve.useEffect(()=>{if(X.current)return()=>{q.current&&(q.current.focus({preventScroll:!0}),q.current=null,A.current=!1)}},[X.current]),ve.createElement("section",{ref:o,"aria-label":`${L} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((W,Q)=>{var te;const[P,de]=W.split("-");return _.length?ve.createElement("ol",{key:W,dir:U==="auto"?Np():U,tabIndex:-1,ref:X,className:m,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":P,"data-x-position":de,style:{"--front-toast-height":`${((te=ge[0])==null?void 0:te.height)||0}px`,"--width":`${CS}px`,"--gap":`${k}px`,...R,...DS(v,h)},onBlur:ce=>{A.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(A.current=!1,q.current&&(q.current.focus({preventScroll:!0}),q.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||A.current||(A.current=!0,q.current=ce.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{ae||F(!1)},onDragEnd:()=>F(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||he(!0)},onPointerUp:()=>he(!1)},_.filter(ce=>!ce.position&&Q===0||ce.position===W).map((ce,be)=>{var De,we;return ve.createElement(NS,{key:ce.id,icons:j,index:be,toast:ce,defaultRichColors:w,duration:(De=T==null?void 0:T.duration)!=null?De:E,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:c,visibleToasts:C,closeButton:(we=T==null?void 0:T.closeButton)!=null?we:y,interacting:ae,position:W,style:T==null?void 0:T.style,unstyled:T==null?void 0:T.unstyled,classNames:T==null?void 0:T.classNames,cancelButtonStyle:T==null?void 0:T.cancelButtonStyle,actionButtonStyle:T==null?void 0:T.actionButtonStyle,closeButtonAriaLabel:T==null?void 0:T.closeButtonAriaLabel,removeToast:O,toasts:_.filter(Ye=>Ye.position==ce.position),heights:ge.filter(Ye=>Ye.position==ce.position),setHeights:me,expandByDefault:p,gap:k,expanded:ue,swipeDirections:i.swipeDirections})})):null}))});/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yy=(...l)=>l.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const US=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,r)=>r?r.toUpperCase():o.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dp=l=>{const i=US(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var LS={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.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BS=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HS=S.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...p},y)=>S.createElement("svg",{ref:y,...LS,width:i,height:i,stroke:l,strokeWidth:r?Number(o)*24/Number(i):o,className:Yy("lucide",c),...!f&&!BS(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,v])=>S.createElement(m,v)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ll=(l,i)=>{const o=S.forwardRef(({className:r,...c},f)=>S.createElement(HS,{ref:f,iconNode:i,className:Yy(`lucide-${kS(Dp(l))}`,`lucide-${l}`,r),...c}));return o.displayName=Dp(l),o};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qy=Ll("check",VS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gy=Ll("chevron-down",YS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],GS=Ll("chevron-up",qS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],QS=Ll("circle-check",XS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ZS=Ll("info",KS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],FS=Ll("loader-circle",IS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JS=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],WS=Ll("octagon-x",JS);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $S=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],PS=Ll("triangle-alert",$S);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ex=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tx=Ll("x",ex),nx=({...l})=>{const{theme:i="system"}=oS();return H.jsx(jS,{theme:i,className:"toaster group",icons:{success:H.jsx(QS,{className:"size-4"}),info:H.jsx(ZS,{className:"size-4"}),warning:H.jsx(PS,{className:"size-4"}),error:H.jsx(WS,{className:"size-4"}),loading:H.jsx(FS,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...l})};function Qs(){return typeof window<"u"}function da(l){return rd(l)?(l.nodeName||"").toLowerCase():"#document"}function en(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function cl(l){var i;return(i=(rd(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function rd(l){return Qs()?l instanceof Node||l instanceof en(l).Node:!1}function Bt(l){return Qs()?l instanceof Element||l instanceof en(l).Element:!1}function Ft(l){return Qs()?l instanceof HTMLElement||l instanceof en(l).HTMLElement:!1}function Vo(l){return!Qs()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof en(l).ShadowRoot}function ma(l){const{overflow:i,overflowX:o,overflowY:r,display:c}=Ln(l);return/auto|scroll|overlay|hidden|clip/.test(i+r+o)&&c!=="inline"&&c!=="contents"}function lx(l){return/^(table|td|th)$/.test(da(l))}function Ks(l){try{if(l.matches(":popover-open"))return!0}catch{}try{return l.matches(":modal")}catch{return!1}}const ax=/transform|translate|scale|rotate|perspective|filter/,ix=/paint|layout|strict|content/,Da=l=>!!l&&l!=="none";let Sf;function sd(l){const i=Bt(l)?Ln(l):l;return Da(i.transform)||Da(i.translate)||Da(i.scale)||Da(i.rotate)||Da(i.perspective)||!Zs()&&(Da(i.backdropFilter)||Da(i.filter))||ax.test(i.willChange||"")||ix.test(i.contain||"")}function ox(l){let i=kl(l);for(;Ft(i)&&!jl(i);){if(sd(i))return i;if(Ks(i))return null;i=kl(i)}return null}function Zs(){return Sf==null&&(Sf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sf}function jl(l){return/^(html|body|#document)$/.test(da(l))}function Ln(l){return en(l).getComputedStyle(l)}function Is(l){return Bt(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function kl(l){if(da(l)==="html")return l;const i=l.assignedSlot||l.parentNode||Vo(l)&&l.host||cl(l);return Vo(i)?i.host:i}function Xy(l){const i=kl(l);return jl(i)?l.ownerDocument?l.ownerDocument.body:l.body:Ft(i)&&ma(i)?i:Xy(i)}function Yo(l,i,o){var r;i===void 0&&(i=[]),o===void 0&&(o=!0);const c=Xy(l),f=c===((r=l.ownerDocument)==null?void 0:r.body),d=en(c);if(f){const p=Xf(d);return i.concat(d,d.visualViewport||[],ma(c)?c:[],p&&o?Yo(p):[])}else return i.concat(c,Yo(c,[],o))}function Xf(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}const jp={};function Rn(l,i){const o=S.useRef(jp);return o.current===jp&&(o.current=l(i)),o}const xf=Hy[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],rx=xf&&xf!==S.useLayoutEffect?xf:l=>l();function Ze(l){const i=Rn(sx).current;return i.next=l,rx(i.effect),i.trampoline}function sx(){const l={next:void 0,callback:ux,trampoline:(...i)=>{var o;return(o=l.callback)==null?void 0:o.call(l,...i)},effect:()=>{l.callback=l.next}};return l}function ux(){}const cx={...Hy},fx=()=>{},Oe=typeof document<"u"?S.useLayoutEffect:fx;function Qf(l,i){if(l&&!i)return l;if(!l&&i)return i;if(l||i)return{...l,...i}}const Uo={};function Ui(l,i,o,r,c){let f={...Kf(l,Uo)};return i&&(f=jo(f,i)),o&&(f=jo(f,o)),r&&(f=jo(f,r)),c&&(f=jo(f,c)),f}function dx(l){if(l.length===0)return Uo;if(l.length===1)return Kf(l[0],Uo);let i={...Kf(l[0],Uo)};for(let o=1;o<l.length;o+=1)i=jo(i,l[o]);return i}function jo(l,i){return Qy(i)?i(l):mx(l,i)}function mx(l,i){if(!i)return l;for(const o in i){const r=i[o];switch(o){case"style":{l[o]=Qf(l.style,r);break}case"className":{l[o]=Ky(l.className,r);break}default:hx(o,r)?l[o]=gx(l[o],r):l[o]=r}}return l}function hx(l,i){const o=l.charCodeAt(0),r=l.charCodeAt(1),c=l.charCodeAt(2);return o===111&&r===110&&c>=65&&c<=90&&(typeof i=="function"||typeof i>"u")}function Qy(l){return typeof l=="function"}function Kf(l,i){return Qy(l)?l(i):l??Uo}function gx(l,i){return i?l?o=>{if(px(o)){const c=o;Zf(c);const f=i(c);return c.baseUIHandlerPrevented||l==null||l(c),f}const r=i(o);return l==null||l(o),r}:i:l}function Zf(l){return l.preventBaseUIHandler=()=>{l.baseUIHandlerPrevented=!0},l}function Ky(l,i){return i?l?i+" "+l:i:l}function px(l){return l!=null&&typeof l=="object"&&"nativeEvent"in l}function yx(l,i){return function(r,...c){const f=new URL(l);return f.searchParams.set("code",r.toString()),c.forEach(d=>f.searchParams.append("args[]",d)),`${i} error #${r}; visit ${f} for the full message.`}}const Fn=yx("https://base-ui.com/production-error","Base UI"),vx=S.createContext(void 0);function bx(l=!1){const i=S.useContext(vx);if(i===void 0&&!l)throw new Error(Fn(16));return i}function Sx(l){const{focusableWhenDisabled:i,disabled:o,composite:r=!1,tabIndex:c=0,isNativeButton:f}=l,d=r&&i!==!1,p=r&&i===!1;return{props:S.useMemo(()=>{const m={onKeyDown(v){o&&i&&v.key!=="Tab"&&v.preventDefault()}};return r||(m.tabIndex=c,!f&&o&&(m.tabIndex=i?c:-1)),(f&&(i||d)||!f&&o)&&(m["aria-disabled"]=o),f&&(!i||p)&&(m.disabled=o),m},[r,o,i,d,p,f,c])}}function Io(l={}){const{disabled:i=!1,focusableWhenDisabled:o,tabIndex:r=0,native:c=!0,composite:f}=l,d=S.useRef(null),p=bx(!0),y=f??p!==void 0,{props:m}=Sx({focusableWhenDisabled:o,disabled:i,composite:y,tabIndex:r,isNativeButton:c}),v=S.useCallback(()=>{const w=d.current;Ef(w)&&y&&i&&m.disabled===void 0&&w.disabled&&(w.disabled=!1)},[i,m.disabled,y]);Oe(v,[v]);const h=S.useCallback((w={})=>{const{onClick:E,onMouseDown:R,onKeyUp:C,onKeyDown:T,onPointerDown:U,...k}=w;return Ui({type:c?"button":void 0,onClick(L){if(i){L.preventDefault();return}E==null||E(L)},onMouseDown(L){i||R==null||R(L)},onKeyDown(L){if(i||(Zf(L),T==null||T(L),L.baseUIHandlerPrevented))return;const G=L.target===L.currentTarget,Y=L.currentTarget,_=Ef(Y),le=!c&&xx(Y),ge=G&&(c?_:!le),me=L.key==="Enter",ue=L.key===" ",F=Y.getAttribute("role"),ae=(F==null?void 0:F.startsWith("menuitem"))||F==="option"||F==="gridcell";if(G&&y&&ue){if(L.defaultPrevented&&ae)return;L.preventDefault(),le||c&&_?(Y.click(),L.preventBaseUIHandler()):ge&&(E==null||E(L),L.preventBaseUIHandler());return}ge&&(!c&&(ue||me)&&L.preventDefault(),!c&&me&&(E==null||E(L)))},onKeyUp(L){if(!i){if(Zf(L),C==null||C(L),L.target===L.currentTarget&&c&&y&&Ef(L.currentTarget)&&L.key===" "){L.preventDefault();return}L.baseUIHandlerPrevented||L.target===L.currentTarget&&!c&&!y&&L.key===" "&&(E==null||E(L))}},onPointerDown(L){if(i){L.preventDefault();return}U==null||U(L)}},c?void 0:{role:"button"},m,k)},[i,m,y,c]),x=Ze(w=>{d.current=w,v()});return{getButtonProps:h,buttonRef:x}}function Ef(l){return Ft(l)&&l.tagName==="BUTTON"}function xx(l){return!!((l==null?void 0:l.tagName)==="A"&&(l!=null&&l.href))}function Ba(l,i,o,r){const c=Rn(Zy).current;return wx(c,l,i,o,r)&&Iy(c,[l,i,o,r]),c.callback}function Ex(l){const i=Rn(Zy).current;return Tx(i,l)&&Iy(i,l),i.callback}function Zy(){return{callback:null,cleanup:null,refs:[]}}function wx(l,i,o,r,c){return l.refs[0]!==i||l.refs[1]!==o||l.refs[2]!==r||l.refs[3]!==c}function Tx(l,i){return l.refs.length!==i.length||l.refs.some((o,r)=>o!==i[r])}function Iy(l,i){if(l.refs=i,i.every(o=>o==null)){l.callback=null;return}l.callback=o=>{if(l.cleanup&&(l.cleanup(),l.cleanup=null),o!=null){const r=Array(i.length).fill(null);for(let c=0;c<i.length;c+=1){const f=i[c];if(f!=null)switch(typeof f){case"function":{const d=f(o);typeof d=="function"&&(r[c]=d);break}case"object":{f.current=o;break}}}l.cleanup=()=>{for(let c=0;c<i.length;c+=1){const f=i[c];if(f!=null)switch(typeof f){case"function":{const d=r[c];typeof d=="function"?d():f(null);break}case"object":{f.current=null;break}}}}}}}const Rx=parseInt(S.version,10);function ud(l){return Rx>=l}function kp(l){if(!S.isValidElement(l))return null;const i=l,o=i.props;return(ud(19)?o==null?void 0:o.ref:i.ref)??null}function Ax(l,i){const o={};for(const r in l){const c=l[r];if(i!=null&&i.hasOwnProperty(r)){const f=i[r](c);f!=null&&Object.assign(o,f);continue}c===!0?o[`data-${r.toLowerCase()}`]="":c&&(o[`data-${r.toLowerCase()}`]=c.toString())}return o}function Cx(l,i){return typeof l=="function"?l(i):l}function Mx(l,i){return typeof l=="function"?l(i):l}function dn(){}const Up=Object.freeze([]),an=Object.freeze({}),Ox={style:{transition:"none"}},zx="data-base-ui-click-trigger",_x={fallbackAxisSide:"none"},Nx={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Jt(l,i,o={}){const r=i.render,c=Dx(i,o);if(o.enabled===!1)return null;const f=o.state??an;return kx(l,r,c,f)}function Dx(l,i={}){const{className:o,style:r,render:c}=l,{state:f=an,ref:d,props:p,stateAttributesMapping:y,enabled:m=!0}=i,v=m?Cx(o,f):void 0,h=m?Mx(r,f):void 0,x=m?Ax(f,y):an,w=m?Qf(x,Array.isArray(p)?dx(p):p)??an:an;return typeof document<"u"&&(m?Array.isArray(d)?w.ref=Ex([w.ref,kp(c),...d]):w.ref=Ba(w.ref,kp(c),d):Ba(null,null)),m?(v!==void 0&&(w.className=Ky(w.className,v)),h!==void 0&&(w.style=Qf(w.style,h)),w):an}const jx=Symbol.for("react.lazy");function kx(l,i,o,r){if(i){if(typeof i=="function")return i(o,r);const c=Ui(o,i.props);c.ref=o.ref;let f=i;return(f==null?void 0:f.$$typeof)===jx&&(f=S.Children.toArray(i)[0]),S.cloneElement(f,c)}if(l&&typeof l=="string")return Ux(l,o);throw new Error(Fn(8))}function Ux(l,i){return l==="button"?S.createElement("button",{type:"button",...i,key:i.key}):l==="img"?S.createElement("img",{alt:"",...i,key:i.key}):S.createElement(l,i)}const Lx=S.forwardRef(function(i,o){const{render:r,className:c,disabled:f=!1,focusableWhenDisabled:d=!1,nativeButton:p=!0,...y}=i,{getButtonProps:m,buttonRef:v}=Io({disabled:f,focusableWhenDisabled:d,native:p});return Jt("button",i,{state:{disabled:f},ref:[o,v],props:[y,m]})});function Fy(l){var i,o,r="";if(typeof l=="string"||typeof l=="number")r+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(o=Fy(l[i]))&&(r&&(r+=" "),r+=o)}else for(o in l)l[o]&&(r&&(r+=" "),r+=o);return r}function Jy(){for(var l,i,o=0,r="",c=arguments.length;o<c;o++)(l=arguments[o])&&(i=Fy(l))&&(r&&(r+=" "),r+=i);return r}const Lp=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Bp=Jy,Wy=(l,i)=>o=>{var r;if((i==null?void 0:i.variants)==null)return Bp(l,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const v=o==null?void 0:o[m],h=f==null?void 0:f[m];if(v===null)return null;const x=Lp(v)||Lp(h);return c[m][x]}),p=o&&Object.entries(o).reduce((m,v)=>{let[h,x]=v;return x===void 0||(m[h]=x),m},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((m,v)=>{let{class:h,className:x,...w}=v;return Object.entries(w).every(E=>{let[R,C]=E;return Array.isArray(C)?C.includes({...f,...p}[R]):{...f,...p}[R]===C})?[...m,h,x]:m},[]);return Bp(l,d,y,o==null?void 0:o.class,o==null?void 0:o.className)},Bx=(l,i)=>{const o=new Array(l.length+i.length);for(let r=0;r<l.length;r++)o[r]=l[r];for(let r=0;r<i.length;r++)o[l.length+r]=i[r];return o},Hx=(l,i)=>({classGroupId:l,validator:i}),$y=(l=new Map,i=null,o)=>({nextPart:l,validators:i,classGroupId:o}),_s="-",Hp=[],Vx="arbitrary..",Yx=l=>{const i=Gx(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=l;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return qx(d);const p=d.split(_s),y=p[0]===""&&p.length>1?1:0;return Py(p,y,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const y=r[d],m=o[d];return y?m?Bx(m,y):y:m||Hp}return o[d]||Hp}}},Py=(l,i,o)=>{if(l.length-i===0)return o.classGroupId;const c=l[i],f=o.nextPart.get(c);if(f){const m=Py(l,i+1,f);if(m)return m}const d=o.validators;if(d===null)return;const p=i===0?l.join(_s):l.slice(i).join(_s),y=d.length;for(let m=0;m<y;m++){const v=d[m];if(v.validator(p))return v.classGroupId}},qx=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),o=i.indexOf(":"),r=i.slice(0,o);return r?Vx+r:void 0})(),Gx=l=>{const{theme:i,classGroups:o}=l;return Xx(o,i)},Xx=(l,i)=>{const o=$y();for(const r in l){const c=l[r];cd(c,o,r,i)}return o},cd=(l,i,o,r)=>{const c=l.length;for(let f=0;f<c;f++){const d=l[f];Qx(d,i,o,r)}},Qx=(l,i,o,r)=>{if(typeof l=="string"){Kx(l,i,o);return}if(typeof l=="function"){Zx(l,i,o,r);return}Ix(l,i,o,r)},Kx=(l,i,o)=>{const r=l===""?i:ev(i,l);r.classGroupId=o},Zx=(l,i,o,r)=>{if(Fx(l)){cd(l(r),i,o,r);return}i.validators===null&&(i.validators=[]),i.validators.push(Hx(o,l))},Ix=(l,i,o,r)=>{const c=Object.entries(l),f=c.length;for(let d=0;d<f;d++){const[p,y]=c[d];cd(y,ev(i,p),o,r)}},ev=(l,i)=>{let o=l;const r=i.split(_s),c=r.length;for(let f=0;f<c;f++){const d=r[f];let p=o.nextPart.get(d);p||(p=$y(),o.nextPart.set(d,p)),o=p}return o},Fx=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,Jx=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,o=Object.create(null),r=Object.create(null);const c=(f,d)=>{o[f]=d,i++,i>l&&(i=0,r=o,o=Object.create(null))};return{get(f){let d=o[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return c(f,d),d},set(f,d){f in o?o[f]=d:c(f,d)}}},If="!",Vp=":",Wx=[],Yp=(l,i,o,r,c)=>({modifiers:l,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:r,isExternal:c}),$x=l=>{const{prefix:i,experimentalParseClassName:o}=l;let r=c=>{const f=[];let d=0,p=0,y=0,m;const v=c.length;for(let R=0;R<v;R++){const C=c[R];if(d===0&&p===0){if(C===Vp){f.push(c.slice(y,R)),y=R+1;continue}if(C==="/"){m=R;continue}}C==="["?d++:C==="]"?d--:C==="("?p++:C===")"&&p--}const h=f.length===0?c:c.slice(y);let x=h,w=!1;h.endsWith(If)?(x=h.slice(0,-1),w=!0):h.startsWith(If)&&(x=h.slice(1),w=!0);const E=m&&m>y?m-y:void 0;return Yp(f,w,x,E)};if(i){const c=i+Vp,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):Yp(Wx,!1,d,void 0,!0)}if(o){const c=r;r=f=>o({className:f,parseClassName:c})}return r},Px=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((o,r)=>{i.set(o,1e6+r)}),o=>{const r=[];let c=[];for(let f=0;f<o.length;f++){const d=o[f],p=d[0]==="[",y=i.has(d);p||y?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(d)):c.push(d)}return c.length>0&&(c.sort(),r.push(...c)),r}},eE=l=>({cache:Jx(l.cacheSize),parseClassName:$x(l),sortModifiers:Px(l),...Yx(l)}),tE=/\s+/,nE=(l,i)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],p=l.trim().split(tE);let y="";for(let m=p.length-1;m>=0;m-=1){const v=p[m],{isExternal:h,modifiers:x,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:R}=o(v);if(h){y=v+(y.length>0?" "+y:y);continue}let C=!!R,T=r(C?E.substring(0,R):E);if(!T){if(!C){y=v+(y.length>0?" "+y:y);continue}if(T=r(E),!T){y=v+(y.length>0?" "+y:y);continue}C=!1}const U=x.length===0?"":x.length===1?x[0]:f(x).join(":"),k=w?U+If:U,j=k+T;if(d.indexOf(j)>-1)continue;d.push(j);const L=c(T,C);for(let G=0;G<L.length;++G){const Y=L[G];d.push(k+Y)}y=v+(y.length>0?" "+y:y)}return y},lE=(...l)=>{let i=0,o,r,c="";for(;i<l.length;)(o=l[i++])&&(r=tv(o))&&(c&&(c+=" "),c+=r);return c},tv=l=>{if(typeof l=="string")return l;let i,o="";for(let r=0;r<l.length;r++)l[r]&&(i=tv(l[r]))&&(o&&(o+=" "),o+=i);return o},aE=(l,...i)=>{let o,r,c,f;const d=y=>{const m=i.reduce((v,h)=>h(v),l());return o=eE(m),r=o.cache.get,c=o.cache.set,f=p,p(y)},p=y=>{const m=r(y);if(m)return m;const v=nE(y,o);return c(y,v),v};return f=d,(...y)=>f(lE(...y))},iE=[],Pt=l=>{const i=o=>o[l]||iE;return i.isThemeGetter=!0,i},nv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sE=/\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$/,uE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ra=l=>oE.test(l),We=l=>!!l&&!Number.isNaN(Number(l)),sa=l=>!!l&&Number.isInteger(Number(l)),wf=l=>l.endsWith("%")&&We(l.slice(0,-1)),_l=l=>rE.test(l),av=()=>!0,dE=l=>sE.test(l)&&!uE.test(l),fd=()=>!1,mE=l=>cE.test(l),hE=l=>fE.test(l),gE=l=>!Ce(l)&&!Me(l),pE=l=>ha(l,rv,fd),Ce=l=>nv.test(l),ja=l=>ha(l,sv,dE),qp=l=>ha(l,TE,We),yE=l=>ha(l,cv,av),vE=l=>ha(l,uv,fd),Gp=l=>ha(l,iv,fd),bE=l=>ha(l,ov,hE),ps=l=>ha(l,fv,mE),Me=l=>lv.test(l),_o=l=>qa(l,sv),SE=l=>qa(l,uv),Xp=l=>qa(l,iv),xE=l=>qa(l,rv),EE=l=>qa(l,ov),ys=l=>qa(l,fv,!0),wE=l=>qa(l,cv,!0),ha=(l,i,o)=>{const r=nv.exec(l);return r?r[1]?i(r[1]):o(r[2]):!1},qa=(l,i,o=!1)=>{const r=lv.exec(l);return r?r[1]?i(r[1]):o:!1},iv=l=>l==="position"||l==="percentage",ov=l=>l==="image"||l==="url",rv=l=>l==="length"||l==="size"||l==="bg-size",sv=l=>l==="length",TE=l=>l==="number",uv=l=>l==="family-name",cv=l=>l==="number"||l==="weight",fv=l=>l==="shadow",RE=()=>{const l=Pt("color"),i=Pt("font"),o=Pt("text"),r=Pt("font-weight"),c=Pt("tracking"),f=Pt("leading"),d=Pt("breakpoint"),p=Pt("container"),y=Pt("spacing"),m=Pt("radius"),v=Pt("shadow"),h=Pt("inset-shadow"),x=Pt("text-shadow"),w=Pt("drop-shadow"),E=Pt("blur"),R=Pt("perspective"),C=Pt("aspect"),T=Pt("ease"),U=Pt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...j(),Me,Ce],G=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],_=()=>[Me,Ce,y],le=()=>[ra,"full","auto",..._()],ge=()=>[sa,"none","subgrid",Me,Ce],me=()=>["auto",{span:["full",sa,Me,Ce]},sa,Me,Ce],ue=()=>[sa,"auto",Me,Ce],F=()=>["auto","min","max","fr",Me,Ce],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",..._()],N=()=>[ra,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],X=()=>[ra,"screen","full","dvw","lvw","svw","min","max","fit",..._()],I=()=>[ra,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],q=()=>[l,Me,Ce],A=()=>[...j(),Xp,Gp,{position:[Me,Ce]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",xE,pE,{size:[Me,Ce]}],Q=()=>[wf,_o,ja],te=()=>["","none","full",m,Me,Ce],P=()=>["",We,_o,ja],de=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[We,wf,Xp,Gp],De=()=>["","none",E,Me,Ce],we=()=>["none",We,Me,Ce],Ye=()=>["none",We,Me,Ce],Se=()=>[We,Me,Ce],pe=()=>[ra,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_l],breakpoint:[_l],color:[av],container:[_l],"drop-shadow":[_l],ease:["in","out","in-out"],font:[gE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_l],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_l],shadow:[_l],spacing:["px",We],text:[_l],"text-shadow":[_l],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ra,Ce,Me,C]}],container:["container"],columns:[{columns:[We,Ce,Me,p]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[sa,"auto",Me,Ce]}],basis:[{basis:[ra,"full","auto",p,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ra,"auto","initial","none",Ce]}],grow:[{grow:["",We,Me,Ce]}],shrink:[{shrink:["",We,Me,Ce]}],order:[{order:[sa,"first","last","none",Me,Ce]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[p,"screen",...N()]}],"min-w":[{"min-w":[p,"screen","none",...N()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",o,_o,ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,wE,yE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wf,Ce]}],"font-family":[{font:[SE,vE,i]}],"font-features":[{"font-features":[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,Me,Ce]}],"line-clamp":[{"line-clamp":[We,"none",Me,qp]}],leading:[{leading:[f,..._()]}],"list-image":[{"list-image":["none",Me,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Me,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Me,ja]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[We,"auto",Me,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Me,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sa,Me,Ce],radial:["",Me,Ce],conic:[sa,Me,Ce]},EE,bE]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-bs":[{"border-bs":q()}],"border-color-be":[{"border-be":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Me,Ce]}],"outline-w":[{outline:["",We,_o,ja]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",v,ys,ps]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",h,ys,ps]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[We,ja]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",x,ys,ps]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[We,Me,Ce]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[Me,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Me,Ce]}],filter:[{filter:["","none",Me,Ce]}],blur:[{blur:De()}],brightness:[{brightness:[We,Me,Ce]}],contrast:[{contrast:[We,Me,Ce]}],"drop-shadow":[{"drop-shadow":["","none",w,ys,ps]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",We,Me,Ce]}],"hue-rotate":[{"hue-rotate":[We,Me,Ce]}],invert:[{invert:["",We,Me,Ce]}],saturate:[{saturate:[We,Me,Ce]}],sepia:[{sepia:["",We,Me,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",Me,Ce]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[We,Me,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[We,Me,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Me,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Me,Ce]}],"backdrop-invert":[{"backdrop-invert":["",We,Me,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[We,Me,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[We,Me,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Me,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Me,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Me,Ce]}],ease:[{ease:["linear","initial",T,Me,Ce]}],delay:[{delay:[We,Me,Ce]}],animate:[{animate:["none",U,Me,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,Me,Ce]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[Me,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",Me,Ce]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[We,_o,ja,qp]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},AE=aE(RE);function mn(...l){return AE(Jy(l))}const CE=Wy("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function qo({className:l,variant:i="default",size:o="default",...r}){return H.jsx(Lx,{"data-slot":"button",className:mn(CE({variant:i,size:o,className:l})),...r})}let Qp=(function(l){return l.disabled="data-disabled",l.valid="data-valid",l.invalid="data-invalid",l.touched="data-touched",l.dirty="data-dirty",l.filled="data-filled",l.focused="data-focused",l})({});const ME={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ko={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},OE={disabled:!1,...ko},Fs={valid(l){return l===null?null:l?{[Qp.valid]:""}:{[Qp.invalid]:""}}},zE=S.createContext({invalid:void 0,name:void 0,validityData:{state:ME,errors:[],error:"",value:"",initialValue:null},setValidityData:dn,disabled:void 0,touched:ko.touched,setTouched:dn,dirty:ko.dirty,setDirty:dn,filled:ko.filled,setFilled:dn,focused:ko.focused,setFocused:dn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:OE,markedDirtyRef:{current:!1},validation:{getValidationProps:(l=an)=>l,getInputValidationProps:(l=an)=>l,inputRef:{current:null},commit:async()=>{}}});function Fo(l=!0){const i=S.useContext(zE);if(i.setValidityData===dn&&!l)throw new Error(Fn(28));return i}const _E=S.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:dn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function dd(){return S.useContext(_E)}let Kp=0;function NE(l,i="mui"){const[o,r]=S.useState(l),c=l||o;return S.useEffect(()=>{o==null&&(Kp+=1,r(`${i}-${Kp}`))},[o,i]),c}const Zp=cx.useId;function Jo(l,i){if(Zp!==void 0){const o=Zp();return l??(i?`${i}-${o}`:o)}return NE(l,i)}function Go(l){return Jo(l,"base-ui")}const DE=S.createContext({controlId:void 0,registerControlId:dn,labelId:void 0,setLabelId:dn,messageIds:[],setMessageIds:dn,getDescriptionProps:l=>l});function Js(){return S.useContext(DE)}const jE=[];function dv(l){S.useEffect(l,jE)}const No=0;class Ha{constructor(){Lt(this,"currentId",No);Lt(this,"clear",()=>{this.currentId!==No&&(clearTimeout(this.currentId),this.currentId=No)});Lt(this,"disposeEffect",()=>this.clear)}static create(){return new Ha}start(i,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=No,o()},i)}isStarted(){return this.currentId!==No}}function kn(){const l=Rn(Ha.create).current;return dv(l.disposeEffect),l}function kE(l,i){return{...l,state:{...l.state,valid:!i&&l.state.valid}}}function jt(l){return(l==null?void 0:l.ownerDocument)||document}const Li=typeof navigator<"u",Tf=BE(),mv=VE(),hv=HE(),md=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),gv=Tf.platform==="MacIntel"&&Tf.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Tf.platform),UE=Li&&/apple/i.test(navigator.vendor),Ff=Li&&/android/i.test(mv)||/android/i.test(hv);Li&&mv.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const LE=hv.includes("jsdom/");function BE(){if(!Li)return{platform:"",maxTouchPoints:-1};const l=navigator.userAgentData;return l!=null&&l.platform?{platform:l.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function HE(){if(!Li)return"";const l=navigator.userAgentData;return l&&Array.isArray(l.brands)?l.brands.map(({brand:i,version:o})=>`${i}/${o}`).join(" "):navigator.userAgent}function VE(){if(!Li)return"";const l=navigator.userAgentData;return l!=null&&l.platform?l.platform:navigator.platform??""}const Jf="data-base-ui-focusable",pv="active",yv="selected",YE="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ca="ArrowLeft",fa="ArrowRight",hd="ArrowUp",Wo="ArrowDown";function el(l){var o;let i=l.activeElement;for(;((o=i==null?void 0:i.shadowRoot)==null?void 0:o.activeElement)!=null;)i=i.shadowRoot.activeElement;return i}function ht(l,i){var r;if(!l||!i)return!1;const o=(r=i.getRootNode)==null?void 0:r.call(i);if(l.contains(i))return!0;if(o&&Vo(o)){let c=i;for(;c;){if(l===c)return!0;c=c.parentNode||c.host}}return!1}function tl(l){return"composedPath"in l?l.composedPath()[0]:l.target}function Pn(l,i){if(i==null)return!1;if("composedPath"in l)return l.composedPath().includes(i);const o=l;return o.target!=null&&i.contains(o.target)}function qE(l){return l.matches("html,body")}function gd(l){return Ft(l)&&l.matches(YE)}function Wf(l){return l?l.getAttribute("role")==="combobox"&&gd(l):!1}function Xo(l){return l?l.hasAttribute(Jf)?l:l.querySelector(`[${Jf}]`)||l:null}function zi(l,i,o=!0){return l.filter(c=>{var f;return c.parentId===i&&(!o||((f=c.context)==null?void 0:f.open))}).flatMap(c=>[c,...zi(l,c.id,o)])}function Ip(l,i){var c;let o=[],r=(c=l.find(f=>f.id===i))==null?void 0:c.parentId;for(;r;){const f=l.find(d=>d.id===r);r=f==null?void 0:f.parentId,f&&(o=o.concat(f))}return o}function Dn(l){l.preventDefault(),l.stopPropagation()}function GE(l){return"nativeEvent"in l}function vv(l){return l.pointerType===""&&l.isTrusted?!0:Ff&&l.pointerType?l.type==="click"&&l.buttons===1:l.detail===0&&!l.pointerType}function bv(l){return LE?!1:!Ff&&l.width===0&&l.height===0||Ff&&l.width===1&&l.height===1&&l.pressure===0&&l.detail===0&&l.pointerType==="mouse"||l.width<1&&l.height<1&&l.pressure===0&&l.detail===0&&l.pointerType==="touch"}function Fp(l,i){return["mouse","pen"].includes(l)}function Sv(l){const i=l.type;return i==="click"||i==="mousedown"||i==="keydown"||i==="keyup"}const XE=["top","right","bottom","left"],Di=Math.min,jn=Math.max,Ns=Math.round,Ua=Math.floor,ul=l=>({x:l,y:l}),QE={left:"right",right:"left",bottom:"top",top:"bottom"};function $f(l,i,o){return jn(l,Di(i,o))}function Ul(l,i){return typeof l=="function"?l(i):l}function Un(l){return l.split("-")[0]}function ga(l){return l.split("-")[1]}function pd(l){return l==="x"?"y":"x"}function yd(l){return l==="y"?"height":"width"}function In(l){const i=l[0];return i==="t"||i==="b"?"y":"x"}function vd(l){return pd(In(l))}function KE(l,i,o){o===void 0&&(o=!1);const r=ga(l),c=vd(l),f=yd(c);let d=c==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=Ds(d)),[d,Ds(d)]}function ZE(l){const i=Ds(l);return[Pf(l),i,Pf(i)]}function Pf(l){return l.includes("start")?l.replace("start","end"):l.replace("end","start")}const Jp=["left","right"],Wp=["right","left"],IE=["top","bottom"],FE=["bottom","top"];function JE(l,i,o){switch(l){case"top":case"bottom":return o?i?Wp:Jp:i?Jp:Wp;case"left":case"right":return i?IE:FE;default:return[]}}function WE(l,i,o,r){const c=ga(l);let f=JE(Un(l),o==="start",r);return c&&(f=f.map(d=>d+"-"+c),i&&(f=f.concat(f.map(Pf)))),f}function Ds(l){const i=Un(l);return QE[i]+l.slice(i.length)}function $E(l){return{top:0,right:0,bottom:0,left:0,...l}}function xv(l){return typeof l!="number"?$E(l):{top:l,right:l,bottom:l,left:l}}function Qo(l){const{x:i,y:o,width:r,height:c}=l;return{width:r,height:c,top:o,left:i,right:i+r,bottom:o+c,x:i,y:o}}function vs(l,i,o){return Math.floor(l/i)!==o}function js(l,i){return i<0||i>=l.current.length}function Rf(l,i){return gn(l,{disabledIndices:i})}function $p(l,i){return gn(l,{decrement:!0,startingIndex:l.current.length,disabledIndices:i})}function gn(l,{startingIndex:i=-1,decrement:o=!1,disabledIndices:r,amount:c=1}={}){let f=i;do f+=o?-c:c;while(f>=0&&f<=l.current.length-1&&_i(l,f,r));return f}function PE(l,{event:i,orientation:o,loopFocus:r,rtl:c,cols:f,disabledIndices:d,minIndex:p,maxIndex:y,prevIndex:m,stopEvent:v=!1}){let h=m,x;if(i.key===hd?x="up":i.key===Wo&&(x="down"),x){const w=[],E=[];let R=!1,C=0;{let _=null,le=-1;l.current.forEach((ge,me)=>{if(ge==null)return;C+=1;const ue=ge.closest('[role="row"]');ue&&(R=!0),(ue!==_||le===-1)&&(_=ue,le+=1,w[le]=[]),w[le].push(me),E[me]=le})}let T=!1,U=0;if(R)for(const _ of w){const le=_.length;le>U&&(U=le),le!==f&&(T=!0)}const k=T&&C<l.current.length,j=U||f,L=_=>{if(!T||m===-1)return;const le=E[m];if(le==null)return;const ge=w[le].indexOf(m),me=_==="up"?-1:1;for(let ue=le+me,F=0;F<w.length;F+=1,ue+=me){if(ue<0||ue>=w.length){if(!r||k)return;ue=ue<0?w.length-1:0}const ae=w[ue];for(let he=Math.min(ge,ae.length-1);he>=0;he-=1){const M=ae[he];if(!_i(l,M,d))return M}}},G=_=>{if(!k||m===-1)return;const le=m%j,ge=_==="up"?-j:j,me=y-y%j,ue=Ua(y/j)+1;for(let F=m-le+ge,ae=0;ae<ue;ae+=1,F+=ge){if(F<0||F>y){if(!r)return;F=F<0?me:0}const he=Math.min(F+j-1,y);for(let M=Math.min(F+le,he);M>=F;M-=1)if(!_i(l,M,d))return M}};v&&Dn(i);const Y=L(x)??G(x);if(Y!==void 0)h=Y;else if(m===-1)h=x==="up"?y:p;else if(h=gn(l,{startingIndex:m,amount:j,decrement:x==="up",disabledIndices:d}),r){if(x==="up"&&(m-j<p||h<0)){const _=m%j,le=y%j,ge=y-(le-_);le===_?h=y:h=le>_?ge:ge-j}x==="down"&&m+j>y&&(h=gn(l,{startingIndex:m%j-j,amount:j,disabledIndices:d}))}js(l,h)&&(h=m)}if(o==="both"){const w=Ua(m/f);i.key===(c?ca:fa)&&(v&&Dn(i),m%f!==f-1?(h=gn(l,{startingIndex:m,disabledIndices:d}),r&&vs(h,f,w)&&(h=gn(l,{startingIndex:m-m%f-1,disabledIndices:d}))):r&&(h=gn(l,{startingIndex:m-m%f-1,disabledIndices:d})),vs(h,f,w)&&(h=m)),i.key===(c?fa:ca)&&(v&&Dn(i),m%f!==0?(h=gn(l,{startingIndex:m,decrement:!0,disabledIndices:d}),r&&vs(h,f,w)&&(h=gn(l,{startingIndex:m+(f-m%f),decrement:!0,disabledIndices:d}))):r&&(h=gn(l,{startingIndex:m+(f-m%f),decrement:!0,disabledIndices:d})),vs(h,f,w)&&(h=m));const E=Ua(y/f)===w;js(l,h)&&(r&&E?h=i.key===(c?fa:ca)?y:gn(l,{startingIndex:m-m%f-1,disabledIndices:d}):h=m)}return h}function ew(l,i,o){const r=[];let c=0;return l.forEach(({width:f,height:d},p)=>{let y=!1;for(;!y;){const m=[];for(let v=0;v<f;v+=1)for(let h=0;h<d;h+=1)m.push(c+v+h*i);c%i+f<=i&&m.every(v=>r[v]==null)?(m.forEach(v=>{r[v]=p}),y=!0):c+=1}}),[...r]}function tw(l,i,o,r,c){if(l===-1)return-1;const f=o.indexOf(l),d=i[l];switch(c){case"tl":return f;case"tr":return d?f+d.width-1:f;case"bl":return d?f+(d.height-1)*r:f;case"br":return o.lastIndexOf(l);default:return-1}}function nw(l,i){return i.flatMap((o,r)=>l.includes(o)?[r]:[])}function _i(l,i,o){if(typeof o=="function"?o(i):(o==null?void 0:o.includes(i))??!1)return!0;const c=l.current[i];return c?bd(c)?!o&&(c.hasAttribute("disabled")||c.getAttribute("aria-disabled")==="true"):!0:!1}function bd(l){return Ln(l).display!=="none"}/*!
* tabbable 6.4.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var lw=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ks=lw.join(","),Ev=typeof Element>"u",ji=Ev?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Us=!Ev&&Element.prototype.getRootNode?function(l){var i;return l==null||(i=l.getRootNode)===null||i===void 0?void 0:i.call(l)}:function(l){return l==null?void 0:l.ownerDocument},Ls=function(i,o){var r;o===void 0&&(o=!0);var c=i==null||(r=i.getAttribute)===null||r===void 0?void 0:r.call(i,"inert"),f=c===""||c==="true",d=f||o&&i&&(typeof i.closest=="function"?i.closest("[inert]"):Ls(i.parentNode));return d},aw=function(i){var o,r=i==null||(o=i.getAttribute)===null||o===void 0?void 0:o.call(i,"contenteditable");return r===""||r==="true"},wv=function(i,o,r){if(Ls(i))return[];var c=Array.prototype.slice.apply(i.querySelectorAll(ks));return o&&ji.call(i,ks)&&c.unshift(i),c=c.filter(r),c},Bs=function(i,o,r){for(var c=[],f=Array.from(i);f.length;){var d=f.shift();if(!Ls(d,!1))if(d.tagName==="SLOT"){var p=d.assignedElements(),y=p.length?p:d.children,m=Bs(y,!0,r);r.flatten?c.push.apply(c,m):c.push({scopeParent:d,candidates:m})}else{var v=ji.call(d,ks);v&&r.filter(d)&&(o||!i.includes(d))&&c.push(d);var h=d.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(d),x=!Ls(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(d));if(h&&x){var w=Bs(h===!0?d.children:h.children,!0,r);r.flatten?c.push.apply(c,w):c.push({scopeParent:d,candidates:w})}else f.unshift.apply(f,d.children)}}return c},Tv=function(i){return!isNaN(parseInt(i.getAttribute("tabindex"),10))},Rv=function(i){if(!i)throw new Error("No node provided");return i.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(i.tagName)||aw(i))&&!Tv(i)?0:i.tabIndex},iw=function(i,o){var r=Rv(i);return r<0&&o&&!Tv(i)?0:r},ow=function(i,o){return i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex},Av=function(i){return i.tagName==="INPUT"},rw=function(i){return Av(i)&&i.type==="hidden"},sw=function(i){var o=i.tagName==="DETAILS"&&Array.prototype.slice.apply(i.children).some(function(r){return r.tagName==="SUMMARY"});return o},uw=function(i,o){for(var r=0;r<i.length;r++)if(i[r].checked&&i[r].form===o)return i[r]},cw=function(i){if(!i.name)return!0;var o=i.form||Us(i),r=function(p){return o.querySelectorAll('input[type="radio"][name="'+p+'"]')},c;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")c=r(window.CSS.escape(i.name));else try{c=r(i.name)}catch(d){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",d.message),!1}var f=uw(c,i.form);return!f||f===i},fw=function(i){return Av(i)&&i.type==="radio"},dw=function(i){return fw(i)&&!cw(i)},mw=function(i){var o,r=i&&Us(i),c=(o=r)===null||o===void 0?void 0:o.host,f=!1;if(r&&r!==i){var d,p,y;for(f=!!((d=c)!==null&&d!==void 0&&(p=d.ownerDocument)!==null&&p!==void 0&&p.contains(c)||i!=null&&(y=i.ownerDocument)!==null&&y!==void 0&&y.contains(i));!f&&c;){var m,v,h;r=Us(c),c=(m=r)===null||m===void 0?void 0:m.host,f=!!((v=c)!==null&&v!==void 0&&(h=v.ownerDocument)!==null&&h!==void 0&&h.contains(c))}}return f},Pp=function(i){var o=i.getBoundingClientRect(),r=o.width,c=o.height;return r===0&&c===0},hw=function(i,o){var r=o.displayCheck,c=o.getShadowRoot;if(r==="full-native"&&"checkVisibility"in i){var f=i.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!f}if(getComputedStyle(i).visibility==="hidden")return!0;var d=ji.call(i,"details>summary:first-of-type"),p=d?i.parentElement:i;if(ji.call(p,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof c=="function"){for(var y=i;i;){var m=i.parentElement,v=Us(i);if(m&&!m.shadowRoot&&c(m)===!0)return Pp(i);i.assignedSlot?i=i.assignedSlot:!m&&v!==i.ownerDocument?i=v.host:i=m}i=y}if(mw(i))return!i.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pp(i);return!1},gw=function(i){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(i.tagName))for(var o=i.parentElement;o;){if(o.tagName==="FIELDSET"&&o.disabled){for(var r=0;r<o.children.length;r++){var c=o.children.item(r);if(c.tagName==="LEGEND")return ji.call(o,"fieldset[disabled] *")?!0:!c.contains(i)}return!0}o=o.parentElement}return!1},ed=function(i,o){return!(o.disabled||rw(o)||hw(o,i)||sw(o)||gw(o))},td=function(i,o){return!(dw(o)||Rv(o)<0||!ed(i,o))},pw=function(i){var o=parseInt(i.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},Cv=function(i){var o=[],r=[];return i.forEach(function(c,f){var d=!!c.scopeParent,p=d?c.scopeParent:c,y=iw(p,d),m=d?Cv(c.candidates):p;y===0?d?o.push.apply(o,m):o.push(p):r.push({documentOrder:f,tabIndex:y,item:c,isScope:d,content:m})}),r.sort(ow).reduce(function(c,f){return f.isScope?c.push.apply(c,f.content):c.push(f.content),c},[]).concat(o)},Ws=function(i,o){o=o||{};var r;return o.getShadowRoot?r=Bs([i],o.includeContainer,{filter:td.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:pw}):r=wv(i,o.includeContainer,td.bind(null,o)),Cv(r)},yw=function(i,o){o=o||{};var r;return o.getShadowRoot?r=Bs([i],o.includeContainer,{filter:ed.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):r=wv(i,o.includeContainer,ed.bind(null,o)),r},Mv=function(i,o){if(o=o||{},!i)throw new Error("No node provided");return ji.call(i,ks)===!1?!1:td(o,i)};const $o=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ov(l,i){const o=Ws(l,$o()),r=o.length;if(r===0)return;const c=el(jt(l)),f=o.indexOf(c),d=f===-1?i===1?0:r-1:f+i;return o[d]}function zv(l){return Ov(jt(l).body,1)||l}function _v(l){return Ov(jt(l).body,-1)||l}function Lo(l,i){const o=i||l.currentTarget,r=l.relatedTarget;return!r||!ht(o,r)}function vw(l){Ws(l,$o()).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function ey(l){l.querySelectorAll("[data-tabindex]").forEach(o=>{const r=o.dataset.tabindex;delete o.dataset.tabindex,r?o.setAttribute("tabindex",r):o.removeAttribute("tabindex")})}const bs=null;class bw{constructor(){Lt(this,"callbacks",[]);Lt(this,"callbacksCount",0);Lt(this,"nextId",1);Lt(this,"startId",1);Lt(this,"isScheduled",!1);Lt(this,"tick",i=>{var c;this.isScheduled=!1;const o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let f=0;f<o.length;f+=1)(c=o[f])==null||c.call(o,i)})}request(i){const o=this.nextId;return this.nextId+=1,this.callbacks.push(i),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(i){const o=i-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}}const Ss=new bw;class sl{constructor(){Lt(this,"currentId",bs);Lt(this,"cancel",()=>{this.currentId!==bs&&(Ss.cancel(this.currentId),this.currentId=bs)});Lt(this,"disposeEffect",()=>this.cancel)}static create(){return new sl}static request(i){return Ss.request(i)}static cancel(i){return Ss.cancel(i)}request(i){this.cancel(),this.currentId=Ss.request(()=>{this.currentId=bs,i()})}}function $s(){const l=Rn(sl.create).current;return dv(l.disposeEffect),l}function Dl(l){return l==null?l:"current"in l?l.current:l}let Ko=(function(l){return l.startingStyle="data-starting-style",l.endingStyle="data-ending-style",l})({});const Sw={[Ko.startingStyle]:""},xw={[Ko.endingStyle]:""},Po={transitionStatus(l){return l==="starting"?Sw:l==="ending"?xw:null}};function Ew(l,i=!1,o=!0){const r=$s();return Ze((c,f=null)=>{r.cancel();function d(){Ya.flushSync(c)}const p=Dl(l);if(p==null)return;const y=p;if(typeof y.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)c();else{let h=function(){const w=Ko.startingStyle;if(!y.hasAttribute(w)){r.request(x);return}const E=new MutationObserver(()=>{y.hasAttribute(w)||(E.disconnect(),x())});E.observe(y,{attributes:!0,attributeFilter:[w]}),f==null||f.addEventListener("abort",()=>E.disconnect(),{once:!0})},x=function(){Promise.all(y.getAnimations().map(w=>w.finished)).then(()=>{f!=null&&f.aborted||d()}).catch(()=>{const w=y.getAnimations();if(o){if(f!=null&&f.aborted)return;d()}else w.length>0&&w.some(E=>E.pending||E.playState!=="finished")&&x()})};var m=h,v=x;if(i){h();return}r.request(x)}})}function Ga(l){const{enabled:i=!0,open:o,ref:r,onComplete:c}=l,f=Ze(c),d=Ew(r,o,!1);S.useEffect(()=>{if(!i)return;const p=new AbortController;return d(f,p.signal),()=>{p.abort()}},[i,o,f,d])}function er(l,i=!1,o=!1){const[r,c]=S.useState(l&&i?"idle":void 0),[f,d]=S.useState(l);return l&&!f&&(d(!0),c("starting")),!l&&f&&r!=="ending"&&!o&&c("ending"),!l&&!f&&r==="ending"&&c(void 0),Oe(()=>{if(!l&&f&&r!=="ending"&&o){const p=sl.request(()=>{c("ending")});return()=>{sl.cancel(p)}}},[l,f,r,o]),Oe(()=>{if(!l||i)return;const p=sl.request(()=>{c(void 0)});return()=>{sl.cancel(p)}},[i,l]),Oe(()=>{if(!l||!i)return;l&&f&&r!=="idle"&&c("starting");const p=sl.request(()=>{c("idle")});return()=>{sl.cancel(p)}},[i,l,f,c,r]),S.useMemo(()=>({mounted:f,setMounted:d,transitionStatus:r}),[f,r])}function Hs({controlled:l,default:i,name:o,state:r="value"}){const{current:c}=S.useRef(l!==void 0),[f,d]=S.useState(i),p=c?l:f,y=S.useCallback(m=>{c||d(m)},[]);return[p,y]}function Sd(l={}){const{id:i,implicit:o=!1,controlRef:r}=l,{controlId:c,registerControlId:f}=Js(),d=Go(i),p=o?c:void 0,y=Rn(()=>Symbol("labelable-control")),m=S.useRef(!1),v=S.useRef(i!=null),h=Ze(()=>{!m.current||f===dn||(m.current=!1,f(y.current,void 0))});return Oe(()=>{if(f===dn)return;let x;if(o){const w=r==null?void 0:r.current;Bt(w)&&w.closest("label")!=null?x=i??null:x=p??d}else if(i!=null)v.current=!0,x=i;else if(v.current)x=d;else{h();return}if(x===void 0){h();return}m.current=!0,f(y.current,x)},[i,r,p,f,o,d,y,h]),S.useEffect(()=>h,[h]),c??d}function xd(l){const{enabled:i=!0,value:o,id:r,name:c,controlRef:f,commit:d}=l,{formRef:p}=dd(),{invalid:y,markedDirtyRef:m,validityData:v,setValidityData:h}=Fo(),x=Ze(l.getValue);Oe(()=>{if(!i)return;let w=o;w===void 0&&(w=x()),v.initialValue===null&&w!==null&&h(E=>({...E,initialValue:w}))},[i,h,o,v.initialValue,x]),Oe(()=>{!i||!r||p.current.fields.set(r,{getValue:x,name:c,controlRef:f,validityData:kE(v,y),validate(w=!0){let E=o;E===void 0&&(E=x()),m.current=!0,w?Ya.flushSync(()=>d(E)):d(E)}})},[d,f,i,p,x,r,y,m,c,v,o]),Oe(()=>{const w=p.current.fields;return()=>{r&&w.delete(r)}},[p,r])}const tr="none",nd="trigger-press",ww="trigger-hover",Ed="outside-press",Af="item-press",Tw="close-press",Ps="focus-out",Rw="escape-key",Cf="list-navigation",Aw="cancel-open",Cw="imperative-action",Mw="window-resize";function zt(l,i,o,r){let c=!1,f=!1;const d=an;return{reason:l,event:i??new Event("base-ui"),cancel(){c=!0},allowPropagation(){f=!0},get isCanceled(){return c},get isPropagationAllowed(){return f},trigger:o,...d}}const Ow=S.forwardRef(function(i,o){const{render:r,className:c,id:f,name:d,value:p,disabled:y=!1,onValueChange:m,defaultValue:v,autoFocus:h=!1,...x}=i,{state:w,name:E,disabled:R,setTouched:C,setDirty:T,validityData:U,setFocused:k,setFilled:j,validationMode:L,validation:G}=Fo(),Y=R||y,_=E??d,le={...w,disabled:Y},{labelId:ge}=Js(),me=Sd({id:f});Oe(()=>{var X;const N=p!=null;(X=G.inputRef.current)!=null&&X.value||N&&p!==""?j(!0):N&&p===""&&j(!1)},[G.inputRef,j,p]);const ue=S.useRef(null);Oe(()=>{h&&ue.current===el(jt(ue.current))&&k(!0)},[h,k]);const[F]=Hs({controlled:p,default:v,name:"FieldControl",state:"value"}),ae=p!==void 0,he=ae?F:void 0;return xd({id:me,name:_,commit:G.commit,value:he,getValue:()=>{var N;return(N=G.inputRef.current)==null?void 0:N.value},controlRef:G.inputRef}),Jt("input",i,{ref:[o,ue],state:le,props:[{id:me,disabled:Y,name:_,ref:G.inputRef,"aria-labelledby":ge,autoFocus:h,...ae?{value:he}:{defaultValue:v},onChange(N){const X=N.currentTarget.value;m==null||m(X,zt(tr,N.nativeEvent)),T(X!==U.initialValue),j(X!=="")},onFocus(){k(!0)},onBlur(N){C(!0),k(!1),L==="onBlur"&&G.commit(N.currentTarget.value)},onKeyDown(N){N.currentTarget.tagName==="INPUT"&&N.key==="Enter"&&(C(!0),G.commit(N.currentTarget.value))}},G.getInputValidationProps(),x],stateAttributesMapping:Fs})}),zw=S.createContext({disabled:!1});function _w(){return S.useContext(zw)}const Nw=S.createContext(void 0);function Dw(l=!0){const i=S.useContext(Nw);if(i===void 0&&!l)throw new Error(Fn(3));return i}const jw=S.forwardRef(function(i,o){return H.jsx(Ow,{ref:o,...i})});function Nv({className:l,type:i,...o}){return H.jsx(jw,{type:i,"data-slot":"input",className:mn("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",l),...o})}function kw(l){let i=Math.floor(l);if(i<60)return`${i}s`;let o=Math.floor(i/60);if(i=i%60,o<60)return`${o}m ${i}s`;let r=Math.floor(o/60);if(o=o%60,r<24)return`${r}h ${o}m`;const c=Math.floor(r/24);return r=r%24,`${c}d ${r}h`}function Mf(l){return l.toLocaleString()}function xs({value:l,label:i}){return H.jsxs("div",{className:"text-center",children:[H.jsx("div",{className:"text-2xl font-bold text-primary",children:l}),H.jsx("div",{className:"text-xs text-muted-foreground uppercase",children:i})]})}function Uw({stats:l}){if(!l)return null;const i=l.total_seconds/60,o=i>0?Math.round(l.total_words/i):0;return H.jsxs("div",{className:"flex gap-8 mb-6",children:[H.jsx(xs,{value:Mf(l.total_words),label:"Words"}),H.jsx(xs,{value:kw(l.total_seconds),label:"Recording"}),H.jsx(xs,{value:Mf(o),label:"WPM"}),H.jsx(xs,{value:Mf(l.total_transcriptions),label:"Sessions"})]})}function Lw(l){return Jt(l.defaultTagName??"div",l,l)}const Bw=Wy("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Hw({className:l,variant:i="default",render:o,...r}){return Lw({defaultTagName:"span",props:Ui({className:mn(Bw({variant:i}),l)},r),render:o,state:{slot:"badge",variant:i}})}async function Vw(){return(await fetch("/api/stats")).json()}async function Yw(l=50){return(await(await fetch(`/api/transcriptions?limit=${l}`)).json()).transcriptions}async function qw(){return(await fetch("/api/config")).json()}async function Gw(l){return(await(await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})).json()).ok===!0}async function Xw(l){return(await(await fetch(`/api/transcriptions/${l}`,{method:"DELETE"})).json()).ok===!0}function Qw(l){const i=l.split("/");return i.length>=3&&i[1]==="Users"?"~/"+i.slice(3).join("/"):l}function Kw(l){if(l<1)return"<1s";const i=Math.floor(l);if(i<60)return`${i}s`;const o=Math.floor(i/60),r=i%60;return r>0?`${o}m ${r}s`:`${o}m`}function Zw({t:l,onDelete:i}){const[o,r]=S.useState(!1),c=l.fixed_text||l.raw_text,f=l.fixed_text!=null&&l.fixed_text!==l.raw_text,d=l.fixed_text!=null;function p(){navigator.clipboard.writeText(c).then(()=>Oi("Copied to clipboard"),()=>Oi.error("Failed to copy"))}function y(){Xw(l.id).then(m=>{m?(Oi("Deleted"),i==null||i()):Oi.error("Failed to delete")})}return H.jsxs("div",{className:"p-4 rounded-lg bg-card",children:[H.jsxs("div",{className:"flex justify-between items-start",children:[H.jsxs("div",{className:"flex gap-2 text-xs text-muted-foreground flex-wrap items-center mb-1",children:[H.jsx("span",{children:l.timestamp.slice(0,16).replace("T"," ")}),l.app_name&&H.jsx(Hw,{variant:"secondary",children:l.app_name}),l.duration_seconds!=null&&H.jsx("span",{className:"tabular-nums",children:Kw(l.duration_seconds)}),l.cwd&&H.jsx("span",{children:H.jsx("code",{className:"text-xs",children:Qw(l.cwd)})})]}),H.jsxs("div",{className:"flex gap-1",children:[H.jsx("button",{onClick:p,className:"text-muted-foreground hover:text-foreground p-1 rounded transition-colors",title:"Copy to clipboard",children:H.jsxs("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[H.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",strokeWidth:"2"}),H.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1",strokeWidth:"2"})]})}),H.jsx("button",{onClick:y,className:"text-muted-foreground hover:text-destructive p-1 rounded transition-colors",title:"Delete",children:H.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:"2",strokeLinecap:"round",children:H.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"})})})]})]}),H.jsx("div",{className:"break-words",children:c}),H.jsx("div",{className:"mt-1",children:f?H.jsxs(H.Fragment,{children:[H.jsxs("button",{onClick:()=>r(!o),className:"text-xs text-muted-foreground hover:text-foreground cursor-pointer",children:[o?"Hide":"Show"," original"]}),o&&H.jsx("div",{className:"text-sm text-muted-foreground mt-1",children:l.raw_text})]}):d?H.jsx("span",{className:"text-xs text-muted-foreground/50 italic",children:"No corrections needed"}):H.jsx("span",{className:"text-xs text-muted-foreground/50 italic",children:"Not post-processed"})})]})}function Iw({transcriptions:l,onDelete:i}){return l.length===0?H.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[H.jsx("div",{className:"text-4xl mb-4",children:"🎙️"}),H.jsx("p",{children:"No transcriptions yet."}),H.jsx("p",{className:"text-sm",children:"Press your hotkey to start dictating."})]}):H.jsx("div",{className:"flex flex-col gap-2",children:l.map(o=>H.jsx(Zw,{t:o,onDelete:i},o.id))})}const Dv=S.createContext(void 0);function Bi(l){const i=S.useContext(Dv);if(l===!1&&i===void 0)throw new Error(Fn(27));return i}let La=(function(l){return l.open="data-open",l.closed="data-closed",l[l.startingStyle=Ko.startingStyle]="startingStyle",l[l.endingStyle=Ko.endingStyle]="endingStyle",l.anchorHidden="data-anchor-hidden",l.side="data-side",l.align="data-align",l})({}),ld=(function(l){return l.popupOpen="data-popup-open",l.pressed="data-pressed",l})({});const Fw={[ld.popupOpen]:""},Jw={[ld.popupOpen]:"",[ld.pressed]:""},Ww={[La.open]:""},$w={[La.closed]:""},Pw={[La.anchorHidden]:""},eT={open(l){return l?Fw:null}},tT={open(l){return l?Jw:null}},eu={open(l){return l?Ww:$w},anchorHidden(l){return l?Pw:null}},nT={...eu,...Po},lT=S.forwardRef(function(i,o){const{render:r,className:c,forceRender:f=!1,...d}=i,{store:p}=Bi(),y=p.useState("open"),m=p.useState("nested"),v=p.useState("mounted"),h=p.useState("transitionStatus");return Jt("div",i,{state:{open:y,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:nT,props:[{role:"presentation",hidden:!v,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:f||!m})}),jv=S.forwardRef(function(i,o){const{render:r,className:c,disabled:f=!1,nativeButton:d=!0,...p}=i,{store:y}=Bi(),m=y.useState("open");function v(E){m&&y.setOpen(!1,zt(Tw,E.nativeEvent))}const{getButtonProps:h,buttonRef:x}=Io({disabled:f,native:d});return Jt("button",i,{state:{disabled:f},ref:[o,x],props:[{onClick:v},p,h]})});function Tn(l){const i=Rn(aT,l).current;return i.next=l,Oe(i.effect),i}function aT(l){const i={current:l,next:l,effect:()=>{i.current=i.next}};return i}const kv={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},wd={...kv,position:"fixed",top:0,left:0},Uv={...kv,position:"absolute"},Vs=S.forwardRef(function(i,o){const[r,c]=S.useState();Oe(()=>{UE&&c("button")},[]);const f={tabIndex:0,role:r};return H.jsx("span",{...i,ref:o,style:wd,"aria-hidden":r?void 0:!0,...f,"data-base-ui-focus-guard":""})});function Ys(l){return`data-base-ui-${l}`}let ty=0;function Bo(l,i={}){const{preventScroll:o=!1,cancelPrevious:r=!0,sync:c=!1}=i;r&&cancelAnimationFrame(ty);const f=()=>l==null?void 0:l.focus({preventScroll:o});c?f():ty=requestAnimationFrame(f)}const Of={inert:new WeakMap,"aria-hidden":new WeakMap},ny="data-base-ui-inert",ad={inert:new WeakSet,"aria-hidden":new WeakSet};let Do=new WeakMap,zf=0;function iT(l){return ad[l]}function Lv(l){return l?Vo(l)?l.host:Lv(l.parentNode):null}const _f=(l,i)=>i.map(o=>{if(l.contains(o))return o;const r=Lv(o);return l.contains(r)?r:null}).filter(o=>o!=null),ly=l=>{const i=new Set;return l.forEach(o=>{let r=o;for(;r&&!i.has(r);)i.add(r),r=r.parentNode}),i},ay=(l,i,o)=>{const r=[],c=f=>{!f||o.has(f)||Array.from(f.children).forEach(d=>{da(d)!=="script"&&(i.has(d)?c(d):r.push(d))})};return c(l),r};function oT(l,i,o,r,{mark:c=!0,markerIgnoreElements:f=[]}){const d=r?"inert":o?"aria-hidden":null;let p=null,y=null;const m=_f(i,l),v=c?_f(i,f):[],h=new Set(v),x=c?ay(i,ly(m),new Set(m)).filter(R=>!h.has(R)):[],w=[],E=[];if(d){const R=Of[d],C=iT(d);y=C,p=R;const T=_f(i,Array.from(i.querySelectorAll("[aria-live]"))),U=m.concat(T);ay(i,ly(U),new Set(U)).forEach(j=>{const L=j.getAttribute(d),G=L!==null&&L!=="false",Y=(R.get(j)||0)+1;R.set(j,Y),w.push(j),Y===1&&G&&C.add(j),G||j.setAttribute(d,d==="inert"?"":"true")})}return c&&x.forEach(R=>{const C=(Do.get(R)||0)+1;Do.set(R,C),E.push(R),C===1&&R.setAttribute(ny,"")}),zf+=1,()=>{p&&w.forEach(R=>{const T=(p.get(R)||0)-1;p.set(R,T),T||(!(y!=null&&y.has(R))&&d&&R.removeAttribute(d),y==null||y.delete(R))}),c&&E.forEach(R=>{const C=(Do.get(R)||0)-1;Do.set(R,C),C||R.removeAttribute(ny)}),zf-=1,zf||(Of.inert=new WeakMap,Of["aria-hidden"]=new WeakMap,ad.inert=new WeakSet,ad["aria-hidden"]=new WeakSet,Do=new WeakMap)}}function iy(l,i={}){const{ariaHidden:o=!1,inert:r=!1,mark:c=!0,markerIgnoreElements:f=[]}=i,d=jt(l[0]).body;return oT(l,d,o,r,{mark:c,markerIgnoreElements:f})}const Bv=S.createContext(null),Hv=()=>S.useContext(Bv),rT=Ys("portal");function sT(l={}){const{ref:i,container:o,componentProps:r=an,elementProps:c}=l,f=Jo(),d=Hv(),p=d==null?void 0:d.portalNode,[y,m]=S.useState(null),[v,h]=S.useState(null),x=Ze(C=>{C!==null&&h(C)}),w=S.useRef(null);Oe(()=>{if(o===null){w.current&&(w.current=null,h(null),m(null));return}if(f==null)return;const C=(o&&(rd(o)?o:o.current))??p??document.body;if(C==null){w.current&&(w.current=null,h(null),m(null));return}w.current!==C&&(w.current=C,h(null),m(C))},[o,p,f]);const E=Jt("div",r,{ref:[i,x],props:[{id:f,[rT]:""},c]});return{portalNode:v,portalSubtree:y&&E?Ya.createPortal(E,y):null}}const Vv=S.forwardRef(function(i,o){const{children:r,container:c,className:f,render:d,renderGuards:p,...y}=i,{portalNode:m,portalSubtree:v}=sT({container:c,ref:o,componentProps:i,elementProps:y}),h=S.useRef(null),x=S.useRef(null),w=S.useRef(null),E=S.useRef(null),[R,C]=S.useState(null),T=R==null?void 0:R.modal,U=R==null?void 0:R.open,k=typeof p=="boolean"?p:!!R&&!R.modal&&R.open&&!!m;S.useEffect(()=>{if(!m||T)return;function L(G){m&&G.relatedTarget&&Lo(G)&&(G.type==="focusin"?ey:vw)(m)}return m.addEventListener("focusin",L,!0),m.addEventListener("focusout",L,!0),()=>{m.removeEventListener("focusin",L,!0),m.removeEventListener("focusout",L,!0)}},[m,T]),S.useEffect(()=>{!m||U||ey(m)},[U,m]);const j=S.useMemo(()=>({beforeOutsideRef:h,afterOutsideRef:x,beforeInsideRef:w,afterInsideRef:E,portalNode:m,setFocusManagerState:C}),[m]);return H.jsxs(S.Fragment,{children:[v,H.jsxs(Bv.Provider,{value:j,children:[k&&m&&H.jsx(Vs,{"data-type":"outside",ref:h,onFocus:L=>{var G;if(Lo(L,m))(G=w.current)==null||G.focus();else{const Y=R?R.domReference:null,_=_v(Y);_==null||_.focus()}}}),k&&m&&H.jsx("span",{"aria-owns":m.id,style:Nx}),m&&Ya.createPortal(r,m),k&&m&&H.jsx(Vs,{"data-type":"outside",ref:x,onFocus:L=>{var G;if(Lo(L,m))(G=E.current)==null||G.focus();else{const Y=R?R.domReference:null,_=zv(Y);_==null||_.focus(),R!=null&&R.closeOnFocusOut&&(R==null||R.onOpenChange(!1,zt(Ps,L.nativeEvent)))}}})]})]})});function uT(){const l=new Map;return{emit(i,o){var r;(r=l.get(i))==null||r.forEach(c=>c(o))},on(i,o){l.has(i)||l.set(i,new Set),l.get(i).add(o)},off(i,o){var r;(r=l.get(i))==null||r.delete(o)}}}const cT=S.createContext(null),fT=S.createContext(null),tu=()=>{var l;return((l=S.useContext(cT))==null?void 0:l.id)||null},nu=l=>{const i=S.useContext(fT);return l??i};function dT(l,i){const o=en(l.target);return l instanceof o.KeyboardEvent?"keyboard":l instanceof o.FocusEvent?i||"keyboard":"pointerType"in l?l.pointerType||"keyboard":"touches"in l?"touch":l instanceof o.MouseEvent?i||(l.detail===0?"keyboard":"mouse"):""}const oy=20;let ua=[];function Td(){ua=ua.filter(l=>{var i;return(i=l.deref())==null?void 0:i.isConnected})}function mT(l){Td(),l&&da(l)!=="body"&&(ua.push(new WeakRef(l)),ua.length>oy&&(ua=ua.slice(-oy)))}function Nf(){var l;return Td(),(l=ua[ua.length-1])==null?void 0:l.deref()}function hT(l){if(!l)return null;const i=$o();return Mv(l,i)?l:Ws(l,i)[0]||l}function gT(l){return!l||!l.isConnected?!1:typeof l.checkVisibility=="function"?l.checkVisibility():bd(l)}function ry(l,i){var d;if(!i.current.includes("floating")&&!((d=l.getAttribute("role"))!=null&&d.includes("dialog")))return;const o=$o(),c=yw(l,o).filter(p=>{const y=p.getAttribute("data-tabindex")||"";return Mv(p,o)||p.hasAttribute("data-tabindex")&&!y.startsWith("-")}),f=l.getAttribute("tabindex");i.current.includes("floating")||c.length===0?f!=="0"&&l.setAttribute("tabindex","0"):(f!=="-1"||l.hasAttribute("data-tabindex")&&l.getAttribute("data-tabindex")!=="-1")&&(l.setAttribute("tabindex","-1"),l.setAttribute("data-tabindex","-1"))}function Yv(l){const{context:i,children:o,disabled:r=!1,initialFocus:c=!0,returnFocus:f=!0,restoreFocus:d=!1,modal:p=!0,closeOnFocusOut:y=!0,openInteractionType:m="",nextFocusableElement:v,previousFocusableElement:h,beforeContentFocusGuardRef:x,externalTree:w,getInsideElements:E}=l,R="rootStore"in i?i.rootStore:i,C=R.useState("open"),T=R.useState("domReferenceElement"),U=R.useState("floatingElement"),{events:k,dataRef:j}=R.context,L=Ze(()=>{var Se;return(Se=j.current.floatingContext)==null?void 0:Se.nodeId}),G=c===!1,Y=Wf(T)&&G,_=S.useRef(["content"]),le=Tn(c),ge=Tn(f),me=Tn(m),ue=nu(w),F=Hv(),ae=S.useRef(!1),he=S.useRef(!1),M=S.useRef(!1),N=S.useRef(-1),X=S.useRef(""),I=S.useRef(""),q=S.useRef(null),A=S.useRef(null),O=Ba(q,x,F==null?void 0:F.beforeInsideRef),W=Ba(A,F==null?void 0:F.afterInsideRef),Q=kn(),te=kn(),P=$s(),de=F!=null,ce=Xo(U),be=Ze((Se=ce)=>Se?Ws(Se,$o()):[]),De=Ze(()=>(E==null?void 0:E().filter(Se=>Se!=null))??[]),we=Ze(Se=>{const pe=be(Se);return _.current.map(()=>pe).filter(Boolean).flat()});S.useEffect(()=>{if(r||!p)return;function Se(Re){Re.key==="Tab"&&ht(ce,el(jt(ce)))&&be().length===0&&!Y&&Dn(Re)}const pe=jt(ce);return pe.addEventListener("keydown",Se),()=>{pe.removeEventListener("keydown",Se)}},[r,T,ce,p,_,Y,be,we]),S.useEffect(()=>{if(r||!C)return;const Se=jt(ce);function pe(){M.current=!1}function Re(ye){const Ee=tl(ye),fe=De(),oe=ht(U,Ee)||ht(T,Ee)||ht(F==null?void 0:F.portalNode,Ee)||fe.some(B=>B===Ee||ht(B,Ee));M.current=!oe,I.current=ye.pointerType||"keyboard",Ee!=null&&Ee.closest(`[${zx}]`)&&(he.current=!0)}function Ge(){I.current="keyboard"}return Se.addEventListener("pointerdown",Re,!0),Se.addEventListener("pointerup",pe,!0),Se.addEventListener("pointercancel",pe,!0),Se.addEventListener("keydown",Ge,!0),()=>{Se.removeEventListener("pointerdown",Re,!0),Se.removeEventListener("pointerup",pe,!0),Se.removeEventListener("pointercancel",pe,!0),Se.removeEventListener("keydown",Ge,!0)}},[r,U,T,ce,C,F,De]),S.useEffect(()=>{if(r||!y)return;const Se=jt(ce);function pe(){he.current=!0,te.start(0,()=>{he.current=!1})}function Re(oe){const B=tl(oe),re=be().indexOf(B);re!==-1&&(N.current=re)}function Ge(oe){const B=oe.relatedTarget,$=oe.currentTarget,re=tl(oe);queueMicrotask(()=>{const xe=L(),Ue=R.context.triggerElements,Xe=De(),ut=(B==null?void 0:B.hasAttribute(Ys("focus-guard")))&&[q.current,A.current,F==null?void 0:F.beforeInsideRef.current,F==null?void 0:F.afterInsideRef.current,F==null?void 0:F.beforeOutsideRef.current,F==null?void 0:F.afterOutsideRef.current,Dl(h),Dl(v)].includes(B),Je=!(ht(T,B)||ht(U,B)||ht(B,U)||ht(F==null?void 0:F.portalNode,B)||Xe.some(ke=>ke===B||ht(ke,B))||B!=null&&Ue.hasElement(B)||Ue.hasMatchingElement(ke=>ht(ke,B))||ut||ue&&(zi(ue.nodesRef.current,xe).find(ke=>{var Qe,He;return ht((Qe=ke.context)==null?void 0:Qe.elements.floating,B)||ht((He=ke.context)==null?void 0:He.elements.domReference,B)})||Ip(ue.nodesRef.current,xe).find(ke=>{var Qe,He,rt;return[(Qe=ke.context)==null?void 0:Qe.elements.floating,Xo((He=ke.context)==null?void 0:He.elements.floating)].includes(B)||((rt=ke.context)==null?void 0:rt.elements.domReference)===B})));if($===T&&ce&&ry(ce,_),d&&$!==T&&!gT(re)&&el(Se)===Se.body){if(Ft(ce)&&(ce.focus(),d==="popup")){P.request(()=>{ce.focus()});return}const ke=N.current,Qe=be(),He=Qe[ke]||Qe[Qe.length-1]||ce;Ft(He)&&He.focus()}if(j.current.insideReactTree){j.current.insideReactTree=!1;return}(Y||!p)&&B&&Je&&!he.current&&(Y||B!==Nf())&&(ae.current=!0,R.setOpen(!1,zt(Ps,oe)))})}function ye(){M.current||(j.current.insideReactTree=!0,Q.start(0,()=>{j.current.insideReactTree=!1}))}const Ee=Ft(T)?T:null,fe=[];if(!(!U&&!Ee))return Ee&&(Ee.addEventListener("focusout",Ge),Ee.addEventListener("pointerdown",pe),fe.push(()=>{Ee.removeEventListener("focusout",Ge),Ee.removeEventListener("pointerdown",pe)})),U&&(U.addEventListener("focusin",Re),U.addEventListener("focusout",Ge),F&&(U.addEventListener("focusout",ye,!0),fe.push(()=>{U.removeEventListener("focusout",ye,!0)})),fe.push(()=>{U.removeEventListener("focusin",Re),U.removeEventListener("focusout",Ge)})),()=>{fe.forEach(oe=>{oe()})}},[r,T,U,ce,p,ue,F,R,y,d,be,Y,L,_,j,Q,te,P,v,h,De]),S.useEffect(()=>{var B,$,re;if(r||!U||!C)return;const Se=Array.from(((B=F==null?void 0:F.portalNode)==null?void 0:B.querySelectorAll(`[${Ys("portal")}]`))||[]),Re=(re=($=(ue?Ip(ue.nodesRef.current,L()):[]).find(xe=>{var Ue;return Wf(((Ue=xe.context)==null?void 0:Ue.elements.domReference)||null)}))==null?void 0:$.context)==null?void 0:re.elements.domReference,ye=[...[U,...Se,q.current,A.current,F==null?void 0:F.beforeOutsideRef.current,F==null?void 0:F.afterOutsideRef.current,...De()],Re,Dl(h),Dl(v),Y?T:null].filter(xe=>xe!=null),Ee=iy(ye,{ariaHidden:p||Y,mark:!1}),fe=[U,...Se].filter(xe=>xe!=null),oe=iy(fe);return()=>{oe(),Ee()}},[C,r,T,U,p,_,F,Y,ue,L,v,h,De]),Oe(()=>{if(!C||r||!Ft(ce))return;const Se=jt(ce),pe=el(Se);queueMicrotask(()=>{const Re=we(ce),Ge=le.current,ye=typeof Ge=="function"?Ge(me.current||""):Ge;if(ye===void 0||ye===!1)return;let Ee;ye===!0||ye===null?Ee=Re[0]||ce:Ee=Dl(ye),Ee=Ee||Re[0]||ce,!ht(ce,pe)&&Bo(Ee,{preventScroll:Ee===ce})})},[r,C,ce,G,we,le,me]),Oe(()=>{if(r||!ce)return;const Se=jt(ce),pe=el(Se);mT(pe);function Re(ye){if(ye.open||(X.current=dT(ye.nativeEvent,I.current)),ye.reason===ww&&ye.nativeEvent.type==="mouseleave"&&(ae.current=!0),ye.reason===Ed)if(ye.nested)ae.current=!1;else if(vv(ye.nativeEvent)||bv(ye.nativeEvent))ae.current=!1;else{let Ee=!1;document.createElement("div").focus({get preventScroll(){return Ee=!0,!1}}),Ee?ae.current=!1:ae.current=!0}}k.on("openchange",Re);function Ge(){const ye=ge.current;let Ee=typeof ye=="function"?ye(X.current):ye;if(Ee===void 0||Ee===!1)return null;if(Ee===null&&(Ee=!0),typeof Ee=="boolean"){const oe=T||Nf();return oe&&oe.isConnected?oe:null}const fe=T||Nf();return Dl(Ee)||fe||null}return()=>{k.off("openchange",Re);const ye=el(Se),Ee=De(),fe=ht(U,ye)||Ee.some(B=>B===ye||ht(B,ye))||ue&&zi(ue.nodesRef.current,L(),!1).some(B=>{var $;return ht(($=B.context)==null?void 0:$.elements.floating,ye)}),oe=Ge();queueMicrotask(()=>{const B=hT(oe),$=typeof ge.current!="boolean";ge.current&&!ae.current&&Ft(B)&&(!(!$&&B!==ye&&ye!==Se.body)||fe)&&B.focus({preventScroll:!0}),ae.current=!1})}},[r,U,ce,ge,j,k,ue,T,L,De]),Oe(()=>{if(!md||C||!U)return;const Se=el(jt(U));!Ft(Se)||!gd(Se)||ht(U,Se)&&Se.blur()},[C,U]),Oe(()=>{if(!(r||!F))return F.setFocusManagerState({modal:p,closeOnFocusOut:y,open:C,onOpenChange:R.setOpen,domReference:T}),()=>{F.setFocusManagerState(null)}},[r,F,p,C,R,y,T]),Oe(()=>{if(!(r||!ce))return ry(ce,_),()=>{queueMicrotask(Td)}},[r,ce,_]);const Ye=!r&&(p?!Y:!0)&&(de||p);return H.jsxs(S.Fragment,{children:[Ye&&H.jsx(Vs,{"data-type":"inside",ref:O,onFocus:Se=>{var pe;if(p){const Re=we();Bo(Re[Re.length-1])}else if(F!=null&&F.portalNode)if(ae.current=!1,Lo(Se,F.portalNode)){const Re=zv(T);Re==null||Re.focus()}else(pe=Dl(h??F.beforeOutsideRef))==null||pe.focus()}}),o,Ye&&H.jsx(Vs,{"data-type":"inside",ref:W,onFocus:Se=>{var pe;if(p)Bo(we()[0]);else if(F!=null&&F.portalNode)if(y&&(ae.current=!0),Lo(Se,F.portalNode)){const Re=_v(T);Re==null||Re.focus()}else(pe=Dl(v??F.afterOutsideRef))==null||pe.focus()}})]})}function pT(l,i={}){const o="rootStore"in l?l.rootStore:l,r=o.context.dataRef,{enabled:c=!0,event:f="click",toggle:d=!0,ignoreMouse:p=!1,stickIfOpen:y=!0,touchOpenDelay:m=0,reason:v=nd}=i,h=S.useRef(void 0),x=$s(),w=kn(),E=S.useMemo(()=>({onPointerDown(R){h.current=R.pointerType},onMouseDown(R){const C=h.current,T=R.nativeEvent,U=o.select("open");if(R.button!==0||f==="click"||Fp(C)&&p)return;const k=r.current.openEvent,j=k==null?void 0:k.type,L=o.select("domReferenceElement")!==R.currentTarget,G=U&&L||!(U&&d&&(!(k&&y)||j==="click"||j==="mousedown"));if(gd(T.target)){const _=zt(v,T,T.target);G&&C==="touch"&&m>0?w.start(m,()=>{o.setOpen(!0,_)}):o.setOpen(G,_);return}const Y=R.currentTarget;x.request(()=>{const _=zt(v,T,Y);G&&C==="touch"&&m>0?w.start(m,()=>{o.setOpen(!0,_)}):o.setOpen(G,_)})},onClick(R){if(f==="mousedown-only")return;const C=h.current;if(f==="mousedown"&&C){h.current=void 0;return}if(Fp(C)&&p)return;const T=o.select("open"),U=r.current.openEvent,k=o.select("domReferenceElement")!==R.currentTarget,j=T&&k||!(T&&d&&(!(U&&y)||Sv(U))),L=zt(v,R.nativeEvent,R.currentTarget);j&&C==="touch"&&m>0?w.start(m,()=>{o.setOpen(!0,L)}):o.setOpen(j,L)},onKeyDown(){h.current=void 0}}),[r,f,p,o,y,d,x,w,m,v]);return S.useMemo(()=>c?{reference:E}:an,[c,E])}const yT={intentional:"onClick",sloppy:"onPointerDown"};function vT(){return!1}function bT(l){return{escapeKey:typeof l=="boolean"?l:(l==null?void 0:l.escapeKey)??!1,outsidePress:typeof l=="boolean"?l:(l==null?void 0:l.outsidePress)??!0}}function qv(l,i={}){const o="rootStore"in l?l.rootStore:l,r=o.useState("open"),c=o.useState("floatingElement"),{dataRef:f}=o.context,{enabled:d=!0,escapeKey:p=!0,outsidePress:y=!0,outsidePressEvent:m="sloppy",referencePress:v=vT,referencePressEvent:h="sloppy",bubbles:x,externalTree:w}=i,E=nu(w),R=Ze(typeof y=="function"?y:()=>!1),C=typeof y=="function"?R:y,T=C!==!1,U=Ze(()=>m),k=S.useRef(!1),j=S.useRef(!1),L=S.useRef(!1),{escapeKey:G,outsidePress:Y}=bT(x),_=S.useRef(null),le=kn(),ge=kn(),me=Ze(()=>{ge.clear(),f.current.insideReactTree=!1}),ue=S.useRef(!1),F=S.useRef(""),ae=Ze(v),he=Ze(A=>{var P;if(!r||!d||!p||A.key!=="Escape"||ue.current)return;const O=(P=f.current.floatingContext)==null?void 0:P.nodeId,W=E?zi(E.nodesRef.current,O):[];if(!G&&W.length>0){let de=!0;if(W.forEach(ce=>{var be;(be=ce.context)!=null&&be.open&&!ce.context.dataRef.current.__escapeKeyBubbles&&(de=!1)}),!de)return}const Q=GE(A)?A.nativeEvent:A,te=zt(Rw,Q);o.setOpen(!1,te),!G&&!te.isPropagationAllowed&&A.stopPropagation()}),M=Ze(()=>{f.current.insideReactTree=!0,ge.start(0,me)});S.useEffect(()=>{if(!r||!d)return;f.current.__escapeKeyBubbles=G,f.current.__outsidePressBubbles=Y;const A=new Ha,O=new Ha;function W(){A.clear(),ue.current=!0}function Q(){A.start(Zs()?5:0,()=>{ue.current=!1})}function te(){L.current=!0,O.start(0,()=>{L.current=!1})}function P(){k.current=!1,j.current=!1}function de(){const B=F.current,$=B==="pen"||!B?"mouse":B,re=U(),xe=typeof re=="function"?re():re;return typeof xe=="string"?xe:xe[$]}function ce(B){const $=de();return $==="intentional"&&B.type!=="click"||$==="sloppy"&&B.type==="click"}function be(B){var xe;const $=(xe=f.current.floatingContext)==null?void 0:xe.nodeId,re=E&&zi(E.nodesRef.current,$).some(Ue=>{var Xe;return Pn(B,(Xe=Ue.context)==null?void 0:Xe.elements.floating)});return Pn(B,o.select("floatingElement"))||Pn(B,o.select("domReferenceElement"))||re}function De(B){var Qe;if(ce(B)){me();return}if(f.current.insideReactTree){me();return}const $=tl(B),re=`[${Ys("inert")}]`;let xe=Array.from(jt(o.select("floatingElement")).querySelectorAll(re));const Ue=Bt($)?$.getRootNode():null;Vo(Ue)&&(xe=xe.concat(Array.from(Ue.querySelectorAll(re))));const Xe=o.context.triggerElements;if($&&(Xe.hasElement($)||Xe.hasMatchingElement(He=>ht(He,$))))return;let ut=Bt($)?$:null;for(;ut&&!jl(ut);){const He=kl(ut);if(jl(He)||!Bt(He))break;ut=He}if(xe.length&&Bt($)&&!qE($)&&!ht($,o.select("floatingElement"))&&xe.every(He=>!ht(ut,He)))return;if(Ft($)&&!("touches"in B)){const He=jl($),rt=Ln($),gt=/auto|scroll/,pt=He||gt.test(rt.overflowX),Ut=He||gt.test(rt.overflowY),it=pt&&$.clientWidth>0&&$.scrollWidth>$.clientWidth,ot=Ut&&$.clientHeight>0&&$.scrollHeight>$.clientHeight,Tt=rt.direction==="rtl",qe=ot&&(Tt?B.offsetX<=$.offsetWidth-$.clientWidth:B.offsetX>$.clientWidth),ct=it&&B.offsetY>$.clientHeight;if(qe||ct)return}if(be(B))return;if(de()==="intentional"&&L.current){O.clear(),L.current=!1;return}if(typeof C=="function"&&!C(B))return;const Je=(Qe=f.current.floatingContext)==null?void 0:Qe.nodeId,ke=E?zi(E.nodesRef.current,Je):[];if(ke.length>0){let He=!0;if(ke.forEach(rt=>{var gt;(gt=rt.context)!=null&&gt.open&&!rt.context.dataRef.current.__outsidePressBubbles&&(He=!1)}),!He)return}o.setOpen(!1,zt(Ed,B)),me()}function we(B){de()!=="sloppy"||B.pointerType==="touch"||!o.select("open")||!d||Pn(B,o.select("floatingElement"))||Pn(B,o.select("domReferenceElement"))||De(B)}function Ye(B){if(de()!=="sloppy"||!o.select("open")||!d||Pn(B,o.select("floatingElement"))||Pn(B,o.select("domReferenceElement")))return;const $=B.touches[0];$&&(_.current={startTime:Date.now(),startX:$.clientX,startY:$.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},le.start(1e3,()=>{_.current&&(_.current.dismissOnTouchEnd=!1,_.current.dismissOnMouseDown=!1)}))}function Se(B){F.current="touch";const $=tl(B);function re(){Ye(B),$==null||$.removeEventListener(B.type,re)}$==null||$.addEventListener(B.type,re)}function pe(B){if(le.clear(),B.type==="pointerdown"&&(F.current=B.pointerType),B.type==="mousedown"&&_.current&&!_.current.dismissOnMouseDown)return;const $=tl(B);function re(){B.type==="pointerdown"?we(B):De(B),$==null||$.removeEventListener(B.type,re)}$==null||$.addEventListener(B.type,re)}function Re(B){if(!k.current)return;const $=j.current;if(P(),de()==="intentional"){if(B.type==="pointercancel"){$&&te();return}if(!be(B)){if($){te();return}typeof C=="function"&&!C(B)||(O.clear(),L.current=!0,me())}}}function Ge(B){if(de()!=="sloppy"||!_.current||Pn(B,o.select("floatingElement"))||Pn(B,o.select("domReferenceElement")))return;const $=B.touches[0];if(!$)return;const re=Math.abs($.clientX-_.current.startX),xe=Math.abs($.clientY-_.current.startY),Ue=Math.sqrt(re*re+xe*xe);Ue>5&&(_.current.dismissOnTouchEnd=!0),Ue>10&&(De(B),le.clear(),_.current=null)}function ye(B){const $=tl(B);function re(){Ge(B),$==null||$.removeEventListener(B.type,re)}$==null||$.addEventListener(B.type,re)}function Ee(B){de()!=="sloppy"||!_.current||Pn(B,o.select("floatingElement"))||Pn(B,o.select("domReferenceElement"))||(_.current.dismissOnTouchEnd&&De(B),le.clear(),_.current=null)}function fe(B){const $=tl(B);function re(){Ee(B),$==null||$.removeEventListener(B.type,re)}$==null||$.addEventListener(B.type,re)}const oe=jt(c);return p&&(oe.addEventListener("keydown",he),oe.addEventListener("compositionstart",W),oe.addEventListener("compositionend",Q)),T&&(oe.addEventListener("click",pe,!0),oe.addEventListener("pointerdown",pe,!0),oe.addEventListener("pointerup",Re,!0),oe.addEventListener("pointercancel",Re,!0),oe.addEventListener("mousedown",pe,!0),oe.addEventListener("mouseup",Re,!0),oe.addEventListener("touchstart",Se,!0),oe.addEventListener("touchmove",ye,!0),oe.addEventListener("touchend",fe,!0)),()=>{p&&(oe.removeEventListener("keydown",he),oe.removeEventListener("compositionstart",W),oe.removeEventListener("compositionend",Q)),T&&(oe.removeEventListener("click",pe,!0),oe.removeEventListener("pointerdown",pe,!0),oe.removeEventListener("pointerup",Re,!0),oe.removeEventListener("pointercancel",Re,!0),oe.removeEventListener("mousedown",pe,!0),oe.removeEventListener("mouseup",Re,!0),oe.removeEventListener("touchstart",Se,!0),oe.removeEventListener("touchmove",ye,!0),oe.removeEventListener("touchend",fe,!0)),A.clear(),O.clear(),P(),L.current=!1}},[f,c,p,T,C,r,d,G,Y,he,me,U,E,o,le]),S.useEffect(me,[C,me]);const N=S.useMemo(()=>({onKeyDown:he,[yT[h]]:A=>{ae()&&o.setOpen(!1,zt(nd,A.nativeEvent))},...h!=="intentional"&&{onClick(A){ae()&&o.setOpen(!1,zt(nd,A.nativeEvent))}}}),[he,o,h,ae]),X=Ze(A=>{if(!r||!d||A.button!==0)return;const O=tl(A.nativeEvent);ht(o.select("floatingElement"),O)&&(k.current||(k.current=!0,j.current=!1))}),I=Ze(A=>{!r||!d||(A.defaultPrevented||A.nativeEvent.defaultPrevented)&&k.current&&(j.current=!0)}),q=S.useMemo(()=>({onKeyDown:he,onPointerDown:I,onMouseDown:I,onClickCapture:M,onMouseDownCapture(A){M(),X(A)},onPointerDownCapture(A){M(),X(A)},onMouseUpCapture:M,onTouchEndCapture:M,onTouchMoveCapture:M}),[he,M,X,I]);return S.useMemo(()=>d?{reference:N,floating:q,trigger:N}:{},[d,N,q])}function sy(l,i,o){let{reference:r,floating:c}=l;const f=In(i),d=vd(i),p=yd(d),y=Un(i),m=f==="y",v=r.x+r.width/2-c.width/2,h=r.y+r.height/2-c.height/2,x=r[p]/2-c[p]/2;let w;switch(y){case"top":w={x:v,y:r.y-c.height};break;case"bottom":w={x:v,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-c.width,y:h};break;default:w={x:r.x,y:r.y}}switch(ga(i)){case"start":w[d]-=x*(o&&m?-1:1);break;case"end":w[d]+=x*(o&&m?-1:1);break}return w}async function ST(l,i){var o;i===void 0&&(i={});const{x:r,y:c,platform:f,rects:d,elements:p,strategy:y}=l,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:h="floating",altBoundary:x=!1,padding:w=0}=Ul(i,l),E=xv(w),C=p[x?h==="floating"?"reference":"floating":h],T=Qo(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(C)))==null||o?C:C.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(p.floating)),boundary:m,rootBoundary:v,strategy:y})),U=h==="floating"?{x:r,y:c,width:d.floating.width,height:d.floating.height}:d.reference,k=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p.floating)),j=await(f.isElement==null?void 0:f.isElement(k))?await(f.getScale==null?void 0:f.getScale(k))||{x:1,y:1}:{x:1,y:1},L=Qo(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:U,offsetParent:k,strategy:y}):U);return{top:(T.top-L.top+E.top)/j.y,bottom:(L.bottom-T.bottom+E.bottom)/j.y,left:(T.left-L.left+E.left)/j.x,right:(L.right-T.right+E.right)/j.x}}const xT=50,ET=async(l,i,o)=>{const{placement:r="bottom",strategy:c="absolute",middleware:f=[],platform:d}=o,p=d.detectOverflow?d:{...d,detectOverflow:ST},y=await(d.isRTL==null?void 0:d.isRTL(i));let m=await d.getElementRects({reference:l,floating:i,strategy:c}),{x:v,y:h}=sy(m,r,y),x=r,w=0;const E={};for(let R=0;R<f.length;R++){const C=f[R];if(!C)continue;const{name:T,fn:U}=C,{x:k,y:j,data:L,reset:G}=await U({x:v,y:h,initialPlacement:r,placement:x,strategy:c,middlewareData:E,rects:m,platform:p,elements:{reference:l,floating:i}});v=k??v,h=j??h,E[T]={...E[T],...L},G&&w<xT&&(w++,typeof G=="object"&&(G.placement&&(x=G.placement),G.rects&&(m=G.rects===!0?await d.getElementRects({reference:l,floating:i,strategy:c}):G.rects),{x:v,y:h}=sy(m,x,y)),R=-1)}return{x:v,y:h,placement:x,strategy:c,middlewareData:E}},wT=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var o,r;const{placement:c,middlewareData:f,rects:d,initialPlacement:p,platform:y,elements:m}=i,{mainAxis:v=!0,crossAxis:h=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...C}=Ul(l,i);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const T=Un(c),U=In(p),k=Un(p)===p,j=await(y.isRTL==null?void 0:y.isRTL(m.floating)),L=x||(k||!R?[Ds(p)]:ZE(p)),G=E!=="none";!x&&G&&L.push(...WE(p,R,E,j));const Y=[p,...L],_=await y.detectOverflow(i,C),le=[];let ge=((r=f.flip)==null?void 0:r.overflows)||[];if(v&&le.push(_[T]),h){const ae=KE(c,d,j);le.push(_[ae[0]],_[ae[1]])}if(ge=[...ge,{placement:c,overflows:le}],!le.every(ae=>ae<=0)){var me,ue;const ae=(((me=f.flip)==null?void 0:me.index)||0)+1,he=Y[ae];if(he&&(!(h==="alignment"?U!==In(he):!1)||ge.every(X=>In(X.placement)===U?X.overflows[0]>0:!0)))return{data:{index:ae,overflows:ge},reset:{placement:he}};let M=(ue=ge.filter(N=>N.overflows[0]<=0).sort((N,X)=>N.overflows[1]-X.overflows[1])[0])==null?void 0:ue.placement;if(!M)switch(w){case"bestFit":{var F;const N=(F=ge.filter(X=>{if(G){const I=In(X.placement);return I===U||I==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(I=>I>0).reduce((I,q)=>I+q,0)]).sort((X,I)=>X[1]-I[1])[0])==null?void 0:F[0];N&&(M=N);break}case"initialPlacement":M=p;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function uy(l,i){return{top:l.top-i.height,right:l.right-i.width,bottom:l.bottom-i.height,left:l.left-i.width}}function cy(l){return XE.some(i=>l[i]>=0)}const TT=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(i){const{rects:o,platform:r}=i,{strategy:c="referenceHidden",...f}=Ul(l,i);switch(c){case"referenceHidden":{const d=await r.detectOverflow(i,{...f,elementContext:"reference"}),p=uy(d,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:cy(p)}}}case"escaped":{const d=await r.detectOverflow(i,{...f,altBoundary:!0}),p=uy(d,o.floating);return{data:{escapedOffsets:p,escaped:cy(p)}}}default:return{}}}}},Gv=new Set(["left","top"]);async function RT(l,i){const{placement:o,platform:r,elements:c}=l,f=await(r.isRTL==null?void 0:r.isRTL(c.floating)),d=Un(o),p=ga(o),y=In(o)==="y",m=Gv.has(d)?-1:1,v=f&&y?-1:1,h=Ul(i,l);let{mainAxis:x,crossAxis:w,alignmentAxis:E}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return p&&typeof E=="number"&&(w=p==="end"?E*-1:E),y?{x:w*v,y:x*m}:{x:x*m,y:w*v}}const AT=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var o,r;const{x:c,y:f,placement:d,middlewareData:p}=i,y=await RT(i,l);return d===((o=p.offset)==null?void 0:o.placement)&&(r=p.arrow)!=null&&r.alignmentOffset?{}:{x:c+y.x,y:f+y.y,data:{...y,placement:d}}}}},CT=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){const{x:o,y:r,placement:c,platform:f}=i,{mainAxis:d=!0,crossAxis:p=!1,limiter:y={fn:T=>{let{x:U,y:k}=T;return{x:U,y:k}}},...m}=Ul(l,i),v={x:o,y:r},h=await f.detectOverflow(i,m),x=In(Un(c)),w=pd(x);let E=v[w],R=v[x];if(d){const T=w==="y"?"top":"left",U=w==="y"?"bottom":"right",k=E+h[T],j=E-h[U];E=$f(k,E,j)}if(p){const T=x==="y"?"top":"left",U=x==="y"?"bottom":"right",k=R+h[T],j=R-h[U];R=$f(k,R,j)}const C=y.fn({...i,[w]:E,[x]:R});return{...C,data:{x:C.x-o,y:C.y-r,enabled:{[w]:d,[x]:p}}}}}},MT=function(l){return l===void 0&&(l={}),{options:l,fn(i){const{x:o,y:r,placement:c,rects:f,middlewareData:d}=i,{offset:p=0,mainAxis:y=!0,crossAxis:m=!0}=Ul(l,i),v={x:o,y:r},h=In(c),x=pd(h);let w=v[x],E=v[h];const R=Ul(p,i),C=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(y){const k=x==="y"?"height":"width",j=f.reference[x]-f.floating[k]+C.mainAxis,L=f.reference[x]+f.reference[k]-C.mainAxis;w<j?w=j:w>L&&(w=L)}if(m){var T,U;const k=x==="y"?"width":"height",j=Gv.has(Un(c)),L=f.reference[h]-f.floating[k]+(j&&((T=d.offset)==null?void 0:T[h])||0)+(j?0:C.crossAxis),G=f.reference[h]+f.reference[k]+(j?0:((U=d.offset)==null?void 0:U[h])||0)-(j?C.crossAxis:0);E<L?E=L:E>G&&(E=G)}return{[x]:w,[h]:E}}}},OT=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var o,r;const{placement:c,rects:f,platform:d,elements:p}=i,{apply:y=()=>{},...m}=Ul(l,i),v=await d.detectOverflow(i,m),h=Un(c),x=ga(c),w=In(c)==="y",{width:E,height:R}=f.floating;let C,T;h==="top"||h==="bottom"?(C=h,T=x===(await(d.isRTL==null?void 0:d.isRTL(p.floating))?"start":"end")?"left":"right"):(T=h,C=x==="end"?"top":"bottom");const U=R-v.top-v.bottom,k=E-v.left-v.right,j=Di(R-v[C],U),L=Di(E-v[T],k),G=!i.middlewareData.shift;let Y=j,_=L;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(_=k),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(Y=U),G&&!x){const ge=jn(v.left,0),me=jn(v.right,0),ue=jn(v.top,0),F=jn(v.bottom,0);w?_=E-2*(ge!==0||me!==0?ge+me:jn(v.left,v.right)):Y=R-2*(ue!==0||F!==0?ue+F:jn(v.top,v.bottom))}await y({...i,availableWidth:_,availableHeight:Y});const le=await d.getDimensions(p.floating);return E!==le.width||R!==le.height?{reset:{rects:!0}}:{}}}};function Xv(l){const i=Ln(l);let o=parseFloat(i.width)||0,r=parseFloat(i.height)||0;const c=Ft(l),f=c?l.offsetWidth:o,d=c?l.offsetHeight:r,p=Ns(o)!==f||Ns(r)!==d;return p&&(o=f,r=d),{width:o,height:r,$:p}}function Rd(l){return Bt(l)?l:l.contextElement}function Ni(l){const i=Rd(l);if(!Ft(i))return ul(1);const o=i.getBoundingClientRect(),{width:r,height:c,$:f}=Xv(i);let d=(f?Ns(o.width):o.width)/r,p=(f?Ns(o.height):o.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const zT=ul(0);function Qv(l){const i=en(l);return!Zs()||!i.visualViewport?zT:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function _T(l,i,o){return i===void 0&&(i=!1),!o||i&&o!==en(l)?!1:i}function Va(l,i,o,r){i===void 0&&(i=!1),o===void 0&&(o=!1);const c=l.getBoundingClientRect(),f=Rd(l);let d=ul(1);i&&(r?Bt(r)&&(d=Ni(r)):d=Ni(l));const p=_T(f,o,r)?Qv(f):ul(0);let y=(c.left+p.x)/d.x,m=(c.top+p.y)/d.y,v=c.width/d.x,h=c.height/d.y;if(f){const x=en(f),w=r&&Bt(r)?en(r):r;let E=x,R=Xf(E);for(;R&&r&&w!==E;){const C=Ni(R),T=R.getBoundingClientRect(),U=Ln(R),k=T.left+(R.clientLeft+parseFloat(U.paddingLeft))*C.x,j=T.top+(R.clientTop+parseFloat(U.paddingTop))*C.y;y*=C.x,m*=C.y,v*=C.x,h*=C.y,y+=k,m+=j,E=en(R),R=Xf(E)}}return Qo({width:v,height:h,x:y,y:m})}function lu(l,i){const o=Is(l).scrollLeft;return i?i.left+o:Va(cl(l)).left+o}function Kv(l,i){const o=l.getBoundingClientRect(),r=o.left+i.scrollLeft-lu(l,o),c=o.top+i.scrollTop;return{x:r,y:c}}function NT(l){let{elements:i,rect:o,offsetParent:r,strategy:c}=l;const f=c==="fixed",d=cl(r),p=i?Ks(i.floating):!1;if(r===d||p&&f)return o;let y={scrollLeft:0,scrollTop:0},m=ul(1);const v=ul(0),h=Ft(r);if((h||!h&&!f)&&((da(r)!=="body"||ma(d))&&(y=Is(r)),h)){const w=Va(r);m=Ni(r),v.x=w.x+r.clientLeft,v.y=w.y+r.clientTop}const x=d&&!h&&!f?Kv(d,y):ul(0);return{width:o.width*m.x,height:o.height*m.y,x:o.x*m.x-y.scrollLeft*m.x+v.x+x.x,y:o.y*m.y-y.scrollTop*m.y+v.y+x.y}}function DT(l){return Array.from(l.getClientRects())}function jT(l){const i=cl(l),o=Is(l),r=l.ownerDocument.body,c=jn(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),f=jn(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let d=-o.scrollLeft+lu(l);const p=-o.scrollTop;return Ln(r).direction==="rtl"&&(d+=jn(i.clientWidth,r.clientWidth)-c),{width:c,height:f,x:d,y:p}}const fy=25;function kT(l,i){const o=en(l),r=cl(l),c=o.visualViewport;let f=r.clientWidth,d=r.clientHeight,p=0,y=0;if(c){f=c.width,d=c.height;const v=Zs();(!v||v&&i==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}const m=lu(r);if(m<=0){const v=r.ownerDocument,h=v.body,x=getComputedStyle(h),w=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(r.clientWidth-h.clientWidth-w);E<=fy&&(f-=E)}else m<=fy&&(f+=m);return{width:f,height:d,x:p,y}}function UT(l,i){const o=Va(l,!0,i==="fixed"),r=o.top+l.clientTop,c=o.left+l.clientLeft,f=Ft(l)?Ni(l):ul(1),d=l.clientWidth*f.x,p=l.clientHeight*f.y,y=c*f.x,m=r*f.y;return{width:d,height:p,x:y,y:m}}function dy(l,i,o){let r;if(i==="viewport")r=kT(l,o);else if(i==="document")r=jT(cl(l));else if(Bt(i))r=UT(i,o);else{const c=Qv(l);r={x:i.x-c.x,y:i.y-c.y,width:i.width,height:i.height}}return Qo(r)}function Zv(l,i){const o=kl(l);return o===i||!Bt(o)||jl(o)?!1:Ln(o).position==="fixed"||Zv(o,i)}function LT(l,i){const o=i.get(l);if(o)return o;let r=Yo(l,[],!1).filter(p=>Bt(p)&&da(p)!=="body"),c=null;const f=Ln(l).position==="fixed";let d=f?kl(l):l;for(;Bt(d)&&!jl(d);){const p=Ln(d),y=sd(d);!y&&p.position==="fixed"&&(c=null),(f?!y&&!c:!y&&p.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||ma(d)&&!y&&Zv(l,d))?r=r.filter(v=>v!==d):c=p,d=kl(d)}return i.set(l,r),r}function BT(l){let{element:i,boundary:o,rootBoundary:r,strategy:c}=l;const d=[...o==="clippingAncestors"?Ks(i)?[]:LT(i,this._c):[].concat(o),r],p=dy(i,d[0],c);let y=p.top,m=p.right,v=p.bottom,h=p.left;for(let x=1;x<d.length;x++){const w=dy(i,d[x],c);y=jn(w.top,y),m=Di(w.right,m),v=Di(w.bottom,v),h=jn(w.left,h)}return{width:m-h,height:v-y,x:h,y}}function HT(l){const{width:i,height:o}=Xv(l);return{width:i,height:o}}function VT(l,i,o){const r=Ft(i),c=cl(i),f=o==="fixed",d=Va(l,!0,f,i);let p={scrollLeft:0,scrollTop:0};const y=ul(0);function m(){y.x=lu(c)}if(r||!r&&!f)if((da(i)!=="body"||ma(c))&&(p=Is(i)),r){const w=Va(i,!0,f,i);y.x=w.x+i.clientLeft,y.y=w.y+i.clientTop}else c&&m();f&&!r&&c&&m();const v=c&&!r&&!f?Kv(c,p):ul(0),h=d.left+p.scrollLeft-y.x-v.x,x=d.top+p.scrollTop-y.y-v.y;return{x:h,y:x,width:d.width,height:d.height}}function Df(l){return Ln(l).position==="static"}function my(l,i){if(!Ft(l)||Ln(l).position==="fixed")return null;if(i)return i(l);let o=l.offsetParent;return cl(l)===o&&(o=o.ownerDocument.body),o}function Iv(l,i){const o=en(l);if(Ks(l))return o;if(!Ft(l)){let c=kl(l);for(;c&&!jl(c);){if(Bt(c)&&!Df(c))return c;c=kl(c)}return o}let r=my(l,i);for(;r&&lx(r)&&Df(r);)r=my(r,i);return r&&jl(r)&&Df(r)&&!sd(r)?o:r||ox(l)||o}const YT=async function(l){const i=this.getOffsetParent||Iv,o=this.getDimensions,r=await o(l.floating);return{reference:VT(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qT(l){return Ln(l).direction==="rtl"}const Fv={convertOffsetParentRelativeRectToViewportRelativeRect:NT,getDocumentElement:cl,getClippingRect:BT,getOffsetParent:Iv,getElementRects:YT,getClientRects:DT,getDimensions:HT,getScale:Ni,isElement:Bt,isRTL:qT};function Jv(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function GT(l,i){let o=null,r;const c=cl(l);function f(){var p;clearTimeout(r),(p=o)==null||p.disconnect(),o=null}function d(p,y){p===void 0&&(p=!1),y===void 0&&(y=1),f();const m=l.getBoundingClientRect(),{left:v,top:h,width:x,height:w}=m;if(p||i(),!x||!w)return;const E=Ua(h),R=Ua(c.clientWidth-(v+x)),C=Ua(c.clientHeight-(h+w)),T=Ua(v),k={rootMargin:-E+"px "+-R+"px "+-C+"px "+-T+"px",threshold:jn(0,Di(1,y))||1};let j=!0;function L(G){const Y=G[0].intersectionRatio;if(Y!==y){if(!j)return d();Y?d(!1,Y):r=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!Jv(m,l.getBoundingClientRect())&&d(),j=!1}try{o=new IntersectionObserver(L,{...k,root:c.ownerDocument})}catch{o=new IntersectionObserver(L,k)}o.observe(l)}return d(!0),f}function hy(l,i,o,r){r===void 0&&(r={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,m=Rd(l),v=c||f?[...m?Yo(m):[],...i?Yo(i):[]]:[];v.forEach(T=>{c&&T.addEventListener("scroll",o,{passive:!0}),f&&T.addEventListener("resize",o)});const h=m&&p?GT(m,o):null;let x=-1,w=null;d&&(w=new ResizeObserver(T=>{let[U]=T;U&&U.target===m&&w&&i&&(w.unobserve(i),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var k;(k=w)==null||k.observe(i)})),o()}),m&&!y&&w.observe(m),i&&w.observe(i));let E,R=y?Va(l):null;y&&C();function C(){const T=Va(l);R&&!Jv(R,T)&&o(),R=T,E=requestAnimationFrame(C)}return o(),()=>{var T;v.forEach(U=>{c&&U.removeEventListener("scroll",o),f&&U.removeEventListener("resize",o)}),h==null||h(),(T=w)==null||T.disconnect(),w=null,y&&cancelAnimationFrame(E)}}const XT=AT,QT=CT,KT=wT,ZT=OT,IT=TT,FT=MT,JT=(l,i,o)=>{const r=new Map,c={platform:Fv,...o},f={...c.platform,_c:r};return ET(l,i,{...c,platform:f})};var WT=typeof document<"u",$T=function(){},zs=WT?S.useLayoutEffect:$T;function qs(l,i){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(typeof l=="function"&&l.toString()===i.toString())return!0;let o,r,c;if(l&&i&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==i.length)return!1;for(r=o;r--!==0;)if(!qs(l[r],i[r]))return!1;return!0}if(c=Object.keys(l),o=c.length,o!==Object.keys(i).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(i,c[r]))return!1;for(r=o;r--!==0;){const f=c[r];if(!(f==="_owner"&&l.$$typeof)&&!qs(l[f],i[f]))return!1}return!0}return l!==l&&i!==i}function Wv(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function gy(l,i){const o=Wv(l);return Math.round(i*o)/o}function jf(l){const i=S.useRef(l);return zs(()=>{i.current=l}),i}function PT(l){l===void 0&&(l={});const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:c,elements:{reference:f,floating:d}={},transform:p=!0,whileElementsMounted:y,open:m}=l,[v,h]=S.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[x,w]=S.useState(r);qs(x,r)||w(r);const[E,R]=S.useState(null),[C,T]=S.useState(null),U=S.useCallback(X=>{X!==G.current&&(G.current=X,R(X))},[]),k=S.useCallback(X=>{X!==Y.current&&(Y.current=X,T(X))},[]),j=f||E,L=d||C,G=S.useRef(null),Y=S.useRef(null),_=S.useRef(v),le=y!=null,ge=jf(y),me=jf(c),ue=jf(m),F=S.useCallback(()=>{if(!G.current||!Y.current)return;const X={placement:i,strategy:o,middleware:x};me.current&&(X.platform=me.current),JT(G.current,Y.current,X).then(I=>{const q={...I,isPositioned:ue.current!==!1};ae.current&&!qs(_.current,q)&&(_.current=q,Ya.flushSync(()=>{h(q)}))})},[x,i,o,me,ue]);zs(()=>{m===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,h(X=>({...X,isPositioned:!1})))},[m]);const ae=S.useRef(!1);zs(()=>(ae.current=!0,()=>{ae.current=!1}),[]),zs(()=>{if(j&&(G.current=j),L&&(Y.current=L),j&&L){if(ge.current)return ge.current(j,L,F);F()}},[j,L,F,ge,le]);const he=S.useMemo(()=>({reference:G,floating:Y,setReference:U,setFloating:k}),[U,k]),M=S.useMemo(()=>({reference:j,floating:L}),[j,L]),N=S.useMemo(()=>{const X={position:o,left:0,top:0};if(!M.floating)return X;const I=gy(M.floating,v.x),q=gy(M.floating,v.y);return p?{...X,transform:"translate("+I+"px, "+q+"px)",...Wv(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:I,top:q}},[o,p,M.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:F,refs:he,elements:M,floatingStyles:N}),[v,F,he,M,N])}const eR=(l,i)=>{const o=XT(l);return{name:o.name,fn:o.fn,options:[l,i]}},tR=(l,i)=>{const o=QT(l);return{name:o.name,fn:o.fn,options:[l,i]}},nR=(l,i)=>({fn:FT(l).fn,options:[l,i]}),lR=(l,i)=>{const o=KT(l);return{name:o.name,fn:o.fn,options:[l,i]}},aR=(l,i)=>{const o=ZT(l);return{name:o.name,fn:o.fn,options:[l,i]}},iR=(l,i)=>{const o=IT(l);return{name:o.name,fn:o.fn,options:[l,i]}};var Gs=Symbol("NOT_FOUND");function oR(l,i=`expected a function, instead received ${typeof l}`){if(typeof l!="function")throw new TypeError(i)}function rR(l,i=`expected an object, instead received ${typeof l}`){if(typeof l!="object")throw new TypeError(i)}function sR(l,i="expected all items to be functions, instead received the following types: "){if(!l.every(o=>typeof o=="function")){const o=l.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${i}[${o}]`)}}var py=l=>Array.isArray(l)?l:[l];function uR(l){const i=Array.isArray(l[0])?l[0]:l;return sR(i,"createSelector expects all input-selectors to be functions, but received the following types: "),i}function cR(l,i){const o=[],{length:r}=l;for(let c=0;c<r;c++)o.push(l[c].apply(null,i));return o}function fR(l){let i;return{get(o){return i&&l(i.key,o)?i.value:Gs},put(o,r){i={key:o,value:r}},getEntries(){return i?[i]:[]},clear(){i=void 0}}}function dR(l,i){let o=[];function r(p){const y=o.findIndex(m=>i(p,m.key));if(y>-1){const m=o[y];return y>0&&(o.splice(y,1),o.unshift(m)),m.value}return Gs}function c(p,y){r(p)===Gs&&(o.unshift({key:p,value:y}),o.length>l&&o.pop())}function f(){return o}function d(){o=[]}return{get:r,put:c,getEntries:f,clear:d}}var mR=(l,i)=>l===i;function hR(l){return function(o,r){if(o===null||r===null||o.length!==r.length)return!1;const{length:c}=o;for(let f=0;f<c;f++)if(!l(o[f],r[f]))return!1;return!0}}function gR(l,i){const o=typeof i=="object"?i:{equalityCheck:i},{equalityCheck:r=mR,maxSize:c=1,resultEqualityCheck:f}=o,d=hR(r);let p=0;const y=c<=1?fR(d):dR(c,d);function m(){let v=y.get(arguments);if(v===Gs){if(v=l.apply(null,arguments),p++,f){const x=y.getEntries().find(w=>f(w.value,v));x&&(v=x.value,p!==0&&p--)}y.put(arguments,v)}return v}return m.clearCache=()=>{y.clear(),m.resetResultsCount()},m.resultsCount=()=>p,m.resetResultsCount=()=>{p=0},m}var pR=class{constructor(l){this.value=l}deref(){return this.value}},yR=typeof WeakRef<"u"?WeakRef:pR,vR=0,yy=1;function Es(){return{s:vR,v:void 0,o:null,p:null}}function $v(l,i={}){let o=Es();const{resultEqualityCheck:r}=i;let c,f=0;function d(){var h;let p=o;const{length:y}=arguments;for(let x=0,w=y;x<w;x++){const E=arguments[x];if(typeof E=="function"||typeof E=="object"&&E!==null){let R=p.o;R===null&&(p.o=R=new WeakMap);const C=R.get(E);C===void 0?(p=Es(),R.set(E,p)):p=C}else{let R=p.p;R===null&&(p.p=R=new Map);const C=R.get(E);C===void 0?(p=Es(),R.set(E,p)):p=C}}const m=p;let v;if(p.s===yy)v=p.v;else if(v=l.apply(null,arguments),f++,r){const x=((h=c==null?void 0:c.deref)==null?void 0:h.call(c))??c;x!=null&&r(x,v)&&(v=x,f!==0&&f--),c=typeof v=="object"&&v!==null||typeof v=="function"?new yR(v):v}return m.s=yy,m.v=v,v}return d.clearCache=()=>{o=Es(),d.resetResultsCount()},d.resultsCount=()=>f,d.resetResultsCount=()=>{f=0},d}function Pv(l,...i){const o=typeof l=="function"?{memoize:l,memoizeOptions:i}:l,r=(...c)=>{let f=0,d=0,p,y={},m=c.pop();typeof m=="object"&&(y=m,m=c.pop()),oR(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...o,...y},{memoize:h,memoizeOptions:x=[],argsMemoize:w=$v,argsMemoizeOptions:E=[]}=v,R=py(x),C=py(E),T=uR(c),U=h(function(){return f++,m.apply(null,arguments)},...R),k=w(function(){d++;const L=cR(T,arguments);return p=U.apply(null,L),p},...C);return Object.assign(k,{resultFunc:m,memoizedResultFunc:U,dependencies:T,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>p,recomputations:()=>f,resetRecomputations:()=>{f=0},memoize:h,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var bR=Pv($v),SR=Object.assign((l,i=bR)=>{rR(l,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof l}`);const o=Object.keys(l),r=o.map(f=>l[f]);return i(r,(...f)=>f.reduce((d,p,y)=>(d[o[y]]=p,d),{}))},{withTypes:()=>SR});Pv({memoize:gR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const _e=(l,i,o,r,c,f,...d)=>{if(d.length>0)throw new Error(Fn(1));let p;if(l)p=l;else throw new Error("Missing arguments");return p};var kf={exports:{}},Uf={};/**
 * @license React
 * use-sync-external-store-shim.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 vy;function xR(){if(vy)return Uf;vy=1;var l=Zo();function i(h,x){return h===x&&(h!==0||1/h===1/x)||h!==h&&x!==x}var o=typeof Object.is=="function"?Object.is:i,r=l.useState,c=l.useEffect,f=l.useLayoutEffect,d=l.useDebugValue;function p(h,x){var w=x(),E=r({inst:{value:w,getSnapshot:x}}),R=E[0].inst,C=E[1];return f(function(){R.value=w,R.getSnapshot=x,y(R)&&C({inst:R})},[h,w,x]),c(function(){return y(R)&&C({inst:R}),h(function(){y(R)&&C({inst:R})})},[h]),d(w),w}function y(h){var x=h.getSnapshot;h=h.value;try{var w=x();return!o(h,w)}catch{return!0}}function m(h,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return Uf.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:v,Uf}var by;function eb(){return by||(by=1,kf.exports=xR()),kf.exports}var ER=eb(),Lf={exports:{}},Bf={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.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 Sy;function wR(){if(Sy)return Bf;Sy=1;var l=Zo(),i=eb();function o(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var r=typeof Object.is=="function"?Object.is:o,c=i.useSyncExternalStore,f=l.useRef,d=l.useEffect,p=l.useMemo,y=l.useDebugValue;return Bf.useSyncExternalStoreWithSelector=function(m,v,h,x,w){var E=f(null);if(E.current===null){var R={hasValue:!1,value:null};E.current=R}else R=E.current;E=p(function(){function T(G){if(!U){if(U=!0,k=G,G=x(G),w!==void 0&&R.hasValue){var Y=R.value;if(w(Y,G))return j=Y}return j=G}if(Y=j,r(k,G))return Y;var _=x(G);return w!==void 0&&w(Y,_)?(k=G,Y):(k=G,j=_)}var U=!1,k,j,L=h===void 0?null:h;return[function(){return T(v())},L===null?void 0:function(){return T(L())}]},[v,h,x,w]);var C=c(m,E[0],E[1]);return d(function(){R.hasValue=!0,R.value=C},[C]),y(C),C},Bf}var xy;function TR(){return xy||(xy=1,Lf.exports=wR()),Lf.exports}var RR=TR();const AR=ud(19),CR=AR?OR:zR;function Ve(l,i,o,r,c){return CR(l,i,o,r,c)}function MR(l,i,o,r,c){const f=S.useCallback(()=>i(l.getSnapshot(),o,r,c),[l,i,o,r,c]);return ER.useSyncExternalStore(l.subscribe,f,f)}function OR(l,i,o,r,c){return MR(l,i,o,r,c)}function zR(l,i,o,r,c){return RR.useSyncExternalStoreWithSelector(l.subscribe,l.getSnapshot,l.getSnapshot,f=>i(f,o,r,c))}class tb{constructor(i){Lt(this,"subscribe",i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}));Lt(this,"getSnapshot",()=>this.state);this.state=i,this.listeners=new Set,this.updateTick=0}setState(i){if(this.state===i)return;this.state=i,this.updateTick+=1;const o=this.updateTick;for(const r of this.listeners){if(o!==this.updateTick)return;r(i)}}update(i){for(const o in i)if(!Object.is(this.state[o],i[o])){this.setState({...this.state,...i});return}}set(i,o){Object.is(this.state[i],o)||this.setState({...this.state,[i]:o})}notifyAll(){const i={...this.state};this.setState(i)}use(i,o,r,c){return Ve(this,i,o,r,c)}}class nb extends tb{constructor(i,o={},r){super(i),this.context=o,this.selectors=r}useSyncedValue(i,o){S.useDebugValue(i),Oe(()=>{this.state[i]!==o&&this.set(i,o)},[i,o])}useSyncedValueWithCleanup(i,o){const r=this;Oe(()=>(r.state[i]!==o&&r.set(i,o),()=>{r.set(i,void 0)}),[r,i,o])}useSyncedValues(i){const o=this,r=Object.values(i);Oe(()=>{o.update(i)},[o,...r])}useControlledProp(i,o){S.useDebugValue(i);const r=o!==void 0;Oe(()=>{r&&!Object.is(this.state[i],o)&&super.setState({...this.state,[i]:o})},[i,o,r])}select(i,o,r,c){const f=this.selectors[i];return f(this.state,o,r,c)}useState(i,o,r,c){return S.useDebugValue(i),Ve(this,this.selectors[i],o,r,c)}useContextCallback(i,o){S.useDebugValue(i);const r=Ze(o??dn);this.context[i]=r}useStateSetter(i){const o=S.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(i,r)}),o.current}observe(i,o){let r;typeof i=="function"?r=i:r=this.selectors[i];let c=r(this.state);return o(c,c,this),this.subscribe(f=>{const d=r(f);if(!Object.is(c,d)){const p=c;c=d,o(d,p,this)}})}}const _R={open:_e(l=>l.open),domReferenceElement:_e(l=>l.domReferenceElement),referenceElement:_e(l=>l.positionReference??l.referenceElement),floatingElement:_e(l=>l.floatingElement),floatingId:_e(l=>l.floatingId)};class Ad extends nb{constructor(o){const{nested:r,noEmit:c,onOpenChange:f,triggerElements:d,...p}=o;super({...p,positionReference:p.referenceElement,domReferenceElement:p.referenceElement},{onOpenChange:f,dataRef:{current:{}},events:uT(),nested:r,noEmit:c,triggerElements:d},_R);Lt(this,"setOpen",(o,r)=>{var c,f;if((!o||!this.state.open||Sv(r.event))&&(this.context.dataRef.current.openEvent=o?r.event:void 0),!this.context.noEmit){const d={open:o,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",d)}(f=(c=this.context).onOpenChange)==null||f.call(c,o,r)})}}function NR(l){const i=l.useState("open");Oe(()=>{if(i&&!l.select("activeTriggerId")&&l.context.triggerElements.size===1){const o=l.context.triggerElements.entries().next();if(!o.done){const[r,c]=o.value;l.update({activeTriggerId:r,activeTriggerElement:c})}}},[i,l])}function DR(l,i,o){const{mounted:r,setMounted:c,transitionStatus:f}=er(l);i.useSyncedValues({mounted:r,transitionStatus:f});const d=Ze(()=>{var y,m;c(!1),i.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),(m=(y=i.context).onOpenChangeComplete)==null||m.call(y,!1)}),p=i.useState("preventUnmountingOnClose");return Ga({enabled:!p,open:l,ref:i.context.popupRef,onComplete(){l||d()}}),{forceUnmount:d,transitionStatus:f}}class Cd{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(i,o){const r=this.idMap.get(i);r!==o&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(o),this.idMap.set(i,o))}delete(i){const o=this.idMap.get(i);o&&(this.elementsSet.delete(o),this.idMap.delete(i))}hasElement(i){return this.elementsSet.has(i)}hasMatchingElement(i){for(const o of this.elementsSet)if(i(o))return!0;return!1}getById(i){return this.idMap.get(i)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function jR(){return new Ad({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Cd,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function kR(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:jR(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:an,inactiveTriggerProps:an,popupProps:an}}const ws=_e(l=>l.triggerIdProp??l.activeTriggerId),UR={open:_e(l=>l.openProp??l.open),mounted:_e(l=>l.mounted),transitionStatus:_e(l=>l.transitionStatus),floatingRootContext:_e(l=>l.floatingRootContext),preventUnmountingOnClose:_e(l=>l.preventUnmountingOnClose),payload:_e(l=>l.payload),activeTriggerId:ws,activeTriggerElement:_e(l=>l.mounted?l.activeTriggerElement:null),isTriggerActive:_e((l,i)=>i!==void 0&&ws(l)===i),isOpenedByTrigger:_e((l,i)=>i!==void 0&&ws(l)===i&&l.open),isMountedByTrigger:_e((l,i)=>i!==void 0&&ws(l)===i&&l.mounted),triggerProps:_e((l,i)=>i?l.activeTriggerProps:l.inactiveTriggerProps),popupProps:_e(l=>l.popupProps),popupElement:_e(l=>l.popupElement),positionerElement:_e(l=>l.positionerElement)};function lb(l){const{open:i=!1,onOpenChange:o,elements:r={}}=l,c=Jo(),f=tu()!=null,d=Rn(()=>new Ad({open:i,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Cd,floatingId:c,nested:f,noEmit:!1})).current;return Oe(()=>{const p={open:i,floatingId:c};r.reference!==void 0&&(p.referenceElement=r.reference,p.domReferenceElement=Bt(r.reference)?r.reference:null),r.floating!==void 0&&(p.floatingElement=r.floating),d.update(p)},[i,c,r.reference,r.floating,d]),d.context.onOpenChange=o,d.context.nested=f,d.context.noEmit=!1,d}function LR(l={}){const{nodeId:i,externalTree:o}=l,r=lb(l),c=l.rootContext||r,f={reference:c.useState("referenceElement"),floating:c.useState("floatingElement"),domReference:c.useState("domReferenceElement")},[d,p]=S.useState(null),y=S.useRef(null),m=nu(o);Oe(()=>{f.domReference&&(y.current=f.domReference)},[f.domReference]);const v=PT({...l,elements:{...f,...d&&{reference:d}}}),h=S.useCallback(Y=>{const _=Bt(Y)?{getBoundingClientRect:()=>Y.getBoundingClientRect(),getClientRects:()=>Y.getClientRects(),contextElement:Y}:Y;p(_),v.refs.setReference(_)},[v.refs]),[x,w]=S.useState(null),[E,R]=S.useState(null);c.useSyncedValue("referenceElement",x),c.useSyncedValue("domReferenceElement",Bt(x)?x:null),c.useSyncedValue("floatingElement",E);const C=S.useCallback(Y=>{(Bt(Y)||Y===null)&&(y.current=Y,w(Y)),(Bt(v.refs.reference.current)||v.refs.reference.current===null||Y!==null&&!Bt(Y))&&v.refs.setReference(Y)},[v.refs,w]),T=S.useCallback(Y=>{R(Y),v.refs.setFloating(Y)},[v.refs]),U=S.useMemo(()=>({...v.refs,setReference:C,setFloating:T,setPositionReference:h,domReference:y}),[v.refs,C,T,h]),k=S.useMemo(()=>({...v.elements,domReference:f.domReference}),[v.elements,f.domReference]),j=c.useState("open"),L=c.useState("floatingId"),G=S.useMemo(()=>({...v,dataRef:c.context.dataRef,open:j,onOpenChange:c.setOpen,events:c.context.events,floatingId:L,refs:U,elements:k,nodeId:i,rootStore:c}),[v,U,k,i,c,j,L]);return Oe(()=>{c.context.dataRef.current.floatingContext=G;const Y=m==null?void 0:m.nodesRef.current.find(_=>_.id===i);Y&&(Y.context=G)}),S.useMemo(()=>({...v,context:G,refs:U,elements:k,rootStore:c}),[v,U,k,G,c])}function BR(l){const{popupStore:i,noEmit:o=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:c}=l,f=Jo(),d=tu()!=null,p=i.useState("open"),y=i.useState("activeTriggerElement"),m=i.useState(r?"popupElement":"positionerElement"),v=i.context.triggerElements,h=Rn(()=>new Ad({open:p,referenceElement:y,floatingElement:m,triggerElements:v,onOpenChange:c,floatingId:f,nested:d,noEmit:o})).current;return Oe(()=>{const x={open:p,floatingId:f,referenceElement:y,floatingElement:m};Bt(y)&&(x.domReferenceElement=y),h.state.positionReference===h.state.referenceElement&&(x.positionReference=y),h.update(x)},[p,f,y,m,h]),h.context.onOpenChange=c,h.context.nested=d,h.context.noEmit=o,h}function ab(l=[]){const i=l.map(m=>m==null?void 0:m.reference),o=l.map(m=>m==null?void 0:m.floating),r=l.map(m=>m==null?void 0:m.item),c=l.map(m=>m==null?void 0:m.trigger),f=S.useCallback(m=>Ts(m,l,"reference"),i),d=S.useCallback(m=>Ts(m,l,"floating"),o),p=S.useCallback(m=>Ts(m,l,"item"),r),y=S.useCallback(m=>Ts(m,l,"trigger"),c);return S.useMemo(()=>({getReferenceProps:f,getFloatingProps:d,getItemProps:p,getTriggerProps:y}),[f,d,p,y])}function Ts(l,i,o){var d;const r=new Map,c=o==="item",f={};o==="floating"&&(f.tabIndex=-1,f[Jf]="");for(const p in l)c&&l&&(p===pv||p===yv)||(f[p]=l[p]);for(let p=0;p<i.length;p+=1){let y;const m=(d=i[p])==null?void 0:d[o];typeof m=="function"?y=l?m(l):null:y=m,y&&Ey(f,y,c,r)}return Ey(f,l,c,r),f}function Ey(l,i,o,r){var c;for(const f in i){const d=i[f];o&&(f===pv||f===yv)||(f.startsWith("on")?(r.has(f)||r.set(f,[]),typeof d=="function"&&((c=r.get(f))==null||c.push(d),l[f]=(...p)=>{var y;return(y=r.get(f))==null?void 0:y.map(m=>m(...p)).find(m=>m!==void 0)})):l[f]=d)}}const HR="Escape";function au(l,i,o){switch(l){case"vertical":return i;case"horizontal":return o;default:return i||o}}function Rs(l,i){return au(i,l===hd||l===Wo,l===ca||l===fa)}function Hf(l,i,o){return au(i,l===Wo,o?l===ca:l===fa)||l==="Enter"||l===" "||l===""}function VR(l,i,o){return au(i,o?l===ca:l===fa,l===Wo)}function YR(l,i,o,r){const c=o?l===fa:l===ca,f=l===hd;return i==="both"||i==="horizontal"&&r&&r>1?l===HR:au(i,c,f)}function qR(l,i){const o="rootStore"in l?l.rootStore:l,r=o.useState("open"),c=o.useState("floatingElement"),f=o.useState("domReferenceElement"),d=o.context.dataRef,{listRef:p,activeIndex:y,onNavigate:m=()=>{},enabled:v=!0,selectedIndex:h=null,allowEscape:x=!1,loopFocus:w=!1,nested:E=!1,rtl:R=!1,virtual:C=!1,focusItemOnOpen:T="auto",focusItemOnHover:U=!0,openOnArrowKeyDown:k=!0,disabledIndices:j=void 0,orientation:L="vertical",parentOrientation:G,cols:Y=1,id:_,resetOnPointerLeave:le=!0,externalTree:ge}=i,me=Xo(c),ue=Tn(me),F=tu(),ae=nu(ge);Oe(()=>{d.current.orientation=L},[d,L]);const he=Wf(f),M=S.useRef(T),N=S.useRef(h??-1),X=S.useRef(null),I=S.useRef(!0),q=Ze(fe=>{m(N.current===-1?null:N.current,fe)}),A=S.useRef(q),O=S.useRef(!!c),W=S.useRef(r),Q=S.useRef(!1),te=S.useRef(!1),P=Tn(j),de=Tn(r),ce=Tn(h),be=Tn(le),De=Ze(()=>{function fe(re){C?ae==null||ae.events.emit("virtualfocus",re):Bo(re,{sync:Q.current,preventScroll:!0})}const oe=p.current[N.current],B=te.current;oe&&fe(oe),(Q.current?re=>re():requestAnimationFrame)(()=>{var Ue;const re=p.current[N.current]||oe;if(!re)return;oe||fe(re),Ye&&(B||!I.current)&&((Ue=re.scrollIntoView)==null||Ue.call(re,{block:"nearest",inline:"nearest"}))})});Oe(()=>{v&&(r&&c?(N.current=h??-1,M.current&&h!=null&&(te.current=!0,q())):O.current&&(N.current=-1,A.current()))},[v,r,c,h,q]),Oe(()=>{if(v){if(!r){Q.current=!1;return}if(c)if(y==null){if(Q.current=!1,ce.current!=null)return;if(O.current&&(N.current=-1,De()),(!W.current||!O.current)&&M.current&&(X.current!=null||M.current===!0&&X.current==null)){let fe=0;const oe=()=>{p.current[0]==null?(fe<2&&(fe?requestAnimationFrame:queueMicrotask)(oe),fe+=1):(N.current=X.current==null||Hf(X.current,L,R)||E?Rf(p):$p(p),X.current=null,q())};oe()}}else js(p,y)||(N.current=y,De(),te.current=!1)}},[v,r,c,y,ce,E,p,L,R,q,De,P]),Oe(()=>{var re,xe;if(!v||c||!ae||C||!O.current)return;const fe=ae.nodesRef.current,oe=(xe=(re=fe.find(Ue=>Ue.id===F))==null?void 0:re.context)==null?void 0:xe.elements.floating,B=el(jt(c)),$=fe.some(Ue=>Ue.context&&ht(Ue.context.elements.floating,B));oe&&!$&&I.current&&oe.focus({preventScroll:!0})},[v,c,ae,F,C]),Oe(()=>{A.current=q,W.current=r,O.current=!!c}),Oe(()=>{r||(X.current=null,M.current=T)},[r,T]);const we=y!=null,Ye=S.useMemo(()=>{function fe(B){if(!de.current)return;const $=p.current.indexOf(B.currentTarget);$!==-1&&N.current!==$&&(N.current=$,q(B))}return{onFocus(B){Q.current=!0,fe(B)},onClick:({currentTarget:B})=>B.focus({preventScroll:!0}),onMouseMove(B){Q.current=!0,te.current=!1,U&&fe(B)},onPointerLeave(B){if(!de.current||!I.current||B.pointerType==="touch")return;Q.current=!0;const $=B.relatedTarget;if(!(!U||p.current.includes($))&&be.current&&(Bo(null,{sync:!0}),N.current=-1,q(B),!C)){const re=ue.current,xe=el(jt(re));re&&ht(re,xe)&&re.focus({preventScroll:!0})}}}},[de,ue,U,p,q,be,C]),Se=S.useCallback(()=>{var fe,oe,B;return G??((B=(oe=(fe=ae==null?void 0:ae.nodesRef.current.find($=>$.id===F))==null?void 0:fe.context)==null?void 0:oe.dataRef)==null?void 0:B.current.orientation)},[F,ae,G]),pe=Ze(fe=>{if(I.current=!1,Q.current=!0,fe.which===229||!de.current&&fe.currentTarget===ue.current)return;if(E&&YR(fe.key,L,R,Y)){Rs(fe.key,Se())||Dn(fe),o.setOpen(!1,zt(Cf,fe.nativeEvent)),Ft(f)&&(C?ae==null||ae.events.emit("virtualfocus",f):f.focus());return}const oe=N.current,B=Rf(p,j),$=$p(p,j);if(he||(fe.key==="Home"&&(Dn(fe),N.current=B,q(fe)),fe.key==="End"&&(Dn(fe),N.current=$,q(fe))),Y>1){const re=Array.from({length:p.current.length},()=>({width:1,height:1})),xe=ew(re,Y),Ue=xe.findIndex(Je=>Je!=null&&!_i(p,Je,j)),Xe=xe.reduce((Je,ke,Qe)=>ke!=null&&!_i(p,ke,j)?Qe:Je,-1),ut=xe[PE({current:xe.map(Je=>Je!=null?p.current[Je]:null)},{event:fe,orientation:L,loopFocus:w,rtl:R,cols:Y,disabledIndices:nw([...(typeof j!="function"?j:null)||p.current.map((Je,ke)=>_i(p,ke,j)?ke:void 0),void 0],xe),minIndex:Ue,maxIndex:Xe,prevIndex:tw(N.current>$?B:N.current,re,xe,Y,fe.key===Wo?"bl":fe.key===(R?ca:fa)?"tr":"tl"),stopEvent:!0})];if(ut!=null&&(N.current=ut,q(fe)),L==="both")return}if(Rs(fe.key,L)){if(Dn(fe),r&&!C&&el(fe.currentTarget.ownerDocument)===fe.currentTarget){N.current=Hf(fe.key,L,R)?B:$,q(fe);return}Hf(fe.key,L,R)?w?oe>=$?x&&oe!==p.current.length?N.current=-1:(Q.current=!1,N.current=B):N.current=gn(p,{startingIndex:oe,disabledIndices:j}):N.current=Math.min($,gn(p,{startingIndex:oe,disabledIndices:j})):w?oe<=B?x&&oe!==-1?N.current=p.current.length:(Q.current=!1,N.current=$):N.current=gn(p,{startingIndex:oe,decrement:!0,disabledIndices:j}):N.current=Math.max(B,gn(p,{startingIndex:oe,decrement:!0,disabledIndices:j})),js(p,N.current)&&(N.current=-1),q(fe)}}),Re=S.useMemo(()=>C&&r&&we&&{"aria-activedescendant":`${_}-${y}`},[C,r,we,_,y]),Ge=S.useMemo(()=>({"aria-orientation":L==="both"?void 0:L,...he?{}:Re,onKeyDown(fe){if(fe.key==="Tab"&&fe.shiftKey&&r&&!C){const oe=tl(fe.nativeEvent);if(oe&&!ht(ue.current,oe))return;Dn(fe),o.setOpen(!1,zt(Ps,fe.nativeEvent)),Ft(f)&&f.focus();return}pe(fe)},onPointerMove(){I.current=!0}}),[Re,pe,ue,L,he,o,r,C,f]),ye=S.useMemo(()=>{function fe(B){T==="auto"&&vv(B.nativeEvent)&&(M.current=!C)}function oe(B){M.current=T,T==="auto"&&bv(B.nativeEvent)&&(M.current=!0)}return{onKeyDown(B){const $=o.select("open");I.current=!1;const re=B.key.startsWith("Arrow"),xe=VR(B.key,Se(),R),Ue=Rs(B.key,L),Xe=(E?xe:Ue)||B.key==="Enter"||B.key.trim()==="";if(C&&$)return pe(B);if(!(!$&&!k&&re)){if(Xe){const ut=Rs(B.key,Se());X.current=E&&ut?null:B.key}if(E){xe&&(Dn(B),$?(N.current=Rf(p,P.current),q(B)):o.setOpen(!0,zt(Cf,B.nativeEvent,B.currentTarget)));return}Ue&&(ce.current!=null&&(N.current=ce.current),Dn(B),!$&&k?o.setOpen(!0,zt(Cf,B.nativeEvent,B.currentTarget)):pe(B),$&&q(B))}},onFocus(B){o.select("open")&&!C&&(N.current=-1,q(B))},onPointerDown:oe,onPointerEnter:oe,onMouseDown:fe,onClick:fe}},[pe,P,T,p,E,q,o,k,L,Se,R,ce,C]),Ee=S.useMemo(()=>({...Re,...ye}),[Re,ye]);return S.useMemo(()=>v?{reference:Ee,floating:Ge,item:Ye,trigger:ye}:{},[v,Ee,Ge,ye,Ye])}const GR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function XR(l,i={}){const o="rootStore"in l?l.rootStore:l,r=o.useState("open"),c=o.useState("floatingId"),f=o.useState("domReferenceElement"),d=o.useState("floatingElement"),{role:p="dialog"}=i,y=Jo(),m=(f==null?void 0:f.id)||y,v=S.useMemo(()=>{var U;return((U=Xo(d))==null?void 0:U.id)||c},[d,c]),h=GR.get(p)??p,w=tu()!=null,E=S.useMemo(()=>h==="tooltip"||p==="label"?an:{"aria-haspopup":h==="alertdialog"?"dialog":h,"aria-expanded":"false",...h==="listbox"&&{role:"combobox"},...h==="menu"&&w&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[h,w,p]),R=S.useMemo(()=>h==="tooltip"||p==="label"?{[`aria-${p==="label"?"labelledby":"describedby"}`]:r?v:void 0}:{...E,"aria-expanded":r?"true":"false","aria-controls":r?v:void 0,...h==="menu"&&{id:m}},[h,v,r,m,p,E]),C=S.useMemo(()=>{const U={id:v,...h&&{role:h}};return h==="tooltip"||p==="label"?U:{...U,...h==="menu"&&{"aria-labelledby":m}}},[h,v,m,p]),T=S.useCallback(({active:U,selected:k})=>{const j={role:"option",...U&&{id:`${v}-fui-option`}};switch(p){case"select":case"combobox":return{...j,"aria-selected":k}}return{}},[v,p]);return S.useMemo(()=>({reference:R,floating:C,item:T,trigger:E}),[R,C,E,T])}function QR(l,i){const o="rootStore"in l?l.rootStore:l,r=o.context.dataRef,c=o.useState("open"),{listRef:f,elementsRef:d,activeIndex:p,onMatch:y,onTypingChange:m,enabled:v=!0,resetMs:h=750,selectedIndex:x=null}=i,w=kn(),E=S.useRef(""),R=S.useRef(x??p??-1),C=S.useRef(null);Oe(()=>{!c&&x!==null||(w.clear(),C.current=null,E.current!==""&&(E.current=""))},[c,x,w]),Oe(()=>{c&&E.current===""&&(R.current=x??p??-1)},[c,x,p]);const T=Ze(G=>{G?r.current.typing||(r.current.typing=G,m==null||m(G)):r.current.typing&&(r.current.typing=G,m==null||m(G))}),U=Ze(G=>{function Y(he){const M=d==null?void 0:d.current[he];return!M||bd(M)}function _(he,M,N=0){if(he.length===0)return-1;const X=(N%he.length+he.length)%he.length,I=M.toLocaleLowerCase();for(let q=0;q<he.length;q+=1){const A=(X+q)%he.length,O=he[A];if(!(!(O!=null&&O.toLocaleLowerCase().startsWith(I))||!Y(A)))return A}return-1}const le=f.current;if(E.current.length>0&&G.key===" "&&(Dn(G),T(!0)),E.current.length>0&&E.current[0]!==" "&&_(le,E.current)===-1&&G.key!==" "&&T(!1),le==null||G.key.length!==1||G.ctrlKey||G.metaKey||G.altKey)return;c&&G.key!==" "&&(Dn(G),T(!0));const ge=E.current==="";ge&&(R.current=x??p??-1),le.every(he=>{var M,N;return he?((M=he[0])==null?void 0:M.toLocaleLowerCase())!==((N=he[1])==null?void 0:N.toLocaleLowerCase()):!0})&&E.current===G.key&&(E.current="",R.current=C.current),E.current+=G.key,w.start(h,()=>{E.current="",R.current=C.current,T(!1)});const F=((ge?x??p??-1:R.current)??0)+1,ae=_(le,E.current,F);ae!==-1?(y==null||y(ae),C.current=ae):G.key!==" "&&(E.current="",T(!1))}),k=Ze(G=>{const Y=G.relatedTarget,_=o.select("domReferenceElement"),le=o.select("floatingElement"),ge=ht(_,Y),me=ht(le,Y);ge||me||(w.clear(),E.current="",R.current=C.current,T(!1))}),j=S.useMemo(()=>({onKeyDown:U,onBlur:k}),[U,k]),L=S.useMemo(()=>({onKeyDown:U,onBlur:k}),[U,k]);return S.useMemo(()=>v?{reference:j,floating:L}:{},[v,j,L])}let KR=(function(l){return l.nestedDialogs="--nested-dialogs",l})({}),ZR=(function(l){return l[l.open=La.open]="open",l[l.closed=La.closed]="closed",l[l.startingStyle=La.startingStyle]="startingStyle",l[l.endingStyle=La.endingStyle]="endingStyle",l.nested="data-nested",l.nestedDialogOpen="data-nested-dialog-open",l})({});const ib=S.createContext(void 0);function IR(){const l=S.useContext(ib);if(l===void 0)throw new Error(Fn(26));return l}const ob="ArrowUp",rb="ArrowDown",sb="ArrowLeft",ub="ArrowRight",cb="Home",fb="End",FR=new Set([sb,ub]),JR=new Set([ob,rb]),WR=new Set([...FR,...JR]);[...WR];const db=new Set([ob,rb,sb,ub,cb,fb]),$R={...eu,...Po,nestedDialogOpen(l){return l?{[ZR.nestedDialogOpen]:""}:null}},PR=S.forwardRef(function(i,o){const{className:r,finalFocus:c,initialFocus:f,render:d,...p}=i,{store:y}=Bi(),m=y.useState("descriptionElementId"),v=y.useState("disablePointerDismissal"),h=y.useState("floatingRootContext"),x=y.useState("popupProps"),w=y.useState("modal"),E=y.useState("mounted"),R=y.useState("nested"),C=y.useState("nestedOpenDialogCount"),T=y.useState("open"),U=y.useState("openMethod"),k=y.useState("titleElementId"),j=y.useState("transitionStatus"),L=y.useState("role");IR(),Ga({open:T,ref:y.context.popupRef,onComplete(){var me,ue;T&&((ue=(me=y.context).onOpenChangeComplete)==null||ue.call(me,!0))}});function G(me){return me==="touch"?y.context.popupRef.current:!0}const Y=f===void 0?G:f,_=C>0,ge=Jt("div",i,{state:{open:T,nested:R,transitionStatus:j,nestedDialogOpen:_},props:[x,{"aria-labelledby":k??void 0,"aria-describedby":m??void 0,role:L,tabIndex:-1,hidden:!E,onKeyDown(me){db.has(me.key)&&me.stopPropagation()},style:{[KR.nestedDialogs]:C}},p],ref:[o,y.context.popupRef,y.useStateSetter("popupElement")],stateAttributesMapping:$R});return H.jsx(Yv,{context:h,openInteractionType:U,disabled:!E,closeOnFocusOut:!v,initialFocus:Y,returnFocus:c,modal:w!==!1,restoreFocus:"popup",children:ge})});function mb(l){return ud(19)?l:l?"true":void 0}const hb=S.forwardRef(function(i,o){const{cutout:r,...c}=i;let f;if(r){const d=r==null?void 0:r.getBoundingClientRect();f=`polygon(
      0% 0%,
      100% 0%,
      100% 100%,
      0% 100%,
      0% 0%,
      ${d.left}px ${d.top}px,
      ${d.left}px ${d.bottom}px,
      ${d.right}px ${d.bottom}px,
      ${d.right}px ${d.top}px,
      ${d.left}px ${d.top}px
    )`}return H.jsx("div",{ref:o,role:"presentation","data-base-ui-inert":"",...c,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:f}})}),e2=S.forwardRef(function(i,o){const{keepMounted:r=!1,...c}=i,{store:f}=Bi(),d=f.useState("mounted"),p=f.useState("modal"),y=f.useState("open");return d||r?H.jsx(ib.Provider,{value:r,children:H.jsxs(Vv,{ref:o,...c,children:[d&&p===!0&&H.jsx(hb,{ref:f.context.internalBackdropRef,inert:mb(!y)}),i.children]})}):null});function gb(l){const i=S.useRef(!0);i.current&&(i.current=!1,l())}let wy={},Ty={},Ry="";function t2(l){if(typeof document>"u")return!1;const i=jt(l);return en(i).innerWidth-i.documentElement.clientWidth>0}function n2(l){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const o=jt(l),r=o.documentElement,c=o.body,f=ma(r)?r:c,d=f.style.overflowY,p=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",f.style.overflowY="scroll";const y=f.offsetWidth;f.style.overflowY="hidden";const m=f.offsetWidth;return f.style.overflowY=d,r.style.scrollbarGutter=p,y===m}function l2(l){const i=jt(l),o=i.documentElement,r=i.body,c=ma(o)?o:r,f={overflowY:c.style.overflowY,overflowX:c.style.overflowX};return Object.assign(c.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(c.style,f)}}function a2(l){var x;const i=jt(l),o=i.documentElement,r=i.body,c=en(o);let f=0,d=0,p=!1;const y=sl.create();if(md&&(((x=c.visualViewport)==null?void 0:x.scale)??1)!==1)return()=>{};function m(){const w=c.getComputedStyle(o),E=c.getComputedStyle(r),T=(w.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=o.scrollTop,d=o.scrollLeft,wy={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},Ry=o.style.scrollBehavior,Ty={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const U=o.scrollHeight>o.clientHeight,k=o.scrollWidth>o.clientWidth,j=w.overflowY==="scroll"||E.overflowY==="scroll",L=w.overflowX==="scroll"||E.overflowX==="scroll",G=Math.max(0,c.innerWidth-r.clientWidth),Y=Math.max(0,c.innerHeight-r.clientHeight),_=parseFloat(E.marginTop)+parseFloat(E.marginBottom),le=parseFloat(E.marginLeft)+parseFloat(E.marginRight),ge=ma(o)?o:r;if(p=n2(l),p){o.style.scrollbarGutter=T,ge.style.overflowY="hidden",ge.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(U||j)&&(o.style.overflowY="scroll"),(k||L)&&(o.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:_||Y?`calc(100dvh - ${_+Y}px)`:"100dvh",width:le||G?`calc(100vw - ${le+G}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=f,r.scrollLeft=d,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function v(){Object.assign(o.style,wy),Object.assign(r.style,Ty),p||(o.scrollTop=f,o.scrollLeft=d,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=Ry)}function h(){v(),y.request(m)}return m(),c.addEventListener("resize",h),()=>{y.cancel(),v(),typeof c.removeEventListener=="function"&&c.removeEventListener("resize",h)}}class i2{constructor(){Lt(this,"lockCount",0);Lt(this,"restore",null);Lt(this,"timeoutLock",Ha.create());Lt(this,"timeoutUnlock",Ha.create());Lt(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Lt(this,"unlock",()=>{var i;this.lockCount===0&&this.restore&&((i=this.restore)==null||i.call(this),this.restore=null)})}acquire(i){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(i)),this.release}lock(i){if(this.lockCount===0||this.restore!==null)return;const r=jt(i).documentElement,c=en(r).getComputedStyle(r).overflowY;if(c==="hidden"||c==="clip"){this.restore=dn;return}const f=gv||!t2(i);this.restore=f?l2(i):a2(i)}}const o2=new i2;function pb(l=!0,i=null){Oe(()=>{if(l)return o2.acquire(i)},[l,i])}function r2(l){const i=S.useRef(""),o=S.useCallback(c=>{c.defaultPrevented||(i.current=c.pointerType,l(c,c.pointerType))},[l]);return{onClick:S.useCallback(c=>{if(c.detail===0){l(c,"keyboard");return}"pointerType"in c?l(c,c.pointerType):l(c,i.current),i.current=""},[l]),onPointerDown:o}}function Md(l,i){const o=S.useRef(l),r=Ze(i);Oe(()=>{o.current!==l&&r(o.current)},[l,r]),Oe(()=>{o.current=l},[l])}function yb(l){const[i,o]=S.useState(null),r=Ze((d,p)=>{l||o(p||(gv?"touch":""))});Md(l,d=>{d&&!l&&o(null)});const{onClick:c,onPointerDown:f}=r2(r);return S.useMemo(()=>({openMethod:i,triggerProps:{onClick:c,onPointerDown:f}}),[i,c,f])}function s2(l){const{store:i,parentContext:o,actionsRef:r}=l,c=i.useState("open"),f=i.useState("disablePointerDismissal"),d=i.useState("modal"),p=i.useState("popupElement"),{openMethod:y,triggerProps:m}=yb(c);NR(i);const{forceUnmount:v}=DR(c,i),h=Ze(le=>{const ge=zt(le);return ge.preventUnmountOnClose=()=>{i.set("preventUnmountingOnClose",!0)},ge}),x=S.useCallback(()=>{i.setOpen(!1,h(Cw))},[i,h]);S.useImperativeHandle(r,()=>({unmount:v,close:x}),[v,x]);const w=BR({popupStore:i,onOpenChange:i.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[E,R]=S.useState(0),C=E===0,T=XR(w),U=qv(w,{outsidePressEvent(){return i.context.internalBackdropRef.current||i.context.backdropRef.current?"intentional":{mouse:d==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(le){if(!i.context.outsidePressEnabledRef.current||"button"in le&&le.button!==0||"touches"in le&&le.touches.length!==1)return!1;const ge=tl(le);if(C&&!f){const me=ge;return d&&(i.context.internalBackdropRef.current||i.context.backdropRef.current)?i.context.internalBackdropRef.current===me||i.context.backdropRef.current===me||ht(me,p)&&!(me!=null&&me.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:C});pb(c&&d===!0,p);const{getReferenceProps:k,getFloatingProps:j,getTriggerProps:L}=ab([T,U]);i.useContextCallback("onNestedDialogOpen",le=>{R(le+1)}),i.useContextCallback("onNestedDialogClose",()=>{R(0)}),S.useEffect(()=>(o!=null&&o.onNestedDialogOpen&&c&&o.onNestedDialogOpen(E),o!=null&&o.onNestedDialogClose&&!c&&o.onNestedDialogClose(),()=>{o!=null&&o.onNestedDialogClose&&c&&o.onNestedDialogClose()}),[c,o,E]);const G=S.useMemo(()=>k(m),[k,m]),Y=S.useMemo(()=>L(m),[L,m]),_=S.useMemo(()=>j(),[j]);i.useSyncedValues({openMethod:y,activeTriggerProps:G,inactiveTriggerProps:Y,popupProps:_,floatingRootContext:w,nestedOpenDialogCount:E})}const u2={...UR,modal:_e(l=>l.modal),nested:_e(l=>l.nested),nestedOpenDialogCount:_e(l=>l.nestedOpenDialogCount),disablePointerDismissal:_e(l=>l.disablePointerDismissal),openMethod:_e(l=>l.openMethod),descriptionElementId:_e(l=>l.descriptionElementId),titleElementId:_e(l=>l.titleElementId),viewportElement:_e(l=>l.viewportElement),role:_e(l=>l.role)};class c2 extends nb{constructor(o){super(f2(o),{popupRef:S.createRef(),backdropRef:S.createRef(),internalBackdropRef:S.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Cd,onOpenChange:void 0,onOpenChangeComplete:void 0},u2);Lt(this,"setOpen",(o,r)=>{var p,y,m,v;if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!o&&r.trigger==null&&this.state.activeTriggerId!=null&&(r.trigger=this.state.activeTriggerElement??void 0),(y=(p=this.context).onOpenChange)==null||y.call(p,o,r),r.isCanceled)return;const c={open:o,nativeEvent:r.event,reason:r.reason,nested:this.state.nested};(m=this.state.floatingRootContext.context.events)==null||m.emit("openchange",c);const f={open:o},d=((v=r.trigger)==null?void 0:v.id)??null;(d||o)&&(f.activeTriggerId=d,f.activeTriggerElement=r.trigger??null),this.update(f)})}}function f2(l={}){return{...kR(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...l}}function d2(l){const{children:i,open:o,defaultOpen:r=!1,onOpenChange:c,onOpenChangeComplete:f,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:y,handle:m,triggerId:v,defaultTriggerId:h=null}=l,x=Bi(!0),w=!!x,E=Rn(()=>(m==null?void 0:m.store)??new c2({open:r,openProp:o,activeTriggerId:h,triggerIdProp:v,modal:p,disablePointerDismissal:d,nested:w})).current;gb(()=>{o===void 0&&E.state.open===!1&&r===!0&&E.update({open:!0,activeTriggerId:h})}),E.useControlledProp("openProp",o),E.useControlledProp("triggerIdProp",v),E.useSyncedValues({disablePointerDismissal:d,nested:w,modal:p}),E.useContextCallback("onOpenChange",c),E.useContextCallback("onOpenChangeComplete",f);const R=E.useState("payload");s2({store:E,actionsRef:y,parentContext:x==null?void 0:x.store.context});const C=S.useMemo(()=>({store:E}),[E]);return H.jsx(Dv.Provider,{value:C,children:typeof i=="function"?i({payload:R}):i})}const m2=S.forwardRef(function(i,o){const{render:r,className:c,id:f,...d}=i,{store:p}=Bi(),y=Go(f);return p.useSyncedValueWithCleanup("titleElementId",y),Jt("h2",i,{ref:o,props:[{id:y},d]})});function h2({...l}){return H.jsx(d2,{"data-slot":"dialog",...l})}function g2({...l}){return H.jsx(e2,{"data-slot":"dialog-portal",...l})}function p2({className:l,...i}){return H.jsx(lT,{"data-slot":"dialog-overlay",className:mn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",l),...i})}function y2({className:l,children:i,showCloseButton:o=!0,...r}){return H.jsxs(g2,{children:[H.jsx(p2,{}),H.jsxs(PR,{"data-slot":"dialog-content",className:mn("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",l),...r,children:[i,o&&H.jsxs(jv,{"data-slot":"dialog-close",render:H.jsx(qo,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[H.jsx(tx,{}),H.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function v2({className:l,...i}){return H.jsx("div",{"data-slot":"dialog-header",className:mn("flex flex-col gap-2",l),...i})}function b2({className:l,showCloseButton:i=!1,children:o,...r}){return H.jsxs("div",{"data-slot":"dialog-footer",className:mn("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",l),...r,children:[o,i&&H.jsx(jv,{render:H.jsx(qo,{variant:"outline"}),children:"Close"})]})}function S2({className:l,...i}){return H.jsx(m2,{"data-slot":"dialog-title",className:mn("text-base leading-none font-medium",l),...i})}function ka({className:l,...i}){return H.jsx("label",{"data-slot":"label",className:mn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",l),...i})}let Ay=(function(l){return l.checked="data-checked",l.unchecked="data-unchecked",l.indeterminate="data-indeterminate",l.disabled="data-disabled",l.readonly="data-readonly",l.required="data-required",l.valid="data-valid",l.invalid="data-invalid",l.touched="data-touched",l.dirty="data-dirty",l.filled="data-filled",l.focused="data-focused",l})({});function vb(l){return S.useMemo(()=>({checked(i){return l.indeterminate?{}:i?{[Ay.checked]:""}:{[Ay.unchecked]:""}},...Fs}),[l.indeterminate])}function x2(l,i,o,r=!0,c){const[f,d]=S.useState(),p=Go(c?`${c}-label`:void 0),y=l??i??f;return Oe(()=>{const m=l||i||!r?void 0:E2(o.current,p);f!==m&&d(m)}),y}function E2(l,i){const o=w2(l);if(o)return!o.id&&i&&(o.id=i),o.id||void 0}function w2(l){if(!l)return;const i=l.parentElement;if(i&&i.tagName==="LABEL")return i;const o=l.id;if(o){const c=l.nextElementSibling;if(c&&c.htmlFor===o)return c}const r=l.labels;return r&&r[0]}const bb=S.createContext(void 0);function T2(){const l=S.useContext(bb);if(l===void 0)throw new Error(Fn(14));return l}const R2="data-parent",A2=S.forwardRef(function(i,o){const{checked:r,className:c,defaultChecked:f=!1,"aria-labelledby":d,disabled:p=!1,id:y,indeterminate:m=!1,inputRef:v,name:h,onCheckedChange:x,parent:w=!1,readOnly:E=!1,render:R,required:C=!1,uncheckedValue:T,value:U,nativeButton:k=!1,...j}=i,{clearErrors:L}=dd(),{disabled:G,name:Y,setDirty:_,setFilled:le,setFocused:ge,setTouched:me,state:ue,validationMode:F,validityData:ae,shouldValidateOnChange:he,validation:M}=Fo(),N=_w(),{labelId:X,controlId:I,registerControlId:q,getDescriptionProps:A}=Js(),O=Dw(),W=O==null?void 0:O.parent,Q=W&&O.allValues,te=G||N.disabled||(O==null?void 0:O.disabled)||p,P=Y??h,de=U??P,ce=Go(),be=Go();let De=I;Q?De=w?be:`${W.id}-${de}`:y&&(De=y);let we={};Q&&(w?we=O.parent.getParentProps():de&&(we=O.parent.getChildProps(de)));const Ye=Ze(x),{checked:Se=r,indeterminate:pe=m,onCheckedChange:Re,...Ge}=we,ye=O==null?void 0:O.value,Ee=O==null?void 0:O.setValue,fe=O==null?void 0:O.defaultValue,oe=S.useRef(null),B=Rn(()=>Symbol("checkbox-control")),$=S.useRef(!1),{getButtonProps:re,buttonRef:xe}=Io({disabled:te,native:k}),Ue=(O==null?void 0:O.validation)??M,[Xe,ut]=Hs({controlled:de&&ye&&!w?ye.includes(de):Se,default:de&&fe&&!w?fe.includes(de):f,name:"Checkbox",state:"checked"});Oe(()=>{q!==dn&&($.current=!0,q(B.current,De))},[De,O,q,w,B]),S.useEffect(()=>{const ot=B.current;return()=>{!$.current||q===dn||($.current=!1,q(ot,void 0))}},[q,B]),xd({enabled:!O,id:ce,commit:Ue.commit,value:Xe,controlRef:oe,name:P,getValue:()=>Xe});const Je=S.useRef(null),ke=Ba(v,Je,Ue.inputRef),Qe=x2(d,X,Je,!k,De??void 0);Oe(()=>{Je.current&&(Je.current.indeterminate=pe,Xe&&le(!0))},[Xe,pe,le]),Md(Xe,()=>{O&&!w||(L(P),le(Xe),_(Xe!==ae.initialValue),he()?Ue.commit(Xe):Ue.commit(Xe,!0))});const He=Ui({checked:Xe,disabled:te,name:w?void 0:P,id:k?void 0:De??void 0,required:C,ref:ke,style:P?Uv:wd,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(ot){if(ot.nativeEvent.defaultPrevented)return;const Tt=ot.target.checked,qe=zt(tr,ot.nativeEvent);if(Re==null||Re(Tt,qe),Ye(Tt,qe),!qe.isCanceled&&(ut(Tt),de&&ye&&Ee&&!w)){const ct=Tt?[...ye,de]:ye.filter(Ot=>Ot!==de);Ee(ct,qe)}},onFocus(){var ot;(ot=oe.current)==null||ot.focus()}},U!==void 0?{value:(O?Xe&&U:U)||""}:an,A,O?Ue.getValidationProps:Ue.getInputValidationProps),rt=Q?!!Se:Xe,gt=Q&&pe||m;S.useEffect(()=>{if(!W||!de)return;const ot=W.disabledStatesRef.current;return ot.set(de,te),()=>{ot.delete(de)}},[W,te,de]);const pt=S.useMemo(()=>({...ue,checked:rt,disabled:te,readOnly:E,required:C,indeterminate:gt}),[ue,rt,te,E,C,gt]),Ut=vb(pt),it=Jt("span",i,{state:pt,ref:[xe,oe,o,O==null?void 0:O.registerControlRef],props:[{id:k?De??void 0:ce,role:"checkbox","aria-checked":pe?"mixed":Xe,"aria-readonly":E||void 0,"aria-required":C||void 0,"aria-labelledby":Qe,[R2]:w?"":void 0,onFocus(){ge(!0)},onBlur(){const ot=Je.current;ot&&(me(!0),ge(!1),F==="onBlur"&&Ue.commit(O?ye:ot.checked))},onClick(ot){var Tt;E||te||(ot.preventDefault(),(Tt=Je.current)==null||Tt.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:ot.shiftKey,ctrlKey:ot.ctrlKey,altKey:ot.altKey,metaKey:ot.metaKey})))}},A,Ue.getValidationProps,j,Ge,re],stateAttributesMapping:Ut});return H.jsxs(bb.Provider,{value:pt,children:[it,!Xe&&!O&&P&&!w&&T!==void 0&&H.jsx("input",{type:"hidden",name:P,value:T}),H.jsx("input",{...He})]})}),C2=S.forwardRef(function(i,o){const{render:r,className:c,keepMounted:f=!1,...d}=i,p=T2(),y=p.checked||p.indeterminate,{mounted:m,transitionStatus:v,setMounted:h}=er(y),x=S.useRef(null),w={...p,transitionStatus:v};Ga({open:y,ref:x,onComplete(){y||h(!1)}});const E=vb(p),R=S.useMemo(()=>({...E,...Po,...Fs}),[E]),C=f||m,T=Jt("span",i,{ref:[o,x],state:w,stateAttributesMapping:R,props:d});return C?T:null});function Vf({className:l,...i}){return H.jsx(A2,{"data-slot":"checkbox",className:mn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",l),...i,children:H.jsx(C2,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:H.jsx(qy,{})})})}const Sb=S.createContext(null),xb=S.createContext(null);function fl(){const l=S.useContext(Sb);if(l===null)throw new Error(Fn(60));return l}function Eb(){const l=S.useContext(xb);if(l===null)throw new Error(Fn(61));return l}const M2=(l,i)=>Object.is(l,i);function ki(l,i,o){return l==null||i==null?Object.is(l,i):o(l,i)}function O2(l,i,o){return!l||l.length===0?!1:l.some(r=>r===void 0?!1:ki(i,r,o))}function Ho(l,i,o){return!l||l.length===0?-1:l.findIndex(r=>r===void 0?!1:ki(r,i,o))}function z2(l,i,o){return l.filter(r=>!ki(i,r,o))}function id(l){if(l==null)return"";if(typeof l=="string")return l;try{return JSON.stringify(l)}catch{return String(l)}}function wb(l){return l!=null&&l.length>0&&typeof l[0]=="object"&&l[0]!=null&&"items"in l[0]}function _2(l){if(!Array.isArray(l))return l!=null&&"null"in l;const i=l;if(wb(i)){for(const o of i)for(const r of o.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const o of i)if(o&&o.value==null&&o.label!=null)return!0;return!1}function N2(l,i){if(i&&l!=null)return i(l)??"";if(l&&typeof l=="object"){if("label"in l&&l.label!=null)return String(l.label);if("value"in l)return String(l.value)}return id(l)}function Mi(l,i){return i&&l!=null?i(l)??"":l&&typeof l=="object"&&"value"in l&&"label"in l?id(l.value):id(l)}function Tb(l,i,o){function r(){return N2(l,o)}if(o&&l!=null)return o(l);if(l&&typeof l=="object"&&"label"in l&&l.label!=null)return l.label;if(i&&!Array.isArray(i))return i[l]??r();if(Array.isArray(i)){const c=i,f=wb(c)?c.flatMap(d=>d.items):c;if(l==null||typeof l!="object"){const d=f.find(p=>p.value===l);return d&&d.label!=null?d.label:r()}if("value"in l){const d=f.find(p=>p&&p.value===l.value);if(d&&d.label!=null)return d.label}}return r()}function D2(l,i,o){return l.reduce((r,c,f)=>(f>0&&r.push(", "),r.push(H.jsx(S.Fragment,{children:Tb(c,i,o)},f)),r),[])}const Be={id:_e(l=>l.id),labelId:_e(l=>l.labelId),modal:_e(l=>l.modal),multiple:_e(l=>l.multiple),items:_e(l=>l.items),itemToStringLabel:_e(l=>l.itemToStringLabel),itemToStringValue:_e(l=>l.itemToStringValue),isItemEqualToValue:_e(l=>l.isItemEqualToValue),value:_e(l=>l.value),hasSelectedValue:_e(l=>{const{value:i,multiple:o,itemToStringValue:r}=l;return i==null?!1:o&&Array.isArray(i)?i.length>0:Mi(i,r)!==""}),hasNullItemLabel:_e((l,i)=>i?_2(l.items):!1),open:_e(l=>l.open),mounted:_e(l=>l.mounted),forceMount:_e(l=>l.forceMount),transitionStatus:_e(l=>l.transitionStatus),openMethod:_e(l=>l.openMethod),activeIndex:_e(l=>l.activeIndex),selectedIndex:_e(l=>l.selectedIndex),isActive:_e((l,i)=>l.activeIndex===i),isSelected:_e((l,i,o)=>{const r=l.isItemEqualToValue,c=l.value;return l.multiple?Array.isArray(c)&&c.some(f=>ki(o,f,r)):l.selectedIndex===i&&l.selectedIndex!==null?!0:ki(o,c,r)}),isSelectedByFocus:_e((l,i)=>l.selectedIndex===i),popupProps:_e(l=>l.popupProps),triggerProps:_e(l=>l.triggerProps),triggerElement:_e(l=>l.triggerElement),positionerElement:_e(l=>l.positionerElement),listElement:_e(l=>l.listElement),scrollUpArrowVisible:_e(l=>l.scrollUpArrowVisible),scrollDownArrowVisible:_e(l=>l.scrollDownArrowVisible),hasScrollArrows:_e(l=>l.hasScrollArrows)};function j2(l){const{id:i,value:o,defaultValue:r=null,onValueChange:c,open:f,defaultOpen:d=!1,onOpenChange:p,name:y,autoComplete:m,disabled:v=!1,readOnly:h=!1,required:x=!1,modal:w=!0,actionsRef:E,inputRef:R,onOpenChangeComplete:C,items:T,multiple:U=!1,itemToStringLabel:k,itemToStringValue:j,isItemEqualToValue:L=M2,highlightItemOnHover:G=!0,children:Y}=l,{clearErrors:_}=dd(),{setDirty:le,setTouched:ge,setFocused:me,shouldValidateOnChange:ue,validityData:F,setFilled:ae,name:he,disabled:M,validation:N,validationMode:X}=Fo(),I=Sd({id:i}),q=M||v,A=he??y,[O,W]=Hs({controlled:o,default:U?r??Up:r,name:"Select",state:"value"}),[Q,te]=Hs({controlled:f,default:d,name:"Select",state:"open"}),P=S.useRef([]),de=S.useRef([]),ce=S.useRef(null),be=S.useRef(null),De=S.useRef(0),we=S.useRef(null),Ye=S.useRef([]),Se=S.useRef(!1),pe=S.useRef(!1),Re=S.useRef(null),Ge=S.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),ye=S.useRef(!1),{mounted:Ee,setMounted:fe,transitionStatus:oe}=er(Q),{openMethod:B,triggerProps:$}=yb(Q),re=Rn(()=>new tb({id:I,labelId:void 0,modal:w,multiple:U,itemToStringLabel:k,itemToStringValue:j,isItemEqualToValue:L,value:O,open:Q,mounted:Ee,transitionStatus:oe,items:T,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,xe=Ve(re,Be.activeIndex),Ue=Ve(re,Be.selectedIndex),Xe=Ve(re,Be.triggerElement),ut=Ve(re,Be.positionerElement),Je=S.useMemo(()=>U&&Array.isArray(O)&&O.length===0?"":Mi(O,j),[U,O,j]),ke=S.useMemo(()=>U&&Array.isArray(O)?O.map(je=>Mi(je,j)):Mi(O,j),[U,O,j]),Qe=Tn(re.state.triggerElement);xd({id:I,commit:N.commit,value:O,controlRef:Qe,name:A,getValue:()=>ke});const He=S.useRef(O);Oe(()=>{O!==He.current&&re.set("forceMount",!0)},[re,O]),Oe(()=>{ae(U?Array.isArray(O)&&O.length>0:O!=null)},[U,O,ae]),Oe(function(){if(Q)return;const xt=Ye.current;if(U){const yt=Array.isArray(O)?O:[];if(yt.length===0){re.set("selectedIndex",null);return}const Ht=yt[yt.length-1],Vt=Ho(xt,Ht,L);re.set("selectedIndex",Vt===-1?null:Vt);return}const Pe=Ho(xt,O,L);re.set("selectedIndex",Pe===-1?null:Pe)},[U,Q,O,Ye,L,re]),Md(O,()=>{_(A),le(O!==F.initialValue),ue()?N.commit(O):N.commit(O,!0)});const rt=Ze((je,xt)=>{if(p==null||p(je,xt),!xt.isCanceled&&(te(je),!je&&(xt.reason===Ps||xt.reason===Ed)&&(ge(!0),me(!1),X==="onBlur"&&N.commit(O)),!je&&re.state.activeIndex!==null)){const Pe=P.current[re.state.activeIndex];queueMicrotask(()=>{Pe==null||Pe.setAttribute("tabindex","-1")})}}),gt=Ze(()=>{fe(!1),re.set("activeIndex",null),C==null||C(!1)});Ga({enabled:!E,open:Q,ref:ce,onComplete(){Q||gt()}}),S.useImperativeHandle(E,()=>({unmount:gt}),[gt]);const pt=Ze((je,xt)=>{c==null||c(je,xt),!xt.isCanceled&&W(je)}),Ut=Ze(()=>{const je=re.state.listElement||ce.current;if(!je)return;const xt=je.scrollTop,Pe=je.scrollTop+je.clientHeight,yt=xt>1,Ht=Pe<je.scrollHeight-1;re.state.scrollUpArrowVisible!==yt&&re.set("scrollUpArrowVisible",yt),re.state.scrollDownArrowVisible!==Ht&&re.set("scrollDownArrowVisible",Ht)}),it=lb({open:Q,onOpenChange:rt,elements:{reference:Xe,floating:ut}}),ot=pT(it,{enabled:!h&&!q,event:"mousedown"}),Tt=qv(it,{bubbles:!1}),qe=qR(it,{enabled:!h&&!q,listRef:P,activeIndex:xe,selectedIndex:Ue,disabledIndices:Up,onNavigate(je){je===null&&!Q||re.set("activeIndex",je)},focusItemOnHover:!1}),ct=QR(it,{enabled:!h&&!q&&(Q||!U),listRef:de,activeIndex:xe,selectedIndex:Ue,onMatch(je){Q?re.set("activeIndex",je):pt(Ye.current[je],zt("none"))},onTypingChange(je){Se.current=je}}),{getReferenceProps:Ot,getFloatingProps:st,getItemProps:_t}=ab([ot,Tt,qe,ct]),Te=S.useMemo(()=>Ui(Ot(),$,I?{id:I}:an),[Ot,$,I]);gb(()=>{re.update({popupProps:st(),triggerProps:Te})}),Oe(()=>{re.update({id:I,modal:w,multiple:U,value:O,open:Q,mounted:Ee,transitionStatus:oe,popupProps:st(),triggerProps:Te,items:T,itemToStringLabel:k,itemToStringValue:j,isItemEqualToValue:L,openMethod:B})},[re,I,w,U,O,Q,Ee,oe,st,Te,T,k,j,L,B]);const $e=S.useMemo(()=>({store:re,name:A,required:x,disabled:q,readOnly:h,multiple:U,itemToStringLabel:k,itemToStringValue:j,highlightItemOnHover:G,setValue:pt,setOpen:rt,listRef:P,popupRef:ce,scrollHandlerRef:be,handleScrollArrowVisibility:Ut,scrollArrowsMountedCountRef:De,getItemProps:_t,events:it.context.events,valueRef:we,valuesRef:Ye,labelsRef:de,typingRef:Se,selectionRef:Ge,selectedItemTextRef:Re,validation:N,onOpenChangeComplete:C,keyboardActiveRef:pe,alignItemWithTriggerActiveRef:ye,initialValueRef:He}),[re,A,x,q,h,U,k,j,G,pt,rt,_t,it.context.events,N,C,Ut]),bt=Ba(R,N.inputRef),St=U&&Array.isArray(O)&&O.length>0,tn=U?void 0:A,ft=S.useMemo(()=>!U||!Array.isArray(O)||!A?null:O.map(je=>{const xt=Mi(je,j);return H.jsx("input",{type:"hidden",name:A,value:xt},xt)}),[U,O,A,j]);return H.jsx(Sb.Provider,{value:$e,children:H.jsxs(xb.Provider,{value:it,children:[Y,H.jsx("input",{...N.getInputValidationProps({onFocus(){var je;(je=re.state.triggerElement)==null||je.focus({focusVisible:!0})},onChange(je){if(je.nativeEvent.defaultPrevented)return;const xt=je.target.value,Pe=zt(tr,je.nativeEvent);function yt(){if(U)return;const Ht=Ye.current.find(Vt=>Mi(Vt,j).toLowerCase()===xt.toLowerCase());Ht!=null&&(le(Ht!==F.initialValue),pt(Ht,Pe),ue()&&N.commit(Ht))}re.set("forceMount",!0),queueMicrotask(yt)}}),id:I&&tn==null?`${I}-hidden-input`:void 0,name:tn,autoComplete:m,value:Je,disabled:q,required:x&&!St,readOnly:h,ref:bt,style:A?Uv:wd,tabIndex:-1,"aria-hidden":!0}),ft]})})}function k2(l,i){return l??i}function U2(l){const i=l.getBoundingClientRect(),o=window.getComputedStyle(l,"::before"),r=window.getComputedStyle(l,"::after");if(!(o.content!=="none"||r.content!=="none"))return i;const f=parseFloat(o.width)||0,d=parseFloat(o.height)||0,p=parseFloat(r.width)||0,y=parseFloat(r.height)||0,m=Math.max(i.width,f,p),v=Math.max(i.height,d,y),h=m-i.width,x=v-i.height;return{left:i.left-h/2,right:i.right+h/2,top:i.top-x/2,bottom:i.bottom+x/2}}const As=2,L2=400,Cy=200,B2={...tT,...Fs,value:()=>null},H2=S.forwardRef(function(i,o){const{render:r,className:c,id:f,disabled:d=!1,nativeButton:p=!0,...y}=i,{setTouched:m,setFocused:v,validationMode:h,state:x,disabled:w}=Fo(),{labelId:E}=Js(),{store:R,setOpen:C,selectionRef:T,validation:U,readOnly:k,required:j,alignItemWithTriggerActiveRef:L,disabled:G,keyboardActiveRef:Y}=fl(),_=w||G||d,le=Ve(R,Be.open),ge=Ve(R,Be.value),me=Ve(R,Be.triggerProps),ue=Ve(R,Be.positionerElement),F=Ve(R,Be.listElement),ae=Ve(R,Be.id),he=Ve(R,Be.labelId),M=Ve(R,Be.hasSelectedValue),N=!M&&le,X=Ve(R,Be.hasNullItemLabel,N),I=f??ae,q=k2(E,he);Sd({id:I});const A=Tn(ue),O=S.useRef(null),{getButtonProps:W,buttonRef:Q}=Io({disabled:_,native:p}),te=Ze(pe=>{R.set("triggerElement",pe)}),P=Ba(o,O,Q,te),de=kn(),ce=kn(),be=kn(),De=kn();S.useEffect(()=>{if(le)return!(M||X)?be.start(L2,()=>{T.current.allowUnselectedMouseUp=!0,T.current.allowSelectedMouseUp=!0}):De.start(Cy,()=>{T.current.allowUnselectedMouseUp=!0,be.start(Cy,()=>{T.current.allowSelectedMouseUp=!0})}),()=>{be.clear(),De.clear()};T.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ce.clear()},[le,M,X,T,ce,be,De]);const we=S.useMemo(()=>{var pe;return(F==null?void 0:F.id)??((pe=Xo(ue))==null?void 0:pe.id)},[F,ue]),Ye=Ui(me,{id:I,role:"combobox","aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-controls":le?we:void 0,"aria-labelledby":q,"aria-readonly":k||void 0,"aria-required":j||void 0,tabIndex:_?-1:0,ref:P,onFocus(pe){v(!0),le&&L.current&&C(!1,zt(tr,pe.nativeEvent)),de.start(0,()=>{R.set("forceMount",!0)})},onBlur(pe){ht(ue,pe.relatedTarget)||(m(!0),v(!1),h==="onBlur"&&U.commit(ge))},onPointerMove(){Y.current=!1},onKeyDown(){Y.current=!0},onMouseDown(pe){if(le)return;const Re=jt(pe.currentTarget);function Ge(ye){if(!O.current)return;const Ee=ye.target;if(ht(O.current,Ee)||ht(A.current,Ee)||Ee===O.current)return;const fe=U2(O.current);ye.clientX>=fe.left-As&&ye.clientX<=fe.right+As&&ye.clientY>=fe.top-As&&ye.clientY<=fe.bottom+As||C(!1,zt(Aw,ye))}ce.start(0,()=>{Re.addEventListener("mouseup",Ge,{once:!0})})}},U.getValidationProps,y,W);Ye.role="combobox";const Se={...x,open:le,disabled:_,value:ge,readOnly:k,placeholder:!M};return Jt("button",i,{ref:[o,O],state:Se,stateAttributesMapping:B2,props:Ye})}),V2={value:()=>null},Y2=S.forwardRef(function(i,o){const{className:r,render:c,children:f,placeholder:d,...p}=i,{store:y,valueRef:m}=fl(),v=Ve(y,Be.value),h=Ve(y,Be.items),x=Ve(y,Be.itemToStringLabel),w=Ve(y,Be.hasSelectedValue),E=!w&&d!=null&&f==null,R=Ve(y,Be.hasNullItemLabel,E),C={value:v,placeholder:!w};let T=null;return typeof f=="function"?T=f(v):f!=null?T=f:!w&&d!=null&&!R?T=d:Array.isArray(v)?T=D2(v,h,x):T=Tb(v,h,x),Jt("span",i,{state:C,ref:[o,m],props:[{children:T},p],stateAttributesMapping:V2})}),q2=S.forwardRef(function(i,o){const{className:r,render:c,...f}=i,{store:d}=fl(),y={open:Ve(d,Be.open)};return Jt("span",i,{state:y,ref:o,props:[{"aria-hidden":!0,children:"▼"},f],stateAttributesMapping:eT})}),G2=S.createContext(void 0),X2=S.forwardRef(function(i,o){const{store:r}=fl(),c=Ve(r,Be.mounted),f=Ve(r,Be.forceMount);return c||f?H.jsx(G2.Provider,{value:!0,children:H.jsx(Vv,{ref:o,...i})}):null}),Rb=S.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Q2(){return S.useContext(Rb)}function K2(l){const{children:i,elementsRef:o,labelsRef:r,onMapChange:c}=l,f=Ze(c),d=S.useRef(0),p=Rn(I2).current,y=Rn(Z2).current,[m,v]=S.useState(0),h=S.useRef(m),x=Ze((T,U)=>{y.set(T,U??null),h.current+=1,v(h.current)}),w=Ze(T=>{y.delete(T),h.current+=1,v(h.current)}),E=S.useMemo(()=>{const T=new Map;return Array.from(y.keys()).filter(k=>k.isConnected).sort(F2).forEach((k,j)=>{const L=y.get(k)??{};T.set(k,{...L,index:j})}),T},[y,m]);Oe(()=>{if(typeof MutationObserver!="function"||E.size===0)return;const T=new MutationObserver(U=>{const k=new Set,j=L=>k.has(L)?k.delete(L):k.add(L);U.forEach(L=>{L.removedNodes.forEach(j),L.addedNodes.forEach(j)}),k.size===0&&(h.current+=1,v(h.current))});return E.forEach((U,k)=>{k.parentElement&&T.observe(k.parentElement,{childList:!0})}),()=>{T.disconnect()}},[E]),Oe(()=>{h.current===m&&(o.current.length!==E.size&&(o.current.length=E.size),r&&r.current.length!==E.size&&(r.current.length=E.size),d.current=E.size),f(E)},[f,E,o,r,m]),Oe(()=>()=>{o.current=[]},[o]),Oe(()=>()=>{r&&(r.current=[])},[r]);const R=Ze(T=>(p.add(T),()=>{p.delete(T)}));Oe(()=>{p.forEach(T=>T(E))},[p,E]);const C=S.useMemo(()=>({register:x,unregister:w,subscribeMapChange:R,elementsRef:o,labelsRef:r,nextIndexRef:d}),[x,w,R,o,r,d]);return H.jsx(Rb.Provider,{value:C,children:i})}function Z2(){return new Map}function I2(){return new Set}function F2(l,i){const o=l.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}const J2=S.createContext(void 0);function W2(){const l=S.useContext(J2);return(l==null?void 0:l.direction)??"ltr"}const $2=l=>({name:"arrow",options:l,async fn(i){var I,q;const{x:o,y:r,placement:c,rects:f,platform:d,elements:p,middlewareData:y}=i,{element:m,padding:v=0,offsetParent:h="real"}=Ul(l,i)||{};if(m==null)return{};const x=xv(v),w={x:o,y:r},E=vd(c),R=yd(E),C=await d.getDimensions(m),T=E==="y",U=T?"top":"left",k=T?"bottom":"right",j=T?"clientHeight":"clientWidth",L=f.reference[R]+f.reference[E]-w[E]-f.floating[R],G=w[E]-f.reference[E],Y=h==="real"?await((I=d.getOffsetParent)==null?void 0:I.call(d,m)):p.floating;let _=p.floating[j]||f.floating[R];(!_||!await((q=d.isElement)==null?void 0:q.call(d,Y)))&&(_=p.floating[j]||f.floating[R]);const le=L/2-G/2,ge=_/2-C[R]/2-1,me=Math.min(x[U],ge),ue=Math.min(x[k],ge),F=me,ae=_-C[R]-ue,he=_/2-C[R]/2+le,M=$f(F,he,ae),N=!y.arrow&&ga(c)!=null&&he!==M&&f.reference[R]/2-(he<F?me:ue)-C[R]/2<0,X=N?he<F?he-F:he-ae:0;return{[E]:w[E]+X,data:{[E]:M,centerOffset:he-M-X,...N&&{alignmentOffset:X}},reset:N}}}),P2=(l,i)=>({...$2(l),options:[l,i]}),eA={name:"hide",async fn(l){var p;const{width:i,height:o,x:r,y:c}=l.rects.reference,f=i===0&&o===0&&r===0&&c===0;return{data:{referenceHidden:((p=(await iR().fn(l)).data)==null?void 0:p.referenceHidden)||f}}}},tA={sideX:"left",sideY:"top"};function Ab(l,i,o){const r=l==="inline-start"||l==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[i]}function My(l,i,o){const{rects:r,placement:c}=l;return{side:Ab(i,Un(c),o),align:ga(c)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function nA(l){var ot,Tt;const{anchor:i,positionMethod:o="absolute",side:r="bottom",sideOffset:c=0,align:f="center",alignOffset:d=0,collisionBoundary:p,collisionPadding:y=5,sticky:m=!1,arrowPadding:v=5,disableAnchorTracking:h=!1,keepMounted:x=!1,floatingRootContext:w,mounted:E,collisionAvoidance:R,shiftCrossAxis:C=!1,nodeId:T,adaptiveOrigin:U,lazyFlip:k=!1,externalTree:j}=l,[L,G]=S.useState(null);!E&&L!==null&&G(null);const Y=R.side||"flip",_=R.align||"flip",le=R.fallbackAxisSide||"end",ge=typeof i=="function"?i:void 0,me=Ze(ge),ue=ge?me:i,F=Tn(i),he=W2()==="rtl",M=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":he?"left":"right","inline-start":he?"right":"left"}[r],N=f==="center"?M:`${M}-${f}`;let X=y;const I=1,q=r==="bottom"?I:0,A=r==="top"?I:0,O=r==="right"?I:0,W=r==="left"?I:0;typeof X=="number"?X={top:X+q,right:X+W,bottom:X+A,left:X+O}:X&&(X={top:(X.top||0)+q,right:(X.right||0)+W,bottom:(X.bottom||0)+A,left:(X.left||0)+O});const Q={boundary:p==="clipping-ancestors"?"clippingAncestors":p,padding:X},te=S.useRef(null),P=Tn(c),de=Tn(d),De=[eR(qe=>{const ct=My(qe,r,he),Ot=typeof P.current=="function"?P.current(ct):P.current,st=typeof de.current=="function"?de.current(ct):de.current;return{mainAxis:Ot,crossAxis:st,alignmentAxis:st}},[typeof c!="function"?c:0,typeof d!="function"?d:0,he,r])],we=_==="none"&&Y!=="shift",Ye=!we&&(m||C||Y==="shift"),Se=Y==="none"?null:lR({...Q,padding:{top:X.top+I,right:X.right+I,bottom:X.bottom+I,left:X.left+I},mainAxis:!C&&Y==="flip",crossAxis:_==="flip"?"alignment":!1,fallbackAxisSideDirection:le}),pe=we?null:tR(qe=>{const ct=jt(qe.elements.floating).documentElement;return{...Q,rootBoundary:C?{x:0,y:0,width:ct.clientWidth,height:ct.clientHeight}:void 0,mainAxis:_!=="none",crossAxis:Ye,limiter:m||C?void 0:nR(Ot=>{if(!te.current)return{};const{width:st,height:_t}=te.current.getBoundingClientRect(),Te=In(Un(Ot.placement)),$e=Te==="y"?st:_t,bt=Te==="y"?X.left+X.right:X.top+X.bottom;return{offset:$e/2+bt/2}})}},[Q,m,C,X,_]);Y==="shift"||_==="shift"||f==="center"?De.push(pe,Se):De.push(Se,pe),De.push(aR({...Q,apply({elements:{floating:qe},availableWidth:ct,availableHeight:Ot,rects:st}){const _t=qe.style;_t.setProperty("--available-width",`${ct}px`),_t.setProperty("--available-height",`${Ot}px`);const Te=window.devicePixelRatio||1,{x:$e,y:bt,width:St,height:tn}=st.reference,ft=(Math.round(($e+St)*Te)-Math.round($e*Te))/Te,je=(Math.round((bt+tn)*Te)-Math.round(bt*Te))/Te;_t.setProperty("--anchor-width",`${ft}px`),_t.setProperty("--anchor-height",`${je}px`)}}),P2(()=>({element:te.current||document.createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(qe){var on,dl,Xa;const{elements:ct,middlewareData:Ot,placement:st,rects:_t,y:Te}=qe,$e=Un(st),bt=In($e),St=te.current,tn=((on=Ot.arrow)==null?void 0:on.x)||0,ft=((dl=Ot.arrow)==null?void 0:dl.y)||0,je=(St==null?void 0:St.clientWidth)||0,xt=(St==null?void 0:St.clientHeight)||0,Pe=tn+je/2,yt=ft+xt/2,Ht=Math.abs(((Xa=Ot.shift)==null?void 0:Xa.y)||0),Vt=_t.reference.height/2,pn=typeof c=="function"?c(My(qe,r,he)):c,nr=Ht>pn,nl={top:`${Pe}px calc(100% + ${pn}px)`,bottom:`${Pe}px ${-pn}px`,left:`calc(100% + ${pn}px) ${yt}px`,right:`${-pn}px ${yt}px`}[$e],Wt=`${Pe}px ${_t.reference.y+Vt-Te}px`;return ct.floating.style.setProperty("--transform-origin",Ye&&bt==="y"&&nr?Wt:nl),{}}},eA,U),Oe(()=>{!E&&w&&w.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,w]);const Re=S.useMemo(()=>({elementResize:!h&&typeof ResizeObserver<"u",layoutShift:!h&&typeof IntersectionObserver<"u"}),[h]),{refs:Ge,elements:ye,x:Ee,y:fe,middlewareData:oe,update:B,placement:$,context:re,isPositioned:xe,floatingStyles:Ue}=LR({rootContext:w,placement:N,middleware:De,strategy:o,whileElementsMounted:x?void 0:(...qe)=>hy(...qe,Re),nodeId:T,externalTree:j}),{sideX:Xe,sideY:ut}=oe.adaptiveOrigin||tA,Je=xe?o:"fixed",ke=S.useMemo(()=>{const qe=U?{position:Je,[Xe]:Ee,[ut]:fe}:{position:Je,...Ue};return xe||(qe.opacity=0),qe},[U,Je,Xe,Ee,ut,fe,Ue,xe]),Qe=S.useRef(null);Oe(()=>{if(!E)return;const qe=F.current,ct=typeof qe=="function"?qe():qe,st=(Oy(ct)?ct.current:ct)||null||null;st!==Qe.current&&(Ge.setPositionReference(st),Qe.current=st)},[E,Ge,ue,F]),S.useEffect(()=>{if(!E)return;const qe=F.current;typeof qe!="function"&&Oy(qe)&&qe.current!==Qe.current&&(Ge.setPositionReference(qe.current),Qe.current=qe.current)},[E,Ge,ue,F]),S.useEffect(()=>{if(x&&E&&ye.domReference&&ye.floating)return hy(ye.domReference,ye.floating,B,Re)},[x,E,ye,B,Re]);const He=Un($),rt=Ab(r,He,he),gt=ga($)||"center",pt=!!((ot=oe.hide)!=null&&ot.referenceHidden);Oe(()=>{k&&E&&xe&&G(He)},[k,E,xe,He]);const Ut=S.useMemo(()=>{var qe,ct;return{position:"absolute",top:(qe=oe.arrow)==null?void 0:qe.y,left:(ct=oe.arrow)==null?void 0:ct.x}},[oe.arrow]),it=((Tt=oe.arrow)==null?void 0:Tt.centerOffset)!==0;return S.useMemo(()=>({positionerStyles:ke,arrowStyles:Ut,arrowRef:te,arrowUncentered:it,side:rt,align:gt,physicalSide:He,anchorHidden:pt,refs:Ge,context:re,isPositioned:xe,update:B}),[ke,Ut,te,it,rt,gt,He,pt,Ge,re,xe,B])}function Oy(l){return l!=null&&"current"in l}const Cb=S.createContext(void 0);function Od(){const l=S.useContext(Cb);if(!l)throw new Error(Fn(59));return l}function Mb(l){return l==="starting"?Ox:an}function Xs(l,i){l&&Object.assign(l.style,i)}const Ob={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},lA={position:"fixed"},aA=S.forwardRef(function(i,o){const{anchor:r,positionMethod:c="absolute",className:f,render:d,side:p="bottom",align:y="center",sideOffset:m=0,alignOffset:v=0,collisionBoundary:h="clipping-ancestors",collisionPadding:x,arrowPadding:w=5,sticky:E=!1,disableAnchorTracking:R,alignItemWithTrigger:C=!0,collisionAvoidance:T=_x,...U}=i,{store:k,listRef:j,labelsRef:L,alignItemWithTriggerActiveRef:G,selectedItemTextRef:Y,valuesRef:_,initialValueRef:le,popupRef:ge,setValue:me}=fl(),ue=Eb(),F=Ve(k,Be.open),ae=Ve(k,Be.mounted),he=Ve(k,Be.modal),M=Ve(k,Be.value),N=Ve(k,Be.openMethod),X=Ve(k,Be.positionerElement),I=Ve(k,Be.triggerElement),q=Ve(k,Be.isItemEqualToValue),A=Ve(k,Be.transitionStatus),O=S.useRef(null),W=S.useRef(null),[Q,te]=S.useState(C),P=ae&&Q&&N!=="touch";!ae&&Q!==C&&te(C),Oe(()=>{ae||(Be.scrollUpArrowVisible(k.state)&&k.set("scrollUpArrowVisible",!1),Be.scrollDownArrowVisible(k.state)&&k.set("scrollDownArrowVisible",!1))},[k,ae]),S.useImperativeHandle(G,()=>P),pb((P||he)&&F&&N!=="touch",I);const de=nA({anchor:r,floatingRootContext:ue,positionMethod:c,mounted:ae,side:p,sideOffset:m,align:y,alignOffset:v,arrowPadding:w,collisionBoundary:h,collisionPadding:x,sticky:E,disableAnchorTracking:R??P,collisionAvoidance:T,keepMounted:!0}),ce=P?"none":de.side,be=P?lA:de.positionerStyles,De=S.useMemo(()=>{const ye={};return F||(ye.pointerEvents="none"),{role:"presentation",hidden:!ae,style:{...be,...ye}}},[F,ae,be]),we={open:F,side:ce,align:de.align,anchorHidden:de.anchorHidden},Ye=Ze(ye=>{k.set("positionerElement",ye)}),Se=Jt("div",i,{ref:[o,Ye],state:we,stateAttributesMapping:eu,props:[De,Mb(A),U]}),pe=S.useRef(0),Re=Ze(ye=>{if(ye.size===0&&pe.current===0||_.current.length===0)return;const Ee=pe.current;if(pe.current=ye.size,ye.size===Ee)return;const fe=zt(tr);if(Ee!==0&&!k.state.multiple&&M!==null&&Ho(_.current,M,q)===-1){const B=le.current,re=B!=null&&Ho(_.current,B,q)!==-1?B:null;me(re,fe),re===null&&(k.set("selectedIndex",null),Y.current=null)}if(Ee!==0&&k.state.multiple&&Array.isArray(M)){const oe=$=>Ho(_.current,$,q)!==-1,B=M.filter($=>oe($));(B.length!==M.length||B.some($=>!O2(M,$,q)))&&(me(B,fe),B.length===0&&(k.set("selectedIndex",null),Y.current=null))}if(F&&P){k.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const oe={height:""};Xs(X,oe),Xs(ge.current,oe)}}),Ge=S.useMemo(()=>({...de,side:ce,alignItemWithTriggerActive:P,setControlledAlignItemWithTrigger:te,scrollUpArrowRef:O,scrollDownArrowRef:W}),[de,ce,P,te]);return H.jsx(K2,{elementsRef:j,labelsRef:L,onMapChange:Re,children:H.jsxs(Cb.Provider,{value:Ge,children:[ae&&he&&H.jsx(hb,{inert:mb(!F),cutout:I}),Se]})})});function zb(l){const i=l.currentTarget.getBoundingClientRect();return i.top+1<=l.clientY&&l.clientY<=i.bottom-1&&i.left+1<=l.clientX&&l.clientX<=i.right-1}const Cs="base-ui-disable-scrollbar",od={className:Cs,getElement(l){return H.jsx("style",{nonce:l,href:Cs,precedence:"base-ui:low",children:`.${Cs}{scrollbar-width:none}.${Cs}::-webkit-scrollbar{display:none}`})}},iA=S.createContext(void 0);function oA(l){return S.useContext(iA)}function Yf(l,i=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(l,o))}const rA=S.createContext(void 0),sA={disableStyleElements:!1};function uA(){return S.useContext(rA)??sA}const Nl=1,cA={...eu,...Po},fA=S.forwardRef(function(i,o){const{render:r,className:c,finalFocus:f,...d}=i,{store:p,popupRef:y,onOpenChangeComplete:m,setOpen:v,valueRef:h,selectedItemTextRef:x,keyboardActiveRef:w,multiple:E,handleScrollArrowVisibility:R,scrollHandlerRef:C,highlightItemOnHover:T}=fl(),{side:U,align:k,alignItemWithTriggerActive:j,setControlledAlignItemWithTrigger:L,scrollDownArrowRef:G,scrollUpArrowRef:Y}=Od(),_=oA()!=null,le=Eb(),{nonce:ge,disableStyleElements:me}=uA(),ue=kn(),F=Ve(p,Be.id),ae=Ve(p,Be.open),he=Ve(p,Be.mounted),M=Ve(p,Be.popupProps),N=Ve(p,Be.transitionStatus),X=Ve(p,Be.triggerElement),I=Ve(p,Be.positionerElement),q=Ve(p,Be.listElement),A=S.useRef(0),O=S.useRef(!1),W=S.useRef(0),Q=S.useRef(!1),te=S.useRef({}),P=$s(),de=Ze(we=>{if(!I||!y.current||!Q.current)return;if(O.current||!j){R();return}const Ye=I.style.top==="0px",Se=I.style.bottom==="0px",pe=I.getBoundingClientRect().height,Re=jt(I),Ge=getComputedStyle(I),ye=parseFloat(Ge.marginTop),Ee=parseFloat(Ge.marginBottom),fe=zy(getComputedStyle(y.current)),oe=Math.min(Re.documentElement.clientHeight-ye-Ee,fe),B=we.scrollTop,$=Ms(we);let re=0,xe=null,Ue=!1,Xe=!1;const ut=ke=>{I.style.height=`${ke}px`},Je=(ke,Qe)=>{const He=Yf(ke,0,oe-pe);He>0&&ut(pe+He),we.scrollTop=Qe,oe-(pe+He)<=Nl&&(O.current=!0),R()};if(Ye){const ke=$-B,Qe=pe+ke,He=Math.min(Qe,oe);if(re=He,ke<=Nl){Je(ke,$);return}oe-He>Nl?Xe=!0:Ue=!0}else if(Se){const ke=B,Qe=pe+ke,He=Math.min(Qe,oe),rt=Qe-oe;if(re=He,ke<=Nl){Je(ke,0);return}oe-He>Nl?xe=0:(Ue=!0,B<$&&(xe=B-(ke-rt)))}if(re=Math.ceil(re),re!==0&&ut(re),Xe||xe!=null){const ke=Ms(we),Qe=Xe?ke:Yf(xe,0,ke);Math.abs(we.scrollTop-Qe)>Nl&&(we.scrollTop=Qe)}(Ue||re>=oe-Nl)&&(O.current=!0),R()});S.useImperativeHandle(C,()=>de,[de]),Ga({open:ae,ref:y,onComplete(){ae&&(m==null||m(!0))}});const ce={open:ae,transitionStatus:N,side:U,align:k};Oe(()=>{!I||!y.current||Object.keys(te.current).length||(te.current={top:I.style.top||"0",left:I.style.left||"0",right:I.style.right,height:I.style.height,bottom:I.style.bottom,minHeight:I.style.minHeight,maxHeight:I.style.maxHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom})},[y,I]),Oe(()=>{ae||j||(Q.current=!1,O.current=!1,A.current=0,W.current=0,Xs(I,te.current))},[ae,j,I,y]),Oe(()=>{const we=y.current;if(!(!ae||!X||!I||!we||p.state.transitionStatus==="ending")){if(!j){Q.current=!0,P.request(R),we.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{var Se;const Ye=mA(we);we.style.removeProperty("--transform-origin");try{const pe=getComputedStyle(I),Re=getComputedStyle(we),Ge=jt(X),ye=en(I),Ee=dA(X),fe=Os(X.getBoundingClientRect(),Ee),oe=Os(I.getBoundingClientRect(),Ee),B=fe.left,$=fe.height,re=q||we,xe=re.scrollHeight,Ue=parseFloat(Re.borderBottomWidth),Xe=parseFloat(pe.marginTop)||10,ut=parseFloat(pe.marginBottom)||10,Je=parseFloat(pe.minHeight)||100,ke=zy(Re),Qe=5,He=5,rt=20,gt=Ge.documentElement.clientHeight-Xe-ut,pt=Ge.documentElement.clientWidth,Ut=gt-fe.bottom+$,it=x.current,ot=h.current;let Tt,qe=0,ct=0;if(it&&ot){const Pe=Os(ot.getBoundingClientRect(),Ee);Tt=Os(it.getBoundingClientRect(),Ee);const yt=Pe.left-B,Ht=Tt.left-oe.left,Vt=Pe.top-fe.top+Pe.height/2,pn=Tt.top-oe.top+Tt.height/2;qe=yt-Ht,ct=pn-Vt}const Ot=Ut+ct+ut+Ue;let st=Math.min(gt,Ot);const _t=gt-Xe-ut,Te=Ot-st,$e=Math.max(Qe,B+qe),bt=pt-He,St=Math.max(0,$e+oe.width-bt);I.style.left=`${$e-St}px`,I.style.height=`${st}px`,I.style.maxHeight="auto",I.style.marginTop=`${Xe}px`,I.style.marginBottom=`${ut}px`,we.style.height="100%";const tn=Ms(re),ft=Te>=tn-Nl;ft&&(st=Math.min(gt,oe.height)-(Te-tn));const je=fe.top<rt||fe.bottom>gt-rt||Math.ceil(st)+Nl<Math.min(xe,Je),xt=(((Se=ye.visualViewport)==null?void 0:Se.scale)??1)!==1&&md;if(je||xt){Q.current=!0,Xs(I,te.current),Ya.flushSync(()=>L(!1));return}if(ft){const Pe=Math.max(0,gt-Ot);I.style.top=oe.height>=_t?"0":`${Pe}px`,I.style.height=`${st}px`,re.scrollTop=Ms(re),A.current=Math.max(Je,st)}else I.style.bottom="0",A.current=Math.max(Je,st),re.scrollTop=Te;if(Tt){const Pe=oe.top,yt=oe.height,Ht=Tt.top+Tt.height/2,Vt=yt>0?(Ht-Pe)/yt*100:50,pn=Yf(Vt,0,100);we.style.setProperty("--transform-origin",`50% ${pn}%`)}(A.current===gt||st>=ke)&&(O.current=!0),R(),setTimeout(()=>{Q.current=!0})}finally{Ye()}})}},[p,ae,I,X,h,x,y,R,j,L,P,G,Y,q]),S.useEffect(()=>{if(!j||!I||!ae)return;const we=en(I);function Ye(Se){v(!1,zt(Mw,Se))}return we.addEventListener("resize",Ye),()=>{we.removeEventListener("resize",Ye)}},[v,j,I,ae]);const be={...q?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":E||void 0,id:`${F}-list`},onKeyDown(we){w.current=!0,_&&db.has(we.key)&&we.stopPropagation()},onMouseMove(){w.current=!1},onPointerLeave(we){if(!T||zb(we)||we.pointerType==="touch")return;const Ye=we.currentTarget;ue.start(0,()=>{p.set("activeIndex",null),Ye.focus({preventScroll:!0})})},onScroll(we){q||de(we.currentTarget)},...j&&{style:q?{height:"100%"}:Ob}},De=Jt("div",i,{ref:[o,y],state:ce,stateAttributesMapping:cA,props:[M,be,Mb(N),{className:!q&&j?od.className:void 0},d]});return H.jsxs(S.Fragment,{children:[!me&&od.getElement(ge),H.jsx(Yv,{context:le,modal:!1,disabled:!he,returnFocus:f,restoreFocus:!0,children:De})]})});function zy(l){const i=l.maxHeight||"";return i.endsWith("px")&&parseFloat(i)||1/0}function Ms(l){return Math.max(0,l.scrollHeight-l.clientHeight)}function dA(l){return Fv.getScale(l)}function Os(l,i){return Qo({x:l.x/i.x,y:l.y/i.y,width:l.width/i.x,height:l.height/i.y})}const _y=[["transform","none"],["scale","1"],["translate","0 0"]];function mA(l){const{style:i}=l,o={};for(const[r,c]of _y)o[r]=i.getPropertyValue(r),i.setProperty(r,c,"important");return()=>{for(const[r]of _y){const c=o[r];c?i.setProperty(r,c):i.removeProperty(r)}}}const hA=S.forwardRef(function(i,o){const{className:r,render:c,...f}=i,{store:d,scrollHandlerRef:p}=fl(),{alignItemWithTriggerActive:y}=Od(),m=Ve(d,Be.hasScrollArrows),v=Ve(d,Be.openMethod),h=Ve(d,Be.multiple),w={id:`${Ve(d,Be.id)}-list`,role:"listbox","aria-multiselectable":h||void 0,onScroll(R){var C;(C=p.current)==null||C.call(p,R.currentTarget)},...y&&{style:Ob},className:m&&v!=="touch"?od.className:void 0},E=Ze(R=>{d.set("listElement",R)});return Jt("div",i,{ref:[o,E],props:[w,f]})});let _b=(function(l){return l[l.None=0]="None",l[l.GuessFromOrder=1]="GuessFromOrder",l})({});function gA(l={}){const{label:i,metadata:o,textRef:r,indexGuessBehavior:c,index:f}=l,{register:d,unregister:p,subscribeMapChange:y,elementsRef:m,labelsRef:v,nextIndexRef:h}=Q2(),x=S.useRef(-1),[w,E]=S.useState(f??(c===_b.GuessFromOrder?()=>{if(x.current===-1){const T=h.current;h.current+=1,x.current=T}return x.current}:-1)),R=S.useRef(null),C=S.useCallback(T=>{var U;if(R.current=T,w!==-1&&T!==null&&(m.current[w]=T,v)){const k=i!==void 0;v.current[w]=k?i:((U=r==null?void 0:r.current)==null?void 0:U.textContent)??T.textContent}},[w,m,v,i,r]);return Oe(()=>{if(f!=null)return;const T=R.current;if(T)return d(T,o),()=>{p(T)}},[f,d,p,o]),Oe(()=>{if(f==null)return y(T=>{var k;const U=R.current?(k=T.get(R.current))==null?void 0:k.index:null;U!=null&&E(U)})},[f,y,E]),S.useMemo(()=>({ref:C,index:w}),[w,C])}const Nb=S.createContext(void 0);function zd(){const l=S.useContext(Nb);if(!l)throw new Error(Fn(57));return l}const pA=S.memo(S.forwardRef(function(i,o){const{render:r,className:c,value:f=null,label:d,disabled:p=!1,nativeButton:y=!1,...m}=i,v=S.useRef(null),h=gA({label:d,textRef:v,indexGuessBehavior:_b.GuessFromOrder}),{store:x,getItemProps:w,setOpen:E,setValue:R,selectionRef:C,typingRef:T,valuesRef:U,keyboardActiveRef:k,multiple:j,highlightItemOnHover:L}=fl(),G=kn(),Y=Ve(x,Be.isActive,h.index),_=Ve(x,Be.isSelected,h.index,f),le=Ve(x,Be.isSelectedByFocus,h.index),ge=Ve(x,Be.isItemEqualToValue),me=h.index,ue=me!==-1,F=S.useRef(null),ae=Tn(me);Oe(()=>{if(!ue)return;const P=U.current;return P[me]=f,()=>{delete P[me]}},[ue,me,f,U]),Oe(()=>{if(!ue)return;const P=x.state.value;let de=P;j&&Array.isArray(P)&&P.length>0&&(de=P[P.length-1]),de!==void 0&&ki(f,de,ge)&&x.set("selectedIndex",me)},[ue,me,j,ge,x,f]);const he={disabled:p,selected:_,highlighted:Y},M=w({active:Y,selected:_});M.onFocus=void 0,M.id=void 0;const N=S.useRef(null),X=S.useRef("mouse"),I=S.useRef(!1),{getButtonProps:q,buttonRef:A}=Io({disabled:p,focusableWhenDisabled:!0,native:y,composite:!0});function O(P){const de=x.state.value;if(j){const ce=Array.isArray(de)?de:[],be=_?z2(ce,f,ge):[...ce,f];R(be,zt(Af,P))}else R(f,zt(Af,P)),E(!1,zt(Af,P))}const W={role:"option","aria-selected":_,tabIndex:Y?0:-1,onFocus(){x.set("activeIndex",me)},onMouseEnter(){!k.current&&x.state.selectedIndex===null&&L&&x.set("activeIndex",me)},onMouseMove(){L&&x.set("activeIndex",me)},onMouseLeave(P){!L||k.current||zb(P)||G.start(0,()=>{x.state.activeIndex===me&&x.set("activeIndex",null)})},onTouchStart(){C.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(P){N.current=P.key,x.set("activeIndex",me),P.key===" "&&T.current&&P.preventDefault()},onClick(P){I.current=!1,!(P.type==="keydown"&&N.current===null)&&(p||P.type==="keydown"&&N.current===" "&&T.current||X.current!=="touch"&&!Y||(N.current=null,O(P.nativeEvent)))},onPointerEnter(P){X.current=P.pointerType},onPointerDown(P){X.current=P.pointerType,I.current=!0},onMouseUp(){var ce;if(p)return;if(I.current){I.current=!1;return}const P=!C.current.allowSelectedMouseUp&&_,de=!C.current.allowUnselectedMouseUp&&!_;P||de||X.current!=="touch"&&!Y||(ce=F.current)==null||ce.click()}},Q=Jt("div",i,{ref:[A,o,h.ref,F],state:he,props:[M,W,m,q]}),te=S.useMemo(()=>({selected:_,indexRef:ae,textRef:v,selectedByFocus:le,hasRegistered:ue}),[_,ae,v,le,ue]);return H.jsx(Nb.Provider,{value:te,children:Q})})),yA=S.forwardRef(function(i,o){const r=i.keepMounted??!1,{selected:c}=zd();return r||c?H.jsx(vA,{...i,ref:o}):null}),vA=S.memo(S.forwardRef((l,i)=>{const{render:o,className:r,keepMounted:c,...f}=l,{selected:d}=zd(),p=S.useRef(null),{transitionStatus:y,setMounted:m}=er(d),h=Jt("span",l,{ref:[i,p],state:{selected:d,transitionStatus:y},props:[{"aria-hidden":!0,children:"✔️"},f],stateAttributesMapping:Po});return Ga({open:d,ref:p,onComplete(){d||m(!1)}}),h})),bA=S.memo(S.forwardRef(function(i,o){const{indexRef:r,textRef:c,selectedByFocus:f,hasRegistered:d}=zd(),{selectedItemTextRef:p}=fl(),{className:y,render:m,...v}=i,h=S.useCallback(w=>{if(!w||!d)return;const E=p.current===null||!p.current.isConnected;(f||E&&r.current===0)&&(p.current=w)},[p,r,f,d]);return Jt("div",i,{ref:[h,o,c],props:v})})),Db=S.forwardRef(function(i,o){const{render:r,className:c,direction:f,keepMounted:d=!1,...p}=i,{store:y,popupRef:m,listRef:v,handleScrollArrowVisibility:h,scrollArrowsMountedCountRef:x}=fl(),{side:w,scrollDownArrowRef:E,scrollUpArrowRef:R}=Od(),C=f==="up"?Be.scrollUpArrowVisible:Be.scrollDownArrowVisible,T=Ve(y,C),U=Ve(y,Be.openMethod),k=T&&U!=="touch",j=kn(),L=f==="up"?R:E,{transitionStatus:G,setMounted:Y}=er(k);Oe(()=>(x.current+=1,y.state.hasScrollArrows||y.set("hasScrollArrows",!0),()=>{x.current=Math.max(0,x.current-1),x.current===0&&y.state.hasScrollArrows&&y.set("hasScrollArrows",!1)}),[y,x]),Ga({open:k,ref:L,onComplete(){k||Y(!1)}});const ge=Jt("div",i,{ref:[o,L],state:{direction:f,visible:k,side:w,transitionStatus:G},props:[{"aria-hidden":!0,children:f==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(ue){if(ue.movementX===0&&ue.movementY===0||j.isStarted())return;y.set("activeIndex",null);function F(){var X;const ae=y.state.listElement??m.current;if(!ae)return;y.set("activeIndex",null),h();const he=ae.scrollTop===0,M=Math.round(ae.scrollTop+ae.clientHeight)>=ae.scrollHeight;if(v.current.length===0&&(f==="up"?y.set("scrollUpArrowVisible",!he):y.set("scrollDownArrowVisible",!M)),f==="up"&&he||f==="down"&&M){j.clear();return}if((y.state.listElement||m.current)&&v.current&&v.current.length>0){const I=v.current,q=((X=L.current)==null?void 0:X.offsetHeight)||0;if(f==="up"){let A=0;const O=ae.scrollTop+q;for(let Q=0;Q<I.length;Q+=1){const te=I[Q];if(te&&te.offsetTop>=O){A=Q;break}}const W=Math.max(0,A-1);if(W<A){const Q=I[W];Q&&(ae.scrollTop=Math.max(0,Q.offsetTop-q))}else ae.scrollTop=0}else{let A=I.length-1;const O=ae.scrollTop+ae.clientHeight-q;for(let Q=0;Q<I.length;Q+=1){const te=I[Q];if(te&&te.offsetTop+te.offsetHeight>O){A=Math.max(0,Q-1);break}}const W=Math.min(I.length-1,A+1);if(W>A){const Q=I[W];Q&&(ae.scrollTop=Q.offsetTop+Q.offsetHeight-ae.clientHeight+q)}else ae.scrollTop=ae.scrollHeight-ae.clientHeight}}j.start(40,F)}j.start(40,F)},onMouseLeave(){j.clear()}},p]});return k||d?ge:null}),SA=S.forwardRef(function(i,o){return H.jsx(Db,{...i,ref:o,direction:"down"})}),xA=S.forwardRef(function(i,o){return H.jsx(Db,{...i,ref:o,direction:"up"})}),Ny=j2;function Dy({className:l,...i}){return H.jsx(Y2,{"data-slot":"select-value",className:mn("flex flex-1 text-left",l),...i})}function jy({className:l,size:i="default",children:o,...r}){return H.jsxs(H2,{"data-slot":"select-trigger","data-size":i,className:mn("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...r,children:[o,H.jsx(q2,{render:H.jsx(Gy,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function ky({className:l,children:i,side:o="bottom",sideOffset:r=4,align:c="center",alignOffset:f=0,alignItemWithTrigger:d=!0,...p}){return H.jsx(X2,{children:H.jsx(aA,{side:o,sideOffset:r,align:c,alignOffset:f,alignItemWithTrigger:d,className:"isolate z-50",children:H.jsxs(fA,{"data-slot":"select-content","data-align-trigger":d,className:mn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",l),...p,children:[H.jsx(EA,{}),H.jsx(hA,{children:i}),H.jsx(wA,{})]})})})}function Uy({className:l,children:i,...o}){return H.jsxs(pA,{"data-slot":"select-item",className:mn("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),...o,children:[H.jsx(bA,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:i}),H.jsx(yA,{render:H.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:H.jsx(qy,{className:"pointer-events-none"})})]})}function EA({className:l,...i}){return H.jsx(xA,{"data-slot":"select-scroll-up-button",className:mn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",l),...i,children:H.jsx(GS,{})})}function wA({className:l,...i}){return H.jsx(SA,{"data-slot":"select-scroll-down-button",className:mn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",l),...i,children:H.jsx(Gy,{})})}function Ly({id:l,value:i,onChange:o,suggestions:r,placeholder:c}){const[f,d]=S.useState(!1),[p,y]=S.useState(""),m=S.useRef(null);S.useEffect(()=>{function h(x){m.current&&!m.current.contains(x.target)&&d(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const v=r.filter(h=>h.toLowerCase().includes((p||i).toLowerCase()));return H.jsxs("div",{ref:m,className:"relative",children:[H.jsx(Nv,{id:l,value:i,placeholder:c,onChange:h=>{o(h.target.value),y(h.target.value),d(!0)},onFocus:()=>d(!0)}),f&&v.length>0&&H.jsx("div",{className:"absolute z-50 mt-1 w-full rounded-md border bg-popover p-1 shadow-md",children:v.map(h=>H.jsx("button",{className:`w-full rounded px-2 py-1.5 text-left text-sm hover:bg-accent ${h===i?"bg-accent":""}`,onMouseDown:x=>{x.preventDefault(),o(h),y(""),d(!1)},children:h},h))})]})}function TA({open:l,onOpenChange:i}){const[o,r]=S.useState(null),[c,f]=S.useState([]),[d,p]=S.useState([]),[y,m]=S.useState({}),[v,h]=S.useState([]),[x,w]=S.useState([]),[E,R]=S.useState(!1);S.useEffect(()=>{l&&qw().then(T=>{r(T.config),f(T.modifier_key_options),p(T.toggle_key_options),m(T.key_labels),h(T.transcription_model_suggestions),w(T.fix_model_suggestions)})},[l]);async function C(){if(!o)return;R(!0);const T=await Gw(o);R(!1),T?(Oi("Settings saved"),i(!1)):Oi.error("Failed to save settings")}return o?H.jsx(h2,{open:l,onOpenChange:i,children:H.jsxs(y2,{children:[H.jsx(v2,{children:H.jsx(S2,{children:"Settings"})}),H.jsxs("div",{className:"space-y-4",children:[H.jsxs("div",{className:"space-y-2",children:[H.jsx(ka,{htmlFor:"modifier_key",children:"Modifier key"}),H.jsxs(Ny,{value:o.modifier_key,onValueChange:T=>T&&r({...o,modifier_key:T}),children:[H.jsx(jy,{id:"modifier_key",children:H.jsx(Dy,{children:y[o.modifier_key]||o.modifier_key})}),H.jsx(ky,{children:c.map(T=>H.jsx(Uy,{value:T,children:y[T]||T},T))})]})]}),H.jsxs("div",{className:"space-y-2",children:[H.jsx(ka,{htmlFor:"toggle_key",children:"Toggle key"}),H.jsxs(Ny,{value:o.toggle_key,onValueChange:T=>T&&r({...o,toggle_key:T}),children:[H.jsx(jy,{id:"toggle_key",children:H.jsx(Dy,{children:y[o.toggle_key]||o.toggle_key})}),H.jsx(ky,{children:d.map(T=>H.jsx(Uy,{value:T,children:y[T]||T},T))})]})]}),H.jsxs("div",{className:"space-y-2",children:[H.jsx(ka,{htmlFor:"transcription_model",children:"Transcription model"}),H.jsx(Ly,{id:"transcription_model",value:o.transcription_model,onChange:T=>r({...o,transcription_model:T}),suggestions:v})]}),H.jsxs("div",{className:"space-y-2",children:[H.jsx(ka,{htmlFor:"fix_model",children:"Post-processing model"}),H.jsx(Ly,{id:"fix_model",value:o.fix_model,onChange:T=>r({...o,fix_model:T}),suggestions:x})]}),H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(Vf,{id:"no_fix",checked:o.no_fix,onCheckedChange:T=>r({...o,no_fix:T===!0})}),H.jsx(ka,{htmlFor:"no_fix",children:"Disable post-processing"})]}),H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(Vf,{id:"sound",checked:o.sound,onCheckedChange:T=>r({...o,sound:T===!0})}),H.jsx(ka,{htmlFor:"sound",children:"Play sound when mic is ready"})]}),H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(Vf,{id:"submit_with_return",checked:o.submit_with_return,onCheckedChange:T=>r({...o,submit_with_return:T===!0})}),H.jsxs(ka,{htmlFor:"submit_with_return",children:["YOLO mode (submit with"," ",H.jsx("kbd",{className:"rounded border bg-muted px-1.5 py-0.5 text-xs font-mono",children:y[o.modifier_key]||o.modifier_key})," + ",H.jsx("kbd",{className:"rounded border bg-muted px-1.5 py-0.5 text-xs font-mono",children:"Return"}),")"]})]})]}),H.jsx(b2,{children:H.jsx(qo,{onClick:C,disabled:E,className:"w-full",children:E?"Saving...":"Save"})})]})}):null}const qf=30;function RA(){const[l,i]=S.useState(null),[o,r]=S.useState([]),[c,f]=S.useState(window.location.hash==="#settings"),[d,p]=S.useState(""),[y,m]=S.useState(0),v=S.useMemo(()=>{if(!d.trim())return o;const C=d.toLowerCase();return o.filter(T=>T.raw_text.toLowerCase().includes(C)||T.fixed_text&&T.fixed_text.toLowerCase().includes(C)||T.app_name&&T.app_name.toLowerCase().includes(C))},[o,d]),h=Math.max(1,Math.ceil(v.length/qf)),x=Math.min(y,h-1),w=v.slice(x*qf,(x+1)*qf);function E(){Vw().then(i),Yw(1e3).then(r)}function R(C){f(C),window.location.hash=C?"#settings":""}return S.useEffect(()=>{E();const C=setInterval(E,5e3),T=()=>E(),U=()=>{f(window.location.hash==="#settings")},k=window.matchMedia("(prefers-color-scheme: dark)"),j=L=>{document.documentElement.classList.toggle("dark",L.matches)};return k.addEventListener("change",j),window.addEventListener("focus",T),window.addEventListener("hashchange",U),()=>{clearInterval(C),window.removeEventListener("focus",T),window.removeEventListener("hashchange",U),k.removeEventListener("change",j)}},[]),H.jsxs("div",{className:"flex flex-col h-screen max-w-3xl mx-auto px-4",children:[H.jsxs("header",{className:"flex justify-between items-center py-4 shrink-0",children:[H.jsxs("h1",{className:"text-xl font-semibold flex items-center gap-2",children:[H.jsx("img",{src:"/icon.svg",alt:"",className:"w-7 h-7 dark:invert"}),"Wordbird"]}),H.jsx("button",{onClick:()=>R(!0),className:"text-muted-foreground hover:text-foreground p-2 rounded-lg transition-colors",title:"Settings",children:H.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:H.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})})]}),H.jsx(Uw,{stats:l}),o.length>0&&H.jsx("div",{className:"shrink-0 mb-3",children:H.jsx(Nv,{placeholder:"Search transcriptions...",value:d,onChange:C=>{p(C.target.value),m(0)}})}),H.jsx("div",{className:"flex-1 overflow-y-auto min-h-0 pb-4",children:H.jsx(Iw,{transcriptions:w,onDelete:E})}),h>1&&H.jsxs("div",{className:"shrink-0 flex items-center justify-center gap-2 py-3 border-t",children:[H.jsx(qo,{variant:"outline",size:"sm",onClick:()=>m(x-1),disabled:x===0,children:"Previous"}),H.jsxs("span",{className:"text-sm text-muted-foreground tabular-nums",children:[x+1," / ",h]}),H.jsx(qo,{variant:"outline",size:"sm",onClick:()=>m(x+1),disabled:x>=h-1,children:"Next"})]}),H.jsx(TA,{open:c,onOpenChange:R}),H.jsx(nx,{})]})}nS.createRoot(document.getElementById("root")).render(H.jsx(S.StrictMode,{children:H.jsx(RA,{})}));
