index-BHH3WaTu.js 339 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();function rh(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ic={exports:{}},In={};/**
  2. * @license React
  3. * react-jsx-runtime.production.js
  4. *
  5. * Copyright (c) Meta Platforms, Inc. and affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */var Lm;function Tp(){if(Lm)return In;Lm=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var v in d)v!=="key"&&(m[v]=d[v])}else m=d;return d=m.ref,{$$typeof:i,type:c,key:y,ref:d!==void 0?d:null,props:m}}return In.Fragment=u,In.jsx=r,In.jsxs=r,In}var Hm;function Np(){return Hm||(Hm=1,ic.exports=Tp()),ic.exports}var f=Np(),sc={exports:{}},Pn={},uc={exports:{}},rc={};/**
  10. * @license React
  11. * scheduler.production.js
  12. *
  13. * Copyright (c) Meta Platforms, Inc. and affiliates.
  14. *
  15. * This source code is licensed under the MIT license found in the
  16. * LICENSE file in the root directory of this source tree.
  17. */var km;function jp(){return km||(km=1,(function(i){function u(D,K){var le=D.length;D.push(K);e:for(;0<le;){var Te=le-1>>>1,we=D[Te];if(0<d(we,K))D[Te]=K,D[le]=we,le=Te;else break e}}function r(D){return D.length===0?null:D[0]}function c(D){if(D.length===0)return null;var K=D[0],le=D.pop();if(le!==K){D[0]=le;e:for(var Te=0,we=D.length,T=we>>>1;Te<T;){var G=2*(Te+1)-1,J=D[G],P=G+1,ce=D[P];if(0>d(J,le))P<we&&0>d(ce,J)?(D[Te]=ce,D[P]=le,Te=P):(D[Te]=J,D[G]=le,Te=G);else if(P<we&&0>d(ce,le))D[Te]=ce,D[P]=le,Te=P;else break e}}return K}function d(D,K){var le=D.sortIndex-K.sortIndex;return le!==0?le:D.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var y=Date,v=y.now();i.unstable_now=function(){return y.now()-v}}var g=[],p=[],E=1,x=null,j=3,M=!1,U=!1,L=!1,q=!1,R=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function X(D){for(var K=r(p);K!==null;){if(K.callback===null)c(p);else if(K.startTime<=D)c(p),K.sortIndex=K.expirationTime,u(g,K);else break;K=r(p)}}function F(D){if(L=!1,X(D),!U)if(r(g)!==null)U=!0,$||($=!0,ae());else{var K=r(p);K!==null&&Be(F,K.startTime-D)}}var $=!1,V=-1,Z=5,ne=-1;function Q(){return q?!0:!(i.unstable_now()-ne<Z)}function W(){if(q=!1,$){var D=i.unstable_now();ne=D;var K=!0;try{e:{U=!1,L&&(L=!1,H(V),V=-1),M=!0;var le=j;try{t:{for(X(D),x=r(g);x!==null&&!(x.expirationTime>D&&Q());){var Te=x.callback;if(typeof Te=="function"){x.callback=null,j=x.priorityLevel;var we=Te(x.expirationTime<=D);if(D=i.unstable_now(),typeof we=="function"){x.callback=we,X(D),K=!0;break t}x===r(g)&&c(g),X(D)}else c(g);x=r(g)}if(x!==null)K=!0;else{var T=r(p);T!==null&&Be(F,T.startTime-D),K=!1}}break e}finally{x=null,j=le,M=!1}K=void 0}}finally{K?ae():$=!1}}}var ae;if(typeof A=="function")ae=function(){A(W)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ce=Ue.port2;Ue.port1.onmessage=W,ae=function(){Ce.postMessage(null)}}else ae=function(){R(W,0)};function Be(D,K){V=R(function(){D(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return j},i.unstable_next=function(D){switch(j){case 1:case 2:case 3:var K=3;break;default:K=j}var le=j;j=K;try{return D()}finally{j=le}},i.unstable_requestPaint=function(){q=!0},i.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var le=j;j=D;try{return K()}finally{j=le}},i.unstable_scheduleCallback=function(D,K,le){var Te=i.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Te+le:Te):le=Te,D){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=le+we,D={id:E++,callback:K,priorityLevel:D,startTime:le,expirationTime:we,sortIndex:-1},le>Te?(D.sortIndex=le,u(p,D),r(g)===null&&D===r(p)&&(L?(H(V),V=-1):L=!0,Be(F,le-Te))):(D.sortIndex=we,u(g,D),U||M||(U=!0,$||($=!0,ae()))),D},i.unstable_shouldYield=Q,i.unstable_wrapCallback=function(D){var K=j;return function(){var le=j;j=K;try{return D.apply(this,arguments)}finally{j=le}}}})(rc)),rc}var qm;function Ap(){return qm||(qm=1,uc.exports=jp()),uc.exports}var cc={exports:{}},re={};/**
  18. * @license React
  19. * react.production.js
  20. *
  21. * Copyright (c) Meta Platforms, Inc. and affiliates.
  22. *
  23. * This source code is licensed under the MIT license found in the
  24. * LICENSE file in the root directory of this source tree.
  25. */var Ym;function Cp(){if(Ym)return re;Ym=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),j=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=j&&T[j]||T["@@iterator"],typeof T=="function"?T:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,q={};function R(T,G,J){this.props=T,this.context=G,this.refs=q,this.updater=J||U}R.prototype.isReactComponent={},R.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=R.prototype;function A(T,G,J){this.props=T,this.context=G,this.refs=q,this.updater=J||U}var X=A.prototype=new H;X.constructor=A,L(X,R.prototype),X.isPureReactComponent=!0;var F=Array.isArray;function $(){}var V={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function ne(T,G,J){var P=J.ref;return{$$typeof:i,type:T,key:G,ref:P!==void 0?P:null,props:J}}function Q(T,G){return ne(T.type,G,T.props)}function W(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function ae(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(J){return G[J]})}var Ue=/\/+/g;function Ce(T,G){return typeof T=="object"&&T!==null&&T.key!=null?ae(""+T.key):G.toString(36)}function Be(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then($,$):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,G,J,P,ce){var de=typeof T;(de==="undefined"||de==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(de){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case i:case u:Se=!0;break;case E:return Se=T._init,D(Se(T._payload),G,J,P,ce)}}if(Se)return ce=ce(T),Se=P===""?"."+Ce(T,0):P,F(ce)?(J="",Se!=null&&(J=Se.replace(Ue,"$&/")+"/"),D(ce,G,J,"",function(nn){return nn})):ce!=null&&(W(ce)&&(ce=Q(ce,J+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Ue,"$&/")+"/")+Se)),G.push(ce)),1;Se=0;var lt=P===""?".":P+":";if(F(T))for(var qe=0;qe<T.length;qe++)P=T[qe],de=lt+Ce(P,qe),Se+=D(P,G,J,de,ce);else if(qe=M(T),typeof qe=="function")for(T=qe.call(T),qe=0;!(P=T.next()).done;)P=P.value,de=lt+Ce(P,qe++),Se+=D(P,G,J,de,ce);else if(de==="object"){if(typeof T.then=="function")return D(Be(T),G,J,P,ce);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(T,G,J){if(T==null)return T;var P=[],ce=0;return D(T,P,"","",function(de){return G.call(J,de,ce++)}),P}function le(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(J){(T._status===0||T._status===-1)&&(T._status=1,T._result=J)},function(J){(T._status===0||T._status===-1)&&(T._status=2,T._result=J)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var Te=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},we={map:K,forEach:function(T,G,J){K(T,function(){G.apply(this,arguments)},J)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(T,function(G){return G})||[]},only:function(T){if(!W(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return re.Activity=x,re.Children=we,re.Component=R,re.Fragment=r,re.Profiler=d,re.PureComponent=A,re.StrictMode=c,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return V.H.useMemoCache(T)}},re.cache=function(T){return function(){return T.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(T,G,J){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var P=L({},T.props),ce=T.key;if(G!=null)for(de in G.key!==void 0&&(ce=""+G.key),G)!Z.call(G,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&G.ref===void 0||(P[de]=G[de]);var de=arguments.length-2;if(de===1)P.children=J;else if(1<de){for(var Se=Array(de),lt=0;lt<de;lt++)Se[lt]=arguments[lt+2];P.children=Se}return ne(T.type,ce,P)},re.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},re.createElement=function(T,G,J){var P,ce={},de=null;if(G!=null)for(P in G.key!==void 0&&(de=""+G.key),G)Z.call(G,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ce[P]=G[P]);var Se=arguments.length-2;if(Se===1)ce.children=J;else if(1<Se){for(var lt=Array(Se),qe=0;qe<Se;qe++)lt[qe]=arguments[qe+2];ce.children=lt}if(T&&T.defaultProps)for(P in Se=T.defaultProps,Se)ce[P]===void 0&&(ce[P]=Se[P]);return ne(T,de,ce)},re.createRef=function(){return{current:null}},re.forwardRef=function(T){return{$$typeof:v,render:T}},re.isValidElement=W,re.lazy=function(T){return{$$typeof:E,_payload:{_status:-1,_result:T},_init:le}},re.memo=function(T,G){return{$$typeof:p,type:T,compare:G===void 0?null:G}},re.startTransition=function(T){var G=V.T,J={};V.T=J;try{var P=T(),ce=V.S;ce!==null&&ce(J,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then($,Te)}catch(de){Te(de)}finally{G!==null&&J.types!==null&&(G.types=J.types),V.T=G}},re.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},re.use=function(T){return V.H.use(T)},re.useActionState=function(T,G,J){return V.H.useActionState(T,G,J)},re.useCallback=function(T,G){return V.H.useCallback(T,G)},re.useContext=function(T){return V.H.useContext(T)},re.useDebugValue=function(){},re.useDeferredValue=function(T,G){return V.H.useDeferredValue(T,G)},re.useEffect=function(T,G){return V.H.useEffect(T,G)},re.useEffectEvent=function(T){return V.H.useEffectEvent(T)},re.useId=function(){return V.H.useId()},re.useImperativeHandle=function(T,G,J){return V.H.useImperativeHandle(T,G,J)},re.useInsertionEffect=function(T,G){return V.H.useInsertionEffect(T,G)},re.useLayoutEffect=function(T,G){return V.H.useLayoutEffect(T,G)},re.useMemo=function(T,G){return V.H.useMemo(T,G)},re.useOptimistic=function(T,G){return V.H.useOptimistic(T,G)},re.useReducer=function(T,G,J){return V.H.useReducer(T,G,J)},re.useRef=function(T){return V.H.useRef(T)},re.useState=function(T){return V.H.useState(T)},re.useSyncExternalStore=function(T,G,J){return V.H.useSyncExternalStore(T,G,J)},re.useTransition=function(){return V.H.useTransition()},re.version="19.2.3",re}var Gm;function Ac(){return Gm||(Gm=1,cc.exports=Cp()),cc.exports}var oc={exports:{}},tt={};/**
  26. * @license React
  27. * react-dom.production.js
  28. *
  29. * Copyright (c) Meta Platforms, Inc. and affiliates.
  30. *
  31. * This source code is licensed under the MIT license found in the
  32. * LICENSE file in the root directory of this source tree.
  33. */var Xm;function wp(){if(Xm)return tt;Xm=1;var i=Ac();function u(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)p+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,p,E){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:g,containerInfo:p,implementation:E}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,tt.createPortal=function(g,p){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return m(g,p,null,E)},tt.flushSync=function(g){var p=y.T,E=c.p;try{if(y.T=null,c.p=2,g)return g()}finally{y.T=p,c.p=E,c.d.f()}},tt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(g,p))},tt.prefetchDNS=function(g){typeof g=="string"&&c.d.D(g)},tt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var E=p.as,x=v(E,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;E==="style"?c.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:j,fetchPriority:M}):E==="script"&&c.d.X(g,{crossOrigin:x,integrity:j,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var E=v(p.as,p.crossOrigin);c.d.M(g,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(g)},tt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var E=p.as,x=v(E,p.crossOrigin);c.d.L(g,E,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(g,p){if(typeof g=="string")if(p){var E=v(p.as,p.crossOrigin);c.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(g)},tt.requestFormReset=function(g){c.d.r(g)},tt.unstable_batchedUpdates=function(g,p){return g(p)},tt.useFormState=function(g,p,E){return y.H.useFormState(g,p,E)},tt.useFormStatus=function(){return y.H.useHostTransitionStatus()},tt.version="19.2.3",tt}var Qm;function zp(){if(Qm)return oc.exports;Qm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),oc.exports=wp(),oc.exports}/**
  34. * @license React
  35. * react-dom-client.production.js
  36. *
  37. * Copyright (c) Meta Platforms, Inc. and affiliates.
  38. *
  39. * This source code is licensed under the MIT license found in the
  40. * LICENSE file in the root directory of this source tree.
  41. */var Vm;function Mp(){if(Vm)return Pn;Vm=1;var i=Ap(),u=Ac(),r=zp();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(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 v(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 g(e){if(m(e)!==e)throw Error(c(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return g(n),e;if(s===l)return g(n),t;s=s.sibling}throw Error(c(188))}if(a.return!==l.return)a=n,l=s;else{for(var o=!1,h=n.child;h;){if(h===a){o=!0,a=n,l=s;break}if(h===l){o=!0,l=n,a=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===a){o=!0,a=s,l=n;break}if(h===l){o=!0,l=s,a=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,j=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),A=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case R:return"Profiler";case q:return"StrictMode";case F:return"Suspense";case $:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case A:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var Be=Array.isArray,D=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Te=[],we=-1;function T(e){return{current:e}}function G(e){0>we||(e.current=Te[we],Te[we]=null,we--)}function J(e,t){we++,Te[we]=e.current,e.current=t}var P=T(null),ce=T(null),de=T(null),Se=T(null);function lt(e,t){switch(J(de,t),J(ce,e),J(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sm(t),e=um(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(P),J(P,e)}function qe(){G(P),G(ce),G(de)}function nn(e){e.memoizedState!==null&&J(Se,e);var t=P.current,a=um(t,e.type);t!==a&&(J(ce,e),J(P,a))}function oi(e){ce.current===e&&(G(P),G(ce)),Se.current===e&&(G(Se),Jn._currentValue=le)}var Ys,Dc;function Va(e){if(Ys===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ys=t&&t[1]||"",Dc=-1<a.stack.indexOf(`
  42. at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
  43. `+Ys+e+Dc}var Gs=!1;function Xs(e,t){if(!e||Gs)return"";Gs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(O){var z=O}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(O){z=O}e.call(Y.prototype)}}else{try{throw Error()}catch(O){z=O}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var S=o.split(`
  44. `),w=h.split(`
  45. `);for(n=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;n<w.length&&!w[n].includes("DetermineComponentFrameRoot");)n++;if(l===S.length||n===w.length)for(l=S.length-1,n=w.length-1;1<=l&&0<=n&&S[l]!==w[n];)n--;for(;1<=l&&0<=n;l--,n--)if(S[l]!==w[n]){if(l!==1||n!==1)do if(l--,n--,0>n||S[l]!==w[n]){var B=`
  46. `+S[l].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=l&&0<=n);break}}}finally{Gs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Va(a):""}function t0(e,t){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return e.child!==t&&t!==null?Va("Suspense Fallback"):Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Xs(e.type,!1);case 11:return Xs(e.type.render,!1);case 1:return Xs(e.type,!0);case 31:return Va("Activity");default:return""}}function Uc(e){try{var t="",a=null;do t+=t0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
  47. Error generating stack: `+l.message+`
  48. `+l.stack}}var Qs=Object.prototype.hasOwnProperty,Vs=i.unstable_scheduleCallback,Zs=i.unstable_cancelCallback,a0=i.unstable_shouldYield,l0=i.unstable_requestPaint,mt=i.unstable_now,n0=i.unstable_getCurrentPriorityLevel,Bc=i.unstable_ImmediatePriority,Lc=i.unstable_UserBlockingPriority,fi=i.unstable_NormalPriority,i0=i.unstable_LowPriority,Hc=i.unstable_IdlePriority,s0=i.log,u0=i.unstable_setDisableYieldValue,sn=null,ht=null;function pa(e){if(typeof s0=="function"&&u0(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(sn,e)}catch{}}var yt=Math.clz32?Math.clz32:o0,r0=Math.log,c0=Math.LN2;function o0(e){return e>>>=0,e===0?32:31-(r0(e)/c0|0)|0}var di=256,mi=262144,hi=4194304;function Za(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 yi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?n=Za(l):(o&=h,o!==0?n=Za(o):a||(a=h&~e,a!==0&&(n=Za(a))))):(h=l&~s,h!==0?n=Za(h):o!==0?n=Za(o):a||(a=l&~e,a!==0&&(n=Za(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function un(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f0(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 kc(){var e=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),e}function Ks(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d0(e,t,a,l,n,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,S=e.expirationTimes,w=e.hiddenUpdates;for(a=o&~a;0<a;){var B=31-yt(a),Y=1<<B;h[B]=0,S[B]=-1;var z=w[B];if(z!==null)for(w[B]=null,B=0;B<z.length;B++){var O=z[B];O!==null&&(O.lane&=-536870913)}a&=~Y}l!==0&&qc(e,l,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function qc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Yc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Gc(e,t){var a=t&-t;return a=(a&42)!==0?1:Js(a),(a&(e.suspendedLanes|t))!==0?0:a}function Js(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 $s(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Qc(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var ga=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ga,st="__reactProps$"+ga,yl="__reactContainer$"+ga,Fs="__reactEvents$"+ga,m0="__reactListeners$"+ga,h0="__reactHandles$"+ga,Vc="__reactResources$"+ga,cn="__reactMarker$"+ga;function Ws(e){delete e[Fe],delete e[st],delete e[Fs],delete e[m0],delete e[h0]}function pl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[yl]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hm(e);e!==null;){if(a=e[Fe])return a;e=hm(e)}return t}e=a,a=e.parentNode}return null}function gl(e){if(e=e[Fe]||e[yl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function on(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function vl(e){var t=e[Vc];return t||(t=e[Vc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[cn]=!0}var Zc=new Set,Kc={};function Ka(e,t){xl(e,t),xl(e+"Capture",t)}function xl(e,t){for(Kc[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var y0=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]*$"),Jc={},$c={};function p0(e){return Qs.call($c,e)?!0:Qs.call(Jc,e)?!1:y0.test(e)?$c[e]=!0:(Jc[e]=!0,!1)}function pi(e,t,a){if(p0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function gi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Zt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Is(e){if(!e._valueTracker){var t=Fc(e)?"checked":"value";e._valueTracker=g0(e,t,""+e[t])}}function Wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Fc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function vi(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 v0=/[\n"\\]/g;function jt(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ps(e,t,a,l,n,s,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?eu(e,o,Nt(t)):a!=null?eu(e,o,Nt(a)):l!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Nt(h):e.removeAttribute("name")}function Ic(e,t,a,l,n,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Is(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Is(e)}function eu(e,t,a){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function bl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Nt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Pc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function eo(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(c(92));if(Be(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Is(e)}function Sl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var x0=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 to(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||x0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ao(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&to(e,n,l)}else for(var s in t)t.hasOwnProperty(s)&&to(e,s,t[s])}function tu(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 b0=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"]]),S0=/^[\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 xi(e){return S0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var au=null;function lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,_l=null;function lo(e){var t=gl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ps(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[st]||null;if(!n)throw Error(c(90));Ps(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Wc(l)}break e;case"textarea":Pc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&bl(e,!!a.multiple,t,!1)}}}var nu=!1;function no(e,t,a){if(nu)return e(t,a);nu=!0;try{var l=e(t);return l}finally{if(nu=!1,(El!==null||_l!==null)&&(ss(),El&&(t=El,e=_l,_l=El=null,lo(t),e)))for(t=0;t<e.length;t++)lo(e[t])}}function fn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[st]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iu=!1;if(Jt)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){iu=!0}}),window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{iu=!1}var va=null,su=null,bi=null;function io(){if(bi)return bi;var e,t=su,a=t.length,l,n="value"in va?va.value:va.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[s-l];l++);return bi=n.slice(e,1<l?1-l:void 0)}function Si(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 Ei(){return!0}function so(){return!1}function ut(e){function t(a,l,n,s,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ei:so,this.isPropagationStopped=so,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=ut(Ja),mn=x({},Ja,{view:0,detail:0}),E0=ut(mn),uu,ru,hn,Ti=x({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ou,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!==hn&&(hn&&e.type==="mousemove"?(uu=e.screenX-hn.screenX,ru=e.screenY-hn.screenY):ru=uu=0,hn=e),uu)},movementY:function(e){return"movementY"in e?e.movementY:ru}}),uo=ut(Ti),_0=x({},Ti,{dataTransfer:0}),T0=ut(_0),N0=x({},mn,{relatedTarget:0}),cu=ut(N0),j0=x({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=ut(j0),C0=x({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w0=ut(C0),z0=x({},Ja,{data:0}),ro=ut(z0),M0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O0={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"},R0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=R0[e])?!!t[e]:!1}function ou(){return D0}var U0=x({},mn,{key:function(e){if(e.key){var t=M0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ou,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B0=ut(U0),L0=x({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),co=ut(L0),H0=x({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ou}),k0=ut(H0),q0=x({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=ut(q0),G0=x({},Ti,{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}),X0=ut(G0),Q0=x({},Ja,{newState:0,oldState:0}),V0=ut(Q0),Z0=[9,13,27,32],fu=Jt&&"CompositionEvent"in window,yn=null;Jt&&"documentMode"in document&&(yn=document.documentMode);var K0=Jt&&"TextEvent"in window&&!yn,oo=Jt&&(!fu||yn&&8<yn&&11>=yn),fo=" ",mo=!1;function ho(e,t){switch(e){case"keyup":return Z0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tl=!1;function J0(e,t){switch(e){case"compositionend":return yo(t);case"keypress":return t.which!==32?null:(mo=!0,fo);case"textInput":return e=t.data,e===fo&&mo?null:e;default:return null}}function $0(e,t){if(Tl)return e==="compositionend"||!fu&&ho(e,t)?(e=io(),bi=su=va=null,Tl=!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 oo&&t.locale!=="ko"?null:t.data;default:return null}}var F0={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 po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!F0[e.type]:t==="textarea"}function go(e,t,a,l){El?_l?_l.push(l):_l=[l]:El=l,t=ms(t,"onChange"),0<t.length&&(a=new _i("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var pn=null,gn=null;function W0(e){em(e,0)}function Ni(e){var t=on(e);if(Wc(t))return e}function vo(e,t){if(e==="change")return t}var xo=!1;if(Jt){var du;if(Jt){var mu="oninput"in document;if(!mu){var bo=document.createElement("div");bo.setAttribute("oninput","return;"),mu=typeof bo.oninput=="function"}du=mu}else du=!1;xo=du&&(!document.documentMode||9<document.documentMode)}function So(){pn&&(pn.detachEvent("onpropertychange",Eo),gn=pn=null)}function Eo(e){if(e.propertyName==="value"&&Ni(gn)){var t=[];go(t,gn,e,lu(e)),no(W0,t)}}function I0(e,t,a){e==="focusin"?(So(),pn=t,gn=a,pn.attachEvent("onpropertychange",Eo)):e==="focusout"&&So()}function P0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(gn)}function ey(e,t){if(e==="click")return Ni(t)}function ty(e,t){if(e==="input"||e==="change")return Ni(t)}function ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:ay;function vn(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Qs.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function _o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var a=_o(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_o(a)}}function No(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?No(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=vi(e.document)}return t}function hu(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 ly=Jt&&"documentMode"in document&&11>=document.documentMode,Nl=null,yu=null,xn=null,pu=!1;function Ao(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pu||Nl==null||Nl!==vi(l)||(l=Nl,"selectionStart"in l&&hu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xn&&vn(xn,l)||(xn=l,l=ms(yu,"onSelect"),0<l.length&&(t=new _i("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Nl)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},gu={},Co={};Jt&&(Co=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Fa(e){if(gu[e])return gu[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Co)return gu[e]=t[a];return e}var wo=Fa("animationend"),zo=Fa("animationiteration"),Mo=Fa("animationstart"),ny=Fa("transitionrun"),iy=Fa("transitionstart"),sy=Fa("transitioncancel"),Oo=Fa("transitionend"),Ro=new Map,vu="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(" ");vu.push("scrollEnd");function Bt(e,t){Ro.set(e,t),Ka(t,[e])}var ji=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)},At=[],Al=0,xu=0;function Ai(){for(var e=Al,t=xu=Al=0;t<e;){var a=At[t];At[t++]=null;var l=At[t];At[t++]=null;var n=At[t];At[t++]=null;var s=At[t];if(At[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}s!==0&&Do(a,n,s)}}function Ci(e,t,a,l){At[Al++]=e,At[Al++]=t,At[Al++]=a,At[Al++]=l,xu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function bu(e,t,a,l){return Ci(e,t,a,l),wi(e)}function Wa(e,t){return Ci(e,null,null,t),wi(e)}function Do(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-yt(a),e=s.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),s):null}function wi(e){if(50<Yn)throw Yn=0,wr=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Cl={};function uy(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,a,l){return new uy(e,t,a,l)}function Su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var a=e.alternate;return a===null?(a=gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Uo(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,a,l,n,s){var o=0;if(l=e,typeof e=="function")Su(e)&&(o=1);else if(typeof e=="string")o=dp(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=gt(31,a,t,n),e.elementType=ne,e.lanes=s,e;case L:return Ia(a.children,n,s,t);case q:o=8,n|=24;break;case R:return e=gt(12,a,t,n|2),e.elementType=R,e.lanes=s,e;case F:return e=gt(13,a,t,n),e.elementType=F,e.lanes=s,e;case $:return e=gt(19,a,t,n),e.elementType=$,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:o=10;break e;case H:o=9;break e;case X:o=11;break e;case V:o=14;break e;case Z:o=16,l=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=gt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=s,t}function Ia(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function Eu(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function Bo(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function _u(e,t,a){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lo=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var a=Lo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Uc(t)},Lo.set(e,t),t)}return{value:e,source:t,stack:Uc(t)}}var wl=[],zl=0,Mi=null,bn=0,wt=[],zt=0,xa=null,qt=1,Yt="";function Ft(e,t){wl[zl++]=bn,wl[zl++]=Mi,Mi=e,bn=t}function Ho(e,t,a){wt[zt++]=qt,wt[zt++]=Yt,wt[zt++]=xa,xa=e;var l=qt;e=Yt;var n=32-yt(l)-1;l&=~(1<<n),a+=1;var s=32-yt(t)+n;if(30<s){var o=n-n%5;s=(l&(1<<o)-1).toString(32),l>>=o,n-=o,qt=1<<32-yt(t)+n|a<<n|l,Yt=s+e}else qt=1<<s|a<<n|l,Yt=e}function Tu(e){e.return!==null&&(Ft(e,1),Ho(e,1,0))}function Nu(e){for(;e===Mi;)Mi=wl[--zl],wl[zl]=null,bn=wl[--zl],wl[zl]=null;for(;e===xa;)xa=wt[--zt],wt[zt]=null,Yt=wt[--zt],wt[zt]=null,qt=wt[--zt],wt[zt]=null}function ko(e,t){wt[zt++]=qt,wt[zt++]=Yt,wt[zt++]=xa,qt=t.id,Yt=t.overflow,xa=e}var We=null,Me=null,ge=!1,ba=null,Mt=!1,ju=Error(c(519));function Sa(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sn(Ct(t,e)),ju}function qo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[st]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Xn.length;a++)he(Xn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Ic(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),eo(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||nm(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||Sa(e,!0)}function Yo(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:We=We.return}}function Ml(e){if(e!==We)return!1;if(!ge)return Yo(e),ge=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qr(e.type,e.memoizedProps)),a=!a),a&&Me&&Sa(e),Yo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Me=mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Me=mm(e)}else t===27?(t=Me,Ua(e.type)?(e=$r,$r=null,Me=e):Me=t):Me=We?Rt(e.stateNode.nextSibling):null;return!0}function Pa(){Me=We=null,ge=!1}function Au(){var e=ba;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),ba=null),e}function Sn(e){ba===null?ba=[e]:ba.push(e)}var Cu=T(null),el=null,Wt=null;function Ea(e,t,a){J(Cu,t._currentValue),t._currentValue=a}function It(e){e._currentValue=Cu.current,G(Cu)}function wu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function zu(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var o=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var S=0;S<t.length;S++)if(h.context===t[S]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),wu(s.return,a,e),l||(o=null);break e}s=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),wu(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ol(e,t,a,l){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;pt(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Jn):e=[Jn])}n=n.return}e!==null&&zu(t,e,a,l),t.flags|=262144}function Oi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Go(el,e)}function Ri(e,t){return el===null&&tl(e),Go(e,t)}function Go(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Wt===null){if(e===null)throw Error(c(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return a}var ry=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},cy=i.unstable_scheduleCallback,oy=i.unstable_NormalPriority,Xe={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mu(){return{controller:new ry,data:new Map,refCount:0}}function En(e){e.refCount--,e.refCount===0&&cy(oy,function(){e.controller.abort()})}var _n=null,Ou=0,Rl=0,Dl=null;function fy(e,t){if(_n===null){var a=_n=[];Ou=0,Rl=Ur(),Dl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ou++,t.then(Xo,Xo),t}function Xo(){if(--Ou===0&&_n!==null){Dl!==null&&(Dl.status="fulfilled");var e=_n;_n=null,Rl=0,Dl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dy(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Qo=D.S;D.S=function(e,t){Cd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fy(e,t),Qo!==null&&Qo(e,t)};var al=T(null);function Ru(){var e=al.current;return e!==null?e:ze.pooledCache}function Di(e,t){t===null?J(al,al.current):J(al,t.pool)}function Vo(){var e=Ru();return e===null?null:{parent:Xe._currentValue,pool:e}}var Ul=Error(c(460)),Du=Error(c(474)),Ui=Error(c(542)),Bi={then:function(){}};function Zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ko(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Kt,Kt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e}throw nl=t,Ul}}function ll(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(nl=a,Ul):a}}var nl=null;function Jo(){if(nl===null)throw Error(c(459));var e=nl;return nl=null,e}function $o(e){if(e===Ul||e===Ui)throw Error(c(483))}var Bl=null,Tn=0;function Li(e){var t=Tn;return Tn+=1,Bl===null&&(Bl=[]),Ko(Bl,e,t)}function Nn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===j?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Fo(e){function t(N,_){if(e){var C=N.deletions;C===null?(N.deletions=[_],N.flags|=16):C.push(_)}}function a(N,_){if(!e)return null;for(;_!==null;)t(N,_),_=_.sibling;return null}function l(N){for(var _=new Map;N!==null;)N.key!==null?_.set(N.key,N):_.set(N.index,N),N=N.sibling;return _}function n(N,_){return N=$t(N,_),N.index=0,N.sibling=null,N}function s(N,_,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<_?(N.flags|=67108866,_):C):(N.flags|=67108866,_)):(N.flags|=1048576,_)}function o(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function h(N,_,C,k){return _===null||_.tag!==6?(_=Eu(C,N.mode,k),_.return=N,_):(_=n(_,C),_.return=N,_)}function S(N,_,C,k){var te=C.type;return te===L?B(N,_,C.props.children,k,C.key):_!==null&&(_.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Z&&ll(te)===_.type)?(_=n(_,C.props),Nn(_,C),_.return=N,_):(_=zi(C.type,C.key,C.props,null,N.mode,k),Nn(_,C),_.return=N,_)}function w(N,_,C,k){return _===null||_.tag!==4||_.stateNode.containerInfo!==C.containerInfo||_.stateNode.implementation!==C.implementation?(_=_u(C,N.mode,k),_.return=N,_):(_=n(_,C.children||[]),_.return=N,_)}function B(N,_,C,k,te){return _===null||_.tag!==7?(_=Ia(C,N.mode,k,te),_.return=N,_):(_=n(_,C),_.return=N,_)}function Y(N,_,C){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Eu(""+_,N.mode,C),_.return=N,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case M:return C=zi(_.type,_.key,_.props,null,N.mode,C),Nn(C,_),C.return=N,C;case U:return _=_u(_,N.mode,C),_.return=N,_;case Z:return _=ll(_),Y(N,_,C)}if(Be(_)||ae(_))return _=Ia(_,N.mode,C,null),_.return=N,_;if(typeof _.then=="function")return Y(N,Li(_),C);if(_.$$typeof===A)return Y(N,Ri(N,_),C);Hi(N,_)}return null}function z(N,_,C,k){var te=_!==null?_.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return te!==null?null:h(N,_,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case M:return C.key===te?S(N,_,C,k):null;case U:return C.key===te?w(N,_,C,k):null;case Z:return C=ll(C),z(N,_,C,k)}if(Be(C)||ae(C))return te!==null?null:B(N,_,C,k,null);if(typeof C.then=="function")return z(N,_,Li(C),k);if(C.$$typeof===A)return z(N,_,Ri(N,C),k);Hi(N,C)}return null}function O(N,_,C,k,te){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return N=N.get(C)||null,h(_,N,""+k,te);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case M:return N=N.get(k.key===null?C:k.key)||null,S(_,N,k,te);case U:return N=N.get(k.key===null?C:k.key)||null,w(_,N,k,te);case Z:return k=ll(k),O(N,_,C,k,te)}if(Be(k)||ae(k))return N=N.get(C)||null,B(_,N,k,te,null);if(typeof k.then=="function")return O(N,_,C,Li(k),te);if(k.$$typeof===A)return O(N,_,C,Ri(_,k),te);Hi(_,k)}return null}function I(N,_,C,k){for(var te=null,ve=null,ee=_,fe=_=0,pe=null;ee!==null&&fe<C.length;fe++){ee.index>fe?(pe=ee,ee=null):pe=ee.sibling;var xe=z(N,ee,C[fe],k);if(xe===null){ee===null&&(ee=pe);break}e&&ee&&xe.alternate===null&&t(N,ee),_=s(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe,ee=pe}if(fe===C.length)return a(N,ee),ge&&Ft(N,fe),te;if(ee===null){for(;fe<C.length;fe++)ee=Y(N,C[fe],k),ee!==null&&(_=s(ee,_,fe),ve===null?te=ee:ve.sibling=ee,ve=ee);return ge&&Ft(N,fe),te}for(ee=l(ee);fe<C.length;fe++)pe=O(ee,N,fe,C[fe],k),pe!==null&&(e&&pe.alternate!==null&&ee.delete(pe.key===null?fe:pe.key),_=s(pe,_,fe),ve===null?te=pe:ve.sibling=pe,ve=pe);return e&&ee.forEach(function(qa){return t(N,qa)}),ge&&Ft(N,fe),te}function ie(N,_,C,k){if(C==null)throw Error(c(151));for(var te=null,ve=null,ee=_,fe=_=0,pe=null,xe=C.next();ee!==null&&!xe.done;fe++,xe=C.next()){ee.index>fe?(pe=ee,ee=null):pe=ee.sibling;var qa=z(N,ee,xe.value,k);if(qa===null){ee===null&&(ee=pe);break}e&&ee&&qa.alternate===null&&t(N,ee),_=s(qa,_,fe),ve===null?te=qa:ve.sibling=qa,ve=qa,ee=pe}if(xe.done)return a(N,ee),ge&&Ft(N,fe),te;if(ee===null){for(;!xe.done;fe++,xe=C.next())xe=Y(N,xe.value,k),xe!==null&&(_=s(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe);return ge&&Ft(N,fe),te}for(ee=l(ee);!xe.done;fe++,xe=C.next())xe=O(ee,N,fe,xe.value,k),xe!==null&&(e&&xe.alternate!==null&&ee.delete(xe.key===null?fe:xe.key),_=s(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe);return e&&ee.forEach(function(_p){return t(N,_p)}),ge&&Ft(N,fe),te}function Ae(N,_,C,k){if(typeof C=="object"&&C!==null&&C.type===L&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case M:e:{for(var te=C.key;_!==null;){if(_.key===te){if(te=C.type,te===L){if(_.tag===7){a(N,_.sibling),k=n(_,C.props.children),k.return=N,N=k;break e}}else if(_.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Z&&ll(te)===_.type){a(N,_.sibling),k=n(_,C.props),Nn(k,C),k.return=N,N=k;break e}a(N,_);break}else t(N,_);_=_.sibling}C.type===L?(k=Ia(C.props.children,N.mode,k,C.key),k.return=N,N=k):(k=zi(C.type,C.key,C.props,null,N.mode,k),Nn(k,C),k.return=N,N=k)}return o(N);case U:e:{for(te=C.key;_!==null;){if(_.key===te)if(_.tag===4&&_.stateNode.containerInfo===C.containerInfo&&_.stateNode.implementation===C.implementation){a(N,_.sibling),k=n(_,C.children||[]),k.return=N,N=k;break e}else{a(N,_);break}else t(N,_);_=_.sibling}k=_u(C,N.mode,k),k.return=N,N=k}return o(N);case Z:return C=ll(C),Ae(N,_,C,k)}if(Be(C))return I(N,_,C,k);if(ae(C)){if(te=ae(C),typeof te!="function")throw Error(c(150));return C=te.call(C),ie(N,_,C,k)}if(typeof C.then=="function")return Ae(N,_,Li(C),k);if(C.$$typeof===A)return Ae(N,_,Ri(N,C),k);Hi(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,_!==null&&_.tag===6?(a(N,_.sibling),k=n(_,C),k.return=N,N=k):(a(N,_),k=Eu(C,N.mode,k),k.return=N,N=k),o(N)):a(N,_)}return function(N,_,C,k){try{Tn=0;var te=Ae(N,_,C,k);return Bl=null,te}catch(ee){if(ee===Ul||ee===Ui)throw ee;var ve=gt(29,ee,null,N.mode);return ve.lanes=k,ve.return=N,ve}finally{}}}var il=Fo(!0),Wo=Fo(!1),_a=!1;function Uu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bu(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 Ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(be&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=wi(e),Do(e,null,a),t}return Ci(e,l,t,a),wi(e)}function jn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Yc(e,a)}}function Lu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Hu=!1;function An(){if(Hu){var e=Dl;if(e!==null)throw e}}function Cn(e,t,a,l){Hu=!1;var n=e.updateQueue;_a=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var S=h,w=S.next;S.next=null,o===null?s=w:o.next=w,o=S;var B=e.alternate;B!==null&&(B=B.updateQueue,h=B.lastBaseUpdate,h!==o&&(h===null?B.firstBaseUpdate=w:h.next=w,B.lastBaseUpdate=S))}if(s!==null){var Y=n.baseState;o=0,B=w=S=null,h=s;do{var z=h.lane&-536870913,O=z!==h.lane;if(O?(ye&z)===z:(l&z)===z){z!==0&&z===Rl&&(Hu=!0),B!==null&&(B=B.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var I=e,ie=h;z=t;var Ae=a;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){Y=I.call(Ae,Y,z);break e}Y=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,z=typeof I=="function"?I.call(Ae,Y,z):I,z==null)break e;Y=x({},Y,z);break e;case 2:_a=!0}}z=h.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[z]:O.push(z))}else O={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},B===null?(w=B=O,S=Y):B=B.next=O,o|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;O=h,h=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);B===null&&(S=Y),n.baseState=S,n.firstBaseUpdate=w,n.lastBaseUpdate=B,s===null&&(n.shared.lanes=0),za|=o,e.lanes=o,e.memoizedState=Y}}function Io(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Po(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Io(a[e],t)}var Ll=T(null),ki=T(0);function ef(e,t){e=ua,J(ki,e),J(Ll,t),ua=e|t.baseLanes}function ku(){J(ki,ua),J(Ll,Ll.current)}function qu(){ua=ki.current,G(Ll),G(ki)}var vt=T(null),Ot=null;function ja(e){var t=e.alternate;J(Ye,Ye.current&1),J(vt,e),Ot===null&&(t===null||Ll.current!==null||t.memoizedState!==null)&&(Ot=e)}function Yu(e){J(Ye,Ye.current),J(vt,e),Ot===null&&(Ot=e)}function tf(e){e.tag===22?(J(Ye,Ye.current),J(vt,e),Ot===null&&(Ot=e)):Aa()}function Aa(){J(Ye,Ye.current),J(vt,vt.current)}function xt(e){G(vt),Ot===e&&(Ot=null),G(Ye)}var Ye=T(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Kr(a)||Jr(a)))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 Pt=0,oe=null,Ne=null,Qe=null,Yi=!1,Hl=!1,sl=!1,Gi=0,wn=0,kl=null,my=0;function He(){throw Error(c(321))}function Gu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!pt(e[a],t[a]))return!1;return!0}function Xu(e,t,a,l,n,s){return Pt=s,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?kf:nr,sl=!1,s=a(l,n),sl=!1,Hl&&(s=lf(t,a,l,n)),af(e),s}function af(e){D.H=On;var t=Ne!==null&&Ne.next!==null;if(Pt=0,Qe=Ne=oe=null,Yi=!1,wn=0,kl=null,t)throw Error(c(300));e===null||Ve||(e=e.dependencies,e!==null&&Oi(e)&&(Ve=!0))}function lf(e,t,a,l){oe=e;var n=0;do{if(Hl&&(kl=null),wn=0,Hl=!1,25<=n)throw Error(c(301));if(n+=1,Qe=Ne=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}D.H=qf,s=t(a,l)}while(Hl);return s}function hy(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?zn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(oe.flags|=1024),t}function Qu(){var e=Gi!==0;return Gi=0,e}function Vu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Zu(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}Pt=0,Qe=Ne=oe=null,Hl=!1,wn=Gi=0,kl=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?oe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(Ne===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Qe===null?oe.memoizedState:Qe.next;if(t!==null)Qe=t,Ne=e;else{if(e===null)throw oe.alternate===null?Error(c(467)):Error(c(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Qe===null?oe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zn(e){var t=wn;return wn+=1,kl===null&&(kl=[]),e=Ko(kl,e,t),t=oe,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?kf:nr),e}function Qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zn(e);if(e.$$typeof===A)return Ie(e)}throw Error(c(438,String(e)))}function Ku(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xi(),oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Q;return t.index++,a}function ea(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=Ge();return Ju(t,Ne,e)}function Ju(e,t,a){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var n=e.baseQueue,s=l.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}t.baseQueue=n=s,l.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=o=null,S=null,w=t,B=!1;do{var Y=w.lane&-536870913;if(Y!==w.lane?(ye&Y)===Y:(Pt&Y)===Y){var z=w.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),Y===Rl&&(B=!0);else if((Pt&z)===z){w=w.next,z===Rl&&(B=!0);continue}else Y={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(h=S=Y,o=s):S=S.next=Y,oe.lanes|=z,za|=z;Y=w.action,sl&&a(s,Y),s=w.hasEagerState?w.eagerState:a(s,Y)}else z={lane:Y,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(h=S=z,o=s):S=S.next=z,oe.lanes|=Y,za|=Y;w=w.next}while(w!==null&&w!==t);if(S===null?o=s:S.next=h,!pt(s,e.memoizedState)&&(Ve=!0,B&&(a=Dl,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=S,l.lastRenderedState=s}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function $u(e){var t=Ge(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,s=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);pt(s,t.memoizedState)||(Ve=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function nf(e,t,a){var l=oe,n=Ge(),s=ge;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!pt((Ne||n).memoizedState,a);if(o&&(n.memoizedState=a,Ve=!0),n=n.queue,Iu(rf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ql(9,{destroy:void 0},uf.bind(null,l,n,a,t),null),ze===null)throw Error(c(349));s||(Pt&127)!==0||sf(l,t,a)}return a}function sf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=Xi(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function uf(e,t,a,l){t.value=a,t.getSnapshot=l,cf(t)&&of(e)}function rf(e,t,a){return a(function(){cf(t)&&of(e)})}function cf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!pt(e,a)}catch{return!0}}function of(e){var t=Wa(e,2);t!==null&&dt(t,e,2)}function Fu(e){var t=nt();if(typeof e=="function"){var a=e;if(e=a(),sl){pa(!0);try{a()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function ff(e,t,a,l){return e.baseState=a,Ju(e,Ne,typeof l=="function"?l:ea)}function yy(e,t,a,l,n){if(Ji(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};D.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,df(t,s)):(s.next=a.next,t.pending=a.next=s)}}function df(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var s=D.T,o={};D.T=o;try{var h=a(n,l),S=D.S;S!==null&&S(o,h),mf(e,t,h)}catch(w){Wu(e,t,w)}finally{s!==null&&o.types!==null&&(s.types=o.types),D.T=s}}else try{s=a(n,l),mf(e,t,s)}catch(w){Wu(e,t,w)}}function mf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){hf(e,t,l)},function(l){return Wu(e,t,l)}):hf(e,t,a)}function hf(e,t,a){t.status="fulfilled",t.value=a,yf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,df(e,a)))}function Wu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,yf(t),t=t.next;while(t!==l)}e.action=null}function yf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pf(e,t){return t}function gf(e,t){if(ge){var a=ze.formState;if(a!==null){e:{var l=oe;if(ge){if(Me){t:{for(var n=Me,s=Mt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){Me=Rt(n.nextSibling),l=n.data==="F!";break e}}Sa(l)}l=!1}l&&(t=a[0])}}return a=nt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pf,lastRenderedState:t},a.queue=l,a=Bf.bind(null,oe,l),l.dispatch=a,l=Fu(!1),s=lr.bind(null,oe,!1,l.queue),l=nt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=yy.bind(null,oe,n,s,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function vf(e){var t=Ge();return xf(t,Ne,e)}function xf(e,t,a){if(t=Ju(e,t,pf)[0],e=Vi(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=zn(t)}catch(o){throw o===Ul?Ui:o}else l=t;t=Ge();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,ql(9,{destroy:void 0},py.bind(null,n,a),null)),[l,s,e]}function py(e,t){e.action=t}function bf(e){var t=Ge(),a=Ne;if(a!==null)return xf(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ql(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Xi(),oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Sf(){return Ge().memoizedState}function Zi(e,t,a,l){var n=nt();oe.flags|=e,n.memoizedState=ql(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ki(e,t,a,l){var n=Ge();l=l===void 0?null:l;var s=n.memoizedState.inst;Ne!==null&&l!==null&&Gu(l,Ne.memoizedState.deps)?n.memoizedState=ql(t,s,a,l):(oe.flags|=e,n.memoizedState=ql(1|t,s,a,l))}function Ef(e,t){Zi(8390656,8,e,t)}function Iu(e,t){Ki(2048,8,e,t)}function gy(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Xi(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function _f(e){var t=Ge().memoizedState;return gy({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Tf(e,t){return Ki(4,2,e,t)}function Nf(e,t){return Ki(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Af(e,t,a){a=a!=null?a.concat([e]):null,Ki(4,4,jf.bind(null,t,e),a)}function Pu(){}function Cf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Gu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function wf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Gu(t,l[1]))return l[0];if(l=e(),sl){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l}function er(e,t,a){return a===void 0||(Pt&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=zd(),oe.lanes|=e,za|=e,a)}function zf(e,t,a,l){return pt(a,t)?a:Ll.current!==null?(e=er(e,a,l),pt(e,t)||(Ve=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(ye&261930)===0?(Ve=!0,e.memoizedState=a):(e=zd(),oe.lanes|=e,za|=e,t)}function Mf(e,t,a,l,n){var s=K.p;K.p=s!==0&&8>s?s:8;var o=D.T,h={};D.T=h,lr(e,!1,t,a);try{var S=n(),w=D.S;if(w!==null&&w(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=dy(S,l);Mn(e,t,B,Et(e))}else Mn(e,t,l,Et(e))}catch(Y){Mn(e,t,{then:function(){},status:"rejected",reason:Y},Et())}finally{K.p=s,o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}function vy(){}function tr(e,t,a,l){if(e.tag!==5)throw Error(c(476));var n=Of(e).queue;Mf(e,n,t,le,a===null?vy:function(){return Rf(e),a(l)})}function Of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:le},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rf(e){var t=Of(e);t.next===null&&(t=e.alternate.memoizedState),Mn(e,t.next.queue,{},Et())}function ar(){return Ie(Jn)}function Df(){return Ge().memoizedState}function Uf(){return Ge().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Ta(a);var l=Na(t,e,a);l!==null&&(dt(l,t,a),jn(l,t,a)),t={cache:Mu()},e.payload=t;return}t=t.return}}function by(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ji(e)?Lf(t,a):(a=bu(e,t,a,l),a!==null&&(dt(a,e,l),Hf(a,t,l)))}function Bf(e,t,a){var l=Et();Mn(e,t,a,l)}function Mn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))Lf(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,a);if(n.hasEagerState=!0,n.eagerState=h,pt(h,o))return Ci(e,t,n,0),ze===null&&Ai(),!1}catch{}finally{}if(a=bu(e,t,n,l),a!==null)return dt(a,e,l),Hf(a,t,l),!0}return!1}function lr(e,t,a,l){if(l={lane:2,revertLane:Ur(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(c(479))}else t=bu(e,a,l,2),t!==null&&dt(t,e,2)}function Ji(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Lf(e,t){Hl=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Yc(e,a)}}var On={readContext:Ie,use:Qi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};On.useEffectEvent=He;var kf={readContext:Ie,use:Qi,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Ef,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zi(4194308,4,jf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var a=nt();t=t===void 0?null:t;var l=e();if(sl){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=nt();if(a!==void 0){var n=a(t);if(sl){pa(!0);try{a(t)}finally{pa(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=by.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Fu(e);var t=e.queue,a=Bf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Pu,useDeferredValue:function(e,t){var a=nt();return er(a,e,t)},useTransition:function(){var e=Fu(!1);return e=Mf.bind(null,oe,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,n=nt();if(ge){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),ze===null)throw Error(c(349));(ye&127)!==0||sf(l,t,a)}n.memoizedState=a;var s={value:a,getSnapshot:t};return n.queue=s,Ef(rf.bind(null,l,s,e),[e]),l.flags|=2048,ql(9,{destroy:void 0},uf.bind(null,l,s,a,t),null),a},useId:function(){var e=nt(),t=ze.identifierPrefix;if(ge){var a=Yt,l=qt;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=my++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ar,useFormState:gf,useActionState:gf,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=lr.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ku,useCacheRefresh:function(){return nt().memoizedState=xy.bind(null,oe)},useEffectEvent:function(e){var t=nt(),a={impl:e};return t.memoizedState=a,function(){if((be&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},nr={readContext:Ie,use:Qi,useCallback:Cf,useContext:Ie,useEffect:Iu,useImperativeHandle:Af,useInsertionEffect:Tf,useLayoutEffect:Nf,useMemo:wf,useReducer:Vi,useRef:Sf,useState:function(){return Vi(ea)},useDebugValue:Pu,useDeferredValue:function(e,t){var a=Ge();return zf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Vi(ea)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:nf,useId:Df,useHostTransitionStatus:ar,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var a=Ge();return ff(a,Ne,e,t)},useMemoCache:Ku,useCacheRefresh:Uf};nr.useEffectEvent=_f;var qf={readContext:Ie,use:Qi,useCallback:Cf,useContext:Ie,useEffect:Iu,useImperativeHandle:Af,useInsertionEffect:Tf,useLayoutEffect:Nf,useMemo:wf,useReducer:$u,useRef:Sf,useState:function(){return $u(ea)},useDebugValue:Pu,useDeferredValue:function(e,t){var a=Ge();return Ne===null?er(a,e,t):zf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=$u(ea)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:nf,useId:Df,useHostTransitionStatus:ar,useFormState:bf,useActionState:bf,useOptimistic:function(e,t){var a=Ge();return Ne!==null?ff(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ku,useCacheRefresh:Uf};qf.useEffectEvent=_f;function ir(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var sr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ta(l);n.payload=t,a!=null&&(n.callback=a),t=Na(e,n,l),t!==null&&(dt(t,e,l),jn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ta(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Na(e,n,l),t!==null&&(dt(t,e,l),jn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Ta(a);l.tag=2,t!=null&&(l.callback=t),t=Na(e,l,a),t!==null&&(dt(t,e,a),jn(t,e,a))}};function Yf(e,t,a,l,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!vn(a,l)||!vn(n,s):!0}function Gf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&sr.enqueueReplaceState(t,t.state,null)}function ul(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Xf(e){ji(e)}function Qf(e){console.error(e)}function Vf(e){ji(e)}function $i(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Zf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ur(e,t,a){return a=Ta(a),a.tag=3,a.payload={element:null},a.callback=function(){$i(e,t)},a}function Kf(e){return e=Ta(e),e.tag=3,e}function Jf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var s=l.value;e.payload=function(){return n(s)},e.callback=function(){Zf(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Zf(t,a,l),typeof n!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Sy(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ol(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return Ot===null?us():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Or(e,l,n)),!1;case 22:return a.flags|=65536,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Or(e,l,n)),!1}throw Error(c(435,a.tag))}return Or(e,l,n),us(),!1}if(ge)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==ju&&(e=Error(c(422),{cause:l}),Sn(Ct(e,a)))):(l!==ju&&(t=Error(c(423),{cause:l}),Sn(Ct(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Ct(l,a),n=ur(e.stateNode,l,n),Lu(e,n),ke!==4&&(ke=2)),!1;var s=Error(c(520),{cause:l});if(s=Ct(s,a),qn===null?qn=[s]:qn.push(s),ke!==4&&(ke=2),t===null)return!0;l=Ct(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=ur(a.stateNode,l,e),Lu(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ma===null||!Ma.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Kf(n),Jf(n,e,a,l),Lu(a,n),!1}a=a.return}while(a!==null);return!1}var rr=Error(c(461)),Ve=!1;function Pe(e,t,a,l){t.child=e===null?Wo(t,null,a,l):il(t,e.child,a,l)}function $f(e,t,a,l,n){a=a.render;var s=t.ref;if("ref"in l){var o={};for(var h in l)h!=="ref"&&(o[h]=l[h])}else o=l;return tl(t),l=Xu(e,t,a,o,s,n),h=Qu(),e!==null&&!Ve?(Vu(e,t,n),ta(e,t,n)):(ge&&h&&Tu(t),t.flags|=1,Pe(e,t,l,n),t.child)}function Ff(e,t,a,l,n){if(e===null){var s=a.type;return typeof s=="function"&&!Su(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Wf(e,t,s,l,n)):(e=zi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!pr(e,n)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:vn,a(o,l)&&e.ref===t.ref)return ta(e,t,n)}return t.flags|=1,e=$t(s,l),e.ref=t.ref,e.return=t,t.child=e}function Wf(e,t,a,l,n){if(e!==null){var s=e.memoizedProps;if(vn(s,l)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=l=s,pr(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,ta(e,t,n)}return cr(e,t,a,l,n)}function If(e,t,a,l){var n=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~s}else l=0,t.child=null;return Pf(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,s!==null?s.cachePool:null),s!==null?ef(t,s):ku(),tf(t);else return l=t.lanes=536870912,Pf(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Di(t,s.cachePool),ef(t,s),Aa(),t.memoizedState=null):(e!==null&&Di(t,null),ku(),Aa());return Pe(e,t,n,a),t.child}function Rn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pf(e,t,a,l,n){var s=Ru();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Di(t,null),ku(),tf(t),e!==null&&Ol(e,t,l,!0),t.childLanes=n,null}function Fi(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ed(e,t,a){return il(t,e.child,null,a),e=Fi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Ey(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(l.mode==="hidden")return e=Fi(t,l),t.lanes=536870912,Rn(null,e);if(Yu(t),(e=Me)?(e=dm(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Bo(e),a.return=t,t.child=a,We=t,Me=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return Fi(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Yu(t),n)if(t.flags&256)t.flags&=-257,t=ed(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ve||Ol(e,t,a,!1),n=(a&e.childLanes)!==0,Ve||n){if(l=ze,l!==null&&(o=Gc(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,Wa(e,o),dt(l,e,o),rr;us(),t=ed(e,t,a)}else e=s.treeContext,Me=Rt(o.nextSibling),We=t,ge=!0,ba=null,Mt=!1,e!==null&&ko(t,e),t=Fi(t,l),t.flags|=4096;return t}return e=$t(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function cr(e,t,a,l,n){return tl(t),a=Xu(e,t,a,l,void 0,n),l=Qu(),e!==null&&!Ve?(Vu(e,t,n),ta(e,t,n)):(ge&&l&&Tu(t),t.flags|=1,Pe(e,t,a,n),t.child)}function td(e,t,a,l,n,s){return tl(t),t.updateQueue=null,a=lf(t,l,a,n),af(e),l=Qu(),e!==null&&!Ve?(Vu(e,t,s),ta(e,t,s)):(ge&&l&&Tu(t),t.flags|=1,Pe(e,t,a,s),t.child)}function ad(e,t,a,l,n){if(tl(t),t.stateNode===null){var s=Cl,o=a.contextType;typeof o=="object"&&o!==null&&(s=Ie(o)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=sr,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Uu(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?Ie(o):Cl,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(ir(t,a,o,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&sr.enqueueReplaceState(s,s.state,null),Cn(t,l,s,n),An(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,S=ul(a,h);s.props=S;var w=s.context,B=a.contextType;o=Cl,typeof B=="object"&&B!==null&&(o=Ie(B));var Y=a.getDerivedStateFromProps;B=typeof Y=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,B||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||w!==o)&&Gf(t,s,l,o),_a=!1;var z=t.memoizedState;s.state=z,Cn(t,l,s,n),An(),w=t.memoizedState,h||z!==w||_a?(typeof Y=="function"&&(ir(t,a,Y,l),w=t.memoizedState),(S=_a||Yf(t,a,S,l,z,w,o))?(B||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=w),s.props=l,s.state=w,s.context=o,l=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Bu(e,t),o=t.memoizedProps,B=ul(a,o),s.props=B,Y=t.pendingProps,z=s.context,w=a.contextType,S=Cl,typeof w=="object"&&w!==null&&(S=Ie(w)),h=a.getDerivedStateFromProps,(w=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==Y||z!==S)&&Gf(t,s,l,S),_a=!1,z=t.memoizedState,s.state=z,Cn(t,l,s,n),An();var O=t.memoizedState;o!==Y||z!==O||_a||e!==null&&e.dependencies!==null&&Oi(e.dependencies)?(typeof h=="function"&&(ir(t,a,h,l),O=t.memoizedState),(B=_a||Yf(t,a,B,l,z,O,S)||e!==null&&e.dependencies!==null&&Oi(e.dependencies))?(w||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,O,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,O,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=S,l=B):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Wi(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=il(t,e.child,null,n),t.child=il(t,null,a,n)):Pe(e,t,a,n),t.memoizedState=s.state,e=t.child):e=ta(e,t,n),e}function ld(e,t,a,l){return Pa(),t.flags|=256,Pe(e,t,a,l),t.child}var or={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(e){return{baseLanes:e,cachePool:Vo()}}function dr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function nd(e,t,a){var l=t.pendingProps,n=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(n?ja(t):Aa(),(e=Me)?(e=dm(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Bo(e),a.return=t,t.child=a,We=t,Me=null)):e=null,e===null)throw Sa(t);return Jr(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,n?(Aa(),n=t.mode,h=Ii({mode:"hidden",children:h},n),l=Ia(l,n,a,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=fr(a),l.childLanes=dr(e,o,a),t.memoizedState=or,Rn(null,l)):(ja(t),mr(t,h))}var S=e.memoizedState;if(S!==null&&(h=S.dehydrated,h!==null)){if(s)t.flags&256?(ja(t),t.flags&=-257,t=hr(e,t,a)):t.memoizedState!==null?(Aa(),t.child=e.child,t.flags|=128,t=null):(Aa(),h=l.fallback,n=t.mode,l=Ii({mode:"visible",children:l.children},n),h=Ia(h,n,a,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,il(t,e.child,null,a),l=t.child,l.memoizedState=fr(a),l.childLanes=dr(e,o,a),t.memoizedState=or,t=Rn(null,l));else if(ja(t),Jr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var w=o.dgst;o=w,l=Error(c(419)),l.stack="",l.digest=o,Sn({value:l,source:null,stack:null}),t=hr(e,t,a)}else if(Ve||Ol(e,t,a,!1),o=(a&e.childLanes)!==0,Ve||o){if(o=ze,o!==null&&(l=Gc(o,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Wa(e,l),dt(o,e,l),rr;Kr(h)||us(),t=hr(e,t,a)}else Kr(h)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Me=Rt(h.nextSibling),We=t,ge=!0,ba=null,Mt=!1,e!==null&&ko(t,e),t=mr(t,l.children),t.flags|=4096);return t}return n?(Aa(),h=l.fallback,n=t.mode,S=e.child,w=S.sibling,l=$t(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,w!==null?h=$t(w,h):(h=Ia(h,n,a,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,Rn(null,l),l=t.child,h=e.child.memoizedState,h===null?h=fr(a):(n=h.cachePool,n!==null?(S=Xe._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=Vo(),h={baseLanes:h.baseLanes|a,cachePool:n}),l.memoizedState=h,l.childLanes=dr(e,o,a),t.memoizedState=or,Rn(e.child,l)):(ja(t),a=e.child,e=a.sibling,a=$t(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function mr(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function hr(e,t,a){return il(t,e.child,null,a),e=mr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function id(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wu(e.return,t,a)}function yr(e,t,a,l,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=s)}function sd(e,t,a){var l=t.pendingProps,n=l.revealOrder,s=l.tail;l=l.children;var o=Ye.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,J(Ye,o),Pe(e,t,l,a),l=ge?bn:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&id(e,a,t);else if(e.tag===19)id(e,a,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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&qi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),yr(t,!1,n,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}yr(t,!0,a,null,s,l);break;case"together":yr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ta(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ol(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=$t(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$t(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function pr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Oi(e)))}function _y(e,t,a){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),Ea(t,Xe,e.memoizedState.cache),Pa();break;case 27:case 5:nn(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ja(t),t.flags|=128,null):(a&t.child.childLanes)!==0?nd(e,t,a):(ja(t),e=ta(e,t,a),e!==null?e.sibling:null);ja(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ol(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return sd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,If(e,t,a,t.pendingProps);case 24:Ea(t,Xe,e.memoizedState.cache)}return ta(e,t,a)}function ud(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!pr(e,a)&&(t.flags&128)===0)return Ve=!1,_y(e,t,a);Ve=(e.flags&131072)!==0}else Ve=!1,ge&&(t.flags&1048576)!==0&&Ho(t,bn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ll(t.elementType),t.type=e,typeof e=="function")Su(e)?(l=ul(e,l),t.tag=1,t=ad(null,t,e,l,a)):(t.tag=0,t=cr(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=$f(null,t,e,l,a);break e}else if(n===V){t.tag=14,t=Ff(null,t,e,l,a);break e}}throw t=Ce(e)||e,Error(c(306,t,""))}}return t;case 0:return cr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=ul(l,t.pendingProps),ad(e,t,l,n,a);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;n=s.element,Bu(e,t),Cn(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Ea(t,Xe,l),l!==s.cache&&zu(t,[Xe],a,!0),An(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ld(e,t,l,a);break e}else if(l!==n){n=Ct(Error(c(424)),t),Sn(n),t=ld(e,t,l,a);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(Me=Rt(e.firstChild),We=t,ge=!0,ba=null,Mt=!0,a=Wo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pa(),l===n){t=ta(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return Wi(e,t),e===null?(a=vm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,l=hs(de.current).createElement(a),l[Fe]=t,l[st]=e,et(l,a,e),Je(l),t.stateNode=l):t.memoizedState=vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nn(t),e===null&&ge&&(l=t.stateNode=ym(t.type,t.pendingProps,de.current),We=t,Mt=!0,n=Me,Ua(t.type)?($r=n,Me=Rt(l.firstChild)):Me=n),Pe(e,t,t.pendingProps.children,a),Wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((n=l=Me)&&(l=Py(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,We=t,Me=Rt(l.firstChild),Mt=!1,n=!0):n=!1),n||Sa(t)),nn(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,Qr(n,s)?l=null:o!==null&&Qr(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Xu(e,t,hy,null,null,a),Jn._currentValue=n),Wi(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&ge&&((e=a=Me)&&(a=ep(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,We=t,Me=null,e=!0):e=!1),e||Sa(t)),null;case 13:return nd(e,t,a);case 4:return lt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=il(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return $f(e,t,t.type,t.pendingProps,a);case 7:return Pe(e,t,t.pendingProps,a),t.child;case 8:return Pe(e,t,t.pendingProps.children,a),t.child;case 12:return Pe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ea(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,tl(t),n=Ie(n),l=l(n),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return Ff(e,t,t.type,t.pendingProps,a);case 15:return Wf(e,t,t.type,t.pendingProps,a);case 19:return sd(e,t,a);case 31:return Ey(e,t,a);case 22:return If(e,t,a,t.pendingProps);case 24:return tl(t),l=Ie(Xe),e===null?(n=Ru(),n===null&&(n=ze,s=Mu(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:l,cache:n},Uu(t),Ea(t,Xe,n)):((e.lanes&a)!==0&&(Bu(e,t),Cn(t,null,null,a),An()),n=e.memoizedState,s=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ea(t,Xe,l)):(l=s.cache,Ea(t,Xe,l),l!==n.cache&&zu(t,[Xe],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function aa(e){e.flags|=4}function gr(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Dd())e.flags|=8192;else throw nl=Bi,Du}else e.flags&=-16777217}function rd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_m(t))if(Dd())e.flags|=8192;else throw nl=Bi,Du}function Pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kc():536870912,e.lanes|=t,Ql|=t)}function Dn(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Ty(e,t,a){var l=t.pendingProps;switch(Nu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Xe),qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ml(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Au())),Oe(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(aa(t),s!==null?(Oe(t),rd(t,s)):(Oe(t),gr(t,n,null,l,a))):s?s!==e.memoizedState?(aa(t),Oe(t),rd(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&aa(t),Oe(t),gr(t,n,e,l,a)),null;case 27:if(oi(t),a=de.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Oe(t),null}e=P.current,Ml(t)?qo(t):(e=ym(n,l,a),t.stateNode=e,aa(t))}return Oe(t),null;case 5:if(oi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Oe(t),null}if(s=P.current,Ml(t))qo(t);else{var o=hs(de.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}s[Fe]=t,s[st]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(et(s,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&aa(t)}}return Oe(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=de.current,Ml(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=We,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||nm(e.nodeValue,a)),e||Sa(t,!0)}else e=hs(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ml(t),a!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Fe]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=Au(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ml(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Fe]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Au(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pi(t,t.updateQueue),Oe(t),null);case 4:return qe(),e===null&&kr(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(G(Ye),l=t.memoizedState,l===null)return Oe(t),null;if(n=(t.flags&128)!==0,s=l.rendering,s===null)if(n)Dn(l,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Dn(l,!1),e=s.updateQueue,t.updateQueue=e,Pi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Uo(a,e),a=a.sibling;return J(Ye,Ye.current&1|2),ge&&Ft(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&mt()>ns&&(t.flags|=128,n=!0,Dn(l,!1),t.lanes=4194304)}else{if(!n)if(e=qi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Pi(t,e),Dn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ge)return Oe(t),null}else 2*mt()-l.renderingStartTime>ns&&a!==536870912&&(t.flags|=128,n=!0,Dn(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=mt(),e.sibling=null,a=Ye.current,J(Ye,n?a&1|2:a&1),ge&&Ft(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return xt(t),qu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&Pi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&G(al),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Xe),Oe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ny(e,t){switch(Nu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Xe),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oi(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ye),null;case 4:return qe(),null;case 10:return It(t.type),null;case 22:case 23:return xt(t),qu(),e!==null&&G(al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Xe),null;case 25:return null;default:return null}}function cd(e,t){switch(Nu(t),t.tag){case 3:It(Xe),qe();break;case 26:case 27:case 5:oi(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:G(Ye);break;case 10:It(t.type);break;case 22:case 23:xt(t),qu(),e!==null&&G(al);break;case 24:It(Xe)}}function Un(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==n)}}catch(h){_e(t,t.return,h)}}function Ca(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var s=n.next;l=s;do{if((l.tag&e)===e){var o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var S=a,w=h;try{w()}catch(B){_e(n,S,B)}}}l=l.next}while(l!==s)}}catch(B){_e(t,t.return,B)}}function od(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Po(t,a)}catch(l){_e(e,e.return,l)}}}function fd(e,t,a){a.props=ul(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){_e(e,t,l)}}function Bn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){_e(e,t,n)}}function Gt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){_e(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){_e(e,t,n)}else a.current=null}function dd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){_e(e,e.return,n)}}function vr(e,t,a){try{var l=e.stateNode;Ky(l,e.type,a,t),l[st]=t}catch(n){_e(e,e.return,n)}}function md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function xr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||md(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&&Ua(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 br(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Kt));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(br(e,t,a),e=e.sibling;e!==null;)br(e,t,a),e=e.sibling}function es(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(es(e,t,a),e=e.sibling;e!==null;)es(e,t,a),e=e.sibling}function hd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,l,a),t[Fe]=e,t[st]=a}catch(s){_e(e,e.return,s)}}var la=!1,Ze=!1,Sr=!1,yd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function jy(e,t){if(e=e.containerInfo,Gr=Ss,e=jo(e),hu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,h=-1,S=-1,w=0,B=0,Y=e,z=null;t:for(;;){for(var O;Y!==a||n!==0&&Y.nodeType!==3||(h=o+n),Y!==s||l!==0&&Y.nodeType!==3||(S=o+l),Y.nodeType===3&&(o+=Y.nodeValue.length),(O=Y.firstChild)!==null;)z=Y,Y=O;for(;;){if(Y===e)break t;if(z===a&&++w===n&&(h=o),z===s&&++B===l&&(S=o),(O=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=O}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xr={focusedElem:e,selectionRange:a},Ss=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,s=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(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,n=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var I=ul(a.type,n);e=l.getSnapshotBeforeUpdate(I,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){_e(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Zr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zr(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function pd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),l&4&&Un(5,a);break;case 1:if(ia(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){_e(a,a.return,o)}else{var n=ul(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){_e(a,a.return,o)}}l&64&&od(a),l&512&&Bn(a,a.return);break;case 3:if(ia(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Po(e,t)}catch(o){_e(a,a.return,o)}}break;case 27:t===null&&l&4&&hd(a);case 26:case 5:ia(e,a),t===null&&l&4&&dd(a),l&512&&Bn(a,a.return);break;case 12:ia(e,a);break;case 31:ia(e,a),l&4&&xd(e,a);break;case 13:ia(e,a),l&4&&bd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Uy.bind(null,a),tp(e,a))));break;case 22:if(l=a.memoizedState!==null||la,!l){t=t!==null&&t.memoizedState!==null||Ze,n=la;var s=Ze;la=l,(Ze=t)&&!s?sa(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),la=n,Ze=s}break;case 30:break;default:ia(e,a)}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ws(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 De=null,rt=!1;function na(e,t,a){for(a=a.child;a!==null;)vd(e,t,a),a=a.sibling}function vd(e,t,a){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(sn,a)}catch{}switch(a.tag){case 26:Ze||Gt(a,t),na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ze||Gt(a,t);var l=De,n=rt;Ua(a.type)&&(De=a.stateNode,rt=!1),na(e,t,a),Vn(a.stateNode),De=l,rt=n;break;case 5:Ze||Gt(a,t);case 6:if(l=De,n=rt,De=null,na(e,t,a),De=l,rt=n,De!==null)if(rt)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(a.stateNode)}catch(s){_e(a,t,s)}else try{De.removeChild(a.stateNode)}catch(s){_e(a,t,s)}break;case 18:De!==null&&(rt?(e=De,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Il(e)):om(De,a.stateNode));break;case 4:l=De,n=rt,De=a.stateNode.containerInfo,rt=!0,na(e,t,a),De=l,rt=n;break;case 0:case 11:case 14:case 15:Ca(2,a,t),Ze||Ca(4,a,t),na(e,t,a);break;case 1:Ze||(Gt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&fd(a,t,l)),na(e,t,a);break;case 21:na(e,t,a);break;case 22:Ze=(l=Ze)||a.memoizedState!==null,na(e,t,a),Ze=l;break;default:na(e,t,a)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Il(e)}catch(a){_e(t,t.return,a)}}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Il(e)}catch(a){_e(t,t.return,a)}}function Ay(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yd),t;default:throw Error(c(435,e.tag))}}function ts(e,t){var a=Ay(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=By.bind(null,e,l);l.then(n,n)}})}function ct(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(Ua(h.type)){De=h.stateNode,rt=!1;break e}break;case 5:De=h.stateNode,rt=!1;break e;case 3:case 4:De=h.stateNode.containerInfo,rt=!0;break e}h=h.return}if(De===null)throw Error(c(160));vd(s,o,n),De=null,rt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sd(t,e),t=t.sibling}var Lt=null;function Sd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),ot(e),l&4&&(Ca(3,e,e.return),Un(3,e),Ca(5,e,e.return));break;case 1:ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),l&64&&la&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Lt;if(ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":s=n.getElementsByTagName("title")[0],(!s||s[cn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(l),n.head.insertBefore(s,n.querySelector("head > title"))),et(s,l,a),s[Fe]=e,Je(s),l=s;break e;case"link":var o=Sm("link","href",n).get(l+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;case"meta":if(o=Sm("meta","content",n).get(l+(a.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;default:throw Error(c(468,l))}s[Fe]=e,Je(s),l=s}e.stateNode=l}else Em(n,e.type,e.stateNode);else e.stateNode=bm(n,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?Em(n,e.type,e.stateNode):bm(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&vr(e,e.memoizedProps,a.memoizedProps)}break;case 27:ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),a!==null&&l&4&&vr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),e.flags&32){n=e.stateNode;try{Sl(n,"")}catch(I){_e(e,e.return,I)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,vr(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Sr=!0);break;case 6:if(ct(t,e),ot(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){_e(e,e.return,I)}}break;case 3:if(gs=null,n=Lt,Lt=ys(t.containerInfo),ct(t,e),Lt=n,ot(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Il(t.containerInfo)}catch(I){_e(e,e.return,I)}Sr&&(Sr=!1,Ed(e));break;case 4:l=Lt,Lt=ys(e.stateNode.containerInfo),ct(t,e),ot(e),Lt=l;break;case 12:ct(t,e),ot(e);break;case 31:ct(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 13:ct(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 22:n=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,w=la,B=Ze;if(la=w||n,Ze=B||S,ct(t,e),Ze=B,la=w,ot(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||S||la||Ze||rl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,n)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=S.stateNode;var Y=S.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(I){_e(S,S.return,I)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(I){_e(S,S.return,I)}}}else if(t.tag===18){if(a===null){S=t;try{var O=S.stateNode;n?fm(O,!0):fm(S.stateNode,!1)}catch(I){_e(S,S.return,I)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,ts(e,a))));break;case 19:ct(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 30:break;case 21:break;default:ct(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(md(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var n=a.stateNode,s=xr(e);es(e,s,n);break;case 5:var o=a.stateNode;a.flags&32&&(Sl(o,""),a.flags&=-33);var h=xr(e);es(e,h,o);break;case 3:case 4:var S=a.stateNode.containerInfo,w=xr(e);br(e,w,S);break;default:throw Error(c(161))}}catch(B){_e(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pd(e,t.alternate,t),t=t.sibling}function rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ca(4,t,t.return),rl(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&fd(t,t.return,a),rl(t);break;case 27:Vn(t.stateNode);case 26:case 5:Gt(t,t.return),rl(t);break;case 22:t.memoizedState===null&&rl(t);break;case 30:rl(t);break;default:rl(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:sa(n,s,a),Un(4,s);break;case 1:if(sa(n,s,a),l=s,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(w){_e(l,l.return,w)}if(l=s,n=l.updateQueue,n!==null){var h=l.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Io(S[n],h)}catch(w){_e(l,l.return,w)}}a&&o&64&&od(s),Bn(s,s.return);break;case 27:hd(s);case 26:case 5:sa(n,s,a),a&&l===null&&o&4&&dd(s),Bn(s,s.return);break;case 12:sa(n,s,a);break;case 31:sa(n,s,a),a&&o&4&&xd(n,s);break;case 13:sa(n,s,a),a&&o&4&&bd(n,s);break;case 22:s.memoizedState===null&&sa(n,s,a),Bn(s,s.return);break;case 30:break;default:sa(n,s,a)}t=t.sibling}}function Er(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&En(a))}function _r(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&En(e))}function Ht(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_d(e,t,a,l),t=t.sibling}function _d(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,l),n&2048&&Un(9,t);break;case 1:Ht(e,t,a,l);break;case 3:Ht(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&En(e)));break;case 12:if(n&2048){Ht(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){_e(t,t.return,S)}}else Ht(e,t,a,l);break;case 31:Ht(e,t,a,l);break;case 13:Ht(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,a,l):Ln(e,t):s._visibility&2?Ht(e,t,a,l):(s._visibility|=2,Yl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Er(o,t);break;case 24:Ht(e,t,a,l),n&2048&&_r(t.alternate,t);break;default:Ht(e,t,a,l)}}function Yl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=a,S=l,w=o.flags;switch(o.tag){case 0:case 11:case 15:Yl(s,o,h,S,n),Un(8,o);break;case 23:break;case 22:var B=o.stateNode;o.memoizedState!==null?B._visibility&2?Yl(s,o,h,S,n):Ln(s,o):(B._visibility|=2,Yl(s,o,h,S,n)),n&&w&2048&&Er(o.alternate,o);break;case 24:Yl(s,o,h,S,n),n&&w&2048&&_r(o.alternate,o);break;default:Yl(s,o,h,S,n)}t=t.sibling}}function Ln(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Ln(a,l),n&2048&&Er(l.alternate,l);break;case 24:Ln(a,l),n&2048&&_r(l.alternate,l);break;default:Ln(a,l)}t=t.sibling}}var Hn=8192;function Gl(e,t,a){if(e.subtreeFlags&Hn)for(e=e.child;e!==null;)Td(e,t,a),e=e.sibling}function Td(e,t,a){switch(e.tag){case 26:Gl(e,t,a),e.flags&Hn&&e.memoizedState!==null&&mp(a,Lt,e.memoizedState,e.memoizedProps);break;case 5:Gl(e,t,a);break;case 3:case 4:var l=Lt;Lt=ys(e.stateNode.containerInfo),Gl(e,t,a),Lt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Hn,Hn=16777216,Gl(e,t,a),Hn=l):Gl(e,t,a));break;default:Gl(e,t,a)}}function Nd(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 kn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Ad(l,e)}Nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jd(e),e=e.sibling}function jd(e){switch(e.tag){case 0:case 11:case 15:kn(e),e.flags&2048&&Ca(9,e,e.return);break;case 3:kn(e);break;case 12:kn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):kn(e);break;default:kn(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Ad(l,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ca(8,t,t.return),as(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function Ad(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ca(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:En(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var n=l.sibling,s=l.return;if(gd(l),l===a){$e=null;break e}if(n!==null){n.return=s,$e=n;break e}$e=s}}}var Cy={getCacheForType:function(e){var t=Ie(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(Xe).controller.signal}},wy=typeof WeakMap=="function"?WeakMap:Map,be=0,ze=null,me=null,ye=0,Ee=0,bt=null,wa=!1,Xl=!1,Tr=!1,ua=0,ke=0,za=0,cl=0,Nr=0,St=0,Ql=0,qn=null,ft=null,jr=!1,ls=0,Cd=0,ns=1/0,is=null,Ma=null,Ke=0,Oa=null,Vl=null,ra=0,Ar=0,Cr=null,wd=null,Yn=0,wr=null;function Et(){return(be&2)!==0&&ye!==0?ye&-ye:D.T!==null?Ur():Xc()}function zd(){if(St===0)if((ye&536870912)===0||ge){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function dt(e,t,a){(e===ze&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Zl(e,0),Ra(e,ye,St,!1)),rn(e,a),((be&2)===0||e!==ze)&&(e===ze&&((be&2)===0&&(cl|=a),ke===4&&Ra(e,ye,St,!1)),Xt(e))}function Md(e,t,a){if((be&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||un(e,t),n=l?Oy(e,t):Mr(e,t,!0),s=l;do{if(n===0){Xl&&!l&&Ra(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!zy(a)){n=Mr(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=qn;var S=h.current.memoizedState.isDehydrated;if(S&&(Zl(h,o).flags|=256),o=Mr(h,o,!1),o!==2){if(Tr&&!S){h.errorRecoveryDisabledLanes|=s,cl|=s,n=4;break e}s=ft,ft=n,s!==null&&(ft===null?ft=s:ft.push.apply(ft,s))}n=o}if(s=!1,n!==2)continue}}if(n===1){Zl(e,0),Ra(e,t,0,!0);break}e:{switch(l=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ra(l,t,St,!wa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=ls+300-mt(),10<n)){if(Ra(l,t,St,!wa),yi(l,0,!0)!==0)break e;ra=t,l.timeoutHandle=rm(Od.bind(null,l,a,ft,is,jr,t,St,cl,Ql,wa,s,"Throttled",-0,0),n);break e}Od(l,a,ft,is,jr,t,St,cl,Ql,wa,s,null,-0,0)}}break}while(!0);Xt(e)}function Od(e,t,a,l,n,s,o,h,S,w,B,Y,z,O){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Td(t,s,Y);var I=(s&62914560)===s?ls-mt():(s&4194048)===s?Cd-mt():0;if(I=hp(Y,I),I!==null){ra=s,e.cancelPendingCommit=I(qd.bind(null,e,t,s,a,l,n,o,h,S,B,Y,null,z,O)),Ra(e,s,o,!w);return}}qd(e,t,s,a,l,n,o,h,S)}function zy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],s=n.getSnapshot;n=n.value;try{if(!pt(s(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ra(e,t,a,l){t&=~Nr,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var s=31-yt(n),o=1<<s;l[s]=-1,n&=~o}a!==0&&qc(e,a,t)}function ss(){return(be&6)===0?(Gn(0),!1):!0}function zr(){if(me!==null){if(Ee===0)var e=me.return;else e=me,Wt=el=null,Zu(e),Bl=null,Tn=0,e=me;for(;e!==null;)cd(e.alternate,e),e=e.return;me=null}}function Zl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Fy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ra=0,zr(),ze=e,me=a=$t(e.current,null),ye=t,Ee=0,bt=null,wa=!1,Xl=un(e,t),Tr=!1,Ql=St=Nr=cl=za=ke=0,ft=qn=null,jr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-yt(l),s=1<<n;t|=e[n],l&=~s}return ua=t,Ai(),a}function Rd(e,t){oe=null,D.H=On,t===Ul||t===Ui?(t=Jo(),Ee=3):t===Du?(t=Jo(),Ee=4):Ee=t===rr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,me===null&&(ke=1,$i(e,Ct(t,e.current)))}function Dd(){var e=vt.current;return e===null?!0:(ye&4194048)===ye?Ot===null:(ye&62914560)===ye||(ye&536870912)!==0?e===Ot:!1}function Ud(){var e=D.H;return D.H=On,e===null?On:e}function Bd(){var e=D.A;return D.A=Cy,e}function us(){ke=4,wa||(ye&4194048)!==ye&&vt.current!==null||(Xl=!0),(za&134217727)===0&&(cl&134217727)===0||ze===null||Ra(ze,ye,St,!1)}function Mr(e,t,a){var l=be;be|=2;var n=Ud(),s=Bd();(ze!==e||ye!==t)&&(is=null,Zl(e,t)),t=!1;var o=ke;e:do try{if(Ee!==0&&me!==null){var h=me,S=bt;switch(Ee){case 8:zr(),o=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var w=Ee;if(Ee=0,bt=null,Kl(e,h,S,w),a&&Xl){o=0;break e}break;default:w=Ee,Ee=0,bt=null,Kl(e,h,S,w)}}My(),o=ke;break}catch(B){Rd(e,B)}while(!0);return t&&e.shellSuspendCounter++,Wt=el=null,be=l,D.H=n,D.A=s,me===null&&(ze=null,ye=0,Ai()),o}function My(){for(;me!==null;)Ld(me)}function Oy(e,t){var a=be;be|=2;var l=Ud(),n=Bd();ze!==e||ye!==t?(is=null,ns=mt()+500,Zl(e,t)):Xl=un(e,t);e:do try{if(Ee!==0&&me!==null){t=me;var s=bt;t:switch(Ee){case 1:Ee=0,bt=null,Kl(e,t,s,1);break;case 2:case 9:if(Zo(s)){Ee=0,bt=null,Hd(t);break}t=function(){Ee!==2&&Ee!==9||ze!==e||(Ee=7),Xt(e)},s.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Zo(s)?(Ee=0,bt=null,Hd(t)):(Ee=0,bt=null,Kl(e,t,s,7));break;case 5:var o=null;switch(me.tag){case 26:o=me.memoizedState;case 5:case 27:var h=me;if(o?_m(o):h.stateNode.complete){Ee=0,bt=null;var S=h.sibling;if(S!==null)me=S;else{var w=h.return;w!==null?(me=w,rs(w)):me=null}break t}}Ee=0,bt=null,Kl(e,t,s,5);break;case 6:Ee=0,bt=null,Kl(e,t,s,6);break;case 8:zr(),ke=6;break e;default:throw Error(c(462))}}Ry();break}catch(B){Rd(e,B)}while(!0);return Wt=el=null,D.H=l,D.A=n,be=a,me!==null?0:(ze=null,ye=0,Ai(),ke)}function Ry(){for(;me!==null&&!a0();)Ld(me)}function Ld(e){var t=ud(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?rs(e):me=t}function Hd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=td(a,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=td(a,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Zu(t);default:cd(a,t),t=me=Uo(t,ua),t=ud(a,t,ua)}e.memoizedProps=e.pendingProps,t===null?rs(e):me=t}function Kl(e,t,a,l){Wt=el=null,Zu(t),Bl=null,Tn=0;var n=t.return;try{if(Sy(e,n,t,a,ye)){ke=1,$i(e,Ct(a,e.current)),me=null;return}}catch(s){if(n!==null)throw me=n,s;ke=1,$i(e,Ct(a,e.current)),me=null;return}t.flags&32768?(ge||l===1?e=!0:Xl||(ye&536870912)!==0?e=!1:(wa=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),kd(t,e)):rs(t)}function rs(e){var t=e;do{if((t.flags&32768)!==0){kd(t,wa);return}e=t.return;var a=Ty(t.alternate,t,ua);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function kd(e,t){do{var a=Ny(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);ke=6,me=null}function qd(e,t,a,l,n,s,o,h,S){e.cancelPendingCommit=null;do cs();while(Ke!==0);if((be&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=xu,d0(e,a,s,o,h,S),e===ze&&(me=ze=null,ye=0),Vl=t,Oa=e,ra=a,Ar=s,Cr=n,wd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ly(fi,function(){return Vd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=K.p,K.p=2,o=be,be|=4;try{jy(e,t,a)}finally{be=o,K.p=n,D.T=l}}Ke=1,Yd(),Gd(),Xd()}}function Yd(){if(Ke===1){Ke=0;var e=Oa,t=Vl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=K.p;K.p=2;var n=be;be|=4;try{Sd(t,e);var s=Xr,o=jo(e.containerInfo),h=s.focusedElem,S=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&No(h.ownerDocument.documentElement,h)){if(S!==null&&hu(h)){var w=S.start,B=S.end;if(B===void 0&&(B=w),"selectionStart"in h)h.selectionStart=w,h.selectionEnd=Math.min(B,h.value.length);else{var Y=h.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var O=z.getSelection(),I=h.textContent.length,ie=Math.min(S.start,I),Ae=S.end===void 0?ie:Math.min(S.end,I);!O.extend&&ie>Ae&&(o=Ae,Ae=ie,ie=o);var N=To(h,ie),_=To(h,Ae);if(N&&_&&(O.rangeCount!==1||O.anchorNode!==N.node||O.anchorOffset!==N.offset||O.focusNode!==_.node||O.focusOffset!==_.offset)){var C=Y.createRange();C.setStart(N.node,N.offset),O.removeAllRanges(),ie>Ae?(O.addRange(C),O.extend(_.node,_.offset)):(C.setEnd(_.node,_.offset),O.addRange(C))}}}}for(Y=[],O=h;O=O.parentNode;)O.nodeType===1&&Y.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Y.length;h++){var k=Y[h];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ss=!!Gr,Xr=Gr=null}finally{be=n,K.p=l,D.T=a}}e.current=t,Ke=2}}function Gd(){if(Ke===2){Ke=0;var e=Oa,t=Vl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=K.p;K.p=2;var n=be;be|=4;try{pd(e,t.alternate,t)}finally{be=n,K.p=l,D.T=a}}Ke=3}}function Xd(){if(Ke===4||Ke===3){Ke=0,l0();var e=Oa,t=Vl,a=ra,l=wd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Vl=Oa=null,Qd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ma=null),$s(a),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(sn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=K.p,K.p=2,D.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var h=l[o];s(h.value,{componentStack:h.stack})}}finally{D.T=t,K.p=n}}(ra&3)!==0&&cs(),Xt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===wr?Yn++:(Yn=0,wr=e):Yn=0,Gn(0)}}function Qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,En(t)))}function cs(){return Yd(),Gd(),Xd(),Vd()}function Vd(){if(Ke!==5)return!1;var e=Oa,t=Ar;Ar=0;var a=$s(ra),l=D.T,n=K.p;try{K.p=32>a?32:a,D.T=null,a=Cr,Cr=null;var s=Oa,o=ra;if(Ke=0,Vl=Oa=null,ra=0,(be&6)!==0)throw Error(c(331));var h=be;if(be|=4,jd(s.current),_d(s,s.current,o,a),be=h,Gn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(sn,s)}catch{}return!0}finally{K.p=n,D.T=l,Qd(e,t)}}function Zd(e,t,a){t=Ct(a,t),t=ur(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(rn(e,2),Xt(e))}function _e(e,t,a){if(e.tag===3)Zd(e,e,a);else for(;t!==null;){if(t.tag===3){Zd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ma===null||!Ma.has(l))){e=Ct(a,e),a=Kf(2),l=Na(t,a,2),l!==null&&(Jf(a,l,t,e),rn(l,2),Xt(l));break}}t=t.return}}function Or(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new wy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Tr=!0,n.add(a),e=Dy.bind(null,e,t,a),t.then(e,e))}function Dy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(ye&a)===a&&(ke===4||ke===3&&(ye&62914560)===ye&&300>mt()-ls?(be&2)===0&&Zl(e,0):Nr|=a,Ql===ye&&(Ql=0)),Xt(e)}function Kd(e,t){t===0&&(t=kc()),e=Wa(e,t),e!==null&&(rn(e,t),Xt(e))}function Uy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Kd(e,a)}function By(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Kd(e,a)}function Ly(e,t){return Vs(e,t)}var os=null,Jl=null,Rr=!1,fs=!1,Dr=!1,Da=0;function Xt(e){e!==Jl&&e.next===null&&(Jl===null?os=Jl=e:Jl=Jl.next=e),fs=!0,Rr||(Rr=!0,ky())}function Gn(e,t){if(!Dr&&fs){Dr=!0;do for(var a=!1,l=os;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var s=0;else{var o=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=n&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Wd(l,s))}else s=ye,s=yi(l,l===ze?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||un(l,s)||(a=!0,Wd(l,s));l=l.next}while(a);Dr=!1}}function Hy(){Jd()}function Jd(){fs=Rr=!1;var e=0;Da!==0&&$y()&&(e=Da);for(var t=mt(),a=null,l=os;l!==null;){var n=l.next,s=$d(l,t);s===0?(l.next=null,a===null?os=n:a.next=n,n===null&&(Jl=a)):(a=l,(e!==0||(s&3)!==0)&&(fs=!0)),l=n}Ke!==0&&Ke!==5||Gn(e),Da!==0&&(Da=0)}function $d(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-yt(s),h=1<<o,S=n[o];S===-1?((h&a)===0||(h&l)!==0)&&(n[o]=f0(h,t)):S<=t&&(e.expiredLanes|=h),s&=~h}if(t=ze,a=ye,a=yi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Zs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||un(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Zs(l),$s(a)){case 2:case 8:a=Lc;break;case 32:a=fi;break;case 268435456:a=Hc;break;default:a=fi}return l=Fd.bind(null,e),a=Vs(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Zs(l),e.callbackPriority=2,e.callbackNode=null,2}function Fd(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cs()&&e.callbackNode!==a)return null;var l=ye;return l=yi(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Md(e,l,t),$d(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Fd.bind(null,e):null)}function Wd(e,t){if(cs())return null;Md(e,t,!0)}function ky(){Wy(function(){(be&6)!==0?Vs(Bc,Hy):Jd()})}function Ur(){if(Da===0){var e=Rl;e===0&&(e=di,di<<=1,(di&261888)===0&&(di=256)),Da=e}return Da}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function Pd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function qy(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var s=Id((n[st]||null).action),o=l.submitter;o&&(t=(t=o[st]||null)?Id(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new _i("action","action",null,l,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var S=o?Pd(n,o):new FormData(n);tr(a,{pending:!0,data:S,method:n.method,action:s},null,S)}}else typeof s=="function"&&(h.preventDefault(),S=o?Pd(n,o):new FormData(n),tr(a,{pending:!0,data:S,method:n.method,action:s},s,S))},currentTarget:n}]})}}for(var Br=0;Br<vu.length;Br++){var Lr=vu[Br],Yy=Lr.toLowerCase(),Gy=Lr[0].toUpperCase()+Lr.slice(1);Bt(Yy,"on"+Gy)}Bt(wo,"onAnimationEnd"),Bt(zo,"onAnimationIteration"),Bt(Mo,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(ny,"onTransitionRun"),Bt(iy,"onTransitionStart"),Bt(sy,"onTransitionCancel"),Bt(Oo,"onTransitionEnd"),xl("onMouseEnter",["mouseout","mouseover"]),xl("onMouseLeave",["mouseout","mouseover"]),xl("onPointerEnter",["pointerout","pointerover"]),xl("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xn="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xn));function em(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var h=l[o],S=h.instance,w=h.currentTarget;if(h=h.listener,S!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=w;try{s(n)}catch(B){ji(B)}n.currentTarget=null,s=S}else for(o=0;o<l.length;o++){if(h=l[o],S=h.instance,w=h.currentTarget,h=h.listener,S!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=w;try{s(n)}catch(B){ji(B)}n.currentTarget=null,s=S}}}}function he(e,t){var a=t[Fs];a===void 0&&(a=t[Fs]=new Set);var l=e+"__bubble";a.has(l)||(tm(t,e,2,!1),a.add(l))}function Hr(e,t,a){var l=0;t&&(l|=4),tm(a,e,l,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function kr(e){if(!e[ds]){e[ds]=!0,Zc.forEach(function(a){a!=="selectionchange"&&(Xy.has(a)||Hr(a,!1,e),Hr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,Hr("selectionchange",!1,t))}}function tm(e,t,a,l){switch(zm(t)){case 2:var n=gp;break;case 8:n=vp;break;default:n=ec}a=n.bind(null,t,a,e),n=void 0,!iu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function qr(e,t,a,l,n){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var h=l.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=l.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=pl(h),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){l=s=o;continue e}h=h.parentNode}}l=l.return}no(function(){var w=s,B=lu(a),Y=[];e:{var z=Ro.get(e);if(z!==void 0){var O=_i,I=e;switch(e){case"keypress":if(Si(a)===0)break e;case"keydown":case"keyup":O=B0;break;case"focusin":I="focus",O=cu;break;case"focusout":I="blur",O=cu;break;case"beforeblur":case"afterblur":O=cu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=uo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=k0;break;case wo:case zo:case Mo:O=A0;break;case Oo:O=Y0;break;case"scroll":case"scrollend":O=E0;break;case"wheel":O=X0;break;case"copy":case"cut":case"paste":O=w0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=co;break;case"toggle":case"beforetoggle":O=V0}var ie=(t&4)!==0,Ae=!ie&&(e==="scroll"||e==="scrollend"),N=ie?z!==null?z+"Capture":null:z;ie=[];for(var _=w,C;_!==null;){var k=_;if(C=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||C===null||N===null||(k=fn(_,N),k!=null&&ie.push(Qn(_,k,C))),Ae)break;_=_.return}0<ie.length&&(z=new O(z,I,null,a,B),Y.push({event:z,listeners:ie}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&a!==au&&(I=a.relatedTarget||a.fromElement)&&(pl(I)||I[yl]))break e;if((O||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,O?(I=a.relatedTarget||a.toElement,O=w,I=I?pl(I):null,I!==null&&(Ae=m(I),ie=I.tag,I!==Ae||ie!==5&&ie!==27&&ie!==6)&&(I=null)):(O=null,I=w),O!==I)){if(ie=uo,k="onMouseLeave",N="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ie=co,k="onPointerLeave",N="onPointerEnter",_="pointer"),Ae=O==null?z:on(O),C=I==null?z:on(I),z=new ie(k,_+"leave",O,a,B),z.target=Ae,z.relatedTarget=C,k=null,pl(B)===w&&(ie=new ie(N,_+"enter",I,a,B),ie.target=C,ie.relatedTarget=Ae,k=ie),Ae=k,O&&I)t:{for(ie=Qy,N=O,_=I,C=0,k=N;k;k=ie(k))C++;k=0;for(var te=_;te;te=ie(te))k++;for(;0<C-k;)N=ie(N),C--;for(;0<k-C;)_=ie(_),k--;for(;C--;){if(N===_||_!==null&&N===_.alternate){ie=N;break t}N=ie(N),_=ie(_)}ie=null}else ie=null;O!==null&&am(Y,z,O,ie,!1),I!==null&&Ae!==null&&am(Y,Ae,I,ie,!0)}}e:{if(z=w?on(w):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var ve=vo;else if(po(z))if(xo)ve=ty;else{ve=P0;var ee=I0}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?w&&tu(w.elementType)&&(ve=vo):ve=ey;if(ve&&(ve=ve(e,w))){go(Y,ve,a,B);break e}ee&&ee(e,z,w),e==="focusout"&&w&&z.type==="number"&&w.memoizedProps.value!=null&&eu(z,"number",z.value)}switch(ee=w?on(w):window,e){case"focusin":(po(ee)||ee.contentEditable==="true")&&(Nl=ee,yu=w,xn=null);break;case"focusout":xn=yu=Nl=null;break;case"mousedown":pu=!0;break;case"contextmenu":case"mouseup":case"dragend":pu=!1,Ao(Y,a,B);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":Ao(Y,a,B)}var fe;if(fu)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else Tl?ho(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(oo&&a.locale!=="ko"&&(Tl||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&Tl&&(fe=io()):(va=B,su="value"in va?va.value:va.textContent,Tl=!0)),ee=ms(w,pe),0<ee.length&&(pe=new ro(pe,e,null,a,B),Y.push({event:pe,listeners:ee}),fe?pe.data=fe:(fe=yo(a),fe!==null&&(pe.data=fe)))),(fe=K0?J0(e,a):$0(e,a))&&(pe=ms(w,"onBeforeInput"),0<pe.length&&(ee=new ro("onBeforeInput","beforeinput",null,a,B),Y.push({event:ee,listeners:pe}),ee.data=fe)),qy(Y,e,w,a,B)}em(Y,t)})}function Qn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ms(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=fn(e,a),n!=null&&l.unshift(Qn(e,n,s)),n=fn(e,t),n!=null&&l.push(Qn(e,n,s))),e.tag===3)return l;e=e.return}return[]}function Qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,a,l,n){for(var s=t._reactName,o=[];a!==null&&a!==l;){var h=a,S=h.alternate,w=h.stateNode;if(h=h.tag,S!==null&&S===l)break;h!==5&&h!==26&&h!==27||w===null||(S=w,n?(w=fn(a,s),w!=null&&o.unshift(Qn(a,w,S))):n||(w=fn(a,s),w!=null&&o.push(Qn(a,w,S)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Vy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(Vy,`
  49. `).replace(Zy,"")}function nm(e,t){return t=lm(t),lm(e)===t}function je(e,t,a,l,n,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Sl(e,""+l);break;case"className":gi(e,"class",l);break;case"tabIndex":gi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":gi(e,a,l);break;case"style":ao(e,l,s);break;case"data":if(t!=="object"){gi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",n.name,n,null),je(e,t,"formEncType",n.formEncType,n,null),je(e,t,"formMethod",n.formMethod,n,null),je(e,t,"formTarget",n.formTarget,n,null)):(je(e,t,"encType",n.encType,n,null),je(e,t,"method",n.method,n,null),je(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Kt);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=xi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),pi(e,"popover",l);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=b0.get(a)||a,pi(e,a,l))}}function Yr(e,t,a,l,n,s){switch(a){case"style":ao(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&Sl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[st]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):pi(e,a,l)}}}function et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,s,o,a,null)}}n&&je(e,t,"srcSet",a.srcSet,a,null),l&&je(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var h=s=o=n=null,S=null,w=null;for(l in a)if(a.hasOwnProperty(l)){var B=a[l];if(B!=null)switch(l){case"name":n=B;break;case"type":o=B;break;case"checked":S=B;break;case"defaultChecked":w=B;break;case"value":s=B;break;case"defaultValue":h=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:je(e,t,l,B,a,null)}}Ic(e,s,h,S,w,o,n,!1);return;case"select":he("invalid",e),l=o=s=null;for(n in a)if(a.hasOwnProperty(n)&&(h=a[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":l=h;default:je(e,t,n,h,a,null)}t=s,a=o,e.multiple=!!l,t!=null?bl(e,!!l,t,!1):a!=null&&bl(e,!!l,a,!0);return;case"textarea":he("invalid",e),s=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":l=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:je(e,t,o,h,a,null)}eo(e,l,n,s);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(e,t,S,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Xn.length;l++)he(Xn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(w in a)if(a.hasOwnProperty(w)&&(l=a[w],l!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,w,l,a,null)}return;default:if(tu(t)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&Yr(e,t,B,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&je(e,t,h,l,a,null))}function Ky(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,o=null,h=null,S=null,w=null,B=null;for(O in a){var Y=a[O];if(a.hasOwnProperty(O)&&Y!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=Y;default:l.hasOwnProperty(O)||je(e,t,O,null,l,Y)}}for(var z in l){var O=l[z];if(Y=a[z],l.hasOwnProperty(z)&&(O!=null||Y!=null))switch(z){case"type":s=O;break;case"name":n=O;break;case"checked":w=O;break;case"defaultChecked":B=O;break;case"value":o=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:O!==Y&&je(e,t,z,O,l,Y)}}Ps(e,o,h,S,w,B,s,n);return;case"select":O=o=h=z=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":O=S;default:l.hasOwnProperty(s)||je(e,t,s,null,l,S)}for(n in l)if(s=l[n],S=a[n],l.hasOwnProperty(n)&&(s!=null||S!=null))switch(n){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==S&&je(e,t,n,s,l,S)}t=h,a=o,l=O,z!=null?bl(e,!!a,z,!1):!!l!=!!a&&(t!=null?bl(e,!!a,t,!0):bl(e,!!a,a?[]:"",!1));return;case"textarea":O=z=null;for(h in a)if(n=a[h],a.hasOwnProperty(h)&&n!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:je(e,t,h,null,l,n)}for(o in l)if(n=l[o],s=a[o],l.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":z=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&je(e,t,o,n,l,s)}Pc(e,z,O);return;case"option":for(var I in a)if(z=a[I],a.hasOwnProperty(I)&&z!=null&&!l.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:je(e,t,I,null,l,z)}for(S in l)if(z=l[S],O=a[S],l.hasOwnProperty(S)&&z!==O&&(z!=null||O!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:je(e,t,S,z,l,O)}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 ie in a)z=a[ie],a.hasOwnProperty(ie)&&z!=null&&!l.hasOwnProperty(ie)&&je(e,t,ie,null,l,z);for(w in l)if(z=l[w],O=a[w],l.hasOwnProperty(w)&&z!==O&&(z!=null||O!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:je(e,t,w,z,l,O)}return;default:if(tu(t)){for(var Ae in a)z=a[Ae],a.hasOwnProperty(Ae)&&z!==void 0&&!l.hasOwnProperty(Ae)&&Yr(e,t,Ae,void 0,l,z);for(B in l)z=l[B],O=a[B],!l.hasOwnProperty(B)||z===O||z===void 0&&O===void 0||Yr(e,t,B,z,l,O);return}}for(var N in a)z=a[N],a.hasOwnProperty(N)&&z!=null&&!l.hasOwnProperty(N)&&je(e,t,N,null,l,z);for(Y in l)z=l[Y],O=a[Y],!l.hasOwnProperty(Y)||z===O||z==null&&O==null||je(e,t,Y,z,l,O)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],s=n.transferSize,o=n.initiatorType,h=n.duration;if(s&&h&&im(o)){for(o=0,h=n.responseEnd,l+=1;l<a.length;l++){var S=a[l],w=S.startTime;if(w>h)break;var B=S.transferSize,Y=S.initiatorType;B&&im(Y)&&(S=S.responseEnd,o+=B*(S<h?1:(h-w)/(S-w)))}if(--l,t+=8*(s+o)/(n.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 Gr=null,Xr=null;function hs(e){return e.nodeType===9?e:e.ownerDocument}function sm(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 um(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 Qr(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 Vr=null;function $y(){var e=window.event;return e&&e.type==="popstate"?e===Vr?!1:(Vr=e,!0):(Vr=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Wy=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Iy)}:rm;function Iy(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function om(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Il(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Vn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vn(a);for(var s=a.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[cn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Vn(e.ownerDocument.body);a=n}while(a);Il(t)}function fm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Zr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Zr(a),Ws(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Py(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[cn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function ep(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Rt(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Kr(e){return e.data==="$?"||e.data==="$~"}function Jr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Rt(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 $r=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Rt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ym(e,t,a){switch(t=hs(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Vn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ws(e)}var Dt=new Map,pm=new Set;function ys(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ca=K.d;K.d={f:ap,r:lp,D:np,C:ip,L:sp,m:up,X:cp,S:rp,M:op};function ap(){var e=ca.f(),t=ss();return e||t}function lp(e){var t=gl(e);t!==null&&t.tag===5&&t.type==="form"?Rf(t):ca.r(e)}var $l=typeof document>"u"?null:document;function gm(e,t,a){var l=$l;if(l&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),pm.has(n)||(pm.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function np(e){ca.D(e),gm("dns-prefetch",e,null)}function ip(e,t){ca.C(e,t),gm("preconnect",e,t)}function sp(e,t,a){ca.L(e,t,a);var l=$l;if(l&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+jt(a.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var s=n;switch(t){case"style":s=Fl(e);break;case"script":s=Wl(e)}Dt.has(s)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Dt.set(s,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Zn(s))||t==="script"&&l.querySelector(Kn(s))||(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function up(e,t){ca.m(e,t);var a=$l;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(l)+'"][href="'+jt(e)+'"]',s=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Wl(e)}if(!Dt.has(s)&&(e=x({rel:"modulepreload",href:e},t),Dt.set(s,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Kn(s)))return}l=a.createElement("link"),et(l,"link",e),Je(l),a.head.appendChild(l)}}}function rp(e,t,a){ca.S(e,t,a);var l=$l;if(l&&e){var n=vl(l).hoistableStyles,s=Fl(e);t=t||"default";var o=n.get(s);if(!o){var h={loading:0,preload:null};if(o=l.querySelector(Zn(s)))h.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dt.get(s))&&Fr(e,a);var S=o=l.createElement("link");Je(S),et(S,"link",e),S._p=new Promise(function(w,B){S.onload=w,S.onerror=B}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ps(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(s,o)}}}function cp(e,t){ca.X(e,t);var a=$l;if(a&&e){var l=vl(a).hoistableScripts,n=Wl(e),s=l.get(n);s||(s=a.querySelector(Kn(n)),s||(e=x({src:e,async:!0},t),(t=Dt.get(n))&&Wr(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(n,s))}}function op(e,t){ca.M(e,t);var a=$l;if(a&&e){var l=vl(a).hoistableScripts,n=Wl(e),s=l.get(n);s||(s=a.querySelector(Kn(n)),s||(e=x({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Wr(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(n,s))}}function vm(e,t,a,l){var n=(n=de.current)?ys(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Fl(a.href),a=vl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Fl(a.href);var s=vl(n).hoistableStyles,o=s.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=n.querySelector(Zn(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Dt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Dt.set(e,a),s||fp(n,e,a,o.state))),t&&l===null)throw Error(c(528,""));return o}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wl(a),a=vl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Fl(e){return'href="'+jt(e)+'"'}function Zn(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function fp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),et(t,"link",a),Je(t),e.head.appendChild(t))}function Wl(e){return'[src="'+jt(e)+'"]'}function Kn(e){return"script[async]"+e}function bm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+jt(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var n=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),et(l,"style",n),ps(l,a.precedence,e),t.instance=l;case"stylesheet":n=Fl(a.href);var s=e.querySelector(Zn(n));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;l=xm(a),(n=Dt.get(n))&&Fr(l,n),s=(e.ownerDocument||e).createElement("link"),Je(s);var o=s;return o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),et(s,"link",l),t.state.loading|=4,ps(s,a.precedence,e),t.instance=s;case"script":return s=Wl(a.src),(n=e.querySelector(Kn(s)))?(t.instance=n,Je(n),n):(l=a,(n=Dt.get(s))&&(l=x({},a),Wr(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),et(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ps(l,a.precedence,e));return t.instance}function ps(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,s=n,o=0;o<l.length;o++){var h=l[o];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Fr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gs=null;function Sm(e,t,a){if(gs===null){var l=new Map,n=gs=new Map;n.set(a,l)}else n=gs,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var s=a[n];if(!(s[cn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=l.get(o);h?h.push(s):l.set(o,[s])}}return l}function Em(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function dp(e,t,a){if(a===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 _m(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Fl(l.href),s=t.querySelector(Zn(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Je(s);return}s=t.ownerDocument||t,l=xm(l),(n=Dt.get(n))&&Fr(l,n),s=s.createElement("link"),Je(s);var o=s;o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),et(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=vs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ir=0;function hp(e,t){return e.stylesheets&&e.count===0&&bs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Ir===0&&(Ir=62500*Jy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ir?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function bs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach(yp,e),xs=null,vs.call(e))}function yp(e,t){if(!(t.state.loading&4)){var a=xs.get(e);if(a)var l=a.get(null);else{a=new Map,xs.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var o=n[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,n),a.set(o,n),this.count++,l=vs.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Jn={$$typeof:A,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function pp(e,t,a,l,n,s,o,h,S){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=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Tm(e,t,a,l,n,s,o,h,S,w,B,Y){return e=new pp(e,t,a,o,S,w,B,Y,h),t=1,s===!0&&(t|=24),s=gt(3,null,null,t),e.current=s,s.stateNode=e,t=Mu(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},Uu(s),e}function Nm(e){return e?(e=Cl,e):Cl}function jm(e,t,a,l,n,s){n=Nm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ta(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Na(e,l,t),a!==null&&(dt(a,e,t),jn(a,e,t))}function Am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Pr(e,t){Am(e,t),(e=e.alternate)&&Am(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&dt(t,e,67108864),Pr(e,67108864)}}function wm(e){if(e.tag===13||e.tag===31){var t=Et();t=Js(t);var a=Wa(e,t);a!==null&&dt(a,e,t),Pr(e,t)}}var Ss=!0;function gp(e,t,a,l){var n=D.T;D.T=null;var s=K.p;try{K.p=2,ec(e,t,a,l)}finally{K.p=s,D.T=n}}function vp(e,t,a,l){var n=D.T;D.T=null;var s=K.p;try{K.p=8,ec(e,t,a,l)}finally{K.p=s,D.T=n}}function ec(e,t,a,l){if(Ss){var n=tc(l);if(n===null)qr(e,t,l,Es,a),Mm(e,l);else if(bp(n,e,t,a,l))l.stopPropagation();else if(Mm(e,l),t&4&&-1<xp.indexOf(e)){for(;n!==null;){var s=gl(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=Za(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var S=1<<31-yt(o);h.entanglements[1]|=S,o&=~S}Xt(s),(be&6)===0&&(ns=mt()+500,Gn(0))}}break;case 31:case 13:h=Wa(s,2),h!==null&&dt(h,s,2),ss(),Pr(s,2)}if(s=tc(l),s===null&&qr(e,t,l,Es,a),s===n)break;n=s}n!==null&&l.stopPropagation()}else qr(e,t,l,null,a)}}function tc(e){return e=lu(e),ac(e)}var Es=null;function ac(e){if(Es=null,e=pl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Es=e,null}function zm(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(n0()){case Bc:return 2;case Lc:return 8;case fi:case i0:return 32;case Hc:return 268435456;default:return 32}default:return 32}}var lc=!1,Ba=null,La=null,Ha=null,$n=new Map,Fn=new Map,ka=[],xp="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 Mm(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":$n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fn.delete(t.pointerId)}}function Wn(e,t,a,l,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[n]},t!==null&&(t=gl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function bp(e,t,a,l,n){switch(t){case"focusin":return Ba=Wn(Ba,e,t,a,l,n),!0;case"dragenter":return La=Wn(La,e,t,a,l,n),!0;case"mouseover":return Ha=Wn(Ha,e,t,a,l,n),!0;case"pointerover":var s=n.pointerId;return $n.set(s,Wn($n.get(s)||null,e,t,a,l,n)),!0;case"gotpointercapture":return s=n.pointerId,Fn.set(s,Wn(Fn.get(s)||null,e,t,a,l,n)),!0}return!1}function Om(e){var t=pl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Qc(e.priority,function(){wm(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Qc(e.priority,function(){wm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _s(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=tc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);au=l,a.target.dispatchEvent(l),au=null}else return t=gl(a),t!==null&&Cm(t),e.blockedOn=a,!1;t.shift()}return!0}function Rm(e,t,a){_s(e)&&a.delete(t)}function Sp(){lc=!1,Ba!==null&&_s(Ba)&&(Ba=null),La!==null&&_s(La)&&(La=null),Ha!==null&&_s(Ha)&&(Ha=null),$n.forEach(Rm),Fn.forEach(Rm)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,lc||(lc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sp)))}var Ns=null;function Dm(e){Ns!==e&&(Ns=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ns===e&&(Ns=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(ac(l||a)===null)continue;break}var s=gl(a);s!==null&&(e.splice(t,3),t-=3,tr(s,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Il(e){function t(S){return Ts(S,e)}Ba!==null&&Ts(Ba,e),La!==null&&Ts(La,e),Ha!==null&&Ts(Ha,e),$n.forEach(t),Fn.forEach(t);for(var a=0;a<ka.length;a++){var l=ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(a=ka[0],a.blockedOn===null);)Om(a),a.blockedOn===null&&ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],s=a[l+1],o=n[st]||null;if(typeof s=="function")o||Dm(a);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,o=s[st]||null)h=o.formAction;else if(ac(n)!==null)continue}else h=o.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Dm(a)}}}function Um(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function nc(e){this._internalRoot=e}js.prototype.render=nc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,l=Et();jm(a,l,e,t,null,null)},js.prototype.unmount=nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),ss(),t[yl]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ka.length&&t!==0&&t<ka[a].priority;a++);ka.splice(a,0,e),a===0&&Om(e)}};var Bm=u.version;if(Bm!=="19.2.3")throw Error(c(527,Bm,"19.2.3"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=p(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Ep={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&&As.supportsFiber)try{sn=As.inject(Ep),ht=As}catch{}}return Pn.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,l="",n=Xf,s=Qf,o=Vf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Tm(e,1,!1,null,null,a,l,null,n,s,o,Um),e[yl]=t.current,kr(e),new nc(t)},Pn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var l=!1,n="",s=Xf,o=Qf,h=Vf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Tm(e,1,!0,t,a??null,l,n,S,s,o,h,Um),t.context=Nm(null),a=t.current,l=Et(),l=Js(l),n=Ta(l),n.callback=null,Na(a,n,l),a=l,t.current.lanes=a,rn(t,a),Xt(t),e[yl]=t.current,kr(e),new js(t)},Pn.version="19.2.3",Pn}var Zm;function Op(){if(Zm)return sc.exports;Zm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),sc.exports=Mp(),sc.exports}var Rp=Op();const Dp=rh(Rp);var b=Ac();const Re=rh(b),Up="/express/assets/no_image-DuvbomyT.png";function Xa(i){return Intl.NumberFormat("es-ES",{style:"currency",currency:"CLP",unitDisplay:"long"}).format(i)}const Bp=({product:i,onAdd:u})=>f.jsxs("div",{className:"group bg-[#2a201c] rounded-xl overflow-hidden border border-white/5 flex flex-col h-full shadow-md hover:border-white/10 transition-colors",children:[f.jsxs("div",{className:"aspect-square w-full relative overflow-hidden bg-gray-800",children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-transform duration-500 group-hover:scale-110",style:{backgroundImage:`url("${i.image||Up}")`}}),i.badges&&i.badges.length>0&&f.jsx("div",{className:"absolute top-2 left-2 flex flex-col gap-1 z-10 pointer-events-none",children:i.badges.map((r,c)=>f.jsx("span",{className:`${r.color} text-white text-[10px] font-bold px-2 py-0.5 rounded uppercase tracking-wide shadow-sm w-fit`,children:r.text},`${r.text}-${c}`))})]}),f.jsxs("div",{className:"p-3 flex flex-col flex-1",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight mb-1",children:i.name}),f.jsx("p",{className:"text-gray-400 text-xs line-clamp-2 mb-3 leading-relaxed",children:i.description}),f.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[f.jsxs("span",{className:"text-white font-bold text-lg",children:["$",Xa(i.price)]}),f.jsx("button",{onClick:()=>u(i),className:"size-8 rounded-lg bg-primary flex items-center justify-center text-white hover:bg-orange-600 active:bg-orange-700 transition-colors shadow-lg shadow-primary/20",children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"add"})})]})]})]});function Lp(i,u=500){const[r,c]=b.useState(i);return b.useEffect(()=>{const d=setTimeout(()=>{c(i)},u);return()=>{clearTimeout(d)}},[i,u]),r}function da(i){return Array.isArray?Array.isArray(i):fh(i)==="[object Array]"}function Hp(i){if(typeof i=="string")return i;let u=i+"";return u=="0"&&1/i==-1/0?"-0":u}function kp(i){return i==null?"":Hp(i)}function Qt(i){return typeof i=="string"}function ch(i){return typeof i=="number"}function qp(i){return i===!0||i===!1||Yp(i)&&fh(i)=="[object Boolean]"}function oh(i){return typeof i=="object"}function Yp(i){return oh(i)&&i!==null}function _t(i){return i!=null}function fc(i){return!i.trim().length}function fh(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Gp="Incorrect 'index' type",Xp=i=>`Invalid value for key ${i}`,Qp=i=>`Pattern length exceeds max of ${i}.`,Vp=i=>`Missing ${i} property in key`,Zp=i=>`Property 'weight' in key '${i}' must be a positive integer`,Km=Object.prototype.hasOwnProperty;class Kp{constructor(u){this._keys=[],this._keyMap={};let r=0;u.forEach(c=>{let d=dh(c);this._keys.push(d),this._keyMap[d.id]=d,r+=d.weight}),this._keys.forEach(c=>{c.weight/=r})}get(u){return this._keyMap[u]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function dh(i){let u=null,r=null,c=null,d=1,m=null;if(Qt(i)||da(i))c=i,u=Jm(i),r=yc(i);else{if(!Km.call(i,"name"))throw new Error(Vp("name"));const y=i.name;if(c=y,Km.call(i,"weight")&&(d=i.weight,d<=0))throw new Error(Zp(y));u=Jm(y),r=yc(y),m=i.getFn}return{path:u,id:r,weight:d,src:c,getFn:m}}function Jm(i){return da(i)?i:i.split(".")}function yc(i){return da(i)?i.join("."):i}function Jp(i,u){let r=[],c=!1;const d=(m,y,v)=>{if(_t(m))if(!y[v])r.push(m);else{let g=y[v];const p=m[g];if(!_t(p))return;if(v===y.length-1&&(Qt(p)||ch(p)||qp(p)))r.push(kp(p));else if(da(p)){c=!0;for(let E=0,x=p.length;E<x;E+=1)d(p[E],y,v+1)}else y.length&&d(p,y,v+1)}};return d(i,Qt(u)?u.split("."):u,0),c?r:r[0]}const $p={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Fp={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,u)=>i.score===u.score?i.idx<u.idx?-1:1:i.score<u.score?-1:1},Wp={location:0,threshold:.6,distance:100},Ip={useExtendedSearch:!1,getFn:Jp,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ue={...Fp,...$p,...Wp,...Ip};const Pp=/[^ ]+/g;function eg(i=1,u=3){const r=new Map,c=Math.pow(10,u);return{get(d){const m=d.match(Pp).length;if(r.has(m))return r.get(m);const y=1/Math.pow(m,.5*i),v=parseFloat(Math.round(y*c)/c);return r.set(m,v),v},clear(){r.clear()}}}class Cc{constructor({getFn:u=ue.getFn,fieldNormWeight:r=ue.fieldNormWeight}={}){this.norm=eg(r,3),this.getFn=u,this.isCreated=!1,this.setIndexRecords()}setSources(u=[]){this.docs=u}setIndexRecords(u=[]){this.records=u}setKeys(u=[]){this.keys=u,this._keysMap={},u.forEach((r,c)=>{this._keysMap[r.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Qt(this.docs[0])?this.docs.forEach((u,r)=>{this._addString(u,r)}):this.docs.forEach((u,r)=>{this._addObject(u,r)}),this.norm.clear())}add(u){const r=this.size();Qt(u)?this._addString(u,r):this._addObject(u,r)}removeAt(u){this.records.splice(u,1);for(let r=u,c=this.size();r<c;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(u,r){return u[this._keysMap[r]]}size(){return this.records.length}_addString(u,r){if(!_t(u)||fc(u))return;let c={v:u,i:r,n:this.norm.get(u)};this.records.push(c)}_addObject(u,r){let c={i:r,$:{}};this.keys.forEach((d,m)=>{let y=d.getFn?d.getFn(u):this.getFn(u,d.path);if(_t(y)){if(da(y)){let v=[];const g=[{nestedArrIndex:-1,value:y}];for(;g.length;){const{nestedArrIndex:p,value:E}=g.pop();if(_t(E))if(Qt(E)&&!fc(E)){let x={v:E,i:p,n:this.norm.get(E)};v.push(x)}else da(E)&&E.forEach((x,j)=>{g.push({nestedArrIndex:j,value:x})})}c.$[m]=v}else if(Qt(y)&&!fc(y)){let v={v:y,n:this.norm.get(y)};c.$[m]=v}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function mh(i,u,{getFn:r=ue.getFn,fieldNormWeight:c=ue.fieldNormWeight}={}){const d=new Cc({getFn:r,fieldNormWeight:c});return d.setKeys(i.map(dh)),d.setSources(u),d.create(),d}function tg(i,{getFn:u=ue.getFn,fieldNormWeight:r=ue.fieldNormWeight}={}){const{keys:c,records:d}=i,m=new Cc({getFn:u,fieldNormWeight:r});return m.setKeys(c),m.setIndexRecords(d),m}function Cs(i,{errors:u=0,currentLocation:r=0,expectedLocation:c=0,distance:d=ue.distance,ignoreLocation:m=ue.ignoreLocation}={}){const y=u/i.length;if(m)return y;const v=Math.abs(c-r);return d?y+v/d:v?1:y}function ag(i=[],u=ue.minMatchCharLength){let r=[],c=-1,d=-1,m=0;for(let y=i.length;m<y;m+=1){let v=i[m];v&&c===-1?c=m:!v&&c!==-1&&(d=m-1,d-c+1>=u&&r.push([c,d]),c=-1)}return i[m-1]&&m-c>=u&&r.push([c,m-1]),r}const ol=32;function lg(i,u,r,{location:c=ue.location,distance:d=ue.distance,threshold:m=ue.threshold,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,includeMatches:g=ue.includeMatches,ignoreLocation:p=ue.ignoreLocation}={}){if(u.length>ol)throw new Error(Qp(ol));const E=u.length,x=i.length,j=Math.max(0,Math.min(c,x));let M=m,U=j;const L=v>1||g,q=L?Array(x):[];let R;for(;(R=i.indexOf(u,U))>-1;){let V=Cs(u,{currentLocation:R,expectedLocation:j,distance:d,ignoreLocation:p});if(M=Math.min(V,M),U=R+E,L){let Z=0;for(;Z<E;)q[R+Z]=1,Z+=1}}U=-1;let H=[],A=1,X=E+x;const F=1<<E-1;for(let V=0;V<E;V+=1){let Z=0,ne=X;for(;Z<ne;)Cs(u,{errors:V,currentLocation:j+ne,expectedLocation:j,distance:d,ignoreLocation:p})<=M?Z=ne:X=ne,ne=Math.floor((X-Z)/2+Z);X=ne;let Q=Math.max(1,j-ne+1),W=y?x:Math.min(j+ne,x)+E,ae=Array(W+2);ae[W+1]=(1<<V)-1;for(let Ce=W;Ce>=Q;Ce-=1){let Be=Ce-1,D=r[i.charAt(Be)];if(L&&(q[Be]=+!!D),ae[Ce]=(ae[Ce+1]<<1|1)&D,V&&(ae[Ce]|=(H[Ce+1]|H[Ce])<<1|1|H[Ce+1]),ae[Ce]&F&&(A=Cs(u,{errors:V,currentLocation:Be,expectedLocation:j,distance:d,ignoreLocation:p}),A<=M)){if(M=A,U=Be,U<=j)break;Q=Math.max(1,2*j-U)}}if(Cs(u,{errors:V+1,currentLocation:j,expectedLocation:j,distance:d,ignoreLocation:p})>M)break;H=ae}const $={isMatch:U>=0,score:Math.max(.001,A)};if(L){const V=ag(q,v);V.length?g&&($.indices=V):$.isMatch=!1}return $}function ng(i){let u={};for(let r=0,c=i.length;r<c;r+=1){const d=i.charAt(r);u[d]=(u[d]||0)|1<<c-r-1}return u}const Os=String.prototype.normalize?(i=>i.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(i=>i);class hh{constructor(u,{location:r=ue.location,threshold:c=ue.threshold,distance:d=ue.distance,includeMatches:m=ue.includeMatches,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,isCaseSensitive:g=ue.isCaseSensitive,ignoreDiacritics:p=ue.ignoreDiacritics,ignoreLocation:E=ue.ignoreLocation}={}){if(this.options={location:r,threshold:c,distance:d,includeMatches:m,findAllMatches:y,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:p,ignoreLocation:E},u=g?u:u.toLowerCase(),u=p?Os(u):u,this.pattern=u,this.chunks=[],!this.pattern.length)return;const x=(M,U)=>{this.chunks.push({pattern:M,alphabet:ng(M),startIndex:U})},j=this.pattern.length;if(j>ol){let M=0;const U=j%ol,L=j-U;for(;M<L;)x(this.pattern.substr(M,ol),M),M+=ol;if(U){const q=j-ol;x(this.pattern.substr(q),q)}}else x(this.pattern,0)}searchIn(u){const{isCaseSensitive:r,ignoreDiacritics:c,includeMatches:d}=this.options;if(u=r?u:u.toLowerCase(),u=c?Os(u):u,this.pattern===u){let L={isMatch:!0,score:0};return d&&(L.indices=[[0,u.length-1]]),L}const{location:m,distance:y,threshold:v,findAllMatches:g,minMatchCharLength:p,ignoreLocation:E}=this.options;let x=[],j=0,M=!1;this.chunks.forEach(({pattern:L,alphabet:q,startIndex:R})=>{const{isMatch:H,score:A,indices:X}=lg(u,L,q,{location:m+R,distance:y,threshold:v,findAllMatches:g,minMatchCharLength:p,includeMatches:d,ignoreLocation:E});H&&(M=!0),j+=A,H&&X&&(x=[...x,...X])});let U={isMatch:M,score:M?j/this.chunks.length:1};return M&&d&&(U.indices=x),U}}class Qa{constructor(u){this.pattern=u}static isMultiMatch(u){return $m(u,this.multiRegex)}static isSingleMatch(u){return $m(u,this.singleRegex)}search(){}}function $m(i,u){const r=i.match(u);return r?r[1]:null}class ig extends Qa{constructor(u){super(u)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(u){const r=u===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class sg extends Qa{constructor(u){super(u)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(u){const c=u.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,u.length-1]}}}class ug extends Qa{constructor(u){super(u)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(u){const r=u.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class rg extends Qa{constructor(u){super(u)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(u){const r=!u.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,u.length-1]}}}class cg extends Qa{constructor(u){super(u)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(u){const r=u.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[u.length-this.pattern.length,u.length-1]}}}class og extends Qa{constructor(u){super(u)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(u){const r=!u.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,u.length-1]}}}class yh extends Qa{constructor(u,{location:r=ue.location,threshold:c=ue.threshold,distance:d=ue.distance,includeMatches:m=ue.includeMatches,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,isCaseSensitive:g=ue.isCaseSensitive,ignoreDiacritics:p=ue.ignoreDiacritics,ignoreLocation:E=ue.ignoreLocation}={}){super(u),this._bitapSearch=new hh(u,{location:r,threshold:c,distance:d,includeMatches:m,findAllMatches:y,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:p,ignoreLocation:E})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(u){return this._bitapSearch.searchIn(u)}}class ph extends Qa{constructor(u){super(u)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(u){let r=0,c;const d=[],m=this.pattern.length;for(;(c=u.indexOf(this.pattern,r))>-1;)r=c+m,d.push([c,r-1]);const y=!!d.length;return{isMatch:y,score:y?0:1,indices:d}}}const pc=[ig,ph,ug,rg,og,cg,sg,yh],Fm=pc.length,fg=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dg="|";function mg(i,u={}){return i.split(dg).map(r=>{let c=r.trim().split(fg).filter(m=>m&&!!m.trim()),d=[];for(let m=0,y=c.length;m<y;m+=1){const v=c[m];let g=!1,p=-1;for(;!g&&++p<Fm;){const E=pc[p];let x=E.isMultiMatch(v);x&&(d.push(new E(x,u)),g=!0)}if(!g)for(p=-1;++p<Fm;){const E=pc[p];let x=E.isSingleMatch(v);if(x){d.push(new E(x,u));break}}}return d})}const hg=new Set([yh.type,ph.type]);class yg{constructor(u,{isCaseSensitive:r=ue.isCaseSensitive,ignoreDiacritics:c=ue.ignoreDiacritics,includeMatches:d=ue.includeMatches,minMatchCharLength:m=ue.minMatchCharLength,ignoreLocation:y=ue.ignoreLocation,findAllMatches:v=ue.findAllMatches,location:g=ue.location,threshold:p=ue.threshold,distance:E=ue.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:c,includeMatches:d,minMatchCharLength:m,findAllMatches:v,ignoreLocation:y,location:g,threshold:p,distance:E},u=r?u:u.toLowerCase(),u=c?Os(u):u,this.pattern=u,this.query=mg(this.pattern,this.options)}static condition(u,r){return r.useExtendedSearch}searchIn(u){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:c,isCaseSensitive:d,ignoreDiacritics:m}=this.options;u=d?u:u.toLowerCase(),u=m?Os(u):u;let y=0,v=[],g=0;for(let p=0,E=r.length;p<E;p+=1){const x=r[p];v.length=0,y=0;for(let j=0,M=x.length;j<M;j+=1){const U=x[j],{isMatch:L,indices:q,score:R}=U.search(u);if(L){if(y+=1,g+=R,c){const H=U.constructor.type;hg.has(H)?v=[...v,...q]:v.push(q)}}else{g=0,y=0,v.length=0;break}}if(y){let j={isMatch:!0,score:g/y};return c&&(j.indices=v),j}}return{isMatch:!1,score:1}}}const gc=[];function pg(...i){gc.push(...i)}function vc(i,u){for(let r=0,c=gc.length;r<c;r+=1){let d=gc[r];if(d.condition(i,u))return new d(i,u)}return new hh(i,u)}const Rs={AND:"$and",OR:"$or"},xc={PATH:"$path",PATTERN:"$val"},bc=i=>!!(i[Rs.AND]||i[Rs.OR]),gg=i=>!!i[xc.PATH],vg=i=>!da(i)&&oh(i)&&!bc(i),Wm=i=>({[Rs.AND]:Object.keys(i).map(u=>({[u]:i[u]}))});function gh(i,u,{auto:r=!0}={}){const c=d=>{let m=Object.keys(d);const y=gg(d);if(!y&&m.length>1&&!bc(d))return c(Wm(d));if(vg(d)){const g=y?d[xc.PATH]:m[0],p=y?d[xc.PATTERN]:d[g];if(!Qt(p))throw new Error(Xp(g));const E={keyId:yc(g),pattern:p};return r&&(E.searcher=vc(p,u)),E}let v={children:[],operator:m[0]};return m.forEach(g=>{const p=d[g];da(p)&&p.forEach(E=>{v.children.push(c(E))})}),v};return bc(i)||(i=Wm(i)),c(i)}function xg(i,{ignoreFieldNorm:u=ue.ignoreFieldNorm}){i.forEach(r=>{let c=1;r.matches.forEach(({key:d,norm:m,score:y})=>{const v=d?d.weight:null;c*=Math.pow(y===0&&v?Number.EPSILON:y,(v||1)*(u?1:m))}),r.score=c})}function bg(i,u){const r=i.matches;u.matches=[],_t(r)&&r.forEach(c=>{if(!_t(c.indices)||!c.indices.length)return;const{indices:d,value:m}=c;let y={indices:d,value:m};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),u.matches.push(y)})}function Sg(i,u){u.score=i.score}function Eg(i,u,{includeMatches:r=ue.includeMatches,includeScore:c=ue.includeScore}={}){const d=[];return r&&d.push(bg),c&&d.push(Sg),i.map(m=>{const{idx:y}=m,v={item:u[y],refIndex:y};return d.length&&d.forEach(g=>{g(m,v)}),v})}class Pl{constructor(u,r={},c){this.options={...ue,...r},this.options.useExtendedSearch,this._keyStore=new Kp(this.options.keys),this.setCollection(u,c)}setCollection(u,r){if(this._docs=u,r&&!(r instanceof Cc))throw new Error(Gp);this._myIndex=r||mh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(u){_t(u)&&(this._docs.push(u),this._myIndex.add(u))}remove(u=()=>!1){const r=[];for(let c=0,d=this._docs.length;c<d;c+=1){const m=this._docs[c];u(m,c)&&(this.removeAt(c),c-=1,d-=1,r.push(m))}return r}removeAt(u){this._docs.splice(u,1),this._myIndex.removeAt(u)}getIndex(){return this._myIndex}search(u,{limit:r=-1}={}){const{includeMatches:c,includeScore:d,shouldSort:m,sortFn:y,ignoreFieldNorm:v}=this.options;let g=Qt(u)?Qt(this._docs[0])?this._searchStringList(u):this._searchObjectList(u):this._searchLogical(u);return xg(g,{ignoreFieldNorm:v}),m&&g.sort(y),ch(r)&&r>-1&&(g=g.slice(0,r)),Eg(g,this._docs,{includeMatches:c,includeScore:d})}_searchStringList(u){const r=vc(u,this.options),{records:c}=this._myIndex,d=[];return c.forEach(({v:m,i:y,n:v})=>{if(!_t(m))return;const{isMatch:g,score:p,indices:E}=r.searchIn(m);g&&d.push({item:m,idx:y,matches:[{score:p,value:m,norm:v,indices:E}]})}),d}_searchLogical(u){const r=gh(u,this.options),c=(v,g,p)=>{if(!v.children){const{keyId:x,searcher:j}=v,M=this._findMatches({key:this._keyStore.get(x),value:this._myIndex.getValueForItemAtKeyId(g,x),searcher:j});return M&&M.length?[{idx:p,item:g,matches:M}]:[]}const E=[];for(let x=0,j=v.children.length;x<j;x+=1){const M=v.children[x],U=c(M,g,p);if(U.length)E.push(...U);else if(v.operator===Rs.AND)return[]}return E},d=this._myIndex.records,m={},y=[];return d.forEach(({$:v,i:g})=>{if(_t(v)){let p=c(r,v,g);p.length&&(m[g]||(m[g]={idx:g,item:v,matches:[]},y.push(m[g])),p.forEach(({matches:E})=>{m[g].matches.push(...E)}))}}),y}_searchObjectList(u){const r=vc(u,this.options),{keys:c,records:d}=this._myIndex,m=[];return d.forEach(({$:y,i:v})=>{if(!_t(y))return;let g=[];c.forEach((p,E)=>{g.push(...this._findMatches({key:p,value:y[E],searcher:r}))}),g.length&&m.push({idx:v,item:y,matches:g})}),m}_findMatches({key:u,value:r,searcher:c}){if(!_t(r))return[];let d=[];if(da(r))r.forEach(({v:m,i:y,n:v})=>{if(!_t(m))return;const{isMatch:g,score:p,indices:E}=c.searchIn(m);g&&d.push({score:p,key:u,value:m,idx:y,norm:v,indices:E})});else{const{v:m,n:y}=r,{isMatch:v,score:g,indices:p}=c.searchIn(m);v&&d.push({score:g,key:u,value:m,norm:y,indices:p})}return d}}Pl.version="7.1.0";Pl.createIndex=mh;Pl.parseIndex=tg;Pl.config=ue;Pl.parseQuery=gh;pg(yg);const _g=(i,u,r=.5)=>{const[c,d]=b.useState(""),m=b.useMemo(()=>new Pl(i,{keys:u,threshold:r,ignoreLocation:!0,minMatchCharLength:2}),[i,u,r]),y=b.useMemo(()=>c?m.search(c).map(v=>v.item):i,[m,c,i]);return{query:c,setQuery:d,results:y}},Vt=window.location.hostname==="localhost"?"http://localhost:6001":"https://kleinexpress.store",Tg=[{id:"1",sender:"system",text:"Initiating connection...",timestamp:"18:04"}],vh=i=>{localStorage.setItem("token",i)},ml=()=>localStorage.getItem("token"),Ng=async(i,u)=>await(await fetch(`${Vt}/api/users/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,pin:u})})).json(),li=async()=>(await fetch(`${Vt}/api/users/guest`,{method:"GET",headers:{"Content-Type":"application/json"}})).json(),jg=async i=>await(await fetch(`${Vt}/api/users/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).json(),Ag=async i=>{const u=i?ml():(await li()).data.token;return await(await fetch(`${Vt}/api/products?status=1`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`}})).json()},Cg=async(i,u)=>{const r=u?ml():(await li()).data.token;return await(await fetch(`${Vt}/api/orders/send`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(i)})).json()},wg=async(i,u)=>{const r=u?ml():(await li()).data.token;return await(await fetch(`${Vt}/api/products/table/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}})).json()},xh=async(i,u)=>{const r=i?ml():(await li()).data.token;return await(await fetch(`${Vt}/api/orders/billing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({table:u,payment:"Efectivo"})})).json()},zg=async(i,u)=>{const r=i?ml():(await li()).data.token,c=await fetch(`${Vt}/api/products/free-beer/${u}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}}),d=await c.json();return{success:c.status===200,message:d.message}},bh=b.createContext(void 0),Mg=({children:i})=>{const[u,r]=b.useState(!1),[c,d]=b.useState(),[m,y]=b.useState(0),[v,g]=b.useState(""),p=b.useCallback((M,U)=>{U&&!U.token&&(U.token=ml()),r(M),d(U),y(U?U.reward_progress:0),g(U?U.token:"")},[]),E=b.useCallback(M=>{g(M)},[]),x=b.useCallback(M=>{y(M)},[]),j=b.useMemo(()=>({isLogged:u,user:c,token:v,setIsLoggedIn:p,promoPercent:m,setPromoPercent:x,setToken:E}),[u,c,v,p,m,x,E]);return f.jsx(bh.Provider,{value:j,children:i})},Tt=()=>b.useContext(bh);function Og(i){return i.map(u=>{const r={...u};if(r.badges=[],r.type==="Cervezas"&&r.description){const m=/IBU\s*:?\s*(\d+(?:\.\d+)?)/i.exec(r.description);m&&r.badges.push({text:"IBU "+m[1],color:"bg-black/60 backdrop-blur"});const v=/(\d+(?:[\.,]\d+)?)\s*(?:º|grados)/i.exec(r.description);if(v){let g=v[1].replace(".",",");g.includes(",")||(g+=",0"),r.badges.push({text:`${g}º`,color:"bg-black/60 backdrop-blur"})}}return["Pizza Medianas","Pizzas Familiares","Sandwich de Autor"].includes(u.type)&&(r.description.toLowerCase().includes("veggie")||r.description.toLowerCase().includes("vegetarian")||r.description.toLowerCase().includes("vegan")||r.name.toLowerCase().includes("veggie")||r.name.toLowerCase().includes("vegetarian")||r.name.toLowerCase().includes("vegan"))&&r.badges.push({text:"VEGGIE",color:"bg-green-600"}),r})}const Sh=b.createContext(void 0),Rg=({children:i})=>{const[u,r]=b.useState(!1),[c,d]=b.useState("Cargando..."),m=(y,v="Cargando...")=>{r(y),setTimeout(()=>{d(v)},y?0:2e3)};return f.jsxs(Sh.Provider,{value:{isLoading:u,setIsLoading:m},children:[f.jsx("div",{children:f.jsx("div",{className:`fixed inset-0 z-50 flex items-center justify-center bg-background-dark/60 backdrop-blur-sm pointer-events-none transition-opacity duration-300 opacity-0 ${u?"opacity-100":"opacity-0"}`,children:f.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[f.jsxs("div",{className:"animate-spin relative not-first:animate-spin flex justify-center space-x-8 h-12 w-full max-w-xsrounded-xl",children:[f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white -translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white absolute left-1/2 top-1/2 -translate-y-1/2"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"})]}),f.jsx("div",{className:"text-white text-center text-md font-display translate-y-25",children:c})]})})}),i]})},ni=()=>b.useContext(Sh),Eh=b.createContext(void 0),Dg=({children:i})=>{const[u,r]=b.useState([]),[c,d]=b.useState(void 0),m=b.useCallback((...p)=>{const E=u.filter(x=>p.some(j=>j.id===x.id));return E.forEach(x=>x.quantity=0),E.map(x=>{const j={...x};return j.quantity=p.filter(M=>M.id===x.id).reduce((M,U)=>M+U.quantity,0),j})},[u]),y=b.useCallback((p,E)=>{const x=u.map(j=>j.id===p?{...j,price:E}:j);r(x)},[u]),v=b.useCallback(p=>{const E=u.filter(x=>x.id!==p);r(E)},[u]),g=b.useMemo(()=>({products:u,setProducts:r,table:c,setTable:d,getItems:m,updateProduct:y,removeProduct:v}),[u,r,c,d,m,y,v]);return f.jsx(Eh.Provider,{value:g,children:i})},en=()=>b.useContext(Eh),Ug=({onAddProduct:i})=>{const[u,r]=b.useState(""),[c,d]=b.useState([]),[m,y]=b.useState("All Items"),{products:v,setProducts:g}=en(),{setQuery:p,results:E}=_g(v,["name","description"],.5),x=Lp(u,500),{setIsLoading:j}=ni(),{isLogged:M}=Tt(),U=b.useRef(null),L=R=>{r(R)},q=R=>{const H=U.current;H&&H.animate([{filter:"blur(0px)"},{filter:"blur(5px)"},{filter:"blur(0px)"}],{duration:100,fill:"forwards"}),setTimeout(()=>{y(R)},50)};return b.useEffect(()=>{p(x)},[x]),b.useEffect(()=>{(async()=>{if(v.length>0)return;j(!0,"Cargando Productos...");const H=await Ag(M),A=H.data.products;if(H.success){const X=Og(A);g(X);const F=A.reduce(($,V)=>($.includes(V.type)||$.push(V.type),$),[]);d(F),v.length>0&&setTimeout(()=>{j(!1)},1e3)}})()},[]),f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 h-full",children:[f.jsxs("div",{className:"sticky top-0 z-20 bg-background-dark/95 backdrop-blur-sm border-b border-white/5 px-4 py-4",children:[f.jsx("div",{className:"flex justify-between items-end mb-4",children:f.jsxs("div",{children:[f.jsx("h2",{className:"text-white text-2xl font-bold leading-tight",children:"Tienes Sed?"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Cervezas locales de corte artesanal"})]})}),f.jsxs("div",{className:"relative mb-4 group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 group-focus-within:text-primary transition-colors",children:"search"})}),f.jsx("input",{className:"block w-full pl-10 pr-3 py-2.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary sm:text-sm transition-all shadow-sm",placeholder:"Busca lo que quieras...",type:"text",onChange:R=>L(R.target.value)})]}),f.jsxs("div",{className:"flex gap-3 overflow-x-auto scrollbar-hide pb-1",children:[f.jsx("button",{className:"px-5 py-2 rounded-full text-white text-sm font-medium whitespace-nowrap shadow-lg"+(m==="All Items"?" bg-primary shadow-primary/20":" bg-[#2a201c] hover:bg-[#3a2c26]"),onClick:()=>q("All Items"),children:"All Items"}),c.map(R=>f.jsx("button",{className:"px-5 py-2 rounded-full bg-[#2a201c] text-gray-300 text-sm font-medium whitespace-nowrap border border-white/5"+(m===R?" bg-primary shadow-primary/20":" hover:bg-[#3a2c26]"),onClick:()=>q(R),children:R},R))]})]}),f.jsx("div",{ref:U,className:"p-4 grid grid-cols-2 gap-4 pb-28",children:E?E.map(R=>{if(m==="All Items"||R.type===m)return f.jsx(Bp,{product:R,onAdd:i},R.id)}):"No se encontraron productos"})]})},Im=`${Vt}/api/chat`;class Bg{constructor(){this.socket=null,this.messageHandler=null,this.errorHandler=null,this.closeHandler=null,this.mentionHandler=null}connect(u){this.socket&&this.socket.close();const c=`${Vt.replace(/^http/,"ws")}/api/chat/ws?token=${encodeURIComponent(u)}`;return this.socket=new WebSocket(c),this.socket.onopen=()=>{console.log("WebSocket conectado")},this.socket.onmessage=d=>{try{const m=JSON.parse(d.data);if(m.type==="ping"){this.send({type:"pong"});return}if(m.type==="mention"){this.mentionHandler&&this.mentionHandler(m.username);return}this.messageHandler&&this.messageHandler(m)}catch(m){console.error("Error al parsear mensaje del WS:",m)}},this.socket.onerror=d=>{console.error("WebSocket error:",d),this.errorHandler&&this.errorHandler(d)},this.socket.onclose=()=>{console.log("WebSocket desconectado"),this.closeHandler&&this.closeHandler()},!0}send(u){this.socket&&this.socket.readyState===WebSocket.OPEN?this.socket.send(JSON.stringify(u)):console.warn("No se pudo enviar el mensaje: WebSocket no conectado.")}join(u){this.send({type:"join",username:u})}sendMessage(u,r){this.send({type:"message",username:u,message:r})}sendAiMessage(u,r){this.send({type:"ai_message",username:u,message:r})}sendMention(u,r){this.send({type:"mention",username:r})}leave(u){this.send({type:"leave",username:u}),setTimeout(()=>{this.disconnect()},3e3)}disconnect(){this.socket&&(this.socket.close(),this.socket=null)}onMessage(u){this.messageHandler=u}onError(u){this.errorHandler=u}onClose(u){this.closeHandler=u}onMention(u){this.mentionHandler=u}async getConnectedUsers(u,r){var y;const c=new URL(`${Im}/users`);r&&c.searchParams.append("q",r);const d=await fetch(c.toString(),{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!d.ok)throw new Error("Error fetching users");const m=await d.json();return((y=m.data)==null?void 0:y.users)||m.data||[]}async getOnlineCount(u){var d;const r=await fetch(`${Im}/onlines`,{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!r.ok)throw new Error("Error fetching count");return((d=(await r.json()).data)==null?void 0:d.count)||0}async mention(u){this.send({type:"mention",username:u})}}const at=new Bg;function _h(i){var u,r,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(u=0;u<d;u++)i[u]&&(r=_h(i[u]))&&(c&&(c+=" "),c+=r)}else for(r in i)i[r]&&(c&&(c+=" "),c+=r);return c}function fl(){for(var i,u,r=0,c="",d=arguments.length;r<d;r++)(i=arguments[r])&&(u=_h(i))&&(c&&(c+=" "),c+=u);return c}function Lg(i){if(typeof document>"u")return;let u=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",u.firstChild?u.insertBefore(r,u.firstChild):u.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}Lg(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
  50. `);var ii=i=>typeof i=="number"&&!isNaN(i),dl=i=>typeof i=="string",ma=i=>typeof i=="function",Hg=i=>dl(i)||ii(i),Sc=i=>dl(i)||ma(i)?i:null,kg=(i,u)=>i===!1||ii(i)&&i>0?i:u,Ec=i=>b.isValidElement(i)||dl(i)||ma(i)||ii(i);function qg(i,u,r=300){let{scrollHeight:c,style:d}=i;requestAnimationFrame(()=>{d.minHeight="initial",d.height=c+"px",d.transition=`all ${r}ms`,requestAnimationFrame(()=>{d.height="0",d.padding="0",d.margin="0",setTimeout(u,r)})})}function Yg({enter:i,exit:u,appendPosition:r=!1,collapse:c=!0,collapseDuration:d=300}){return function({children:m,position:y,preventExitTransition:v,done:g,nodeRef:p,isIn:E,playToast:x}){let j=r?`${i}--${y}`:i,M=r?`${u}--${y}`:u,U=b.useRef(0);return b.useLayoutEffect(()=>{let L=p.current,q=j.split(" "),R=H=>{H.target===p.current&&(x(),L.removeEventListener("animationend",R),L.removeEventListener("animationcancel",R),U.current===0&&H.type!=="animationcancel"&&L.classList.remove(...q))};L.classList.add(...q),L.addEventListener("animationend",R),L.addEventListener("animationcancel",R)},[]),b.useEffect(()=>{let L=p.current,q=()=>{L.removeEventListener("animationend",q),c?qg(L,g,d):g()};E||(v?q():(U.current=1,L.className+=` ${M}`,L.addEventListener("animationend",q)))},[E]),Re.createElement(Re.Fragment,null,m)}}function Pm(i,u){return{content:Th(i.content,i.props),containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,reason:i.removalReason,status:u}}function Th(i,u,r=!1){return b.isValidElement(i)&&!dl(i.type)?b.cloneElement(i,{closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:r}):ma(i)?i({closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:r}):i}function Gg({closeToast:i,theme:u,ariaLabel:r="close"}){return Re.createElement("button",{className:`Toastify__close-button Toastify__close-button--${u}`,type:"button",onClick:c=>{c.stopPropagation(),i(!0)},"aria-label":r},Re.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Re.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Xg({delay:i,isRunning:u,closeToast:r,type:c="default",hide:d,className:m,controlledProgress:y,progress:v,rtl:g,isIn:p,theme:E}){let x=d||y&&v===0,j={animationDuration:`${i}ms`,animationPlayState:u?"running":"paused"};y&&(j.transform=`scaleX(${v})`);let M=fl("Toastify__progress-bar",y?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${E}`,`Toastify__progress-bar--${c}`,{"Toastify__progress-bar--rtl":g}),U=ma(m)?m({rtl:g,type:c,defaultClassName:M}):fl(M,m),L={[y&&v>=1?"onTransitionEnd":"onAnimationEnd"]:y&&v<1?null:()=>{p&&r()}};return Re.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},Re.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${E} Toastify__progress-bar--${c}`}),Re.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:U,style:j,...L}))}var Qg=1,Nh=()=>`${Qg++}`;function Vg(i,u,r){let c=1,d=0,m=[],y=[],v=u,g=new Map,p=new Set,E=H=>(p.add(H),()=>p.delete(H)),x=()=>{y=Array.from(g.values()),p.forEach(H=>H())},j=({containerId:H,toastId:A,updateId:X})=>{let F=H?H!==i:i!==1,$=g.has(A)&&X==null;return F||$},M=(H,A)=>{g.forEach(X=>{var F;(A==null||A===X.props.toastId)&&((F=X.toggle)==null||F.call(X,H))})},U=H=>{var A,X;(X=(A=H.props)==null?void 0:A.onClose)==null||X.call(A,H.removalReason),H.isActive=!1},L=H=>{if(H==null)g.forEach(U);else{let A=g.get(H);A&&U(A)}x()},q=()=>{d-=m.length,m=[]},R=H=>{var A,X;let{toastId:F,updateId:$}=H.props,V=$==null;H.staleId&&g.delete(H.staleId),H.isActive=!0,g.set(F,H),x(),r(Pm(H,V?"added":"updated")),V&&((X=(A=H.props).onOpen)==null||X.call(A))};return{id:i,props:v,observe:E,toggle:M,removeToast:L,toasts:g,clearQueue:q,buildToast:(H,A)=>{if(j(A))return;let{toastId:X,updateId:F,data:$,staleId:V,delay:Z}=A,ne=F==null;ne&&d++;let Q={...v,style:v.toastStyle,key:c++,...Object.fromEntries(Object.entries(A).filter(([ae,Ue])=>Ue!=null)),toastId:X,updateId:F,data:$,isIn:!1,className:Sc(A.className||v.toastClassName),progressClassName:Sc(A.progressClassName||v.progressClassName),autoClose:A.isLoading?!1:kg(A.autoClose,v.autoClose),closeToast(ae){g.get(X).removalReason=ae,L(X)},deleteToast(){let ae=g.get(X);if(ae!=null){if(r(Pm(ae,"removed")),g.delete(X),d--,d<0&&(d=0),m.length>0){R(m.shift());return}x()}}};Q.closeButton=v.closeButton,A.closeButton===!1||Ec(A.closeButton)?Q.closeButton=A.closeButton:A.closeButton===!0&&(Q.closeButton=Ec(v.closeButton)?v.closeButton:!0);let W={content:H,props:Q,staleId:V};v.limit&&v.limit>0&&d>v.limit&&ne?m.push(W):ii(Z)?setTimeout(()=>{R(W)},Z):R(W)},setProps(H){v=H},setToggle:(H,A)=>{let X=g.get(H);X&&(X.toggle=A)},isToastActive:H=>{var A;return(A=g.get(H))==null?void 0:A.isActive},getSnapshot:()=>y}}var it=new Map,ti=[],_c=new Set,Zg=i=>_c.forEach(u=>u(i)),jh=()=>it.size>0;function Kg(){ti.forEach(i=>Ch(i.content,i.options)),ti=[]}var Jg=(i,{containerId:u})=>{var r;return(r=it.get(u||1))==null?void 0:r.toasts.get(i)};function Ah(i,u){var r;if(u)return!!((r=it.get(u))!=null&&r.isToastActive(i));let c=!1;return it.forEach(d=>{d.isToastActive(i)&&(c=!0)}),c}function $g(i){if(!jh()){ti=ti.filter(u=>i!=null&&u.options.toastId!==i);return}if(i==null||Hg(i))it.forEach(u=>{u.removeToast(i)});else if(i&&("containerId"in i||"id"in i)){let u=it.get(i.containerId);u?u.removeToast(i.id):it.forEach(r=>{r.removeToast(i.id)})}}var Fg=(i={})=>{it.forEach(u=>{u.props.limit&&(!i.containerId||u.id===i.containerId)&&u.clearQueue()})};function Ch(i,u){Ec(i)&&(jh()||ti.push({content:i,options:u}),it.forEach(r=>{r.buildToast(i,u)}))}function Wg(i){var u;(u=it.get(i.containerId||1))==null||u.setToggle(i.id,i.fn)}function wh(i,u){it.forEach(r=>{(u==null||!(u!=null&&u.containerId)||(u==null?void 0:u.containerId)===r.id)&&r.toggle(i,u==null?void 0:u.id)})}function Ig(i){let u=i.containerId||1;return{subscribe(r){let c=Vg(u,i,Zg);it.set(u,c);let d=c.observe(r);return Kg(),()=>{d(),it.delete(u)}},setProps(r){var c;(c=it.get(u))==null||c.setProps(r)},getSnapshot(){var r;return(r=it.get(u))==null?void 0:r.getSnapshot()}}}function Pg(i){return _c.add(i),()=>{_c.delete(i)}}function ev(i){return i&&(dl(i.toastId)||ii(i.toastId))?i.toastId:Nh()}function si(i,u){return Ch(i,u),u.toastId}function Us(i,u){return{...u,type:u&&u.type||i,toastId:ev(u)}}function Bs(i){return(u,r)=>si(u,Us(i,r))}function se(i,u){return si(i,Us("default",u))}se.loading=(i,u)=>si(i,Us("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...u}));function tv(i,{pending:u,error:r,success:c},d){let m;u&&(m=dl(u)?se.loading(u,d):se.loading(u.render,{...d,...u}));let y={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},v=(p,E,x)=>{if(E==null){se.dismiss(m);return}let j={type:p,...y,...d,data:x},M=dl(E)?{render:E}:E;return m?se.update(m,{...j,...M}):se(M.render,{...j,...M}),x},g=ma(i)?i():i;return g.then(p=>v("success",c,p)).catch(p=>v("error",r,p)),g}se.promise=tv;se.success=Bs("success");se.info=Bs("info");se.error=Bs("error");se.warning=Bs("warning");se.warn=se.warning;se.dark=(i,u)=>si(i,Us("default",{theme:"dark",...u}));function av(i){$g(i)}se.dismiss=av;se.clearWaitingQueue=Fg;se.isActive=Ah;se.update=(i,u={})=>{let r=Jg(i,u);if(r){let{props:c,content:d}=r,m={delay:100,...c,...u,toastId:u.toastId||i,updateId:Nh()};m.toastId!==i&&(m.staleId=i);let y=m.render||d;delete m.render,si(y,m)}};se.done=i=>{se.update(i,{progress:1})};se.onChange=Pg;se.play=i=>wh(!0,i);se.pause=i=>wh(!1,i);function lv(i){var u;let{subscribe:r,getSnapshot:c,setProps:d}=b.useRef(Ig(i)).current;d(i);let m=(u=b.useSyncExternalStore(r,c,c))==null?void 0:u.slice();function y(v){if(!m)return[];let g=new Map;return i.newestOnTop&&m.reverse(),m.forEach(p=>{let{position:E}=p.props;g.has(E)||g.set(E,[]),g.get(E).push(p)}),Array.from(g,p=>v(p[0],p[1]))}return{getToastToRender:y,isToastActive:Ah,count:m==null?void 0:m.length}}function nv(i){let[u,r]=b.useState(!1),[c,d]=b.useState(!1),m=b.useRef(null),y=b.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:v,pauseOnHover:g,closeToast:p,onClick:E,closeOnClick:x}=i;Wg({id:i.toastId,containerId:i.containerId,fn:r}),b.useEffect(()=>{if(i.pauseOnFocusLoss)return j(),()=>{M()}},[i.pauseOnFocusLoss]);function j(){document.hasFocus()||R(),window.addEventListener("focus",q),window.addEventListener("blur",R)}function M(){window.removeEventListener("focus",q),window.removeEventListener("blur",R)}function U(V){if(i.draggable===!0||i.draggable===V.pointerType){H();let Z=m.current;y.canCloseOnClick=!0,y.canDrag=!0,Z.style.transition="none",i.draggableDirection==="x"?(y.start=V.clientX,y.removalDistance=Z.offsetWidth*(i.draggablePercent/100)):(y.start=V.clientY,y.removalDistance=Z.offsetHeight*(i.draggablePercent===80?i.draggablePercent*1.5:i.draggablePercent)/100)}}function L(V){let{top:Z,bottom:ne,left:Q,right:W}=m.current.getBoundingClientRect();V.nativeEvent.type!=="touchend"&&i.pauseOnHover&&V.clientX>=Q&&V.clientX<=W&&V.clientY>=Z&&V.clientY<=ne?R():q()}function q(){r(!0)}function R(){r(!1)}function H(){y.didMove=!1,document.addEventListener("pointermove",X),document.addEventListener("pointerup",F)}function A(){document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",F)}function X(V){let Z=m.current;if(y.canDrag&&Z){y.didMove=!0,u&&R(),i.draggableDirection==="x"?y.delta=V.clientX-y.start:y.delta=V.clientY-y.start,y.start!==V.clientX&&(y.canCloseOnClick=!1);let ne=i.draggableDirection==="x"?`${y.delta}px, var(--y)`:`0, calc(${y.delta}px + var(--y))`;Z.style.transform=`translate3d(${ne},0)`,Z.style.opacity=`${1-Math.abs(y.delta/y.removalDistance)}`}}function F(){A();let V=m.current;if(y.canDrag&&y.didMove&&V){if(y.canDrag=!1,Math.abs(y.delta)>y.removalDistance){d(!0),i.closeToast(!0),i.collapseAll();return}V.style.transition="transform 0.2s, opacity 0.2s",V.style.removeProperty("transform"),V.style.removeProperty("opacity")}}let $={onPointerDown:U,onPointerUp:L};return v&&g&&($.onMouseEnter=R,i.stacked||($.onMouseLeave=q)),x&&($.onClick=V=>{E&&E(V),y.canCloseOnClick&&p(!0)}),{playToast:q,pauseToast:R,isRunning:u,preventExitTransition:c,toastRef:m,eventHandlers:$}}var iv=typeof window<"u"?b.useLayoutEffect:b.useEffect,Ls=({theme:i,type:u,isLoading:r,...c})=>Re.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:i==="colored"?"currentColor":`var(--toastify-icon-color-${u})`,...c});function sv(i){return Re.createElement(Ls,{...i},Re.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function uv(i){return Re.createElement(Ls,{...i},Re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function rv(i){return Re.createElement(Ls,{...i},Re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function cv(i){return Re.createElement(Ls,{...i},Re.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function ov(){return Re.createElement("div",{className:"Toastify__spinner"})}var Tc={info:uv,warning:sv,success:rv,error:cv,spinner:ov},fv=i=>i in Tc;function dv({theme:i,type:u,isLoading:r,icon:c}){let d=null,m={theme:i,type:u};return c===!1||(ma(c)?d=c({...m,isLoading:r}):b.isValidElement(c)?d=b.cloneElement(c,m):r?d=Tc.spinner():fv(u)&&(d=Tc[u](m))),d}var mv=i=>{let{isRunning:u,preventExitTransition:r,toastRef:c,eventHandlers:d,playToast:m}=nv(i),{closeButton:y,children:v,autoClose:g,onClick:p,type:E,hideProgressBar:x,closeToast:j,transition:M,position:U,className:L,style:q,progressClassName:R,updateId:H,role:A,progress:X,rtl:F,toastId:$,deleteToast:V,isIn:Z,isLoading:ne,closeOnClick:Q,theme:W,ariaLabel:ae}=i,Ue=fl("Toastify__toast",`Toastify__toast-theme--${W}`,`Toastify__toast--${E}`,{"Toastify__toast--rtl":F},{"Toastify__toast--close-on-click":Q}),Ce=ma(L)?L({rtl:F,position:U,type:E,defaultClassName:Ue}):fl(Ue,L),Be=dv(i),D=!!X||!g,K={closeToast:j,type:E,theme:W},le=null;return y===!1||(ma(y)?le=y(K):b.isValidElement(y)?le=b.cloneElement(y,K):le=Gg(K)),Re.createElement(M,{isIn:Z,done:V,position:U,preventExitTransition:r,nodeRef:c,playToast:m},Re.createElement("div",{id:$,tabIndex:0,onClick:p,"data-in":Z,className:Ce,...d,style:q,ref:c,...Z&&{role:A,"aria-label":ae}},Be!=null&&Re.createElement("div",{className:fl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ne})},Be),Th(v,i,!u),le,!i.customProgressBar&&Re.createElement(Xg,{...H&&!D?{key:`p-${H}`}:{},rtl:F,theme:W,delay:g,isRunning:u,isIn:Z,closeToast:j,hide:x,type:E,className:R,controlledProgress:D,progress:X||0})))},hv=(i,u=!1)=>({enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:u}),yv=Yg(hv("bounce",!0)),pv={position:"top-right",transition:yv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:i=>i.altKey&&i.code==="KeyT"};function gv(i){let u={...pv,...i},r=i.stacked,[c,d]=b.useState(!0),m=b.useRef(null),{getToastToRender:y,isToastActive:v,count:g}=lv(u),{className:p,style:E,rtl:x,containerId:j,hotKeys:M}=u;function U(q){let R=fl("Toastify__toast-container",`Toastify__toast-container--${q}`,{"Toastify__toast-container--rtl":x});return ma(p)?p({position:q,rtl:x,defaultClassName:R}):fl(R,Sc(p))}function L(){r&&(d(!0),se.play())}return iv(()=>{var q;if(r){let R=m.current.querySelectorAll('[data-in="true"]'),H=12,A=(q=u.position)==null?void 0:q.includes("top"),X=0,F=0;Array.from(R).reverse().forEach(($,V)=>{let Z=$;Z.classList.add("Toastify__toast--stacked"),V>0&&(Z.dataset.collapsed=`${c}`),Z.dataset.pos||(Z.dataset.pos=A?"top":"bot");let ne=X*(c?.2:1)+(c?0:H*V);Z.style.setProperty("--y",`${A?ne:ne*-1}px`),Z.style.setProperty("--g",`${H}`),Z.style.setProperty("--s",`${1-(c?F:0)}`),X+=Z.offsetHeight,F+=.025})}},[c,g,r]),b.useEffect(()=>{function q(R){var H;let A=m.current;M(R)&&((H=A.querySelector('[tabIndex="0"]'))==null||H.focus(),d(!1),se.pause()),R.key==="Escape"&&(document.activeElement===A||A!=null&&A.contains(document.activeElement))&&(d(!0),se.play())}return document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}},[M]),Re.createElement("section",{ref:m,className:"Toastify",id:j,onMouseEnter:()=>{r&&(d(!1),se.pause())},onMouseLeave:L,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":u["aria-label"]},y((q,R)=>{let H=R.length?{...E}:{...E,pointerEvents:"none"};return Re.createElement("div",{tabIndex:-1,className:U(q),"data-stacked":r,style:H,key:`c-${q}`},R.map(({content:A,props:X})=>Re.createElement(mv,{...X,stacked:r,collapseAll:L,isIn:v(X.toastId,X.containerId),key:`t-${X.key}`},A)))}))}const zh=b.createContext(void 0),vv=(i,u)=>`${i.name.split(" ")[0].toLowerCase()}_${u}`,xv=({children:i})=>{const[u,r]=b.useState([]),[c,d]=b.useState([]),[m,y]=b.useState(0),[v,g]=b.useState(!1),[p,E]=b.useState(null),[x,j]=b.useState(null),{isLogged:M,user:U,token:L}=Tt(),{table:q}=en();b.useEffect(()=>(at.onMessage(Q=>{r(W=>[...W,Q]),Q.type==="join"&&Q.username?(d(W=>Array.from(new Set([...W,Q.username]))),y(W=>W+1)):Q.type==="leave"&&Q.username&&(d(W=>W.filter(ae=>ae!==Q.username)),y(W=>Math.max(0,W-1)))}),at.onError(()=>{E("Error de conexión en el WebSocket."),g(!1)}),at.onClose(()=>{g(!1)}),at.onMention(Q=>{console.log("mencion",Q),Q===x&&se.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})}),()=>{at.disconnect()}),[]);const R=b.useCallback(async()=>{try{const Q=await at.getConnectedUsers(L),W=await at.getOnlineCount(L);d(Q),y(W)}catch(Q){console.error("Error refreshing users",Q)}},[L]),H=b.useCallback(()=>{try{E(null),console.log(U);const Q=at.connect(L);if(!Q){E("Error de conexión en el WebSocket."),console.log("connect fail",Q),g(!1);return}const W=vv(U,q);j(W),console.log("connect",Q),g(Q),R(),setTimeout(()=>{at.join(W)},500)}catch(Q){E(Q.message||"Error al conectar"),g(!1)}},[R,U]),A=b.useCallback(()=>{x&&v&&at.leave(x),console.log("Username",x),console.log("IsConnected",v),at.disconnect(),g(!1),r([]),j(null)},[x]),X=b.useCallback(Q=>{U&&at.sendMessage(x,Q)},[U,x]),F=b.useCallback(async Q=>{U&&at.sendAiMessage(x,Q)},[U,x]),$=b.useCallback(Q=>{at.join(Q),j(Q)},[]),V=b.useCallback(async()=>await at.getConnectedUsers(L),[L]),Z=b.useCallback(Q=>{at.mention(Q)},[]);b.useEffect(()=>{!M&&v&&A()},[M]);const ne=b.useMemo(()=>({username:x,messages:u,onlineUsers:c,onlineCount:m,isConnected:v,error:p,connectChat:H,disconnectChat:A,sendMessage:X,sendAiMessage:F,mentionUser:Z,joinRoom:$,refreshUsers:R,getUsers:V}),[x,u,c,Z,m,v,p,H,A,X,F,$,R,V]);return f.jsx(zh.Provider,{value:ne,children:i})},bv=()=>{const i=b.useContext(zh);if(i===void 0)throw new Error("useChat debe ser usado dentro de un ChatProvider");return i},eh=["text-red-600","text-green-600","text-blue-600","text-yellow-600","text-purple-600","text-pink-600","text-orange-600","text-cyan-600","text-sky-600","text-lime-600","text-emerald-600","text-teal-600","text-indigo-600"],Sv=i=>{const u=Math.abs(i.split("").reduce((r,c)=>r+c.charCodeAt(0),0))%eh.length;return eh[u]},Ev=({onBrowseMenu:i})=>{const{username:u,messages:r,sendMessage:c,sendAiMessage:d,connectChat:m,onlineCount:y,isConnected:v,getUsers:g,mentionUser:p}=bv(),{user:E}=Tt(),[x,j]=b.useState(""),[M,U]=b.useState(!1),[L,q]=b.useState(""),[R,H]=b.useState([]),A=b.useRef(null),X=b.useRef(null);b.useEffect(()=>{v||m()},[]),b.useEffect(()=>{A.current&&(A.current.scrollTop=A.current.scrollHeight)},[r]),b.useEffect(()=>{const Q=r[r.length-1];Q&&Q.type==="mentioned"&&Q.username===u&&se.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})},[r,u]),b.useEffect(()=>{M&&g().then(Q=>{Q.push("IAKlein"),Q=Q.filter(W=>W!==u),H(Q)})},[M,g]);const F=b.useMemo(()=>r.filter(Q=>!["mentioned","ping","pong"].includes(Q.type)).map((Q,W)=>{const ae=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let Ue=Q.username||"Unknown",Ce=Q.message||"",Be=!1,D=!1;switch(Q.type){case"join":Ue="system",Ce=`${Q.username} se ha conectado al chat`,Be=!0;break;case"leave":Ue="system",Ce=`${Q.username} se ha desconectado del chat`,Be=!0;break;case"ai_message":Ue="ai",D=!0;break}return{id:W,timestamp:ae,sender:Ue,text:Ce,isSystem:Be,isAi:D}}),[r]),$=Q=>{const W=Q.target.value;j(W);const ae=W.split(" ").pop();ae&&ae.startsWith("@")?(q(ae.slice(1)),U(!0)):U(!1)},V=Q=>{var ae;const W=x.split(" ");W.pop(),W.push(`@${Q} `),j(W.join(" ")),U(!1),(ae=X.current)==null||ae.focus()},Z=Q=>{if(Q.preventDefault(),!x.trim())return;c(x.trim());const W=x.match(/@(\w+)/g);console.log("menciones",W),W&&W.forEach(ae=>{const Ue=ae.substring(1);Ue==="IAKlein"?(d(x.trim()),console.log("enviar",x.trim())):Ue!==u&&(p(Ue),console.log("mencion",Ue))}),j(""),U(!1)},ne=R.filter(Q=>Q.toLowerCase().includes(L.toLowerCase()));return f.jsxs("section",{className:"absolute inset-0 bg-terminal-bg flex flex-col z-0",children:[f.jsx("div",{className:"absolute inset-0 scanlines z-10 opacity-30 pointer-events-none"}),f.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-[#1a1a1a] border-b border-[#333] z-20 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:`size-2 rounded-full ${v?"bg-green-500":"bg-red-500"} animate-pulse-fast`}),f.jsxs("h3",{className:"text-terminal-text tracking-widest text-xs uppercase font-bold",children:[v?"ONLINE":"OFFLINE"," (",y,")"]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:i,className:"text-terminal-text text-sm cursor-pointer hover:text-white transition-colors flex items-center gap-1 font-bold",children:[f.jsx("span",{className:"material-symbols-outlined text-base",children:"storefront"}),f.jsx("span",{children:"Browse Menu"})]}),f.jsx("span",{className:"text-[#666] text-xs font-mono",children:"v2.4.0"})]})]}),f.jsxs("div",{ref:A,className:"flex-1 overflow-y-auto p-4 space-y-3 font-mono text-sm z-0 relative pb-18",children:[F.map(Q=>f.jsx("div",{className:"flex gap-3 group",children:f.jsxs("div",{className:"flex-1 break-words",children:[f.jsxs("span",{className:"text-primary font-bold text-xs mr-2",children:["[",Q.timestamp,"]"]}),Q.isSystem?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-white font-bold mr-1",children:"<System>"}),f.jsx("span",{className:"text-gray-300",children:Q.text})]}):Q.isAi?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-terminal-text font-bold mr-1",children:"<@IAKlein>"}),f.jsx("span",{className:"text-white",children:Q.text})]}):f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:`${Sv(Q.sender)} font-bold mr-1`,children:["<",Q.sender,">"]}),f.jsx("span",{className:"text-white",children:Q.text.split(" ").map((W,ae)=>W.startsWith("@")?f.jsxs("span",{className:"text-yellow-400 font-bold",children:[W," "]},ae):W+" ")})]})]})},Q.id)),!v&&r.length>0&&f.jsx("div",{className:"text-red-500 font-bold text-xs mt-2",children:"> CONNECTION LOST. RECONNECTING..."})]}),M&&ne.length>0&&f.jsxs("div",{className:"absolute bottom-16 left-4 bg-[#0d0d0d] border border-[#333] w-48 max-h-40 overflow-y-auto z-30 shadow-lg",children:[f.jsx("div",{className:"text-xs text-gray-500 px-2 py-1 border-b border-[#333]",children:"SUGGESTIONS"}),ne.map(Q=>f.jsxs("button",{type:"button",onClick:()=>V(Q),className:"w-full text-left px-3 py-2 text-terminal-text hover:bg-[#222] hover:text-white text-sm font-mono transition-colors",children:["@",Q]},Q))]}),f.jsx("form",{className:"absolute bottom-0 left-0 right-0 p-2 bg-[#1a1a1a] z-20 shrink-0 pb-18",onSubmit:Z,children:f.jsxs("div",{className:"flex w-full items-center rounded bg-black border border-[#333] px-3 py-2",children:[f.jsx("span",{className:"text-primary font-bold mr-2",children:">"}),f.jsx("input",{ref:X,value:x,onChange:$,className:"flex-1 bg-transparent border-none text-white font-mono text-sm focus:ring-0 focus:outline-none placeholder:text-gray-600 p-0",placeholder:v?"Type command... use @ to mention":"Connecting...",autoFocus:!0,disabled:!v}),f.jsx("button",{type:"submit",className:`text-terminal-text hover:text-white transition-colors ${v?"":"opacity-50 cursor-not-allowed"}`,disabled:!v,children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"send"})})]})})]})},Mh=b.createContext(void 0),Hs=()=>{const i=b.useContext(Mh);if(!i)throw new Error("useDialog debe ser usado dentro de un DialogProvider");return i},_v=({children:i})=>{var M,U,L,q;const[u,r]=b.useState(!1),[c,d]=b.useState({type:"confirm",message:"",icon:""}),[m,y]=b.useState(""),v=b.useRef(()=>{}),g=b.useRef(null),p=b.useCallback((R,H,A)=>(d({type:"confirm",message:R,icon:H,options:A}),r(!0),new Promise(X=>{v.current=X})),[]),E=b.useCallback((R,H,A)=>(d({type:"prompt",message:R,icon:H,options:A}),y((A==null?void 0:A.defaultValue)||""),r(!0),setTimeout(()=>{var X;return(X=g.current)==null?void 0:X.focus()},50),new Promise(X=>{v.current=X})),[]),x=R=>{r(!1),c.type==="confirm"?v.current(R):v.current(R?m:null)},j=R=>{R.key==="Enter"&&x(!0),R.key==="Escape"&&x(!1)};return f.jsxs(Mh.Provider,{value:{confirm:p,prompt:E},children:[i,u&&f.jsxs("div",{"aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center px-4",role:"dialog",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:()=>x(!1)}),f.jsxs("div",{className:"relative bg-[#201512] rounded-2xl border border-white/10 shadow-2xl w-full max-w-xs transform transition-all p-6 overflow-hidden animate-in fade-in zoom-in duration-200",children:[f.jsx("div",{className:"flex justify-center mb-4",children:f.jsx("div",{className:"bg-[#a33f1e]/20 p-3 rounded-full",children:f.jsx("span",{className:"material-symbols-outlined text-[#a33f1e] text-3xl select-none",children:c.icon})})}),f.jsx("p",{className:"text-white text-lg font-bold text-center mb-2 font-display leading-tight",children:c.message}),c.type==="prompt"&&f.jsx("div",{className:"mb-6 mt-4",children:f.jsx("input",{ref:g,type:((M=c.options)==null?void 0:M.inputType)||"text",value:m,onChange:R=>y(R.target.value),onKeyDown:j,placeholder:(U=c.options)==null?void 0:U.placeholder,className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder-white/30 focus:outline-none focus:border-[#a33f1e] focus:ring-1 focus:ring-[#a33f1e] transition-all"})}),f.jsxs("div",{className:`grid grid-cols-2 gap-3 ${c.type==="confirm"?"mt-6":""}`,children:[f.jsx("button",{onClick:()=>x(!1),className:"flex items-center justify-center px-4 py-3 rounded-xl border border-white/20 text-white font-semibold text-sm hover:bg-white/5 transition-colors active:scale-95",children:((L=c.options)==null?void 0:L.cancelText)||"Cancelar"}),f.jsx("button",{onClick:()=>x(!0),className:"flex items-center justify-center px-4 py-3 rounded-xl bg-[#a33f1e] text-white font-semibold text-sm shadow-lg shadow-red-900/20 hover:bg-[#8f3322] transition-colors active:scale-95",children:((q=c.options)==null?void 0:q.confirmText)||(c.type==="prompt"?"Aceptar":"Sí")})]})]})]})]})};/**
  51. * react-router v7.12.0
  52. *
  53. * Copyright (c) Remix Software Inc.
  54. *
  55. * This source code is licensed under the MIT license found in the
  56. * LICENSE.md file in the root directory of this source tree.
  57. *
  58. * @license MIT
  59. */var th="popstate";function Tv(i={}){function u(c,d){let{pathname:m,search:y,hash:v}=c.location;return Nc("",{pathname:m,search:y,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:ai(d)}return jv(u,r,null,i)}function Le(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function kt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Nv(){return Math.random().toString(36).substring(2,10)}function ah(i,u){return{usr:i.state,key:i.key,idx:u}}function Nc(i,u,r=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?tn(u):u,state:r,key:u&&u.key||c||Nv()}}function ai({pathname:i="/",search:u="",hash:r=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function tn(i){let u={};if(i){let r=i.indexOf("#");r>=0&&(u.hash=i.substring(r),i=i.substring(0,r));let c=i.indexOf("?");c>=0&&(u.search=i.substring(c),i=i.substring(0,c)),i&&(u.pathname=i)}return u}function jv(i,u,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,v="POP",g=null,p=E();p==null&&(p=0,y.replaceState({...y.state,idx:p},""));function E(){return(y.state||{idx:null}).idx}function x(){v="POP";let q=E(),R=q==null?null:q-p;p=q,g&&g({action:v,location:L.location,delta:R})}function j(q,R){v="PUSH";let H=Nc(L.location,q,R);p=E()+1;let A=ah(H,p),X=L.createHref(H);try{y.pushState(A,"",X)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;d.location.assign(X)}m&&g&&g({action:v,location:L.location,delta:1})}function M(q,R){v="REPLACE";let H=Nc(L.location,q,R);p=E();let A=ah(H,p),X=L.createHref(H);y.replaceState(A,"",X),m&&g&&g({action:v,location:L.location,delta:0})}function U(q){return Av(q)}let L={get action(){return v},get location(){return i(d,y)},listen(q){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(th,x),g=q,()=>{d.removeEventListener(th,x),g=null}},createHref(q){return u(d,q)},createURL:U,encodeLocation(q){let R=U(q);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:j,replace:M,go(q){return y.go(q)}};return L}function Av(i,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(r,"No window.location.(origin|href) available to create URL");let c=typeof i=="string"?i:ai(i);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Oh(i,u,r="/"){return Cv(i,u,r,!1)}function Cv(i,u,r,c){let d=typeof u=="string"?tn(u):u,m=ha(d.pathname||"/",r);if(m==null)return null;let y=Rh(i);wv(y);let v=null;for(let g=0;v==null&&g<y.length;++g){let p=qv(m);v=Hv(y[g],p,c)}return v}function Rh(i,u=[],r=[],c="",d=!1){let m=(y,v,g=d,p)=>{let E={relativePath:p===void 0?y.path||"":p,caseSensitive:y.caseSensitive===!0,childrenIndex:v,route:y};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(c)&&g)return;Le(E.relativePath.startsWith(c),`Absolute route path "${E.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(c.length)}let x=oa([c,E.relativePath]),j=r.concat(E);y.children&&y.children.length>0&&(Le(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Rh(y.children,u,j,x,g)),!(y.path==null&&!y.index)&&u.push({path:x,score:Bv(x,y.index),routesMeta:j})};return i.forEach((y,v)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,v);else for(let p of Dh(y.path))m(y,v,!0,p)}),u}function Dh(i){let u=i.split("/");if(u.length===0)return[];let[r,...c]=u,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=Dh(c.join("/")),v=[];return v.push(...y.map(g=>g===""?m:[m,g].join("/"))),d&&v.push(...y),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function wv(i){i.sort((u,r)=>u.score!==r.score?r.score-u.score:Lv(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var zv=/^:[\w-]+$/,Mv=3,Ov=2,Rv=1,Dv=10,Uv=-2,lh=i=>i==="*";function Bv(i,u){let r=i.split("/"),c=r.length;return r.some(lh)&&(c+=Uv),u&&(c+=Ov),r.filter(d=>!lh(d)).reduce((d,m)=>d+(zv.test(m)?Mv:m===""?Rv:Dv),c)}function Lv(i,u){return i.length===u.length&&i.slice(0,-1).every((c,d)=>c===u[d])?i[i.length-1]-u[u.length-1]:0}function Hv(i,u,r=!1){let{routesMeta:c}=i,d={},m="/",y=[];for(let v=0;v<c.length;++v){let g=c[v],p=v===c.length-1,E=m==="/"?u:u.slice(m.length)||"/",x=Ds({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},E),j=g.route;if(!x&&p&&r&&!c[c.length-1].route.index&&(x=Ds({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!x)return null;Object.assign(d,x.params),y.push({params:d,pathname:oa([m,x.pathname]),pathnameBase:Qv(oa([m,x.pathnameBase])),route:j}),x.pathnameBase!=="/"&&(m=oa([m,x.pathnameBase]))}return y}function Ds(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,c]=kv(i.path,i.caseSensitive,i.end),d=u.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:c.reduce((p,{paramName:E,isOptional:x},j)=>{if(E==="*"){let U=v[j]||"";y=m.slice(0,m.length-U.length).replace(/(.)\/+$/,"$1")}const M=v[j];return x&&!M?p[E]=void 0:p[E]=(M||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:y,pattern:i}}function kv(i,u=!1,r=!0){kt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,v,g)=>(c.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(c.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),c]}function qv(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return kt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function ha(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=i.charAt(r);return c&&c!=="/"?null:i.slice(r)||"/"}var Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yv=i=>Uh.test(i);function Gv(i,u="/"){let{pathname:r,search:c="",hash:d=""}=typeof i=="string"?tn(i):i,m;if(r)if(Yv(r))m=r;else{if(r.includes("//")){let y=r;r=r.replace(/\/\/+/g,"/"),kt(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${r}`)}r.startsWith("/")?m=nh(r.substring(1),"/"):m=nh(r,u)}else m=u;return{pathname:m,search:Vv(c),hash:Zv(d)}}function nh(i,u){let r=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function dc(i,u,r,c){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xv(i){return i.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function Bh(i){let u=Xv(i);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function Lh(i,u,r,c=!1){let d;typeof i=="string"?d=tn(i):(d={...i},Le(!d.pathname||!d.pathname.includes("?"),dc("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),dc("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),dc("#","search","hash",d)));let m=i===""||d.pathname==="",y=m?"/":d.pathname,v;if(y==null)v=r;else{let x=u.length-1;if(!c&&y.startsWith("..")){let j=y.split("/");for(;j[0]==="..";)j.shift(),x-=1;d.pathname=j.join("/")}v=x>=0?u[x]:"/"}let g=Gv(d,v),p=y&&y!=="/"&&y.endsWith("/"),E=(m||y===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||E)&&(g.pathname+="/"),g}var oa=i=>i.join("/").replace(/\/\/+/g,"/"),Qv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Vv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zv=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Kv=class{constructor(i,u,r,c=!1){this.status=i,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Jv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function $v(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Hh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kh(i,u){let r=i;if(typeof r!="string"||!Uh.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Hh)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),v=ha(y.pathname,u);y.origin===m.origin&&v!=null?r=v+y.search+y.hash:d=!0}catch{kt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qh=["POST","PUT","PATCH","DELETE"];new Set(qh);var Fv=["GET",...qh];new Set(Fv);var an=b.createContext(null);an.displayName="DataRouter";var ks=b.createContext(null);ks.displayName="DataRouterState";var Wv=b.createContext(!1),Yh=b.createContext({isTransitioning:!1});Yh.displayName="ViewTransition";var Iv=b.createContext(new Map);Iv.displayName="Fetchers";var Pv=b.createContext(null);Pv.displayName="Await";var Ut=b.createContext(null);Ut.displayName="Navigation";var ui=b.createContext(null);ui.displayName="Location";var ya=b.createContext({outlet:null,matches:[],isDataRoute:!1});ya.displayName="Route";var wc=b.createContext(null);wc.displayName="RouteError";var Gh="REACT_ROUTER_ERROR",ex="REDIRECT",tx="ROUTE_ERROR_RESPONSE";function ax(i){if(i.startsWith(`${Gh}:${ex}:{`))try{let u=JSON.parse(i.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function lx(i){if(i.startsWith(`${Gh}:${tx}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Kv(u.status,u.statusText,u.data)}catch{}}function nx(i,{relative:u}={}){Le(ri(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=b.useContext(Ut),{hash:d,pathname:m,search:y}=ci(i,{relative:u}),v=m;return r!=="/"&&(v=m==="/"?r:oa([r,m])),c.createHref({pathname:v,search:y,hash:d})}function ri(){return b.useContext(ui)!=null}function hl(){return Le(ri(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(ui).location}var Xh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qh(i){b.useContext(Ut).static||b.useLayoutEffect(i)}function ln(){let{isDataRoute:i}=b.useContext(ya);return i?gx():ix()}function ix(){Le(ri(),"useNavigate() may be used only in the context of a <Router> component.");let i=b.useContext(an),{basename:u,navigator:r}=b.useContext(Ut),{matches:c}=b.useContext(ya),{pathname:d}=hl(),m=JSON.stringify(Bh(c)),y=b.useRef(!1);return Qh(()=>{y.current=!0}),b.useCallback((g,p={})=>{if(kt(y.current,Xh),!y.current)return;if(typeof g=="number"){r.go(g);return}let E=Lh(g,JSON.parse(m),d,p.relative==="path");i==null&&u!=="/"&&(E.pathname=E.pathname==="/"?u:oa([u,E.pathname])),(p.replace?r.replace:r.push)(E,p.state,p)},[u,r,m,d,i])}b.createContext(null);function ci(i,{relative:u}={}){let{matches:r}=b.useContext(ya),{pathname:c}=hl(),d=JSON.stringify(Bh(r));return b.useMemo(()=>Lh(i,JSON.parse(d),c,u==="path"),[i,d,c,u])}function sx(i,u){return Vh(i,u)}function Vh(i,u,r,c,d){var H;Le(ri(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=b.useContext(Ut),{matches:y}=b.useContext(ya),v=y[y.length-1],g=v?v.params:{},p=v?v.pathname:"/",E=v?v.pathnameBase:"/",x=v&&v.route;{let A=x&&x.path||"";Kh(p,!x||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
  60. Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let j=hl(),M;if(u){let A=typeof u=="string"?tn(u):u;Le(E==="/"||((H=A.pathname)==null?void 0:H.startsWith(E)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${E}" but pathname "${A.pathname}" was given in the \`location\` prop.`),M=A}else M=j;let U=M.pathname||"/",L=U;if(E!=="/"){let A=E.replace(/^\//,"").split("/");L="/"+U.replace(/^\//,"").split("/").slice(A.length).join("/")}let q=Oh(i,{pathname:L});kt(x||q!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),kt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=fx(q&&q.map(A=>Object.assign({},A,{params:Object.assign({},g,A.params),pathname:oa([E,m.encodeLocation?m.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?E:oa([E,m.encodeLocation?m.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),y,r,c,d);return u&&R?b.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},R):R}function ux(){let i=px(),u=Jv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:m},"ErrorBoundary")," or"," ",b.createElement("code",{style:m},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},u),r?b.createElement("pre",{style:d},r):null,y)}var rx=b.createElement(ux,null),Zh=class extends b.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=lx(i.digest);r&&(i=r)}let u=i!==void 0?b.createElement(ya.Provider,{value:this.props.routeContext},b.createElement(wc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?b.createElement(cx,{error:i},u):u}};Zh.contextType=Wv;var mc=new WeakMap;function cx({children:i,error:u}){let{basename:r}=b.useContext(Ut);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=ax(u.digest);if(c){let d=mc.get(u);if(d)throw d;let m=kh(c.location,r);if(Hh&&!mc.get(u))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw mc.set(u,y),y}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function ox({routeContext:i,match:u,children:r}){let c=b.useContext(an);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),b.createElement(ya.Provider,{value:i},r)}function fx(i,u=[],r=null,c=null,d=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,y=r==null?void 0:r.errors;if(y!=null){let E=m.findIndex(x=>x.route.id&&(y==null?void 0:y[x.route.id])!==void 0);Le(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,E+1))}let v=!1,g=-1;if(r)for(let E=0;E<m.length;E++){let x=m[E];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=E),x.route.id){let{loaderData:j,errors:M}=r,U=x.route.loader&&!j.hasOwnProperty(x.route.id)&&(!M||M[x.route.id]===void 0);if(x.route.lazy||U){v=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let p=r&&c?(E,x)=>{var j,M;c(E,{location:r.location,params:((M=(j=r.matches)==null?void 0:j[0])==null?void 0:M.params)??{},unstable_pattern:$v(r.matches),errorInfo:x})}:void 0;return m.reduceRight((E,x,j)=>{let M,U=!1,L=null,q=null;r&&(M=y&&x.route.id?y[x.route.id]:void 0,L=x.route.errorElement||rx,v&&(g<0&&j===0?(Kh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,q=null):g===j&&(U=!0,q=x.route.hydrateFallbackElement||null)));let R=u.concat(m.slice(0,j+1)),H=()=>{let A;return M?A=L:U?A=q:x.route.Component?A=b.createElement(x.route.Component,null):x.route.element?A=x.route.element:A=E,b.createElement(ox,{match:x,routeContext:{outlet:E,matches:R,isDataRoute:r!=null},children:A})};return r&&(x.route.ErrorBoundary||x.route.errorElement||j===0)?b.createElement(Zh,{location:r.location,revalidation:r.revalidation,component:L,error:M,children:H(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):H()},null)}function zc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dx(i){let u=b.useContext(an);return Le(u,zc(i)),u}function mx(i){let u=b.useContext(ks);return Le(u,zc(i)),u}function hx(i){let u=b.useContext(ya);return Le(u,zc(i)),u}function Mc(i){let u=hx(i),r=u.matches[u.matches.length-1];return Le(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function yx(){return Mc("useRouteId")}function px(){var c;let i=b.useContext(wc),u=mx("useRouteError"),r=Mc("useRouteError");return i!==void 0?i:(c=u.errors)==null?void 0:c[r]}function gx(){let{router:i}=dx("useNavigate"),u=Mc("useNavigate"),r=b.useRef(!1);return Qh(()=>{r.current=!0}),b.useCallback(async(d,m={})=>{kt(r.current,Xh),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:u,...m}))},[i,u])}var ih={};function Kh(i,u,r){!u&&!ih[i]&&(ih[i]=!0,kt(!1,r))}b.memo(vx);function vx({routes:i,future:u,state:r,onError:c}){return Vh(i,void 0,r,c,u)}function Ya(i){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function xx({basename:i="/",children:u=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){Le(!ri(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=i.replace(/^\/*/,"/"),g=b.useMemo(()=>({basename:v,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[v,d,m,y]);typeof r=="string"&&(r=tn(r));let{pathname:p="/",search:E="",hash:x="",state:j=null,key:M="default"}=r,U=b.useMemo(()=>{let L=ha(p,v);return L==null?null:{location:{pathname:L,search:E,hash:x,state:j,key:M},navigationType:c}},[v,p,E,x,j,M,c]);return kt(U!=null,`<Router basename="${v}"> is not able to match the URL "${p}${E}${x}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:b.createElement(Ut.Provider,{value:g},b.createElement(ui.Provider,{children:u,value:U}))}function bx({children:i,location:u}){return sx(jc(i),u)}function jc(i,u=[]){let r=[];return b.Children.forEach(i,(c,d)=>{if(!b.isValidElement(c))return;let m=[...u,d];if(c.type===b.Fragment){r.push.apply(r,jc(c.props.children,m));return}Le(c.type===Ya,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=jc(c.props.children,m)),r.push(y)}),r}var zs="get",Ms="application/x-www-form-urlencoded";function qs(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sx(i){return qs(i)&&i.tagName.toLowerCase()==="button"}function Ex(i){return qs(i)&&i.tagName.toLowerCase()==="form"}function _x(i){return qs(i)&&i.tagName.toLowerCase()==="input"}function Tx(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Nx(i,u){return i.button===0&&(!u||u==="_self")&&!Tx(i)}var ws=null;function jx(){if(ws===null)try{new FormData(document.createElement("form"),0),ws=!1}catch{ws=!0}return ws}var Ax=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hc(i){return i!=null&&!Ax.has(i)?(kt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):i}function Cx(i,u){let r,c,d,m,y;if(Ex(i)){let v=i.getAttribute("action");c=v?ha(v,u):null,r=i.getAttribute("method")||zs,d=hc(i.getAttribute("enctype"))||Ms,m=new FormData(i)}else if(Sx(i)||_x(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||v.getAttribute("action");if(c=g?ha(g,u):null,r=i.getAttribute("formmethod")||v.getAttribute("method")||zs,d=hc(i.getAttribute("formenctype"))||hc(v.getAttribute("enctype"))||Ms,m=new FormData(v,i),!jx()){let{name:p,type:E,value:x}=i;if(E==="image"){let j=p?`${p}.`:"";m.append(`${j}x`,"0"),m.append(`${j}y`,"0")}else p&&m.append(p,x)}}else{if(qs(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zs,c=null,d=Ms,y=i}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Oc(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function wx(i,u,r,c){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:u&&ha(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function zx(i,u){if(i.id in u)return u[i.id];try{let r=await import(i.module);return u[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mx(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Ox(i,u,r){let c=await Promise.all(i.map(async d=>{let m=u.routes[d.route.id];if(m){let y=await zx(m,r);return y.links?y.links():[]}return[]}));return Bx(c.flat(1).filter(Mx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function sh(i,u,r,c,d,m){let y=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,v=(g,p)=>{var E;return r[p].pathname!==g.pathname||((E=r[p].route.path)==null?void 0:E.endsWith("*"))&&r[p].params["*"]!==g.params["*"]};return m==="assets"?u.filter((g,p)=>y(g,p)||v(g,p)):m==="data"?u.filter((g,p)=>{var x;let E=c.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(y(g,p)||v(g,p))return!0;if(g.route.shouldRevalidate){let j=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function Rx(i,u,{includeHydrateFallback:r}={}){return Dx(i.map(c=>{let d=u.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Dx(i){return[...new Set(i)]}function Ux(i){let u={},r=Object.keys(i).sort();for(let c of r)u[c]=i[c];return u}function Bx(i,u){let r=new Set;return new Set(u),i.reduce((c,d)=>{let m=JSON.stringify(Ux(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function Jh(){let i=b.useContext(an);return Oc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Lx(){let i=b.useContext(ks);return Oc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Rc=b.createContext(void 0);Rc.displayName="FrameworkContext";function $h(){let i=b.useContext(Rc);return Oc(i,"You must render this element inside a <HydratedRouter> element"),i}function Hx(i,u){let r=b.useContext(Rc),[c,d]=b.useState(!1),[m,y]=b.useState(!1),{onFocus:v,onBlur:g,onMouseEnter:p,onMouseLeave:E,onTouchStart:x}=u,j=b.useRef(null);b.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let L=R=>{R.forEach(H=>{y(H.isIntersecting)})},q=new IntersectionObserver(L,{threshold:.5});return j.current&&q.observe(j.current),()=>{q.disconnect()}}},[i]),b.useEffect(()=>{if(c){let L=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(L)}}},[c]);let M=()=>{d(!0)},U=()=>{d(!1),y(!1)};return r?i!=="intent"?[m,j,{}]:[m,j,{onFocus:ei(v,M),onBlur:ei(g,U),onMouseEnter:ei(p,M),onMouseLeave:ei(E,U),onTouchStart:ei(x,M)}]:[!1,j,{}]}function ei(i,u){return r=>{i&&i(r),r.defaultPrevented||u(r)}}function kx({page:i,...u}){let{router:r}=Jh(),c=b.useMemo(()=>Oh(r.routes,i,r.basename),[r.routes,i,r.basename]);return c?b.createElement(Yx,{page:i,matches:c,...u}):null}function qx(i){let{manifest:u,routeModules:r}=$h(),[c,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Ox(i,u,r).then(y=>{m||d(y)}),()=>{m=!0}},[i,u,r]),c}function Yx({page:i,matches:u,...r}){let c=hl(),{future:d,manifest:m,routeModules:y}=$h(),{basename:v}=Jh(),{loaderData:g,matches:p}=Lx(),E=b.useMemo(()=>sh(i,u,p,m,c,"data"),[i,u,p,m,c]),x=b.useMemo(()=>sh(i,u,p,m,c,"assets"),[i,u,p,m,c]),j=b.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let L=new Set,q=!1;if(u.forEach(H=>{var X;let A=m.routes[H.route.id];!A||!A.hasLoader||(!E.some(F=>F.route.id===H.route.id)&&H.route.id in g&&((X=y[H.route.id])!=null&&X.shouldRevalidate)||A.hasClientLoader?q=!0:L.add(H.route.id))}),L.size===0)return[];let R=wx(i,v,d.unstable_trailingSlashAwareDataRequests,"data");return q&&L.size>0&&R.searchParams.set("_routes",u.filter(H=>L.has(H.route.id)).map(H=>H.route.id).join(",")),[R.pathname+R.search]},[v,d.unstable_trailingSlashAwareDataRequests,g,c,m,E,u,i,y]),M=b.useMemo(()=>Rx(x,m),[x,m]),U=qx(x);return b.createElement(b.Fragment,null,j.map(L=>b.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...r})),M.map(L=>b.createElement("link",{key:L,rel:"modulepreload",href:L,...r})),U.map(({key:L,link:q})=>b.createElement("link",{key:L,nonce:r.nonce,...q})))}function Gx(...i){return u=>{i.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var Xx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xx&&(window.__reactRouterVersion="7.12.0")}catch{}function Qx({basename:i,children:u,unstable_useTransitions:r,window:c}){let d=b.useRef();d.current==null&&(d.current=Tv({window:c,v5Compat:!0}));let m=d.current,[y,v]=b.useState({action:m.action,location:m.location}),g=b.useCallback(p=>{r===!1?v(p):b.startTransition(()=>v(p))},[r]);return b.useLayoutEffect(()=>m.listen(g),[m,g]),b.createElement(xx,{basename:i,children:u,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var Fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fa=b.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:v,target:g,to:p,preventScrollReset:E,viewTransition:x,unstable_defaultShouldRevalidate:j,...M},U){let{basename:L,unstable_useTransitions:q}=b.useContext(Ut),R=typeof p=="string"&&Fh.test(p),H=kh(p,L);p=H.to;let A=nx(p,{relative:d}),[X,F,$]=Hx(c,M),V=Jx(p,{replace:y,state:v,target:g,preventScrollReset:E,relative:d,viewTransition:x,unstable_defaultShouldRevalidate:j,unstable_useTransitions:q});function Z(Q){u&&u(Q),Q.defaultPrevented||V(Q)}let ne=b.createElement("a",{...M,...$,href:H.absoluteURL||A,onClick:H.isExternal||m?u:Z,ref:Gx(U,F),target:g,"data-discover":!R&&r==="render"?"true":void 0});return X&&!R?b.createElement(b.Fragment,null,ne,b.createElement(kx,{page:A})):ne});fa.displayName="Link";var Vx=b.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:v,children:g,...p},E){let x=ci(y,{relative:p.relative}),j=hl(),M=b.useContext(ks),{navigator:U,basename:L}=b.useContext(Ut),q=M!=null&&Px(x)&&v===!0,R=U.encodeLocation?U.encodeLocation(x).pathname:x.pathname,H=j.pathname,A=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(H=H.toLowerCase(),A=A?A.toLowerCase():null,R=R.toLowerCase()),A&&L&&(A=ha(A,L)||A);const X=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let F=H===R||!d&&H.startsWith(R)&&H.charAt(X)==="/",$=A!=null&&(A===R||!d&&A.startsWith(R)&&A.charAt(R.length)==="/"),V={isActive:F,isPending:$,isTransitioning:q},Z=F?u:void 0,ne;typeof c=="function"?ne=c(V):ne=[c,F?"active":null,$?"pending":null,q?"transitioning":null].filter(Boolean).join(" ");let Q=typeof m=="function"?m(V):m;return b.createElement(fa,{...p,"aria-current":Z,className:ne,ref:E,style:Q,to:y,viewTransition:v},typeof g=="function"?g(V):g)});Vx.displayName="NavLink";var Zx=b.forwardRef(({discover:i="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:d,state:m,method:y=zs,action:v,onSubmit:g,relative:p,preventScrollReset:E,viewTransition:x,unstable_defaultShouldRevalidate:j,...M},U)=>{let{unstable_useTransitions:L}=b.useContext(Ut),q=Wx(),R=Ix(v,{relative:p}),H=y.toLowerCase()==="get"?"get":"post",A=typeof v=="string"&&Fh.test(v),X=F=>{if(g&&g(F),F.defaultPrevented)return;F.preventDefault();let $=F.nativeEvent.submitter,V=($==null?void 0:$.getAttribute("formmethod"))||y,Z=()=>q($||F.currentTarget,{fetcherKey:u,method:V,navigate:r,replace:d,state:m,relative:p,preventScrollReset:E,viewTransition:x,unstable_defaultShouldRevalidate:j});L&&r!==!1?b.startTransition(()=>Z()):Z()};return b.createElement("form",{ref:U,method:H,action:R,onSubmit:c?g:X,...M,"data-discover":!A&&i==="render"?"true":void 0})});Zx.displayName="Form";function Kx(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wh(i){let u=b.useContext(an);return Le(u,Kx(i)),u}function Jx(i,{target:u,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:v,unstable_useTransitions:g}={}){let p=ln(),E=hl(),x=ci(i,{relative:m});return b.useCallback(j=>{if(Nx(j,u)){j.preventDefault();let M=r!==void 0?r:ai(E)===ai(x),U=()=>p(i,{replace:M,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:v});g?b.startTransition(()=>U()):U()}},[E,p,x,r,c,u,i,d,m,y,v,g])}var $x=0,Fx=()=>`__${String(++$x)}__`;function Wx(){let{router:i}=Wh("useSubmit"),{basename:u}=b.useContext(Ut),r=yx(),c=i.fetch,d=i.navigate;return b.useCallback(async(m,y={})=>{let{action:v,method:g,encType:p,formData:E,body:x}=Cx(m,u);if(y.navigate===!1){let j=y.fetcherKey||Fx();await c(j,r,y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:E,body:x,formMethod:y.method||g,formEncType:y.encType||p,flushSync:y.flushSync})}else await d(y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:E,body:x,formMethod:y.method||g,formEncType:y.encType||p,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,u,r])}function Ix(i,{relative:u}={}){let{basename:r}=b.useContext(Ut),c=b.useContext(ya);Le(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ci(i||".",{relative:u})},y=hl();if(i==null){m.search=y.search;let v=new URLSearchParams(m.search),g=v.getAll("index");if(g.some(E=>E==="")){v.delete("index"),g.filter(x=>x).forEach(x=>v.append("index",x));let E=v.toString();m.search=E?`?${E}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:oa([r,m.pathname])),ai(m)}function Px(i,{relative:u}={}){let r=b.useContext(Yh);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Wh("useViewTransitionState"),d=ci(i,{relative:u});if(!r.isTransitioning)return!1;let m=ha(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=ha(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Ds(d.pathname,y)!=null||Ds(d.pathname,m)!=null}const eb=({icon:i,title:u,subtitle:r,type:c,onClick:d,to:m,needLogin:y,inDevelopment:v})=>{const g=ln(),{isLogged:p}=Tt(),E=()=>{if(v){g("/coming-soon");return}if(y&&!p){se("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}c===0?d&&d():c===1&&m&&g(m)};return f.jsxs("button",{onClick:E,className:"group flex items-center gap-4 p-4 rounded-xl hover:bg-white/5 transition-colors active:bg-white/10 w-full text-left",children:[f.jsx("div",{className:"h-10 w-10 rounded-full bg-surface-dark flex items-center justify-center border border-white/5 group-hover:border-primary/50 group-hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 group-hover:text-primary",children:i})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-base font-bold text-gray-100",children:u}),f.jsx("span",{className:"text-xs text-gray-500",children:r})]})]})},tb=({isOpen:i,onClose:u})=>{const[r,c]=b.useState(!1),[d,m]=b.useState(!1),{isLogged:y,user:v,setIsLoggedIn:g}=Tt(),{table:p}=en(),{confirm:E}=Hs(),{setIsLoading:x}=ni(),j=async()=>{if(!await E("¿Seguro que quieres pedir la cuenta?","receipt_long"))return;m(!1),x(!0,"Llamando a tu garzón...");const L=await xh(y,p);L.success?(x(!1),se("La factura ha sido impresa correctamente",{type:"success",autoClose:2e3})):(x(!1),alert(L.message))};b.useEffect(()=>{if(i){c(!0);const U=setTimeout(()=>m(!0),10);return()=>clearTimeout(U)}else{m(!1);const U=setTimeout(()=>c(!1),300);return()=>clearTimeout(U)}},[i]);const M=()=>{g(!1),vh("")};return r?f.jsxs("div",{className:"fixed inset-0 z-50 flex h-full w-full",children:[f.jsx("div",{className:`absolute inset-0 bg-[#0f0a08]/60 backdrop-blur-sm transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`,onClick:u}),f.jsxs("div",{className:`relative z-50 h-full w-[85%] max-w-85 bg-background-dark text-white shadow-2xl rounded-r-3xl flex flex-col border-r border-white/5 transform transition-transform duration-300 ease-out ${d?"translate-x-0":"-translate-x-full"}`,children:[f.jsxs("div",{className:"px-6 pt-12 pb-6 border-b border-white/5 flex items-center justify-between shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"h-12 w-12 rounded-full overflow-hidden border-2 border-gray-600/50 shadow-lg shadow-primary/20 bg-surface-dark flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-gray-400 text-3xl",children:"account_circle"})}),y&&f.jsx("div",{className:"absolute bottom-0 right-0 h-3 w-3 bg-green-500 border-2 border-background-dark rounded-full"})]}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:`${y?"text-primary":"text-gray-400 "} text-xs font-medium tracking-wider uppercase`,children:y?"En Linea":"ESTADO: DESCONECTADO"}),f.jsx("span",{className:"text-xl font-bold leading-tight",children:y?`Hola, ${v==null?void 0:v.name}`:"Bienvenido"})]})]}),f.jsx("button",{onClick:u,className:"text-gray-400 hover:text-white p-2 rounded-full hover:bg-white/10 transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"close"})})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto py-8 px-4 flex flex-col gap-6 scrollbar-hide",children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:y?"Sesión":"Acceso"}),y?f.jsx("button",{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",onClick:M,children:" Cerrar Sesión"}):f.jsxs(f.Fragment,{children:[f.jsxs(fa,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",to:"/login",children:[f.jsx("span",{className:"material-symbols-outlined",children:"login"}),f.jsx("span",{children:"Iniciar Sesión"})]}),f.jsxs(fa,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl border-2 border-primary text-primary font-bold active:scale-[0.98] transition-all",to:"/register",children:[f.jsx("span",{className:"material-symbols-outlined",children:"person_add"}),f.jsx("span",{children:"Registrarse"})]})]})]}),f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:"Acciones Rápidas"}),f.jsx("button",{className:"group relative w-full overflow-hidden rounded-2xl bg-[#a33f1e] p-1 shadow-[0_8px_20px_-6px_rgba(163,63,30,0.5)] transition-all active:scale-[0.97]",onClick:j,children:f.jsxs("div",{className:"relative w-full h-full bg-[#a33f1e] rounded-[0.9rem] border-t border-white/20 border-b overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-linear-to-br from-white/10 via-transparent to-black/10 pointer-events-none"}),f.jsxs("div",{className:"relative z-10 flex items-center gap-5 p-5",children:[f.jsx("div",{className:"h-14 w-14 rounded-xl bg-black/20 backdrop-blur-sm border border-white/10 flex items-center justify-center shadow-inner text-[#ffdac1]",children:f.jsx("span",{className:"material-symbols-outlined text-3xl drop-shadow-sm",children:"receipt_long"})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-xl font-bold leading-none text-white tracking-tight drop-shadow-md",children:"Solicitar Cuenta"}),f.jsx("span",{className:"text-xs text-white/80 font-medium mt-1.5 tracking-wide",children:"Ver desglose y pagar"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-white/60 group-hover:text-white group-hover:translate-x-1 transition-all text-2xl",children:"arrow_forward"})]})]})}),f.jsxs(fa,{className:"group relative flex items-center gap-4 p-4 rounded-xl bg-[#252525]/40 backdrop-blur-md border border-white/5 hover:bg-white/5 hover:border-white/10 transition-all active:bg-white/10",to:"/summary",children:[f.jsx("div",{className:"h-10 w-10 rounded-lg bg-surface-dark/80 flex items-center justify-center border border-white/5 shadow-sm",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 text-[1.35rem]",children:"list_alt"})}),f.jsxs("div",{className:"flex flex-col z-10",children:[f.jsx("span",{className:"text-[0.95rem] font-bold text-gray-100 tracking-tight",children:"Consumo Actual"}),f.jsx("span",{className:"text-[11px] text-gray-500 font-medium tracking-wide uppercase",children:"Pedidos de la mesa"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-gray-600 group-hover:text-gray-400 transition-colors text-xl",children:"chevron_right"})]})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest mt-2",children:"Navegación"}),[{icon:"checkroom",title:"Indumentaria",subtitle:"Merch oficial IRC",type:1,to:"/coming-soon"},{icon:"calendar_month",title:"Coordinar Banquetes",subtitle:"Reservas especiales",type:1,to:"/coming-soon"},{icon:"reviews",title:"Evaluar Servicio",subtitle:"Tu opinión nos ayuda",type:1,to:"/coming-soon"}].map(U=>f.jsx(eb,{...U},U.title))]})]}),f.jsxs("div",{className:"mt-auto px-6 py-8 border-t border-white/5 bg-[#1a100c]",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2 opacity-60",children:[f.jsx("span",{className:"material-symbols-outlined text-primary text-lg",children:"local_bar"}),f.jsx("span",{className:"font-bold text-sm tracking-widest uppercase",children:"Camilo Klein IRC"})]}),f.jsx("p",{className:"text-xs text-gray-600 font-mono",children:"v2.0.0 • Build 326"})]})]})]}):null},ab=99887766,lb=836295738,nb=i=>(parseInt(i.split("").reverse().join(""),12)^lb)-ab;function Ih(){let u=new URLSearchParams(window.location.search).get("table");return u||(u=sessionStorage.getItem("table")),u?(sessionStorage.setItem("table",u),Number(nb(u))):-1}const ib=({isOpen:i,onClose:u,items:r})=>i?f.jsxs("div",{className:"fixed inset-0 z-60 flex items-center justify-center px-4",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:u}),f.jsxs("div",{className:"relative w-full max-w-sm overflow-hidden rounded-2xl bg-[#201512] border border-white/10 shadow-2xl transition-all",children:[f.jsxs("div",{className:"p-6 pb-2",children:[f.jsx("div",{className:"flex items-center justify-center mb-5",children:f.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-orange-500/10 ring-1 ring-orange-500/20",children:f.jsx("span",{className:"material-symbols-outlined text-orange-400",style:{fontSize:"24px"},children:"notifications_active"})})}),f.jsxs("div",{className:"text-center",children:[f.jsx("h3",{className:"text-xl font-bold leading-6 text-white",id:"modal-title",children:"Actualizacion de Productos"}),f.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"El precio y disponibilidad de los productos en tu carrito han cambiado."})]})]}),f.jsx("div",{className:"px-5 py-4 space-y-3 max-h-[40vh] overflow-y-auto no-scrollbar",children:r.map(c=>f.jsx(sb,{item:c},c.product.id))}),f.jsx("div",{className:"bg-[#201512] px-5 pb-6 pt-2",children:f.jsx("button",{type:"button",onClick:u,className:"inline-flex w-full justify-center rounded-xl bg-[#a33f1e] px-3 py-3.5 text-sm font-bold text-white shadow-sm hover:bg-[#8f3619] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#a33f1e] transition-colors",children:"Entendido"})})]})]}):null,sb=({item:i})=>{const u=i.newPrice>i.oldPrice,r=u?"text-red-500":"text-green-500",c=u?"arrow_upward":"arrow_downward";return i.isAvailable?f.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsxs("div",{className:"mt-1 flex items-baseline gap-2",children:[f.jsxs("span",{className:"text-xs text-gray-500 line-through",children:["$",Xa(i.oldPrice)]}),f.jsxs("span",{className:`flex items-center text-sm font-bold ${r}`,children:["$",Xa(i.newPrice),f.jsx("span",{className:"material-symbols-outlined ml-0.5",style:{fontSize:"16px"},children:c})]})]})]})]}):f.jsxs("div",{className:"relative flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10 opacity-60 grayscale",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsx("span",{className:"mt-1 inline-flex items-center rounded bg-gray-700/50 px-1.5 py-0.5 text-[10px] font-medium text-gray-200 ring-1 ring-inset ring-gray-500/20",children:"No disponible por ahora"})]})]})},ub=({isOpen:i,onClose:u,cartItems:r,setCartItems:c,onUpdateQuantity:d,onClear:m})=>{const[y,v]=b.useState(!1),{user:g,isLogged:p,setPromoPercent:E}=Tt(),[x,j]=b.useState([]),{table:M,setTable:U,updateProduct:L,removeProduct:q}=en(),{setIsLoading:R}=ni(),H=ln(),{confirm:A,prompt:X}=Hs(),F=b.useCallback(async Z=>{const ne=await X("Notas del pedido","comment",{placeholder:"Sin hielo por favor",defaultValue:Z.comment});!ne&&ne!==""||c(r.map(Q=>Q.id===Z.id?{...Q,comment:ne}:Q))},[r]),$=async Z=>{if(!await A("¿Seguro que quieres enviar el pedido?","send",{confirmText:"Enviar",cancelText:"No, regresar"}))return;if(r.length===0){se("No tienes productos en tu carrito",{type:"warning",autoClose:2e3});return}R(!0,"Enviando pedido...");const Q={customerId:(g==null?void 0:g.id)||0,table:M,items:r.map(ae=>({id:ae.id,price:ae.price,quantity:ae.quantity,comment:ae.comment??""})),totalAmount:V,orderDate:new Date().toISOString()},W=await Cg(Q,p);if(R(!1),W.success){if(!("new_progress"in W.data)){j(W.data);for(const ae of W.data)ae.isAvailable?L(ae.product.id,ae.newPrice):q(ae.product.id);return}se("Pedido enviado correctamente",{type:"success",autoClose:2e3}),E(W.data.new_progress),u(),m()}else alert(W.message)};b.useEffect(()=>{if(i)v(!0);else{const Z=setTimeout(()=>v(!1),300);return()=>clearTimeout(Z)}},[i]),b.useEffect(()=>{const Z=Ih();if(Z===-1){H("/no-table");return}U(Z)},[]);const V=r.reduce((Z,ne)=>Z+ne.price*ne.quantity,0);return y?f.jsxs("div",{className:"fixed inset-0 z-40 flex flex-col justify-end",children:[f.jsx(ib,{isOpen:x.length>0,onClose:()=>j([]),items:x}),f.jsx("div",{className:`absolute inset-0 bg-background-dark/60 backdrop-blur-md transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onClick:u}),f.jsxs("div",{className:`relative z-40 flex flex-col w-full max-w-md mx-auto bg-background-light dark:bg-background-dark rounded-t-3xl h-[94vh] shadow-2xl border-t border-white/5 ring-1 ring-white/10 transform transition-transform duration-300 ease-out ${i?"translate-y-0":"translate-y-full"}`,children:[f.jsx("div",{className:"flex flex-col items-center pt-3 pb-2 shrink-0 w-full cursor-grab active:cursor-grabbing hover:opacity-80 transition-opacity",onClick:u,children:f.jsx("div",{className:"h-1 w-10 rounded-full bg-gray-300 dark:bg-[#54413b]"})}),f.jsxs("div",{className:"flex items-center px-6 pb-4 pt-1 justify-between shrink-0",children:[f.jsx("button",{onClick:u,className:"group flex items-center justify-center size-10 rounded-full bg-gray-200 dark:bg-white/5 hover:bg-gray-300 dark:hover:bg-white/10 transition-all active:scale-95",children:f.jsx("span",{className:"material-symbols-outlined text-gray-700 dark:text-white group-hover:rotate-90 transition-transform duration-300",style:{fontSize:"24px"},children:"close"})}),f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("h2",{className:"text-gray-900 dark:text-white text-lg font-bold leading-none tracking-tight",children:"Pedidos Express"}),f.jsxs("span",{className:"text-xs text-primary font-medium mt-1 tracking-wider uppercase",children:["Mesa #",M]})]}),f.jsx("button",{onClick:m,className:"text-[#b9a49d] hover:text-primary text-sm font-bold leading-normal tracking-wide transition-colors",children:"Clear"})]}),f.jsx("div",{className:"flex-1 overflow-y-auto no-scrollbar px-5 pb-40",children:r.length===0?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[f.jsx("span",{className:"material-symbols-outlined text-6xl mb-4 opacity-50",children:"shopping_cart_off"}),f.jsx("p",{children:"Your cart is empty."})]}):f.jsx("div",{className:"flex flex-col gap-4 mt-2",children:r.map(Z=>f.jsxs("div",{className:"group relative flex gap-4 bg-white dark:bg-[#2a1d18] p-3 rounded-2xl shadow-sm border border-gray-100 dark:border-white/5 hover:border-primary/30 transition-colors",children:[f.jsxs("div",{className:"shrink-0 relative",children:[f.jsx("div",{className:"bg-center bg-no-repeat bg-cover rounded-xl size-20 shadow-inner",style:{backgroundImage:`url("${Z.image}")`}}),Z.quantity>1&&f.jsxs("div",{className:"absolute -top-2 -left-2 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-md shadow-sm",children:["x",Z.quantity]})]}),f.jsxs("div",{className:"flex flex-1 flex-col justify-between py-0.5",children:[f.jsxs("div",{className:"flex justify-between items-start gap-2",children:[f.jsx("h3",{className:"text-gray-900 dark:text-white text-base font-bold leading-tight",children:Z.name}),f.jsxs("p",{className:"text-gray-900 dark:text-white font-bold text-base",children:["$",Xa(Z.price*Z.quantity)]})]}),f.jsx("p",{className:"text-primary text-sm",children:Z.comment}),f.jsxs("p",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-medium",children:["$",Xa(Z.price)," / unidad"]}),f.jsxs("div",{className:"flex items-center justify-start mt-2 gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1 bg-gray-100 dark:bg-[#181311] rounded-lg p-1 border border-transparent dark:border-white/5",children:[f.jsx("button",{onClick:()=>d(Z.id,-1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"remove"})}),f.jsx("input",{className:"w-8 text-center bg-transparent text-sm font-bold text-gray-900 dark:text-white border-none focus:ring-0 p-0",readOnly:!0,type:"number",value:Z.quantity}),f.jsx("button",{onClick:()=>d(Z.id,1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"add"})})]}),f.jsx("button",{onClick:()=>{F(Z)},className:"flex items-center mx-2",children:f.jsx("span",{className:"material-symbols-outlined text-2xl text-white/70",children:"add_comment"})})]})]})]},Z.id))})}),f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-light/95 dark:bg-background-dark/95 backdrop-blur-md border-t border-gray-200 dark:border-white/5 z-20 pb-8 pt-4 px-6 rounded-t-2xl shadow-[0_-10px_40px_-15px_rgba(0,0,0,0.5)]",children:[f.jsx("div",{className:"flex justify-between items-end mb-4",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-bold uppercase tracking-wider mb-1",children:"Total a pagar"}),f.jsx("div",{className:"flex items-baseline gap-1",children:f.jsxs("span",{className:"text-3xl font-bold text-gray-900 dark:text-white tracking-tighter",children:["$",Xa(V)]})})]})}),f.jsxs("button",{onClick:$,className:"relative w-full group overflow-hidden bg-primary text-white rounded-xl p-4 shadow-lg shadow-primary/25 transition-all active:scale-[0.98]",children:[f.jsx("div",{className:"absolute inset-0 bg-white/20 translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out"}),f.jsxs("div",{className:"relative flex items-center justify-center gap-3",children:[f.jsx("span",{className:"font-bold text-lg tracking-wide",children:"Finalizar Pedido"}),f.jsx("span",{className:"material-symbols-outlined animate-pulse",children:"arrow_forward"})]})]})]})]})]}):null};function rb({setIsSidebarOpen:i,setIsCartOpen:u,totalItems:r}){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx("button",{onClick:()=>i(!0),className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"menu"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Pedidos Express"}),f.jsxs("button",{onClick:()=>u(!0),className:"text-white flex size-12 shrink-0 items-center justify-end relative hover:text-primary transition-colors",children:[f.jsx("span",{className:"material-symbols-outlined text-2xl",children:"shopping_cart"}),r>0&&f.jsx("span",{className:"absolute top-2 right-1 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full ring-2 ring-background-dark",children:r})]})]})}var Ga=(i=>(i.SHOP="SHOP",i.CHAT="CHAT",i))(Ga||{});function uh({activeTab:i,setActiveTab:u,tab:r,tabName:c,icon:d,needLogin:m,inDevelopment:y}){const{isLogged:v}=Tt(),g=ln(),p=()=>{if(y){g("/coming-soon");return}if(m&&!v){se("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}u(r)};return f.jsxs("button",{onClick:p,className:`flex flex-col items-center justify-center w-full h-full transition-colors ${i===r?"text-primary":"text-gray-400 hover:text-white"}`,children:[f.jsx("span",{className:`material-symbols-outlined text-2xl ${i===r?"fill-1":"fill-0"}`,children:d}),f.jsx("span",{className:"text-xs font-medium mt-1",children:c})]})}function cb({activeTab:i,setActiveTab:u}){return f.jsx("nav",{className:"bg-background-dark border-t border-white/10 p-2 z-30 sticky bottom-0 shrink-0",children:f.jsxs("div",{className:"flex justify-around items-center h-14",children:[f.jsx(uh,{setActiveTab:u,tab:Ga.SHOP,activeTab:i,tabName:"Tienda",icon:"store"}),f.jsx(uh,{setActiveTab:u,tab:Ga.CHAT,activeTab:i,tabName:"Chat",icon:"chat",needLogin:!0})]})})}function ob({active:i}){const{promoPercent:u}=Tt(),{confirm:r}=Hs(),{table:c}=en(),{isLogged:d,setPromoPercent:m}=Tt(),y=b.useCallback(async()=>{if(u>=100){if(!await r("¿Seguro que quieres reclamar?","reclamar"))return;const g=await zg(d,c);g.success?m(0):alert(g.message)}},[d,c,u,r]);return i&&f.jsxs("div",{className:"bg-[#8f3322] px-4 py-2 flex items-center justify-between z-20 shrink-0 shadow-lg border-b border-[#602014]",children:[f.jsxs("div",{className:"flex flex-col flex-1 mr-4",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:"material-symbols-outlined text-white text-lg font-bold",children:"celebration"}),f.jsxs("span",{className:"text-white text-xs font-bold uppercase tracking-wider drop-shadow-sm",children:[u??0,"% para tu cerveza gratis!"]})]}),f.jsx("div",{className:"w-full bg-black/30 h-1.5 rounded-full overflow-hidden",children:f.jsx("div",{className:"bg-[#fcd34d] h-full rounded-full shadow-[0_0_8px_rgba(252,211,77,0.6)] animate-pulse",style:{width:`${u??0}%`}})})]}),f.jsx("button",{onClick:y,className:"bg-[#1f1f1f] text-[#FFB800] border border-[#FFB800]/20 text-[10px] font-black uppercase px-3 py-1.5 rounded shadow-md active:scale-95 transition-transform hover:bg-[#000000] disabled:opacity-50 disabled:cursor-not-allowed",disabled:u<100,children:"Reclamar"})]})}function Ph(){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx(fa,{className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer",to:"/",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"chevron_left"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Registro Pedidos Express"}),f.jsx("div",{className:"size-12 shrink-0"})]})}function fb(){const{setIsLoggedIn:i}=Tt(),u=ln(),r=async c=>{c.preventDefault();const d=c.currentTarget.querySelector("input#email").value,m=c.currentTarget.querySelector("input#pin").value;if(!d){se("El email no puede estar vacío",{type:"error"});return}if(!m){se("El pin no puede estar vacío",{type:"error"});return}if(m.length!==4){se("El pin debe tener 4 dígitos",{type:"error"});return}const y=await Ng(d,m);if(y.success===!1){se(y.message,{type:"error"});return}vh(y.data.token),i(!0,y.data),u("/")};return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(Ph,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("div",{className:"w-full max-w-sm flex flex-col items-center space-y-8",children:[f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("div",{className:"size-20 bg-primary rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-primary/20",children:f.jsx("span",{className:"material-symbols-outlined text-white text-5xl",children:"sports_bar"})}),f.jsx("h1",{className:"text-white text-3xl font-bold tracking-tight",children:"Pedidos Express"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Brewery & Artisan Slices"})]}),f.jsxs("form",{className:"w-full space-y-5",onSubmit:r,children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"email",children:"Email"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"mail"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm",id:"email",placeholder:"your@email.com",type:"email"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"pin",children:"4-Digit PIN"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"lock"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm tracking-[0.5em] font-mono",id:"pin",inputMode:"numeric",maxLength:4,placeholder:"••••",type:"password"})]})]})]}),f.jsxs("button",{className:"w-full bg-primary hover:bg-[#b84a26] text-white font-bold py-4 mt-30 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] flex items-center justify-center gap-2",type:"submit",children:["Iniciar Sesión",f.jsx("span",{className:"material-symbols-outlined text-xl",children:"arrow_forward"})]})]}),f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("p",{className:"text-gray-400 text-sm",children:"¿No tienes una cuenta?"}),f.jsx(fa,{className:"text-primary font-bold hover:underline",to:"/register",children:"Crear cuenta"})]})]})})]})}function db(){return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(Ph,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 p-6",children:[f.jsxs("div",{className:"mb-8 text-center",children:[f.jsx("div",{className:"inline-flex items-center justify-center size-16 bg-primary/20 rounded-2xl mb-4",children:f.jsx("span",{className:"material-symbols-outlined text-primary text-4xl",children:"person_add"})}),f.jsx("h1",{className:"text-white text-2xl font-bold mb-2",children:"Únete a la comunidad"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Regístrate para pedir tus cervezas y pizzas favoritas."})]}),f.jsxs("form",{className:"space-y-6 max-w-md mx-auto w-full",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Email"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"mail"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"ejemplo@correo.com",type:"email"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Nombre Completo"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"person"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"Tu nombre y apellido",type:"text"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"RUT"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"fingerprint"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"12.345.678-9",type:"text"})]})]})]}),f.jsxs("div",{className:"flex items-start gap-3 px-1 mt-4",children:[f.jsx("div",{className:"flex items-center h-5",children:f.jsx("input",{className:"w-5 h-5 rounded border-white/10 bg-[#2a201c] text-primary focus:ring-primary focus:ring-offset-0 focus:ring-offset-transparent cursor-pointer",id:"terms",type:"checkbox"})}),f.jsx("label",{className:"text-sm text-gray-300 leading-snug cursor-pointer select-none",htmlFor:"terms",children:"Confirmo que tengo 18 años o más y acepto los términos de distribución de bebidas alcohólicas."})]}),f.jsx("button",{className:"w-full bg-primary hover:bg-orange-800 text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] mt-2",type:"submit",children:"Registrarse"}),f.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[f.jsx("p",{className:"text-center text-gray-500 text-sm mt-6",children:"¿Ya tienes una cuenta?"}),f.jsx(fa,{className:"text-primary font-semibold hover:underline",to:"/login",children:"Inicia sesión"})]})]})]})})]})}const mb=({product:i})=>f.jsxs("div",{className:"flex gap-4 bg-card-dark p-4 rounded-2xl border border-white/5 shadow-xl",children:[f.jsx("div",{className:"shrink-0",children:f.jsx("div",{className:"bg-center bg-cover rounded-xl size-16 ring-1 ring-white/10",style:{backgroundImage:`url("${i.image}")`}})}),f.jsxs("div",{className:"flex-1 flex flex-col justify-center",children:[f.jsxs("div",{className:"flex justify-between items-start",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight",children:i.name}),f.jsxs("span",{className:"text-white font-bold",children:["$",i.price.toFixed(2)]})]}),f.jsx("div",{className:"flex justify-between items-center mt-1",children:f.jsxs("p",{className:"text-[#b9a49d] text-sm",children:[i.quantity," ",i.quantity===1?"unidad":"unidades"," x $",i.price.toFixed(2)]})})]})]}),hb=({total:i})=>f.jsx("div",{className:"mt-8 space-y-3 py-6 border-t border-dashed border-white/10",children:f.jsxs("div",{className:"flex justify-between items-center text-sm",children:[f.jsx("span",{className:"text-[#b9a49d] font-medium",children:"Total"}),f.jsxs("span",{className:"text-white font-bold",children:["$",Xa(i)]})]})}),yb=({total:i,onBack:u,onRequestBill:r})=>f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-dark/80 backdrop-blur-xl border-t border-white/10 px-6 pt-6 pb-10 space-y-4",children:[f.jsx("div",{className:"flex justify-between items-end",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-[#b9a49d] text-xs font-bold uppercase tracking-widest mb-1",children:"Total Acumulado"}),f.jsxs("span",{className:"text-4xl font-bold text-white tracking-tighter",children:["$",Xa(i)]})]})}),f.jsxs("div",{className:"flex gap-3",children:[f.jsx("button",{onClick:u,className:"flex-1 bg-white/5 text-white font-bold py-4 rounded-xl border border-white/10 active:scale-95 transition-all",children:"Volver"}),f.jsxs("button",{onClick:r,className:"flex-2 bg-primary text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 active:scale-95 transition-all flex items-center justify-center gap-2",children:["Solicitar Cuenta",f.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"receipt_long"})]})]})]}),pb=()=>{const[i,u]=b.useState(0),[r,c]=b.useState([]),{getItems:d,table:m,setTable:y}=en(),{isLogged:v}=Tt(),{setIsLoading:g}=ni(),{confirm:p}=Hs(),E=ln(),x=async()=>{if(!await p("¿Seguro que quieres pedir la cuenta?","receipt_long"))return;g(!0,"Llamando a tu garzón...");const M=await xh(v,m);M.success?(g(!1),se("Tu garzon vendra enseguida, por favor espera",{type:"success",autoClose:2e3})):alert(M.message)};return b.useEffect(()=>{(async()=>{g(!0,"Cargando Historial...");let j=m;if(!j){if(j=Ih(),j===-1){E("/no-table");return}y(j)}let M=await wg(j,v),U;M&&M.success?U=M.data:E("/");const L=d(...U);c(L),u(L.reduce((q,R)=>q+R.price*R.quantity,0)),g(!1)})()},[]),f.jsxs("div",{className:"bg-background-dark font-display selection:bg-primary selection:text-white overflow-hidden h-screen w-full flex flex-col relative",children:[f.jsx("div",{className:"fixed inset-0 z-0 opacity-20 pointer-events-none",children:f.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-primary/20 to-transparent"})}),f.jsx("header",{className:"relative z-10 shrink-0 px-6 pt-12 pb-6",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("button",{onClick:()=>{history.back()},className:"flex items-center justify-center size-10 rounded-full bg-white/5 border border-white/10 active:scale-90 transition-transform",children:f.jsx("span",{className:"material-symbols-outlined text-white",children:"chevron_left"})}),f.jsxs("div",{children:[f.jsxs("h1",{className:"text-white text-2xl font-bold tracking-tight",children:["Mesa #",m]}),f.jsx("p",{className:"text-primary font-medium text-sm uppercase tracking-widest",children:"Consumo Actual"})]})]})}),f.jsxs("main",{className:"relative z-10 flex-1 overflow-y-auto no-scrollbar px-6 pb-80",children:[f.jsx("div",{className:"space-y-4",children:r.map(j=>f.jsx(mb,{product:j},j.id))}),f.jsx(hb,{total:i})]}),f.jsx("div",{className:"relative z-20",children:f.jsx(yb,{total:i,points:50,onBack:()=>E("/"),onRequestBill:()=>x()})})]})};function gb(){return f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",children:[f.jsx("div",{className:"absolute inset-0 bg-qr-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-full blur-3xl animate-pulse"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[12rem]! text-surface-dark leading-none drop-shadow-2xl w-max h-max",children:"table_restaurant"}),f.jsx("div",{className:"absolute -top-4 -right-4 bg-background-dark rounded-full p-2 ring-4 ring-background-dark shadow-xl",children:f.jsx("span",{className:"material-symbols-outlined text-6xl text-primary",children:"question_mark"})}),f.jsx("div",{className:"w-32 h-4 bg-black/40 blur-lg rounded-full -mt-4"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-5 max-w-80 animate-in slide-in-from-bottom-8 fade-in duration-1000",children:[f.jsx("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:"Mesa no Encontrada"}),f.jsxs("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:["No pudimos identificar tu ubicación. Para realizar tu pedido, por favor ",f.jsx("strong",{className:"text-primary font-medium",children:"escanea nuevamente"})," el código QR situado en tu mesa."]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]})}const vb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 1, 'wght' 200"},children:"propane_tank"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary",children:"construction"})}),f.jsx("div",{className:"absolute top-10 right-0 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-8 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsxs("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:["Estamos Cocinando ",f.jsx("br",{})," ",f.jsx("span",{className:"text-primary",children:"Algo Nuevo"})]}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Esta sección está en desarrollo para mejorar tu experiencia en Pedidos Express. Vuelve pronto para ver las novedades."}),f.jsxs("button",{onClick:()=>{history.back()},className:"mt-4 inline-flex items-center gap-2 px-6 py-3 rounded-full bg-surface-dark/50 border border-white/10 hover:bg-surface-dark hover:border-primary/50 text-white transition-all duration-300 group backdrop-blur-sm",children:[f.jsx("span",{className:"material-symbols-outlined text-sm transition-transform group-hover:-translate-x-1",children:"arrow_back"}),f.jsx("span",{children:"Volver atrás"})]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),xb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 0, 'wght' 200"},children:"sports_bar"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary font-bold",children:"broken_image"})}),f.jsx("div",{className:"absolute top-10 right-10 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-16 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-primary/10 text-6xl font-display font-bold select-none pointer-events-none",children:"?"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsx("h1",{className:"text-6xl md:text-7xl font-display font-bold text-primary tracking-tighter leading-none",children:"404"}),f.jsx("h2",{className:"text-2xl md:text-3xl font-display font-medium text-white tracking-tight leading-tight",children:"Página no Encontrada"}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Parece que esta ronda no existe o se ha agotado. Verifica la dirección o vuelve a la barra principal."}),f.jsxs(fa,{to:"/",className:"mt-4 px-8 py-3 bg-primary hover:bg-primary/90 text-background-dark font-bold rounded-full transition-colors duration-200 shadow-lg shadow-primary/20 flex items-center gap-2",children:[f.jsx("span",{className:"material-symbols-outlined text-xl",children:"home"}),"Volver al Inicio"]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),bb=({children:i})=>f.jsxs(Mg,{children:[f.jsx(gv,{}),f.jsx(Qx,{children:f.jsx(Rg,{children:f.jsx(Dg,{children:f.jsx(_v,{children:f.jsx(xv,{children:i})})})})})]}),Sb=()=>{const[i,u]=b.useState(Ga.SHOP),[r,c]=b.useState(!1),[d,m]=b.useState(!1),[y,v]=b.useState([]),{isLogged:g}=Tt(),[p,E]=b.useState(Tg),{setIsLoading:x}=ni(),{setIsLoggedIn:j}=Tt(),M=()=>{const A=Math.random();A<.2?(se("Sabias que puedes obtener 1 cerveza gratis de cada 10?🥳"),se("Solo registrandote😯")):A<.4?(se("que estaran conversando en el chat global?🫢"),se("Averigualo registrandote🥳🥳")):A<.6?(se("¿Sediento? Tu próxima cerveza podría ser gratis. 🍺"),se("Regístrate y empieza a sumar.")):A<.8?(se("El chat global está que arde. 🔥"),se("No te quedes fuera, regístrate ahora.")):(se("Estás a 20 segundos de tu primera cerveza gratis. ⏱️"),se("Crea tu cuenta ahora."))},U=A=>{v(X=>X.find($=>$.id===A.id)?X.map($=>$.id===A.id?{...$,quantity:$.quantity+1}:$):[...X,{...A,quantity:1}]),se(`Se agrego ${A.name} a tu carrito.`,{type:"success",position:"top-center",autoClose:2e3})},L=(A,X)=>{v(F=>F.map($=>{if($.id===A){const V=$.quantity+X;return{...$,quantity:V}}return $}).filter($=>$.quantity>0))},q=()=>v([]),R=async A=>{const X=await jg(A);return X.success&&j(!0,X.data),X.success};b.useEffect(()=>{(async()=>{if(!g){let X=!1;x(!0,"Iniciando sesión...");const F=ml();F&&(X=await R(F)),X||M(),x(!1)}})()},[]);const H=y.reduce((A,X)=>A+X.quantity,0);return f.jsxs("div",{className:"relative h-screen flex flex-col overflow-hidden bg-background-dark font-display",children:[f.jsx(rb,{setIsSidebarOpen:c,setIsCartOpen:m,totalItems:H}),f.jsx(ob,{active:i===Ga.SHOP&&g}),f.jsxs("main",{className:"flex-1 relative flex flex-col h-full overflow-hidden",children:[i===Ga.SHOP&&f.jsx(Ug,{onAddProduct:U}),i===Ga.CHAT&&f.jsx(Ev,{onBrowseMenu:()=>u(Ga.SHOP)})]}),f.jsx(cb,{activeTab:i,setActiveTab:u}),f.jsx(tb,{isOpen:r,onClose:()=>c(!1)}),f.jsx(ub,{isOpen:d,onClose:()=>m(!1),cartItems:y,onUpdateQuantity:L,onClear:q,setCartItems:v})]})},Eb=()=>f.jsx(bb,{children:f.jsxs(bx,{children:[f.jsx(Ya,{path:"/",element:f.jsx(Sb,{})}),f.jsx(Ya,{path:"/login",element:f.jsx(fb,{})}),f.jsx(Ya,{path:"/register",element:f.jsx(db,{})}),f.jsx(Ya,{path:"/summary",element:f.jsx(pb,{})}),f.jsx(Ya,{path:"/no-table",element:f.jsx(gb,{})}),f.jsx(Ya,{path:"/coming-soon",element:f.jsx(vb,{})}),f.jsx(Ya,{path:"*",element:f.jsx(xb,{})})]})}),e0=document.getElementById("root");if(!e0)throw new Error("Could not find root element to mount to");const _b=Dp.createRoot(e0);_b.render(f.jsx(Eb,{}));