var jf=e=>{throw TypeError(e)};var Ol=(e,t,r)=>t.has(e)||jf("Cannot "+r);var E=(e,t,r)=>(Ol(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?jf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),K=(e,t,r,n)=>(Ol(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Re=(e,t,r)=>(Ol(e,t,"access private method"),r);var ha=(e,t,r,n)=>({set _(s){K(e,t,s,r)},get _(){return E(e,t,n)}});function O0(e,t){for(var r=0;rn[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yp={exports:{}},$i={},Xp={exports:{}},ee={};/** * @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 Xo=Symbol.for("react.element"),_0=Symbol.for("react.portal"),M0=Symbol.for("react.fragment"),L0=Symbol.for("react.strict_mode"),I0=Symbol.for("react.profiler"),D0=Symbol.for("react.provider"),F0=Symbol.for("react.context"),z0=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),B0=Symbol.for("react.memo"),U0=Symbol.for("react.lazy"),Sf=Symbol.iterator;function W0(e){return e===null||typeof e!="object"?null:(e=Sf&&e[Sf]||e["@@iterator"],typeof e=="function"?e:null)}var Jp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zp=Object.assign,eh={};function Ds(e,t,r){this.props=e,this.context=t,this.refs=eh,this.updater=r||Jp}Ds.prototype.isReactComponent={};Ds.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")};Ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function th(){}th.prototype=Ds.prototype;function qu(e,t,r){this.props=e,this.context=t,this.refs=eh,this.updater=r||Jp}var Ku=qu.prototype=new th;Ku.constructor=qu;Zp(Ku,Ds.prototype);Ku.isPureReactComponent=!0;var Cf=Array.isArray,rh=Object.prototype.hasOwnProperty,Qu={current:null},nh={key:!0,ref:!0,__self:!0,__source:!0};function sh(e,t,r){var n,s={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)rh.call(t,n)&&!nh.hasOwnProperty(n)&&(s[n]=t[n]);var l=arguments.length-2;if(l===1)s.children=r;else if(1>>1,z=T[Q];if(0>>1;Qs(ce,B))Mes(se,ce)?(T[Q]=se,T[Me]=B,Q=Me):(T[Q]=ce,T[Y]=B,Q=Y);else if(Mes(se,B))T[Q]=se,T[Me]=B,Q=Me;else break e}}return P}function s(T,P){var B=T.sortIndex-P.sortIndex;return B!==0?B:T.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,m=null,h=3,p=!1,b=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var P=r(u);P!==null;){if(P.callback===null)n(u);else if(P.startTime<=T)n(u),P.sortIndex=P.expirationTime,t(c,P);else break;P=r(u)}}function N(T){if(v=!1,y(T),!b)if(r(c)!==null)b=!0,L(j);else{var P=r(u);P!==null&&q(N,P.startTime-T)}}function j(T,P){b=!1,v&&(v=!1,x(k),k=-1),p=!0;var B=h;try{for(y(P),m=r(c);m!==null&&(!(m.expirationTime>P)||T&&!H());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,h=m.priorityLevel;var z=Q(m.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?m.callback=z:m===r(c)&&n(c),y(P)}else n(c);m=r(c)}if(m!==null)var G=!0;else{var Y=r(u);Y!==null&&q(N,Y.startTime-P),G=!1}return G}finally{m=null,h=B,p=!1}}var S=!1,C=null,k=-1,_=5,M=-1;function H(){return!(e.unstable_now()-M<_)}function $(){if(C!==null){var T=e.unstable_now();M=T;var P=!0;try{P=C(!0,T)}finally{P?D():(S=!1,C=null)}}else S=!1}var D;if(typeof g=="function")D=function(){g($)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,A=R.port2;R.port1.onmessage=$,D=function(){A.postMessage(null)}}else D=function(){w($,0)};function L(T){C=T,S||(S=!0,D())}function q(T,P){k=w(function(){T(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(T){T.callback=null},e.unstable_continueExecution=function(){b||p||(b=!0,L(j))},e.unstable_forceFrameRate=function(T){0>T||125Q?(T.sortIndex=B,t(u,T),r(c)===null&&T===r(u)&&(v?(x(k),k=-1):v=!0,q(N,B-Q))):(T.sortIndex=z,t(c,T),b||p||(b=!0,L(j))),T},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(T){var P=h;return function(){var B=h;h=P;try{return T.apply(this,arguments)}finally{h=B}}}})(ch);lh.exports=ch;var ew=lh.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 tw=f,ct=ew;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=Object.prototype.hasOwnProperty,rw=/^[: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]*$/,Ef={},Tf={};function nw(e){return Cc.call(Tf,e)?!0:Cc.call(Ef,e)?!1:rw.test(e)?Tf[e]=!0:(Ef[e]=!0,!1)}function sw(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ow(e,t,r,n){if(t===null||typeof t>"u"||sw(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 qe(e,t,r,n,s,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new qe(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){_e[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xu=/[\-:]([a-z])/g;function Ju(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xu,Ju);_e[t]=new qe(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(Xu,Ju);_e[t]=new qe(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(Xu,Ju);_e[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zu(e,t,r,n){var s=_e.hasOwnProperty(t)?_e[t]:null;(s!==null?s.type!==0:n||!(2l||s[i]!==a[l]){var c=` `+s[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Ll=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?lo(e):""}function aw(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function Pc(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 Yn:return"Fragment";case Qn:return"Portal";case kc:return"Profiler";case ed:return"StrictMode";case Ec:return"Suspense";case Tc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fh:return(e.displayName||"Context")+".Consumer";case dh:return(e._context.displayName||"Context")+".Provider";case td:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rd:return t=e.displayName||null,t!==null?t:Pc(e.type)||"Memo";case Ar:t=e._payload,e=e._init;try{return Pc(e(t))}catch{}}return null}function iw(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 Pc(t);case 8:return t===ed?"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 Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ph(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lw(e){var t=ph(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function va(e){e._valueTracker||(e._valueTracker=lw(e))}function hh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ph(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function oi(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 Rc(e,t){var r=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Rf(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gh(e,t){t=t.checked,t!=null&&Zu(e,"checked",t,!1)}function Ac(e,t){gh(e,t);var r=Zr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Oc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Oc(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Af(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Oc(e,t,r){(t!=="number"||oi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var co=Array.isArray;function is(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=ya.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ko(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var mo={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},cw=["Webkit","ms","Moz","O"];Object.keys(mo).forEach(function(e){cw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mo[t]=mo[e]})});function wh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||mo.hasOwnProperty(e)&&mo[e]?(""+t).trim():t+"px"}function bh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=wh(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var uw=ve({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 Lc(e,t){if(t){if(uw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Ic(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 Dc=null;function nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fc=null,ls=null,cs=null;function Mf(e){if(e=ea(e)){if(typeof Fc!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Gi(t),Fc(e.stateNode,e.type,t))}}function Nh(e){ls?cs?cs.push(e):cs=[e]:ls=e}function jh(){if(ls){var e=ls,t=cs;if(cs=ls=null,Mf(e),t)for(e=0;e>>=0,e===0?32:31-(bw(e)/Nw|0)|0}var wa=64,ba=4194304;function uo(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 ci(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~s;l!==0?n=uo(l):(a&=i,a!==0&&(n=uo(a)))}else i=r&~s,i!==0?n=uo(i):a!==0&&(n=uo(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,a=t&-t,s>=a||s===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=r}function kw(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=ho),Wf=" ",Hf=!1;function Wh(e,t){switch(e){case"keyup":return eb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function rb(e,t){switch(e){case"compositionend":return Hh(t);case"keypress":return t.which!==32?null:(Hf=!0,Wf);case"textInput":return e=t.data,e===Wf&&Hf?null:e;default:return null}}function nb(e,t){if(Xn)return e==="compositionend"||!dd&&Wh(e,t)?(e=Bh(),Va=ld=Br=null,Xn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Kf(r)}}function Kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qh(){for(var e=window,t=oi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=oi(e.document)}return t}function fd(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 fb(e){var t=Qh(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Kh(r.ownerDocument.documentElement,r)){if(n!==null&&fd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,a=Math.min(n.start,s);n=n.end===void 0?a:Math.min(n.end,s),!e.extend&&a>n&&(s=n,n=a,a=s),s=Qf(r,a);var i=Qf(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Jn=null,Hc=null,xo=null,Vc=!1;function Yf(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vc||Jn==null||Jn!==oi(n)||(n=Jn,"selectionStart"in n&&fd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xo&&Oo(xo,n)||(xo=n,n=fi(Hc,"onSelect"),0ts||(e.current=Xc[ts],Xc[ts]=null,ts--)}function ie(e,t){ts++,Xc[ts]=e.current,e.current=t}var en={},$e=sn(en),et=sn(!1),Cn=en;function Ts(e,t){var r=e.type.contextTypes;if(!r)return en;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},a;for(a in r)s[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function tt(e){return e=e.childContextTypes,e!=null}function pi(){fe(et),fe($e)}function nm(e,t,r){if($e.current!==en)throw Error(O(168));ie($e,t),ie(et,r)}function sg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(O(108,iw(e)||"Unknown",s));return ve({},r,n)}function hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||en,Cn=$e.current,ie($e,e),ie(et,et.current),!0}function sm(e,t,r){var n=e.stateNode;if(!n)throw Error(O(169));r?(e=sg(e,t,Cn),n.__reactInternalMemoizedMergedChildContext=e,fe(et),fe($e),ie($e,e)):fe(et),ie(et,r)}var rr=null,qi=!1,Yl=!1;function og(e){rr===null?rr=[e]:rr.push(e)}function Sb(e){qi=!0,og(e)}function on(){if(!Yl&&rr!==null){Yl=!0;var e=0,t=oe;try{var r=rr;for(oe=1;e>=i,s-=i,sr=1<<32-Ot(t)+s|r<k?(_=C,C=null):_=C.sibling;var M=h(x,C,y[k],N);if(M===null){C===null&&(C=_);break}e&&C&&M.alternate===null&&t(x,C),g=a(M,g,k),S===null?j=M:S.sibling=M,S=M,C=_}if(k===y.length)return r(x,C),pe&&fn(x,k),j;if(C===null){for(;kk?(_=C,C=null):_=C.sibling;var H=h(x,C,M.value,N);if(H===null){C===null&&(C=_);break}e&&C&&H.alternate===null&&t(x,C),g=a(H,g,k),S===null?j=H:S.sibling=H,S=H,C=_}if(M.done)return r(x,C),pe&&fn(x,k),j;if(C===null){for(;!M.done;k++,M=y.next())M=m(x,M.value,N),M!==null&&(g=a(M,g,k),S===null?j=M:S.sibling=M,S=M);return pe&&fn(x,k),j}for(C=n(x,C);!M.done;k++,M=y.next())M=p(C,x,k,M.value,N),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?k:M.key),g=a(M,g,k),S===null?j=M:S.sibling=M,S=M);return e&&C.forEach(function($){return t(x,$)}),pe&&fn(x,k),j}function w(x,g,y,N){if(typeof y=="object"&&y!==null&&y.type===Yn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xa:e:{for(var j=y.key,S=g;S!==null;){if(S.key===j){if(j=y.type,j===Yn){if(S.tag===7){r(x,S.sibling),g=s(S,y.props.children),g.return=x,x=g;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ar&&im(j)===S.type){r(x,S.sibling),g=s(S,y.props),g.ref=eo(x,S,y),g.return=x,x=g;break e}r(x,S);break}else t(x,S);S=S.sibling}y.type===Yn?(g=Sn(y.props.children,x.mode,N,y.key),g.return=x,x=g):(N=Za(y.type,y.key,y.props,null,x.mode,N),N.ref=eo(x,g,y),N.return=x,x=N)}return i(x);case Qn:e:{for(S=y.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(x,g.sibling),g=s(g,y.children||[]),g.return=x,x=g;break e}else{r(x,g);break}else t(x,g);g=g.sibling}g=sc(y,x.mode,N),g.return=x,x=g}return i(x);case Ar:return S=y._init,w(x,g,S(y._payload),N)}if(co(y))return b(x,g,y,N);if(Qs(y))return v(x,g,y,N);Ta(x,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(x,g.sibling),g=s(g,y),g.return=x,x=g):(r(x,g),g=nc(y,x.mode,N),g.return=x,x=g),i(x)):r(x,g)}return w}var Rs=cg(!0),ug=cg(!1),vi=sn(null),yi=null,ss=null,gd=null;function xd(){gd=ss=yi=null}function vd(e){var t=vi.current;fe(vi),e._currentValue=t}function eu(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ds(e,t){yi=e,gd=ss=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(gd!==e)if(e={context:e,memoizedValue:t,next:null},ss===null){if(yi===null)throw Error(O(308));ss=e,yi.dependencies={lanes:0,firstContext:e}}else ss=ss.next=e;return t}var hn=null;function yd(e){hn===null?hn=[e]:hn.push(e)}function dg(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,yd(t)):(r.next=s.next,s.next=r),t.interleaved=r,cr(e,n)}function cr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Or=!1;function wd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fg(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 ar(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ne&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,cr(e,r)}return s=n.interleaved,s===null?(t.next=t,yd(n)):(t.next=s.next,s.next=t),n.interleaved=t,cr(e,r)}function qa(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,od(e,r)}}function lm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?s=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?s=a=t:a=a.next=t}else s=a=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function wi(e,t,r,n){var s=e.updateQueue;Or=!1;var a=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(a!==null){var m=s.baseState;i=0,d=u=c=null,l=a;do{var h=l.lane,p=l.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,v=l;switch(h=t,p=r,v.tag){case 1:if(b=v.payload,typeof b=="function"){m=b.call(p,m,h);break e}m=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(p,m,h):b,h==null)break e;m=ve({},m,h);break e;case 2:Or=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=m):d=d.next=p,i|=h;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;h=l,l=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(c=m),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else a===null&&(s.shared.lanes=0);Tn|=i,e.lanes=i,e.memoizedState=m}}function cm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Jl.transition;Jl.transition={};try{e(!1),t()}finally{oe=r,Jl.transition=n}}function Pg(){return yt().memoizedState}function Tb(e,t,r){var n=Yr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Rg(e))Ag(t,r);else if(r=dg(e,t,r,n),r!==null){var s=Ve();_t(r,e,n,s),Og(r,t,n)}}function Pb(e,t,r){var n=Yr(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Rg(e))Ag(t,s);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,r);if(s.hasEagerState=!0,s.eagerState=l,Mt(l,i)){var c=t.interleaved;c===null?(s.next=s,yd(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}r=dg(e,t,s,n),r!==null&&(s=Ve(),_t(r,e,n,s),Og(r,t,n))}}function Rg(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ag(e,t){vo=Ni=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Og(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,od(e,r)}}var ji={readContext:vt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Rb={readContext:vt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:dm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Qa(4194308,4,Sg.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qa(4,2,e,t)},useMemo:function(e,t){var r=$t();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$t();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Tb.bind(null,ge,e),[n.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:um,useDebugValue:Td,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=um(!1),t=e[0];return e=Eb.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ge,s=$t();if(pe){if(r===void 0)throw Error(O(407));r=r()}else{if(r=t(),Pe===null)throw Error(O(349));En&30||gg(n,t,r)}s.memoizedState=r;var a={value:r,getSnapshot:t};return s.queue=a,dm(vg.bind(null,n,a,e),[e]),n.flags|=2048,$o(9,xg.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=$t(),t=Pe.identifierPrefix;if(pe){var r=or,n=sr;r=(n&~(1<<32-Ot(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Fo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Ht]=t,e[Lo]=n,Ug(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ic(r,n),r){case"dialog":de("cancel",e),de("close",e),s=n;break;case"iframe":case"object":case"embed":de("load",e),s=n;break;case"video":case"audio":for(s=0;s_s&&(t.flags|=128,n=!0,to(a,!1),t.lanes=4194304)}else{if(!n)if(e=bi(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),to(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!pe)return Ie(t),null}else 2*be()-a.renderingStartTime>_s&&r!==1073741824&&(t.flags|=128,n=!0,to(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=be(),t.sibling=null,r=he.current,ie(he,n?r&1|2:r&1),t):(Ie(t),null);case 22:case 23:return Md(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nt&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Fb(e,t){switch(pd(t),t.tag){case 1:return tt(t.type)&&pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return As(),fe(et),fe($e),jd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nd(t),null;case 13:if(fe(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(he),null;case 4:return As(),null;case 10:return vd(t.type._context),null;case 22:case 23:return Md(),null;case 24:return null;default:return null}}var Ra=!1,Fe=!1,zb=typeof WeakSet=="function"?WeakSet:Set,U=null;function os(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function cu(e,t,r){try{r()}catch(n){we(e,t,n)}}var Nm=!1;function $b(e,t){if(Gc=ui,e=Qh(),fd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,l=-1,c=-1,u=0,d=0,m=e,h=null;t:for(;;){for(var p;m!==r||s!==0&&m.nodeType!==3||(l=i+s),m!==a||n!==0&&m.nodeType!==3||(c=i+n),m.nodeType===3&&(i+=m.nodeValue.length),(p=m.firstChild)!==null;)h=m,m=p;for(;;){if(m===e)break t;if(h===r&&++u===s&&(l=i),h===a&&++d===n&&(c=i),(p=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=p}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(qc={focusedElem:e,selectionRange:r},ui=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;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 v=b.memoizedProps,w=b.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:kt(t.type,v),w);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(N){we(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return b=Nm,Nm=!1,b}function yo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var a=s.destroy;s.destroy=void 0,a!==void 0&&cu(t,r,a)}s=s.next}while(s!==n)}}function Yi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function uu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Vg(e){var t=e.alternate;t!==null&&(e.alternate=null,Vg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[Lo],delete t[Yc],delete t[Nb],delete t[jb])),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 Gg(e){return e.tag===5||e.tag===3||e.tag===4}function jm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gg(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 du(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mi));else if(n!==4&&(e=e.child,e!==null))for(du(e,t,r),e=e.sibling;e!==null;)du(e,t,r),e=e.sibling}function fu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(fu(e,t,r),e=e.sibling;e!==null;)fu(e,t,r),e=e.sibling}var Ae=null,Pt=!1;function Cr(e,t,r){for(r=r.child;r!==null;)qg(e,t,r),r=r.sibling}function qg(e,t,r){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Ui,r)}catch{}switch(r.tag){case 5:Fe||os(r,t);case 6:var n=Ae,s=Pt;Ae=null,Cr(e,t,r),Ae=n,Pt=s,Ae!==null&&(Pt?(e=Ae,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ae.removeChild(r.stateNode));break;case 18:Ae!==null&&(Pt?(e=Ae,r=r.stateNode,e.nodeType===8?Ql(e.parentNode,r):e.nodeType===1&&Ql(e,r),Ro(e)):Ql(Ae,r.stateNode));break;case 4:n=Ae,s=Pt,Ae=r.stateNode.containerInfo,Pt=!0,Cr(e,t,r),Ae=n,Pt=s;break;case 0:case 11:case 14:case 15:if(!Fe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var a=s,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&cu(r,t,i),s=s.next}while(s!==n)}Cr(e,t,r);break;case 1:if(!Fe&&(os(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){we(r,t,l)}Cr(e,t,r);break;case 21:Cr(e,t,r);break;case 22:r.mode&1?(Fe=(n=Fe)||r.memoizedState!==null,Cr(e,t,r),Fe=n):Cr(e,t,r);break;default:Cr(e,t,r)}}function Sm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zb),t.forEach(function(n){var s=Qb.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function St(e,t){var r=t.deletions;if(r!==null)for(var n=0;ns&&(s=i),n&=~a}if(n=s,n=be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ub(n/1960))-n,10e?16:e,Ur===null)var n=!1;else{if(e=Ur,Ur=null,ki=0,ne&6)throw Error(O(331));var s=ne;for(ne|=4,U=e.current;U!==null;){var a=U,i=a.child;if(U.flags&16){var l=a.deletions;if(l!==null){for(var c=0;cbe()-Od?jn(e,0):Ad|=r),rt(e,t)}function tx(e,t){t===0&&(e.mode&1?(t=ba,ba<<=1,!(ba&130023424)&&(ba=4194304)):t=1);var r=Ve();e=cr(e,t),e!==null&&(Jo(e,t,r),rt(e,r))}function Kb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),tx(e,r)}function Qb(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(O(314))}n!==null&&n.delete(t),tx(e,r)}var rx;rx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,Ib(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,pe&&t.flags&1048576&&ag(t,xi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ya(e,t),e=t.pendingProps;var s=Ts(t,$e.current);ds(t,r),s=Cd(null,t,n,e,s,r);var a=kd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(n)?(a=!0,hi(t)):a=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,wd(t),s.updater=Qi,t.stateNode=s,s._reactInternals=t,ru(t,n,e,r),t=ou(null,t,n,!0,a,r)):(t.tag=0,pe&&a&&md(t),Ue(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ya(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=Xb(n),e=kt(n,e),s){case 0:t=su(null,t,n,e,r);break e;case 1:t=ym(null,t,n,e,r);break e;case 11:t=xm(null,t,n,e,r);break e;case 14:t=vm(null,t,n,kt(n.type,e),r);break e}throw Error(O(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:kt(n,s),su(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:kt(n,s),ym(e,t,n,s,r);case 3:e:{if(zg(t),e===null)throw Error(O(387));n=t.pendingProps,a=t.memoizedState,s=a.element,fg(e,t),wi(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){s=Os(Error(O(423)),t),t=wm(e,t,n,r,s);break e}else if(n!==s){s=Os(Error(O(424)),t),t=wm(e,t,n,r,s);break e}else for(at=qr(t.stateNode.containerInfo.firstChild),it=t,pe=!0,Rt=null,r=ug(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ps(),n===s){t=ur(e,t,r);break e}Ue(e,t,n,r)}t=t.child}return t;case 5:return mg(t),e===null&&Zc(t),n=t.type,s=t.pendingProps,a=e!==null?e.memoizedProps:null,i=s.children,Kc(n,s)?i=null:a!==null&&Kc(n,a)&&(t.flags|=32),Fg(e,t),Ue(e,t,i,r),t.child;case 6:return e===null&&Zc(t),null;case 13:return $g(e,t,r);case 4:return bd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Rs(t,null,n,r):Ue(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:kt(n,s),xm(e,t,n,s,r);case 7:return Ue(e,t,t.pendingProps,r),t.child;case 8:return Ue(e,t,t.pendingProps.children,r),t.child;case 12:return Ue(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,a=t.memoizedProps,i=s.value,ie(vi,n._currentValue),n._currentValue=i,a!==null)if(Mt(a.value,i)){if(a.children===s.children&&!et.current){t=ur(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=ar(-1,r&-r),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),eu(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(O(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),eu(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ue(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,ds(t,r),s=vt(s),n=n(s),t.flags|=1,Ue(e,t,n,r),t.child;case 14:return n=t.type,s=kt(n,t.pendingProps),s=kt(n.type,s),vm(e,t,n,s,r);case 15:return Ig(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:kt(n,s),Ya(e,t),t.tag=1,tt(n)?(e=!0,hi(t)):e=!1,ds(t,r),_g(t,n,s),ru(t,n,s,r),ou(null,t,n,!0,e,r);case 19:return Bg(e,t,r);case 22:return Dg(e,t,r)}throw Error(O(156,t.tag))};function nx(e,t){return Rh(e,t)}function Yb(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,r,n){return new Yb(e,t,r,n)}function Id(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xb(e){if(typeof e=="function")return Id(e)?1:0;if(e!=null){if(e=e.$$typeof,e===td)return 11;if(e===rd)return 14}return 2}function Xr(e,t){var r=e.alternate;return r===null?(r=gt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Za(e,t,r,n,s,a){var i=2;if(n=e,typeof e=="function")Id(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Yn:return Sn(r.children,s,a,t);case ed:i=8,s|=8;break;case kc:return e=gt(12,r,t,s|2),e.elementType=kc,e.lanes=a,e;case Ec:return e=gt(13,r,t,s),e.elementType=Ec,e.lanes=a,e;case Tc:return e=gt(19,r,t,s),e.elementType=Tc,e.lanes=a,e;case mh:return Ji(r,s,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dh:i=10;break e;case fh:i=9;break e;case td:i=11;break e;case rd:i=14;break e;case Ar:i=16,n=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=gt(i,r,t,s),t.elementType=e,t.type=n,t.lanes=a,t}function Sn(e,t,r,n){return e=gt(7,e,n,t),e.lanes=r,e}function Ji(e,t,r,n){return e=gt(22,e,n,t),e.elementType=mh,e.lanes=r,e.stateNode={isHidden:!1},e}function nc(e,t,r){return e=gt(6,e,null,t),e.lanes=r,e}function sc(e,t,r){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jb(e,t,r,n,s){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=Fl(0),this.expirationTimes=Fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fl(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Dd(e,t,r,n,s,a,i,l,c){return e=new Jb(e,t,r,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},wd(a),e}function Zb(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ix)}catch(e){console.error(e)}}ix(),ih.exports=ut;var ra=ih.exports;const lx=Qp(ra);var cx,Om=ra;cx=Om.createRoot,Om.hydrateRoot;var nl=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(){}},xn,Lr,vs,$p,s1=($p=class extends nl{constructor(){super();te(this,xn);te(this,Lr);te(this,vs);K(this,vs,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,Lr)||this.setEventListener(E(this,vs))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Lr))==null||t.call(this),K(this,Lr,void 0))}setEventListener(t){var r;K(this,vs,t),(r=E(this,Lr))==null||r.call(this),K(this,Lr,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){E(this,xn)!==t&&(K(this,xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof E(this,xn)=="boolean"?E(this,xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xn=new WeakMap,Lr=new WeakMap,vs=new WeakMap,$p),ux=new s1,o1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ir,Gu,Bp,a1=(Bp=class{constructor(){te(this,Ir,o1);te(this,Gu,!1)}setTimeoutProvider(e){K(this,Ir,e)}setTimeout(e,t){return E(this,Ir).setTimeout(e,t)}clearTimeout(e){E(this,Ir).clearTimeout(e)}setInterval(e,t){return E(this,Ir).setInterval(e,t)}clearInterval(e){E(this,Ir).clearInterval(e)}},Ir=new WeakMap,Gu=new WeakMap,Bp),xu=new a1;function i1(e){setTimeout(e,0)}var l1=typeof window>"u"||"Deno"in globalThis;function Et(){}function c1(e,t){return typeof e=="function"?e(t):e}function u1(e){return typeof e=="number"&&e>=0&&e!==1/0}function d1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vu(e,t){return typeof e=="function"?e(t):e}function f1(e,t){return typeof e=="function"?e(t):e}function _m(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:i,stale:l}=e;if(i){if(n){if(t.queryHash!==Bd(i,t.options))return!1}else if(!Wo(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||a&&!a(t))}function Mm(e,t){const{exact:r,status:n,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Uo(t.options.mutationKey)!==Uo(a))return!1}else if(!Wo(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Bd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Uo)(e)}function Uo(e){return JSON.stringify(e,(t,r)=>yu(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Wo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Wo(e[r],t[r])):!1}var m1=Object.prototype.hasOwnProperty;function dx(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Lm(e)&&Lm(t);if(!n&&!(yu(e)&&yu(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),l=i.length,c=n?new Array(l):{};let u=0;for(let d=0;d{xu.setTimeout(t,e)})}function h1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?dx(e,t):t}function g1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function x1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ud=Symbol();function fx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ud?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function v1(e,t,r){let n=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var mx=(()=>{let e=()=>l1;return{isServer(){return e()},setIsServer(t){e=t}}})();function y1(){let e,t;const r=new Promise((s,a)=>{e=s,t=a});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var w1=i1;function b1(){let e=[],t=0,r=l=>{l()},n=l=>{l()},s=w1;const a=l=>{t?e.push(l):s(()=>{r(l)})},i=()=>{const l=e;e=[],l.length&&s(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var We=b1(),ys,Dr,ws,Up,N1=(Up=class extends nl{constructor(){super();te(this,ys,!0);te(this,Dr);te(this,ws);K(this,ws,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,Dr)||this.setEventListener(E(this,ws))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Dr))==null||t.call(this),K(this,Dr,void 0))}setEventListener(t){var r;K(this,ws,t),(r=E(this,Dr))==null||r.call(this),K(this,Dr,t(this.setOnline.bind(this)))}setOnline(t){E(this,ys)!==t&&(K(this,ys,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return E(this,ys)}},ys=new WeakMap,Dr=new WeakMap,ws=new WeakMap,Up),Pi=new N1;function j1(e){return Math.min(1e3*2**e,3e4)}function px(e){return(e??"online")==="online"?Pi.isOnline():!0}var wu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hx(e){let t=!1,r=0,n;const s=y1(),a=()=>s.status!=="pending",i=v=>{var w;if(!a()){const x=new wu(v);h(x),(w=e.onCancel)==null||w.call(e,x)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>ux.isFocused()&&(e.networkMode==="always"||Pi.isOnline())&&e.canRun(),d=()=>px(e.networkMode)&&e.canRun(),m=v=>{a()||(n==null||n(),s.resolve(v))},h=v=>{a()||(n==null||n(),s.reject(v))},p=()=>new Promise(v=>{var w;n=x=>{(a()||u())&&v(x)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;n=void 0,a()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(a())return;let v;const w=r===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(m).catch(x=>{var S;if(a())return;const g=e.retry??(mx.isServer()?0:3),y=e.retryDelay??j1,N=typeof y=="function"?y(r,x):y,j=g===!0||typeof g=="number"&&ru()?void 0:p()).then(()=>{t?h(x):b()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(n==null||n(),s),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?b():p().then(b),s)}}var vn,Wp,gx=(Wp=class{constructor(){te(this,vn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u1(this.gcTime)&&K(this,vn,xu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mx.isServer()?1/0:5*60*1e3))}clearGcTimeout(){E(this,vn)!==void 0&&(xu.clearTimeout(E(this,vn)),K(this,vn,void 0))}},vn=new WeakMap,Wp);function S1(e){return{onFetch:(t,r)=>{var d,m,h,p,b;const n=t.options,s=(h=(m=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:m.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const w=y=>{v1(y,()=>t.signal,()=>v=!0)},x=fx(t.options,t.fetchOptions),g=async(y,N,j)=>{if(v)return Promise.reject(t.signal.reason);if(N==null&&y.pages.length)return Promise.resolve(y);const C=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:N,direction:j?"backward":"forward",meta:t.options.meta};return w(H),H})(),k=await x(C),{maxPages:_}=t.options,M=j?x1:g1;return{pages:M(y.pages,k,_),pageParams:M(y.pageParams,N,_)}};if(s&&a.length){const y=s==="backward",N=y?C1:Dm,j={pages:a,pageParams:i},S=N(n,j);l=await g(j,S,y)}else{const y=e??a.length;do{const N=c===0?i[0]??n.initialPageParam:Dm(n,l);if(c>0&&N==null)break;l=await g(l,N),c++}while(c{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Dm(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function C1(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var bs,yn,Ns,mt,wn,Ce,Ko,bn,st,xx,er,Hp,k1=(Hp=class extends gx{constructor(t){super();te(this,st);te(this,bs);te(this,yn);te(this,Ns);te(this,mt);te(this,wn);te(this,Ce);te(this,Ko);te(this,bn);K(this,bn,!1),K(this,Ko,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,wn,t.client),K(this,mt,E(this,wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,yn,zm(this.options)),this.state=t.state??E(this,yn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,bs)}get promise(){var t;return(t=E(this,Ce))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,Ko),...t},t!=null&&t._type&&K(this,bs,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=zm(this.options);r.data!==void 0&&(this.setState(Fm(r.data,r.dataUpdatedAt)),K(this,yn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,mt).remove(this)}setData(t,r){const n=h1(this.state.data,t,this.options);return Re(this,st,er).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){Re(this,st,er).call(this,{type:"setState",state:t})}cancel(t){var n,s;const r=(n=E(this,Ce))==null?void 0:n.promise;return(s=E(this,Ce))==null||s.cancel(t),r?r.then(Et).catch(Et):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,yn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>f1(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ud||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>vu(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:!d1(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,Ce))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,Ce))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(E(this,Ce)&&(E(this,bn)||Re(this,st,xx).call(this)?E(this,Ce).cancel({revert:!0}):E(this,Ce).cancelRetry()),this.scheduleGc()),E(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,st,er).call(this,{type:"invalidate"})}async fetch(t,r){var u,d,m,h,p,b,v,w,x,g,y;if(this.state.fetchStatus!=="idle"&&((u=E(this,Ce))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,Ce))return E(this,Ce).continueRetry(),E(this,Ce).promise}if(t&&this.setOptions(t),!this.options.queryFn){const N=this.observers.find(j=>j.options.queryFn);N&&this.setOptions(N.options)}const n=new AbortController,s=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(K(this,bn,!0),n.signal)})},a=()=>{const N=fx(this.options,r),S=(()=>{const C={client:E(this,wn),queryKey:this.queryKey,meta:this.meta};return s(C),C})();return K(this,bn,!1),this.options.persister?this.options.persister(N,S,this):N(S)},l=(()=>{const N={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,wn),state:this.state,fetchFn:a};return s(N),N})(),c=E(this,bs)==="infinite"?S1(this.options.pages):this.options.behavior;c==null||c.onFetch(l,this),K(this,Ns,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Re(this,st,er).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta}),K(this,Ce,hx({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,onCancel:N=>{N instanceof wu&&N.revert&&this.setState({...E(this,Ns),fetchStatus:"idle"}),n.abort()},onFail:(N,j)=>{Re(this,st,er).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{Re(this,st,er).call(this,{type:"pause"})},onContinue:()=>{Re(this,st,er).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const N=await E(this,Ce).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(p=(h=E(this,mt).config).onSuccess)==null||p.call(h,N,this),(v=(b=E(this,mt).config).onSettled)==null||v.call(b,N,this.state.error,this),N}catch(N){if(N instanceof wu){if(N.silent)return E(this,Ce).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw Re(this,st,er).call(this,{type:"error",error:N}),(x=(w=E(this,mt).config).onError)==null||x.call(w,N,this),(y=(g=E(this,mt).config).onSettled)==null||y.call(g,this.state.data,N,this),N}finally{this.scheduleGc()}}},bs=new WeakMap,yn=new WeakMap,Ns=new WeakMap,mt=new WeakMap,wn=new WeakMap,Ce=new WeakMap,Ko=new WeakMap,bn=new WeakMap,st=new WeakSet,xx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},er=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...E1(n.data,this.options),fetchMeta:t.meta??null};case"success":const s={...n,...Fm(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return K(this,Ns,t.manual?s:void 0),s;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),We.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,mt).notify({query:this,type:"updated",action:t})})},Hp);function E1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:px(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Qo,Bt,De,Nn,Ut,Pr,Vp,T1=(Vp=class extends gx{constructor(t){super();te(this,Ut);te(this,Qo);te(this,Bt);te(this,De);te(this,Nn);K(this,Qo,t.client),this.mutationId=t.mutationId,K(this,De,t.mutationCache),K(this,Bt,[]),this.state=t.state||P1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Bt).includes(t)||(E(this,Bt).push(t),this.clearGcTimeout(),E(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Bt,E(this,Bt).filter(r=>r!==t)),this.scheduleGc(),E(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Bt).length||(this.state.status==="pending"?this.scheduleGc():E(this,De).remove(this))}continue(){var t;return((t=E(this,Nn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,c,u,d,m,h,p,b,v,w,x,g,y,N,j,S,C;const r=()=>{Re(this,Ut,Pr).call(this,{type:"continue"})},n={client:E(this,Qo),meta:this.options.meta,mutationKey:this.options.mutationKey};K(this,Nn,hx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(k,_)=>{Re(this,Ut,Pr).call(this,{type:"failed",failureCount:k,error:_})},onPause:()=>{Re(this,Ut,Pr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,De).canRun(this)}));const s=this.state.status==="pending",a=!E(this,Nn).canStart();try{if(s)r();else{Re(this,Ut,Pr).call(this,{type:"pending",variables:t,isPaused:a}),E(this,De).config.onMutate&&await E(this,De).config.onMutate(t,this,n);const _=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,n));_!==this.state.context&&Re(this,Ut,Pr).call(this,{type:"pending",context:_,variables:t,isPaused:a})}const k=await E(this,Nn).start();return await((u=(c=E(this,De).config).onSuccess)==null?void 0:u.call(c,k,t,this.state.context,this,n)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,k,t,this.state.context,n)),await((p=(h=E(this,De).config).onSettled)==null?void 0:p.call(h,k,null,this.state.variables,this.state.context,this,n)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,k,null,t,this.state.context,n)),Re(this,Ut,Pr).call(this,{type:"success",data:k}),k}catch(k){try{await((x=(w=E(this,De).config).onError)==null?void 0:x.call(w,k,t,this.state.context,this,n))}catch(_){Promise.reject(_)}try{await((y=(g=this.options).onError)==null?void 0:y.call(g,k,t,this.state.context,n))}catch(_){Promise.reject(_)}try{await((j=(N=E(this,De).config).onSettled)==null?void 0:j.call(N,void 0,k,this.state.variables,this.state.context,this,n))}catch(_){Promise.reject(_)}try{await((C=(S=this.options).onSettled)==null?void 0:C.call(S,void 0,k,t,this.state.context,n))}catch(_){Promise.reject(_)}throw Re(this,Ut,Pr).call(this,{type:"error",error:k}),k}finally{E(this,De).runNext(this)}}},Qo=new WeakMap,Bt=new WeakMap,De=new WeakMap,Nn=new WeakMap,Ut=new WeakSet,Pr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),We.batch(()=>{E(this,Bt).forEach(n=>{n.onMutationUpdate(t)}),E(this,De).notify({mutation:this,type:"updated",action:t})})},Vp);function P1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nr,Tt,Yo,Gp,R1=(Gp=class extends nl{constructor(t={}){super();te(this,nr);te(this,Tt);te(this,Yo);this.config=t,K(this,nr,new Set),K(this,Tt,new Map),K(this,Yo,0)}build(t,r,n){const s=new T1({client:t,mutationCache:this,mutationId:++ha(this,Yo)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){E(this,nr).add(t);const r=_a(t);if(typeof r=="string"){const n=E(this,Tt).get(r);n?n.push(t):E(this,Tt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,nr).delete(t)){const r=_a(t);if(typeof r=="string"){const n=E(this,Tt).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&E(this,Tt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=_a(t);if(typeof r=="string"){const n=E(this,Tt).get(r),s=n==null?void 0:n.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=_a(t);if(typeof r=="string"){const s=(n=E(this,Tt).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){We.batch(()=>{E(this,nr).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,nr).clear(),E(this,Tt).clear()})}getAll(){return Array.from(E(this,nr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Mm(r,n))}findAll(t={}){return this.getAll().filter(r=>Mm(t,r))}notify(t){We.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return We.batch(()=>Promise.all(t.map(r=>r.continue().catch(Et))))}},nr=new WeakMap,Tt=new WeakMap,Yo=new WeakMap,Gp);function _a(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Wt,qp,A1=(qp=class extends nl{constructor(t={}){super();te(this,Wt);this.config=t,K(this,Wt,new Map)}build(t,r,n){const s=r.queryKey,a=r.queryHash??Bd(s,r);let i=this.get(a);return i||(i=new k1({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){E(this,Wt).has(t.queryHash)||(E(this,Wt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=E(this,Wt).get(t.queryHash);r&&(t.destroy(),r===t&&E(this,Wt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Wt).get(t)}getAll(){return[...E(this,Wt).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>_m(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>_m(t,n)):r}notify(t){We.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wt=new WeakMap,qp),ye,Fr,zr,js,Ss,$r,Cs,ks,Kp,O1=(Kp=class{constructor(e={}){te(this,ye);te(this,Fr);te(this,zr);te(this,js);te(this,Ss);te(this,$r);te(this,Cs);te(this,ks);K(this,ye,e.queryCache||new A1),K(this,Fr,e.mutationCache||new R1),K(this,zr,e.defaultOptions||{}),K(this,js,new Map),K(this,Ss,new Map),K(this,$r,0)}mount(){ha(this,$r)._++,E(this,$r)===1&&(K(this,Cs,ux.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ye).onFocus())})),K(this,ks,Pi.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ye).onOnline())})))}unmount(){var e,t;ha(this,$r)._--,E(this,$r)===0&&((e=E(this,Cs))==null||e.call(this),K(this,Cs,void 0),(t=E(this,ks))==null||t.call(this),K(this,ks,void 0))}isFetching(e){return E(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,Fr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,ye).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=E(this,ye).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(vu(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return E(this,ye).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=E(this,ye).get(n.queryHash),a=s==null?void 0:s.state.data,i=c1(t,a);if(i!==void 0)return E(this,ye).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return We.batch(()=>E(this,ye).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,ye).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=E(this,ye);We.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=E(this,ye);return We.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=We.batch(()=>E(this,ye).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Et).catch(Et)}invalidateQueries(e,t={}){return We.batch(()=>(E(this,ye).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=We.batch(()=>E(this,ye).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(Et)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Et)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=E(this,ye).build(this,t);return r.isStaleByTime(vu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Et).catch(Et)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Et).catch(Et)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Pi.isOnline()?E(this,Fr).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ye)}getMutationCache(){return E(this,Fr)}getDefaultOptions(){return E(this,zr)}setDefaultOptions(e){K(this,zr,e)}setQueryDefaults(e,t){E(this,js).set(Uo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,js).values()],r={};return t.forEach(n=>{Wo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){E(this,Ss).set(Uo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Ss).values()],r={};return t.forEach(n=>{Wo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,zr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bd(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===Ud&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,zr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,ye).clear(),E(this,Fr).clear()}},ye=new WeakMap,Fr=new WeakMap,zr=new WeakMap,js=new WeakMap,Ss=new WeakMap,$r=new WeakMap,Cs=new WeakMap,ks=new WeakMap,Kp),_1=f.createContext(void 0),M1=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(_1.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.2 * * 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 Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function I1(){return Math.random().toString(36).substr(2,8)}function Bm(e,t){return{usr:e.state,key:e.key,idx:t}}function bu(e,t,r,n){return r===void 0&&(r=null),Ho({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$s(t):t,{state:r,key:t&&t.key||n||I1()})}function Ri(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function $s(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D1(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:a=!1}=n,i=s.history,l=Wr.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Ho({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function m(){l=Wr.Pop;let w=d(),x=w==null?null:w-u;u=w,c&&c({action:l,location:v.location,delta:x})}function h(w,x){l=Wr.Push;let g=bu(v.location,w,x);u=d()+1;let y=Bm(g,u),N=v.createHref(g);try{i.pushState(y,"",N)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;s.location.assign(N)}a&&c&&c({action:l,location:v.location,delta:1})}function p(w,x){l=Wr.Replace;let g=bu(v.location,w,x);u=d();let y=Bm(g,u),N=v.createHref(g);i.replaceState(y,"",N),a&&c&&c({action:l,location:v.location,delta:0})}function b(w){let x=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof w=="string"?w:Ri(w);return g=g.replace(/ $/,"%20"),xe(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let v={get action(){return l},get location(){return e(s,i)},listen(w){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener($m,m),c=w,()=>{s.removeEventListener($m,m),c=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let x=b(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:p,go(w){return i.go(w)}};return v}var Um;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Um||(Um={}));function F1(e,t,r){return r===void 0&&(r="/"),z1(e,t,r)}function z1(e,t,r,n){let s=typeof t=="string"?$s(t):t,a=Ms(s.pathname||"/",r);if(a==null)return null;let i=vx(e);$1(i);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(xe(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=Jr([n,c.relativePath]),d=r.concat(c);a.children&&a.children.length>0&&(xe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vx(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:q1(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))s(a,i);else for(let c of yx(a.path))s(a,i,c)}),t}function yx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return s?[a,""]:[a];let i=yx(n.join("/")),l=[];return l.push(...i.map(c=>c===""?a:[a,c].join("/"))),s&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function $1(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:K1(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const B1=/^:[\w-]+$/,U1=3,W1=2,H1=1,V1=10,G1=-2,Wm=e=>e==="*";function q1(e,t){let r=e.split("/"),n=r.length;return r.some(Wm)&&(n+=G1),t&&(n+=W1),r.filter(s=>!Wm(s)).reduce((s,a)=>s+(B1.test(a)?U1:a===""?H1:V1),n)}function K1(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function Q1(e,t,r){let{routesMeta:n}=e,s={},a="/",i=[];for(let l=0;l{let{paramName:h,isOptional:p}=d;if(h==="*"){let v=l[m]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const b=l[m];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function Y1(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Wd(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 n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function X1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wd(!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 Ms(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const J1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z1=e=>J1.test(e);function eN(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?$s(e):e,a;if(r)if(Z1(r))a=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),Wd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?a=Hm(r.substring(1),"/"):a=Hm(r,t)}else a=t;return{pathname:a,search:nN(n),hash:sN(s)}}function Hm(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function oc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Hd(e,t){let r=tN(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Vd(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=$s(e):(s=Ho({},e),xe(!s.pathname||!s.pathname.includes("?"),oc("?","pathname","search",s)),xe(!s.pathname||!s.pathname.includes("#"),oc("#","pathname","hash",s)),xe(!s.search||!s.search.includes("#"),oc("#","search","hash",s)));let a=e===""||s.pathname==="",i=a?"/":s.pathname,l;if(i==null)l=r;else{let m=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),m-=1;s.pathname=h.join("/")}l=m>=0?t[m]:"/"}let c=eN(s,l),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),rN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wx=["post","put","patch","delete"];new Set(wx);const aN=["get",...wx];new Set(aN);/** * React Router v6.30.3 * * 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 Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),f.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let m=Vd(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Jr([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,i,a,e])}const cN=f.createContext(null);function uN(e){let t=f.useContext(Xt).outlet;return t&&f.createElement(cN.Provider,{value:e},t)}function dN(){let{matches:e}=f.useContext(Xt),t=e[e.length-1];return t?t.params:{}}function il(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=f.useContext(gr),{matches:s}=f.useContext(Xt),{pathname:a}=an(),i=JSON.stringify(Hd(s,n.v7_relativeSplatPath));return f.useMemo(()=>Vd(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function fN(e,t){return mN(e,t)}function mN(e,t,r,n){Bs()||xe(!1);let{navigator:s}=f.useContext(gr),{matches:a}=f.useContext(Xt),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=an(),d;if(t){var m;let w=typeof t=="string"?$s(t):t;c==="/"||(m=w.pathname)!=null&&m.startsWith(c)||xe(!1),d=w}else d=u;let h=d.pathname||"/",p=h;if(c!=="/"){let w=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=F1(e,{pathname:p}),v=vN(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Jr([c,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Jr([c,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,r,n);return t&&v?f.createElement(ol.Provider,{value:{location:Vo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Wr.Pop}},v):v}function pN(){let e=NN(),t=oN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:s},r):null,null)}const hN=f.createElement(pN,null);class gN extends f.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Xt.Provider,{value:this.props.routeContext},f.createElement(Nx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xN(e){let{routeContext:t,match:r,children:n}=e,s=f.useContext(sl);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Xt.Provider,{value:t},n)}function vN(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(s=r)==null?void 0:s.errors;if(l!=null){let d=i.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);d>=0||xe(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,m,h)=>{let p,b=!1,v=null,w=null;r&&(p=l&&m.route.id?l[m.route.id]:void 0,v=m.route.errorElement||hN,c&&(u<0&&h===0?(SN("route-fallback"),b=!0,w=null):u===h&&(b=!0,w=m.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,h+1)),g=()=>{let y;return p?y=v:b?y=w:m.route.Component?y=f.createElement(m.route.Component,null):m.route.element?y=m.route.element:y=d,f.createElement(xN,{match:m,routeContext:{outlet:d,matches:x,isDataRoute:r!=null},children:y})};return r&&(m.route.ErrorBoundary||m.route.errorElement||h===0)?f.createElement(gN,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var Sx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sx||{}),Cx=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}(Cx||{});function yN(e){let t=f.useContext(sl);return t||xe(!1),t}function wN(e){let t=f.useContext(bx);return t||xe(!1),t}function bN(e){let t=f.useContext(Xt);return t||xe(!1),t}function kx(e){let t=bN(),r=t.matches[t.matches.length-1];return r.route.id||xe(!1),r.route.id}function NN(){var e;let t=f.useContext(Nx),r=wN(),n=kx();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function jN(){let{router:e}=yN(Sx.UseNavigateStable),t=kx(Cx.UseNavigateStable),r=f.useRef(!1);return jx(()=>{r.current=!0}),f.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Vo({fromRouteId:t},a)))},[e,t])}const Vm={};function SN(e,t,r){Vm[e]||(Vm[e]=!0)}function CN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function kN(e){let{to:t,replace:r,state:n,relative:s}=e;Bs()||xe(!1);let{future:a,static:i}=f.useContext(gr),{matches:l}=f.useContext(Xt),{pathname:c}=an(),u=al(),d=Vd(t,Hd(l,a.v7_relativeSplatPath),c,s==="path"),m=JSON.stringify(d);return f.useEffect(()=>u(JSON.parse(m),{replace:r,state:n,relative:s}),[u,m,s,r,n]),null}function EN(e){return uN(e.context)}function Ke(e){xe(!1)}function TN(e){let{basename:t="/",children:r=null,location:n,navigationType:s=Wr.Pop,navigator:a,static:i=!1,future:l}=e;Bs()&&xe(!1);let c=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:c,navigator:a,static:i,future:Vo({v7_relativeSplatPath:!1},l)}),[c,l,a,i]);typeof n=="string"&&(n=$s(n));let{pathname:d="/",search:m="",hash:h="",state:p=null,key:b="default"}=n,v=f.useMemo(()=>{let w=Ms(d,c);return w==null?null:{location:{pathname:w,search:m,hash:h,state:p,key:b},navigationType:s}},[c,d,m,h,p,b,s]);return v==null?null:f.createElement(gr.Provider,{value:u},f.createElement(ol.Provider,{children:r,value:v}))}function PN(e){let{children:t,location:r}=e;return fN(ju(t),r)}new Promise(()=>{});function ju(e,t){t===void 0&&(t=[]);let r=[];return f.Children.forEach(e,(n,s)=>{if(!f.isValidElement(n))return;let a=[...t,s];if(n.type===f.Fragment){r.push.apply(r,ju(n.props.children,a));return}n.type!==Ke&&xe(!1),!n.props.index||!n.props.children||xe(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=ju(n.props.children,a)),r.push(i)}),r}/** * React Router DOM v6.30.3 * * 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 Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[s]=e[s]);return r}function RN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AN(e,t){return e.button===0&&(!t||t==="_self")&&!RN(e)}const ON=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_N=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],MN="6";try{window.__reactRouterVersion=MN}catch{}const LN=f.createContext({isTransitioning:!1}),IN="startTransition",Gm=Bi[IN];function DN(e){let{basename:t,children:r,future:n,window:s}=e,a=f.useRef();a.current==null&&(a.current=L1({window:s,v5Compat:!0}));let i=a.current,[l,c]=f.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=f.useCallback(m=>{u&&Gm?Gm(()=>c(m)):c(m)},[c,u]);return f.useLayoutEffect(()=>i.listen(d),[i,d]),f.useEffect(()=>CN(n),[n]),f.createElement(TN,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}const FN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W=f.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:a,replace:i,state:l,target:c,to:u,preventScrollReset:d,viewTransition:m}=t,h=Ex(t,ON),{basename:p}=f.useContext(gr),b,v=!1;if(typeof u=="string"&&zN.test(u)&&(b=u,FN))try{let y=new URL(window.location.href),N=u.startsWith("//")?new URL(y.protocol+u):new URL(u),j=Ms(N.pathname,p);N.origin===y.origin&&j!=null?u=j+N.search+N.hash:v=!0}catch{}let w=iN(u,{relative:s}),x=BN(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:m});function g(y){n&&n(y),y.defaultPrevented||x(y)}return f.createElement("a",Ai({},h,{href:b||w,onClick:v||a?n:g,ref:r,target:c}))}),qm=f.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:s=!1,className:a="",end:i=!1,style:l,to:c,viewTransition:u,children:d}=t,m=Ex(t,_N),h=il(c,{relative:m.relative}),p=an(),b=f.useContext(bx),{navigator:v,basename:w}=f.useContext(gr),x=b!=null&&UN(h)&&u===!0,g=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,y=p.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;s||(y=y.toLowerCase(),N=N?N.toLowerCase():null,g=g.toLowerCase()),N&&w&&(N=Ms(N,w)||N);const j=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=y===g||!i&&y.startsWith(g)&&y.charAt(j)==="/",C=N!=null&&(N===g||!i&&N.startsWith(g)&&N.charAt(g.length)==="/"),k={isActive:S,isPending:C,isTransitioning:x},_=S?n:void 0,M;typeof a=="function"?M=a(k):M=[a,S?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(k):l;return f.createElement(W,Ai({},m,{"aria-current":_,className:M,ref:r,style:H,to:c,viewTransition:u}),typeof d=="function"?d(k):d)});var Su;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Su||(Su={}));var Km;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Km||(Km={}));function $N(e){let t=f.useContext(sl);return t||xe(!1),t}function BN(e,t){let{target:r,replace:n,state:s,preventScrollReset:a,relative:i,viewTransition:l}=t===void 0?{}:t,c=al(),u=an(),d=il(e,{relative:i});return f.useCallback(m=>{if(AN(m,r)){m.preventDefault();let h=n!==void 0?n:Ri(u)===Ri(d);c(e,{replace:h,state:s,preventScrollReset:a,relative:i,viewTransition:l})}},[u,c,d,n,s,r,e,a,i,l])}function UN(e,t){t===void 0&&(t={});let r=f.useContext(LN);r==null&&xe(!1);let{basename:n}=$N(Su.useViewTransitionState),s=il(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=Ms(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Ms(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Nu(s.pathname,i)!=null||Nu(s.pathname,a)!=null}var Qm=["light","dark"],WN="(prefers-color-scheme: dark)",HN=f.createContext(void 0),VN={setTheme:e=>{},themes:[]},GN=()=>{var e;return(e=f.useContext(HN))!=null?e:VN};f.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:a,value:i,attrs:l,nonce:c})=>{let u=a==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,m=s?Qm.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,v=!1,w=!0)=>{let x=i?i[b]:b,g=v?b+"|| ''":`'${x}'`,y="";return s&&w&&!v&&Qm.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),r==="class"?v||x?y+=`c.add(${g})`:y+="null":x&&(y+=`d[s](n,${g})`),y},p=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${WN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(a,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(a,!1,!1)};}${m}}catch(t){}}();`;return f.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var qN=e=>{switch(e){case"success":return YN;case"info":return JN;case"warning":return XN;case"error":return ZN;default:return null}},KN=Array(12).fill(0),QN=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},KN.map((r,n)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),YN=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),XN=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),JN=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),ZN=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),ej=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tj=()=>{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Cu=1,rj=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:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Cu++,a=this.toasts.find(l=>l.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:r}),{...l,...e,id:s,dismissible:i,title:r}):l):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({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 r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,a,i=n.then(async c=>{if(a=["resolve",c],I.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(sj(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(a=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>i.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Cu++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Qe=new rj,nj=(e,t)=>{let r=(t==null?void 0:t.id)||Cu++;return Qe.addToast({title:e,...t,id:r}),r},sj=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",oj=nj,aj=()=>Qe.toasts,ij=()=>Qe.getActiveToasts();Object.assign(oj,{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:aj,getToasts:ij});function lj(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}lj(`: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 Ma(e){return e.label!==void 0}var cj=3,uj="32px",dj="16px",Ym=4e3,fj=356,mj=14,pj=20,hj=200;function Ct(...e){return e.filter(Boolean).join(" ")}function gj(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var xj=e=>{var t,r,n,s,a,i,l,c,u,d,m;let{invert:h,toast:p,unstyled:b,interacting:v,setHeights:w,visibleToasts:x,heights:g,index:y,toasts:N,expanded:j,removeToast:S,defaultRichColors:C,closeButton:k,style:_,cancelButtonStyle:M,actionButtonStyle:H,className:$="",descriptionClassName:D="",duration:R,position:A,gap:L,loadingIcon:q,expandByDefault:T,classNames:P,icons:B,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:z}=e,[G,Y]=I.useState(null),[ce,Me]=I.useState(null),[se,zn]=I.useState(!1),[yr,ln]=I.useState(!1),[wr,$n]=I.useState(!1),[br,fa]=I.useState(!1),[Tl,ma]=I.useState(!1),[Pl,qs]=I.useState(0),[Bn,xf]=I.useState(0),Ks=I.useRef(p.duration||R||Ym),vf=I.useRef(null),cn=I.useRef(null),j0=y===0,S0=y+1<=x,ft=p.type,Un=p.dismissible!==!1,C0=p.className||"",k0=p.descriptionClassName||"",pa=I.useMemo(()=>g.findIndex(J=>J.toastId===p.id)||0,[g,p.id]),E0=I.useMemo(()=>{var J;return(J=p.closeButton)!=null?J:k},[p.closeButton,k]),yf=I.useMemo(()=>p.duration||R||Ym,[p.duration,R]),Rl=I.useRef(0),Wn=I.useRef(0),wf=I.useRef(0),Hn=I.useRef(null),[T0,P0]=A.split("-"),bf=I.useMemo(()=>g.reduce((J,ae,me)=>me>=pa?J:J+ae.height,0),[g,pa]),Nf=tj(),R0=p.invert||h,Al=ft==="loading";Wn.current=I.useMemo(()=>pa*L+bf,[pa,bf]),I.useEffect(()=>{Ks.current=yf},[yf]),I.useEffect(()=>{zn(!0)},[]),I.useEffect(()=>{let J=cn.current;if(J){let ae=J.getBoundingClientRect().height;return xf(ae),w(me=>[{toastId:p.id,height:ae,position:p.position},...me]),()=>w(me=>me.filter(bt=>bt.toastId!==p.id))}},[w,p.id]),I.useLayoutEffect(()=>{if(!se)return;let J=cn.current,ae=J.style.height;J.style.height="auto";let me=J.getBoundingClientRect().height;J.style.height=ae,xf(me),w(bt=>bt.find(Nt=>Nt.toastId===p.id)?bt.map(Nt=>Nt.toastId===p.id?{...Nt,height:me}:Nt):[{toastId:p.id,height:me,position:p.position},...bt])},[se,p.title,p.description,w,p.id]);let Nr=I.useCallback(()=>{ln(!0),qs(Wn.current),w(J=>J.filter(ae=>ae.toastId!==p.id)),setTimeout(()=>{S(p)},hj)},[p,S,w,Wn]);I.useEffect(()=>{if(p.promise&&ft==="loading"||p.duration===1/0||p.type==="loading")return;let J;return j||v||z&&Nf?(()=>{if(wf.current{var ae;(ae=p.onAutoClose)==null||ae.call(p,p),Nr()},Ks.current)),()=>clearTimeout(J)},[j,v,p,ft,z,Nf,Nr]),I.useEffect(()=>{p.delete&&Nr()},[Nr,p.delete]);function A0(){var J,ae,me;return B!=null&&B.loading?I.createElement("div",{className:Ct(P==null?void 0:P.loader,(J=p==null?void 0:p.classNames)==null?void 0:J.loader,"sonner-loader"),"data-visible":ft==="loading"},B.loading):q?I.createElement("div",{className:Ct(P==null?void 0:P.loader,(ae=p==null?void 0:p.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":ft==="loading"},q):I.createElement(QN,{className:Ct(P==null?void 0:P.loader,(me=p==null?void 0:p.classNames)==null?void 0:me.loader),visible:ft==="loading"})}return I.createElement("li",{tabIndex:0,ref:cn,className:Ct($,C0,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[ft],(r=p==null?void 0:p.classNames)==null?void 0:r[ft]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:C,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":se,"data-promise":!!p.promise,"data-swiped":Tl,"data-removed":yr,"data-visible":S0,"data-y-position":T0,"data-x-position":P0,"data-index":y,"data-front":j0,"data-swiping":wr,"data-dismissible":Un,"data-type":ft,"data-invert":R0,"data-swipe-out":br,"data-swipe-direction":ce,"data-expanded":!!(j||T&&se),style:{"--index":y,"--toasts-before":y,"--z-index":N.length-y,"--offset":`${yr?Pl:Wn.current}px`,"--initial-height":T?"auto":`${Bn}px`,..._,...p.style},onDragEnd:()=>{$n(!1),Y(null),Hn.current=null},onPointerDown:J=>{Al||!Un||(vf.current=new Date,qs(Wn.current),J.target.setPointerCapture(J.pointerId),J.target.tagName!=="BUTTON"&&($n(!0),Hn.current={x:J.clientX,y:J.clientY}))},onPointerUp:()=>{var J,ae,me,bt;if(br||!Un)return;Hn.current=null;let Nt=Number(((J=cn.current)==null?void 0:J.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jr=Number(((ae=cn.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),un=new Date().getTime()-((me=vf.current)==null?void 0:me.getTime()),jt=G==="x"?Nt:jr,Sr=Math.abs(jt)/un;if(Math.abs(jt)>=pj||Sr>.11){qs(Wn.current),(bt=p.onDismiss)==null||bt.call(p,p),Me(G==="x"?Nt>0?"right":"left":jr>0?"down":"up"),Nr(),fa(!0),ma(!1);return}$n(!1),Y(null)},onPointerMove:J=>{var ae,me,bt,Nt;if(!Hn.current||!Un||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;let jr=J.clientY-Hn.current.y,un=J.clientX-Hn.current.x,jt=(me=e.swipeDirections)!=null?me:gj(A);!G&&(Math.abs(un)>1||Math.abs(jr)>1)&&Y(Math.abs(un)>Math.abs(jr)?"x":"y");let Sr={x:0,y:0};G==="y"?(jt.includes("top")||jt.includes("bottom"))&&(jt.includes("top")&&jr<0||jt.includes("bottom")&&jr>0)&&(Sr.y=jr):G==="x"&&(jt.includes("left")||jt.includes("right"))&&(jt.includes("left")&&un<0||jt.includes("right")&&un>0)&&(Sr.x=un),(Math.abs(Sr.x)>0||Math.abs(Sr.y)>0)&&ma(!0),(bt=cn.current)==null||bt.style.setProperty("--swipe-amount-x",`${Sr.x}px`),(Nt=cn.current)==null||Nt.style.setProperty("--swipe-amount-y",`${Sr.y}px`)}},E0&&!p.jsx?I.createElement("button",{"aria-label":Q,"data-disabled":Al,"data-close-button":!0,onClick:Al||!Un?()=>{}:()=>{var J;Nr(),(J=p.onDismiss)==null||J.call(p,p)},className:Ct(P==null?void 0:P.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(a=B==null?void 0:B.close)!=null?a:ej):null,p.jsx||f.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:I.createElement(I.Fragment,null,ft||p.icon||p.promise?I.createElement("div",{"data-icon":"",className:Ct(P==null?void 0:P.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||A0():null,p.type!=="loading"?p.icon||(B==null?void 0:B[ft])||qN(ft):null):null,I.createElement("div",{"data-content":"",className:Ct(P==null?void 0:P.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},I.createElement("div",{"data-title":"",className:Ct(P==null?void 0:P.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:Ct(D,k0,P==null?void 0:P.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),f.isValidElement(p.cancel)?p.cancel:p.cancel&&Ma(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:J=>{var ae,me;Ma(p.cancel)&&Un&&((me=(ae=p.cancel).onClick)==null||me.call(ae,J),Nr())},className:Ct(P==null?void 0:P.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,f.isValidElement(p.action)?p.action:p.action&&Ma(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:J=>{var ae,me;Ma(p.action)&&((me=(ae=p.action).onClick)==null||me.call(ae,J),!J.defaultPrevented&&Nr())},className:Ct(P==null?void 0:P.actionButton,(m=p==null?void 0:p.classNames)==null?void 0:m.actionButton)},p.action.label):null))};function Xm(){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 vj(e,t){let r={};return[e,t].forEach((n,s)=>{let a=s===1,i=a?"--mobile-offset":"--offset",l=a?dj:uj;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=l:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var yj=f.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:i,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:m,duration:h,style:p,visibleToasts:b=cj,toastOptions:v,dir:w=Xm(),gap:x=mj,loadingIcon:g,icons:y,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:j}=e,[S,C]=I.useState([]),k=I.useMemo(()=>Array.from(new Set([n].concat(S.filter(z=>z.position).map(z=>z.position)))),[S,n]),[_,M]=I.useState([]),[H,$]=I.useState(!1),[D,R]=I.useState(!1),[A,L]=I.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=I.useRef(null),T=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=I.useRef(null),B=I.useRef(!1),Q=I.useCallback(z=>{C(G=>{var Y;return(Y=G.find(ce=>ce.id===z.id))!=null&&Y.delete||Qe.dismiss(z.id),G.filter(({id:ce})=>ce!==z.id)})},[]);return I.useEffect(()=>Qe.subscribe(z=>{if(z.dismiss){C(G=>G.map(Y=>Y.id===z.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{lx.flushSync(()=>{C(G=>{let Y=G.findIndex(ce=>ce.id===z.id);return Y!==-1?[...G.slice(0,Y),{...G[Y],...z},...G.slice(Y+1)]:[z,...G]})})})}),[]),I.useEffect(()=>{if(d!=="system"){L(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:G})=>{L(G?"dark":"light")})}catch{z.addListener(({matches:Y})=>{try{L(Y?"dark":"light")}catch(ce){console.error(ce)}})}},[d]),I.useEffect(()=>{S.length<=1&&$(!1)},[S]),I.useEffect(()=>{let z=G=>{var Y,ce;s.every(Me=>G[Me]||G.code===Me)&&($(!0),(Y=q.current)==null||Y.focus()),G.code==="Escape"&&(document.activeElement===q.current||(ce=q.current)!=null&&ce.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),I.useEffect(()=>{if(q.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,B.current=!1)}},[q.current]),I.createElement("section",{ref:t,"aria-label":`${N} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((z,G)=>{var Y;let[ce,Me]=z.split("-");return S.length?I.createElement("ol",{key:z,dir:w==="auto"?Xm():w,tabIndex:-1,ref:q,className:l,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":ce,"data-lifted":H&&S.length>1&&!a,"data-x-position":Me,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${fj}px`,"--gap":`${x}px`,...p,...vj(c,u)},onBlur:se=>{B.current&&!se.currentTarget.contains(se.relatedTarget)&&(B.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||B.current||(B.current=!0,P.current=se.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{D||$(!1)},onDragEnd:()=>$(!1),onPointerDown:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},S.filter(se=>!se.position&&G===0||se.position===z).map((se,zn)=>{var yr,ln;return I.createElement(xj,{key:se.id,icons:y,index:zn,toast:se,defaultRichColors:m,duration:(yr=v==null?void 0:v.duration)!=null?yr:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:b,closeButton:(ln=v==null?void 0:v.closeButton)!=null?ln:i,interacting:D,position:z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:Q,toasts:S.filter(wr=>wr.position==se.position),heights:_.filter(wr=>wr.position==se.position),setHeights:M,expandByDefault:a,gap:x,loadingIcon:g,expanded:H,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const wj=({...e})=>{const{theme:t="system"}=GN();return o.jsx(yj,{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})},bj=1,Nj=1e6;let ac=0;function jj(){return ac=(ac+1)%Number.MAX_SAFE_INTEGER,ac.toString()}const ic=new Map,Jm=e=>{if(ic.has(e))return;const t=setTimeout(()=>{ic.delete(e),No({type:"REMOVE_TOAST",toastId:e})},Nj);ic.set(e,t)},Sj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,bj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Jm(r):e.toasts.forEach(n=>{Jm(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},ei=[];let ti={toasts:[]};function No(e){ti=Sj(ti,e),ei.forEach(t=>{t(ti)})}function Cj({...e}){const t=jj(),r=s=>No({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>No({type:"DISMISS_TOAST",toastId:t});return No({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function kj(){const[e,t]=f.useState(ti);return f.useEffect(()=>(ei.push(t),()=>{const r=ei.indexOf(t);r>-1&&ei.splice(r,1)}),[e]),{...e,toast:Cj,dismiss:r=>No({type:"DISMISS_TOAST",toastId:r})}}function re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function na(...e){return t=>{let r=!1;const n=e.map(s=>{const a=Zm(s,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s{const{children:i,...l}=a,c=f.useMemo(()=>l,Object.values(l));return o.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function s(a){const i=f.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,s]}function In(e,t=[]){let r=[];function n(a,i){const l=f.createContext(i),c=r.length;r=[...r,i];const u=m=>{var x;const{scope:h,children:p,...b}=m,v=((x=h==null?void 0:h[e])==null?void 0:x[c])||l,w=f.useMemo(()=>b,Object.values(b));return o.jsx(v.Provider,{value:w,children:p})};u.displayName=a+"Provider";function d(m,h){var v;const p=((v=h==null?void 0:h[e])==null?void 0:v[c])||l,b=f.useContext(p);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[u,d]}const s=()=>{const a=r.map(i=>f.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[n,Tj(s,...t)]}function Tj(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const i=n.reduce((l,{useScope:c,scopeName:u})=>{const m=c(a)[`__scope${u}`];return{...l,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ep(e){const t=Pj(e),r=f.forwardRef((n,s)=>{const{children:a,...i}=n,l=f.Children.toArray(a),c=l.find(Aj);if(c){const u=c.props.children,d=l.map(m=>m===c?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return o.jsx(t,{...i,ref:s,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return o.jsx(t,{...i,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}function Pj(e){const t=f.forwardRef((r,n)=>{const{children:s,...a}=r;if(f.isValidElement(s)){const i=_j(s),l=Oj(a,s.props);return s.type!==f.Fragment&&(l.ref=n?na(n,i):i),f.cloneElement(s,l)}return f.Children.count(s)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rj=Symbol("radix.slottable");function Aj(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rj}function Oj(e,t){const r={...t};for(const n in t){const s=e[n],a=t[n];/^on[A-Z]/.test(n)?s&&a?r[n]=(...l)=>{const c=a(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...a}:n==="className"&&(r[n]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function _j(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Tx(e){const t=e+"CollectionProvider",[r,n]=In(t),[s,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:w,children:x}=v,g=I.useRef(null),y=I.useRef(new Map).current;return o.jsx(s,{scope:w,itemMap:y,collectionRef:g,children:x})};i.displayName=t;const l=e+"CollectionSlot",c=ep(l),u=I.forwardRef((v,w)=>{const{scope:x,children:g}=v,y=a(l,x),N=Be(w,y.collectionRef);return o.jsx(c,{ref:N,children:g})});u.displayName=l;const d=e+"CollectionItemSlot",m="data-radix-collection-item",h=ep(d),p=I.forwardRef((v,w)=>{const{scope:x,children:g,...y}=v,N=I.useRef(null),j=Be(w,N),S=a(d,x);return I.useEffect(()=>(S.itemMap.set(N,{ref:N,...y}),()=>void S.itemMap.delete(N))),o.jsx(h,{[m]:"",ref:j,children:g})});p.displayName=d;function b(v){const w=a(e+"CollectionConsumer",v);return I.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((S,C)=>y.indexOf(S.ref.current)-y.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},b,n]}function Mj(e){const t=Lj(e),r=f.forwardRef((n,s)=>{const{children:a,...i}=n,l=f.Children.toArray(a),c=l.find(Dj);if(c){const u=c.props.children,d=l.map(m=>m===c?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return o.jsx(t,{...i,ref:s,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return o.jsx(t,{...i,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}function Lj(e){const t=f.forwardRef((r,n)=>{const{children:s,...a}=r;if(f.isValidElement(s)){const i=zj(s),l=Fj(a,s.props);return s.type!==f.Fragment&&(l.ref=n?na(n,i):i),f.cloneElement(s,l)}return f.Children.count(s)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ij=Symbol("radix.slottable");function Dj(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ij}function Fj(e,t){const r={...t};for(const n in t){const s=e[n],a=t[n];/^on[A-Z]/.test(n)?s&&a?r[n]=(...l)=>{const c=a(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...a}:n==="className"&&(r[n]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function zj(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=$j.reduce((e,t)=>{const r=Mj(`Primitive.${t}`),n=f.forwardRef((s,a)=>{const{asChild:i,...l}=s,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Px(e,t){e&&ra.flushSync(()=>e.dispatchEvent(t))}function Lt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Bj(e,t=globalThis==null?void 0:globalThis.document){const r=Lt(e);f.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Uj="DismissableLayer",ku="dismissableLayer.update",Wj="dismissableLayer.pointerDownOutside",Hj="dismissableLayer.focusOutside",tp,Rx=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ll=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(Rx),[d,m]=f.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),b=Be(t,C=>m(C)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(w),g=d?v.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,N=g>=x,j=Gj(C=>{const k=C.target,_=[...u.branches].some(M=>M.contains(k));!N||_||(s==null||s(C),i==null||i(C),C.defaultPrevented||l==null||l())},h),S=qj(C=>{const k=C.target;[...u.branches].some(M=>M.contains(k))||(a==null||a(C),i==null||i(C),C.defaultPrevented||l==null||l())},h);return Bj(C=>{g===u.layers.size-1&&(n==null||n(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(tp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),rp(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=tp)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),rp())},[d,u]),f.useEffect(()=>{const C=()=>p({});return document.addEventListener(ku,C),()=>document.removeEventListener(ku,C)},[]),o.jsx(le.div,{...c,ref:b,style:{pointerEvents:y?N?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,S.onFocusCapture),onBlurCapture:re(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,j.onPointerDownCapture)})});ll.displayName=Uj;var Vj="DismissableLayerBranch",Ax=f.forwardRef((e,t)=>{const r=f.useContext(Rx),n=f.useRef(null),s=Be(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),o.jsx(le.div,{...e,ref:s})});Ax.displayName=Vj;function Gj(e,t=globalThis==null?void 0:globalThis.document){const r=Lt(e),n=f.useRef(!1),s=f.useRef(()=>{});return f.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let c=function(){Ox(Wj,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function qj(e,t=globalThis==null?void 0:globalThis.document){const r=Lt(e),n=f.useRef(!1);return f.useEffect(()=>{const s=a=>{a.target&&!n.current&&Ox(Hj,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function rp(){const e=new CustomEvent(ku);document.dispatchEvent(e)}function Ox(e,t,r,{discrete:n}){const s=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Px(s,a):s.dispatchEvent(a)}var Kj=ll,Qj=Ax,dr=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Yj="Portal",Gd=f.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[s,a]=f.useState(!1);dr(()=>a(!0),[]);const i=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?lx.createPortal(o.jsx(le.div,{...n,ref:t}),i):null});Gd.displayName=Yj;function Xj(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Dn=e=>{const{present:t,children:r}=e,n=Jj(t),s=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=Be(n.ref,Zj(s));return typeof r=="function"||n.isPresent?f.cloneElement(s,{ref:a}):null};Dn.displayName="Presence";function Jj(e){const[t,r]=f.useState(),n=f.useRef(null),s=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Xj(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=La(n.current);a.current=l==="mounted"?u:"none"},[l]),dr(()=>{const u=n.current,d=s.current;if(d!==e){const h=a.current,p=La(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),dr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,m=p=>{const v=La(n.current).includes(CSS.escape(p.animationName));if(p.target===t&&v&&(c("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=p=>{p.target===t&&(a.current=La(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function La(e){return(e==null?void 0:e.animationName)||"none"}function Zj(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var eS=Bi[" useInsertionEffect ".trim().toString()]||dr;function sa({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,a,i]=tS({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:s;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const m=d.current;m!==l&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${l?"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=l},[l,n])}const u=f.useCallback(d=>{var m;if(l){const h=rS(d)?d(e):d;h!==e&&((m=i.current)==null||m.call(i,h))}else a(d)},[l,e,a,i]);return[c,u]}function tS({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),s=f.useRef(r),a=f.useRef(t);return eS(()=>{a.current=t},[t]),f.useEffect(()=>{var i;s.current!==r&&((i=a.current)==null||i.call(a,r),s.current=r)},[r,s]),[r,n,a]}function rS(e){return typeof e=="function"}var nS=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"}),sS="VisuallyHidden",cl=f.forwardRef((e,t)=>o.jsx(le.span,{...e,ref:t,style:{...nS,...e.style}}));cl.displayName=sS;var oS=cl,qd="ToastProvider",[Kd,aS,iS]=Tx("Toast"),[_x]=In("Toast",[iS]),[lS,ul]=_x(qd),Mx=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=e,[l,c]=f.useState(null),[u,d]=f.useState(0),m=f.useRef(!1),h=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${qd}\`. Expected non-empty \`string\`.`),o.jsx(Kd.Provider,{scope:t,children:o.jsx(lS,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:f.useCallback(()=>d(p=>p+1),[]),onToastRemove:f.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:h,children:i})})};Mx.displayName=qd;var Lx="ToastViewport",cS=["F8"],Eu="toast.viewportPause",Tu="toast.viewportResume",Ix=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=cS,label:s="Notifications ({hotkey})",...a}=e,i=ul(Lx,r),l=aS(r),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),m=f.useRef(null),h=Be(t,m,i.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;f.useEffect(()=>{const w=x=>{var y;n.length!==0&&n.every(N=>x[N]||x.code===N)&&((y=m.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),f.useEffect(()=>{const w=c.current,x=m.current;if(b&&w&&x){const g=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(Eu);x.dispatchEvent(S),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(Tu);x.dispatchEvent(S),i.isClosePausedRef.current=!1}},N=S=>{!w.contains(S.relatedTarget)&&y()},j=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",g),w.addEventListener("focusout",N),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",j),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",j),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const v=f.useCallback(({tabbingDirection:w})=>{const g=l().map(y=>{const N=y.ref.current,j=[N,...NS(N)];return w==="forwards"?j:j.reverse()});return(w==="forwards"?g.reverse():g).flat()},[l]);return f.useEffect(()=>{const w=m.current;if(w){const x=g=>{var j,S,C;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const k=document.activeElement,_=g.shiftKey;if(g.target===w&&_){(j=u.current)==null||j.focus();return}const $=v({tabbingDirection:_?"backwards":"forwards"}),D=$.findIndex(R=>R===k);lc($.slice(D+1))?g.preventDefault():_?(S=u.current)==null||S.focus():(C=d.current)==null||C.focus()}};return w.addEventListener("keydown",x),()=>w.removeEventListener("keydown",x)}},[l,v]),o.jsxs(Qj,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&o.jsx(Pu,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});lc(w)}}),o.jsx(Kd.Slot,{scope:r,children:o.jsx(le.ol,{tabIndex:-1,...a,ref:h})}),b&&o.jsx(Pu,{ref:d,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});lc(w)}})]})});Ix.displayName=Lx;var Dx="ToastFocusProxy",Pu=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,a=ul(Dx,r);return o.jsx(cl,{tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=a.viewport)!=null&&u.contains(l))&&n()}})});Pu.displayName=Dx;var oa="Toast",uS="toast.swipeStart",dS="toast.swipeMove",fS="toast.swipeCancel",mS="toast.swipeEnd",Fx=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:a,...i}=e,[l,c]=sa({prop:n,defaultProp:s??!0,onChange:a,caller:oa});return o.jsx(Dn,{present:r||l,children:o.jsx(gS,{open:l,...i,ref:t,onClose:()=>c(!1),onPause:Lt(e.onPause),onResume:Lt(e.onResume),onSwipeStart:re(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:re(e.onSwipeMove,u=>{const{x:d,y:m}=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",`${m}px`)}),onSwipeCancel:re(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:re(e.onSwipeEnd,u=>{const{x:d,y:m}=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",`${m}px`),c(!1)})})})});Fx.displayName=oa;var[pS,hS]=_x(oa,{onClose(){}}),gS=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:a,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:m,onSwipeCancel:h,onSwipeEnd:p,...b}=e,v=ul(oa,r),[w,x]=f.useState(null),g=Be(t,R=>x(R)),y=f.useRef(null),N=f.useRef(null),j=s||v.duration,S=f.useRef(0),C=f.useRef(j),k=f.useRef(0),{onToastAdd:_,onToastRemove:M}=v,H=Lt(()=>{var A;(w==null?void 0:w.contains(document.activeElement))&&((A=v.viewport)==null||A.focus()),i()}),$=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(k.current),S.current=new Date().getTime(),k.current=window.setTimeout(H,R))},[H]);f.useEffect(()=>{const R=v.viewport;if(R){const A=()=>{$(C.current),u==null||u()},L=()=>{const q=new Date().getTime()-S.current;C.current=C.current-q,window.clearTimeout(k.current),c==null||c()};return R.addEventListener(Eu,L),R.addEventListener(Tu,A),()=>{R.removeEventListener(Eu,L),R.removeEventListener(Tu,A)}}},[v.viewport,j,c,u,$]),f.useEffect(()=>{a&&!v.isClosePausedRef.current&&$(j)},[a,j,v.isClosePausedRef,$]),f.useEffect(()=>(_(),()=>M()),[_,M]);const D=f.useMemo(()=>w?Vx(w):null,[w]);return v.viewport?o.jsxs(o.Fragment,{children:[D&&o.jsx(xS,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:D}),o.jsx(pS,{scope:r,onClose:H,children:ra.createPortal(o.jsx(Kd.ItemSlot,{scope:r,children:o.jsx(Kj,{asChild:!0,onEscapeKeyDown:re(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||H(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(le.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:re(e.onKeyDown,R=>{R.key==="Escape"&&(l==null||l(R.nativeEvent),R.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:re(e.onPointerDown,R=>{R.button===0&&(y.current={x:R.clientX,y:R.clientY})}),onPointerMove:re(e.onPointerMove,R=>{if(!y.current)return;const A=R.clientX-y.current.x,L=R.clientY-y.current.y,q=!!N.current,T=["left","right"].includes(v.swipeDirection),P=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,B=T?P(0,A):0,Q=T?0:P(0,L),z=R.pointerType==="touch"?10:2,G={x:B,y:Q},Y={originalEvent:R,delta:G};q?(N.current=G,Ia(dS,m,Y,{discrete:!1})):np(G,v.swipeDirection,z)?(N.current=G,Ia(uS,d,Y,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(A)>z||Math.abs(L)>z)&&(y.current=null)}),onPointerUp:re(e.onPointerUp,R=>{const A=N.current,L=R.target;if(L.hasPointerCapture(R.pointerId)&&L.releasePointerCapture(R.pointerId),N.current=null,y.current=null,A){const q=R.currentTarget,T={originalEvent:R,delta:A};np(A,v.swipeDirection,v.swipeThreshold)?Ia(mS,p,T,{discrete:!0}):Ia(fS,h,T,{discrete:!0}),q.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),xS=e=>{const{__scopeToast:t,children:r,...n}=e,s=ul(oa,t),[a,i]=f.useState(!1),[l,c]=f.useState(!1);return wS(()=>i(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(Gd,{asChild:!0,children:o.jsx(cl,{...n,children:a&&o.jsxs(o.Fragment,{children:[s.label," ",r]})})})},vS="ToastTitle",zx=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(le.div,{...n,ref:t})});zx.displayName=vS;var yS="ToastDescription",$x=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(le.div,{...n,ref:t})});$x.displayName=yS;var Bx="ToastAction",Ux=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?o.jsx(Hx,{altText:r,asChild:!0,children:o.jsx(Qd,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Bx}\`. Expected non-empty \`string\`.`),null)});Ux.displayName=Bx;var Wx="ToastClose",Qd=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=hS(Wx,r);return o.jsx(Hx,{asChild:!0,children:o.jsx(le.button,{type:"button",...n,ref:t,onClick:re(e.onClick,s.onClose)})})});Qd.displayName=Wx;var Hx=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return o.jsx(le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Vx(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bS(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Vx(n))}}),t}function Ia(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?Px(s,a):s.dispatchEvent(a)}var np=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),a=n>s;return t==="left"||t==="right"?a&&n>r:!a&&s>r};function wS(e=()=>{}){const t=Lt(e);dr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bS(e){return e.nodeType===e.ELEMENT_NODE}function NS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var jS=Mx,Gx=Ix,qx=Fx,Kx=zx,Qx=$x,Yx=Ux,Xx=Qd;function Jx(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,op=Zx,Us=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return op(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=t,i=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],m=a==null?void 0:a[u];if(d===null)return null;const h=sp(d)||sp(m);return s[u][h]}),l=r&&Object.entries(r).reduce((u,d)=>{let[m,h]=d;return h===void 0||(u[m]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:m,className:h,...p}=d;return Object.entries(p).every(b=>{let[v,w]=b;return Array.isArray(w)?w.includes({...a,...l}[v]):{...a,...l}[v]===w})?[...u,m,h]:u},[]);return op(e,i,c,r==null?void 0:r.class,r==null?void 0:r.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 SS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ev=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).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 CS={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 kS=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:a,iconNode:i,...l},c)=>f.createElement("svg",{ref:c,...CS,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ev("lucide",s),...l},[...i.map(([u,d])=>f.createElement(u,d)),...Array.isArray(a)?a:[a]]));/** * @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 X=(e,t)=>{const r=f.forwardRef(({className:n,...s},a)=>f.createElement(kS,{ref:a,iconNode:t,className:ev(`lucide-${SS(e)}`,n),...s}));return r.displayName=`${e}`,r};/** * @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 ap=X("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @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 Rn=X("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @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 tv=X("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ES=X("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** * @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 Fn=X("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** * @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 ip=X("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @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 TS=X("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @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 He=X("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @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 rv=X("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @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 PS=X("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @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 RS=X("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @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 jo=X("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @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 Oi=X("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** * @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 Yd=X("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @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 Ru=X("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @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 Au=X("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @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 AS=X("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @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 OS=X("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** * @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 Qt=X("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @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 _S=X("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** * @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 MS=X("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @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 ze=X("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @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 LS=X("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @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 nv=X("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @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 IS=X("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 DS=X("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** * @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 dl=X("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @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 _i=X("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 FS=X("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** * @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 sv=X("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @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 zS=X("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** * @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 fl=X("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @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 $S=X("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 BS=X("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** * @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 aa=X("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @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 US=X("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);/** * @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 wt=X("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** * @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 WS=X("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @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 HS=X("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/** * @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 Xd=X("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 ov=X("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @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 VS=X("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** * @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 An=X("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @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 ia=X("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Jd="-",GS=e=>{const t=KS(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(Jd);return l[0]===""&&l.length!==1&&l.shift(),av(l,t)||qS(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&n[i]?[...c,...n[i]]:c}}},av=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?av(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Jd);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},lp=/^\[(.+)\]$/,qS=e=>{if(lp.test(e)){const t=lp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},KS=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return YS(Object.entries(e.classGroups),r).forEach(([a,i])=>{Ou(i,n,a,t)}),n},Ou=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:cp(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(QS(s)){Ou(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,i])=>{Ou(i,cp(t,a),r,n)})})},cp=(e,t)=>{let r=e;return t.split(Jd).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},QS=e=>e.isThemeGetter,YS=(e,t)=>t?e.map(([r,n])=>{const s=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[r,s]}):e,XS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return s(a,i),i},set(a,i){r.has(a)?r.set(a,i):s(a,i)}}},iv="!",JS=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],a=t.length,i=l=>{const c=[];let u=0,d=0,m;for(let w=0;wd?m-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:v}};return r?l=>r({className:l,parseClassName:i}):i},ZS=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},e2=e=>({cache:XS(e.cacheSize),parseClassName:JS(e),...GS(e)}),t2=/\s+/,r2=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(t2);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}=r(u);let b=!!p,v=n(b?h.substring(0,p):h);if(!v){if(!b){l=u+(l.length>0?" "+l:l);continue}if(v=n(h),!v){l=u+(l.length>0?" "+l:l);continue}b=!1}const w=ZS(d).join(":"),x=m?w+iv:w,g=x+v;if(a.includes(g))continue;a.push(g);const y=s(v,b);for(let N=0;N0?" "+l:l)}return l};function n2(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nm(d),e());return r=e2(u),n=r.cache.get,s=r.cache.set,a=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=r2(c,r);return s(c,d),d}return function(){return a(n2.apply(null,arguments))}}const ue=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},cv=/^\[(?:([a-z-]+):)?(.+)\]$/i,o2=/^\d+\/\d+$/,a2=new Set(["px","full","screen"]),i2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l2=/\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$/,c2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,u2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zt=e=>ms(e)||a2.has(e)||o2.test(e),kr=e=>Ws(e,"length",y2),ms=e=>!!e&&!Number.isNaN(Number(e)),cc=e=>Ws(e,"number",ms),no=e=>!!e&&Number.isInteger(Number(e)),f2=e=>e.endsWith("%")&&ms(e.slice(0,-1)),Z=e=>cv.test(e),Er=e=>i2.test(e),m2=new Set(["length","size","percentage"]),p2=e=>Ws(e,m2,uv),h2=e=>Ws(e,"position",uv),g2=new Set(["image","url"]),x2=e=>Ws(e,g2,b2),v2=e=>Ws(e,"",w2),so=()=>!0,Ws=(e,t,r)=>{const n=cv.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},y2=e=>l2.test(e)&&!c2.test(e),uv=()=>!1,w2=e=>u2.test(e),b2=e=>d2.test(e),N2=()=>{const e=ue("colors"),t=ue("spacing"),r=ue("blur"),n=ue("brightness"),s=ue("borderColor"),a=ue("borderRadius"),i=ue("borderSpacing"),l=ue("borderWidth"),c=ue("contrast"),u=ue("grayscale"),d=ue("hueRotate"),m=ue("invert"),h=ue("gap"),p=ue("gradientColorStops"),b=ue("gradientColorStopPositions"),v=ue("inset"),w=ue("margin"),x=ue("opacity"),g=ue("padding"),y=ue("saturate"),N=ue("scale"),j=ue("sepia"),S=ue("skew"),C=ue("space"),k=ue("translate"),_=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",Z,t],$=()=>[Z,t],D=()=>["",Zt,kr],R=()=>["auto",ms,Z],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",Z],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[ms,Z];return{cacheSize:500,separator:":",theme:{colors:[so],spacing:[Zt,kr],blur:["none","",Er,Z],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Er,Z],borderSpacing:$(),borderWidth:D(),contrast:Q(),grayscale:P(),hueRotate:Q(),invert:P(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[f2,kr],inset:H(),margin:H(),opacity:Q(),padding:$(),saturate:Q(),scale:Q(),sepia:P(),skew:Q(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Er]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...A(),Z]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",no,Z]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",no,Z]}],"grid-cols":[{"grid-cols":[so]}],"col-start-end":[{col:["auto",{span:["full",no,Z]},Z]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[so]}],"row-start-end":[{row:["auto",{span:[no,Z]},Z]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],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":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[Er]},Er]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Er,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cc]}],"font-family":[{font:[so]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",ms,cc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zt,kr]}],"underline-offset":[{"underline-offset":["auto",Zt,Z]}],"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",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),h2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},x2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:L()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[Zt,Z]}],"outline-w":[{outline:[Zt,kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Zt,kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Er,v2]}],"shadow-color":[{shadow:[so]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Er,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[y]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"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",Z]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[no,Z]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],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",Z]}],"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",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zt,kr,cc]}],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"]}}},j2=s2(N2);function F(...e){return j2(Zx(e))}const S2=jS,dv=f.forwardRef(({className:e,...t},r)=>o.jsx(Gx,{ref:r,className:F("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}));dv.displayName=Gx.displayName;const C2=Us("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"}}),fv=f.forwardRef(({className:e,variant:t,...r},n)=>o.jsx(qx,{ref:n,className:F(C2({variant:t}),e),...r}));fv.displayName=qx.displayName;const k2=f.forwardRef(({className:e,...t},r)=>o.jsx(Yx,{ref:r,className:F("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}));k2.displayName=Yx.displayName;const mv=f.forwardRef(({className:e,...t},r)=>o.jsx(Xx,{ref:r,className:F("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:o.jsx(An,{className:"h-4 w-4"})}));mv.displayName=Xx.displayName;const pv=f.forwardRef(({className:e,...t},r)=>o.jsx(Kx,{ref:r,className:F("text-sm font-semibold",e),...t}));pv.displayName=Kx.displayName;const hv=f.forwardRef(({className:e,...t},r)=>o.jsx(Qx,{ref:r,className:F("text-sm opacity-90",e),...t}));hv.displayName=Qx.displayName;function E2(){const{toasts:e}=kj();return o.jsxs(S2,{children:[e.map(function({id:t,title:r,description:n,action:s,...a}){return o.jsxs(fv,{...a,children:[o.jsxs("div",{className:"grid gap-1",children:[r&&o.jsx(pv,{children:r}),n&&o.jsx(hv,{children:n})]}),s,o.jsx(mv,{})]},t)}),o.jsx(dv,{})]})}var T2=Bi[" useId ".trim().toString()]||(()=>{}),P2=0;function ps(e){const[t,r]=f.useState(T2());return dr(()=>{r(n=>n??String(P2++))},[e]),t?`radix-${t}`:""}const R2=["top","right","bottom","left"],tn=Math.min,ot=Math.max,Mi=Math.round,Da=Math.floor,Yt=e=>({x:e,y:e}),A2={left:"right",right:"left",bottom:"top",top:"bottom"};function _u(e,t,r){return ot(e,tn(t,r))}function fr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Hs(e){return e.split("-")[1]}function Zd(e){return e==="x"?"y":"x"}function ef(e){return e==="y"?"height":"width"}function Gt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function tf(e){return Zd(Gt(e))}function O2(e,t,r){r===void 0&&(r=!1);const n=Hs(e),s=tf(e),a=ef(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Li(i)),[i,Li(i)]}function _2(e){const t=Li(e);return[Mu(e),t,Mu(t)]}function Mu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const up=["left","right"],dp=["right","left"],M2=["top","bottom"],L2=["bottom","top"];function I2(e,t,r){switch(e){case"top":case"bottom":return r?t?dp:up:t?up:dp;case"left":case"right":return t?M2:L2;default:return[]}}function D2(e,t,r,n){const s=Hs(e);let a=I2(mr(e),r==="start",n);return s&&(a=a.map(i=>i+"-"+s),t&&(a=a.concat(a.map(Mu)))),a}function Li(e){const t=mr(e);return A2[t]+e.slice(t.length)}function F2(e){return{top:0,right:0,bottom:0,left:0,...e}}function gv(e){return typeof e!="number"?F2(e):{top:e,right:e,bottom:e,left:e}}function Ii(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function fp(e,t,r){let{reference:n,floating:s}=e;const a=Gt(t),i=tf(t),l=ef(i),c=mr(t),u=a==="y",d=n.x+n.width/2-s.width/2,m=n.y+n.height/2-s.height/2,h=n[l]/2-s[l]/2;let p;switch(c){case"top":p={x:d,y:n.y-s.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:m};break;case"left":p={x:n.x-s.width,y:m};break;default:p={x:n.x,y:n.y}}switch(Hs(t)){case"start":p[i]-=h*(r&&u?-1:1);break;case"end":p[i]+=h*(r&&u?-1:1);break}return p}async function z2(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=fr(t,e),b=gv(p),w=l[h?m==="floating"?"reference":"floating":m],x=Ii(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(w)))==null||r?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=m==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),N=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},j=Ii(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:c}):g);return{top:(x.top-j.top+b.top)/N.y,bottom:(j.bottom-x.bottom+b.bottom)/N.y,left:(x.left-j.left+b.left)/N.x,right:(j.right-x.right+b.right)/N.x}}const $2=50,B2=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,l=i.detectOverflow?i:{...i,detectOverflow:z2},c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:m}=fp(u,n,c),h=n,p=0;const b={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=fr(e,t)||{};if(u==null)return{};const m=gv(d),h={x:r,y:n},p=tf(s),b=ef(p),v=await i.getDimensions(u),w=p==="y",x=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[p]-h[p]-a.floating[b],j=h[p]-a.reference[p],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=S?S[y]:0;(!C||!await(i.isElement==null?void 0:i.isElement(S)))&&(C=l.floating[y]||a.floating[b]);const k=N/2-j/2,_=C/2-v[b]/2-1,M=tn(m[x],_),H=tn(m[g],_),$=M,D=C-v[b]-H,R=C/2-v[b]/2+k,A=_u($,R,D),L=!c.arrow&&Hs(s)!=null&&R!==A&&a.reference[b]/2-(R<$?M:H)-v[b]/2<0,q=L?R<$?R-$:R-D:0;return{[p]:h[p]+q,data:{[p]:A,centerOffset:R-A-q,...L&&{alignmentOffset:q}},reset:L}}}),W2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...w}=fr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=mr(s),g=Gt(l),y=mr(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=h||(y||!v?[Li(l)]:_2(l)),S=b!=="none";!h&&S&&j.push(...D2(l,v,b,N));const C=[l,...j],k=await c.detectOverflow(t,w),_=[];let M=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&_.push(k[x]),m){const R=O2(s,i,N);_.push(k[R[0]],k[R[1]])}if(M=[...M,{placement:s,overflows:_}],!_.every(R=>R<=0)){var H,$;const R=(((H=a.flip)==null?void 0:H.index)||0)+1,A=C[R];if(A&&(!(m==="alignment"?g!==Gt(A):!1)||M.every(T=>Gt(T.placement)===g?T.overflows[0]>0:!0)))return{data:{index:R,overflows:M},reset:{placement:A}};let L=($=M.filter(q=>q.overflows[0]<=0).sort((q,T)=>q.overflows[1]-T.overflows[1])[0])==null?void 0:$.placement;if(!L)switch(p){case"bestFit":{var D;const q=(D=M.filter(T=>{if(S){const P=Gt(T.placement);return P===g||P==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(P=>P>0).reduce((P,B)=>P+B,0)]).sort((T,P)=>T[1]-P[1])[0])==null?void 0:D[0];q&&(L=q);break}case"initialPlacement":L=l;break}if(s!==L)return{reset:{placement:L}}}return{}}}};function mp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pp(e){return R2.some(t=>e[t]>=0)}const H2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...a}=fr(e,t);switch(s){case"referenceHidden":{const i=await n.detectOverflow(t,{...a,elementContext:"reference"}),l=mp(i,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:pp(l)}}}case"escaped":{const i=await n.detectOverflow(t,{...a,altBoundary:!0}),l=mp(i,r.floating);return{data:{escapedOffsets:l,escaped:pp(l)}}}default:return{}}}}},xv=new Set(["left","top"]);async function V2(e,t){const{placement:r,platform:n,elements:s}=e,a=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=mr(r),l=Hs(r),c=Gt(r)==="y",u=xv.has(i)?-1:1,d=a&&c?-1:1,m=fr(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof b=="number"&&(p=l==="end"?b*-1:b),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const G2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:a,placement:i,middlewareData:l}=t,c=await V2(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:i}}}}},q2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:g,y}=x;return{x:g,y}}},...u}=fr(e,t),d={x:r,y:n},m=await a.detectOverflow(t,u),h=Gt(mr(s)),p=Zd(h);let b=d[p],v=d[h];if(i){const x=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=b+m[x],N=b-m[g];b=_u(y,b,N)}if(l){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",y=v+m[x],N=v-m[g];v=_u(y,v,N)}const w=c.fn({...t,[p]:b,[h]:v});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[p]:i,[h]:l}}}}}},K2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=fr(e,t),d={x:r,y:n},m=Gt(s),h=Zd(m);let p=d[h],b=d[m];const v=fr(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const y=h==="y"?"height":"width",N=a.reference[h]-a.floating[y]+w.mainAxis,j=a.reference[h]+a.reference[y]-w.mainAxis;pj&&(p=j)}if(u){var x,g;const y=h==="y"?"width":"height",N=xv.has(mr(s)),j=a.reference[m]-a.floating[y]+(N&&((x=i.offset)==null?void 0:x[m])||0)+(N?0:w.crossAxis),S=a.reference[m]+a.reference[y]+(N?0:((g=i.offset)==null?void 0:g[m])||0)-(N?w.crossAxis:0);bS&&(b=S)}return{[h]:p,[m]:b}}}},Q2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...u}=fr(e,t),d=await i.detectOverflow(t,u),m=mr(s),h=Hs(s),p=Gt(s)==="y",{width:b,height:v}=a.floating;let w,x;m==="top"||m==="bottom"?(w=m,x=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(x=m,w=h==="end"?"top":"bottom");const g=v-d.top-d.bottom,y=b-d.left-d.right,N=tn(v-d[w],g),j=tn(b-d[x],y),S=!t.middlewareData.shift;let C=N,k=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(C=g),S&&!h){const M=ot(d.left,0),H=ot(d.right,0),$=ot(d.top,0),D=ot(d.bottom,0);p?k=b-2*(M!==0||H!==0?M+H:ot(d.left,d.right)):C=v-2*($!==0||D!==0?$+D:ot(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:C});const _=await i.getDimensions(l.floating);return b!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function ml(){return typeof window<"u"}function Vs(e){return vv(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jt(e){var t;return(t=(vv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vv(e){return ml()?e instanceof Node||e instanceof lt(e).Node:!1}function It(e){return ml()?e instanceof Element||e instanceof lt(e).Element:!1}function xr(e){return ml()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function hp(e){return!ml()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}function la(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function Y2(e){return/^(table|td|th)$/.test(Vs(e))}function pl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const X2=/transform|translate|scale|rotate|perspective|filter/,J2=/paint|layout|strict|content/,dn=e=>!!e&&e!=="none";let uc;function rf(e){const t=It(e)?Dt(e):e;return dn(t.transform)||dn(t.translate)||dn(t.scale)||dn(t.rotate)||dn(t.perspective)||!nf()&&(dn(t.backdropFilter)||dn(t.filter))||X2.test(t.willChange||"")||J2.test(t.contain||"")}function Z2(e){let t=rn(e);for(;xr(t)&&!Ls(t);){if(rf(t))return t;if(pl(t))return null;t=rn(t)}return null}function nf(){return uc==null&&(uc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),uc}function Ls(e){return/^(html|body|#document)$/.test(Vs(e))}function Dt(e){return lt(e).getComputedStyle(e)}function hl(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rn(e){if(Vs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hp(e)&&e.host||Jt(e);return hp(t)?t.host:t}function yv(e){const t=rn(e);return Ls(t)?e.ownerDocument?e.ownerDocument.body:e.body:xr(t)&&la(t)?t:yv(t)}function Go(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=yv(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),i=lt(s);if(a){const l=Lu(i);return t.concat(i,i.visualViewport||[],la(s)?s:[],l&&r?Go(l):[])}else return t.concat(s,Go(s,[],r))}function Lu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wv(e){const t=Dt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=xr(e),a=s?e.offsetWidth:r,i=s?e.offsetHeight:n,l=Mi(r)!==a||Mi(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function sf(e){return It(e)?e:e.contextElement}function hs(e){const t=sf(e);if(!xr(t))return Yt(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:a}=wv(t);let i=(a?Mi(r.width):r.width)/n,l=(a?Mi(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const eC=Yt(0);function bv(e){const t=lt(e);return!nf()||!t.visualViewport?eC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tC(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==lt(e)?!1:t}function On(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),a=sf(e);let i=Yt(1);t&&(n?It(n)&&(i=hs(n)):i=hs(e));const l=tC(a,r,n)?bv(a):Yt(0);let c=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,d=s.width/i.x,m=s.height/i.y;if(a){const h=lt(a),p=n&&It(n)?lt(n):n;let b=h,v=Lu(b);for(;v&&n&&p!==b;){const w=hs(v),x=v.getBoundingClientRect(),g=Dt(v),y=x.left+(v.clientLeft+parseFloat(g.paddingLeft))*w.x,N=x.top+(v.clientTop+parseFloat(g.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,m*=w.y,c+=y,u+=N,b=lt(v),v=Lu(b)}}return Ii({width:d,height:m,x:c,y:u})}function gl(e,t){const r=hl(e).scrollLeft;return t?t.left+r:On(Jt(e)).left+r}function Nv(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-gl(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function rC(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const a=s==="fixed",i=Jt(n),l=t?pl(t.floating):!1;if(n===i||l&&a)return r;let c={scrollLeft:0,scrollTop:0},u=Yt(1);const d=Yt(0),m=xr(n);if((m||!m&&!a)&&((Vs(n)!=="body"||la(i))&&(c=hl(n)),m)){const p=On(n);u=hs(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const h=i&&!m&&!a?Nv(i,c):Yt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-c.scrollTop*u.y+d.y+h.y}}function nC(e){return Array.from(e.getClientRects())}function sC(e){const t=Jt(e),r=hl(e),n=e.ownerDocument.body,s=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+gl(e);const l=-r.scrollTop;return Dt(n).direction==="rtl"&&(i+=ot(t.clientWidth,n.clientWidth)-s),{width:s,height:a,x:i,y:l}}const gp=25;function oC(e,t){const r=lt(e),n=Jt(e),s=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(s){a=s.width,i=s.height;const d=nf();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}const u=gl(n);if(u<=0){const d=n.ownerDocument,m=d.body,h=getComputedStyle(m),p=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-m.clientWidth-p);b<=gp&&(a-=b)}else u<=gp&&(a+=u);return{width:a,height:i,x:l,y:c}}function aC(e,t){const r=On(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,a=xr(e)?hs(e):Yt(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=s*a.x,u=n*a.y;return{width:i,height:l,x:c,y:u}}function xp(e,t,r){let n;if(t==="viewport")n=oC(e,r);else if(t==="document")n=sC(Jt(e));else if(It(t))n=aC(t,r);else{const s=bv(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ii(n)}function jv(e,t){const r=rn(e);return r===t||!It(r)||Ls(r)?!1:Dt(r).position==="fixed"||jv(r,t)}function iC(e,t){const r=t.get(e);if(r)return r;let n=Go(e,[],!1).filter(l=>It(l)&&Vs(l)!=="body"),s=null;const a=Dt(e).position==="fixed";let i=a?rn(e):e;for(;It(i)&&!Ls(i);){const l=Dt(i),c=rf(i);!c&&l.position==="fixed"&&(s=null),(a?!c&&!s:!c&&l.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||la(i)&&!c&&jv(e,i))?n=n.filter(d=>d!==i):s=l,i=rn(i)}return t.set(e,n),n}function lC(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?pl(t)?[]:iC(t,this._c):[].concat(r),n],l=xp(t,i[0],s);let c=l.top,u=l.right,d=l.bottom,m=l.left;for(let h=1;h{i(!1,1e-7)},1e3)}C===1&&!Cv(u,e.getBoundingClientRect())&&i(),N=!1}try{r=new IntersectionObserver(j,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(j,y)}r.observe(e)}return i(!0),a}function hC(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=sf(e),d=s||a?[...u?Go(u):[],...t?Go(t):[]]:[];d.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const m=u&&l?pC(u,r):null;let h=-1,p=null;i&&(p=new ResizeObserver(x=>{let[g]=x;g&&g.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),r()}),u&&!c&&p.observe(u),t&&p.observe(t));let b,v=c?On(e):null;c&&w();function w(){const x=On(e);v&&!Cv(v,x)&&r(),v=x,b=requestAnimationFrame(w)}return r(),()=>{var x;d.forEach(g=>{s&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),m==null||m(),(x=p)==null||x.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const gC=G2,xC=q2,vC=W2,yC=Q2,wC=H2,yp=U2,bC=K2,NC=(e,t,r)=>{const n=new Map,s={platform:mC,...r},a={...s.platform,_c:n};return B2(e,t,{...s,platform:a})};var jC=typeof document<"u",SC=function(){},ri=jC?f.useLayoutEffect:SC;function Di(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 r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Di(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const a=s[n];if(!(a==="_owner"&&e.$$typeof)&&!Di(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wp(e,t){const r=kv(e);return Math.round(t*r)/r}function fc(e){const t=f.useRef(e);return ri(()=>{t.current=e}),t}function CC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=f.useState(n);Di(h,n)||p(n);const[b,v]=f.useState(null),[w,x]=f.useState(null),g=f.useCallback(T=>{T!==S.current&&(S.current=T,v(T))},[]),y=f.useCallback(T=>{T!==C.current&&(C.current=T,x(T))},[]),N=a||b,j=i||w,S=f.useRef(null),C=f.useRef(null),k=f.useRef(d),_=c!=null,M=fc(c),H=fc(s),$=fc(u),D=f.useCallback(()=>{if(!S.current||!C.current)return;const T={placement:t,strategy:r,middleware:h};H.current&&(T.platform=H.current),NC(S.current,C.current,T).then(P=>{const B={...P,isPositioned:$.current!==!1};R.current&&!Di(k.current,B)&&(k.current=B,ra.flushSync(()=>{m(B)}))})},[h,t,r,H,$]);ri(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,m(T=>({...T,isPositioned:!1})))},[u]);const R=f.useRef(!1);ri(()=>(R.current=!0,()=>{R.current=!1}),[]),ri(()=>{if(N&&(S.current=N),j&&(C.current=j),N&&j){if(M.current)return M.current(N,j,D);D()}},[N,j,D,M,_]);const A=f.useMemo(()=>({reference:S,floating:C,setReference:g,setFloating:y}),[g,y]),L=f.useMemo(()=>({reference:N,floating:j}),[N,j]),q=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!L.floating)return T;const P=wp(L.floating,d.x),B=wp(L.floating,d.y);return l?{...T,transform:"translate("+P+"px, "+B+"px)",...kv(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:P,top:B}},[r,l,L.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:D,refs:A,elements:L,floatingStyles:q}),[d,D,A,L,q])}const kC=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?yp({element:n.current,padding:s}).fn(r):{}:n?yp({element:n,padding:s}).fn(r):{}}}},EC=(e,t)=>{const r=gC(e);return{name:r.name,fn:r.fn,options:[e,t]}},TC=(e,t)=>{const r=xC(e);return{name:r.name,fn:r.fn,options:[e,t]}},PC=(e,t)=>({fn:bC(e).fn,options:[e,t]}),RC=(e,t)=>{const r=vC(e);return{name:r.name,fn:r.fn,options:[e,t]}},AC=(e,t)=>{const r=yC(e);return{name:r.name,fn:r.fn,options:[e,t]}},OC=(e,t)=>{const r=wC(e);return{name:r.name,fn:r.fn,options:[e,t]}},_C=(e,t)=>{const r=kC(e);return{name:r.name,fn:r.fn,options:[e,t]}};var MC="Arrow",Ev=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...a}=e;return o.jsx(le.svg,{...a,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ev.displayName=MC;var LC=Ev;function IC(e){const[t,r]=f.useState(void 0);return dr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var of="Popper",[Tv,Pv]=In(of),[DC,Rv]=Tv(of),Av=e=>{const{__scopePopper:t,children:r}=e,[n,s]=f.useState(null);return o.jsx(DC,{scope:t,anchor:n,onAnchorChange:s,children:r})};Av.displayName=of;var Ov="PopperAnchor",_v=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,a=Rv(Ov,r),i=f.useRef(null),l=Be(t,i),c=f.useRef(null);return f.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||i.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:o.jsx(le.div,{...s,ref:l})});_v.displayName=Ov;var af="PopperContent",[FC,zC]=Tv(af),Mv=f.forwardRef((e,t)=>{var se,zn,yr,ln,wr,$n;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...v}=e,w=Rv(af,r),[x,g]=f.useState(null),y=Be(t,br=>g(br)),[N,j]=f.useState(null),S=IC(N),C=(S==null?void 0:S.width)??0,k=(S==null?void 0:S.height)??0,_=n+(a!=="center"?"-"+a:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},H=Array.isArray(u)?u:[u],$=H.length>0,D={padding:M,boundary:H.filter(BC),altBoundary:$},{refs:R,floatingStyles:A,placement:L,isPositioned:q,middlewareData:T}=CC({strategy:"fixed",placement:_,whileElementsMounted:(...br)=>hC(...br,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[EC({mainAxis:s+k,alignmentAxis:i}),c&&TC({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?PC():void 0,...D}),c&&RC({...D}),AC({...D,apply:({elements:br,rects:fa,availableWidth:Tl,availableHeight:ma})=>{const{width:Pl,height:qs}=fa.reference,Bn=br.floating.style;Bn.setProperty("--radix-popper-available-width",`${Tl}px`),Bn.setProperty("--radix-popper-available-height",`${ma}px`),Bn.setProperty("--radix-popper-anchor-width",`${Pl}px`),Bn.setProperty("--radix-popper-anchor-height",`${qs}px`)}}),N&&_C({element:N,padding:l}),UC({arrowWidth:C,arrowHeight:k}),h&&OC({strategy:"referenceHidden",...D})]}),[P,B]=Dv(L),Q=Lt(b);dr(()=>{q&&(Q==null||Q())},[q,Q]);const z=(se=T.arrow)==null?void 0:se.x,G=(zn=T.arrow)==null?void 0:zn.y,Y=((yr=T.arrow)==null?void 0:yr.centerOffset)!==0,[ce,Me]=f.useState();return dr(()=>{x&&Me(window.getComputedStyle(x).zIndex)},[x]),o.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:q?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(ln=T.transformOrigin)==null?void 0:ln.x,(wr=T.transformOrigin)==null?void 0:wr.y].join(" "),...(($n=T.hide)==null?void 0:$n.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(FC,{scope:r,placedSide:P,onArrowChange:j,arrowX:z,arrowY:G,shouldHideArrow:Y,children:o.jsx(le.div,{"data-side":P,"data-align":B,...v,ref:y,style:{...v.style,animation:q?void 0:"none"}})})})});Mv.displayName=af;var Lv="PopperArrow",$C={top:"bottom",right:"left",bottom:"top",left:"right"},Iv=f.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,a=zC(Lv,n),i=$C[a.placedSide];return o.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:o.jsx(LC,{...s,ref:r,style:{...s.style,display:"block"}})})});Iv.displayName=Lv;function BC(e){return e!==null}var UC=e=>({name:"transformOrigin",options:e,fn(t){var w,x,g;const{placement:r,rects:n,middlewareData:s}=t,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=Dv(r),m={start:"0%",center:"50%",end:"100%"}[d],h=(((x=s.arrow)==null?void 0:x.x)??0)+l/2,p=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=i?m:`${h}px`,v=`${-c}px`):u==="top"?(b=i?m:`${h}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=i?m:`${p}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=i?m:`${p}px`),{data:{x:b,y:v}}}});function Dv(e){const[t,r="center"]=e.split("-");return[t,r]}var WC=Av,HC=_v,VC=Mv,GC=Iv,qC=Symbol("radix.slottable");function KC(e){const t=({children:r})=>o.jsx(o.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=qC,t}var[xl]=In("Tooltip",[Pv]),vl=Pv(),Fv="TooltipProvider",QC=700,Iu="tooltip.open",[YC,lf]=xl(Fv),zv=e=>{const{__scopeTooltip:t,delayDuration:r=QC,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:a}=e,i=f.useRef(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(YC,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:a})};zv.displayName=Fv;var qo="Tooltip",[XC,yl]=xl(qo),$v=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=lf(qo,e.__scopeTooltip),u=vl(t),[d,m]=f.useState(null),h=ps(),p=f.useRef(0),b=i??c.disableHoverableContent,v=l??c.delayDuration,w=f.useRef(!1),[x,g]=sa({prop:n,defaultProp:s??!1,onChange:C=>{C?(c.onOpen(),document.dispatchEvent(new CustomEvent(Iu))):c.onClose(),a==null||a(C)},caller:qo}),y=f.useMemo(()=>x?w.current?"delayed-open":"instant-open":"closed",[x]),N=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w.current=!1,g(!0)},[g]),j=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g(!1)},[g]),S=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{w.current=!0,g(!0),p.current=0},v)},[v,g]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),o.jsx(WC,{...u,children:o.jsx(XC,{scope:t,contentId:h,open:x,stateAttribute:y,trigger:d,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayedRef.current?S():N()},[c.isOpenDelayedRef,S,N]),onTriggerLeave:f.useCallback(()=>{b?j():(window.clearTimeout(p.current),p.current=0)},[j,b]),onOpen:N,onClose:j,disableHoverableContent:b,children:r})})};$v.displayName=qo;var Du="TooltipTrigger",Bv=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=yl(Du,r),a=lf(Du,r),i=vl(r),l=f.useRef(null),c=Be(t,l,s.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),o.jsx(HC,{asChild:!0,...i,children:o.jsx(le.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:re(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:re(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:re(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:re(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:re(e.onBlur,s.onClose),onClick:re(e.onClick,s.onClose)})})});Bv.displayName=Du;var JC="TooltipPortal",[rR,ZC]=xl(JC,{forceMount:void 0}),Is="TooltipContent",Uv=f.forwardRef((e,t)=>{const r=ZC(Is,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...a}=e,i=yl(Is,e.__scopeTooltip);return o.jsx(Dn,{present:n||i.open,children:i.disableHoverableContent?o.jsx(Wv,{side:s,...a,ref:t}):o.jsx(ek,{side:s,...a,ref:t})})}),ek=f.forwardRef((e,t)=>{const r=yl(Is,e.__scopeTooltip),n=lf(Is,e.__scopeTooltip),s=f.useRef(null),a=Be(t,s),[i,l]=f.useState(null),{trigger:c,onClose:u}=r,d=s.current,{onPointerInTransitChange:m}=n,h=f.useCallback(()=>{l(null),m(!1)},[m]),p=f.useCallback((b,v)=>{const w=b.currentTarget,x={x:b.clientX,y:b.clientY},g=ok(x,w.getBoundingClientRect()),y=ak(x,g),N=ik(v.getBoundingClientRect()),j=ck([...y,...N]);l(j),m(!0)},[m]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&d){const b=w=>p(w,d),v=w=>p(w,c);return c.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[c,d,p,h]),f.useEffect(()=>{if(i){const b=v=>{const w=v.target,x={x:v.clientX,y:v.clientY},g=(c==null?void 0:c.contains(w))||(d==null?void 0:d.contains(w)),y=!lk(x,i);g?h():y&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,d,i,u,h]),o.jsx(Wv,{...e,ref:a})}),[tk,rk]=xl(qo,{isInside:!1}),nk=KC("TooltipContent"),Wv=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=yl(Is,r),u=vl(r),{onClose:d}=c;return f.useEffect(()=>(document.addEventListener(Iu,d),()=>document.removeEventListener(Iu,d)),[d]),f.useEffect(()=>{if(c.trigger){const m=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,d]),o.jsx(ll,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:d,children:o.jsxs(VC,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.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:[o.jsx(nk,{children:n}),o.jsx(tk,{scope:r,isInside:!0,children:o.jsx(oS,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Uv.displayName=Is;var Hv="TooltipArrow",sk=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=vl(r);return rk(Hv,r).isInside?null:o.jsx(GC,{...s,...n,ref:t})});sk.displayName=Hv;function ok(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,s,a)){case a:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ak(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ik(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function lk(e,t){const{x:r,y:n}=e;let s=!1;for(let a=0,i=t.length-1;an!=h>n&&r<(m-u)*(n-d)/(h-d)+u&&(s=!s)}return s}function ck(e){const t=e.slice();return t.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),uk(t)}function uk(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var dk=zv,fk=$v,mk=Bv,Vv=Uv;const Gv=dk,pk=fk,hk=mk,qv=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(Vv,{ref:n,sideOffset:t,className:F("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),...r}));qv.displayName=Vv.displayName;const gk="modulepreload",xk=function(e){return"/"+e},bp={},Kv=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(r.map(c=>{if(c=xk(c),c in bp)return;bp[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const m=document.createElement("link");if(m.rel=u?"stylesheet":gk,u||(m.as="script"),m.crossOrigin="",m.href=c,l&&m.setAttribute("nonce",l),document.head.appendChild(m),u)return new Promise((h,p)=>{m.addEventListener("load",h),m.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},Fu="https://chwqyyjbmfkbnhoqkizz.supabase.co",Qv="sb_publishable__7GqhFhgLeFuZXsXZ5f0NQ_fXsUnKOS";function gs(e){return e.lifecycle_state==="active"&&e.worker_bound&&e.cert_issued&&e.kv_ready}const cf="gc_session";function ca(){try{const e=localStorage.getItem(cf);return e?JSON.parse(e):null}catch{return null}}function Yv(e){localStorage.setItem(cf,JSON.stringify(e))}function uf(){localStorage.removeItem(cf)}async function vk(){const e=ca();if(!(e!=null&&e.refresh_token))return null;try{const t=await fetch(`${Fu}/auth/v1/token?grant_type=refresh_token`,{method:"POST",headers:{"Content-Type":"application/json",apikey:Qv},body:JSON.stringify({refresh_token:e.refresh_token})});if(!t.ok)return uf(),null;const r=await t.json();return Yv(r),r}catch{return null}}async function vr(e,t={}){let r=ca();const n=i=>({"Content-Type":"application/json",apikey:Qv,...t.headers,...i?{Authorization:`Bearer ${i.access_token}`}:{}});let s=await fetch(`${Fu}${e}`,{...t,headers:n(r)});if(s.status===401){const i=await vk();if(i)r=i,s=await fetch(`${Fu}${e}`,{...t,headers:n(r)});else throw uf(),window.location.href="/",new Error("Session expired — please sign in again")}if(!s.ok){const i=await s.json().catch(()=>({message:s.statusText}));throw new Error(i.error_description||i.message||s.statusText)}const a=await s.text();return a?JSON.parse(a):null}async function yk(e,t){const r=await vr("/auth/v1/token?grant_type=password",{method:"POST",body:JSON.stringify({email:e,password:t})});return Yv(r),r}async function wk(){const e=ca();e&&await vr("/auth/v1/logout",{method:"POST",headers:{Authorization:`Bearer ${e.access_token}`}}).catch(()=>{}),uf()}async function Xv(){return vr("/rest/v1/sites?select=*&order=created_at.desc",{headers:{Prefer:"return=representation"}})}async function df(e){const t=await vr(`/rest/v1/sites?id=eq.${e}&select=*&limit=1`,{headers:{Prefer:"return=representation"}});return(t==null?void 0:t[0])??null}async function bk(e,t,r){const n=ca();if(!n)throw new Error("Not authenticated");const[s]=await vr("/rest/v1/sites?select=*",{method:"POST",headers:{Prefer:"return=representation"},body:JSON.stringify({hostname:e,origin:t,seo_optimize:r,user_id:n.user.id,lifecycle_state:"pending",worker_bound:!1,cert_issued:!1,kv_ready:!1})});return s}async function Nk(e,t){const{id:r,hostname:n,origin:s,seo_optimize:a,cache_ttl:i,bot_groups:l,bot_allowlist:c}=e,{provisionViaWorker:u}=await Kv(async()=>{const{provisionViaWorker:m}=await import("./cloudflare-Cxg5ICSB.js");return{provisionViaWorker:m}},[]);console.log(`[PROVISION] Starting for ${n}`),t==null||t({step:"kv",message:"Writing routing record…"});const d=await u({hostname:n,origin:s,seo_optimize:a??!0,cache_ttl:i??3600,bot_groups:l??[],bot_allowlist:c??[]});if(console.log(`[PROVISION] Worker result for ${n}:`,d),d.error&&!d.kv_ready)throw t==null||t({step:"error",message:d.error}),new Error(d.error);d.kv_ready&&(await So(r,{kv_ready:!0,lifecycle_state:"dns_pending"}),t==null||t({step:"dns",message:d.zone_found?"Updating DNS…":"Awaiting DNS — point CNAME to proxy.getcrawled.com"})),d.worker_bound&&(await So(r,{lifecycle_state:"cert_issuing",worker_bound:!0}),t==null||t({step:"cert",message:"Verifying certificate…"})),d.cert_issued&&(await So(r,{cert_issued:!0}),t==null||t({step:"done",message:"Active — serving traffic"}))}async function jk(e){const{checkDnsStatus:t}=await Kv(async()=>{const{checkDnsStatus:n}=await import("./cloudflare-Cxg5ICSB.js");return{checkDnsStatus:n}},[]);if(!e.worker_bound){const{pointing_to_proxy:n}=await t(e.hostname);n&&await So(e.id,{lifecycle_state:"cert_issuing",worker_bound:!0})}return e.worker_bound&&!e.cert_issued&&await So(e.id,{cert_issued:!0}),await df(e.id)??e}const Sk={pending:["dns_pending"],dns_pending:["cert_issuing","failed"],cert_issuing:["active","failed"],active:[],failed:["pending"]};function Np(e,t){var r;return((r=Sk[e])==null?void 0:r.includes(t))??!1}async function So(e,t){const r=await df(e);if(!r)throw new Error(`Site ${e} not found`);const n={...t};if(t.lifecycle_state&&t.lifecycle_state!==r.lifecycle_state&&!Np(r.lifecycle_state,t.lifecycle_state))throw new Error(`Invalid lifecycle transition: ${r.lifecycle_state} → ${t.lifecycle_state}`);const s={...r,...n};if(s.worker_bound&&s.cert_issued&&s.kv_ready&&r.lifecycle_state!=="active"){if(!Np(r.lifecycle_state,"active"))throw new Error(`Cannot auto-advance to active from ${r.lifecycle_state} — complete earlier steps first`);n.lifecycle_state="active"}if((n.lifecycle_state??r.lifecycle_state)==="active"){const i=n.worker_bound??r.worker_bound,l=n.cert_issued??r.cert_issued,c=n.kv_ready??r.kv_ready;if(!i||!l||!c)throw new Error("Cannot set lifecycle_state to active: worker_bound, cert_issued, and kv_ready must all be true")}await vr(`/rest/v1/sites?id=eq.${e}`,{method:"PATCH",headers:{Prefer:"return=minimal"},body:JSON.stringify(n)})}async function Ck(e,t){await vr(`/rest/v1/sites?id=eq.${e}`,{method:"PATCH",headers:{Prefer:"return=minimal"},body:JSON.stringify({active:t})})}async function kk(e,t){await vr(`/rest/v1/sites?id=eq.${e}`,{method:"PATCH",headers:{Prefer:"return=minimal"},body:JSON.stringify(t)})}async function Jv(e){await vr(`/rest/v1/sites?id=eq.${e}`,{method:"DELETE"})}const Zv=f.createContext({user:null,loading:!0,setUser:()=>{}});function Ek({children:e}){const[t,r]=f.useState(null),[n,s]=f.useState(!0);return f.useEffect(()=>{const a=ca();a&&r(a.user),s(!1)},[]),o.jsx(Zv.Provider,{value:{user:t,loading:n,setUser:r},children:e})}function wl(){return f.useContext(Zv)}var Tk=Symbol.for("react.lazy"),Fi=Bi[" use ".trim().toString()];function Pk(e){return typeof e=="object"&&e!==null&&"then"in e}function ey(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Tk&&"_payload"in e&&Pk(e._payload)}function ff(e){const t=Rk(e),r=f.forwardRef((n,s)=>{let{children:a,...i}=n;ey(a)&&typeof Fi=="function"&&(a=Fi(a._payload));const l=f.Children.toArray(a),c=l.find(Ok);if(c){const u=c.props.children,d=l.map(m=>m===c?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return o.jsx(t,{...i,ref:s,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return o.jsx(t,{...i,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}var Gs=ff("Slot");function Rk(e){const t=f.forwardRef((r,n)=>{let{children:s,...a}=r;if(ey(s)&&typeof Fi=="function"&&(s=Fi(s._payload)),f.isValidElement(s)){const i=Mk(s),l=_k(a,s.props);return s.type!==f.Fragment&&(l.ref=n?na(n,i):i),f.cloneElement(s,l)}return f.Children.count(s)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ak=Symbol("radix.slottable");function Ok(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ak}function _k(e,t){const r={...t};for(const n in t){const s=e[n],a=t[n];/^on[A-Z]/.test(n)?s&&a?r[n]=(...l)=>{const c=a(...l);return s(...l),c}:s&&(r[n]=s):n==="style"?r[n]={...s,...a}:n==="className"&&(r[n]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function Mk(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Lk=Us("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},a)=>{const i=n?Gs:"button";return o.jsx(i,{className:F(Lk({variant:t,size:r,className:e})),ref:a,...s})});V.displayName="Button";const Ik=[{value:"20M+",label:"Pages prerendered monthly"},{value:"3,500+",label:"Sites powered worldwide"},{value:"24",label:"Bots covered out of the box"},{value:"5×",label:"Faster Google indexing"}],Dk=[{name:"Google",color:"#4285F4"},{name:"Bing",color:"#008272"},{name:"ChatGPT",color:"#10A37F"},{name:"Claude",color:"#D97706"},{name:"Perplexity",color:"#6366F1"},{name:"Gemini",color:"#EA4335"}],jp=[{n:"01",title:"Point your DNS",desc:"Add a CNAME record in your DNS provider pointing to the GetCrawled proxy. Takes under 5 minutes — no code changes, no rebuilds."},{n:"02",title:"Bots get rendered HTML",desc:"When Googlebot, GPTBot, ClaudeBot, or any enabled bot hits your domain, we intercept the request, render your SPA in headless Chrome, and serve clean HTML."},{n:"03",title:"Rank on search & get cited by AI",desc:"Your pages are now fully indexable. Google can read your content. AI engines can cite your brand. Start appearing where your customers are searching."}],Fk=[{icon:Fn,title:"Every bot that matters",desc:"24 bots covered: search engines (Google, Bing, DuckDuckGo, Yandex), AI engines (GPT, Claude, Perplexity, Gemini), and social previews (Facebook, Twitter, LinkedIn, Slack). Enable or disable each per site."},{icon:ia,title:"Edge-cached rendering",desc:"Puppeteer renders your SPA once at the Cloudflare edge. Subsequent bot hits serve cached HTML instantly — zero repeated render costs. Cache TTL is configurable per site from 15 minutes to 24 hours."},{icon:fl,title:"Free SEO tools included",desc:"Meta tag auditor, crawler simulator, robots.txt analyzer, and OG image previewer — built in to every account, no extra subscription needed."},{icon:Qt,title:"Works with any stack",desc:"React, Vue, Svelte, Angular, Next.js, Nuxt, Framer, Webflow, Lovable, Bolt, Replit — if bots see a blank page, GetCrawled fixes it. Just point your DNS."},{icon:aa,title:"SEO & AI optimization",desc:"Auto-injects canonical tags, OG tags, Twitter cards, and llms.txt. Forces Framer Motion, AOS, and GSAP animations visible for crawlers so your full content gets indexed."},{icon:wt,title:"Full dashboard control",desc:"Manage cache TTL, bot groups, individual bot toggles, SEO settings, and cache purging — all per site from one clean dashboard."}],zk=[{quote:"Our traffic from AI engines tripled in 6 weeks. ClaudeBot and GPTBot were literally seeing a blank page before.",name:"Sarah K.",role:"Founder, SaaS startup on Lovable"},{quote:"Set it up in under 10 minutes. Google Search Console went from 0 indexed pages to 47 in 2 weeks.",name:"Marcus R.",role:"SEO Lead, digital agency"},{quote:"We manage 40+ client sites built on React. GetCrawled is the only prerender tool that handles all of them without breaking social previews.",name:"Priya T.",role:"Agency owner"},{quote:"Exactly what I needed. Our SPA was invisible to Googlebot and now we're ranking on page one for our main keyword.",name:"James W.",role:"Indie hacker"}],$k=[{q:"Do I need to change any code?",a:"No. GetCrawled works entirely at the DNS layer. You point a CNAME record to our proxy and we handle the rest. Your app code stays exactly as-is."},{q:"Will it slow down my site for human visitors?",a:"No. Human visitors bypass prerendering entirely — they get your app served at full speed, exactly as before. Only bot requests go through the render pipeline."},{q:"Which frameworks are supported?",a:"Any JavaScript SPA: React, Vue, Svelte, Angular, Next.js (client-side), Nuxt, SvelteKit, Astro, Framer, Webflow, Lovable, Bolt, Replit, and more. If a bot sees a blank page, GetCrawled fixes it."},{q:"How is this different from Next.js SSR?",a:"SSR requires rebuilding your app with a specific framework and maintaining a Node.js server. GetCrawled requires zero code changes — it's a reverse proxy that prerenders on demand at the edge."},{q:"Which AI engines do you support?",a:"GPTBot (ChatGPT), ClaudeBot (Anthropic), Perplexity, Google-Extended (Gemini), YouBot, OAI-SearchBot, and more. We add new AI crawlers as they emerge."},{q:"Is there a free trial?",a:"Yes — all plans include a 7-day free trial. No credit card required to join the waitlist or start."}];function Bk(){const[e,t]=f.useState(!1),[r,n]=f.useState(null);return o.jsxs("div",{className:"relative bg-background",children:[o.jsxs("header",{className:"sticky top-0 z-30 border-b border-border bg-background/80 backdrop-blur",children:[o.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-6 py-4",children:[o.jsxs(W,{to:"/",className:"flex items-center gap-2",children:[o.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-gradient-primary shadow-elegant",children:o.jsx(wt,{className:"h-4 w-4 text-primary-foreground"})}),o.jsxs("span",{className:"font-semibold tracking-tight",children:["Get",o.jsx("span",{className:"text-primary",children:"Crawled"})]})]}),o.jsxs("nav",{className:"hidden items-center gap-6 text-sm text-muted-foreground md:flex",children:[o.jsx(W,{to:"/how-it-works",className:"hover:text-foreground transition-colors",children:"How it works"}),o.jsx(W,{to:"/features",className:"hover:text-foreground transition-colors",children:"Features"}),o.jsx(W,{to:"/blog",className:"hover:text-foreground transition-colors",children:"Blog"}),o.jsx(W,{to:"/pricing",className:"hover:text-foreground transition-colors",children:"Pricing"}),o.jsx(W,{to:"/login",className:"hover:text-foreground transition-colors",children:"Sign in"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(V,{asChild:!0,size:"sm",className:"hidden bg-gradient-primary text-primary-foreground hover:opacity-90 md:inline-flex",children:o.jsx(W,{to:"/waitlist",children:"Get early access"})}),o.jsx("button",{className:"flex h-9 w-9 items-center justify-center rounded-md border border-border md:hidden",onClick:()=>t(s=>!s),"aria-label":"Toggle menu",children:e?o.jsx(An,{className:"h-4 w-4"}):o.jsx(nv,{className:"h-4 w-4"})})]})]}),e&&o.jsxs("nav",{className:"flex flex-col gap-1 border-t border-border px-4 pb-4 pt-3 text-sm md:hidden",children:[o.jsx(W,{to:"/how-it-works",className:"rounded-md px-3 py-2 hover:bg-secondary",onClick:()=>t(!1),children:"How it works"}),o.jsx(W,{to:"/features",className:"rounded-md px-3 py-2 hover:bg-secondary",onClick:()=>t(!1),children:"Features"}),o.jsx(W,{to:"/blog",className:"rounded-md px-3 py-2 hover:bg-secondary",onClick:()=>t(!1),children:"Blog"}),o.jsx(W,{to:"/pricing",className:"rounded-md px-3 py-2 hover:bg-secondary",onClick:()=>t(!1),children:"Pricing"}),o.jsx(W,{to:"/login",className:"rounded-md px-3 py-2 hover:bg-secondary",onClick:()=>t(!1),children:"Sign in"}),o.jsx("div",{className:"mt-2 px-3",children:o.jsx(V,{asChild:!0,size:"sm",className:"w-full bg-gradient-primary text-primary-foreground hover:opacity-90",children:o.jsx(W,{to:"/waitlist",children:"Get early access"})})})]})]}),o.jsxs("section",{className:"relative overflow-hidden bg-gradient-hero px-6 pb-24 pt-20 text-center",children:[o.jsx("div",{className:"pointer-events-none absolute left-1/2 top-0 h-[500px] w-[900px] -translate-x-1/2 rounded-full bg-primary/10 blur-[120px]"}),o.jsxs("div",{className:"relative mx-auto max-w-4xl",children:[o.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-secondary/60 px-3 py-1 text-xs text-muted-foreground",children:[o.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary animate-pulse"}),"Prerendering for SPAs & JavaScript sites"]}),o.jsxs("h1",{className:"mt-6 text-balance text-4xl font-semibold tracking-tight md:text-6xl",children:["Get found by Google",o.jsx("br",{className:"hidden md:block"})," and"," ",o.jsx("span",{className:"text-gradient",children:"every AI search engine"})]}),o.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-balance text-base text-muted-foreground md:text-lg",children:"Your SPA looks great to humans — but bots see a blank page. GetCrawled pre-renders your site for Googlebot, GPTBot, ClaudeBot and 20+ more. No code changes, no rebuilds. Just point your DNS."}),o.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[o.jsx(V,{asChild:!0,size:"lg",className:"w-full bg-gradient-primary text-primary-foreground hover:opacity-90 sm:w-auto",children:o.jsxs(W,{to:"/waitlist",children:["Get early access ",o.jsx(Rn,{className:"ml-2 h-4 w-4"})]})}),o.jsx(V,{asChild:!0,size:"lg",variant:"outline",className:"w-full sm:w-auto",children:o.jsx(W,{to:"/tools",children:"Try free tools"})})]})]})]}),o.jsx("section",{className:"border-b border-border bg-secondary/30 px-6 py-12",children:o.jsx("div",{className:"mx-auto grid max-w-4xl grid-cols-2 gap-8 md:grid-cols-4",children:Ik.map(s=>o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-3xl font-bold tracking-tight text-foreground",children:s.value}),o.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.label})]},s.label))})}),o.jsxs("section",{className:"px-6 py-14 text-center",children:[o.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Pre-renders for every search & AI engine that matters"}),o.jsx("div",{className:"mx-auto mt-6 flex max-w-2xl flex-wrap items-center justify-center gap-4",children:Dk.map(s=>o.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-4 py-2 text-sm font-medium shadow-card",children:[o.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:s.color}}),s.name]},s.name))})]}),o.jsx("section",{className:"border-y border-border bg-secondary/20 px-6 py-16",children:o.jsxs("div",{className:"mx-auto max-w-5xl",children:[o.jsxs("div",{className:"mb-10 text-center",children:[o.jsx("h2",{className:"text-2xl font-semibold tracking-tight md:text-3xl",children:"Bots see a blank page. We fix that."}),o.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"The same URL — before and after GetCrawled."})]}),o.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[o.jsxs("div",{className:"rounded-xl border border-destructive/30 bg-card shadow-card",children:[o.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[o.jsx("span",{className:"h-3 w-3 rounded-full bg-red-400"}),o.jsx("span",{className:"text-xs font-mono text-muted-foreground",children:"Without GetCrawled"})]}),o.jsx("pre",{className:"overflow-x-auto p-4 text-xs text-muted-foreground leading-relaxed",children:`