| Server IP : 173.209.174.21 / Your IP : 216.73.216.79 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 : |
var wd=e=>{throw TypeError(e)};var Va=(e,t,n)=>t.has(e)||wd("Cannot "+n);var j=(e,t,n)=>(Va(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?wd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(Va(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),je=(e,t,n)=>(Va(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 Ry(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 Dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mp={exports:{}},aa={},Lp={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"),jy=Symbol.for("react.portal"),Oy=Symbol.for("react.fragment"),Ay=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),Dy=Symbol.for("react.provider"),My=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),Iy=Symbol.for("react.suspense"),Fy=Symbol.for("react.memo"),$y=Symbol.for("react.lazy"),bd=Symbol.iterator;function zy(e){return e===null||typeof e!="object"?null:(e=bd&&e[bd]||e["@@iterator"],typeof e=="function"?e:null)}var Ip={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,$p={};function wo(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Ip}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 zp(){}zp.prototype=wo.prototype;function Yu(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Ip}var qu=Yu.prototype=new zp;qu.constructor=Yu;Fp(qu,wo.prototype);qu.isPureReactComponent=!0;var Sd=Array.isArray,Bp=Object.prototype.hasOwnProperty,Xu={current:null},Up={key:!0,ref:!0,__self:!0,__source:!0};function Wp(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)Bp.call(t,r)&&!Up.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 By(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 Uy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Cd=/\/+/g;function Qa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Uy(""+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 jy:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Qa(i,0):r,Sd(o)?(n="",e!=null&&(n=e.replace(Cd,"$&/")+"/"),ui(o,t,n,"",function(u){return u})):o!=null&&(Zu(o)&&(o=By(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Cd,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Sd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Qa(s,a);i+=ui(s,t,n,l,o)}else if(l=zy(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Qa(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 Wy(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},Hy={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:ci,ReactCurrentOwner:Xu};function Hp(){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=Oy;q.Profiler=_y;q.PureComponent=Yu;q.StrictMode=Ay;q.Suspense=Iy;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hy;q.act=Hp;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=Fp({},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)Bp.call(t,l)&&!Up.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:My,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dy,_context:e},e.Consumer=e};q.createElement=Wp;q.createFactory=function(e){var t=Wp.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:Ly,render:e}};q.isValidElement=Zu;q.lazy=function(e){return{$$typeof:$y,_payload:{_status:-1,_result:e},_init:Wy}};q.memo=function(e,t){return{$$typeof:Fy,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=Hp;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";Lp.exports=q;var g=Lp.exports;const M=Dp(g),Ju=Ry({__proto__:null,default:M},[g]);/**
* @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 Vy=g,Qy=Symbol.for("react.element"),Gy=Symbol.for("react.fragment"),Ky=Object.prototype.hasOwnProperty,Yy=Vy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qy={key:!0,ref:!0,__self:!0,__source:!0};function Vp(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)Ky.call(t,r)&&!qy.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:Qy,type:e,key:s,ref:i,props:o,_owner:Yy.current}}aa.Fragment=Gy;aa.jsx=Vp;aa.jsxs=Vp;Mp.exports=aa;var f=Mp.exports,Qp={exports:{}},at={},Gp={exports:{}},Kp={};/**
* @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 _=k.length;k.push(P);e:for(;0<_;){var U=_-1>>>1,z=k[U];if(0<o(z,P))k[U]=P,k[_]=z,_=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],_=k.pop();if(_!==P){k[0]=_;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,_))Ce<z&&0>o(J,he)?(k[U]=J,k[Ce]=_,U=Ce):(k[U]=he,k[Y]=_,U=Y);else if(Ce<z&&0>o(J,_))k[U]=J,k[Ce]=_,U=Ce;else break e}}return P}function o(k,P){var _=k.sortIndex-P.sortIndex;return _!==0?_: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,v=3,c=!1,b=!1,h=!1,w=typeof setTimeout=="function"?setTimeout:null,y=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 x(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(h=!1,x(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,h&&(h=!1,y(R),R=-1),c=!0;var _=v;try{for(x(P),p=n(l);p!==null&&(!(p.expirationTime>P)||k&&!W());){var U=p.callback;if(typeof U=="function"){p.callback=null,v=p.priorityLevel;var z=U(p.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(l)&&r(l),x(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,v=_,c=!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(){w($,0)};function T(k){E=k,N||(N=!0,V())}function O(k,P){R=w(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||c||(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 v},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var _=v;v=P;try{return k()}finally{v=_}},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 _=v;v=k;try{return P()}finally{v=_}},e.unstable_scheduleCallback=function(k,P,_){var U=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?U+_:U):_=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=_+z,k={id:d++,callback:P,priorityLevel:k,startTime:_,expirationTime:z,sortIndex:-1},_>U?(k.sortIndex=_,t(u,k),n(l)===null&&k===n(u)&&(h?(y(R),R=-1):h=!0,O(S,_-U))):(k.sortIndex=z,t(l,k),b||c||(b=!0,T(C))),k},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(k){var P=v;return function(){var _=v;v=P;try{return k.apply(this,arguments)}finally{v=_}}}})(Kp);Gp.exports=Kp;var Xy=Gp.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 Zy=g,it=Xy;function A(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 Yp=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++)Yp.add(t[e])}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,Jy=/^[: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]*$/,Ed={},kd={};function e0(e){return Ll.call(kd,e)?!0:Ll.call(Ed,e)?!1:Jy.test(e)?kd[e]=!0:(Ed[e]=!0,!1)}function t0(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 n0(e,t,n,r){if(t===null||typeof t>"u"||t0(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")&&(n0(t,n,o,r)&&(n=null),r||o===null?e0(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=Zy.__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"),Il=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Xp=Symbol.for("react.context"),oc=Symbol.for("react.forward_ref"),Fl=Symbol.for("react.suspense"),$l=Symbol.for("react.suspense_list"),sc=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),Zp=Symbol.for("react.offscreen"),Nd=Symbol.iterator;function Ro(e){return e===null||typeof e!="object"?null:(e=Nd&&e[Nd]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,Ga;function $o(e){if(Ga===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ga=t&&t[1]||""}return`
`+Ga+e}var Ka=!1;function Ya(e,t){if(!e||Ka)return"";Ka=!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{Ka=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$o(e):""}function r0(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=Ya(e.type,!1),e;case 11:return e=Ya(e.type.render,!1),e;case 1:return e=Ya(e.type,!0),e;default:return""}}function zl(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 Il:return"Profiler";case rc:return"StrictMode";case Fl:return"Suspense";case $l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xp:return(e.displayName||"Context")+".Consumer";case qp: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:zl(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return zl(e(t))}catch{}}return null}function o0(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 zl(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 Jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s0(e){var t=Jp(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=s0(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jp(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 Bl(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Td(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 th(e,t){t=t.checked,t!=null&&nc(e,"checked",t,!1)}function Ul(e,t){th(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")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,Gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pd(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 Wl(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 Hl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(zo(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gn(n)}}function nh(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 jd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(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 Vl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zs,oh=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},i0=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){i0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function sh(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 ih(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var a0=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 Ql(e,t){if(t){if(a0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Gl(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 Kl=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Gr=null,Kr=null;function Od(e){if(e=Ts(e)){if(typeof Yl!="function")throw Error(A(280));var t=e.stateNode;t&&(t=fa(t),Yl(e.stateNode,e.type,t))}}function ah(e){Gr?Kr?Kr.push(e):Kr=[e]:Gr=e}function lh(){if(Gr){var e=Gr,t=Kr;if(Kr=Gr=null,Od(e),t)for(e=0;e<t.length;e++)Od(t[e])}}function uh(e,t){return e(t)}function ch(){}var qa=!1;function dh(e,t,n){if(qa)return e(t,n);qa=!0;try{return uh(e,t,n)}finally{qa=!1,(Gr!==null||Kr!==null)&&(ch(),lh())}}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(A(231,t,typeof n));return n}var ql=!1;if(on)try{var jo={};Object.defineProperty(jo,"passive",{get:function(){ql=!0}}),window.addEventListener("test",jo,jo),window.removeEventListener("test",jo,jo)}catch{ql=!1}function l0(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,Xl=null,u0={onError:function(e){Vo=!0,Pi=e}};function c0(e,t,n,r,o,s,i,a,l){Vo=!1,Pi=null,l0.apply(u0,arguments)}function d0(e,t,n,r,o,s,i,a,l){if(c0.apply(this,arguments),Vo){if(Vo){var u=Pi;Vo=!1,Pi=null}else throw Error(A(198));Ri||(Ri=!0,Xl=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 fh(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(A(188))}function f0(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(A(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(A(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(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function ph(e){return e=f0(e),e!==null?hh(e):null}function hh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hh(e);if(t!==null)return t;e=e.sibling}return null}var mh=it.unstable_scheduleCallback,_d=it.unstable_cancelCallback,p0=it.unstable_shouldYield,h0=it.unstable_requestPaint,ve=it.unstable_now,m0=it.unstable_getCurrentPriorityLevel,ac=it.unstable_ImmediatePriority,gh=it.unstable_UserBlockingPriority,ji=it.unstable_NormalPriority,g0=it.unstable_LowPriority,vh=it.unstable_IdlePriority,la=null,Wt=null;function v0(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:w0,y0=Math.log,x0=Math.LN2;function w0(e){return e>>>=0,e===0?32:31-(y0(e)/x0|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 b0(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 S0(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]=b0(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Zl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yh(){var e=Bs;return Bs<<=1,!(Bs&4194240)&&(Bs=64),e}function Xa(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 C0(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 xh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wh,uc,bh,Sh,Ch,Jl=!1,Ws=[],Fn=null,$n=null,zn=null,rs=new Map,os=new Map,Tn=[],E0="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 Dd(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 k0(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 Eh(e){var t=sr(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=fh(n),t!==null){e.blockedOn=t,Ch(e.priority,function(){bh(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=eu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kl=r,n.target.dispatchEvent(r),Kl=null}else return t=Ts(n),t!==null&&uc(t),e.blockedOn=n,!1;t.shift()}return!0}function Md(e,t,n){di(e)&&n.delete(t)}function N0(){Jl=!1,Fn!==null&&di(Fn)&&(Fn=null),$n!==null&&di($n)&&($n=null),zn!==null&&di(zn)&&(zn=null),rs.forEach(Md),os.forEach(Md)}function Ao(e,t){e.blockedOn===t&&(e.blockedOn=null,Jl||(Jl=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,N0)))}function ss(e){function t(o){return Ao(o,e)}if(0<Ws.length){Ao(Ws[0],e);for(var n=1;n<Ws.length;n++){var r=Ws[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fn!==null&&Ao(Fn,e),$n!==null&&Ao($n,e),zn!==null&&Ao(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);)Eh(n),n.blockedOn===null&&Tn.shift()}var Yr=fn.ReactCurrentBatchConfig,Ai=!0;function T0(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 P0(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(Ai){var o=eu(e,t,n,r);if(o===null)al(e,t,r,_i,n),Dd(e,r);else if(k0(o,e,t,n,r))r.stopPropagation();else if(Dd(e,r),t&4&&-1<E0.indexOf(e)){for(;o!==null;){var s=Ts(o);if(s!==null&&wh(s),s=eu(e,t,n,r),s===null&&al(e,t,r,_i,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else al(e,t,r,null,n)}}var _i=null;function eu(e,t,n,r){if(_i=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=fh(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 _i=e,null}function kh(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(m0()){case ac:return 1;case gh:return 4;case ji:case g0:return 16;case vh:return 536870912;default:return 16}default:return 16}}var Dn=null,dc=null,fi=null;function Nh(){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 Ld(){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:Ld,this.isPropagationStopped=Ld,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}),R0=lt(Ns),Za,Ja,_o,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!==_o&&(_o&&e.type==="mousemove"?(Za=e.screenX-_o.screenX,Ja=e.screenY-_o.screenY):Ja=Za=0,_o=e),Za)},movementY:function(e){return"movementY"in e?e.movementY:Ja}}),Id=lt(ua),j0=pe({},ua,{dataTransfer:0}),O0=lt(j0),A0=pe({},Ns,{relatedTarget:0}),el=lt(A0),_0=pe({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),D0=lt(_0),M0=pe({},bo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L0=lt(M0),I0=pe({},bo,{data:0}),Fd=lt(I0),F0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$0={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"},z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z0[e])?!!t[e]:!1}function pc(){return B0}var U0=pe({},Ns,{key:function(e){if(e.key){var t=F0[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"?$0[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}}),W0=lt(U0),H0=pe({},ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$d=lt(H0),V0=pe({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),Q0=lt(V0),G0=pe({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),K0=lt(G0),Y0=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}),q0=lt(Y0),X0=[9,13,27,32],hc=on&&"CompositionEvent"in window,Qo=null;on&&"documentMode"in document&&(Qo=document.documentMode);var Z0=on&&"TextEvent"in window&&!Qo,Th=on&&(!hc||Qo&&8<Qo&&11>=Qo),zd=" ",Bd=!1;function Ph(e,t){switch(e){case"keyup":return X0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function J0(e,t){switch(e){case"compositionend":return Rh(t);case"keypress":return t.which!==32?null:(Bd=!0,zd);case"textInput":return e=t.data,e===zd&&Bd?null:e;default:return null}}function ex(e,t){if(Lr)return e==="compositionend"||!hc&&Ph(e,t)?(e=Nh(),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 Th&&t.locale!=="ko"?null:t.data;default:return null}}var tx={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 Ud(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tx[e.type]:t==="textarea"}function jh(e,t,n,r){ah(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 nx(e){Bh(e,0)}function ca(e){var t=$r(e);if(eh(t))return e}function rx(e,t){if(e==="change")return t}var Oh=!1;if(on){var tl;if(on){var nl="oninput"in document;if(!nl){var Wd=document.createElement("div");Wd.setAttribute("oninput","return;"),nl=typeof Wd.oninput=="function"}tl=nl}else tl=!1;Oh=tl&&(!document.documentMode||9<document.documentMode)}function Hd(){Go&&(Go.detachEvent("onpropertychange",Ah),is=Go=null)}function Ah(e){if(e.propertyName==="value"&&ca(is)){var t=[];jh(t,is,e,ic(e)),dh(nx,t)}}function ox(e,t,n){e==="focusin"?(Hd(),Go=t,is=n,Go.attachEvent("onpropertychange",Ah)):e==="focusout"&&Hd()}function sx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ca(is)}function ix(e,t){if(e==="click")return ca(t)}function ax(e,t){if(e==="input"||e==="change")return ca(t)}function lx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:lx;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(!Ll.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function Vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qd(e,t){var n=Vd(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=Vd(n)}}function _h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dh(){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 ux(e){var t=Dh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_h(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=Qd(n,s);var i=Qd(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 cx=on&&"documentMode"in document&&11>=document.documentMode,Ir=null,tu=null,Ko=null,nu=!1;function Gd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||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(tu,"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")},rl={},Mh={};on&&(Mh=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(rl[e])return rl[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mh)return rl[e]=t[n];return e}var Lh=da("animationend"),Ih=da("animationiteration"),Fh=da("animationstart"),$h=da("transitionend"),zh=new Map,Kd="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){zh.set(e,t),Cr(t,[e])}for(var ol=0;ol<Kd.length;ol++){var sl=Kd[ol],dx=sl.toLowerCase(),fx=sl[0].toUpperCase()+sl.slice(1);Xn(dx,"on"+fx)}Xn(Lh,"onAnimationEnd");Xn(Ih,"onAnimationIteration");Xn(Fh,"onAnimationStart");Xn("dblclick","onDoubleClick");Xn("focusin","onFocus");Xn("focusout","onBlur");Xn($h,"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(" "),px=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uo));function Yd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,d0(r,t,void 0,e),e.currentTarget=null}function Bh(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;Yd(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;Yd(o,a,u),s=l}}}if(Ri)throw e=Xl,Ri=!1,Xl=null,e}function se(e,t){var n=t[au];n===void 0&&(n=t[au]=new Set);var r=e+"__bubble";n.has(r)||(Uh(t,e,2,!1),n.add(r))}function il(e,t,n){var r=0;t&&(r|=4),Uh(n,e,r,t)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function ls(e){if(!e[Qs]){e[Qs]=!0,Yp.forEach(function(n){n!=="selectionchange"&&(px.has(n)||il(n,!1,e),il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qs]||(t[Qs]=!0,il("selectionchange",!1,t))}}function Uh(e,t,n,r){switch(kh(t)){case 1:var o=T0;break;case 4:o=P0;break;default:o=cc}n=o.bind(null,t,n,e),o=void 0,!ql||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 al(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}dh(function(){var u=s,d=ic(n),p=[];e:{var v=zh.get(e);if(v!==void 0){var c=fc,b=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":c=W0;break;case"focusin":b="focus",c=el;break;case"focusout":b="blur",c=el;break;case"beforeblur":case"afterblur":c=el;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":c=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=O0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Q0;break;case Lh:case Ih:case Fh:c=D0;break;case $h:c=K0;break;case"scroll":c=R0;break;case"wheel":c=q0;break;case"copy":case"cut":case"paste":c=L0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=$d}var h=(t&4)!==0,w=!h&&e==="scroll",y=h?v!==null?v+"Capture":null:v;h=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,y!==null&&(S=ns(m,y),S!=null&&h.push(us(m,S,x)))),w)break;m=m.return}0<h.length&&(v=new c(v,b,null,n,d),p.push({event:v,listeners:h}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",v&&n!==Kl&&(b=n.relatedTarget||n.fromElement)&&(sr(b)||b[sn]))break e;if((c||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,c?(b=n.relatedTarget||n.toElement,c=u,b=b?sr(b):null,b!==null&&(w=Er(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(c=null,b=u),c!==b)){if(h=Id,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(h=$d,S="onPointerLeave",y="onPointerEnter",m="pointer"),w=c==null?v:$r(c),x=b==null?v:$r(b),v=new h(S,m+"leave",c,n,d),v.target=w,v.relatedTarget=x,S=null,sr(d)===u&&(h=new h(y,m+"enter",b,n,d),h.target=x,h.relatedTarget=w,S=h),w=S,c&&b)t:{for(h=c,y=b,m=0,x=h;x;x=jr(x))m++;for(x=0,S=y;S;S=jr(S))x++;for(;0<m-x;)h=jr(h),m--;for(;0<x-m;)y=jr(y),x--;for(;m--;){if(h===y||y!==null&&h===y.alternate)break t;h=jr(h),y=jr(y)}h=null}else h=null;c!==null&&qd(p,v,c,h,!1),b!==null&&w!==null&&qd(p,w,b,h,!0)}}e:{if(v=u?$r(u):window,c=v.nodeName&&v.nodeName.toLowerCase(),c==="select"||c==="input"&&v.type==="file")var C=rx;else if(Ud(v))if(Oh)C=ax;else{C=sx;var N=ox}else(c=v.nodeName)&&c.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(C=ix);if(C&&(C=C(e,u))){jh(p,C,n,d);break e}N&&N(e,v,u),e==="focusout"&&(N=v._wrapperState)&&N.controlled&&v.type==="number"&&Wl(v,"number",v.value)}switch(N=u?$r(u):window,e){case"focusin":(Ud(N)||N.contentEditable==="true")&&(Ir=N,tu=u,Ko=null);break;case"focusout":Ko=tu=Ir=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Gd(p,n,d);break;case"selectionchange":if(cx)break;case"keydown":case"keyup":Gd(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?Ph(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Th&&n.locale!=="ko"&&(Lr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Lr&&(E=Nh()):(Dn=d,dc="value"in Dn?Dn.value:Dn.textContent,Lr=!0)),N=Di(u,R),0<N.length&&(R=new Fd(R,e,null,n,d),p.push({event:R,listeners:N}),E?R.data=E:(E=Rh(n),E!==null&&(R.data=E)))),(E=Z0?J0(e,n):ex(e,n))&&(u=Di(u,"onBeforeInput"),0<u.length&&(d=new Fd("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=E))}Bh(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 qd(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 hx=/\r\n?/g,mx=/\u0000|\uFFFD/g;function Xd(e){return(typeof e=="string"?e:""+e).replace(hx,`
`).replace(mx,"")}function Gs(e,t,n){if(t=Xd(t),Xd(e)!==t&&n)throw Error(A(425))}function Mi(){}var ru=null,ou=null;function su(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 iu=typeof setTimeout=="function"?setTimeout:void 0,gx=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(e){return Zd.resolve(null).then(e).catch(yx)}:iu;function yx(e){setTimeout(function(){throw e})}function ll(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 Jd(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,au="__reactEvents$"+So,xx="__reactListeners$"+So,wx="__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=Jd(e);e!==null;){if(n=e[zt])return n;e=Jd(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(A(33))}function fa(e){return e[cs]||null}var lu=[],zr=-1;function Zn(e){return{current:e}}function ie(e){0>zr||(e.current=lu[zr],lu[zr]=null,zr--)}function re(e,t){zr++,lu[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 ef(e,t,n){if(Me.current!==Kn)throw Error(A(168));re(Me,t),re(Ye,n)}function Wh(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(A(108,o0(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 tf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Wh(e,t,gr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ye),ie(Me),re(Me,e)):ie(Ye),re(Ye,n)}var Jt=null,pa=!1,ul=!1;function Hh(e){Jt===null?Jt=[e]:Jt.push(e)}function bx(e){pa=!0,Hh(e)}function Jn(){if(!ul&&Jt!==null){ul=!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)),mh(ac,Jn),o}finally{te=t,ul=!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 Vh(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),Vh(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 Qh(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 nf(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 uu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cu(e){if(ue){var t=rt;if(t){var n=t;if(!nf(e,t)){if(uu(e))throw Error(A(418));t=Bn(n.nextSibling);var r=ot;t&&nf(e,t)?Qh(r,n):(e.flags=e.flags&-4097|2,ue=!1,ot=e)}}else{if(uu(e))throw Error(A(418));e.flags=e.flags&-4097|2,ue=!1,ot=e}}}function rf(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 rf(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!su(e.type,e.memoizedProps)),t&&(t=rt)){if(uu(e))throw Gh(),Error(A(418));for(;t;)Qh(e,t),t=Bn(t.nextSibling)}if(rf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(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 Gh(){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 Sx=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(A(309));var r=n.stateNode}if(!r)throw Error(A(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(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Ys(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function of(e){var t=e._init;return t(e._payload)}function Kh(e){function t(y,m){if(e){var x=y.deletions;x===null?(y.deletions=[m],y.flags|=16):x.push(m)}}function n(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function r(y,m){for(y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function o(y,m){return y=Vn(y,m),y.index=0,y.sibling=null,y}function s(y,m,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<m?(y.flags|=2,m):x):(y.flags|=2,m)):(y.flags|=1048576,m)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,m,x,S){return m===null||m.tag!==6?(m=gl(x,y.mode,S),m.return=y,m):(m=o(m,x),m.return=y,m)}function l(y,m,x,S){var C=x.type;return C===Mr?d(y,m,x.props.children,S,x.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&of(C)===m.type)?(S=o(m,x.props),S.ref=Do(y,m,x),S.return=y,S):(S=wi(x.type,x.key,x.props,null,y.mode,S),S.ref=Do(y,m,x),S.return=y,S)}function u(y,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=vl(x,y.mode,S),m.return=y,m):(m=o(m,x.children||[]),m.return=y,m)}function d(y,m,x,S,C){return m===null||m.tag!==7?(m=mr(x,y.mode,S,C),m.return=y,m):(m=o(m,x),m.return=y,m)}function p(y,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=gl(""+m,y.mode,x),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Fs:return x=wi(m.type,m.key,m.props,null,y.mode,x),x.ref=Do(y,null,m),x.return=y,x;case Dr:return m=vl(m,y.mode,x),m.return=y,m;case kn:var S=m._init;return p(y,S(m._payload),x)}if(zo(m)||Ro(m))return m=mr(m,y.mode,x,null),m.return=y,m;Ys(y,m)}return null}function v(y,m,x,S){var C=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:a(y,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Fs:return x.key===C?l(y,m,x,S):null;case Dr:return x.key===C?u(y,m,x,S):null;case kn:return C=x._init,v(y,m,C(x._payload),S)}if(zo(x)||Ro(x))return C!==null?null:d(y,m,x,S,null);Ys(y,x)}return null}function c(y,m,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(x)||null,a(m,y,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Fs:return y=y.get(S.key===null?x:S.key)||null,l(m,y,S,C);case Dr:return y=y.get(S.key===null?x:S.key)||null,u(m,y,S,C);case kn:var N=S._init;return c(y,m,x,N(S._payload),C)}if(zo(S)||Ro(S))return y=y.get(x)||null,d(m,y,S,C,null);Ys(m,S)}return null}function b(y,m,x,S){for(var C=null,N=null,E=m,R=m=0,D=null;E!==null&&R<x.length;R++){E.index>R?(D=E,E=null):D=E.sibling;var L=v(y,E,x[R],S);if(L===null){E===null&&(E=D);break}e&&E&&L.alternate===null&&t(y,E),m=s(L,m,R),N===null?C=L:N.sibling=L,N=L,E=D}if(R===x.length)return n(y,E),ue&&nr(y,R),C;if(E===null){for(;R<x.length;R++)E=p(y,x[R],S),E!==null&&(m=s(E,m,R),N===null?C=E:N.sibling=E,N=E);return ue&&nr(y,R),C}for(E=r(y,E);R<x.length;R++)D=c(E,y,R,x[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(y,W)}),ue&&nr(y,R),C}function h(y,m,x,S){var C=Ro(x);if(typeof C!="function")throw Error(A(150));if(x=C.call(x),x==null)throw Error(A(151));for(var N=C=null,E=m,R=m=0,D=null,L=x.next();E!==null&&!L.done;R++,L=x.next()){E.index>R?(D=E,E=null):D=E.sibling;var W=v(y,E,L.value,S);if(W===null){E===null&&(E=D);break}e&&E&&W.alternate===null&&t(y,E),m=s(W,m,R),N===null?C=W:N.sibling=W,N=W,E=D}if(L.done)return n(y,E),ue&&nr(y,R),C;if(E===null){for(;!L.done;R++,L=x.next())L=p(y,L.value,S),L!==null&&(m=s(L,m,R),N===null?C=L:N.sibling=L,N=L);return ue&&nr(y,R),C}for(E=r(y,E);!L.done;R++,L=x.next())L=c(E,y,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(y,$)}),ue&&nr(y,R),C}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===Mr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Fs:e:{for(var C=x.key,N=m;N!==null;){if(N.key===C){if(C=x.type,C===Mr){if(N.tag===7){n(y,N.sibling),m=o(N,x.props.children),m.return=y,y=m;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&of(C)===N.type){n(y,N.sibling),m=o(N,x.props),m.ref=Do(y,N,x),m.return=y,y=m;break e}n(y,N);break}else t(y,N);N=N.sibling}x.type===Mr?(m=mr(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=wi(x.type,x.key,x.props,null,y.mode,S),S.ref=Do(y,m,x),S.return=y,y=S)}return i(y);case Dr:e:{for(N=x.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=vl(x,y.mode,S),m.return=y,y=m}return i(y);case kn:return N=x._init,w(y,m,N(x._payload),S)}if(zo(x))return b(y,m,x,S);if(Ro(x))return h(y,m,x,S);Ys(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,x),m.return=y,y=m):(n(y,m),m=gl(x,y.mode,S),m.return=y,y=m),i(y)):n(y,m)}return w}var ho=Kh(!0),Yh=Kh(!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 du(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(A(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 qh(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 Xh(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 sf(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 v=a.lane,c=a.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:c,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,h=a;switch(v=t,c=n,h.tag){case 1:if(b=h.payload,typeof b=="function"){p=b.call(c,p,v);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=h.payload,v=typeof b=="function"?b.call(c,p,v):b,v==null)break e;p=pe({},p,v);break e;case 2:Nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[a]:v.push(a))}else c={eventTime:c,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=c,l=p):d=d.next=c,i|=v;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;v=a,a=v.next,v.next=null,o.lastBaseUpdate=v,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 af(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(A(191,o));o.call(r)}}}var Ps={},Ht=Zn(Ps),ds=Zn(Ps),fs=Zn(Ps);function ar(e){if(e===Ps)throw Error(A(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:Vl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vl(t,e)}ie(Ht),re(Ht,t)}function mo(){ie(Ht),ie(ds),ie(fs)}function Zh(e){ar(fs.current);var t=ar(Ht.current),n=Vl(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 cl=[];function Nc(){for(var e=0;e<cl.length;e++)cl[e]._workInProgressVersionPrimary=null;cl.length=0}var mi=fn.ReactCurrentDispatcher,dl=fn.ReactCurrentBatchConfig,yr=0,fe=null,be=null,Ee=null,Hi=!1,Yo=!1,ps=0,Cx=0;function Oe(){throw Error(A(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?Tx:Px,e=n(r,o),Yo){s=0;do{if(Yo=!1,ps=0,25<=s)throw Error(A(301));s+=1,Ee=be=null,t.updateQueue=null,mi.current=Rx,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(A(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(A(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 fl(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(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 pl(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(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 Jh(){}function em(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(rm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ee!==null&&Ee.memoizedState.tag&1){if(n.flags|=2048,ms(9,nm.bind(null,n,r,o,t),void 0,null),ke===null)throw Error(A(349));yr&30||tm(n,t,o)}return o}function tm(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 nm(e,t,n,r){t.value=n,t.getSnapshot=r,om(t)&&sm(e)}function rm(e,t,n){return n(function(){om(t)&&sm(e)})}function om(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function sm(e){var t=an(e,1);t!==null&&Rt(t,e,1,-1)}function lf(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=Nx.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 im(){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 uf(e,t){return gi(8390656,8,e,t)}function jc(e,t){return ha(2048,8,e,t)}function am(e,t){return ha(4,2,e,t)}function lm(e,t){return ha(4,4,e,t)}function um(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 cm(e,t,n){return n=n!=null?n.concat([e]):null,ha(4,4,um.bind(null,t,e),n)}function Oc(){}function dm(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 fm(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 pm(e,t,n){return yr&21?(jt(n,t)||(n=yh(),fe.lanes|=n,xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function Ex(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=dl.transition;dl.transition={};try{e(!1),t()}finally{te=n,dl.transition=r}}function hm(){return gt().memoizedState}function kx(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mm(e))gm(t,n);else if(n=qh(e,t,n,r),n!==null){var o=ze();Rt(n,e,r,o),vm(n,t,r)}}function Nx(e,t,n){var r=Hn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mm(e))gm(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=qh(e,t,o,r),n!==null&&(o=ze(),Rt(n,e,r,o),vm(n,t,r))}}function mm(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function gm(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 vm(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},Tx={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:uf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,um.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=kx.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:lf,useDebugValue:Oc,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=lf(!1),t=e[0];return e=Ex.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(A(407));n=n()}else{if(n=t(),ke===null)throw Error(A(349));yr&30||tm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,uf(rm.bind(null,r,s,e),[e]),r.flags|=2048,ms(9,nm.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=Cx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Px={readContext:mt,useCallback:dm,useContext:mt,useEffect:jc,useImperativeHandle:cm,useInsertionEffect:am,useLayoutEffect:lm,useMemo:fm,useReducer:fl,useRef:im,useState:function(){return fl(hs)},useDebugValue:Oc,useDeferredValue:function(e){var t=gt();return pm(t,be.memoizedState,e)},useTransition:function(){var e=fl(hs)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,unstable_isNewReconciler:!1},Rx={readContext:mt,useCallback:dm,useContext:mt,useEffect:jc,useImperativeHandle:cm,useInsertionEffect:am,useLayoutEffect:lm,useMemo:fm,useReducer:pl,useRef:im,useState:function(){return pl(hs)},useDebugValue:Oc,useDeferredValue:function(e){var t=gt();return be===null?t.memoizedState=e:pm(t,be.memoizedState,e)},useTransition:function(){var e=pl(hs)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,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 fu(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 cf(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 ym(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 df(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 pu(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"&&(fu(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+=r0(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 hl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jx=typeof WeakMap=="function"?WeakMap:Map;function xm(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,Eu=r),hu(e,t)},n}function wm(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(){hu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){hu(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 ff(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jx;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=Hx.bind(null,e,t,n),t.then(e,e))}function pf(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 hf(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 Ox=fn.ReactCurrentOwner,Ke=!1;function Fe(e,t,n,r){t.child=e===null?Yh(t,null,n,r):ho(t,e.child,n,r)}function mf(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 gf(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,bm(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 bm(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 mu(e,t,n,r,o)}function Sm(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 Cm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mu(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 vf(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),ym(t,n,r),pu(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)&&df(t,i,r,u),Nn=!1;var v=t.memoizedState;i.state=v,Ui(t,r,i,o),l=t.memoizedState,a!==r||v!==l||Ye.current||Nn?(typeof d=="function"&&(fu(t,n,d,r),l=t.memoizedState),(a=Nn||cf(t,n,a,r,v,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,Xh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),i.props=u,p=t.pendingProps,v=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=qe(n)?gr:Me.current,l=fo(t,l));var c=n.getDerivedStateFromProps;(d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==p||v!==l)&&df(t,i,r,l),Nn=!1,v=t.memoizedState,i.state=v,Ui(t,r,i,o);var b=t.memoizedState;a!==p||v!==b||Ye.current||Nn?(typeof c=="function"&&(fu(t,n,c,r),b=t.memoizedState),(u=Nn||cf(t,n,u,r,v,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&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===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&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return gu(e,t,n,r,s,o)}function gu(e,t,n,r,o,s){Cm(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&tf(t,n,!1),ln(e,t,s);r=t.stateNode,Ox.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&&tf(t,n,!0),t.child}function Em(e){var t=e.stateNode;t.pendingContext?ef(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ef(e,t.context,!1),Ec(e,t.containerInfo)}function yf(e,t,n,r,o){return po(),yc(o),t.flags|=256,Fe(e,t,n,r),t.child}var vu={dehydrated:null,treeContext:null,retryLane:0};function yu(e){return{baseLanes:e,cachePool:null,transitions:null}}function km(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 cu(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=yu(n),t.memoizedState=vu,e):Ac(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?yu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=vu,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 Ac(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=Ac(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=hl(Error(A(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=yu(i),t.memoizedState=vu,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(A(419)),r=hl(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=hl(Error(A(421))),qs(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Vx.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=Ac(t,r.children),t.flags|=4096,t)}function xf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),du(e.return,t,n)}function ml(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 Nm(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&&xf(e,n,t);else if(e.tag===19)xf(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),ml(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}ml(t,!0,n,null,s);break;case"together":ml(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(A(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 _x(e,t,n){switch(t.tag){case 3:Em(t),po();break;case 5:Zh(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?km(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 Nm(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,Sm(e,t,n)}return ln(e,t,n)}var Tm,xu,Pm,Rm;Tm=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}};xu=function(){};Pm=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=Bl(e,o),r=Bl(e,r),s=[];break;case"select":o=pe({},o,{value:void 0}),r=pe({},r,{value:void 0}),s=[];break;case"textarea":o=Hl(e,o),r=Hl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mi)}Ql(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)}};Rm=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 Ae(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 Dx(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 Ae(t),null;case 1:return qe(t.type)&&Li(),Ae(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&&(Tu(Tt),Tt=null))),xu(e,t),Ae(t),null;case 5:kc(t);var o=ar(fs.current);if(n=t.type,e!==null&&t.stateNode!=null)Pm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Ae(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":Td(r,s),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},se("invalid",r);break;case"textarea":Rd(r,s),se("invalid",r)}Ql(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),Pd(r,s,!0);break;case"textarea":$s(r),jd(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=rh(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,Tm(e,t,!1,!1),t.stateNode=e;e:{switch(i=Gl(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":Td(e,r),o=Bl(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":Rd(e,r),o=Hl(e,r),se("invalid",e);break;default:o=r}Ql(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?ih(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&oh(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),Pd(e,r,!1);break;case"textarea":$s(e),jd(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 Ae(t),null;case 6:if(e&&t.stateNode!=null)Rm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(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 Ae(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))Gh(),po(),t.flags|=98560,s=!1;else if(s=Ks(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(A(317));s[zt]=t}else po(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),s=!1}else Tt!==null&&(Tu(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),Ae(t),null);case 4:return mo(),xu(e,t),e===null&&ls(t.stateNode.containerInfo),Ae(t),null;case 10:return bc(t.type._context),Ae(t),null;case 17:return qe(t.type)&&Li(),Ae(t),null;case 19:if(ie(de),s=t.memoizedState,s===null)return Ae(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 Ae(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):(Ae(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&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Mx(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(A(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,Lx=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 wu(e,t,n){try{n()}catch(r){ge(e,t,r)}}var wf=!1;function Ix(e,t){if(ru=Ai,e=Dh(),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,v=null;t:for(;;){for(var c;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),(c=p.firstChild)!==null;)v=p,p=c;for(;;){if(p===e)break t;if(v===n&&++u===o&&(a=i),v===s&&++d===r&&(l=i),(c=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=c}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},Ai=!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 h=b.memoizedProps,w=b.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:St(t.type,h),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(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=wf,wf=!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&&wu(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 bu(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 jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(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[au],delete t[xx],delete t[wx])),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 Om(e){return e.tag===5||e.tag===3||e.tag===4}function bf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(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 Su(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(Su(e,t,n),e=e.sibling;e!==null;)Su(e,t,n),e=e.sibling}function Cu(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(Cu(e,t,n),e=e.sibling;e!==null;)Cu(e,t,n),e=e.sibling}var Te=null,Nt=!1;function yn(e,t,n){for(n=n.child;n!==null;)Am(e,t,n),n=n.sibling}function Am(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?ll(e.parentNode,n):e.nodeType===1&&ll(e,n),ss(e)):ll(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)&&wu(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 Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lx),t.forEach(function(r){var o=Qx.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(A(160));Am(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;)_m(t,e),t=t.sibling}function _m(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(h){ge(e,e.return,h)}try{qo(5,e,e.return)}catch(h){ge(e,e.return,h)}}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(h){ge(e,e.return,h)}}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&&th(o,s),Gl(a,i);var u=Gl(a,s);for(i=0;i<l.length;i+=2){var d=l[i],p=l[i+1];d==="style"?ih(o,p):d==="dangerouslySetInnerHTML"?oh(o,p):d==="children"?ts(o,p):nc(o,d,p,u)}switch(a){case"input":Ul(o,s);break;case"textarea":nh(o,s);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var c=s.value;c!=null?Qr(o,!!s.multiple,c,!1):v!==!!s.multiple&&(s.defaultValue!=null?Qr(o,!!s.multiple,s.defaultValue,!0):Qr(o,!!s.multiple,s.multiple?[]:"",!1))}o[cs]=s}catch(h){ge(e,e.return,h)}}break;case 6:if(wt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(h){ge(e,e.return,h)}}break;case 3:if(wt(t,e),Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ss(t.containerInfo)}catch(h){ge(e,e.return,h)}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&&Sf(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(v=B,c=v.child,v.tag){case 0:case 11:case 14:case 15:qo(4,v,v.return);break;case 1:Hr(v,v.return);var b=v.stateNode;if(typeof b.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(h){ge(r,n,h)}}break;case 5:Hr(v,v.return);break;case 22:if(v.memoizedState!==null){Ef(p);continue}}c!==null?(c.return=v,B=c):Ef(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=sh("display",i))}catch(h){ge(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){ge(e,e.return,h)}}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&&Sf(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(Om(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ts(o,""),r.flags&=-33);var s=bf(e);Cu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=bf(e);Su(e,a,i);break;default:throw Error(A(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fx(e,t,n){B=e,Dm(e)}function Dm(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?kf(o):l!==null?(l.return=i,B=l):kf(o);for(;s!==null;)B=s,Dm(s),s=s.sibling;B=o,Xs=a,De=u}Cf(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):Cf(e)}}function Cf(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&&af(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}af(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(A(163))}De||t.flags&512&&bu(t)}catch(v){ge(t,t.return,v)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Ef(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 kf(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{bu(t)}catch(l){ge(t,s,l)}break;case 5:var i=t.return;try{bu(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 $x=Math.ceil,Qi=fn.ReactCurrentDispatcher,_c=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,Eu=null,Wn=null,Zs=!1,Mn=null,Ki=0,Zo=0,ku=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:Sx.transition!==null?(xi===0&&(xi=yh()),xi):(e=te,e!==0||(e=window.event,e=e===void 0?16:kh(e.type)),e):1}function Rt(e,t,n,r){if(50<Zo)throw Zo=0,ku=null,Error(A(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;S0(e,t);var r=Oi(e,e===ke?Pe:0);if(r===0)n!==null&&_d(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_d(n),t===1)e.tag===0?bx(Nf.bind(null,e)):Hh(Nf.bind(null,e)),vx(function(){!(Z&6)&&Jn()}),n=null;else{switch(xh(r)){case 1:n=ac;break;case 4:n=gh;break;case 16:n=ji;break;case 536870912:n=vh;break;default:n=ji}n=Um(n,Mm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mm(e,t){if(yi=-1,xi=0,Z&6)throw Error(A(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=Im();(ke!==e||Pe!==t)&&(Zt=null,vo=ve()+500,hr(e,t));do try{Ux();break}catch(a){Lm(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=Zl(e),o!==0&&(r=o,t=Nu(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)&&!zx(o)&&(t=Yi(e,r),t===2&&(s=Zl(e),s!==0&&(r=s,t=Nu(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(A(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=iu(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*$x(r/1960))-r,10<r){e.timeoutHandle=iu(rr.bind(null,e,Ge,Zt),r);break}rr(e,Ge,Zt);break;case 5:rr(e,Ge,Zt);break;default:throw Error(A(329))}}}return Xe(e,ve()),e.callbackNode===n?Mm.bind(null,e):null}function Nu(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&&Tu(t)),e}function Tu(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function zx(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 Nf(e){if(Z&6)throw Error(A(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=Zl(e);r!==0&&(t=r,n=Nu(e,r))}if(n===1)throw n=gs,hr(e,0),Pn(e,t),Xe(e,ve()),n;if(n===6)throw Error(A(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,gx(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 Lm(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,_c.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 v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var c=pf(i);if(c!==null){c.flags&=-257,hf(c,i,a,s,t),c.mode&1&&ff(s,u,t),t=c,l=u;var b=t.updateQueue;if(b===null){var h=new Set;h.add(l),t.updateQueue=h}else b.add(l);break e}else{if(!(t&1)){ff(s,u,t),Fc();break e}l=Error(A(426))}}else if(ue&&a.mode&1){var w=pf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),hf(w,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 y=xm(s,l,t);sf(s,y);break e;case 1:a=l;var m=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Wn===null||!Wn.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=wm(s,a,t);sf(s,S);break e}}s=s.return}while(s!==null)}$m(n)}catch(C){t=C,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(!0)}function Im(){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=Im();(ke!==e||Pe!==t)&&(Zt=null,hr(e,t));do try{Bx();break}catch(o){Lm(e,o)}while(!0);if(wc(),Z=n,Qi.current=r,ye!==null)throw Error(A(261));return ke=null,Pe=0,Se}function Bx(){for(;ye!==null;)Fm(ye)}function Ux(){for(;ye!==null&&!p0();)Fm(ye)}function Fm(e){var t=Bm(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?$m(e):ye=t,_c.current=null}function $m(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Mx(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=Dx(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,Wx(e,t,n,r)}finally{ht.transition=o,te=r}return null}function Wx(e,t,n,r){do Xr();while(Mn!==null);if(Z&6)throw Error(A(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(A(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(C0(e,s),e===ke&&(ye=ke=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zs||(Zs=!0,Um(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,_c.current=null,Ix(e,n),_m(n,e),ux(ou),Ai=!!ru,ou=ru=null,e.current=n,Fx(n),h0(),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),v0(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=Eu,Eu=null,e;return Ki&1&&e.tag!==0&&Xr(),s=e.pendingLanes,s&1?e===ku?Zo++:(Zo=0,ku=e):Zo=0,Jn(),null}function Xr(){if(Mn!==null){var e=xh(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(A(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 v=d.sibling,c=d.return;if(jm(d),d===u){B=null;break}if(v!==null){v.return=c,B=v;break}B=c}}}var b=s.alternate;if(b!==null){var h=b.child;if(h!==null){b.child=null;do{var w=h.sibling;h.sibling=null,h=w}while(h!==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 y=s.sibling;if(y!==null){y.return=s.return,B=y;break e}B=s.return}}var m=e.current;for(B=m;B!==null;){i=B;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,B=x;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 Tf(e,t,n){t=go(n,t),t=xm(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)Tf(e,e,n);else for(;t!==null;){if(t.tag===3){Tf(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=wm(t,e,1),t=Un(t,e,1),e=ze(),t!==null&&(ks(t,1,e),Xe(t,e));break}}t=t.return}}function Hx(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 zm(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 Vx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zm(e,n)}function Qx(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(A(314))}r!==null&&r.delete(t),zm(e,n)}var Bm;Bm=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,_x(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ue&&t.flags&1048576&&Vh(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,pu(t,r,e,n),t=gu(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=Kx(r),e=St(r,e),o){case 0:t=mu(null,t,r,e,n);break e;case 1:t=vf(null,t,r,e,n);break e;case 11:t=mf(null,t,r,e,n);break e;case 14:t=gf(null,t,r,St(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),mu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),vf(e,t,r,o,n);case 3:e:{if(Em(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Xh(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(A(423)),t),t=yf(e,t,r,n,o);break e}else if(r!==o){o=go(Error(A(424)),t),t=yf(e,t,r,n,o);break e}else for(rt=Bn(t.stateNode.containerInfo.firstChild),ot=t,ue=!0,Tt=null,n=Yh(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 Zh(t),e===null&&cu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,su(r,o)?i=null:s!==null&&su(r,s)&&(t.flags|=32),Cm(e,t),Fe(e,t,i,n),t.child;case 6:return e===null&&cu(t),null;case 13:return km(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),mf(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),du(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(A(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),du(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),gf(e,t,r,o,n);case 15:return bm(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),ym(t,r,o),pu(t,r,o,n),gu(null,t,r,!0,e,n);case 19:return Nm(e,t,n);case 22:return Sm(e,t,n)}throw Error(A(156,t.tag))};function Um(e,t){return mh(e,t)}function Gx(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 Gx(e,t,n,r)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kx(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 Il:return e=pt(12,n,t,o|2),e.elementType=Il,e.lanes=s,e;case Fl:return e=pt(13,n,t,o),e.elementType=Fl,e.lanes=s,e;case $l:return e=pt(19,n,t,o),e.elementType=$l,e.lanes=s,e;case Zp:return ya(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:i=10;break e;case Xp: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(A(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=Zp,e.lanes=n,e.stateNode={isHidden:!1},e}function gl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function vl(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 Yx(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=Xa(0),this.expirationTimes=Xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,o,s,i,a,l){return e=new Yx(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 qx(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 Wm(e){if(!e)return Kn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(A(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(A(171))}if(e.tag===1){var n=e.type;if(qe(n))return Wh(e,n,t)}return t}function Hm(e,t,n,r,o,s,i,a,l){return e=zc(n,r,!0,e,o,s,i,a,l),e.context=Wm(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=Wm(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 Pf(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){Pf(e,t),(e=e.alternate)&&Pf(e,t)}function Xx(){return null}var Vm=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(A(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=Sh();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&&Eh(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 Rf(){}function Zx(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=Hm(t,r,e,0,null,!1,!1,"",Rf);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,"",Rf);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=Zx(n,t,e,o,r);return qi(i)}wh=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)}};bh=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)}};Sh=function(){return te};Ch=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};Yl=function(e,t,n){switch(t){case"input":if(Ul(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(A(90));eh(r),Ul(r,o)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&Qr(e,!!n.multiple,t,!1)}};uh=Lc;ch=wr;var Jx={usingClientEntryPoint:!1,Events:[Ts,$r,fa,ah,lh,Lc]},Lo={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},e1={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=ph(e),e===null?null:e.stateNode},findFiberByHostInstance:Lo.findFiberByHostInstance||Xx,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(e1),Wt=Js}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jx;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wc(t))throw Error(A(200));return qx(e,t,null,n)};at.createRoot=function(e,t){if(!Wc(e))throw Error(A(299));var n=!1,r="",o=Vm;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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=ph(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(A(200));return Sa(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Wc(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Vm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Hm(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(A(200));return Sa(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ba(e))throw Error(A(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(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Sa(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function Qm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qm)}catch(e){console.error(e)}}Qm(),Qp.exports=at;var Rs=Qp.exports;const Gm=Dp(Rs);var Km,jf=Rs;Km=jf.createRoot,jf.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 t1(e,t){return typeof e=="function"?e(t):e}function n1(e){return typeof e=="number"&&e>=0&&e!==1/0}function r1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pu(e,t){return typeof e=="function"?e(t):e}function o1(e,t){return typeof e=="function"?e(t):e}function Of(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)=>Ru(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 Ym(e,t){if(e===t)return e;const n=_f(e)&&_f(t);if(n||Ru(e)&&Ru(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]=Ym(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function _f(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ru(e){if(!Df(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Df(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Df(e){return Object.prototype.toString.call(e)==="[object Object]"}function s1(e){return new Promise(t=>{setTimeout(t,e)})}function i1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ym(e,t):t}function a1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function l1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vc=Symbol();function qm(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,Np,u1=(Np=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,Np),Xm=new u1,ro,jn,oo,Tp,c1=(Tp=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,Tp),Xi=new c1;function d1(){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 f1(e){return Math.min(1e3*2**e,3e4)}function Zm(e){return(e??"online")==="online"?Xi.isOnline():!0}var Jm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yl(e){return e instanceof Jm}function eg(e){let t=!1,n=0,r=!1,o;const s=d1(),i=h=>{var w;r||(v(new Jm(h)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Xm.isFocused()&&(e.networkMode==="always"||Xi.isOnline())&&e.canRun(),d=()=>Zm(e.networkMode)&&e.canRun(),p=h=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,h),o==null||o(),s.resolve(h))},v=h=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,h),o==null||o(),s.reject(h))},c=()=>new Promise(h=>{var w;o=y=>{(r||u())&&h(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),b=()=>{if(r)return;let h;const w=n===0?e.initialPromise:void 0;try{h=w??e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(p).catch(y=>{var N;if(r)return;const m=e.retry??(Ea?0:3),x=e.retryDelay??f1,S=typeof x=="function"?x(n,y):x,C=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(t||!C){v(y);return}n++,(N=e.onFail)==null||N.call(e,n,y),s1(S).then(()=>u()?void 0:c()).then(()=>{t?v(y):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():c().then(b),s)}}var p1=e=>setTimeout(e,0);function h1(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=p1;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=h1(),ur,Pp,tg=(Pp=class{constructor(){ee(this,ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),n1(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,Pp),so,cr,ct,dr,_e,Ss,fr,Et,Xt,Rp,m1=(Rp=class extends tg{constructor(t){super();ee(this,Et);ee(this,so);ee(this,cr);ee(this,ct);ee(this,dr);ee(this,_e);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,v1(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,_e))==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=i1(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,_e))==null?void 0:r.promise;return(o=j(this,_e))==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=>o1(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=>Pu(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:!r1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,_e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,_e))==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,_e)&&(j(this,fr)?j(this,_e).cancel({revert:!0}):j(this,_e).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,_e))return j(this,_e).continueRetry(),j(this,_e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(c=>c.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,o=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(G(this,fr,!0),r.signal)})},s=()=>{const v=qm(this.options,n),b=(()=>{const h={client:j(this,dr),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return G(this,fr,!1),this.options.persister?this.options.persister(v,b,this):v(b)},a=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,dr),state:this.state,fetchFn:s};return o(v),v})();(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=v=>{var c,b,h,w;yl(v)&&v.silent||je(this,Et,Xt).call(this,{type:"error",error:v}),yl(v)||((b=(c=j(this,ct).config).onError)==null||b.call(c,v,this),(w=(h=j(this,ct).config).onSettled)==null||w.call(h,this.state.data,v,this)),this.scheduleGc()};return G(this,_e,eg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:v=>{var c,b,h,w;if(v===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(y){l(y);return}(b=(c=j(this,ct).config).onSuccess)==null||b.call(c,v,this),(w=(h=j(this,ct).config).onSettled)==null||w.call(h,v,this.state.error,this),this.scheduleGc()},onError:l,onFail:(v,c)=>{je(this,Et,Xt).call(this,{type:"failed",failureCount:v,error:c})},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,_e).start()}},so=new WeakMap,cr=new WeakMap,ct=new WeakMap,dr=new WeakMap,_e=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,...g1(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 yl(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})})},Rp);function g1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v1(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,jp,y1=(jp=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 m1({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=>Of(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Of(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,jp),Ft,Ie,pr,$t,Sn,Op,x1=(Op=class extends tg{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||w1(),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,v,c,b,h,w,y,m,x,S,C,N,E,R;const n=()=>{je(this,$t,Sn).call(this,{type:"continue"})};G(this,pr,eg({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((v=(p=this.options).onSuccess)==null?void 0:v.call(p,D,t,this.state.context)),await((b=(c=j(this,Ie).config).onSettled)==null?void 0:b.call(c,D,null,this.state.variables,this.state.context,this)),await((w=(h=this.options).onSettled)==null?void 0:w.call(h,D,null,t,this.state.context)),je(this,$t,Sn).call(this,{type:"success",data:D}),D}catch(D){try{throw await((m=(y=j(this,Ie).config).onError)==null?void 0:m.call(y,D,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,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})})},Op);function w1(){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,Ap,b1=(Ap=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 x1({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,Ap);function ei(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Mf(e){return{onFetch:(t,n)=>{var d,p,v,c,b;const r=t.options,o=(v=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,s=((c=t.state.data)==null?void 0:c.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let h=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},y=qm(t.options,t.fetchOptions),m=async(x,S,C)=>{if(h)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return w(W),W})(),R=await y(E),{maxPages:D}=t.options,L=C?l1:a1;return{pages:L(x.pages,R,D),pageParams:L(x.pageParams,S,D)}};if(o&&s.length){const x=o==="backward",S=x?S1:Lf,C={pages:s,pageParams:i},N=S(r,C);a=await m(C,N,x)}else{const x=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Lf(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var h,w;return(w=(h=t.options).persister)==null?void 0:w.call(h,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Lf(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 S1(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,An,io,ao,_n,lo,uo,_p,C1=(_p=class{constructor(e={}){ee(this,me);ee(this,On);ee(this,An);ee(this,io);ee(this,ao);ee(this,_n);ee(this,lo);ee(this,uo);G(this,me,e.queryCache||new y1),G(this,On,e.mutationCache||new b1),G(this,An,e.defaultOptions||{}),G(this,io,new Map),G(this,ao,new Map),G(this,_n,0)}mount(){Ls(this,_n)._++,j(this,_n)===1&&(G(this,lo,Xm.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,_n)._--,j(this,_n)===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(Pu(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=t1(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(Pu(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=Mf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=Mf(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,An)}setDefaultOptions(e){G(this,An,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,An).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,An).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,An=new WeakMap,io=new WeakMap,ao=new WeakMap,_n=new WeakMap,lo=new WeakMap,uo=new WeakMap,_p),E1=g.createContext(void 0),k1=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(E1.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 If="popstate";function N1(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return ju("",{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:rg(o)}return P1(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ng(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T1(){return Math.random().toString(36).substr(2,8)}function Ff(e,t){return{usr:e.state,key:e.key,idx:t}}function ju(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||T1()})}function rg(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 P1(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 w=d(),y=w==null?null:w-u;u=w,l&&l({action:a,location:h.location,delta:y})}function v(w,y){a=Ln.Push;let m=ju(h.location,w,y);u=d()+1;let x=Ff(m,u),S=h.createHref(m);try{i.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}s&&l&&l({action:a,location:h.location,delta:1})}function c(w,y){a=Ln.Replace;let m=ju(h.location,w,y);u=d();let x=Ff(m,u),S=h.createHref(m);i.replaceState(x,"",S),s&&l&&l({action:a,location:h.location,delta:0})}function b(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:rg(w);return m=m.replace(/ $/,"%20"),Ze(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let h={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(If,p),l=w,()=>{o.removeEventListener(If,p),l=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let y=b(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:v,replace:c,go(w){return i.go(w)}};return h}var $f;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($f||($f={}));function R1(e,t,n){return n===void 0&&(n="/"),j1(e,t,n,!1)}function j1(e,t,n,r){let o=typeof t=="string"?ka(t):t,s=ig(o.pathname||"/",n);if(s==null)return null;let i=og(e);O1(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=U1(s);a=z1(i[l],u,r)}return a}function og(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+'".')),og(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:F1(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 sg(s.path))o(s,i,l)}),t}function sg(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=sg(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 O1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A1=/^:[\w-]+$/,_1=3,D1=2,M1=1,L1=10,I1=-2,zf=e=>e==="*";function F1(e,t){let n=e.split("/"),r=n.length;return n.some(zf)&&(r+=I1),t&&(r+=D1),n.filter(o=>!zf(o)).reduce((o,s)=>o+(A1.test(s)?_1:s===""?M1:L1),r)}function $1(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 z1(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=Bf({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),v=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Bf({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:W1(Zr([s,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(s=Zr([s,p.pathnameBase]))}return i}function Bf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=B1(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:v,isOptional:c}=d;if(v==="*"){let h=a[p]||"";i=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const b=a[p];return c&&!b?u[v]=void 0:u[v]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function B1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ng(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 U1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ng(!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 ig(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,"/"),W1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function H1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ag=["post","put","patch","delete"];new Set(ag);const V1=["get",...ag];new Set(V1);/**
* 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 Q1=g.createContext(null),G1=g.createContext(null),lg=g.createContext(null),Na=g.createContext(null),Ta=g.createContext({outlet:null,matches:[],isDataRoute:!1}),ug=g.createContext(null);function Qc(){return g.useContext(Na)!=null}function cg(){return Qc()||Ze(!1),g.useContext(Na).location}function K1(e,t){return Y1(e,t)}function Y1(e,t,n,r){Qc()||Ze(!1);let{navigator:o}=g.useContext(lg),{matches:s}=g.useContext(Ta),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=cg(),d;if(t){var p;let w=typeof t=="string"?ka(t):t;l==="/"||(p=w.pathname)!=null&&p.startsWith(l)||Ze(!1),d=w}else d=u;let v=d.pathname||"/",c=v;if(l!=="/"){let w=l.replace(/^\//,"").split("/");c="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=R1(e,{pathname:c}),h=ew(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Zr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Zr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&h?g.createElement(Na.Provider,{value:{location:Ji({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ln.Pop}},h):h}function q1(){let e=ow(),t=H1(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 g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,null)}const X1=g.createElement(q1,null);class Z1 extends g.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?g.createElement(Ta.Provider,{value:this.props.routeContext},g.createElement(ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J1(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(Q1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(Ta.Provider,{value:t},r)}function ew(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:v,errors:c}=n,b=p.route.loader&&v[p.route.id]===void 0&&(!c||c[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,v)=>{let c,b=!1,h=null,w=null;n&&(c=a&&p.route.id?a[p.route.id]:void 0,h=p.route.errorElement||X1,l&&(u<0&&v===0?(b=!0,w=null):u===v&&(b=!0,w=p.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,v+1)),m=()=>{let x;return c?x=h:b?x=w:p.route.Component?x=g.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=d,g.createElement(J1,{match:p,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?g.createElement(Z1,{location:n.location,revalidation:n.revalidation,component:h,error:c,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var Ou=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}(Ou||{});function tw(e){let t=g.useContext(G1);return t||Ze(!1),t}function nw(e){let t=g.useContext(Ta);return t||Ze(!1),t}function rw(e){let t=nw(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function ow(){var e;let t=g.useContext(ug),n=tw(Ou.UseRouteError),r=rw(Ou.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Au(e){Ze(!1)}function iw(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=g.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:v="",state:c=null,key:b="default"}=r,h=g.useMemo(()=>{let w=ig(d,l);return w==null?null:{location:{pathname:w,search:p,hash:v,state:c,key:b},navigationType:o}},[l,d,p,v,c,b,o]);return h==null?null:g.createElement(lg.Provider,{value:u},g.createElement(Na.Provider,{children:n,value:h}))}function aw(e){let{children:t,location:n}=e;return K1(_u(t),n)}new Promise(()=>{});function _u(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,o)=>{if(!g.isValidElement(r))return;let s=[...t,o];if(r.type===g.Fragment){n.push.apply(n,_u(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=_u(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 lw="6";try{window.__reactRouterVersion=lw}catch{}const uw="startTransition",Uf=Ju[uw];function cw(e){let{basename:t,children:n,future:r,window:o}=e,s=g.useRef();s.current==null&&(s.current=N1({window:o,v5Compat:!0}));let i=s.current,[a,l]=g.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=g.useCallback(p=>{u&&Uf?Uf(()=>l(p)):l(p)},[l,u]);return g.useLayoutEffect(()=>i.listen(d),[i,d]),g.useEffect(()=>sw(r),[r]),g.createElement(iw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Wf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wf||(Wf={}));var Hf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hf||(Hf={}));var Vf=["light","dark"],dw="(prefers-color-scheme: dark)",fw=g.createContext(void 0),pw={setTheme:e=>{},themes:[]},hw=()=>{var e;return(e=g.useContext(fw))!=null?e:pw};g.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?Vf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",v=(b,h=!1,w=!0)=>{let y=i?i[b]:b,m=h?b+"|| ''":`'${y}'`,x="";return o&&w&&!h&&Vf.includes(b)&&(x+=`d.style.colorScheme = '${b}';`),n==="class"?h||y?x+=`c.add(${m})`:x+="null":y&&(x+=`d[s](n,${m})`),x},c=e?`!function(){${d}${v(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${dw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${v("dark")}}else{${v("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${v(i?"x[e]":"e",!0)}}${u?"":"else{"+v(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${v(i?"x[e]":"e",!0)}}else{${v(s,!1,!1)};}${p}}catch(t){}}();`;return g.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:c}})});var mw=e=>{switch(e){case"success":return yw;case"info":return ww;case"warning":return xw;case"error":return bw;default:return null}},gw=Array(12).fill(0),vw=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},gw.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),yw=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"})),xw=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"})),ww=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"})),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-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"})),Sw=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"})),Cw=()=>{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},Du=1,Ew=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:Du++,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(Nw(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)||Du++;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 Ew,kw=(e,t)=>{let n=(t==null?void 0:t.id)||Du++;return Qe.addToast({title:e,...t,id:n}),n},Nw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Tw=kw,Pw=()=>Qe.toasts,Rw=()=>Qe.getActiveToasts(),He=Object.assign(Tw,{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:Pw,getToasts:Rw});function jw(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))}jw(`: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 Ow=3,Aw="32px",_w="16px",Qf=4e3,Dw=356,Mw=14,Lw=20,Iw=200;function bt(...e){return e.filter(Boolean).join(" ")}function Fw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var $w=e=>{var t,n,r,o,s,i,a,l,u,d,p;let{invert:v,toast:c,unstyled:b,interacting:h,setHeights:w,visibleToasts:y,heights:m,index:x,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:_,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,_s]=M.useState(!1),[Ba,Ds]=M.useState(!1),[Ua,To]=M.useState(0),[Nr,hd]=M.useState(0),Po=M.useRef(c.duration||F||Qf),md=M.useRef(null),er=M.useRef(null),wy=x===0,by=x+1<=y,ut=c.type,Tr=c.dismissible!==!1,Sy=c.className||"",Cy=c.descriptionClassName||"",Ms=M.useMemo(()=>m.findIndex(Q=>Q.toastId===c.id)||0,[m,c.id]),Ey=M.useMemo(()=>{var Q;return(Q=c.closeButton)!=null?Q:R},[c.closeButton,R]),gd=M.useMemo(()=>c.duration||F||Qf,[c.duration,F]),Wa=M.useRef(0),Pr=M.useRef(0),vd=M.useRef(0),Rr=M.useRef(null),[ky,Ny]=I.split("-"),yd=M.useMemo(()=>m.reduce((Q,ne,le)=>le>=Ms?Q:Q+ne.height,0),[m,Ms]),xd=Cw(),Ty=c.invert||v,Ha=ut==="loading";Pr.current=M.useMemo(()=>Ms*T+yd,[Ms,yd]),M.useEffect(()=>{Po.current=gd},[gd]),M.useEffect(()=>{pn(!0)},[]),M.useEffect(()=>{let Q=er.current;if(Q){let ne=Q.getBoundingClientRect().height;return hd(ne),w(le=>[{toastId:c.id,height:ne,position:c.position},...le]),()=>w(le=>le.filter(vt=>vt.toastId!==c.id))}},[w,c.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,hd(le),w(vt=>vt.find(yt=>yt.toastId===c.id)?vt.map(yt=>yt.toastId===c.id?{...yt,height:le}:yt):[{toastId:c.id,height:le,position:c.position},...vt])},[J,c.title,c.description,w,c.id]);let mn=M.useCallback(()=>{ae(!0),To(Pr.current),w(Q=>Q.filter(ne=>ne.toastId!==c.id)),setTimeout(()=>{N(c)},Iw)},[c,N,w,Pr]);M.useEffect(()=>{if(c.promise&&ut==="loading"||c.duration===1/0||c.type==="loading")return;let Q;return C||h||z&&xd?(()=>{if(vd.current<Wa.current){let ne=new Date().getTime()-Wa.current;Po.current=Po.current-ne}vd.current=new Date().getTime()})():Po.current!==1/0&&(Wa.current=new Date().getTime(),Q=setTimeout(()=>{var ne;(ne=c.onAutoClose)==null||ne.call(c,c),mn()},Po.current)),()=>clearTimeout(Q)},[C,h,c,ut,z,xd,mn]),M.useEffect(()=>{c.delete&&mn()},[mn,c.delete]);function Py(){var Q,ne,le;return _!=null&&_.loading?M.createElement("div",{className:bt(P==null?void 0:P.loader,(Q=c==null?void 0:c.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":ut==="loading"},_.loading):O?M.createElement("div",{className:bt(P==null?void 0:P.loader,(ne=c==null?void 0:c.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":ut==="loading"},O):M.createElement(vw,{className:bt(P==null?void 0:P.loader,(le=c==null?void 0:c.classNames)==null?void 0:le.loader),visible:ut==="loading"})}return M.createElement("li",{tabIndex:0,ref:er,className:bt($,Sy,P==null?void 0:P.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[ut],(n=c==null?void 0:c.classNames)==null?void 0:n[ut]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:E,"data-styled":!(c.jsx||c.unstyled||b),"data-mounted":J,"data-promise":!!c.promise,"data-swiped":Ba,"data-removed":X,"data-visible":by,"data-y-position":ky,"data-x-position":Ny,"data-index":x,"data-front":wy,"data-swiping":Dt,"data-dismissible":Tr,"data-type":ut,"data-invert":Ty,"data-swipe-out":hn,"data-swipe-direction":he,"data-expanded":!!(C||k&&J),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${X?Ua:Pr.current}px`,"--initial-height":k?"auto":`${Nr}px`,...D,...c.style},onDragEnd:()=>{kr(!1),Y(null),Rr.current=null},onPointerDown:Q=>{Ha||!Tr||(md.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=md.current)==null?void 0:le.getTime()),xt=H==="x"?yt:gn,vn=Math.abs(xt)/tr;if(Math.abs(xt)>=Lw||vn>.11){To(Pr.current),(vt=c.onDismiss)==null||vt.call(c,c),Ce(H==="x"?yt>0?"right":"left":gn>0?"down":"up"),mn(),_s(!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:Fw(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`)}},Ey&&!c.jsx?M.createElement("button",{"aria-label":U,"data-disabled":Ha,"data-close-button":!0,onClick:Ha||!Tr?()=>{}:()=>{var Q;mn(),(Q=c.onDismiss)==null||Q.call(c,c)},className:bt(P==null?void 0:P.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},(s=_==null?void 0:_.close)!=null?s:Sw):null,c.jsx||g.isValidElement(c.title)?c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title:M.createElement(M.Fragment,null,ut||c.icon||c.promise?M.createElement("div",{"data-icon":"",className:bt(P==null?void 0:P.icon,(i=c==null?void 0:c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Py():null,c.type!=="loading"?c.icon||(_==null?void 0:_[ut])||mw(ut):null):null,M.createElement("div",{"data-content":"",className:bt(P==null?void 0:P.content,(a=c==null?void 0:c.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:bt(P==null?void 0:P.title,(l=c==null?void 0:c.classNames)==null?void 0:l.title)},typeof c.title=="function"?c.title():c.title),c.description?M.createElement("div",{"data-description":"",className:bt(V,Cy,P==null?void 0:P.description,(u=c==null?void 0:c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),g.isValidElement(c.cancel)?c.cancel:c.cancel&&ti(c.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||L,onClick:Q=>{var ne,le;ti(c.cancel)&&Tr&&((le=(ne=c.cancel).onClick)==null||le.call(ne,Q),mn())},className:bt(P==null?void 0:P.cancelButton,(d=c==null?void 0:c.classNames)==null?void 0:d.cancelButton)},c.cancel.label):null,g.isValidElement(c.action)?c.action:c.action&&ti(c.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||W,onClick:Q=>{var ne,le;ti(c.action)&&((le=(ne=c.action).onClick)==null||le.call(ne,Q),!Q.defaultPrevented&&mn())},className:bt(P==null?void 0:P.actionButton,(p=c==null?void 0:c.classNames)==null?void 0:p.actionButton)},c.action.label):null))};function Gf(){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 zw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?_w: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 Bw=g.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:v,style:c,visibleToasts:b=Ow,toastOptions:h,dir:w=Gf(),gap:y=Mw,loadingIcon:m,icons:x,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),_=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(()=>{Gm.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,_.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:w==="auto"?Gf():w,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":`${Dw}px`,"--gap":`${y}px`,...c,...zw(l,u)},onBlur:J=>{_.current&&!J.currentTarget.contains(J.relatedTarget)&&(_.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||_.current||(_.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($w,{key:J.id,icons:x,index:pn,toast:J,defaultRichColors:p,duration:(X=h==null?void 0:h.duration)!=null?X:v,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:n,visibleToasts:b,closeButton:(ae=h==null?void 0:h.closeButton)!=null?ae:i,interacting:V,position:z,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:U,toasts:N.filter(Dt=>Dt.position==J.position),heights:D.filter(Dt=>Dt.position==J.position),setHeights:L,expandByDefault:s,gap:y,loadingIcon:m,expanded:W,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const Uw=({...e})=>{const{theme:t="system"}=hw();return f.jsx(Bw,{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})},Ww=1,Hw=1e6;let xl=0;function Vw(){return xl=(xl+1)%Number.MAX_SAFE_INTEGER,xl.toString()}const wl=new Map,Kf=e=>{if(wl.has(e))return;const t=setTimeout(()=>{wl.delete(e),Jo({type:"REMOVE_TOAST",toastId:e})},Hw);wl.set(e,t)},Qw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ww)};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?Kf(n):e.toasts.forEach(r=>{Kf(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=Qw(Si,e),bi.forEach(t=>{t(Si)})}function Gw({...e}){const t=Vw(),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 Kw(){const[e,t]=g.useState(Si);return g.useEffect(()=>(bi.push(t),()=>{const n=bi.indexOf(t);n>-1&&bi.splice(n,1)}),[e]),{...e,toast:Gw,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 Yf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dg(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Yf(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():Yf(e[o],null)}}}}function Be(...e){return g.useCallback(dg(...e),e)}function Yw(e,t){const n=g.createContext(t),r=s=>{const{children:i,...a}=s,l=g.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=g.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=g.createContext(i),l=n.length;n=[...n,i];const u=p=>{var y;const{scope:v,children:c,...b}=p,h=((y=v==null?void 0:v[e])==null?void 0:y[l])||a,w=g.useMemo(()=>b,Object.values(b));return f.jsx(h.Provider,{value:w,children:c})};u.displayName=s+"Provider";function d(p,v){var h;const c=((h=v==null?void 0:v[e])==null?void 0:h[l])||a,b=g.useContext(c);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=>g.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,qw(o,...t)]}function qw(...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 g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ea(e){const t=Xw(e),n=g.forwardRef((r,o)=>{const{children:s,...i}=r,a=g.Children.toArray(s),l=a.find(Jw);if(l){const u=l.props.children,d=a.map(p=>p===l?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...i,ref:o,children:g.isValidElement(u)?g.cloneElement(u,void 0,d):null})}return f.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Xw(e){const t=g.forwardRef((n,r)=>{const{children:o,...s}=n;if(g.isValidElement(o)){const i=tb(o),a=eb(s,o.props);return o.type!==g.Fragment&&(a.ref=r?dg(r,i):i),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fg=Symbol("radix.slottable");function Zw(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fg,t}function Jw(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fg}function eb(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 tb(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 nb(e){const t=e+"CollectionProvider",[n,r]=js(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:w,children:y}=h,m=M.useRef(null),x=M.useRef(new Map).current;return f.jsx(o,{scope:w,itemMap:x,collectionRef:m,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=ea(a),u=M.forwardRef((h,w)=>{const{scope:y,children:m}=h,x=s(a,y),S=Be(w,x.collectionRef);return f.jsx(l,{ref:S,children:m})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",v=ea(d),c=M.forwardRef((h,w)=>{const{scope:y,children:m,...x}=h,S=M.useRef(null),C=Be(w,S),N=s(d,y);return M.useEffect(()=>(N.itemMap.set(S,{ref:S,...x}),()=>void N.itemMap.delete(S))),f.jsx(v,{[p]:"",ref:C,children:m})});c.displayName=d;function b(h){const w=s(e+"CollectionConsumer",h);return M.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const x=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((N,E)=>x.indexOf(N.ref.current)-x.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:c},b,r]}var rb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=rb.reduce((e,t)=>{const n=ea(`Primitive.${t}`),r=g.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pg(e,t){e&&Rs.flushSync(()=>e.dispatchEvent(t))}function Qt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ob(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e);g.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 sb="DismissableLayer",Mu="dismissableLayer.update",ib="dismissableLayer.pointerDownOutside",ab="dismissableLayer.focusOutside",qf,hg=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pa=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=g.useContext(hg),[d,p]=g.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,c]=g.useState({}),b=Be(t,E=>p(E)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(w),m=d?h.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=y,C=ub(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())},v),N=cb(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())},v);return ob(E=>{m===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),g.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Xf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=qf)}},[d,v,n,u]),g.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Xf())},[d,u]),g.useEffect(()=>{const E=()=>c({});return document.addEventListener(Mu,E),()=>document.removeEventListener(Mu,E)},[]),f.jsx(xe.div,{...l,ref:b,style:{pointerEvents:x?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=sb;var lb="DismissableLayerBranch",mg=g.forwardRef((e,t)=>{const n=g.useContext(hg),r=g.useRef(null),o=Be(t,r);return g.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(xe.div,{...e,ref:o})});mg.displayName=lb;function ub(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){gg(ib,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 cb(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!r.current&&gg(ab,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 Xf(){const e=new CustomEvent(Mu);document.dispatchEvent(e)}function gg(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?pg(o,s):o.dispatchEvent(s)}var db=Pa,fb=mg,un=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},pb="Portal",Gc=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=g.useState(!1);un(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Gm.createPortal(f.jsx(xe.div,{...r,ref:t}),i):null});Gc.displayName=pb;function hb(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Co=e=>{const{present:t,children:n}=e,r=mb(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),s=Be(r.ref,gb(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:s}):null};Co.displayName="Presence";function mb(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),s=g.useRef("none"),i=e?"mounted":"unmounted",[a,l]=hb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.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 v=s.current,c=ni(u);e?l("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&v!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),un(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=c=>{const h=ni(r.current).includes(c.animationName);if(c.target===t&&h&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=c=>{c.target===t&&(s.current=ni(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ni(e){return(e==null?void 0:e.animationName)||"none"}function gb(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 vb=Ju[" useInsertionEffect ".trim().toString()]||un;function vg({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=yb({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=g.useRef(e!==void 0);g.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=g.useCallback(d=>{var p;if(a){const v=xb(d)?d(e):d;v!==e&&((p=i.current)==null||p.call(i,v))}else s(d)},[a,e,s,i]);return[l,u]}function yb({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),s=g.useRef(t);return vb(()=>{s.current=t},[t]),g.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function xb(e){return typeof e=="function"}var wb=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"}),bb="VisuallyHidden",Ra=g.forwardRef((e,t)=>f.jsx(xe.span,{...e,ref:t,style:{...wb,...e.style}}));Ra.displayName=bb;var Sb=Ra,Kc="ToastProvider",[Yc,Cb,Eb]=nb("Toast"),[yg,hk]=js("Toast",[Eb]),[kb,ja]=yg(Kc),xg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=g.useState(null),[u,d]=g.useState(0),p=g.useRef(!1),v=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Kc}\`. Expected non-empty \`string\`.`),f.jsx(Yc.Provider,{scope:t,children:f.jsx(kb,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:g.useCallback(()=>d(c=>c+1),[]),onToastRemove:g.useCallback(()=>d(c=>c-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:v,children:i})})};xg.displayName=Kc;var wg="ToastViewport",Nb=["F8"],Lu="toast.viewportPause",Iu="toast.viewportResume",bg=g.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Nb,label:o="Notifications ({hotkey})",...s}=e,i=ja(wg,n),a=Cb(n),l=g.useRef(null),u=g.useRef(null),d=g.useRef(null),p=g.useRef(null),v=Be(t,p,i.onViewportChange),c=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;g.useEffect(()=>{const w=y=>{var x;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),g.useEffect(()=>{const w=l.current,y=p.current;if(b&&w&&y){const m=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(Lu);y.dispatchEvent(N),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(Iu);y.dispatchEvent(N),i.isClosePausedRef.current=!1}},S=N=>{!w.contains(N.relatedTarget)&&x()},C=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",x)}}},[b,i.isClosePausedRef]);const h=g.useCallback(({tabbingDirection:w})=>{const m=a().map(x=>{const S=x.ref.current,C=[S,...$b(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return g.useEffect(()=>{const w=p.current;if(w){const y=m=>{var C,N,E;const x=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!x){const R=document.activeElement,D=m.shiftKey;if(m.target===w&&D){(C=u.current)==null||C.focus();return}const $=h({tabbingDirection:D?"backwards":"forwards"}),V=$.findIndex(F=>F===R);bl($.slice(V+1))?m.preventDefault():D?(N=u.current)==null||N.focus():(E=d.current)==null||E.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[a,h]),f.jsxs(fb,{ref:l,role:"region","aria-label":o.replace("{hotkey}",c),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&f.jsx(Fu,{ref:u,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"forwards"});bl(w)}}),f.jsx(Yc.Slot,{scope:n,children:f.jsx(xe.ol,{tabIndex:-1,...s,ref:v})}),b&&f.jsx(Fu,{ref:d,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"backwards"});bl(w)}})]})});bg.displayName=wg;var Sg="ToastFocusProxy",Fu=g.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ja(Sg,n);return f.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()}})});Fu.displayName=Sg;var Os="Toast",Tb="toast.swipeStart",Pb="toast.swipeMove",Rb="toast.swipeCancel",jb="toast.swipeEnd",Cg=g.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=vg({prop:r,defaultProp:o??!0,onChange:s,caller:Os});return f.jsx(Co,{present:n||a,children:f.jsx(_b,{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)})})})});Cg.displayName=Os;var[Ob,Ab]=yg(Os,{onClose(){}}),_b=g.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:v,onSwipeEnd:c,...b}=e,h=ja(Os,n),[w,y]=g.useState(null),m=Be(t,F=>y(F)),x=g.useRef(null),S=g.useRef(null),C=o||h.duration,N=g.useRef(0),E=g.useRef(C),R=g.useRef(0),{onToastAdd:D,onToastRemove:L}=h,W=Qt(()=>{var I;(w==null?void 0:w.contains(document.activeElement))&&((I=h.viewport)==null||I.focus()),i()}),$=g.useCallback(F=>{!F||F===1/0||(window.clearTimeout(R.current),N.current=new Date().getTime(),R.current=window.setTimeout(W,F))},[W]);g.useEffect(()=>{const F=h.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(Lu,T),F.addEventListener(Iu,I),()=>{F.removeEventListener(Lu,T),F.removeEventListener(Iu,I)}}},[h.viewport,C,l,u,$]),g.useEffect(()=>{s&&!h.isClosePausedRef.current&&$(C)},[s,C,h.isClosePausedRef,$]),g.useEffect(()=>(D(),()=>L()),[D,L]);const V=g.useMemo(()=>w?jg(w):null,[w]);return h.viewport?f.jsxs(f.Fragment,{children:[V&&f.jsx(Db,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),f.jsx(Ob,{scope:n,onClose:W,children:Rs.createPortal(f.jsx(Yc.ItemSlot,{scope:n,children:f.jsx(db,{asChild:!0,onEscapeKeyDown:ce(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||W(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":h.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||(h.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:ce(e.onPointerDown,F=>{F.button===0&&(x.current={x:F.clientX,y:F.clientY})}),onPointerMove:ce(e.onPointerMove,F=>{if(!x.current)return;const I=F.clientX-x.current.x,T=F.clientY-x.current.y,O=!!S.current,k=["left","right"].includes(h.swipeDirection),P=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,_=k?P(0,I):0,U=k?0:P(0,T),z=F.pointerType==="touch"?10:2,H={x:_,y:U},Y={originalEvent:F,delta:H};O?(S.current=H,ri(Pb,p,Y,{discrete:!1})):Zf(H,h.swipeDirection,z)?(S.current=H,ri(Tb,d,Y,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(I)>z||Math.abs(T)>z)&&(x.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,x.current=null,I){const O=F.currentTarget,k={originalEvent:F,delta:I};Zf(I,h.swipeDirection,h.swipeThreshold)?ri(jb,c,k,{discrete:!0}):ri(Rb,v,k,{discrete:!0}),O.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),Db=e=>{const{__scopeToast:t,children:n,...r}=e,o=ja(Os,t),[s,i]=g.useState(!1),[a,l]=g.useState(!1);return Ib(()=>i(!0)),g.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:f.jsx(Gc,{asChild:!0,children:f.jsx(Ra,{...r,children:s&&f.jsxs(f.Fragment,{children:[o.label," ",n]})})})},Mb="ToastTitle",Eg=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(xe.div,{...r,ref:t})});Eg.displayName=Mb;var Lb="ToastDescription",kg=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(xe.div,{...r,ref:t})});kg.displayName=Lb;var Ng="ToastAction",Tg=g.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(Rg,{altText:n,asChild:!0,children:f.jsx(qc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ng}\`. Expected non-empty \`string\`.`),null)});Tg.displayName=Ng;var Pg="ToastClose",qc=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ab(Pg,n);return f.jsx(Rg,{asChild:!0,children:f.jsx(xe.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,o.onClose)})})});qc.displayName=Pg;var Rg=g.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return f.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function jg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Fb(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(...jg(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?pg(o,s):o.dispatchEvent(s)}var Zf=(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 Ib(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 Fb(e){return e.nodeType===e.ELEMENT_NODE}function $b(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 bl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var zb=xg,Og=bg,Ag=Cg,_g=Eg,Dg=kg,Mg=Tg,Lg=qc;function Ig(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=Ig(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ig(e))&&(r&&(r+=" "),r+=t);return r}const Jf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ep=Fg,Bb=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ep(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 v=Jf(d)||Jf(p);return o[u][v]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,v]=d;return v===void 0||(u[p]=v),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:v,...c}=d;return Object.entries(c).every(b=>{let[h,w]=b;return Array.isArray(w)?w.includes({...s,...a}[h]):{...s,...a}[h]===w})?[...u,p,v]:u},[]);return ep(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 Ub=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$g=(...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 Wb={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 Hb=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>g.createElement("svg",{ref:l,...Wb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$g("lucide",o),...a},[...i.map(([u,d])=>g.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=g.forwardRef(({className:r,...o},s)=>g.createElement(Hb,{ref:s,iconNode:t,className:$g(`lucide-${Ub(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 zg=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 Vb=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 Bg=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 Ug=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 Qb=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 Gb=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 Kb=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 Yb=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 qb=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 Xb=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 tp=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 Zb=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 Jb=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 Wg=Je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xc="-",eS=e=>{const t=nS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Xc);return a[0]===""&&a.length!==1&&a.shift(),Hg(a,t)||tS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Hg=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Hg(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},np=/^\[(.+)\]$/,tS=e=>{if(np.test(e)){const t=np.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return oS(Object.entries(e.classGroups),n).forEach(([s,i])=>{$u(i,r,s,t)}),r},$u=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:rp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(rS(o)){$u(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{$u(i,rp(t,s),n,r)})})},rp=(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},rS=e=>e.isThemeGetter,oS=(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,sS=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)}}},Vg="!",iS=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 w=0;w<a.length;w++){let y=a[w];if(u===0){if(y===o&&(r||a.slice(w,w+s)===t)){l.push(a.slice(d,w)),d=w+s;continue}if(y==="/"){p=w;continue}}y==="["?u++:y==="]"&&u--}const v=l.length===0?a:a.substring(d),c=v.startsWith(Vg),b=c?v.substring(1):v,h=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:c,baseClassName:b,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:i}):i},aS=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},lS=e=>({cache:sS(e.cacheSize),parseClassName:iS(e),...eS(e)}),uS=/\s+/,cS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(uS);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:c}=n(u);let b=!!c,h=r(b?v.substring(0,c):v);if(!h){if(!b){a=u+(a.length>0?" "+a:a);continue}if(h=r(v),!h){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=aS(d).join(":"),y=p?w+Vg:w,m=y+h;if(s.includes(m))continue;s.push(m);const x=o(h,b);for(let S=0;S<x.length;++S){const C=x[S];s.push(y+C)}a=u+(a.length>0?" "+a:a)}return a};function dS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qg(t))&&(r&&(r+=" "),r+=n);return r}const Qg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qg(e[r]))&&(n&&(n+=" "),n+=t);return n};function fS(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((d,p)=>p(d),e());return n=lS(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=cS(l,n);return o(l,d),d}return function(){return s(dS.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gg=/^\[(?:([a-z-]+):)?(.+)\]$/i,pS=/^\d+\/\d+$/,hS=new Set(["px","full","screen"]),mS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gS=/\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$/,vS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>Jr(e)||hS.has(e)||pS.test(e),xn=e=>Eo(e,"length",TS),Jr=e=>!!e&&!Number.isNaN(Number(e)),Sl=e=>Eo(e,"number",Jr),Io=e=>!!e&&Number.isInteger(Number(e)),wS=e=>e.endsWith("%")&&Jr(e.slice(0,-1)),K=e=>Gg.test(e),wn=e=>mS.test(e),bS=new Set(["length","size","percentage"]),SS=e=>Eo(e,bS,Kg),CS=e=>Eo(e,"position",Kg),ES=new Set(["image","url"]),kS=e=>Eo(e,ES,RS),NS=e=>Eo(e,"",PS),Fo=()=>!0,Eo=(e,t,n)=>{const r=Gg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},TS=e=>gS.test(e)&&!vS.test(e),Kg=()=>!1,PS=e=>yS.test(e),RS=e=>xS.test(e),jS=()=>{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"),v=oe("gap"),c=oe("gradientColorStops"),b=oe("gradientColorStopPositions"),h=oe("inset"),w=oe("margin"),y=oe("opacity"),m=oe("padding"),x=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],_=()=>["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:[wS,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":_()}],"break-before":[{"break-before":_()}],"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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],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:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"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",Sl]}],"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,Sl]}],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":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"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":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),CS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],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":[y]}],"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":[y]}],"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":[y]}],"ring-offset-w":[{"ring-offset":[Yt,xn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,NS]}],"shadow-color":[{shadow:[Fo]}],opacity:[{opacity:[y]}],"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:[x]}],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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"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,Sl]}],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"]}}},OS=fS(jS);function we(...e){return OS(Fg(e))}const AS=zb,Yg=g.forwardRef(({className:e,...t},n)=>f.jsx(Og,{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}));Yg.displayName=Og.displayName;const _S=Bb("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"}}),qg=g.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(Ag,{ref:r,className:we(_S({variant:t}),e),...n}));qg.displayName=Ag.displayName;const DS=g.forwardRef(({className:e,...t},n)=>f.jsx(Mg,{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}));DS.displayName=Mg.displayName;const Xg=g.forwardRef(({className:e,...t},n)=>f.jsx(Lg,{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:f.jsx(Wg,{className:"h-4 w-4"})}));Xg.displayName=Lg.displayName;const Zg=g.forwardRef(({className:e,...t},n)=>f.jsx(_g,{ref:n,className:we("text-sm font-semibold",e),...t}));Zg.displayName=_g.displayName;const Jg=g.forwardRef(({className:e,...t},n)=>f.jsx(Dg,{ref:n,className:we("text-sm opacity-90",e),...t}));Jg.displayName=Dg.displayName;function MS(){const{toasts:e}=Kw();return f.jsxs(AS,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return f.jsxs(qg,{...s,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(Zg,{children:n}),r&&f.jsx(Jg,{children:r})]}),o,f.jsx(Xg,{})]},t)}),f.jsx(Yg,{})]})}var LS=Ju[" useId ".trim().toString()]||(()=>{}),IS=0;function Cl(e){const[t,n]=g.useState(LS());return un(()=>{e||n(r=>r??String(IS++))},[e]),e||(t?`radix-${t}`:"")}const FS=["top","right","bottom","left"],Yn=Math.min,nt=Math.max,ta=Math.round,oi=Math.floor,Vt=e=>({x:e,y:e}),$S={left:"right",right:"left",bottom:"top",top:"bottom"},zS={start:"end",end:"start"};function zu(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 BS=new Set(["top","bottom"]);function Ut(e){return BS.has(dn(e))?"y":"x"}function ed(e){return Zc(Ut(e))}function US(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 WS(e){const t=na(e);return[Bu(e),t,Bu(t)]}function Bu(e){return e.replace(/start|end/g,t=>zS[t])}const op=["left","right"],sp=["right","left"],HS=["top","bottom"],VS=["bottom","top"];function QS(e,t,n){switch(e){case"top":case"bottom":return n?t?sp:op:t?op:sp;case"left":case"right":return t?HS:VS;default:return[]}}function GS(e,t,n,r){const o=ko(e);let s=QS(dn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Bu)))),s}function na(e){return e.replace(/left|right|bottom|top/g,t=>$S[t])}function KS(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?KS(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 ip(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,v=r[a]/2-o[a]/2;let c;switch(l){case"top":c={x:d,y:r.y-o.height};break;case"bottom":c={x:d,y:r.y+r.height};break;case"right":c={x:r.x+r.width,y:p};break;case"left":c={x:r.x-o.width,y:p};break;default:c={x:r.x,y:r.y}}switch(ko(t)){case"start":c[i]-=v*(n&&u?-1:1);break;case"end":c[i]+=v*(n&&u?-1:1);break}return c}const YS=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}=ip(u,r,l),v=r,c={},b=0;for(let h=0;h<a.length;h++){const{name:w,fn:y}=a[h],{x:m,y:x,data:S,reset:C}=await y({x:d,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:c,rects:u,platform:i,elements:{reference:e,floating:t}});d=m??d,p=x??p,c={...c,[w]:{...c[w],...S}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:p}=ip(u,v,l)),h=-1)}return{x:d,y:p,placement:v,strategy:o,middlewareData:c}};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:v=!1,padding:c=0}=cn(t,e),b=ev(c),w=a[v?p==="floating"?"reference":"floating":p],y=ra(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.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,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ra(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:x,strategy:l}):m);return{top:(y.top-C.top+b.top)/S.y,bottom:(C.bottom-y.bottom+b.bottom)/S.y,left:(y.left-C.left+b.left)/S.x,right:(C.right-y.right+b.right)/S.x}}const qS=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=ev(d),v={x:n,y:r},c=ed(o),b=Jc(c),h=await i.getDimensions(u),w=c==="y",y=w?"top":"left",m=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[c]-v[c]-s.floating[b],C=v[c]-s.reference[c],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=a.floating[x]||s.floating[b]);const R=S/2-C/2,D=E/2-h[b]/2-1,L=Yn(p[y],D),W=Yn(p[m],D),$=L,V=E-h[b]-W,F=E/2-h[b]/2+R,I=zu($,F,V),T=!l.arrow&&ko(o)!=null&&F!==I&&s.reference[b]/2-(F<$?L:W)-h[b]/2<0,O=T?F<$?F-$:F-V:0;return{[c]:v[c]+O,data:{[c]:I,centerOffset:F-I-O,...T&&{alignmentOffset:O}},reset:T}}}),XS=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:v,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...w}=cn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=dn(o),m=Ut(a),x=dn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=v||(x||!h?[na(a)]:WS(a)),N=b!=="none";!v&&N&&C.push(...GS(a,h,b,S));const E=[a,...C],R=await xs(t,w),D=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&D.push(R[y]),p){const F=US(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(c){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,_)=>P+_,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 ap(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lp(e){return FS.some(t=>e[t]>=0)}const ZS=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=ap(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:lp(i)}}}case"escaped":{const s=await xs(t,{...o,altBoundary:!0}),i=ap(s,n.floating);return{data:{escapedOffsets:i,escaped:lp(i)}}}default:return{}}}}},tv=new Set(["left","top"]);async function JS(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=tv.has(i)?-1:1,d=s&&l?-1:1,p=cn(t,e);let{mainAxis:v,crossAxis:c,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"&&(c=a==="end"?b*-1:b),l?{x:c*d,y:v*u}:{x:v*u,y:c*d}}const eC=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 JS(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}}}}},tC=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:w=>{let{x:y,y:m}=w;return{x:y,y:m}}},...l}=cn(e,t),u={x:n,y:r},d=await xs(t,l),p=Ut(dn(o)),v=Zc(p);let c=u[v],b=u[p];if(s){const w=v==="y"?"top":"left",y=v==="y"?"bottom":"right",m=c+d[w],x=c-d[y];c=zu(m,c,x)}if(i){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=b+d[w],x=b-d[y];b=zu(m,b,x)}const h=a.fn({...t,[v]:c,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[v]:s,[p]:i}}}}}},nC=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),v=Zc(p);let c=d[v],b=d[p];const h=cn(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=v==="y"?"height":"width",S=s.reference[v]-s.floating[x]+w.mainAxis,C=s.reference[v]+s.reference[x]-w.mainAxis;c<S?c=S:c>C&&(c=C)}if(u){var y,m;const x=v==="y"?"width":"height",S=tv.has(dn(o)),C=s.reference[p]-s.floating[x]+(S&&((y=i.offset)==null?void 0:y[p])||0)+(S?0:w.crossAxis),N=s.reference[p]+s.reference[x]+(S?0:((m=i.offset)==null?void 0:m[p])||0)-(S?w.crossAxis:0);b<C?b=C:b>N&&(b=N)}return{[v]:c,[p]:b}}}},rC=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),v=ko(o),c=Ut(o)==="y",{width:b,height:h}=s.floating;let w,y;p==="top"||p==="bottom"?(w=p,y=v===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,w=v==="end"?"top":"bottom");const m=h-d.top-d.bottom,x=b-d.left-d.right,S=Yn(h-d[w],m),C=Yn(b-d[y],x),N=!t.middlewareData.shift;let E=S,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=m),N&&!v){const L=nt(d.left,0),W=nt(d.right,0),$=nt(d.top,0),V=nt(d.bottom,0);c?R=b-2*(L!==0||W!==0?L+W:nt(d.left,d.right)):E=h-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||h!==D.height?{reset:{rects:!0}}:{}}}};function Oa(){return typeof window<"u"}function No(e){return nv(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=(nv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nv(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 up(e){return!Oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}const oC=new Set(["inline","contents"]);function As(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!oC.has(o)}const sC=new Set(["table","td","th"]);function iC(e){return sC.has(No(e))}const aC=[":popover-open",":modal"];function Aa(e){return aC.some(t=>{try{return e.matches(t)}catch{return!1}})}const lC=["transform","translate","scale","rotate","perspective"],uC=["transform","translate","scale","rotate","perspective","filter"],cC=["paint","layout","strict","content"];function td(e){const t=nd(),n=Ot(e)?At(e):e;return lC.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)||uC.some(r=>(n.willChange||"").includes(r))||cC.some(r=>(n.contain||"").includes(r))}function dC(e){let t=qn(e);for(;Gt(t)&&!yo(t);){if(td(t))return t;if(Aa(t))return null;t=qn(t)}return null}function nd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fC=new Set(["html","body","#document"]);function yo(e){return fC.has(No(e))}function At(e){return st(e).getComputedStyle(e)}function _a(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||up(e)&&e.host||Kt(e);return up(t)?t.host:t}function rv(e){const t=qn(e);return yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&As(t)?t:rv(t)}function ws(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=st(o);if(s){const a=Uu(i);return t.concat(i,i.visualViewport||[],As(o)?o:[],a&&n?ws(a):[])}return t.concat(o,ws(o,[],n))}function Uu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ov(e){const t=At(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}=ov(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 pC=Vt(0);function sv(e){const t=st(e);return!nd()||!t.visualViewport?pC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hC(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=hC(s,n,r)?sv(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 v=st(s),c=r&&Ot(r)?st(r):r;let b=v,h=Uu(b);for(;h&&r&&c!==b;){const w=eo(h),y=h.getBoundingClientRect(),m=At(h),x=y.left+(h.clientLeft+parseFloat(m.paddingLeft))*w.x,S=y.top+(h.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,p*=w.y,l+=x,u+=S,b=st(h),h=Uu(b)}}return ra({width:d,height:p,x:l,y:u})}function od(e,t){const n=_a(e).scrollLeft;return t?t.left+n:br(Kt(e)).left+n}function iv(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 mC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Kt(r),a=t?Aa(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"||As(i))&&(l=_a(r)),Gt(r))){const c=br(r);u=eo(r),d.x=c.x+r.clientLeft,d.y=c.y+r.clientTop}const v=i&&!p&&!s?iv(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+v.x,y:n.y*u.y-l.scrollTop*u.y+d.y+v.y}}function gC(e){return Array.from(e.getClientRects())}function vC(e){const t=Kt(e),n=_a(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 At(r).direction==="rtl"&&(i+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function yC(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 xC=new Set(["absolute","fixed"]);function wC(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 cp(e,t,n){let r;if(t==="viewport")r=yC(e,n);else if(t==="document")r=vC(Kt(e));else if(Ot(t))r=wC(t,n);else{const o=sv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ra(r)}function av(e,t){const n=qn(e);return n===t||!Ot(n)||yo(n)?!1:At(n).position==="fixed"||av(n,t)}function bC(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=At(e).position==="fixed";let i=s?qn(e):e;for(;Ot(i)&&!yo(i);){const a=At(i),l=td(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&xC.has(o.position)||As(i)&&!l&&av(e,i))?r=r.filter(d=>d!==i):o=a,i=qn(i)}return t.set(e,r),r}function SC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Aa(t)?[]:bC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const p=cp(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},cp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function CC(e){const{width:t,height:n}=ov(e);return{width:t,height:n}}function EC(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"||As(o))&&(a=_a(t)),r){const c=br(t,!0,s,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?iv(o,a):Vt(0),p=i.left+a.scrollLeft-l.x-d.x,v=i.top+a.scrollTop-l.y-d.y;return{x:p,y:v,width:i.width,height:i.height}}function El(e){return At(e).position==="static"}function dp(e,t){if(!Gt(e)||At(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Kt(e)===n&&(n=n.ownerDocument.body),n}function lv(e,t){const n=st(e);if(Aa(e))return n;if(!Gt(e)){let o=qn(e);for(;o&&!yo(o);){if(Ot(o)&&!El(o))return o;o=qn(o)}return n}let r=dp(e,t);for(;r&&iC(r)&&El(r);)r=dp(r,t);return r&&yo(r)&&El(r)&&!td(r)?n:r||dC(e)||n}const kC=async function(e){const t=this.getOffsetParent||lv,n=this.getDimensions,r=await n(e.floating);return{reference:EC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NC(e){return At(e).direction==="rtl"}const TC={convertOffsetParentRelativeRectToViewportRelativeRect:mC,getDocumentElement:Kt,getClippingRect:SC,getOffsetParent:lv,getElementRects:kC,getClientRects:gC,getDimensions:CC,getScale:eo,isElement:Ot,isRTL:NC};function uv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function PC(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:v,height:c}=u;if(a||t(),!v||!c)return;const b=oi(p),h=oi(o.clientWidth-(d+v)),w=oi(o.clientHeight-(p+c)),y=oi(d),x={rootMargin:-b+"px "+-h+"px "+-w+"px "+-y+"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&&!uv(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function RC(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(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&a?PC(u,n):null;let v=-1,c=null;i&&(c=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&c&&(c.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),n()}),u&&!l&&c.observe(u),c.observe(t));let b,h=l?br(e):null;l&&w();function w(){const y=br(e);h&&!uv(h,y)&&n(),h=y,b=requestAnimationFrame(w)}return n(),()=>{var y;d.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),p==null||p(),(y=c)==null||y.disconnect(),c=null,l&&cancelAnimationFrame(b)}}const jC=eC,OC=tC,AC=XS,_C=rC,DC=ZS,fp=qS,MC=nC,LC=(e,t,n)=>{const r=new Map,o={platform:TC,...n},s={...o.platform,_c:r};return YS(e,t,{...o,platform:s})};var IC=typeof document<"u",FC=function(){},Ci=IC?g.useLayoutEffect:FC;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 cv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pp(e,t){const n=cv(e);return Math.round(t*n)/n}function kl(e){const t=g.useRef(e);return Ci(()=>{t.current=e}),t}function $C(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]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,c]=g.useState(r);oa(v,r)||c(r);const[b,h]=g.useState(null),[w,y]=g.useState(null),m=g.useCallback(k=>{k!==N.current&&(N.current=k,h(k))},[]),x=g.useCallback(k=>{k!==E.current&&(E.current=k,y(k))},[]),S=s||b,C=i||w,N=g.useRef(null),E=g.useRef(null),R=g.useRef(d),D=l!=null,L=kl(l),W=kl(o),$=kl(u),V=g.useCallback(()=>{if(!N.current||!E.current)return;const k={placement:t,strategy:n,middleware:v};W.current&&(k.platform=W.current),LC(N.current,E.current,k).then(P=>{const _={...P,isPositioned:$.current!==!1};F.current&&!oa(R.current,_)&&(R.current=_,Rs.flushSync(()=>{p(_)}))})},[v,t,n,W,$]);Ci(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const F=g.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=g.useMemo(()=>({reference:N,floating:E,setReference:m,setFloating:x}),[m,x]),T=g.useMemo(()=>({reference:S,floating:C}),[S,C]),O=g.useMemo(()=>{const k={position:n,left:0,top:0};if(!T.floating)return k;const P=pp(T.floating,d.x),_=pp(T.floating,d.y);return a?{...k,transform:"translate("+P+"px, "+_+"px)",...cv(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:_}},[n,a,T.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:V,refs:I,elements:T,floatingStyles:O}),[d,V,I,T,O])}const zC=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?fp({element:r.current,padding:o}).fn(n):{}:r?fp({element:r,padding:o}).fn(n):{}}}},BC=(e,t)=>({...jC(e),options:[e,t]}),UC=(e,t)=>({...OC(e),options:[e,t]}),WC=(e,t)=>({...MC(e),options:[e,t]}),HC=(e,t)=>({...AC(e),options:[e,t]}),VC=(e,t)=>({..._C(e),options:[e,t]}),QC=(e,t)=>({...DC(e),options:[e,t]}),GC=(e,t)=>({...zC(e),options:[e,t]});var KC="Arrow",dv=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return f.jsx(xe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});dv.displayName=KC;var YC=dv;function qC(e){const[t,n]=g.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 fv="Popper",[pv,hv]=js(fv),[mk,mv]=pv(fv),gv="PopperAnchor",vv=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=mv(gv,n),i=g.useRef(null),a=Be(t,i);return g.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:f.jsx(xe.div,{...o,ref:a})});vv.displayName=gv;var sd="PopperContent",[XC,ZC]=pv(sd),yv=g.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:v=!1,updatePositionStrategy:c="optimized",onPlaced:b,...h}=e,w=mv(sd,n),[y,m]=g.useState(null),x=Be(t,hn=>m(hn)),[S,C]=g.useState(null),N=qC(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(eE),altBoundary:$},{refs:F,floatingStyles:I,placement:T,isPositioned:O,middlewareData:k}=$C({strategy:"fixed",placement:D,whileElementsMounted:(...hn)=>RC(...hn,{animationFrame:c==="always"}),elements:{reference:w.anchor},middleware:[BC({mainAxis:o+R,alignmentAxis:i}),l&&UC({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?WC():void 0,...V}),l&&HC({...V}),VC({...V,apply:({elements:hn,rects:_s,availableWidth:Ba,availableHeight:Ds})=>{const{width:Ua,height:To}=_s.reference,Nr=hn.floating.style;Nr.setProperty("--radix-popper-available-width",`${Ba}px`),Nr.setProperty("--radix-popper-available-height",`${Ds}px`),Nr.setProperty("--radix-popper-anchor-width",`${Ua}px`),Nr.setProperty("--radix-popper-anchor-height",`${To}px`)}}),S&&GC({element:S,padding:a}),tE({arrowWidth:E,arrowHeight:R}),v&&QC({strategy:"referenceHidden",...V})]}),[P,_]=bv(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]=g.useState();return un(()=>{y&&Ce(window.getComputedStyle(y).zIndex)},[y]),f.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:f.jsx(XC,{scope:n,placedSide:P,onArrowChange:C,arrowX:z,arrowY:H,shouldHideArrow:Y,children:f.jsx(xe.div,{"data-side":P,"data-align":_,...h,ref:x,style:{...h.style,animation:O?void 0:"none"}})})})});yv.displayName=sd;var xv="PopperArrow",JC={top:"bottom",right:"left",bottom:"top",left:"right"},wv=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ZC(xv,r),i=JC[s.placedSide];return f.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:f.jsx(YC,{...o,ref:n,style:{...o.style,display:"block"}})})});wv.displayName=xv;function eE(e){return e!==null}var tE=e=>({name:"transformOrigin",options:e,fn(t){var w,y,m;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=bv(n),p={start:"0%",center:"50%",end:"100%"}[d],v=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,c=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let b="",h="";return u==="bottom"?(b=i?p:`${v}px`,h=`${-l}px`):u==="top"?(b=i?p:`${v}px`,h=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,h=i?p:`${c}px`):u==="left"&&(b=`${r.floating.width+l}px`,h=i?p:`${c}px`),{data:{x:b,y:h}}}});function bv(e){const[t,n="center"]=e.split("-");return[t,n]}var nE=vv,rE=yv,oE=wv,[Da,gk]=js("Tooltip",[hv]),id=hv(),Sv="TooltipProvider",sE=700,hp="tooltip.open",[iE,Cv]=Da(Sv),Ev=e=>{const{__scopeTooltip:t,delayDuration:n=sE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=g.useRef(!0),a=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),f.jsx(iE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Ev.displayName=Sv;var kv="Tooltip",[vk,Ma]=Da(kv),Wu="TooltipTrigger",aE=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ma(Wu,n),s=Cv(Wu,n),i=id(n),a=g.useRef(null),l=Be(t,a,o.onTriggerChange),u=g.useRef(!1),d=g.useRef(!1),p=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(nE,{asChild:!0,...i,children:f.jsx(xe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ce(e.onPointerMove,v=>{v.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)})})});aE.displayName=Wu;var lE="TooltipPortal",[yk,uE]=Da(lE,{forceMount:void 0}),xo="TooltipContent",Nv=g.forwardRef((e,t)=>{const n=uE(xo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ma(xo,e.__scopeTooltip);return f.jsx(Co,{present:r||i.open,children:i.disableHoverableContent?f.jsx(Tv,{side:o,...s,ref:t}):f.jsx(cE,{side:o,...s,ref:t})})}),cE=g.forwardRef((e,t)=>{const n=Ma(xo,e.__scopeTooltip),r=Cv(xo,e.__scopeTooltip),o=g.useRef(null),s=Be(t,o),[i,a]=g.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,v=g.useCallback(()=>{a(null),p(!1)},[p]),c=g.useCallback((b,h)=>{const w=b.currentTarget,y={x:b.clientX,y:b.clientY},m=mE(y,w.getBoundingClientRect()),x=gE(y,m),S=vE(h.getBoundingClientRect()),C=xE([...x,...S]);a(C),p(!0)},[p]);return g.useEffect(()=>()=>v(),[v]),g.useEffect(()=>{if(l&&d){const b=w=>c(w,d),h=w=>c(w,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",h)}}},[l,d,c,v]),g.useEffect(()=>{if(i){const b=h=>{const w=h.target,y={x:h.clientX,y:h.clientY},m=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),x=!yE(y,i);m?v():x&&(v(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,u,v]),f.jsx(Tv,{...e,ref:s})}),[dE,fE]=Da(kv,{isInside:!1}),pE=Zw("TooltipContent"),Tv=g.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 g.useEffect(()=>(document.addEventListener(hp,d),()=>document.removeEventListener(hp,d)),[d]),g.useEffect(()=>{if(l.trigger){const p=v=>{const c=v.target;c!=null&&c.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),f.jsx(Pa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:f.jsxs(rE,{"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:[f.jsx(pE,{children:r}),f.jsx(dE,{scope:n,isInside:!0,children:f.jsx(Sb,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Nv.displayName=xo;var Pv="TooltipArrow",hE=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=id(n);return fE(Pv,n).isInside?null:f.jsx(oE,{...o,...r,ref:t})});hE.displayName=Pv;function mE(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 gE(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 vE(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 yE(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,v=l.y;d>r!=v>r&&n<(p-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function xE(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),wE(t)}function wE(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 bE=Ev,Rv=Nv;const SE=bE,CE=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(Rv,{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}));CE.displayName=Rv.displayName;const EE=({categories:e,selected:t,onSelect:n})=>f.jsx("div",{className:"flex gap-2 overflow-x-auto rounded-2xl border border-border/80 bg-card/80 p-2 shadow-sm scrollbar-hide",children:e.map(r=>f.jsx("button",{onClick:()=>n(r),className:`whitespace-nowrap rounded-full px-4 py-2 text-sm font-semibold transition-all ${t===r?"bg-primary text-primary-foreground shadow-md ring-2 ring-primary/20":"border border-border bg-background text-foreground hover:bg-warm-light"}`,children:r},r))}),kE=({products:e,onAdd:t,onReorder:n})=>{const[r,o]=g.useState(null);return f.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:e.map(s=>f.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 flex-col items-center gap-1 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:[f.jsx("span",{className:"text-3xl",children:s.emoji}),f.jsx("span",{className:"text-sm font-semibold text-foreground text-center leading-tight",children:s.name}),f.jsxs("span",{className:"text-sm font-bold text-primary",children:["$",s.price.toFixed(2)]})]},s.id))})},NE=({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 f.jsxs("div",{className:"flex h-full flex-col bg-card rounded-2xl border border-border shadow-sm",children:[f.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(tp,{className:"h-5 w-5 text-primary"}),f.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Ticket"}),i>0&&f.jsx("span",{className:"rounded-full bg-primary px-2 py-0.5 text-xs font-bold text-primary-foreground",children:i})]}),e.length>0&&f.jsx("button",{onClick:o,className:"text-xs font-semibold text-destructive hover:underline",children:"Clear"})]}),f.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-2 space-y-1",children:e.length===0?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground py-12",children:[f.jsx(tp,{className:"h-12 w-12 mb-2 opacity-30"}),f.jsx("p",{className:"text-sm",children:"No items yet"})]}):e.map(l=>f.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-background p-2",children:[f.jsx("span",{className:"text-xl",children:l.emoji}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm font-semibold text-foreground truncate",children:l.name}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:["$",l.price.toFixed(2)," each"]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{onClick:()=>t(l.id,-1),className:"rounded-md bg-secondary p-1 hover:bg-border transition-colors",children:f.jsx(Qb,{className:"h-3.5 w-3.5"})}),f.jsx("span",{className:"w-6 text-center text-sm font-bold",children:l.quantity}),f.jsx("button",{onClick:()=>t(l.id,1),className:"rounded-md bg-secondary p-1 hover:bg-border transition-colors",children:f.jsx(Gb,{className:"h-3.5 w-3.5"})})]}),f.jsxs("p",{className:"w-16 text-right text-sm font-bold text-foreground",children:["$",(l.price*l.quantity).toFixed(2)]}),f.jsx("button",{onClick:()=>n(l.id),className:"rounded-md p-1 text-muted-foreground hover:text-destructive transition-colors",children:f.jsx(Jb,{className:"h-3.5 w-3.5"})})]},l.id))}),f.jsxs("div",{className:"border-t border-border px-4 py-3 space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-baseline",children:[f.jsx("span",{className:"text-sm text-muted-foreground",children:"Subtotal"}),f.jsxs("span",{className:"text-sm font-semibold text-foreground",children:["$",s.toFixed(2)]})]}),a>0&&f.jsxs("div",{className:"flex justify-between items-baseline",children:[f.jsx("span",{className:"text-sm text-muted-foreground",children:"Tax"}),f.jsxs("span",{className:"text-sm font-semibold text-foreground",children:["$",a.toFixed(2)]})]}),f.jsxs("div",{className:"flex justify-between items-baseline pt-1 border-t border-border",children:[f.jsx("span",{className:"text-base font-semibold text-muted-foreground",children:"Total"}),f.jsxs("span",{className:"text-2xl font-extrabold text-foreground",children:["$",(s+a).toFixed(2)]})]}),f.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"})]})]})},jv="/api".replace(/\/$/,""),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},Ov=["Taxable","Non-Taxable","Unleaded","Unleaded Plus","Diesel","Off Road Diesel","Oil","Hardware","Other"],Av=Ov;function TE(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:Ov.includes(e.reportCategory)?e.reportCategory:n.reportCategory}}function PE(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)=>TE(n,r,Wo[r]||Wo[Wo.length-1]))}}async function RE(){try{const e=await fetch(`${jv}/settings.php`);if(!e.ok)return null;const t=await e.json();return PE(t)}catch(e){return console.error("Failed to load POS settings",e),null}}async function jE(e){try{return(await fetch(`${jv}/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 OE=({onAddItem:e})=>{const[t,n]=g.useState("0.00"),[r,o]=g.useState(!0),[s,i]=g.useState(Cn.groceryTaxRate),[a,l]=g.useState(!1),[u,d]=g.useState(Cn.groceryTaxRate.toString()),[p,v]=g.useState(!1),[c,b]=g.useState(Cn.quickButtons),[h,w]=g.useState(!1),[y,m]=g.useState(""),[x,S]=g.useState(null),[C,N]=g.useState(null),E=T=>((parseInt(T,10)||0)/100).toFixed(2);g.useEffect(()=>{let T=!0;return(async()=>{const k=await RE();if(!T)return;const P=k??Cn;b(P.quickButtons),i(P.groceryTaxRate),d(P.groceryTaxRate.toString()),w(!0)})(),()=>{T=!1}},[]),g.useEffect(()=>{if(!h)return;const T=window.setTimeout(async()=>{const O=await jE({groceryTaxRate:s,quickButtons:c});m(O?"Saved for all devices":"Save failed")},500);return()=>window.clearTimeout(T)},[s,c,h]);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 _=O!==void 0?O:r,U=parseFloat(t),H=U<=0&&C&&C.label===T&&C.taxable===_&&C.taxRate===k&&C.reportCategory===P?C.amount:U;H<=0||(e(H,T,_,k,P),T!=="Item"&&N({amount:H,label:T,taxable:_,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(_=>{if(_.id!==T)return _;const U={..._,[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),_=k.findIndex(H=>H.id===O);if(P<0||_<0||P===_)return k;const U=[...k],[z]=U.splice(P,1);return U.splice(_,0,z),U})};return f.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl border border-border bg-card p-3 shadow-sm",children:[f.jsxs("div",{className:"rounded-xl border border-border bg-background px-4 py-3 text-right",children:[f.jsx("div",{className:"mb-0.5 text-xs font-semibold text-muted-foreground",children:r?"TAX":"NO TAX"}),f.jsxs("div",{className:"font-mono text-3xl font-extrabold tracking-tight text-foreground",children:["$",t]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.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"}),f.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"})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[["7","8","9","4","5","6","1","2","3"].map(T=>f.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)),f.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"}),f.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"}),f.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:f.jsx(Ug,{className:"h-5 w-5"})})]}),f.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"}),f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.jsxs("div",{className:"relative",children:[f.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:[f.jsx("span",{children:"GRC"}),f.jsxs("span",{children:["Grocery (",s,"%)"]})]}),f.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:f.jsx(Xb,{className:"h-3 w-3 text-muted-foreground"})})]}),f.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:[f.jsx("span",{children:"GRC"}),f.jsx("span",{children:"Non-Tax Grocery"})]})]}),a&&f.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-background p-3",children:[f.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"Grocery Tax Rate (%)"}),f.jsxs("div",{className:"flex gap-2",children:[f.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"}),f.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"})]})]}),f.jsx("div",{className:"grid grid-cols-2 gap-2",children:c.map(T=>f.jsxs("button",{draggable:!0,onDragStart:()=>S(T.id),onDragEnd:()=>S(null),onDragOver:O=>O.preventDefault(),onDrop:O=>{!x||x===T.id||(O.preventDefault(),I(x,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-1 rounded-lg border py-2.5 text-xs font-bold text-foreground transition-all hover:bg-primary hover:text-primary-foreground active:scale-95 ${x===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:[f.jsx("span",{children:T.shortLabel}),f.jsx("span",{children:T.label})]},T.id))}),f.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-background p-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Large Button Setup"}),f.jsxs("div",{className:"flex items-center gap-2",children:[y&&f.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground",children:y}),f.jsx("button",{onClick:()=>v(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&&f.jsxs("div",{className:"space-y-3",children:[c.map(T=>f.jsxs("div",{className:"space-y-2 rounded-lg border border-border bg-card p-3",children:[f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Label",f.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"})]}),f.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Short Tag",f.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"})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Report Bucket",f.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:Av.map(O=>f.jsx("option",{value:O,children:O},O))})]}),f.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Tax Rule",f.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:[f.jsx("option",{value:"taxable",children:"Taxable"}),f.jsx("option",{value:"non-taxable",children:"Non-Taxable"})]})]})]}),f.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["Tax Rate (%)",f.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)),f.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 Nl="focusScope.autoFocusOnMount",Tl="focusScope.autoFocusOnUnmount",mp={bubbles:!1,cancelable:!0},AE="FocusScope",_v=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=g.useState(null),u=Qt(o),d=Qt(s),p=g.useRef(null),v=Be(t,h=>l(h)),c=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let h=function(x){if(c.paused||!a)return;const S=x.target;a.contains(S)?p.current=S:En(p.current,{select:!0})},w=function(x){if(c.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||En(p.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&En(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const m=new MutationObserver(y);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),m.disconnect()}}},[r,a,c.paused]),g.useEffect(()=>{if(a){vp.add(c);const h=document.activeElement;if(!a.contains(h)){const y=new CustomEvent(Nl,mp);a.addEventListener(Nl,u),a.dispatchEvent(y),y.defaultPrevented||(_E(FE(Dv(a)),{select:!0}),document.activeElement===h&&En(a))}return()=>{a.removeEventListener(Nl,u),setTimeout(()=>{const y=new CustomEvent(Tl,mp);a.addEventListener(Tl,d),a.dispatchEvent(y),y.defaultPrevented||En(h??document.body,{select:!0}),a.removeEventListener(Tl,d),vp.remove(c)},0)}}},[a,u,d,c]);const b=g.useCallback(h=>{if(!n&&!r||c.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(w&&y){const m=h.currentTarget,[x,S]=DE(m);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&En(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&En(S,{select:!0})):y===m&&h.preventDefault()}},[n,r,c.paused]);return f.jsx(xe.div,{tabIndex:-1,...i,ref:v,onKeyDown:b})});_v.displayName=AE;function _E(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(En(r,{select:t}),document.activeElement!==n)return}function DE(e){const t=Dv(e),n=gp(t,e),r=gp(t.reverse(),e);return[n,r]}function Dv(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 gp(e,t){for(const n of e)if(!ME(n,{upTo:t}))return n}function ME(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 LE(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&&LE(e)&&t&&e.select()}}var vp=IE();function IE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=yp(e,t),e.unshift(t)},remove(t){var n;e=yp(e,t),(n=e[0])==null||n.resume()}}}function yp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function FE(e){return e.filter(t=>t.tagName!=="A")}var Pl=0;function $E(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xp()),document.body.insertAdjacentElement("beforeend",e[1]??xp()),Pl++,()=>{Pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pl--}},[])}function xp(){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 Mv(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 zE(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",BE="with-scroll-bars-hidden",UE="--removed-body-scroll-bar-size";function Rl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function WE(e,t){var n=g.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 HE=typeof window<"u"?g.useLayoutEffect:g.useEffect,wp=new WeakMap;function VE(e,t){var n=WE(null,function(r){return e.forEach(function(o){return Rl(o,r)})});return HE(function(){var r=wp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Rl(a,null)}),s.forEach(function(a){o.has(a)||Rl(a,i)})}wp.set(n,e)},[e]),n}function QE(e){return e}function GE(e,t){t===void 0&&(t=QE);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 KE(e){e===void 0&&(e={});var t=GE(null);return t.options=Bt({async:!0,ssr:!1},e),t}var Lv=function(e){var t=e.sideCar,n=Mv(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 g.createElement(r,Bt({},n))};Lv.isSideCarExport=!0;function YE(e,t){return e.useMedium(t),Lv}var Iv=KE(),jl=function(){},La=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:jl,onWheelCapture:jl,onTouchMoveCapture:jl}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,v=e.sideCar,c=e.noRelative,b=e.noIsolation,h=e.inert,w=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,x=e.gapMode,S=Mv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=VE([n,t]),E=Bt(Bt({},S),o);return g.createElement(g.Fragment,null,d&&g.createElement(C,{sideCar:Iv,removeScrollBar:u,shards:p,noRelative:c,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:x}),i?g.cloneElement(g.Children.only(a),Bt(Bt({},E),{ref:N})):g.createElement(m,Bt({},E,{className:l,ref:N}),a))});La.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};La.classNames={fullWidth:ki,zeroRight:Ei};var qE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qE();return t&&e.setAttribute("nonce",t),e}function ZE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var e2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=XE())&&(ZE(t,n),JE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t2=function(){var e=e2();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fv=function(){var e=t2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},n2={left:0,top:0,right:0,gap:0},Ol=function(e){return parseInt(e||"",10)||0},r2=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[Ol(n),Ol(r),Ol(o)]},o2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return n2;var t=r2(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])}},s2=Fv(),to="data-scroll-locked",i2=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(BE,` {
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(UE,": ").concat(a,`px;
}
`)},bp=function(){var e=parseInt(document.body.getAttribute(to)||"0",10);return isFinite(e)?e:0},a2=function(){g.useEffect(function(){return document.body.setAttribute(to,(bp()+1).toString()),function(){var e=bp()-1;e<=0?document.body.removeAttribute(to):document.body.setAttribute(to,e.toString())}},[])},l2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;a2();var s=g.useMemo(function(){return o2(o)},[o]);return g.createElement(s2,{styles:i2(s,!t,o,n?"":"!important")})},Hu=!1;if(typeof window<"u")try{var si=Object.defineProperty({},"passive",{get:function(){return Hu=!0,!0}});window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{Hu=!1}var Or=Hu?{passive:!1}:!1,u2=function(e){return e.tagName==="TEXTAREA"},$v=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!u2(e)&&n[t]==="visible")},c2=function(e){return $v(e,"overflowY")},d2=function(e){return $v(e,"overflowX")},Sp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zv(e,r);if(o){var s=Bv(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},f2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},p2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zv=function(e,t){return e==="v"?c2(t):d2(t)},Bv=function(e,t){return e==="v"?f2(t):p2(t)},h2=function(e,t){return e==="h"&&t==="rtl"?-1:1},m2=function(e,t,n,r,o){var s=h2(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,v=0;do{if(!a)break;var c=Bv(e,a),b=c[0],h=c[1],w=c[2],y=h-w-s*b;(b||y)&&zv(e,a)&&(p+=y,v+=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(v)<1||!o))&&(u=!0),u},ii=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cp=function(e){return[e.deltaX,e.deltaY]},Ep=function(e){return e&&"current"in e?e.current:e},g2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},v2=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},y2=0,Ar=[];function x2(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(y2++)[0],s=g.useState(Fv)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=zE([e.lockRef.current],(e.shards||[]).map(Ep),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=ii(h),m=n.current,x="deltaX"in h?h.deltaX:m[0]-y[0],S="deltaY"in h?h.deltaY:m[1]-y[1],C,N=h.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&E==="h"&&N.type==="range")return!1;var R=Sp(E,N);if(!R)return!0;if(R?C=E:(C=E==="v"?"h":"v",R=Sp(E,N)),!R)return!1;if(!r.current&&"changedTouches"in h&&(x||S)&&(r.current=C),!C)return!0;var D=r.current||C;return m2(D,w,h,D==="h"?x:S,!0)},[]),l=g.useCallback(function(h){var w=h;if(!(!Ar.length||Ar[Ar.length-1]!==s)){var y="deltaY"in w?Cp(w):ii(w),m=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&g2(C.delta,y)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var x=(i.current.shards||[]).map(Ep).filter(Boolean).filter(function(C){return C.contains(w.target)}),S=x.length>0?a(w,x[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=g.useCallback(function(h,w,y,m){var x={name:h,delta:w,target:y,should:m,shadowParent:w2(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=g.useCallback(function(h){n.current=ii(h),r.current=void 0},[]),p=g.useCallback(function(h){u(h.type,Cp(h),h.target,a(h,e.lockRef.current))},[]),v=g.useCallback(function(h){u(h.type,ii(h),h.target,a(h,e.lockRef.current))},[]);g.useEffect(function(){return Ar.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Or),document.addEventListener("touchmove",l,Or),document.addEventListener("touchstart",d,Or),function(){Ar=Ar.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,Or),document.removeEventListener("touchmove",l,Or),document.removeEventListener("touchstart",d,Or)}},[]);var c=e.removeScrollBar,b=e.inert;return g.createElement(g.Fragment,null,b?g.createElement(s,{styles:v2(o)}):null,c?g.createElement(l2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function w2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const b2=YE(Iv,x2);var Uv=g.forwardRef(function(e,t){return g.createElement(La,Bt({},e,{ref:t,sideCar:b2}))});Uv.classNames=La.classNames;var S2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_r=new WeakMap,ai=new WeakMap,li={},Al=0,Wv=function(e){return e&&(e.host||Wv(e.parentNode))},C2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wv(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})},E2=function(e,t,n,r){var o=C2(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(v){if(a.has(v))d(v);else try{var c=v.getAttribute(r),b=c!==null&&c!=="false",h=(_r.get(v)||0)+1,w=(s.get(v)||0)+1;_r.set(v,h),s.set(v,w),i.push(v),h===1&&b&&ai.set(v,!0),w===1&&v.setAttribute(n,"true"),b||v.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return d(t),a.clear(),Al++,function(){i.forEach(function(p){var v=_r.get(p)-1,c=s.get(p)-1;_r.set(p,v),s.set(p,c),v||(ai.has(p)||p.removeAttribute(r),ai.delete(p)),c||p.removeAttribute(n)}),Al--,Al||(_r=new WeakMap,_r=new WeakMap,ai=new WeakMap,li={})}},k2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=S2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),E2(r,o,n,"aria-hidden")):function(){return null}},Ia="Dialog",[Hv,xk]=js(Ia),[N2,_t]=Hv(Ia),Vv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=g.useRef(null),l=g.useRef(null),[u,d]=vg({prop:r,defaultProp:o??!1,onChange:s,caller:Ia});return f.jsx(N2,{scope:t,triggerRef:a,contentRef:l,contentId:Cl(),titleId:Cl(),descriptionId:Cl(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};Vv.displayName=Ia;var Qv="DialogTrigger",T2=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Qv,n),s=Be(t,o.triggerRef);return f.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ud(o.open),...r,ref:s,onClick:ce(e.onClick,o.onOpenToggle)})});T2.displayName=Qv;var ad="DialogPortal",[P2,Gv]=Hv(ad,{forceMount:void 0}),Kv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=_t(ad,t);return f.jsx(P2,{scope:t,forceMount:n,children:g.Children.map(r,i=>f.jsx(Co,{present:n||s.open,children:f.jsx(Gc,{asChild:!0,container:o,children:i})}))})};Kv.displayName=ad;var sa="DialogOverlay",Yv=g.forwardRef((e,t)=>{const n=Gv(sa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=_t(sa,e.__scopeDialog);return s.modal?f.jsx(Co,{present:r||s.open,children:f.jsx(j2,{...o,ref:t})}):null});Yv.displayName=sa;var R2=ea("DialogOverlay.RemoveScroll"),j2=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(sa,n);return f.jsx(Uv,{as:R2,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(xe.div,{"data-state":ud(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Sr="DialogContent",qv=g.forwardRef((e,t)=>{const n=Gv(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=_t(Sr,e.__scopeDialog);return f.jsx(Co,{present:r||s.open,children:s.modal?f.jsx(O2,{...o,ref:t}):f.jsx(A2,{...o,ref:t})})});qv.displayName=Sr;var O2=g.forwardRef((e,t)=>{const n=_t(Sr,e.__scopeDialog),r=g.useRef(null),o=Be(t,n.contentRef,r);return g.useEffect(()=>{const s=r.current;if(s)return k2(s)},[]),f.jsx(Xv,{...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())})}),A2=g.forwardRef((e,t)=>{const n=_t(Sr,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return f.jsx(Xv,{...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()}})}),Xv=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=_t(Sr,n),l=g.useRef(null),u=Be(t,l);return $E(),f.jsxs(f.Fragment,{children:[f.jsx(_v,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:f.jsx(Pa,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ud(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(_2,{titleId:a.titleId}),f.jsx(M2,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ld="DialogTitle",Zv=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(ld,n);return f.jsx(xe.h2,{id:o.titleId,...r,ref:t})});Zv.displayName=ld;var Jv="DialogDescription",ey=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Jv,n);return f.jsx(xe.p,{id:o.descriptionId,...r,ref:t})});ey.displayName=Jv;var ty="DialogClose",ny=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(ty,n);return f.jsx(xe.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});ny.displayName=ty;function ud(e){return e?"open":"closed"}var ry="DialogTitleWarning",[wk,oy]=Yw(ry,{contentName:Sr,titleName:ld,docsSlug:"dialog"}),_2=({titleId:e})=>{const t=oy(ry),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 g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},D2="DialogDescriptionWarning",M2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oy(D2).contentName}}.`;return g.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},L2=Vv,I2=Kv,sy=Yv,iy=qv,ay=Zv,ly=ey,F2=ny;const cd=L2,$2=I2,uy=g.forwardRef(({className:e,...t},n)=>f.jsx(sy,{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}));uy.displayName=sy.displayName;const Fa=g.forwardRef(({className:e,children:t,...n},r)=>f.jsxs($2,{children:[f.jsx(uy,{}),f.jsxs(iy,{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,f.jsxs(F2,{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:[f.jsx(Wg,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fa.displayName=iy.displayName;const $a=({className:e,...t})=>f.jsx("div",{className:we("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$a.displayName="DialogHeader";const za=g.forwardRef(({className:e,...t},n)=>f.jsx(ay,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t}));za.displayName=ay.displayName;const z2=g.forwardRef(({className:e,...t},n)=>f.jsx(ly,{ref:n,className:we("text-sm text-muted-foreground",e),...t}));z2.displayName=ly.displayName;const B2=({open:e,onClose:t,onComplete:n,items:r})=>{const[o,s]=g.useState("method"),[i,a]=g.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,v=E=>{a(R=>{const D=R.replace(".","").replace(/^0+/,"");return l(`${D}${E}`)})},c=()=>a("0.00"),b=()=>{a(E=>{const R=E.replace(".","").replace(/^0+/,""),D=R.length<=1?"0":R.slice(0,-1);return l(D)})},h=parseFloat(i),w=h-p,y=()=>{h>=p&&(n("cash",h),x())},m=()=>{n("credit"),x()},x=()=>{s("method"),a("0.00")},S=()=>{x(),t()},C=[1,5,10,20,50,100],N=E=>{a(l(Math.round(E*100).toString()))};return f.jsx(cd,{open:e,onOpenChange:S,children:f.jsxs(Fa,{className:"sm:max-w-md bg-card border-border",children:[f.jsx($a,{children:f.jsx(za,{className:"text-foreground text-lg font-extrabold",children:o==="method"?"Payment Method":"Cash Payment"})}),f.jsxs("div",{className:"rounded-xl bg-background border border-border px-4 py-3 text-center",children:[f.jsx("p",{className:"text-xs text-muted-foreground font-semibold",children:"Total Due"}),f.jsxs("p",{className:"text-3xl font-extrabold text-foreground font-mono",children:["$",p.toFixed(2)]})]}),o==="method"?f.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[f.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:[f.jsx(zg,{className:"h-10 w-10"}),f.jsx("span",{className:"text-sm font-bold",children:"Cash"})]}),f.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:[f.jsx(Bg,{className:"h-10 w-10"}),f.jsx("span",{className:"text-sm font-bold",children:"Credit Card"})]})]}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"rounded-xl bg-background border border-border px-4 py-3 text-right",children:[f.jsx("p",{className:"text-xs text-muted-foreground font-semibold",children:"Cash Tendered"}),f.jsxs("p",{className:"text-3xl font-extrabold text-foreground font-mono",children:["$",i]})]}),f.jsxs("div",{className:`rounded-xl border px-4 py-2 text-center ${h>=p?"bg-success/15 border-success/30":"bg-destructive/10 border-destructive/20"}`,children:[f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Change Due"}),f.jsxs("p",{className:`text-2xl font-extrabold font-mono ${h>=p?"text-success":"text-destructive"}`,children:["$",w>=0?w.toFixed(2):"—"]})]}),f.jsx("div",{className:"grid grid-cols-3 gap-2",children:C.map(E=>f.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))}),f.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[["7","8","9","4","5","6","1","2","3"].map(E=>f.jsx("button",{onClick:()=>v(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)),f.jsx("button",{onClick:c,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"}),f.jsx("button",{onClick:()=>v("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"}),f.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:f.jsx(Ug,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.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"}),f.jsx("button",{onClick:y,disabled:h<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"})]})]})]})})},cy=g.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:"relative w-full overflow-auto",children:f.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})}));cy.displayName="Table";const dy=g.forwardRef(({className:e,...t},n)=>f.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t}));dy.displayName="TableHeader";const fy=g.forwardRef(({className:e,...t},n)=>f.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t}));fy.displayName="TableBody";const py=g.forwardRef(({className:e,...t},n)=>f.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));py.displayName="TableFooter";const Ni=g.forwardRef(({className:e,...t},n)=>f.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=g.forwardRef(({className:e,...t},n)=>f.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=g.forwardRef(({className:e,...t},n)=>f.jsx("td",{ref:n,className:we("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));et.displayName="TableCell";const U2=g.forwardRef(({className:e,...t},n)=>f.jsx("caption",{ref:n,className:we("mt-4 text-sm text-muted-foreground",e),...t}));U2.displayName="TableCaption";const kp=["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 Vu(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 W2(e){var i;const t=((i=e[0])==null?void 0:i.businessDate)??ia(new Date),n=new Map;for(const a of kp)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=kp.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 H2=({open:e,onClose:t,sales:n,onClearSales:r})=>{const o=W2(n),s=o.totalSales+o.totalTax;return f.jsx(cd,{open:e,onOpenChange:t,children:f.jsxs(Fa,{className:"max-h-[85vh] overflow-y-auto border-border bg-card sm:max-w-4xl",children:[f.jsxs($a,{children:[f.jsx(za,{className:"text-lg font-extrabold text-foreground",children:"End of Day Report"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Business date: ",o.businessDate]})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[f.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Grand Total"}),f.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",s.toFixed(2)]}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.totalTransactions," transactions"]})]}),f.jsxs("div",{className:"rounded-xl border border-success/20 bg-success/10 p-3 text-center",children:[f.jsxs("div",{className:"mb-1 flex items-center justify-center gap-1",children:[f.jsx(zg,{className:"h-4 w-4 text-success"}),f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Cash"})]}),f.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",o.cashTotal.toFixed(2)]})]}),f.jsxs("div",{className:"rounded-xl border border-primary/20 bg-primary/10 p-3 text-center",children:[f.jsxs("div",{className:"mb-1 flex items-center justify-center gap-1",children:[f.jsx(Bg,{className:"h-4 w-4 text-primary"}),f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Credit"})]}),f.jsxs("p",{className:"font-mono text-xl font-extrabold text-foreground",children:["$",o.creditTotal.toFixed(2)]})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[f.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Pre-Tax Sales"}),f.jsxs("p",{className:"font-mono text-lg font-extrabold text-foreground",children:["$",o.totalSales.toFixed(2)]})]}),f.jsxs("div",{className:"rounded-xl border border-border bg-background p-3 text-center",children:[f.jsx("p",{className:"text-xs font-semibold text-muted-foreground",children:"Total Tax Collected"}),f.jsxs("p",{className:"font-mono text-lg font-extrabold text-foreground",children:["$",o.totalTax.toFixed(2)]})]})]}),o.categoryBreakdown.length>0?f.jsx("div",{className:"overflow-hidden rounded-xl border border-border",children:f.jsxs(cy,{children:[f.jsx(dy,{children:f.jsxs(Ni,{className:"bg-secondary/50",children:[f.jsx(or,{className:"text-xs font-bold",children:"Category"}),f.jsx(or,{className:"text-right text-xs font-bold",children:"Cash Sales"}),f.jsx(or,{className:"text-right text-xs font-bold",children:"Cash Tax"}),f.jsx(or,{className:"text-right text-xs font-bold",children:"Credit Sales"}),f.jsx(or,{className:"text-right text-xs font-bold",children:"Credit Tax"}),f.jsx(or,{className:"text-right text-xs font-bold",children:"Grand Total"})]})}),f.jsx(fy,{children:o.categoryBreakdown.map(i=>f.jsxs(Ni,{children:[f.jsx(et,{className:"text-sm font-semibold",children:i.category}),f.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.cashSales.toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.cashTax.toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.creditSales.toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm",children:["$",i.creditTax.toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",i.grandTotal.toFixed(2)]})]},i.category))}),f.jsx(py,{children:f.jsxs(Ni,{children:[f.jsx(et,{className:"text-sm font-bold",children:"Total"}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.cashSales,0).toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.cashTax,0).toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.creditSales,0).toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",o.categoryBreakdown.reduce((i,a)=>i+a.creditTax,0).toFixed(2)]}),f.jsxs(et,{className:"text-right font-mono text-sm font-bold",children:["$",s.toFixed(2)]})]})})]})}):f.jsx("div",{className:"py-8 text-center text-muted-foreground",children:f.jsx("p",{className:"text-sm",children:"No sales recorded today"})}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2",children:[f.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&&f.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"})]})]})})},Qu=[{id:"1",name:"Rice 1kg",price:28,category:"Pantry",emoji:"RICE"},{id:"2",name:"Beans 1kg",price:35,category:"Pantry",emoji:"BEAN"},{id:"3",name:"Sugar 1kg",price:32,category:"Pantry",emoji:"SUGR"},{id:"4",name:"Cooking Oil 1L",price:45,category:"Pantry",emoji:"OIL"},{id:"5",name:"Salt 1kg",price:15,category:"Pantry",emoji:"SALT"},{id:"6",name:"Flour 1kg",price:22,category:"Pantry",emoji:"FLOU"},{id:"7",name:"Pasta 200g",price:12,category:"Pantry",emoji:"PAST"},{id:"8",name:"Canned Tuna",price:25,category:"Pantry",emoji:"TUNA"},{id:"9",name:"Soda 600ml",price:18,category:"Drinks",emoji:"SODA"},{id:"10",name:"Water 1L",price:12,category:"Drinks",emoji:"WATR"},{id:"11",name:"Juice 1L",price:28,category:"Drinks",emoji:"JUCE"},{id:"12",name:"Coffee 200g",price:55,category:"Drinks",emoji:"CAFE"},{id:"13",name:"Milk 1L",price:26,category:"Dairy",emoji:"MILK"},{id:"14",name:"Cheese 250g",price:45,category:"Dairy",emoji:"CHSE"},{id:"15",name:"Cream 250ml",price:28,category:"Dairy",emoji:"CREM"},{id:"16",name:"Yogurt",price:15,category:"Dairy",emoji:"YGRT"},{id:"17",name:"Bread Roll",price:3,category:"Bakery",emoji:"BRED"},{id:"18",name:"Sweet Bread",price:8,category:"Bakery",emoji:"SWEE"},{id:"19",name:"Tortillas 1kg",price:22,category:"Bakery",emoji:"TRTL"},{id:"20",name:"Tomatoes 1kg",price:30,category:"Produce",emoji:"TOMA"},{id:"21",name:"Onions 1kg",price:25,category:"Produce",emoji:"ONON"},{id:"22",name:"Limes 1kg",price:35,category:"Produce",emoji:"LIME"},{id:"23",name:"Bananas 1kg",price:20,category:"Produce",emoji:"BANA"},{id:"24",name:"Potatoes 1kg",price:28,category:"Produce",emoji:"POTA"},{id:"25",name:"Chicken 1kg",price:85,category:"Meat",emoji:"CHKN"},{id:"26",name:"Eggs 12ct",price:48,category:"Meat",emoji:"EGGS"},{id:"27",name:"Ham 250g",price:38,category:"Meat",emoji:"HAM"},{id:"28",name:"Bar Soap",price:18,category:"Cleaning",emoji:"SOAP"},{id:"29",name:"Bleach 1L",price:22,category:"Cleaning",emoji:"CLNR"},{id:"30",name:"Toilet Paper",price:15,category:"Cleaning",emoji:"PAPR"},{id:"31",name:"Detergent 1kg",price:42,category:"Cleaning",emoji:"DTRG"}],hy="/api".replace(/\/$/,"");function my(e,t=0){const n=Qu[t]||Qu[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",taxable:r,taxRate:r?typeof e.taxRate=="number"&&!Number.isNaN(e.taxRate)?e.taxRate:0:void 0,reportCategory:e.reportCategory||"Non-Taxable"}}function Gu(){return Qu.map((e,t)=>my({...e,taxable:!1,reportCategory:"Non-Taxable"},t))}function V2(e){return["All",...Array.from(new Set(e.map(n=>n.category.trim()).filter(Boolean))).sort((n,r)=>n.localeCompare(r))]}async function Q2(){try{const e=await fetch(`${hy}/catalog.php`);if(!e.ok)return null;const t=await e.json();return t.products?t.products.map((n,r)=>my(n,r)):[]}catch(e){return console.error("Failed to load catalog",e),null}}async function Ku(e){try{return(await fetch(`${hy}/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}}function G2(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)}const K2=({open:e,onClose:t,products:n,onSaved:r})=>{const[o,s]=g.useState(n),[i,a]=g.useState("");g.useEffect(()=>{s(n)},[n,e]);const l=(c,b,h)=>{s(w=>w.map(y=>{if(y.id!==c)return y;const m={...y,[b]:h};return b==="taxable"&&h===!1&&(m.taxRate=void 0),b==="taxable"&&h===!0&&m.taxRate==null&&(m.taxRate=0),m}))},u=()=>{const c=o.length+1;s(b=>[...b,{id:`custom-${c}`,name:`New Item ${c}`,price:0,category:"General",emoji:"ITEM",taxable:!1,reportCategory:"Non-Taxable"}])},d=c=>{s(b=>b.filter(h=>h.id!==c))},p=async()=>{const c=o.map((h,w)=>({...h,id:G2(h.id||h.name||`product-${w+1}`),name:h.name.trim()||`Item ${w+1}`,category:h.category.trim()||"General",emoji:h.emoji.trim()||"ITEM",price:Number(h.price)||0,taxRate:h.taxable?Number(h.taxRate||0):void 0})),b=await Ku(c);a(b?"Saved for all devices":"Save failed"),b&&r(c)},v=async()=>{const c=Gu(),b=await Ku(c);a(b?"Reset to default catalog":"Reset failed"),b&&(s(c),r(c))};return f.jsx(cd,{open:e,onOpenChange:t,children:f.jsxs(Fa,{className:"max-h-[90vh] overflow-y-auto border-border bg-card sm:max-w-5xl",children:[f.jsxs($a,{children:[f.jsx(za,{className:"text-lg font-extrabold text-foreground",children:"Catalog Manager"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Regular product buttons are saved on the server here."})]}),f.jsx("div",{className:"space-y-3",children:o.map(c=>f.jsxs("div",{className:"grid grid-cols-1 gap-2 rounded-xl border border-border bg-background p-3 md:grid-cols-6",children:[f.jsx("input",{value:c.name,onChange:b=>l(c.id,"name",b.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Name"}),f.jsx("input",{value:c.category,onChange:b=>l(c.id,"category",b.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Category"}),f.jsx("input",{type:"number",min:"0",step:"0.01",value:c.price,onChange:b=>l(c.id,"price",parseFloat(b.target.value||"0")),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Price"}),f.jsx("input",{value:c.emoji,onChange:b=>l(c.id,"emoji",b.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",placeholder:"Button tag"}),f.jsx("select",{value:c.reportCategory,onChange:b=>l(c.id,"reportCategory",b.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",children:Av.map(b=>f.jsx("option",{value:b,children:b},b))}),f.jsxs("div",{className:"flex gap-2",children:[f.jsxs("select",{value:c.taxable?"taxable":"non-taxable",onChange:b=>l(c.id,"taxable",b.target.value==="taxable"),className:"flex-1 rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold text-foreground",children:[f.jsx("option",{value:"taxable",children:"Taxable"}),f.jsx("option",{value:"non-taxable",children:"Non-Taxable"})]}),f.jsx("input",{type:"number",min:"0",step:"0.01",disabled:!c.taxable,value:c.taxRate??"",onChange:b=>l(c.id,"taxRate",b.target.value===""?void 0:parseFloat(b.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 %"}),f.jsx("button",{onClick:()=>d(c.id),className:"rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs font-bold text-destructive",children:"Remove"})]})]},c.id))}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-2",children:[f.jsx("div",{className:"text-xs font-semibold text-muted-foreground",children:i}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:u,className:"rounded-lg bg-secondary px-4 py-2 text-sm font-bold text-secondary-foreground",children:"Add Product"}),f.jsx("button",{onClick:v,className:"rounded-lg border border-border bg-background px-4 py-2 text-sm font-bold text-foreground",children:"Reset Defaults"}),f.jsx("button",{onClick:p,className:"rounded-lg bg-primary px-4 py-2 text-sm font-bold text-primary-foreground",children:"Save Catalog"})]})]})]})})},bs="pos-sales",dd="/api".replace(/\/$/,"");function gy(e){const t=e.map(n=>({...n,timestamp:n.timestamp.toISOString()}));return JSON.stringify(t)}function fd(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 pd(){return typeof window<"u"&&typeof window.localStorage<"u"}function Y2(e=ia(new Date)){return pd()?fd(window.localStorage.getItem(bs)).filter(n=>n.businessDate===e):[]}function q2(e){if(!pd())return;const t=fd(window.localStorage.getItem(bs)),n=new Set(e.map(o=>o.businessDate)),r=t.filter(o=>!n.has(o.businessDate));window.localStorage.setItem(bs,gy([...r,...e]))}function X2(e){if(!pd())return;const n=fd(window.localStorage.getItem(bs)).filter(r=>r.businessDate!==e);window.localStorage.setItem(bs,gy(n))}async function Z2(e){try{const t=await fetch(`${dd}/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 J2(e){try{return(await fetch(`${dd}/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 ek(e){try{return(await fetch(`${dd}/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,_l=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:[_l,33,17],DOUBLE_HEIGHT_OFF:[_l,33,0],CUT_PAPER:[_l,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]},tk=new TextEncoder;function Ve(e){return Array.from(tk.encode(e))}function bn(e,t,n=42){const r=n-e.length-t.length;return e+" ".repeat(Math.max(1,r))+t}function Dl(e=42){return"-".repeat(e)}function nk(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(Dl())),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(Dl())),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(Dl())),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 vy(){return"serial"in navigator}async function rk(){if(!vy())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 ok(){try{Qn&&(Qn.releaseLock(),Qn=null),In&&(await In.close(),In=null)}catch(e){console.error("Error disconnecting printer:",e)}}function Ml(){return In!==null&&Qn!==null}async function yy(e){if(!Qn)throw new Error("Printer not connected");await Qn.write(e)}async function xy(){await yy(new Uint8Array(Ne.DRAWER_KICK_PIN2))}async function sk(e){const t=nk(e);await yy(new Uint8Array(t))}async function ik(e){await xy(),await sk(e)}let ak=1e3;function lk(e){return e.reportCategory?e.reportCategory:Vu(e.category,!!e.taxRate)}const uk=()=>{const e=ia(new Date),[t,n]=g.useState("All"),[r,o]=g.useState([]),[s,i]=g.useState(!1),[a,l]=g.useState(!1),[u,d]=g.useState(!1),[p,v]=g.useState([]),[c,b]=g.useState(Gu()),[h,w]=g.useState(!1),y=g.useMemo(()=>V2(c),[c]),m=g.useMemo(()=>t==="All"?c:c.filter(I=>I.category===t),[c,t]),x=g.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:lk(I),taxable:!!I.taxRate}])},[]),S=g.useCallback((I,T,O,k,P)=>{const _=`manual-${ak++}`,U=O?`${T} (T)`:T;o(z=>[...z,{id:_,name:U,price:I,emoji:O?"TAX":"NTX",quantity:1,taxRate:O?k:void 0,category:T,reportCategory:P??Vu(T,O),taxable:O}])},[]),C=g.useCallback((I,T)=>{o(O=>O.map(k=>k.id===I?{...k,quantity:k.quantity+T}:k).filter(k=>k.quantity>0))},[]),N=g.useCallback(I=>{o(T=>T.filter(O=>O.id!==I))},[]),E=g.useCallback(()=>o([]),[]),R=g.useCallback(()=>{r.length!==0&&i(!0)},[r]),D=g.useCallback(async()=>{if(Ml()){await ok(),w(!1),He.info("Printer disconnected");return}if(!vy()){He.error("WebSerial not supported. Use Chrome or Edge.");return}const I=await rk();if(w(I),I){He.success("Printer connected");return}He.error("Could not connect to printer")},[]),L=g.useCallback(async()=>{if(!Ml()){He.error("Connect a printer first");return}try{await xy(),He.success("Drawer opened")}catch{He.error("Failed to open drawer")}},[]);g.useEffect(()=>{let I=!0;return(async()=>{const O=await Q2();if(I){if(O&&O.length>0){b(O);return}b(Gu())}})(),()=>{I=!1}},[]),g.useEffect(()=>{let I=!0;return(async()=>{const k=await Z2(e)??Y2(e);I&&v(k)})(),()=>{I=!1}},[e]),g.useEffect(()=>{q2(p)},[p]);const W=g.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,_=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||Vu(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:_,timestamp:z,businessDate:ia(z)},Y=[...p,H];v(Y),i(!1),o([]);const he=await J2(H);if(Ml())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:_!==void 0&&_>0?_:void 0,timestamp:z};await ik(X)}catch(X){console.error("Print error:",X),He.error("Failed to print receipt")}const Ce=I==="cash"?"Cash":"Credit Card",J=_!==void 0&&_>0?` | Change $${_.toFixed(2)}`:"",pn=he?"":" | saved locally";He.success(`Sale complete: ${Ce} $${P.toFixed(2)}${J}${pn}`,{duration:4e3})},[r,p]),$=g.useCallback(async()=>{const I=await ek(e);if(X2(e),v([]),I){He.success("Started a new business day");return}He.success("Started a new business day locally")},[e]),V=g.useCallback(I=>{b(I),t!=="All"&&!I.some(T=>T.category===t)&&n("All"),He.success("Catalog saved for all devices")},[t]),F=g.useCallback(async(I,T)=>{const O=c.findIndex(z=>z.id===I),k=c.findIndex(z=>z.id===T);if(O<0||k<0||O===k)return;const P=[...c],[_]=P.splice(O,1);if(P.splice(k,0,_),b(P),!await Ku(P)){He.error("Could not save button order");return}He.success("Product button order saved")},[c]);return f.jsxs("div",{className:"flex h-screen flex-col bg-background",children:[f.jsxs("header",{className:"flex items-center gap-3 border-b border-border bg-card px-4 py-3 shadow-sm",children:[f.jsx(Zb,{className:"h-7 w-7 text-primary"}),f.jsx("h1",{className:"text-xl font-extrabold tracking-tight text-foreground",children:"My Store"}),f.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[f.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:[f.jsx(qb,{className:"h-4 w-4"}),f.jsx("span",{children:"Catalog"})]}),f.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 ${h?"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:[h?f.jsx(Kb,{className:"h-4 w-4"}):f.jsx(Yb,{className:"h-4 w-4"}),f.jsx("span",{className:"hidden sm:inline",children:h?"Printer Connected":"Connect Printer"})]}),h&&f.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:f.jsx("span",{children:"Open Drawer"})}),f.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:[f.jsx(Vb,{className:"h-4 w-4"}),f.jsx("span",{children:"Report"}),p.length>0&&f.jsx("span",{className:"rounded-full bg-primary px-1.5 py-0.5 text-[10px] font-bold text-primary-foreground",children:p.length})]}),f.jsx("span",{className:"text-sm text-muted-foreground",children:"Point of Sale"})]})]}),f.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[f.jsx("div",{className:"hidden w-[260px] flex-shrink-0 overflow-y-auto p-3 md:block lg:w-[280px]",children:f.jsx(OE,{onAddItem:S})}),f.jsxs("div",{className:"flex flex-1 flex-col gap-3 overflow-y-auto p-4",children:[f.jsx(EE,{categories:y,selected:t,onSelect:n}),f.jsx(kE,{products:m,onAdd:x,onReorder:F})]}),f.jsx("div",{className:"hidden w-[340px] flex-shrink-0 p-3 pl-0 md:flex lg:w-[380px]",children:f.jsx(NE,{items:r,onUpdateQty:C,onRemove:N,onCheckout:R,onClear:E})})]}),r.length>0&&f.jsx("div",{className:"border-t border-border bg-card px-4 py-3 md:hidden",children:f.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)]})}),f.jsx(B2,{open:s,onClose:()=>i(!1),onComplete:W,items:r}),f.jsx(H2,{open:a,onClose:()=>l(!1),sales:p,onClearSales:$}),f.jsx(K2,{open:u,onClose:()=>d(!1),products:c,onSaved:V})]})},ck=()=>{const e=cg();return g.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),f.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),f.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},dk=new C1,fk=()=>f.jsx(k1,{client:dk,children:f.jsxs(SE,{children:[f.jsx(MS,{}),f.jsx(Uw,{}),f.jsx(cw,{basename:"/NAOPOS/dist/",children:f.jsxs(aw,{children:[f.jsx(Au,{path:"/",element:f.jsx(uk,{})}),f.jsx(Au,{path:"*",element:f.jsx(ck,{})})]})})]})});Km(document.getElementById("root")).render(f.jsx(fk,{}));