var Gc=e=>{throw TypeError(e)};var wa=(e,t,n)=>t.has(e)||Gc("Cannot "+n);var T=(e,t,n)=>(wa(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?Gc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(wa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ke=(e,t,n)=>(wa(e,t,"access private method"),n);var pi=(e,t,n,r)=>({set _(o){V(e,t,o,n)},get _(){return T(e,t,r)}});function Vg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ap={exports:{}},zs={},lp={exports:{}},G={};/** * @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 ri=Symbol.for("react.element"),Hg=Symbol.for("react.portal"),Qg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Gg=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),qg=Symbol.for("react.forward_ref"),Zg=Symbol.for("react.suspense"),Jg=Symbol.for("react.memo"),ey=Symbol.for("react.lazy"),Yc=Symbol.iterator;function ty(e){return e===null||typeof e!="object"?null:(e=Yc&&e[Yc]||e["@@iterator"],typeof e=="function"?e:null)}var up={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cp=Object.assign,dp={};function to(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||up}to.prototype.isReactComponent={};to.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")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fp(){}fp.prototype=to.prototype;function wu(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||up}var Eu=wu.prototype=new fp;Eu.constructor=wu;cp(Eu,to.prototype);Eu.isPureReactComponent=!0;var Xc=Array.isArray,pp=Object.prototype.hasOwnProperty,Su={current:null},mp={key:!0,ref:!0,__self:!0,__source:!0};function hp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)pp.call(t,r)&&!mp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,z=N[D];if(0>>1;Do(He,F))Zo(ft,He)?(N[D]=ft,N[Z]=F,D=Z):(N[D]=He,N[le]=F,D=le);else if(Zo(ft,F))N[D]=ft,N[Z]=F,D=Z;else break e}}return j}function o(N,j){var F=N.sortIndex-j.sortIndex;return F!==0?F:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,p=null,c=3,x=!1,w=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=N)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function S(N){if(g=!1,y(N),!w)if(n(l)!==null)w=!0,U(C);else{var j=n(u);j!==null&&K(S,j.startTime-N)}}function C(N,j){w=!1,g&&(g=!1,h(P),P=-1),x=!0;var F=c;try{for(y(j),p=n(l);p!==null&&(!(p.expirationTime>j)||N&&!$());){var D=p.callback;if(typeof D=="function"){p.callback=null,c=p.priorityLevel;var z=D(p.expirationTime<=j);j=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(l)&&r(l),y(j)}else r(l);p=n(l)}if(p!==null)var Y=!0;else{var le=n(u);le!==null&&K(S,le.startTime-j),Y=!1}return Y}finally{p=null,c=F,x=!1}}var k=!1,b=null,P=-1,_=5,A=-1;function $(){return!(e.unstable_now()-A<_)}function I(){if(b!==null){var N=e.unstable_now();A=N;var j=!0;try{j=b(!0,N)}finally{j?H():(k=!1,b=null)}}else k=!1}var H;if(typeof m=="function")H=function(){m(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Q=M.port2;M.port1.onmessage=I,H=function(){Q.postMessage(null)}}else H=function(){E(I,0)};function U(N){b=N,k||(k=!0,H())}function K(N,j){P=E(function(){N(e.unstable_now())},j)}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(N){N.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,U(C))},e.unstable_forceFrameRate=function(N){0>N||125D?(N.sortIndex=F,t(u,N),n(l)===null&&N===n(u)&&(g?(h(P),P=-1):g=!0,K(S,F-D))):(N.sortIndex=z,t(l,N),w||x||(w=!0,U(C))),N},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(N){var j=c;return function(){var F=c;c=j;try{return N.apply(this,arguments)}finally{c=F}}}})(Ep);wp.exports=Ep;var fy=wp.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 py=v,Je=fy;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ul=Object.prototype.hasOwnProperty,my=/^[: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]*$/,Zc={},Jc={};function hy(e){return ul.call(Jc,e)?!0:ul.call(Zc,e)?!1:my.test(e)?Jc[e]=!0:(Zc[e]=!0,!1)}function vy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gy(e,t,n,r){if(t===null||typeof t>"u"||vy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Ie(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){Ne[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var bu=/[\-:]([a-z])/g;function Nu(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(bu,Nu);Ne[t]=new Ie(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(bu,Nu);Ne[t]=new Ie(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(bu,Nu);Ne[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function ku(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wo(e):""}function yy(e){switch(e.tag){case 5:return wo(e.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 2:case 15:return e=ba(e.type,!1),e;case 11:return e=ba(e.type.render,!1),e;case 1:return e=ba(e.type,!0),e;default:return""}}function pl(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 hr:return"Fragment";case mr:return"Portal";case cl:return"Profiler";case Pu:return"StrictMode";case dl:return"Suspense";case fl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bp:return(e.displayName||"Context")+".Consumer";case Cp:return(e._context.displayName||"Context")+".Provider";case Tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:pl(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return pl(e(t))}catch{}}return null}function xy(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 pl(t);case 8:return t===Pu?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wy(e){var t=kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vi(e){e._valueTracker||(e._valueTracker=wy(e))}function Pp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ss(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 ml(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function td(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Tp(e,t){t=t.checked,t!=null&&ku(e,"checked",t,!1)}function hl(e,t){Tp(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vl(e,t.type,n):t.hasOwnProperty("defaultValue")&&vl(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vl(e,t,n){(t!=="number"||ss(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function kr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={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},Ey=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){Ey.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function Ap(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function Mp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ap(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Sy=de({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 xl(e,t){if(t){if(Sy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function wl(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 El=null;function ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,Pr=null,Tr=null;function id(e){if(e=si(e)){if(typeof Sl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Vs(t),Sl(e.stateNode,e.type,t))}}function _p(e){Pr?Tr?Tr.push(e):Tr=[e]:Pr=e}function Lp(){if(Pr){var e=Pr,t=Tr;if(Tr=Pr=null,id(e),t)for(e=0;e>>=0,e===0?32:31-(My(e)/_y|0)|0}var yi=64,xi=4194304;function So(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 cs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=So(a):(i&=s,i!==0&&(r=So(i)))}else s=n&~o,s!==0?r=So(s):i!==0&&(r=So(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function Fy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ko),md=" ",hd=!1;function tm(e,t){switch(e){case"keyup":return f0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function m0(e,t){switch(e){case"compositionend":return nm(t);case"keypress":return t.which!==32?null:(hd=!0,md);case"textInput":return e=t.data,e===md&&hd?null:e;default:return null}}function h0(e,t){if(vr)return e==="compositionend"||!Fu&&tm(e,t)?(e=Jp(),Hi=Lu=xn=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xd(n)}}function sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function am(){for(var e=window,t=ss();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ss(e.document)}return t}function zu(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 b0(e){var t=am(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sm(n.ownerDocument.documentElement,n)){if(r!==null&&zu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=wd(n,i);var s=wd(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,gr=null,Tl=null,To=null,Rl=!1;function Ed(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rl||gr==null||gr!==ss(r)||(r=gr,"selectionStart"in r&&zu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),To&&Uo(To,r)||(To=r,r=ps(Tl,"onSelect"),0wr||(e.current=Ll[wr],Ll[wr]=null,wr--)}function ne(e,t){wr++,Ll[wr]=e.current,e.current=t}var On={},Oe=In(On),$e=In(!1),qn=On;function Qr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function hs(){se($e),se(Oe)}function Td(e,t,n){if(Oe.current!==On)throw Error(R(168));ne(Oe,t),ne($e,n)}function vm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,xy(e)||"Unknown",o));return de({},n,r)}function vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,qn=Oe.current,ne(Oe,e),ne($e,$e.current),!0}function Rd(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=vm(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,se($e),se(Oe),ne(Oe,e)):se($e),ne($e,n)}var Bt=null,Hs=!1,Fa=!1;function gm(e){Bt===null?Bt=[e]:Bt.push(e)}function D0(e){Hs=!0,gm(e)}function Fn(){if(!Fa&&Bt!==null){Fa=!0;var e=0,t=J;try{var n=Bt;for(J=1;e>=s,o-=s,Wt=1<<32-xt(t)+o|n<P?(_=b,b=null):_=b.sibling;var A=c(h,b,y[P],S);if(A===null){b===null&&(b=_);break}e&&b&&A.alternate===null&&t(h,b),m=i(A,m,P),k===null?C=A:k.sibling=A,k=A,b=_}if(P===y.length)return n(h,b),ae&&$n(h,P),C;if(b===null){for(;PP?(_=b,b=null):_=b.sibling;var $=c(h,b,A.value,S);if($===null){b===null&&(b=_);break}e&&b&&$.alternate===null&&t(h,b),m=i($,m,P),k===null?C=$:k.sibling=$,k=$,b=_}if(A.done)return n(h,b),ae&&$n(h,P),C;if(b===null){for(;!A.done;P++,A=y.next())A=p(h,A.value,S),A!==null&&(m=i(A,m,P),k===null?C=A:k.sibling=A,k=A);return ae&&$n(h,P),C}for(b=r(h,b);!A.done;P++,A=y.next())A=x(b,h,P,A.value,S),A!==null&&(e&&A.alternate!==null&&b.delete(A.key===null?P:A.key),m=i(A,m,P),k===null?C=A:k.sibling=A,k=A);return e&&b.forEach(function(I){return t(h,I)}),ae&&$n(h,P),C}function E(h,m,y,S){if(typeof y=="object"&&y!==null&&y.type===hr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hi:e:{for(var C=y.key,k=m;k!==null;){if(k.key===C){if(C=y.type,C===hr){if(k.tag===7){n(h,k.sibling),m=o(k,y.props.children),m.return=h,h=m;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cn&&Ad(C)===k.type){n(h,k.sibling),m=o(k,y.props),m.ref=ho(h,k,y),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}y.type===hr?(m=Xn(y.props.children,h.mode,S,y.key),m.return=h,h=m):(S=Ji(y.type,y.key,y.props,null,h.mode,S),S.ref=ho(h,m,y),S.return=h,h=S)}return s(h);case mr:e:{for(k=y.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=o(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Qa(y,h.mode,S),m.return=h,h=m}return s(h);case cn:return k=y._init,E(h,m,k(y._payload),S)}if(Eo(y))return w(h,m,y,S);if(uo(y))return g(h,m,y,S);ki(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,y),m.return=h,h=m):(n(h,m),m=Ha(y,h.mode,S),m.return=h,h=m),s(h)):n(h,m)}return E}var Gr=Em(!0),Sm=Em(!1),xs=In(null),ws=null,Cr=null,Wu=null;function Vu(){Wu=Cr=ws=null}function Hu(e){var t=xs.current;se(xs),e._currentValue=t}function Fl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jr(e,t){ws=e,Wu=Cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if(Wu!==e)if(e={context:e,memoizedValue:t,next:null},Cr===null){if(ws===null)throw Error(R(308));Cr=e,ws.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return t}var Wn=null;function Qu(e){Wn===null?Wn=[e]:Wn.push(e)}function Cm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Qu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gt(e,r)}function Gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var dn=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bm(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 Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gt(e,n)}return o=r.interleaved,o===null?(t.next=t,Qu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gt(e,n)}function Ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Au(e,n)}}function Md(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Es(e,t,n,r){var o=e.updateQueue;dn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(i!==null){var p=o.baseState;s=0,f=u=l=null,a=i;do{var c=a.lane,x=a.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,g=a;switch(c=t,x=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){p=w.call(x,p,c);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,c=typeof w=="function"?w.call(x,p,c):w,c==null)break e;p=de({},p,c);break e;case 2:dn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,c=o.effects,c===null?o.effects=[a]:c.push(a))}else x={eventTime:x,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=x,l=p):f=f.next=x,s|=c;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;c=a,a=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}while(!0);if(f===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);er|=s,e.lanes=s,e.memoizedState=p}}function _d(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$a.transition;$a.transition={};try{e(!1),t()}finally{J=n,$a.transition=r}}function Um(){return ct().memoizedState}function $0(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bm(e))Wm(t,n);else if(n=Cm(e,t,n,r),n!==null){var o=Le();wt(n,e,r,o),Vm(n,t,r)}}function U0(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bm(e))Wm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Et(a,s)){var l=t.interleaved;l===null?(o.next=o,Qu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Cm(e,t,o,r),n!==null&&(o=Le(),wt(n,e,r,o),Vm(n,t,r))}}function Bm(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Wm(e,t){Ro=Cs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Au(e,n)}}var bs={readContext:ut,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},B0={readContext:ut,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,Dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$0.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:tc,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=z0.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Rt();if(ae){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ee===null)throw Error(R(349));Jn&30||Tm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dd(jm.bind(null,r,i,e),[e]),r.flags|=2048,Yo(9,Rm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rt(),t=Ee.identifierPrefix;if(ae){var n=Vt,r=Wt;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mt]=t,e[Vo]=r,eh(e,t,!1,!1),t.stateNode=e;e:{switch(s=wl(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;oqr&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ae)return Te(t),null}else 2*he()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,vo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return ac(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function X0(e,t){switch(Uu(t),t.tag){case 1:return Ue(t.type)&&hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yr(),se($e),se(Oe),Xu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(se(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ue),null;case 4:return Yr(),null;case 10:return Hu(t.type._context),null;case 22:case 23:return ac(),null;case 24:return null;default:return null}}var Ti=!1,je=!1,q0=typeof WeakSet=="function"?WeakSet:Set,L=null;function br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Kl(e,t,n){try{n()}catch(r){me(e,t,r)}}var Kd=!1;function Z0(e,t){if(jl=ds,e=am(),zu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,f=0,p=e,c=null;t:for(;;){for(var x;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==i||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(x=p.firstChild)!==null;)c=p,p=x;for(;;){if(p===e)break t;if(c===n&&++u===o&&(a=s),c===i&&++f===r&&(l=s),(x=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ol={focusedElem:e,selectionRange:n},ds=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,E=w.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:mt(t.type,g),E);h.__reactInternalSnapshotBeforeUpdate=m}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(R(163))}}catch(S){me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=Kd,Kd=!1,w}function jo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Kl(t,n,i)}o=o.next}while(o!==r)}}function Gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rh(e){var t=e.alternate;t!==null&&(e.alternate=null,rh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Vo],delete t[_l],delete t[_0],delete t[L0])),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 oh(e){return e.tag===5||e.tag===3||e.tag===4}function Gd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oh(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 Yl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ms));else if(r!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}function Xl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}var Ce=null,gt=!1;function on(e,t,n){for(n=n.child;n!==null;)ih(e,t,n),n=n.sibling}function ih(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount($s,n)}catch{}switch(n.tag){case 5:je||br(n,t);case 6:var r=Ce,o=gt;Ce=null,on(e,t,n),Ce=r,gt=o,Ce!==null&&(gt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(gt?(e=Ce,n=n.stateNode,e.nodeType===8?Ia(e.parentNode,n):e.nodeType===1&&Ia(e,n),zo(e)):Ia(Ce,n.stateNode));break;case 4:r=Ce,o=gt,Ce=n.stateNode.containerInfo,gt=!0,on(e,t,n),Ce=r,gt=o;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Kl(n,t,s),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!je&&(br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,on(e,t,n),je=r):on(e,t,n);break;default:on(e,t,n)}}function Yd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new q0),t.forEach(function(r){var o=ax.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ex(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Ps=0,X&6)throw Error(R(331));var o=X;for(X|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lhe()-ic?Yn(e,0):oc|=n),Be(e,t)}function ph(e,t){t===0&&(e.mode&1?(t=xi,xi<<=1,!(xi&130023424)&&(xi=4194304)):t=1);var n=Le();e=Gt(e,t),e!==null&&(oi(e,t,n),Be(e,n))}function sx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ph(e,n)}function ax(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),ph(e,n)}var mh;mh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,G0(e,t,n);ze=!!(e.flags&131072)}else ze=!1,ae&&t.flags&1048576&&ym(t,ys,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var o=Qr(t,Oe.current);jr(t,n),o=Zu(null,t,r,e,o,n);var i=Ju();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(i=!0,vs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ku(t),o.updater=Ks,t.stateNode=o,o._reactInternals=t,$l(t,r,e,n),t=Wl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&$u(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ux(r),e=mt(r,e),o){case 0:t=Bl(null,t,r,e,n);break e;case 1:t=Vd(null,t,r,e,n);break e;case 11:t=Bd(null,t,r,e,n);break e;case 14:t=Wd(null,t,r,mt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Bl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Vd(e,t,r,o,n);case 3:e:{if(qm(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,bm(e,t),Es(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Xr(Error(R(423)),t),t=Hd(e,t,r,n,o);break e}else if(r!==o){o=Xr(Error(R(424)),t),t=Hd(e,t,r,n,o);break e}else for(Xe=Nn(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,yt=null,n=Sm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===o){t=Yt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Nm(t),e===null&&Il(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Al(r,o)?s=null:i!==null&&Al(r,i)&&(t.flags|=32),Xm(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Il(t),null;case 13:return Zm(e,t,n);case 4:return Gu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Bd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(xs,r._currentValue),r._currentValue=s,i!==null)if(Et(i.value,s)){if(i.children===o.children&&!$e.current){t=Yt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ht(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Fl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Fl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jr(t,n),o=ut(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),Wd(e,t,r,o,n);case 15:return Gm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Xi(e,t),t.tag=1,Ue(r)?(e=!0,vs(t)):e=!1,jr(t,n),Hm(t,r,o),$l(t,r,o,n),Wl(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Ym(e,t,n)}throw Error(R(156,t.tag))};function hh(e,t){return Bp(e,t)}function lx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,r){return new lx(e,t,n,r)}function uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ux(e){if(typeof e=="function")return uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tu)return 11;if(e===Ru)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ji(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")uc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case hr:return Xn(n.children,o,i,t);case Pu:s=8,o|=8;break;case cl:return e=at(12,n,t,o|2),e.elementType=cl,e.lanes=i,e;case dl:return e=at(13,n,t,o),e.elementType=dl,e.lanes=i,e;case fl:return e=at(19,n,t,o),e.elementType=fl,e.lanes=i,e;case Np:return Xs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cp:s=10;break e;case bp:s=9;break e;case Tu:s=11;break e;case Ru:s=14;break e;case cn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=at(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Xs(e,t,n,r){return e=at(22,e,r,t),e.elementType=Np,e.lanes=n,e.stateNode={isHidden:!1},e}function Ha(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Qa(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ka(0),this.expirationTimes=ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ka(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cc(e,t,n,r,o,i,s,a,l){return e=new cx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ku(i),e}function dx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xh)}catch(e){console.error(e)}}xh(),xp.exports=tt;var oo=xp.exports;const mc=sp(oo);var wh,rf=oo;wh=rf.createRoot,rf.hydrateRoot;const vx=1,gx=1e6;let Ka=0;function yx(){return Ka=(Ka+1)%Number.MAX_SAFE_INTEGER,Ka.toString()}const Ga=new Map,of=e=>{if(Ga.has(e))return;const t=setTimeout(()=>{Ga.delete(e),Mo({type:"REMOVE_TOAST",toastId:e})},gx);Ga.set(e,t)},xx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vx)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?of(n):e.toasts.forEach(r=>{of(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},es=[];let ts={toasts:[]};function Mo(e){ts=xx(ts,e),es.forEach(t=>{t(ts)})}function wx({...e}){const t=yx(),n=o=>Mo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Mo({type:"DISMISS_TOAST",toastId:t});return Mo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function hc(){const[e,t]=v.useState(ts);return v.useEffect(()=>(es.push(t),()=>{const n=es.indexOf(t);n>-1&&es.splice(n,1)}),[e]),{...e,toast:wx,dismiss:n=>Mo({type:"DISMISS_TOAST",toastId:n})}}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ex(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Eh(...e){return t=>e.forEach(n=>Ex(n,t))}function xe(...e){return v.useCallback(Eh(...e),e)}function vc(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];function u(p){const{scope:c,children:x,...w}=p,g=(c==null?void 0:c[e][l])||a,E=v.useMemo(()=>w,Object.values(w));return d.jsx(g.Provider,{value:E,children:x})}function f(p,c){const x=(c==null?void 0:c[e][l])||a,w=v.useContext(x);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Sx(o,...t)]}function Sx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Zr=v.forwardRef((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Cx);if(i){const s=i.props.children,a=o.map(l=>l===i?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return d.jsx(tu,{...r,ref:t,children:v.isValidElement(s)?v.cloneElement(s,void 0,a):null})}return d.jsx(tu,{...r,ref:t,children:n})});Zr.displayName="Slot";var tu=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const o=Nx(n);return v.cloneElement(n,{...bx(r,n.props),ref:t?Eh(t,o):o})}return v.Children.count(n)>1?v.Children.only(null):null});tu.displayName="SlotClone";var Sh=({children:e})=>d.jsx(d.Fragment,{children:e});function Cx(e){return v.isValidElement(e)&&e.type===Sh}function bx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kx(e){const t=e+"CollectionProvider",[n,r]=vc(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:w,children:g}=x,E=O.useRef(null),h=O.useRef(new Map).current;return d.jsx(o,{scope:w,itemMap:h,collectionRef:E,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=O.forwardRef((x,w)=>{const{scope:g,children:E}=x,h=i(a,g),m=xe(w,h.collectionRef);return d.jsx(Zr,{ref:m,children:E})});l.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=O.forwardRef((x,w)=>{const{scope:g,children:E,...h}=x,m=O.useRef(null),y=xe(w,m),S=i(u,g);return O.useEffect(()=>(S.itemMap.set(m,{ref:m,...h}),()=>void S.itemMap.delete(m))),d.jsx(Zr,{[f]:"",ref:y,children:E})});p.displayName=u;function c(x){const w=i(e+"CollectionConsumer",x);return O.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const h=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((S,C)=>h.indexOf(S.ref.current)-h.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},c,r]}var Px=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Px.reduce((e,t)=>{const n=v.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Zr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gc(e,t){e&&oo.flushSync(()=>e.dispatchEvent(t))}function We(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ch(e,t=globalThis==null?void 0:globalThis.document){const n=We(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Tx="DismissableLayer",nu="dismissableLayer.update",Rx="dismissableLayer.pointerDownOutside",jx="dismissableLayer.focusOutside",sf,bh=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nh=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(bh),[f,p]=v.useState(null),c=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=v.useState({}),w=xe(t,b=>p(b)),g=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=g.indexOf(E),m=f?g.indexOf(f):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=h,C=Ax(b=>{const P=b.target,_=[...u.branches].some(A=>A.contains(P));!S||_||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},c),k=Mx(b=>{const P=b.target;[...u.branches].some(A=>A.contains(P))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},c);return Ch(b=>{m===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},c),v.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sf=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),af(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=sf)}},[f,c,n,u]),v.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),af())},[f,u]),v.useEffect(()=>{const b=()=>x({});return document.addEventListener(nu,b),()=>document.removeEventListener(nu,b)},[]),d.jsx(fe.div,{...l,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,C.onPointerDownCapture)})});Nh.displayName=Tx;var Ox="DismissableLayerBranch",kh=v.forwardRef((e,t)=>{const n=v.useContext(bh),r=v.useRef(null),o=xe(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),d.jsx(fe.div,{...e,ref:o})});kh.displayName=Ox;function Ax(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ph(Rx,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Mx(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ph(jx,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function af(){const e=new CustomEvent(nu);document.dispatchEvent(e)}function Ph(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gc(o,i):o.dispatchEvent(i)}var _x=Nh,Lx=kh,et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Dx="Portal",Th=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);et(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?mc.createPortal(d.jsx(fe.div,{...r,ref:t}),s):null});Th.displayName=Dx;function Ix(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Rh=e=>{const{present:t,children:n}=e,r=Fx(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=xe(r.ref,zx(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Rh.displayName="Presence";function Fx(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Ix(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Oi(r.current);i.current=a==="mounted"?u:"none"},[a]),et(()=>{const u=r.current,f=o.current;if(f!==e){const c=i.current,x=Oi(u);e?l("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&c!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),et(()=>{if(t){const u=p=>{const x=Oi(r.current).includes(p.animationName);p.target===t&&x&&oo.flushSync(()=>l("ANIMATION_END"))},f=p=>{p.target===t&&(i.current=Oi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function zx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=$x({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=We(n),l=v.useCallback(u=>{if(i){const p=typeof u=="function"?u(e):u;p!==e&&a(p)}else o(u)},[i,e,o,a]);return[s,l]}function $x({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),i=We(t);return v.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Ux="VisuallyHidden",ta=v.forwardRef((e,t)=>d.jsx(fe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ta.displayName=Ux;var Bx=ta,yc="ToastProvider",[xc,Wx,Vx]=kx("Toast"),[Oh,eN]=vc("Toast",[Vx]),[Hx,na]=Oh(yc),Ah=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,f]=v.useState(0),p=v.useRef(!1),c=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yc}\`. Expected non-empty \`string\`.`),d.jsx(xc.Provider,{scope:t,children:d.jsx(Hx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>f(x=>x+1),[]),onToastRemove:v.useCallback(()=>f(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:c,children:s})})};Ah.displayName=yc;var Mh="ToastViewport",Qx=["F8"],ru="toast.viewportPause",ou="toast.viewportResume",_h=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Qx,label:o="Notifications ({hotkey})",...i}=e,s=na(Mh,n),a=Wx(n),l=v.useRef(null),u=v.useRef(null),f=v.useRef(null),p=v.useRef(null),c=xe(t,p,s.onViewportChange),x=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;v.useEffect(()=>{const E=h=>{var y;r.every(S=>h[S]||h.code===S)&&((y=p.current)==null||y.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),v.useEffect(()=>{const E=l.current,h=p.current;if(w&&E&&h){const m=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(ru);h.dispatchEvent(k),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(ou);h.dispatchEvent(k),s.isClosePausedRef.current=!1}},S=k=>{!E.contains(k.relatedTarget)&&y()},C=()=>{E.contains(document.activeElement)||y()};return E.addEventListener("focusin",m),E.addEventListener("focusout",S),E.addEventListener("pointermove",m),E.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{E.removeEventListener("focusin",m),E.removeEventListener("focusout",S),E.removeEventListener("pointermove",m),E.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[w,s.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:E})=>{const m=a().map(y=>{const S=y.ref.current,C=[S,...iw(S)];return E==="forwards"?C:C.reverse()});return(E==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const E=p.current;if(E){const h=m=>{var C,k,b;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const P=document.activeElement,_=m.shiftKey;if(m.target===E&&_){(C=u.current)==null||C.focus();return}const I=g({tabbingDirection:_?"backwards":"forwards"}),H=I.findIndex(M=>M===P);Ya(I.slice(H+1))?m.preventDefault():_?(k=u.current)==null||k.focus():(b=f.current)==null||b.focus()}};return E.addEventListener("keydown",h),()=>E.removeEventListener("keydown",h)}},[a,g]),d.jsxs(Lx,{ref:l,role:"region","aria-label":o.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&d.jsx(iu,{ref:u,onFocusFromOutsideViewport:()=>{const E=g({tabbingDirection:"forwards"});Ya(E)}}),d.jsx(xc.Slot,{scope:n,children:d.jsx(fe.ol,{tabIndex:-1,...i,ref:c})}),w&&d.jsx(iu,{ref:f,onFocusFromOutsideViewport:()=>{const E=g({tabbingDirection:"backwards"});Ya(E)}})]})});_h.displayName=Mh;var Lh="ToastFocusProxy",iu=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=na(Lh,n);return d.jsx(ta,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});iu.displayName=Lh;var ra="Toast",Kx="toast.swipeStart",Gx="toast.swipeMove",Yx="toast.swipeCancel",Xx="toast.swipeEnd",Dh=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=jh({prop:r,defaultProp:o,onChange:i});return d.jsx(Rh,{present:n||a,children:d.jsx(Jx,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:We(e.onPause),onResume:We(e.onResume),onSwipeStart:ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ee(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:ee(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});Dh.displayName=ra;var[qx,Zx]=Oh(ra,{onClose(){}}),Jx=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:c,onSwipeEnd:x,...w}=e,g=na(ra,n),[E,h]=v.useState(null),m=xe(t,M=>h(M)),y=v.useRef(null),S=v.useRef(null),C=o||g.duration,k=v.useRef(0),b=v.useRef(C),P=v.useRef(0),{onToastAdd:_,onToastRemove:A}=g,$=We(()=>{var Q;(E==null?void 0:E.contains(document.activeElement))&&((Q=g.viewport)==null||Q.focus()),s()}),I=v.useCallback(M=>{!M||M===1/0||(window.clearTimeout(P.current),k.current=new Date().getTime(),P.current=window.setTimeout($,M))},[$]);v.useEffect(()=>{const M=g.viewport;if(M){const Q=()=>{I(b.current),u==null||u()},U=()=>{const K=new Date().getTime()-k.current;b.current=b.current-K,window.clearTimeout(P.current),l==null||l()};return M.addEventListener(ru,U),M.addEventListener(ou,Q),()=>{M.removeEventListener(ru,U),M.removeEventListener(ou,Q)}}},[g.viewport,C,l,u,I]),v.useEffect(()=>{i&&!g.isClosePausedRef.current&&I(C)},[i,C,g.isClosePausedRef,I]),v.useEffect(()=>(_(),()=>A()),[_,A]);const H=v.useMemo(()=>E?Wh(E):null,[E]);return g.viewport?d.jsxs(d.Fragment,{children:[H&&d.jsx(ew,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),d.jsx(qx,{scope:n,onClose:$,children:oo.createPortal(d.jsx(xc.ItemSlot,{scope:n,children:d.jsx(_x,{asChild:!0,onEscapeKeyDown:ee(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||$(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(fe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ee(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ee(e.onPointerDown,M=>{M.button===0&&(y.current={x:M.clientX,y:M.clientY})}),onPointerMove:ee(e.onPointerMove,M=>{if(!y.current)return;const Q=M.clientX-y.current.x,U=M.clientY-y.current.y,K=!!S.current,N=["left","right"].includes(g.swipeDirection),j=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,F=N?j(0,Q):0,D=N?0:j(0,U),z=M.pointerType==="touch"?10:2,Y={x:F,y:D},le={originalEvent:M,delta:Y};K?(S.current=Y,Ai(Gx,p,le,{discrete:!1})):lf(Y,g.swipeDirection,z)?(S.current=Y,Ai(Kx,f,le,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Q)>z||Math.abs(U)>z)&&(y.current=null)}),onPointerUp:ee(e.onPointerUp,M=>{const Q=S.current,U=M.target;if(U.hasPointerCapture(M.pointerId)&&U.releasePointerCapture(M.pointerId),S.current=null,y.current=null,Q){const K=M.currentTarget,N={originalEvent:M,delta:Q};lf(Q,g.swipeDirection,g.swipeThreshold)?Ai(Xx,x,N,{discrete:!0}):Ai(Yx,c,N,{discrete:!0}),K.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),ew=e=>{const{__scopeToast:t,children:n,...r}=e,o=na(ra,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return rw(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:d.jsx(Th,{asChild:!0,children:d.jsx(ta,{...r,children:i&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},tw="ToastTitle",Ih=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(fe.div,{...r,ref:t})});Ih.displayName=tw;var nw="ToastDescription",Fh=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(fe.div,{...r,ref:t})});Fh.displayName=nw;var zh="ToastAction",$h=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(Bh,{altText:n,asChild:!0,children:d.jsx(wc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${zh}\`. Expected non-empty \`string\`.`),null)});$h.displayName=zh;var Uh="ToastClose",wc=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Zx(Uh,n);return d.jsx(Bh,{asChild:!0,children:d.jsx(fe.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,o.onClose)})})});wc.displayName=Uh;var Bh=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return d.jsx(fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Wh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ow(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Wh(r))}}),t}function Ai(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gc(o,i):o.dispatchEvent(i)}var lf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function rw(e=()=>{}){const t=We(e);et(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function ow(e){return e.nodeType===e.ELEMENT_NODE}function iw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ya(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var sw=Ah,Vh=_h,Hh=Dh,Qh=Ih,Kh=Fh,Gh=$h,Yh=wc;function Xh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,cf=qh,Zh=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return cf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=i==null?void 0:i[u];if(f===null)return null;const c=uf(f)||uf(p);return o[u][c]}),a=n&&Object.entries(n).reduce((u,f)=>{let[p,c]=f;return c===void 0||(u[p]=c),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:c,...x}=f;return Object.entries(x).every(w=>{let[g,E]=w;return Array.isArray(E)?E.includes({...i,...a}[g]):{...i,...a}[g]===E})?[...u,p,c]:u},[]);return cf(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var lw={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 uw=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...lw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Jh("lucide",o),...a},[...s.map(([u,f])=>v.createElement(u,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dt=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(uw,{ref:i,iconNode:t,className:Jh(`lucide-${aw(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ns=dt("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 cw=dt("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** * @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 Tt=dt("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** * @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 dw=dt("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** * @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 fw=dt("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @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 pw=dt("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 Ec=dt("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @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 Sc=dt("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** * @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 mw=dt("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 ev=dt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @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 hw=dt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @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 Cc=dt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bc="-",vw=e=>{const t=yw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(bc);return a[0]===""&&a.length!==1&&a.shift(),tv(a,t)||gw(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},tv=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?tv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(bc);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},df=/^\[(.+)\]$/,gw=e=>{if(df.test(e)){const t=df.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},yw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ww(Object.entries(e.classGroups),n).forEach(([i,s])=>{su(s,r,i,t)}),r},su=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ff(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(xw(o)){su(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{su(s,ff(t,i),n,r)})})},ff=(e,t)=>{let n=e;return t.split(bc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xw=e=>e.isThemeGetter,ww=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,Ew=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},nv="!",Sw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,f=0,p;for(let E=0;Ef?p-f:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:s}):s},Cw=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},bw=e=>({cache:Ew(e.cacheSize),parseClassName:Sw(e),...vw(e)}),Nw=/\s+/,kw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Nw);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:f,hasImportantModifier:p,baseClassName:c,maybePostfixModifierPosition:x}=n(u);let w=!!x,g=r(w?c.substring(0,x):c);if(!g){if(!w){a=u+(a.length>0?" "+a:a);continue}if(g=r(c),!g){a=u+(a.length>0?" "+a:a);continue}w=!1}const E=Cw(f).join(":"),h=p?E+nv:E,m=h+g;if(i.includes(m))continue;i.push(m);const y=o(g,w);for(let S=0;S0?" "+a:a)}return a};function Pw(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(f),e());return n=bw(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const f=kw(l,n);return o(l,f),f}return function(){return i(Pw.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ov=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rw=/^\d+\/\d+$/,jw=new Set(["px","full","screen"]),Ow=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Aw=/\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$/,Mw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zt=e=>Ar(e)||jw.has(e)||Rw.test(e),sn=e=>io(e,"length",Ww),Ar=e=>!!e&&!Number.isNaN(Number(e)),Xa=e=>io(e,"number",Ar),yo=e=>!!e&&Number.isInteger(Number(e)),Dw=e=>e.endsWith("%")&&Ar(e.slice(0,-1)),W=e=>ov.test(e),an=e=>Ow.test(e),Iw=new Set(["length","size","percentage"]),Fw=e=>io(e,Iw,iv),zw=e=>io(e,"position",iv),$w=new Set(["image","url"]),Uw=e=>io(e,$w,Hw),Bw=e=>io(e,"",Vw),xo=()=>!0,io=(e,t,n)=>{const r=ov.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ww=e=>Aw.test(e)&&!Mw.test(e),iv=()=>!1,Vw=e=>_w.test(e),Hw=e=>Lw.test(e),Qw=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),i=oe("borderRadius"),s=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),f=oe("hueRotate"),p=oe("invert"),c=oe("gap"),x=oe("gradientColorStops"),w=oe("gradientColorStopPositions"),g=oe("inset"),E=oe("margin"),h=oe("opacity"),m=oe("padding"),y=oe("saturate"),S=oe("scale"),C=oe("sepia"),k=oe("skew"),b=oe("space"),P=oe("translate"),_=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],I=()=>[W,t],H=()=>["",zt,sn],M=()=>["auto",Ar,W],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",W],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[Ar,W];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[zt,sn],blur:["none","",an,W],brightness:D(),borderColor:[e],borderRadius:["none","","full",an,W],borderSpacing:I(),borderWidth:H(),contrast:D(),grayscale:j(),hueRotate:D(),invert:j(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Dw,sn],inset:$(),margin:$(),opacity:D(),padding:I(),saturate:D(),scale:D(),sepia:j(),skew:D(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[an]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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:[...Q(),W]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yo,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",yo,W]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",yo,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[yo,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[an]},an]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",an,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xa]}],"font-family":[{font:[xo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ar,Xa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zt,sn]}],"underline-offset":[{"underline-offset":["auto",zt,W]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),zw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Uw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[zt,W]}],"outline-w":[{outline:[zt,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[zt,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",an,Bw]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",an,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yo,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zt,sn,Xa]}],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-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"]}}},Kw=Tw(Qw);function rt(...e){return Kw(qh(e))}const Gw=sw,sv=v.forwardRef(({className:e,...t},n)=>d.jsx(Vh,{ref:n,className:rt("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}));sv.displayName=Vh.displayName;const Yw=Zh("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"}}),av=v.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(Hh,{ref:r,className:rt(Yw({variant:t}),e),...n}));av.displayName=Hh.displayName;const Xw=v.forwardRef(({className:e,...t},n)=>d.jsx(Gh,{ref:n,className:rt("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Xw.displayName=Gh.displayName;const lv=v.forwardRef(({className:e,...t},n)=>d.jsx(Yh,{ref:n,className:rt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:d.jsx(Cc,{className:"h-4 w-4"})}));lv.displayName=Yh.displayName;const uv=v.forwardRef(({className:e,...t},n)=>d.jsx(Qh,{ref:n,className:rt("text-sm font-semibold",e),...t}));uv.displayName=Qh.displayName;const cv=v.forwardRef(({className:e,...t},n)=>d.jsx(Kh,{ref:n,className:rt("text-sm opacity-90",e),...t}));cv.displayName=Kh.displayName;function qw(){const{toasts:e}=hc();return d.jsxs(Gw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return d.jsxs(av,{...i,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(uv,{children:n}),r&&d.jsx(cv,{children:r})]}),o,d.jsx(lv,{})]},t)}),d.jsx(sv,{})]})}var pf=["light","dark"],Zw="(prefers-color-scheme: dark)",Jw=v.createContext(void 0),e1={setTheme:e=>{},themes:[]},t1=()=>{var e;return(e=v.useContext(Jw))!=null?e:e1};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?pf.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",c=(w,g=!1,E=!0)=>{let h=s?s[w]:w,m=g?w+"|| ''":`'${h}'`,y="";return o&&E&&!g&&pf.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?g||h?y+=`c.add(${m})`:y+="null":h&&(y+=`d[s](n,${m})`),y},x=e?`!function(){${f}${c(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Zw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${c("dark")}}else{${c("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}${u?"":"else{"+c(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}else{${c(i,!1,!1)};}${p}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:x}})});var n1=e=>{switch(e){case"success":return i1;case"info":return a1;case"warning":return s1;case"error":return l1;default:return null}},r1=Array(12).fill(0),o1=({visible:e})=>O.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},O.createElement("div",{className:"sonner-spinner"},r1.map((t,n)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),i1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),s1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),a1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),l1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),u1=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},au=1,c1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:au++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async i=>{if(f1(i)&&!i.ok){o=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:s,description:a})}else if(t.success!==void 0){o=!1;let s=typeof t.success=="function"?await t.success(i):t.success,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:s,description:a})}}).catch(async i=>{if(t.error!==void 0){o=!1;let s=typeof t.error=="function"?await t.error(i):t.error,a=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:s,description:a})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||au++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ke=new c1,d1=(e,t)=>{let n=(t==null?void 0:t.id)||au++;return Ke.addToast({title:e,...t,id:n}),n},f1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",p1=d1,m1=()=>Ke.toasts;Object.assign(p1,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:m1});function h1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}h1(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;background:var(--gray1);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}: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:0;right:0;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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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-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 Mi(e){return e.label!==void 0}var v1=3,g1="32px",y1=4e3,x1=356,w1=14,E1=20,S1=200;function C1(...e){return e.filter(Boolean).join(" ")}var b1=e=>{var t,n,r,o,i,s,a,l,u,f;let{invert:p,toast:c,unstyled:x,interacting:w,setHeights:g,visibleToasts:E,heights:h,index:m,toasts:y,expanded:S,removeToast:C,defaultRichColors:k,closeButton:b,style:P,cancelButtonStyle:_,actionButtonStyle:A,className:$="",descriptionClassName:I="",duration:H,position:M,gap:Q,loadingIcon:U,expandByDefault:K,classNames:N,icons:j,closeButtonAriaLabel:F="Close toast",pauseWhenPageIsHidden:D,cn:z}=e,[Y,le]=O.useState(!1),[He,Z]=O.useState(!1),[ft,Jt]=O.useState(!1),[en,tn]=O.useState(!1),[ui,sr]=O.useState(0),[zn,lo]=O.useState(0),ci=O.useRef(null),nn=O.useRef(null),va=m===0,ga=m+1<=E,Se=c.type,ar=c.dismissible!==!1,Ig=c.className||"",Fg=c.descriptionClassName||"",di=O.useMemo(()=>h.findIndex(B=>B.toastId===c.id)||0,[h,c.id]),zg=O.useMemo(()=>{var B;return(B=c.closeButton)!=null?B:b},[c.closeButton,b]),Wc=O.useMemo(()=>c.duration||H||y1,[c.duration,H]),ya=O.useRef(0),lr=O.useRef(0),Vc=O.useRef(0),ur=O.useRef(null),[Hc,$g]=M.split("-"),Qc=O.useMemo(()=>h.reduce((B,re,te)=>te>=di?B:B+re.height,0),[h,di]),Kc=u1(),Ug=c.invert||p,xa=Se==="loading";lr.current=O.useMemo(()=>di*Q+Qc,[di,Qc]),O.useEffect(()=>{le(!0)},[]),O.useLayoutEffect(()=>{if(!Y)return;let B=nn.current,re=B.style.height;B.style.height="auto";let te=B.getBoundingClientRect().height;B.style.height=re,lo(te),g(Nt=>Nt.find(kt=>kt.toastId===c.id)?Nt.map(kt=>kt.toastId===c.id?{...kt,height:te}:kt):[{toastId:c.id,height:te,position:c.position},...Nt])},[Y,c.title,c.description,g,c.id]);let rn=O.useCallback(()=>{Z(!0),sr(lr.current),g(B=>B.filter(re=>re.toastId!==c.id)),setTimeout(()=>{C(c)},S1)},[c,C,g,lr]);O.useEffect(()=>{if(c.promise&&Se==="loading"||c.duration===1/0||c.type==="loading")return;let B,re=Wc;return S||w||D&&Kc?(()=>{if(Vc.current{var te;(te=c.onAutoClose)==null||te.call(c,c),rn()},re)),()=>clearTimeout(B)},[S,w,K,c,Wc,rn,c.promise,Se,D,Kc]),O.useEffect(()=>{let B=nn.current;if(B){let re=B.getBoundingClientRect().height;return lo(re),g(te=>[{toastId:c.id,height:re,position:c.position},...te]),()=>g(te=>te.filter(Nt=>Nt.toastId!==c.id))}},[g,c.id]),O.useEffect(()=>{c.delete&&rn()},[rn,c.delete]);function Bg(){return j!=null&&j.loading?O.createElement("div",{className:"sonner-loader","data-visible":Se==="loading"},j.loading):U?O.createElement("div",{className:"sonner-loader","data-visible":Se==="loading"},U):O.createElement(o1,{visible:Se==="loading"})}return O.createElement("li",{"aria-live":c.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:nn,className:z($,Ig,N==null?void 0:N.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[Se],(n=c==null?void 0:c.classNames)==null?void 0:n[Se]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:k,"data-styled":!(c.jsx||c.unstyled||x),"data-mounted":Y,"data-promise":!!c.promise,"data-removed":He,"data-visible":ga,"data-y-position":Hc,"data-x-position":$g,"data-index":m,"data-front":va,"data-swiping":ft,"data-dismissible":ar,"data-type":Se,"data-invert":Ug,"data-swipe-out":en,"data-expanded":!!(S||K&&Y),style:{"--index":m,"--toasts-before":m,"--z-index":y.length-m,"--offset":`${He?ui:lr.current}px`,"--initial-height":K?"auto":`${zn}px`,...P,...c.style},onPointerDown:B=>{xa||!ar||(ci.current=new Date,sr(lr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(Jt(!0),ur.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,re,te,Nt;if(en||!ar)return;ur.current=null;let kt=Number(((B=nn.current)==null?void 0:B.style.getPropertyValue("--swipe-amount").replace("px",""))||0),fi=new Date().getTime()-((re=ci.current)==null?void 0:re.getTime()),Wg=Math.abs(kt)/fi;if(Math.abs(kt)>=E1||Wg>.11){sr(lr.current),(te=c.onDismiss)==null||te.call(c,c),rn(),tn(!0);return}(Nt=nn.current)==null||Nt.style.setProperty("--swipe-amount","0px"),Jt(!1)},onPointerMove:B=>{var re;if(!ur.current||!ar)return;let te=B.clientY-ur.current.y,Nt=B.clientX-ur.current.x,kt=(Hc==="top"?Math.min:Math.max)(0,te),fi=B.pointerType==="touch"?10:2;Math.abs(kt)>fi?(re=nn.current)==null||re.style.setProperty("--swipe-amount",`${te}px`):Math.abs(Nt)>fi&&(ur.current=null)}},zg&&!c.jsx?O.createElement("button",{"aria-label":F,"data-disabled":xa,"data-close-button":!0,onClick:xa||!ar?()=>{}:()=>{var B;rn(),(B=c.onDismiss)==null||B.call(c,c)},className:z(N==null?void 0:N.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,c.jsx||O.isValidElement(c.title)?c.jsx||c.title:O.createElement(O.Fragment,null,Se||c.icon||c.promise?O.createElement("div",{"data-icon":"",className:z(N==null?void 0:N.icon,(i=c==null?void 0:c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Bg():null,c.type!=="loading"?c.icon||(j==null?void 0:j[Se])||n1(Se):null):null,O.createElement("div",{"data-content":"",className:z(N==null?void 0:N.content,(s=c==null?void 0:c.classNames)==null?void 0:s.content)},O.createElement("div",{"data-title":"",className:z(N==null?void 0:N.title,(a=c==null?void 0:c.classNames)==null?void 0:a.title)},c.title),c.description?O.createElement("div",{"data-description":"",className:z(I,Fg,N==null?void 0:N.description,(l=c==null?void 0:c.classNames)==null?void 0:l.description)},c.description):null),O.isValidElement(c.cancel)?c.cancel:c.cancel&&Mi(c.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||_,onClick:B=>{var re,te;Mi(c.cancel)&&ar&&((te=(re=c.cancel).onClick)==null||te.call(re,B),rn())},className:z(N==null?void 0:N.cancelButton,(u=c==null?void 0:c.classNames)==null?void 0:u.cancelButton)},c.cancel.label):null,O.isValidElement(c.action)?c.action:c.action&&Mi(c.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||A,onClick:B=>{var re,te;Mi(c.action)&&(B.defaultPrevented||((te=(re=c.action).onClick)==null||te.call(re,B),rn()))},className:z(N==null?void 0:N.actionButton,(f=c==null?void 0:c.classNames)==null?void 0:f.actionButton)},c.action.label):null))};function mf(){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}var N1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:a,theme:l="light",richColors:u,duration:f,style:p,visibleToasts:c=v1,toastOptions:x,dir:w=mf(),gap:g=w1,loadingIcon:E,icons:h,containerAriaLabel:m="Notifications",pauseWhenPageIsHidden:y,cn:S=C1}=e,[C,k]=O.useState([]),b=O.useMemo(()=>Array.from(new Set([n].concat(C.filter(D=>D.position).map(D=>D.position)))),[C,n]),[P,_]=O.useState([]),[A,$]=O.useState(!1),[I,H]=O.useState(!1),[M,Q]=O.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=O.useRef(null),K=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=O.useRef(null),j=O.useRef(!1),F=O.useCallback(D=>{var z;(z=C.find(Y=>Y.id===D.id))!=null&&z.delete||Ke.dismiss(D.id),k(Y=>Y.filter(({id:le})=>le!==D.id))},[C]);return O.useEffect(()=>Ke.subscribe(D=>{if(D.dismiss){k(z=>z.map(Y=>Y.id===D.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{mc.flushSync(()=>{k(z=>{let Y=z.findIndex(le=>le.id===D.id);return Y!==-1?[...z.slice(0,Y),{...z[Y],...D},...z.slice(Y+1)]:[D,...z]})})})}),[]),O.useEffect(()=>{if(l!=="system"){Q(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:D})=>{Q(D?"dark":"light")})},[l]),O.useEffect(()=>{C.length<=1&&$(!1)},[C]),O.useEffect(()=>{let D=z=>{var Y,le;r.every(He=>z[He]||z.code===He)&&($(!0),(Y=U.current)==null||Y.focus()),z.code==="Escape"&&(document.activeElement===U.current||(le=U.current)!=null&&le.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[r]),O.useEffect(()=>{if(U.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,j.current=!1)}},[U.current]),C.length?O.createElement("section",{"aria-label":`${m} ${K}`,tabIndex:-1},b.map((D,z)=>{var Y;let[le,He]=D.split("-");return O.createElement("ol",{key:D,dir:w==="auto"?mf():w,tabIndex:-1,ref:U,className:s,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":le,"data-x-position":He,style:{"--front-toast-height":`${((Y=P[0])==null?void 0:Y.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||g1,"--width":`${x1}px`,"--gap":`${g}px`,...p},onBlur:Z=>{j.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(j.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||j.current||(j.current=!0,N.current=Z.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{I||$(!1)},onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},C.filter(Z=>!Z.position&&z===0||Z.position===D).map((Z,ft)=>{var Jt,en;return O.createElement(b1,{key:Z.id,icons:h,index:ft,toast:Z,defaultRichColors:u,duration:(Jt=x==null?void 0:x.duration)!=null?Jt:f,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:t,visibleToasts:c,closeButton:(en=x==null?void 0:x.closeButton)!=null?en:i,interacting:I,position:D,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:F,toasts:C.filter(tn=>tn.position==Z.position),heights:P.filter(tn=>tn.position==Z.position),setHeights:_,expandByDefault:o,gap:g,loadingIcon:E,expanded:A,pauseWhenPageIsHidden:y,cn:S})}))})):null};const k1=({...e})=>{const{theme:t="system"}=t1();return d.jsx(N1,{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})};function P1(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=p=>{var h;const{scope:c,children:x,...w}=p,g=((h=c==null?void 0:c[e])==null?void 0:h[l])||a,E=v.useMemo(()=>w,Object.values(w));return d.jsx(g.Provider,{value:E,children:x})};u.displayName=i+"Provider";function f(p,c){var g;const x=((g=c==null?void 0:c[e])==null?void 0:g[l])||a,w=v.useContext(x);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,T1(o,...t)]}function T1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var R1="DismissableLayer",lu="dismissableLayer.update",j1="dismissableLayer.pointerDownOutside",O1="dismissableLayer.focusOutside",hf,dv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nc=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(dv),[f,p]=v.useState(null),c=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=v.useState({}),w=xe(t,b=>p(b)),g=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=g.indexOf(E),m=f?g.indexOf(f):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=h,C=_1(b=>{const P=b.target,_=[...u.branches].some(A=>A.contains(P));!S||_||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},c),k=L1(b=>{const P=b.target;[...u.branches].some(A=>A.contains(P))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},c);return Ch(b=>{m===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},c),v.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hf=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=hf)}},[f,c,n,u]),v.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),vf())},[f,u]),v.useEffect(()=>{const b=()=>x({});return document.addEventListener(lu,b),()=>document.removeEventListener(lu,b)},[]),d.jsx(fe.div,{...l,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,C.onPointerDownCapture)})});Nc.displayName=R1;var A1="DismissableLayerBranch",M1=v.forwardRef((e,t)=>{const n=v.useContext(dv),r=v.useRef(null),o=xe(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),d.jsx(fe.div,{...e,ref:o})});M1.displayName=A1;function _1(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){fv(j1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L1(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&fv(O1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vf(){const e=new CustomEvent(lu);document.dispatchEvent(e)}function fv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gc(o,i):o.dispatchEvent(i)}var D1=gp.useId||(()=>{}),I1=0;function qa(e){const[t,n]=v.useState(D1());return et(()=>{e||n(r=>r??String(I1++))},[e]),e||(t?`radix-${t}`:"")}const F1=["top","right","bottom","left"],An=Math.min,Ye=Math.max,js=Math.round,_i=Math.floor,Mn=e=>({x:e,y:e}),z1={left:"right",right:"left",bottom:"top",top:"bottom"},$1={start:"end",end:"start"};function uu(e,t,n){return Ye(e,An(t,n))}function Xt(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function kc(e){return e==="x"?"y":"x"}function Pc(e){return e==="y"?"height":"width"}function _n(e){return["top","bottom"].includes(qt(e))?"y":"x"}function Tc(e){return kc(_n(e))}function U1(e,t,n){n===void 0&&(n=!1);const r=so(e),o=Tc(e),i=Pc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Os(s)),[s,Os(s)]}function B1(e){const t=Os(e);return[cu(e),t,cu(t)]}function cu(e){return e.replace(/start|end/g,t=>$1[t])}function W1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function V1(e,t,n,r){const o=so(e);let i=W1(qt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(cu)))),i}function Os(e){return e.replace(/left|right|bottom|top/g,t=>z1[t])}function H1(e){return{top:0,right:0,bottom:0,left:0,...e}}function pv(e){return typeof e!="number"?H1(e):{top:e,right:e,bottom:e,left:e}}function As(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gf(e,t,n){let{reference:r,floating:o}=e;const i=_n(t),s=Tc(t),a=Pc(s),l=qt(t),u=i==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,c=r[a]/2-o[a]/2;let x;switch(l){case"top":x={x:f,y:r.y-o.height};break;case"bottom":x={x:f,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-o.width,y:p};break;default:x={x:r.x,y:r.y}}switch(so(t)){case"start":x[s]-=c*(n&&u?-1:1);break;case"end":x[s]+=c*(n&&u?-1:1);break}return x}const Q1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=gf(u,r,l),c=r,x={},w=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=Xt(e,t)||{};if(u==null)return{};const p=pv(f),c={x:n,y:r},x=Tc(o),w=Pc(x),g=await s.getDimensions(u),E=x==="y",h=E?"top":"left",m=E?"bottom":"right",y=E?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[x]-c[x]-i.floating[w],C=c[x]-i.reference[x],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=k?k[y]:0;(!b||!await(s.isElement==null?void 0:s.isElement(k)))&&(b=a.floating[y]||i.floating[w]);const P=S/2-C/2,_=b/2-g[w]/2-1,A=An(p[h],_),$=An(p[m],_),I=A,H=b-g[w]-$,M=b/2-g[w]/2+P,Q=uu(I,M,H),U=!l.arrow&&so(o)!=null&&M!==Q&&i.reference[w]/2-(MM<=0)){var $,I;const M=((($=i.flip)==null?void 0:$.index)||0)+1,Q=b[M];if(Q)return{data:{index:M,overflows:A},reset:{placement:Q}};let U=(I=A.filter(K=>K.overflows[0]<=0).sort((K,N)=>K.overflows[1]-N.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(x){case"bestFit":{var H;const K=(H=A.filter(N=>{if(k){const j=_n(N.placement);return j===m||j==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(j=>j>0).reduce((j,F)=>j+F,0)]).sort((N,j)=>N[1]-j[1])[0])==null?void 0:H[0];K&&(U=K);break}case"initialPlacement":U=a;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function yf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xf(e){return F1.some(t=>e[t]>=0)}const Y1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const i=await qo(t,{...o,elementContext:"reference"}),s=yf(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xf(s)}}}case"escaped":{const i=await qo(t,{...o,altBoundary:!0}),s=yf(i,n.floating);return{data:{escapedOffsets:s,escaped:xf(s)}}}default:return{}}}}};async function X1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=qt(n),a=so(n),l=_n(n)==="y",u=["left","top"].includes(s)?-1:1,f=i&&l?-1:1,p=Xt(t,e);let{mainAxis:c,crossAxis:x,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(x=a==="end"?w*-1:w),l?{x:x*f,y:c*u}:{x:c*u,y:x*f}}const q1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await X1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Z1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:E=>{let{x:h,y:m}=E;return{x:h,y:m}}},...l}=Xt(e,t),u={x:n,y:r},f=await qo(t,l),p=_n(qt(o)),c=kc(p);let x=u[c],w=u[p];if(i){const E=c==="y"?"top":"left",h=c==="y"?"bottom":"right",m=x+f[E],y=x-f[h];x=uu(m,x,y)}if(s){const E=p==="y"?"top":"left",h=p==="y"?"bottom":"right",m=w+f[E],y=w-f[h];w=uu(m,w,y)}const g=a.fn({...t,[c]:x,[p]:w});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[c]:i,[p]:s}}}}}},J1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Xt(e,t),f={x:n,y:r},p=_n(o),c=kc(p);let x=f[c],w=f[p];const g=Xt(a,t),E=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=c==="y"?"height":"width",S=i.reference[c]-i.floating[y]+E.mainAxis,C=i.reference[c]+i.reference[y]-E.mainAxis;xC&&(x=C)}if(u){var h,m;const y=c==="y"?"width":"height",S=["top","left"].includes(qt(o)),C=i.reference[p]-i.floating[y]+(S&&((h=s.offset)==null?void 0:h[p])||0)+(S?0:E.crossAxis),k=i.reference[p]+i.reference[y]+(S?0:((m=s.offset)==null?void 0:m[p])||0)-(S?E.crossAxis:0);wk&&(w=k)}return{[c]:x,[p]:w}}}},eE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Xt(e,t),f=await qo(t,u),p=qt(o),c=so(o),x=_n(o)==="y",{width:w,height:g}=i.floating;let E,h;p==="top"||p==="bottom"?(E=p,h=c===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(h=p,E=c==="end"?"top":"bottom");const m=g-f.top-f.bottom,y=w-f.left-f.right,S=An(g-f[E],m),C=An(w-f[h],y),k=!t.middlewareData.shift;let b=S,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=m),k&&!c){const A=Ye(f.left,0),$=Ye(f.right,0),I=Ye(f.top,0),H=Ye(f.bottom,0);x?P=w-2*(A!==0||$!==0?A+$:Ye(f.left,f.right)):b=g-2*(I!==0||H!==0?I+H:Ye(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:b});const _=await s.getDimensions(a.floating);return w!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function ao(e){return mv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){var t;return(t=(mv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mv(e){return oa()?e instanceof Node||e instanceof Ze(e).Node:!1}function St(e){return oa()?e instanceof Element||e instanceof Ze(e).Element:!1}function It(e){return oa()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function wf(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}function li(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function tE(e){return["table","td","th"].includes(ao(e))}function ia(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rc(e){const t=jc(),n=St(e)?Ct(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nE(e){let t=Ln(e);for(;It(t)&&!Jr(t);){if(Rc(t))return t;if(ia(t))return null;t=Ln(t)}return null}function jc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jr(e){return["html","body","#document"].includes(ao(e))}function Ct(e){return Ze(e).getComputedStyle(e)}function sa(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wf(e)&&e.host||Ft(e);return wf(t)?t.host:t}function hv(e){const t=Ln(e);return Jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:It(t)&&li(t)?t:hv(t)}function Zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ze(o);if(i){const a=du(s);return t.concat(s,s.visualViewport||[],li(o)?o:[],a&&n?Zo(a):[])}return t.concat(o,Zo(o,[],n))}function du(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vv(e){const t=Ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=It(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=js(n)!==i||js(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Oc(e){return St(e)?e:e.contextElement}function Mr(e){const t=Oc(e);if(!It(t))return Mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=vv(t);let s=(i?js(n.width):n.width)/r,a=(i?js(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const rE=Mn(0);function gv(e){const t=Ze(e);return!jc()||!t.visualViewport?rE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function nr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Oc(e);let s=Mn(1);t&&(r?St(r)&&(s=Mr(r)):s=Mr(e));const a=oE(i,n,r)?gv(i):Mn(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(i){const c=Ze(i),x=r&&St(r)?Ze(r):r;let w=c,g=du(w);for(;g&&r&&x!==w;){const E=Mr(g),h=g.getBoundingClientRect(),m=Ct(g),y=h.left+(g.clientLeft+parseFloat(m.paddingLeft))*E.x,S=h.top+(g.clientTop+parseFloat(m.paddingTop))*E.y;l*=E.x,u*=E.y,f*=E.x,p*=E.y,l+=y,u+=S,w=Ze(g),g=du(w)}}return As({width:f,height:p,x:l,y:u})}function iE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ft(r),a=t?ia(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Mn(1);const f=Mn(0),p=It(r);if((p||!p&&!i)&&((ao(r)!=="body"||li(s))&&(l=sa(r)),It(r))){const c=nr(r);u=Mr(r),f.x=c.x+r.clientLeft,f.y=c.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x,y:n.y*u.y-l.scrollTop*u.y+f.y}}function sE(e){return Array.from(e.getClientRects())}function fu(e,t){const n=sa(e).scrollLeft;return t?t.left+n:nr(Ft(e)).left+n}function aE(e){const t=Ft(e),n=sa(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+fu(e);const a=-n.scrollTop;return Ct(r).direction==="rtl"&&(s+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function lE(e,t){const n=Ze(e),r=Ft(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=jc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function uE(e,t){const n=nr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=It(e)?Mr(e):Mn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Ef(e,t,n){let r;if(t==="viewport")r=lE(e,n);else if(t==="document")r=aE(Ft(e));else if(St(t))r=uE(t,n);else{const o=gv(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return As(r)}function yv(e,t){const n=Ln(e);return n===t||!St(n)||Jr(n)?!1:Ct(n).position==="fixed"||yv(n,t)}function cE(e,t){const n=t.get(e);if(n)return n;let r=Zo(e,[],!1).filter(a=>St(a)&&ao(a)!=="body"),o=null;const i=Ct(e).position==="fixed";let s=i?Ln(e):e;for(;St(s)&&!Jr(s);){const a=Ct(s),l=Rc(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||li(s)&&!l&&yv(e,s))?r=r.filter(f=>f!==s):o=a,s=Ln(s)}return t.set(e,r),r}function dE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ia(t)?[]:cE(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const p=Ef(t,f,o);return u.top=Ye(p.top,u.top),u.right=An(p.right,u.right),u.bottom=An(p.bottom,u.bottom),u.left=Ye(p.left,u.left),u},Ef(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fE(e){const{width:t,height:n}=vv(e);return{width:t,height:n}}function pE(e,t,n){const r=It(t),o=Ft(t),i=n==="fixed",s=nr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Mn(0);if(r||!r&&!i)if((ao(t)!=="body"||li(o))&&(a=sa(t)),r){const x=nr(t,!0,i,t);l.x=x.x+t.clientLeft,l.y=x.y+t.clientTop}else o&&(l.x=fu(o));let u=0,f=0;if(o&&!r&&!i){const x=o.getBoundingClientRect();f=x.top+a.scrollTop,u=x.left+a.scrollLeft-fu(o,x)}const p=s.left+a.scrollLeft-l.x-u,c=s.top+a.scrollTop-l.y-f;return{x:p,y:c,width:s.width,height:s.height}}function Za(e){return Ct(e).position==="static"}function Sf(e,t){if(!It(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ft(e)===n&&(n=n.ownerDocument.body),n}function xv(e,t){const n=Ze(e);if(ia(e))return n;if(!It(e)){let o=Ln(e);for(;o&&!Jr(o);){if(St(o)&&!Za(o))return o;o=Ln(o)}return n}let r=Sf(e,t);for(;r&&tE(r)&&Za(r);)r=Sf(r,t);return r&&Jr(r)&&Za(r)&&!Rc(r)?n:r||nE(e)||n}const mE=async function(e){const t=this.getOffsetParent||xv,n=this.getDimensions,r=await n(e.floating);return{reference:pE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hE(e){return Ct(e).direction==="rtl"}const vE={convertOffsetParentRelativeRectToViewportRelativeRect:iE,getDocumentElement:Ft,getClippingRect:dE,getOffsetParent:xv,getElementRects:mE,getClientRects:sE,getDimensions:fE,getScale:Mr,isElement:St,isRTL:hE};function gE(e,t){let n=null,r;const o=Ft(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:p,height:c}=e.getBoundingClientRect();if(a||t(),!p||!c)return;const x=_i(f),w=_i(o.clientWidth-(u+p)),g=_i(o.clientHeight-(f+c)),E=_i(u),m={rootMargin:-x+"px "+-w+"px "+-g+"px "+-E+"px",threshold:Ye(0,An(1,l))||1};let y=!0;function S(C){const k=C[0].intersectionRatio;if(k!==l){if(!y)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,m)}n.observe(e)}return s(!0),i}function yE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Oc(e),f=o||i?[...u?Zo(u):[],...Zo(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const p=u&&a?gE(u,n):null;let c=-1,x=null;s&&(x=new ResizeObserver(h=>{let[m]=h;m&&m.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var y;(y=x)==null||y.observe(t)})),n()}),u&&!l&&x.observe(u),x.observe(t));let w,g=l?nr(e):null;l&&E();function E(){const h=nr(e);g&&(h.x!==g.x||h.y!==g.y||h.width!==g.width||h.height!==g.height)&&n(),g=h,w=requestAnimationFrame(E)}return n(),()=>{var h;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),p==null||p(),(h=x)==null||h.disconnect(),x=null,l&&cancelAnimationFrame(w)}}const xE=q1,wE=Z1,EE=G1,SE=eE,CE=Y1,Cf=K1,bE=J1,NE=(e,t,n)=>{const r=new Map,o={platform:vE,...n},i={...o.platform,_c:r};return Q1(e,t,{...o,platform:i})};var rs=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Ms(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ms(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ms(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bf(e,t){const n=wv(e);return Math.round(t*n)/n}function Ja(e){const t=v.useRef(e);return rs(()=>{t.current=e}),t}function kE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,p]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[c,x]=v.useState(r);Ms(c,r)||x(r);const[w,g]=v.useState(null),[E,h]=v.useState(null),m=v.useCallback(N=>{N!==k.current&&(k.current=N,g(N))},[]),y=v.useCallback(N=>{N!==b.current&&(b.current=N,h(N))},[]),S=i||w,C=s||E,k=v.useRef(null),b=v.useRef(null),P=v.useRef(f),_=l!=null,A=Ja(l),$=Ja(o),I=Ja(u),H=v.useCallback(()=>{if(!k.current||!b.current)return;const N={placement:t,strategy:n,middleware:c};$.current&&(N.platform=$.current),NE(k.current,b.current,N).then(j=>{const F={...j,isPositioned:I.current!==!1};M.current&&!Ms(P.current,F)&&(P.current=F,oo.flushSync(()=>{p(F)}))})},[c,t,n,$,I]);rs(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[u]);const M=v.useRef(!1);rs(()=>(M.current=!0,()=>{M.current=!1}),[]),rs(()=>{if(S&&(k.current=S),C&&(b.current=C),S&&C){if(A.current)return A.current(S,C,H);H()}},[S,C,H,A,_]);const Q=v.useMemo(()=>({reference:k,floating:b,setReference:m,setFloating:y}),[m,y]),U=v.useMemo(()=>({reference:S,floating:C}),[S,C]),K=v.useMemo(()=>{const N={position:n,left:0,top:0};if(!U.floating)return N;const j=bf(U.floating,f.x),F=bf(U.floating,f.y);return a?{...N,transform:"translate("+j+"px, "+F+"px)",...wv(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:F}},[n,a,U.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:H,refs:Q,elements:U,floatingStyles:K}),[f,H,Q,U,K])}const PE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Cf({element:r.current,padding:o}).fn(n):{}:r?Cf({element:r,padding:o}).fn(n):{}}}},TE=(e,t)=>({...xE(e),options:[e,t]}),RE=(e,t)=>({...wE(e),options:[e,t]}),jE=(e,t)=>({...bE(e),options:[e,t]}),OE=(e,t)=>({...EE(e),options:[e,t]}),AE=(e,t)=>({...SE(e),options:[e,t]}),ME=(e,t)=>({...CE(e),options:[e,t]}),_E=(e,t)=>({...PE(e),options:[e,t]});var LE="Arrow",Ev=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.jsx(fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ev.displayName=LE;var DE=Ev;function IE(e){const[t,n]=v.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Sv="Popper",[Cv,bv]=vc(Sv),[tN,Nv]=Cv(Sv),kv="PopperAnchor",Pv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Nv(kv,n),s=v.useRef(null),a=xe(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.jsx(fe.div,{...o,ref:a})});Pv.displayName=kv;var Ac="PopperContent",[FE,zE]=Cv(Ac),Tv=v.forwardRef((e,t)=>{var ft,Jt,en,tn,ui,sr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:c=!1,updatePositionStrategy:x="optimized",onPlaced:w,...g}=e,E=Nv(Ac,n),[h,m]=v.useState(null),y=xe(t,zn=>m(zn)),[S,C]=v.useState(null),k=IE(S),b=(k==null?void 0:k.width)??0,P=(k==null?void 0:k.height)??0,_=r+(i!=="center"?"-"+i:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(u)?u:[u],I=$.length>0,H={padding:A,boundary:$.filter(UE),altBoundary:I},{refs:M,floatingStyles:Q,placement:U,isPositioned:K,middlewareData:N}=kE({strategy:"fixed",placement:_,whileElementsMounted:(...zn)=>yE(...zn,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[TE({mainAxis:o+P,alignmentAxis:s}),l&&RE({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?jE():void 0,...H}),l&&OE({...H}),AE({...H,apply:({elements:zn,rects:lo,availableWidth:ci,availableHeight:nn})=>{const{width:va,height:ga}=lo.reference,Se=zn.floating.style;Se.setProperty("--radix-popper-available-width",`${ci}px`),Se.setProperty("--radix-popper-available-height",`${nn}px`),Se.setProperty("--radix-popper-anchor-width",`${va}px`),Se.setProperty("--radix-popper-anchor-height",`${ga}px`)}}),S&&_E({element:S,padding:a}),BE({arrowWidth:b,arrowHeight:P}),c&&ME({strategy:"referenceHidden",...H})]}),[j,F]=Ov(U),D=We(w);et(()=>{K&&(D==null||D())},[K,D]);const z=(ft=N.arrow)==null?void 0:ft.x,Y=(Jt=N.arrow)==null?void 0:Jt.y,le=((en=N.arrow)==null?void 0:en.centerOffset)!==0,[He,Z]=v.useState();return et(()=>{h&&Z(window.getComputedStyle(h).zIndex)},[h]),d.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:K?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(tn=N.transformOrigin)==null?void 0:tn.x,(ui=N.transformOrigin)==null?void 0:ui.y].join(" "),...((sr=N.hide)==null?void 0:sr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(FE,{scope:n,placedSide:j,onArrowChange:C,arrowX:z,arrowY:Y,shouldHideArrow:le,children:d.jsx(fe.div,{"data-side":j,"data-align":F,...g,ref:y,style:{...g.style,animation:K?void 0:"none"}})})})});Tv.displayName=Ac;var Rv="PopperArrow",$E={top:"bottom",right:"left",bottom:"top",left:"right"},jv=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=zE(Rv,r),s=$E[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(DE,{...o,ref:n,style:{...o.style,display:"block"}})})});jv.displayName=Rv;function UE(e){return e!==null}var BE=e=>({name:"transformOrigin",options:e,fn(t){var E,h,m;const{placement:n,rects:r,middlewareData:o}=t,s=((E=o.arrow)==null?void 0:E.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,f]=Ov(n),p={start:"0%",center:"50%",end:"100%"}[f],c=(((h=o.arrow)==null?void 0:h.x)??0)+a/2,x=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let w="",g="";return u==="bottom"?(w=s?p:`${c}px`,g=`${-l}px`):u==="top"?(w=s?p:`${c}px`,g=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,g=s?p:`${x}px`):u==="left"&&(w=`${r.floating.width+l}px`,g=s?p:`${x}px`),{data:{x:w,y:g}}}});function Ov(e){const[t,n="center"]=e.split("-");return[t,n]}var WE=Pv,VE=Tv,HE=jv,QE="Portal",Av=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);et(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?mc.createPortal(d.jsx(fe.div,{...r,ref:t}),s):null});Av.displayName=QE;function KE(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Mv=e=>{const{present:t,children:n}=e,r=GE(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=xe(r.ref,YE(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Mv.displayName="Presence";function GE(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=KE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Li(r.current);i.current=a==="mounted"?u:"none"},[a]),et(()=>{const u=r.current,f=o.current;if(f!==e){const c=i.current,x=Li(u);e?l("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&c!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),et(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=x=>{const g=Li(r.current).includes(x.animationName);if(x.target===t&&g&&(l("ANIMATION_END"),!o.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},c=x=>{x.target===t&&(i.current=Li(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Li(e){return(e==null?void 0:e.animationName)||"none"}function YE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[aa,nN]=P1("Tooltip",[bv]),Mc=bv(),_v="TooltipProvider",XE=700,Nf="tooltip.open",[qE,Lv]=aa(_v),Dv=e=>{const{__scopeTooltip:t,delayDuration:n=XE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,a]=v.useState(!0),l=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),d.jsx(qE,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(f=>{l.current=f},[]),disableHoverableContent:o,children:i})};Dv.displayName=_v;var Iv="Tooltip",[rN,la]=aa(Iv),pu="TooltipTrigger",ZE=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=la(pu,n),i=Lv(pu,n),s=Mc(n),a=v.useRef(null),l=xe(t,a,o.onTriggerChange),u=v.useRef(!1),f=v.useRef(!1),p=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(WE,{asChild:!0,...s,children:d.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ee(e.onPointerMove,c=>{c.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ee(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ee(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ee(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ee(e.onBlur,o.onClose),onClick:ee(e.onClick,o.onClose)})})});ZE.displayName=pu;var JE="TooltipPortal",[oN,eS]=aa(JE,{forceMount:void 0}),eo="TooltipContent",Fv=v.forwardRef((e,t)=>{const n=eS(eo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=la(eo,e.__scopeTooltip);return d.jsx(Mv,{present:r||s.open,children:s.disableHoverableContent?d.jsx(zv,{side:o,...i,ref:t}):d.jsx(tS,{side:o,...i,ref:t})})}),tS=v.forwardRef((e,t)=>{const n=la(eo,e.__scopeTooltip),r=Lv(eo,e.__scopeTooltip),o=v.useRef(null),i=xe(t,o),[s,a]=v.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,c=v.useCallback(()=>{a(null),p(!1)},[p]),x=v.useCallback((w,g)=>{const E=w.currentTarget,h={x:w.clientX,y:w.clientY},m=iS(h,E.getBoundingClientRect()),y=sS(h,m),S=aS(g.getBoundingClientRect()),C=uS([...y,...S]);a(C),p(!0)},[p]);return v.useEffect(()=>()=>c(),[c]),v.useEffect(()=>{if(l&&f){const w=E=>x(E,f),g=E=>x(E,l);return l.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[l,f,x,c]),v.useEffect(()=>{if(s){const w=g=>{const E=g.target,h={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(E))||(f==null?void 0:f.contains(E)),y=!lS(h,s);m?c():y&&(c(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,f,s,u,c]),d.jsx(zv,{...e,ref:i})}),[nS,rS]=aa(Iv,{isInside:!1}),zv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=la(eo,n),u=Mc(n),{onClose:f}=l;return v.useEffect(()=>(document.addEventListener(Nf,f),()=>document.removeEventListener(Nf,f)),[f]),v.useEffect(()=>{if(l.trigger){const p=c=>{const x=c.target;x!=null&&x.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),d.jsx(Nc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(VE,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Sh,{children:r}),d.jsx(nS,{scope:n,isInside:!0,children:d.jsx(Bx,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Fv.displayName=eo;var $v="TooltipArrow",oS=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mc(n);return rS($v,n).isInside?null:d.jsx(HE,{...o,...r,ref:t})});oS.displayName=$v;function iS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function aS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function lS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=f>r&&n<(u-a)*(r-l)/(f-l)+a&&(o=!o)}return o}function uS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),cS(t)}function cS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var dS=Dv,Uv=Fv;const fS=dS,pS=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Uv,{ref:r,sideOffset:t,className:rt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));pS.displayName=Uv.displayName;var ua=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(){}},ca=typeof window>"u"||"Deno"in globalThis;function ht(){}function mS(e,t){return typeof e=="function"?e(t):e}function hS(e){return typeof e=="number"&&e>=0&&e!==1/0}function vS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function kf(e,t){return typeof e=="function"?e(t):e}function gS(e,t){return typeof e=="function"?e(t):e}function Pf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==_c(s,t.options))return!1}else if(!ei(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Tf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jo(t.options.mutationKey)!==Jo(i))return!1}else if(!ei(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function _c(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jo)(e)}function Jo(e){return JSON.stringify(e,(t,n)=>mu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ei(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ei(e[n],t[n])):!1}function Bv(e,t){if(e===t)return e;const n=Rf(e)&&Rf(t);if(n||mu(e)&&mu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function xS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Bv(e,t):t}function wS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ES(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wv=Symbol();function Vv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Hn,mn,Dr,Zf,SS=(Zf=class extends ua{constructor(){super();q(this,Hn);q(this,mn);q(this,Dr);V(this,Dr,t=>{if(!ca&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,mn)||this.setEventListener(T(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,mn))==null||t.call(this),V(this,mn,void 0))}setEventListener(t){var n;V(this,Dr,t),(n=T(this,mn))==null||n.call(this),V(this,mn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Hn)!==t&&(V(this,Hn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Hn)=="boolean"?T(this,Hn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hn=new WeakMap,mn=new WeakMap,Dr=new WeakMap,Zf),Hv=new SS,Ir,hn,Fr,Jf,CS=(Jf=class extends ua{constructor(){super();q(this,Ir,!0);q(this,hn);q(this,Fr);V(this,Fr,t=>{if(!ca&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,hn)||this.setEventListener(T(this,Fr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,hn))==null||t.call(this),V(this,hn,void 0))}setEventListener(t){var n;V(this,Fr,t),(n=T(this,hn))==null||n.call(this),V(this,hn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ir)!==t&&(V(this,Ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Ir)}},Ir=new WeakMap,hn=new WeakMap,Fr=new WeakMap,Jf),_s=new CS;function bS(e){return Math.min(1e3*2**e,3e4)}function Qv(e){return(e??"online")==="online"?_s.isOnline():!0}var Kv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function el(e){return e instanceof Kv}function Gv(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((h,m)=>{i=h,s=m}),l=h=>{var m;r||(w(new Kv(h)),(m=e.abort)==null||m.call(e))},u=()=>{t=!0},f=()=>{t=!1},p=()=>Hv.isFocused()&&(e.networkMode==="always"||_s.isOnline())&&e.canRun(),c=()=>Qv(e.networkMode)&&e.canRun(),x=h=>{var m;r||(r=!0,(m=e.onSuccess)==null||m.call(e,h),o==null||o(),i(h))},w=h=>{var m;r||(r=!0,(m=e.onError)==null||m.call(e,h),o==null||o(),s(h))},g=()=>new Promise(h=>{var m;o=y=>{(r||p())&&h(y)},(m=e.onPause)==null||m.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),E=()=>{if(r)return;let h;const m=n===0?e.initialPromise:void 0;try{h=m??e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(x).catch(y=>{var P;if(r)return;const S=e.retry??(ca?0:3),C=e.retryDelay??bS,k=typeof C=="function"?C(n,y):C,b=S===!0||typeof S=="number"&&np()?void 0:g()).then(()=>{t?w(y):E()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:u,continueRetry:f,canStart:c,start:()=>(c()?E():g().then(E),a)}}function NS(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var _e=NS(),Qn,ep,Yv=(ep=class{constructor(){q(this,Qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hS(this.gcTime)&&V(this,Qn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ca?1/0:5*60*1e3))}clearGcTimeout(){T(this,Qn)&&(clearTimeout(T(this,Qn)),V(this,Qn,void 0))}},Qn=new WeakMap,ep),zr,$r,ot,Re,ti,Kn,vt,$t,tp,kS=(tp=class extends Yv{constructor(t){super();q(this,vt);q(this,zr);q(this,$r);q(this,ot);q(this,Re);q(this,ti);q(this,Kn);V(this,Kn,!1),V(this,ti,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,ot,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,zr,TS(this.options)),this.state=t.state??T(this,zr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Re))==null?void 0:t.promise}setOptions(t){this.options={...T(this,ti),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,ot).remove(this)}setData(t,n){const r=xS(this.state.data,t,this.options);return ke(this,vt,$t).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ke(this,vt,$t).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Re))==null?void 0:r.promise;return(o=T(this,Re))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,zr))}isActive(){return this.observers.some(t=>gS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!vS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,ot).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Re)&&(T(this,Kn)?T(this,Re).cancel({revert:!0}):T(this,Re).cancelRetry()),this.scheduleGc()),T(this,ot).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,vt,$t).call(this,{type:"invalidate"})}fetch(t,n){var l,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Re))return T(this,Re).continueRetry(),T(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(c=>c.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(V(this,Kn,!0),r.signal)})},i=()=>{const p=Vv(this.options,n),c={queryKey:this.queryKey,meta:this.meta};return o(c),V(this,Kn,!1),this.options.persister?this.options.persister(p,c,this):p(c)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(l=this.options.behavior)==null||l.onFetch(s,this),V(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&ke(this,vt,$t).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const a=p=>{var c,x,w,g;el(p)&&p.silent||ke(this,vt,$t).call(this,{type:"error",error:p}),el(p)||((x=(c=T(this,ot).config).onError)==null||x.call(c,p,this),(g=(w=T(this,ot).config).onSettled)==null||g.call(w,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return V(this,Re,Gv({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var c,x,w,g;if(p===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(E){a(E);return}(x=(c=T(this,ot).config).onSuccess)==null||x.call(c,p,this),(g=(w=T(this,ot).config).onSettled)==null||g.call(w,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(p,c)=>{ke(this,vt,$t).call(this,{type:"failed",failureCount:p,error:c})},onPause:()=>{ke(this,vt,$t).call(this,{type:"pause"})},onContinue:()=>{ke(this,vt,$t).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),T(this,Re).start()}},zr=new WeakMap,$r=new WeakMap,ot=new WeakMap,Re=new WeakMap,ti=new WeakMap,Kn=new WeakMap,vt=new WeakSet,$t=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...PS(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return el(o)&&o.revert&&T(this,$r)?{...T(this,$r),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,ot).notify({query:this,type:"updated",action:t})})},tp);function PS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function TS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var jt,np,RS=(np=class extends ua{constructor(t={}){super();q(this,jt);this.config=t,V(this,jt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??_c(o,n);let s=this.get(i);return s||(s=new kS({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,jt).has(t.queryHash)||(T(this,jt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,jt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,jt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,jt).get(t)}getAll(){return[...T(this,jt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Pf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Pf(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jt=new WeakMap,np),Ot,Ae,Gn,At,ln,rp,jS=(rp=class extends Yv{constructor(t){super();q(this,At);q(this,Ot);q(this,Ae);q(this,Gn);this.mutationId=t.mutationId,V(this,Ae,t.mutationCache),V(this,Ot,[]),this.state=t.state||OS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Ot).includes(t)||(T(this,Ot).push(t),this.clearGcTimeout(),T(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,Ot,T(this,Ot).filter(n=>n!==t)),this.scheduleGc(),T(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Ot).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ae).remove(this))}continue(){var t;return((t=T(this,Gn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,u,f,p,c,x,w,g,E,h,m,y,S,C,k,b;V(this,Gn,Gv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,_)=>{ke(this,At,ln).call(this,{type:"failed",failureCount:P,error:_})},onPause:()=>{ke(this,At,ln).call(this,{type:"pause"})},onContinue:()=>{ke(this,At,ln).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ae).canRun(this)}));const n=this.state.status==="pending",r=!T(this,Gn).canStart();try{if(!n){ke(this,At,ln).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=T(this,Ae).config).onMutate)==null?void 0:i.call(o,t,this));const _=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));_!==this.state.context&&ke(this,At,ln).call(this,{type:"pending",context:_,variables:t,isPaused:r})}const P=await T(this,Gn).start();return await((u=(l=T(this,Ae).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,P,t,this.state.context)),await((x=(c=T(this,Ae).config).onSettled)==null?void 0:x.call(c,P,null,this.state.variables,this.state.context,this)),await((g=(w=this.options).onSettled)==null?void 0:g.call(w,P,null,t,this.state.context)),ke(this,At,ln).call(this,{type:"success",data:P}),P}catch(P){try{throw await((h=(E=T(this,Ae).config).onError)==null?void 0:h.call(E,P,t,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,P,t,this.state.context)),await((C=(S=T(this,Ae).config).onSettled)==null?void 0:C.call(S,void 0,P,this.state.variables,this.state.context,this)),await((b=(k=this.options).onSettled)==null?void 0:b.call(k,void 0,P,t,this.state.context)),P}finally{ke(this,At,ln).call(this,{type:"error",error:P})}}finally{T(this,Ae).runNext(this)}}},Ot=new WeakMap,Ae=new WeakMap,Gn=new WeakMap,At=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{T(this,Ot).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ae).notify({mutation:this,type:"updated",action:t})})},rp);function OS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qe,ni,op,AS=(op=class extends ua{constructor(t={}){super();q(this,Qe);q(this,ni);this.config=t,V(this,Qe,new Map),V(this,ni,Date.now())}build(t,n,r){const o=new jS({mutationCache:this,mutationId:++pi(this,ni)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=Di(t),r=T(this,Qe).get(n)??[];r.push(t),T(this,Qe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Di(t);if(T(this,Qe).has(n)){const o=(r=T(this,Qe).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?T(this,Qe).delete(n):T(this,Qe).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=T(this,Qe).get(Di(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=T(this,Qe).get(Di(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...T(this,Qe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Tf(n,r))}findAll(t={}){return this.getAll().filter(n=>Tf(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},Qe=new WeakMap,ni=new WeakMap,op);function Di(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Of(e){return{onFetch:(t,n)=>{var f,p,c,x,w;const r=t.options,o=(c=(p=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:c.direction,i=((x=t.state.data)==null?void 0:x.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const E=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=Vv(t.options,t.fetchOptions),m=async(y,S,C)=>{if(g)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const k={queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};E(k);const b=await h(k),{maxPages:P}=t.options,_=C?ES:wS;return{pages:_(y.pages,b,P),pageParams:_(y.pageParams,S,P)}};if(o&&i.length){const y=o==="backward",S=y?MS:Af,C={pages:i,pageParams:s},k=S(r,C);a=await m(C,k,y)}else{const y=e??i.length;do{const S=l===0?s[0]??r.initialPageParam:Af(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l{var g,E;return(E=(g=t.options).persister)==null?void 0:E.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Af(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function MS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,vn,gn,Ur,Br,yn,Wr,Vr,ip,_S=(ip=class{constructor(e={}){q(this,pe);q(this,vn);q(this,gn);q(this,Ur);q(this,Br);q(this,yn);q(this,Wr);q(this,Vr);V(this,pe,e.queryCache||new RS),V(this,vn,e.mutationCache||new AS),V(this,gn,e.defaultOptions||{}),V(this,Ur,new Map),V(this,Br,new Map),V(this,yn,0)}mount(){pi(this,yn)._++,T(this,yn)===1&&(V(this,Wr,Hv.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,pe).onFocus())})),V(this,Vr,_s.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,pe).onOnline())})))}unmount(){var e,t;pi(this,yn)._--,T(this,yn)===0&&((e=T(this,Wr))==null||e.call(this),V(this,Wr,void 0),(t=T(this,Vr))==null||t.call(this),V(this,Vr,void 0))}isFetching(e){return T(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,vn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=T(this,pe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(kf(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return T(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,pe).get(r.queryHash),i=o==null?void 0:o.state.data,s=mS(t,i);if(s!==void 0)return T(this,pe).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>T(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,pe);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,pe),r={type:"active",...e};return _e.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=_e.batch(()=>T(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e={},t={}){return _e.batch(()=>{if(T(this,pe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=_e.batch(()=>T(this,pe).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,pe).build(this,t);return n.isStaleByTime(kf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=Of(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=Of(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _s.isOnline()?T(this,vn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,pe)}getMutationCache(){return T(this,vn)}getDefaultOptions(){return T(this,gn)}setDefaultOptions(e){V(this,gn,e)}setQueryDefaults(e,t){T(this,Ur).set(Jo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ur).values()];let n={};return t.forEach(r=>{ei(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){T(this,Br).set(Jo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Br).values()];let n={};return t.forEach(r=>{ei(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_c(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.enabled!==!0&&t.queryFn===Wv&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,pe).clear(),T(this,vn).clear()}},pe=new WeakMap,vn=new WeakMap,gn=new WeakMap,Ur=new WeakMap,Br=new WeakMap,yn=new WeakMap,Wr=new WeakMap,Vr=new WeakMap,ip),LS=v.createContext(void 0),DS=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(LS.Provider,{value:e,children:t}));/** * @remix-run/router v1.19.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 Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Xv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FS(){return Math.random().toString(36).substr(2,8)}function _f(e,t){return{usr:e.state,key:e.key,idx:t}}function hu(e,t,n,r){return n===void 0&&(n=null),Ls({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?da(t):t,{state:n,key:t&&t.key||r||FS()})}function qv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function da(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=En.Pop,l=null,u=f();u==null&&(u=0,s.replaceState(Ls({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function p(){a=En.Pop;let E=f(),h=E==null?null:E-u;u=E,l&&l({action:a,location:g.location,delta:h})}function c(E,h){a=En.Push;let m=hu(g.location,E,h);u=f()+1;let y=_f(m,u),S=g.createHref(m);try{s.pushState(y,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}i&&l&&l({action:a,location:g.location,delta:1})}function x(E,h){a=En.Replace;let m=hu(g.location,E,h);u=f();let y=_f(m,u),S=g.createHref(m);s.replaceState(y,"",S),i&&l&&l({action:a,location:g.location,delta:0})}function w(E){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof E=="string"?E:qv(E);return m=m.replace(/ $/,"%20"),Ve(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let g={get action(){return a},get location(){return e(o,s)},listen(E){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Mf,p),l=E,()=>{o.removeEventListener(Mf,p),l=null}},createHref(E){return t(o,E)},createURL:w,encodeLocation(E){let h=w(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:c,replace:x,go(E){return s.go(E)}};return g}var Lf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Lf||(Lf={}));function $S(e,t,n){return n===void 0&&(n="/"),US(e,t,n,!1)}function US(e,t,n,r){let o=typeof t=="string"?da(t):t,i=eg(o.pathname||"/",n);if(i==null)return null;let s=Zv(e);BS(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Ve(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=_r([r,l.relativePath]),f=n.concat(l);i.children&&i.children.length>0&&(Ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zv(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:YS(u,i.index),routesMeta:f})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Jv(i.path))o(i,s,l)}),t}function Jv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Jv(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function BS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WS=/^:[\w-]+$/,VS=3,HS=2,QS=1,KS=10,GS=-2,Df=e=>e==="*";function YS(e,t){let n=e.split("/"),r=n.length;return n.some(Df)&&(r+=GS),t&&(r+=HS),n.filter(o=>!Df(o)).reduce((o,i)=>o+(WS.test(i)?VS:i===""?QS:KS),r)}function XS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function qS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:c,isOptional:x}=f;if(c==="*"){let g=a[p]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=a[p];return x&&!w?u[c]=void 0:u[c]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function ZS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function JS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xv(!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 eg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const _r=e=>e.join("/").replace(/\/\/+/g,"/"),eC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function tC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tg=["post","put","patch","delete"];new Set(tg);const nC=["get",...tg];new Set(nC);/** * React Router v6.26.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 Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},E,{params:Object.assign({},a,E.params),pathname:_r([l,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:_r([l,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,n,r);return t&&g?v.createElement(fa.Provider,{value:{location:Ds({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:En.Pop}},g):g}function aC(){let e=hC(),t=tC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const lC=v.createElement(aC,null);class uC extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(pa.Provider,{value:this.props.routeContext},v.createElement(rg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cC(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(rC);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(pa.Provider,{value:t},r)}function dC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);f>=0||Ve(!1),s=s.slice(0,Math.min(s.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((f,p,c)=>{let x,w=!1,g=null,E=null;n&&(x=a&&p.route.id?a[p.route.id]:void 0,g=p.route.errorElement||lC,l&&(u<0&&c===0?(w=!0,E=null):u===c&&(w=!0,E=p.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,c+1)),m=()=>{let y;return x?y=g:w?y=E:p.route.Component?y=v.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=f,v.createElement(cC,{match:p,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||c===0)?v.createElement(uC,{location:n.location,revalidation:n.revalidation,component:g,error:x,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var vu=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}(vu||{});function fC(e){let t=v.useContext(oC);return t||Ve(!1),t}function pC(e){let t=v.useContext(pa);return t||Ve(!1),t}function mC(e){let t=pC(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function hC(){var e;let t=v.useContext(rg),n=fC(vu.UseRouteError),r=mC(vu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gu(e){Ve(!1)}function vC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=En.Pop,navigator:i,static:s=!1,future:a}=e;Lc()&&Ve(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:Ds({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=da(r));let{pathname:f="/",search:p="",hash:c="",state:x=null,key:w="default"}=r,g=v.useMemo(()=>{let E=eg(f,l);return E==null?null:{location:{pathname:E,search:p,hash:c,state:x,key:w},navigationType:o}},[l,f,p,c,x,w,o]);return g==null?null:v.createElement(ng.Provider,{value:u},v.createElement(fa.Provider,{children:n,value:g}))}function gC(e){let{children:t,location:n}=e;return iC(yu(t),n)}new Promise(()=>{});function yu(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,yu(r.props.children,i));return}r.type!==gu&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=yu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.26.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 */const yC="6";try{window.__reactRouterVersion=yC}catch{}const xC="startTransition",Ff=gp[xC];function wC(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=IS({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=v.useCallback(p=>{u&&Ff?Ff(()=>l(p)):l(p)},[l,u]);return v.useLayoutEffect(()=>s.listen(f),[s,f]),v.createElement(vC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var zf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zf||(zf={}));var $f;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($f||($f={}));function EC(e,t){const n=v.createContext(t),r=i=>{const{children:s,...a}=i,l=v.useMemo(()=>a,Object.values(a));return d.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function SC(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=p=>{var h;const{scope:c,children:x,...w}=p,g=((h=c==null?void 0:c[e])==null?void 0:h[l])||a,E=v.useMemo(()=>w,Object.values(w));return d.jsx(g.Provider,{value:E,children:x})};u.displayName=i+"Provider";function f(p,c){var g;const x=((g=c==null?void 0:c[e])==null?void 0:g[l])||a,w=v.useContext(x);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,CC(o,...t)]}function CC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var tl="focusScope.autoFocusOnMount",nl="focusScope.autoFocusOnUnmount",Uf={bubbles:!1,cancelable:!0},bC="FocusScope",ig=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=We(o),f=We(i),p=v.useRef(null),c=xe(t,g=>l(g)),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(y){if(x.paused||!a)return;const S=y.target;a.contains(S)?p.current=S:un(p.current,{select:!0})},E=function(y){if(x.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||un(p.current,{select:!0}))},h=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&un(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",E);const m=new MutationObserver(h);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",E),m.disconnect()}}},[r,a,x.paused]),v.useEffect(()=>{if(a){Wf.add(x);const g=document.activeElement;if(!a.contains(g)){const h=new CustomEvent(tl,Uf);a.addEventListener(tl,u),a.dispatchEvent(h),h.defaultPrevented||(NC(jC(sg(a)),{select:!0}),document.activeElement===g&&un(a))}return()=>{a.removeEventListener(tl,u),setTimeout(()=>{const h=new CustomEvent(nl,Uf);a.addEventListener(nl,f),a.dispatchEvent(h),h.defaultPrevented||un(g??document.body,{select:!0}),a.removeEventListener(nl,f),Wf.remove(x)},0)}}},[a,u,f,x]);const w=v.useCallback(g=>{if(!n&&!r||x.paused)return;const E=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,h=document.activeElement;if(E&&h){const m=g.currentTarget,[y,S]=kC(m);y&&S?!g.shiftKey&&h===S?(g.preventDefault(),n&&un(y,{select:!0})):g.shiftKey&&h===y&&(g.preventDefault(),n&&un(S,{select:!0})):h===m&&g.preventDefault()}},[n,r,x.paused]);return d.jsx(fe.div,{tabIndex:-1,...s,ref:c,onKeyDown:w})});ig.displayName=bC;function NC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(un(r,{select:t}),document.activeElement!==n)return}function kC(e){const t=sg(e),n=Bf(t,e),r=Bf(t.reverse(),e);return[n,r]}function sg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bf(e,t){for(const n of e)if(!PC(n,{upTo:t}))return n}function PC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TC(e){return e instanceof HTMLInputElement&&"select"in e}function un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TC(e)&&t&&e.select()}}var Wf=RC();function RC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vf(e,t),e.unshift(t)},remove(t){var n;e=Vf(e,t),(n=e[0])==null||n.resume()}}}function Vf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jC(e){return e.filter(t=>t.tagName!=="A")}function OC(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var ma=e=>{const{present:t,children:n}=e,r=AC(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=xe(r.ref,MC(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ma.displayName="Presence";function AC(e){const[t,n]=v.useState(),r=v.useRef({}),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=OC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Ii(r.current);i.current=a==="mounted"?u:"none"},[a]),et(()=>{const u=r.current,f=o.current;if(f!==e){const c=i.current,x=Ii(u);e?l("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&c!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),et(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=x=>{const g=Ii(r.current).includes(x.animationName);if(x.target===t&&g&&(l("ANIMATION_END"),!o.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},c=x=>{x.target===t&&(i.current=Ii(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ii(e){return(e==null?void 0:e.animationName)||"none"}function MC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rl=0;function _C(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hf()),document.body.insertAdjacentElement("beforeend",e[1]??Hf()),rl++,()=>{rl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rl--}},[])}function Hf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _t=function(){return _t=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return qC;var t=ZC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eb=cg(),Lr="data-scroll-locked",tb=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(DC,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(Lr,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(i,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(os,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(is,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(os," .").concat(os,` { right: 0 `).concat(r,`; } .`).concat(is," .").concat(is,` { margin-right: 0 `).concat(r,`; } body[`).concat(Lr,`] { `).concat(IC,": ").concat(a,`px; } `)},Kf=function(){var e=parseInt(document.body.getAttribute(Lr)||"0",10);return isFinite(e)?e:0},nb=function(){v.useEffect(function(){return document.body.setAttribute(Lr,(Kf()+1).toString()),function(){var e=Kf()-1;e<=0?document.body.removeAttribute(Lr):document.body.setAttribute(Lr,e.toString())}},[])},rb=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;nb();var i=v.useMemo(function(){return JC(o)},[o]);return v.createElement(eb,{styles:tb(i,!t,o,n?"":"!important")})},xu=!1;if(typeof window<"u")try{var Fi=Object.defineProperty({},"passive",{get:function(){return xu=!0,!0}});window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{xu=!1}var dr=xu?{passive:!1}:!1,ob=function(e){return e.tagName==="TEXTAREA"},dg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ob(e)&&n[t]==="visible")},ib=function(e){return dg(e,"overflowY")},sb=function(e){return dg(e,"overflowX")},Gf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=fg(e,r);if(o){var i=pg(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ab=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lb=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fg=function(e,t){return e==="v"?ib(t):sb(t)},pg=function(e,t){return e==="v"?ab(t):lb(t)},ub=function(e,t){return e==="h"&&t==="rtl"?-1:1},cb=function(e,t,n,r,o){var i=ub(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,f=s>0,p=0,c=0;do{var x=pg(e,a),w=x[0],g=x[1],E=x[2],h=g-E-i*w;(w||h)&&fg(e,a)&&(p+=h,c+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(c)<1||!o))&&(u=!0),u},zi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yf=function(e){return[e.deltaX,e.deltaY]},Xf=function(e){return e&&"current"in e?e.current:e},db=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fb=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},pb=0,fr=[];function mb(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(pb++)[0],i=v.useState(cg)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=LC([e.lockRef.current],(e.shards||[]).map(Xf),!0).filter(Boolean);return g.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,E){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var h=zi(g),m=n.current,y="deltaX"in g?g.deltaX:m[0]-h[0],S="deltaY"in g?g.deltaY:m[1]-h[1],C,k=g.target,b=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in g&&b==="h"&&k.type==="range")return!1;var P=Gf(b,k);if(!P)return!0;if(P?C=b:(C=b==="v"?"h":"v",P=Gf(b,k)),!P)return!1;if(!r.current&&"changedTouches"in g&&(y||S)&&(r.current=C),!C)return!0;var _=r.current||C;return cb(_,E,g,_==="h"?y:S,!0)},[]),l=v.useCallback(function(g){var E=g;if(!(!fr.length||fr[fr.length-1]!==i)){var h="deltaY"in E?Yf(E):zi(E),m=t.current.filter(function(C){return C.name===E.type&&(C.target===E.target||E.target===C.shadowParent)&&db(C.delta,h)})[0];if(m&&m.should){E.cancelable&&E.preventDefault();return}if(!m){var y=(s.current.shards||[]).map(Xf).filter(Boolean).filter(function(C){return C.contains(E.target)}),S=y.length>0?a(E,y[0]):!s.current.noIsolation;S&&E.cancelable&&E.preventDefault()}}},[]),u=v.useCallback(function(g,E,h,m){var y={name:g,delta:E,target:h,should:m,shadowParent:hb(h)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),f=v.useCallback(function(g){n.current=zi(g),r.current=void 0},[]),p=v.useCallback(function(g){u(g.type,Yf(g),g.target,a(g,e.lockRef.current))},[]),c=v.useCallback(function(g){u(g.type,zi(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return fr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:c}),document.addEventListener("wheel",l,dr),document.addEventListener("touchmove",l,dr),document.addEventListener("touchstart",f,dr),function(){fr=fr.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,dr),document.removeEventListener("touchmove",l,dr),document.removeEventListener("touchstart",f,dr)}},[]);var x=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(i,{styles:fb(o)}):null,x?v.createElement(rb,{gapMode:e.gapMode}):null)}function hb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vb=VC(ug,mb);var mg=v.forwardRef(function(e,t){return v.createElement(ha,_t({},e,{ref:t,sideCar:vb}))});mg.classNames=ha.classNames;var gb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pr=new WeakMap,$i=new WeakMap,Ui={},al=0,hg=function(e){return e&&(e.host||hg(e.parentNode))},yb=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xb=function(e,t,n,r){var o=yb(t,Array.isArray(e)?e:[e]);Ui[n]||(Ui[n]=new WeakMap);var i=Ui[n],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(c){if(a.has(c))f(c);else try{var x=c.getAttribute(r),w=x!==null&&x!=="false",g=(pr.get(c)||0)+1,E=(i.get(c)||0)+1;pr.set(c,g),i.set(c,E),s.push(c),g===1&&w&&$i.set(c,!0),E===1&&c.setAttribute(n,"true"),w||c.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",c,h)}})};return f(t),a.clear(),al++,function(){s.forEach(function(p){var c=pr.get(p)-1,x=i.get(p)-1;pr.set(p,c),i.set(p,x),c||($i.has(p)||p.removeAttribute(r),$i.delete(p)),x||p.removeAttribute(n)}),al--,al||(pr=new WeakMap,pr=new WeakMap,$i=new WeakMap,Ui={})}},wb=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=gb(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),xb(r,o,n,"aria-hidden")):function(){return null}},Dc="Dialog",[vg,iN]=SC(Dc),[Eb,bt]=vg(Dc),gg=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[u=!1,f]=jh({prop:r,defaultProp:o,onChange:i});return d.jsx(Eb,{scope:t,triggerRef:a,contentRef:l,contentId:qa(),titleId:qa(),descriptionId:qa(),open:u,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};gg.displayName=Dc;var yg="DialogTrigger",Sb=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(yg,n),i=xe(t,o.triggerRef);return d.jsx(fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zc(o.open),...r,ref:i,onClick:ee(e.onClick,o.onOpenToggle)})});Sb.displayName=yg;var Ic="DialogPortal",[Cb,xg]=vg(Ic,{forceMount:void 0}),wg=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=bt(Ic,t);return d.jsx(Cb,{scope:t,forceMount:n,children:v.Children.map(r,s=>d.jsx(ma,{present:n||i.open,children:d.jsx(Av,{asChild:!0,container:o,children:s})}))})};wg.displayName=Ic;var Is="DialogOverlay",Eg=v.forwardRef((e,t)=>{const n=xg(Is,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bt(Is,e.__scopeDialog);return i.modal?d.jsx(ma,{present:r||i.open,children:d.jsx(bb,{...o,ref:t})}):null});Eg.displayName=Is;var bb=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(Is,n);return d.jsx(mg,{as:Zr,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(fe.div,{"data-state":zc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),rr="DialogContent",Sg=v.forwardRef((e,t)=>{const n=xg(rr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=bt(rr,e.__scopeDialog);return d.jsx(ma,{present:r||i.open,children:i.modal?d.jsx(Nb,{...o,ref:t}):d.jsx(kb,{...o,ref:t})})});Sg.displayName=rr;var Nb=v.forwardRef((e,t)=>{const n=bt(rr,e.__scopeDialog),r=v.useRef(null),o=xe(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return wb(i)},[]),d.jsx(Cg,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ee(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ee(e.onFocusOutside,i=>i.preventDefault())})}),kb=v.forwardRef((e,t)=>{const n=bt(rr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return d.jsx(Cg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Cg=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=bt(rr,n),l=v.useRef(null),u=xe(t,l);return _C(),d.jsxs(d.Fragment,{children:[d.jsx(ig,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:d.jsx(Nc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":zc(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Pb,{titleId:a.titleId}),d.jsx(Rb,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Fc="DialogTitle",bg=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(Fc,n);return d.jsx(fe.h2,{id:o.titleId,...r,ref:t})});bg.displayName=Fc;var Ng="DialogDescription",kg=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(Ng,n);return d.jsx(fe.p,{id:o.descriptionId,...r,ref:t})});kg.displayName=Ng;var Pg="DialogClose",Tg=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=bt(Pg,n);return d.jsx(fe.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,()=>o.onOpenChange(!1))})});Tg.displayName=Pg;function zc(e){return e?"open":"closed"}var Rg="DialogTitleWarning",[sN,jg]=EC(Rg,{contentName:rr,titleName:Fc,docsSlug:"dialog"}),Pb=({titleId:e})=>{const t=jg(Rg),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tb="DialogDescriptionWarning",Rb=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jg(Tb).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},jb=gg,Ob=wg,Og=Eg,Ag=Sg,Mg=bg,_g=kg,Ab=Tg;const Lg=jb,Mb=Ob,Dg=v.forwardRef(({className:e,...t},n)=>d.jsx(Og,{ref:n,className:rt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Dg.displayName=Og.displayName;const $c=v.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Mb,{children:[d.jsx(Dg,{}),d.jsxs(Ag,{ref:r,className:rt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,d.jsxs(Ab,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(Cc,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$c.displayName=Ag.displayName;const Uc=({className:e,...t})=>d.jsx("div",{className:rt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Uc.displayName="DialogHeader";const Bc=v.forwardRef(({className:e,...t},n)=>d.jsx(Mg,{ref:n,className:rt("text-lg font-semibold leading-none tracking-tight",e),...t}));Bc.displayName=Mg.displayName;const _b=v.forwardRef(({className:e,...t},n)=>d.jsx(_g,{ref:n,className:rt("text-sm text-muted-foreground",e),...t}));_b.displayName=_g.displayName;function Lb({isOpen:e,onClose:t}){return d.jsx(Lg,{open:e,onOpenChange:t,children:d.jsxs($c,{className:"sm:max-w-[450px] h-auto p-6",children:[d.jsx(Uc,{children:d.jsx(Bc,{className:"text-2xl font-bold text-pink-600",children:"Nossa História em Vídeo"})}),d.jsx("div",{className:"relative w-full",children:d.jsx("video",{className:"w-full rounded-lg",controls:!0,preload:"metadata",src:"https://tumtum.somdocoracao.com/portfolio/tumtum.mp4",onError:n=>{console.error("Erro ao carregar o vídeo:",n)},children:"Seu navegador não suporta a reprodução de vídeos."})})]})})}function Db({isOpen:e,onClose:t}){return d.jsx(Lg,{open:e,onOpenChange:t,children:d.jsxs($c,{className:"max-w-4xl",children:[d.jsx(Uc,{children:d.jsx(Bc,{className:"text-4xl font-bold text-center",children:"Quem Somos"})}),d.jsxs("div",{className:"mt-8",children:[d.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[d.jsx("div",{children:d.jsx("img",{src:"https://tumtum.somdocoracao.com/imagens/quemsomos.jpg",alt:"Nosso estúdio de gravação",className:"rounded-xl shadow-lg"})}),d.jsxs("div",{className:"space-y-6",children:[d.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Somos uma equipe apaixonada por música e histórias de vida. Há mais de 5 anos, nos dedicamos a transformar momentos especiais em canções únicas que eternizam memórias e emoções."}),d.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Nossa missão é criar a trilha sonora perfeita para os momentos mais importantes da sua vida, seja um casamento, um chá revelação ou uma celebração especial."}),d.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Com um estúdio profissional e músicos talentosos, garantimos qualidade e originalidade em cada composição, transformando suas histórias em melodias inesquecíveis."})]})]}),d.jsxs("div",{className:"mt-12 grid grid-cols-2 md:grid-cols-4 gap-8",children:[d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-4xl font-bold text-pink-600 mb-2",children:"500+"}),d.jsx("div",{className:"text-gray-600",children:"Músicas Criadas"})]}),d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-4xl font-bold text-pink-600 mb-2",children:"5+"}),d.jsx("div",{className:"text-gray-600",children:"Anos de Experiência"})]}),d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-4xl font-bold text-pink-600 mb-2",children:"100%"}),d.jsx("div",{className:"text-gray-600",children:"Personalização"})]}),d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-4xl font-bold text-pink-600 mb-2",children:"7"}),d.jsx("div",{className:"text-gray-600",children:"Dias de Produção"})]})]})]})]})})}function Ib(){return d.jsx("footer",{className:"bg-pink-600 text-white py-12",children:d.jsxs("div",{className:"container mx-auto px-6",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[d.jsxs("div",{children:[d.jsx("img",{src:"https://somdocoracao.com/landing/imagens/logo%20tumtum.png",alt:"Tum Tum Logo",className:"h-16 mb-6 mx-auto md:mx-0"}),d.jsx("p",{className:"text-pink-100 text-center md:text-left",children:"Transformando histórias em músicas inesquecíveis."})]}),d.jsxs("div",{className:"text-center md:text-left",children:[d.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Contato"}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("a",{href:"https://wa.me/551151945157",className:"flex items-center justify-center md:justify-start text-pink-100 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[d.jsx(Ec,{className:"h-5 w-5 mr-3"}),"(11) 5194-5157"]}),d.jsxs("a",{href:"mailto:contato@somdocoracao.com",className:"flex items-center justify-center md:justify-start text-pink-100 hover:text-white transition-colors",children:[d.jsx(fw,{className:"h-5 w-5 mr-3"}),"contato@somdocoracao.com"]}),d.jsxs("a",{href:"https://instagram.com/ocoracaofaztumtum",className:"flex items-center justify-center md:justify-start text-pink-100 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[d.jsx(dw,{className:"h-5 w-5 mr-3"}),"@ocoracaofaztumtum"]})]})]}),d.jsxs("div",{className:"text-center md:text-left",children:[d.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Navegação"}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("a",{href:"#servicos",className:"block text-pink-100 hover:text-white transition-colors",children:"Serviços"}),d.jsx("a",{href:"#pacotes",className:"block text-pink-100 hover:text-white transition-colors",children:"Pacotes"}),d.jsx("a",{href:"#contato",className:"block text-pink-100 hover:text-white transition-colors",children:"Contato"})]})]})]}),d.jsx("div",{className:"border-t border-pink-500/30 mt-12 pt-8 text-center text-pink-100",children:d.jsxs("p",{children:["© ",new Date().getFullYear()," Tum Tum. Todos os direitos reservados."]})})]})})}const ll=768;function Fb(){const[e,t]=v.useState(void 0);return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ll-1}px)`),r=()=>{t(window.innerWidthn.removeEventListener("change",r)},[]),!!e}function zb({onVideoClick:e}){const t=Fb(),n=()=>{window.open("https://wa.me/551151945157","_blank")};return d.jsxs("section",{className:"relative min-h-[calc(100vh-80px)] pt-20 md:pt-32 pb-12 md:pb-24",style:{backgroundImage:"url('https://tumtum.somdocoracao.com/imagens/imagemcha.jpeg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:"#1a1a1a"},children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-pink-600/70 via-pink-500/60 to-purple-600/70"}),d.jsx("div",{className:"absolute inset-0 overflow-hidden opacity-10",children:Array.from({length:6}).map((r,o)=>d.jsx("div",{className:`absolute w-6 md:w-8 h-6 md:h-8 text-white transform rotate-${Math.random()*360} animate-float`,style:{left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${o*.5}s`},children:"♪"},o))}),d.jsx("div",{className:"container relative z-10",children:d.jsxs("div",{className:"flex flex-col items-center md:grid md:grid-cols-2 gap-8 md:gap-12",children:[d.jsxs("div",{className:"text-white space-y-6 md:space-y-8 animate-fade-in text-center md:text-left px-4 md:px-0 order-1 md:order-none",children:[d.jsxs("h1",{className:"font-display text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold leading-none",children:["Músicas",d.jsx("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-white to-pink-200 -mt-1",children:"Personalizadas"}),d.jsx("span",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl block -mt-1",children:"Para Momentos Especiais"})]}),t&&d.jsxs("div",{className:"relative mt-8 max-w-[200px] mx-auto order-2",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-pink-400/30 to-purple-400/30 rounded-full blur-3xl"}),d.jsxs("div",{className:"relative transform hover:scale-105 transition-transform duration-500",children:[d.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 rounded-full blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-200 animate-pulse"}),d.jsx("img",{src:"https://somdocoracao.com/landing/imagens/mic.png",alt:"Microfone profissional",className:"relative w-full max-w-[200px] mx-auto animate-float"})]})]}),d.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-3 font-body",children:[d.jsx("span",{className:"inline-flex items-center px-4 py-2 md:px-4 md:py-1.5 rounded-full bg-white/20 backdrop-blur-sm text-sm md:text-sm font-medium text-white",children:"🎵 Chá Revelação"}),d.jsx("span",{className:"inline-flex items-center px-4 py-2 md:px-4 md:py-1.5 rounded-full bg-white/20 backdrop-blur-sm text-sm md:text-sm font-medium text-white",children:"👰 Casamento"}),d.jsx("span",{className:"inline-flex items-center px-4 py-2 md:px-4 md:py-1.5 rounded-full bg-white/20 backdrop-blur-sm text-sm md:text-sm font-medium text-white",children:"🎂 Aniversário"})]}),d.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-3 relative z-20 order-3 font-body",children:[d.jsxs("button",{onClick:e,className:"cursor-pointer inline-flex items-center bg-white hover:bg-white/90 text-pink-600 rounded-full px-4 py-2 md:px-6 md:py-2.5 text-sm md:text-base font-semibold hover:scale-105 transition-all duration-300 shadow-lg",children:[d.jsx(mw,{className:"mr-2 h-3 w-3 md:h-4 md:w-4"}),"Ver vídeo"]}),d.jsxs("button",{onClick:n,className:"cursor-pointer inline-flex items-center bg-transparent border-2 border-white text-white hover:bg-white/10 rounded-full px-4 py-2 md:px-6 md:py-2.5 text-sm md:text-base font-semibold hover:scale-105 transition-all duration-300",children:["Quero Minha Música",d.jsx(ns,{className:"ml-2 h-3 w-3 md:h-4 md:w-4"})]})]})]}),!t&&d.jsxs("div",{className:"relative mt-8 md:mt-0 max-w-[200px] sm:max-w-[280px] md:max-w-none mx-auto",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-pink-400/30 to-purple-400/30 rounded-full blur-3xl"}),d.jsxs("div",{className:"relative transform hover:scale-105 transition-transform duration-500",children:[d.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 rounded-full blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-200 animate-pulse"}),d.jsx("img",{src:"https://somdocoracao.com/landing/imagens/mic.png",alt:"Microfone profissional",className:"relative w-full max-w-[200px] sm:max-w-[280px] md:max-w-lg mx-auto animate-float"})]})]})]})}),d.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320",className:"w-full",children:d.jsx("path",{fill:"#ffffff",fillOpacity:"1",d:"M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"})})})]})}function $b(){return d.jsx("section",{className:"py-12 -mt-20",children:d.jsx("div",{className:"container",children:d.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[d.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg text-center",children:[d.jsx("div",{className:"w-16 h-16 mx-auto mb-4 text-pink-600",children:d.jsx(Sc,{className:"w-full h-full"})}),d.jsx("h3",{className:"text-2xl md:text-3xl font-semibold mb-3",children:"Qualidade Profissional"}),d.jsx("p",{className:"text-gray-600",children:"Músicas com estúdio com equipamentos de alta qualidade e equipe profissional"})]}),d.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg text-center",children:[d.jsx("div",{className:"w-16 h-16 mx-auto mb-4 text-pink-600",children:d.jsx(ev,{className:"w-full h-full"})}),d.jsx("h3",{className:"text-2xl md:text-3xl font-semibold mb-3",children:"Entrega Rápida"}),d.jsx("p",{className:"text-gray-600",children:"Sua música pronta em até 7 dias úteis (após comprovação do pagamento)"})]}),d.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg text-center",children:[d.jsx("div",{className:"w-16 h-16 mx-auto mb-4 text-pink-600",children:d.jsx(Tt,{className:"w-full h-full"})}),d.jsx("h3",{className:"text-2xl md:text-3xl font-semibold mb-3",children:"100% Personalizado"}),d.jsx("p",{className:"text-gray-600",children:"Cada música é única, criada especialmente para contar a sua história"})]})]})})})}function Ub(){return d.jsx("section",{id:"servicos",className:"py-20 bg-gray-50",children:d.jsxs("div",{className:"container",children:[d.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[d.jsx("h2",{className:"heading-secondary",children:"Nossos Serviços"}),d.jsx("p",{className:"subtitle-large",children:"Transformamos seus momentos especiais em músicas únicas e inesquecíveis"})]}),d.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[d.jsxs("div",{className:"bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transform hover:-translate-y-2 transition-all duration-300",children:[d.jsx("img",{src:"https://tumtum.somdocoracao.com/imagens/charevela.jpg",alt:"Chá Revelação",className:"w-full h-48 object-cover"}),d.jsxs("div",{className:"p-6",children:[d.jsx("h3",{className:"heading-tertiary",children:"Chá Revelação"}),d.jsx("p",{className:"text-body",children:"Uma música especial para revelar o sexo do bebê de forma única e emocionante"})]})]}),d.jsxs("div",{className:"bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transform hover:-translate-y-2 transition-all duration-300",children:[d.jsx("img",{src:"https://tumtum.somdocoracao.com/imagens/casamen.jpg",alt:"Casamentos",className:"w-full h-48 object-cover"}),d.jsxs("div",{className:"p-6",children:[d.jsx("h3",{className:"heading-tertiary",children:"Casamentos"}),d.jsx("p",{className:"text-body",children:"Eternize sua história de amor com uma música personalizada"})]})]}),d.jsxs("div",{className:"bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-xl transform hover:-translate-y-2 transition-all duration-300",children:[d.jsx("img",{src:"https://tumtum.somdocoracao.com/imagens/aniver.jpg",alt:"Aniversários",className:"w-full h-48 object-cover"}),d.jsxs("div",{className:"p-6",children:[d.jsx("h3",{className:"heading-tertiary",children:"Aniversários"}),d.jsx("p",{className:"text-body",children:"A trilha sonora perfeita para celebrar sua data especial"})]})]})]})]})})}function Bb(){return d.jsx("section",{id:"como-funciona",className:"py-16 bg-white",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[d.jsx("h2",{className:"heading-secondary",children:"Como Funciona"}),d.jsx("p",{className:"subtitle-large",children:"Um processo simples para criar sua música personalizada"})]}),d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"hidden md:block absolute left-0 right-0 h-0.5 bg-pink-200",style:{top:"50%",zIndex:0}}),d.jsxs("div",{className:"grid md:grid-cols-4 gap-12 max-w-6xl mx-auto relative z-10",children:[d.jsxs("div",{className:"relative text-center bg-white p-6 rounded-lg transition-transform hover:-translate-y-2 duration-300",children:[d.jsx("div",{className:"w-24 h-24 bg-pink-500 rounded-full flex items-center justify-center mx-auto mb-6 shadow-lg",children:d.jsx(Ec,{className:"w-12 h-12 text-white"})}),d.jsx("h3",{className:"heading-tertiary",children:"1. Primeiro Contato"}),d.jsx("p",{className:"text-body",children:"Entre em contato conosco via WhatsApp ou formulário. Conte-nos sua história"}),d.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 -translate-x-6 md:block",children:d.jsx(ns,{className:"w-8 h-8 text-pink-500"})})]}),d.jsxs("div",{className:"relative text-center bg-white p-6 rounded-lg transition-transform hover:-translate-y-2 duration-300",children:[d.jsx("div",{className:"w-24 h-24 bg-pink-500 rounded-full flex items-center justify-center mx-auto mb-6 shadow-lg",children:d.jsx(Sc,{className:"w-12 h-12 text-white"})}),d.jsx("h3",{className:"heading-tertiary",children:"2. Composição"}),d.jsx("p",{className:"text-body",children:"Nossa equipe criativa transforma sua história em uma letra única"}),d.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 -translate-x-6 md:block",children:d.jsx(ns,{className:"w-8 h-8 text-pink-500"})})]}),d.jsxs("div",{className:"relative text-center bg-white p-6 rounded-lg transition-transform hover:-translate-y-2 duration-300",children:[d.jsx("div",{className:"w-24 h-24 bg-pink-500 rounded-full flex items-center justify-center mx-auto mb-6 shadow-lg",children:d.jsx(cw,{className:"w-12 h-12 text-white"})}),d.jsx("h3",{className:"heading-tertiary",children:"3. Gravação"}),d.jsx("p",{className:"text-body",children:"Gravamos sua música em nosso estúdio profissional"}),d.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 -translate-x-6 md:block",children:d.jsx(ns,{className:"w-8 h-8 text-pink-500"})})]}),d.jsxs("div",{className:"relative text-center bg-white p-6 rounded-lg transition-transform hover:-translate-y-2 duration-300",children:[d.jsx("div",{className:"w-24 h-24 bg-pink-500 rounded-full flex items-center justify-center mx-auto mb-6 shadow-lg",children:d.jsx(ev,{className:"w-12 h-12 text-white"})}),d.jsx("h3",{className:"heading-tertiary",children:"4. Entrega"}),d.jsx("p",{className:"text-body",children:"Em até 7 dias úteis, você recebe sua música pronta"})]})]})]})]})})}const Wb=Zh("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"}}),Fs=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Zr:"button";return d.jsx(s,{className:rt(Wb({variant:t,size:n,className:e})),ref:i,...o})});Fs.displayName="Button";function qf({title:e,audioUrl:t}){return d.jsxs("div",{className:"audio-player",children:[d.jsx("h3",{className:"text-lg font-semibold mb-2",children:e}),d.jsxs("audio",{controls:!0,className:"w-full",children:[d.jsx("source",{src:t,type:"audio/mpeg"}),"Seu navegador não suporta o elemento de áudio."]})]})}function Vb(){const e=()=>{window.open("https://wa.me/551151945157","_blank")};return d.jsx("section",{id:"pacotes",className:"py-16 bg-white",children:d.jsxs("div",{className:"container",children:[d.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[d.jsx("h2",{className:"text-5xl font-bold text-gray-800 mb-4 font-display",children:"Nossos Pacotes"}),d.jsx("p",{className:"text-2xl text-gray-600 max-w-2xl mx-auto",children:"Escolha o pacote ideal para eternizar seus momentos especiais"})]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[d.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg hover:shadow-xl transition-all duration-300",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx(Sc,{className:"w-16 h-16 mx-auto text-pink-600 mb-6"}),d.jsx("h3",{className:"text-3xl md:text-4xl font-bold mb-2 font-display",children:"Pacote Singular"}),d.jsxs("div",{className:"mt-4",children:[d.jsx("span",{className:"text-4xl font-bold",children:"R$ 350"}),d.jsx("span",{className:"text-gray-500",children:",00"})]})]}),d.jsxs("ul",{className:"space-y-4 mb-8",children:[d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-pink-600 mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Voz e Violão"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-pink-600 mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Gravação em Estúdio"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-pink-600 mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Letra Personalizada"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-pink-600 mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Entrega em até 7 dias úteis"})]})]}),d.jsx(Fs,{onClick:e,className:"w-full bg-pink-600 hover:bg-pink-700 text-lg py-6",children:"Escolher"})]}),d.jsxs("div",{className:"bg-pink-600 text-white rounded-xl p-8 shadow-lg transform md:scale-105 hover:shadow-xl transition-all duration-300",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx(hw,{className:"w-16 h-16 mx-auto text-white mb-6"}),d.jsx("h3",{className:"text-3xl md:text-4xl font-bold mb-2 font-display",children:"Pacote Plural"}),d.jsxs("div",{className:"mt-4",children:[d.jsx("span",{className:"text-4xl font-bold",children:"R$ 499"}),d.jsx("span",{className:"text-pink-100",children:",00"})]})]}),d.jsxs("ul",{className:"space-y-4 mb-8",children:[d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-white mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Banda Completa"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-white mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Gravação em Estúdio"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-white mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Letra Personalizada"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-white mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Entrega em até 7 dias úteis"})]}),d.jsxs("li",{className:"flex items-center",children:[d.jsx(Tt,{className:"w-5 h-5 text-white mr-3 flex-shrink-0"}),d.jsx("span",{className:"text-base",children:"Mixagem Profissional"})]})]}),d.jsx(Fs,{onClick:e,className:"w-full bg-white text-pink-600 hover:bg-pink-50 text-lg py-6",children:"Escolher"})]})]}),d.jsxs("div",{className:"mt-24",children:[d.jsx("h2",{className:"text-5xl font-bold text-center mb-8 font-display",children:"Ouça Alguns Exemplos"}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[d.jsxs("div",{className:"bg-gray-50 rounded-xl p-6",children:[d.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Exemplo Acústico"}),d.jsx("p",{className:"text-base text-gray-600 mb-4",children:"Voz e violão, perfeito para momentos mais intimistas"}),d.jsx(qf,{title:"Exemplo Acústico",audioUrl:"https://tumtum.somdocoracao.com/portfolio/acustico01.mp3"})]}),d.jsxs("div",{className:"bg-gray-50 rounded-xl p-6",children:[d.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Exemplo com Banda"}),d.jsx("p",{className:"text-base text-gray-600 mb-4",children:"Arranjo completo para uma experiência musical única"}),d.jsx(qf,{title:"Exemplo com Banda",audioUrl:"https://tumtum.somdocoracao.com/portfolio/completo01.mp3"})]})]})]})]})})}function Hb(){const[e,t]=v.useState("idle"),[n,r]=v.useState({name:"",email:"",message:"",phone:"",service:"cha-revelacao"}),{toast:o}=hc(),i=async a=>{a.preventDefault(),t("sending");try{if((await(await fetch("https://api.web3forms.com/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:"5574f3ff-bf4d-4ec4-9094-2514b2802914",name:n.name,email:n.email,phone:n.phone,service:n.service,message:n.message,subject:`Novo contato - ${n.service}`})})).json()).success)t("success"),r({name:"",email:"",message:"",phone:"",service:"cha-revelacao"}),o({title:"Mensagem enviada!",description:"Entraremos em contato em breve."});else throw new Error("Erro ao enviar formulário")}catch{t("error"),o({title:"Erro ao enviar mensagem",description:"Por favor, tente novamente.",variant:"destructive"})}finally{setTimeout(()=>t("idle"),3e3)}},s=a=>{const{name:l,value:u}=a.target;r(f=>({...f,[l]:u}))};return d.jsx("section",{id:"contato",className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:d.jsxs("div",{className:"container max-w-6xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4 font-display",children:"Vamos criar algo especial juntos"}),d.jsx("p",{className:"text-xl text-gray-600",children:"Estamos prontos para transformar sua história em uma música única e emocionante"})]}),d.jsxs("form",{onSubmit:i,className:"space-y-6 max-w-4xl mx-auto",children:[d.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[d.jsxs("div",{children:[d.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-1",children:"Nome"}),d.jsx("input",{type:"text",id:"name",name:"name",value:n.name,onChange:s,required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-pink-500 focus:border-pink-500"})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),d.jsx("input",{type:"email",id:"email",name:"email",value:n.email,onChange:s,required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-pink-500 focus:border-pink-500"})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefone"}),d.jsx("input",{type:"tel",id:"phone",name:"phone",value:n.phone,onChange:s,required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-pink-500 focus:border-pink-500"})]})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"service",className:"block text-sm font-medium text-gray-700 mb-1",children:"Serviço"}),d.jsxs("select",{id:"service",name:"service",value:n.service,onChange:s,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-pink-500 focus:border-pink-500",children:[d.jsx("option",{value:"cha-revelacao",children:"Chá Revelação"}),d.jsx("option",{value:"casamento",children:"Casamento"}),d.jsx("option",{value:"aniversario",children:"Aniversário"})]})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-1",children:"Mensagem"}),d.jsx("textarea",{id:"message",name:"message",value:n.message,onChange:s,rows:4,className:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-pink-500 focus:border-pink-500"})]}),d.jsx(Fs,{type:"submit",className:"w-full bg-pink-600 hover:bg-pink-700 text-lg py-6",disabled:e==="sending",children:e==="sending"?"Enviando...":"Enviar Mensagem"})]})]})})}function Qb({isHeaderFixed:e,onQuemSomosClick:t}){const[n,r]=v.useState(!1),o=s=>{r(!1);const a=document.getElementById(s);a&&(a.scrollIntoView({behavior:"smooth"}),window.scrollBy({top:-100,behavior:"smooth"}))},i=()=>{r(!1),t&&t()};return d.jsx("header",{className:`w-full transition-all duration-300 ${e?"fixed top-0 bg-white/95 backdrop-blur-sm shadow-md z-40":"relative"}`,children:d.jsx("nav",{className:"container mx-auto px-6 py-4",children:d.jsxs("div",{className:"flex flex-col items-center relative",children:[d.jsx("img",{src:"https://somdocoracao.com/landing/imagens/logo%20tumtum.png",alt:"Tum Tum Logo",className:`transition-all duration-300 ${e?"h-16 md:h-20":"h-20 md:h-24"}`}),d.jsx("button",{onClick:()=>r(!n),className:"md:hidden absolute right-6 top-6 text-gray-600 hover:text-pink-600 transition-colors","aria-label":n?"Fechar menu":"Abrir menu",children:n?d.jsx(Cc,{size:24}):d.jsx(pw,{size:24})}),d.jsx("div",{className:`md:mt-4 w-full md:w-auto transition-all duration-300 ${n?"block":"hidden md:block"} bg-white md:bg-transparent absolute md:relative top-full left-0 md:top-auto z-40`,children:d.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-8 py-4 md:py-0 px-6 md:px-0",children:[d.jsx("button",{onClick:i,className:"text-gray-600 hover:text-pink-600 transition-colors py-2 w-full md:w-auto text-left",children:"Quem Somos"}),d.jsx("button",{onClick:()=>o("servicos"),className:"text-gray-600 hover:text-pink-600 transition-colors py-2 w-full md:w-auto text-left",children:"Serviços"}),d.jsx("button",{onClick:()=>o("pacotes"),className:"text-gray-600 hover:text-pink-600 transition-colors py-2 w-full md:w-auto text-left",children:"Pacotes"}),d.jsx("button",{onClick:()=>o("como-funciona"),className:"text-gray-600 hover:text-pink-600 transition-colors py-2 w-full md:w-auto text-left",children:"Como Funciona"}),d.jsx("button",{onClick:()=>o("contato"),className:"text-gray-600 hover:text-pink-600 transition-colors py-2 w-full md:w-auto text-left",children:"Contato"})]})})]})})})}function Kb(){const e=()=>{window.open("https://wa.me/551151945157","_blank")};return d.jsxs("button",{onClick:e,className:"fixed bottom-6 right-6 z-50 bg-green-500 hover:bg-green-600 text-white rounded-full p-4 shadow-lg transform hover:scale-110 transition-all duration-300 flex items-center gap-2 font-semibold","aria-label":"Abrir WhatsApp",children:[d.jsx(Ec,{size:24}),d.jsx("span",{children:"Fale Conosco"})]})}function Gb(){const e=[{title:"Chá Revelação - Maria Clara",videoId:"dQw4w9WgXcQ",description:"Música personalizada para revelar a chegada da pequena Maria Clara"},{title:"Casamento - João e Maria",videoId:"y6120QOlsfU",description:"História de amor eternizada em música para um casamento inesquecível"}];return d.jsx("section",{className:"py-16 bg-gray-50",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[d.jsx("h2",{className:"text-5xl font-bold text-gray-800 mb-4 font-display",children:"Músicas para Emocionar"}),d.jsx("p",{className:"text-2xl text-gray-600 max-w-2xl mx-auto",children:"Confira algumas de nossas criações especiais"})]}),d.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:e.map((t,n)=>d.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-shadow duration-300",children:[d.jsx("div",{className:"aspect-w-16 aspect-h-9 mb-4",children:d.jsx("iframe",{className:"w-full h-full rounded-lg",src:`https://www.youtube.com/embed/${t.videoId}`,title:t.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),d.jsx("h3",{className:"text-2xl font-bold mb-2",children:t.title}),d.jsx("p",{className:"text-base text-gray-600",children:t.description})]},n))})]})})}function Yb(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[o,i]=v.useState(!1);return hc(),v.useEffect(()=>{const s=()=>{i(window.scrollY>100)};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]),d.jsxs("div",{className:"min-h-screen bg-white",children:[d.jsx(Qb,{isHeaderFixed:o,onQuemSomosClick:()=>r(!0)}),d.jsxs("main",{children:[d.jsx(zb,{onVideoClick:()=>t(!0)}),d.jsx($b,{}),d.jsx(Ub,{}),d.jsx(Bb,{}),d.jsx(Gb,{}),d.jsx(Vb,{}),d.jsx(Hb,{})]}),d.jsx(Ib,{}),d.jsx(Lb,{isOpen:e,onClose:()=>t(!1)}),d.jsx(Db,{isOpen:n,onClose:()=>r(!1)}),d.jsx(Kb,{})]})}const Xb=()=>{const e=og();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),d.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},qb=new _S,Zb=()=>d.jsx(DS,{client:qb,children:d.jsxs(fS,{children:[d.jsx(qw,{}),d.jsx(k1,{}),d.jsx(wC,{children:d.jsxs(gC,{children:[d.jsx(gu,{path:"/",element:d.jsx(Yb,{})}),d.jsx(gu,{path:"*",element:d.jsx(Xb,{})})]})})]})});wh(document.getElementById("root")).render(d.jsx(Zb,{}));