var To=e=>{throw TypeError(e)};var ai=(e,t,n)=>t.has(e)||To("Cannot "+n);var v=(e,t,n)=>(ai(e,t,"read from private field"),n?n.call(e):t.get(e)),D=(e,t,n)=>t.has(e)?To("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,r)=>(ai(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ue=(e,t,n)=>(ai(e,t,"access private method"),n);var $r=(e,t,n,r)=>({set _(l){L(e,t,l,n)},get _(){return v(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function _f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Vl={},na={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Rr=Symbol.for("react.element"),Nf=Symbol.for("react.portal"),zf=Symbol.for("react.fragment"),Tf=Symbol.for("react.strict_mode"),Lf=Symbol.for("react.profiler"),Of=Symbol.for("react.provider"),Ff=Symbol.for("react.context"),Rf=Symbol.for("react.forward_ref"),Mf=Symbol.for("react.suspense"),Df=Symbol.for("react.memo"),jf=Symbol.for("react.lazy"),Lo=Symbol.iterator;function If(e){return e===null||typeof e!="object"?null:(e=Lo&&e[Lo]||e["@@iterator"],typeof e=="function"?e:null)}var ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},la=Object.assign,ia={};function $n(e,t,n){this.props=e,this.context=t,this.refs=ia,this.updater=n||ra}$n.prototype.isReactComponent={};$n.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ua(){}ua.prototype=$n.prototype;function Ou(e,t,n){this.props=e,this.context=t,this.refs=ia,this.updater=n||ra}var Fu=Ou.prototype=new ua;Fu.constructor=Ou;la(Fu,$n.prototype);Fu.isPureReactComponent=!0;var Oo=Array.isArray,oa=Object.prototype.hasOwnProperty,Ru={current:null},sa={key:!0,ref:!0,__self:!0,__source:!0};function aa(e,t,n){var r,l={},i=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(i=""+t.key),t)oa.call(t,r)&&!sa.hasOwnProperty(r)&&(l[r]=t[r]);var o=arguments.length-2;if(o===1)l.children=n;else if(1>>1,J=_[G];if(0>>1;Gl(si,O))Atl(Ar,si)?(_[G]=Ar,_[At]=O,G=At):(_[G]=si,_[Ut]=O,G=Ut);else if(Atl(Ar,O))_[G]=Ar,_[At]=O,G=At;else break e}}return T}function l(_,T){var O=_.sortIndex-T.sortIndex;return O!==0?O:_.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],c=[],m=1,h=null,p=3,S=!1,k=!1,g=!1,z=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=_)r(c),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(c)}}function y(_){if(g=!1,d(_),!k)if(n(s)!==null)k=!0,ui(E);else{var T=n(c);T!==null&&oi(y,T.startTime-_)}}function E(_,T){k=!1,g&&(g=!1,f(C),C=-1),S=!0;var O=p;try{for(d(T),h=n(s);h!==null&&(!(h.expirationTime>T)||_&&!Ie());){var G=h.callback;if(typeof G=="function"){h.callback=null,p=h.priorityLevel;var J=G(h.expirationTime<=T);T=e.unstable_now(),typeof J=="function"?h.callback=J:h===n(s)&&r(s),d(T)}else r(s);h=n(s)}if(h!==null)var Ur=!0;else{var Ut=n(c);Ut!==null&&oi(y,Ut.startTime-T),Ur=!1}return Ur}finally{h=null,p=O,S=!1}}var x=!1,N=null,C=-1,j=5,R=-1;function Ie(){return!(e.unstable_now()-R_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var T=3;break;default:T=p}var O=p;p=T;try{return _()}finally{p=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,T){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var O=p;p=_;try{return T()}finally{p=O}},e.unstable_scheduleCallback=function(_,T,O){var G=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0G?(_.sortIndex=O,t(c,_),n(s)===null&&_===n(c)&&(g?(f(C),C=-1):g=!0,oi(y,O-G))):(_.sortIndex=J,t(s,_),k||S||(k=!0,ui(E))),_},e.unstable_shouldYield=Ie,e.unstable_wrapCallback=function(_){var T=p;return function(){var O=p;p=T;try{return _.apply(this,arguments)}finally{p=O}}}})(ha);pa.exports=ha;var Xf=pa.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qf=re,Ne=Xf;function w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ui=Object.prototype.hasOwnProperty,Zf=/^[: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]*$/,Ro={},Mo={};function Jf(e){return Ui.call(Mo,e)?!0:Ui.call(Ro,e)?!1:Zf.test(e)?Mo[e]=!0:(Ro[e]=!0,!1)}function bf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ed(e,t,n,r){if(t===null||typeof t>"u"||bf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ye(e,t,n,r,l,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ie[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Du=/[\-:]([a-z])/g;function ju(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Du,ju);ie[t]=new ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Du,ju);ie[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Du,ju);ie[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iu(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` `+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{di=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bn(e):""}function td(e){switch(e.tag){case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 2:case 15:return e=pi(e.type,!1),e;case 11:return e=pi(e.type.render,!1),e;case 1:return e=pi(e.type,!0),e;default:return""}}function Vi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case on:return"Fragment";case un:return"Portal";case Ai:return"Profiler";case Uu:return"StrictMode";case $i:return"Suspense";case Qi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ya:return(e.displayName||"Context")+".Consumer";case va:return(e._context.displayName||"Context")+".Provider";case Au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $u:return t=e.displayName||null,t!==null?t:Vi(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return Vi(e(t))}catch{}}return null}function nd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vi(t);case 8:return t===Uu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rd(e){var t=wa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){e._valueTracker||(e._valueTracker=rd(e))}function Sa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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}}function Hi(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ka(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function Bi(e,t){ka(e,t);var n=Rt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wi(e,t.type,Rt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Io(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wi(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var er=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Br.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ld=["Webkit","ms","Moz","O"];Object.keys(rr).forEach(function(e){ld.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rr[t]=rr[e]})});function Pa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rr.hasOwnProperty(e)&&rr[e]?(""+t).trim():t+"px"}function _a(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Pa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var id=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yi(e,t){if(t){if(id[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function Xi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qi=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zi=null,wn=null,Sn=null;function $o(e){if(e=jr(e)){if(typeof Zi!="function")throw Error(w(280));var t=e.stateNode;t&&(t=Gl(t),Zi(e.stateNode,e.type,t))}}function Na(e){wn?Sn?Sn.push(e):Sn=[e]:wn=e}function za(){if(wn){var e=wn,t=Sn;if(Sn=wn=null,$o(e),t)for(e=0;e>>=0,e===0?32:31-(vd(e)/yd|0)|0}var Wr=64,Kr=4194304;function tr(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var o=u&~l;o!==0?r=tr(o):(i&=u,i!==0&&(r=tr(i)))}else u=n&~l,u!==0?r=tr(u):i!==0&&(r=tr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function kd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ir),Xo=" ",qo=!1;function Ya(e,t){switch(e){case"keyup":return Xd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function Zd(e,t){switch(e){case"compositionend":return Xa(t);case"keypress":return t.which!==32?null:(qo=!0,Xo);case"textInput":return e=t.data,e===Xo&&qo?null:e;default:return null}}function Jd(e,t){if(sn)return e==="compositionend"||!Xu&&Ya(e,t)?(e=Ka(),sl=Ku=Ct=null,sn=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=es(n)}}function ba(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ba(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function qu(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")}function op(e){var t=ec(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ba(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ts(n,i);var u=ts(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,an=null,ru=null,or=null,lu=!1;function ns(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||an==null||an!==yl(r)||(r=an,"selectionStart"in r&&qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),or&&wr(or,r)||(or=r,r=xl(ru,"onSelect"),0dn||(e.current=cu[dn],cu[dn]=null,dn--)}function U(e,t){dn++,cu[dn]=e.current,e.current=t}var Mt={},fe=jt(Mt),Se=jt(!1),Zt=Mt;function Mn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ke(e){return e=e.childContextTypes,e!=null}function _l(){$(Se),$(fe)}function as(e,t,n){if(fe.current!==Mt)throw Error(w(168));U(fe,t),U(Se,n)}function ac(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(w(108,nd(e)||"Unknown",l));return B({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,Zt=fe.current,U(fe,e),U(Se,Se.current),!0}function cs(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=ac(e,t,Zt),r.__reactInternalMemoizedMergedChildContext=e,$(Se),$(fe),U(fe,e)):$(Se),U(Se,n)}var rt=null,Yl=!1,Ni=!1;function cc(e){rt===null?rt=[e]:rt.push(e)}function wp(e){Yl=!0,cc(e)}function It(){if(!Ni&&rt!==null){Ni=!0;var e=0,t=I;try{var n=rt;for(I=1;e>=u,l-=u,lt=1<<32-Be(t)+l|n<C?(j=N,N=null):j=N.sibling;var R=p(f,N,d[C],y);if(R===null){N===null&&(N=j);break}e&&N&&R.alternate===null&&t(f,N),a=i(R,a,C),x===null?E=R:x.sibling=R,x=R,N=j}if(C===d.length)return n(f,N),Q&&$t(f,C),E;if(N===null){for(;CC?(j=N,N=null):j=N.sibling;var Ie=p(f,N,R.value,y);if(Ie===null){N===null&&(N=j);break}e&&N&&Ie.alternate===null&&t(f,N),a=i(Ie,a,C),x===null?E=Ie:x.sibling=Ie,x=Ie,N=j}if(R.done)return n(f,N),Q&&$t(f,C),E;if(N===null){for(;!R.done;C++,R=d.next())R=h(f,R.value,y),R!==null&&(a=i(R,a,C),x===null?E=R:x.sibling=R,x=R);return Q&&$t(f,C),E}for(N=r(f,N);!R.done;C++,R=d.next())R=S(N,f,C,R.value,y),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?C:R.key),a=i(R,a,C),x===null?E=R:x.sibling=R,x=R);return e&&N.forEach(function(Hn){return t(f,Hn)}),Q&&$t(f,C),E}function z(f,a,d,y){if(typeof d=="object"&&d!==null&&d.type===on&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Vr:e:{for(var E=d.key,x=a;x!==null;){if(x.key===E){if(E=d.type,E===on){if(x.tag===7){n(f,x.sibling),a=l(x,d.props.children),a.return=f,f=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ht&&ps(E)===x.type){n(f,x.sibling),a=l(x,d.props),a.ref=qn(f,x,d),a.return=f,f=a;break e}n(f,x);break}else t(f,x);x=x.sibling}d.type===on?(a=qt(d.props.children,f.mode,y,d.key),a.return=f,f=a):(y=vl(d.type,d.key,d.props,null,f.mode,y),y.ref=qn(f,a,d),y.return=f,f=y)}return u(f);case un:e:{for(x=d.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Di(d,f.mode,y),a.return=f,f=a}return u(f);case ht:return x=d._init,z(f,a,x(d._payload),y)}if(er(d))return k(f,a,d,y);if(Wn(d))return g(f,a,d,y);br(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Mi(d,f.mode,y),a.return=f,f=a),u(f)):n(f,a)}return z}var jn=hc(!0),mc=hc(!1),Ll=jt(null),Ol=null,mn=null,eo=null;function to(){eo=mn=Ol=null}function no(e){var t=Ll.current;$(Ll),e._currentValue=t}function pu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function En(e,t){Ol=e,eo=mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(eo!==e)if(e={context:e,memoizedValue:t,next:null},mn===null){if(Ol===null)throw Error(w(308));mn=e,Ol.dependencies={lanes:0,firstContext:e}}else mn=mn.next=e;return t}var Ht=null;function ro(e){Ht===null?Ht=[e]:Ht.push(e)}function vc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ro(t)):(n.next=l.next,l.next=n),t.interleaved=n,at(e,r)}function at(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mt=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,at(e,n)}return l=r.interleaved,l===null?(t.next=t,ro(r)):(t.next=l.next,l.next=t),r.interleaved=t,at(e,n)}function cl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}function hs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fl(e,t,n,r){var l=e.updateQueue;mt=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,c=s.next;s.next=null,u===null?i=c:u.next=c,u=s;var m=e.alternate;m!==null&&(m=m.updateQueue,o=m.lastBaseUpdate,o!==u&&(o===null?m.firstBaseUpdate=c:o.next=c,m.lastBaseUpdate=s))}if(i!==null){var h=l.baseState;u=0,m=c=s=null,o=i;do{var p=o.lane,S=o.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:S,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var k=e,g=o;switch(p=t,S=n,g.tag){case 1:if(k=g.payload,typeof k=="function"){h=k.call(S,h,p);break e}h=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=g.payload,p=typeof k=="function"?k.call(S,h,p):k,p==null)break e;h=B({},h,p);break e;case 2:mt=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[o]:p.push(o))}else S={eventTime:S,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(c=m=S,s=h):m=m.next=S,u|=p;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=h),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);en|=u,e.lanes=u,e.memoizedState=h}}function ms(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ti.transition;Ti.transition={};try{e(!1),t()}finally{I=n,Ti.transition=r}}function Mc(){return je().memoizedState}function Cp(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e))jc(t,n);else if(n=vc(e,t,n,r),n!==null){var l=me();We(n,e,r,l),Ic(n,t,r)}}function xp(e,t,n){var r=Ot(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))jc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,o=i(u,n);if(l.hasEagerState=!0,l.eagerState=o,Ke(o,u)){var s=t.interleaved;s===null?(l.next=l,ro(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=vc(e,t,l,r),n!==null&&(l=me(),We(n,e,r,l),Ic(n,t,r))}}function Dc(e){var t=e.alternate;return e===H||t!==null&&t===H}function jc(e,t){sr=Ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ic(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var Dl={readContext:De,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},Pp={readContext:De,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:ys,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=Ye();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ye();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Cp.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:vs,useDebugValue:po,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=vs(!1),t=e[0];return e=Ep.bind(null,e[1]),Ye().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Ye();if(Q){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),ee===null)throw Error(w(349));bt&30||kc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ys(Cc.bind(null,r,i,e),[e]),r.flags|=2048,Nr(9,Ec.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ye(),t=ee.identifierPrefix;if(Q){var n=it,r=lt;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Je]=t,e[Er]=r,Gc(e,t,!1,!1),t.stateNode=e;e:{switch(u=Xi(n,r),n){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;lAn&&(t.flags|=128,r=!0,Zn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Q)return se(t),null}else 2*Y()-i.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Zn(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return wo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function Rp(e,t){switch(Ju(t),t.tag){case 1:return ke(t.type)&&_l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(),$(Se),$(fe),oo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uo(t),null;case 13:if($(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(V),null;case 4:return In(),null;case 10:return no(t.type._context),null;case 22:case 23:return wo(),null;case 24:return null;default:return null}}var tl=!1,ce=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,P=null;function vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){K(e,t,r)}}var zs=!1;function Dp(e,t){if(iu=El,e=ec(),qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,o=-1,s=-1,c=0,m=0,h=e,p=null;t:for(;;){for(var S;h!==n||l!==0&&h.nodeType!==3||(o=u+l),h!==i||r!==0&&h.nodeType!==3||(s=u+r),h.nodeType===3&&(u+=h.nodeValue.length),(S=h.firstChild)!==null;)p=h,h=S;for(;;){if(h===e)break t;if(p===n&&++c===l&&(o=u),p===i&&++m===r&&(s=u),(S=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=S}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(uu={focusedElem:e,selectionRange:n},El=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var g=k.memoizedProps,z=k.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ae(t.type,g),z);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(w(163))}}catch(y){K(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return k=zs,zs=!1,k}function ar(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Eu(t,n,i)}l=l.next}while(l!==r)}}function Zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qc(e){var t=e.alternate;t!==null&&(e.alternate=null,qc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[Er],delete t[au],delete t[yp],delete t[gp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zc(e){return e.tag===5||e.tag===3||e.tag===4}function Ts(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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.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 xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pl));else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}function Pu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pu(e,t,n),e=e.sibling;e!==null;)Pu(e,t,n),e=e.sibling}var te=null,Ve=!1;function dt(e,t,n){for(n=n.child;n!==null;)Jc(e,t,n),n=n.sibling}function Jc(e,t,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:ce||vn(n,t);case 6:var r=te,l=Ve;te=null,dt(e,t,n),te=r,Ve=l,te!==null&&(Ve?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Ve?(e=te,n=n.stateNode,e.nodeType===8?_i(e.parentNode,n):e.nodeType===1&&_i(e,n),yr(e)):_i(te,n.stateNode));break;case 4:r=te,l=Ve,te=n.stateNode.containerInfo,Ve=!0,dt(e,t,n),te=r,Ve=l;break;case 0:case 11:case 14:case 15:if(!ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&Eu(n,t,u),l=l.next}while(l!==r)}dt(e,t,n);break;case 1:if(!ce&&(vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){K(n,t,o)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,dt(e,t,n),ce=r):dt(e,t,n);break;default:dt(e,t,n)}}function Ls(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mp),t.forEach(function(r){var l=Bp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10e?16:e,xt===null)var r=!1;else{if(e=xt,xt=null,Ul=0,M&6)throw Error(w(331));var l=M;for(M|=4,P=e.current;P!==null;){var i=P,u=i.child;if(P.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sY()-yo?Xt(e,0):vo|=n),Ee(e,t)}function of(e,t){t===0&&(e.mode&1?(t=Kr,Kr<<=1,!(Kr&130023424)&&(Kr=4194304)):t=1);var n=me();e=at(e,t),e!==null&&(Mr(e,t,n),Ee(e,n))}function Hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),of(e,n)}function Bp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),of(e,n)}var sf;sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Op(e,t,n);we=!!(e.flags&131072)}else we=!1,Q&&t.flags&1048576&&fc(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var l=Mn(t,fe.current);En(t,n),l=ao(null,t,r,e,l,n);var i=co();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ke(r)?(i=!0,Nl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,lo(t),l.updater=ql,t.stateNode=l,l._reactInternals=t,mu(t,r,e,n),t=gu(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&Zu(t),pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Kp(r),e=Ae(r,e),l){case 0:t=yu(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=Cs(null,t,r,e,n);break e;case 14:t=xs(null,t,r,Ae(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),yu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Ps(e,t,r,l,n);case 3:e:{if(Bc(t),e===null)throw Error(w(387));r=t.pendingProps,i=t.memoizedState,l=i.element,yc(e,t),Fl(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Un(Error(w(423)),t),t=_s(e,t,r,n,l);break e}else if(r!==l){l=Un(Error(w(424)),t),t=_s(e,t,r,n,l);break e}else for(Pe=zt(t.stateNode.containerInfo.firstChild),_e=t,Q=!0,He=null,n=mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dn(),r===l){t=ct(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&du(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ou(r,l)?u=null:i!==null&&ou(r,i)&&(t.flags|=32),Hc(e,t),pe(e,t,u,n),t.child;case 6:return e===null&&du(t),null;case 13:return Wc(e,t,n);case 4:return io(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Cs(e,t,r,l,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,u=l.value,U(Ll,r._currentValue),r._currentValue=u,i!==null)if(Ke(i.value,u)){if(i.children===l.children&&!Se.current){t=ct(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=ut(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),pu(i.return,n,t),o.lanes|=n;break}s=s.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(w(341));u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),pu(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,En(t,n),l=De(l),r=r(l),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,l=Ae(r,t.pendingProps),l=Ae(r.type,l),xs(e,t,r,l,n);case 15:return Qc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),pl(e,t),t.tag=1,ke(r)?(e=!0,Nl(t)):e=!1,En(t,n),Uc(t,r,l),mu(t,r,l,n),gu(null,t,r,!0,e,n);case 19:return Kc(e,t,n);case 22:return Vc(e,t,n)}throw Error(w(156,t.tag))};function af(e,t){return Da(e,t)}function Wp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Re(e,t,n,r){return new Wp(e,t,n,r)}function ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kp(e){if(typeof e=="function")return ko(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Au)return 11;if(e===$u)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=Re(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vl(e,t,n,r,l,i){var u=2;if(r=e,typeof e=="function")ko(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case on:return qt(n.children,l,i,t);case Uu:u=8,l|=8;break;case Ai:return e=Re(12,n,t,l|2),e.elementType=Ai,e.lanes=i,e;case $i:return e=Re(13,n,t,l),e.elementType=$i,e.lanes=i,e;case Qi:return e=Re(19,n,t,l),e.elementType=Qi,e.lanes=i,e;case ga:return bl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case va:u=10;break e;case ya:u=9;break e;case Au:u=11;break e;case $u:u=14;break e;case ht:u=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=Re(u,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function qt(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function bl(e,t,n,r){return e=Re(22,e,r,t),e.elementType=ga,e.lanes=n,e.stateNode={isHidden:!1},e}function Mi(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function Di(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mi(0),this.expirationTimes=mi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Eo(e,t,n,r,l,i,u,o,s){return e=new Gp(e,t,n,o,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Re(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lo(i),e}function Yp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pf)}catch(e){console.error(e)}}pf(),da.exports=ze;var bp=da.exports,Us=bp;Ii.createRoot=Us.createRoot,Ii.hydrateRoot=Us.hydrateRoot;const hf=()=>!window.invokeNative,eh=()=>{},mf=(e,t)=>{const n=re.useRef(eh);re.useEffect(()=>{n.current=t},[t]),re.useEffect(()=>{const r=l=>{const{action:i,data:u}=l.data;n.current&&i===e&&n.current(u)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[e])};async function th(e,t,n){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)};if(hf()&&n)return n;const l=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${l}/${e}`,r)).json()}const nh=re.createContext(null),rh=({children:e})=>{const[t,n]=re.useState(!1);return mf("setVisible",n),re.useEffect(()=>{if(!t)return;const r=l=>{["Backspace","Escape"].includes(l.code)&&(hf()?n(!t):th("hideFrame"))};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t]),ne.jsx(nh.Provider,{value:{visible:t,setVisible:n},children:ne.jsx("div",{style:{visibility:t?"visible":"hidden",height:"100%"},children:e})})};var li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ii=typeof window>"u"||"Deno"in globalThis;function $e(){}function lh(e,t){return typeof e=="function"?e(t):e}function ih(e){return typeof e=="number"&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function As(e,t){return typeof e=="function"?e(t):e}function oh(e,t){return typeof e=="function"?e(t):e}function $s(e,t){const{type:n="all",exact:r,fetchStatus:l,predicate:i,queryKey:u,stale:o}=e;if(u){if(r){if(t.queryHash!==_o(u,t.options))return!1}else if(!Lr(t.queryKey,u))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||l&&l!==t.state.fetchStatus||i&&!i(t))}function Qs(e,t){const{exact:n,status:r,predicate:l,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tr(t.options.mutationKey)!==Tr(i))return!1}else if(!Lr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||l&&!l(t))}function _o(e,t){return((t==null?void 0:t.queryKeyHashFn)||Tr)(e)}function Tr(e){return JSON.stringify(e,(t,n)=>Lu(n)?Object.keys(n).sort().reduce((r,l)=>(r[l]=n[l],r),{}):n)}function Lr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Lr(e[n],t[n])):!1}function vf(e,t){if(e===t)return e;const n=Vs(e)&&Vs(t);if(n||Lu(e)&&Lu(t)){const r=n?e:Object.keys(e),l=r.length,i=n?t:Object.keys(t),u=i.length,o=n?[]:{};let s=0;for(let c=0;c{setTimeout(t,e)})}function ah(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vf(e,t):t}function ch(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fh(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var No=Symbol();function yf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===No?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Wt,gt,xn,Gs,dh=(Gs=class extends li{constructor(){super();D(this,Wt);D(this,gt);D(this,xn);L(this,xn,t=>{if(!ii&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,gt)||this.setEventListener(v(this,xn))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,gt))==null||t.call(this),L(this,gt,void 0))}setEventListener(t){var n;L(this,xn,t),(n=v(this,gt))==null||n.call(this),L(this,gt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,Wt)!==t&&(L(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,Wt)=="boolean"?v(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,gt=new WeakMap,xn=new WeakMap,Gs),gf=new dh,Pn,wt,_n,Ys,ph=(Ys=class extends li{constructor(){super();D(this,Pn,!0);D(this,wt);D(this,_n);L(this,_n,t=>{if(!ii&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,wt)||this.setEventListener(v(this,_n))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,wt))==null||t.call(this),L(this,wt,void 0))}setEventListener(t){var n;L(this,_n,t),(n=v(this,wt))==null||n.call(this),L(this,wt,t(this.setOnline.bind(this)))}setOnline(t){v(this,Pn)!==t&&(L(this,Pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Pn)}},Pn=new WeakMap,wt=new WeakMap,_n=new WeakMap,Ys),Ql=new ph;function hh(){let e,t;const n=new Promise((l,i)=>{e=l,t=i});n.status="pending",n.catch(()=>{});function r(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{r({status:"fulfilled",value:l}),e(l)},n.reject=l=>{r({status:"rejected",reason:l}),t(l)},n}function mh(e){return Math.min(1e3*2**e,3e4)}function wf(e){return(e??"online")==="online"?Ql.isOnline():!0}var Sf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ji(e){return e instanceof Sf}function kf(e){let t=!1,n=0,r=!1,l;const i=hh(),u=g=>{var z;r||(p(new Sf(g)),(z=e.abort)==null||z.call(e))},o=()=>{t=!0},s=()=>{t=!1},c=()=>gf.isFocused()&&(e.networkMode==="always"||Ql.isOnline())&&e.canRun(),m=()=>wf(e.networkMode)&&e.canRun(),h=g=>{var z;r||(r=!0,(z=e.onSuccess)==null||z.call(e,g),l==null||l(),i.resolve(g))},p=g=>{var z;r||(r=!0,(z=e.onError)==null||z.call(e,g),l==null||l(),i.reject(g))},S=()=>new Promise(g=>{var z;l=f=>{(r||c())&&g(f)},(z=e.onPause)==null||z.call(e)}).then(()=>{var g;l=void 0,r||(g=e.onContinue)==null||g.call(e)}),k=()=>{if(r)return;let g;const z=n===0?e.initialPromise:void 0;try{g=z??e.fn()}catch(f){g=Promise.reject(f)}Promise.resolve(g).then(h).catch(f=>{var x;if(r)return;const a=e.retry??(ii?0:3),d=e.retryDelay??mh,y=typeof d=="function"?d(n,f):d,E=a===!0||typeof a=="number"&&nc()?void 0:S()).then(()=>{t?p(f):k()})})};return{promise:i,cancel:u,continue:()=>(l==null||l(),i),cancelRetry:o,continueRetry:s,canStart:m,start:()=>(m()?k():S().then(k),i)}}function vh(){let e=[],t=0,n=o=>{o()},r=o=>{o()},l=o=>setTimeout(o,0);const i=o=>{t?e.push(o):l(()=>{n(o)})},u=()=>{const o=e;e=[],o.length&&l(()=>{r(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||u()}return s},batchCalls:o=>(...s)=>{i(()=>{o(...s)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{l=o}}}var he=vh(),Kt,Xs,Ef=(Xs=class{constructor(){D(this,Kt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ih(this.gcTime)&&L(this,Kt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ii?1/0:5*60*1e3))}clearGcTimeout(){v(this,Kt)&&(clearTimeout(v(this,Kt)),L(this,Kt,void 0))}},Kt=new WeakMap,Xs),Nn,zn,Le,ae,Or,Gt,Qe,tt,qs,yh=(qs=class extends Ef{constructor(t){super();D(this,Qe);D(this,Nn);D(this,zn);D(this,Le);D(this,ae);D(this,Or);D(this,Gt);L(this,Gt,!1),L(this,Or,t.defaultOptions),this.setOptions(t.options),this.observers=[],L(this,Le,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,Nn,wh(this.options)),this.state=t.state??v(this,Nn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,ae))==null?void 0:t.promise}setOptions(t){this.options={...v(this,Or),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,Le).remove(this)}setData(t,n){const r=ah(this.state.data,t,this.options);return ue(this,Qe,tt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ue(this,Qe,tt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,l;const n=(r=v(this,ae))==null?void 0:r.promise;return(l=v(this,ae))==null||l.cancel(t),n?n.then($e).catch($e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,Nn))}isActive(){return this.observers.some(t=>oh(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===No||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!uh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,Le).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,ae)&&(v(this,Gt)?v(this,ae).cancel({revert:!0}):v(this,ae).cancelRetry()),this.scheduleGc()),v(this,Le).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ue(this,Qe,tt).call(this,{type:"invalidate"})}fetch(t,n){var s,c,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,ae))return v(this,ae).continueRetry(),v(this,ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(L(this,Gt,!0),r.signal)})},i=()=>{const h=yf(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return l(p),L(this,Gt,!1),this.options.persister?this.options.persister(h,p,this):h(p)},u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};l(u),(s=this.options.behavior)==null||s.onFetch(u,this),L(this,zn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=u.fetchOptions)==null?void 0:c.meta))&&ue(this,Qe,tt).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta});const o=h=>{var p,S,k,g;ji(h)&&h.silent||ue(this,Qe,tt).call(this,{type:"error",error:h}),ji(h)||((S=(p=v(this,Le).config).onError)==null||S.call(p,h,this),(g=(k=v(this,Le).config).onSettled)==null||g.call(k,this.state.data,h,this)),this.scheduleGc()};return L(this,ae,kf({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,S,k,g;if(h===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(z){o(z);return}(S=(p=v(this,Le).config).onSuccess)==null||S.call(p,h,this),(g=(k=v(this,Le).config).onSettled)==null||g.call(k,h,this.state.error,this),this.scheduleGc()},onError:o,onFail:(h,p)=>{ue(this,Qe,tt).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{ue(this,Qe,tt).call(this,{type:"pause"})},onContinue:()=>{ue(this,Qe,tt).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),v(this,ae).start()}},Nn=new WeakMap,zn=new WeakMap,Le=new WeakMap,ae=new WeakMap,Or=new WeakMap,Gt=new WeakMap,Qe=new WeakSet,tt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gh(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return ji(l)&&l.revert&&v(this,zn)?{...v(this,zn),fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),he.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,Le).notify({query:this,type:"updated",action:t})})},qs);function gh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xe,Zs,Sh=(Zs=class extends li{constructor(t={}){super();D(this,Xe);this.config=t,L(this,Xe,new Map)}build(t,n,r){const l=n.queryKey,i=n.queryHash??_o(l,n);let u=this.get(i);return u||(u=new yh({cache:this,queryKey:l,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(u)),u}add(t){v(this,Xe).has(t.queryHash)||(v(this,Xe).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,Xe).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,Xe).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){he.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,Xe).get(t)}getAll(){return[...v(this,Xe).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$s(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>$s(t,r)):n}notify(t){he.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){he.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){he.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xe=new WeakMap,Zs),qe,de,Yt,Ze,pt,Js,kh=(Js=class extends Ef{constructor(t){super();D(this,Ze);D(this,qe);D(this,de);D(this,Yt);this.mutationId=t.mutationId,L(this,de,t.mutationCache),L(this,qe,[]),this.state=t.state||Eh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,qe).includes(t)||(v(this,qe).push(t),this.clearGcTimeout(),v(this,de).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,qe,v(this,qe).filter(n=>n!==t)),this.scheduleGc(),v(this,de).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,qe).length||(this.state.status==="pending"?this.scheduleGc():v(this,de).remove(this))}continue(){var t;return((t=v(this,Yt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,i,u,o,s,c,m,h,p,S,k,g,z,f,a,d,y,E,x,N;L(this,Yt,kf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,j)=>{ue(this,Ze,pt).call(this,{type:"failed",failureCount:C,error:j})},onPause:()=>{ue(this,Ze,pt).call(this,{type:"pause"})},onContinue:()=>{ue(this,Ze,pt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,de).canRun(this)}));const n=this.state.status==="pending",r=!v(this,Yt).canStart();try{if(!n){ue(this,Ze,pt).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(l=v(this,de).config).onMutate)==null?void 0:i.call(l,t,this));const j=await((o=(u=this.options).onMutate)==null?void 0:o.call(u,t));j!==this.state.context&&ue(this,Ze,pt).call(this,{type:"pending",context:j,variables:t,isPaused:r})}const C=await v(this,Yt).start();return await((c=(s=v(this,de).config).onSuccess)==null?void 0:c.call(s,C,t,this.state.context,this)),await((h=(m=this.options).onSuccess)==null?void 0:h.call(m,C,t,this.state.context)),await((S=(p=v(this,de).config).onSettled)==null?void 0:S.call(p,C,null,this.state.variables,this.state.context,this)),await((g=(k=this.options).onSettled)==null?void 0:g.call(k,C,null,t,this.state.context)),ue(this,Ze,pt).call(this,{type:"success",data:C}),C}catch(C){try{throw await((f=(z=v(this,de).config).onError)==null?void 0:f.call(z,C,t,this.state.context,this)),await((d=(a=this.options).onError)==null?void 0:d.call(a,C,t,this.state.context)),await((E=(y=v(this,de).config).onSettled)==null?void 0:E.call(y,void 0,C,this.state.variables,this.state.context,this)),await((N=(x=this.options).onSettled)==null?void 0:N.call(x,void 0,C,t,this.state.context)),C}finally{ue(this,Ze,pt).call(this,{type:"error",error:C})}}finally{v(this,de).runNext(this)}}},qe=new WeakMap,de=new WeakMap,Yt=new WeakMap,Ze=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),he.batch(()=>{v(this,qe).forEach(r=>{r.onMutationUpdate(t)}),v(this,de).notify({mutation:this,type:"updated",action:t})})},Js);function Eh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ce,Fr,bs,Ch=(bs=class extends li{constructor(t={}){super();D(this,Ce);D(this,Fr);this.config=t,L(this,Ce,new Map),L(this,Fr,Date.now())}build(t,n,r){const l=new kh({mutationCache:this,mutationId:++$r(this,Fr)._,options:t.defaultMutationOptions(n),state:r});return this.add(l),l}add(t){const n=ll(t),r=v(this,Ce).get(n)??[];r.push(t),v(this,Ce).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ll(t);if(v(this,Ce).has(n)){const l=(r=v(this,Ce).get(n))==null?void 0:r.filter(i=>i!==t);l&&(l.length===0?v(this,Ce).delete(n):v(this,Ce).set(n,l))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=v(this,Ce).get(ll(t)))==null?void 0:r.find(l=>l.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=v(this,Ce).get(ll(t)))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){he.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...v(this,Ce).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qs(n,r))}findAll(t={}){return this.getAll().filter(n=>Qs(t,n))}notify(t){he.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return he.batch(()=>Promise.all(t.map(n=>n.continue().catch($e))))}},Ce=new WeakMap,Fr=new WeakMap,bs);function ll(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Bs(e){return{onFetch:(t,n)=>{var m,h,p,S,k;const r=t.options,l=(p=(h=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((S=t.state.data)==null?void 0:S.pages)||[],u=((k=t.state.data)==null?void 0:k.pageParams)||[];let o={pages:[],pageParams:[]},s=0;const c=async()=>{let g=!1;const z=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},f=yf(t.options,t.fetchOptions),a=async(d,y,E)=>{if(g)return Promise.reject();if(y==null&&d.pages.length)return Promise.resolve(d);const x={queryKey:t.queryKey,pageParam:y,direction:E?"backward":"forward",meta:t.options.meta};z(x);const N=await f(x),{maxPages:C}=t.options,j=E?fh:ch;return{pages:j(d.pages,N,C),pageParams:j(d.pageParams,y,C)}};if(l&&i.length){const d=l==="backward",y=d?xh:Ws,E={pages:i,pageParams:u},x=y(r,E);o=await a(E,x,d)}else{const d=e??i.length;do{const y=s===0?u[0]??r.initialPageParam:Ws(r,o);if(s>0&&y==null)break;o=await a(o,y),s++}while(s{var g,z;return(z=(g=t.options).persister)==null?void 0:z.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Ws(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xh(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var W,St,kt,Tn,Ln,Et,On,Fn,ea,Ph=(ea=class{constructor(e={}){D(this,W);D(this,St);D(this,kt);D(this,Tn);D(this,Ln);D(this,Et);D(this,On);D(this,Fn);L(this,W,e.queryCache||new Sh),L(this,St,e.mutationCache||new Ch),L(this,kt,e.defaultOptions||{}),L(this,Tn,new Map),L(this,Ln,new Map),L(this,Et,0)}mount(){$r(this,Et)._++,v(this,Et)===1&&(L(this,On,gf.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,W).onFocus())})),L(this,Fn,Ql.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,W).onOnline())})))}unmount(){var e,t;$r(this,Et)._--,v(this,Et)===0&&((e=v(this,On))==null||e.call(this),L(this,On,void 0),(t=v(this,Fn))==null||t.call(this),L(this,Fn,void 0))}isFetching(e){return v(this,W).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,St).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,W).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=v(this,W).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(As(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(this,W).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=v(this,W).get(r.queryHash),i=l==null?void 0:l.state.data,u=lh(t,i);if(u!==void 0)return v(this,W).build(this,r).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return he.batch(()=>v(this,W).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,W).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,W);he.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,W),r={type:"active",...e};return he.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=he.batch(()=>v(this,W).findAll(e).map(l=>l.cancel(n)));return Promise.all(r).then($e).catch($e)}invalidateQueries(e,t={}){return he.batch(()=>{if(v(this,W).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=he.batch(()=>v(this,W).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let i=l.fetch(void 0,n);return n.throwOnError||(i=i.catch($e)),l.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=v(this,W).build(this,t);return n.isStaleByTime(As(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($e).catch($e)}fetchInfiniteQuery(e){return e.behavior=Bs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($e).catch($e)}ensureInfiniteQueryData(e){return e.behavior=Bs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ql.isOnline()?v(this,St).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,W)}getMutationCache(){return v(this,St)}getDefaultOptions(){return v(this,kt)}setDefaultOptions(e){L(this,kt,e)}setQueryDefaults(e,t){v(this,Tn).set(Tr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Tn).values()],n={};return t.forEach(r=>{Lr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){v(this,Ln).set(Tr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Ln).values()];let n={};return t.forEach(r=>{Lr(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,kt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_o(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===No&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,kt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,W).clear(),v(this,St).clear()}},W=new WeakMap,St=new WeakMap,kt=new WeakMap,Tn=new WeakMap,Ln=new WeakMap,Et=new WeakMap,On=new WeakMap,Fn=new WeakMap,ea);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _h=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Nh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zh=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:i,iconNode:u,...o},s)=>re.createElement("svg",{ref:s,...Nh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Cf("lucide",l),...o},[...u.map(([c,m])=>re.createElement(c,m)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xf=(e,t)=>{const n=re.forwardRef(({className:r,...l},i)=>re.createElement(zh,{ref:i,iconNode:t,className:Cf(`lucide-${_h(e)}`,r),...l}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Th=xf("GlassWater",[["path",{d:"M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z",key:"p55z4y"}],["path",{d:"M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0",key:"mjntcy"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lh=xf("Pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]),Ks=({icon:e,value:t,type:n})=>{const r=n==="food"?"bg-[#FF5500]":"bg-[#004DFF]",l=n==="food"?"bg-[#642E00]":"bg-[#0A2342]";return ne.jsxs("div",{className:"flex items-center gap-3",children:[ne.jsx("div",{className:`relative w-12 h-12 rounded-full flex items-center justify-center ${r} border-2 border-white/20`,children:ne.jsx(e,{className:"w-6 h-6 text-white relative z-10"})}),ne.jsx("div",{className:`w-64 h-3 rounded-full ${l} overflow-hidden border border-white/20`,children:ne.jsx("div",{className:`h-full bg-gradient-to-r ${r} rounded-full transition-all duration-300 ease-out animate-progress`,style:{width:`${t}%`,"--progress":`${t}%`}})})]})},Oh=()=>{const[e,t]=re.useState(0),[n,r]=re.useState(0),[l,i]=re.useState("Food");return mf("updateStatus",u=>{i(u.statusType),u.statusType==="Food"?t(u.statusAmount):r(u.statusAmount)}),ne.jsx("div",{className:"flex gap-4",children:l==="Food"?ne.jsx(Ks,{icon:Lh,value:e,type:"food"}):ne.jsx(Ks,{icon:Th,value:n,type:"thirst"})})},Fh=()=>ne.jsx("div",{className:"min-h-screen bg-transparent",children:ne.jsx("div",{className:"fixed bottom-8 left-1/2 -translate-x-1/2",children:ne.jsx(Oh,{})})});new Ph;const Rh=()=>ne.jsx(Fh,{});Ii.createRoot(document.getElementById("root")).render(ne.jsx(Vf.StrictMode,{children:ne.jsx(rh,{children:ne.jsx(Rh,{})})}));