403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wcfs/NAOPOS/dist/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/wcfs/NAOPOS/dist/assets/index-zr7AUrWH.js
var bd=e=>{throw TypeError(e)};var Qa=(e,t,n)=>t.has(e)||bd("Cannot "+n);var j=(e,t,n)=>(Qa(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?bd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(Qa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),je=(e,t,n)=>(Qa(e,t,"access private method"),n);var Ls=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return j(e,t,r)}});function jy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},aa={},Fp={exports:{}},q={};/**
 * @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 Es=Symbol.for("react.element"),Oy=Symbol.for("react.portal"),_y=Symbol.for("react.fragment"),Ay=Symbol.for("react.strict_mode"),Dy=Symbol.for("react.profiler"),My=Symbol.for("react.provider"),Ly=Symbol.for("react.context"),Iy=Symbol.for("react.forward_ref"),Fy=Symbol.for("react.suspense"),$y=Symbol.for("react.memo"),zy=Symbol.for("react.lazy"),Sd=Symbol.iterator;function By(e){return e===null||typeof e!="object"?null:(e=Sd&&e[Sd]||e["@@iterator"],typeof e=="function"?e:null)}var $p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zp=Object.assign,Bp={};function wo(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||$p}wo.prototype.isReactComponent={};wo.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")};wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Up(){}Up.prototype=wo.prototype;function Yu(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||$p}var qu=Yu.prototype=new Up;qu.constructor=Yu;zp(qu,wo.prototype);qu.isPureReactComponent=!0;var Cd=Array.isArray,Wp=Object.prototype.hasOwnProperty,Xu={current:null},Hp={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Wp.call(t,r)&&!Hp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Es,type:e,key:s,ref:i,props:o,_owner:Xu.current}}function Uy(e,t){return{$$typeof:Es,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Es}function Wy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ed=/\/+/g;function Ga(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wy(""+e.key):t.toString(36)}function ui(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Es:case Oy:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ga(i,0):r,Cd(o)?(n="",e!=null&&(n=e.replace(Ed,"$&/")+"/"),ui(o,t,n,"",function(u){return u})):o!=null&&(Zu(o)&&(o=Uy(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ed,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Cd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Ga(s,a);i+=ui(s,t,n,l,o)}else if(l=By(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Ga(s,a++),i+=ui(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Is(e,t,n){if(e==null)return e;var r=[],o=0;return ui(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Hy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ue={current:null},ci={transition:null},Vy={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:ci,ReactCurrentOwner:Xu};function Qp(){throw Error("act(...) is not supported in production builds of React.")}q.Children={map:Is,forEach:function(e,t,n){Is(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Is(e,function(){t++}),t},toArray:function(e){return Is(e,function(t){return t})||[]},only:function(e){if(!Zu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=wo;q.Fragment=_y;q.Profiler=Dy;q.PureComponent=Yu;q.StrictMode=Ay;q.Suspense=Fy;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vy;q.act=Qp;q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zp({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Xu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Wp.call(t,l)&&!Hp.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Es,type:e.type,key:o,ref:s,props:r,_owner:i}};q.createContext=function(e){return e={$$typeof:Ly,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:My,_context:e},e.Consumer=e};q.createElement=Vp;q.createFactory=function(e){var t=Vp.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:Iy,render:e}};q.isValidElement=Zu;q.lazy=function(e){return{$$typeof:zy,_payload:{_status:-1,_result:e},_init:Hy}};q.memo=function(e,t){return{$$typeof:$y,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=ci.transition;ci.transition={};try{e()}finally{ci.transition=t}};q.unstable_act=Qp;q.useCallback=function(e,t){return Ue.current.useCallback(e,t)};q.useContext=function(e){return Ue.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return Ue.current.useDeferredValue(e)};q.useEffect=function(e,t){return Ue.current.useEffect(e,t)};q.useId=function(){return Ue.current.useId()};q.useImperativeHandle=function(e,t,n){return Ue.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return Ue.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return Ue.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return Ue.current.useMemo(e,t)};q.useReducer=function(e,t,n){return Ue.current.useReducer(e,t,n)};q.useRef=function(e){return Ue.current.useRef(e)};q.useState=function(e){return Ue.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return Ue.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return Ue.current.useTransition()};q.version="18.3.1";Fp.exports=q;var v=Fp.exports;const M=Lp(v),Ju=jy({__proto__:null,default:M},[v]);/**
 * @license React
 * react-jsx-runtime.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 Qy=v,Gy=Symbol.for("react.element"),Ky=Symbol.for("react.fragment"),Yy=Object.prototype.hasOwnProperty,qy=Qy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xy={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Yy.call(t,r)&&!Xy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Gy,type:e,key:s,ref:i,props:o,_owner:qy.current}}aa.Fragment=Ky;aa.jsx=Gp;aa.jsxs=Gp;Ip.exports=aa;var c=Ip.exports,Kp={exports:{}},at={},Yp={exports:{}},qp={};/**
 * @license React
 * scheduler.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.
 */(function(e){function t(k,P){var A=k.length;k.push(P);e:for(;0<A;){var U=A-1>>>1,z=k[U];if(0<o(z,P))k[U]=P,k[A]=z,A=U;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var P=k[0],A=k.pop();if(A!==P){k[0]=A;e:for(var U=0,z=k.length,H=z>>>1;U<H;){var Y=2*(U+1)-1,he=k[Y],Ce=Y+1,J=k[Ce];if(0>o(he,A))Ce<z&&0>o(J,he)?(k[U]=J,k[Ce]=A,U=Ce):(k[U]=he,k[Y]=A,U=Y);else if(Ce<z&&0>o(J,A))k[U]=J,k[Ce]=A,U=Ce;else break e}}return P}function o(k,P){var A=k.sortIndex-P.sortIndex;return A!==0?A:k.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,p=null,y=3,f=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(k){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=k)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function S(k){if(g=!1,w(k),!b)if(n(l)!==null)b=!0,T(C);else{var P=n(u);P!==null&&O(S,P.startTime-k)}}function C(k,P){b=!1,g&&(g=!1,h(R),R=-1),f=!0;var A=y;try{for(w(P),p=n(l);p!==null&&(!(p.expirationTime>P)||k&&!W());){var U=p.callback;if(typeof U=="function"){p.callback=null,y=p.priorityLevel;var z=U(p.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(l)&&r(l),w(P)}else r(l);p=n(l)}if(p!==null)var H=!0;else{var Y=n(u);Y!==null&&O(S,Y.startTime-P),H=!1}return H}finally{p=null,y=A,f=!1}}var N=!1,E=null,R=-1,D=5,L=-1;function W(){return!(e.unstable_now()-L<D)}function $(){if(E!==null){var k=e.unstable_now();L=k;var P=!0;try{P=E(!0,k)}finally{P?V():(N=!1,E=null)}}else N=!1}var V;if(typeof m=="function")V=function(){m($)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,I=F.port2;F.port1.onmessage=$,V=function(){I.postMessage(null)}}else V=function(){x($,0)};function T(k){E=k,N||(N=!0,V())}function O(k,P){R=x(function(){k(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){b||f||(b=!0,T(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(y){case 1:case 2:case 3:var P=3;break;default:P=y}var A=y;y=P;try{return k()}finally{y=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,P){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var A=y;y=k;try{return P()}finally{y=A}},e.unstable_scheduleCallback=function(k,P,A){var U=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?U+A:U):A=U,k){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=A+z,k={id:d++,callback:P,priorityLevel:k,startTime:A,expirationTime:z,sortIndex:-1},A>U?(k.sortIndex=A,t(u,k),n(l)===null&&k===n(u)&&(g?(h(R),R=-1):g=!0,O(S,A-U))):(k.sortIndex=z,t(l,k),b||f||(b=!0,T(C))),k},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(k){var P=y;return function(){var A=y;y=P;try{return k.apply(this,arguments)}finally{y=A}}}})(qp);Yp.exports=qp;var Zy=Yp.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 Jy=v,it=Zy;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xp=new Set,es={};function Cr(e,t){co(e,t),co(e+"Capture",t)}function co(e,t){for(es[e]=t,e=0;e<t.length;e++)Xp.add(t[e])}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Il=Object.prototype.hasOwnProperty,e0=/^[: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]*$/,kd={},Nd={};function t0(e){return Il.call(Nd,e)?!0:Il.call(kd,e)?!1:e0.test(e)?Nd[e]=!0:(kd[e]=!0,!1)}function n0(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 r0(e,t,n,r){if(t===null||typeof t>"u"||n0(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 We(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new We(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){Re[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var ec=/[\-:]([a-z])/g;function tc(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(ec,tc);Re[t]=new We(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(ec,tc);Re[t]=new We(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(ec,tc);Re[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function nc(e,t,n,r){var o=Re.hasOwnProperty(t)?Re[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(r0(t,n,o,r)&&(n=null),r||o===null?t0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var fn=Jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fs=Symbol.for("react.element"),Dr=Symbol.for("react.portal"),Mr=Symbol.for("react.fragment"),rc=Symbol.for("react.strict_mode"),Fl=Symbol.for("react.profiler"),Zp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),oc=Symbol.for("react.forward_ref"),$l=Symbol.for("react.suspense"),zl=Symbol.for("react.suspense_list"),sc=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),eh=Symbol.for("react.offscreen"),Td=Symbol.iterator;function Ro(e){return e===null||typeof e!="object"?null:(e=Td&&e[Td]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,Ka;function $o(e){if(Ka===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ka=t&&t[1]||""}return`
`+Ka+e}var Ya=!1;function qa(e,t){if(!e||Ya)return"";Ya=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),s=r.stack.split(`
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$o(e):""}function o0(e){switch(e.tag){case 5:return $o(e.type);case 16:return $o("Lazy");case 13:return $o("Suspense");case 19:return $o("SuspenseList");case 0:case 2:case 15:return e=qa(e.type,!1),e;case 11:return e=qa(e.type.render,!1),e;case 1:return e=qa(e.type,!0),e;default:return""}}function Bl(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 Mr:return"Fragment";case Dr:return"Portal";case Fl:return"Profiler";case rc:return"StrictMode";case $l:return"Suspense";case zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Zp:return(e._context.displayName||"Context")+".Provider";case oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sc:return t=e.displayName||null,t!==null?t:Bl(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return Bl(e(t))}catch{}}return null}function s0(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 Bl(t);case 8:return t===rc?"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 Gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function th(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i0(e){var t=th(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 o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){e._valueTracker||(e._valueTracker=i0(e))}function nh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=th(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ti(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 Ul(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gn(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 rh(e,t){t=t.checked,t!=null&&nc(e,"checked",t,!1)}function Wl(e,t){rh(e,t);var n=Gn(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")?Hl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hl(e,t.type,Gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rd(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 Hl(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Qr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Gn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Vl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(zo(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gn(n)}}function oh(e,t){var n=Gn(t.value),r=Gn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Od(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ql(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zs,ih=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zs=zs||document.createElement("div"),zs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={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},a0=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){a0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function ah(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function lh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ah(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var l0=pe({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 Gl(e,t){if(t){if(l0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Kl(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 Yl=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Gr=null,Kr=null;function _d(e){if(e=Ts(e)){if(typeof ql!="function")throw Error(_(280));var t=e.stateNode;t&&(t=fa(t),ql(e.stateNode,e.type,t))}}function uh(e){Gr?Kr?Kr.push(e):Kr=[e]:Gr=e}function ch(){if(Gr){var e=Gr,t=Kr;if(Kr=Gr=null,_d(e),t)for(e=0;e<t.length;e++)_d(t[e])}}function dh(e,t){return e(t)}function fh(){}var Xa=!1;function ph(e,t,n){if(Xa)return e(t,n);Xa=!0;try{return dh(e,t,n)}finally{Xa=!1,(Gr!==null||Kr!==null)&&(fh(),ch())}}function ns(e,t){var n=e.stateNode;if(n===null)return null;var r=fa(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Xl=!1;if(on)try{var jo={};Object.defineProperty(jo,"passive",{get:function(){Xl=!0}}),window.addEventListener("test",jo,jo),window.removeEventListener("test",jo,jo)}catch{Xl=!1}function u0(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Vo=!1,Pi=null,Ri=!1,Zl=null,c0={onError:function(e){Vo=!0,Pi=e}};function d0(e,t,n,r,o,s,i,a,l){Vo=!1,Pi=null,u0.apply(c0,arguments)}function f0(e,t,n,r,o,s,i,a,l){if(d0.apply(this,arguments),Vo){if(Vo){var u=Pi;Vo=!1,Pi=null}else throw Error(_(198));Ri||(Ri=!0,Zl=u)}}function Er(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function hh(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 Ad(e){if(Er(e)!==e)throw Error(_(188))}function p0(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Ad(o),e;if(s===r)return Ad(o),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function mh(e){return e=p0(e),e!==null?gh(e):null}function gh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gh(e);if(t!==null)return t;e=e.sibling}return null}var vh=it.unstable_scheduleCallback,Dd=it.unstable_cancelCallback,h0=it.unstable_shouldYield,m0=it.unstable_requestPaint,ve=it.unstable_now,g0=it.unstable_getCurrentPriorityLevel,ac=it.unstable_ImmediatePriority,yh=it.unstable_UserBlockingPriority,ji=it.unstable_NormalPriority,v0=it.unstable_LowPriority,xh=it.unstable_IdlePriority,la=null,Wt=null;function y0(e){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(la,e,void 0,(e.current.flags&128)===128)}catch{}}var Pt=Math.clz32?Math.clz32:b0,x0=Math.log,w0=Math.LN2;function b0(e){return e>>>=0,e===0?32:31-(x0(e)/w0|0)|0}var Bs=64,Us=4194304;function Bo(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 Oi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Bo(a):(s&=i,s!==0&&(r=Bo(s)))}else i=n&~o,i!==0?r=Bo(i):s!==0&&(r=Bo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Pt(t),o=1<<n,r|=e[n],t&=~o;return r}function S0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function C0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Pt(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=S0(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Jl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wh(){var e=Bs;return Bs<<=1,!(Bs&4194240)&&(Bs=64),e}function Za(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=n}function E0(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<n;){var o=31-Pt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function lc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var te=0;function bh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sh,uc,Ch,Eh,kh,eu=!1,Ws=[],Fn=null,$n=null,zn=null,rs=new Map,os=new Map,Tn=[],k0="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 submit".split(" ");function Md(e,t){switch(e){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function Oo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Ts(t),t!==null&&uc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function N0(e,t,n,r,o){switch(t){case"focusin":return Fn=Oo(Fn,e,t,n,r,o),!0;case"dragenter":return $n=Oo($n,e,t,n,r,o),!0;case"mouseover":return zn=Oo(zn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return rs.set(s,Oo(rs.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,os.set(s,Oo(os.get(s)||null,e,t,n,r,o)),!0}return!1}function Nh(e){var t=sr(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=hh(n),t!==null){e.blockedOn=t,kh(e.priority,function(){Ch(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yl=r,n.target.dispatchEvent(r),Yl=null}else return t=Ts(n),t!==null&&uc(t),e.blockedOn=n,!1;t.shift()}return!0}function Ld(e,t,n){di(e)&&n.delete(t)}function T0(){eu=!1,Fn!==null&&di(Fn)&&(Fn=null),$n!==null&&di($n)&&($n=null),zn!==null&&di(zn)&&(zn=null),rs.forEach(Ld),os.forEach(Ld)}function _o(e,t){e.blockedOn===t&&(e.blockedOn=null,eu||(eu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,T0)))}function ss(e){function t(o){return _o(o,e)}if(0<Ws.length){_o(Ws[0],e);for(var n=1;n<Ws.length;n++){var r=Ws[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fn!==null&&_o(Fn,e),$n!==null&&_o($n,e),zn!==null&&_o(zn,e),rs.forEach(t),os.forEach(t),n=0;n<Tn.length;n++)r=Tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tn.length&&(n=Tn[0],n.blockedOn===null);)Nh(n),n.blockedOn===null&&Tn.shift()}var Yr=fn.ReactCurrentBatchConfig,_i=!0;function P0(e,t,n,r){var o=te,s=Yr.transition;Yr.transition=null;try{te=1,cc(e,t,n,r)}finally{te=o,Yr.transition=s}}function R0(e,t,n,r){var o=te,s=Yr.transition;Yr.transition=null;try{te=4,cc(e,t,n,r)}finally{te=o,Yr.transition=s}}function cc(e,t,n,r){if(_i){var o=tu(e,t,n,r);if(o===null)ll(e,t,r,Ai,n),Md(e,r);else if(N0(o,e,t,n,r))r.stopPropagation();else if(Md(e,r),t&4&&-1<k0.indexOf(e)){for(;o!==null;){var s=Ts(o);if(s!==null&&Sh(s),s=tu(e,t,n,r),s===null&&ll(e,t,r,Ai,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else ll(e,t,r,null,n)}}var Ai=null;function tu(e,t,n,r){if(Ai=null,e=ic(r),e=sr(e),e!==null)if(t=Er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ai=e,null}function Th(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(g0()){case ac:return 1;case yh:return 4;case ji:case v0:return 16;case xh:return 536870912;default:return 16}default:return 16}}var Dn=null,dc=null,fi=null;function Ph(){if(fi)return fi;var e,t=dc,n=t.length,r,o="value"in Dn?Dn.value:Dn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return fi=o.slice(e,1<r?1-r:void 0)}function pi(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 Hs(){return!0}function Id(){return!1}function lt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Hs:Id,this.isPropagationStopped=Id,this}return pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),t}var bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fc=lt(bo),Ns=pe({},bo,{view:0,detail:0}),j0=lt(Ns),Ja,el,Ao,ua=pe({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,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!==Ao&&(Ao&&e.type==="mousemove"?(Ja=e.screenX-Ao.screenX,el=e.screenY-Ao.screenY):el=Ja=0,Ao=e),Ja)},movementY:function(e){return"movementY"in e?e.movementY:el}}),Fd=lt(ua),O0=pe({},ua,{dataTransfer:0}),_0=lt(O0),A0=pe({},Ns,{relatedTarget:0}),tl=lt(A0),D0=pe({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),M0=lt(D0),L0=pe({},bo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I0=lt(L0),F0=pe({},bo,{data:0}),$d=lt(F0),$0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function pc(){return U0}var W0=pe({},Ns,{key:function(e){if(e.key){var t=$0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=lt(W0),V0=pe({},ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zd=lt(V0),Q0=pe({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),G0=lt(Q0),K0=pe({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=lt(K0),q0=pe({},ua,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),X0=lt(q0),Z0=[9,13,27,32],hc=on&&"CompositionEvent"in window,Qo=null;on&&"documentMode"in document&&(Qo=document.documentMode);var J0=on&&"TextEvent"in window&&!Qo,Rh=on&&(!hc||Qo&&8<Qo&&11>=Qo),Bd=" ",Ud=!1;function jh(e,t){switch(e){case"keyup":return Z0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function ex(e,t){switch(e){case"compositionend":return Oh(t);case"keypress":return t.which!==32?null:(Ud=!0,Bd);case"textInput":return e=t.data,e===Bd&&Ud?null:e;default:return null}}function tx(e,t){if(Lr)return e==="compositionend"||!hc&&jh(e,t)?(e=Ph(),fi=dc=Dn=null,Lr=!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 Rh&&t.locale!=="ko"?null:t.data;default:return null}}var nx={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 Wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nx[e.type]:t==="textarea"}function _h(e,t,n,r){uh(r),t=Di(t,"onChange"),0<t.length&&(n=new fc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Go=null,is=null;function rx(e){Wh(e,0)}function ca(e){var t=$r(e);if(nh(t))return e}function ox(e,t){if(e==="change")return t}var Ah=!1;if(on){var nl;if(on){var rl="oninput"in document;if(!rl){var Hd=document.createElement("div");Hd.setAttribute("oninput","return;"),rl=typeof Hd.oninput=="function"}nl=rl}else nl=!1;Ah=nl&&(!document.documentMode||9<document.documentMode)}function Vd(){Go&&(Go.detachEvent("onpropertychange",Dh),is=Go=null)}function Dh(e){if(e.propertyName==="value"&&ca(is)){var t=[];_h(t,is,e,ic(e)),ph(rx,t)}}function sx(e,t,n){e==="focusin"?(Vd(),Go=t,is=n,Go.attachEvent("onpropertychange",Dh)):e==="focusout"&&Vd()}function ix(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ca(is)}function ax(e,t){if(e==="click")return ca(t)}function lx(e,t){if(e==="input"||e==="change")return ca(t)}function ux(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:ux;function as(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Il.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,t){var n=Qd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=Qd(n)}}function Mh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lh(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function mc(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 cx(e){var t=Lh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mh(n.ownerDocument.documentElement,n)){if(r!==null&&mc(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 o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Gd(n,s);var i=Gd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dx=on&&"documentMode"in document&&11>=document.documentMode,Ir=null,nu=null,Ko=null,ru=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ru||Ir==null||Ir!==Ti(r)||(r=Ir,"selectionStart"in r&&mc(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}),Ko&&as(Ko,r)||(Ko=r,r=Di(nu,"onSelect"),0<r.length&&(t=new fc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function Vs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fr={animationend:Vs("Animation","AnimationEnd"),animationiteration:Vs("Animation","AnimationIteration"),animationstart:Vs("Animation","AnimationStart"),transitionend:Vs("Transition","TransitionEnd")},ol={},Ih={};on&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),"TransitionEvent"in window||delete Fr.transitionend.transition);function da(e){if(ol[e])return ol[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ih)return ol[e]=t[n];return e}var Fh=da("animationend"),$h=da("animationiteration"),zh=da("animationstart"),Bh=da("transitionend"),Uh=new Map,Yd="abort auxClick 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(" ");function Xn(e,t){Uh.set(e,t),Cr(t,[e])}for(var sl=0;sl<Yd.length;sl++){var il=Yd[sl],fx=il.toLowerCase(),px=il[0].toUpperCase()+il.slice(1);Xn(fx,"on"+px)}Xn(Fh,"onAnimationEnd");Xn($h,"onAnimationIteration");Xn(zh,"onAnimationStart");Xn("dblclick","onDoubleClick");Xn("focusin","onFocus");Xn("focusout","onBlur");Xn(Bh,"onTransitionEnd");co("onMouseEnter",["mouseout","mouseover"]);co("onMouseLeave",["mouseout","mouseover"]);co("onPointerEnter",["pointerout","pointerover"]);co("onPointerLeave",["pointerout","pointerover"]);Cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uo="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(" "),hx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uo));function qd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,f0(r,t,void 0,e),e.currentTarget=null}function Wh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;qd(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;qd(o,a,u),s=l}}}if(Ri)throw e=Zl,Ri=!1,Zl=null,e}function se(e,t){var n=t[lu];n===void 0&&(n=t[lu]=new Set);var r=e+"__bubble";n.has(r)||(Hh(t,e,2,!1),n.add(r))}function al(e,t,n){var r=0;t&&(r|=4),Hh(n,e,r,t)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function ls(e){if(!e[Qs]){e[Qs]=!0,Xp.forEach(function(n){n!=="selectionchange"&&(hx.has(n)||al(n,!1,e),al(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qs]||(t[Qs]=!0,al("selectionchange",!1,t))}}function Hh(e,t,n,r){switch(Th(t)){case 1:var o=P0;break;case 4:o=R0;break;default:o=cc}n=o.bind(null,t,n,e),o=void 0,!Xl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ll(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=sr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}ph(function(){var u=s,d=ic(n),p=[];e:{var y=Uh.get(e);if(y!==void 0){var f=fc,b=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":f=H0;break;case"focusin":b="focus",f=tl;break;case"focusout":b="blur",f=tl;break;case"beforeblur":case"afterblur":f=tl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=_0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=G0;break;case Fh:case $h:case zh:f=M0;break;case Bh:f=Y0;break;case"scroll":f=j0;break;case"wheel":f=X0;break;case"copy":case"cut":case"paste":f=I0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=zd}var g=(t&4)!==0,x=!g&&e==="scroll",h=g?y!==null?y+"Capture":null:y;g=[];for(var m=u,w;m!==null;){w=m;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,h!==null&&(S=ns(m,h),S!=null&&g.push(us(m,S,w)))),x)break;m=m.return}0<g.length&&(y=new f(y,b,null,n,d),p.push({event:y,listeners:g}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",y&&n!==Yl&&(b=n.relatedTarget||n.fromElement)&&(sr(b)||b[sn]))break e;if((f||y)&&(y=d.window===d?d:(y=d.ownerDocument)?y.defaultView||y.parentWindow:window,f?(b=n.relatedTarget||n.toElement,f=u,b=b?sr(b):null,b!==null&&(x=Er(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(f=null,b=u),f!==b)){if(g=Fd,S="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=zd,S="onPointerLeave",h="onPointerEnter",m="pointer"),x=f==null?y:$r(f),w=b==null?y:$r(b),y=new g(S,m+"leave",f,n,d),y.target=x,y.relatedTarget=w,S=null,sr(d)===u&&(g=new g(h,m+"enter",b,n,d),g.target=w,g.relatedTarget=x,S=g),x=S,f&&b)t:{for(g=f,h=b,m=0,w=g;w;w=jr(w))m++;for(w=0,S=h;S;S=jr(S))w++;for(;0<m-w;)g=jr(g),m--;for(;0<w-m;)h=jr(h),w--;for(;m--;){if(g===h||h!==null&&g===h.alternate)break t;g=jr(g),h=jr(h)}g=null}else g=null;f!==null&&Xd(p,y,f,g,!1),b!==null&&x!==null&&Xd(p,x,b,g,!0)}}e:{if(y=u?$r(u):window,f=y.nodeName&&y.nodeName.toLowerCase(),f==="select"||f==="input"&&y.type==="file")var C=ox;else if(Wd(y))if(Ah)C=lx;else{C=ix;var N=sx}else(f=y.nodeName)&&f.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(C=ax);if(C&&(C=C(e,u))){_h(p,C,n,d);break e}N&&N(e,y,u),e==="focusout"&&(N=y._wrapperState)&&N.controlled&&y.type==="number"&&Hl(y,"number",y.value)}switch(N=u?$r(u):window,e){case"focusin":(Wd(N)||N.contentEditable==="true")&&(Ir=N,nu=u,Ko=null);break;case"focusout":Ko=nu=Ir=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,Kd(p,n,d);break;case"selectionchange":if(dx)break;case"keydown":case"keyup":Kd(p,n,d)}var E;if(hc)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Lr?jh(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Rh&&n.locale!=="ko"&&(Lr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Lr&&(E=Ph()):(Dn=d,dc="value"in Dn?Dn.value:Dn.textContent,Lr=!0)),N=Di(u,R),0<N.length&&(R=new $d(R,e,null,n,d),p.push({event:R,listeners:N}),E?R.data=E:(E=Oh(n),E!==null&&(R.data=E)))),(E=J0?ex(e,n):tx(e,n))&&(u=Di(u,"onBeforeInput"),0<u.length&&(d=new $d("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=E))}Wh(p,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Di(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=ns(e,n),s!=null&&r.unshift(us(e,s,o)),s=ns(e,t),s!=null&&r.push(us(e,s,o))),e=e.return}return r}function jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xd(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=ns(n,s),l!=null&&i.unshift(us(n,l,a))):o||(l=ns(n,s),l!=null&&i.push(us(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var mx=/\r\n?/g,gx=/\u0000|\uFFFD/g;function Zd(e){return(typeof e=="string"?e:""+e).replace(mx,`
`).replace(gx,"")}function Gs(e,t,n){if(t=Zd(t),Zd(e)!==t&&n)throw Error(_(425))}function Mi(){}var ou=null,su=null;function iu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var au=typeof setTimeout=="function"?setTimeout:void 0,vx=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,yx=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(e){return Jd.resolve(null).then(e).catch(xx)}:au;function xx(e){setTimeout(function(){throw e})}function ul(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ss(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ss(t)}function Bn(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==="$?")break;if(t==="/$")return null}}return e}function ef(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var So=Math.random().toString(36).slice(2),zt="__reactFiber$"+So,cs="__reactProps$"+So,sn="__reactContainer$"+So,lu="__reactEvents$"+So,wx="__reactListeners$"+So,bx="__reactHandles$"+So;function sr(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sn]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ef(e);e!==null;){if(n=e[zt])return n;e=ef(e)}return t}e=n,n=e.parentNode}return null}function Ts(e){return e=e[zt]||e[sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $r(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function fa(e){return e[cs]||null}var uu=[],zr=-1;function Zn(e){return{current:e}}function ie(e){0>zr||(e.current=uu[zr],uu[zr]=null,zr--)}function re(e,t){zr++,uu[zr]=e.current,e.current=t}var Kn={},Me=Zn(Kn),Ye=Zn(!1),gr=Kn;function fo(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qe(e){return e=e.childContextTypes,e!=null}function Li(){ie(Ye),ie(Me)}function tf(e,t,n){if(Me.current!==Kn)throw Error(_(168));re(Me,t),re(Ye,n)}function Vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,s0(e)||"Unknown",o));return pe({},n,r)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,gr=Me.current,re(Me,e),re(Ye,Ye.current),!0}function nf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Vh(e,t,gr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ye),ie(Me),re(Me,e)):ie(Ye),re(Ye,n)}var Jt=null,pa=!1,cl=!1;function Qh(e){Jt===null?Jt=[e]:Jt.push(e)}function Sx(e){pa=!0,Qh(e)}function Jn(){if(!cl&&Jt!==null){cl=!0;var e=0,t=te;try{var n=Jt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jt=null,pa=!1}catch(o){throw Jt!==null&&(Jt=Jt.slice(e+1)),vh(ac,Jn),o}finally{te=t,cl=!1}}return null}var Br=[],Ur=0,Fi=null,$i=0,dt=[],ft=0,vr=null,tn=1,nn="";function nr(e,t){Br[Ur++]=$i,Br[Ur++]=Fi,Fi=e,$i=t}function Gh(e,t,n){dt[ft++]=tn,dt[ft++]=nn,dt[ft++]=vr,vr=e;var r=tn;e=nn;var o=32-Pt(r)-1;r&=~(1<<o),n+=1;var s=32-Pt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,tn=1<<32-Pt(t)+o|n<<o|r,nn=s+e}else tn=1<<s|n<<o|r,nn=e}function gc(e){e.return!==null&&(nr(e,1),Gh(e,1,0))}function vc(e){for(;e===Fi;)Fi=Br[--Ur],Br[Ur]=null,$i=Br[--Ur],Br[Ur]=null;for(;e===vr;)vr=dt[--ft],dt[ft]=null,nn=dt[--ft],dt[ft]=null,tn=dt[--ft],dt[ft]=null}var ot=null,rt=null,ue=!1,Tt=null;function Kh(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function rf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,rt=Bn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=vr!==null?{id:tn,overflow:nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,rt=null,!0):!1;default:return!1}}function cu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function du(e){if(ue){var t=rt;if(t){var n=t;if(!rf(e,t)){if(cu(e))throw Error(_(418));t=Bn(n.nextSibling);var r=ot;t&&rf(e,t)?Kh(r,n):(e.flags=e.flags&-4097|2,ue=!1,ot=e)}}else{if(cu(e))throw Error(_(418));e.flags=e.flags&-4097|2,ue=!1,ot=e}}}function of(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Ks(e){if(e!==ot)return!1;if(!ue)return of(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!iu(e.type,e.memoizedProps)),t&&(t=rt)){if(cu(e))throw Yh(),Error(_(418));for(;t;)Kh(e,t),t=Bn(t.nextSibling)}if(of(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rt=Bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rt=null}}else rt=ot?Bn(e.stateNode.nextSibling):null;return!0}function Yh(){for(var e=rt;e;)e=Bn(e.nextSibling)}function po(){rt=ot=null,ue=!1}function yc(e){Tt===null?Tt=[e]:Tt.push(e)}var Cx=fn.ReactCurrentBatchConfig;function Do(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Ys(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sf(e){var t=e._init;return t(e._payload)}function qh(e){function t(h,m){if(e){var w=h.deletions;w===null?(h.deletions=[m],h.flags|=16):w.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=Vn(h,m),h.index=0,h.sibling=null,h}function s(h,m,w){return h.index=w,e?(w=h.alternate,w!==null?(w=w.index,w<m?(h.flags|=2,m):w):(h.flags|=2,m)):(h.flags|=1048576,m)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,m,w,S){return m===null||m.tag!==6?(m=vl(w,h.mode,S),m.return=h,m):(m=o(m,w),m.return=h,m)}function l(h,m,w,S){var C=w.type;return C===Mr?d(h,m,w.props.children,S,w.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&sf(C)===m.type)?(S=o(m,w.props),S.ref=Do(h,m,w),S.return=h,S):(S=wi(w.type,w.key,w.props,null,h.mode,S),S.ref=Do(h,m,w),S.return=h,S)}function u(h,m,w,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==w.containerInfo||m.stateNode.implementation!==w.implementation?(m=yl(w,h.mode,S),m.return=h,m):(m=o(m,w.children||[]),m.return=h,m)}function d(h,m,w,S,C){return m===null||m.tag!==7?(m=mr(w,h.mode,S,C),m.return=h,m):(m=o(m,w),m.return=h,m)}function p(h,m,w){if(typeof m=="string"&&m!==""||typeof m=="number")return m=vl(""+m,h.mode,w),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Fs:return w=wi(m.type,m.key,m.props,null,h.mode,w),w.ref=Do(h,null,m),w.return=h,w;case Dr:return m=yl(m,h.mode,w),m.return=h,m;case kn:var S=m._init;return p(h,S(m._payload),w)}if(zo(m)||Ro(m))return m=mr(m,h.mode,w,null),m.return=h,m;Ys(h,m)}return null}function y(h,m,w,S){var C=m!==null?m.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(h,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fs:return w.key===C?l(h,m,w,S):null;case Dr:return w.key===C?u(h,m,w,S):null;case kn:return C=w._init,y(h,m,C(w._payload),S)}if(zo(w)||Ro(w))return C!==null?null:d(h,m,w,S,null);Ys(h,w)}return null}function f(h,m,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(w)||null,a(m,h,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Fs:return h=h.get(S.key===null?w:S.key)||null,l(m,h,S,C);case Dr:return h=h.get(S.key===null?w:S.key)||null,u(m,h,S,C);case kn:var N=S._init;return f(h,m,w,N(S._payload),C)}if(zo(S)||Ro(S))return h=h.get(w)||null,d(m,h,S,C,null);Ys(m,S)}return null}function b(h,m,w,S){for(var C=null,N=null,E=m,R=m=0,D=null;E!==null&&R<w.length;R++){E.index>R?(D=E,E=null):D=E.sibling;var L=y(h,E,w[R],S);if(L===null){E===null&&(E=D);break}e&&E&&L.alternate===null&&t(h,E),m=s(L,m,R),N===null?C=L:N.sibling=L,N=L,E=D}if(R===w.length)return n(h,E),ue&&nr(h,R),C;if(E===null){for(;R<w.length;R++)E=p(h,w[R],S),E!==null&&(m=s(E,m,R),N===null?C=E:N.sibling=E,N=E);return ue&&nr(h,R),C}for(E=r(h,E);R<w.length;R++)D=f(E,h,R,w[R],S),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?R:D.key),m=s(D,m,R),N===null?C=D:N.sibling=D,N=D);return e&&E.forEach(function(W){return t(h,W)}),ue&&nr(h,R),C}function g(h,m,w,S){var C=Ro(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var N=C=null,E=m,R=m=0,D=null,L=w.next();E!==null&&!L.done;R++,L=w.next()){E.index>R?(D=E,E=null):D=E.sibling;var W=y(h,E,L.value,S);if(W===null){E===null&&(E=D);break}e&&E&&W.alternate===null&&t(h,E),m=s(W,m,R),N===null?C=W:N.sibling=W,N=W,E=D}if(L.done)return n(h,E),ue&&nr(h,R),C;if(E===null){for(;!L.done;R++,L=w.next())L=p(h,L.value,S),L!==null&&(m=s(L,m,R),N===null?C=L:N.sibling=L,N=L);return ue&&nr(h,R),C}for(E=r(h,E);!L.done;R++,L=w.next())L=f(E,h,R,L.value,S),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?R:L.key),m=s(L,m,R),N===null?C=L:N.sibling=L,N=L);return e&&E.forEach(function($){return t(h,$)}),ue&&nr(h,R),C}function x(h,m,w,S){if(typeof w=="object"&&w!==null&&w.type===Mr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Fs:e:{for(var C=w.key,N=m;N!==null;){if(N.key===C){if(C=w.type,C===Mr){if(N.tag===7){n(h,N.sibling),m=o(N,w.props.children),m.return=h,h=m;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&sf(C)===N.type){n(h,N.sibling),m=o(N,w.props),m.ref=Do(h,N,w),m.return=h,h=m;break e}n(h,N);break}else t(h,N);N=N.sibling}w.type===Mr?(m=mr(w.props.children,h.mode,S,w.key),m.return=h,h=m):(S=wi(w.type,w.key,w.props,null,h.mode,S),S.ref=Do(h,m,w),S.return=h,h=S)}return i(h);case Dr:e:{for(N=w.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===w.containerInfo&&m.stateNode.implementation===w.implementation){n(h,m.sibling),m=o(m,w.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=yl(w,h.mode,S),m.return=h,h=m}return i(h);case kn:return N=w._init,x(h,m,N(w._payload),S)}if(zo(w))return b(h,m,w,S);if(Ro(w))return g(h,m,w,S);Ys(h,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,w),m.return=h,h=m):(n(h,m),m=vl(w,h.mode,S),m.return=h,h=m),i(h)):n(h,m)}return x}var ho=qh(!0),Xh=qh(!1),zi=Zn(null),Bi=null,Wr=null,xc=null;function wc(){xc=Wr=Bi=null}function bc(e){var t=zi.current;ie(zi),e._currentValue=t}function fu(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 qr(e,t){Bi=e,xc=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(xc!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Bi===null)throw Error(_(308));Wr=e,Bi.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var ir=null;function Sc(e){ir===null?ir=[e]:ir.push(e)}function Zh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Sc(t)):(n.next=o.next,o.next=n),t.interleaved=n,an(e,r)}function an(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 Nn=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jh(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,an(e,n)}return o=r.interleaved,o===null?(t.next=t,Sc(r)):(t.next=o.next,o.next=t),r.interleaved=t,an(e,n)}function hi(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,lc(e,n)}}function af(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 Ui(e,t,n,r){var o=e.updateQueue;Nn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var p=o.baseState;i=0,d=u=l=null,a=s;do{var y=a.lane,f=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(y=t,f=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){p=b.call(f,p,y);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,y=typeof b=="function"?b.call(f,p,y):b,y==null)break e;p=pe({},p,y);break e;case 2:Nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else f={eventTime:f,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=p):d=d.next=f,i|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);xr|=i,e.lanes=i,e.memoizedState=p}}function lf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var Ps={},Ht=Zn(Ps),ds=Zn(Ps),fs=Zn(Ps);function ar(e){if(e===Ps)throw Error(_(174));return e}function Ec(e,t){switch(re(fs,t),re(ds,e),re(Ht,Ps),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ql(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ql(t,e)}ie(Ht),re(Ht,t)}function mo(){ie(Ht),ie(ds),ie(fs)}function em(e){ar(fs.current);var t=ar(Ht.current),n=Ql(t,e.type);t!==n&&(re(ds,e),re(Ht,n))}function kc(e){ds.current===e&&(ie(Ht),ie(ds))}var de=Zn(0);function Wi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 dl=[];function Nc(){for(var e=0;e<dl.length;e++)dl[e]._workInProgressVersionPrimary=null;dl.length=0}var mi=fn.ReactCurrentDispatcher,fl=fn.ReactCurrentBatchConfig,yr=0,fe=null,be=null,Ee=null,Hi=!1,Yo=!1,ps=0,Ex=0;function Oe(){throw Error(_(321))}function Tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Pc(e,t,n,r,o,s){if(yr=s,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,mi.current=e===null||e.memoizedState===null?Px:Rx,e=n(r,o),Yo){s=0;do{if(Yo=!1,ps=0,25<=s)throw Error(_(301));s+=1,Ee=be=null,t.updateQueue=null,mi.current=jx,e=n(r,o)}while(Yo)}if(mi.current=Vi,t=be!==null&&be.next!==null,yr=0,Ee=be=fe=null,Hi=!1,t)throw Error(_(300));return e}function Rc(){var e=ps!==0;return ps=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?fe.memoizedState=Ee=e:Ee=Ee.next=e,Ee}function gt(){if(be===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Ee===null?fe.memoizedState:Ee.next;if(t!==null)Ee=t,be=e;else{if(e===null)throw Error(_(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Ee===null?fe.memoizedState=Ee=e:Ee=Ee.next=e}return Ee}function hs(e,t){return typeof t=="function"?t(e):t}function pl(e){var t=gt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=be,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var d=u.lane;if((yr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,i=r):l=l.next=p,fe.lanes|=d,xr|=d}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,jt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,fe.lanes|=s,xr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hl(e){var t=gt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);jt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function tm(){}function nm(e,t){var n=fe,r=gt(),o=t(),s=!jt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ke=!0),r=r.queue,jc(sm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ee!==null&&Ee.memoizedState.tag&1){if(n.flags|=2048,ms(9,om.bind(null,n,r,o,t),void 0,null),ke===null)throw Error(_(349));yr&30||rm(n,t,o)}return o}function rm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function om(e,t,n,r){t.value=n,t.getSnapshot=r,im(t)&&am(e)}function sm(e,t,n){return n(function(){im(t)&&am(e)})}function im(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function am(e){var t=an(e,1);t!==null&&Rt(t,e,1,-1)}function uf(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=Tx.bind(null,fe,e),[t.memoizedState,e]}function ms(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lm(){return gt().memoizedState}function gi(e,t,n,r){var o=Lt();fe.flags|=e,o.memoizedState=ms(1|t,n,void 0,r===void 0?null:r)}function ha(e,t,n,r){var o=gt();r=r===void 0?null:r;var s=void 0;if(be!==null){var i=be.memoizedState;if(s=i.destroy,r!==null&&Tc(r,i.deps)){o.memoizedState=ms(t,n,s,r);return}}fe.flags|=e,o.memoizedState=ms(1|t,n,s,r)}function cf(e,t){return gi(8390656,8,e,t)}function jc(e,t){return ha(2048,8,e,t)}function um(e,t){return ha(4,2,e,t)}function cm(e,t){return ha(4,4,e,t)}function dm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fm(e,t,n){return n=n!=null?n.concat([e]):null,ha(4,4,dm.bind(null,t,e),n)}function Oc(){}function pm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Tc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Tc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mm(e,t,n){return yr&21?(jt(n,t)||(n=wh(),fe.lanes|=n,xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function kx(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=fl.transition;fl.transition={};try{e(!1),t()}finally{te=n,fl.transition=r}}function gm(){return gt().memoizedState}function Nx(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vm(e))ym(t,n);else if(n=Zh(e,t,n,r),n!==null){var o=ze();Rt(n,e,r,o),xm(n,t,r)}}function Tx(e,t,n){var r=Hn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vm(e))ym(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,jt(a,i)){var l=t.interleaved;l===null?(o.next=o,Sc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Zh(e,t,o,r),n!==null&&(o=ze(),Rt(n,e,r,o),xm(n,t,r))}}function vm(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function ym(e,t){Yo=Hi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lc(e,n)}}var Vi={readContext:mt,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},Px={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();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=Nx.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:uf,useDebugValue:Oc,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=uf(!1),t=e[0];return e=kx.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=Lt();if(ue){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ke===null)throw Error(_(349));yr&30||rm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,cf(sm.bind(null,r,s,e),[e]),r.flags|=2048,ms(9,om.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Lt(),t=ke.identifierPrefix;if(ue){var n=nn,r=tn;n=(r&~(1<<32-Pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ex++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rx={readContext:mt,useCallback:pm,useContext:mt,useEffect:jc,useImperativeHandle:fm,useInsertionEffect:um,useLayoutEffect:cm,useMemo:hm,useReducer:pl,useRef:lm,useState:function(){return pl(hs)},useDebugValue:Oc,useDeferredValue:function(e){var t=gt();return mm(t,be.memoizedState,e)},useTransition:function(){var e=pl(hs)[0],t=gt().memoizedState;return[e,t]},useMutableSource:tm,useSyncExternalStore:nm,useId:gm,unstable_isNewReconciler:!1},jx={readContext:mt,useCallback:pm,useContext:mt,useEffect:jc,useImperativeHandle:fm,useInsertionEffect:um,useLayoutEffect:cm,useMemo:hm,useReducer:hl,useRef:lm,useState:function(){return hl(hs)},useDebugValue:Oc,useDeferredValue:function(e){var t=gt();return be===null?t.memoizedState=e:mm(t,be.memoizedState,e)},useTransition:function(){var e=hl(hs)[0],t=gt().memoizedState;return[e,t]},useMutableSource:tm,useSyncExternalStore:nm,useId:gm,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function pu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return(e=e._reactInternals)?Er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ze(),o=Hn(e),s=rn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,o),t!==null&&(Rt(t,e,o,r),hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ze(),o=Hn(e),s=rn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,o),t!==null&&(Rt(t,e,o,r),hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ze(),r=Hn(e),o=rn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Un(e,o,r),t!==null&&(Rt(t,e,r,n),hi(t,e,r))}};function df(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!as(n,r)||!as(o,s):!0}function wm(e,t,n){var r=!1,o=Kn,s=t.contextType;return typeof s=="object"&&s!==null?s=mt(s):(o=qe(t)?gr:Me.current,r=t.contextTypes,s=(r=r!=null)?fo(e,o):Kn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function ff(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function hu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Cc(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=mt(s):(s=qe(t)?gr:Me.current,o.context=fo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(pu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ma.enqueueReplaceState(o,o.state,null),Ui(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function go(e,t){try{var n="",r=t;do n+=o0(r),r=r.return;while(r);var o=n}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function ml(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function mu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ox=typeof WeakMap=="function"?WeakMap:Map;function bm(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gi||(Gi=!0,ku=r),mu(e,t)},n}function Sm(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){mu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){mu(e,t),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ox;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Vx.bind(null,e,t,n),t.then(e,e))}function hf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e)}var _x=fn.ReactCurrentOwner,Ke=!1;function Fe(e,t,n,r){t.child=e===null?Xh(t,null,n,r):ho(t,e.child,n,r)}function gf(e,t,n,r,o){n=n.render;var s=t.ref;return qr(t,o),r=Pc(e,t,n,r,s,o),n=Rc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ln(e,t,o)):(ue&&n&&gc(t),t.flags|=1,Fe(e,t,r,o),t.child)}function vf(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!$c(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Cm(e,t,s,r,o)):(e=wi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:as,n(i,r)&&e.ref===t.ref)return ln(e,t,o)}return t.flags|=1,e=Vn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Cm(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(as(s,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,ln(e,t,o)}return gu(e,t,n,r,o)}function Em(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Vr,tt),tt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(Vr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,re(Vr,tt),tt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,re(Vr,tt),tt|=r;return Fe(e,t,o,n),t.child}function km(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gu(e,t,n,r,o){var s=qe(n)?gr:Me.current;return s=fo(t,s),qr(t,o),n=Pc(e,t,n,r,s,o),r=Rc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ln(e,t,o)):(ue&&r&&gc(t),t.flags|=1,Fe(e,t,n,o),t.child)}function yf(e,t,n,r,o){if(qe(n)){var s=!0;Ii(t)}else s=!1;if(qr(t,o),t.stateNode===null)vi(e,t),wm(t,n,r),hu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=qe(n)?gr:Me.current,u=fo(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ff(t,i,r,u),Nn=!1;var y=t.memoizedState;i.state=y,Ui(t,r,i,o),l=t.memoizedState,a!==r||y!==l||Ye.current||Nn?(typeof d=="function"&&(pu(t,n,d,r),l=t.memoizedState),(a=Nn||df(t,n,a,r,y,l,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Jh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),i.props=u,p=t.pendingProps,y=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=qe(n)?gr:Me.current,l=fo(t,l));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==p||y!==l)&&ff(t,i,r,l),Nn=!1,y=t.memoizedState,i.state=y,Ui(t,r,i,o);var b=t.memoizedState;a!==p||y!==b||Ye.current||Nn?(typeof f=="function"&&(pu(t,n,f,r),b=t.memoizedState),(u=Nn||df(t,n,u,r,y,b,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return vu(e,t,n,r,s,o)}function vu(e,t,n,r,o,s){km(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&nf(t,n,!1),ln(e,t,s);r=t.stateNode,_x.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ho(t,e.child,null,s),t.child=ho(t,null,a,s)):Fe(e,t,a,s),t.memoizedState=r.state,o&&nf(t,n,!0),t.child}function Nm(e){var t=e.stateNode;t.pendingContext?tf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tf(e,t.context,!1),Ec(e,t.containerInfo)}function xf(e,t,n,r,o){return po(),yc(o),t.flags|=256,Fe(e,t,n,r),t.child}var yu={dehydrated:null,treeContext:null,retryLane:0};function xu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tm(e,t,n){var r=t.pendingProps,o=de.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),re(de,o&1),e===null)return du(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ya(i,r,0,null),e=mr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=xu(n),t.memoizedState=yu,e):_c(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Ax(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Vn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Vn(a,s):(s=mr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?xu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=yu,r}return s=e.child,e=s.sibling,r=Vn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _c(e,t){return t=ya({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qs(e,t,n,r){return r!==null&&yc(r),ho(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ax(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=ml(Error(_(422))),qs(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ya({mode:"visible",children:r.children},o,0,null),s=mr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ho(t,e.child,null,i),t.child.memoizedState=xu(i),t.memoizedState=yu,s);if(!(t.mode&1))return qs(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=ml(s,r,void 0),qs(e,t,i,r)}if(a=(i&e.childLanes)!==0,Ke||a){if(r=ke,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,an(e,o),Rt(r,e,o,-1))}return Fc(),r=ml(Error(_(421))),qs(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Qx.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,rt=Bn(o.nextSibling),ot=t,ue=!0,Tt=null,e!==null&&(dt[ft++]=tn,dt[ft++]=nn,dt[ft++]=vr,tn=e.id,nn=e.overflow,vr=t),t=_c(t,r.children),t.flags|=4096,t)}function wf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fu(e.return,t,n)}function gl(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Pm(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Fe(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wf(e,n,t);else if(e.tag===19)wf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(de,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Wi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),gl(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Wi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}gl(t,!0,n,null,s);break;case"together":gl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dx(e,t,n){switch(t.tag){case 3:Nm(t),po();break;case 5:em(t);break;case 1:qe(t.type)&&Ii(t);break;case 4:Ec(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;re(zi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Tm(e,t,n):(re(de,de.current&1),e=ln(e,t,n),e!==null?e.sibling:null);re(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Em(e,t,n)}return ln(e,t,n)}var Rm,wu,jm,Om;Rm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};wu=function(){};jm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ar(Ht.current);var s=null;switch(n){case"input":o=Ul(e,o),r=Ul(e,r),s=[];break;case"select":o=pe({},o,{value:void 0}),r=pe({},r,{value:void 0}),s=[];break;case"textarea":o=Vl(e,o),r=Vl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mi)}Gl(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(es.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(es.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&se("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Om=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mo(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mx(e,t,n){var r=t.pendingProps;switch(vc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return qe(t.type)&&Li(),_e(t),null;case 3:return r=t.stateNode,mo(),ie(Ye),ie(Me),Nc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ks(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tt!==null&&(Pu(Tt),Tt=null))),wu(e,t),_e(t),null;case 5:kc(t);var o=ar(fs.current);if(n=t.type,e!==null&&t.stateNode!=null)jm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return _e(t),null}if(e=ar(Ht.current),Ks(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[zt]=t,r[cs]=s,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<Uo.length;o++)se(Uo[o],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":Pd(r,s),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},se("invalid",r);break;case"textarea":jd(r,s),se("invalid",r)}Gl(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Gs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Gs(r.textContent,a,e),o=["children",""+a]):es.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&se("scroll",r)}switch(n){case"input":$s(r),Rd(r,s,!0);break;case"textarea":$s(r),Od(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Mi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[zt]=t,e[cs]=r,Rm(e,t,!1,!1),t.stateNode=e;e:{switch(i=Kl(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;o<Uo.length;o++)se(Uo[o],e);o=r;break;case"source":se("error",e),o=r;break;case"img":case"image":case"link":se("error",e),se("load",e),o=r;break;case"details":se("toggle",e),o=r;break;case"input":Pd(e,r),o=Ul(e,r),se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=pe({},r,{value:void 0}),se("invalid",e);break;case"textarea":jd(e,r),o=Vl(e,r),se("invalid",e);break;default:o=r}Gl(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?lh(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ih(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ts(e,l):typeof l=="number"&&ts(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(es.hasOwnProperty(s)?l!=null&&s==="onScroll"&&se("scroll",e):l!=null&&nc(e,s,l,i))}switch(n){case"input":$s(e),Rd(e,r,!1);break;case"textarea":$s(e),Od(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Qr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Qr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Mi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _e(t),null;case 6:if(e&&t.stateNode!=null)Om(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=ar(fs.current),ar(Ht.current),Ks(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(s=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Gs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return _e(t),null;case 13:if(ie(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&rt!==null&&t.mode&1&&!(t.flags&128))Yh(),po(),t.flags|=98560,s=!1;else if(s=Ks(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[zt]=t}else po(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),s=!1}else Tt!==null&&(Pu(Tt),Tt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Se===0&&(Se=3):Fc())),t.updateQueue!==null&&(t.flags|=4),_e(t),null);case 4:return mo(),wu(e,t),e===null&&ls(t.stateNode.containerInfo),_e(t),null;case 10:return bc(t.type._context),_e(t),null;case 17:return qe(t.type)&&Li(),_e(t),null;case 19:if(ie(de),s=t.memoizedState,s===null)return _e(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Mo(s,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Wi(e),i!==null){for(t.flags|=128,Mo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(de,de.current&1|2),t.child}e=e.sibling}s.tail!==null&&ve()>vo&&(t.flags|=128,r=!0,Mo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Wi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ue)return _e(t),null}else 2*ve()-s.renderingStartTime>vo&&n!==1073741824&&(t.flags|=128,r=!0,Mo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ve(),t.sibling=null,n=de.current,re(de,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return Ic(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Lx(e,t){switch(vc(t),t.tag){case 1:return qe(t.type)&&Li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),ie(Ye),ie(Me),Nc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kc(t),null;case 13:if(ie(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));po()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(de),null;case 4:return mo(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Ic(),null;case 24:return null;default:return null}}var Xs=!1,De=!1,Ix=typeof WeakSet=="function"?WeakSet:Set,B=null;function Hr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function bu(e,t,n){try{n()}catch(r){ge(e,t,r)}}var bf=!1;function Fx(e,t){if(ou=_i,e=Lh(),mc(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 o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,p=e,y=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(a=i+o),p!==s||r!==0&&p.nodeType!==3||(l=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)y=p,p=f;for(;;){if(p===e)break t;if(y===n&&++u===o&&(a=i),y===s&&++d===r&&(l=i),(f=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(su={focusedElem:e,selectionRange:n},_i=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,x=b.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:St(t.type,g),x);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return b=bf,bf=!1,b}function qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&bu(t,n,s)}o=o.next}while(o!==r)}}function ga(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 Su(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 _m(e){var t=e.alternate;t!==null&&(e.alternate=null,_m(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[cs],delete t[lu],delete t[wx],delete t[bx])),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 Am(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Am(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 Cu(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=Mi));else if(r!==4&&(e=e.child,e!==null))for(Cu(e,t,n),e=e.sibling;e!==null;)Cu(e,t,n),e=e.sibling}function Eu(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(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var Te=null,Nt=!1;function yn(e,t,n){for(n=n.child;n!==null;)Dm(e,t,n),n=n.sibling}function Dm(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 5:De||Hr(n,t);case 6:var r=Te,o=Nt;Te=null,yn(e,t,n),Te=r,Nt=o,Te!==null&&(Nt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(Nt?(e=Te,n=n.stateNode,e.nodeType===8?ul(e.parentNode,n):e.nodeType===1&&ul(e,n),ss(e)):ul(Te,n.stateNode));break;case 4:r=Te,o=Nt,Te=n.stateNode.containerInfo,Nt=!0,yn(e,t,n),Te=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&bu(n,t,i),o=o.next}while(o!==r)}yn(e,t,n);break;case 1:if(!De&&(Hr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,yn(e,t,n),De=r):yn(e,t,n);break;default:yn(e,t,n)}}function Cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ix),t.forEach(function(r){var o=Gx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Te=a.stateNode,Nt=!1;break e;case 3:Te=a.stateNode.containerInfo,Nt=!0;break e;case 4:Te=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(Te===null)throw Error(_(160));Dm(s,i,o),Te=null,Nt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ge(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mm(t,e),t=t.sibling}function Mm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Mt(e),r&4){try{qo(3,e,e.return),ga(3,e)}catch(g){ge(e,e.return,g)}try{qo(5,e,e.return)}catch(g){ge(e,e.return,g)}}break;case 1:wt(t,e),Mt(e),r&512&&n!==null&&Hr(n,n.return);break;case 5:if(wt(t,e),Mt(e),r&512&&n!==null&&Hr(n,n.return),e.flags&32){var o=e.stateNode;try{ts(o,"")}catch(g){ge(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&rh(o,s),Kl(a,i);var u=Kl(a,s);for(i=0;i<l.length;i+=2){var d=l[i],p=l[i+1];d==="style"?lh(o,p):d==="dangerouslySetInnerHTML"?ih(o,p):d==="children"?ts(o,p):nc(o,d,p,u)}switch(a){case"input":Wl(o,s);break;case"textarea":oh(o,s);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?Qr(o,!!s.multiple,f,!1):y!==!!s.multiple&&(s.defaultValue!=null?Qr(o,!!s.multiple,s.defaultValue,!0):Qr(o,!!s.multiple,s.multiple?[]:"",!1))}o[cs]=s}catch(g){ge(e,e.return,g)}}break;case 6:if(wt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){ge(e,e.return,g)}}break;case 3:if(wt(t,e),Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ss(t.containerInfo)}catch(g){ge(e,e.return,g)}break;case 4:wt(t,e),Mt(e);break;case 13:wt(t,e),Mt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Mc=ve())),r&4&&Cf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(De=(u=De)||d,wt(t,e),De=u):wt(t,e),Mt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(p=B=d;B!==null;){switch(y=B,f=y.child,y.tag){case 0:case 11:case 14:case 15:qo(4,y,y.return);break;case 1:Hr(y,y.return);var b=y.stateNode;if(typeof b.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){ge(r,n,g)}}break;case 5:Hr(y,y.return);break;case 22:if(y.memoizedState!==null){kf(p);continue}}f!==null?(f.return=y,B=f):kf(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{o=p.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=p.stateNode,l=p.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=ah("display",i))}catch(g){ge(e,e.return,g)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){ge(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:wt(t,e),Mt(e),r&4&&Cf(e);break;case 21:break;default:wt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Am(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ts(o,""),r.flags&=-33);var s=Sf(e);Eu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Sf(e);Cu(e,a,i);break;default:throw Error(_(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $x(e,t,n){B=e,Lm(e)}function Lm(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Xs;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||De;a=Xs;var u=De;if(Xs=i,(De=l)&&!u)for(B=o;B!==null;)i=B,l=i.child,i.tag===22&&i.memoizedState!==null?Nf(o):l!==null?(l.return=i,B=l):Nf(o);for(;s!==null;)B=s,Lm(s),s=s.sibling;B=o,Xs=a,De=u}Ef(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):Ef(e)}}function Ef(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||ga(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!De)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&lf(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lf(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&ss(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}De||t.flags&512&&Su(t)}catch(y){ge(t,t.return,y)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function kf(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Nf(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ga(4,t)}catch(l){ge(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ge(t,o,l)}}var s=t.return;try{Su(t)}catch(l){ge(t,s,l)}break;case 5:var i=t.return;try{Su(t)}catch(l){ge(t,i,l)}}}catch(l){ge(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var zx=Math.ceil,Qi=fn.ReactCurrentDispatcher,Ac=fn.ReactCurrentOwner,ht=fn.ReactCurrentBatchConfig,Z=0,ke=null,ye=null,Pe=0,tt=0,Vr=Zn(0),Se=0,gs=null,xr=0,va=0,Dc=0,Xo=null,Ge=null,Mc=0,vo=1/0,Zt=null,Gi=!1,ku=null,Wn=null,Zs=!1,Mn=null,Ki=0,Zo=0,Nu=null,yi=-1,xi=0;function ze(){return Z&6?ve():yi!==-1?yi:yi=ve()}function Hn(e){return e.mode&1?Z&2&&Pe!==0?Pe&-Pe:Cx.transition!==null?(xi===0&&(xi=wh()),xi):(e=te,e!==0||(e=window.event,e=e===void 0?16:Th(e.type)),e):1}function Rt(e,t,n,r){if(50<Zo)throw Zo=0,Nu=null,Error(_(185));ks(e,n,r),(!(Z&2)||e!==ke)&&(e===ke&&(!(Z&2)&&(va|=n),Se===4&&Pn(e,Pe)),Xe(e,r),n===1&&Z===0&&!(t.mode&1)&&(vo=ve()+500,pa&&Jn()))}function Xe(e,t){var n=e.callbackNode;C0(e,t);var r=Oi(e,e===ke?Pe:0);if(r===0)n!==null&&Dd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Dd(n),t===1)e.tag===0?Sx(Tf.bind(null,e)):Qh(Tf.bind(null,e)),yx(function(){!(Z&6)&&Jn()}),n=null;else{switch(bh(r)){case 1:n=ac;break;case 4:n=yh;break;case 16:n=ji;break;case 536870912:n=xh;break;default:n=ji}n=Hm(n,Im.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Im(e,t){if(yi=-1,xi=0,Z&6)throw Error(_(327));var n=e.callbackNode;if(Xr()&&e.callbackNode!==n)return null;var r=Oi(e,e===ke?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Yi(e,r);else{t=r;var o=Z;Z|=2;var s=$m();(ke!==e||Pe!==t)&&(Zt=null,vo=ve()+500,hr(e,t));do try{Wx();break}catch(a){Fm(e,a)}while(!0);wc(),Qi.current=s,Z=o,ye!==null?t=0:(ke=null,Pe=0,t=Se)}if(t!==0){if(t===2&&(o=Jl(e),o!==0&&(r=o,t=Tu(e,o))),t===1)throw n=gs,hr(e,0),Pn(e,r),Xe(e,ve()),n;if(t===6)Pn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Bx(o)&&(t=Yi(e,r),t===2&&(s=Jl(e),s!==0&&(r=s,t=Tu(e,s))),t===1))throw n=gs,hr(e,0),Pn(e,r),Xe(e,ve()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:rr(e,Ge,Zt);break;case 3:if(Pn(e,r),(r&130023424)===r&&(t=Mc+500-ve(),10<t)){if(Oi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ze(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=au(rr.bind(null,e,Ge,Zt),t);break}rr(e,Ge,Zt);break;case 4:if(Pn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Pt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zx(r/1960))-r,10<r){e.timeoutHandle=au(rr.bind(null,e,Ge,Zt),r);break}rr(e,Ge,Zt);break;case 5:rr(e,Ge,Zt);break;default:throw Error(_(329))}}}return Xe(e,ve()),e.callbackNode===n?Im.bind(null,e):null}function Tu(e,t){var n=Xo;return e.current.memoizedState.isDehydrated&&(hr(e,t).flags|=256),e=Yi(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&Pu(t)),e}function Pu(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function Bx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!jt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t){for(t&=~Dc,t&=~va,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pt(t),r=1<<n;e[n]=-1,t&=~r}}function Tf(e){if(Z&6)throw Error(_(327));Xr();var t=Oi(e,0);if(!(t&1))return Xe(e,ve()),null;var n=Yi(e,t);if(e.tag!==0&&n===2){var r=Jl(e);r!==0&&(t=r,n=Tu(e,r))}if(n===1)throw n=gs,hr(e,0),Pn(e,t),Xe(e,ve()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rr(e,Ge,Zt),Xe(e,ve()),null}function Lc(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&(vo=ve()+500,pa&&Jn())}}function wr(e){Mn!==null&&Mn.tag===0&&!(Z&6)&&Xr();var t=Z;Z|=1;var n=ht.transition,r=te;try{if(ht.transition=null,te=1,e)return e()}finally{te=r,ht.transition=n,Z=t,!(Z&6)&&Jn()}}function Ic(){tt=Vr.current,ie(Vr)}function hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vx(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(vc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Li();break;case 3:mo(),ie(Ye),ie(Me),Nc();break;case 5:kc(r);break;case 4:mo();break;case 13:ie(de);break;case 19:ie(de);break;case 10:bc(r.type._context);break;case 22:case 23:Ic()}n=n.return}if(ke=e,ye=e=Vn(e.current,null),Pe=tt=t,Se=0,gs=null,Dc=va=xr=0,Ge=Xo=null,ir!==null){for(t=0;t<ir.length;t++)if(n=ir[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ir=null}return e}function Fm(e,t){do{var n=ye;try{if(wc(),mi.current=Vi,Hi){for(var r=fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Hi=!1}if(yr=0,Ee=be=fe=null,Yo=!1,ps=0,Ac.current=null,n===null||n.return===null){Se=1,gs=t,ye=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Pe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var y=d.alternate;y?(d.updateQueue=y.updateQueue,d.memoizedState=y.memoizedState,d.lanes=y.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=hf(i);if(f!==null){f.flags&=-257,mf(f,i,a,s,t),f.mode&1&&pf(s,u,t),t=f,l=u;var b=t.updateQueue;if(b===null){var g=new Set;g.add(l),t.updateQueue=g}else b.add(l);break e}else{if(!(t&1)){pf(s,u,t),Fc();break e}l=Error(_(426))}}else if(ue&&a.mode&1){var x=hf(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),mf(x,i,a,s,t),yc(go(l,a));break e}}s=l=go(l,a),Se!==4&&(Se=2),Xo===null?Xo=[s]:Xo.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=bm(s,l,t);af(s,h);break e;case 1:a=l;var m=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Wn===null||!Wn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Sm(s,a,t);af(s,S);break e}}s=s.return}while(s!==null)}Bm(n)}catch(C){t=C,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(!0)}function $m(){var e=Qi.current;return Qi.current=Vi,e===null?Vi:e}function Fc(){(Se===0||Se===3||Se===2)&&(Se=4),ke===null||!(xr&268435455)&&!(va&268435455)||Pn(ke,Pe)}function Yi(e,t){var n=Z;Z|=2;var r=$m();(ke!==e||Pe!==t)&&(Zt=null,hr(e,t));do try{Ux();break}catch(o){Fm(e,o)}while(!0);if(wc(),Z=n,Qi.current=r,ye!==null)throw Error(_(261));return ke=null,Pe=0,Se}function Ux(){for(;ye!==null;)zm(ye)}function Wx(){for(;ye!==null&&!h0();)zm(ye)}function zm(e){var t=Wm(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?Bm(e):ye=t,Ac.current=null}function Bm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Lx(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Se=6,ye=null;return}}else if(n=Mx(n,t,tt),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Se===0&&(Se=5)}function rr(e,t,n){var r=te,o=ht.transition;try{ht.transition=null,te=1,Hx(e,t,n,r)}finally{ht.transition=o,te=r}return null}function Hx(e,t,n,r){do Xr();while(Mn!==null);if(Z&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(E0(e,s),e===ke&&(ye=ke=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zs||(Zs=!0,Hm(ji,function(){return Xr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ht.transition,ht.transition=null;var i=te;te=1;var a=Z;Z|=4,Ac.current=null,Fx(e,n),Mm(n,e),cx(su),_i=!!ou,su=ou=null,e.current=n,$x(n),m0(),Z=a,te=i,ht.transition=s}else e.current=n;if(Zs&&(Zs=!1,Mn=e,Ki=o),s=e.pendingLanes,s===0&&(Wn=null),y0(n.stateNode),Xe(e,ve()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gi)throw Gi=!1,e=ku,ku=null,e;return Ki&1&&e.tag!==0&&Xr(),s=e.pendingLanes,s&1?e===Nu?Zo++:(Zo=0,Nu=e):Zo=0,Jn(),null}function Xr(){if(Mn!==null){var e=bh(Ki),t=ht.transition,n=te;try{if(ht.transition=null,te=16>e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,Ki=0,Z&6)throw Error(_(331));var o=Z;for(Z|=4,B=e.current;B!==null;){var s=B,i=s.child;if(B.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:qo(8,d,s)}var p=d.child;if(p!==null)p.return=d,B=p;else for(;B!==null;){d=B;var y=d.sibling,f=d.return;if(_m(d),d===u){B=null;break}if(y!==null){y.return=f,B=y;break}B=f}}}var b=s.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}B=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,B=i;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:qo(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,B=h;break e}B=s.return}}var m=e.current;for(B=m;B!==null;){i=B;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,B=w;else e:for(i=m;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ga(9,a)}}catch(C){ge(a,a.return,C)}if(a===i){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(Z=o,Jn(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(la,e)}catch{}r=!0}return r}finally{te=n,ht.transition=t}}return!1}function Pf(e,t,n){t=go(n,t),t=bm(e,t,1),e=Un(e,t,1),t=ze(),e!==null&&(ks(e,1,t),Xe(e,t))}function ge(e,t,n){if(e.tag===3)Pf(e,e,n);else for(;t!==null;){if(t.tag===3){Pf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){e=go(n,e),e=Sm(t,e,1),t=Un(t,e,1),e=ze(),t!==null&&(ks(t,1,e),Xe(t,e));break}}t=t.return}}function Vx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ze(),e.pingedLanes|=e.suspendedLanes&n,ke===e&&(Pe&n)===n&&(Se===4||Se===3&&(Pe&130023424)===Pe&&500>ve()-Mc?hr(e,0):Dc|=n),Xe(e,t)}function Um(e,t){t===0&&(e.mode&1?(t=Us,Us<<=1,!(Us&130023424)&&(Us=4194304)):t=1);var n=ze();e=an(e,t),e!==null&&(ks(e,t,n),Xe(e,n))}function Qx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Um(e,n)}function Gx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Um(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,Dx(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ue&&t.flags&1048576&&Gh(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vi(e,t),e=t.pendingProps;var o=fo(t,Me.current);qr(t,n),o=Pc(null,t,r,e,o,n);var s=Rc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(r)?(s=!0,Ii(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cc(t),o.updater=ma,t.stateNode=o,o._reactInternals=t,hu(t,r,e,n),t=vu(null,t,r,!0,s,n)):(t.tag=0,ue&&s&&gc(t),Fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Yx(r),e=St(r,e),o){case 0:t=gu(null,t,r,e,n);break e;case 1:t=yf(null,t,r,e,n);break e;case 11:t=gf(null,t,r,e,n);break e;case 14:t=vf(null,t,r,St(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),gu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),yf(e,t,r,o,n);case 3:e:{if(Nm(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Jh(e,t),Ui(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=go(Error(_(423)),t),t=xf(e,t,r,n,o);break e}else if(r!==o){o=go(Error(_(424)),t),t=xf(e,t,r,n,o);break e}else for(rt=Bn(t.stateNode.containerInfo.firstChild),ot=t,ue=!0,Tt=null,n=Xh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(po(),r===o){t=ln(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return em(t),e===null&&du(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,iu(r,o)?i=null:s!==null&&iu(r,s)&&(t.flags|=32),km(e,t),Fe(e,t,i,n),t.child;case 6:return e===null&&du(t),null;case 13:return Tm(e,t,n);case 4:return Ec(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ho(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),gf(e,t,r,o,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,re(zi,r._currentValue),r._currentValue=i,s!==null)if(jt(s.value,i)){if(s.children===o.children&&!Ye.current){t=ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=rn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(_(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),fu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,qr(t,n),o=mt(o),r=r(o),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,o=St(r,t.pendingProps),o=St(r.type,o),vf(e,t,r,o,n);case 15:return Cm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),vi(e,t),t.tag=1,qe(r)?(e=!0,Ii(t)):e=!1,qr(t,n),wm(t,r,o),hu(t,r,o,n),vu(null,t,r,!0,e,n);case 19:return Pm(e,t,n);case 22:return Em(e,t,n)}throw Error(_(156,t.tag))};function Hm(e,t){return vh(e,t)}function Kx(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 pt(e,t,n,r){return new Kx(e,t,n,r)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yx(e){if(typeof e=="function")return $c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oc)return 11;if(e===sc)return 14}return 2}function Vn(e,t){var n=e.alternate;return n===null?(n=pt(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 wi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")$c(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Mr:return mr(n.children,o,s,t);case rc:i=8,o|=8;break;case Fl:return e=pt(12,n,t,o|2),e.elementType=Fl,e.lanes=s,e;case $l:return e=pt(13,n,t,o),e.elementType=$l,e.lanes=s,e;case zl:return e=pt(19,n,t,o),e.elementType=zl,e.lanes=s,e;case eh:return ya(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zp:i=10;break e;case Jp:i=9;break e;case oc:i=11;break e;case sc:i=14;break e;case kn:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=pt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function mr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function ya(e,t,n,r){return e=pt(22,e,r,t),e.elementType=eh,e.lanes=n,e.stateNode={isHidden:!1},e}function vl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function yl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qx(e,t,n,r,o){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=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,o,s,i,a,l){return e=new qx(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(s),e}function Xx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vm(e){if(!e)return Kn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(qe(n))return Vh(e,n,t)}return t}function Qm(e,t,n,r,o,s,i,a,l){return e=zc(n,r,!0,e,o,s,i,a,l),e.context=Vm(null),n=e.current,r=ze(),o=Hn(n),s=rn(r,o),s.callback=t??null,Un(n,s,o),e.current.lanes=o,ks(e,o,r),Xe(e,r),e}function xa(e,t,n,r){var o=t.current,s=ze(),i=Hn(o);return n=Vm(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Un(o,t,i),e!==null&&(Rt(e,o,i,s),hi(e,o,i)),i}function qi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bc(e,t){Rf(e,t),(e=e.alternate)&&Rf(e,t)}function Zx(){return null}var Gm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}wa.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));xa(e,t,null,null)};wa.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wr(function(){xa(null,e,null,null)}),t[sn]=null}};function wa(e){this._internalRoot=e}wa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Eh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tn.length&&t!==0&&t<Tn[n].priority;n++);Tn.splice(n,0,e),n===0&&Nh(e)}};function Wc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jf(){}function Jx(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=qi(i);s.call(u)}}var i=Qm(t,r,e,0,null,!1,!1,"",jf);return e._reactRootContainer=i,e[sn]=i.current,ls(e.nodeType===8?e.parentNode:e),wr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=qi(l);a.call(u)}}var l=zc(e,0,!1,null,null,!1,!1,"",jf);return e._reactRootContainer=l,e[sn]=l.current,ls(e.nodeType===8?e.parentNode:e),wr(function(){xa(t,l,n,r)}),l}function Sa(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=qi(i);a.call(l)}}xa(t,i,e,o)}else i=Jx(n,t,e,o,r);return qi(i)}Sh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bo(t.pendingLanes);n!==0&&(lc(t,n|1),Xe(t,ve()),!(Z&6)&&(vo=ve()+500,Jn()))}break;case 13:wr(function(){var r=an(e,1);if(r!==null){var o=ze();Rt(r,e,1,o)}}),Bc(e,1)}};uc=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=ze();Rt(t,e,134217728,n)}Bc(e,134217728)}};Ch=function(e){if(e.tag===13){var t=Hn(e),n=an(e,t);if(n!==null){var r=ze();Rt(n,e,t,r)}Bc(e,t)}};Eh=function(){return te};kh=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};ql=function(e,t,n){switch(t){case"input":if(Wl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fa(r);if(!o)throw Error(_(90));nh(r),Wl(r,o)}}}break;case"textarea":oh(e,n);break;case"select":t=n.value,t!=null&&Qr(e,!!n.multiple,t,!1)}};dh=Lc;fh=wr;var e1={usingClientEntryPoint:!1,Events:[Ts,$r,fa,uh,ch,Lc]},Lo={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},t1={bundleType:Lo.bundleType,version:Lo.version,rendererPackageName:Lo.rendererPackageName,rendererConfig:Lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mh(e),e===null?null:e.stateNode},findFiberByHostInstance:Lo.findFiberByHostInstance||Zx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Js.isDisabled&&Js.supportsFiber)try{la=Js.inject(t1),Wt=Js}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e1;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wc(t))throw Error(_(200));return Xx(e,t,null,n)};at.createRoot=function(e,t){if(!Wc(e))throw Error(_(299));var n=!1,r="",o=Gm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=zc(e,1,!1,null,null,n,!1,r,o),e[sn]=t.current,ls(e.nodeType===8?e.parentNode:e),new Uc(t)};at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=mh(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return wr(e)};at.hydrate=function(e,t,n){if(!ba(t))throw Error(_(200));return Sa(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Wc(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Gm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Qm(t,null,e,1,n??null,o,!1,s,i),e[sn]=t.current,ls(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new wa(t)};at.render=function(e,t,n){if(!ba(t))throw Error(_(200));return Sa(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ba(e))throw Error(_(40));return e._reactRootContainer?(wr(function(){Sa(null,null,e,!1,function(){e._reactRootContainer=null,e[sn]=null})}),!0):!1};at.unstable_batchedUpdates=Lc;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ba(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Sa(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function Km(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Km)}catch(e){console.error(e)}}Km(),Kp.exports=at;var Rs=Kp.exports;const Ym=Lp(Rs);var qm,Of=Rs;qm=Of.createRoot,Of.hydrateRoot;var Ca=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(){}},Ea=typeof window>"u"||"Deno"in globalThis;function Ct(){}function n1(e,t){return typeof e=="function"?e(t):e}function r1(e){return typeof e=="number"&&e>=0&&e!==1/0}function o1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ru(e,t){return typeof e=="function"?e(t):e}function s1(e,t){return typeof e=="function"?e(t):e}function _f(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Hc(i,t.options))return!1}else if(!ys(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Af(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(vs(t.options.mutationKey)!==vs(s))return!1}else if(!ys(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||vs)(e)}function vs(e){return JSON.stringify(e,(t,n)=>ju(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ys(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ys(e[n],t[n])):!1}function Xm(e,t){if(e===t)return e;const n=Df(e)&&Df(t);if(n||ju(e)&&ju(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<i;d++){const p=n?d:s[d];(!n&&l.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,u++):(a[p]=Xm(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function Df(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ju(e){if(!Mf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Mf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Mf(e){return Object.prototype.toString.call(e)==="[object Object]"}function i1(e){return new Promise(t=>{setTimeout(t,e)})}function a1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Xm(e,t):t}function l1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function u1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vc=Symbol();function Zm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var lr,Rn,no,Pp,c1=(Pp=class extends Ca{constructor(){super();ee(this,lr);ee(this,Rn);ee(this,no);G(this,no,t=>{if(!Ea&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Rn)||this.setEventListener(j(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Rn))==null||t.call(this),G(this,Rn,void 0))}setEventListener(t){var n;G(this,no,t),(n=j(this,Rn))==null||n.call(this),G(this,Rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,lr)!==t&&(G(this,lr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,lr)=="boolean"?j(this,lr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},lr=new WeakMap,Rn=new WeakMap,no=new WeakMap,Pp),Jm=new c1,ro,jn,oo,Rp,d1=(Rp=class extends Ca{constructor(){super();ee(this,ro,!0);ee(this,jn);ee(this,oo);G(this,oo,t=>{if(!Ea&&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(){j(this,jn)||this.setEventListener(j(this,oo))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,jn))==null||t.call(this),G(this,jn,void 0))}setEventListener(t){var n;G(this,oo,t),(n=j(this,jn))==null||n.call(this),G(this,jn,t(this.setOnline.bind(this)))}setOnline(t){j(this,ro)!==t&&(G(this,ro,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,ro)}},ro=new WeakMap,jn=new WeakMap,oo=new WeakMap,Rp),Xi=new d1;function f1(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function p1(e){return Math.min(1e3*2**e,3e4)}function eg(e){return(e??"online")==="online"?Xi.isOnline():!0}var tg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xl(e){return e instanceof tg}function ng(e){let t=!1,n=0,r=!1,o;const s=f1(),i=g=>{var x;r||(y(new tg(g)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Jm.isFocused()&&(e.networkMode==="always"||Xi.isOnline())&&e.canRun(),d=()=>eg(e.networkMode)&&e.canRun(),p=g=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,g),o==null||o(),s.resolve(g))},y=g=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,g),o==null||o(),s.reject(g))},f=()=>new Promise(g=>{var x;o=h=>{(r||u())&&g(h)},(x=e.onPause)==null||x.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const x=n===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(h){g=Promise.reject(h)}Promise.resolve(g).then(p).catch(h=>{var N;if(r)return;const m=e.retry??(Ea?0:3),w=e.retryDelay??p1,S=typeof w=="function"?w(n,h):w,C=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,h);if(t||!C){y(h);return}n++,(N=e.onFail)==null||N.call(e,n,h),i1(S).then(()=>u()?void 0:f()).then(()=>{t?y(h):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():f().then(b),s)}}var h1=e=>setTimeout(e,0);function m1(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=h1;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var $e=m1(),ur,jp,rg=(jp=class{constructor(){ee(this,ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r1(this.gcTime)&&G(this,ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ea?1/0:5*60*1e3))}clearGcTimeout(){j(this,ur)&&(clearTimeout(j(this,ur)),G(this,ur,void 0))}},ur=new WeakMap,jp),so,cr,ct,dr,Ae,Ss,fr,Et,Xt,Op,g1=(Op=class extends rg{constructor(t){super();ee(this,Et);ee(this,so);ee(this,cr);ee(this,ct);ee(this,dr);ee(this,Ae);ee(this,Ss);ee(this,fr);G(this,fr,!1),G(this,Ss,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,dr,t.client),G(this,ct,j(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,so,y1(this.options)),this.state=t.state??j(this,so),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,Ae))==null?void 0:t.promise}setOptions(t){this.options={...j(this,Ss),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,ct).remove(this)}setData(t,n){const r=a1(this.state.data,t,this.options);return je(this,Et,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){je(this,Et,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=j(this,Ae))==null?void 0:r.promise;return(o=j(this,Ae))==null||o.cancel(t),n?n.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,so))}isActive(){return this.observers.some(t=>s1(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ru(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!o1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,Ae)&&(j(this,fr)?j(this,Ae).cancel({revert:!0}):j(this,Ae).cancelRetry()),this.scheduleGc()),j(this,ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,Et,Xt).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,Ae))return j(this,Ae).continueRetry(),j(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(f=>f.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(G(this,fr,!0),r.signal)})},s=()=>{const y=Zm(this.options,n),b=(()=>{const g={client:j(this,dr),queryKey:this.queryKey,meta:this.meta};return o(g),g})();return G(this,fr,!1),this.options.persister?this.options.persister(y,b,this):y(b)},a=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,dr),state:this.state,fetchFn:s};return o(y),y})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&je(this,Et,Xt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=y=>{var f,b,g,x;xl(y)&&y.silent||je(this,Et,Xt).call(this,{type:"error",error:y}),xl(y)||((b=(f=j(this,ct).config).onError)==null||b.call(f,y,this),(x=(g=j(this,ct).config).onSettled)==null||x.call(g,this.state.data,y,this)),this.scheduleGc()};return G(this,Ae,ng({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{var f,b,g,x;if(y===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(h){l(h);return}(b=(f=j(this,ct).config).onSuccess)==null||b.call(f,y,this),(x=(g=j(this,ct).config).onSettled)==null||x.call(g,y,this.state.error,this),this.scheduleGc()},onError:l,onFail:(y,f)=>{je(this,Et,Xt).call(this,{type:"failed",failureCount:y,error:f})},onPause:()=>{je(this,Et,Xt).call(this,{type:"pause"})},onContinue:()=>{je(this,Et,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,Ae).start()}},so=new WeakMap,cr=new WeakMap,ct=new WeakMap,dr=new WeakMap,Ae=new WeakMap,Ss=new WeakMap,fr=new WeakMap,Et=new WeakSet,Xt=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,...v1(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,cr,void 0),{...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 o=t.error;return xl(o)&&o.revert&&j(this,cr)?{...j(this,cr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),$e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,ct).notify({query:this,type:"updated",action:t})})},Op);function v1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function y1(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 It,_p,x1=(_p=class extends Ca{constructor(t={}){super();ee(this,It);this.config=t,G(this,It,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Hc(o,n);let i=this.get(s);return i||(i=new g1({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){j(this,It).has(t.queryHash)||(j(this,It).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,It).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,It).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,It).get(t)}getAll(){return[...j(this,It).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_f(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>_f(t,r)):n}notify(t){$e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},It=new WeakMap,_p),Ft,Ie,pr,$t,Sn,Ap,w1=(Ap=class extends rg{constructor(t){super();ee(this,$t);ee(this,Ft);ee(this,Ie);ee(this,pr);this.mutationId=t.mutationId,G(this,Ie,t.mutationCache),G(this,Ft,[]),this.state=t.state||b1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Ft).includes(t)||(j(this,Ft).push(t),this.clearGcTimeout(),j(this,Ie).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Ft,j(this,Ft).filter(n=>n!==t)),this.scheduleGc(),j(this,Ie).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Ft).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ie).remove(this))}continue(){var t;return((t=j(this,pr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,d,p,y,f,b,g,x,h,m,w,S,C,N,E,R;const n=()=>{je(this,$t,Sn).call(this,{type:"continue"})};G(this,pr,ng({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,L)=>{je(this,$t,Sn).call(this,{type:"failed",failureCount:D,error:L})},onPause:()=>{je(this,$t,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ie).canRun(this)}));const r=this.state.status==="pending",o=!j(this,pr).canStart();try{if(r)n();else{je(this,$t,Sn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=j(this,Ie).config).onMutate)==null?void 0:i.call(s,t,this));const L=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));L!==this.state.context&&je(this,$t,Sn).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const D=await j(this,pr).start();return await((d=(u=j(this,Ie).config).onSuccess)==null?void 0:d.call(u,D,t,this.state.context,this)),await((y=(p=this.options).onSuccess)==null?void 0:y.call(p,D,t,this.state.context)),await((b=(f=j(this,Ie).config).onSettled)==null?void 0:b.call(f,D,null,this.state.variables,this.state.context,this)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,D,null,t,this.state.context)),je(this,$t,Sn).call(this,{type:"success",data:D}),D}catch(D){try{throw await((m=(h=j(this,Ie).config).onError)==null?void 0:m.call(h,D,t,this.state.context,this)),await((S=(w=this.options).onError)==null?void 0:S.call(w,D,t,this.state.context)),await((N=(C=j(this,Ie).config).onSettled)==null?void 0:N.call(C,void 0,D,this.state.variables,this.state.context,this)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,D,t,this.state.context)),D}finally{je(this,$t,Sn).call(this,{type:"error",error:D})}}finally{j(this,Ie).runNext(this)}}},Ft=new WeakMap,Ie=new WeakMap,pr=new WeakMap,$t=new WeakSet,Sn=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),$e.batch(()=>{j(this,Ft).forEach(r=>{r.onMutationUpdate(t)}),j(this,Ie).notify({mutation:this,type:"updated",action:t})})},Ap);function b1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var en,kt,Cs,Dp,S1=(Dp=class extends Ca{constructor(t={}){super();ee(this,en);ee(this,kt);ee(this,Cs);this.config=t,G(this,en,new Set),G(this,kt,new Map),G(this,Cs,0)}build(t,n,r){const o=new w1({mutationCache:this,mutationId:++Ls(this,Cs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){j(this,en).add(t);const n=ei(t);if(typeof n=="string"){const r=j(this,kt).get(n);r?r.push(t):j(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,en).delete(t)){const n=ei(t);if(typeof n=="string"){const r=j(this,kt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&j(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ei(t);if(typeof n=="string"){const r=j(this,kt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ei(t);if(typeof n=="string"){const o=(r=j(this,kt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{j(this,en).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,en).clear(),j(this,kt).clear()})}getAll(){return Array.from(j(this,en))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Af(n,r))}findAll(t={}){return this.getAll().filter(n=>Af(t,n))}notify(t){$e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return $e.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ct))))}},en=new WeakMap,kt=new WeakMap,Cs=new WeakMap,Dp);function ei(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Lf(e){return{onFetch:(t,n)=>{var d,p,y,f,b;const r=t.options,o=(y=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const x=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=Zm(t.options,t.fetchOptions),m=async(w,S,C)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return x(W),W})(),R=await h(E),{maxPages:D}=t.options,L=C?u1:l1;return{pages:L(w.pages,R,D),pageParams:L(w.pageParams,S,D)}};if(o&&s.length){const w=o==="backward",S=w?C1:If,C={pages:s,pageParams:i},N=S(r,C);a=await m(C,N,w)}else{const w=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:If(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,x;return(x=(g=t.options).persister)==null?void 0:x.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function If(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 C1(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 me,On,_n,io,ao,An,lo,uo,Mp,E1=(Mp=class{constructor(e={}){ee(this,me);ee(this,On);ee(this,_n);ee(this,io);ee(this,ao);ee(this,An);ee(this,lo);ee(this,uo);G(this,me,e.queryCache||new x1),G(this,On,e.mutationCache||new S1),G(this,_n,e.defaultOptions||{}),G(this,io,new Map),G(this,ao,new Map),G(this,An,0)}mount(){Ls(this,An)._++,j(this,An)===1&&(G(this,lo,Jm.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,me).onFocus())})),G(this,uo,Xi.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,me).onOnline())})))}unmount(){var e,t;Ls(this,An)._--,j(this,An)===0&&((e=j(this,lo))==null||e.call(this),G(this,lo,void 0),(t=j(this,uo))==null||t.call(this),G(this,uo,void 0))}isFetching(e){return j(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,On).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ru(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=j(this,me).get(r.queryHash),s=o==null?void 0:o.state.data,i=n1(t,s);if(i!==void 0)return j(this,me).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return $e.batch(()=>j(this,me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,me);$e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,me);return $e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=$e.batch(()=>j(this,me).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return $e.batch(()=>(j(this,me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=$e.batch(()=>j(this,me).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ct)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,me).build(this,t);return n.isStaleByTime(Ru(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e.behavior=Lf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=Lf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xi.isOnline()?j(this,On).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,me)}getMutationCache(){return j(this,On)}getDefaultOptions(){return j(this,_n)}setDefaultOptions(e){G(this,_n,e)}setQueryDefaults(e,t){j(this,io).set(vs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,io).values()],n={};return t.forEach(r=>{ys(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,ao).set(vs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,ao).values()],n={};return t.forEach(r=>{ys(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,_n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hc(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===Vc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,_n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,me).clear(),j(this,On).clear()}},me=new WeakMap,On=new WeakMap,_n=new WeakMap,io=new WeakMap,ao=new WeakMap,An=new WeakMap,lo=new WeakMap,uo=new WeakMap,Mp),k1=v.createContext(void 0),N1=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(k1.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zi.apply(this,arguments)}var Ln;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ln||(Ln={}));const Ff="popstate";function T1(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Ou("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:sg(o)}return R1(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function og(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function P1(){return Math.random().toString(36).substr(2,8)}function $f(e,t){return{usr:e.state,key:e.key,idx:t}}function Ou(e,t,n,r){return n===void 0&&(n=null),Zi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ka(t):t,{state:n,key:t&&t.key||r||P1()})}function sg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ka(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function R1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Ln.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(Zi({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){a=Ln.Pop;let x=d(),h=x==null?null:x-u;u=x,l&&l({action:a,location:g.location,delta:h})}function y(x,h){a=Ln.Push;let m=Ou(g.location,x,h);u=d()+1;let w=$f(m,u),S=g.createHref(m);try{i.pushState(w,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}s&&l&&l({action:a,location:g.location,delta:1})}function f(x,h){a=Ln.Replace;let m=Ou(g.location,x,h);u=d();let w=$f(m,u),S=g.createHref(m);i.replaceState(w,"",S),s&&l&&l({action:a,location:g.location,delta:0})}function b(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof x=="string"?x:sg(x);return m=m.replace(/ $/,"%20"),Ze(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let g={get action(){return a},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Ff,p),l=x,()=>{o.removeEventListener(Ff,p),l=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let h=b(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:y,replace:f,go(x){return i.go(x)}};return g}var zf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zf||(zf={}));function j1(e,t,n){return n===void 0&&(n="/"),O1(e,t,n,!1)}function O1(e,t,n,r){let o=typeof t=="string"?ka(t):t,s=lg(o.pathname||"/",n);if(s==null)return null;let i=ig(e);_1(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=W1(s);a=B1(i[l],u,r)}return a}function ig(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ze(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ig(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:$1(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of ag(s.path))o(s,i,l)}),t}function ag(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=ag(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function _1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:z1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A1=/^:[\w-]+$/,D1=3,M1=2,L1=1,I1=10,F1=-2,Bf=e=>e==="*";function $1(e,t){let n=e.split("/"),r=n.length;return n.some(Bf)&&(r+=F1),t&&(r+=M1),n.filter(o=>!Bf(o)).reduce((o,s)=>o+(A1.test(s)?D1:s===""?L1:I1),r)}function z1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function B1(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",p=Uf({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),y=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Uf({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(o,p.params),i.push({params:o,pathname:Zr([s,p.pathname]),pathnameBase:H1(Zr([s,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(s=Zr([s,p.pathnameBase]))}return i}function Uf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=U1(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:y,isOptional:f}=d;if(y==="*"){let g=a[p]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const b=a[p];return f&&!b?u[y]=void 0:u[y]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function U1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),og(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function W1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return og(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zr=e=>e.join("/").replace(/\/\/+/g,"/"),H1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function V1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ug=["post","put","patch","delete"];new Set(ug);const Q1=["get",...ug];new Set(Q1);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ji.apply(this,arguments)}const G1=v.createContext(null),K1=v.createContext(null),cg=v.createContext(null),Na=v.createContext(null),Ta=v.createContext({outlet:null,matches:[],isDataRoute:!1}),dg=v.createContext(null);function Qc(){return v.useContext(Na)!=null}function fg(){return Qc()||Ze(!1),v.useContext(Na).location}function Y1(e,t){return q1(e,t)}function q1(e,t,n,r){Qc()||Ze(!1);let{navigator:o}=v.useContext(cg),{matches:s}=v.useContext(Ta),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=fg(),d;if(t){var p;let x=typeof t=="string"?ka(t):t;l==="/"||(p=x.pathname)!=null&&p.startsWith(l)||Ze(!1),d=x}else d=u;let y=d.pathname||"/",f=y;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=j1(e,{pathname:f}),g=tw(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Zr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Zr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&g?v.createElement(Na.Provider,{value:{location:Ji({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ln.Pop}},g):g}function X1(){let e=sw(),t=V1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const Z1=v.createElement(X1,null);class J1 extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Ta.Provider,{value:this.props.routeContext},v.createElement(dg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ew(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(G1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Ta.Provider,{value:t},r)}function tw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ze(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let p=i[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:y,errors:f}=n,b=p.route.loader&&y[p.route.id]===void 0&&(!f||f[p.route.id]===void 0);if(p.route.lazy||b){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,y)=>{let f,b=!1,g=null,x=null;n&&(f=a&&p.route.id?a[p.route.id]:void 0,g=p.route.errorElement||Z1,l&&(u<0&&y===0?(b=!0,x=null):u===y&&(b=!0,x=p.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,y+1)),m=()=>{let w;return f?w=g:b?w=x:p.route.Component?w=v.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,v.createElement(ew,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?v.createElement(J1,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var _u=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(_u||{});function nw(e){let t=v.useContext(K1);return t||Ze(!1),t}function rw(e){let t=v.useContext(Ta);return t||Ze(!1),t}function ow(e){let t=rw(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function sw(){var e;let t=v.useContext(dg),n=nw(_u.UseRouteError),r=ow(_u.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Au(e){Ze(!1)}function aw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ln.Pop,navigator:s,static:i=!1,future:a}=e;Qc()&&Ze(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:s,static:i,future:Ji({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=ka(r));let{pathname:d="/",search:p="",hash:y="",state:f=null,key:b="default"}=r,g=v.useMemo(()=>{let x=lg(d,l);return x==null?null:{location:{pathname:x,search:p,hash:y,state:f,key:b},navigationType:o}},[l,d,p,y,f,b,o]);return g==null?null:v.createElement(cg.Provider,{value:u},v.createElement(Na.Provider,{children:n,value:g}))}function lw(e){let{children:t,location:n}=e;return Y1(Du(t),n)}new Promise(()=>{});function Du(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let s=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Du(r.props.children,s));return}r.type!==Au&&Ze(!1),!r.props.index||!r.props.children||Ze(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Du(r.props.children,s)),n.push(i)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const uw="6";try{window.__reactRouterVersion=uw}catch{}const cw="startTransition",Wf=Ju[cw];function dw(e){let{basename:t,children:n,future:r,window:o}=e,s=v.useRef();s.current==null&&(s.current=T1({window:o,v5Compat:!0}));let i=s.current,[a,l]=v.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=v.useCallback(p=>{u&&Wf?Wf(()=>l(p)):l(p)},[l,u]);return v.useLayoutEffect(()=>i.listen(d),[i,d]),v.useEffect(()=>iw(r),[r]),v.createElement(aw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Hf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hf||(Hf={}));var Vf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vf||(Vf={}));var Qf=["light","dark"],fw="(prefers-color-scheme: dark)",pw=v.createContext(void 0),hw={setTheme:e=>{},themes:[]},mw=()=>{var e;return(e=v.useContext(pw))!=null?e:hw};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Qf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(b,g=!1,x=!0)=>{let h=i?i[b]:b,m=g?b+"|| ''":`'${h}'`,w="";return o&&x&&!g&&Qf.includes(b)&&(w+=`d.style.colorScheme = '${b}';`),n==="class"?g||h?w+=`c.add(${m})`:w+="null":h&&(w+=`d[s](n,${m})`),w},f=e?`!function(){${d}${y(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${fw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${y(i?"x[e]":"e",!0)}}${u?"":"else{"+y(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${y(i?"x[e]":"e",!0)}}else{${y(s,!1,!1)};}${p}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var gw=e=>{switch(e){case"success":return xw;case"info":return bw;case"warning":return ww;case"error":return Sw;default:return null}},vw=Array(12).fill(0),yw=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},vw.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ww=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),bw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Sw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Cw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ew=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Mu=1,kw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Mu++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],M.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(Tw(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Qe=new kw,Nw=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return Qe.addToast({title:e,...t,id:n}),n},Tw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Pw=Nw,Rw=()=>Qe.toasts,jw=()=>Qe.getActiveToasts(),He=Object.assign(Pw,{success:Qe.success,info:Qe.info,warning:Qe.warning,error:Qe.error,custom:Qe.custom,message:Qe.message,promise:Qe.promise,dismiss:Qe.dismiss,loading:Qe.loading},{getHistory:Rw,getToasts:jw});function Ow(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Ow(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function ti(e){return e.label!==void 0}var _w=3,Aw="32px",Dw="16px",Gf=4e3,Mw=356,Lw=14,Iw=20,Fw=200;function bt(...e){return e.filter(Boolean).join(" ")}function $w(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var zw=e=>{var t,n,r,o,s,i,a,l,u,d,p;let{invert:y,toast:f,unstyled:b,interacting:g,setHeights:x,visibleToasts:h,heights:m,index:w,toasts:S,expanded:C,removeToast:N,defaultRichColors:E,closeButton:R,style:D,cancelButtonStyle:L,actionButtonStyle:W,className:$="",descriptionClassName:V="",duration:F,position:I,gap:T,loadingIcon:O,expandByDefault:k,classNames:P,icons:A,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:z}=e,[H,Y]=M.useState(null),[he,Ce]=M.useState(null),[J,pn]=M.useState(!1),[X,ae]=M.useState(!1),[Dt,kr]=M.useState(!1),[hn,As]=M.useState(!1),[Ua,Ds]=M.useState(!1),[Wa,To]=M.useState(0),[Nr,md]=M.useState(0),Po=M.useRef(f.duration||F||Gf),gd=M.useRef(null),er=M.useRef(null),by=w===0,Sy=w+1<=h,ut=f.type,Tr=f.dismissible!==!1,Cy=f.className||"",Ey=f.descriptionClassName||"",Ms=M.useMemo(()=>m.findIndex(Q=>Q.toastId===f.id)||0,[m,f.id]),ky=M.useMemo(()=>{var Q;return(Q=f.closeButton)!=null?Q:R},[f.closeButton,R]),vd=M.useMemo(()=>f.duration||F||Gf,[f.duration,F]),Ha=M.useRef(0),Pr=M.useRef(0),yd=M.useRef(0),Rr=M.useRef(null),[Ny,Ty]=I.split("-"),xd=M.useMemo(()=>m.reduce((Q,ne,le)=>le>=Ms?Q:Q+ne.height,0),[m,Ms]),wd=Ew(),Py=f.invert||y,Va=ut==="loading";Pr.current=M.useMemo(()=>Ms*T+xd,[Ms,xd]),M.useEffect(()=>{Po.current=vd},[vd]),M.useEffect(()=>{pn(!0)},[]),M.useEffect(()=>{let Q=er.current;if(Q){let ne=Q.getBoundingClientRect().height;return md(ne),x(le=>[{toastId:f.id,height:ne,position:f.position},...le]),()=>x(le=>le.filter(vt=>vt.toastId!==f.id))}},[x,f.id]),M.useLayoutEffect(()=>{if(!J)return;let Q=er.current,ne=Q.style.height;Q.style.height="auto";let le=Q.getBoundingClientRect().height;Q.style.height=ne,md(le),x(vt=>vt.find(yt=>yt.toastId===f.id)?vt.map(yt=>yt.toastId===f.id?{...yt,height:le}:yt):[{toastId:f.id,height:le,position:f.position},...vt])},[J,f.title,f.description,x,f.id]);let mn=M.useCallback(()=>{ae(!0),To(Pr.current),x(Q=>Q.filter(ne=>ne.toastId!==f.id)),setTimeout(()=>{N(f)},Fw)},[f,N,x,Pr]);M.useEffect(()=>{if(f.promise&&ut==="loading"||f.duration===1/0||f.type==="loading")return;let Q;return C||g||z&&wd?(()=>{if(yd.current<Ha.current){let ne=new Date().getTime()-Ha.current;Po.current=Po.current-ne}yd.current=new Date().getTime()})():Po.current!==1/0&&(Ha.current=new Date().getTime(),Q=setTimeout(()=>{var ne;(ne=f.onAutoClose)==null||ne.call(f,f),mn()},Po.current)),()=>clearTimeout(Q)},[C,g,f,ut,z,wd,mn]),M.useEffect(()=>{f.delete&&mn()},[mn,f.delete]);function Ry(){var Q,ne,le;return A!=null&&A.loading?M.createElement("div",{className:bt(P==null?void 0:P.loader,(Q=f==null?void 0:f.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":ut==="loading"},A.loading):O?M.createElement("div",{className:bt(P==null?void 0:P.loader,(ne=f==null?void 0:f.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":ut==="loading"},O):M.createElement(yw,{className:bt(P==null?void 0:P.loader,(le=f==null?void 0:f.classNames)==null?void 0:le.loader),visible:ut==="loading"})}return M.createElement("li",{tabIndex:0,ref:er,className:bt($,Cy,P==null?void 0:P.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[ut],(n=f==null?void 0:f.classNames)==null?void 0:n[ut]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:E,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":Ua,"data-removed":X,"data-visible":Sy,"data-y-position":Ny,"data-x-position":Ty,"data-index":w,"data-front":by,"data-swiping":Dt,"data-dismissible":Tr,"data-type":ut,"data-invert":Py,"data-swipe-out":hn,"data-swipe-direction":he,"data-expanded":!!(C||k&&J),style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${X?Wa:Pr.current}px`,"--initial-height":k?"auto":`${Nr}px`,...D,...f.style},onDragEnd:()=>{kr(!1),Y(null),Rr.current=null},onPointerDown:Q=>{Va||!Tr||(gd.current=new Date,To(Pr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(kr(!0),Rr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,ne,le,vt;if(hn||!Tr)return;Rr.current=null;let yt=Number(((Q=er.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gn=Number(((ne=er.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tr=new Date().getTime()-((le=gd.current)==null?void 0:le.getTime()),xt=H==="x"?yt:gn,vn=Math.abs(xt)/tr;if(Math.abs(xt)>=Iw||vn>.11){To(Pr.current),(vt=f.onDismiss)==null||vt.call(f,f),Ce(H==="x"?yt>0?"right":"left":gn>0?"down":"up"),mn(),As(!0),Ds(!1);return}kr(!1),Y(null)},onPointerMove:Q=>{var ne,le,vt,yt;if(!Rr.current||!Tr||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;let gn=Q.clientY-Rr.current.y,tr=Q.clientX-Rr.current.x,xt=(le=e.swipeDirections)!=null?le:$w(I);!H&&(Math.abs(tr)>1||Math.abs(gn)>1)&&Y(Math.abs(tr)>Math.abs(gn)?"x":"y");let vn={x:0,y:0};H==="y"?(xt.includes("top")||xt.includes("bottom"))&&(xt.includes("top")&&gn<0||xt.includes("bottom")&&gn>0)&&(vn.y=gn):H==="x"&&(xt.includes("left")||xt.includes("right"))&&(xt.includes("left")&&tr<0||xt.includes("right")&&tr>0)&&(vn.x=tr),(Math.abs(vn.x)>0||Math.abs(vn.y)>0)&&Ds(!0),(vt=er.current)==null||vt.style.setProperty("--swipe-amount-x",`${vn.x}px`),(yt=er.current)==null||yt.style.setProperty("--swipe-amount-y",`${vn.y}px`)}},ky&&!f.jsx?M.createElement("button",{"aria-label":U,"data-disabled":Va,"data-close-button":!0,onClick:Va||!Tr?()=>{}:()=>{var Q;mn(),(Q=f.onDismiss)==null||Q.call(f,f)},className:bt(P==null?void 0:P.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=A==null?void 0:A.close)!=null?s:Cw):null,f.jsx||v.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:M.createElement(M.Fragment,null,ut||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:bt(P==null?void 0:P.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ry():null,f.type!=="loading"?f.icon||(A==null?void 0:A[ut])||gw(ut):null):null,M.createElement("div",{"data-content":"",className:bt(P==null?void 0:P.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:bt(P==null?void 0:P.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?M.createElement("div",{"data-description":"",className:bt(V,Ey,P==null?void 0:P.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),v.isValidElement(f.cancel)?f.cancel:f.cancel&&ti(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||L,onClick:Q=>{var ne,le;ti(f.cancel)&&Tr&&((le=(ne=f.cancel).onClick)==null||le.call(ne,Q),mn())},className:bt(P==null?void 0:P.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,v.isValidElement(f.action)?f.action:f.action&&ti(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||W,onClick:Q=>{var ne,le;ti(f.action)&&((le=(ne=f.action).onClick)==null||le.call(ne,Q),!Q.defaultPrevented&&mn())},className:bt(P==null?void 0:P.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Kf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Bw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?Dw:Aw;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Uw=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:y,style:f,visibleToasts:b=_w,toastOptions:g,dir:x=Kf(),gap:h=Lw,loadingIcon:m,icons:w,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[N,E]=M.useState([]),R=M.useMemo(()=>Array.from(new Set([r].concat(N.filter(z=>z.position).map(z=>z.position)))),[N,r]),[D,L]=M.useState([]),[W,$]=M.useState(!1),[V,F]=M.useState(!1),[I,T]=M.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),O=M.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=M.useRef(null),A=M.useRef(!1),U=M.useCallback(z=>{E(H=>{var Y;return(Y=H.find(he=>he.id===z.id))!=null&&Y.delete||Qe.dismiss(z.id),H.filter(({id:he})=>he!==z.id)})},[]);return M.useEffect(()=>Qe.subscribe(z=>{if(z.dismiss){E(H=>H.map(Y=>Y.id===z.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{Ym.flushSync(()=>{E(H=>{let Y=H.findIndex(he=>he.id===z.id);return Y!==-1?[...H.slice(0,Y),{...H[Y],...z},...H.slice(Y+1)]:[z,...H]})})})}),[]),M.useEffect(()=>{if(d!=="system"){T(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:H})=>{T(H?"dark":"light")})}catch{z.addListener(({matches:Y})=>{try{T(Y?"dark":"light")}catch(he){console.error(he)}})}},[d]),M.useEffect(()=>{N.length<=1&&$(!1)},[N]),M.useEffect(()=>{let z=H=>{var Y,he;o.every(Ce=>H[Ce]||H.code===Ce)&&($(!0),(Y=O.current)==null||Y.focus()),H.code==="Escape"&&(document.activeElement===O.current||(he=O.current)!=null&&he.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),M.useEffect(()=>{if(O.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,A.current=!1)}},[O.current]),M.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((z,H)=>{var Y;let[he,Ce]=z.split("-");return N.length?M.createElement("ol",{key:z,dir:x==="auto"?Kf():x,tabIndex:-1,ref:O,className:a,"data-sonner-toaster":!0,"data-theme":I,"data-y-position":he,"data-lifted":W&&N.length>1&&!s,"data-x-position":Ce,style:{"--front-toast-height":`${((Y=D[0])==null?void 0:Y.height)||0}px`,"--width":`${Mw}px`,"--gap":`${h}px`,...f,...Bw(l,u)},onBlur:J=>{A.current&&!J.currentTarget.contains(J.relatedTarget)&&(A.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A.current||(A.current=!0,P.current=J.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{V||$(!1)},onDragEnd:()=>$(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},N.filter(J=>!J.position&&H===0||J.position===z).map((J,pn)=>{var X,ae;return M.createElement(zw,{key:J.id,icons:w,index:pn,toast:J,defaultRichColors:p,duration:(X=g==null?void 0:g.duration)!=null?X:y,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:b,closeButton:(ae=g==null?void 0:g.closeButton)!=null?ae:i,interacting:V,position:z,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:U,toasts:N.filter(Dt=>Dt.position==J.position),heights:D.filter(Dt=>Dt.position==J.position),setHeights:L,expandByDefault:s,gap:h,loadingIcon:m,expanded:W,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const Ww=({...e})=>{const{theme:t="system"}=mw();return c.jsx(Uw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Hw=1,Vw=1e6;let wl=0;function Qw(){return wl=(wl+1)%Number.MAX_SAFE_INTEGER,wl.toString()}const bl=new Map,Yf=e=>{if(bl.has(e))return;const t=setTimeout(()=>{bl.delete(e),Jo({type:"REMOVE_TOAST",toastId:e})},Vw);bl.set(e,t)},Gw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Hw)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Yf(n):e.toasts.forEach(r=>{Yf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},bi=[];let Si={toasts:[]};function Jo(e){Si=Gw(Si,e),bi.forEach(t=>{t(Si)})}function Kw({...e}){const t=Qw(),n=o=>Jo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Jo({type:"DISMISS_TOAST",toastId:t});return Jo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Yw(){const[e,t]=v.useState(Si);return v.useEffect(()=>(bi.push(t),()=>{const n=bi.indexOf(t);n>-1&&bi.splice(n,1)}),[e]),{...e,toast:Kw,dismiss:n=>Jo({type:"DISMISS_TOAST",toastId:n})}}function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function qf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pg(...e){return t=>{let n=!1;const r=e.map(o=>{const s=qf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():qf(e[o],null)}}}}function Be(...e){return v.useCallback(pg(...e),e)}function qw(e,t){const n=v.createContext(t),r=s=>{const{children:i,...a}=s,l=v.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=v.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function js(e,t=[]){let n=[];function r(s,i){const a=v.createContext(i),l=n.length;n=[...n,i];const u=p=>{var h;const{scope:y,children:f,...b}=p,g=((h=y==null?void 0:y[e])==null?void 0:h[l])||a,x=v.useMemo(()=>b,Object.values(b));return c.jsx(g.Provider,{value:x,children:f})};u.displayName=s+"Provider";function d(p,y){var g;const f=((g=y==null?void 0:y[e])==null?void 0:g[l])||a,b=v.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>v.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Xw(o,...t)]}function Xw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ea(e){const t=Zw(e),n=v.forwardRef((r,o)=>{const{children:s,...i}=r,a=v.Children.toArray(s),l=a.find(eb);if(l){const u=l.props.children,d=a.map(p=>p===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Zw(e){const t=v.forwardRef((n,r)=>{const{children:o,...s}=n;if(v.isValidElement(o)){const i=nb(o),a=tb(s,o.props);return o.type!==v.Fragment&&(a.ref=r?pg(r,i):i),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hg=Symbol("radix.slottable");function Jw(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=hg,t}function eb(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hg}function tb(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function nb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rb(e){const t=e+"CollectionProvider",[n,r]=js(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:x,children:h}=g,m=M.useRef(null),w=M.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:w,collectionRef:m,children:h})};i.displayName=t;const a=e+"CollectionSlot",l=ea(a),u=M.forwardRef((g,x)=>{const{scope:h,children:m}=g,w=s(a,h),S=Be(x,w.collectionRef);return c.jsx(l,{ref:S,children:m})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",y=ea(d),f=M.forwardRef((g,x)=>{const{scope:h,children:m,...w}=g,S=M.useRef(null),C=Be(x,S),N=s(d,h);return M.useEffect(()=>(N.itemMap.set(S,{ref:S,...w}),()=>void N.itemMap.delete(S))),c.jsx(y,{[p]:"",ref:C,children:m})});f.displayName=d;function b(g){const x=s(e+"CollectionConsumer",g);return M.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const w=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((N,E)=>w.indexOf(N.ref.current)-w.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,r]}var ob=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=ob.reduce((e,t)=>{const n=ea(`Primitive.${t}`),r=v.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mg(e,t){e&&Rs.flushSync(()=>e.dispatchEvent(t))}function Qt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function sb(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ib="DismissableLayer",Lu="dismissableLayer.update",ab="dismissableLayer.pointerDownOutside",lb="dismissableLayer.focusOutside",Xf,gg=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pa=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=v.useContext(gg),[d,p]=v.useState(null),y=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=v.useState({}),b=Be(t,E=>p(E)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=g.indexOf(x),m=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=h,C=cb(E=>{const R=E.target,D=[...u.branches].some(L=>L.contains(R));!S||D||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},y),N=db(E=>{const R=E.target;[...u.branches].some(L=>L.contains(R))||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},y);return sb(E=>{m===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},y),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xf=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Zf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Xf)}},[d,y,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Zf())},[d,u]),v.useEffect(()=>{const E=()=>f({});return document.addEventListener(Lu,E),()=>document.removeEventListener(Lu,E)},[]),c.jsx(xe.div,{...l,ref:b,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,C.onPointerDownCapture)})});Pa.displayName=ib;var ub="DismissableLayerBranch",vg=v.forwardRef((e,t)=>{const n=v.useContext(gg),r=v.useRef(null),o=Be(t,r);return v.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(xe.div,{...e,ref:o})});vg.displayName=ub;function cb(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){yg(ab,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function db(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!r.current&&yg(lb,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zf(){const e=new CustomEvent(Lu);document.dispatchEvent(e)}function yg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mg(o,s):o.dispatchEvent(s)}var fb=Pa,pb=vg,un=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},hb="Portal",Gc=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=v.useState(!1);un(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ym.createPortal(c.jsx(xe.div,{...r,ref:t}),i):null});Gc.displayName=hb;function mb(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Co=e=>{const{present:t,children:n}=e,r=gb(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),s=Be(r.ref,vb(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:s}):null};Co.displayName="Presence";function gb(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),s=v.useRef("none"),i=e?"mounted":"unmounted",[a,l]=mb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=ni(r.current);s.current=a==="mounted"?u:"none"},[a]),un(()=>{const u=r.current,d=o.current;if(d!==e){const y=s.current,f=ni(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&y!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),un(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const g=ni(r.current).includes(f.animationName);if(f.target===t&&g&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},y=f=>{f.target===t&&(s.current=ni(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ni(e){return(e==null?void 0:e.animationName)||"none"}function vb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yb=Ju[" useInsertionEffect ".trim().toString()]||un;function xg({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=xb({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=v.useRef(e!==void 0);v.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=v.useCallback(d=>{var p;if(a){const y=wb(d)?d(e):d;y!==e&&((p=i.current)==null||p.call(i,y))}else s(d)},[a,e,s,i]);return[l,u]}function xb({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),s=v.useRef(t);return yb(()=>{s.current=t},[t]),v.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function wb(e){return typeof e=="function"}var bb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Sb="VisuallyHidden",Ra=v.forwardRef((e,t)=>c.jsx(xe.span,{...e,ref:t,style:{...bb,...e.style}}));Ra.displayName=Sb;var Cb=Ra,Kc="ToastProvider",[Yc,Eb,kb]=rb("Toast"),[wg,yk]=js("Toast",[kb]),[Nb,ja]=wg(Kc),bg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=v.useState(null),[u,d]=v.useState(0),p=v.useRef(!1),y=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Kc}\`. Expected non-empty \`string\`.`),c.jsx(Yc.Provider,{scope:t,children:c.jsx(Nb,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>d(f=>f+1),[]),onToastRemove:v.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:y,children:i})})};bg.displayName=Kc;var Sg="ToastViewport",Tb=["F8"],Iu="toast.viewportPause",Fu="toast.viewportResume",Cg=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Tb,label:o="Notifications ({hotkey})",...s}=e,i=ja(Sg,n),a=Eb(n),l=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),y=Be(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;v.useEffect(()=>{const x=h=>{var w;r.length!==0&&r.every(S=>h[S]||h.code===S)&&((w=p.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{const x=l.current,h=p.current;if(b&&x&&h){const m=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(Iu);h.dispatchEvent(N),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(Fu);h.dispatchEvent(N),i.isClosePausedRef.current=!1}},S=N=>{!x.contains(N.relatedTarget)&&w()},C=()=>{x.contains(document.activeElement)||w()};return x.addEventListener("focusin",m),x.addEventListener("focusout",S),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",w),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",w)}}},[b,i.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:x})=>{const m=a().map(w=>{const S=w.ref.current,C=[S,...zb(S)];return x==="forwards"?C:C.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const x=p.current;if(x){const h=m=>{var C,N,E;const w=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!w){const R=document.activeElement,D=m.shiftKey;if(m.target===x&&D){(C=u.current)==null||C.focus();return}const $=g({tabbingDirection:D?"backwards":"forwards"}),V=$.findIndex(F=>F===R);Sl($.slice(V+1))?m.preventDefault():D?(N=u.current)==null||N.focus():(E=d.current)==null||E.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,g]),c.jsxs(pb,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&c.jsx($u,{ref:u,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});Sl(x)}}),c.jsx(Yc.Slot,{scope:n,children:c.jsx(xe.ol,{tabIndex:-1,...s,ref:y})}),b&&c.jsx($u,{ref:d,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});Sl(x)}})]})});Cg.displayName=Sg;var Eg="ToastFocusProxy",$u=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ja(Eg,n);return c.jsx(Ra,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});$u.displayName=Eg;var Os="Toast",Pb="toast.swipeStart",Rb="toast.swipeMove",jb="toast.swipeCancel",Ob="toast.swipeEnd",kg=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=xg({prop:r,defaultProp:o??!0,onChange:s,caller:Os});return c.jsx(Co,{present:n||a,children:c.jsx(Db,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Qt(e.onPause),onResume:Qt(e.onResume),onSwipeStart:ce(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ce(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});kg.displayName=Os;var[_b,Ab]=wg(Os,{onClose(){}}),Db=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:y,onSwipeEnd:f,...b}=e,g=ja(Os,n),[x,h]=v.useState(null),m=Be(t,F=>h(F)),w=v.useRef(null),S=v.useRef(null),C=o||g.duration,N=v.useRef(0),E=v.useRef(C),R=v.useRef(0),{onToastAdd:D,onToastRemove:L}=g,W=Qt(()=>{var I;(x==null?void 0:x.contains(document.activeElement))&&((I=g.viewport)==null||I.focus()),i()}),$=v.useCallback(F=>{!F||F===1/0||(window.clearTimeout(R.current),N.current=new Date().getTime(),R.current=window.setTimeout(W,F))},[W]);v.useEffect(()=>{const F=g.viewport;if(F){const I=()=>{$(E.current),u==null||u()},T=()=>{const O=new Date().getTime()-N.current;E.current=E.current-O,window.clearTimeout(R.current),l==null||l()};return F.addEventListener(Iu,T),F.addEventListener(Fu,I),()=>{F.removeEventListener(Iu,T),F.removeEventListener(Fu,I)}}},[g.viewport,C,l,u,$]),v.useEffect(()=>{s&&!g.isClosePausedRef.current&&$(C)},[s,C,g.isClosePausedRef,$]),v.useEffect(()=>(D(),()=>L()),[D,L]);const V=v.useMemo(()=>x?_g(x):null,[x]);return g.viewport?c.jsxs(c.Fragment,{children:[V&&c.jsx(Mb,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),c.jsx(_b,{scope:n,onClose:W,children:Rs.createPortal(c.jsx(Yc.ItemSlot,{scope:n,children:c.jsx(fb,{asChild:!0,onEscapeKeyDown:ce(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||W(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ce(e.onKeyDown,F=>{F.key==="Escape"&&(a==null||a(F.nativeEvent),F.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:ce(e.onPointerDown,F=>{F.button===0&&(w.current={x:F.clientX,y:F.clientY})}),onPointerMove:ce(e.onPointerMove,F=>{if(!w.current)return;const I=F.clientX-w.current.x,T=F.clientY-w.current.y,O=!!S.current,k=["left","right"].includes(g.swipeDirection),P=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,A=k?P(0,I):0,U=k?0:P(0,T),z=F.pointerType==="touch"?10:2,H={x:A,y:U},Y={originalEvent:F,delta:H};O?(S.current=H,ri(Rb,p,Y,{discrete:!1})):Jf(H,g.swipeDirection,z)?(S.current=H,ri(Pb,d,Y,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(I)>z||Math.abs(T)>z)&&(w.current=null)}),onPointerUp:ce(e.onPointerUp,F=>{const I=S.current,T=F.target;if(T.hasPointerCapture(F.pointerId)&&T.releasePointerCapture(F.pointerId),S.current=null,w.current=null,I){const O=F.currentTarget,k={originalEvent:F,delta:I};Jf(I,g.swipeDirection,g.swipeThreshold)?ri(Ob,f,k,{discrete:!0}):ri(jb,y,k,{discrete:!0}),O.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Mb=e=>{const{__scopeToast:t,children:n,...r}=e,o=ja(Os,t),[s,i]=v.useState(!1),[a,l]=v.useState(!1);return Fb(()=>i(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Gc,{asChild:!0,children:c.jsx(Ra,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},Lb="ToastTitle",Ng=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(xe.div,{...r,ref:t})});Ng.displayName=Lb;var Ib="ToastDescription",Tg=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(xe.div,{...r,ref:t})});Tg.displayName=Ib;var Pg="ToastAction",Rg=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Og,{altText:n,asChild:!0,children:c.jsx(qc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Pg}\`. Expected non-empty \`string\`.`),null)});Rg.displayName=Pg;var jg="ToastClose",qc=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ab(jg,n);return c.jsx(Og,{asChild:!0,children:c.jsx(xe.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,o.onClose)})})});qc.displayName=jg;var Og=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function _g(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),$b(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(..._g(r))}}),t}function ri(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mg(o,s):o.dispatchEvent(s)}var Jf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Fb(e=()=>{}){const t=Qt(e);un(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function $b(e){return e.nodeType===e.ELEMENT_NODE}function zb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Sl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Bb=bg,Ag=Cg,Dg=kg,Mg=Ng,Lg=Tg,Ig=Rg,Fg=qc;function $g(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$g(e))&&(r&&(r+=" "),r+=t);return r}const ep=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tp=zg,Ub=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const y=ep(d)||ep(p);return o[u][y]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,y]=d;return y===void 0||(u[p]=y),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:y,...f}=d;return Object.entries(f).every(b=>{let[g,x]=b;return Array.isArray(x)?x.includes({...s,...a}[g]):{...s,...a}[g]===x})?[...u,p,y]:u},[]);return tp(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @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 Wb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bg=(...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 Hb={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 Vb=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>v.createElement("svg",{ref:l,...Hb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bg("lucide",o),...a},[...i.map(([u,d])=>v.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
 * @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 Je=(e,t)=>{const n=v.forwardRef(({className:r,...o},s)=>v.createElement(Vb,{ref:s,iconNode:t,className:Bg(`lucide-${Wb(e)}`,r),...o}));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 Ug=Je("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
 * @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 Qb=Je("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @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 Wg=Je("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @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 Hg=Je("Delete",[["path",{d:"M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",key:"1yo7s0"}],["path",{d:"m12 9 6 6",key:"anjzzh"}],["path",{d:"m18 9-6 6",key:"1fp51s"}]]);/**
 * @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 Gb=Je("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
 * @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 Kb=Je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yb=Je("PrinterCheck",[["path",{d:"M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5",key:"qeb09x"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2",key:"1md90i"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}]]);/**
 * @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 qb=Je("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @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 Xb=Je("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
 * @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 Zb=Je("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @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 np=Je("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @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 Jb=Je("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @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 eS=Je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vg=Je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xc="-",tS=e=>{const t=rS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Xc);return a[0]===""&&a.length!==1&&a.shift(),Qg(a,t)||nS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Qg=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Xc);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},rp=/^\[(.+)\]$/,nS=e=>{if(rp.test(e)){const t=rp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return sS(Object.entries(e.classGroups),n).forEach(([s,i])=>{zu(i,r,s,t)}),r},zu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:op(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(oS(o)){zu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{zu(i,op(t,s),n,r)})})},op=(e,t)=>{let n=e;return t.split(Xc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},oS=e=>e.isThemeGetter,sS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,iS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Gg="!",aS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,d=0,p;for(let x=0;x<a.length;x++){let h=a[x];if(u===0){if(h===o&&(r||a.slice(x,x+s)===t)){l.push(a.slice(d,x)),d=x+s;continue}if(h==="/"){p=x;continue}}h==="["?u++:h==="]"&&u--}const y=l.length===0?a:a.substring(d),f=y.startsWith(Gg),b=f?y.substring(1):y,g=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},lS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},uS=e=>({cache:iS(e.cacheSize),parseClassName:aS(e),...tS(e)}),cS=/\s+/,dS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(cS);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:f}=n(u);let b=!!f,g=r(b?y.substring(0,f):y);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(y),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const x=lS(d).join(":"),h=p?x+Gg:x,m=h+g;if(s.includes(m))continue;s.push(m);const w=o(g,b);for(let S=0;S<w.length;++S){const C=w[S];s.push(h+C)}a=u+(a.length>0?" "+a:a)}return a};function fS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Kg(t))&&(r&&(r+=" "),r+=n);return r}const Kg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Kg(e[r]))&&(n&&(n+=" "),n+=t);return n};function pS(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((d,p)=>p(d),e());return n=uS(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=dS(l,n);return o(l,d),d}return function(){return s(fS.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yg=/^\[(?:([a-z-]+):)?(.+)\]$/i,hS=/^\d+\/\d+$/,mS=new Set(["px","full","screen"]),gS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>Jr(e)||mS.has(e)||hS.test(e),xn=e=>Eo(e,"length",PS),Jr=e=>!!e&&!Number.isNaN(Number(e)),Cl=e=>Eo(e,"number",Jr),Io=e=>!!e&&Number.isInteger(Number(e)),bS=e=>e.endsWith("%")&&Jr(e.slice(0,-1)),K=e=>Yg.test(e),wn=e=>gS.test(e),SS=new Set(["length","size","percentage"]),CS=e=>Eo(e,SS,qg),ES=e=>Eo(e,"position",qg),kS=new Set(["image","url"]),NS=e=>Eo(e,kS,jS),TS=e=>Eo(e,"",RS),Fo=()=>!0,Eo=(e,t,n)=>{const r=Yg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},PS=e=>vS.test(e)&&!yS.test(e),qg=()=>!1,RS=e=>xS.test(e),jS=e=>wS.test(e),OS=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),s=oe("borderRadius"),i=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),d=oe("hueRotate"),p=oe("invert"),y=oe("gap"),f=oe("gradientColorStops"),b=oe("gradientColorStopPositions"),g=oe("inset"),x=oe("margin"),h=oe("opacity"),m=oe("padding"),w=oe("saturate"),S=oe("scale"),C=oe("sepia"),N=oe("skew"),E=oe("space"),R=oe("translate"),D=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",K,t],$=()=>[K,t],V=()=>["",Yt,xn],F=()=>["auto",Jr,K],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",K],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Jr,K];return{cacheSize:500,separator:":",theme:{colors:[Fo],spacing:[Yt,xn],blur:["none","",wn,K],brightness:U(),borderColor:[e],borderRadius:["none","","full",wn,K],borderSpacing:$(),borderWidth:V(),contrast:U(),grayscale:P(),hueRotate:U(),invert:P(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[bS,xn],inset:W(),margin:W(),opacity:U(),padding:$(),saturate:U(),scale:U(),sepia:P(),skew:U(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[wn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...I(),K]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Io,K]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Io,K]}],"grid-cols":[{"grid-cols":[Fo]}],"col-start-end":[{col:["auto",{span:["full",Io,K]},K]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Fo]}],"row-start-end":[{row:["auto",{span:[Io,K]},K]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[wn]},wn]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wn,xn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cl]}],"font-family":[{font:[Fo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Jr,Cl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,xn]}],"underline-offset":[{"underline-offset":["auto",Yt,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),ES]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",CS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:T()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[Yt,K]}],"outline-w":[{outline:[Yt,xn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Yt,xn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,TS]}],"shadow-color":[{shadow:[Fo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Io,K]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,xn,Cl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_S=pS(OS);function we(...e){return _S(zg(e))}const AS=Bb,Xg=v.forwardRef(({className:e,...t},n)=>c.jsx(Ag,{ref:n,className:we("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Xg.displayName=Ag.displayName;const DS=Ub("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Zg=v.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Dg,{ref:r,className:we(DS({variant:t}),e),...n}));Zg.displayName=Dg.displayName;const MS=v.forwardRef(({className:e,...t},n)=>c.jsx(Ig,{ref:n,className:we("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));MS.displayName=Ig.displayName;const Jg=v.forwardRef(({className:e,...t},n)=>c.jsx(Fg,{ref:n,className:we("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Vg,{className:"h-4 w-4"})}));Jg.displayName=Fg.displayName;const ev=v.forwardRef(({className:e,...t},n)=>c.jsx(Mg,{ref:n,className:we("text-sm font-semibold",e),...t}));ev.displayName=Mg.displayName;const tv=v.forwardRef(({className:e,...t},n)=>c.jsx(Lg,{ref:n,className:we("text-sm opacity-90",e),...t}));tv.displayName=Lg.displayName;function LS(){const{toasts:e}=Yw();return c.jsxs(AS,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(Zg,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(ev,{children:n}),r&&c.jsx(tv,{children:r})]}),o,c.jsx(Jg,{})]},t)}),c.jsx(Xg,{})]})}var IS=Ju[" useId ".trim().toString()]||(()=>{}),FS=0;function El(e){const[t,n]=v.useState(IS());return un(()=>{e||n(r=>r??String(FS++))},[e]),e||(t?`radix-${t}`:"")}const $S=["top","right","bottom","left"],Yn=Math.min,nt=Math.max,ta=Math.round,oi=Math.floor,Vt=e=>({x:e,y:e}),zS={left:"right",right:"left",bottom:"top",top:"bottom"},BS={start:"end",end:"start"};function Bu(e,t,n){return nt(e,Yn(t,n))}function cn(e,t){return typeof e=="function"?e(t):e}function dn(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function Zc(e){return e==="x"?"y":"x"}function Jc(e){return e==="y"?"height":"width"}const US=new Set(["top","bottom"]);function Ut(e){return US.has(dn(e))?"y":"x"}function ed(e){return Zc(Ut(e))}function WS(e,t,n){n===void 0&&(n=!1);const r=ko(e),o=ed(e),s=Jc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=na(i)),[i,na(i)]}function HS(e){const t=na(e);return[Uu(e),t,Uu(t)]}function Uu(e){return e.replace(/start|end/g,t=>BS[t])}const sp=["left","right"],ip=["right","left"],VS=["top","bottom"],QS=["bottom","top"];function GS(e,t,n){switch(e){case"top":case"bottom":return n?t?ip:sp:t?sp:ip;case"left":case"right":return t?VS:QS;default:return[]}}function KS(e,t,n,r){const o=ko(e);let s=GS(dn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Uu)))),s}function na(e){return e.replace(/left|right|bottom|top/g,t=>zS[t])}function YS(e){return{top:0,right:0,bottom:0,left:0,...e}}function nv(e){return typeof e!="number"?YS(e):{top:e,right:e,bottom:e,left:e}}function ra(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ap(e,t,n){let{reference:r,floating:o}=e;const s=Ut(t),i=ed(t),a=Jc(i),l=dn(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,y=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(ko(t)){case"start":f[i]-=y*(n&&u?-1:1);break;case"end":f[i]+=y*(n&&u?-1:1);break}return f}const qS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=ap(u,r,l),y=r,f={},b=0;for(let g=0;g<a.length;g++){const{name:x,fn:h}=a[g],{x:m,y:w,data:S,reset:C}=await h({x:d,y:p,initialPlacement:r,placement:y,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});d=m??d,p=w??p,f={...f,[x]:{...f[x],...S}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:p}=ap(u,y,l)),g=-1)}return{x:d,y:p,placement:y,strategy:o,middlewareData:f}};async function xs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=cn(t,e),b=nv(f),x=a[y?p==="floating"?"reference":"floating":p],h=ra(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),m=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=ra(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:l}):m);return{top:(h.top-C.top+b.top)/S.y,bottom:(C.bottom-h.bottom+b.bottom)/S.y,left:(h.left-C.left+b.left)/S.x,right:(C.right-h.right+b.right)/S.x}}const XS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=cn(e,t)||{};if(u==null)return{};const p=nv(d),y={x:n,y:r},f=ed(o),b=Jc(f),g=await i.getDimensions(u),x=f==="y",h=x?"top":"left",m=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[f]-y[f]-s.floating[b],C=y[f]-s.reference[f],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=a.floating[w]||s.floating[b]);const R=S/2-C/2,D=E/2-g[b]/2-1,L=Yn(p[h],D),W=Yn(p[m],D),$=L,V=E-g[b]-W,F=E/2-g[b]/2+R,I=Bu($,F,V),T=!l.arrow&&ko(o)!=null&&F!==I&&s.reference[b]/2-(F<$?L:W)-g[b]/2<0,O=T?F<$?F-$:F-V:0;return{[f]:y[f]+O,data:{[f]:I,centerOffset:F-I-O,...T&&{alignmentOffset:O}},reset:T}}}),ZS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=cn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=dn(o),m=Ut(a),w=dn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=y||(w||!g?[na(a)]:HS(a)),N=b!=="none";!y&&N&&C.push(...KS(a,g,b,S));const E=[a,...C],R=await xs(t,x),D=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&D.push(R[h]),p){const F=WS(o,i,S);D.push(R[F[0]],R[F[1]])}if(L=[...L,{placement:o,overflows:D}],!D.every(F=>F<=0)){var W,$;const F=(((W=s.flip)==null?void 0:W.index)||0)+1,I=E[F];if(I&&(!(p==="alignment"?m!==Ut(I):!1)||L.every(k=>k.overflows[0]>0&&Ut(k.placement)===m)))return{data:{index:F,overflows:L},reset:{placement:I}};let T=($=L.filter(O=>O.overflows[0]<=0).sort((O,k)=>O.overflows[1]-k.overflows[1])[0])==null?void 0:$.placement;if(!T)switch(f){case"bestFit":{var V;const O=(V=L.filter(k=>{if(N){const P=Ut(k.placement);return P===m||P==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(P=>P>0).reduce((P,A)=>P+A,0)]).sort((k,P)=>k[1]-P[1])[0])==null?void 0:V[0];O&&(T=O);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function lp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function up(e){return $S.some(t=>e[t]>=0)}const JS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=cn(e,t);switch(r){case"referenceHidden":{const s=await xs(t,{...o,elementContext:"reference"}),i=lp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:up(i)}}}case"escaped":{const s=await xs(t,{...o,altBoundary:!0}),i=lp(s,n.floating);return{data:{escapedOffsets:i,escaped:up(i)}}}default:return{}}}}},rv=new Set(["left","top"]);async function eC(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=dn(n),a=ko(n),l=Ut(n)==="y",u=rv.has(i)?-1:1,d=s&&l?-1:1,p=cn(t,e);let{mainAxis:y,crossAxis:f,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*d,y:y*u}:{x:y*u,y:f*d}}const tC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await eC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},nC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:h,y:m}=x;return{x:h,y:m}}},...l}=cn(e,t),u={x:n,y:r},d=await xs(t,l),p=Ut(dn(o)),y=Zc(p);let f=u[y],b=u[p];if(s){const x=y==="y"?"top":"left",h=y==="y"?"bottom":"right",m=f+d[x],w=f-d[h];f=Bu(m,f,w)}if(i){const x=p==="y"?"top":"left",h=p==="y"?"bottom":"right",m=b+d[x],w=b-d[h];b=Bu(m,b,w)}const g=a.fn({...t,[y]:f,[p]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[y]:s,[p]:i}}}}}},rC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=cn(e,t),d={x:n,y:r},p=Ut(o),y=Zc(p);let f=d[y],b=d[p];const g=cn(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=y==="y"?"height":"width",S=s.reference[y]-s.floating[w]+x.mainAxis,C=s.reference[y]+s.reference[w]-x.mainAxis;f<S?f=S:f>C&&(f=C)}if(u){var h,m;const w=y==="y"?"width":"height",S=rv.has(dn(o)),C=s.reference[p]-s.floating[w]+(S&&((h=i.offset)==null?void 0:h[p])||0)+(S?0:x.crossAxis),N=s.reference[p]+s.reference[w]+(S?0:((m=i.offset)==null?void 0:m[p])||0)-(S?x.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[y]:f,[p]:b}}}},oC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=cn(e,t),d=await xs(t,u),p=dn(o),y=ko(o),f=Ut(o)==="y",{width:b,height:g}=s.floating;let x,h;p==="top"||p==="bottom"?(x=p,h=y===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(h=p,x=y==="end"?"top":"bottom");const m=g-d.top-d.bottom,w=b-d.left-d.right,S=Yn(g-d[x],m),C=Yn(b-d[h],w),N=!t.middlewareData.shift;let E=S,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=m),N&&!y){const L=nt(d.left,0),W=nt(d.right,0),$=nt(d.top,0),V=nt(d.bottom,0);f?R=b-2*(L!==0||W!==0?L+W:nt(d.left,d.right)):E=g-2*($!==0||V!==0?$+V:nt(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:E});const D=await i.getDimensions(a.floating);return b!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function Oa(){return typeof window<"u"}function No(e){return ov(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kt(e){var t;return(t=(ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ov(e){return Oa()?e instanceof Node||e instanceof st(e).Node:!1}function Ot(e){return Oa()?e instanceof Element||e instanceof st(e).Element:!1}function Gt(e){return Oa()?e instanceof HTMLElement||e instanceof st(e).HTMLElement:!1}function cp(e){return!Oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}const sC=new Set(["inline","contents"]);function _s(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!sC.has(o)}const iC=new Set(["table","td","th"]);function aC(e){return iC.has(No(e))}const lC=[":popover-open",":modal"];function _a(e){return lC.some(t=>{try{return e.matches(t)}catch{return!1}})}const uC=["transform","translate","scale","rotate","perspective"],cC=["transform","translate","scale","rotate","perspective","filter"],dC=["paint","layout","strict","content"];function td(e){const t=nd(),n=Ot(e)?_t(e):e;return uC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||cC.some(r=>(n.willChange||"").includes(r))||dC.some(r=>(n.contain||"").includes(r))}function fC(e){let t=qn(e);for(;Gt(t)&&!yo(t);){if(td(t))return t;if(_a(t))return null;t=qn(t)}return null}function nd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pC=new Set(["html","body","#document"]);function yo(e){return pC.has(No(e))}function _t(e){return st(e).getComputedStyle(e)}function Aa(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cp(e)&&e.host||Kt(e);return cp(t)?t.host:t}function sv(e){const t=qn(e);return yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&_s(t)?t:sv(t)}function ws(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=st(o);if(s){const a=Wu(i);return t.concat(i,i.visualViewport||[],_s(o)?o:[],a&&n?ws(a):[])}return t.concat(o,ws(o,[],n))}function Wu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iv(e){const t=_t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ta(n)!==s||ta(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function rd(e){return Ot(e)?e:e.contextElement}function eo(e){const t=rd(e);if(!Gt(t))return Vt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=iv(t);let i=(s?ta(n.width):n.width)/r,a=(s?ta(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const hC=Vt(0);function av(e){const t=st(e);return!nd()||!t.visualViewport?hC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==st(e)?!1:t}function br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=rd(e);let i=Vt(1);t&&(r?Ot(r)&&(i=eo(r)):i=eo(e));const a=mC(s,n,r)?av(s):Vt(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const y=st(s),f=r&&Ot(r)?st(r):r;let b=y,g=Wu(b);for(;g&&r&&f!==b;){const x=eo(g),h=g.getBoundingClientRect(),m=_t(g),w=h.left+(g.clientLeft+parseFloat(m.paddingLeft))*x.x,S=h.top+(g.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=w,u+=S,b=st(g),g=Wu(b)}}return ra({width:d,height:p,x:l,y:u})}function od(e,t){const n=Aa(e).scrollLeft;return t?t.left+n:br(Kt(e)).left+n}function lv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:od(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function gC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Kt(r),a=t?_a(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Vt(1);const d=Vt(0),p=Gt(r);if((p||!p&&!s)&&((No(r)!=="body"||_s(i))&&(l=Aa(r)),Gt(r))){const f=br(r);u=eo(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const y=i&&!p&&!s?lv(i,l,!0):Vt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+y.x,y:n.y*u.y-l.scrollTop*u.y+d.y+y.y}}function vC(e){return Array.from(e.getClientRects())}function yC(e){const t=Kt(e),n=Aa(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+od(e);const a=-n.scrollTop;return _t(r).direction==="rtl"&&(i+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function xC(e,t){const n=st(e),r=Kt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=nd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const wC=new Set(["absolute","fixed"]);function bC(e,t){const n=br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Gt(e)?eo(e):Vt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function dp(e,t,n){let r;if(t==="viewport")r=xC(e,n);else if(t==="document")r=yC(Kt(e));else if(Ot(t))r=bC(t,n);else{const o=av(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ra(r)}function uv(e,t){const n=qn(e);return n===t||!Ot(n)||yo(n)?!1:_t(n).position==="fixed"||uv(n,t)}function SC(e,t){const n=t.get(e);if(n)return n;let r=ws(e,[],!1).filter(a=>Ot(a)&&No(a)!=="body"),o=null;const s=_t(e).position==="fixed";let i=s?qn(e):e;for(;Ot(i)&&!yo(i);){const a=_t(i),l=td(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&wC.has(o.position)||_s(i)&&!l&&uv(e,i))?r=r.filter(d=>d!==i):o=a,i=qn(i)}return t.set(e,r),r}function CC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?_a(t)?[]:SC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const p=dp(t,d,o);return u.top=nt(p.top,u.top),u.right=Yn(p.right,u.right),u.bottom=Yn(p.bottom,u.bottom),u.left=nt(p.left,u.left),u},dp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function EC(e){const{width:t,height:n}=iv(e);return{width:t,height:n}}function kC(e,t,n){const r=Gt(t),o=Kt(t),s=n==="fixed",i=br(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Vt(0);function u(){l.x=od(o)}if(r||!r&&!s)if((No(t)!=="body"||_s(o))&&(a=Aa(t)),r){const f=br(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?lv(o,a):Vt(0),p=i.left+a.scrollLeft-l.x-d.x,y=i.top+a.scrollTop-l.y-d.y;return{x:p,y,width:i.width,height:i.height}}function kl(e){return _t(e).position==="static"}function fp(e,t){if(!Gt(e)||_t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Kt(e)===n&&(n=n.ownerDocument.body),n}function cv(e,t){const n=st(e);if(_a(e))return n;if(!Gt(e)){let o=qn(e);for(;o&&!yo(o);){if(Ot(o)&&!kl(o))return o;o=qn(o)}return n}let r=fp(e,t);for(;r&&aC(r)&&kl(r);)r=fp(r,t);return r&&yo(r)&&kl(r)&&!td(r)?n:r||fC(e)||n}const NC=async function(e){const t=this.getOffsetParent||cv,n=this.getDimensions,r=await n(e.floating);return{reference:kC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function TC(e){return _t(e).direction==="rtl"}const PC={convertOffsetParentRelativeRectToViewportRelativeRect:gC,getDocumentElement:Kt,getClippingRect:CC,getOffsetParent:cv,getElementRects:NC,getClientRects:vC,getDimensions:EC,getScale:eo,isElement:Ot,isRTL:TC};function dv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function RC(e,t){let n=null,r;const o=Kt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:y,height:f}=u;if(a||t(),!y||!f)return;const b=oi(p),g=oi(o.clientWidth-(d+y)),x=oi(o.clientHeight-(p+f)),h=oi(d),w={rootMargin:-b+"px "+-g+"px "+-x+"px "+-h+"px",threshold:nt(0,Yn(1,l))||1};let S=!0;function C(N){const E=N[0].intersectionRatio;if(E!==l){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!dv(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return i(!0),s}function jC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=rd(e),d=o||s?[...u?ws(u):[],...ws(t)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=u&&a?RC(u,n):null;let y=-1,f=null;i&&(f=new ResizeObserver(h=>{let[m]=h;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let b,g=l?br(e):null;l&&x();function x(){const h=br(e);g&&!dv(g,h)&&n(),g=h,b=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),p==null||p(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const OC=tC,_C=nC,AC=ZS,DC=oC,MC=JS,pp=XS,LC=rC,IC=(e,t,n)=>{const r=new Map,o={platform:PC,...n},s={...o.platform,_c:r};return qS(e,t,{...o,platform:s})};var FC=typeof document<"u",$C=function(){},Ci=FC?v.useLayoutEffect:$C;function oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!oa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function fv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hp(e,t){const n=fv(e);return Math.round(t*n)/n}function Nl(e){const t=v.useRef(e);return Ci(()=>{t.current=e}),t}function zC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,f]=v.useState(r);oa(y,r)||f(r);const[b,g]=v.useState(null),[x,h]=v.useState(null),m=v.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),w=v.useCallback(k=>{k!==E.current&&(E.current=k,h(k))},[]),S=s||b,C=i||x,N=v.useRef(null),E=v.useRef(null),R=v.useRef(d),D=l!=null,L=Nl(l),W=Nl(o),$=Nl(u),V=v.useCallback(()=>{if(!N.current||!E.current)return;const k={placement:t,strategy:n,middleware:y};W.current&&(k.platform=W.current),IC(N.current,E.current,k).then(P=>{const A={...P,isPositioned:$.current!==!1};F.current&&!oa(R.current,A)&&(R.current=A,Rs.flushSync(()=>{p(A)}))})},[y,t,n,W,$]);Ci(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const F=v.useRef(!1);Ci(()=>(F.current=!0,()=>{F.current=!1}),[]),Ci(()=>{if(S&&(N.current=S),C&&(E.current=C),S&&C){if(L.current)return L.current(S,C,V);V()}},[S,C,V,L,D]);const I=v.useMemo(()=>({reference:N,floating:E,setReference:m,setFloating:w}),[m,w]),T=v.useMemo(()=>({reference:S,floating:C}),[S,C]),O=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!T.floating)return k;const P=hp(T.floating,d.x),A=hp(T.floating,d.y);return a?{...k,transform:"translate("+P+"px, "+A+"px)",...fv(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:A}},[n,a,T.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:V,refs:I,elements:T,floatingStyles:O}),[d,V,I,T,O])}const BC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pp({element:r.current,padding:o}).fn(n):{}:r?pp({element:r,padding:o}).fn(n):{}}}},UC=(e,t)=>({...OC(e),options:[e,t]}),WC=(e,t)=>({..._C(e),options:[e,t]}),HC=(e,t)=>({...LC(e),options:[e,t]}),VC=(e,t)=>({...AC(e),options:[e,t]}),QC=(e,t)=>({...DC(e),options:[e,t]}),GC=(e,t)=>({...MC(e),options:[e,t]}),KC=(e,t)=>({...BC(e),options:[e,t]});var YC="Arrow",pv=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(xe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});pv.displayName=YC;var qC=pv;function XC(e){const[t,n]=v.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var hv="Popper",[mv,gv]=js(hv),[xk,vv]=mv(hv),yv="PopperAnchor",xv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=vv(yv,n),i=v.useRef(null),a=Be(t,i);return v.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(xe.div,{...o,ref:a})});xv.displayName=yv;var sd="PopperContent",[ZC,JC]=mv(sd),wv=v.forwardRef((e,t)=>{var J,pn,X,ae,Dt,kr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:f="optimized",onPlaced:b,...g}=e,x=vv(sd,n),[h,m]=v.useState(null),w=Be(t,hn=>m(hn)),[S,C]=v.useState(null),N=XC(S),E=(N==null?void 0:N.width)??0,R=(N==null?void 0:N.height)??0,D=r+(s!=="center"?"-"+s:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],$=W.length>0,V={padding:L,boundary:W.filter(t2),altBoundary:$},{refs:F,floatingStyles:I,placement:T,isPositioned:O,middlewareData:k}=zC({strategy:"fixed",placement:D,whileElementsMounted:(...hn)=>jC(...hn,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[UC({mainAxis:o+R,alignmentAxis:i}),l&&WC({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?HC():void 0,...V}),l&&VC({...V}),QC({...V,apply:({elements:hn,rects:As,availableWidth:Ua,availableHeight:Ds})=>{const{width:Wa,height:To}=As.reference,Nr=hn.floating.style;Nr.setProperty("--radix-popper-available-width",`${Ua}px`),Nr.setProperty("--radix-popper-available-height",`${Ds}px`),Nr.setProperty("--radix-popper-anchor-width",`${Wa}px`),Nr.setProperty("--radix-popper-anchor-height",`${To}px`)}}),S&&KC({element:S,padding:a}),n2({arrowWidth:E,arrowHeight:R}),y&&GC({strategy:"referenceHidden",...V})]}),[P,A]=Cv(T),U=Qt(b);un(()=>{O&&(U==null||U())},[O,U]);const z=(J=k.arrow)==null?void 0:J.x,H=(pn=k.arrow)==null?void 0:pn.y,Y=((X=k.arrow)==null?void 0:X.centerOffset)!==0,[he,Ce]=v.useState();return un(()=>{h&&Ce(window.getComputedStyle(h).zIndex)},[h]),c.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:O?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(ae=k.transformOrigin)==null?void 0:ae.x,(Dt=k.transformOrigin)==null?void 0:Dt.y].join(" "),...((kr=k.hide)==null?void 0:kr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ZC,{scope:n,placedSide:P,onArrowChange:C,arrowX:z,arrowY:H,shouldHideArrow:Y,children:c.jsx(xe.div,{"data-side":P,"data-align":A,...g,ref:w,style:{...g.style,animation:O?void 0:"none"}})})})});wv.displayName=sd;var bv="PopperArrow",e2={top:"bottom",right:"left",bottom:"top",left:"right"},Sv=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=JC(bv,r),i=e2[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(qC,{...o,ref:n,style:{...o.style,display:"block"}})})});Sv.displayName=bv;function t2(e){return e!==null}var n2=e=>({name:"transformOrigin",options:e,fn(t){var x,h,m;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Cv(n),p={start:"0%",center:"50%",end:"100%"}[d],y=(((h=o.arrow)==null?void 0:h.x)??0)+a/2,f=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=i?p:`${y}px`,g=`${-l}px`):u==="top"?(b=i?p:`${y}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=i?p:`${f}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=i?p:`${f}px`),{data:{x:b,y:g}}}});function Cv(e){const[t,n="center"]=e.split("-");return[t,n]}var r2=xv,o2=wv,s2=Sv,[Da,wk]=js("Tooltip",[gv]),id=gv(),Ev="TooltipProvider",i2=700,mp="tooltip.open",[a2,kv]=Da(Ev),Nv=e=>{const{__scopeTooltip:t,delayDuration:n=i2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(a2,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Nv.displayName=Ev;var Tv="Tooltip",[bk,Ma]=Da(Tv),Hu="TooltipTrigger",l2=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ma(Hu,n),s=kv(Hu,n),i=id(n),a=v.useRef(null),l=Be(t,a,o.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),p=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(r2,{asChild:!0,...i,children:c.jsx(xe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ce(e.onPointerMove,y=>{y.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ce(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ce(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ce(e.onBlur,o.onClose),onClick:ce(e.onClick,o.onClose)})})});l2.displayName=Hu;var u2="TooltipPortal",[Sk,c2]=Da(u2,{forceMount:void 0}),xo="TooltipContent",Pv=v.forwardRef((e,t)=>{const n=c2(xo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ma(xo,e.__scopeTooltip);return c.jsx(Co,{present:r||i.open,children:i.disableHoverableContent?c.jsx(Rv,{side:o,...s,ref:t}):c.jsx(d2,{side:o,...s,ref:t})})}),d2=v.forwardRef((e,t)=>{const n=Ma(xo,e.__scopeTooltip),r=kv(xo,e.__scopeTooltip),o=v.useRef(null),s=Be(t,o),[i,a]=v.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,y=v.useCallback(()=>{a(null),p(!1)},[p]),f=v.useCallback((b,g)=>{const x=b.currentTarget,h={x:b.clientX,y:b.clientY},m=g2(h,x.getBoundingClientRect()),w=v2(h,m),S=y2(g.getBoundingClientRect()),C=w2([...w,...S]);a(C),p(!0)},[p]);return v.useEffect(()=>()=>y(),[y]),v.useEffect(()=>{if(l&&d){const b=x=>f(x,d),g=x=>f(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,f,y]),v.useEffect(()=>{if(i){const b=g=>{const x=g.target,h={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),w=!x2(h,i);m?y():w&&(y(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,u,y]),c.jsx(Rv,{...e,ref:s})}),[f2,p2]=Da(Tv,{isInside:!1}),h2=Jw("TooltipContent"),Rv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ma(xo,n),u=id(n),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(mp,d),()=>document.removeEventListener(mp,d)),[d]),v.useEffect(()=>{if(l.trigger){const p=y=>{const f=y.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(Pa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(o2,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(h2,{children:r}),c.jsx(f2,{scope:n,isInside:!0,children:c.jsx(Cb,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Pv.displayName=xo;var jv="TooltipArrow",m2=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=id(n);return p2(jv,n).isInside?null:c.jsx(s2,{...o,...r,ref:t})});m2.displayName=jv;function g2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function v2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function y2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function x2(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,d=a.y,p=l.x,y=l.y;d>r!=y>r&&n<(p-u)*(r-d)/(y-d)+u&&(o=!o)}return o}function w2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),b2(t)}function b2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var S2=Nv,Ov=Pv;const C2=S2,E2=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Ov,{ref:r,sideOffset:t,className:we("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));E2.displayName=Ov.displayName;const k2=({categories:e,selected:t,onSelect:n})=>c.jsx("div",{className:"rounded-2xl border border-slate-300 bg-slate-100 p-3 shadow-sm",children:c.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(r=>{const o=t===r;return c.jsx("button",{type:"button",onClick:()=>n(r),className:"rounded-full border px-4 py-2 text-sm font-semibold tracking-wide transition-all",style:{borderColor:o?"#0f6ea8":"#cbd5e1",backgroundColor:o?"#0f6ea8":"#ffffff",color:o?"#ffffff":"#1e293b",boxShadow:o?"0 6px 18px rgba(15,110,168,0.22)":"0 1px 2px rgba(15,23,42,0.04)"},children:r},r)})})}),N2=({products:e,onAdd:t,onReorder:n})=>{const[r,o]=v.useState(null);return c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:e.map(s=>c.jsxs("button",{draggable:!!n,onDragStart:()=>o(s.id),onDragEnd:()=>o(null),onDragOver:i=>{n&&i.preventDefault()},onDrop:i=>{!n||!r||r===s.id||(i.preventDefault(),n(r,s.id),o(null))},onClick:()=>t(s),className:`flex min-h-[164px] flex-col items-center gap-3 rounded-xl bg-card p-4 shadow-sm border transition-all active:scale-95 ${r===s.id?"border-primary shadow-lg opacity-70 cursor-grabbing":"border-border hover:shadow-md hover:border-primary/30 cursor-grab"}`,children:[s.imageUrl?c.jsx("img",{src:s.imageUrl,alt:s.name,className:"h-20 w-20 rounded-2xl border border-border object-cover"}):c.jsx("span",{className:"rounded-full bg-secondary px-4 py-1.5 text-base font-extrabold leading-none text-muted-foreground",children:s.emoji}),c.jsx("span",{className:"flex min-h-[40px] items-center justify-center rounded-lg bg-slate-100 px-3 py-2 text-center text-sm font-bold leading-tight text-slate-900 w-full",children:s.name}),c.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:s.category}),c.jsxs("span",{className:"text-sm font-bold text-primary",children:["$",s.price.toFixed(2)]})]},s.id))})},T2=({items:e,onUpdateQty:t,onRemove:n,onCheckout:r,onClear:o})=>{const s=e.reduce((l,u)=>l+u.price*u.quantity,0),i=e.reduce((l,u)=>l+u.quantity,0),a=e.reduce((l,u)=>u.taxRate?l+u.price*u.quantity*(u.taxRate/100):l,0);return c.jsxs("div",{className:"flex h-full w-full flex-col rounded-2xl border border-border bg-card shadow-sm",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(np,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Ticket"}),i>0&&c.jsx("span",{className:"rounded-full bg-primary px-2 py-0.5 text-xs font-bold text-primary-foreground",children:i})]}),e.length>0&&c.jsx("button",{onClick:o,className:"text-xs font-semibold text-destructive hover:underline",children:"Clear"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-2 space-y-1",children:e.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground py-12",children:[c.jsx(np,{className:"h-12 w-12 mb-2 opacity-30"}),c.jsx("p",{className:"text-sm",children:"No items yet"})]}):e.map(l=>c.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-background p-2",children:[c.jsx("span",{className:"text-xl",children:l.emoji}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-semibold text-foreground truncate",children:l.name}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["$",l.price.toFixed(2)," each"]})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("button",{onClick:()=>t(l.id,-1),className:"rounded-md bg-secondary p-1 hover:bg-border transition-colors",children:c.jsx(Gb,{className:"h-3.5 w-3.5"})}),c.jsx("span",{className:"w-6 text-center text-sm font-bold",children:l.quantity}),c.jsx("button",{onClick:()=>t(l.id,1),className:"rounded-md bg-secondary p-1 hover:bg-border transition-colors",children:c.jsx(Kb,{className:"h-3.5 w-3.5"})})]}),c.jsxs("p",{className:"w-16 text-right text-sm font-bold text-foreground",children:["$",(l.price*l.quantity).toFixed(2)]}),c.jsx("button",{onClick:()=>n(l.id),className:"rounded-md p-1 text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(eS,{className:"h-3.5 w-3.5"})})]},l.id))}),c.jsxs("div",{className:"border-t border-border px-4 py-3 space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-baseline",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:"Subtotal"}),c.jsxs("span",{className:"text-sm font-semibold text-foreground",children:["$",s.toFixed(2)]})]}),a>0&&c.jsxs("div",{className:"flex justify-between items-baseline",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:"Tax"}),c.jsxs("span",{className:"text-sm font-semibold text-foreground",children:["$",a.toFixed(2)]})]}),c.jsxs("div",{className:"flex justify-between items-baseline pt-1 border-t border-border",children:[c.jsx("span",{className:"text-base font-semibold text-muted-foreground",children:"Total"}),c.jsxs("span",{className:"text-2xl font-extrabold text-foreground",children:["$",(s+a).toFixed(2)]})]}),c.jsx("button",{onClick:r,disabled:e.length===0,className:"w-full rounded-xl bg-success py-3 text-base font-bold text-success-foreground shadow-md hover:opacity-90 transition-opacity disabled:opacity-40 disabled:cursor-not-allowed active:scale-[0.98]",children:"Checkout"})]})]})};function P2(e){return e.replace(/\/+$/,"")}function ad(){const t=P2("/NAOPOS/dist/");return t.endsWith("/dist")?t.replace(/\/dist$/,"/api"):t===""?"/api":`${t}/api`}const _v=ad(),Wo=[{id:"unleaded",label:"Unleaded",shortLabel:"GAS",taxable:!0,reportCategory:"Unleaded"},{id:"unleaded-plus",label:"Unleaded Plus",shortLabel:"GAS+",taxable:!0,reportCategory:"Unleaded Plus"},{id:"diesel",label:"Diesel",shortLabel:"DSL",taxable:!0,reportCategory:"Diesel"},{id:"off-road-diesel",label:"Off Road Diesel",shortLabel:"ORD",taxable:!1,reportCategory:"Off Road Diesel"},{id:"hardware",label:"Hardware",shortLabel:"HDW",taxable:!0,reportCategory:"Hardware"},{id:"oil",label:"Oil",shortLabel:"OIL",taxable:!0,reportCategory:"Oil"}],Cn={groceryTaxRate:2,quickButtons:Wo},Av=["Taxable","Non-Taxable","Unleaded","Unleaded Plus","Diesel","Off Road Diesel","Oil","Hardware","Other"],Dv=Av;function R2(e,t,n){return{id:e.id||n.id||`button-${t}`,label:e.label||n.label||"Item",shortLabel:e.shortLabel||n.shortLabel||"BTN",taxable:!!e.taxable,taxRate:typeof e.taxRate=="number"&&!Number.isNaN(e.taxRate)?e.taxRate:n.taxRate,reportCategory:Av.includes(e.reportCategory)?e.reportCategory:n.reportCategory}}function j2(e){const t=e!=null&&e.quickButtons&&e.quickButtons.length>0?e.quickButtons:Wo;return{groceryTaxRate:typeof(e==null?void 0:e.groceryTaxRate)=="number"&&!Number.isNaN(e.groceryTaxRate)?e.groceryTaxRate:Cn.groceryTaxRate,quickButtons:t.map((n,r)=>R2(n,r,Wo[r]||Wo[Wo.length-1]))}}async function O2(){try{const e=await fetch(`${_v}/settings.php`);if(!e.ok)return null;const t=await e.json();return j2(t)}catch(e){return console.error("Failed to load POS settings",e),null}}async function _2(e){try{return(await fetch(`${_v}/settings.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok}catch(t){return console.error("Failed to save POS settings",t),!1}}const A2=({onAddItem:e})=>{const[t,n]=v.useState("0.00"),[r,o]=v.useState(!0),[s,i]=v.useState(Cn.groceryTaxRate),[a,l]=v.useState(!1),[u,d]=v.useState(Cn.groceryTaxRate.toString()),[p,y]=v.useState(!1),[f,b]=v.useState(Cn.quickButtons),[g,x]=v.useState(!1),[h,m]=v.useState(""),[w,S]=v.useState(null),[C,N]=v.useState(null),E=T=>((parseInt(T,10)||0)/100).toFixed(2);v.useEffect(()=>{let T=!0;return(async()=>{const k=await O2();if(!T)return;const P=k??Cn;b(P.quickButtons),i(P.groceryTaxRate),d(P.groceryTaxRate.toString()),x(!0)})(),()=>{T=!1}},[]),v.useEffect(()=>{if(!g)return;const T=window.setTimeout(async()=>{const O=await _2({groceryTaxRate:s,quickButtons:f});m(O?"Saved for all devices":"Save failed")},500);return()=>window.clearTimeout(T)},[s,f,g]);const R=T=>{n(O=>{const P=`${O.replace(".","").replace(/^0+/,"")}${T}`;return E(P)})},D=()=>n("0.00"),L=()=>{n(T=>{const O=T.replace(".","").replace(/^0+/,""),k=O.length<=1?"0":O.slice(0,-1);return E(k)})},W=(T="Item",O,k,P)=>{const A=O!==void 0?O:r,U=parseFloat(t),H=U<=0&&C&&C.label===T&&C.taxable===A&&C.taxRate===k&&C.reportCategory===P?C.amount:U;H<=0||(e(H,T,A,k,P),T!=="Item"&&N({amount:H,label:T,taxable:A,taxRate:k,reportCategory:P}),n("0.00"))},$=()=>{const T=parseFloat(u);!Number.isNaN(T)&&T>=0&&T<=100&&i(T),l(!1)},V=(T,O,k)=>{b(P=>P.map(A=>{if(A.id!==T)return A;const U={...A,[O]:k};if(O==="reportCategory"){const z=k;z==="Non-Taxable"?(U.taxable=!1,U.taxRate=void 0):z==="Taxable"&&!U.taxRate&&(U.taxable=!0,U.taxRate=s)}return O==="taxable"&&k===!1&&(U.taxRate=void 0),O==="taxable"&&k===!0&&!U.taxRate&&(U.taxRate=s),U}))},F=()=>{b(Cn.quickButtons),i(Cn.groceryTaxRate),d(Cn.groceryTaxRate.toString())},I=(T,O)=>{b(k=>{const P=k.findIndex(H=>H.id===T),A=k.findIndex(H=>H.id===O);if(P<0||A<0||P===A)return k;const U=[...k],[z]=U.splice(P,1);return U.splice(A,0,z),U})};return c.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl border border-border bg-card p-3 shadow-sm",children:[c.jsxs("div",{className:"rounded-xl border border-border bg-background px-4 py-3 text-right",children:[c.jsx("div",{className:"mb-0.5 text-xs font-semibold text-muted-foreground",children:r?"TAX":"NO TAX"}),c.jsxs("div",{className:"font-mono text-3xl font-extrabold tracking-tight text-foreground",children:["$",t]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx("button",{onClick:()=>o(!0),className:`rounded-lg py-2 text-sm font-bold transition-all ${r?"bg-primary text-primary-foreground shadow":"bg-secondary text-secondary-foreground"}`,children:"Taxable"}),c.jsx("button",{onClick:()=>o(!1),className:`rounded-lg py-2 text-sm font-bold transition-all ${r?"bg-secondary text-secondary-foreground":"bg-primary text-primary-foreground shadow"}`,children:"Non-Taxable"})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[["7","8","9","4","5","6","1","2","3"].map(T=>c.jsx("button",{onClick:()=>R(T),className:"rounded-lg border border-border bg-background py-3 text-lg font-bold text-foreground transition-all hover:bg-secondary active:scale-95",children:T},T)),c.jsx("button",{onClick:D,className:"rounded-lg border border-destructive/20 bg-destructive/10 py-3 text-sm font-bold text-destructive transition-all hover:bg-destructive/20 active:scale-95",children:"CLR"}),c.jsx("button",{onClick:()=>R("0"),className:"rounded-lg border border-border bg-background py-3 text-lg font-bold text-foreground transition-all hover:bg-secondary active:scale-95",children:"0"}),c.jsx("button",{onClick:L,className:"flex items-center justify-center rounded-lg border border-border bg-background py-3 text-lg font-bold text-foreground transition-all hover:bg-secondary active:scale-95",children:c.jsx(Hg,{className:"h-5 w-5"})})]}),c.jsx("button",{onClick:()=>W(),className:"rounded-xl bg-success py-3 text-base font-bold text-success-foreground shadow-md transition-all hover:opacity-90 active:scale-[0.98]",children:"Enter"}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{onClick:()=>W(`Grocery (${s}%)`,!0,s,"Taxable"),className:"flex w-full items-center justify-center gap-1 rounded-lg border border-success/30 bg-success/15 py-2.5 text-xs font-bold text-foreground transition-all hover:bg-success hover:text-success-foreground active:scale-95",children:[c.jsx("span",{children:"GRC"}),c.jsxs("span",{children:["Grocery (",s,"%)"]})]}),c.jsx("button",{onClick:()=>{d(s.toString()),l(!0)},className:"absolute -right-1 -top-1 rounded-full bg-muted p-1 transition-colors hover:bg-border",title:"Edit tax rate",children:c.jsx(Zb,{className:"h-3 w-3 text-muted-foreground"})})]}),c.jsxs("button",{onClick:()=>W("Grocery (No Tax)",!1,void 0,"Non-Taxable"),className:"flex items-center justify-center gap-1 rounded-lg border border-border bg-secondary py-2.5 text-xs font-bold text-foreground transition-all hover:bg-muted-foreground hover:text-background active:scale-95",children:[c.jsx("span",{children:"GRC"}),c.jsx("span",{children:"Non-Tax Grocery"})]})]}),a&&c.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-background p-3",children:[c.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"Grocery Tax Rate (%)"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{type:"number",min:"0",max:"100",step:"0.01",value:u,onChange:T=>d(T.target.value),className:"flex-1 rounded-lg border border-border bg-card px-3 py-2 text-sm font-bold text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),c.jsx("button",{onClick:$,className:"rounded-lg bg-primary px-4 py-2 text-sm font-bold text-primary-foreground transition-opacity hover:opacity-90",children:"Save"})]})]}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:f.map(T=>c.jsxs("button",{draggable:!0,onDragStart:()=>S(T.id),onDragEnd:()=>S(null),onDragOver:O=>O.preventDefault(),onDrop:O=>{!w||w===T.id||(O.preventDefault(),I(w,T.id),S(null))},onClick:()=>W(T.label,T.taxable,T.taxable?T.taxRate:void 0,T.reportCategory),className:`flex items-center justify-center gap-2 rounded-lg border py-3 text-sm font-bold text-foreground transition-all hover:bg-primary hover:text-primary-foreground active:scale-95 ${w===T.id?"border-primary bg-primary/10 opacity-70 shadow-lg cursor-grabbing":"border-primary/20 bg-warm-light cursor-grab"}`,title:"Click to use. Click and drag to reorder.",children:[c.jsx("span",{className:"text-base leading-none",children:T.shortLabel}),c.jsx("span",{children:T.label})]},T.id))}),c.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-background p-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Large Button Setup"}),c.jsxs("div",{className:"flex items-center gap-2",children:[h&&c.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground",children:h}),c.jsx("button",{onClick:()=>y(T=>!T),className:"rounded-lg bg-secondary px-3 py-1.5 text-xs font-bold text-secondary-foreground transition-all hover:bg-border",children:p?"Hide Setup":"Edit Buttons"})]})]}),p&&c.jsxs("div",{className:"space-y-3",children:[f.map(T=>c.jsxs("div",{className:"space-y-2 rounded-lg border border-border bg-card p-3",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Label",c.jsx("input",{value:T.label,onChange:O=>V(T.id,"label",O.target.value),className:"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary"})]}),c.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Short Tag",c.jsx("input",{value:T.shortLabel,onChange:O=>V(T.id,"shortLabel",O.target.value),className:"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Report Bucket",c.jsx("select",{value:T.reportCategory,onChange:O=>V(T.id,"reportCategory",O.target.value),className:"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary",children:Dv.map(O=>c.jsx("option",{value:O,children:O},O))})]}),c.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Tax Rule",c.jsxs("select",{value:T.taxable?"taxable":"non-taxable",onChange:O=>V(T.id,"taxable",O.target.value==="taxable"),className:"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary",children:[c.jsx("option",{value:"taxable",children:"Taxable"}),c.jsx("option",{value:"non-taxable",children:"Non-Taxable"})]})]})]}),c.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Tax Rate (%)",c.jsx("input",{type:"number",min:"0",max:"100",step:"0.01",value:T.taxRate??"",disabled:!T.taxable,onChange:O=>V(T.id,"taxRate",O.target.value===""?void 0:parseFloat(O.target.value)),className:"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50"})]})]},T.id)),c.jsx("button",{onClick:F,className:"w-full rounded-lg border border-border bg-secondary py-2 text-sm font-bold text-secondary-foreground transition-all hover:bg-border",children:"Reset Default Buttons"})]})]})]})};var Tl="focusScope.autoFocusOnMount",Pl="focusScope.autoFocusOnUnmount",gp={bubbles:!1,cancelable:!0},D2="FocusScope",Mv=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=v.useState(null),u=Qt(o),d=Qt(s),p=v.useRef(null),y=Be(t,g=>l(g)),f=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(w){if(f.paused||!a)return;const S=w.target;a.contains(S)?p.current=S:En(p.current,{select:!0})},x=function(w){if(f.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||En(p.current,{select:!0}))},h=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&En(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const m=new MutationObserver(h);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),m.disconnect()}}},[r,a,f.paused]),v.useEffect(()=>{if(a){yp.add(f);const g=document.activeElement;if(!a.contains(g)){const h=new CustomEvent(Tl,gp);a.addEventListener(Tl,u),a.dispatchEvent(h),h.defaultPrevented||(M2(z2(Lv(a)),{select:!0}),document.activeElement===g&&En(a))}return()=>{a.removeEventListener(Tl,u),setTimeout(()=>{const h=new CustomEvent(Pl,gp);a.addEventListener(Pl,d),a.dispatchEvent(h),h.defaultPrevented||En(g??document.body,{select:!0}),a.removeEventListener(Pl,d),yp.remove(f)},0)}}},[a,u,d,f]);const b=v.useCallback(g=>{if(!n&&!r||f.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,h=document.activeElement;if(x&&h){const m=g.currentTarget,[w,S]=L2(m);w&&S?!g.shiftKey&&h===S?(g.preventDefault(),n&&En(w,{select:!0})):g.shiftKey&&h===w&&(g.preventDefault(),n&&En(S,{select:!0})):h===m&&g.preventDefault()}},[n,r,f.paused]);return c.jsx(xe.div,{tabIndex:-1,...i,ref:y,onKeyDown:b})});Mv.displayName=D2;function M2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(En(r,{select:t}),document.activeElement!==n)return}function L2(e){const t=Lv(e),n=vp(t,e),r=vp(t.reverse(),e);return[n,r]}function Lv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vp(e,t){for(const n of e)if(!I2(n,{upTo:t}))return n}function I2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F2(e){return e instanceof HTMLInputElement&&"select"in e}function En(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F2(e)&&t&&e.select()}}var yp=$2();function $2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xp(e,t),e.unshift(t)},remove(t){var n;e=xp(e,t),(n=e[0])==null||n.resume()}}}function xp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function z2(e){return e.filter(t=>t.tagName!=="A")}var Rl=0;function B2(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wp()),document.body.insertAdjacentElement("beforeend",e[1]??wp()),Rl++,()=>{Rl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rl--}},[])}function wp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bt=function(){return Bt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Bt.apply(this,arguments)};function Iv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function U2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ei="right-scroll-bar-position",ki="width-before-scroll-bar",W2="with-scroll-bars-hidden",H2="--removed-body-scroll-bar-size";function jl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function V2(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Q2=typeof window<"u"?v.useLayoutEffect:v.useEffect,bp=new WeakMap;function G2(e,t){var n=V2(null,function(r){return e.forEach(function(o){return jl(o,r)})});return Q2(function(){var r=bp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||jl(a,null)}),s.forEach(function(a){o.has(a)||jl(a,i)})}bp.set(n,e)},[e]),n}function K2(e){return e}function Y2(e,t){t===void 0&&(t=K2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function q2(e){e===void 0&&(e={});var t=Y2(null);return t.options=Bt({async:!0,ssr:!1},e),t}var Fv=function(e){var t=e.sideCar,n=Iv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Bt({},n))};Fv.isSideCarExport=!0;function X2(e,t){return e.useMedium(t),Fv}var $v=q2(),Ol=function(){},La=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Ol,onWheelCapture:Ol,onTouchMoveCapture:Ol}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,y=e.sideCar,f=e.noRelative,b=e.noIsolation,g=e.inert,x=e.allowPinchZoom,h=e.as,m=h===void 0?"div":h,w=e.gapMode,S=Iv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=y,N=G2([n,t]),E=Bt(Bt({},S),o);return v.createElement(v.Fragment,null,d&&v.createElement(C,{sideCar:$v,removeScrollBar:u,shards:p,noRelative:f,noIsolation:b,inert:g,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:w}),i?v.cloneElement(v.Children.only(a),Bt(Bt({},E),{ref:N})):v.createElement(m,Bt({},E,{className:l,ref:N}),a))});La.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};La.classNames={fullWidth:ki,zeroRight:Ei};var Z2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Z2();return t&&e.setAttribute("nonce",t),e}function eE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=J2())&&(eE(t,n),tE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rE=function(){var e=nE();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zv=function(){var e=rE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},oE={left:0,top:0,right:0,gap:0},_l=function(e){return parseInt(e||"",10)||0},sE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_l(n),_l(r),_l(o)]},iE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oE;var t=sE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},aE=zv(),to="data-scroll-locked",lE=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(W2,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body[`).concat(to,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(a,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Ei,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(ki,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(Ei," .").concat(Ei,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(ki," .").concat(ki,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(to,`] {
    `).concat(H2,": ").concat(a,`px;
  }
`)},Sp=function(){var e=parseInt(document.body.getAttribute(to)||"0",10);return isFinite(e)?e:0},uE=function(){v.useEffect(function(){return document.body.setAttribute(to,(Sp()+1).toString()),function(){var e=Sp()-1;e<=0?document.body.removeAttribute(to):document.body.setAttribute(to,e.toString())}},[])},cE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;uE();var s=v.useMemo(function(){return iE(o)},[o]);return v.createElement(aE,{styles:lE(s,!t,o,n?"":"!important")})},Vu=!1;if(typeof window<"u")try{var si=Object.defineProperty({},"passive",{get:function(){return Vu=!0,!0}});window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{Vu=!1}var Or=Vu?{passive:!1}:!1,dE=function(e){return e.tagName==="TEXTAREA"},Bv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dE(e)&&n[t]==="visible")},fE=function(e){return Bv(e,"overflowY")},pE=function(e){return Bv(e,"overflowX")},Cp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Uv(e,r);if(o){var s=Wv(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Uv=function(e,t){return e==="v"?fE(t):pE(t)},Wv=function(e,t){return e==="v"?hE(t):mE(t)},gE=function(e,t){return e==="h"&&t==="rtl"?-1:1},vE=function(e,t,n,r,o){var s=gE(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,y=0;do{if(!a)break;var f=Wv(e,a),b=f[0],g=f[1],x=f[2],h=g-x-s*b;(b||h)&&Uv(e,a)&&(p+=h,y+=b);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(y)<1||!o))&&(u=!0),u},ii=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ep=function(e){return[e.deltaX,e.deltaY]},kp=function(e){return e&&"current"in e?e.current:e},yE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xE=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},wE=0,_r=[];function bE(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(wE++)[0],s=v.useState(zv)[0],i=v.useRef(e);v.useEffect(function(){i.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=U2([e.lockRef.current],(e.shards||[]).map(kp),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var h=ii(g),m=n.current,w="deltaX"in g?g.deltaX:m[0]-h[0],S="deltaY"in g?g.deltaY:m[1]-h[1],C,N=g.target,E=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in g&&E==="h"&&N.type==="range")return!1;var R=Cp(E,N);if(!R)return!0;if(R?C=E:(C=E==="v"?"h":"v",R=Cp(E,N)),!R)return!1;if(!r.current&&"changedTouches"in g&&(w||S)&&(r.current=C),!C)return!0;var D=r.current||C;return vE(D,x,g,D==="h"?w:S,!0)},[]),l=v.useCallback(function(g){var x=g;if(!(!_r.length||_r[_r.length-1]!==s)){var h="deltaY"in x?Ep(x):ii(x),m=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&yE(C.delta,h)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}if(!m){var w=(i.current.shards||[]).map(kp).filter(Boolean).filter(function(C){return C.contains(x.target)}),S=w.length>0?a(x,w[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=v.useCallback(function(g,x,h,m){var w={name:g,delta:x,target:h,should:m,shadowParent:SE(h)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=v.useCallback(function(g){n.current=ii(g),r.current=void 0},[]),p=v.useCallback(function(g){u(g.type,Ep(g),g.target,a(g,e.lockRef.current))},[]),y=v.useCallback(function(g){u(g.type,ii(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return _r.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",l,Or),document.addEventListener("touchmove",l,Or),document.addEventListener("touchstart",d,Or),function(){_r=_r.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Or),document.removeEventListener("touchmove",l,Or),document.removeEventListener("touchstart",d,Or)}},[]);var f=e.removeScrollBar,b=e.inert;return v.createElement(v.Fragment,null,b?v.createElement(s,{styles:xE(o)}):null,f?v.createElement(cE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CE=X2($v,bE);var Hv=v.forwardRef(function(e,t){return v.createElement(La,Bt({},e,{ref:t,sideCar:CE}))});Hv.classNames=La.classNames;var EE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ar=new WeakMap,ai=new WeakMap,li={},Al=0,Vv=function(e){return e&&(e.host||Vv(e.parentNode))},kE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Vv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},NE=function(e,t,n,r){var o=kE(t,Array.isArray(e)?e:[e]);li[n]||(li[n]=new WeakMap);var s=li[n],i=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(y){if(a.has(y))d(y);else try{var f=y.getAttribute(r),b=f!==null&&f!=="false",g=(Ar.get(y)||0)+1,x=(s.get(y)||0)+1;Ar.set(y,g),s.set(y,x),i.push(y),g===1&&b&&ai.set(y,!0),x===1&&y.setAttribute(n,"true"),b||y.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",y,h)}})};return d(t),a.clear(),Al++,function(){i.forEach(function(p){var y=Ar.get(p)-1,f=s.get(p)-1;Ar.set(p,y),s.set(p,f),y||(ai.has(p)||p.removeAttribute(r),ai.delete(p)),f||p.removeAttribute(n)}),Al--,Al||(Ar=new WeakMap,Ar=new WeakMap,ai=new WeakMap,li={})}},TE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=EE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),NE(r,o,n,"aria-hidden")):function(){return null}},Ia="Dialog",[Qv,Ck]=js(Ia),[PE,At]=Qv(Ia),Gv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=v.useRef(null),l=v.useRef(null),[u,d]=xg({prop:r,defaultProp:o??!1,onChange:s,caller:Ia});return c.jsx(PE,{scope:t,triggerRef:a,contentRef:l,contentId:El(),titleId:El(),descriptionId:El(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};Gv.displayName=Ia;var Kv="DialogTrigger",RE=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(Kv,n),s=Be(t,o.triggerRef);return c.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cd(o.open),...r,ref:s,onClick:ce(e.onClick,o.onOpenToggle)})});RE.displayName=Kv;var ld="DialogPortal",[jE,Yv]=Qv(ld,{forceMount:void 0}),qv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=At(ld,t);return c.jsx(jE,{scope:t,forceMount:n,children:v.Children.map(r,i=>c.jsx(Co,{present:n||s.open,children:c.jsx(Gc,{asChild:!0,container:o,children:i})}))})};qv.displayName=ld;var sa="DialogOverlay",Xv=v.forwardRef((e,t)=>{const n=Yv(sa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=At(sa,e.__scopeDialog);return s.modal?c.jsx(Co,{present:r||s.open,children:c.jsx(_E,{...o,ref:t})}):null});Xv.displayName=sa;var OE=ea("DialogOverlay.RemoveScroll"),_E=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(sa,n);return c.jsx(Hv,{as:OE,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(xe.div,{"data-state":cd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Sr="DialogContent",Zv=v.forwardRef((e,t)=>{const n=Yv(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=At(Sr,e.__scopeDialog);return c.jsx(Co,{present:r||s.open,children:s.modal?c.jsx(AE,{...o,ref:t}):c.jsx(DE,{...o,ref:t})})});Zv.displayName=Sr;var AE=v.forwardRef((e,t)=>{const n=At(Sr,e.__scopeDialog),r=v.useRef(null),o=Be(t,n.contentRef,r);return v.useEffect(()=>{const s=r.current;if(s)return TE(s)},[]),c.jsx(Jv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,s=>s.preventDefault())})}),DE=v.forwardRef((e,t)=>{const n=At(Sr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return c.jsx(Jv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Jv=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=At(Sr,n),l=v.useRef(null),u=Be(t,l);return B2(),c.jsxs(c.Fragment,{children:[c.jsx(Mv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Pa,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":cd(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(ME,{titleId:a.titleId}),c.jsx(IE,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ud="DialogTitle",ey=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(ud,n);return c.jsx(xe.h2,{id:o.titleId,...r,ref:t})});ey.displayName=ud;var ty="DialogDescription",ny=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(ty,n);return c.jsx(xe.p,{id:o.descriptionId,...r,ref:t})});ny.displayName=ty;var ry="DialogClose",oy=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(ry,n);return c.jsx(xe.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});oy.displayName=ry;function cd(e){return e?"open":"closed"}var sy="DialogTitleWarning",[Ek,iy]=qw(sy,{contentName:Sr,titleName:ud,docsSlug:"dialog"}),ME=({titleId:e})=>{const t=iy(sy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

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

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LE="DialogDescriptionWarning",IE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iy(LE).contentName}}.`;return v.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},FE=Gv,$E=qv,ay=Xv,ly=Zv,uy=ey,cy=ny,zE=oy;const dd=FE,BE=$E,dy=v.forwardRef(({className:e,...t},n)=>c.jsx(ay,{ref:n,className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));dy.displayName=ay.displayName;const Fa=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(BE,{children:[c.jsx(dy,{}),c.jsxs(ly,{ref:r,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,c.jsxs(zE,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(Vg,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fa.displayName=ly.displayName;const $a=({className:e,...t})=>c.jsx("div",{className:we("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$a.displayName="DialogHeader";const za=v.forwardRef(({className:e,...t},n)=>c.jsx(uy,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t}));za.displayName=uy.displayName;const UE=v.forwardRef(({className:e,...t},n)=>c.jsx(cy,{ref:n,className:we("text-sm text-muted-foreground",e),...t}));UE.displayName=cy.displayName;const WE=({open:e,onClose:t,onComplete:n,items:r})=>{const[o,s]=v.useState("method"),[i,a]=v.useState("0.00"),l=E=>((parseInt(E,10)||0)/100).toFixed(2),u=r.reduce((E,R)=>E+R.price*R.quantity,0),d=r.reduce((E,R)=>R.taxRate?E+R.price*R.quantity*(R.taxRate/100):E,0),p=u+d,y=E=>{a(R=>{const D=R.replace(".","").replace(/^0+/,"");return l(`${D}${E}`)})},f=()=>a("0.00"),b=()=>{a(E=>{const R=E.replace(".","").replace(/^0+/,""),D=R.length<=1?"0":R.slice(0,-1);return l(D)})},g=parseFloat(i),x=g-p,h=()=>{g>=p&&(n("cash",g),w())},m=()=>{n("credit"),w()},w=()=>{s("method"),a("0.00")},S=()=>{w(),t()},C=[1,5,10,20,50,100],N=E=>{a(l(Math.round(E*100).toString()))};return c.jsx(dd,{open:e,onOpenChange:S,children:c.jsxs(Fa,{className:"sm:max-w-md bg-card border-border",children:[c.jsx($a,{children:c.jsx(za,{className:"text-foreground text-lg font-extrabold",children:o==="method"?"Payment Method":"Cash Payment"})}),c.jsxs("div",{className:"rounded-xl bg-background border border-border px-4 py-3 text-center",children:[c.jsx("p",{className:"text-xs text-muted-foreground font-semibold",children:"Total Due"}),c.jsxs("p",{className:"text-3xl font-extrabold text-foreground font-mono",children:["$",p.toFixed(2)]})]}),o==="method"?c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("button",{onClick:()=>s("cash"),className:"flex flex-col items-center gap-2 rounded-xl bg-success/15 border border-success/30 p-6 hover:bg-success hover:text-success-foreground transition-all active:scale-95",children:[c.jsx(Ug,{className:"h-10 w-10"}),c.jsx("span",{className:"text-sm font-bold",children:"Cash"})]}),c.jsxs("button",{onClick:m,className:"flex flex-col items-center gap-2 rounded-xl bg-primary/15 border border-primary/30 p-6 hover:bg-primary hover:text-primary-foreground transition-all active:scale-95",children:[c.jsx(Wg,{className:"h-10 w-10"}),c.jsx("span",{className:"text-sm font-bold",children:"Credit Card"})]})]}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"rounded-xl bg-background border border-border px-4 py-3 text-right",children:[c.jsx("p",{className:"text-xs text-muted-foreground font-semibold",children:"Cash Tendered"}),c.jsxs("p",{className:"text-3xl font-extrabold text-foreground font-mono",children:["$",i]})]}),c.jsxs("div",{className:`rounded-xl border px-4 py-2 text-center ${g>=p?"bg-success/15 border-success/30":"bg-destructive/10 border-destructive/20"}`,children:[c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Change Due"}),c.jsxs("p",{className:`text-2xl font-extrabold font-mono ${g>=p?"text-success":"text-destructive"}`,children:["$",x>=0?x.toFixed(2):"โ€”"]})]}),c.jsx("div",{className:"grid grid-cols-3 gap-2",children:C.map(E=>c.jsxs("button",{onClick:()=>N(E),className:"rounded-lg bg-secondary border border-border py-2 text-sm font-bold text-foreground hover:bg-primary hover:text-primary-foreground active:scale-95 transition-all",children:["$",E]},E))}),c.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[["7","8","9","4","5","6","1","2","3"].map(E=>c.jsx("button",{onClick:()=>y(E),className:"rounded-lg bg-background border border-border py-2.5 text-lg font-bold text-foreground hover:bg-secondary active:scale-95 transition-all",children:E},E)),c.jsx("button",{onClick:f,className:"rounded-lg bg-destructive/10 border border-destructive/20 py-2.5 text-sm font-bold text-destructive active:scale-95 transition-all",children:"CLR"}),c.jsx("button",{onClick:()=>y("0"),className:"rounded-lg bg-background border border-border py-2.5 text-lg font-bold text-foreground hover:bg-secondary active:scale-95 transition-all",children:"0"}),c.jsx("button",{onClick:b,className:"rounded-lg bg-background border border-border py-2.5 text-lg font-bold text-foreground hover:bg-secondary active:scale-95 transition-all flex items-center justify-center",children:c.jsx(Hg,{className:"h-5 w-5"})})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx("button",{onClick:()=>s("method"),className:"rounded-xl bg-secondary py-3 text-sm font-bold text-secondary-foreground hover:bg-border transition-all",children:"Back"}),c.jsx("button",{onClick:h,disabled:g<p,className:"rounded-xl bg-success py-3 text-sm font-bold text-success-foreground shadow-md hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed active:scale-[0.98] transition-all",children:"Complete Sale"})]})]})]})})},fy=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})}));fy.displayName="Table";const py=v.forwardRef(({className:e,...t},n)=>c.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t}));py.displayName="TableHeader";const hy=v.forwardRef(({className:e,...t},n)=>c.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t}));hy.displayName="TableBody";const my=v.forwardRef(({className:e,...t},n)=>c.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));my.displayName="TableFooter";const Ni=v.forwardRef(({className:e,...t},n)=>c.jsx("tr",{ref:n,className:we("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ni.displayName="TableRow";const or=v.forwardRef(({className:e,...t},n)=>c.jsx("th",{ref:n,className:we("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));or.displayName="TableHead";const et=v.forwardRef(({className:e,...t},n)=>c.jsx("td",{ref:n,className:we("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));et.displayName="TableCell";const HE=v.forwardRef(({className:e,...t},n)=>c.jsx("caption",{ref:n,className:we("mt-4 text-sm text-muted-foreground",e),...t}));HE.displayName="TableCaption";const Np=["Taxable","Non-Taxable","Unleaded","Unleaded Plus","Diesel","Off Road Diesel","Oil","Hardware","Other"];function ia(e){const t=e.getFullYear(),n=`${e.getMonth()+1}`.padStart(2,"0"),r=`${e.getDate()}`.padStart(2,"0");return`${t}-${n}-${r}`}function Qu(e,t){const n=e.trim().toLowerCase();return n.includes("off road diesel")?"Off Road Diesel":n.includes("unleaded plus")?"Unleaded Plus":n.includes("unleaded")?"Unleaded":n.includes("diesel")?"Diesel":n.includes("oil")?"Oil":n.includes("hardware")?"Hardware":n.includes("taxable")?"Taxable":n.includes("non-tax")||n.includes("non tax")?"Non-Taxable":t?"Taxable":"Non-Taxable"}function VE(e){var i;const t=((i=e[0])==null?void 0:i.businessDate)??ia(new Date),n=new Map;for(const a of Np)n.set(a,{category:a,cashSales:0,cashTax:0,creditSales:0,creditTax:0,totalSales:0,totalTax:0,grandTotal:0});for(const a of e)for(const l of a.items){const u=n.get(l.reportCategory)??{category:l.reportCategory,cashSales:0,cashTax:0,creditSales:0,creditTax:0,totalSales:0,totalTax:0,grandTotal:0};a.paymentMethod==="cash"?(u.cashSales+=l.lineTotal,u.cashTax+=l.taxAmount):(u.creditSales+=l.lineTotal,u.creditTax+=l.taxAmount),u.totalSales+=l.lineTotal,u.totalTax+=l.taxAmount,u.grandTotal+=l.lineTotal+l.taxAmount,n.set(u.category,u)}const r=Np.map(a=>n.get(a)).filter(a=>a.totalSales>0||a.totalTax>0),o=e.filter(a=>a.paymentMethod==="cash").reduce((a,l)=>a+l.total,0),s=e.filter(a=>a.paymentMethod==="credit").reduce((a,l)=>a+l.total,0);return{businessDate:t,totalTransactions:e.length,totalSales:e.reduce((a,l)=>a+l.subtotal,0),totalTax:e.reduce((a,l)=>a+l.tax,0),cashTotal:o,creditTotal:s,categoryBreakdown:r}}const QE=({open:e,onClose:t,sales:n,onClearSales:r})=>{const o=VE(n),s=o.totalSales+o.totalTax;return c.jsx(dd,{open:e,onOpenChange:t,children:c.jsxs(Fa,{className:"max-h-[85vh] overflow-y-auto border-border bg-card sm:max-w-4xl",children:[c.jsxs($a,{children:[c.jsx(za,{className:"text-lg font-extrabold text-foreground",children:"End of Day Report"}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Business date: ",o.businessDate]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Grand Total"}),c.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",s.toFixed(2)]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.totalTransactions," transactions"]})]}),c.jsxs("div",{className:"rounded-xl border border-success/20 bg-success/10 p-3 text-center",children:[c.jsxs("div",{className:"mb-1 flex items-center justify-center gap-1",children:[c.jsx(Ug,{className:"h-4 w-4 text-success"}),c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Cash"})]}),c.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",o.cashTotal.toFixed(2)]})]}),c.jsxs("div",{className:"rounded-xl border border-primary/20 bg-primary/10 p-3 text-center",children:[c.jsxs("div",{className:"mb-1 flex items-center justify-center gap-1",children:[c.jsx(Wg,{className:"h-4 w-4 text-primary"}),c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Credit"})]}),c.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",o.creditTotal.toFixed(2)]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Pre-Tax Sales"}),c.jsxs("p",{className:"font-mono text-lg font-extrabold text-foreground",children:["$",o.totalSales.toFixed(2)]})]}),c.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[c.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Total Tax Collected"}),c.jsxs("p",{className:"font-mono text-lg font-extrabold text-foreground",children:["$",o.totalTax.toFixed(2)]})]})]}),o.categoryBreakdown.length>0?c.jsx("div",{className:"overflow-hidden rounded-xl border border-border",children:c.jsxs(fy,{children:[c.jsx(py,{children:c.jsxs(Ni,{className:"bg-secondary/50",children:[c.jsx(or,{className:"text-xs font-bold",children:"Category"}),c.jsx(or,{className:"text-right text-xs font-bold",children:"Cash Sales"}),c.jsx(or,{className:"text-right text-xs font-bold",children:"Cash Tax"}),c.jsx(or,{className:"text-right text-xs font-bold",children:"Credit Sales"}),c.jsx(or,{className:"text-right text-xs font-bold",children:"Credit Tax"}),c.jsx(or,{className:"text-right text-xs font-bold",children:"Grand Total"})]})}),c.jsx(hy,{children:o.categoryBreakdown.map(i=>c.jsxs(Ni,{children:[c.jsx(et,{className:"text-sm font-semibold",children:i.category}),c.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.cashSales.toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.cashTax.toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.creditSales.toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.creditTax.toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",i.grandTotal.toFixed(2)]})]},i.category))}),c.jsx(my,{children:c.jsxs(Ni,{children:[c.jsx(et,{className:"text-sm font-bold",children:"Total"}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.cashSales,0).toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.cashTax,0).toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.creditSales,0).toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.creditTax,0).toFixed(2)]}),c.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",s.toFixed(2)]})]})})]})}):c.jsx("div",{className:"py-8 text-center text-muted-foreground",children:c.jsx("p",{className:"text-sm",children:"No sales recorded today"})}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2",children:[c.jsx("button",{onClick:t,className:"rounded-xl bg-secondary py-3 text-sm font-bold text-secondary-foreground transition-all hover:bg-border",children:"Close"}),n.length>0&&c.jsx("button",{onClick:async()=>{confirm("Clear all sales data for this business day?")&&(await r(),t())},className:"rounded-xl border border-destructive/20 bg-destructive/10 py-3 text-sm font-bold text-destructive transition-all hover:bg-destructive hover:text-destructive-foreground",children:"Clear & Start New Day"})]})]})})},Gu=[{id:"1",name:"Rice 1kg",price:28,category:"Pantry",emoji:"๐Ÿš"},{id:"2",name:"Beans 1kg",price:35,category:"Pantry",emoji:"๐Ÿซ˜"},{id:"3",name:"Sugar 1kg",price:32,category:"Pantry",emoji:"๐Ÿฌ"},{id:"4",name:"Cooking Oil 1L",price:45,category:"Pantry",emoji:"๐Ÿซ—"},{id:"5",name:"Salt 1kg",price:15,category:"Pantry",emoji:"๐Ÿง‚"},{id:"6",name:"Flour 1kg",price:22,category:"Pantry",emoji:"๐ŸŒพ"},{id:"7",name:"Pasta 200g",price:12,category:"Pantry",emoji:"๐Ÿ"},{id:"8",name:"Canned Tuna",price:25,category:"Pantry",emoji:"๐ŸŸ"},{id:"9",name:"Soda 600ml",price:18,category:"Drinks",emoji:"๐Ÿฅค"},{id:"10",name:"Water 1L",price:12,category:"Drinks",emoji:"๐Ÿ’ง"},{id:"11",name:"Juice 1L",price:28,category:"Drinks",emoji:"๐Ÿงƒ"},{id:"12",name:"Coffee 200g",price:55,category:"Drinks",emoji:"โ˜•"},{id:"13",name:"Milk 1L",price:26,category:"Dairy",emoji:"๐Ÿฅ›"},{id:"14",name:"Cheese 250g",price:45,category:"Dairy",emoji:"๐Ÿง€"},{id:"15",name:"Cream 250ml",price:28,category:"Dairy",emoji:"๐Ÿถ"},{id:"16",name:"Yogurt",price:15,category:"Dairy",emoji:"๐Ÿฅฃ"},{id:"17",name:"Bread Roll",price:3,category:"Bakery",emoji:"๐Ÿฅ–"},{id:"18",name:"Sweet Bread",price:8,category:"Bakery",emoji:"๐Ÿž"},{id:"19",name:"Tortillas 1kg",price:22,category:"Bakery",emoji:"๐Ÿซ“"},{id:"20",name:"Tomatoes 1kg",price:30,category:"Produce",emoji:"๐Ÿ…"},{id:"21",name:"Onions 1kg",price:25,category:"Produce",emoji:"๐Ÿง…"},{id:"22",name:"Limes 1kg",price:35,category:"Produce",emoji:"๐Ÿ‹"},{id:"23",name:"Bananas 1kg",price:20,category:"Produce",emoji:"๐ŸŒ"},{id:"24",name:"Potatoes 1kg",price:28,category:"Produce",emoji:"๐Ÿฅ”"},{id:"25",name:"Chicken 1kg",price:85,category:"Meat",emoji:"๐Ÿ—"},{id:"26",name:"Eggs 12ct",price:48,category:"Meat",emoji:"๐Ÿฅš"},{id:"27",name:"Ham 250g",price:38,category:"Meat",emoji:"๐Ÿฅฉ"},{id:"28",name:"Bar Soap",price:18,category:"Cleaning",emoji:"๐Ÿงผ"},{id:"29",name:"Bleach 1L",price:22,category:"Cleaning",emoji:"๐Ÿงด"},{id:"30",name:"Toilet Paper",price:15,category:"Cleaning",emoji:"๐Ÿงป"},{id:"31",name:"Detergent 1kg",price:42,category:"Cleaning",emoji:"๐Ÿซง"}],Ba=ad();function gy(e,t=0){const n=Gu[t]||Gu[0],r=typeof e.taxable=="boolean"?e.taxable:!!e.taxRate;return{id:e.id||n.id||`product-${t+1}`,name:e.name||n.name||"Item",price:typeof e.price=="number"&&!Number.isNaN(e.price)?e.price:n.price||0,category:e.category||n.category||"General",emoji:e.emoji||n.emoji||"ITEM",imageUrl:e.imageUrl||n.imageUrl,taxable:r,taxRate:r?typeof e.taxRate=="number"&&!Number.isNaN(e.taxRate)?e.taxRate:0:void 0,reportCategory:e.reportCategory||"Non-Taxable"}}function Ku(){return Gu.map((e,t)=>gy({...e,taxable:!1,reportCategory:"Non-Taxable"},t))}function GE(e){return["All",...Array.from(new Set(e.map(n=>n.category.trim()).filter(Boolean))).sort((n,r)=>n.localeCompare(r))]}async function KE(){try{const e=await fetch(`${Ba}/catalog.php`);if(!e.ok)return null;const t=await e.json();return t.products?t.products.map((n,r)=>gy(n,r)):[]}catch(e){return console.error("Failed to load catalog",e),null}}async function YE(e){try{return(await fetch(`${Ba}/catalog.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({products:e})})).ok}catch(t){return console.error("Failed to save catalog",t),!1}}async function Tp(e){try{const t=await fetch(`${Ba}/catalog.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({products:e})});if(t.ok)return{ok:!0};const n=await t.text();try{return{ok:!1,error:JSON.parse(n).error||`Catalog save failed (${t.status})`}}catch{return{ok:!1,error:n||`Catalog save failed (${t.status})`}}}catch(t){return console.error("Failed to save catalog",t),{ok:!1,error:t instanceof Error?t.message:"Catalog save failed"}}}async function qE(e){try{const t=new FormData;t.append("image",e);const n=await fetch(`${Ba}/upload_image.php`,{method:"POST",body:t}),r=await n.text();try{const o=JSON.parse(r);return n.ok?{ok:!0,imageUrl:o.imageUrl}:{ok:!1,error:o.error||`Image upload failed (${n.status})`}}catch{return{ok:!1,error:r||`Image upload failed (${n.status})`}}}catch(t){return console.error("Failed to upload image",t),{ok:!1,error:t instanceof Error?t.message:"Image upload failed"}}}function XE(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)}const ZE=({open:e,onClose:t,products:n,onSaved:r})=>{const[o,s]=v.useState(n),[i,a]=v.useState(""),[l,u]=v.useState(null);v.useEffect(()=>{s(n)},[n,e]);const d=(x,h,m)=>{s(w=>w.map(S=>{if(S.id!==x)return S;const C={...S,[h]:m};return h==="taxable"&&m===!1&&(C.taxRate=void 0),h==="taxable"&&m===!0&&C.taxRate==null&&(C.taxRate=0),C}))},p=()=>{const x=o.length+1;s(h=>[...h,{id:`custom-${x}`,name:`New Item ${x}`,price:0,category:"General",emoji:"ITEM",imageUrl:"",taxable:!1,reportCategory:"Non-Taxable"}])},y=x=>{s(h=>h.filter(m=>m.id!==x))},f=async()=>{const x=o.map((m,w)=>{var S;return{...m,id:XE(m.id||m.name||`product-${w+1}`),name:m.name.trim()||`Item ${w+1}`,category:m.category.trim()||"General",emoji:m.emoji.trim()||"ITEM",imageUrl:((S=m.imageUrl)==null?void 0:S.trim())||void 0,price:Number(m.price)||0,taxRate:m.taxable?Number(m.taxRate||0):void 0}}),h=await Tp(x);a(h.ok?"Saved for all devices":h.error||"Save failed"),h.ok&&r(x)},b=async()=>{const x=Ku(),h=await Tp(x);a(h.ok?"Reset to default catalog":h.error||"Reset failed"),h.ok&&(s(x),r(x))},g=async(x,h)=>{if(!h)return;u(x);const m=await qE(h);if(u(null),!m.ok||!m.imageUrl){a(m.error||"Image upload failed");return}d(x,"imageUrl",m.imageUrl),a("Image uploaded")};return c.jsx(dd,{open:e,onOpenChange:t,children:c.jsxs(Fa,{className:"max-h-[90vh] overflow-y-auto border-border bg-card sm:max-w-5xl",children:[c.jsxs($a,{children:[c.jsx(za,{className:"text-lg font-extrabold text-foreground",children:"Catalog Manager"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Regular product buttons are saved on the server here."})]}),c.jsx("div",{className:"space-y-3",children:o.map(x=>c.jsxs("div",{className:"grid grid-cols-1 gap-2 rounded-xl border border-border bg-background p-3 md:grid-cols-7",children:[c.jsx("input",{value:x.name,onChange:h=>d(x.id,"name",h.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Name"}),c.jsx("input",{value:x.category,onChange:h=>d(x.id,"category",h.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Category"}),c.jsx("input",{type:"number",min:"0",step:"0.01",value:x.price,onChange:h=>d(x.id,"price",parseFloat(h.target.value||"0")),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Price"}),c.jsx("input",{value:x.emoji,onChange:h=>d(x.id,"emoji",h.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Button tag"}),c.jsxs("div",{className:"space-y-2 rounded-lg border border-dashed border-border bg-card p-2",children:[c.jsx("div",{className:"text-xs font-semibold text-muted-foreground",children:"Product Image"}),x.imageUrl?c.jsx("img",{src:x.imageUrl,alt:x.name,className:"h-16 w-16 rounded-lg border border-border object-cover"}):c.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg border border-border bg-background text-[11px] font-bold text-muted-foreground",children:"No image"}),c.jsx("input",{type:"file",accept:"image/*",onChange:h=>{var m;return g(x.id,((m=h.target.files)==null?void 0:m[0])??null)},className:"text-xs text-muted-foreground"}),l===x.id&&c.jsx("div",{className:"text-[11px] font-semibold text-muted-foreground",children:"Uploading..."})]}),c.jsx("select",{value:x.reportCategory,onChange:h=>d(x.id,"reportCategory",h.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",children:Dv.map(h=>c.jsx("option",{value:h,children:h},h))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("select",{value:x.taxable?"taxable":"non-taxable",onChange:h=>d(x.id,"taxable",h.target.value==="taxable"),className:"flex-1 rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",children:[c.jsx("option",{value:"taxable",children:"Taxable"}),c.jsx("option",{value:"non-taxable",children:"Non-Taxable"})]}),c.jsx("input",{type:"number",min:"0",step:"0.01",disabled:!x.taxable,value:x.taxRate??"",onChange:h=>d(x.id,"taxRate",h.target.value===""?void 0:parseFloat(h.target.value)),className:"w-28 rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground disabled:opacity-50",placeholder:"Tax %"}),c.jsx("button",{onClick:()=>y(x.id),className:"rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs font-bold text-destructive",children:"Remove"})]})]},x.id))}),c.jsxs("div",{className:"flex items-center justify-between gap-2 pt-2",children:[c.jsx("div",{className:"text-xs font-semibold text-muted-foreground",children:i}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:p,className:"rounded-lg bg-secondary px-4 py-2 text-sm font-bold text-secondary-foreground",children:"Add Product"}),c.jsx("button",{onClick:b,className:"rounded-lg border border-border bg-background px-4 py-2 text-sm font-bold text-foreground",children:"Reset Defaults"}),c.jsx("button",{onClick:f,className:"rounded-lg bg-primary px-4 py-2 text-sm font-bold text-primary-foreground",children:"Save Catalog"})]})]})]})})},bs="pos-sales",fd=ad();function vy(e){const t=e.map(n=>({...n,timestamp:n.timestamp.toISOString()}));return JSON.stringify(t)}function pd(e){if(!e)return[];try{return JSON.parse(e).map(n=>({...n,timestamp:new Date(n.timestamp)}))}catch(t){return console.error("Failed to parse stored sales",t),[]}}function hd(){return typeof window<"u"&&typeof window.localStorage<"u"}function JE(e=ia(new Date)){return hd()?pd(window.localStorage.getItem(bs)).filter(n=>n.businessDate===e):[]}function ek(e){if(!hd())return;const t=pd(window.localStorage.getItem(bs)),n=new Set(e.map(o=>o.businessDate)),r=t.filter(o=>!n.has(o.businessDate));window.localStorage.setItem(bs,vy([...r,...e]))}function tk(e){if(!hd())return;const n=pd(window.localStorage.getItem(bs)).filter(r=>r.businessDate!==e);window.localStorage.setItem(bs,vy(n))}async function nk(e){try{const t=await fetch(`${fd}/sales.php?date=${encodeURIComponent(e)}`);if(!t.ok)return null;const n=await t.json();return n.sales?n.sales.map(r=>({...r,timestamp:new Date(r.timestamp)})):[]}catch(t){return console.error("Failed to load sales from server",t),null}}async function rk(e){try{return(await fetch(`${fd}/sales.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,timestamp:e.timestamp.toISOString()})})).ok}catch(t){return console.error("Failed to save sale to server",t),!1}}async function ok(e){try{return(await fetch(`${fd}/reset_day.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({businessDate:e})})).ok}catch(t){return console.error("Failed to clear sales on server",t),!1}}const qt=27,Dl=29,Le=10,Ne={INIT:[qt,64],BOLD_ON:[qt,69,1],BOLD_OFF:[qt,69,0],ALIGN_CENTER:[qt,97,1],ALIGN_LEFT:[qt,97,0],ALIGN_RIGHT:[qt,97,2],DOUBLE_HEIGHT_ON:[Dl,33,17],DOUBLE_HEIGHT_OFF:[Dl,33,0],CUT_PAPER:[Dl,86,66,3],DRAWER_KICK_PIN2:[qt,112,0,25,120],DRAWER_KICK_PIN5:[qt,112,1,25,120],FEED_LINES:e=>[qt,100,e]},sk=new TextEncoder;function Ve(e){return Array.from(sk.encode(e))}function bn(e,t,n=42){const r=n-e.length-t.length;return e+" ".repeat(Math.max(1,r))+t}function Ml(e=42){return"-".repeat(e)}function ik(e){const t=[],n=(...o)=>t.push(...o);n(...Ne.INIT),n(...Ne.ALIGN_CENTER),n(...Ne.BOLD_ON),n(...Ne.DOUBLE_HEIGHT_ON),n(...Ve(e.storeName)),n(Le),n(...Ne.DOUBLE_HEIGHT_OFF),n(...Ne.BOLD_OFF),n(...Ve(e.timestamp.toLocaleDateString()+" "+e.timestamp.toLocaleTimeString())),n(Le),n(...Ne.ALIGN_LEFT),n(...Ve(Ml())),n(Le);for(const o of e.items){const s=o.price*o.quantity,i=o.quantity>1?`${o.name} x${o.quantity}`:o.name;n(...Ve(bn(i,`$${s.toFixed(2)}`))),n(Le),o.taxRate&&o.taxAmount&&o.taxAmount>0&&(n(...Ve(bn(`  Tax ${o.taxRate}%`,`$${o.taxAmount.toFixed(2)}`))),n(Le))}n(...Ve(Ml())),n(Le),n(...Ve(bn("Subtotal",`$${e.subtotal.toFixed(2)}`))),n(Le),e.tax>0&&(n(...Ve(bn("Tax",`$${e.tax.toFixed(2)}`))),n(Le)),n(...Ne.BOLD_ON),n(...Ne.DOUBLE_HEIGHT_ON),n(...Ve(bn("TOTAL",`$${e.total.toFixed(2)}`))),n(Le),n(...Ne.DOUBLE_HEIGHT_OFF),n(...Ne.BOLD_OFF),n(...Ve(Ml())),n(Le);const r=e.paymentMethod==="cash"?"Cash":"Credit Card";return n(...Ve(bn("Payment",r))),n(Le),e.paymentMethod==="cash"&&e.amountTendered!==void 0&&(n(...Ve(bn("Tendered",`$${e.amountTendered.toFixed(2)}`))),n(Le),e.changeDue!==void 0&&e.changeDue>0&&(n(...Ne.BOLD_ON),n(...Ve(bn("Change",`$${e.changeDue.toFixed(2)}`))),n(Le),n(...Ne.BOLD_OFF))),n(Le),n(...Ne.ALIGN_CENTER),n(...Ve("Thank you!")),n(Le),n(...Ne.FEED_LINES(4)),n(...Ne.CUT_PAPER),t}let In=null,Qn=null;function yy(){return"serial"in navigator}async function ak(){if(!yy())throw new Error("WebSerial API is not supported in this browser. Please use Chrome or Edge.");try{return In=await navigator.serial.requestPort(),await In.open({baudRate:9600}),Qn=In.writable.getWriter(),!0}catch(e){return console.error("Failed to connect to printer:",e),In=null,Qn=null,!1}}async function lk(){try{Qn&&(Qn.releaseLock(),Qn=null),In&&(await In.close(),In=null)}catch(e){console.error("Error disconnecting printer:",e)}}function Ll(){return In!==null&&Qn!==null}async function xy(e){if(!Qn)throw new Error("Printer not connected");await Qn.write(e)}async function wy(){await xy(new Uint8Array(Ne.DRAWER_KICK_PIN2))}async function uk(e){const t=ik(e);await xy(new Uint8Array(t))}async function ck(e){await wy(),await uk(e)}let dk=1e3;function fk(e){return e.reportCategory?e.reportCategory:Qu(e.category,!!e.taxRate)}const pk=()=>{const e=ia(new Date),[t,n]=v.useState("All"),[r,o]=v.useState([]),[s,i]=v.useState(!1),[a,l]=v.useState(!1),[u,d]=v.useState(!1),[p,y]=v.useState([]),[f,b]=v.useState(Ku()),[g,x]=v.useState(!1),h=v.useMemo(()=>GE(f),[f]),m=v.useMemo(()=>t==="All"?f:f.filter(I=>I.category===t),[f,t]),w=v.useCallback(I=>{o(T=>T.find(k=>k.id===I.id)?T.map(k=>k.id===I.id?{...k,quantity:k.quantity+1}:k):[...T,{...I,quantity:1,taxRate:I.taxRate,reportCategory:fk(I),taxable:!!I.taxRate}])},[]),S=v.useCallback((I,T,O,k,P)=>{const A=`manual-${dk++}`,U=O?`${T} (T)`:T;o(z=>[...z,{id:A,name:U,price:I,emoji:O?"TAX":"NTX",quantity:1,taxRate:O?k:void 0,category:T,reportCategory:P??Qu(T,O),taxable:O}])},[]),C=v.useCallback((I,T)=>{o(O=>O.map(k=>k.id===I?{...k,quantity:k.quantity+T}:k).filter(k=>k.quantity>0))},[]),N=v.useCallback(I=>{o(T=>T.filter(O=>O.id!==I))},[]),E=v.useCallback(()=>o([]),[]),R=v.useCallback(()=>{r.length!==0&&i(!0)},[r]),D=v.useCallback(async()=>{if(Ll()){await lk(),x(!1),He.info("Printer disconnected");return}if(!yy()){He.error("WebSerial not supported. Use Chrome or Edge.");return}const I=await ak();if(x(I),I){He.success("Printer connected");return}He.error("Could not connect to printer")},[]),L=v.useCallback(async()=>{if(!Ll()){He.error("Connect a printer first");return}try{await wy(),He.success("Drawer opened")}catch{He.error("Failed to open drawer")}},[]);v.useEffect(()=>{let I=!0;return(async()=>{const O=await KE();if(I){if(O&&O.length>0){b(O);return}b(Ku())}})(),()=>{I=!1}},[]),v.useEffect(()=>{let I=!0;return(async()=>{const k=await nk(e)??JE(e);I&&y(k)})(),()=>{I=!1}},[e]),v.useEffect(()=>{ek(p)},[p]);const W=v.useCallback(async(I,T)=>{const O=r.reduce((X,ae)=>X+ae.price*ae.quantity,0),k=r.reduce((X,ae)=>ae.taxRate?X+ae.price*ae.quantity*(ae.taxRate/100):X,0),P=O+k,A=T?T-P:void 0,U=r.map(X=>{const ae=X.price*X.quantity,Dt=X.taxRate?ae*(X.taxRate/100):0;return{name:X.name,category:X.category||"Other",reportCategory:X.reportCategory||Qu(X.category||X.name,!!X.taxRate),price:X.price,quantity:X.quantity,taxable:!!(X.taxRate||X.taxable),taxRate:X.taxRate,taxAmount:Dt,lineTotal:ae}}),z=new Date,H={id:`sale-${Date.now()}`,items:U,subtotal:O,tax:k,total:P,paymentMethod:I,amountTendered:T,changeDue:A,timestamp:z,businessDate:ia(z)},Y=[...p,H];y(Y),i(!1),o([]);const he=await rk(H);if(Ll())try{const X={storeName:"My Store",items:U.map(ae=>({name:ae.name,quantity:ae.quantity,price:ae.price,taxRate:ae.taxRate,taxAmount:ae.taxAmount})),subtotal:O,tax:k,total:P,paymentMethod:I,amountTendered:T,changeDue:A!==void 0&&A>0?A:void 0,timestamp:z};await ck(X)}catch(X){console.error("Print error:",X),He.error("Failed to print receipt")}const Ce=I==="cash"?"Cash":"Credit Card",J=A!==void 0&&A>0?` | Change $${A.toFixed(2)}`:"",pn=he?"":" | saved locally";He.success(`Sale complete: ${Ce} $${P.toFixed(2)}${J}${pn}`,{duration:4e3})},[r,p]),$=v.useCallback(async()=>{const I=await ok(e);if(tk(e),y([]),I){He.success("Started a new business day");return}He.success("Started a new business day locally")},[e]),V=v.useCallback(I=>{b(I),t!=="All"&&!I.some(T=>T.category===t)&&n("All"),He.success("Catalog saved for all devices")},[t]),F=v.useCallback(async(I,T)=>{const O=f.findIndex(z=>z.id===I),k=f.findIndex(z=>z.id===T);if(O<0||k<0||O===k)return;const P=[...f],[A]=P.splice(O,1);if(P.splice(k,0,A),b(P),!await YE(P)){He.error("Could not save button order");return}He.success("Product button order saved")},[f]);return c.jsxs("div",{className:"flex h-screen flex-col bg-background",children:[c.jsxs("header",{className:"flex items-center gap-3 border-b border-border bg-card px-4 py-3 shadow-sm",children:[c.jsx(Jb,{className:"h-7 w-7 text-primary"}),c.jsx("h1",{className:"text-xl font-extrabold tracking-tight text-foreground",children:"My Store"}),c.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[c.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 rounded-lg border border-border bg-secondary px-3 py-1.5 text-sm font-bold text-foreground transition-all hover:bg-primary hover:text-primary-foreground",children:[c.jsx(Xb,{className:"h-4 w-4"}),c.jsx("span",{children:"Catalog"})]}),c.jsxs("button",{onClick:D,className:`flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-bold transition-all ${g?"border-success/30 bg-success/15 text-success hover:bg-success hover:text-success-foreground":"border-border bg-secondary text-foreground hover:bg-primary hover:text-primary-foreground"}`,children:[g?c.jsx(Yb,{className:"h-4 w-4"}):c.jsx(qb,{className:"h-4 w-4"}),c.jsx("span",{className:"hidden sm:inline",children:g?"Printer Connected":"Connect Printer"})]}),g&&c.jsx("button",{onClick:L,className:"flex items-center gap-1.5 rounded-lg border border-border bg-secondary px-3 py-1.5 text-sm font-bold text-foreground transition-all hover:bg-primary hover:text-primary-foreground",children:c.jsx("span",{children:"Open Drawer"})}),c.jsxs("button",{onClick:()=>l(!0),className:"flex items-center gap-1.5 rounded-lg border border-border bg-secondary px-3 py-1.5 text-sm font-bold text-foreground transition-all hover:bg-primary hover:text-primary-foreground",children:[c.jsx(Qb,{className:"h-4 w-4"}),c.jsx("span",{children:"Report"}),p.length>0&&c.jsx("span",{className:"rounded-full bg-primary px-1.5 py-0.5 text-[10px] font-bold text-primary-foreground",children:p.length})]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"Point of Sale"})]})]}),c.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[c.jsx("div",{className:"hidden w-[260px] flex-shrink-0 overflow-y-auto p-3 md:block lg:w-[280px]",children:c.jsx(A2,{onAddItem:S})}),c.jsxs("div",{className:"flex flex-1 flex-col gap-3 overflow-y-auto p-4",children:[c.jsx(k2,{categories:h,selected:t,onSelect:n}),c.jsx(N2,{products:m,onAdd:w,onReorder:F})]}),c.jsx("div",{className:"hidden w-[340px] flex-shrink-0 p-3 pl-0 md:flex lg:w-[380px]",children:c.jsx(T2,{items:r,onUpdateQty:C,onRemove:N,onCheckout:R,onClear:E})})]}),r.length>0&&c.jsx("div",{className:"border-t border-border bg-card px-4 py-3 md:hidden",children:c.jsxs("button",{onClick:R,className:"w-full rounded-xl bg-success py-3 text-base font-bold text-success-foreground shadow-md active:scale-[0.98]",children:["Checkout | ",r.reduce((I,T)=>I+T.quantity,0)," items"," | $",r.reduce((I,T)=>I+T.price*T.quantity,0).toFixed(2)]})}),c.jsx(WE,{open:s,onClose:()=>i(!1),onComplete:W,items:r}),c.jsx(QE,{open:a,onClose:()=>l(!1),sales:p,onClearSales:$}),c.jsx(ZE,{open:u,onClose:()=>d(!1),products:f,onSaved:V})]})},hk=()=>{const e=fg();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},mk=new E1,gk=()=>c.jsx(N1,{client:mk,children:c.jsxs(C2,{children:[c.jsx(LS,{}),c.jsx(Ww,{}),c.jsx(dw,{basename:"/NAOPOS/dist/",children:c.jsxs(lw,{children:[c.jsx(Au,{path:"/",element:c.jsx(pk,{})}),c.jsx(Au,{path:"*",element:c.jsx(hk,{})})]})})]})});qm(document.getElementById("root")).render(c.jsx(gk,{}));

Youez - 2016 - github.com/yon3zu
LinuXploit