index-DWAqi_Na.js 344 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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"]'))r(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function o(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 r(d){if(d.ep)return;d.ep=!0;const m=o(d);fetch(d.href,m)}})();function ch(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var uo={exports:{}},ei={};/**
  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 km;function Cy(){if(km)return ei;km=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function o(r,d,m){var h=null;if(m!==void 0&&(h=""+m),d.key!==void 0&&(h=""+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:r,key:h,ref:d!==void 0?d:null,props:m}}return ei.Fragment=u,ei.jsx=o,ei.jsxs=o,ei}var qm;function wy(){return qm||(qm=1,uo.exports=Cy()),uo.exports}var f=wy(),ro={exports:{}},ti={},oo={exports:{}},co={};/**
  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 Ym;function zy(){return Ym||(Ym=1,(function(i){function u(D,J){var ae=D.length;D.push(J);e:for(;0<ae;){var Ee=ae-1>>>1,ue=D[Ee];if(0<d(ue,J))D[Ee]=J,D[ae]=ue,ae=Ee;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var J=D[0],ae=D.pop();if(ae!==J){D[0]=ae;e:for(var Ee=0,ue=D.length,_=ue>>>1;Ee<_;){var R=2*(Ee+1)-1,Z=D[R],F=R+1,ce=D[F];if(0>d(Z,ae))F<ue&&0>d(ce,Z)?(D[Ee]=ce,D[F]=ae,Ee=F):(D[Ee]=Z,D[R]=ae,Ee=R);else if(F<ue&&0>d(ce,ae))D[Ee]=ce,D[F]=ae,Ee=F;else break e}}return J}function d(D,J){var ae=D.sortIndex-J.sortIndex;return ae!==0?ae:D.id-J.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 h=Date,v=h.now();i.unstable_now=function(){return h.now()-v}}var g=[],y=[],S=1,x=null,j=3,z=!1,B=!1,H=!1,Y=!1,U=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function K(D){for(var J=o(y);J!==null;){if(J.callback===null)r(y);else if(J.startTime<=D)r(y),J.sortIndex=J.expirationTime,u(g,J);else break;J=o(y)}}function P(D){if(H=!1,K(D),!B)if(o(g)!==null)B=!0,$||($=!0,ne());else{var J=o(y);J!==null&&Oe(P,J.startTime-D)}}var $=!1,k=-1,V=5,W=-1;function Q(){return Y?!0:!(i.unstable_now()-W<V)}function ee(){if(Y=!1,$){var D=i.unstable_now();W=D;var J=!0;try{e:{B=!1,H&&(H=!1,q(k),k=-1),z=!0;var ae=j;try{t:{for(K(D),x=o(g);x!==null&&!(x.expirationTime>D&&Q());){var Ee=x.callback;if(typeof Ee=="function"){x.callback=null,j=x.priorityLevel;var ue=Ee(x.expirationTime<=D);if(D=i.unstable_now(),typeof ue=="function"){x.callback=ue,K(D),J=!0;break t}x===o(g)&&r(g),K(D)}else r(g);x=o(g)}if(x!==null)J=!0;else{var _=o(y);_!==null&&Oe(P,_.startTime-D),J=!1}}break e}finally{x=null,j=ae,z=!1}J=void 0}}finally{J?ne():$=!1}}}var ne;if(typeof M=="function")ne=function(){M(ee)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Te=ye.port2;ye.port1.onmessage=ee,ne=function(){Te.postMessage(null)}}else ne=function(){U(ee,0)};function Oe(D,J){k=U(function(){D(i.unstable_now())},J)}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"):V=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 J=3;break;default:J=j}var ae=j;j=J;try{return D()}finally{j=ae}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ae=j;j=D;try{return J()}finally{j=ae}},i.unstable_scheduleCallback=function(D,J,ae){var Ee=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ee+ae:Ee):ae=Ee,D){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=ae+ue,D={id:S++,callback:J,priorityLevel:D,startTime:ae,expirationTime:ue,sortIndex:-1},ae>Ee?(D.sortIndex=ae,u(y,D),o(g)===null&&D===o(y)&&(H?(q(k),k=-1):H=!0,Oe(P,ae-Ee))):(D.sortIndex=ue,u(g,D),B||z||(B=!0,$||($=!0,ne()))),D},i.unstable_shouldYield=Q,i.unstable_wrapCallback=function(D){var J=j;return function(){var ae=j;j=J;try{return D.apply(this,arguments)}finally{j=ae}}}})(co)),co}var Gm;function My(){return Gm||(Gm=1,oo.exports=zy()),oo.exports}var fo={exports:{}},oe={};/**
  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 Xm;function Oy(){if(Xm)return oe;Xm=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),j=Symbol.iterator;function z(_){return _===null||typeof _!="object"?null:(_=j&&_[j]||_["@@iterator"],typeof _=="function"?_:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,Y={};function U(_,R,Z){this.props=_,this.context=R,this.refs=Y,this.updater=Z||B}U.prototype.isReactComponent={},U.prototype.setState=function(_,R){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,R,"setState")},U.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function q(){}q.prototype=U.prototype;function M(_,R,Z){this.props=_,this.context=R,this.refs=Y,this.updater=Z||B}var K=M.prototype=new q;K.constructor=M,H(K,U.prototype),K.isPureReactComponent=!0;var P=Array.isArray;function $(){}var k={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function W(_,R,Z){var F=Z.ref;return{$$typeof:i,type:_,key:R,ref:F!==void 0?F:null,props:Z}}function Q(_,R){return W(_.type,R,_.props)}function ee(_){return typeof _=="object"&&_!==null&&_.$$typeof===i}function ne(_){var R={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Z){return R[Z]})}var ye=/\/+/g;function Te(_,R){return typeof _=="object"&&_!==null&&_.key!=null?ne(""+_.key):R.toString(36)}function Oe(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then($,$):(_.status="pending",_.then(function(R){_.status==="pending"&&(_.status="fulfilled",_.value=R)},function(R){_.status==="pending"&&(_.status="rejected",_.reason=R)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function D(_,R,Z,F,ce){var me=typeof _;(me==="undefined"||me==="boolean")&&(_=null);var Ne=!1;if(_===null)Ne=!0;else switch(me){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(_.$$typeof){case i:case u:Ne=!0;break;case S:return Ne=_._init,D(Ne(_._payload),R,Z,F,ce)}}if(Ne)return ce=ce(_),Ne=F===""?"."+Te(_,0):F,P(ce)?(Z="",Ne!=null&&(Z=Ne.replace(ye,"$&/")+"/"),D(ce,R,Z,"",function(un){return un})):ce!=null&&(ee(ce)&&(ce=Q(ce,Z+(ce.key==null||_&&_.key===ce.key?"":(""+ce.key).replace(ye,"$&/")+"/")+Ne)),R.push(ce)),1;Ne=0;var lt=F===""?".":F+":";if(P(_))for(var qe=0;qe<_.length;qe++)F=_[qe],me=lt+Te(F,qe),Ne+=D(F,R,Z,me,ce);else if(qe=z(_),typeof qe=="function")for(_=qe.call(_),qe=0;!(F=_.next()).done;)F=F.value,me=lt+Te(F,qe++),Ne+=D(F,R,Z,me,ce);else if(me==="object"){if(typeof _.then=="function")return D(Oe(_),R,Z,F,ce);throw R=String(_),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function J(_,R,Z){if(_==null)return _;var F=[],ce=0;return D(_,F,"","",function(me){return R.call(Z,me,ce++)}),F}function ae(_){if(_._status===-1){var R=_._result;R=R(),R.then(function(Z){(_._status===0||_._status===-1)&&(_._status=1,_._result=Z)},function(Z){(_._status===0||_._status===-1)&&(_._status=2,_._result=Z)}),_._status===-1&&(_._status=0,_._result=R)}if(_._status===1)return _._result.default;throw _._result}var Ee=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},ue={map:J,forEach:function(_,R,Z){J(_,function(){R.apply(this,arguments)},Z)},count:function(_){var R=0;return J(_,function(){R++}),R},toArray:function(_){return J(_,function(R){return R})||[]},only:function(_){if(!ee(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return oe.Activity=x,oe.Children=ue,oe.Component=U,oe.Fragment=o,oe.Profiler=d,oe.PureComponent=M,oe.StrictMode=r,oe.Suspense=g,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,oe.__COMPILER_RUNTIME={__proto__:null,c:function(_){return k.H.useMemoCache(_)}},oe.cache=function(_){return function(){return _.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(_,R,Z){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var F=H({},_.props),ce=_.key;if(R!=null)for(me in R.key!==void 0&&(ce=""+R.key),R)!V.call(R,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&R.ref===void 0||(F[me]=R[me]);var me=arguments.length-2;if(me===1)F.children=Z;else if(1<me){for(var Ne=Array(me),lt=0;lt<me;lt++)Ne[lt]=arguments[lt+2];F.children=Ne}return W(_.type,ce,F)},oe.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:m,_context:_},_},oe.createElement=function(_,R,Z){var F,ce={},me=null;if(R!=null)for(F in R.key!==void 0&&(me=""+R.key),R)V.call(R,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ce[F]=R[F]);var Ne=arguments.length-2;if(Ne===1)ce.children=Z;else if(1<Ne){for(var lt=Array(Ne),qe=0;qe<Ne;qe++)lt[qe]=arguments[qe+2];ce.children=lt}if(_&&_.defaultProps)for(F in Ne=_.defaultProps,Ne)ce[F]===void 0&&(ce[F]=Ne[F]);return W(_,me,ce)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(_){return{$$typeof:v,render:_}},oe.isValidElement=ee,oe.lazy=function(_){return{$$typeof:S,_payload:{_status:-1,_result:_},_init:ae}},oe.memo=function(_,R){return{$$typeof:y,type:_,compare:R===void 0?null:R}},oe.startTransition=function(_){var R=k.T,Z={};k.T=Z;try{var F=_(),ce=k.S;ce!==null&&ce(Z,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then($,Ee)}catch(me){Ee(me)}finally{R!==null&&Z.types!==null&&(R.types=Z.types),k.T=R}},oe.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},oe.use=function(_){return k.H.use(_)},oe.useActionState=function(_,R,Z){return k.H.useActionState(_,R,Z)},oe.useCallback=function(_,R){return k.H.useCallback(_,R)},oe.useContext=function(_){return k.H.useContext(_)},oe.useDebugValue=function(){},oe.useDeferredValue=function(_,R){return k.H.useDeferredValue(_,R)},oe.useEffect=function(_,R){return k.H.useEffect(_,R)},oe.useEffectEvent=function(_){return k.H.useEffectEvent(_)},oe.useId=function(){return k.H.useId()},oe.useImperativeHandle=function(_,R,Z){return k.H.useImperativeHandle(_,R,Z)},oe.useInsertionEffect=function(_,R){return k.H.useInsertionEffect(_,R)},oe.useLayoutEffect=function(_,R){return k.H.useLayoutEffect(_,R)},oe.useMemo=function(_,R){return k.H.useMemo(_,R)},oe.useOptimistic=function(_,R){return k.H.useOptimistic(_,R)},oe.useReducer=function(_,R,Z){return k.H.useReducer(_,R,Z)},oe.useRef=function(_){return k.H.useRef(_)},oe.useState=function(_){return k.H.useState(_)},oe.useSyncExternalStore=function(_,R,Z){return k.H.useSyncExternalStore(_,R,Z)},oe.useTransition=function(){return k.H.useTransition()},oe.version="19.2.3",oe}var Qm;function zo(){return Qm||(Qm=1,fo.exports=Oy()),fo.exports}var mo={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 Vm;function Ry(){if(Vm)return tt;Vm=1;var i=zo();function u(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(u(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,y,S){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:g,containerInfo:y,implementation:S}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tt.createPortal=function(g,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(g,y,null,S)},tt.flushSync=function(g){var y=h.T,S=r.p;try{if(h.T=null,r.p=2,g)return g()}finally{h.T=y,r.p=S,r.d.f()}},tt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},tt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},tt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var S=y.as,x=v(S,y.crossOrigin),j=typeof y.integrity=="string"?y.integrity:void 0,z=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:j,fetchPriority:z}):S==="script"&&r.d.X(g,{crossOrigin:x,integrity:j,fetchPriority:z,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},tt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=v(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},tt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,x=v(S,y.crossOrigin);r.d.L(g,S,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},tt.preloadModule=function(g,y){if(typeof g=="string")if(y){var S=v(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},tt.requestFormReset=function(g){r.d.r(g)},tt.unstable_batchedUpdates=function(g,y){return g(y)},tt.useFormState=function(g,y,S){return h.H.useFormState(g,y,S)},tt.useFormStatus=function(){return h.H.useHostTransitionStatus()},tt.version="19.2.3",tt}var Zm;function Dy(){if(Zm)return mo.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(),mo.exports=Ry(),mo.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 Km;function By(){if(Km)return ti;Km=1;var i=My(),u=zo(),o=Dy();function r(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(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(r(188))}if(a.return!==l.return)a=n,l=s;else{for(var c=!1,p=n.child;p;){if(p===a){c=!0,a=n,l=s;break}if(p===l){c=!0,l=n,a=s;break}p=p.sibling}if(!c){for(p=s.child;p;){if(p===a){c=!0,a=s,l=n;break}if(p===l){c=!0,l=s,a=n;break}p=p.sibling}if(!c)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,j=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),M=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function Te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case U:return"Profiler";case Y:return"StrictMode";case P:return"Suspense";case $:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case M:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}var Oe=Array.isArray,D=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ee=[],ue=-1;function _(e){return{current:e}}function R(e){0>ue||(e.current=Ee[ue],Ee[ue]=null,ue--)}function Z(e,t){ue++,Ee[ue]=e.current,e.current=t}var F=_(null),ce=_(null),me=_(null),Ne=_(null);function lt(e,t){switch(Z(me,t),Z(ce,e),Z(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(F),Z(F,e)}function qe(){R(F),R(ce),R(me)}function un(e){e.memoizedState!==null&&Z(Ne,e);var t=F.current,a=om(t,e.type);t!==a&&(Z(ce,e),Z(F,a))}function di(e){ce.current===e&&(R(F),R(ce)),Ne.current===e&&(R(Ne),Fn._currentValue=ae)}var Xs,Lo;function Ja(e){if(Xs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Xs=t&&t[1]||"",Lo=-1<a.stack.indexOf(`
  42. at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
  43. `+Xs+e+Lo}var Qs=!1;function Vs(e,t){if(!e||Qs)return"";Qs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(O){var w=O}Reflect.construct(e,[],X)}else{try{X.call()}catch(O){w=O}e.call(X.prototype)}}else{try{throw Error()}catch(O){w=O}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(O){if(O&&w&&typeof O.stack=="string")return[O.stack,w.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(),c=s[0],p=s[1];if(c&&p){var E=c.split(`
  44. `),C=p.split(`
  45. `);for(n=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(l===E.length||n===C.length)for(l=E.length-1,n=C.length-1;1<=l&&0<=n&&E[l]!==C[n];)n--;for(;1<=l&&0<=n;l--,n--)if(E[l]!==C[n]){if(l!==1||n!==1)do if(l--,n--,0>n||E[l]!==C[n]){var L=`
  46. `+E[l].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=l&&0<=n);break}}}finally{Qs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ja(a):""}function i0(e,t){switch(e.tag){case 26:case 27:case 5:return Ja(e.type);case 16:return Ja("Lazy");case 13:return e.child!==t&&t!==null?Ja("Suspense Fallback"):Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 15:return Vs(e.type,!1);case 11:return Vs(e.type.render,!1);case 1:return Vs(e.type,!0);case 31:return Ja("Activity");default:return""}}function Ho(e){try{var t="",a=null;do t+=i0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
  47. Error generating stack: `+l.message+`
  48. `+l.stack}}var Zs=Object.prototype.hasOwnProperty,Ks=i.unstable_scheduleCallback,Js=i.unstable_cancelCallback,s0=i.unstable_shouldYield,u0=i.unstable_requestPaint,mt=i.unstable_now,r0=i.unstable_getCurrentPriorityLevel,ko=i.unstable_ImmediatePriority,qo=i.unstable_UserBlockingPriority,mi=i.unstable_NormalPriority,o0=i.unstable_LowPriority,Yo=i.unstable_IdlePriority,c0=i.log,f0=i.unstable_setDisableYieldValue,rn=null,ht=null;function xa(e){if(typeof c0=="function"&&f0(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(rn,e)}catch{}}var pt=Math.clz32?Math.clz32:h0,d0=Math.log,m0=Math.LN2;function h0(e){return e>>>=0,e===0?32:31-(d0(e)/m0|0)|0}var hi=256,pi=262144,yi=4194304;function $a(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 gi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~s,l!==0?n=$a(l):(c&=p,c!==0?n=$a(c):a||(a=p&~e,a!==0&&(n=$a(a))))):(p=l&~s,p!==0?n=$a(p):c!==0?n=$a(c):a||(a=l&~e,a!==0&&(n=$a(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 on(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function p0(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 Go(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function $s(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function y0(e,t,a,l,n,s){var c=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 p=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(a=c&~a;0<a;){var L=31-pt(a),X=1<<L;p[L]=0,E[L]=-1;var w=C[L];if(w!==null)for(C[L]=null,L=0;L<w.length;L++){var O=w[L];O!==null&&(O.lane&=-536870913)}a&=~X}l!==0&&Xo(e,l,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function Xo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-pt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Qo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-pt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Vo(e,t){var a=t&-t;return a=(a&42)!==0?1:Fs(a),(a&(e.suspendedLanes|t))!==0?0:a}function Fs(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 Ws(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zo(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Ko(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var ba=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ba,st="__reactProps$"+ba,gl="__reactContainer$"+ba,Is="__reactEvents$"+ba,g0="__reactListeners$"+ba,v0="__reactHandles$"+ba,Jo="__reactResources$"+ba,fn="__reactMarker$"+ba;function Ps(e){delete e[Fe],delete e[st],delete e[Is],delete e[g0],delete e[v0]}function vl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gl]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ym(e);e!==null;){if(a=e[Fe])return a;e=ym(e)}return t}e=a,a=e.parentNode}return null}function xl(e){if(e=e[Fe]||e[gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function bl(e){var t=e[Jo];return t||(t=e[Jo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[fn]=!0}var $o=new Set,Fo={};function Fa(e,t){Sl(e,t),Sl(e+"Capture",t)}function Sl(e,t){for(Fo[e]=t,e=0;e<t.length;e++)$o.add(t[e])}var x0=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]*$"),Wo={},Io={};function b0(e){return Zs.call(Io,e)?!0:Zs.call(Wo,e)?!1:x0.test(e)?Io[e]=!0:(Wo[e]=!0,!1)}function vi(e,t,a){if(b0(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 xi(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 Kt(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 Po(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S0(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(c){a=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eu(e){if(!e._valueTracker){var t=Po(e)?"checked":"value";e._valueTracker=S0(e,t,""+e[t])}}function ec(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Po(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function bi(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 E0=/[\n"\\]/g;function jt(e){return e.replace(E0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tu(e,t,a,l,n,s,c,p){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?au(e,c,Nt(t)):a!=null?au(e,c,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"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Nt(p):e.removeAttribute("name")}function tc(e,t,a,l,n,s,c,p){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)){eu(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),eu(e)}function au(e,t,a){t==="number"&&bi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function El(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 ac(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 lc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(Oe(l)){if(1<l.length)throw Error(r(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),eu(e)}function _l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var _0=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 nc(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||_0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ic(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(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&&nc(e,n,l)}else for(var s in t)t.hasOwnProperty(s)&&nc(e,s,t[s])}function lu(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 T0=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"]]),N0=/^[\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 Si(e){return N0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var nu=null;function iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,Nl=null;function sc(e){var t=xl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(tu(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(r(90));tu(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&&ec(l)}break e;case"textarea":ac(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&El(e,!!a.multiple,t,!1)}}}var su=!1;function uc(e,t,a){if(su)return e(t,a);su=!0;try{var l=e(t);return l}finally{if(su=!1,(Tl!==null||Nl!==null)&&(rs(),Tl&&(t=Tl,e=Nl,Nl=Tl=null,sc(t),e)))for(t=0;t<e.length;t++)sc(e[t])}}function mn(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(r(231,t,typeof a));return a}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uu=!1;if($t)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){uu=!0}}),window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{uu=!1}var Sa=null,ru=null,Ei=null;function rc(){if(Ei)return Ei;var e,t=ru,a=t.length,l,n="value"in Sa?Sa.value:Sa.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[s-l];l++);return Ei=n.slice(e,1<l?1-l:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ti(){return!0}function oc(){return!1}function ut(e){function t(a,l,n,s,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ti:oc,this.isPropagationStopped=oc,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=Ti)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=ut(Wa),pn=x({},Wa,{view:0,detail:0}),j0=ut(pn),ou,cu,yn,ji=x({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:du,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!==yn&&(yn&&e.type==="mousemove"?(ou=e.screenX-yn.screenX,cu=e.screenY-yn.screenY):cu=ou=0,yn=e),ou)},movementY:function(e){return"movementY"in e?e.movementY:cu}}),cc=ut(ji),A0=x({},ji,{dataTransfer:0}),C0=ut(A0),w0=x({},pn,{relatedTarget:0}),fu=ut(w0),z0=x({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),M0=ut(z0),O0=x({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R0=ut(O0),D0=x({},Wa,{data:0}),fc=ut(D0),B0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L0[e])?!!t[e]:!1}function du(){return H0}var k0=x({},pn,{key:function(e){if(e.key){var t=B0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:du,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q0=ut(k0),Y0=x({},ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dc=ut(Y0),G0=x({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:du}),X0=ut(G0),Q0=x({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),V0=ut(Q0),Z0=x({},ji,{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}),K0=ut(Z0),J0=x({},Wa,{newState:0,oldState:0}),$0=ut(J0),F0=[9,13,27,32],mu=$t&&"CompositionEvent"in window,gn=null;$t&&"documentMode"in document&&(gn=document.documentMode);var W0=$t&&"TextEvent"in window&&!gn,mc=$t&&(!mu||gn&&8<gn&&11>=gn),hc=" ",pc=!1;function yc(e,t){switch(e){case"keyup":return F0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jl=!1;function I0(e,t){switch(e){case"compositionend":return gc(t);case"keypress":return t.which!==32?null:(pc=!0,hc);case"textInput":return e=t.data,e===hc&&pc?null:e;default:return null}}function P0(e,t){if(jl)return e==="compositionend"||!mu&&yc(e,t)?(e=rc(),Ei=ru=Sa=null,jl=!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 mc&&t.locale!=="ko"?null:t.data;default:return null}}var ep={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 vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ep[e.type]:t==="textarea"}function xc(e,t,a,l){Tl?Nl?Nl.push(l):Nl=[l]:Tl=l,t=ps(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var vn=null,xn=null;function tp(e){am(e,0)}function Ai(e){var t=dn(e);if(ec(t))return e}function bc(e,t){if(e==="change")return t}var Sc=!1;if($t){var hu;if($t){var pu="oninput"in document;if(!pu){var Ec=document.createElement("div");Ec.setAttribute("oninput","return;"),pu=typeof Ec.oninput=="function"}hu=pu}else hu=!1;Sc=hu&&(!document.documentMode||9<document.documentMode)}function _c(){vn&&(vn.detachEvent("onpropertychange",Tc),xn=vn=null)}function Tc(e){if(e.propertyName==="value"&&Ai(xn)){var t=[];xc(t,xn,e,iu(e)),uc(tp,t)}}function ap(e,t,a){e==="focusin"?(_c(),vn=t,xn=a,vn.attachEvent("onpropertychange",Tc)):e==="focusout"&&_c()}function lp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(xn)}function np(e,t){if(e==="click")return Ai(t)}function ip(e,t){if(e==="input"||e==="change")return Ai(t)}function sp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:sp;function bn(e,t){if(yt(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(!Zs.call(t,n)||!yt(e[n],t[n]))return!1}return!0}function Nc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jc(e,t){var a=Nc(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=Nc(a)}}function Ac(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ac(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bi(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=bi(e.document)}return t}function yu(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 up=$t&&"documentMode"in document&&11>=document.documentMode,Al=null,gu=null,Sn=null,vu=!1;function wc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vu||Al==null||Al!==bi(l)||(l=Al,"selectionStart"in l&&yu(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}),Sn&&bn(Sn,l)||(Sn=l,l=ps(gu,"onSelect"),0<l.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Al)))}function Ia(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Cl={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},xu={},zc={};$t&&(zc=document.createElement("div").style,"AnimationEvent"in window||(delete Cl.animationend.animation,delete Cl.animationiteration.animation,delete Cl.animationstart.animation),"TransitionEvent"in window||delete Cl.transitionend.transition);function Pa(e){if(xu[e])return xu[e];if(!Cl[e])return e;var t=Cl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in zc)return xu[e]=t[a];return e}var Mc=Pa("animationend"),Oc=Pa("animationiteration"),Rc=Pa("animationstart"),rp=Pa("transitionrun"),op=Pa("transitionstart"),cp=Pa("transitioncancel"),Dc=Pa("transitionend"),Bc=new Map,bu="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(" ");bu.push("scrollEnd");function Ut(e,t){Bc.set(e,t),Fa(t,[e])}var Ci=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=[],wl=0,Su=0;function wi(){for(var e=wl,t=Su=wl=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 c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}s!==0&&Uc(a,n,s)}}function zi(e,t,a,l){At[wl++]=e,At[wl++]=t,At[wl++]=a,At[wl++]=l,Su|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Eu(e,t,a,l){return zi(e,t,a,l),Mi(e)}function el(e,t){return zi(e,null,null,t),Mi(e)}function Uc(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-pt(a),e=s.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),s):null}function Mi(e){if(50<Xn)throw Xn=0,Mr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zl={};function fp(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 fp(e,t,a,l)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(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 Lc(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 Oi(e,t,a,l,n,s){var c=0;if(l=e,typeof e=="function")_u(e)&&(c=1);else if(typeof e=="string")c=yy(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=gt(31,a,t,n),e.elementType=W,e.lanes=s,e;case H:return tl(a.children,n,s,t);case Y:c=8,n|=24;break;case U:return e=gt(12,a,t,n|2),e.elementType=U,e.lanes=s,e;case P:return e=gt(13,a,t,n),e.elementType=P,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 M:c=10;break e;case q:c=9;break e;case K:c=11;break e;case k:c=14;break e;case V:c=16,l=null;break e}c=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=gt(c,a,t,n),t.elementType=e,t.type=l,t.lanes=s,t}function tl(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function Tu(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function Hc(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Nu(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 kc=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var a=kc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ho(t)},kc.set(e,t),t)}return{value:e,source:t,stack:Ho(t)}}var Ml=[],Ol=0,Ri=null,En=0,wt=[],zt=0,Ea=null,Gt=1,Xt="";function Wt(e,t){Ml[Ol++]=En,Ml[Ol++]=Ri,Ri=e,En=t}function qc(e,t,a){wt[zt++]=Gt,wt[zt++]=Xt,wt[zt++]=Ea,Ea=e;var l=Gt;e=Xt;var n=32-pt(l)-1;l&=~(1<<n),a+=1;var s=32-pt(t)+n;if(30<s){var c=n-n%5;s=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Gt=1<<32-pt(t)+n|a<<n|l,Xt=s+e}else Gt=1<<s|a<<n|l,Xt=e}function ju(e){e.return!==null&&(Wt(e,1),qc(e,1,0))}function Au(e){for(;e===Ri;)Ri=Ml[--Ol],Ml[Ol]=null,En=Ml[--Ol],Ml[Ol]=null;for(;e===Ea;)Ea=wt[--zt],wt[zt]=null,Xt=wt[--zt],wt[zt]=null,Gt=wt[--zt],wt[zt]=null}function Yc(e,t){wt[zt++]=Gt,wt[zt++]=Xt,wt[zt++]=Ea,Gt=t.id,Xt=t.overflow,Ea=e}var We=null,Re=null,xe=!1,_a=null,Mt=!1,Cu=Error(r(519));function Ta(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _n(Ct(t,e)),Cu}function Gc(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[st]=l,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Vn.length;a++)pe(Vn[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),tc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),lc(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||sm(t.textContent,a)?(l.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),l.onScroll!=null&&pe("scroll",t),l.onScrollEnd!=null&&pe("scrollend",t),l.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||Ta(e,!0)}function Xc(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 Rl(e){if(e!==We)return!1;if(!xe)return Xc(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Zr(e.type,e.memoizedProps)),a=!a),a&&Re&&Ta(e),Xc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=pm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=pm(e)}else t===27?(t=Re,Ha(e.type)?(e=Wr,Wr=null,Re=e):Re=t):Re=We?Rt(e.stateNode.nextSibling):null;return!0}function al(){Re=We=null,xe=!1}function wu(){var e=_a;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),_a=null),e}function _n(e){_a===null?_a=[e]:_a.push(e)}var zu=_(null),ll=null,It=null;function Na(e,t,a){Z(zu,t._currentValue),t._currentValue=a}function Pt(e){e._currentValue=zu.current,R(zu)}function Mu(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 Ou(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var c=n.child;s=s.firstContext;e:for(;s!==null;){var p=s;s=n;for(var E=0;E<t.length;E++)if(p.context===t[E]){s.lanes|=a,p=s.alternate,p!==null&&(p.lanes|=a),Mu(s.return,a,e),l||(c=null);break e}s=p.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=a,s=c.alternate,s!==null&&(s.lanes|=a),Mu(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Dl(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 c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var p=n.type;yt(n.pendingProps.value,c.value)||(e!==null?e.push(p):e=[p])}}else if(n===Ne.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Fn):e=[Fn])}n=n.return}e!==null&&Ou(t,e,a,l),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nl(e){ll=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Qc(ll,e)}function Bi(e,t){return ll===null&&nl(e),Qc(e,t)}function Qc(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},It===null){if(e===null)throw Error(r(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return a}var dp=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()})}},mp=i.unstable_scheduleCallback,hp=i.unstable_NormalPriority,Xe={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ru(){return{controller:new dp,data:new Map,refCount:0}}function Tn(e){e.refCount--,e.refCount===0&&mp(hp,function(){e.controller.abort()})}var Nn=null,Du=0,Bl=0,Ul=null;function pp(e,t){if(Nn===null){var a=Nn=[];Du=0,Bl=Lr(),Ul={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Du++,t.then(Vc,Vc),t}function Vc(){if(--Du===0&&Nn!==null){Ul!==null&&(Ul.status="fulfilled");var e=Nn;Nn=null,Bl=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yp(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 Zc=D.S;D.S=function(e,t){zd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pp(e,t),Zc!==null&&Zc(e,t)};var il=_(null);function Bu(){var e=il.current;return e!==null?e:Me.pooledCache}function Ui(e,t){t===null?Z(il,il.current):Z(il,t.pool)}function Kc(){var e=Bu();return e===null?null:{parent:Xe._currentValue,pool:e}}var Ll=Error(r(460)),Uu=Error(r(474)),Li=Error(r(542)),Hi={then:function(){}};function Jc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $c(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Jt,Jt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wc(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,Wc(e),e}throw ul=t,Ll}}function sl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ul=a,Ll):a}}var ul=null;function Fc(){if(ul===null)throw Error(r(459));var e=ul;return ul=null,e}function Wc(e){if(e===Ll||e===Li)throw Error(r(483))}var Hl=null,jn=0;function ki(e){var t=jn;return jn+=1,Hl===null&&(Hl=[]),$c(Hl,e,t)}function An(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===j?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ic(e){function t(N,T){if(e){var A=N.deletions;A===null?(N.deletions=[T],N.flags|=16):A.push(T)}}function a(N,T){if(!e)return null;for(;T!==null;)t(N,T),T=T.sibling;return null}function l(N){for(var T=new Map;N!==null;)N.key!==null?T.set(N.key,N):T.set(N.index,N),N=N.sibling;return T}function n(N,T){return N=Ft(N,T),N.index=0,N.sibling=null,N}function s(N,T,A){return N.index=A,e?(A=N.alternate,A!==null?(A=A.index,A<T?(N.flags|=67108866,T):A):(N.flags|=67108866,T)):(N.flags|=1048576,T)}function c(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function p(N,T,A,G){return T===null||T.tag!==6?(T=Tu(A,N.mode,G),T.return=N,T):(T=n(T,A),T.return=N,T)}function E(N,T,A,G){var le=A.type;return le===H?L(N,T,A.props.children,G,A.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===V&&sl(le)===T.type)?(T=n(T,A.props),An(T,A),T.return=N,T):(T=Oi(A.type,A.key,A.props,null,N.mode,G),An(T,A),T.return=N,T)}function C(N,T,A,G){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Nu(A,N.mode,G),T.return=N,T):(T=n(T,A.children||[]),T.return=N,T)}function L(N,T,A,G,le){return T===null||T.tag!==7?(T=tl(A,N.mode,G,le),T.return=N,T):(T=n(T,A),T.return=N,T)}function X(N,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Tu(""+T,N.mode,A),T.return=N,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case z:return A=Oi(T.type,T.key,T.props,null,N.mode,A),An(A,T),A.return=N,A;case B:return T=Nu(T,N.mode,A),T.return=N,T;case V:return T=sl(T),X(N,T,A)}if(Oe(T)||ne(T))return T=tl(T,N.mode,A,null),T.return=N,T;if(typeof T.then=="function")return X(N,ki(T),A);if(T.$$typeof===M)return X(N,Bi(N,T),A);qi(N,T)}return null}function w(N,T,A,G){var le=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return le!==null?null:p(N,T,""+A,G);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case z:return A.key===le?E(N,T,A,G):null;case B:return A.key===le?C(N,T,A,G):null;case V:return A=sl(A),w(N,T,A,G)}if(Oe(A)||ne(A))return le!==null?null:L(N,T,A,G,null);if(typeof A.then=="function")return w(N,T,ki(A),G);if(A.$$typeof===M)return w(N,T,Bi(N,A),G);qi(N,A)}return null}function O(N,T,A,G,le){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return N=N.get(A)||null,p(T,N,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case z:return N=N.get(G.key===null?A:G.key)||null,E(T,N,G,le);case B:return N=N.get(G.key===null?A:G.key)||null,C(T,N,G,le);case V:return G=sl(G),O(N,T,A,G,le)}if(Oe(G)||ne(G))return N=N.get(A)||null,L(T,N,G,le,null);if(typeof G.then=="function")return O(N,T,A,ki(G),le);if(G.$$typeof===M)return O(N,T,A,Bi(T,G),le);qi(T,G)}return null}function I(N,T,A,G){for(var le=null,be=null,te=T,de=T=0,ve=null;te!==null&&de<A.length;de++){te.index>de?(ve=te,te=null):ve=te.sibling;var Se=w(N,te,A[de],G);if(Se===null){te===null&&(te=ve);break}e&&te&&Se.alternate===null&&t(N,te),T=s(Se,T,de),be===null?le=Se:be.sibling=Se,be=Se,te=ve}if(de===A.length)return a(N,te),xe&&Wt(N,de),le;if(te===null){for(;de<A.length;de++)te=X(N,A[de],G),te!==null&&(T=s(te,T,de),be===null?le=te:be.sibling=te,be=te);return xe&&Wt(N,de),le}for(te=l(te);de<A.length;de++)ve=O(te,N,de,A[de],G),ve!==null&&(e&&ve.alternate!==null&&te.delete(ve.key===null?de:ve.key),T=s(ve,T,de),be===null?le=ve:be.sibling=ve,be=ve);return e&&te.forEach(function(Xa){return t(N,Xa)}),xe&&Wt(N,de),le}function se(N,T,A,G){if(A==null)throw Error(r(151));for(var le=null,be=null,te=T,de=T=0,ve=null,Se=A.next();te!==null&&!Se.done;de++,Se=A.next()){te.index>de?(ve=te,te=null):ve=te.sibling;var Xa=w(N,te,Se.value,G);if(Xa===null){te===null&&(te=ve);break}e&&te&&Xa.alternate===null&&t(N,te),T=s(Xa,T,de),be===null?le=Xa:be.sibling=Xa,be=Xa,te=ve}if(Se.done)return a(N,te),xe&&Wt(N,de),le;if(te===null){for(;!Se.done;de++,Se=A.next())Se=X(N,Se.value,G),Se!==null&&(T=s(Se,T,de),be===null?le=Se:be.sibling=Se,be=Se);return xe&&Wt(N,de),le}for(te=l(te);!Se.done;de++,Se=A.next())Se=O(te,N,de,Se.value,G),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?de:Se.key),T=s(Se,T,de),be===null?le=Se:be.sibling=Se,be=Se);return e&&te.forEach(function(Ay){return t(N,Ay)}),xe&&Wt(N,de),le}function ze(N,T,A,G){if(typeof A=="object"&&A!==null&&A.type===H&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case z:e:{for(var le=A.key;T!==null;){if(T.key===le){if(le=A.type,le===H){if(T.tag===7){a(N,T.sibling),G=n(T,A.props.children),G.return=N,N=G;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===V&&sl(le)===T.type){a(N,T.sibling),G=n(T,A.props),An(G,A),G.return=N,N=G;break e}a(N,T);break}else t(N,T);T=T.sibling}A.type===H?(G=tl(A.props.children,N.mode,G,A.key),G.return=N,N=G):(G=Oi(A.type,A.key,A.props,null,N.mode,G),An(G,A),G.return=N,N=G)}return c(N);case B:e:{for(le=A.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){a(N,T.sibling),G=n(T,A.children||[]),G.return=N,N=G;break e}else{a(N,T);break}else t(N,T);T=T.sibling}G=Nu(A,N.mode,G),G.return=N,N=G}return c(N);case V:return A=sl(A),ze(N,T,A,G)}if(Oe(A))return I(N,T,A,G);if(ne(A)){if(le=ne(A),typeof le!="function")throw Error(r(150));return A=le.call(A),se(N,T,A,G)}if(typeof A.then=="function")return ze(N,T,ki(A),G);if(A.$$typeof===M)return ze(N,T,Bi(N,A),G);qi(N,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(a(N,T.sibling),G=n(T,A),G.return=N,N=G):(a(N,T),G=Tu(A,N.mode,G),G.return=N,N=G),c(N)):a(N,T)}return function(N,T,A,G){try{jn=0;var le=ze(N,T,A,G);return Hl=null,le}catch(te){if(te===Ll||te===Li)throw te;var be=gt(29,te,null,N.mode);return be.lanes=G,be.return=N,be}finally{}}}var rl=Ic(!0),Pc=Ic(!1),ja=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hu(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 Aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(_e&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Mi(e),Uc(e,null,a),t}return zi(e,l,t,a),Mi(e)}function Cn(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,Qo(e,a)}}function ku(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 c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=c:s=s.next=c,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 qu=!1;function wn(){if(qu){var e=Ul;if(e!==null)throw e}}function zn(e,t,a,l){qu=!1;var n=e.updateQueue;ja=!1;var s=n.firstBaseUpdate,c=n.lastBaseUpdate,p=n.shared.pending;if(p!==null){n.shared.pending=null;var E=p,C=E.next;E.next=null,c===null?s=C:c.next=C,c=E;var L=e.alternate;L!==null&&(L=L.updateQueue,p=L.lastBaseUpdate,p!==c&&(p===null?L.firstBaseUpdate=C:p.next=C,L.lastBaseUpdate=E))}if(s!==null){var X=n.baseState;c=0,L=C=E=null,p=s;do{var w=p.lane&-536870913,O=w!==p.lane;if(O?(ge&w)===w:(l&w)===w){w!==0&&w===Bl&&(qu=!0),L!==null&&(L=L.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var I=e,se=p;w=t;var ze=a;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){X=I.call(ze,X,w);break e}X=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,w=typeof I=="function"?I.call(ze,X,w):I,w==null)break e;X=x({},X,w);break e;case 2:ja=!0}}w=p.callback,w!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[w]:O.push(w))}else O={lane:w,tag:p.tag,payload:p.payload,callback:p.callback,next:null},L===null?(C=L=O,E=X):L=L.next=O,c|=w;if(p=p.next,p===null){if(p=n.shared.pending,p===null)break;O=p,p=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);L===null&&(E=X),n.baseState=E,n.firstBaseUpdate=C,n.lastBaseUpdate=L,s===null&&(n.shared.lanes=0),Ra|=c,e.lanes=c,e.memoizedState=X}}function ef(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function tf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ef(a[e],t)}var kl=_(null),Yi=_(0);function af(e,t){e=ra,Z(Yi,e),Z(kl,t),ra=e|t.baseLanes}function Yu(){Z(Yi,ra),Z(kl,kl.current)}function Gu(){ra=Yi.current,R(kl),R(Yi)}var vt=_(null),Ot=null;function wa(e){var t=e.alternate;Z(Ye,Ye.current&1),Z(vt,e),Ot===null&&(t===null||kl.current!==null||t.memoizedState!==null)&&(Ot=e)}function Xu(e){Z(Ye,Ye.current),Z(vt,e),Ot===null&&(Ot=e)}function lf(e){e.tag===22?(Z(Ye,Ye.current),Z(vt,e),Ot===null&&(Ot=e)):za()}function za(){Z(Ye,Ye.current),Z(vt,vt.current)}function xt(e){R(vt),Ot===e&&(Ot=null),R(Ye)}var Ye=_(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||$r(a)||Fr(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 ea=0,fe=null,Ce=null,Qe=null,Xi=!1,ql=!1,ol=!1,Qi=0,Mn=0,Yl=null,gp=0;function He(){throw Error(r(321))}function Qu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!yt(e[a],t[a]))return!1;return!0}function Vu(e,t,a,l,n,s){return ea=s,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Yf:sr,ol=!1,s=a(l,n),ol=!1,ql&&(s=sf(t,a,l,n)),nf(e),s}function nf(e){D.H=Dn;var t=Ce!==null&&Ce.next!==null;if(ea=0,Qe=Ce=fe=null,Xi=!1,Mn=0,Yl=null,t)throw Error(r(300));e===null||Ve||(e=e.dependencies,e!==null&&Di(e)&&(Ve=!0))}function sf(e,t,a,l){fe=e;var n=0;do{if(ql&&(Yl=null),Mn=0,ql=!1,25<=n)throw Error(r(301));if(n+=1,Qe=Ce=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=Gf,s=t(a,l)}while(ql);return s}function vp(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?On(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(fe.flags|=1024),t}function Zu(){var e=Qi!==0;return Qi=0,e}function Ku(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ju(e){if(Xi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xi=!1}ea=0,Qe=Ce=fe=null,ql=!1,Mn=Qi=0,Yl=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?fe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(Ce===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?fe.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw fe.alternate===null?Error(r(467)):Error(r(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?fe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function On(e){var t=Mn;return Mn+=1,Yl===null&&(Yl=[]),e=$c(Yl,e,t),t=fe,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Yf:sr),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return On(e);if(e.$$typeof===M)return Ie(e)}throw Error(r(438,String(e)))}function $u(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=fe.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=Vi(),fe.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 ta(e,t){return typeof t=="function"?t(e):t}function Ki(e){var t=Ge();return Fu(t,Ce,e)}function Fu(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var n=e.baseQueue,s=l.pending;if(s!==null){if(n!==null){var c=n.next;n.next=s.next,s.next=c}t.baseQueue=n=s,l.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var p=c=null,E=null,C=t,L=!1;do{var X=C.lane&-536870913;if(X!==C.lane?(ge&X)===X:(ea&X)===X){var w=C.revertLane;if(w===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),X===Bl&&(L=!0);else if((ea&w)===w){C=C.next,w===Bl&&(L=!0);continue}else X={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(p=E=X,c=s):E=E.next=X,fe.lanes|=w,Ra|=w;X=C.action,ol&&a(s,X),s=C.hasEagerState?C.eagerState:a(s,X)}else w={lane:X,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(p=E=w,c=s):E=E.next=w,fe.lanes|=X,Ra|=X;C=C.next}while(C!==null&&C!==t);if(E===null?c=s:E.next=p,!yt(s,e.memoizedState)&&(Ve=!0,L&&(a=Ul,a!==null)))throw a;e.memoizedState=s,e.baseState=c,e.baseQueue=E,l.lastRenderedState=s}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wu(e){var t=Ge(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,s=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do s=e(s,c.action),c=c.next;while(c!==n);yt(s,t.memoizedState)||(Ve=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function uf(e,t,a){var l=fe,n=Ge(),s=xe;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=t();var c=!yt((Ce||n).memoizedState,a);if(c&&(n.memoizedState=a,Ve=!0),n=n.queue,er(cf.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,Gl(9,{destroy:void 0},of.bind(null,l,n,a,t),null),Me===null)throw Error(r(349));s||(ea&127)!==0||rf(l,t,a)}return a}function rf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=Vi(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function of(e,t,a,l){t.value=a,t.getSnapshot=l,ff(t)&&df(e)}function cf(e,t,a){return a(function(){ff(t)&&df(e)})}function ff(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!yt(e,a)}catch{return!0}}function df(e){var t=el(e,2);t!==null&&dt(t,e,2)}function Iu(e){var t=nt();if(typeof e=="function"){var a=e;if(e=a(),ol){xa(!0);try{a()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function mf(e,t,a,l){return e.baseState=a,Fu(e,Ce,typeof l=="function"?l:ta)}function xp(e,t,a,l,n){if(Fi(e))throw Error(r(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(c){s.listeners.push(c)}};D.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,hf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function hf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var s=D.T,c={};D.T=c;try{var p=a(n,l),E=D.S;E!==null&&E(c,p),pf(e,t,p)}catch(C){Pu(e,t,C)}finally{s!==null&&c.types!==null&&(s.types=c.types),D.T=s}}else try{s=a(n,l),pf(e,t,s)}catch(C){Pu(e,t,C)}}function pf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){yf(e,t,l)},function(l){return Pu(e,t,l)}):yf(e,t,a)}function yf(e,t,a){t.status="fulfilled",t.value=a,gf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hf(e,a)))}function Pu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,gf(t),t=t.next;while(t!==l)}e.action=null}function gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vf(e,t){return t}function xf(e,t){if(xe){var a=Me.formState;if(a!==null){e:{var l=fe;if(xe){if(Re){t:{for(var n=Re,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){Re=Rt(n.nextSibling),l=n.data==="F!";break e}}Ta(l)}l=!1}l&&(t=a[0])}}return a=nt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vf,lastRenderedState:t},a.queue=l,a=Hf.bind(null,fe,l),l.dispatch=a,l=Iu(!1),s=ir.bind(null,fe,!1,l.queue),l=nt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=xp.bind(null,fe,n,s,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function bf(e){var t=Ge();return Sf(t,Ce,e)}function Sf(e,t,a){if(t=Fu(e,t,vf)[0],e=Ki(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=On(t)}catch(c){throw c===Ll?Li:c}else l=t;t=Ge();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Gl(9,{destroy:void 0},bp.bind(null,n,a),null)),[l,s,e]}function bp(e,t){e.action=t}function Ef(e){var t=Ge(),a=Ce;if(a!==null)return Sf(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Gl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Vi(),fe.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 _f(){return Ge().memoizedState}function Ji(e,t,a,l){var n=nt();fe.flags|=e,n.memoizedState=Gl(1|t,{destroy:void 0},a,l===void 0?null:l)}function $i(e,t,a,l){var n=Ge();l=l===void 0?null:l;var s=n.memoizedState.inst;Ce!==null&&l!==null&&Qu(l,Ce.memoizedState.deps)?n.memoizedState=Gl(t,s,a,l):(fe.flags|=e,n.memoizedState=Gl(1|t,s,a,l))}function Tf(e,t){Ji(8390656,8,e,t)}function er(e,t){$i(2048,8,e,t)}function Sp(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Vi(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Nf(e){var t=Ge().memoizedState;return Sp({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function jf(e,t){return $i(4,2,e,t)}function Af(e,t){return $i(4,4,e,t)}function Cf(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 wf(e,t,a){a=a!=null?a.concat([e]):null,$i(4,4,Cf.bind(null,t,e),a)}function tr(){}function zf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Mf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qu(t,l[1]))return l[0];if(l=e(),ol){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l}function ar(e,t,a){return a===void 0||(ea&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Od(),fe.lanes|=e,Ra|=e,a)}function Of(e,t,a,l){return yt(a,t)?a:kl.current!==null?(e=ar(e,a,l),yt(e,t)||(Ve=!0),e):(ea&42)===0||(ea&1073741824)!==0&&(ge&261930)===0?(Ve=!0,e.memoizedState=a):(e=Od(),fe.lanes|=e,Ra|=e,t)}function Rf(e,t,a,l,n){var s=J.p;J.p=s!==0&&8>s?s:8;var c=D.T,p={};D.T=p,ir(e,!1,t,a);try{var E=n(),C=D.S;if(C!==null&&C(p,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var L=yp(E,l);Rn(e,t,L,Et(e))}else Rn(e,t,l,Et(e))}catch(X){Rn(e,t,{then:function(){},status:"rejected",reason:X},Et())}finally{J.p=s,c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}function Ep(){}function lr(e,t,a,l){if(e.tag!==5)throw Error(r(476));var n=Df(e).queue;Rf(e,n,t,ae,a===null?Ep:function(){return Bf(e),a(l)})}function Df(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bf(e){var t=Df(e);t.next===null&&(t=e.alternate.memoizedState),Rn(e,t.next.queue,{},Et())}function nr(){return Ie(Fn)}function Uf(){return Ge().memoizedState}function Lf(){return Ge().memoizedState}function _p(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Aa(a);var l=Ca(t,e,a);l!==null&&(dt(l,t,a),Cn(l,t,a)),t={cache:Ru()},e.payload=t;return}t=t.return}}function Tp(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fi(e)?kf(t,a):(a=Eu(e,t,a,l),a!==null&&(dt(a,e,l),qf(a,t,l)))}function Hf(e,t,a){var l=Et();Rn(e,t,a,l)}function Rn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fi(e))kf(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,p=s(c,a);if(n.hasEagerState=!0,n.eagerState=p,yt(p,c))return zi(e,t,n,0),Me===null&&wi(),!1}catch{}finally{}if(a=Eu(e,t,n,l),a!==null)return dt(a,e,l),qf(a,t,l),!0}return!1}function ir(e,t,a,l){if(l={lane:2,revertLane:Lr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Fi(e)){if(t)throw Error(r(479))}else t=Eu(e,a,l,2),t!==null&&dt(t,e,2)}function Fi(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function kf(e,t){ql=Xi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Qo(e,a)}}var Dn={readContext:Ie,use:Zi,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};Dn.useEffectEvent=He;var Yf={readContext:Ie,use:Zi,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Tf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ji(4194308,4,Cf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var a=nt();t=t===void 0?null:t;var l=e();if(ol){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=nt();if(a!==void 0){var n=a(t);if(ol){xa(!0);try{a(t)}finally{xa(!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=Tp.bind(null,fe,e),[l.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Iu(e);var t=e.queue,a=Hf.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:tr,useDeferredValue:function(e,t){var a=nt();return ar(a,e,t)},useTransition:function(){var e=Iu(!1);return e=Rf.bind(null,fe,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=fe,n=nt();if(xe){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Me===null)throw Error(r(349));(ge&127)!==0||rf(l,t,a)}n.memoizedState=a;var s={value:a,getSnapshot:t};return n.queue=s,Tf(cf.bind(null,l,s,e),[e]),l.flags|=2048,Gl(9,{destroy:void 0},of.bind(null,l,s,a,t),null),a},useId:function(){var e=nt(),t=Me.identifierPrefix;if(xe){var a=Xt,l=Gt;a=(l&~(1<<32-pt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=gp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nr,useFormState:xf,useActionState:xf,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=ir.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:$u,useCacheRefresh:function(){return nt().memoizedState=_p.bind(null,fe)},useEffectEvent:function(e){var t=nt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},sr={readContext:Ie,use:Zi,useCallback:zf,useContext:Ie,useEffect:er,useImperativeHandle:wf,useInsertionEffect:jf,useLayoutEffect:Af,useMemo:Mf,useReducer:Ki,useRef:_f,useState:function(){return Ki(ta)},useDebugValue:tr,useDeferredValue:function(e,t){var a=Ge();return Of(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Ki(ta)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:uf,useId:Uf,useHostTransitionStatus:nr,useFormState:bf,useActionState:bf,useOptimistic:function(e,t){var a=Ge();return mf(a,Ce,e,t)},useMemoCache:$u,useCacheRefresh:Lf};sr.useEffectEvent=Nf;var Gf={readContext:Ie,use:Zi,useCallback:zf,useContext:Ie,useEffect:er,useImperativeHandle:wf,useInsertionEffect:jf,useLayoutEffect:Af,useMemo:Mf,useReducer:Wu,useRef:_f,useState:function(){return Wu(ta)},useDebugValue:tr,useDeferredValue:function(e,t){var a=Ge();return Ce===null?ar(a,e,t):Of(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Wu(ta)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:On(e),t]},useSyncExternalStore:uf,useId:Uf,useHostTransitionStatus:nr,useFormState:Ef,useActionState:Ef,useOptimistic:function(e,t){var a=Ge();return Ce!==null?mf(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:$u,useCacheRefresh:Lf};Gf.useEffectEvent=Nf;function ur(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 rr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Aa(l);n.payload=t,a!=null&&(n.callback=a),t=Ca(e,n,l),t!==null&&(dt(t,e,l),Cn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Aa(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ca(e,n,l),t!==null&&(dt(t,e,l),Cn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Aa(a);l.tag=2,t!=null&&(l.callback=t),t=Ca(e,l,a),t!==null&&(dt(t,e,a),Cn(t,e,a))}};function Xf(e,t,a,l,n,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,c):t.prototype&&t.prototype.isPureReactComponent?!bn(a,l)||!bn(n,s):!0}function Qf(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&&rr.enqueueReplaceState(t,t.state,null)}function cl(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 Vf(e){Ci(e)}function Zf(e){console.error(e)}function Kf(e){Ci(e)}function Wi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Jf(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 or(e,t,a){return a=Aa(a),a.tag=3,a.payload={element:null},a.callback=function(){Wi(e,t)},a}function $f(e){return e=Aa(e),e.tag=3,e}function Ff(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(){Jf(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Jf(t,a,l),typeof n!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function Np(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Dl(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return Ot===null?os():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Dr(e,l,n)),!1;case 22:return a.flags|=65536,l===Hi?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)),Dr(e,l,n)),!1}throw Error(r(435,a.tag))}return Dr(e,l,n),os(),!1}if(xe)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Cu&&(e=Error(r(422),{cause:l}),_n(Ct(e,a)))):(l!==Cu&&(t=Error(r(423),{cause:l}),_n(Ct(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Ct(l,a),n=or(e.stateNode,l,n),ku(e,n),ke!==4&&(ke=2)),!1;var s=Error(r(520),{cause:l});if(s=Ct(s,a),Gn===null?Gn=[s]:Gn.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=or(a.stateNode,l,e),ku(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"&&(Da===null||!Da.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=$f(n),Ff(n,e,a,l),ku(a,n),!1}a=a.return}while(a!==null);return!1}var cr=Error(r(461)),Ve=!1;function Pe(e,t,a,l){t.child=e===null?Pc(t,null,a,l):rl(t,e.child,a,l)}function Wf(e,t,a,l,n){a=a.render;var s=t.ref;if("ref"in l){var c={};for(var p in l)p!=="ref"&&(c[p]=l[p])}else c=l;return nl(t),l=Vu(e,t,a,c,s,n),p=Zu(),e!==null&&!Ve?(Ku(e,t,n),aa(e,t,n)):(xe&&p&&ju(t),t.flags|=1,Pe(e,t,l,n),t.child)}function If(e,t,a,l,n){if(e===null){var s=a.type;return typeof s=="function"&&!_u(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Pf(e,t,s,l,n)):(e=Oi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!vr(e,n)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:bn,a(c,l)&&e.ref===t.ref)return aa(e,t,n)}return t.flags|=1,e=Ft(s,l),e.ref=t.ref,e.return=t,t.child=e}function Pf(e,t,a,l,n){if(e!==null){var s=e.memoizedProps;if(bn(s,l)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=l=s,vr(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,aa(e,t,n)}return fr(e,t,a,l,n)}function ed(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 td(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(t,s!==null?s.cachePool:null),s!==null?af(t,s):Yu(),lf(t);else return l=t.lanes=536870912,td(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Ui(t,s.cachePool),af(t,s),za(),t.memoizedState=null):(e!==null&&Ui(t,null),Yu(),za());return Pe(e,t,n,a),t.child}function Bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function td(e,t,a,l,n){var s=Bu();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Ui(t,null),Yu(),lf(t),e!==null&&Dl(e,t,l,!0),t.childLanes=n,null}function Ii(e,t){return t=es({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ad(e,t,a){return rl(t,e.child,null,a),e=Ii(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function jp(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=Ii(t,l),t.lanes=536870912,Bn(null,e);if(Xu(t),(e=Re)?(e=hm(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},a=Hc(e),a.return=t,t.child=a,We=t,Re=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return Ii(t,l)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(Xu(t),n)if(t.flags&256)t.flags&=-257,t=ad(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ve||Dl(e,t,a,!1),n=(a&e.childLanes)!==0,Ve||n){if(l=Me,l!==null&&(c=Vo(l,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,el(e,c),dt(l,e,c),cr;os(),t=ad(e,t,a)}else e=s.treeContext,Re=Rt(c.nextSibling),We=t,xe=!0,_a=null,Mt=!1,e!==null&&Yc(t,e),t=Ii(t,l),t.flags|=4096;return t}return e=Ft(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Pi(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(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function fr(e,t,a,l,n){return nl(t),a=Vu(e,t,a,l,void 0,n),l=Zu(),e!==null&&!Ve?(Ku(e,t,n),aa(e,t,n)):(xe&&l&&ju(t),t.flags|=1,Pe(e,t,a,n),t.child)}function ld(e,t,a,l,n,s){return nl(t),t.updateQueue=null,a=sf(t,l,a,n),nf(e),l=Zu(),e!==null&&!Ve?(Ku(e,t,s),aa(e,t,s)):(xe&&l&&ju(t),t.flags|=1,Pe(e,t,a,s),t.child)}function nd(e,t,a,l,n){if(nl(t),t.stateNode===null){var s=zl,c=a.contextType;typeof c=="object"&&c!==null&&(s=Ie(c)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=rr,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Lu(t),c=a.contextType,s.context=typeof c=="object"&&c!==null?Ie(c):zl,s.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(ur(t,a,c,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&rr.enqueueReplaceState(s,s.state,null),zn(t,l,s,n),wn(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var p=t.memoizedProps,E=cl(a,p);s.props=E;var C=s.context,L=a.contextType;c=zl,typeof L=="object"&&L!==null&&(c=Ie(L));var X=a.getDerivedStateFromProps;L=typeof X=="function"||typeof s.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,L||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p||C!==c)&&Qf(t,s,l,c),ja=!1;var w=t.memoizedState;s.state=w,zn(t,l,s,n),wn(),C=t.memoizedState,p||w!==C||ja?(typeof X=="function"&&(ur(t,a,X,l),C=t.memoizedState),(E=ja||Xf(t,a,E,l,w,C,c))?(L||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=C),s.props=l,s.state=C,s.context=c,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Hu(e,t),c=t.memoizedProps,L=cl(a,c),s.props=L,X=t.pendingProps,w=s.context,C=a.contextType,E=zl,typeof C=="object"&&C!==null&&(E=Ie(C)),p=a.getDerivedStateFromProps,(C=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==X||w!==E)&&Qf(t,s,l,E),ja=!1,w=t.memoizedState,s.state=w,zn(t,l,s,n),wn();var O=t.memoizedState;c!==X||w!==O||ja||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof p=="function"&&(ur(t,a,p,l),O=t.memoizedState),(L=ja||Xf(t,a,L,l,w,O,E)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,O,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,O,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=E,l=L):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Pi(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=rl(t,e.child,null,n),t.child=rl(t,null,a,n)):Pe(e,t,a,n),t.memoizedState=s.state,e=t.child):e=aa(e,t,n),e}function id(e,t,a,l){return al(),t.flags|=256,Pe(e,t,a,l),t.child}var dr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mr(e){return{baseLanes:e,cachePool:Kc()}}function hr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function sd(e,t,a){var l=t.pendingProps,n=!1,s=(t.flags&128)!==0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(n?wa(t):za(),(e=Re)?(e=hm(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},a=Hc(e),a.return=t,t.child=a,We=t,Re=null)):e=null,e===null)throw Ta(t);return Fr(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,n?(za(),n=t.mode,p=es({mode:"hidden",children:p},n),l=tl(l,n,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=mr(a),l.childLanes=hr(e,c,a),t.memoizedState=dr,Bn(null,l)):(wa(t),pr(t,p))}var E=e.memoizedState;if(E!==null&&(p=E.dehydrated,p!==null)){if(s)t.flags&256?(wa(t),t.flags&=-257,t=yr(e,t,a)):t.memoizedState!==null?(za(),t.child=e.child,t.flags|=128,t=null):(za(),p=l.fallback,n=t.mode,l=es({mode:"visible",children:l.children},n),p=tl(p,n,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,rl(t,e.child,null,a),l=t.child,l.memoizedState=mr(a),l.childLanes=hr(e,c,a),t.memoizedState=dr,t=Bn(null,l));else if(wa(t),Fr(p)){if(c=p.nextSibling&&p.nextSibling.dataset,c)var C=c.dgst;c=C,l=Error(r(419)),l.stack="",l.digest=c,_n({value:l,source:null,stack:null}),t=yr(e,t,a)}else if(Ve||Dl(e,t,a,!1),c=(a&e.childLanes)!==0,Ve||c){if(c=Me,c!==null&&(l=Vo(c,a),l!==0&&l!==E.retryLane))throw E.retryLane=l,el(e,l),dt(c,e,l),cr;$r(p)||os(),t=yr(e,t,a)}else $r(p)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Re=Rt(p.nextSibling),We=t,xe=!0,_a=null,Mt=!1,e!==null&&Yc(t,e),t=pr(t,l.children),t.flags|=4096);return t}return n?(za(),p=l.fallback,n=t.mode,E=e.child,C=E.sibling,l=Ft(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,C!==null?p=Ft(C,p):(p=tl(p,n,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Bn(null,l),l=t.child,p=e.child.memoizedState,p===null?p=mr(a):(n=p.cachePool,n!==null?(E=Xe._currentValue,n=n.parent!==E?{parent:E,pool:E}:n):n=Kc(),p={baseLanes:p.baseLanes|a,cachePool:n}),l.memoizedState=p,l.childLanes=hr(e,c,a),t.memoizedState=dr,Bn(e.child,l)):(wa(t),a=e.child,e=a.sibling,a=Ft(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function pr(e,t){return t=es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function es(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function yr(e,t,a){return rl(t,e.child,null,a),e=pr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ud(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Mu(e.return,t,a)}function gr(e,t,a,l,n,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=s)}function rd(e,t,a){var l=t.pendingProps,n=l.revealOrder,s=l.tail;l=l.children;var c=Ye.current,p=(c&2)!==0;if(p?(c=c&1|2,t.flags|=128):c&=1,Z(Ye,c),Pe(e,t,l,a),l=xe?En:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ud(e,a,t);else if(e.tag===19)ud(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&&Gi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),gr(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&&Gi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}gr(t,!0,a,null,s,l);break;case"together":gr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function aa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ra|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Dl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=Ft(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ft(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function Ap(e,t,a){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),Na(t,Xe,e.memoizedState.cache),al();break;case 27:case 5:un(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?sd(e,t,a):(wa(t),e=aa(e,t,a),e!==null?e.sibling:null);wa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Dl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return rd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,ed(e,t,a,t.pendingProps);case 24:Na(t,Xe,e.memoizedState.cache)}return aa(e,t,a)}function od(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!vr(e,a)&&(t.flags&128)===0)return Ve=!1,Ap(e,t,a);Ve=(e.flags&131072)!==0}else Ve=!1,xe&&(t.flags&1048576)!==0&&qc(t,En,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=sl(t.elementType),t.type=e,typeof e=="function")_u(e)?(l=cl(e,l),t.tag=1,t=nd(null,t,e,l,a)):(t.tag=0,t=fr(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===K){t.tag=11,t=Wf(null,t,e,l,a);break e}else if(n===k){t.tag=14,t=If(null,t,e,l,a);break e}}throw t=Te(e)||e,Error(r(306,t,""))}}return t;case 0:return fr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=cl(l,t.pendingProps),nd(e,t,l,n,a);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;n=s.element,Hu(e,t),zn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Na(t,Xe,l),l!==s.cache&&Ou(t,[Xe],a,!0),wn(),l=c.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=id(e,t,l,a);break e}else if(l!==n){n=Ct(Error(r(424)),t),_n(n),t=id(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(Re=Rt(e.firstChild),We=t,xe=!0,_a=null,Mt=!0,a=Pc(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(al(),l===n){t=aa(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return Pi(e,t),e===null?(a=bm(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=ys(me.current).createElement(a),l[Fe]=t,l[st]=e,et(l,a,e),Je(l),t.stateNode=l):t.memoizedState=bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return un(t),e===null&&xe&&(l=t.stateNode=gm(t.type,t.pendingProps,me.current),We=t,Mt=!0,n=Re,Ha(t.type)?(Wr=n,Re=Rt(l.firstChild)):Re=n),Pe(e,t,t.pendingProps.children,a),Pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((n=l=Re)&&(l=ly(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,We=t,Re=Rt(l.firstChild),Mt=!1,n=!0):n=!1),n||Ta(t)),un(t),n=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,l=s.children,Zr(n,s)?l=null:c!==null&&Zr(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Vu(e,t,vp,null,null,a),Fn._currentValue=n),Pi(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Re)&&(a=ny(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,We=t,Re=null,e=!0):e=!1),e||Ta(t)),null;case 13:return sd(e,t,a);case 4:return lt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=rl(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return Wf(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,Na(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,nl(t),n=Ie(n),l=l(n),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return If(e,t,t.type,t.pendingProps,a);case 15:return Pf(e,t,t.type,t.pendingProps,a);case 19:return rd(e,t,a);case 31:return jp(e,t,a);case 22:return ed(e,t,a,t.pendingProps);case 24:return nl(t),l=Ie(Xe),e===null?(n=Bu(),n===null&&(n=Me,s=Ru(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:l,cache:n},Lu(t),Na(t,Xe,n)):((e.lanes&a)!==0&&(Hu(e,t),zn(t,null,null,a),wn()),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),Na(t,Xe,l)):(l=s.cache,Na(t,Xe,l),l!==n.cache&&Ou(t,[Xe],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function la(e){e.flags|=4}function xr(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(Ud())e.flags|=8192;else throw ul=Hi,Uu}else e.flags&=-16777217}function cd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(Ud())e.flags|=8192;else throw ul=Hi,Uu}function ts(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Go():536870912,e.lanes|=t,Zl|=t)}function Un(e,t){if(!xe)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 De(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 Cp(e,t,a){var l=t.pendingProps;switch(Au(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Xe),qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?la(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wu())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(la(t),s!==null?(De(t),cd(t,s)):(De(t),xr(t,n,null,l,a))):s?s!==e.memoizedState?(la(t),De(t),cd(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&la(t),De(t),xr(t,n,e,l,a)),null;case 27:if(di(t),a=me.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return De(t),null}e=F.current,Rl(t)?Gc(t):(e=gm(n,l,a),t.stateNode=e,la(t))}return De(t),null;case 5:if(di(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return De(t),null}if(s=F.current,Rl(t))Gc(t);else{var c=ys(me.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}s[Fe]=t,s[st]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.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&&la(t)}}return De(t),xr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=me.current,Rl(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||sm(e.nodeValue,a)),e||Ta(t,!0)}else e=ys(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return De(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Rl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Fe]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else a=wu(),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(r(558))}return De(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Rl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Fe]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=wu(),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),ts(t,t.updateQueue),De(t),null);case 4:return qe(),e===null&&Yr(t.stateNode.containerInfo),De(t),null;case 10:return Pt(t.type),De(t),null;case 19:if(R(Ye),l=t.memoizedState,l===null)return De(t),null;if(n=(t.flags&128)!==0,s=l.rendering,s===null)if(n)Un(l,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gi(e),s!==null){for(t.flags|=128,Un(l,!1),e=s.updateQueue,t.updateQueue=e,ts(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Lc(a,e),a=a.sibling;return Z(Ye,Ye.current&1|2),xe&&Wt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&mt()>ss&&(t.flags|=128,n=!0,Un(l,!1),t.lanes=4194304)}else{if(!n)if(e=Gi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,ts(t,e),Un(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!xe)return De(t),null}else 2*mt()-l.renderingStartTime>ss&&a!==536870912&&(t.flags|=128,n=!0,Un(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,Z(Ye,n?a&1|2:a&1),xe&&Wt(t,l.treeForkCount),e):(De(t),null);case 22:case 23:return xt(t),Gu(),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&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),a=t.updateQueue,a!==null&&ts(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&&R(il),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Xe),De(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function wp(e,t){switch(Au(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(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 di(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));al()}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(r(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Ye),null;case 4:return qe(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),Gu(),e!==null&&R(il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Xe),null;case 25:return null;default:return null}}function fd(e,t){switch(Au(t),t.tag){case 3:Pt(Xe),qe();break;case 26:case 27:case 5:di(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:R(Ye);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),Gu(),e!==null&&R(il);break;case 24:Pt(Xe)}}function Ln(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,c=a.inst;l=s(),c.destroy=l}a=a.next}while(a!==n)}}catch(p){Ae(t,t.return,p)}}function Ma(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 c=l.inst,p=c.destroy;if(p!==void 0){c.destroy=void 0,n=t;var E=a,C=p;try{C()}catch(L){Ae(n,E,L)}}}l=l.next}while(l!==s)}}catch(L){Ae(t,t.return,L)}}function dd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{tf(t,a)}catch(l){Ae(e,e.return,l)}}}function md(e,t,a){a.props=cl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function Hn(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){Ae(e,t,n)}}function Qt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Ae(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){Ae(e,t,n)}else a.current=null}function hd(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){Ae(e,e.return,n)}}function br(e,t,a){try{var l=e.stateNode;Wp(l,e.type,a,t),l[st]=t}catch(n){Ae(e,e.return,n)}}function pd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function Sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pd(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&&Ha(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 Er(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=Jt));else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Er(e,t,a),e=e.sibling;e!==null;)Er(e,t,a),e=e.sibling}function as(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&&Ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(as(e,t,a),e=e.sibling;e!==null;)as(e,t,a),e=e.sibling}function yd(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){Ae(e,e.return,s)}}var na=!1,Ze=!1,_r=!1,gd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function zp(e,t){if(e=e.containerInfo,Qr=_s,e=Cc(e),yu(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 c=0,p=-1,E=-1,C=0,L=0,X=e,w=null;t:for(;;){for(var O;X!==a||n!==0&&X.nodeType!==3||(p=c+n),X!==s||l!==0&&X.nodeType!==3||(E=c+l),X.nodeType===3&&(c+=X.nodeValue.length),(O=X.firstChild)!==null;)w=X,X=O;for(;;){if(X===e)break t;if(w===a&&++C===n&&(p=c),w===s&&++L===l&&(E=c),(O=X.nextSibling)!==null)break;X=w,w=X.parentNode}X=O}a=p===-1||E===-1?null:{start:p,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(Vr={focusedElem:e,selectionRange:a},_s=!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=cl(a.type,n);e=l.getSnapshotBeforeUpdate(I,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ae(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Jr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function vd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:sa(e,a),l&4&&Ln(5,a);break;case 1:if(sa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Ae(a,a.return,c)}else{var n=cl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ae(a,a.return,c)}}l&64&&dd(a),l&512&&Hn(a,a.return);break;case 3:if(sa(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{tf(e,t)}catch(c){Ae(a,a.return,c)}}break;case 27:t===null&&l&4&&yd(a);case 26:case 5:sa(e,a),t===null&&l&4&&hd(a),l&512&&Hn(a,a.return);break;case 12:sa(e,a);break;case 31:sa(e,a),l&4&&Sd(e,a);break;case 13:sa(e,a),l&4&&Ed(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=kp.bind(null,a),iy(e,a))));break;case 22:if(l=a.memoizedState!==null||na,!l){t=t!==null&&t.memoizedState!==null||Ze,n=na;var s=Ze;na=l,(Ze=t)&&!s?ua(e,a,(a.subtreeFlags&8772)!==0):sa(e,a),na=n,Ze=s}break;case 30:break;default:sa(e,a)}}function xd(e){var t=e.alternate;t!==null&&(e.alternate=null,xd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ps(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 Ue=null,rt=!1;function ia(e,t,a){for(a=a.child;a!==null;)bd(e,t,a),a=a.sibling}function bd(e,t,a){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(rn,a)}catch{}switch(a.tag){case 26:Ze||Qt(a,t),ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ze||Qt(a,t);var l=Ue,n=rt;Ha(a.type)&&(Ue=a.stateNode,rt=!1),ia(e,t,a),Kn(a.stateNode),Ue=l,rt=n;break;case 5:Ze||Qt(a,t);case 6:if(l=Ue,n=rt,Ue=null,ia(e,t,a),Ue=l,rt=n,Ue!==null)if(rt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(s){Ae(a,t,s)}else try{Ue.removeChild(a.stateNode)}catch(s){Ae(a,t,s)}break;case 18:Ue!==null&&(rt?(e=Ue,dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),en(e)):dm(Ue,a.stateNode));break;case 4:l=Ue,n=rt,Ue=a.stateNode.containerInfo,rt=!0,ia(e,t,a),Ue=l,rt=n;break;case 0:case 11:case 14:case 15:Ma(2,a,t),Ze||Ma(4,a,t),ia(e,t,a);break;case 1:Ze||(Qt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&md(a,t,l)),ia(e,t,a);break;case 21:ia(e,t,a);break;case 22:Ze=(l=Ze)||a.memoizedState!==null,ia(e,t,a),Ze=l;break;default:ia(e,t,a)}}function Sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{en(e)}catch(a){Ae(t,t.return,a)}}}function Ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{en(e)}catch(a){Ae(t,t.return,a)}}function Mp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gd),t;default:throw Error(r(435,e.tag))}}function ls(e,t){var a=Mp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=qp.bind(null,e,l);l.then(n,n)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],s=e,c=t,p=c;e:for(;p!==null;){switch(p.tag){case 27:if(Ha(p.type)){Ue=p.stateNode,rt=!1;break e}break;case 5:Ue=p.stateNode,rt=!1;break e;case 3:case 4:Ue=p.stateNode.containerInfo,rt=!0;break e}p=p.return}if(Ue===null)throw Error(r(160));bd(s,c,n),Ue=null,rt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_d(t,e),t=t.sibling}var Lt=null;function _d(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ct(e),l&4&&(Ma(3,e,e.return),Ln(3,e),Ma(5,e,e.return));break;case 1:ot(t,e),ct(e),l&512&&(Ze||a===null||Qt(a,a.return)),l&64&&na&&(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(ot(t,e),ct(e),l&512&&(Ze||a===null||Qt(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[fn]||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 c=_m("link","href",n).get(l+(a.href||""));if(c){for(var p=0;p<c.length;p++)if(s=c[p],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)){c.splice(p,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;case"meta":if(c=_m("meta","content",n).get(l+(a.content||""))){for(p=0;p<c.length;p++)if(s=c[p],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)){c.splice(p,1);break t}}s=n.createElement(l),et(s,l,a),n.head.appendChild(s);break;default:throw Error(r(468,l))}s[Fe]=e,Je(s),l=s}e.stateNode=l}else Tm(n,e.type,e.stateNode);else e.stateNode=Em(n,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?Tm(n,e.type,e.stateNode):Em(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&br(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ct(e),l&512&&(Ze||a===null||Qt(a,a.return)),a!==null&&l&4&&br(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ct(e),l&512&&(Ze||a===null||Qt(a,a.return)),e.flags&32){n=e.stateNode;try{_l(n,"")}catch(I){Ae(e,e.return,I)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,br(e,n,a!==null?a.memoizedProps:n)),l&1024&&(_r=!0);break;case 6:if(ot(t,e),ct(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){Ae(e,e.return,I)}}break;case 3:if(xs=null,n=Lt,Lt=gs(t.containerInfo),ot(t,e),Lt=n,ct(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{en(t.containerInfo)}catch(I){Ae(e,e.return,I)}_r&&(_r=!1,Td(e));break;case 4:l=Lt,Lt=gs(e.stateNode.containerInfo),ot(t,e),ct(e),Lt=l;break;case 12:ot(t,e),ct(e);break;case 31:ot(t,e),ct(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 13:ot(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(is=mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 22:n=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,C=na,L=Ze;if(na=C||n,Ze=L||E,ot(t,e),Ze=L,na=C,ct(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||E||na||Ze||fl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(s=E.stateNode,n)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{p=E.stateNode;var X=E.memoizedProps.style,w=X!=null&&X.hasOwnProperty("display")?X.display:null;p.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(I){Ae(E,E.return,I)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=n?"":E.memoizedProps}catch(I){Ae(E,E.return,I)}}}else if(t.tag===18){if(a===null){E=t;try{var O=E.stateNode;n?mm(O,!0):mm(E.stateNode,!1)}catch(I){Ae(E,E.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,ls(e,a))));break;case 19:ot(t,e),ct(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 30:break;case 21:break;default:ot(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(pd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var n=a.stateNode,s=Sr(e);as(e,s,n);break;case 5:var c=a.stateNode;a.flags&32&&(_l(c,""),a.flags&=-33);var p=Sr(e);as(e,p,c);break;case 3:case 4:var E=a.stateNode.containerInfo,C=Sr(e);Er(e,C,E);break;default:throw Error(r(161))}}catch(L){Ae(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Td(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vd(e,t.alternate,t),t=t.sibling}function fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ma(4,t,t.return),fl(t);break;case 1:Qt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&md(t,t.return,a),fl(t);break;case 27:Kn(t.stateNode);case 26:case 5:Qt(t,t.return),fl(t);break;case 22:t.memoizedState===null&&fl(t);break;case 30:fl(t);break;default:fl(t)}e=e.sibling}}function ua(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,s=t,c=s.flags;switch(s.tag){case 0:case 11:case 15:ua(n,s,a),Ln(4,s);break;case 1:if(ua(n,s,a),l=s,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){Ae(l,l.return,C)}if(l=s,n=l.updateQueue,n!==null){var p=l.stateNode;try{var E=n.shared.hiddenCallbacks;if(E!==null)for(n.shared.hiddenCallbacks=null,n=0;n<E.length;n++)ef(E[n],p)}catch(C){Ae(l,l.return,C)}}a&&c&64&&dd(s),Hn(s,s.return);break;case 27:yd(s);case 26:case 5:ua(n,s,a),a&&l===null&&c&4&&hd(s),Hn(s,s.return);break;case 12:ua(n,s,a);break;case 31:ua(n,s,a),a&&c&4&&Sd(n,s);break;case 13:ua(n,s,a),a&&c&4&&Ed(n,s);break;case 22:s.memoizedState===null&&ua(n,s,a),Hn(s,s.return);break;case 30:break;default:ua(n,s,a)}t=t.sibling}}function Tr(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&&Tn(a))}function Nr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tn(e))}function Ht(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nd(e,t,a,l),t=t.sibling}function Nd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,l),n&2048&&Ln(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&&Tn(e)));break;case 12:if(n&2048){Ht(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,c=s.id,p=s.onPostCommit;typeof p=="function"&&p(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ae(t,t.return,E)}}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,c=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,a,l):kn(e,t):s._visibility&2?Ht(e,t,a,l):(s._visibility|=2,Xl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Tr(c,t);break;case 24:Ht(e,t,a,l),n&2048&&Nr(t.alternate,t);break;default:Ht(e,t,a,l)}}function Xl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,c=t,p=a,E=l,C=c.flags;switch(c.tag){case 0:case 11:case 15:Xl(s,c,p,E,n),Ln(8,c);break;case 23:break;case 22:var L=c.stateNode;c.memoizedState!==null?L._visibility&2?Xl(s,c,p,E,n):kn(s,c):(L._visibility|=2,Xl(s,c,p,E,n)),n&&C&2048&&Tr(c.alternate,c);break;case 24:Xl(s,c,p,E,n),n&&C&2048&&Nr(c.alternate,c);break;default:Xl(s,c,p,E,n)}t=t.sibling}}function kn(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:kn(a,l),n&2048&&Tr(l.alternate,l);break;case 24:kn(a,l),n&2048&&Nr(l.alternate,l);break;default:kn(a,l)}t=t.sibling}}var qn=8192;function Ql(e,t,a){if(e.subtreeFlags&qn)for(e=e.child;e!==null;)jd(e,t,a),e=e.sibling}function jd(e,t,a){switch(e.tag){case 26:Ql(e,t,a),e.flags&qn&&e.memoizedState!==null&&gy(a,Lt,e.memoizedState,e.memoizedProps);break;case 5:Ql(e,t,a);break;case 3:case 4:var l=Lt;Lt=gs(e.stateNode.containerInfo),Ql(e,t,a),Lt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=qn,qn=16777216,Ql(e,t,a),qn=l):Ql(e,t,a));break;default:Ql(e,t,a)}}function Ad(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 Yn(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,wd(l,e)}Ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cd(e),e=e.sibling}function Cd(e){switch(e.tag){case 0:case 11:case 15:Yn(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:Yn(e);break;case 12:Yn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ns(e)):Yn(e);break;default:Yn(e)}}function ns(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,wd(l,e)}Ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(8,t,t.return),ns(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ns(t));break;default:ns(t)}e=e.sibling}}function wd(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ma(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:Tn(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(xd(l),l===a){$e=null;break e}if(n!==null){n.return=s,$e=n;break e}$e=s}}}var Op={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}},Rp=typeof WeakMap=="function"?WeakMap:Map,_e=0,Me=null,he=null,ge=0,je=0,bt=null,Oa=!1,Vl=!1,jr=!1,ra=0,ke=0,Ra=0,dl=0,Ar=0,St=0,Zl=0,Gn=null,ft=null,Cr=!1,is=0,zd=0,ss=1/0,us=null,Da=null,Ke=0,Ba=null,Kl=null,oa=0,wr=0,zr=null,Md=null,Xn=0,Mr=null;function Et(){return(_e&2)!==0&&ge!==0?ge&-ge:D.T!==null?Lr():Zo()}function Od(){if(St===0)if((ge&536870912)===0||xe){var e=pi;pi<<=1,(pi&3932160)===0&&(pi=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function dt(e,t,a){(e===Me&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Jl(e,0),Ua(e,ge,St,!1)),cn(e,a),((_e&2)===0||e!==Me)&&(e===Me&&((_e&2)===0&&(dl|=a),ke===4&&Ua(e,ge,St,!1)),Vt(e))}function Rd(e,t,a){if((_e&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||on(e,t),n=l?Up(e,t):Rr(e,t,!0),s=l;do{if(n===0){Vl&&!l&&Ua(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Dp(a)){n=Rr(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var p=e;n=Gn;var E=p.current.memoizedState.isDehydrated;if(E&&(Jl(p,c).flags|=256),c=Rr(p,c,!1),c!==2){if(jr&&!E){p.errorRecoveryDisabledLanes|=s,dl|=s,n=4;break e}s=ft,ft=n,s!==null&&(ft===null?ft=s:ft.push.apply(ft,s))}n=c}if(s=!1,n!==2)continue}}if(n===1){Jl(e,0),Ua(e,t,0,!0);break}e:{switch(l=e,s=n,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ua(l,t,St,!Oa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=is+300-mt(),10<n)){if(Ua(l,t,St,!Oa),gi(l,0,!0)!==0)break e;oa=t,l.timeoutHandle=cm(Dd.bind(null,l,a,ft,us,Cr,t,St,dl,Zl,Oa,s,"Throttled",-0,0),n);break e}Dd(l,a,ft,us,Cr,t,St,dl,Zl,Oa,s,null,-0,0)}}break}while(!0);Vt(e)}function Dd(e,t,a,l,n,s,c,p,E,C,L,X,w,O){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},jd(t,s,X);var I=(s&62914560)===s?is-mt():(s&4194048)===s?zd-mt():0;if(I=vy(X,I),I!==null){oa=s,e.cancelPendingCommit=I(Gd.bind(null,e,t,s,a,l,n,c,p,E,L,X,null,w,O)),Ua(e,s,c,!C);return}}Gd(e,t,s,a,l,n,c,p,E)}function Dp(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(!yt(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 Ua(e,t,a,l){t&=~Ar,t&=~dl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var s=31-pt(n),c=1<<s;l[s]=-1,n&=~c}a!==0&&Xo(e,a,t)}function rs(){return(_e&6)===0?(Qn(0),!1):!0}function Or(){if(he!==null){if(je===0)var e=he.return;else e=he,It=ll=null,Ju(e),Hl=null,jn=0,e=he;for(;e!==null;)fd(e.alternate,e),e=e.return;he=null}}function Jl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ey(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),oa=0,Or(),Me=e,he=a=Ft(e.current,null),ge=t,je=0,bt=null,Oa=!1,Vl=on(e,t),jr=!1,Zl=St=Ar=dl=Ra=ke=0,ft=Gn=null,Cr=!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-pt(l),s=1<<n;t|=e[n],l&=~s}return ra=t,wi(),a}function Bd(e,t){fe=null,D.H=Dn,t===Ll||t===Li?(t=Fc(),je=3):t===Uu?(t=Fc(),je=4):je=t===cr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(ke=1,Wi(e,Ct(t,e.current)))}function Ud(){var e=vt.current;return e===null?!0:(ge&4194048)===ge?Ot===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Ot:!1}function Ld(){var e=D.H;return D.H=Dn,e===null?Dn:e}function Hd(){var e=D.A;return D.A=Op,e}function os(){ke=4,Oa||(ge&4194048)!==ge&&vt.current!==null||(Vl=!0),(Ra&134217727)===0&&(dl&134217727)===0||Me===null||Ua(Me,ge,St,!1)}function Rr(e,t,a){var l=_e;_e|=2;var n=Ld(),s=Hd();(Me!==e||ge!==t)&&(us=null,Jl(e,t)),t=!1;var c=ke;e:do try{if(je!==0&&he!==null){var p=he,E=bt;switch(je){case 8:Or(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var C=je;if(je=0,bt=null,$l(e,p,E,C),a&&Vl){c=0;break e}break;default:C=je,je=0,bt=null,$l(e,p,E,C)}}Bp(),c=ke;break}catch(L){Bd(e,L)}while(!0);return t&&e.shellSuspendCounter++,It=ll=null,_e=l,D.H=n,D.A=s,he===null&&(Me=null,ge=0,wi()),c}function Bp(){for(;he!==null;)kd(he)}function Up(e,t){var a=_e;_e|=2;var l=Ld(),n=Hd();Me!==e||ge!==t?(us=null,ss=mt()+500,Jl(e,t)):Vl=on(e,t);e:do try{if(je!==0&&he!==null){t=he;var s=bt;t:switch(je){case 1:je=0,bt=null,$l(e,t,s,1);break;case 2:case 9:if(Jc(s)){je=0,bt=null,qd(t);break}t=function(){je!==2&&je!==9||Me!==e||(je=7),Vt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Jc(s)?(je=0,bt=null,qd(t)):(je=0,bt=null,$l(e,t,s,7));break;case 5:var c=null;switch(he.tag){case 26:c=he.memoizedState;case 5:case 27:var p=he;if(c?Nm(c):p.stateNode.complete){je=0,bt=null;var E=p.sibling;if(E!==null)he=E;else{var C=p.return;C!==null?(he=C,cs(C)):he=null}break t}}je=0,bt=null,$l(e,t,s,5);break;case 6:je=0,bt=null,$l(e,t,s,6);break;case 8:Or(),ke=6;break e;default:throw Error(r(462))}}Lp();break}catch(L){Bd(e,L)}while(!0);return It=ll=null,D.H=l,D.A=n,_e=a,he!==null?0:(Me=null,ge=0,wi(),ke)}function Lp(){for(;he!==null&&!s0();)kd(he)}function kd(e){var t=od(e.alternate,e,ra);e.memoizedProps=e.pendingProps,t===null?cs(e):he=t}function qd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ld(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=ld(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Ju(t);default:fd(a,t),t=he=Lc(t,ra),t=od(a,t,ra)}e.memoizedProps=e.pendingProps,t===null?cs(e):he=t}function $l(e,t,a,l){It=ll=null,Ju(t),Hl=null,jn=0;var n=t.return;try{if(Np(e,n,t,a,ge)){ke=1,Wi(e,Ct(a,e.current)),he=null;return}}catch(s){if(n!==null)throw he=n,s;ke=1,Wi(e,Ct(a,e.current)),he=null;return}t.flags&32768?(xe||l===1?e=!0:Vl||(ge&536870912)!==0?e=!1:(Oa=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Yd(t,e)):cs(t)}function cs(e){var t=e;do{if((t.flags&32768)!==0){Yd(t,Oa);return}e=t.return;var a=Cp(t.alternate,t,ra);if(a!==null){he=a;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);ke===0&&(ke=5)}function Yd(e,t){do{var a=wp(e.alternate,e);if(a!==null){a.flags&=32767,he=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=a}while(e!==null);ke=6,he=null}function Gd(e,t,a,l,n,s,c,p,E){e.cancelPendingCommit=null;do fs();while(Ke!==0);if((_e&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Su,y0(e,a,s,c,p,E),e===Me&&(he=Me=null,ge=0),Kl=t,Ba=e,oa=a,wr=s,zr=n,Md=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yp(mi,function(){return Kd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=J.p,J.p=2,c=_e,_e|=4;try{zp(e,t,a)}finally{_e=c,J.p=n,D.T=l}}Ke=1,Xd(),Qd(),Vd()}}function Xd(){if(Ke===1){Ke=0;var e=Ba,t=Kl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=J.p;J.p=2;var n=_e;_e|=4;try{_d(t,e);var s=Vr,c=Cc(e.containerInfo),p=s.focusedElem,E=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&Ac(p.ownerDocument.documentElement,p)){if(E!==null&&yu(p)){var C=E.start,L=E.end;if(L===void 0&&(L=C),"selectionStart"in p)p.selectionStart=C,p.selectionEnd=Math.min(L,p.value.length);else{var X=p.ownerDocument||document,w=X&&X.defaultView||window;if(w.getSelection){var O=w.getSelection(),I=p.textContent.length,se=Math.min(E.start,I),ze=E.end===void 0?se:Math.min(E.end,I);!O.extend&&se>ze&&(c=ze,ze=se,se=c);var N=jc(p,se),T=jc(p,ze);if(N&&T&&(O.rangeCount!==1||O.anchorNode!==N.node||O.anchorOffset!==N.offset||O.focusNode!==T.node||O.focusOffset!==T.offset)){var A=X.createRange();A.setStart(N.node,N.offset),O.removeAllRanges(),se>ze?(O.addRange(A),O.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),O.addRange(A))}}}}for(X=[],O=p;O=O.parentNode;)O.nodeType===1&&X.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<X.length;p++){var G=X[p];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}_s=!!Qr,Vr=Qr=null}finally{_e=n,J.p=l,D.T=a}}e.current=t,Ke=2}}function Qd(){if(Ke===2){Ke=0;var e=Ba,t=Kl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=J.p;J.p=2;var n=_e;_e|=4;try{vd(e,t.alternate,t)}finally{_e=n,J.p=l,D.T=a}}Ke=3}}function Vd(){if(Ke===4||Ke===3){Ke=0,u0();var e=Ba,t=Kl,a=oa,l=Md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Kl=Ba=null,Zd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Da=null),Ws(a),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(rn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=J.p,J.p=2,D.T=null;try{for(var s=e.onRecoverableError,c=0;c<l.length;c++){var p=l[c];s(p.value,{componentStack:p.stack})}}finally{D.T=t,J.p=n}}(oa&3)!==0&&fs(),Vt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Mr?Xn++:(Xn=0,Mr=e):Xn=0,Qn(0)}}function Zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tn(t)))}function fs(){return Xd(),Qd(),Vd(),Kd()}function Kd(){if(Ke!==5)return!1;var e=Ba,t=wr;wr=0;var a=Ws(oa),l=D.T,n=J.p;try{J.p=32>a?32:a,D.T=null,a=zr,zr=null;var s=Ba,c=oa;if(Ke=0,Kl=Ba=null,oa=0,(_e&6)!==0)throw Error(r(331));var p=_e;if(_e|=4,Cd(s.current),Nd(s,s.current,c,a),_e=p,Qn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(rn,s)}catch{}return!0}finally{J.p=n,D.T=l,Zd(e,t)}}function Jd(e,t,a){t=Ct(a,t),t=or(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(cn(e,2),Vt(e))}function Ae(e,t,a){if(e.tag===3)Jd(e,e,a);else for(;t!==null;){if(t.tag===3){Jd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=Ct(a,e),a=$f(2),l=Ca(t,a,2),l!==null&&(Ff(a,l,t,e),cn(l,2),Vt(l));break}}t=t.return}}function Dr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Rp;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)||(jr=!0,n.add(a),e=Hp.bind(null,e,t,a),t.then(e,e))}function Hp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Me===e&&(ge&a)===a&&(ke===4||ke===3&&(ge&62914560)===ge&&300>mt()-is?(_e&2)===0&&Jl(e,0):Ar|=a,Zl===ge&&(Zl=0)),Vt(e)}function $d(e,t){t===0&&(t=Go()),e=el(e,t),e!==null&&(cn(e,t),Vt(e))}function kp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),$d(e,a)}function qp(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(r(314))}l!==null&&l.delete(t),$d(e,a)}function Yp(e,t){return Ks(e,t)}var ds=null,Fl=null,Br=!1,ms=!1,Ur=!1,La=0;function Vt(e){e!==Fl&&e.next===null&&(Fl===null?ds=Fl=e:Fl=Fl.next=e),ms=!0,Br||(Br=!0,Xp())}function Qn(e,t){if(!Ur&&ms){Ur=!0;do for(var a=!1,l=ds;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var s=0;else{var c=l.suspendedLanes,p=l.pingedLanes;s=(1<<31-pt(42|e)+1)-1,s&=n&~(c&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Pd(l,s))}else s=ge,s=gi(l,l===Me?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||on(l,s)||(a=!0,Pd(l,s));l=l.next}while(a);Ur=!1}}function Gp(){Fd()}function Fd(){ms=Br=!1;var e=0;La!==0&&Pp()&&(e=La);for(var t=mt(),a=null,l=ds;l!==null;){var n=l.next,s=Wd(l,t);s===0?(l.next=null,a===null?ds=n:a.next=n,n===null&&(Fl=a)):(a=l,(e!==0||(s&3)!==0)&&(ms=!0)),l=n}Ke!==0&&Ke!==5||Qn(e),La!==0&&(La=0)}function Wd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var c=31-pt(s),p=1<<c,E=n[c];E===-1?((p&a)===0||(p&l)!==0)&&(n[c]=p0(p,t)):E<=t&&(e.expiredLanes|=p),s&=~p}if(t=Me,a=ge,a=gi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Js(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||on(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Js(l),Ws(a)){case 2:case 8:a=qo;break;case 32:a=mi;break;case 268435456:a=Yo;break;default:a=mi}return l=Id.bind(null,e),a=Ks(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Js(l),e.callbackPriority=2,e.callbackNode=null,2}function Id(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(fs()&&e.callbackNode!==a)return null;var l=ge;return l=gi(e,e===Me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Rd(e,l,t),Wd(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Id.bind(null,e):null)}function Pd(e,t){if(fs())return null;Rd(e,t,!0)}function Xp(){ty(function(){(_e&6)!==0?Ks(ko,Gp):Fd()})}function Lr(){if(La===0){var e=Bl;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),La=e}return La}function em(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Si(""+e)}function tm(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 Qp(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var s=em((n[st]||null).action),c=l.submitter;c&&(t=(t=c[st]||null)?em(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var p=new Ni("action","action",null,l,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(La!==0){var E=c?tm(n,c):new FormData(n);lr(a,{pending:!0,data:E,method:n.method,action:s},null,E)}}else typeof s=="function"&&(p.preventDefault(),E=c?tm(n,c):new FormData(n),lr(a,{pending:!0,data:E,method:n.method,action:s},s,E))},currentTarget:n}]})}}for(var Hr=0;Hr<bu.length;Hr++){var kr=bu[Hr],Vp=kr.toLowerCase(),Zp=kr[0].toUpperCase()+kr.slice(1);Ut(Vp,"on"+Zp)}Ut(Mc,"onAnimationEnd"),Ut(Oc,"onAnimationIteration"),Ut(Rc,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(rp,"onTransitionRun"),Ut(op,"onTransitionStart"),Ut(cp,"onTransitionCancel"),Ut(Dc,"onTransitionEnd"),Sl("onMouseEnter",["mouseout","mouseover"]),Sl("onMouseLeave",["mouseout","mouseover"]),Sl("onPointerEnter",["pointerout","pointerover"]),Sl("onPointerLeave",["pointerout","pointerover"]),Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),Kp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vn));function am(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 c=l.length-1;0<=c;c--){var p=l[c],E=p.instance,C=p.currentTarget;if(p=p.listener,E!==s&&n.isPropagationStopped())break e;s=p,n.currentTarget=C;try{s(n)}catch(L){Ci(L)}n.currentTarget=null,s=E}else for(c=0;c<l.length;c++){if(p=l[c],E=p.instance,C=p.currentTarget,p=p.listener,E!==s&&n.isPropagationStopped())break e;s=p,n.currentTarget=C;try{s(n)}catch(L){Ci(L)}n.currentTarget=null,s=E}}}}function pe(e,t){var a=t[Is];a===void 0&&(a=t[Is]=new Set);var l=e+"__bubble";a.has(l)||(lm(t,e,2,!1),a.add(l))}function qr(e,t,a){var l=0;t&&(l|=4),lm(a,e,l,t)}var hs="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[hs]){e[hs]=!0,$o.forEach(function(a){a!=="selectionchange"&&(Kp.has(a)||qr(a,!1,e),qr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,qr("selectionchange",!1,t))}}function lm(e,t,a,l){switch(Om(t)){case 2:var n=Sy;break;case 8:n=Ey;break;default:n=ao}a=n.bind(null,t,a,e),n=void 0,!uu||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 Gr(e,t,a,l,n){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var p=l.stateNode.containerInfo;if(p===n)break;if(c===4)for(c=l.return;c!==null;){var E=c.tag;if((E===3||E===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;p!==null;){if(c=vl(p),c===null)return;if(E=c.tag,E===5||E===6||E===26||E===27){l=s=c;continue e}p=p.parentNode}}l=l.return}uc(function(){var C=s,L=iu(a),X=[];e:{var w=Bc.get(e);if(w!==void 0){var O=Ni,I=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":O=q0;break;case"focusin":I="focus",O=fu;break;case"focusout":I="blur",O=fu;break;case"beforeblur":case"afterblur":O=fu;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=cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=C0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=X0;break;case Mc:case Oc:case Rc:O=M0;break;case Dc:O=V0;break;case"scroll":case"scrollend":O=j0;break;case"wheel":O=K0;break;case"copy":case"cut":case"paste":O=R0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=dc;break;case"toggle":case"beforetoggle":O=$0}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),N=se?w!==null?w+"Capture":null:w;se=[];for(var T=C,A;T!==null;){var G=T;if(A=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||A===null||N===null||(G=mn(T,N),G!=null&&se.push(Zn(T,G,A))),ze)break;T=T.return}0<se.length&&(w=new O(w,I,null,a,L),X.push({event:w,listeners:se}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",w&&a!==nu&&(I=a.relatedTarget||a.fromElement)&&(vl(I)||I[gl]))break e;if((O||w)&&(w=L.window===L?L:(w=L.ownerDocument)?w.defaultView||w.parentWindow:window,O?(I=a.relatedTarget||a.toElement,O=C,I=I?vl(I):null,I!==null&&(ze=m(I),se=I.tag,I!==ze||se!==5&&se!==27&&se!==6)&&(I=null)):(O=null,I=C),O!==I)){if(se=cc,G="onMouseLeave",N="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(se=dc,G="onPointerLeave",N="onPointerEnter",T="pointer"),ze=O==null?w:dn(O),A=I==null?w:dn(I),w=new se(G,T+"leave",O,a,L),w.target=ze,w.relatedTarget=A,G=null,vl(L)===C&&(se=new se(N,T+"enter",I,a,L),se.target=A,se.relatedTarget=ze,G=se),ze=G,O&&I)t:{for(se=Jp,N=O,T=I,A=0,G=N;G;G=se(G))A++;G=0;for(var le=T;le;le=se(le))G++;for(;0<A-G;)N=se(N),A--;for(;0<G-A;)T=se(T),G--;for(;A--;){if(N===T||T!==null&&N===T.alternate){se=N;break t}N=se(N),T=se(T)}se=null}else se=null;O!==null&&nm(X,w,O,se,!1),I!==null&&ze!==null&&nm(X,ze,I,se,!0)}}e:{if(w=C?dn(C):window,O=w.nodeName&&w.nodeName.toLowerCase(),O==="select"||O==="input"&&w.type==="file")var be=bc;else if(vc(w))if(Sc)be=ip;else{be=lp;var te=ap}else O=w.nodeName,!O||O.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?C&&lu(C.elementType)&&(be=bc):be=np;if(be&&(be=be(e,C))){xc(X,be,a,L);break e}te&&te(e,w,C),e==="focusout"&&C&&w.type==="number"&&C.memoizedProps.value!=null&&au(w,"number",w.value)}switch(te=C?dn(C):window,e){case"focusin":(vc(te)||te.contentEditable==="true")&&(Al=te,gu=C,Sn=null);break;case"focusout":Sn=gu=Al=null;break;case"mousedown":vu=!0;break;case"contextmenu":case"mouseup":case"dragend":vu=!1,wc(X,a,L);break;case"selectionchange":if(up)break;case"keydown":case"keyup":wc(X,a,L)}var de;if(mu)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else jl?yc(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(mc&&a.locale!=="ko"&&(jl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&jl&&(de=rc()):(Sa=L,ru="value"in Sa?Sa.value:Sa.textContent,jl=!0)),te=ps(C,ve),0<te.length&&(ve=new fc(ve,e,null,a,L),X.push({event:ve,listeners:te}),de?ve.data=de:(de=gc(a),de!==null&&(ve.data=de)))),(de=W0?I0(e,a):P0(e,a))&&(ve=ps(C,"onBeforeInput"),0<ve.length&&(te=new fc("onBeforeInput","beforeinput",null,a,L),X.push({event:te,listeners:ve}),te.data=de)),Qp(X,e,C,a,L)}am(X,t)})}function Zn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ps(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=mn(e,a),n!=null&&l.unshift(Zn(e,n,s)),n=mn(e,t),n!=null&&l.push(Zn(e,n,s))),e.tag===3)return l;e=e.return}return[]}function Jp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,a,l,n){for(var s=t._reactName,c=[];a!==null&&a!==l;){var p=a,E=p.alternate,C=p.stateNode;if(p=p.tag,E!==null&&E===l)break;p!==5&&p!==26&&p!==27||C===null||(E=C,n?(C=mn(a,s),C!=null&&c.unshift(Zn(a,C,E))):n||(C=mn(a,s),C!=null&&c.push(Zn(a,C,E)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var $p=/\r\n?/g,Fp=/\u0000|\uFFFD/g;function im(e){return(typeof e=="string"?e:""+e).replace($p,`
  49. `).replace(Fp,"")}function sm(e,t){return t=im(t),im(e)===t}function we(e,t,a,l,n,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||_l(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&_l(e,""+l);break;case"className":xi(e,"class",l);break;case"tabIndex":xi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(e,a,l);break;case"style":ic(e,l,s);break;case"data":if(t!=="object"){xi(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=Si(""+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"&&we(e,t,"name",n.name,n,null),we(e,t,"formEncType",n.formEncType,n,null),we(e,t,"formMethod",n.formMethod,n,null),we(e,t,"formTarget",n.formTarget,n,null)):(we(e,t,"encType",n.encType,n,null),we(e,t,"method",n.method,n,null),we(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Si(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Jt);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(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=Si(""+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":pe("beforetoggle",e),pe("toggle",e),vi(e,"popover",l);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vi(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=T0.get(a)||a,vi(e,a,l))}}function Xr(e,t,a,l,n,s){switch(a){case"style":ic(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?_l(e,l):(typeof l=="number"||typeof l=="bigint")&&_l(e,""+l);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fo.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,""):vi(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":pe("error",e),pe("load",e);var l=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:we(e,t,s,c,a,null)}}n&&we(e,t,"srcSet",a.srcSet,a,null),l&&we(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var p=s=c=n=null,E=null,C=null;for(l in a)if(a.hasOwnProperty(l)){var L=a[l];if(L!=null)switch(l){case"name":n=L;break;case"type":c=L;break;case"checked":E=L;break;case"defaultChecked":C=L;break;case"value":s=L;break;case"defaultValue":p=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:we(e,t,l,L,a,null)}}tc(e,s,p,E,C,c,n,!1);return;case"select":pe("invalid",e),l=c=s=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":s=p;break;case"defaultValue":c=p;break;case"multiple":l=p;default:we(e,t,n,p,a,null)}t=s,a=c,e.multiple=!!l,t!=null?El(e,!!l,t,!1):a!=null&&El(e,!!l,a,!0);return;case"textarea":pe("invalid",e),s=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(p=a[c],p!=null))switch(c){case"value":l=p;break;case"defaultValue":n=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:we(e,t,c,p,a,null)}lc(e,l,n,s);return;case"option":for(E in a)if(a.hasOwnProperty(E)&&(l=a[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:we(e,t,E,l,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(l=0;l<Vn.length;l++)pe(Vn[l],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(C in a)if(a.hasOwnProperty(C)&&(l=a[C],l!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:we(e,t,C,l,a,null)}return;default:if(lu(t)){for(L in a)a.hasOwnProperty(L)&&(l=a[L],l!==void 0&&Xr(e,t,L,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&we(e,t,p,l,a,null))}function Wp(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,c=null,p=null,E=null,C=null,L=null;for(O in a){var X=a[O];if(a.hasOwnProperty(O)&&X!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":E=X;default:l.hasOwnProperty(O)||we(e,t,O,null,l,X)}}for(var w in l){var O=l[w];if(X=a[w],l.hasOwnProperty(w)&&(O!=null||X!=null))switch(w){case"type":s=O;break;case"name":n=O;break;case"checked":C=O;break;case"defaultChecked":L=O;break;case"value":c=O;break;case"defaultValue":p=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==X&&we(e,t,w,O,l,X)}}tu(e,c,p,E,C,L,s,n);return;case"select":O=c=p=w=null;for(s in a)if(E=a[s],a.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":O=E;default:l.hasOwnProperty(s)||we(e,t,s,null,l,E)}for(n in l)if(s=l[n],E=a[n],l.hasOwnProperty(n)&&(s!=null||E!=null))switch(n){case"value":w=s;break;case"defaultValue":p=s;break;case"multiple":c=s;default:s!==E&&we(e,t,n,s,l,E)}t=p,a=c,l=O,w!=null?El(e,!!a,w,!1):!!l!=!!a&&(t!=null?El(e,!!a,t,!0):El(e,!!a,a?[]:"",!1));return;case"textarea":O=w=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:we(e,t,p,null,l,n)}for(c in l)if(n=l[c],s=a[c],l.hasOwnProperty(c)&&(n!=null||s!=null))switch(c){case"value":w=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==s&&we(e,t,c,n,l,s)}ac(e,w,O);return;case"option":for(var I in a)if(w=a[I],a.hasOwnProperty(I)&&w!=null&&!l.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:we(e,t,I,null,l,w)}for(E in l)if(w=l[E],O=a[E],l.hasOwnProperty(E)&&w!==O&&(w!=null||O!=null))switch(E){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:we(e,t,E,w,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 se in a)w=a[se],a.hasOwnProperty(se)&&w!=null&&!l.hasOwnProperty(se)&&we(e,t,se,null,l,w);for(C in l)if(w=l[C],O=a[C],l.hasOwnProperty(C)&&w!==O&&(w!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:we(e,t,C,w,l,O)}return;default:if(lu(t)){for(var ze in a)w=a[ze],a.hasOwnProperty(ze)&&w!==void 0&&!l.hasOwnProperty(ze)&&Xr(e,t,ze,void 0,l,w);for(L in l)w=l[L],O=a[L],!l.hasOwnProperty(L)||w===O||w===void 0&&O===void 0||Xr(e,t,L,w,l,O);return}}for(var N in a)w=a[N],a.hasOwnProperty(N)&&w!=null&&!l.hasOwnProperty(N)&&we(e,t,N,null,l,w);for(X in l)w=l[X],O=a[X],!l.hasOwnProperty(X)||w===O||w==null&&O==null||we(e,t,X,w,l,O)}function um(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ip(){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,c=n.initiatorType,p=n.duration;if(s&&p&&um(c)){for(c=0,p=n.responseEnd,l+=1;l<a.length;l++){var E=a[l],C=E.startTime;if(C>p)break;var L=E.transferSize,X=E.initiatorType;L&&um(X)&&(E=E.responseEnd,c+=L*(E<p?1:(p-C)/(E-C)))}if(--l,t+=8*(s+c)/(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 Qr=null,Vr=null;function ys(e){return e.nodeType===9?e:e.ownerDocument}function rm(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 om(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 Zr(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 Kr=null;function Pp(){var e=window.event;return e&&e.type==="popstate"?e===Kr?!1:(Kr=e,!0):(Kr=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,ey=typeof clearTimeout=="function"?clearTimeout:void 0,fm=typeof Promise=="function"?Promise:void 0,ty=typeof queueMicrotask=="function"?queueMicrotask:typeof fm<"u"?function(e){return fm.resolve(null).then(e).catch(ay)}:cm;function ay(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function dm(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),en(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Kn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kn(a);for(var s=a.firstChild;s;){var c=s.nextSibling,p=s.nodeName;s[fn]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a==="body"&&Kn(e.ownerDocument.body);a=n}while(a);en(t)}function mm(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 Jr(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":Jr(a),Ps(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ly(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[fn])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 ny(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 hm(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 $r(e){return e.data==="$?"||e.data==="$~"}function Fr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function iy(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 Wr=null;function pm(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 ym(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 gm(e,t,a){switch(t=ys(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Kn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ps(e)}var Dt=new Map,vm=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ca=J.d;J.d={f:sy,r:uy,D:ry,C:oy,L:cy,m:fy,X:my,S:dy,M:hy};function sy(){var e=ca.f(),t=rs();return e||t}function uy(e){var t=xl(e);t!==null&&t.tag===5&&t.type==="form"?Bf(t):ca.r(e)}var Wl=typeof document>"u"?null:document;function xm(e,t,a){var l=Wl;if(l&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),vm.has(n)||(vm.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 ry(e){ca.D(e),xm("dns-prefetch",e,null)}function oy(e,t){ca.C(e,t),xm("preconnect",e,t)}function cy(e,t,a){ca.L(e,t,a);var l=Wl;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=Il(e);break;case"script":s=Pl(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(Jn(s))||t==="script"&&l.querySelector($n(s))||(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function fy(e,t){ca.m(e,t);var a=Wl;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=Pl(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($n(s)))return}l=a.createElement("link"),et(l,"link",e),Je(l),a.head.appendChild(l)}}}function dy(e,t,a){ca.S(e,t,a);var l=Wl;if(l&&e){var n=bl(l).hoistableStyles,s=Il(e);t=t||"default";var c=n.get(s);if(!c){var p={loading:0,preload:null};if(c=l.querySelector(Jn(s)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dt.get(s))&&Ir(e,a);var E=c=l.createElement("link");Je(E),et(E,"link",e),E._p=new Promise(function(C,L){E.onload=C,E.onerror=L}),E.addEventListener("load",function(){p.loading|=1}),E.addEventListener("error",function(){p.loading|=2}),p.loading|=4,vs(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:p},n.set(s,c)}}}function my(e,t){ca.X(e,t);var a=Wl;if(a&&e){var l=bl(a).hoistableScripts,n=Pl(e),s=l.get(n);s||(s=a.querySelector($n(n)),s||(e=x({src:e,async:!0},t),(t=Dt.get(n))&&Pr(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 hy(e,t){ca.M(e,t);var a=Wl;if(a&&e){var l=bl(a).hoistableScripts,n=Pl(e),s=l.get(n);s||(s=a.querySelector($n(n)),s||(e=x({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Pr(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 bm(e,t,a,l){var n=(n=me.current)?gs(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Il(a.href),a=bl(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=Il(a.href);var s=bl(n).hoistableStyles,c=s.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,c),(s=n.querySelector(Jn(e)))&&!s._p&&(c.instance=s,c.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||py(n,e,a,c.state))),t&&l===null)throw Error(r(528,""));return c}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pl(a),a=bl(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(r(444,e))}}function Il(e){return'href="'+jt(e)+'"'}function Jn(e){return'link[rel="stylesheet"]['+e+"]"}function Sm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function py(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 Pl(e){return'[src="'+jt(e)+'"]'}function $n(e){return"script[async]"+e}function Em(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),vs(l,a.precedence,e),t.instance=l;case"stylesheet":n=Il(a.href);var s=e.querySelector(Jn(n));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;l=Sm(a),(n=Dt.get(n))&&Ir(l,n),s=(e.ownerDocument||e).createElement("link"),Je(s);var c=s;return c._p=new Promise(function(p,E){c.onload=p,c.onerror=E}),et(s,"link",l),t.state.loading|=4,vs(s,a.precedence,e),t.instance=s;case"script":return s=Pl(a.src),(n=e.querySelector($n(s)))?(t.instance=n,Je(n),n):(l=a,(n=Dt.get(s))&&(l=x({},a),Pr(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(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,vs(l,a.precedence,e));return t.instance}function vs(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,c=0;c<l.length;c++){var p=l[c];if(p.dataset.precedence===t)s=p;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 Ir(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xs=null;function _m(e,t,a){if(xs===null){var l=new Map,n=xs=new Map;n.set(a,l)}else n=xs,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[fn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(t)||"";c=e+c;var p=l.get(c);p?p.push(s):l.set(c,[s])}}return l}function Tm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function yy(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 Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gy(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=Il(l.href),s=t.querySelector(Jn(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Je(s);return}s=t.ownerDocument||t,l=Sm(l),(n=Dt.get(n))&&Ir(l,n),s=s.createElement("link"),Je(s);var c=s;c._p=new Promise(function(p,E){c.onload=p,c.onerror=E}),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=bs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var eo=0;function vy(e,t){return e.stylesheets&&e.count===0&&Es(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&eo===0&&(eo=62500*Ip());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>eo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function bs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ss=null;function Es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ss=new Map,t.forEach(xy,e),Ss=null,bs.call(e))}function xy(e,t){if(!(t.state.loading&4)){var a=Ss.get(e);if(a)var l=a.get(null);else{a=new Map,Ss.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var c=n[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),s=a.get(c)||l,s===l&&a.set(null,n),a.set(c,n),this.count++,l=bs.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 Fn={$$typeof:M,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function by(e,t,a,l,n,s,c,p,E){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=$s(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.hiddenUpdates=$s(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function jm(e,t,a,l,n,s,c,p,E,C,L,X){return e=new by(e,t,a,c,E,C,L,X,p),t=1,s===!0&&(t|=24),s=gt(3,null,null,t),e.current=s,s.stateNode=e,t=Ru(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},Lu(s),e}function Am(e){return e?(e=zl,e):zl}function Cm(e,t,a,l,n,s){n=Am(n),l.context===null?l.context=n:l.pendingContext=n,l=Aa(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Ca(e,l,t),a!==null&&(dt(a,e,t),Cn(a,e,t))}function wm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function to(e,t){wm(e,t),(e=e.alternate)&&wm(e,t)}function zm(e){if(e.tag===13||e.tag===31){var t=el(e,67108864);t!==null&&dt(t,e,67108864),to(e,67108864)}}function Mm(e){if(e.tag===13||e.tag===31){var t=Et();t=Fs(t);var a=el(e,t);a!==null&&dt(a,e,t),to(e,t)}}var _s=!0;function Sy(e,t,a,l){var n=D.T;D.T=null;var s=J.p;try{J.p=2,ao(e,t,a,l)}finally{J.p=s,D.T=n}}function Ey(e,t,a,l){var n=D.T;D.T=null;var s=J.p;try{J.p=8,ao(e,t,a,l)}finally{J.p=s,D.T=n}}function ao(e,t,a,l){if(_s){var n=lo(l);if(n===null)Gr(e,t,l,Ts,a),Rm(e,l);else if(Ty(n,e,t,a,l))l.stopPropagation();else if(Rm(e,l),t&4&&-1<_y.indexOf(e)){for(;n!==null;){var s=xl(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=$a(s.pendingLanes);if(c!==0){var p=s;for(p.pendingLanes|=2,p.entangledLanes|=2;c;){var E=1<<31-pt(c);p.entanglements[1]|=E,c&=~E}Vt(s),(_e&6)===0&&(ss=mt()+500,Qn(0))}}break;case 31:case 13:p=el(s,2),p!==null&&dt(p,s,2),rs(),to(s,2)}if(s=lo(l),s===null&&Gr(e,t,l,Ts,a),s===n)break;n=s}n!==null&&l.stopPropagation()}else Gr(e,t,l,null,a)}}function lo(e){return e=iu(e),no(e)}var Ts=null;function no(e){if(Ts=null,e=vl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(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 Ts=e,null}function Om(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(r0()){case ko:return 2;case qo:return 8;case mi:case o0:return 32;case Yo:return 268435456;default:return 32}default:return 32}}var io=!1,ka=null,qa=null,Ya=null,Wn=new Map,In=new Map,Ga=[],_y="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 Rm(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function Pn(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=xl(t),t!==null&&zm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Ty(e,t,a,l,n){switch(t){case"focusin":return ka=Pn(ka,e,t,a,l,n),!0;case"dragenter":return qa=Pn(qa,e,t,a,l,n),!0;case"mouseover":return Ya=Pn(Ya,e,t,a,l,n),!0;case"pointerover":var s=n.pointerId;return Wn.set(s,Pn(Wn.get(s)||null,e,t,a,l,n)),!0;case"gotpointercapture":return s=n.pointerId,In.set(s,Pn(In.get(s)||null,e,t,a,l,n)),!0}return!1}function Dm(e){var t=vl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Ko(e.priority,function(){Mm(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Ko(e.priority,function(){Mm(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 Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lo(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);nu=l,a.target.dispatchEvent(l),nu=null}else return t=xl(a),t!==null&&zm(t),e.blockedOn=a,!1;t.shift()}return!0}function Bm(e,t,a){Ns(e)&&a.delete(t)}function Ny(){io=!1,ka!==null&&Ns(ka)&&(ka=null),qa!==null&&Ns(qa)&&(qa=null),Ya!==null&&Ns(Ya)&&(Ya=null),Wn.forEach(Bm),In.forEach(Bm)}function js(e,t){e.blockedOn===t&&(e.blockedOn=null,io||(io=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ny)))}var As=null;function Um(e){As!==e&&(As=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){As===e&&(As=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(no(l||a)===null)continue;break}var s=xl(a);s!==null&&(e.splice(t,3),t-=3,lr(s,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function en(e){function t(E){return js(E,e)}ka!==null&&js(ka,e),qa!==null&&js(qa,e),Ya!==null&&js(Ya,e),Wn.forEach(t),In.forEach(t);for(var a=0;a<Ga.length;a++){var l=Ga[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ga.length&&(a=Ga[0],a.blockedOn===null);)Dm(a),a.blockedOn===null&&Ga.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],c=n[st]||null;if(typeof s=="function")c||Um(a);else if(c){var p=null;if(s&&s.hasAttribute("formAction")){if(n=s,c=s[st]||null)p=c.formAction;else if(no(n)!==null)continue}else p=c.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Um(a)}}}function Lm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return n=c})},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 so(e){this._internalRoot=e}Cs.prototype.render=so.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Et();Cm(a,l,e,t,null,null)},Cs.prototype.unmount=so.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cm(e.current,2,null,e,null,null),rs(),t[gl]=null}};function Cs(e){this._internalRoot=e}Cs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ga.length&&t!==0&&t<Ga[a].priority;a++);Ga.splice(a,0,e),a===0&&Dm(e)}};var Hm=u.version;if(Hm!=="19.2.3")throw Error(r(527,Hm,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var jy={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ws.isDisabled&&ws.supportsFiber)try{rn=ws.inject(jy),ht=ws}catch{}}return ti.createRoot=function(e,t){if(!d(e))throw Error(r(299));var a=!1,l="",n=Vf,s=Zf,c=Kf;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&&(c=t.onRecoverableError)),t=jm(e,1,!1,null,null,a,l,null,n,s,c,Lm),e[gl]=t.current,Yr(e),new so(t)},ti.hydrateRoot=function(e,t,a){if(!d(e))throw Error(r(299));var l=!1,n="",s=Vf,c=Zf,p=Kf,E=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&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),t=jm(e,1,!0,t,a??null,l,n,E,s,c,p,Lm),t.context=Am(null),a=t.current,l=Et(),l=Fs(l),n=Aa(l),n.callback=null,Ca(a,n,l),a=l,t.current.lanes=a,cn(t,a),Vt(t),e[gl]=t.current,Yr(e),new Cs(t)},ti.version="19.2.3",ti}var Jm;function Uy(){if(Jm)return ro.exports;Jm=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(),ro.exports=By(),ro.exports}var Ly=Uy();const Hy=ch(Ly);var b=zo();const Be=ch(b),fh="/express/assets/no_image-DuvbomyT.png";function da(i){return Intl.NumberFormat("es-ES",{style:"currency",currency:"CLP",unitDisplay:"long"}).format(i)}const dh=b.createContext(void 0),ii=()=>{const i=b.useContext(dh);if(!i)throw new Error("useDialog debe ser usado dentro de un DialogProvider");return i},ky=({children:i})=>{var Q,ee,ne,ye,Te,Oe,D,J,ae,Ee;const[u,o]=b.useState(!1),[r,d]=b.useState({type:"confirm"}),[m,h]=b.useState(""),[v,g]=b.useState(!1),[y,S]=b.useState({}),[x,j]=b.useState(!1),[z,B]=b.useState(()=>{}),H=b.useRef(()=>{}),Y=b.useRef(null),U=ue=>{const _=Math.min(window.innerWidth-32,400),R=500,Z=(window.innerHeight-R)/2,F=(window.innerWidth-_)/2;return{top:`${Z}px`,left:`${F}px`,width:`${_}px`,height:`${R}px`,opacity:1,borderRadius:"16px"}},q=b.useCallback((ue,_,R)=>{var Z;return d({type:"confirm",message:ue,icon:_,options:R}),g(((Z=R==null?void 0:R.checkboxOptions)==null?void 0:Z.defaultChecked)||!1),o(!0),new Promise(F=>{H.current=F})},[]),M=b.useCallback((ue,_,R)=>{var Z;return d({type:"prompt",message:ue,icon:_,options:R}),h((R==null?void 0:R.defaultValue)||""),g(((Z=R==null?void 0:R.checkboxOptions)==null?void 0:Z.defaultChecked)||!1),o(!0),setTimeout(()=>{var F;return(F=Y.current)==null?void 0:F.focus()},50),new Promise(F=>{H.current=F})},[]),K=b.useCallback((ue,_,R)=>(d({type:"choose",message:ue,icon:_,options:R}),o(!0),new Promise(Z=>{H.current=Z})),[]),P=b.useCallback((ue,_,R)=>(d({type:"product",options:{product:ue,originRect:R}}),R?(j(!0),S({position:"fixed",top:`${R.top}px`,left:`${R.left}px`,width:`${R.width}px`,height:`${R.height}px`,opacity:0,zIndex:50,filter:"blur(50px)",borderRadius:"12px",overflow:"hidden",transition:"all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)"}),o(!0),B(()=>_(ue)),setTimeout(()=>{S(Z=>({...Z,...U(),filter:"blur(0px)",opacity:1,height:"auto",minHeight:"400px"})),setTimeout(()=>j(!1),300)},10)):o(!0),new Promise(Z=>{H.current=Z})),[]),$=b.useCallback(()=>{z(),k()},[z]),k=b.useCallback((ue=null)=>{o(!1),H.current(ue),setTimeout(()=>S({}),300)},[z]),V=ue=>{var R,Z;ue.key==="Escape"&&k(!1);const _=((Z=(R=r.options)==null?void 0:R.checkboxOptions)==null?void 0:Z.required)&&!v;r.type==="prompt"&&ue.key==="Enter"&&!_&&k(m)},W=((ee=(Q=r.options)==null?void 0:Q.checkboxOptions)==null?void 0:ee.required)&&!v;return f.jsxs(dh.Provider,{value:{confirm:q,prompt:M,choose:K,showProduct:P},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 duration-300 animate-in fade-in",onClick:()=>k(null)}),r.type==="product"&&((ne=r.options)!=null&&ne.product)?f.jsxs("div",{style:y,className:"bg-[#201512] border border-white/10 shadow-2xl flex flex-col relative",children:[f.jsxs("div",{className:"h-48 w-full relative shrink-0",children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url("${r.options.product.image||fh}")`}}),f.jsx("button",{onClick:()=>k(),className:"absolute top-2 right-2 bg-black/50 hover:bg-black/70 text-white rounded-full p-1 transition-colors z-10",children:f.jsx("span",{className:"material-symbols-outlined text-xl",children:"close"})})]}),f.jsxs("div",{className:`p-6 flex flex-col flex-1 transition-opacity duration-300 delay-100 ${x?"opacity-0":"opacity-100"}`,children:[f.jsxs("div",{className:"flex justify-between items-start mb-2",children:[f.jsx("h2",{className:"text-2xl font-bold text-white font-display",children:r.options.product.name}),f.jsxs("span",{className:"text-xl font-bold text-[#a33f1e]",children:["$",da(r.options.product.price)]})]}),f.jsx("p",{className:"text-gray-300 text-sm leading-relaxed mb-6",children:r.options.product.description}),f.jsx("div",{className:"mt-auto",children:f.jsx("button",{onClick:()=>$(),className:"w-full bg-[#a33f1e] text-white font-bold py-3 rounded-xl hover:bg-[#8f3322] transition-all active:scale-95",children:"Agregar al Pedido"})})]})]}):f.jsxs("div",{className:`relative bg-[#201512] rounded-2xl border border-white/10 shadow-2xl w-full transform transition-all p-6 overflow-hidden animate-in fade-in zoom-in duration-200 ${r.type==="choose"&&((ye=r.options)==null?void 0:ye.style)==="block"?"max-w-md":"max-w-xs"}`,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:r.icon})})}),f.jsx("p",{className:"text-white text-lg font-bold text-center mb-2 font-display leading-tight",children:r.message}),r.type==="prompt"&&f.jsx("div",{className:"mb-6 mt-4",children:f.jsx("input",{ref:Y,type:((Te=r.options)==null?void 0:Te.inputType)||"text",value:m,onChange:ue=>h(ue.target.value),onKeyDown:V,placeholder:(Oe=r.options)==null?void 0:Oe.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] transition-all"})}),((D=r.options)==null?void 0:D.checkboxOptions)&&f.jsxs("div",{className:"mt-4 flex items-start gap-3 p-3 rounded-xl cursor-pointer hover:bg-white/10 transition-colors",onClick:()=>g(!v),children:[f.jsx("div",{className:`mt-0.5 w-5 h-5 aspect-square rounded border flex items-center justify-center transition-all ${v?"bg-[#a33f1e] border-[#a33f1e]":"border-white/30"}`,children:v&&f.jsx("span",{className:"material-symbols-outlined text-white text-sm font-bold",children:"check"})}),f.jsx("span",{className:"text-sm text-gray-300 select-none leading-tight",children:r.options.checkboxOptions.label})]}),r.type==="choose"&&((J=r.options)==null?void 0:J.choices)&&f.jsx("div",{className:`mt-6 ${r.options.style==="block"?"grid grid-cols-2 gap-3":"flex flex-col space-y-2"}`,children:r.options.choices.map(ue=>{var _;return f.jsx("button",{onClick:()=>{o(!1),H.current(ue.value)},className:`group relative overflow-hidden rounded-xl border border-white/10 transition-all hover:border-[#a33f1e]/50 hover:bg-white/5 ${((_=r.options)==null?void 0:_.style)==="block"?"flex flex-col items-center p-4":"flex items-center w-full p-3"}`,children:f.jsx("span",{className:"text-white text-sm",children:ue.label})},ue.value)})}),f.jsxs("div",{className:`grid ${r.type==="choose"?"grid-cols-1 mt-6":"grid-cols-2 gap-3 mt-6"}`,children:[f.jsx("button",{onClick:()=>k(!1),className:"px-4 py-3 rounded-xl border border-white/20 text-white text-sm hover:bg-white/5",children:((ae=r.options)==null?void 0:ae.cancelText)||"Cancelar"}),r.type!=="choose"&&f.jsx("button",{disabled:W,onClick:()=>k(r.type==="prompt"?m:!0),className:`px-4 py-3 rounded-xl text-white text-sm transition-all
  50. ${W?"bg-gray-600 opacity-50 cursor-not-allowed":"bg-[#a33f1e] hover:bg-[#8f3322]"}
  51. `,children:((Ee=r.options)==null?void 0:Ee.confirmText)||(r.type==="prompt"?"Aceptar":"Sí")})]})]})]})]})},qy=({product:i,onAdd:u})=>{const o=ii(),r=m=>{const h=m.currentTarget.getBoundingClientRect();o.showProduct(i,u,h)},d=m=>{m.stopPropagation(),u(i)};return f.jsxs("div",{onClick:r,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 cursor-pointer",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||fh}")`}}),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((m,h)=>f.jsx("span",{className:`${m.color} text-white text-[10px] font-bold px-2 py-0.5 rounded uppercase tracking-wide shadow-sm w-fit`,children:m.text},`${m.text}-${h}`))})]}),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 group-hover:text-[#a33f1e] transition-colors",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:["$",da(i.price)]}),f.jsx("button",{onClick:d,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 z-20 relative",children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"add"})})]})]})]})};function Yy(i,u=500){const[o,r]=b.useState(i);return b.useEffect(()=>{const d=setTimeout(()=>{r(i)},u);return()=>{clearTimeout(d)}},[i,u]),o}function pa(i){return Array.isArray?Array.isArray(i):ph(i)==="[object Array]"}function Gy(i){if(typeof i=="string")return i;let u=i+"";return u=="0"&&1/i==-1/0?"-0":u}function Xy(i){return i==null?"":Gy(i)}function Zt(i){return typeof i=="string"}function mh(i){return typeof i=="number"}function Qy(i){return i===!0||i===!1||Vy(i)&&ph(i)=="[object Boolean]"}function hh(i){return typeof i=="object"}function Vy(i){return hh(i)&&i!==null}function _t(i){return i!=null}function ho(i){return!i.trim().length}function ph(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Zy="Incorrect 'index' type",Ky=i=>`Invalid value for key ${i}`,Jy=i=>`Pattern length exceeds max of ${i}.`,$y=i=>`Missing ${i} property in key`,Fy=i=>`Property 'weight' in key '${i}' must be a positive integer`,$m=Object.prototype.hasOwnProperty;class Wy{constructor(u){this._keys=[],this._keyMap={};let o=0;u.forEach(r=>{let d=yh(r);this._keys.push(d),this._keyMap[d.id]=d,o+=d.weight}),this._keys.forEach(r=>{r.weight/=o})}get(u){return this._keyMap[u]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yh(i){let u=null,o=null,r=null,d=1,m=null;if(Zt(i)||pa(i))r=i,u=Fm(i),o=vo(i);else{if(!$m.call(i,"name"))throw new Error($y("name"));const h=i.name;if(r=h,$m.call(i,"weight")&&(d=i.weight,d<=0))throw new Error(Fy(h));u=Fm(h),o=vo(h),m=i.getFn}return{path:u,id:o,weight:d,src:r,getFn:m}}function Fm(i){return pa(i)?i:i.split(".")}function vo(i){return pa(i)?i.join("."):i}function Iy(i,u){let o=[],r=!1;const d=(m,h,v)=>{if(_t(m))if(!h[v])o.push(m);else{let g=h[v];const y=m[g];if(!_t(y))return;if(v===h.length-1&&(Zt(y)||mh(y)||Qy(y)))o.push(Xy(y));else if(pa(y)){r=!0;for(let S=0,x=y.length;S<x;S+=1)d(y[S],h,v+1)}else h.length&&d(y,h,v+1)}};return d(i,Zt(u)?u.split("."):u,0),r?o:o[0]}const Py={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},eg={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},tg={location:0,threshold:.6,distance:100},ag={useExtendedSearch:!1,getFn:Iy,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var re={...eg,...Py,...tg,...ag};const lg=/[^ ]+/g;function ng(i=1,u=3){const o=new Map,r=Math.pow(10,u);return{get(d){const m=d.match(lg).length;if(o.has(m))return o.get(m);const h=1/Math.pow(m,.5*i),v=parseFloat(Math.round(h*r)/r);return o.set(m,v),v},clear(){o.clear()}}}class Mo{constructor({getFn:u=re.getFn,fieldNormWeight:o=re.fieldNormWeight}={}){this.norm=ng(o,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((o,r)=>{this._keysMap[o.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zt(this.docs[0])?this.docs.forEach((u,o)=>{this._addString(u,o)}):this.docs.forEach((u,o)=>{this._addObject(u,o)}),this.norm.clear())}add(u){const o=this.size();Zt(u)?this._addString(u,o):this._addObject(u,o)}removeAt(u){this.records.splice(u,1);for(let o=u,r=this.size();o<r;o+=1)this.records[o].i-=1}getValueForItemAtKeyId(u,o){return u[this._keysMap[o]]}size(){return this.records.length}_addString(u,o){if(!_t(u)||ho(u))return;let r={v:u,i:o,n:this.norm.get(u)};this.records.push(r)}_addObject(u,o){let r={i:o,$:{}};this.keys.forEach((d,m)=>{let h=d.getFn?d.getFn(u):this.getFn(u,d.path);if(_t(h)){if(pa(h)){let v=[];const g=[{nestedArrIndex:-1,value:h}];for(;g.length;){const{nestedArrIndex:y,value:S}=g.pop();if(_t(S))if(Zt(S)&&!ho(S)){let x={v:S,i:y,n:this.norm.get(S)};v.push(x)}else pa(S)&&S.forEach((x,j)=>{g.push({nestedArrIndex:j,value:x})})}r.$[m]=v}else if(Zt(h)&&!ho(h)){let v={v:h,n:this.norm.get(h)};r.$[m]=v}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function gh(i,u,{getFn:o=re.getFn,fieldNormWeight:r=re.fieldNormWeight}={}){const d=new Mo({getFn:o,fieldNormWeight:r});return d.setKeys(i.map(yh)),d.setSources(u),d.create(),d}function ig(i,{getFn:u=re.getFn,fieldNormWeight:o=re.fieldNormWeight}={}){const{keys:r,records:d}=i,m=new Mo({getFn:u,fieldNormWeight:o});return m.setKeys(r),m.setIndexRecords(d),m}function zs(i,{errors:u=0,currentLocation:o=0,expectedLocation:r=0,distance:d=re.distance,ignoreLocation:m=re.ignoreLocation}={}){const h=u/i.length;if(m)return h;const v=Math.abs(r-o);return d?h+v/d:v?1:h}function sg(i=[],u=re.minMatchCharLength){let o=[],r=-1,d=-1,m=0;for(let h=i.length;m<h;m+=1){let v=i[m];v&&r===-1?r=m:!v&&r!==-1&&(d=m-1,d-r+1>=u&&o.push([r,d]),r=-1)}return i[m-1]&&m-r>=u&&o.push([r,m-1]),o}const ml=32;function ug(i,u,o,{location:r=re.location,distance:d=re.distance,threshold:m=re.threshold,findAllMatches:h=re.findAllMatches,minMatchCharLength:v=re.minMatchCharLength,includeMatches:g=re.includeMatches,ignoreLocation:y=re.ignoreLocation}={}){if(u.length>ml)throw new Error(Jy(ml));const S=u.length,x=i.length,j=Math.max(0,Math.min(r,x));let z=m,B=j;const H=v>1||g,Y=H?Array(x):[];let U;for(;(U=i.indexOf(u,B))>-1;){let k=zs(u,{currentLocation:U,expectedLocation:j,distance:d,ignoreLocation:y});if(z=Math.min(k,z),B=U+S,H){let V=0;for(;V<S;)Y[U+V]=1,V+=1}}B=-1;let q=[],M=1,K=S+x;const P=1<<S-1;for(let k=0;k<S;k+=1){let V=0,W=K;for(;V<W;)zs(u,{errors:k,currentLocation:j+W,expectedLocation:j,distance:d,ignoreLocation:y})<=z?V=W:K=W,W=Math.floor((K-V)/2+V);K=W;let Q=Math.max(1,j-W+1),ee=h?x:Math.min(j+W,x)+S,ne=Array(ee+2);ne[ee+1]=(1<<k)-1;for(let Te=ee;Te>=Q;Te-=1){let Oe=Te-1,D=o[i.charAt(Oe)];if(H&&(Y[Oe]=+!!D),ne[Te]=(ne[Te+1]<<1|1)&D,k&&(ne[Te]|=(q[Te+1]|q[Te])<<1|1|q[Te+1]),ne[Te]&P&&(M=zs(u,{errors:k,currentLocation:Oe,expectedLocation:j,distance:d,ignoreLocation:y}),M<=z)){if(z=M,B=Oe,B<=j)break;Q=Math.max(1,2*j-B)}}if(zs(u,{errors:k+1,currentLocation:j,expectedLocation:j,distance:d,ignoreLocation:y})>z)break;q=ne}const $={isMatch:B>=0,score:Math.max(.001,M)};if(H){const k=sg(Y,v);k.length?g&&($.indices=k):$.isMatch=!1}return $}function rg(i){let u={};for(let o=0,r=i.length;o<r;o+=1){const d=i.charAt(o);u[d]=(u[d]||0)|1<<r-o-1}return u}const Bs=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 vh{constructor(u,{location:o=re.location,threshold:r=re.threshold,distance:d=re.distance,includeMatches:m=re.includeMatches,findAllMatches:h=re.findAllMatches,minMatchCharLength:v=re.minMatchCharLength,isCaseSensitive:g=re.isCaseSensitive,ignoreDiacritics:y=re.ignoreDiacritics,ignoreLocation:S=re.ignoreLocation}={}){if(this.options={location:o,threshold:r,distance:d,includeMatches:m,findAllMatches:h,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:S},u=g?u:u.toLowerCase(),u=y?Bs(u):u,this.pattern=u,this.chunks=[],!this.pattern.length)return;const x=(z,B)=>{this.chunks.push({pattern:z,alphabet:rg(z),startIndex:B})},j=this.pattern.length;if(j>ml){let z=0;const B=j%ml,H=j-B;for(;z<H;)x(this.pattern.substr(z,ml),z),z+=ml;if(B){const Y=j-ml;x(this.pattern.substr(Y),Y)}}else x(this.pattern,0)}searchIn(u){const{isCaseSensitive:o,ignoreDiacritics:r,includeMatches:d}=this.options;if(u=o?u:u.toLowerCase(),u=r?Bs(u):u,this.pattern===u){let H={isMatch:!0,score:0};return d&&(H.indices=[[0,u.length-1]]),H}const{location:m,distance:h,threshold:v,findAllMatches:g,minMatchCharLength:y,ignoreLocation:S}=this.options;let x=[],j=0,z=!1;this.chunks.forEach(({pattern:H,alphabet:Y,startIndex:U})=>{const{isMatch:q,score:M,indices:K}=ug(u,H,Y,{location:m+U,distance:h,threshold:v,findAllMatches:g,minMatchCharLength:y,includeMatches:d,ignoreLocation:S});q&&(z=!0),j+=M,q&&K&&(x=[...x,...K])});let B={isMatch:z,score:z?j/this.chunks.length:1};return z&&d&&(B.indices=x),B}}class Va{constructor(u){this.pattern=u}static isMultiMatch(u){return Wm(u,this.multiRegex)}static isSingleMatch(u){return Wm(u,this.singleRegex)}search(){}}function Wm(i,u){const o=i.match(u);return o?o[1]:null}class og extends Va{constructor(u){super(u)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(u){const o=u===this.pattern;return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class cg extends Va{constructor(u){super(u)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(u){const r=u.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,u.length-1]}}}class fg extends Va{constructor(u){super(u)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(u){const o=u.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,this.pattern.length-1]}}}class dg extends Va{constructor(u){super(u)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(u){const o=!u.startsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,u.length-1]}}}class mg extends Va{constructor(u){super(u)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(u){const o=u.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[u.length-this.pattern.length,u.length-1]}}}class hg extends Va{constructor(u){super(u)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(u){const o=!u.endsWith(this.pattern);return{isMatch:o,score:o?0:1,indices:[0,u.length-1]}}}class xh extends Va{constructor(u,{location:o=re.location,threshold:r=re.threshold,distance:d=re.distance,includeMatches:m=re.includeMatches,findAllMatches:h=re.findAllMatches,minMatchCharLength:v=re.minMatchCharLength,isCaseSensitive:g=re.isCaseSensitive,ignoreDiacritics:y=re.ignoreDiacritics,ignoreLocation:S=re.ignoreLocation}={}){super(u),this._bitapSearch=new vh(u,{location:o,threshold:r,distance:d,includeMatches:m,findAllMatches:h,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:S})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(u){return this._bitapSearch.searchIn(u)}}class bh extends Va{constructor(u){super(u)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(u){let o=0,r;const d=[],m=this.pattern.length;for(;(r=u.indexOf(this.pattern,o))>-1;)o=r+m,d.push([r,o-1]);const h=!!d.length;return{isMatch:h,score:h?0:1,indices:d}}}const xo=[og,bh,fg,dg,hg,mg,cg,xh],Im=xo.length,pg=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,yg="|";function gg(i,u={}){return i.split(yg).map(o=>{let r=o.trim().split(pg).filter(m=>m&&!!m.trim()),d=[];for(let m=0,h=r.length;m<h;m+=1){const v=r[m];let g=!1,y=-1;for(;!g&&++y<Im;){const S=xo[y];let x=S.isMultiMatch(v);x&&(d.push(new S(x,u)),g=!0)}if(!g)for(y=-1;++y<Im;){const S=xo[y];let x=S.isSingleMatch(v);if(x){d.push(new S(x,u));break}}}return d})}const vg=new Set([xh.type,bh.type]);class xg{constructor(u,{isCaseSensitive:o=re.isCaseSensitive,ignoreDiacritics:r=re.ignoreDiacritics,includeMatches:d=re.includeMatches,minMatchCharLength:m=re.minMatchCharLength,ignoreLocation:h=re.ignoreLocation,findAllMatches:v=re.findAllMatches,location:g=re.location,threshold:y=re.threshold,distance:S=re.distance}={}){this.query=null,this.options={isCaseSensitive:o,ignoreDiacritics:r,includeMatches:d,minMatchCharLength:m,findAllMatches:v,ignoreLocation:h,location:g,threshold:y,distance:S},u=o?u:u.toLowerCase(),u=r?Bs(u):u,this.pattern=u,this.query=gg(this.pattern,this.options)}static condition(u,o){return o.useExtendedSearch}searchIn(u){const o=this.query;if(!o)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:d,ignoreDiacritics:m}=this.options;u=d?u:u.toLowerCase(),u=m?Bs(u):u;let h=0,v=[],g=0;for(let y=0,S=o.length;y<S;y+=1){const x=o[y];v.length=0,h=0;for(let j=0,z=x.length;j<z;j+=1){const B=x[j],{isMatch:H,indices:Y,score:U}=B.search(u);if(H){if(h+=1,g+=U,r){const q=B.constructor.type;vg.has(q)?v=[...v,...Y]:v.push(Y)}}else{g=0,h=0,v.length=0;break}}if(h){let j={isMatch:!0,score:g/h};return r&&(j.indices=v),j}}return{isMatch:!1,score:1}}}const bo=[];function bg(...i){bo.push(...i)}function So(i,u){for(let o=0,r=bo.length;o<r;o+=1){let d=bo[o];if(d.condition(i,u))return new d(i,u)}return new vh(i,u)}const Us={AND:"$and",OR:"$or"},Eo={PATH:"$path",PATTERN:"$val"},_o=i=>!!(i[Us.AND]||i[Us.OR]),Sg=i=>!!i[Eo.PATH],Eg=i=>!pa(i)&&hh(i)&&!_o(i),Pm=i=>({[Us.AND]:Object.keys(i).map(u=>({[u]:i[u]}))});function Sh(i,u,{auto:o=!0}={}){const r=d=>{let m=Object.keys(d);const h=Sg(d);if(!h&&m.length>1&&!_o(d))return r(Pm(d));if(Eg(d)){const g=h?d[Eo.PATH]:m[0],y=h?d[Eo.PATTERN]:d[g];if(!Zt(y))throw new Error(Ky(g));const S={keyId:vo(g),pattern:y};return o&&(S.searcher=So(y,u)),S}let v={children:[],operator:m[0]};return m.forEach(g=>{const y=d[g];pa(y)&&y.forEach(S=>{v.children.push(r(S))})}),v};return _o(i)||(i=Pm(i)),r(i)}function _g(i,{ignoreFieldNorm:u=re.ignoreFieldNorm}){i.forEach(o=>{let r=1;o.matches.forEach(({key:d,norm:m,score:h})=>{const v=d?d.weight:null;r*=Math.pow(h===0&&v?Number.EPSILON:h,(v||1)*(u?1:m))}),o.score=r})}function Tg(i,u){const o=i.matches;u.matches=[],_t(o)&&o.forEach(r=>{if(!_t(r.indices)||!r.indices.length)return;const{indices:d,value:m}=r;let h={indices:d,value:m};r.key&&(h.key=r.key.src),r.idx>-1&&(h.refIndex=r.idx),u.matches.push(h)})}function Ng(i,u){u.score=i.score}function jg(i,u,{includeMatches:o=re.includeMatches,includeScore:r=re.includeScore}={}){const d=[];return o&&d.push(Tg),r&&d.push(Ng),i.map(m=>{const{idx:h}=m,v={item:u[h],refIndex:h};return d.length&&d.forEach(g=>{g(m,v)}),v})}class tn{constructor(u,o={},r){this.options={...re,...o},this.options.useExtendedSearch,this._keyStore=new Wy(this.options.keys),this.setCollection(u,r)}setCollection(u,o){if(this._docs=u,o&&!(o instanceof Mo))throw new Error(Zy);this._myIndex=o||gh(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 o=[];for(let r=0,d=this._docs.length;r<d;r+=1){const m=this._docs[r];u(m,r)&&(this.removeAt(r),r-=1,d-=1,o.push(m))}return o}removeAt(u){this._docs.splice(u,1),this._myIndex.removeAt(u)}getIndex(){return this._myIndex}search(u,{limit:o=-1}={}){const{includeMatches:r,includeScore:d,shouldSort:m,sortFn:h,ignoreFieldNorm:v}=this.options;let g=Zt(u)?Zt(this._docs[0])?this._searchStringList(u):this._searchObjectList(u):this._searchLogical(u);return _g(g,{ignoreFieldNorm:v}),m&&g.sort(h),mh(o)&&o>-1&&(g=g.slice(0,o)),jg(g,this._docs,{includeMatches:r,includeScore:d})}_searchStringList(u){const o=So(u,this.options),{records:r}=this._myIndex,d=[];return r.forEach(({v:m,i:h,n:v})=>{if(!_t(m))return;const{isMatch:g,score:y,indices:S}=o.searchIn(m);g&&d.push({item:m,idx:h,matches:[{score:y,value:m,norm:v,indices:S}]})}),d}_searchLogical(u){const o=Sh(u,this.options),r=(v,g,y)=>{if(!v.children){const{keyId:x,searcher:j}=v,z=this._findMatches({key:this._keyStore.get(x),value:this._myIndex.getValueForItemAtKeyId(g,x),searcher:j});return z&&z.length?[{idx:y,item:g,matches:z}]:[]}const S=[];for(let x=0,j=v.children.length;x<j;x+=1){const z=v.children[x],B=r(z,g,y);if(B.length)S.push(...B);else if(v.operator===Us.AND)return[]}return S},d=this._myIndex.records,m={},h=[];return d.forEach(({$:v,i:g})=>{if(_t(v)){let y=r(o,v,g);y.length&&(m[g]||(m[g]={idx:g,item:v,matches:[]},h.push(m[g])),y.forEach(({matches:S})=>{m[g].matches.push(...S)}))}}),h}_searchObjectList(u){const o=So(u,this.options),{keys:r,records:d}=this._myIndex,m=[];return d.forEach(({$:h,i:v})=>{if(!_t(h))return;let g=[];r.forEach((y,S)=>{g.push(...this._findMatches({key:y,value:h[S],searcher:o}))}),g.length&&m.push({idx:v,item:h,matches:g})}),m}_findMatches({key:u,value:o,searcher:r}){if(!_t(o))return[];let d=[];if(pa(o))o.forEach(({v:m,i:h,n:v})=>{if(!_t(m))return;const{isMatch:g,score:y,indices:S}=r.searchIn(m);g&&d.push({score:y,key:u,value:m,idx:h,norm:v,indices:S})});else{const{v:m,n:h}=o,{isMatch:v,score:g,indices:y}=r.searchIn(m);v&&d.push({score:g,key:u,value:m,norm:h,indices:y})}return d}}tn.version="7.1.0";tn.createIndex=gh;tn.parseIndex=ig;tn.config=re;tn.parseQuery=Sh;bg(xg);const Ag=(i,u,o=.5)=>{const[r,d]=b.useState(""),m=b.useMemo(()=>new tn(i,{keys:u,threshold:o,ignoreLocation:!0,minMatchCharLength:2}),[i,u,o]),h=b.useMemo(()=>r?m.search(r).map(v=>v.item):i,[m,r,i]);return{query:r,setQuery:d,results:h}},Yt=window.location.hostname==="localhost"?"http://localhost:6001":"https://kleinexpress.store",Cg=[{id:"1",sender:"system",text:"Initiating connection...",timestamp:"18:04"}],Eh=i=>{localStorage.setItem("token",i)},Za=()=>localStorage.getItem("token"),wg=async(i,u)=>await(await fetch(`${Yt}/api/users/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,pin:u})})).json(),an=async()=>(await fetch(`${Yt}/api/users/guest`,{method:"GET",headers:{"Content-Type":"application/json"}})).json(),zg=async i=>await(await fetch(`${Yt}/api/users/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).json(),Mg=async i=>{const u=i?Za():(await an()).data.token;return await(await fetch(`${Yt}/api/products?status=1`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`}})).json()},Og=async(i,u)=>{const o=u?Za():(await an()).data.token;return await(await fetch(`${Yt}/api/orders/send`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(i)})).json()},_h=async(i,u)=>{const o=u?Za():(await an()).data.token;return await(await fetch(`${Yt}/api/products/table/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}})).json()},Th=async(i,u,o)=>{const r=i?Za():(await an()).data.token;return await(await fetch(`${Yt}/api/orders/billing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({table:u,payment:o})})).json()},Rg=async(i,u)=>{const o=i?Za():(await an()).data.token,r=await fetch(`${Yt}/api/products/free-beer/${u}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}),d=await r.json();return{success:r.status===200,message:d.message}},Dg=async i=>{const u=i?Za():(await an()).data.token,r=await(await fetch(`${Yt}/api/store/state`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`}})).json();return console.log("data",r),r.data.state},Nh=b.createContext(void 0),Bg=({children:i})=>{const[u,o]=b.useState(!1),[r,d]=b.useState(),[m,h]=b.useState(0),[v,g]=b.useState(""),y=b.useCallback((z,B)=>{B&&!B.token&&(B.token=Za()),o(z),d(B),h(B?B.reward_progress:0),g(B?B.token:"")},[]),S=b.useCallback(z=>{g(z)},[]),x=b.useCallback(z=>{h(z)},[]),j=b.useMemo(()=>({isLogged:u,user:r,token:v,setIsLoggedIn:y,promoPercent:m,setPromoPercent:x,setToken:S}),[u,r,v,y,m,x,S]);return f.jsx(Nh.Provider,{value:j,children:i})},Tt=()=>b.useContext(Nh);function Ug(i){return i.map(u=>{const o={...u};if(o.badges=[],o.type==="Cervezas"&&o.description){const m=/IBU\s*:?\s*(\d+(?:\.\d+)?)/i.exec(o.description);m&&o.badges.push({text:"IBU "+m[1],color:"bg-black/60 backdrop-blur"});const v=/(\d+(?:[\.,]\d+)?)\s*(?:º|grados)/i.exec(o.description);if(v){let g=v[1].replace(".",",");g.includes(",")||(g+=",0"),o.badges.push({text:`${g}º`,color:"bg-black/60 backdrop-blur"})}}return["Pizza Medianas","Pizzas Familiares","Sandwich de Autor"].includes(u.type)&&(o.description.toLowerCase().includes("veggie")||o.description.toLowerCase().includes("vegetarian")||o.description.toLowerCase().includes("vegan")||o.name.toLowerCase().includes("veggie")||o.name.toLowerCase().includes("vegetarian")||o.name.toLowerCase().includes("vegan"))&&o.badges.push({text:"VEGGIE",color:"bg-green-600"}),o})}const jh=b.createContext(void 0),Lg=({children:i})=>{const[u,o]=b.useState(!1),[r,d]=b.useState("Cargando..."),m=(h,v="Cargando...")=>{o(h),setTimeout(()=>{d(v)},h?0:2e3)};return f.jsxs(jh.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:r})]})})}),i]})},si=()=>b.useContext(jh),Ah=b.createContext(void 0),Hg=({children:i})=>{const[u,o]=b.useState([]),[r,d]=b.useState(void 0),m=b.useCallback((...y)=>{const S=u.filter(x=>y.some(j=>j.id===x.id));return S.forEach(x=>x.quantity=0),S.map(x=>{const j={...x};return j.quantity=y.filter(z=>z.id===x.id).reduce((z,B)=>z+B.quantity,0),j})},[u]),h=b.useCallback((y,S)=>{const x=u.map(j=>j.id===y?{...j,price:S}:j);o(x)},[u]),v=b.useCallback(y=>{const S=u.filter(x=>x.id!==y);o(S)},[u]),g=b.useMemo(()=>({products:u,setProducts:o,table:r,setTable:d,getItems:m,updateProduct:h,removeProduct:v}),[u,o,r,d,m,h,v]);return f.jsx(Ah.Provider,{value:g,children:i})},ln=()=>b.useContext(Ah),fa="Todos",kg=({onAddProduct:i})=>{const[u,o]=b.useState(""),[r,d]=b.useState([]),[m,h]=b.useState(fa),{products:v,setProducts:g}=ln(),{setQuery:y,results:S}=Ag(v,["name","description"],.4),x=Yy(u,500),{setIsLoading:j}=si(),{isLogged:z}=Tt(),B=b.useRef(null),H=U=>{m!==fa&&h(fa),o(U)},Y=b.useCallback(U=>{var q=B.current;q&&(console.log("animation"),q.animate([{filter:"blur(0px)"},{filter:"blur(10px)"},{filter:"blur(0px)"}],{duration:300,fill:"forwards"})),setTimeout(()=>{h(U)},300)},[B]);return b.useEffect(()=>{m!==fa&&h(fa);var U=B.current;U&&U.animate([{filter:"blur(0px)"},{filter:"blur(10px)"},{filter:"blur(0px)"}],{duration:150,fill:"forwards"}),setTimeout(()=>{y(x)},150)},[x]),b.useEffect(()=>{(async()=>{if(v.length>0)return;j(!0,"Cargando Productos...");const q=await Mg(z),M=q.data.products;if(q.success){const K=Ug(M);g(K);const P=M.reduce(($,k)=>($.includes(k.type)||$.push(k.type),$),[]);d(P),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:"Pide directo a tu mesa"}),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:U=>H(U.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===fa?" bg-primary shadow-primary/20":" bg-[#2a201c] hover:bg-[#3a2c26]"),onClick:()=>Y(fa),children:fa}),r.map(U=>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===U?" bg-primary shadow-primary/20":" hover:bg-[#3a2c26]"),onClick:()=>Y(U),children:U},U))]})]}),f.jsx("div",{ref:B,id:"productGrid",className:"p-4 grid grid-cols-2 gap-4 pb-28",children:S?S.map(U=>{if(m===fa||U.type===m)return f.jsx(qy,{product:U,onAdd:i},U.id)}):"No se encontraron productos"})]})},eh=`${Yt}/api/chat`;class qg{constructor(){this.socket=null,this.messageHandler=null,this.errorHandler=null,this.closeHandler=null,this.mentionHandler=null}connect(u){this.socket&&this.socket.close();const r=`${Yt.replace(/^http/,"ws")}/api/chat/ws?token=${encodeURIComponent(u)}`;return this.socket=new WebSocket(r),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,o){this.send({type:"message",username:u,message:o})}sendAiMessage(u,o){this.send({type:"ai_message",username:u,message:o})}sendMention(u,o){this.send({type:"mention",username:o})}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,o){var h;const r=new URL(`${eh}/users`);o&&r.searchParams.append("q",o);const d=await fetch(r.toString(),{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!d.ok)throw new Error("Error fetching users");const m=await d.json();return((h=m.data)==null?void 0:h.users)||m.data||[]}async getOnlineCount(u){var d;const o=await fetch(`${eh}/onlines`,{headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"}});if(!o.ok)throw new Error("Error fetching count");return((d=(await o.json()).data)==null?void 0:d.count)||0}async mention(u){this.send({type:"mention",username:u})}}const at=new qg;function Ch(i){var u,o,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(u=0;u<d;u++)i[u]&&(o=Ch(i[u]))&&(r&&(r+=" "),r+=o)}else for(o in i)i[o]&&(r&&(r+=" "),r+=o);return r}function hl(){for(var i,u,o=0,r="",d=arguments.length;o<d;o++)(i=arguments[o])&&(u=Ch(i))&&(r&&(r+=" "),r+=u);return r}function Yg(i){if(typeof document>"u")return;let u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i))}Yg(`: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)}}
  52. `);var ui=i=>typeof i=="number"&&!isNaN(i),pl=i=>typeof i=="string",ya=i=>typeof i=="function",Gg=i=>pl(i)||ui(i),To=i=>pl(i)||ya(i)?i:null,Xg=(i,u)=>i===!1||ui(i)&&i>0?i:u,No=i=>b.isValidElement(i)||pl(i)||ya(i)||ui(i);function Qg(i,u,o=300){let{scrollHeight:r,style:d}=i;requestAnimationFrame(()=>{d.minHeight="initial",d.height=r+"px",d.transition=`all ${o}ms`,requestAnimationFrame(()=>{d.height="0",d.padding="0",d.margin="0",setTimeout(u,o)})})}function Vg({enter:i,exit:u,appendPosition:o=!1,collapse:r=!0,collapseDuration:d=300}){return function({children:m,position:h,preventExitTransition:v,done:g,nodeRef:y,isIn:S,playToast:x}){let j=o?`${i}--${h}`:i,z=o?`${u}--${h}`:u,B=b.useRef(0);return b.useLayoutEffect(()=>{let H=y.current,Y=j.split(" "),U=q=>{q.target===y.current&&(x(),H.removeEventListener("animationend",U),H.removeEventListener("animationcancel",U),B.current===0&&q.type!=="animationcancel"&&H.classList.remove(...Y))};H.classList.add(...Y),H.addEventListener("animationend",U),H.addEventListener("animationcancel",U)},[]),b.useEffect(()=>{let H=y.current,Y=()=>{H.removeEventListener("animationend",Y),r?Qg(H,g,d):g()};S||(v?Y():(B.current=1,H.className+=` ${z}`,H.addEventListener("animationend",Y)))},[S]),Be.createElement(Be.Fragment,null,m)}}function th(i,u){return{content:wh(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 wh(i,u,o=!1){return b.isValidElement(i)&&!pl(i.type)?b.cloneElement(i,{closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:o}):ya(i)?i({closeToast:u.closeToast,toastProps:u,data:u.data,isPaused:o}):i}function Zg({closeToast:i,theme:u,ariaLabel:o="close"}){return Be.createElement("button",{className:`Toastify__close-button Toastify__close-button--${u}`,type:"button",onClick:r=>{r.stopPropagation(),i(!0)},"aria-label":o},Be.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Be.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 Kg({delay:i,isRunning:u,closeToast:o,type:r="default",hide:d,className:m,controlledProgress:h,progress:v,rtl:g,isIn:y,theme:S}){let x=d||h&&v===0,j={animationDuration:`${i}ms`,animationPlayState:u?"running":"paused"};h&&(j.transform=`scaleX(${v})`);let z=hl("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":g}),B=ya(m)?m({rtl:g,type:r,defaultClassName:z}):hl(z,m),H={[h&&v>=1?"onTransitionEnd":"onAnimationEnd"]:h&&v<1?null:()=>{y&&o()}};return Be.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},Be.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${r}`}),Be.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:B,style:j,...H}))}var Jg=1,zh=()=>`${Jg++}`;function $g(i,u,o){let r=1,d=0,m=[],h=[],v=u,g=new Map,y=new Set,S=q=>(y.add(q),()=>y.delete(q)),x=()=>{h=Array.from(g.values()),y.forEach(q=>q())},j=({containerId:q,toastId:M,updateId:K})=>{let P=q?q!==i:i!==1,$=g.has(M)&&K==null;return P||$},z=(q,M)=>{g.forEach(K=>{var P;(M==null||M===K.props.toastId)&&((P=K.toggle)==null||P.call(K,q))})},B=q=>{var M,K;(K=(M=q.props)==null?void 0:M.onClose)==null||K.call(M,q.removalReason),q.isActive=!1},H=q=>{if(q==null)g.forEach(B);else{let M=g.get(q);M&&B(M)}x()},Y=()=>{d-=m.length,m=[]},U=q=>{var M,K;let{toastId:P,updateId:$}=q.props,k=$==null;q.staleId&&g.delete(q.staleId),q.isActive=!0,g.set(P,q),x(),o(th(q,k?"added":"updated")),k&&((K=(M=q.props).onOpen)==null||K.call(M))};return{id:i,props:v,observe:S,toggle:z,removeToast:H,toasts:g,clearQueue:Y,buildToast:(q,M)=>{if(j(M))return;let{toastId:K,updateId:P,data:$,staleId:k,delay:V}=M,W=P==null;W&&d++;let Q={...v,style:v.toastStyle,key:r++,...Object.fromEntries(Object.entries(M).filter(([ne,ye])=>ye!=null)),toastId:K,updateId:P,data:$,isIn:!1,className:To(M.className||v.toastClassName),progressClassName:To(M.progressClassName||v.progressClassName),autoClose:M.isLoading?!1:Xg(M.autoClose,v.autoClose),closeToast(ne){g.get(K).removalReason=ne,H(K)},deleteToast(){let ne=g.get(K);if(ne!=null){if(o(th(ne,"removed")),g.delete(K),d--,d<0&&(d=0),m.length>0){U(m.shift());return}x()}}};Q.closeButton=v.closeButton,M.closeButton===!1||No(M.closeButton)?Q.closeButton=M.closeButton:M.closeButton===!0&&(Q.closeButton=No(v.closeButton)?v.closeButton:!0);let ee={content:q,props:Q,staleId:k};v.limit&&v.limit>0&&d>v.limit&&W?m.push(ee):ui(V)?setTimeout(()=>{U(ee)},V):U(ee)},setProps(q){v=q},setToggle:(q,M)=>{let K=g.get(q);K&&(K.toggle=M)},isToastActive:q=>{var M;return(M=g.get(q))==null?void 0:M.isActive},getSnapshot:()=>h}}var it=new Map,li=[],jo=new Set,Fg=i=>jo.forEach(u=>u(i)),Mh=()=>it.size>0;function Wg(){li.forEach(i=>Rh(i.content,i.options)),li=[]}var Ig=(i,{containerId:u})=>{var o;return(o=it.get(u||1))==null?void 0:o.toasts.get(i)};function Oh(i,u){var o;if(u)return!!((o=it.get(u))!=null&&o.isToastActive(i));let r=!1;return it.forEach(d=>{d.isToastActive(i)&&(r=!0)}),r}function Pg(i){if(!Mh()){li=li.filter(u=>i!=null&&u.options.toastId!==i);return}if(i==null||Gg(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(o=>{o.removeToast(i.id)})}}var ev=(i={})=>{it.forEach(u=>{u.props.limit&&(!i.containerId||u.id===i.containerId)&&u.clearQueue()})};function Rh(i,u){No(i)&&(Mh()||li.push({content:i,options:u}),it.forEach(o=>{o.buildToast(i,u)}))}function tv(i){var u;(u=it.get(i.containerId||1))==null||u.setToggle(i.id,i.fn)}function Dh(i,u){it.forEach(o=>{(u==null||!(u!=null&&u.containerId)||(u==null?void 0:u.containerId)===o.id)&&o.toggle(i,u==null?void 0:u.id)})}function av(i){let u=i.containerId||1;return{subscribe(o){let r=$g(u,i,Fg);it.set(u,r);let d=r.observe(o);return Wg(),()=>{d(),it.delete(u)}},setProps(o){var r;(r=it.get(u))==null||r.setProps(o)},getSnapshot(){var o;return(o=it.get(u))==null?void 0:o.getSnapshot()}}}function lv(i){return jo.add(i),()=>{jo.delete(i)}}function nv(i){return i&&(pl(i.toastId)||ui(i.toastId))?i.toastId:zh()}function ri(i,u){return Rh(i,u),u.toastId}function Hs(i,u){return{...u,type:u&&u.type||i,toastId:nv(u)}}function ks(i){return(u,o)=>ri(u,Hs(i,o))}function ie(i,u){return ri(i,Hs("default",u))}ie.loading=(i,u)=>ri(i,Hs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...u}));function iv(i,{pending:u,error:o,success:r},d){let m;u&&(m=pl(u)?ie.loading(u,d):ie.loading(u.render,{...d,...u}));let h={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},v=(y,S,x)=>{if(S==null){ie.dismiss(m);return}let j={type:y,...h,...d,data:x},z=pl(S)?{render:S}:S;return m?ie.update(m,{...j,...z}):ie(z.render,{...j,...z}),x},g=ya(i)?i():i;return g.then(y=>v("success",r,y)).catch(y=>v("error",o,y)),g}ie.promise=iv;ie.success=ks("success");ie.info=ks("info");ie.error=ks("error");ie.warning=ks("warning");ie.warn=ie.warning;ie.dark=(i,u)=>ri(i,Hs("default",{theme:"dark",...u}));function sv(i){Pg(i)}ie.dismiss=sv;ie.clearWaitingQueue=ev;ie.isActive=Oh;ie.update=(i,u={})=>{let o=Ig(i,u);if(o){let{props:r,content:d}=o,m={delay:100,...r,...u,toastId:u.toastId||i,updateId:zh()};m.toastId!==i&&(m.staleId=i);let h=m.render||d;delete m.render,ri(h,m)}};ie.done=i=>{ie.update(i,{progress:1})};ie.onChange=lv;ie.play=i=>Dh(!0,i);ie.pause=i=>Dh(!1,i);function uv(i){var u;let{subscribe:o,getSnapshot:r,setProps:d}=b.useRef(av(i)).current;d(i);let m=(u=b.useSyncExternalStore(o,r,r))==null?void 0:u.slice();function h(v){if(!m)return[];let g=new Map;return i.newestOnTop&&m.reverse(),m.forEach(y=>{let{position:S}=y.props;g.has(S)||g.set(S,[]),g.get(S).push(y)}),Array.from(g,y=>v(y[0],y[1]))}return{getToastToRender:h,isToastActive:Oh,count:m==null?void 0:m.length}}function rv(i){let[u,o]=b.useState(!1),[r,d]=b.useState(!1),m=b.useRef(null),h=b.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:v,pauseOnHover:g,closeToast:y,onClick:S,closeOnClick:x}=i;tv({id:i.toastId,containerId:i.containerId,fn:o}),b.useEffect(()=>{if(i.pauseOnFocusLoss)return j(),()=>{z()}},[i.pauseOnFocusLoss]);function j(){document.hasFocus()||U(),window.addEventListener("focus",Y),window.addEventListener("blur",U)}function z(){window.removeEventListener("focus",Y),window.removeEventListener("blur",U)}function B(k){if(i.draggable===!0||i.draggable===k.pointerType){q();let V=m.current;h.canCloseOnClick=!0,h.canDrag=!0,V.style.transition="none",i.draggableDirection==="x"?(h.start=k.clientX,h.removalDistance=V.offsetWidth*(i.draggablePercent/100)):(h.start=k.clientY,h.removalDistance=V.offsetHeight*(i.draggablePercent===80?i.draggablePercent*1.5:i.draggablePercent)/100)}}function H(k){let{top:V,bottom:W,left:Q,right:ee}=m.current.getBoundingClientRect();k.nativeEvent.type!=="touchend"&&i.pauseOnHover&&k.clientX>=Q&&k.clientX<=ee&&k.clientY>=V&&k.clientY<=W?U():Y()}function Y(){o(!0)}function U(){o(!1)}function q(){h.didMove=!1,document.addEventListener("pointermove",K),document.addEventListener("pointerup",P)}function M(){document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",P)}function K(k){let V=m.current;if(h.canDrag&&V){h.didMove=!0,u&&U(),i.draggableDirection==="x"?h.delta=k.clientX-h.start:h.delta=k.clientY-h.start,h.start!==k.clientX&&(h.canCloseOnClick=!1);let W=i.draggableDirection==="x"?`${h.delta}px, var(--y)`:`0, calc(${h.delta}px + var(--y))`;V.style.transform=`translate3d(${W},0)`,V.style.opacity=`${1-Math.abs(h.delta/h.removalDistance)}`}}function P(){M();let k=m.current;if(h.canDrag&&h.didMove&&k){if(h.canDrag=!1,Math.abs(h.delta)>h.removalDistance){d(!0),i.closeToast(!0),i.collapseAll();return}k.style.transition="transform 0.2s, opacity 0.2s",k.style.removeProperty("transform"),k.style.removeProperty("opacity")}}let $={onPointerDown:B,onPointerUp:H};return v&&g&&($.onMouseEnter=U,i.stacked||($.onMouseLeave=Y)),x&&($.onClick=k=>{S&&S(k),h.canCloseOnClick&&y(!0)}),{playToast:Y,pauseToast:U,isRunning:u,preventExitTransition:r,toastRef:m,eventHandlers:$}}var ov=typeof window<"u"?b.useLayoutEffect:b.useEffect,qs=({theme:i,type:u,isLoading:o,...r})=>Be.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:i==="colored"?"currentColor":`var(--toastify-icon-color-${u})`,...r});function cv(i){return Be.createElement(qs,{...i},Be.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 fv(i){return Be.createElement(qs,{...i},Be.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 dv(i){return Be.createElement(qs,{...i},Be.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 mv(i){return Be.createElement(qs,{...i},Be.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 hv(){return Be.createElement("div",{className:"Toastify__spinner"})}var Ao={info:fv,warning:cv,success:dv,error:mv,spinner:hv},pv=i=>i in Ao;function yv({theme:i,type:u,isLoading:o,icon:r}){let d=null,m={theme:i,type:u};return r===!1||(ya(r)?d=r({...m,isLoading:o}):b.isValidElement(r)?d=b.cloneElement(r,m):o?d=Ao.spinner():pv(u)&&(d=Ao[u](m))),d}var gv=i=>{let{isRunning:u,preventExitTransition:o,toastRef:r,eventHandlers:d,playToast:m}=rv(i),{closeButton:h,children:v,autoClose:g,onClick:y,type:S,hideProgressBar:x,closeToast:j,transition:z,position:B,className:H,style:Y,progressClassName:U,updateId:q,role:M,progress:K,rtl:P,toastId:$,deleteToast:k,isIn:V,isLoading:W,closeOnClick:Q,theme:ee,ariaLabel:ne}=i,ye=hl("Toastify__toast",`Toastify__toast-theme--${ee}`,`Toastify__toast--${S}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":Q}),Te=ya(H)?H({rtl:P,position:B,type:S,defaultClassName:ye}):hl(ye,H),Oe=yv(i),D=!!K||!g,J={closeToast:j,type:S,theme:ee},ae=null;return h===!1||(ya(h)?ae=h(J):b.isValidElement(h)?ae=b.cloneElement(h,J):ae=Zg(J)),Be.createElement(z,{isIn:V,done:k,position:B,preventExitTransition:o,nodeRef:r,playToast:m},Be.createElement("div",{id:$,tabIndex:0,onClick:y,"data-in":V,className:Te,...d,style:Y,ref:r,...V&&{role:M,"aria-label":ne}},Oe!=null&&Be.createElement("div",{className:hl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!W})},Oe),wh(v,i,!u),ae,!i.customProgressBar&&Be.createElement(Kg,{...q&&!D?{key:`p-${q}`}:{},rtl:P,theme:ee,delay:g,isRunning:u,isIn:V,closeToast:j,hide:x,type:S,className:U,controlledProgress:D,progress:K||0})))},vv=(i,u=!1)=>({enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:u}),xv=Vg(vv("bounce",!0)),bv={position:"top-right",transition:xv,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 Sv(i){let u={...bv,...i},o=i.stacked,[r,d]=b.useState(!0),m=b.useRef(null),{getToastToRender:h,isToastActive:v,count:g}=uv(u),{className:y,style:S,rtl:x,containerId:j,hotKeys:z}=u;function B(Y){let U=hl("Toastify__toast-container",`Toastify__toast-container--${Y}`,{"Toastify__toast-container--rtl":x});return ya(y)?y({position:Y,rtl:x,defaultClassName:U}):hl(U,To(y))}function H(){o&&(d(!0),ie.play())}return ov(()=>{var Y;if(o){let U=m.current.querySelectorAll('[data-in="true"]'),q=12,M=(Y=u.position)==null?void 0:Y.includes("top"),K=0,P=0;Array.from(U).reverse().forEach(($,k)=>{let V=$;V.classList.add("Toastify__toast--stacked"),k>0&&(V.dataset.collapsed=`${r}`),V.dataset.pos||(V.dataset.pos=M?"top":"bot");let W=K*(r?.2:1)+(r?0:q*k);V.style.setProperty("--y",`${M?W:W*-1}px`),V.style.setProperty("--g",`${q}`),V.style.setProperty("--s",`${1-(r?P:0)}`),K+=V.offsetHeight,P+=.025})}},[r,g,o]),b.useEffect(()=>{function Y(U){var q;let M=m.current;z(U)&&((q=M.querySelector('[tabIndex="0"]'))==null||q.focus(),d(!1),ie.pause()),U.key==="Escape"&&(document.activeElement===M||M!=null&&M.contains(document.activeElement))&&(d(!0),ie.play())}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[z]),Be.createElement("section",{ref:m,className:"Toastify",id:j,onMouseEnter:()=>{o&&(d(!1),ie.pause())},onMouseLeave:H,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":u["aria-label"]},h((Y,U)=>{let q=U.length?{...S}:{...S,pointerEvents:"none"};return Be.createElement("div",{tabIndex:-1,className:B(Y),"data-stacked":o,style:q,key:`c-${Y}`},U.map(({content:M,props:K})=>Be.createElement(gv,{...K,stacked:o,collapseAll:H,isIn:v(K.toastId,K.containerId),key:`t-${K.key}`},M)))}))}const Bh=b.createContext(void 0),Ev=(i,u)=>`${i.name.split(" ")[0].toLowerCase()}_${u}`,_v=({children:i})=>{const[u,o]=b.useState([]),[r,d]=b.useState([]),[m,h]=b.useState(0),[v,g]=b.useState(!1),[y,S]=b.useState(null),[x,j]=b.useState(null),{isLogged:z,user:B,token:H}=Tt(),{table:Y}=ln();b.useEffect(()=>(at.onMessage(Q=>{o(ee=>[...ee,Q]),Q.type==="join"&&Q.username?(d(ee=>Array.from(new Set([...ee,Q.username]))),h(ee=>ee+1)):Q.type==="leave"&&Q.username&&(d(ee=>ee.filter(ne=>ne!==Q.username)),h(ee=>Math.max(0,ee-1)))}),at.onError(()=>{S("Error de conexión en el WebSocket."),g(!1)}),at.onClose(()=>{g(!1)}),at.onMention(Q=>{console.log("mencion",Q),Q===x&&ie.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 U=b.useCallback(async()=>{try{const Q=await at.getConnectedUsers(H),ee=await at.getOnlineCount(H);d(Q),h(ee)}catch(Q){console.error("Error refreshing users",Q)}},[H]),q=b.useCallback(()=>{try{S(null),console.log(B);const Q=at.connect(H);if(!Q){S("Error de conexión en el WebSocket."),console.log("connect fail",Q),g(!1);return}const ee=Ev(B,Y);j(ee),console.log("connect",Q),g(Q),U(),setTimeout(()=>{at.join(ee)},500)}catch(Q){S(Q.message||"Error al conectar"),g(!1)}},[U,B]),M=b.useCallback(()=>{x&&v&&at.leave(x),console.log("Username",x),console.log("IsConnected",v),at.disconnect(),g(!1),o([]),j(null)},[x]),K=b.useCallback(Q=>{B&&at.sendMessage(x,Q)},[B,x]),P=b.useCallback(async Q=>{B&&at.sendAiMessage(x,Q)},[B,x]),$=b.useCallback(Q=>{at.join(Q),j(Q)},[]),k=b.useCallback(async()=>await at.getConnectedUsers(H),[H]),V=b.useCallback(Q=>{at.mention(Q)},[]);b.useEffect(()=>{!z&&v&&M()},[z]);const W=b.useMemo(()=>({username:x,messages:u,onlineUsers:r,onlineCount:m,isConnected:v,error:y,connectChat:q,disconnectChat:M,sendMessage:K,sendAiMessage:P,mentionUser:V,joinRoom:$,refreshUsers:U,getUsers:k}),[x,u,r,V,m,v,y,q,M,K,P,$,U,k]);return f.jsx(Bh.Provider,{value:W,children:i})},Tv=()=>{const i=b.useContext(Bh);if(i===void 0)throw new Error("useChat debe ser usado dentro de un ChatProvider");return i},ah=["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"],Nv=i=>{const u=Math.abs(i.split("").reduce((o,r)=>o+r.charCodeAt(0),0))%ah.length;return ah[u]},jv=({onBrowseMenu:i})=>{const{username:u,messages:o,sendMessage:r,sendAiMessage:d,connectChat:m,onlineCount:h,isConnected:v,getUsers:g,mentionUser:y}=Tv(),{user:S}=Tt(),[x,j]=b.useState(""),[z,B]=b.useState(!1),[H,Y]=b.useState(""),[U,q]=b.useState([]),M=b.useRef(null),K=b.useRef(null);b.useEffect(()=>{v||m()},[]),b.useEffect(()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight)},[o]),b.useEffect(()=>{const Q=o[o.length-1];Q&&Q.type==="mentioned"&&Q.username===u&&ie.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()}`})},[o,u]),b.useEffect(()=>{z&&g().then(Q=>{Q.push("IAKlein"),Q=Q.filter(ee=>ee!==u),q(Q)})},[z,g]);const P=b.useMemo(()=>o.filter(Q=>!["mentioned","ping","pong"].includes(Q.type)).map((Q,ee)=>{const ne=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let ye=Q.username||"Unknown",Te=Q.message||"",Oe=!1,D=!1;switch(Q.type){case"join":ye="system",Te=`${Q.username} se ha conectado al chat`,Oe=!0;break;case"leave":ye="system",Te=`${Q.username} se ha desconectado del chat`,Oe=!0;break;case"ai_message":ye="ai",D=!0;break}return{id:ee,timestamp:ne,sender:ye,text:Te,isSystem:Oe,isAi:D}}),[o]),$=Q=>{const ee=Q.target.value;j(ee);const ne=ee.split(" ").pop();ne&&ne.startsWith("@")?(Y(ne.slice(1)),B(!0)):B(!1)},k=Q=>{var ne;const ee=x.split(" ");ee.pop(),ee.push(`@${Q} `),j(ee.join(" ")),B(!1),(ne=K.current)==null||ne.focus()},V=Q=>{if(Q.preventDefault(),!x.trim())return;r(x.trim());const ee=x.match(/@(\w+)/g);console.log("menciones",ee),ee&&ee.forEach(ne=>{const ye=ne.substring(1);ye==="IAKlein"?(d(x.trim()),console.log("enviar",x.trim())):ye!==u&&(y(ye),console.log("mencion",ye))}),j(""),B(!1)},W=U.filter(Q=>Q.toLowerCase().includes(H.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"," (",h,")"]})]}),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:M,className:"flex-1 overflow-y-auto p-4 space-y-3 font-mono text-sm z-0 relative pb-18",children:[P.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:`${Nv(Q.sender)} font-bold mr-1`,children:["<",Q.sender,">"]}),f.jsx("span",{className:"text-white",children:Q.text.split(" ").map((ee,ne)=>ee.startsWith("@")?f.jsxs("span",{className:"text-yellow-400 font-bold",children:[ee," "]},ne):ee+" ")})]})]})},Q.id)),!v&&o.length>0&&f.jsx("div",{className:"text-red-500 font-bold text-xs mt-2",children:"> CONNECTION LOST. RECONNECTING..."})]}),z&&W.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"}),W.map(Q=>f.jsxs("button",{type:"button",onClick:()=>k(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:V,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:K,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"})})]})})]})};/**
  53. * react-router v7.12.0
  54. *
  55. * Copyright (c) Remix Software Inc.
  56. *
  57. * This source code is licensed under the MIT license found in the
  58. * LICENSE.md file in the root directory of this source tree.
  59. *
  60. * @license MIT
  61. */var lh="popstate";function Av(i={}){function u(r,d){let{pathname:m,search:h,hash:v}=r.location;return Co("",{pathname:m,search:h,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(r,d){return typeof d=="string"?d:ni(d)}return wv(u,o,null,i)}function Le(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function qt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Cv(){return Math.random().toString(36).substring(2,10)}function nh(i,u){return{usr:i.state,key:i.key,idx:u}}function Co(i,u,o=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?nn(u):u,state:o,key:u&&u.key||r||Cv()}}function ni({pathname:i="/",search:u="",hash:o=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function nn(i){let u={};if(i){let o=i.indexOf("#");o>=0&&(u.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(u.search=i.substring(r),i=i.substring(0,r)),i&&(u.pathname=i)}return u}function wv(i,u,o,r={}){let{window:d=document.defaultView,v5Compat:m=!1}=r,h=d.history,v="POP",g=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function x(){v="POP";let Y=S(),U=Y==null?null:Y-y;y=Y,g&&g({action:v,location:H.location,delta:U})}function j(Y,U){v="PUSH";let q=Co(H.location,Y,U);y=S()+1;let M=nh(q,y),K=H.createHref(q);try{h.pushState(M,"",K)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;d.location.assign(K)}m&&g&&g({action:v,location:H.location,delta:1})}function z(Y,U){v="REPLACE";let q=Co(H.location,Y,U);y=S();let M=nh(q,y),K=H.createHref(q);h.replaceState(M,"",K),m&&g&&g({action:v,location:H.location,delta:0})}function B(Y){return zv(Y)}let H={get action(){return v},get location(){return i(d,h)},listen(Y){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(lh,x),g=Y,()=>{d.removeEventListener(lh,x),g=null}},createHref(Y){return u(d,Y)},createURL:B,encodeLocation(Y){let U=B(Y);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:j,replace:z,go(Y){return h.go(Y)}};return H}function zv(i,u=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Le(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ni(i);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Uh(i,u,o="/"){return Mv(i,u,o,!1)}function Mv(i,u,o,r){let d=typeof u=="string"?nn(u):u,m=ga(d.pathname||"/",o);if(m==null)return null;let h=Lh(i);Ov(h);let v=null;for(let g=0;v==null&&g<h.length;++g){let y=Xv(m);v=Yv(h[g],y,r)}return v}function Lh(i,u=[],o=[],r="",d=!1){let m=(h,v,g=d,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:v,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&g)return;Le(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let x=ma([r,S.relativePath]),j=o.concat(S);h.children&&h.children.length>0&&(Le(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Lh(h.children,u,j,x,g)),!(h.path==null&&!h.index)&&u.push({path:x,score:kv(x,h.index),routesMeta:j})};return i.forEach((h,v)=>{var g;if(h.path===""||!((g=h.path)!=null&&g.includes("?")))m(h,v);else for(let y of Hh(h.path))m(h,v,!0,y)}),u}function Hh(i){let u=i.split("/");if(u.length===0)return[];let[o,...r]=u,d=o.endsWith("?"),m=o.replace(/\?$/,"");if(r.length===0)return d?[m,""]:[m];let h=Hh(r.join("/")),v=[];return v.push(...h.map(g=>g===""?m:[m,g].join("/"))),d&&v.push(...h),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function Ov(i){i.sort((u,o)=>u.score!==o.score?o.score-u.score:qv(u.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Rv=/^:[\w-]+$/,Dv=3,Bv=2,Uv=1,Lv=10,Hv=-2,ih=i=>i==="*";function kv(i,u){let o=i.split("/"),r=o.length;return o.some(ih)&&(r+=Hv),u&&(r+=Bv),o.filter(d=>!ih(d)).reduce((d,m)=>d+(Rv.test(m)?Dv:m===""?Uv:Lv),r)}function qv(i,u){return i.length===u.length&&i.slice(0,-1).every((r,d)=>r===u[d])?i[i.length-1]-u[u.length-1]:0}function Yv(i,u,o=!1){let{routesMeta:r}=i,d={},m="/",h=[];for(let v=0;v<r.length;++v){let g=r[v],y=v===r.length-1,S=m==="/"?u:u.slice(m.length)||"/",x=Ls({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},S),j=g.route;if(!x&&y&&o&&!r[r.length-1].route.index&&(x=Ls({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},S)),!x)return null;Object.assign(d,x.params),h.push({params:d,pathname:ma([m,x.pathname]),pathnameBase:Kv(ma([m,x.pathnameBase])),route:j}),x.pathnameBase!=="/"&&(m=ma([m,x.pathnameBase]))}return h}function Ls(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=Gv(i.path,i.caseSensitive,i.end),d=u.match(o);if(!d)return null;let m=d[0],h=m.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:r.reduce((y,{paramName:S,isOptional:x},j)=>{if(S==="*"){let B=v[j]||"";h=m.slice(0,m.length-B.length).replace(/(.)\/+$/,"$1")}const z=v[j];return x&&!z?y[S]=void 0:y[S]=(z||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:h,pattern:i}}function Gv(i,u=!1,o=!0){qt(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 r=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,v,g)=>(r.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),r]}function Xv(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return qt(!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 ga(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let o=u.endsWith("/")?u.length-1:u.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var kh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qv=i=>kh.test(i);function Vv(i,u="/"){let{pathname:o,search:r="",hash:d=""}=typeof i=="string"?nn(i):i,m;if(o)if(Qv(o))m=o;else{if(o.includes("//")){let h=o;o=o.replace(/\/\/+/g,"/"),qt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${o}`)}o.startsWith("/")?m=sh(o.substring(1),"/"):m=sh(o,u)}else m=u;return{pathname:m,search:Jv(r),hash:$v(d)}}function sh(i,u){let o=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function po(i,u,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Zv(i){return i.filter((u,o)=>o===0||u.route.path&&u.route.path.length>0)}function qh(i){let u=Zv(i);return u.map((o,r)=>r===u.length-1?o.pathname:o.pathnameBase)}function Yh(i,u,o,r=!1){let d;typeof i=="string"?d=nn(i):(d={...i},Le(!d.pathname||!d.pathname.includes("?"),po("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),po("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),po("#","search","hash",d)));let m=i===""||d.pathname==="",h=m?"/":d.pathname,v;if(h==null)v=o;else{let x=u.length-1;if(!r&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),x-=1;d.pathname=j.join("/")}v=x>=0?u[x]:"/"}let g=Vv(d,v),y=h&&h!=="/"&&h.endsWith("/"),S=(m||h===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(y||S)&&(g.pathname+="/"),g}var ma=i=>i.join("/").replace(/\/\/+/g,"/"),Kv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Jv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,$v=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Fv=class{constructor(i,u,o,r=!1){this.status=i,this.statusText=u||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Wv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Iv(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xh(i,u){let o=i;if(typeof o!="string"||!kh.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,d=!1;if(Gh)try{let m=new URL(window.location.href),h=o.startsWith("//")?new URL(m.protocol+o):new URL(o),v=ga(h.pathname,u);h.origin===m.origin&&v!=null?o=v+h.search+h.hash:d=!0}catch{qt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qh=["POST","PUT","PATCH","DELETE"];new Set(Qh);var Pv=["GET",...Qh];new Set(Pv);var sn=b.createContext(null);sn.displayName="DataRouter";var Ys=b.createContext(null);Ys.displayName="DataRouterState";var ex=b.createContext(!1),Vh=b.createContext({isTransitioning:!1});Vh.displayName="ViewTransition";var tx=b.createContext(new Map);tx.displayName="Fetchers";var ax=b.createContext(null);ax.displayName="Await";var Bt=b.createContext(null);Bt.displayName="Navigation";var oi=b.createContext(null);oi.displayName="Location";var va=b.createContext({outlet:null,matches:[],isDataRoute:!1});va.displayName="Route";var Oo=b.createContext(null);Oo.displayName="RouteError";var Zh="REACT_ROUTER_ERROR",lx="REDIRECT",nx="ROUTE_ERROR_RESPONSE";function ix(i){if(i.startsWith(`${Zh}:${lx}:{`))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 sx(i){if(i.startsWith(`${Zh}:${nx}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Fv(u.status,u.statusText,u.data)}catch{}}function ux(i,{relative:u}={}){Le(ci(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=b.useContext(Bt),{hash:d,pathname:m,search:h}=fi(i,{relative:u}),v=m;return o!=="/"&&(v=m==="/"?o:ma([o,m])),r.createHref({pathname:v,search:h,hash:d})}function ci(){return b.useContext(oi)!=null}function Ka(){return Le(ci(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(oi).location}var Kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jh(i){b.useContext(Bt).static||b.useLayoutEffect(i)}function yl(){let{isDataRoute:i}=b.useContext(va);return i?bx():rx()}function rx(){Le(ci(),"useNavigate() may be used only in the context of a <Router> component.");let i=b.useContext(sn),{basename:u,navigator:o}=b.useContext(Bt),{matches:r}=b.useContext(va),{pathname:d}=Ka(),m=JSON.stringify(qh(r)),h=b.useRef(!1);return Jh(()=>{h.current=!0}),b.useCallback((g,y={})=>{if(qt(h.current,Kh),!h.current)return;if(typeof g=="number"){o.go(g);return}let S=Yh(g,JSON.parse(m),d,y.relative==="path");i==null&&u!=="/"&&(S.pathname=S.pathname==="/"?u:ma([u,S.pathname])),(y.replace?o.replace:o.push)(S,y.state,y)},[u,o,m,d,i])}b.createContext(null);function fi(i,{relative:u}={}){let{matches:o}=b.useContext(va),{pathname:r}=Ka(),d=JSON.stringify(qh(o));return b.useMemo(()=>Yh(i,JSON.parse(d),r,u==="path"),[i,d,r,u])}function ox(i,u){return $h(i,u)}function $h(i,u,o,r,d){var q;Le(ci(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=b.useContext(Bt),{matches:h}=b.useContext(va),v=h[h.length-1],g=v?v.params:{},y=v?v.pathname:"/",S=v?v.pathnameBase:"/",x=v&&v.route;{let M=x&&x.path||"";Wh(y,!x||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${M}">) 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.
  62. Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let j=Ka(),z;if(u){let M=typeof u=="string"?nn(u):u;Le(S==="/"||((q=M.pathname)==null?void 0:q.startsWith(S)),`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 "${S}" but pathname "${M.pathname}" was given in the \`location\` prop.`),z=M}else z=j;let B=z.pathname||"/",H=B;if(S!=="/"){let M=S.replace(/^\//,"").split("/");H="/"+B.replace(/^\//,"").split("/").slice(M.length).join("/")}let Y=Uh(i,{pathname:H});qt(x||Y!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),qt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 U=hx(Y&&Y.map(M=>Object.assign({},M,{params:Object.assign({},g,M.params),pathname:ma([S,m.encodeLocation?m.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?S:ma([S,m.encodeLocation?m.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),h,o,r,d);return u&&U?b.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},U):U}function cx(){let i=xx(),u=Wv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=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),o?b.createElement("pre",{style:d},o):null,h)}var fx=b.createElement(cx,null),Fh=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 o=sx(i.digest);o&&(i=o)}let u=i!==void 0?b.createElement(va.Provider,{value:this.props.routeContext},b.createElement(Oo.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?b.createElement(dx,{error:i},u):u}};Fh.contextType=ex;var yo=new WeakMap;function dx({children:i,error:u}){let{basename:o}=b.useContext(Bt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=ix(u.digest);if(r){let d=yo.get(u);if(d)throw d;let m=Xh(r.location,o);if(Gh&&!yo.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw yo.set(u,h),h}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function mx({routeContext:i,match:u,children:o}){let r=b.useContext(sn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),b.createElement(va.Provider,{value:i},o)}function hx(i,u=[],o=null,r=null,d=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let m=i,h=o==null?void 0:o.errors;if(h!=null){let S=m.findIndex(x=>x.route.id&&(h==null?void 0:h[x.route.id])!==void 0);Le(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),m=m.slice(0,Math.min(m.length,S+1))}let v=!1,g=-1;if(o)for(let S=0;S<m.length;S++){let x=m[S];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=S),x.route.id){let{loaderData:j,errors:z}=o,B=x.route.loader&&!j.hasOwnProperty(x.route.id)&&(!z||z[x.route.id]===void 0);if(x.route.lazy||B){v=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let y=o&&r?(S,x)=>{var j,z;r(S,{location:o.location,params:((z=(j=o.matches)==null?void 0:j[0])==null?void 0:z.params)??{},unstable_pattern:Iv(o.matches),errorInfo:x})}:void 0;return m.reduceRight((S,x,j)=>{let z,B=!1,H=null,Y=null;o&&(z=h&&x.route.id?h[x.route.id]:void 0,H=x.route.errorElement||fx,v&&(g<0&&j===0?(Wh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,Y=null):g===j&&(B=!0,Y=x.route.hydrateFallbackElement||null)));let U=u.concat(m.slice(0,j+1)),q=()=>{let M;return z?M=H:B?M=Y:x.route.Component?M=b.createElement(x.route.Component,null):x.route.element?M=x.route.element:M=S,b.createElement(mx,{match:x,routeContext:{outlet:S,matches:U,isDataRoute:o!=null},children:M})};return o&&(x.route.ErrorBoundary||x.route.errorElement||j===0)?b.createElement(Fh,{location:o.location,revalidation:o.revalidation,component:H,error:z,children:q(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:y}):q()},null)}function Ro(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function px(i){let u=b.useContext(sn);return Le(u,Ro(i)),u}function yx(i){let u=b.useContext(Ys);return Le(u,Ro(i)),u}function gx(i){let u=b.useContext(va);return Le(u,Ro(i)),u}function Do(i){let u=gx(i),o=u.matches[u.matches.length-1];return Le(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function vx(){return Do("useRouteId")}function xx(){var r;let i=b.useContext(Oo),u=yx("useRouteError"),o=Do("useRouteError");return i!==void 0?i:(r=u.errors)==null?void 0:r[o]}function bx(){let{router:i}=px("useNavigate"),u=Do("useNavigate"),o=b.useRef(!1);return Jh(()=>{o.current=!0}),b.useCallback(async(d,m={})=>{qt(o.current,Kh),o.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:u,...m}))},[i,u])}var uh={};function Wh(i,u,o){!u&&!uh[i]&&(uh[i]=!0,qt(!1,o))}b.memo(Sx);function Sx({routes:i,future:u,state:o,onError:r}){return $h(i,void 0,o,r,u)}function kt(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 Ex({basename:i="/",children:u=null,location:o,navigationType:r="POP",navigator:d,static:m=!1,unstable_useTransitions:h}){Le(!ci(),"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:h,future:{}}),[v,d,m,h]);typeof o=="string"&&(o=nn(o));let{pathname:y="/",search:S="",hash:x="",state:j=null,key:z="default"}=o,B=b.useMemo(()=>{let H=ga(y,v);return H==null?null:{location:{pathname:H,search:S,hash:x,state:j,key:z},navigationType:r}},[v,y,S,x,j,z,r]);return qt(B!=null,`<Router basename="${v}"> is not able to match the URL "${y}${S}${x}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:b.createElement(Bt.Provider,{value:g},b.createElement(oi.Provider,{children:u,value:B}))}function _x({children:i,location:u}){return ox(wo(i),u)}function wo(i,u=[]){let o=[];return b.Children.forEach(i,(r,d)=>{if(!b.isValidElement(r))return;let m=[...u,d];if(r.type===b.Fragment){o.push.apply(o,wo(r.props.children,m));return}Le(r.type===kt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=wo(r.props.children,m)),o.push(h)}),o}var Rs="get",Ds="application/x-www-form-urlencoded";function Gs(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Tx(i){return Gs(i)&&i.tagName.toLowerCase()==="button"}function Nx(i){return Gs(i)&&i.tagName.toLowerCase()==="form"}function jx(i){return Gs(i)&&i.tagName.toLowerCase()==="input"}function Ax(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Cx(i,u){return i.button===0&&(!u||u==="_self")&&!Ax(i)}var Ms=null;function wx(){if(Ms===null)try{new FormData(document.createElement("form"),0),Ms=!1}catch{Ms=!0}return Ms}var zx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function go(i){return i!=null&&!zx.has(i)?(qt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ds}"`),null):i}function Mx(i,u){let o,r,d,m,h;if(Nx(i)){let v=i.getAttribute("action");r=v?ga(v,u):null,o=i.getAttribute("method")||Rs,d=go(i.getAttribute("enctype"))||Ds,m=new FormData(i)}else if(Tx(i)||jx(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(r=g?ga(g,u):null,o=i.getAttribute("formmethod")||v.getAttribute("method")||Rs,d=go(i.getAttribute("formenctype"))||go(v.getAttribute("enctype"))||Ds,m=new FormData(v,i),!wx()){let{name:y,type:S,value:x}=i;if(S==="image"){let j=y?`${y}.`:"";m.append(`${j}x`,"0"),m.append(`${j}y`,"0")}else y&&m.append(y,x)}}else{if(Gs(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Rs,r=null,d=Ds,h=i}return m&&d==="text/plain"&&(h=m,m=void 0),{action:r,method:o.toLowerCase(),encType:d,formData:m,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bo(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Ox(i,u,o,r){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:u&&ga(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${r}`,d}async function Rx(i,u){if(i.id in u)return u[i.id];try{let o=await import(i.module);return u[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Dx(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 Bx(i,u,o){let r=await Promise.all(i.map(async d=>{let m=u.routes[d.route.id];if(m){let h=await Rx(m,o);return h.links?h.links():[]}return[]}));return kx(r.flat(1).filter(Dx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function rh(i,u,o,r,d,m){let h=(g,y)=>o[y]?g.route.id!==o[y].route.id:!0,v=(g,y)=>{var S;return o[y].pathname!==g.pathname||((S=o[y].route.path)==null?void 0:S.endsWith("*"))&&o[y].params["*"]!==g.params["*"]};return m==="assets"?u.filter((g,y)=>h(g,y)||v(g,y)):m==="data"?u.filter((g,y)=>{var x;let S=r.routes[g.route.id];if(!S||!S.hasLoader)return!1;if(h(g,y)||v(g,y))return!0;if(g.route.shouldRevalidate){let j=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((x=o[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 Ux(i,u,{includeHydrateFallback:o}={}){return Lx(i.map(r=>{let d=u.routes[r.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),o&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Lx(i){return[...new Set(i)]}function Hx(i){let u={},o=Object.keys(i).sort();for(let r of o)u[r]=i[r];return u}function kx(i,u){let o=new Set;return new Set(u),i.reduce((r,d)=>{let m=JSON.stringify(Hx(d));return o.has(m)||(o.add(m),r.push({key:m,link:d})),r},[])}function Ih(){let i=b.useContext(sn);return Bo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function qx(){let i=b.useContext(Ys);return Bo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Uo=b.createContext(void 0);Uo.displayName="FrameworkContext";function Ph(){let i=b.useContext(Uo);return Bo(i,"You must render this element inside a <HydratedRouter> element"),i}function Yx(i,u){let o=b.useContext(Uo),[r,d]=b.useState(!1),[m,h]=b.useState(!1),{onFocus:v,onBlur:g,onMouseEnter:y,onMouseLeave:S,onTouchStart:x}=u,j=b.useRef(null);b.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let H=U=>{U.forEach(q=>{h(q.isIntersecting)})},Y=new IntersectionObserver(H,{threshold:.5});return j.current&&Y.observe(j.current),()=>{Y.disconnect()}}},[i]),b.useEffect(()=>{if(r){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[r]);let z=()=>{d(!0)},B=()=>{d(!1),h(!1)};return o?i!=="intent"?[m,j,{}]:[m,j,{onFocus:ai(v,z),onBlur:ai(g,B),onMouseEnter:ai(y,z),onMouseLeave:ai(S,B),onTouchStart:ai(x,z)}]:[!1,j,{}]}function ai(i,u){return o=>{i&&i(o),o.defaultPrevented||u(o)}}function Gx({page:i,...u}){let{router:o}=Ih(),r=b.useMemo(()=>Uh(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?b.createElement(Qx,{page:i,matches:r,...u}):null}function Xx(i){let{manifest:u,routeModules:o}=Ph(),[r,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Bx(i,u,o).then(h=>{m||d(h)}),()=>{m=!0}},[i,u,o]),r}function Qx({page:i,matches:u,...o}){let r=Ka(),{future:d,manifest:m,routeModules:h}=Ph(),{basename:v}=Ih(),{loaderData:g,matches:y}=qx(),S=b.useMemo(()=>rh(i,u,y,m,r,"data"),[i,u,y,m,r]),x=b.useMemo(()=>rh(i,u,y,m,r,"assets"),[i,u,y,m,r]),j=b.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let H=new Set,Y=!1;if(u.forEach(q=>{var K;let M=m.routes[q.route.id];!M||!M.hasLoader||(!S.some(P=>P.route.id===q.route.id)&&q.route.id in g&&((K=h[q.route.id])!=null&&K.shouldRevalidate)||M.hasClientLoader?Y=!0:H.add(q.route.id))}),H.size===0)return[];let U=Ox(i,v,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&H.size>0&&U.searchParams.set("_routes",u.filter(q=>H.has(q.route.id)).map(q=>q.route.id).join(",")),[U.pathname+U.search]},[v,d.unstable_trailingSlashAwareDataRequests,g,r,m,S,u,i,h]),z=b.useMemo(()=>Ux(x,m),[x,m]),B=Xx(x);return b.createElement(b.Fragment,null,j.map(H=>b.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...o})),z.map(H=>b.createElement("link",{key:H,rel:"modulepreload",href:H,...o})),B.map(({key:H,link:Y})=>b.createElement("link",{key:H,nonce:o.nonce,...Y})))}function Vx(...i){return u=>{i.forEach(o=>{typeof o=="function"?o(u):o!=null&&(o.current=u)})}}var Zx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zx&&(window.__reactRouterVersion="7.12.0")}catch{}function Kx({basename:i,children:u,unstable_useTransitions:o,window:r}){let d=b.useRef();d.current==null&&(d.current=Av({window:r,v5Compat:!0}));let m=d.current,[h,v]=b.useState({action:m.action,location:m.location}),g=b.useCallback(y=>{o===!1?v(y):b.startTransition(()=>v(y))},[o]);return b.useLayoutEffect(()=>m.listen(g),[m,g]),b.createElement(Ex,{basename:i,children:u,location:h.location,navigationType:h.action,navigator:m,unstable_useTransitions:o})}var e0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ha=b.forwardRef(function({onClick:u,discover:o="render",prefetch:r="none",relative:d,reloadDocument:m,replace:h,state:v,target:g,to:y,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:j,...z},B){let{basename:H,unstable_useTransitions:Y}=b.useContext(Bt),U=typeof y=="string"&&e0.test(y),q=Xh(y,H);y=q.to;let M=ux(y,{relative:d}),[K,P,$]=Yx(r,z),k=Wx(y,{replace:h,state:v,target:g,preventScrollReset:S,relative:d,viewTransition:x,unstable_defaultShouldRevalidate:j,unstable_useTransitions:Y});function V(Q){u&&u(Q),Q.defaultPrevented||k(Q)}let W=b.createElement("a",{...z,...$,href:q.absoluteURL||M,onClick:q.isExternal||m?u:V,ref:Vx(B,P),target:g,"data-discover":!U&&o==="render"?"true":void 0});return K&&!U?b.createElement(b.Fragment,null,W,b.createElement(Gx,{page:M})):W});ha.displayName="Link";var Jx=b.forwardRef(function({"aria-current":u="page",caseSensitive:o=!1,className:r="",end:d=!1,style:m,to:h,viewTransition:v,children:g,...y},S){let x=fi(h,{relative:y.relative}),j=Ka(),z=b.useContext(Ys),{navigator:B,basename:H}=b.useContext(Bt),Y=z!=null&&ab(x)&&v===!0,U=B.encodeLocation?B.encodeLocation(x).pathname:x.pathname,q=j.pathname,M=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;o||(q=q.toLowerCase(),M=M?M.toLowerCase():null,U=U.toLowerCase()),M&&H&&(M=ga(M,H)||M);const K=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let P=q===U||!d&&q.startsWith(U)&&q.charAt(K)==="/",$=M!=null&&(M===U||!d&&M.startsWith(U)&&M.charAt(U.length)==="/"),k={isActive:P,isPending:$,isTransitioning:Y},V=P?u:void 0,W;typeof r=="function"?W=r(k):W=[r,P?"active":null,$?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Q=typeof m=="function"?m(k):m;return b.createElement(ha,{...y,"aria-current":V,className:W,ref:S,style:Q,to:h,viewTransition:v},typeof g=="function"?g(k):g)});Jx.displayName="NavLink";var $x=b.forwardRef(({discover:i="render",fetcherKey:u,navigate:o,reloadDocument:r,replace:d,state:m,method:h=Rs,action:v,onSubmit:g,relative:y,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:j,...z},B)=>{let{unstable_useTransitions:H}=b.useContext(Bt),Y=eb(),U=tb(v,{relative:y}),q=h.toLowerCase()==="get"?"get":"post",M=typeof v=="string"&&e0.test(v),K=P=>{if(g&&g(P),P.defaultPrevented)return;P.preventDefault();let $=P.nativeEvent.submitter,k=($==null?void 0:$.getAttribute("formmethod"))||h,V=()=>Y($||P.currentTarget,{fetcherKey:u,method:k,navigate:o,replace:d,state:m,relative:y,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:j});H&&o!==!1?b.startTransition(()=>V()):V()};return b.createElement("form",{ref:B,method:q,action:U,onSubmit:r?g:K,...z,"data-discover":!M&&i==="render"?"true":void 0})});$x.displayName="Form";function Fx(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t0(i){let u=b.useContext(sn);return Le(u,Fx(i)),u}function Wx(i,{target:u,replace:o,state:r,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:g}={}){let y=yl(),S=Ka(),x=fi(i,{relative:m});return b.useCallback(j=>{if(Cx(j,u)){j.preventDefault();let z=o!==void 0?o:ni(S)===ni(x),B=()=>y(i,{replace:z,state:r,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:v});g?b.startTransition(()=>B()):B()}},[S,y,x,o,r,u,i,d,m,h,v,g])}var Ix=0,Px=()=>`__${String(++Ix)}__`;function eb(){let{router:i}=t0("useSubmit"),{basename:u}=b.useContext(Bt),o=vx(),r=i.fetch,d=i.navigate;return b.useCallback(async(m,h={})=>{let{action:v,method:g,encType:y,formData:S,body:x}=Mx(m,u);if(h.navigate===!1){let j=h.fetcherKey||Px();await r(j,o,h.action||v,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:x,formMethod:h.method||g,formEncType:h.encType||y,flushSync:h.flushSync})}else await d(h.action||v,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:x,formMethod:h.method||g,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,d,u,o])}function tb(i,{relative:u}={}){let{basename:o}=b.useContext(Bt),r=b.useContext(va);Le(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),m={...fi(i||".",{relative:u})},h=Ka();if(i==null){m.search=h.search;let v=new URLSearchParams(m.search),g=v.getAll("index");if(g.some(S=>S==="")){v.delete("index"),g.filter(x=>x).forEach(x=>v.append("index",x));let S=v.toString();m.search=S?`?${S}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(m.pathname=m.pathname==="/"?o:ma([o,m.pathname])),ni(m)}function ab(i,{relative:u}={}){let o=b.useContext(Vh);Le(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=t0("useViewTransitionState"),d=fi(i,{relative:u});if(!o.isTransitioning)return!1;let m=ga(o.currentLocation.pathname,r)||o.currentLocation.pathname,h=ga(o.nextLocation.pathname,r)||o.nextLocation.pathname;return Ls(d.pathname,h)!=null||Ls(d.pathname,m)!=null}const lb=({icon:i,title:u,subtitle:o,type:r,onClick:d,to:m,needLogin:h,inDevelopment:v})=>{const g=yl(),{isLogged:y}=Tt(),S=()=>{if(v){g("/coming-soon");return}if(h&&!y){ie("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}r===0?d&&d():r===1&&m&&g(m)};return f.jsxs("button",{onClick:S,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:o})]})]})},nb=({isOpen:i,onClose:u})=>{const[o,r]=b.useState(!1),[d,m]=b.useState(!1),{isLogged:h,user:v,setIsLoggedIn:g}=Tt(),{table:y}=ln(),{choose:S}=ii(),{setIsLoading:x}=si(),j=async()=>{const B=await S("Selecciona el tipo de pago","wallet",{choices:[{value:"Efectivo",label:"Efectivo",icon:"payments"},{value:"Tarjeta",label:"Tarjeta",icon:"credit_card"}],style:"block"});if(!B)return;if(m(!1),x(!0,"Llamando a tu garzón..."),!(await _h(y,h)).data){x(!1),ie("La Mesa no tiene productos para pagar",{type:"warning",autoClose:2e3});return}const Y=await Th(h,y,B);Y.success?ie("La factura ha sido impresa correctamente",{type:"success",autoClose:2e3}):alert(Y.message),x(!1)};b.useEffect(()=>{if(i){r(!0);const B=setTimeout(()=>m(!0),10);return()=>clearTimeout(B)}else{m(!1);const B=setTimeout(()=>r(!1),300);return()=>clearTimeout(B)}},[i]);const z=()=>{g(!1),Eh("")};return o?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"})}),h&&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:`${h?"text-primary":"text-gray-400 "} text-xs font-medium tracking-wider uppercase`,children:h?"En Linea":"ESTADO: DESCONECTADO"}),f.jsx("span",{className:"text-xl font-bold leading-tight",children:h?`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:h?"Sesión":"Acceso"}),h?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:z,children:" Cerrar Sesión"}):f.jsxs(f.Fragment,{children:[f.jsxs(ha,{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(ha,{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(ha,{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(B=>f.jsx(lb,{...B},B.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},ib=99887766,sb=836295738,ub=i=>(parseInt(i.split("").reverse().join(""),12)^sb)-ib;function a0(){let u=new URLSearchParams(window.location.search).get("table");return u||(u=sessionStorage.getItem("table")),u?(sessionStorage.setItem("table",u),Number(ub(u))):-1}const rb=({isOpen:i,onClose:u,items:o})=>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:o.map(r=>f.jsx(ob,{item:r},r.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,ob=({item:i})=>{const u=i.newPrice>i.oldPrice,o=u?"text-red-500":"text-green-500",r=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:["$",da(i.oldPrice)]}),f.jsxs("span",{className:`flex items-center text-sm font-bold ${o}`,children:["$",da(i.newPrice),f.jsx("span",{className:"material-symbols-outlined ml-0.5",style:{fontSize:"16px"},children:r})]})]})]})]}):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"})]})]})},cb=({isOpen:i,onClose:u,cartItems:o,setCartItems:r,onUpdateQuantity:d,onClear:m})=>{const[h,v]=b.useState(!1),{user:g,isLogged:y,setPromoPercent:S}=Tt(),[x,j]=b.useState([]),{table:z,setTable:B,updateProduct:H,removeProduct:Y}=ln(),{setIsLoading:U}=si(),q=yl(),{confirm:M,prompt:K}=ii(),P=b.useCallback(async V=>{console.log("Agregando comentario");const W=await K("Notas del pedido","comment",{placeholder:"Sin hielo por favor",defaultValue:V.comment});console.log("comment",W),!(!W&&W!=="")&&r(o.map(Q=>Q.id===V.id?{...Q,comment:W}:Q))},[o]),$=async V=>{if(!await M(`¿Deseas agregar el pedido a la mesa ${z}?`,"restaurant",{confirmText:"Enviar Pedido",cancelText:"Revisar",checkboxOptions:{label:"He revisado mi pedido y acepto los términos de pago",required:!0}}))return;if(o.length===0){ie("No tienes productos en tu carrito",{type:"warning",autoClose:2e3});return}U(!0,"Enviando pedido...");const Q=await Dg(y);if(console.log("status",Q),!Q){U(!1),ie("Los pedidos se encuentran deshabilitados temporalmente",{type:"error",autoClose:3e3});return}const ee={customerId:(g==null?void 0:g.id)||0,table:z,items:o.map(ye=>({id:ye.id,price:ye.price,quantity:ye.quantity,comment:ye.comment??""})),totalAmount:k,orderDate:new Date().toISOString()},ne=await Og(ee,y);if(U(!1),ne.success){if(!("new_progress"in ne.data)){j(ne.data);for(const ye of ne.data)ye.isAvailable?H(ye.product.id,ye.newPrice):Y(ye.product.id);return}ie("Pedido enviado correctamente",{type:"success",autoClose:2e3}),S(ne.data.new_progress),u(),m()}else alert(ne.message)};b.useEffect(()=>{if(i)v(!0);else{const V=setTimeout(()=>v(!1),300);return()=>clearTimeout(V)}},[i]),b.useEffect(()=>{const V=a0();if(V===-1){q("/no-table");return}B(V)},[]);const k=o.reduce((V,W)=>V+W.price*W.quantity,0);return h?f.jsxs("div",{className:"fixed inset-0 z-40 flex flex-col justify-end",children:[f.jsx(rb,{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-[-80%]"}`,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 #",z]})]}),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:o.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:o.map(V=>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("${V.image}")`}}),V.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",V.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:V.name}),f.jsxs("p",{className:"text-gray-900 dark:text-white font-bold text-base",children:["$",da(V.price*V.quantity)]})]}),f.jsx("p",{className:"text-primary text-sm",children:V.comment}),f.jsxs("p",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-medium",children:["$",da(V.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(V.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:V.quantity}),f.jsx("button",{onClick:()=>d(V.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:()=>{P(V)},className:"flex items-center mx-2",children:f.jsx("span",{className:"material-symbols-outlined text-2xl text-white/70",children:"add_comment"})})]})]})]},V.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:["$",da(k)]})})]})}),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 fb({setIsSidebarOpen:i,setIsCartOpen:u,totalItems:o}){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"}),o>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:o})]})]})}var Qa=(i=>(i.SHOP="SHOP",i.CHAT="CHAT",i))(Qa||{});function oh({activeTab:i,setActiveTab:u,tab:o,tabName:r,icon:d,needLogin:m,inDevelopment:h}){const{isLogged:v}=Tt(),g=yl(),y=()=>{if(h){g("/coming-soon");return}if(m&&!v){ie("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}u(o)};return f.jsxs("button",{onClick:y,className:`flex flex-col items-center justify-center w-full h-full transition-colors ${i===o?"text-primary":"text-gray-400 hover:text-white"}`,children:[f.jsx("span",{className:`material-symbols-outlined text-2xl ${i===o?"fill-1":"fill-0"}`,children:d}),f.jsx("span",{className:"text-xs font-medium mt-1",children:r})]})}function db({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(oh,{setActiveTab:u,tab:Qa.SHOP,activeTab:i,tabName:"Tienda",icon:"store"}),f.jsx(oh,{setActiveTab:u,tab:Qa.CHAT,activeTab:i,tabName:"Chat",icon:"chat",needLogin:!0})]})})}function mb({active:i}){const{promoPercent:u}=Tt(),{confirm:o}=ii(),{table:r}=ln(),{isLogged:d,setPromoPercent:m}=Tt(),h=b.useCallback(async()=>{if(u>=100){if(!await o("¿Seguro que quieres reclamar?","reclamar"))return;const g=await Rg(d,r);g.success?m(0):alert(g.message)}},[d,r,u,o]);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:h,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 l0(){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(ha,{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 hb(){const{setIsLoggedIn:i}=Tt(),u=yl(),o=async r=>{r.preventDefault();const d=r.currentTarget.querySelector("input#email").value,m=r.currentTarget.querySelector("input#pin").value;if(!d){ie("El email no puede estar vacío",{type:"error"});return}if(!m){ie("El pin no puede estar vacío",{type:"error"});return}if(m.length!==4){ie("El pin debe tener 4 dígitos",{type:"error"});return}const h=await wg(d,m);if(h.success===!1){ie(h.message,{type:"error"});return}Eh(h.data.token),i(!0,h.data),u("/")};return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(l0,{}),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:o,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(ha,{className:"text-primary font-bold hover:underline",to:"/register",children:"Crear cuenta"})]})]})})]})}function pb(){return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(l0,{}),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(ha,{className:"text-primary font-semibold hover:underline",to:"/login",children:"Inicia sesión"})]})]})]})})]})}const yb=({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)]})})]})]}),gb=({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:["$",da(i)]})]})}),vb=({total:i,onBack:u,onRequestBill:o})=>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:["$",da(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:o,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"})]})]})]}),xb=()=>{const[i,u]=b.useState(0),[o,r]=b.useState([]),{getItems:d,table:m,setTable:h}=ln(),{isLogged:v}=Tt(),{setIsLoading:g}=si(),{choose:y}=ii(),S=yl(),x=async()=>{const j=await y("Selecciona el tipo de pago","wallet",{choices:[{value:"Efectivo",label:"Efectivo",icon:"payments"},{value:"Tarjeta",label:"Tarjeta",icon:"credit_card"}],style:"block"});if(!j)return;g(!0,"Llamando a tu garzón...");const z=await Th(v,m,j);z.success?ie("Tu garzon vendra enseguida, por favor espera",{type:"success",autoClose:2e3}):alert(z.message),g(!1)};return b.useEffect(()=>{(async()=>{g(!0,"Cargando Historial...");let j=m;if(!j){if(j=a0(),j===-1){S("/no-table");return}h(j)}let z=await _h(j,v),B;g(!1),z&&z.success?B=z.data:(ie("La Mesa aun no tiene consumo😁",{type:"warning",autoClose:2e3}),S("/"));const H=d(...B);r(H),u(H.reduce((Y,U)=>Y+U.price*U.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:["Consumo Mesa #",m]}),f.jsx("p",{className:"text-primary font-medium text-sm uppercase tracking-widest",children:"Consumo Total"})]})]})}),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:o.map(j=>f.jsx(yb,{product:j},j.id))}),f.jsx(gb,{total:i})]}),f.jsx("div",{className:"relative z-20",children:f.jsx(vb,{total:i,points:50,onBack:()=>S("/"),onRequestBill:()=>x()})})]})};function bb(){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 Sb=()=>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"})]}),Eb=()=>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(ha,{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"})]}),_b=({children:i})=>f.jsxs(Bg,{children:[f.jsx(Sv,{}),f.jsx(Kx,{children:f.jsx(Lg,{children:f.jsx(Hg,{children:f.jsx(ky,{children:f.jsx(_v,{children:i})})})})})]}),Os=()=>{const[i,u]=b.useState(Qa.SHOP),[o,r]=b.useState(!1),d=Ka(),m=yl(),h=d.pathname==="/cart",[v,g]=b.useState([]),{isLogged:y}=Tt(),[S,x]=b.useState(Cg),{setIsLoading:j}=si(),{setIsLoggedIn:z}=Tt(),B=()=>{const $=Math.random();$<.2?(ie("Sabias que puedes obtener 1 cerveza gratis de cada 10?🥳"),ie("Solo registrandote😯")):$<.4?(ie("que estaran conversando en el chat global?🫢"),ie("Averigualo registrandote🥳🥳")):$<.6?(ie("¿Sediento? Tu próxima cerveza podría ser gratis. 🍺"),ie("Regístrate y empieza a sumar.")):$<.8?(ie("El chat global está que arde. 🔥"),ie("No te quedes fuera, regístrate ahora.")):(ie("Estás a 20 segundos de tu primera cerveza gratis. ⏱️"),ie("Crea tu cuenta ahora."))},H=$=>{$?m("/cart"):h&&m(-1)},Y=()=>{window.history.length>1?m(-1):m("/",{replace:!0})},U=$=>{g(k=>k.find(W=>W.id===$.id)?k.map(W=>W.id===$.id?{...W,quantity:W.quantity+1}:W):[...k,{...$,quantity:1}]),ie(`Se agrego ${$.name} a tu carrito.`,{type:"success",position:"top-center",autoClose:2e3})},q=($,k)=>{g(V=>V.map(W=>{if(W.id===$){const Q=W.quantity+k;return{...W,quantity:Q}}return W}).filter(W=>W.quantity>0))},M=()=>g([]),K=async $=>{const k=await zg($);return k.success&&z(!0,k.data),k.success};b.useEffect(()=>{(async()=>{if(!y){let k=!1;j(!0,"Iniciando sesión...");const V=Za();V&&(k=await K(V)),k||B(),j(!1)}})()},[]);const P=v.reduce(($,k)=>$+k.quantity,0);return f.jsxs("div",{className:"relative h-dvh flex flex-col overflow-hidden bg-background-dark font-display",children:[f.jsx(fb,{setIsSidebarOpen:r,setIsCartOpen:H,totalItems:P}),f.jsx(mb,{active:i===Qa.SHOP&&y}),f.jsxs("main",{className:"flex-1 relative flex flex-col h-full overflow-hidden",children:[i===Qa.SHOP&&f.jsx(kg,{onAddProduct:U}),i===Qa.CHAT&&f.jsx(jv,{onBrowseMenu:()=>u(Qa.SHOP)})]}),f.jsx(db,{activeTab:i,setActiveTab:u}),f.jsx(nb,{isOpen:o,onClose:()=>r(!1)}),f.jsx(cb,{isOpen:h,onClose:Y,cartItems:v,onUpdateQuantity:q,onClear:M,setCartItems:g})]})},Tb=()=>f.jsx(_b,{children:f.jsxs(_x,{children:[f.jsxs(kt,{element:f.jsx(Os,{}),children:[f.jsx(kt,{path:"/",element:f.jsx(Os,{})}),f.jsx(kt,{path:"/cart",element:f.jsx(Os,{})}),f.jsx(kt,{path:"/chat",element:f.jsx(Os,{})})]}),f.jsx(kt,{path:"/login",element:f.jsx(hb,{})}),f.jsx(kt,{path:"/register",element:f.jsx(pb,{})}),f.jsx(kt,{path:"/summary",element:f.jsx(xb,{})}),f.jsx(kt,{path:"/no-table",element:f.jsx(bb,{})}),f.jsx(kt,{path:"/coming-soon",element:f.jsx(Sb,{})}),f.jsx(kt,{path:"*",element:f.jsx(Eb,{})})]})}),n0=document.getElementById("root");if(!n0)throw new Error("Could not find root element to mount to");const Nb=Hy.createRoot(n0);Nb.render(f.jsx(Tb,{}));