var Vb=Object.defineProperty;var ip=e=>{throw TypeError(e)};var zb=(e,t,n)=>t in e?Vb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var un=(e,t,n)=>zb(e,typeof t!="symbol"?t+"":t,n),xc=(e,t,n)=>t.has(e)||ip("Cannot "+n);var R=(e,t,n)=>(xc(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?ip("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(xc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),_e=(e,t,n)=>(xc(e,t,"access private method"),n);var Wo=(e,t,n,r)=>({set _(i){G(e,t,i,n)},get _(){return R(e,t,r)}});function Bb(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var My={exports:{}},Ll={},Oy={exports:{}},X={};/** * @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 ko=Symbol.for("react.element"),$b=Symbol.for("react.portal"),Ub=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),Hb=Symbol.for("react.profiler"),Kb=Symbol.for("react.provider"),Gb=Symbol.for("react.context"),Yb=Symbol.for("react.forward_ref"),Qb=Symbol.for("react.suspense"),qb=Symbol.for("react.memo"),Xb=Symbol.for("react.lazy"),sp=Symbol.iterator;function Zb(e){return e===null||typeof e!="object"?null:(e=sp&&e[sp]||e["@@iterator"],typeof e=="function"?e:null)}var Dy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ly=Object.assign,Iy={};function rs(e,t,n){this.props=e,this.context=t,this.refs=Iy,this.updater=n||Dy}rs.prototype.isReactComponent={};rs.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")};rs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _y(){}_y.prototype=rs.prototype;function uf(e,t,n){this.props=e,this.context=t,this.refs=Iy,this.updater=n||Dy}var df=uf.prototype=new _y;df.constructor=uf;Ly(df,rs.prototype);df.isPureReactComponent=!0;var op=Array.isArray,Fy=Object.prototype.hasOwnProperty,ff={current:null},Vy={key:!0,ref:!0,__self:!0,__source:!0};function zy(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Fy.call(t,r)&&!Vy.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,B=k[$];if(0>>1;$i(we,I))Iei(te,we)?(k[$]=te,k[Ie]=I,$=Ie):(k[$]=we,k[Z]=I,$=Z);else if(Iei(te,I))k[$]=te,k[Ie]=I,$=Ie;else break e}}return A}function i(k,A){var I=k.sortIndex-A.sortIndex;return I!==0?I:k.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,f=null,h=3,p=!1,x=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,g=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 v(k){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=k)r(c),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(c)}}function S(k){if(y=!1,v(k),!x)if(n(l)!==null)x=!0,z(C);else{var A=n(c);A!==null&&H(S,A.startTime-k)}}function C(k,A){x=!1,y&&(y=!1,g(P),P=-1),p=!0;var I=h;try{for(v(A),f=n(l);f!==null&&(!(f.expirationTime>A)||k&&!_());){var $=f.callback;if(typeof $=="function"){f.callback=null,h=f.priorityLevel;var B=$(f.expirationTime<=A);A=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),v(A)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var Z=n(c);Z!==null&&H(S,Z.startTime-A),q=!1}return q}finally{f=null,h=I,p=!1}}var E=!1,T=null,P=-1,N=5,j=-1;function _(){return!(e.unstable_now()-jk||125$?(k.sortIndex=I,t(c,k),n(l)===null&&k===n(c)&&(y?(g(P),P=-1):y=!0,H(S,I-$))):(k.sortIndex=B,t(l,k),x||p||(x=!0,z(C))),k},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(k){var A=h;return function(){var I=h;h=A;try{return k.apply(this,arguments)}finally{h=I}}}})(Ky);Hy.exports=Ky;var cS=Hy.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 uS=b,ut=cS;function O(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"),Tu=Object.prototype.hasOwnProperty,dS=/^[: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]*$/,lp={},cp={};function fS(e){return Tu.call(cp,e)?!0:Tu.call(lp,e)?!1:dS.test(e)?cp[e]=!0:(lp[e]=!0,!1)}function hS(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 pS(e,t,n,r){if(t===null||typeof t>"u"||hS(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 qe(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var pf=/[\-:]([a-z])/g;function mf(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(pf,mf);Le[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pf,mf);Le[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pf,mf);Le[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function gf(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Sc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ns(e):""}function mS(e){switch(e.tag){case 5:return Ns(e.type);case 16:return Ns("Lazy");case 13:return Ns("Suspense");case 19:return Ns("SuspenseList");case 0:case 2:case 15:return e=Cc(e.type,!1),e;case 11:return e=Cc(e.type.render,!1),e;case 1:return e=Cc(e.type,!0),e;default:return""}}function ju(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 hi:return"Fragment";case fi:return"Portal";case Eu:return"Profiler";case yf:return"StrictMode";case Pu:return"Suspense";case ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xf:return t=e.displayName||null,t!==null?t:ju(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return ju(e(t))}catch{}}return null}function gS(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 ju(t);case 8:return t===yf?"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 or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yS(e){var t=Xy(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Go(e){e._valueTracker||(e._valueTracker=yS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ga(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 Au(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function dp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=or(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 Jy(e,t){t=t.checked,t!=null&&gf(e,"checked",t,!1)}function Ru(e,t){Jy(e,t);var n=or(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")?Nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nu(e,t.type,or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fp(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 Nu(e,t,n){(t!=="number"||Ga(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ms=Array.isArray;function ki(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={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},vS=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){vS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function iv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var xS=ge({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 Du(e,t){if(t){if(xS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Lu(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 Iu=null;function wf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _u=null,ji=null,Ai=null;function mp(e){if(e=Ro(e)){if(typeof _u!="function")throw Error(O(280));var t=e.stateNode;t&&(t=zl(t),_u(e.stateNode,e.type,t))}}function sv(e){ji?Ai?Ai.push(e):Ai=[e]:ji=e}function ov(){if(ji){var e=ji,t=Ai;if(Ai=ji=null,mp(e),t)for(e=0;e>>=0,e===0?32:31-(RS(e)/NS|0)|0}var Qo=64,qo=4194304;function Os(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 Xa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Os(a):(s&=o,s!==0&&(r=Os(s)))}else o=n&~i,o!==0?r=Os(o):s!==0&&(r=Os(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 jo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function LS(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=Fs),Tp=" ",Ep=!1;function Pv(e,t){switch(e){case"keyup":return cC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function dC(e,t){switch(e){case"compositionend":return kv(t);case"keypress":return t.which!==32?null:(Ep=!0,Tp);case"textInput":return e=t.data,e===Tp&&Ep?null:e;default:return null}}function fC(e,t){if(pi)return e==="compositionend"||!jf&&Pv(e,t)?(e=Tv(),Ta=Ef=Gn=null,pi=!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=Ap(n)}}function Nv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mv(){for(var e=window,t=Ga();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ga(e.document)}return t}function Af(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 bC(e){var t=Mv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nv(n.ownerDocument.documentElement,n)){if(r!==null&&Af(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Rp(n,s);var o=Rp(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,mi=null,Uu=null,zs=null,Wu=!1;function Np(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wu||mi==null||mi!==Ga(r)||(r=mi,"selectionStart"in r&&Af(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}),zs&&ro(zs,r)||(zs=r,r=el(Uu,"onSelect"),0vi||(e.current=qu[vi],qu[vi]=null,vi--)}function oe(e,t){vi++,qu[vi]=e.current,e.current=t}var ar={},$e=mr(ar),et=mr(!1),Kr=ar;function Ki(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function nl(){ce(et),ce($e)}function Fp(e,t,n){if($e.current!==ar)throw Error(O(168));oe($e,t),oe(et,n)}function Bv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,gS(e)||"Unknown",i));return ge({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Kr=$e.current,oe($e,e),oe(et,et.current),!0}function Vp(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Bv(e,t,Kr),r.__reactInternalMemoizedMergedChildContext=e,ce(et),ce($e),oe($e,e)):ce(et),oe(et,n)}var mn=null,Bl=!1,_c=!1;function $v(e){mn===null?mn=[e]:mn.push(e)}function OC(e){Bl=!0,$v(e)}function gr(){if(!_c&&mn!==null){_c=!0;var e=0,t=ne;try{var n=mn;for(ne=1;e>=o,i-=o,yn=1<<32-Vt(t)+i|n<P?(N=T,T=null):N=T.sibling;var j=h(g,T,v[P],S);if(j===null){T===null&&(T=N);break}e&&T&&j.alternate===null&&t(g,T),m=s(j,m,P),E===null?C=j:E.sibling=j,E=j,T=N}if(P===v.length)return n(g,T),de&&Pr(g,P),C;if(T===null){for(;PP?(N=T,T=null):N=T.sibling;var _=h(g,T,j.value,S);if(_===null){T===null&&(T=N);break}e&&T&&_.alternate===null&&t(g,T),m=s(_,m,P),E===null?C=_:E.sibling=_,E=_,T=N}if(j.done)return n(g,T),de&&Pr(g,P),C;if(T===null){for(;!j.done;P++,j=v.next())j=f(g,j.value,S),j!==null&&(m=s(j,m,P),E===null?C=j:E.sibling=j,E=j);return de&&Pr(g,P),C}for(T=r(g,T);!j.done;P++,j=v.next())j=p(T,g,P,j.value,S),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?P:j.key),m=s(j,m,P),E===null?C=j:E.sibling=j,E=j);return e&&T.forEach(function(L){return t(g,L)}),de&&Pr(g,P),C}function w(g,m,v,S){if(typeof v=="object"&&v!==null&&v.type===hi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ko:e:{for(var C=v.key,E=m;E!==null;){if(E.key===C){if(C=v.type,C===hi){if(E.tag===7){n(g,E.sibling),m=i(E,v.props.children),m.return=g,g=m;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Fn&&$p(C)===E.type){n(g,E.sibling),m=i(E,v.props),m.ref=bs(g,E,v),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}v.type===hi?(m=$r(v.props.children,g.mode,S,v.key),m.return=g,g=m):(S=Ma(v.type,v.key,v.props,null,g.mode,S),S.ref=bs(g,m,v),S.return=g,g=S)}return o(g);case fi:e:{for(E=v.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=i(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Hc(v,g.mode,S),m.return=g,g=m}return o(g);case Fn:return E=v._init,w(g,m,E(v._payload),S)}if(Ms(v))return x(g,m,v,S);if(gs(v))return y(g,m,v,S);ra(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,v),m.return=g,g=m):(n(g,m),m=Wc(v,g.mode,S),m.return=g,g=m),o(g)):n(g,m)}return w}var Yi=Kv(!0),Gv=Kv(!1),ol=mr(null),al=null,bi=null,Of=null;function Df(){Of=bi=al=null}function Lf(e){var t=ol.current;ce(ol),e._currentValue=t}function Ju(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 Ni(e,t){al=e,Of=bi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},bi===null){if(al===null)throw Error(O(308));bi=e,al.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Rr=null;function If(e){Rr===null?Rr=[e]:Rr.push(e)}function Yv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,If(t)):(n.next=i.next,i.next=n),t.interleaved=n,Sn(e,r)}function Sn(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 Vn=!1;function _f(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qv(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Sn(e,n)}return i=r.interleaved,i===null?(t.next=t,If(r)):(t.next=i.next,i.next=t),r.interleaved=t,Sn(e,n)}function Pa(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,Sf(e,n)}}function Up(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ll(e,t,n,r){var i=e.updateQueue;Vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=c=l=null,a=s;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(h=t,p=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){f=x.call(p,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,h=typeof x=="function"?x.call(p,f,h):x,h==null)break e;f=ge({},f,h);break e;case 2:Vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Qr|=o,e.lanes=o,e.memoizedState=f}}function Wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vc.transition;Vc.transition={};try{e(!1),t()}finally{ne=n,Vc.transition=r}}function f0(){return Tt().memoizedState}function _C(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},h0(e))p0(t,n);else if(n=Yv(e,t,n,r),n!==null){var i=Ye();zt(n,e,r,i),m0(n,t,r)}}function FC(e,t,n){var r=rr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(h0(e))p0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,$t(a,o)){var l=t.interleaved;l===null?(i.next=i,If(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Yv(e,t,i,r),n!==null&&(i=Ye(),zt(n,e,r,i),m0(n,t,r))}}function h0(e){var t=e.alternate;return e===me||t!==null&&t===me}function p0(e,t){Bs=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sf(e,n)}}var dl={readContext:Ct,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},VC={readContext:Ct,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Kp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ja(4194308,4,a0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return ja(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();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=_C.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Hp,useDebugValue:Hf,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Hp(!1),t=e[0];return e=IC.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=Yt();if(de){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Re===null)throw Error(O(349));Yr&30||Jv(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Kp(t0.bind(null,r,s,e),[e]),r.flags|=2048,fo(9,e0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Re.identifierPrefix;if(de){var n=vn,r=yn;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=co++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[en]=t,e[oo]=r,E0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lu(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;iXi&&(t.flags|=128,r=!0,Ss(s,!1),t.lanes=4194304)}else{if(!r)if(e=cl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ss(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!de)return Ve(t),null}else 2*xe()-s.renderingStartTime>Xi&&n!==1073741824&&(t.flags|=128,r=!0,Ss(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xe(),t.sibling=null,n=he.current,oe(he,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return Xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?st&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function GC(e,t){switch(Nf(t),t.tag){case 1:return tt(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(),ce(et),ce($e),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vf(t),null;case 13:if(ce(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(he),null;case 4:return Qi(),null;case 10:return Lf(t.type._context),null;case 22:case 23:return Xf(),null;case 24:return null;default:return null}}var sa=!1,Be=!1,YC=typeof WeakSet=="function"?WeakSet:Set,F=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function ld(e,t,n){try{n()}catch(r){ve(e,t,r)}}var rm=!1;function QC(e,t){if(Hu=Za,e=Mv(),Af(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(a=o),h===s&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ku={focusedElem:e,selectionRange:n},Za=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,w=x.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Mt(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ve(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return x=rm,rm=!1,x}function $s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ld(t,n,s)}i=i.next}while(i!==r)}}function Wl(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 cd(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 j0(e){var t=e.alternate;t!==null&&(e.alternate=null,j0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[oo],delete t[Qu],delete t[NC],delete t[MC])),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 A0(e){return e.tag===5||e.tag===3||e.tag===4}function im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||A0(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 ud(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=tl));else if(r!==4&&(e=e.child,e!==null))for(ud(e,t,n),e=e.sibling;e!==null;)ud(e,t,n),e=e.sibling}function dd(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(dd(e,t,n),e=e.sibling;e!==null;)dd(e,t,n),e=e.sibling}var Ne=null,It=!1;function On(e,t,n){for(n=n.child;n!==null;)R0(e,t,n),n=n.sibling}function R0(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Be||Si(n,t);case 6:var r=Ne,i=It;Ne=null,On(e,t,n),Ne=r,It=i,Ne!==null&&(It?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(It?(e=Ne,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),to(e)):Ic(Ne,n.stateNode));break;case 4:r=Ne,i=It,Ne=n.stateNode.containerInfo,It=!0,On(e,t,n),Ne=r,It=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ld(n,t,o),i=i.next}while(i!==r)}On(e,t,n);break;case 1:if(!Be&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ve(n,t,a)}On(e,t,n);break;case 21:On(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,On(e,t,n),Be=r):On(e,t,n);break;default:On(e,t,n)}}function sm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YC),t.forEach(function(r){var i=iT.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XC(r/1960))-r,10e?16:e,Yn===null)var r=!1;else{if(e=Yn,Yn=null,pl=0,J&6)throw Error(O(331));var i=J;for(J|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lxe()-Qf?Br(e,0):Yf|=n),nt(e,t)}function F0(e,t){t===0&&(e.mode&1?(t=qo,qo<<=1,!(qo&130023424)&&(qo=4194304)):t=1);var n=Ye();e=Sn(e,t),e!==null&&(jo(e,t,n),nt(e,n))}function rT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),F0(e,n)}function iT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),F0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,HC(e,t,n);Je=!!(e.flags&131072)}else Je=!1,de&&t.flags&1048576&&Uv(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Aa(e,t),e=t.pendingProps;var i=Ki(t,$e.current);Ni(t,n),i=$f(null,t,r,e,i,n);var s=Uf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(s=!0,rl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_f(t),i.updater=Ul,t.stateNode=i,i._reactInternals=t,td(t,r,e,n),t=id(null,t,r,!0,s,n)):(t.tag=0,de&&s&&Rf(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Aa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=oT(r),e=Mt(r,e),i){case 0:t=rd(null,t,r,e,n);break e;case 1:t=em(null,t,r,e,n);break e;case 11:t=Zp(null,t,r,e,n);break e;case 14:t=Jp(null,t,r,Mt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),rd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),em(e,t,r,i,n);case 3:e:{if(S0(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Qv(e,t),ll(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qi(Error(O(423)),t),t=tm(e,t,r,n,i);break e}else if(r!==i){i=qi(Error(O(424)),t),t=tm(e,t,r,n,i);break e}else for(at=er(t.stateNode.containerInfo.firstChild),lt=t,de=!0,_t=null,n=Gv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gi(),r===i){t=Cn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return qv(t),e===null&&Zu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Gu(r,i)?o=null:s!==null&&Gu(r,s)&&(t.flags|=32),b0(e,t),We(e,t,o,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return C0(e,t,n);case 4:return Ff(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yi(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Zp(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,oe(ol,r._currentValue),r._currentValue=o,s!==null)if($t(s.value,o)){if(s.children===i.children&&!et.current){t=Cn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ju(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ju(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ni(t,n),i=Ct(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),Jp(e,t,r,i,n);case 15:return x0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),Aa(e,t),t.tag=1,tt(r)?(e=!0,rl(t)):e=!1,Ni(t,n),g0(t,r,i),td(t,r,i,n),id(null,t,r,!0,e,n);case 19:return T0(e,t,n);case 22:return w0(e,t,n)}throw Error(O(156,t.tag))};function z0(e,t){return hv(e,t)}function sT(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 xt(e,t,n,r){return new sT(e,t,n,r)}function Jf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oT(e){if(typeof e=="function")return Jf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vf)return 11;if(e===xf)return 14}return 2}function ir(e,t){var n=e.alternate;return n===null?(n=xt(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 Ma(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Jf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case hi:return $r(n.children,i,s,t);case yf:o=8,i|=8;break;case Eu:return e=xt(12,n,t,i|2),e.elementType=Eu,e.lanes=s,e;case Pu:return e=xt(13,n,t,i),e.elementType=Pu,e.lanes=s,e;case ku:return e=xt(19,n,t,i),e.elementType=ku,e.lanes=s,e;case qy:return Kl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yy:o=10;break e;case Qy:o=9;break e;case vf:o=11;break e;case xf:o=14;break e;case Fn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=xt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function $r(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function Kl(e,t,n,r){return e=xt(22,e,r,t),e.elementType=qy,e.lanes=n,e.stateNode={isHidden:!1},e}function Wc(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Hc(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aT(e,t,n,r,i){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=Ec(0),this.expirationTimes=Ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ec(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function eh(e,t,n,r,i,s,o,a,l){return e=new aT(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=xt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_f(s),e}function lT(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W0)}catch(e){console.error(e)}}W0(),Wy.exports=dt;var Mo=Wy.exports;const H0=Po(Mo);var K0,hm=Mo;K0=hm.createRoot,hm.hydrateRoot;var Xl=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(){}},Zl=typeof window>"u"||"Deno"in globalThis;function Ot(){}function hT(e,t){return typeof e=="function"?e(t):e}function pT(e){return typeof e=="number"&&e>=0&&e!==1/0}function mT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gd(e,t){return typeof e=="function"?e(t):e}function gT(e,t){return typeof e=="function"?e(t):e}function pm(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ih(o,t.options))return!1}else if(!mo(t.queryKey,o))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||i&&i!==t.state.fetchStatus||s&&!s(t))}function mm(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(po(t.options.mutationKey)!==po(s))return!1}else if(!mo(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ih(e,t){return((t==null?void 0:t.queryKeyHashFn)||po)(e)}function po(e){return JSON.stringify(e,(t,n)=>yd(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function mo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>mo(e[n],t[n])):!1}function G0(e,t){if(e===t)return e;const n=gm(e)&&gm(t);if(n||yd(e)&&yd(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let c=0;for(let d=0;d{setTimeout(t,e)})}function vT(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?G0(e,t):t}function xT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sh=Symbol();function Y0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===sh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Dr,$n,_i,Ty,bT=(Ty=class extends Xl{constructor(){super();ee(this,Dr);ee(this,$n);ee(this,_i);G(this,_i,t=>{if(!Zl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,$n)||this.setEventListener(R(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,$n))==null||t.call(this),G(this,$n,void 0))}setEventListener(t){var n;G(this,_i,t),(n=R(this,$n))==null||n.call(this),G(this,$n,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,Dr)!==t&&(G(this,Dr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,Dr)=="boolean"?R(this,Dr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Dr=new WeakMap,$n=new WeakMap,_i=new WeakMap,Ty),Q0=new bT,Fi,Un,Vi,Ey,ST=(Ey=class extends Xl{constructor(){super();ee(this,Fi,!0);ee(this,Un);ee(this,Vi);G(this,Vi,t=>{if(!Zl&&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(){R(this,Un)||this.setEventListener(R(this,Vi))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Un))==null||t.call(this),G(this,Un,void 0))}setEventListener(t){var n;G(this,Vi,t),(n=R(this,Un))==null||n.call(this),G(this,Un,t(this.setOnline.bind(this)))}setOnline(t){R(this,Fi)!==t&&(G(this,Fi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Fi)}},Fi=new WeakMap,Un=new WeakMap,Vi=new WeakMap,Ey),yl=new ST;function CT(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function TT(e){return Math.min(1e3*2**e,3e4)}function q0(e){return(e??"online")==="online"?yl.isOnline():!0}var X0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kc(e){return e instanceof X0}function Z0(e){let t=!1,n=0,r=!1,i;const s=CT(),o=y=>{var w;r||(h(new X0(y)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Q0.isFocused()&&(e.networkMode==="always"||yl.isOnline())&&e.canRun(),d=()=>q0(e.networkMode)&&e.canRun(),f=y=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,y),i==null||i(),s.resolve(y))},h=y=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,y),i==null||i(),s.reject(y))},p=()=>new Promise(y=>{var w;i=g=>{(r||c())&&y(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(r)return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(f).catch(g=>{var E;if(r)return;const m=e.retry??(Zl?0:3),v=e.retryDelay??TT,S=typeof v=="function"?v(n,g):v,C=m===!0||typeof m=="number"&&nc()?void 0:p()).then(()=>{t?h(g):x()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?x():p().then(x),s)}}var ET=e=>setTimeout(e,0);function PT(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=ET;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var He=PT(),Lr,Py,J0=(Py=class{constructor(){ee(this,Lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pT(this.gcTime)&&G(this,Lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zl?1/0:5*60*1e3))}clearGcTimeout(){R(this,Lr)&&(clearTimeout(R(this,Lr)),G(this,Lr,void 0))}},Lr=new WeakMap,Py),zi,Ir,gt,_r,ze,To,Fr,Dt,fn,ky,kT=(ky=class extends J0{constructor(t){super();ee(this,Dt);ee(this,zi);ee(this,Ir);ee(this,gt);ee(this,_r);ee(this,ze);ee(this,To);ee(this,Fr);G(this,Fr,!1),G(this,To,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,_r,t.client),G(this,gt,R(this,_r).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,zi,AT(this.options)),this.state=t.state??R(this,zi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...R(this,To),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,gt).remove(this)}setData(t,n){const r=vT(this.state.data,t,this.options);return _e(this,Dt,fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){_e(this,Dt,fn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=R(this,ze))==null?void 0:r.promise;return(i=R(this,ze))==null||i.cancel(t),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,zi))}isActive(){return this.observers.some(t=>gT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!mT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,gt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,ze)&&(R(this,Fr)?R(this,ze).cancel({revert:!0}):R(this,ze).cancelRetry()),this.scheduleGc()),R(this,gt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_e(this,Dt,fn).call(this,{type:"invalidate"})}fetch(t,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,ze))return R(this,ze).continueRetry(),R(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,Fr,!0),r.signal)})},s=()=>{const h=Y0(this.options,n),x=(()=>{const y={client:R(this,_r),queryKey:this.queryKey,meta:this.meta};return i(y),y})();return G(this,Fr,!1),this.options.persister?this.options.persister(h,x,this):h(x)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,_r),state:this.state,fetchFn:s};return i(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),G(this,Ir,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&_e(this,Dt,fn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,x,y,w;Kc(h)&&h.silent||_e(this,Dt,fn).call(this,{type:"error",error:h}),Kc(h)||((x=(p=R(this,gt).config).onError)==null||x.call(p,h,this),(w=(y=R(this,gt).config).onSettled)==null||w.call(y,this.state.data,h,this)),this.scheduleGc()};return G(this,ze,Z0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,x,y,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){l(g);return}(x=(p=R(this,gt).config).onSuccess)==null||x.call(p,h,this),(w=(y=R(this,gt).config).onSettled)==null||w.call(y,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{_e(this,Dt,fn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{_e(this,Dt,fn).call(this,{type:"pause"})},onContinue:()=>{_e(this,Dt,fn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,ze).start()}},zi=new WeakMap,Ir=new WeakMap,gt=new WeakMap,_r=new WeakMap,ze=new WeakMap,To=new WeakMap,Fr=new WeakMap,Dt=new WeakSet,fn=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,...jT(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,Ir,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kc(i)&&i.revert&&R(this,Ir)?{...R(this,Ir),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,gt).notify({query:this,type:"updated",action:t})})},ky);function jT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function AT(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 qt,jy,RT=(jy=class extends Xl{constructor(t={}){super();ee(this,qt);this.config=t,G(this,qt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ih(i,n);let o=this.get(s);return o||(o=new kT({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){R(this,qt).has(t.queryHash)||(R(this,qt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,qt).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,qt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,qt).get(t)}getAll(){return[...R(this,qt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>pm(t,r)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qt=new WeakMap,jy),Xt,Ue,Vr,Zt,In,Ay,NT=(Ay=class extends J0{constructor(t){super();ee(this,Zt);ee(this,Xt);ee(this,Ue);ee(this,Vr);this.mutationId=t.mutationId,G(this,Ue,t.mutationCache),G(this,Xt,[]),this.state=t.state||MT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Xt).includes(t)||(R(this,Xt).push(t),this.clearGcTimeout(),R(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Xt,R(this,Xt).filter(n=>n!==t)),this.scheduleGc(),R(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Xt).length||(this.state.status==="pending"?this.scheduleGc():R(this,Ue).remove(this))}continue(){var t;return((t=R(this,Vr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,c,d,f,h,p,x,y,w,g,m,v,S,C,E,T,P;const n=()=>{_e(this,Zt,In).call(this,{type:"continue"})};G(this,Vr,Z0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,j)=>{_e(this,Zt,In).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{_e(this,Zt,In).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Ue).canRun(this)}));const r=this.state.status==="pending",i=!R(this,Vr).canStart();try{if(r)n();else{_e(this,Zt,In).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=R(this,Ue).config).onMutate)==null?void 0:o.call(s,t,this));const j=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));j!==this.state.context&&_e(this,Zt,In).call(this,{type:"pending",context:j,variables:t,isPaused:i})}const N=await R(this,Vr).start();return await((d=(c=R(this,Ue).config).onSuccess)==null?void 0:d.call(c,N,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,N,t,this.state.context)),await((x=(p=R(this,Ue).config).onSettled)==null?void 0:x.call(p,N,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,N,null,t,this.state.context)),_e(this,Zt,In).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(g=R(this,Ue).config).onError)==null?void 0:m.call(g,N,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,N,t,this.state.context)),await((E=(C=R(this,Ue).config).onSettled)==null?void 0:E.call(C,void 0,N,this.state.variables,this.state.context,this)),await((P=(T=this.options).onSettled)==null?void 0:P.call(T,void 0,N,t,this.state.context)),N}finally{_e(this,Zt,In).call(this,{type:"error",error:N})}}finally{R(this,Ue).runNext(this)}}},Xt=new WeakMap,Ue=new WeakMap,Vr=new WeakMap,Zt=new WeakSet,In=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{R(this,Xt).forEach(r=>{r.onMutationUpdate(t)}),R(this,Ue).notify({mutation:this,type:"updated",action:t})})},Ay);function MT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gn,Lt,Eo,Ry,OT=(Ry=class extends Xl{constructor(t={}){super();ee(this,gn);ee(this,Lt);ee(this,Eo);this.config=t,G(this,gn,new Set),G(this,Lt,new Map),G(this,Eo,0)}build(t,n,r){const i=new NT({mutationCache:this,mutationId:++Wo(this,Eo)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){R(this,gn).add(t);const n=la(t);if(typeof n=="string"){const r=R(this,Lt).get(n);r?r.push(t):R(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,gn).delete(t)){const n=la(t);if(typeof n=="string"){const r=R(this,Lt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&R(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=la(t);if(typeof n=="string"){const r=R(this,Lt).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=la(t);if(typeof n=="string"){const i=(r=R(this,Lt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{R(this,gn).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,gn).clear(),R(this,Lt).clear()})}getAll(){return Array.from(R(this,gn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mm(n,r))}findAll(t={}){return this.getAll().filter(n=>mm(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ot))))}},gn=new WeakMap,Lt=new WeakMap,Eo=new WeakMap,Ry);function la(e){var t;return(t=e.options.scope)==null?void 0:t.id}function vm(e){return{onFetch:(t,n)=>{var d,f,h,p,x;const r=t.options,i=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=Y0(t.options,t.fetchOptions),m=async(v,S,C)=>{if(y)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const T=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return w(_),_})(),P=await g(T),{maxPages:N}=t.options,j=C?wT:xT;return{pages:j(v.pages,P,N),pageParams:j(v.pageParams,S,N)}};if(i&&s.length){const v=i==="backward",S=v?DT:xm,C={pages:s,pageParams:o},E=S(r,C);a=await m(C,E,v)}else{const v=e??s.length;do{const S=l===0?o[0]??r.initialPageParam:xm(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function xm(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 DT(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 ye,Wn,Hn,Bi,$i,Kn,Ui,Wi,Ny,LT=(Ny=class{constructor(e={}){ee(this,ye);ee(this,Wn);ee(this,Hn);ee(this,Bi);ee(this,$i);ee(this,Kn);ee(this,Ui);ee(this,Wi);G(this,ye,e.queryCache||new RT),G(this,Wn,e.mutationCache||new OT),G(this,Hn,e.defaultOptions||{}),G(this,Bi,new Map),G(this,$i,new Map),G(this,Kn,0)}mount(){Wo(this,Kn)._++,R(this,Kn)===1&&(G(this,Ui,Q0.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,ye).onFocus())})),G(this,Wi,yl.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,ye).onOnline())})))}unmount(){var e,t;Wo(this,Kn)._--,R(this,Kn)===0&&((e=R(this,Ui))==null||e.call(this),G(this,Ui,void 0),(t=R(this,Wi))==null||t.call(this),G(this,Wi,void 0))}isFetching(e){return R(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,ye).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,ye).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,ye).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=R(this,ye).get(r.queryHash),s=i==null?void 0:i.state.data,o=hT(t,s);if(o!==void 0)return R(this,ye).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>R(this,ye).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,ye).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,ye);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,ye);return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=He.batch(()=>R(this,ye).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e,t={}){return He.batch(()=>(R(this,ye).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=He.batch(()=>R(this,ye).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ot)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,ye).build(this,t);return n.isStaleByTime(gd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=vm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=vm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yl.isOnline()?R(this,Wn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,ye)}getMutationCache(){return R(this,Wn)}getDefaultOptions(){return R(this,Hn)}setDefaultOptions(e){G(this,Hn,e)}setQueryDefaults(e,t){R(this,Bi).set(po(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Bi).values()],n={};return t.forEach(r=>{mo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,$i).set(po(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,$i).values()],n={};return t.forEach(r=>{mo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Hn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ih(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Hn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,ye).clear(),R(this,Wn).clear()}},ye=new WeakMap,Wn=new WeakMap,Hn=new WeakMap,Bi=new WeakMap,$i=new WeakMap,Kn=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Ny),IT=b.createContext(void 0),_T=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(IT.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ex(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VT(){return Math.random().toString(36).substr(2,8)}function bm(e,t){return{usr:e.state,key:e.key,idx:t}}function vd(e,t,n,r){return n===void 0&&(n=null),go({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?os(t):t,{state:n,key:t&&t.key||r||VT()})}function vl(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 os(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 zT(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Qn.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(go({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=Qn.Pop;let w=d(),g=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:g})}function h(w,g){a=Qn.Push;let m=vd(y.location,w,g);c=d()+1;let v=bm(m,c),S=y.createHref(m);try{o.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}s&&l&&l({action:a,location:y.location,delta:1})}function p(w,g){a=Qn.Replace;let m=vd(y.location,w,g);c=d();let v=bm(m,c),S=y.createHref(m);o.replaceState(v,"",S),s&&l&&l({action:a,location:y.location,delta:0})}function x(w){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof w=="string"?w:vl(w);return m=m.replace(/ $/,"%20"),Ce(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return a},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(wm,f),l=w,()=>{i.removeEventListener(wm,f),l=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let g=x(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(w){return o.go(w)}};return y}var Sm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sm||(Sm={}));function BT(e,t,n){return n===void 0&&(n="/"),$T(e,t,n,!1)}function $T(e,t,n,r){let i=typeof t=="string"?os(t):t,s=oh(i.pathname||"/",n);if(s==null)return null;let o=tx(e);UT(o);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ce(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 c=sr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ce(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),tx(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:qT(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of nx(s.path))i(s,o,l)}),t}function nx(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=nx(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function UT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WT=/^:[\w-]+$/,HT=3,KT=2,GT=1,YT=10,QT=-2,Cm=e=>e==="*";function qT(e,t){let n=e.split("/"),r=n.length;return n.some(Cm)&&(r+=QT),t&&(r+=KT),n.filter(i=>!Cm(i)).reduce((i,s)=>i+(WT.test(s)?HT:s===""?GT:YT),r)}function XT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ZT(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a{let{paramName:h,isOptional:p}=d;if(h==="*"){let y=a[f]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[f];return p&&!x?c[h]=void 0:c[h]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function JT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ex(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ex(!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 oh(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)||"/"}function tE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?os(e):e;return{pathname:n?n.startsWith("/")?n:nE(n,t):t,search:sE(r),hash:oE(i)}}function nE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Gc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function rE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rx(e,t){let n=rE(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ix(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=os(e):(i=go({},e),Ce(!i.pathname||!i.pathname.includes("?"),Gc("?","pathname","search",i)),Ce(!i.pathname||!i.pathname.includes("#"),Gc("#","pathname","hash",i)),Ce(!i.search||!i.search.includes("#"),Gc("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=tE(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const sr=e=>e.join("/").replace(/\/\/+/g,"/"),iE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sx=["post","put","patch","delete"];new Set(sx);const lE=["get",...sx];new Set(lE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=ix(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:sr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,s,e])}const hE=b.createContext(null);function pE(e){let t=b.useContext(yr).outlet;return t&&b.createElement(hE.Provider,{value:e},t)}function lx(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(ei),{matches:i}=b.useContext(yr),{pathname:s}=ti(),o=JSON.stringify(rx(i,r.v7_relativeSplatPath));return b.useMemo(()=>ix(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function mE(e,t){return gE(e,t)}function gE(e,t,n,r){Oo()||Ce(!1);let{navigator:i}=b.useContext(ei),{matches:s}=b.useContext(yr),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=ti(),d;if(t){var f;let w=typeof t=="string"?os(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ce(!1),d=w}else d=c;let h=d.pathname||"/",p=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=BT(e,{pathname:p}),y=bE(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:sr([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:sr([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?b.createElement(Jl.Provider,{value:{location:yo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Qn.Pop}},y):y}function yE(){let e=EE(),t=aE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const vE=b.createElement(yE,null);class xE extends b.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?b.createElement(yr.Provider,{value:this.props.routeContext},b.createElement(ox.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wE(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(ah);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(yr.Provider,{value:t},r)}function bE(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,x=!1,y=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||vE,l&&(c<0&&h===0?(x=!0,w=null):c===h&&(x=!0,w=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),m=()=>{let v;return p?v=y:x?v=w:f.route.Component?v=b.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,b.createElement(wE,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(xE,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var cx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cx||{}),xl=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}(xl||{});function SE(e){let t=b.useContext(ah);return t||Ce(!1),t}function CE(e){let t=b.useContext(cE);return t||Ce(!1),t}function TE(e){let t=b.useContext(yr);return t||Ce(!1),t}function ux(e){let t=TE(),n=t.matches[t.matches.length-1];return n.route.id||Ce(!1),n.route.id}function EE(){var e;let t=b.useContext(ox),n=CE(xl.UseRouteError),r=ux(xl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function PE(){let{router:e}=SE(cx.UseNavigateStable),t=ux(xl.UseNavigateStable),n=b.useRef(!1);return ax(()=>{n.current=!0}),b.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,yo({fromRouteId:t},s)))},[e,t])}function kE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function jE(e){return pE(e.context)}function Gt(e){Ce(!1)}function AE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Qn.Pop,navigator:s,static:o=!1,future:a}=e;Oo()&&Ce(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:s,static:o,future:yo({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=os(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:x="default"}=r,y=b.useMemo(()=>{let w=oh(d,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:p,key:x},navigationType:i}},[l,d,f,h,p,x,i]);return y==null?null:b.createElement(ei.Provider,{value:c},b.createElement(Jl.Provider,{children:n,value:y}))}function RE(e){let{children:t,location:n}=e;return mE(xd(t),n)}new Promise(()=>{});function xd(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let s=[...t,i];if(r.type===b.Fragment){n.push.apply(n,xd(r.props.children,s));return}r.type!==Gt&&Ce(!1),!r.props.index||!r.props.children||Ce(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=xd(r.props.children,s)),n.push(o)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ME(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function OE(e,t){return e.button===0&&(!t||t==="_self")&&!ME(e)}const DE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LE="6";try{window.__reactRouterVersion=LE}catch{}const IE="startTransition",Em=$y[IE];function _E(e){let{basename:t,children:n,future:r,window:i}=e,s=b.useRef();s.current==null&&(s.current=FT({window:i,v5Compat:!0}));let o=s.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=b.useCallback(f=>{c&&Em?Em(()=>l(f)):l(f)},[l,c]);return b.useLayoutEffect(()=>o.listen(d),[o,d]),b.useEffect(()=>kE(r),[r]),b.createElement(AE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const FE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pe=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,h=NE(t,DE),{basename:p}=b.useContext(ei),x,y=!1;if(typeof c=="string"&&VE.test(c)&&(x=c,FE))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=oh(S.pathname,p);S.origin===v.origin&&C!=null?c=C+S.search+S.hash:y=!0}catch{}let w=uE(c,{relative:i}),g=zE(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:f});function m(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",wd({},h,{href:x||w,onClick:y||s?r:m,ref:n,target:l}))});var Pm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pm||(Pm={}));var km;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(km||(km={}));function zE(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=dE(),c=ti(),d=lx(e,{relative:o});return b.useCallback(f=>{if(OE(f,n)){f.preventDefault();let h=r!==void 0?r:vl(c)===vl(d);l(e,{replace:h,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,d,r,i,n,e,s,o,a])}var BE=typeof Element<"u",$E=typeof Map=="function",UE=typeof Set=="function",WE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Oa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}var s;if($E&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Oa(r.value[1],t.get(r.value[0])))return!1;return!0}if(UE&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(WE&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(BE&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Oa(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var HE=function(t,n){try{return Oa(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const KE=Po(HE);var GE=function(e,t,n,r,i,s,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,s,o,a],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},YE=GE;const jm=Po(YE);var QE=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(dx||{}),Yc={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Am=Object.values(dx),ec={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fx=Object.entries(ec).reduce((e,[t,n])=>(e[n]=t,e),{}),Ft="data-rh",Oi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Di=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},XE=e=>{let t=Di(e,"title");const n=Di(e,Oi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Di(e,Oi.DEFAULT_TITLE);return t||r||void 0},ZE=e=>Di(e,Oi.ON_CHANGE_CLIENT_STATE)||(()=>{}),Qc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),JE=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;sconsole&&typeof console.warn=="function"&&console.warn(e),Ts=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&eP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const o={};s.filter(l=>{let c;const d=Object.keys(l);for(let h=0;hi.push(l));const a=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:JE(["href"],e),bodyAttributes:Qc("bodyAttributes",e),defer:Di(e,Oi.DEFER),encode:Di(e,Oi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Qc("htmlAttributes",e),linkTags:Ts("link",["rel","href"],e),metaTags:Ts("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ts("noscript",["innerHTML"],e),onChangeClientState:ZE(e),scriptTags:Ts("script",["src","innerHTML"],e),styleTags:Ts("style",["cssText"],e),title:XE(e),titleAttributes:Qc("titleAttributes",e),prioritizeSeoTags:tP(e,Oi.PRIORITIZE_SEO_TAGS)}),hx=e=>Array.isArray(e)?e.join(""):e,rP=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(rP(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Rm=(e,t)=>({...e,[t]:void 0}),iP=["noscript","script","style"],bd=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),px=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),sP=(e,t,n,r)=>{const i=px(n),s=hx(t);return i?`<${e} ${Ft}="true" ${i}>${bd(s,r)}`:`<${e} ${Ft}="true">${bd(s,r)}`},oP=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,o=Object.keys(s).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof s[d]>"u"?d:`${d}="${bd(s[d],n)}"`;return c?`${c} ${f}`:f},""),a=s.innerHTML||s.cssText||"",l=iP.indexOf(e)===-1;return`${r}<${e} ${Ft}="true" ${o}${l?"/>":`>${a}`}`},""),mx=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=ec[r];return n[i||r]=e[r],n},t),aP=(e,t,n)=>{const r={key:t,[Ft]:!0},i=mx(n,r);return[M.createElement("title",i,t)]},Da=(e,t)=>t.map((n,r)=>{const i={key:r,[Ft]:!0};return Object.keys(n).forEach(s=>{const a=ec[s]||s;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[s]}),M.createElement(e,i)}),mt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>aP(e,t.title,t.titleAttributes),toString:()=>sP(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>mx(t),toString:()=>px(t)};default:return{toComponent:()=>Da(e,t),toString:()=>oP(e,t,n)}}},lP=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=qc(e,Yc.meta),s=qc(t,Yc.link),o=qc(n,Yc.script);return{priorityMethods:{toComponent:()=>[...Da("meta",i.priority),...Da("link",s.priority),...Da("script",o.priority)],toString:()=>`${mt("meta",i.priority,r)} ${mt("link",s.priority,r)} ${mt("script",o.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:o.default}},cP=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,p={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:p,linkTags:d,metaTags:f,scriptTags:h}=lP(e)),{priority:p,base:mt("base",t,r),bodyAttributes:mt("bodyAttributes",n,r),htmlAttributes:mt("htmlAttributes",i,r),link:mt("link",d,r),meta:mt("meta",f,r),noscript:mt("noscript",s,r),script:mt("script",h,r),style:mt("style",o,r),title:mt("title",{title:a,titleAttributes:l},r)}},Sd=cP,ca=[],lh=!!(typeof window<"u"&&window.document&&window.document.createElement),Cd=class{constructor(e,t){un(this,"instances",[]);un(this,"canUseDOM",lh);un(this,"context");un(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ca:this.instances,add:e=>{(this.canUseDOM?ca:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ca:this.instances).indexOf(e);(this.canUseDOM?ca:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Sd({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},uP=parseInt(M.version.split(".")[0],10),Td=uP>=19,dP={},gx=M.createContext(dP),zr,yx=(zr=class extends b.Component{constructor(n){super(n);un(this,"helmetData");Td?this.helmetData=null:this.helmetData=new Cd(this.props.context||{},zr.canUseDOM)}render(){return Td?M.createElement(M.Fragment,null,this.props.children):M.createElement(gx.Provider,{value:this.helmetData.value},this.props.children)}},un(zr,"canUseDOM",lh),zr),ui=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Ft}]`),i=[].slice.call(r),s=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText"){const d=a.cssText;l.appendChild(document.createTextNode(d))}else{const d=c,f=typeof a[d]>"u"?"":a[d];l.setAttribute(c,f)}l.setAttribute(Ft,"true"),i.some((c,d)=>(o=d,l.isEqualNode(c)))?i.splice(o,1):s.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),s.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:s}},Ed=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Ft),i=r?r.split(","):[],s=[...i],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const c=s.indexOf(a);c!==-1&&s.splice(c,1)}for(let a=s.length-1;a>=0;a-=1)n.removeAttribute(s[a]);i.length===s.length?n.removeAttribute(Ft):n.getAttribute(Ft)!==o.join(",")&&n.setAttribute(Ft,o.join(","))},fP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=hx(e)),Ed("title",t)},Nm=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:h}=e;Ed("body",r),Ed("html",i),fP(f,h);const p={baseTag:ui("base",n),linkTags:ui("link",s),metaTags:ui("meta",o),noscriptTags:ui("noscript",a),scriptTags:ui("script",c),styleTags:ui("style",d)},x={},y={};Object.keys(p).forEach(w=>{const{newTags:g,oldTags:m}=p[w];g.length&&(x[w]=g),m.length&&(y[w]=p[w].oldTags)}),t&&t(),l(e,x,y)},Es=null,hP=e=>{Es&&cancelAnimationFrame(Es),e.defer?Es=requestAnimationFrame(()=>{Nm(e,()=>{Es=null})}):(Nm(e),Es=null)},pP=hP,Mm=class extends b.Component{constructor(){super(...arguments);un(this,"rendered",!1)}shouldComponentUpdate(t){return!qE(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=nP(t.get().map(s=>{const{context:o,...a}=s.props;return a}));yx.canUseDOM?pP(i):Sd&&(r=Sd(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},La=[],Om=e=>{const t={};for(const n of Object.keys(e))t[fx[n]||n]=e[n];return t},Cr=e=>{const t={};for(const n of Object.keys(e)){const r=ec[n];t[r||n]=e[n]}return t},Dm=(e,t)=>{if(!lh)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],o=Object.keys(t);for(const a of s)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},Xc=()=>{const e={},t={};for(const n of La){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Om(r)),i&&Object.assign(t,Om(i))}Dm("html",e),Dm("body",t)},mP=class extends b.Component{componentDidMount(){La.push(this),Xc()}componentDidUpdate(){Xc()}componentWillUnmount(){const e=La.indexOf(this);e!==-1&&La.splice(e,1),Xc()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return M.createElement("title",Cr(t),e)}renderBase(){const{base:e}=this.props;return e?M.createElement("base",Cr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>M.createElement("meta",{key:n,...Cr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>M.createElement("link",{key:n,...Cr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Cr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),M.createElement("script",{key:n,...s})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,s=Cr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),M.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=Cr(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),M.createElement("noscript",{key:n,...s})})}render(){return M.createElement(M.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Cu,vx=(Cu=class extends b.Component{shouldComponentUpdate(e){return!KE(Rm(this.props,"helmetData"),Rm(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return jm(Am.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Am.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),jm(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return M.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,o=Object.keys(s).reduce((l,c)=>(l[fx[c]||c]=s[c],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Cd)){const i=r;r=new Cd(i.context,!0),delete n.helmetData}return Td?M.createElement(mP,{...n}):r?M.createElement(Mm,{...n,context:r.value}):M.createElement(gx.Consumer,null,i=>M.createElement(Mm,{...n,context:i}))}},un(Cu,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Cu),Lm=["light","dark"],gP="(prefers-color-scheme: dark)",yP=b.createContext(void 0),vP={setTheme:e=>{},themes:[]},xP=()=>{var e;return(e=b.useContext(yP))!=null?e:vP};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=i?Lm.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(x,y=!1,w=!0)=>{let g=o?o[x]:x,m=y?x+"|| ''":`'${g}'`,v="";return i&&w&&!y&&Lm.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?y||g?v+=`c.add(${m})`:v+="null":g&&(v+=`d[s](n,${m})`),v},p=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${gP}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var wP=e=>{switch(e){case"success":return CP;case"info":return EP;case"warning":return TP;case"error":return PP;default:return null}},bP=Array(12).fill(0),SP=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},bP.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),CP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),TP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),EP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),kP=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jP=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Pd=1,AP=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,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Pd++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,s,o=r.then(async l=>{if(s=["resolve",l],M.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(NP(l)&&!l.ok){i=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){i=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>s[0]==="reject"?c(s[1]):l(s[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Pd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Xe=new AP,RP=(e,t)=>{let n=(t==null?void 0:t.id)||Pd++;return Xe.addToast({title:e,...t,id:n}),n},NP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",MP=RP,OP=()=>Xe.toasts,DP=()=>Xe.getActiveToasts(),Zc=Object.assign(MP,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:OP,getToasts:DP});function LP(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))}LP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function ua(e){return e.label!==void 0}var IP=3,_P="32px",FP="16px",Im=4e3,VP=356,zP=14,BP=20,$P=200;function At(...e){return e.filter(Boolean).join(" ")}function UP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var WP=e=>{var t,n,r,i,s,o,a,l,c,d,f;let{invert:h,toast:p,unstyled:x,interacting:y,setHeights:w,visibleToasts:g,heights:m,index:v,toasts:S,expanded:C,removeToast:E,defaultRichColors:T,closeButton:P,style:N,cancelButtonStyle:j,actionButtonStyle:_,className:L="",descriptionClassName:U="",duration:D,position:W,gap:z,loadingIcon:H,expandByDefault:k,classNames:A,icons:I,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:B}=e,[q,Z]=M.useState(null),[we,Ie]=M.useState(null),[te,ri]=M.useState(!1),[kn,wr]=M.useState(!1),[jn,ii]=M.useState(!1),[An,Bo]=M.useState(!1),[mc,$o]=M.useState(!1),[gc,ps]=M.useState(0),[si,Zh]=M.useState(0),ms=M.useRef(p.duration||D||Im),Jh=M.useRef(null),br=M.useRef(null),Rb=v===0,Nb=v+1<=g,ht=p.type,oi=p.dismissible!==!1,Mb=p.className||"",Ob=p.descriptionClassName||"",Uo=M.useMemo(()=>m.findIndex(K=>K.toastId===p.id)||0,[m,p.id]),Db=M.useMemo(()=>{var K;return(K=p.closeButton)!=null?K:P},[p.closeButton,P]),ep=M.useMemo(()=>p.duration||D||Im,[p.duration,D]),yc=M.useRef(0),ai=M.useRef(0),tp=M.useRef(0),li=M.useRef(null),[Lb,Ib]=W.split("-"),np=M.useMemo(()=>m.reduce((K,re,ue)=>ue>=Uo?K:K+re.height,0),[m,Uo]),rp=jP(),_b=p.invert||h,vc=ht==="loading";ai.current=M.useMemo(()=>Uo*z+np,[Uo,np]),M.useEffect(()=>{ms.current=ep},[ep]),M.useEffect(()=>{ri(!0)},[]),M.useEffect(()=>{let K=br.current;if(K){let re=K.getBoundingClientRect().height;return Zh(re),w(ue=>[{toastId:p.id,height:re,position:p.position},...ue]),()=>w(ue=>ue.filter(Et=>Et.toastId!==p.id))}},[w,p.id]),M.useLayoutEffect(()=>{if(!te)return;let K=br.current,re=K.style.height;K.style.height="auto";let ue=K.getBoundingClientRect().height;K.style.height=re,Zh(ue),w(Et=>Et.find(Pt=>Pt.toastId===p.id)?Et.map(Pt=>Pt.toastId===p.id?{...Pt,height:ue}:Pt):[{toastId:p.id,height:ue,position:p.position},...Et])},[te,p.title,p.description,w,p.id]);let Rn=M.useCallback(()=>{wr(!0),ps(ai.current),w(K=>K.filter(re=>re.toastId!==p.id)),setTimeout(()=>{E(p)},$P)},[p,E,w,ai]);M.useEffect(()=>{if(p.promise&&ht==="loading"||p.duration===1/0||p.type==="loading")return;let K;return C||y||B&&rp?(()=>{if(tp.current{var re;(re=p.onAutoClose)==null||re.call(p,p),Rn()},ms.current)),()=>clearTimeout(K)},[C,y,p,ht,B,rp,Rn]),M.useEffect(()=>{p.delete&&Rn()},[Rn,p.delete]);function Fb(){var K,re,ue;return I!=null&&I.loading?M.createElement("div",{className:At(A==null?void 0:A.loader,(K=p==null?void 0:p.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":ht==="loading"},I.loading):H?M.createElement("div",{className:At(A==null?void 0:A.loader,(re=p==null?void 0:p.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":ht==="loading"},H):M.createElement(SP,{className:At(A==null?void 0:A.loader,(ue=p==null?void 0:p.classNames)==null?void 0:ue.loader),visible:ht==="loading"})}return M.createElement("li",{tabIndex:0,ref:br,className:At(L,Mb,A==null?void 0:A.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,A==null?void 0:A.default,A==null?void 0:A[ht],(n=p==null?void 0:p.classNames)==null?void 0:n[ht]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:T,"data-styled":!(p.jsx||p.unstyled||x),"data-mounted":te,"data-promise":!!p.promise,"data-swiped":mc,"data-removed":kn,"data-visible":Nb,"data-y-position":Lb,"data-x-position":Ib,"data-index":v,"data-front":Rb,"data-swiping":jn,"data-dismissible":oi,"data-type":ht,"data-invert":_b,"data-swipe-out":An,"data-swipe-direction":we,"data-expanded":!!(C||k&&te),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${kn?gc:ai.current}px`,"--initial-height":k?"auto":`${si}px`,...N,...p.style},onDragEnd:()=>{ii(!1),Z(null),li.current=null},onPointerDown:K=>{vc||!oi||(Jh.current=new Date,ps(ai.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(ii(!0),li.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,re,ue,Et;if(An||!oi)return;li.current=null;let Pt=Number(((K=br.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Nn=Number(((re=br.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Sr=new Date().getTime()-((ue=Jh.current)==null?void 0:ue.getTime()),kt=q==="x"?Pt:Nn,Mn=Math.abs(kt)/Sr;if(Math.abs(kt)>=BP||Mn>.11){ps(ai.current),(Et=p.onDismiss)==null||Et.call(p,p),Ie(q==="x"?Pt>0?"right":"left":Nn>0?"down":"up"),Rn(),Bo(!0),$o(!1);return}ii(!1),Z(null)},onPointerMove:K=>{var re,ue,Et,Pt;if(!li.current||!oi||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let Nn=K.clientY-li.current.y,Sr=K.clientX-li.current.x,kt=(ue=e.swipeDirections)!=null?ue:UP(W);!q&&(Math.abs(Sr)>1||Math.abs(Nn)>1)&&Z(Math.abs(Sr)>Math.abs(Nn)?"x":"y");let Mn={x:0,y:0};q==="y"?(kt.includes("top")||kt.includes("bottom"))&&(kt.includes("top")&&Nn<0||kt.includes("bottom")&&Nn>0)&&(Mn.y=Nn):q==="x"&&(kt.includes("left")||kt.includes("right"))&&(kt.includes("left")&&Sr<0||kt.includes("right")&&Sr>0)&&(Mn.x=Sr),(Math.abs(Mn.x)>0||Math.abs(Mn.y)>0)&&$o(!0),(Et=br.current)==null||Et.style.setProperty("--swipe-amount-x",`${Mn.x}px`),(Pt=br.current)==null||Pt.style.setProperty("--swipe-amount-y",`${Mn.y}px`)}},Db&&!p.jsx?M.createElement("button",{"aria-label":$,"data-disabled":vc,"data-close-button":!0,onClick:vc||!oi?()=>{}:()=>{var K;Rn(),(K=p.onDismiss)==null||K.call(p,p)},className:At(A==null?void 0:A.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(s=I==null?void 0:I.close)!=null?s:kP):null,p.jsx||b.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:M.createElement(M.Fragment,null,ht||p.icon||p.promise?M.createElement("div",{"data-icon":"",className:At(A==null?void 0:A.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Fb():null,p.type!=="loading"?p.icon||(I==null?void 0:I[ht])||wP(ht):null):null,M.createElement("div",{"data-content":"",className:At(A==null?void 0:A.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:At(A==null?void 0:A.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?M.createElement("div",{"data-description":"",className:At(U,Ob,A==null?void 0:A.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),b.isValidElement(p.cancel)?p.cancel:p.cancel&&ua(p.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||j,onClick:K=>{var re,ue;ua(p.cancel)&&oi&&((ue=(re=p.cancel).onClick)==null||ue.call(re,K),Rn())},className:At(A==null?void 0:A.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,b.isValidElement(p.action)?p.action:p.action&&ua(p.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||_,onClick:K=>{var re,ue;ua(p.action)&&((ue=(re=p.action).onClick)==null||ue.call(re,K),!K.defaultPrevented&&Rn())},className:At(A==null?void 0:A.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function _m(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function HP(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?FP:_P;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var KP=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:x=IP,toastOptions:y,dir:w=_m(),gap:g=zP,loadingIcon:m,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[E,T]=M.useState([]),P=M.useMemo(()=>Array.from(new Set([r].concat(E.filter(B=>B.position).map(B=>B.position)))),[E,r]),[N,j]=M.useState([]),[_,L]=M.useState(!1),[U,D]=M.useState(!1),[W,z]=M.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=M.useRef(null),k=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=M.useRef(null),I=M.useRef(!1),$=M.useCallback(B=>{T(q=>{var Z;return(Z=q.find(we=>we.id===B.id))!=null&&Z.delete||Xe.dismiss(B.id),q.filter(({id:we})=>we!==B.id)})},[]);return M.useEffect(()=>Xe.subscribe(B=>{if(B.dismiss){T(q=>q.map(Z=>Z.id===B.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{H0.flushSync(()=>{T(q=>{let Z=q.findIndex(we=>we.id===B.id);return Z!==-1?[...q.slice(0,Z),{...q[Z],...B},...q.slice(Z+1)]:[B,...q]})})})}),[]),M.useEffect(()=>{if(d!=="system"){z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:q})=>{z(q?"dark":"light")})}catch{B.addListener(({matches:Z})=>{try{z(Z?"dark":"light")}catch(we){console.error(we)}})}},[d]),M.useEffect(()=>{E.length<=1&&L(!1)},[E]),M.useEffect(()=>{let B=q=>{var Z,we;i.every(Ie=>q[Ie]||q.code===Ie)&&(L(!0),(Z=H.current)==null||Z.focus()),q.code==="Escape"&&(document.activeElement===H.current||(we=H.current)!=null&&we.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[i]),M.useEffect(()=>{if(H.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,I.current=!1)}},[H.current]),M.createElement("section",{ref:t,"aria-label":`${S} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,q)=>{var Z;let[we,Ie]=B.split("-");return E.length?M.createElement("ol",{key:B,dir:w==="auto"?_m():w,tabIndex:-1,ref:H,className:a,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":we,"data-lifted":_&&E.length>1&&!s,"data-x-position":Ie,style:{"--front-toast-height":`${((Z=N[0])==null?void 0:Z.height)||0}px`,"--width":`${VP}px`,"--gap":`${g}px`,...p,...HP(l,c)},onBlur:te=>{I.current&&!te.currentTarget.contains(te.relatedTarget)&&(I.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||I.current||(I.current=!0,A.current=te.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{U||L(!1)},onDragEnd:()=>L(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},E.filter(te=>!te.position&&q===0||te.position===B).map((te,ri)=>{var kn,wr;return M.createElement(WP,{key:te.id,icons:v,index:ri,toast:te,defaultRichColors:f,duration:(kn=y==null?void 0:y.duration)!=null?kn:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:x,closeButton:(wr=y==null?void 0:y.closeButton)!=null?wr:o,interacting:U,position:B,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:$,toasts:E.filter(jn=>jn.position==te.position),heights:N.filter(jn=>jn.position==te.position),setHeights:j,expandByDefault:s,gap:g,loadingIcon:m,expanded:_,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const GP=({...e})=>{const{theme:t="system"}=xP();return u.jsx(KP,{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})},YP=1,QP=1e6;let Jc=0;function qP(){return Jc=(Jc+1)%Number.MAX_SAFE_INTEGER,Jc.toString()}const eu=new Map,Fm=e=>{if(eu.has(e))return;const t=setTimeout(()=>{eu.delete(e),Hs({type:"REMOVE_TOAST",toastId:e})},QP);eu.set(e,t)},XP=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,YP)};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?Fm(n):e.toasts.forEach(r=>{Fm(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)}}},Ia=[];let _a={toasts:[]};function Hs(e){_a=XP(_a,e),Ia.forEach(t=>{t(_a)})}function ZP({...e}){const t=qP(),n=i=>Hs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Hs({type:"DISMISS_TOAST",toastId:t});return Hs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function JP(){const[e,t]=b.useState(_a);return b.useEffect(()=>(Ia.push(t),()=>{const n=Ia.indexOf(t);n>-1&&Ia.splice(n,1)}),[e]),{...e,toast:ZP,dismiss:n=>Hs({type:"DISMISS_TOAST",toastId:n})}}function ke(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Vm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xx(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Vm(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{var g;const{scope:h,children:p,...x}=f,y=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,w=b.useMemo(()=>x,Object.values(x));return u.jsx(y.Provider,{value:w,children:p})};c.displayName=s+"Provider";function d(f,h){var y;const p=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,x=b.useContext(p);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,ek(i,...t)]}function ek(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function kd(e){const t=tk(e),n=b.forwardRef((r,i)=>{const{children:s,...o}=r,a=b.Children.toArray(s),l=a.find(rk);if(l){const c=l.props.children,d=a.map(f=>f===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...o,ref:i,children:b.isValidElement(c)?b.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function tk(e){const t=b.forwardRef((n,r)=>{const{children:i,...s}=n;if(b.isValidElement(i)){const o=sk(i),a=ik(s,i.props);return i.type!==b.Fragment&&(a.ref=r?xx(r,o):o),b.cloneElement(i,a)}return b.Children.count(i)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wx=Symbol("radix.slottable");function nk(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=wx,t}function rk(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wx}function ik(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function sk(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ok(e){const t=e+"CollectionProvider",[n,r]=tc(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:w,children:g}=y,m=M.useRef(null),v=M.useRef(new Map).current;return u.jsx(i,{scope:w,itemMap:v,collectionRef:m,children:g})};o.displayName=t;const a=e+"CollectionSlot",l=kd(a),c=M.forwardRef((y,w)=>{const{scope:g,children:m}=y,v=s(a,g),S=Ut(w,v.collectionRef);return u.jsx(l,{ref:S,children:m})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=kd(d),p=M.forwardRef((y,w)=>{const{scope:g,children:m,...v}=y,S=M.useRef(null),C=Ut(w,S),E=s(d,g);return M.useEffect(()=>(E.itemMap.set(S,{ref:S,...v}),()=>void E.itemMap.delete(S))),u.jsx(h,{[f]:"",ref:C,children:m})});p.displayName=d;function x(y){const w=s(e+"CollectionConsumer",y);return M.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((E,T)=>v.indexOf(E.ref.current)-v.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},x,r]}var ak=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],it=ak.reduce((e,t)=>{const n=kd(`Primitive.${t}`),r=b.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bx(e,t){e&&Mo.flushSync(()=>e.dispatchEvent(t))}function lr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function lk(e,t=globalThis==null?void 0:globalThis.document){const n=lr(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ck="DismissableLayer",jd="dismissableLayer.update",uk="dismissableLayer.pointerDownOutside",dk="dismissableLayer.focusOutside",zm,Sx=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ch=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=b.useContext(Sx),[d,f]=b.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),x=Ut(t,T=>f(T)),y=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(w),m=d?y.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,S=m>=g,C=hk(T=>{const P=T.target,N=[...c.branches].some(j=>j.contains(P));!S||N||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},h),E=pk(T=>{const P=T.target;[...c.branches].some(j=>j.contains(P))||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},h);return lk(T=>{m===c.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),b.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(zm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Bm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=zm)}},[d,h,n,c]),b.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Bm())},[d,c]),b.useEffect(()=>{const T=()=>p({});return document.addEventListener(jd,T),()=>document.removeEventListener(jd,T)},[]),u.jsx(it.div,{...l,ref:x,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,C.onPointerDownCapture)})});ch.displayName=ck;var fk="DismissableLayerBranch",Cx=b.forwardRef((e,t)=>{const n=b.useContext(Sx),r=b.useRef(null),i=Ut(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(it.div,{...e,ref:i})});Cx.displayName=fk;function hk(e,t=globalThis==null?void 0:globalThis.document){const n=lr(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Tx(uk,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pk(e,t=globalThis==null?void 0:globalThis.document){const n=lr(e),r=b.useRef(!1);return b.useEffect(()=>{const i=s=>{s.target&&!r.current&&Tx(dk,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bm(){const e=new CustomEvent(jd);document.dispatchEvent(e)}function Tx(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?bx(i,s):i.dispatchEvent(s)}var mk=ch,gk=Cx,cr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},yk="Portal",Ex=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=b.useState(!1);cr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?H0.createPortal(u.jsx(it.div,{...r,ref:t}),o):null});Ex.displayName=yk;function vk(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var uh=e=>{const{present:t,children:n}=e,r=xk(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=Ut(r.ref,wk(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:s}):null};uh.displayName="Presence";function xk(e){const[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),s=b.useRef("none"),o=e?"mounted":"unmounted",[a,l]=vk(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=da(r.current);s.current=a==="mounted"?c:"none"},[a]),cr(()=>{const c=r.current,d=i.current;if(d!==e){const h=s.current,p=da(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),cr(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=p=>{const y=da(r.current).includes(p.animationName);if(p.target===t&&y&&(l("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=p=>{p.target===t&&(s.current=da(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function da(e){return(e==null?void 0:e.animationName)||"none"}function wk(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bk=$y[" useInsertionEffect ".trim().toString()]||cr;function Sk({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=Ck({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=b.useCallback(d=>{var f;if(a){const h=Tk(d)?d(e):d;h!==e&&((f=o.current)==null||f.call(o,h))}else s(d)},[a,e,s,o]);return[l,c]}function Ck({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),i=b.useRef(n),s=b.useRef(t);return bk(()=>{s.current=t},[t]),b.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function Tk(e){return typeof e=="function"}var Ek=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pk="VisuallyHidden",nc=b.forwardRef((e,t)=>u.jsx(it.span,{...e,ref:t,style:{...Ek,...e.style}}));nc.displayName=Pk;var kk=nc,dh="ToastProvider",[fh,jk,Ak]=ok("Toast"),[Px,tL]=tc("Toast",[Ak]),[Rk,rc]=Px(dh),kx=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=b.useState(null),[c,d]=b.useState(0),f=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${dh}\`. Expected non-empty \`string\`.`),u.jsx(fh.Provider,{scope:t,children:u.jsx(Rk,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>d(p=>p+1),[]),onToastRemove:b.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};kx.displayName=dh;var jx="ToastViewport",Nk=["F8"],Ad="toast.viewportPause",Rd="toast.viewportResume",Ax=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Nk,label:i="Notifications ({hotkey})",...s}=e,o=rc(jx,n),a=jk(n),l=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),h=Ut(t,f,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;b.useEffect(()=>{const w=g=>{var v;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=l.current,g=f.current;if(x&&w&&g){const m=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Ad);g.dispatchEvent(E),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Rd);g.dispatchEvent(E),o.isClosePausedRef.current=!1}},S=E=>{!w.contains(E.relatedTarget)&&v()},C=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[x,o.isClosePausedRef]);const y=b.useCallback(({tabbingDirection:w})=>{const m=a().map(v=>{const S=v.ref.current,C=[S,...Wk(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return b.useEffect(()=>{const w=f.current;if(w){const g=m=>{var C,E,T;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const P=document.activeElement,N=m.shiftKey;if(m.target===w&&N){(C=c.current)==null||C.focus();return}const L=y({tabbingDirection:N?"backwards":"forwards"}),U=L.findIndex(D=>D===P);tu(L.slice(U+1))?m.preventDefault():N?(E=c.current)==null||E.focus():(T=d.current)==null||T.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,y]),u.jsxs(gk,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(Nd,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});tu(w)}}),u.jsx(fh.Slot,{scope:n,children:u.jsx(it.ol,{tabIndex:-1,...s,ref:h})}),x&&u.jsx(Nd,{ref:d,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});tu(w)}})]})});Ax.displayName=jx;var Rx="ToastFocusProxy",Nd=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=rc(Rx,n);return u.jsx(nc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});Nd.displayName=Rx;var Do="Toast",Mk="toast.swipeStart",Ok="toast.swipeMove",Dk="toast.swipeCancel",Lk="toast.swipeEnd",Nx=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=Sk({prop:r,defaultProp:i??!0,onChange:s,caller:Do});return u.jsx(uh,{present:n||a,children:u.jsx(Fk,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:lr(e.onPause),onResume:lr(e.onResume),onSwipeStart:ke(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ke(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ke(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ke(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Nx.displayName=Do;var[Ik,_k]=Px(Do,{onClose(){}}),Fk=b.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...x}=e,y=rc(Do,n),[w,g]=b.useState(null),m=Ut(t,D=>g(D)),v=b.useRef(null),S=b.useRef(null),C=i||y.duration,E=b.useRef(0),T=b.useRef(C),P=b.useRef(0),{onToastAdd:N,onToastRemove:j}=y,_=lr(()=>{var W;(w==null?void 0:w.contains(document.activeElement))&&((W=y.viewport)==null||W.focus()),o()}),L=b.useCallback(D=>{!D||D===1/0||(window.clearTimeout(P.current),E.current=new Date().getTime(),P.current=window.setTimeout(_,D))},[_]);b.useEffect(()=>{const D=y.viewport;if(D){const W=()=>{L(T.current),c==null||c()},z=()=>{const H=new Date().getTime()-E.current;T.current=T.current-H,window.clearTimeout(P.current),l==null||l()};return D.addEventListener(Ad,z),D.addEventListener(Rd,W),()=>{D.removeEventListener(Ad,z),D.removeEventListener(Rd,W)}}},[y.viewport,C,l,c,L]),b.useEffect(()=>{s&&!y.isClosePausedRef.current&&L(C)},[s,C,y.isClosePausedRef,L]),b.useEffect(()=>(N(),()=>j()),[N,j]);const U=b.useMemo(()=>w?Fx(w):null,[w]);return y.viewport?u.jsxs(u.Fragment,{children:[U&&u.jsx(Vk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),u.jsx(Ik,{scope:n,onClose:_,children:Mo.createPortal(u.jsx(fh.ItemSlot,{scope:n,children:u.jsx(mk,{asChild:!0,onEscapeKeyDown:ke(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||_(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(it.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ke(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:ke(e.onPointerDown,D=>{D.button===0&&(v.current={x:D.clientX,y:D.clientY})}),onPointerMove:ke(e.onPointerMove,D=>{if(!v.current)return;const W=D.clientX-v.current.x,z=D.clientY-v.current.y,H=!!S.current,k=["left","right"].includes(y.swipeDirection),A=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=k?A(0,W):0,$=k?0:A(0,z),B=D.pointerType==="touch"?10:2,q={x:I,y:$},Z={originalEvent:D,delta:q};H?(S.current=q,fa(Ok,f,Z,{discrete:!1})):$m(q,y.swipeDirection,B)?(S.current=q,fa(Mk,d,Z,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(W)>B||Math.abs(z)>B)&&(v.current=null)}),onPointerUp:ke(e.onPointerUp,D=>{const W=S.current,z=D.target;if(z.hasPointerCapture(D.pointerId)&&z.releasePointerCapture(D.pointerId),S.current=null,v.current=null,W){const H=D.currentTarget,k={originalEvent:D,delta:W};$m(W,y.swipeDirection,y.swipeThreshold)?fa(Lk,p,k,{discrete:!0}):fa(Dk,h,k,{discrete:!0}),H.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Vk=e=>{const{__scopeToast:t,children:n,...r}=e,i=rc(Do,t),[s,o]=b.useState(!1),[a,l]=b.useState(!1);return $k(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(Ex,{asChild:!0,children:u.jsx(nc,{...r,children:s&&u.jsxs(u.Fragment,{children:[i.label," ",n]})})})},zk="ToastTitle",Mx=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(it.div,{...r,ref:t})});Mx.displayName=zk;var Bk="ToastDescription",Ox=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(it.div,{...r,ref:t})});Ox.displayName=Bk;var Dx="ToastAction",Lx=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(_x,{altText:n,asChild:!0,children:u.jsx(hh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Dx}\`. Expected non-empty \`string\`.`),null)});Lx.displayName=Dx;var Ix="ToastClose",hh=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=_k(Ix,n);return u.jsx(_x,{asChild:!0,children:u.jsx(it.button,{type:"button",...r,ref:t,onClick:ke(e.onClick,i.onClose)})})});hh.displayName=Ix;var _x=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return u.jsx(it.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Fx(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Uk(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Fx(r))}}),t}function fa(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?bx(i,s):i.dispatchEvent(s)}var $m=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function $k(e=()=>{}){const t=lr(e);cr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Uk(e){return e.nodeType===e.ELEMENT_NODE}function Wk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Hk=kx,Vx=Ax,zx=Nx,Bx=Mx,$x=Ox,Ux=Lx,Wx=hh;function Hx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Wm=Kx,Kk=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],f=s==null?void 0:s[c];if(d===null)return null;const h=Um(d)||Um(f);return i[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(x=>{let[y,w]=x;return Array.isArray(w)?w.includes({...s,...a}[y]):{...s,...a}[y]===w})?[...c,f,h]:c},[]);return Wm(e,o,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 Gk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gx=(...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 Yk={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 Qk=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...Yk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gx("lucide",i),...a},[...o.map(([c,d])=>b.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Te=(e,t)=>{const n=b.forwardRef(({className:r,...i},s)=>b.createElement(Qk,{ref:s,iconNode:t,className:Gx(`lucide-${Gk(e)}`,r),...i}));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 Ur=Te("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 ph=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hm=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yx=Te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qx=Te("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** * @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 qk=Te("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** * @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 Xk=Te("HeartPulse",[["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"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/** * @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 qx=Te("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 Xx=Te("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @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 Zk=Te("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @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 Zx=Te("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 Jx=Te("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @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 Jk=Te("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 ew=Te("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @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 ej=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tj=Te("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nj=Te("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rj=Te("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @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 tw=Te("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @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 nw=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),mh="-",ij=e=>{const t=oj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(mh);return a[0]===""&&a.length!==1&&a.shift(),rw(a,t)||sj(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},rw=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?rw(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(mh);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Km=/^\[(.+)\]$/,sj=e=>{if(Km.test(e)){const t=Km.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return lj(Object.entries(e.classGroups),n).forEach(([s,o])=>{Md(o,r,s,t)}),r},Md=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Gm(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(aj(i)){Md(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Md(o,Gm(t,s),n,r)})})},Gm=(e,t)=>{let n=e;return t.split(mh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},aj=e=>e.isThemeGetter,lj=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,cj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},iw="!",uj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,d=0,f;for(let w=0;wd?f-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},dj=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},fj=e=>({cache:cj(e.cacheSize),parseClassName:uj(e),...ij(e)}),hj=/\s+/,pj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(hj);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=n(c);let x=!!p,y=r(x?h.substring(0,p):h);if(!y){if(!x){a=c+(a.length>0?" "+a:a);continue}if(y=r(h),!y){a=c+(a.length>0?" "+a:a);continue}x=!1}const w=dj(d).join(":"),g=f?w+iw:w,m=g+y;if(s.includes(m))continue;s.push(m);const v=i(y,x);for(let S=0;S0?" "+a:a)}return a};function mj(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=fj(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=pj(l,n);return i(l,d),d}return function(){return s(mj.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ow=/^\[(?:([a-z-]+):)?(.+)\]$/i,yj=/^\d+\/\d+$/,vj=new Set(["px","full","screen"]),xj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wj=/\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$/,bj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>Li(e)||vj.has(e)||yj.test(e),Dn=e=>as(e,"length",Nj),Li=e=>!!e&&!Number.isNaN(Number(e)),nu=e=>as(e,"number",Li),Ps=e=>!!e&&Number.isInteger(Number(e)),Tj=e=>e.endsWith("%")&&Li(e.slice(0,-1)),Q=e=>ow.test(e),Ln=e=>xj.test(e),Ej=new Set(["length","size","percentage"]),Pj=e=>as(e,Ej,aw),kj=e=>as(e,"position",aw),jj=new Set(["image","url"]),Aj=e=>as(e,jj,Oj),Rj=e=>as(e,"",Mj),ks=()=>!0,as=(e,t,n)=>{const r=ow.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Nj=e=>wj.test(e)&&!bj.test(e),aw=()=>!1,Mj=e=>Sj.test(e),Oj=e=>Cj.test(e),Dj=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),i=ae("borderColor"),s=ae("borderRadius"),o=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),c=ae("grayscale"),d=ae("hueRotate"),f=ae("invert"),h=ae("gap"),p=ae("gradientColorStops"),x=ae("gradientColorStopPositions"),y=ae("inset"),w=ae("margin"),g=ae("opacity"),m=ae("padding"),v=ae("saturate"),S=ae("scale"),C=ae("sepia"),E=ae("skew"),T=ae("space"),P=ae("translate"),N=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",Q,t],L=()=>[Q,t],U=()=>["",dn,Dn],D=()=>["auto",Li,Q],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",Q],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Li,Q];return{cacheSize:500,separator:":",theme:{colors:[ks],spacing:[dn,Dn],blur:["none","",Ln,Q],brightness:$(),borderColor:[e],borderRadius:["none","","full",Ln,Q],borderSpacing:L(),borderWidth:U(),contrast:$(),grayscale:A(),hueRotate:$(),invert:A(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[Tj,Dn],inset:_(),margin:_(),opacity:$(),padding:L(),saturate:$(),scale:$(),sepia:A(),skew:$(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[Ln]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...W(),Q]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ps,Q]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Ps,Q]}],"grid-cols":[{"grid-cols":[ks]}],"col-start-end":[{col:["auto",{span:["full",Ps,Q]},Q]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[ks]}],"row-start-end":[{row:["auto",{span:[Ps,Q]},Q]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[Ln]},Ln]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ln,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nu]}],"font-family":[{font:[ks]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",Li,nu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dn,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dn,Dn]}],"underline-offset":[{"underline-offset":["auto",dn,Q]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),kj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Aj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"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":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[dn,Q]}],"outline-w":[{outline:[dn,Dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[dn,Dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ln,Rj]}],"shadow-color":[{shadow:[ks]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ln,Q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],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":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ps,Q]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],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",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dn,Dn,nu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Lj=gj(Dj);function ni(...e){return Lj(Kx(e))}const Ij=Hk,lw=b.forwardRef(({className:e,...t},n)=>u.jsx(Vx,{ref:n,className:ni("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}));lw.displayName=Vx.displayName;const _j=Kk("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"}}),cw=b.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(zx,{ref:r,className:ni(_j({variant:t}),e),...n}));cw.displayName=zx.displayName;const Fj=b.forwardRef(({className:e,...t},n)=>u.jsx(Ux,{ref:n,className:ni("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Fj.displayName=Ux.displayName;const uw=b.forwardRef(({className:e,...t},n)=>u.jsx(Wx,{ref:n,className:ni("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(nw,{className:"h-4 w-4"})}));uw.displayName=Wx.displayName;const dw=b.forwardRef(({className:e,...t},n)=>u.jsx(Bx,{ref:n,className:ni("text-sm font-semibold",e),...t}));dw.displayName=Bx.displayName;const fw=b.forwardRef(({className:e,...t},n)=>u.jsx($x,{ref:n,className:ni("text-sm opacity-90",e),...t}));fw.displayName=$x.displayName;function Vj(){const{toasts:e}=JP();return u.jsxs(Ij,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return u.jsxs(cw,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(dw,{children:n}),r&&u.jsx(fw,{children:r})]}),i,u.jsx(uw,{})]},t)}),u.jsx(lw,{})]})}const zj=["top","right","bottom","left"],ur=Math.min,ot=Math.max,wl=Math.round,ha=Math.floor,sn=e=>({x:e,y:e}),Bj={left:"right",right:"left",bottom:"top",top:"bottom"},$j={start:"end",end:"start"};function Od(e,t,n){return ot(e,ur(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function ls(e){return e.split("-")[1]}function gh(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}const Uj=new Set(["top","bottom"]);function tn(e){return Uj.has(En(e))?"y":"x"}function vh(e){return gh(tn(e))}function Wj(e,t,n){n===void 0&&(n=!1);const r=ls(e),i=vh(e),s=yh(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=bl(o)),[o,bl(o)]}function Hj(e){const t=bl(e);return[Dd(e),t,Dd(t)]}function Dd(e){return e.replace(/start|end/g,t=>$j[t])}const Ym=["left","right"],Qm=["right","left"],Kj=["top","bottom"],Gj=["bottom","top"];function Yj(e,t,n){switch(e){case"top":case"bottom":return n?t?Qm:Ym:t?Ym:Qm;case"left":case"right":return t?Kj:Gj;default:return[]}}function Qj(e,t,n,r){const i=ls(e);let s=Yj(En(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Dd)))),s}function bl(e){return e.replace(/left|right|bottom|top/g,t=>Bj[t])}function qj(e){return{top:0,right:0,bottom:0,left:0,...e}}function hw(e){return typeof e!="number"?qj(e):{top:e,right:e,bottom:e,left:e}}function Sl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function qm(e,t,n){let{reference:r,floating:i}=e;const s=tn(t),o=vh(t),a=yh(o),l=En(t),c=s==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(ls(t)){case"start":p[o]-=h*(n&&c?-1:1);break;case"end":p[o]+=h*(n&&c?-1:1);break}return p}const Xj=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=qm(c,r,l),h=r,p={},x=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Tn(e,t)||{};if(c==null)return{};const f=hw(d),h={x:n,y:r},p=vh(i),x=yh(p),y=await o.getDimensions(c),w=p==="y",g=w?"top":"left",m=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[p]-h[p]-s.floating[x],C=h[p]-s.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let T=E?E[v]:0;(!T||!await(o.isElement==null?void 0:o.isElement(E)))&&(T=a.floating[v]||s.floating[x]);const P=S/2-C/2,N=T/2-y[x]/2-1,j=ur(f[g],N),_=ur(f[m],N),L=j,U=T-y[x]-_,D=T/2-y[x]/2+P,W=Od(L,D,U),z=!l.arrow&&ls(i)!=null&&D!==W&&s.reference[x]/2-(DD<=0)){var _,L;const D=(((_=s.flip)==null?void 0:_.index)||0)+1,W=T[D];if(W&&(!(f==="alignment"?m!==tn(W):!1)||j.every(k=>k.overflows[0]>0&&tn(k.placement)===m)))return{data:{index:D,overflows:j},reset:{placement:W}};let z=(L=j.filter(H=>H.overflows[0]<=0).sort((H,k)=>H.overflows[1]-k.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(p){case"bestFit":{var U;const H=(U=j.filter(k=>{if(E){const A=tn(k.placement);return A===m||A==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(A=>A>0).reduce((A,I)=>A+I,0)]).sort((k,A)=>k[1]-A[1])[0])==null?void 0:U[0];H&&(z=H);break}case"initialPlacement":z=a;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function Xm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zm(e){return zj.some(t=>e[t]>=0)}const e2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Tn(e,t);switch(r){case"referenceHidden":{const s=await vo(t,{...i,elementContext:"reference"}),o=Xm(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Zm(o)}}}case"escaped":{const s=await vo(t,{...i,altBoundary:!0}),o=Xm(s,n.floating);return{data:{escapedOffsets:o,escaped:Zm(o)}}}default:return{}}}}},pw=new Set(["left","top"]);async function t2(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=En(n),a=ls(n),l=tn(n)==="y",c=pw.has(o)?-1:1,d=s&&l?-1:1,f=Tn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof x=="number"&&(p=a==="end"?x*-1:x),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}const n2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await t2(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},r2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x:g,y:m}=w;return{x:g,y:m}}},...l}=Tn(e,t),c={x:n,y:r},d=await vo(t,l),f=tn(En(i)),h=gh(f);let p=c[h],x=c[f];if(s){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=p+d[w],v=p-d[g];p=Od(m,p,v)}if(o){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=x+d[w],v=x-d[g];x=Od(m,x,v)}const y=a.fn({...t,[h]:p,[f]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:s,[f]:o}}}}}},i2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Tn(e,t),d={x:n,y:r},f=tn(i),h=gh(f);let p=d[h],x=d[f];const y=Tn(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=h==="y"?"height":"width",S=s.reference[h]-s.floating[v]+w.mainAxis,C=s.reference[h]+s.reference[v]-w.mainAxis;pC&&(p=C)}if(c){var g,m;const v=h==="y"?"width":"height",S=pw.has(En(i)),C=s.reference[f]-s.floating[v]+(S&&((g=o.offset)==null?void 0:g[f])||0)+(S?0:w.crossAxis),E=s.reference[f]+s.reference[v]+(S?0:((m=o.offset)==null?void 0:m[f])||0)-(S?w.crossAxis:0);xE&&(x=E)}return{[h]:p,[f]:x}}}},s2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Tn(e,t),d=await vo(t,c),f=En(i),h=ls(i),p=tn(i)==="y",{width:x,height:y}=s.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,w=h==="end"?"top":"bottom");const m=y-d.top-d.bottom,v=x-d.left-d.right,S=ur(y-d[w],m),C=ur(x-d[g],v),E=!t.middlewareData.shift;let T=S,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=m),E&&!h){const j=ot(d.left,0),_=ot(d.right,0),L=ot(d.top,0),U=ot(d.bottom,0);p?P=x-2*(j!==0||_!==0?j+_:ot(d.left,d.right)):T=y-2*(L!==0||U!==0?L+U:ot(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:T});const N=await o.getDimensions(a.floating);return x!==N.width||y!==N.height?{reset:{rects:!0}}:{}}}};function ic(){return typeof window<"u"}function cs(e){return mw(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cn(e){var t;return(t=(mw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mw(e){return ic()?e instanceof Node||e instanceof ct(e).Node:!1}function Wt(e){return ic()?e instanceof Element||e instanceof ct(e).Element:!1}function an(e){return ic()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Jm(e){return!ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const o2=new Set(["inline","contents"]);function Lo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!o2.has(i)}const a2=new Set(["table","td","th"]);function l2(e){return a2.has(cs(e))}const c2=[":popover-open",":modal"];function sc(e){return c2.some(t=>{try{return e.matches(t)}catch{return!1}})}const u2=["transform","translate","scale","rotate","perspective"],d2=["transform","translate","scale","rotate","perspective","filter"],f2=["paint","layout","strict","content"];function xh(e){const t=wh(),n=Wt(e)?Ht(e):e;return u2.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||d2.some(r=>(n.willChange||"").includes(r))||f2.some(r=>(n.contain||"").includes(r))}function h2(e){let t=dr(e);for(;an(t)&&!Zi(t);){if(xh(t))return t;if(sc(t))return null;t=dr(t)}return null}function wh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const p2=new Set(["html","body","#document"]);function Zi(e){return p2.has(cs(e))}function Ht(e){return ct(e).getComputedStyle(e)}function oc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jm(e)&&e.host||cn(e);return Jm(t)?t.host:t}function gw(e){const t=dr(e);return Zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&Lo(t)?t:gw(t)}function xo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=gw(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ct(i);if(s){const a=Ld(o);return t.concat(o,o.visualViewport||[],Lo(i)?i:[],a&&n?xo(a):[])}return t.concat(i,xo(i,[],n))}function Ld(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yw(e){const t=Ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=an(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=wl(n)!==s||wl(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function bh(e){return Wt(e)?e:e.contextElement}function Ii(e){const t=bh(e);if(!an(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=yw(t);let o=(s?wl(n.width):n.width)/r,a=(s?wl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const m2=sn(0);function vw(e){const t=ct(e);return!wh()||!t.visualViewport?m2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=bh(e);let o=sn(1);t&&(r?Wt(r)&&(o=Ii(r)):o=Ii(e));const a=g2(s,n,r)?vw(s):sn(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(s){const h=ct(s),p=r&&Wt(r)?ct(r):r;let x=h,y=Ld(x);for(;y&&r&&p!==x;){const w=Ii(y),g=y.getBoundingClientRect(),m=Ht(y),v=g.left+(y.clientLeft+parseFloat(m.paddingLeft))*w.x,S=g.top+(y.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,c*=w.y,d*=w.x,f*=w.y,l+=v,c+=S,x=ct(y),y=Ld(x)}}return Sl({width:d,height:f,x:l,y:c})}function Sh(e,t){const n=oc(e).scrollLeft;return t?t.left+n:Xr(cn(e)).left+n}function xw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Sh(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function y2(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=cn(r),a=t?sc(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=sn(1);const d=sn(0),f=an(r);if((f||!f&&!s)&&((cs(r)!=="body"||Lo(o))&&(l=oc(r)),an(r))){const p=Xr(r);c=Ii(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=o&&!f&&!s?xw(o,l,!0):sn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function v2(e){return Array.from(e.getClientRects())}function x2(e){const t=cn(e),n=oc(e),r=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Sh(e);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(o+=ot(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function w2(e,t){const n=ct(e),r=cn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=wh();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const b2=new Set(["absolute","fixed"]);function S2(e,t){const n=Xr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=an(e)?Ii(e):sn(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function eg(e,t,n){let r;if(t==="viewport")r=w2(e,n);else if(t==="document")r=x2(cn(e));else if(Wt(t))r=S2(t,n);else{const i=vw(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sl(r)}function ww(e,t){const n=dr(e);return n===t||!Wt(n)||Zi(n)?!1:Ht(n).position==="fixed"||ww(n,t)}function C2(e,t){const n=t.get(e);if(n)return n;let r=xo(e,[],!1).filter(a=>Wt(a)&&cs(a)!=="body"),i=null;const s=Ht(e).position==="fixed";let o=s?dr(e):e;for(;Wt(o)&&!Zi(o);){const a=Ht(o),l=xh(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&b2.has(i.position)||Lo(o)&&!l&&ww(e,o))?r=r.filter(d=>d!==o):i=a,o=dr(o)}return t.set(e,r),r}function T2(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sc(t)?[]:C2(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,d)=>{const f=eg(t,d,i);return c.top=ot(f.top,c.top),c.right=ur(f.right,c.right),c.bottom=ur(f.bottom,c.bottom),c.left=ot(f.left,c.left),c},eg(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function E2(e){const{width:t,height:n}=yw(e);return{width:t,height:n}}function P2(e,t,n){const r=an(t),i=cn(t),s=n==="fixed",o=Xr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=sn(0);function c(){l.x=Sh(i)}if(r||!r&&!s)if((cs(t)!=="body"||Lo(i))&&(a=oc(t)),r){const p=Xr(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();s&&!r&&i&&c();const d=i&&!r&&!s?xw(i,a):sn(0),f=o.left+a.scrollLeft-l.x-d.x,h=o.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function ru(e){return Ht(e).position==="static"}function tg(e,t){if(!an(e)||Ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cn(e)===n&&(n=n.ownerDocument.body),n}function bw(e,t){const n=ct(e);if(sc(e))return n;if(!an(e)){let i=dr(e);for(;i&&!Zi(i);){if(Wt(i)&&!ru(i))return i;i=dr(i)}return n}let r=tg(e,t);for(;r&&l2(r)&&ru(r);)r=tg(r,t);return r&&Zi(r)&&ru(r)&&!xh(r)?n:r||h2(e)||n}const k2=async function(e){const t=this.getOffsetParent||bw,n=this.getDimensions,r=await n(e.floating);return{reference:P2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function j2(e){return Ht(e).direction==="rtl"}const A2={convertOffsetParentRelativeRectToViewportRelativeRect:y2,getDocumentElement:cn,getClippingRect:T2,getOffsetParent:bw,getElementRects:k2,getClientRects:v2,getDimensions:E2,getScale:Ii,isElement:Wt,isRTL:j2};function Sw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function R2(e,t){let n=null,r;const i=cn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(a||t(),!h||!p)return;const x=ha(f),y=ha(i.clientWidth-(d+h)),w=ha(i.clientHeight-(f+p)),g=ha(d),v={rootMargin:-x+"px "+-y+"px "+-w+"px "+-g+"px",threshold:ot(0,ur(1,l))||1};let S=!0;function C(E){const T=E[0].intersectionRatio;if(T!==l){if(!S)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!Sw(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(e)}return o(!0),s}function N2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=bh(e),d=i||s?[...c?xo(c):[],...xo(t)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=c&&a?R2(c,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[m]=g;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let x,y=l?Xr(e):null;l&&w();function w(){const g=Xr(e);y&&!Sw(y,g)&&n(),y=g,x=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(m=>{i&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),f==null||f(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(x)}}const M2=n2,O2=r2,D2=Jj,L2=s2,I2=e2,ng=Zj,_2=i2,F2=(e,t,n)=>{const r=new Map,i={platform:A2,...n},s={...i.platform,_c:r};return Xj(e,t,{...i,platform:s})};var V2=typeof document<"u",z2=function(){},Fa=V2?b.useLayoutEffect:z2;function Cl(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,i;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(!Cl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Cl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Cw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rg(e,t){const n=Cw(e);return Math.round(t*n)/n}function iu(e){const t=b.useRef(e);return Fa(()=>{t.current=e}),t}function B2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);Cl(h,r)||p(r);const[x,y]=b.useState(null),[w,g]=b.useState(null),m=b.useCallback(k=>{k!==E.current&&(E.current=k,y(k))},[]),v=b.useCallback(k=>{k!==T.current&&(T.current=k,g(k))},[]),S=s||x,C=o||w,E=b.useRef(null),T=b.useRef(null),P=b.useRef(d),N=l!=null,j=iu(l),_=iu(i),L=iu(c),U=b.useCallback(()=>{if(!E.current||!T.current)return;const k={placement:t,strategy:n,middleware:h};_.current&&(k.platform=_.current),F2(E.current,T.current,k).then(A=>{const I={...A,isPositioned:L.current!==!1};D.current&&!Cl(P.current,I)&&(P.current=I,Mo.flushSync(()=>{f(I)}))})},[h,t,n,_,L]);Fa(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[c]);const D=b.useRef(!1);Fa(()=>(D.current=!0,()=>{D.current=!1}),[]),Fa(()=>{if(S&&(E.current=S),C&&(T.current=C),S&&C){if(j.current)return j.current(S,C,U);U()}},[S,C,U,j,N]);const W=b.useMemo(()=>({reference:E,floating:T,setReference:m,setFloating:v}),[m,v]),z=b.useMemo(()=>({reference:S,floating:C}),[S,C]),H=b.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const A=rg(z.floating,d.x),I=rg(z.floating,d.y);return a?{...k,transform:"translate("+A+"px, "+I+"px)",...Cw(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:I}},[n,a,z.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:U,refs:W,elements:z,floatingStyles:H}),[d,U,W,z,H])}const $2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ng({element:r.current,padding:i}).fn(n):{}:r?ng({element:r,padding:i}).fn(n):{}}}},U2=(e,t)=>({...M2(e),options:[e,t]}),W2=(e,t)=>({...O2(e),options:[e,t]}),H2=(e,t)=>({..._2(e),options:[e,t]}),K2=(e,t)=>({...D2(e),options:[e,t]}),G2=(e,t)=>({...L2(e),options:[e,t]}),Y2=(e,t)=>({...I2(e),options:[e,t]}),Q2=(e,t)=>({...$2(e),options:[e,t]});var q2="Arrow",Tw=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return u.jsx(it.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tw.displayName=q2;var X2=Tw;function Z2(e){const[t,n]=b.useState(void 0);return cr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ew="Popper",[Pw,kw]=tc(Ew),[nL,jw]=Pw(Ew),Aw="PopperAnchor",Rw=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=jw(Aw,n),o=b.useRef(null),a=Ut(t,o);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:u.jsx(it.div,{...i,ref:a})});Rw.displayName=Aw;var Ch="PopperContent",[J2,eA]=Pw(Ch),Nw=b.forwardRef((e,t)=>{var te,ri,kn,wr,jn,ii;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:x,...y}=e,w=jw(Ch,n),[g,m]=b.useState(null),v=Ut(t,An=>m(An)),[S,C]=b.useState(null),E=Z2(S),T=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,N=r+(s!=="center"?"-"+s:""),j=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},_=Array.isArray(c)?c:[c],L=_.length>0,U={padding:j,boundary:_.filter(nA),altBoundary:L},{refs:D,floatingStyles:W,placement:z,isPositioned:H,middlewareData:k}=B2({strategy:"fixed",placement:N,whileElementsMounted:(...An)=>N2(...An,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[U2({mainAxis:i+P,alignmentAxis:o}),l&&W2({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?H2():void 0,...U}),l&&K2({...U}),G2({...U,apply:({elements:An,rects:Bo,availableWidth:mc,availableHeight:$o})=>{const{width:gc,height:ps}=Bo.reference,si=An.floating.style;si.setProperty("--radix-popper-available-width",`${mc}px`),si.setProperty("--radix-popper-available-height",`${$o}px`),si.setProperty("--radix-popper-anchor-width",`${gc}px`),si.setProperty("--radix-popper-anchor-height",`${ps}px`)}}),S&&Q2({element:S,padding:a}),rA({arrowWidth:T,arrowHeight:P}),h&&Y2({strategy:"referenceHidden",...U})]}),[A,I]=Dw(z),$=lr(x);cr(()=>{H&&($==null||$())},[H,$]);const B=(te=k.arrow)==null?void 0:te.x,q=(ri=k.arrow)==null?void 0:ri.y,Z=((kn=k.arrow)==null?void 0:kn.centerOffset)!==0,[we,Ie]=b.useState();return cr(()=>{g&&Ie(window.getComputedStyle(g).zIndex)},[g]),u.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:H?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(wr=k.transformOrigin)==null?void 0:wr.x,(jn=k.transformOrigin)==null?void 0:jn.y].join(" "),...((ii=k.hide)==null?void 0:ii.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(J2,{scope:n,placedSide:A,onArrowChange:C,arrowX:B,arrowY:q,shouldHideArrow:Z,children:u.jsx(it.div,{"data-side":A,"data-align":I,...y,ref:v,style:{...y.style,animation:H?void 0:"none"}})})})});Nw.displayName=Ch;var Mw="PopperArrow",tA={top:"bottom",right:"left",bottom:"top",left:"right"},Ow=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=eA(Mw,r),o=tA[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(X2,{...i,ref:n,style:{...i.style,display:"block"}})})});Ow.displayName=Mw;function nA(e){return e!==null}var rA=e=>({name:"transformOrigin",options:e,fn(t){var w,g,m;const{placement:n,rects:r,middlewareData:i}=t,o=((w=i.arrow)==null?void 0:w.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=Dw(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((g=i.arrow)==null?void 0:g.x)??0)+a/2,p=(((m=i.arrow)==null?void 0:m.y)??0)+l/2;let x="",y="";return c==="bottom"?(x=o?f:`${h}px`,y=`${-l}px`):c==="top"?(x=o?f:`${h}px`,y=`${r.floating.height+l}px`):c==="right"?(x=`${-l}px`,y=o?f:`${p}px`):c==="left"&&(x=`${r.floating.width+l}px`,y=o?f:`${p}px`),{data:{x,y}}}});function Dw(e){const[t,n="center"]=e.split("-");return[t,n]}var iA=Rw,sA=Nw,oA=Ow,[ac,rL]=tc("Tooltip",[kw]),Th=kw(),Lw="TooltipProvider",aA=700,ig="tooltip.open",[lA,Iw]=ac(Lw),_w=e=>{const{__scopeTooltip:t,delayDuration:n=aA,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(lA,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:i,children:s})};_w.displayName=Lw;var Fw="Tooltip",[iL,lc]=ac(Fw),Id="TooltipTrigger",cA=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=lc(Id,n),s=Iw(Id,n),o=Th(n),a=b.useRef(null),l=Ut(t,a,i.onTriggerChange),c=b.useRef(!1),d=b.useRef(!1),f=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(iA,{asChild:!0,...o,children:u.jsx(it.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ke(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ke(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ke(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ke(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:ke(e.onBlur,i.onClose),onClick:ke(e.onClick,i.onClose)})})});cA.displayName=Id;var uA="TooltipPortal",[sL,dA]=ac(uA,{forceMount:void 0}),Ji="TooltipContent",Vw=b.forwardRef((e,t)=>{const n=dA(Ji,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=lc(Ji,e.__scopeTooltip);return u.jsx(uh,{present:r||o.open,children:o.disableHoverableContent?u.jsx(zw,{side:i,...s,ref:t}):u.jsx(fA,{side:i,...s,ref:t})})}),fA=b.forwardRef((e,t)=>{const n=lc(Ji,e.__scopeTooltip),r=Iw(Ji,e.__scopeTooltip),i=b.useRef(null),s=Ut(t,i),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:f}=r,h=b.useCallback(()=>{a(null),f(!1)},[f]),p=b.useCallback((x,y)=>{const w=x.currentTarget,g={x:x.clientX,y:x.clientY},m=yA(g,w.getBoundingClientRect()),v=vA(g,m),S=xA(y.getBoundingClientRect()),C=bA([...v,...S]);a(C),f(!0)},[f]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(l&&d){const x=w=>p(w,d),y=w=>p(w,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",y)}}},[l,d,p,h]),b.useEffect(()=>{if(o){const x=y=>{const w=y.target,g={x:y.clientX,y:y.clientY},m=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),v=!wA(g,o);m?h():v&&(h(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,o,c,h]),u.jsx(zw,{...e,ref:s})}),[hA,pA]=ac(Fw,{isInside:!1}),mA=nk("TooltipContent"),zw=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=lc(Ji,n),c=Th(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(ig,d),()=>document.removeEventListener(ig,d)),[d]),b.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(ch,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(sA,{"data-state":l.stateAttribute,...c,...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:[u.jsx(mA,{children:r}),u.jsx(hA,{scope:n,isInside:!0,children:u.jsx(kk,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Vw.displayName=Ji;var Bw="TooltipArrow",gA=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Th(n);return pA(Bw,n).isInside?null:u.jsx(oA,{...i,...r,ref:t})});gA.displayName=Bw;function yA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function vA(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 xA(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function wA(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;sr!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(i=!i)}return i}function bA(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),SA(t)}function SA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}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 CA=_w,$w=Vw;const TA=CA,EA=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx($w,{ref:r,sideOffset:t,className:ni("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}));EA.displayName=$w.displayName;const Eh=b.createContext({});function Ph(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const PA=typeof window<"u",Uw=PA?b.useLayoutEffect:b.useEffect,cc=b.createContext(null);function kh(e,t){e.indexOf(t)===-1&&e.push(t)}function Tl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ln=(e,t,n)=>n>t?t:n{},es=()=>{};const fr={},Ww=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Hw=e=>typeof e=="object"&&e!==null,Kw=e=>/^0[^.\s]+$/u.test(e);function Gw(e){let t;return()=>(t===void 0&&(t=e()),t)}const St=e=>e,Io=(...e)=>e.reduce((t,n)=>r=>n(t(r))),wo=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class jh{constructor(){this.subscriptions=[]}add(t){return kh(this.subscriptions,t),()=>Tl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,wt=e=>e/1e3,Yw=(e,t)=>t?e*(1e3/t):0,Qw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kA=1e-7,jA=12;function AA(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Qw(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>kA&&++aAA(s,0,1,e,n);return s=>s===0||s===1?s:Qw(i(s),t,r)}const qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xw=e=>t=>1-e(1-t),Zw=_o(.33,1.53,.69,.99),Ah=Xw(Zw),Jw=qw(Ah),e1=e=>e>=1?1:(e*=2)<1?.5*Ah(e):.5*(2-Math.pow(2,-10*(e-1))),Rh=e=>1-Math.sin(Math.acos(e)),t1=Xw(Rh),n1=qw(Rh),RA=_o(.42,0,1,1),NA=_o(0,0,.58,1),r1=_o(.42,0,.58,1),MA=e=>Array.isArray(e)&&typeof e[0]!="number",i1=e=>Array.isArray(e)&&typeof e[0]=="number",sg={linear:St,easeIn:RA,easeInOut:r1,easeOut:NA,circIn:Rh,circInOut:n1,circOut:t1,backIn:Ah,backInOut:Jw,backOut:Zw,anticipate:e1},OA=e=>typeof e=="string",og=e=>{if(i1(e)){es(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return _o(t,n,r,i)}else if(OA(e))return es(sg[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),sg[e];return e},pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ag={value:null,addProjectionMetrics:null};function DA(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(f){o.has(f)&&(d.schedule(f),e()),l++,f(a)}const d={schedule:(f,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(f),y.add(f),f},cancel:f=>{r.delete(f),o.delete(f)},process:f=>{if(a=f,i){s=!0;return}i=!0;const h=n;n=r,r=h,n.forEach(c),t&&ag.value&&ag.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,d.process(f))}};return d}const LA=40;function s1(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=pa.reduce((v,S)=>(v[S]=DA(s,t?S:void 0),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:x}=o,y=()=>{const v=fr.useManualTiming,S=v?i.timestamp:performance.now();n=!1,v||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,LA),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),f.process(i),h.process(i),p.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:pa.reduce((v,S)=>{const C=o[S];return v[S]=(E,T=!1,P=!1)=>(n||w(),C.schedule(E,T,P)),v},{}),cancel:v=>{for(let S=0;S(Va===void 0&&Ke.set(Me.isProcessing||fr.useManualTiming?Me.timestamp:performance.now()),Va),set:e=>{Va=e,queueMicrotask(IA)}},o1=e=>t=>typeof t=="string"&&t.startsWith(e),a1=o1("--"),_A=o1("var(--"),Nh=e=>_A(e)?FA.test(e.split("/*")[0].trim()):!1,FA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function lg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...us,transform:e=>ln(0,1,e)},ma={...us,default:1},Ks=e=>Math.round(e*1e5)/1e5,Mh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VA(e){return e==null}const zA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oh=(e,t)=>n=>!!(typeof n=="string"&&zA.test(n)&&n.startsWith(e)||t&&!VA(n)&&Object.prototype.hasOwnProperty.call(n,t)),l1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Mh);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},BA=e=>ln(0,255,e),ou={...us,transform:e=>Math.round(BA(e))},Mr={test:Oh("rgb","red"),parse:l1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ou.transform(e)+", "+ou.transform(t)+", "+ou.transform(n)+", "+Ks(bo.transform(r))+")"};function $A(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const _d={test:Oh("#"),parse:$A,transform:Mr.transform},Fo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hn=Fo("deg"),on=Fo("%"),V=Fo("px"),UA=Fo("vh"),WA=Fo("vw"),cg={...on,parse:e=>on.parse(e)/100,transform:e=>on.transform(e*100)},Ti={test:Oh("hsl","hue"),parse:l1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+on.transform(Ks(t))+", "+on.transform(Ks(n))+", "+Ks(bo.transform(r))+")"},be={test:e=>Mr.test(e)||_d.test(e)||Ti.test(e),parse:e=>Mr.test(e)?Mr.parse(e):Ti.test(e)?Ti.parse(e):_d.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mr.transform(e):Ti.transform(e),getAnimatableNone:e=>{const t=be.parse(e);return t.alpha=0,be.transform(t)}},HA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Mh))==null?void 0:t.length)||0)+(((n=e.match(HA))==null?void 0:n.length)||0)>0}const c1="number",u1="color",GA="var",YA="var(",ug="${}",QA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ts(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(QA,l=>(be.test(l)?(r.color.push(s),i.push(u1),n.push(be.parse(l))):l.startsWith(YA)?(r.var.push(s),i.push(GA),n.push(l)):(r.number.push(s),i.push(c1),n.push(parseFloat(l))),++s,ug)).split(ug);return{values:n,split:a,indexes:r,types:i}}function qA(e){return ts(e).values}function d1({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;stypeof e=="number"?0:be.test(e)?be.getAnimatableNone(e):e,JA=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:ZA(e);function eR(e){const t=ts(e);return d1(t)(t.values.map((r,i)=>JA(r,t.split[i])))}const Bt={test:KA,parse:qA,createTransformer:XA,getAnimatableNone:eR};function au(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=au(l,a,e+1/3),s=au(l,a,e),o=au(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function El(e,t){return n=>n>0?t:e}const ie=(e,t,n)=>e+(t-e)*n,lu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nR=[_d,Mr,Ti],rR=e=>nR.find(t=>t.test(e));function dg(e){const t=rR(e);if(uc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ti&&(n=tR(n)),n}const fg=(e,t)=>{const n=dg(e),r=dg(t);if(!n||!r)return El(e,t);const i={...n};return s=>(i.red=lu(n.red,r.red,s),i.green=lu(n.green,r.green,s),i.blue=lu(n.blue,r.blue,s),i.alpha=ie(n.alpha,r.alpha,s),Mr.transform(i))},Fd=new Set(["none","hidden"]);function iR(e,t){return Fd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sR(e,t){return n=>ie(e,t,n)}function Dh(e){return typeof e=="number"?sR:typeof e=="string"?Nh(e)?El:be.test(e)?fg:lR:Array.isArray(e)?f1:typeof e=="object"?be.test(e)?fg:oR:El}function f1(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Dh(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function aR(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Bt.createTransformer(t),r=ts(e),i=ts(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Fd.has(e)&&!i.values.length||Fd.has(t)&&!r.values.length?iR(e,t):Io(f1(aR(r,i),i.values),n):(uc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),El(e,t))};function h1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Dh(e)(e,t)}const cR=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>se.update(t,n),stop:()=>hr(t),now:()=>Me.isProcessing?Me.timestamp:Ke.now()}},p1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=Pl?1/0:t}function uR(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Lh(r),Pl);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:wt(i)}}const fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vd(e,t){return e*Math.sqrt(1-t*t)}const dR=12;function fR(e,t,n){let r=n;for(let i=1;i{const d=c*o,f=d*e,h=d-n,p=Vd(c,o),x=Math.exp(-f);return cu-h/p*x},s=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-f),y=Vd(Math.pow(c,2),o);return(-i(c)+cu>0?-1:1)*((h-p)*x)/y}):(i=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-cu+d*f},s=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,l=fR(i,s,a);if(e=rt(e),isNaN(l))return{stiffness:fe.stiffness,damping:fe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const pR=["duration","bounce"],mR=["stiffness","damping","mass"];function hg(e,t){return t.some(n=>e[n]!==void 0)}function gR(e){let t={velocity:fe.velocity,stiffness:fe.stiffness,damping:fe.damping,mass:fe.mass,isResolvedFromDuration:!1,...e};if(!hg(e,mR)&&hg(e,pR))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ln(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:fe.mass,stiffness:i,damping:s}}else{const n=hR({...e,velocity:0});t={...t,...n,mass:fe.mass},t.isResolvedFromDuration=!0}return t}function kl(e=fe.visualDuration,t=fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=gR({...n,velocity:-wt(n.velocity||0)}),x=h||0,y=c/(2*Math.sqrt(l*d)),w=o-s,g=wt(Math.sqrt(l/d)),m=Math.abs(w)<5;r||(r=m?fe.restSpeed.granular:fe.restSpeed.default),i||(i=m?fe.restDelta.granular:fe.restDelta.default);let v,S,C,E,T,P;if(y<1)C=Vd(g,y),E=(x+y*g*w)/C,v=j=>{const _=Math.exp(-y*g*j);return o-_*(E*Math.sin(C*j)+w*Math.cos(C*j))},T=y*g*E+w*C,P=y*g*w-E*C,S=j=>Math.exp(-y*g*j)*(T*Math.sin(C*j)+P*Math.cos(C*j));else if(y===1){v=_=>o-Math.exp(-g*_)*(w+(x+g*w)*_);const j=x+g*w;S=_=>Math.exp(-g*_)*(g*j*_-x)}else{const j=g*Math.sqrt(y*y-1);v=D=>{const W=Math.exp(-y*g*D),z=Math.min(j*D,300);return o-W*((x+y*g*w)*Math.sinh(z)+j*w*Math.cosh(z))/j};const _=(x+y*g*w)/j,L=y*g*_-w*j,U=y*g*w-_*j;S=D=>{const W=Math.exp(-y*g*D),z=Math.min(j*D,300);return W*(L*Math.sinh(z)+U*Math.cosh(z))}}const N={calculatedDuration:p&&f||null,velocity:j=>rt(S(j)),next:j=>{if(!p&&y<1){const L=Math.exp(-y*g*j),U=Math.sin(C*j),D=Math.cos(C*j),W=o-L*(E*U+w*D),z=rt(L*(T*U+P*D));return a.done=Math.abs(z)<=r&&Math.abs(o-W)<=i,a.value=a.done?o:W,a}const _=v(j);if(p)a.done=j>=f;else{const L=rt(S(j));a.done=Math.abs(L)<=r&&Math.abs(o-_)<=i}return a.value=a.done?o:_,a},toString:()=>{const j=Math.min(Lh(N),Pl),_=p1(L=>N.next(j*L).value,j,30);return j+"ms "+_},toTransition:()=>{}};return N}kl.applyToOptions=e=>{const t=uR(e,100,kl);return e.ease=t.ease,e.duration=rt(t.duration),e.type="keyframes",e};const yR=5;function m1(e,t,n){const r=Math.max(t-yR,0);return Yw(n-e(r),t-r)}function zd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=P=>a!==void 0&&Pl,x=P=>a===void 0?l:l===void 0||Math.abs(a-P)-y*Math.exp(-P/r),v=P=>g+m(P),S=P=>{const N=m(P),j=v(P);h.done=Math.abs(N)<=c,h.value=h.done?g:j};let C,E;const T=P=>{p(h.value)&&(C=P,E=kl({keyframes:[h.value,x(h.value)],velocity:m1(v,P,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return T(0),{calculatedDuration:null,next:P=>{let N=!1;return!E&&C===void 0&&(N=!0,S(P),T(P)),C!==void 0&&P>=C?E.next(P-C):(!N&&S(P),h)}}}function vR(e,t,n){const r=[],i=n||fr.mix||h1,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=vR(t,r,i),l=a.length,c=d=>{if(o&&d1)for(;fc(ln(e[0],e[s-1],d)):c}function wR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=wo(0,t,r);e.push(ie(n,1,i))}}function bR(e){const t=[0];return wR(t,e.length-1),t}function SR(e,t){return e.map(n=>n*t)}function CR(e,t){return e.map(()=>t||r1).splice(0,e.length-1)}function Gs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=MA(r)?r.map(og):og(r),s={done:!1,value:t[0]},o=SR(n&&n.length===t.length?n:bR(t),e),a=xR(o,t,{ease:Array.isArray(i)?i:CR(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const TR=e=>e!==null;function dc(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(TR),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const ER={decay:zd,inertia:zd,tween:Gs,keyframes:Gs,spring:kl};function g1(e){typeof e.type=="string"&&(e.type=ER[e.type])}class Ih{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const PR=e=>e/100;class jl extends Ih{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ke.now()&&this.tick(Ke.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;g1(t);const{type:n=Gs,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Gs;l!==Gs&&typeof a[0]!="number"&&(this.mixKeyframes=Io(PR,h1(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Lh(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:p,type:x,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=r;if(f){const P=Math.min(this.currentTime,i)/a;let N=Math.floor(P),j=P%1;!j&&P>=1&&(j=1),j===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(h==="reverse"?(j=1-j,p&&(j-=p/a)):h==="mirror"&&(S=o)),v=ln(0,1,j)*a}let C;m?(this.delayState.value=d[0],C=this.delayState):C=S.next(v),s&&!m&&(C.value=s(C.value));let{done:E}=C;!m&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&x!==zd&&(C.value=dc(d,this.options,w,this.speed)),y&&y(C.value),T&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return wt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wt(t)}get time(){return wt(this.currentTime)}set time(t){t=rt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return m1(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ke.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=wt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=cR,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ke.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function kR(e){for(let t=1;te*180/Math.PI,Bd=e=>{const t=Or(Math.atan2(e[1],e[0]));return $d(t)},jR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bd,rotateZ:Bd,skewX:e=>Or(Math.atan(e[1])),skewY:e=>Or(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$d=e=>(e=e%360,e<0&&(e+=360),e),pg=Bd,mg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mg,scaleY:gg,scale:e=>(mg(e)+gg(e))/2,rotateX:e=>$d(Or(Math.atan2(e[6],e[5]))),rotateY:e=>$d(Or(Math.atan2(-e[2],e[0]))),rotateZ:pg,rotate:pg,skewX:e=>Or(Math.atan(e[4])),skewY:e=>Or(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ud(e){return e.includes("scale")?1:0}function Wd(e,t){if(!e||e==="none")return Ud(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=AR,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jR,i=a}if(!i)return Ud(t);const s=r[t],o=i[1].split(",").map(NR);return typeof s=="function"?s(o):o[s]}const RR=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Wd(n,t)};function NR(e){return parseFloat(e.trim())}const ds=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fs=new Set([...ds,"pathRotation"]),yg=e=>e===us||e===V,MR=new Set(["x","y","z"]),OR=ds.filter(e=>!MR.has(e));function DR(e){const t=[];return OR.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Wd(t,"x"),y:(e,{transform:t})=>Wd(t,"y")};qn.translateX=qn.x;qn.translateY=qn.y;const Wr=new Set;let Hd=!1,Kd=!1,Gd=!1;function y1(){if(Kd){const e=Array.from(Wr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=DR(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Kd=!1,Hd=!1,Wr.forEach(e=>e.complete(Gd)),Wr.clear()}function v1(){Wr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Kd=!0)})}function LR(){Gd=!0,v1(),y1(),Gd=!1}class _h{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Wr.add(this),Hd||(Hd=!0,se.read(v1),se.resolveKeyframes(y1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}kR(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Wr.delete(this)}cancel(){this.state==="scheduled"&&(Wr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const IR=e=>e.startsWith("--");function x1(e,t,n){IR(t)?e.style.setProperty(t,n):e.style[t]=n}const _R={};function w1(e,t){const n=Gw(e);return()=>_R[t]??n()}const FR=w1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),b1=w1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ls=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ls([0,.65,.55,1]),circOut:Ls([.55,0,1,.45]),backIn:Ls([.31,.01,.66,-.59]),backOut:Ls([.33,1.53,.69,.99])};function S1(e,t){if(e)return typeof e=="function"?b1()?p1(e,t):"ease-out":i1(e)?Ls(e):Array.isArray(e)?e.map(n=>S1(n,t)||vg.easeOut):vg[e]}function VR(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const f=S1(a,i);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function C1(e){return typeof e=="function"&&"applyToOptions"in e}function zR({type:e,...t}){return C1(e)&&b1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class T1 extends Ih{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,es(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=zR(t);this.animation=VR(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=dc(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),x1(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return wt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wt(t)}get time(){return wt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=rt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&FR()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),St):i(this)}}const E1={anticipate:e1,backInOut:Jw,circInOut:n1};function BR(e){return e in E1}function $R(e){typeof e.ease=="string"&&BR(e.ease)&&(e.ease=E1[e.ease])}const uu=10;class UR extends T1{constructor(t){$R(t),g1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new jl({...o,autoplay:!1}),l=Math.max(uu,Ke.now()-this.startTime),c=ln(0,uu,l-uu),d=a.sample(l).value,{name:f}=this.options;s&&f&&x1(s,f,d),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,d,c),a.stop()}}const xg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bt.test(e)||e==="0")&&!e.startsWith("url("));function WR(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function qR(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return QR()&&n&&(P1.has(n)||YR.has(n)&&GR(a))&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const XR=40;class ZR extends Ih{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...f}){var x;super(),this.stop=()=>{var y,w;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Ke.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...f},p=(d==null?void 0:d.KeyframeResolver)||_h;this.keyframeResolver=new p(a,(y,w,g)=>this.onKeyframesResolved(y,w,h,!g),l,c,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){var g,m;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Ke.now();let f=!0;HR(t,s,o,a)||(f=!1,(fr.instantAnimations||!l)&&(d==null||d(dc(t,r,n))),t[0]=t[t.length-1],Yd(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>XR?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=f&&!c&&qR(p),y=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let w;if(x)try{w=new UR({...p,element:y})}catch{w=new jl(p)}else w=new jl(p);w.finished.then(()=>{this.notifyFinished()}).catch(St),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),LR()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function k1(e,t,n,r=0,i=1){const s=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const wg=30,JR=e=>!isNaN(parseFloat(e));class eN{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ke.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ke.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new jh);const r=this.events[t].add(n);return t==="change"?()=>{r(),se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ke.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wg);return Yw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ns(e,t){return new eN(e,t)}function j1(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Fh(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?j1(n,e):n}const tN={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rN={type:"keyframes",duration:.8},iN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sN=(e,{keyframes:t})=>t.length>2?rN:fs.has(e)?e.startsWith("scale")?nN(t[1]):tN:iN,oN=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function aN(e){for(const t in e)if(!oN.has(t))return!0;return!1}const Vh=(e,t,n,r={},i,s)=>o=>{const a=Fh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-rt(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};aN(a)||Object.assign(d,sN(e,d)),d.duration&&(d.duration=rt(d.duration)),d.repeatDelay&&(d.repeatDelay=rt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yd(d),d.delay===0&&(f=!0)),(fr.instantAnimations||fr.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Yd(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=dc(d.keyframes,a);if(h!==void 0){se.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new jl(d):new ZR(d)},lN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cN(e){const t=lN.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const uN=4;function A1(e,t,n=1){es(n<=uN,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=cN(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Ww(o)?parseFloat(o):o}return Nh(i)?A1(i,t,n+1):i}function bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zh(e,t,n,r){if(typeof t=="function"){const[i,s]=bg(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=bg(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Hr(e,t,n){const r=e.getProps();return zh(r,t,n!==void 0?n:r.custom,e)}const R1=new Set(["width","height","top","left","right","bottom",...ds]),Qd=e=>Array.isArray(e);function dN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ns(n))}function fN(e){return Qd(e)?e[e.length-1]||0:e}function hN(e,t){const n=Hr(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=fN(s[o]);dN(e,o,a)}}const Oe=e=>!!(e&&e.getVelocity);function pN(e){return!!(Oe(e)&&e.add)}function qd(e,t){const n=e.getValue("willChange");if(pN(n))return n.add(t);if(!n&&fr.WillChange){const r=new fr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Bh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const mN="framerAppearId",N1="data-"+Bh(mN);function M1(e){return e.props[N1]}function gN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function O1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?j1(s,l):l;const c=s==null?void 0:s.reduceMotion,d=s==null?void 0:s.skipAnimations;r&&(s=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i],p=s==null?void 0:s.path;p&&p.animateVisualElement(e,a,s,n,f);for(const x in a){const y=e.getValue(x,e.latestValues[x]??null),w=a[x];if(w===void 0||h&&gN(h,x))continue;const g={delay:n,...Fh(s||{},x)};d&&(g.skipAnimations=!0);const m=y.get();if(m!==void 0&&!y.isAnimating()&&!Array.isArray(w)&&w===m&&!g.velocity){se.update(()=>y.set(w));continue}let v=!1;if(window.MotionHandoffAnimation){const E=M1(e);if(E){const T=window.MotionHandoffAnimation(E,x,se);T!==null&&(g.startTime=T,v=!0)}}qd(e,x);const S=c??e.shouldReduceMotion;y.start(Vh(x,y,w,S&&R1.has(x)?{type:!1}:g,e,v));const C=y.animation;C&&f.push(C)}if(o){const x=()=>se.update(()=>{o&&hN(e,o)});f.length?Promise.all(f).then(x):x()}return f}function Xd(e,t,n={}){var l;const r=Hr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(O1(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return yN(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,d]=a==="beforeChildren"?[s,o]:[o,s];return c().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function yN(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Xd(l,t,{...o,delay:n+(typeof r=="function"?0:r)+k1(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function vN(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Xd(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Xd(e,t,n);else{const i=typeof t=="function"?Hr(e,t,n.custom):t;r=Promise.all(O1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const xN={test:e=>e==="auto",parse:e=>e},D1=e=>t=>t.test(e),L1=[us,V,on,hn,WA,UA,xN],Sg=e=>L1.find(D1(e));function wN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kw(e):!0}const bN=new Set(["brightness","contrast","saturate","opacity"]);function SN(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mh)||[];if(!r)return e;const i=n.replace(r,"");let s=bN.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const CN=/\b([a-z-]*)\(.*?\)/gu,Zd={...Bt,getAnimatableNone:e=>{const t=e.match(CN);return t?t.map(SN).join(" "):e}},Jd={...Bt,getAnimatableNone:e=>{const t=Bt.parse(e);return Bt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Cg={...us,transform:Math.round},TN={rotate:hn,pathRotation:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:ma,scaleX:ma,scaleY:ma,scaleZ:ma,skew:hn,skewX:hn,skewY:hn,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:bo,originX:cg,originY:cg,originZ:V},Al={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...TN,zIndex:Cg,fillOpacity:bo,strokeOpacity:bo,numOctaves:Cg},EN={...Al,color:be,backgroundColor:be,outlineColor:be,fill:be,stroke:be,borderColor:be,borderTopColor:be,borderRightColor:be,borderBottomColor:be,borderLeftColor:be,filter:Zd,WebkitFilter:Zd,mask:Jd,WebkitMask:Jd},I1=e=>EN[e],PN=new Set([Zd,Jd]);function _1(e,t){let n=I1(e);return PN.has(n)||(n=Bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kN=new Set(["auto","none","0"]);function jN(e,t,n){let r=0,i;for(;r{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function F1(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const ef=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function za(e){return Hw(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:$h,cancel:oL}=s1(queueMicrotask,!1),Nt={x:!1,y:!1};function V1(){return Nt.x||Nt.y}function RN(e){return e==="x"||e==="y"?Nt[e]?null:(Nt[e]=!0,()=>{Nt[e]=!1}):Nt.x||Nt.y?null:(Nt.x=Nt.y=!0,()=>{Nt.x=Nt.y=!1})}function z1(e,t){const n=F1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function NN(e){return!(e.pointerType==="touch"||V1())}function MN(e,t,n={}){const[r,i,s]=z1(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const d=()=>{o.removeEventListener("pointerleave",x)},f=w=>{c&&(c(w),c=void 0),d()},h=w=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(w))},p=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},x=w=>{if(w.pointerType!=="touch"){if(a){l=!0;return}f(w)}},y=w=>{if(!NN(w))return;l=!1;const g=t(o,w);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",x,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",p,i)}),s}const B1=(e,t)=>t?e===t?!0:B1(e,t.parentElement):!1,Uh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ON=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DN(e){return ON.has(e.tagName)||e.isContentEditable===!0}const LN=new Set(["INPUT","SELECT","TEXTAREA"]);function IN(e){return LN.has(e.tagName)||e.isContentEditable===!0}const Ba=new WeakSet;function Tg(e){return t=>{t.key==="Enter"&&e(t)}}function du(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _N=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tg(()=>{if(Ba.has(n))return;du(n,"down");const i=Tg(()=>{du(n,"up")}),s=()=>du(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Eg(e){return Uh(e)&&!V1()}const Pg=new WeakSet;function FN(e,t,n={}){const[r,i,s]=z1(e,n),o=a=>{const l=a.currentTarget;if(!Eg(a)||Pg.has(a))return;Ba.add(l),n.stopPropagation&&Pg.add(a);const c=t(l,a),d=(p,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Ba.has(l)&&Ba.delete(l),Eg(p)&&typeof c=="function"&&c(p,{success:x})},f=p=>{d(p,l===window||l===document||n.useGlobalTarget||B1(l,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),za(a)&&(a.addEventListener("focus",c=>_N(c,i)),!DN(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Wh(e){return Hw(e)&&"ownerSVGElement"in e}const $a=new WeakMap;let _n;const $1=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Wh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],VN=$1("inline","width","offsetWidth"),zN=$1("block","height","offsetHeight");function BN({target:e,borderBoxSize:t}){var n;(n=$a.get(e))==null||n.forEach(r=>{r(e,{get width(){return VN(e,t)},get height(){return zN(e,t)}})})}function $N(e){e.forEach(BN)}function UN(){typeof ResizeObserver>"u"||(_n=new ResizeObserver($N))}function WN(e,t){_n||UN();const n=F1(e);return n.forEach(r=>{let i=$a.get(r);i||(i=new Set,$a.set(r,i)),i.add(t),_n==null||_n.observe(r)}),()=>{n.forEach(r=>{const i=$a.get(r);i==null||i.delete(t),i!=null&&i.size||_n==null||_n.unobserve(r)})}}const Ua=new Set;let Ei;function HN(){Ei=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ua.forEach(t=>t(e))},window.addEventListener("resize",Ei)}function KN(e){return Ua.add(e),Ei||HN(),()=>{Ua.delete(e),!Ua.size&&typeof Ei=="function"&&(window.removeEventListener("resize",Ei),Ei=void 0)}}function kg(e,t){return typeof e=="function"?KN(e):WN(e,t)}function GN(e){return Wh(e)&&e.tagName==="svg"}const YN=[...L1,be,Bt],QN=e=>YN.find(D1(e)),jg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pi=()=>({x:jg(),y:jg()}),Ag=()=>({min:0,max:0}),Ee=()=>({x:Ag(),y:Ag()}),qN=new WeakMap;function fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function So(e){return typeof e=="string"||Array.isArray(e)}const Hh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kh=["initial",...Hh];function hc(e){return fc(e.animate)||Kh.some(t=>So(e[t]))}function U1(e){return!!(hc(e)||e.variants)}function XN(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Oe(i))e.addValue(r,i);else if(Oe(s))e.addValue(r,ns(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ns(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tf={current:null},W1={current:!1},ZN=typeof window<"u";function JN(){if(W1.current=!0,!!ZN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tf.current=e.matches;e.addEventListener("change",t),t()}else tf.current=!1}const Rg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Rl={};function H1(e){Rl=e}function eM(){return Rl}class tM{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=_h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Ke.now();this.renderScheduledAtthis.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(W1.current||JN(),this.shouldReduceMotion=tf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&P1.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:d}=n.accelerate,f=new T1({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:rt(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=fs.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Rl){const n=Rl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ns(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ww(r)||Kw(r))?r=parseFloat(r):!QN(r)&&Bt.test(n)&&(r=_1(t,n)),this.setBaseTarget(t,Oe(r)?r.get():r)),Oe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=zh(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Oe(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new jh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$h.render(this.render)}}class K1 extends tM{constructor(){super(...arguments),this.KeyframeResolver=AN}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Oe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class vr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function G1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function fu(e){return e===void 0||e===1}function nf({scale:e,scaleX:t,scaleY:n}){return!fu(e)||!fu(t)||!fu(n)}function jr(e){return nf(e)||Y1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Y1(e){return Ng(e.x)||Ng(e.y)}function Ng(e){return e&&e!=="0%"}function Nl(e,t,n){const r=e-n,i=t*r;return n+i}function Mg(e,t,n,r,i){return i!==void 0&&(e=Nl(e,i,r)),Nl(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=Mg(e.min,t,n,r,i),e.max=Mg(e.max,t,n,r,i)}function Q1(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const Og=.999999999999,Dg=1.0000000000001;function iM(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;lOg&&(t.x=1),t.yOg&&(t.y=1)}function Jt(e,t){e.min+=t,e.max+=t}function Lg(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);rf(e,t,n,s,r)}function Ig(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Wa(e,t,n){const r=n??e;Lg(e.x,Ig(t.x,r.x),t.scaleX,t.scale,t.originX),Lg(e.y,Ig(t.y,r.y),t.scaleY,t.scale,t.originY)}function q1(e,t){return G1(rM(e.getBoundingClientRect(),t))}function sM(e,t,n){const r=q1(e,n),{scroll:i}=t;return i&&(Jt(r.x,i.offset.x),Jt(r.y,i.offset.y)),r}const oM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aM=ds.length;function lM(e,t,n){let r="",i=!0;for(let o=0;o{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=_g(e,t.target.x),r=_g(e,t.target.y);return`${n}% ${r}%`}},cM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Bt.parse(e);if(i.length>5)return r;const s=Bt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}},sf={borderRadius:{...js,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:js,borderTopRightRadius:js,borderBottomLeftRadius:js,borderBottomRightRadius:js,boxShadow:cM};function Z1(e,{layout:t,layoutId:n}){return fs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sf[e]||e==="opacity")}function Yh(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(Oe(r[a])||i&&Oe(i[a])||Z1(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function uM(e){return window.getComputedStyle(e)}class dM extends K1{constructor(){super(...arguments),this.type="html",this.renderInstance=X1}readValueFromInstance(t,n){var r;if(fs.has(n))return(r=this.projection)!=null&&r.isProjecting?Ud(n):RR(t,n);{const i=uM(t),s=(a1(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return q1(t,n)}build(t,n,r){Gh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Yh(t,n,r)}}const fM={offset:"stroke-dashoffset",array:"stroke-dasharray"},hM={offset:"strokeDashoffset",array:"strokeDasharray"};function pM(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?fM:hM;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const mM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function J1(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){if(Gh(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const p of mM)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&pM(f,i,s,o,!1)}const eb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gM(e,t,n,r){X1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(eb.has(i)?i:Bh(i),t.attrs[i])}function nb(e,t,n){const r=Yh(e,t,n);for(const i in e)if(Oe(e[i])||Oe(t[i])){const s=ds.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class yM extends K1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fs.has(n)){const r=I1(n);return r&&r.default||0}return n=eb.has(n)?n:Bh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return nb(t,n,r)}build(t,n,r){J1(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){gM(t,n,r,i)}mount(t){this.isSVGTag=tb(t.tagName),super.mount(t)}}const vM=Kh.length;function rb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>vN(e,n,r)))}function SM(e){let t=bM(e),n=Fg(),r=!0,i=!1;const s=c=>(d,f)=>{var p;const h=Hr(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:x,transitionEnd:y,...w}=h;d={...d,...w,...y}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=rb(e.parent)||{},h=[],p=new Set;let x={},y=1/0;for(let g=0;gy&&C,j=!1;const _=Array.isArray(S)?S:[S];let L=_.reduce(s(m),{});E===!1&&(L={});const{prevResolvedValues:U={}}=v,D={...U,...L},W=k=>{N=!0,p.has(k)&&(j=!0,p.delete(k)),v.needsAnimating[k]=!0;const A=e.getValue(k);A&&(A.liveStyle=!1)};for(const k in D){const A=L[k],I=U[k];if(x.hasOwnProperty(k))continue;let $=!1;Qd(A)&&Qd(I)?$=!ib(A,I)||P:$=A!==I,$?A!=null?W(k):p.add(k):A!==void 0&&p.has(k)?W(k):v.protectedKeys[k]=!0}v.prevProp=S,v.prevResolvedValues=L,v.isActive&&(x={...x,...L}),(r||i)&&e.blockInitialAnimation&&(N=!1);const z=T&&P;N&&(!z||j)&&h.push(..._.map(k=>{const A={type:m};if(typeof k=="string"&&(r||i)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,$=Hr(I,k);if(I.enteringChildren&&$){const{delayChildren:B}=$.transition||{};A.delay=k1(I.enteringChildren,e,B)}}return{animation:k,options:A}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=Hr(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const v=e.getBaseTarget(m),S=e.getValue(m);S&&(S.liveStyle=!0),g[m]=v??null}),h.push({animation:g})}let w=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,i=!1,w?t(h):Promise.resolve()}function l(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var x;return(x=p.animationState)==null?void 0:x.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fg(),i=!0}}}function CM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ib(t,e):!1}function Tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fg(){return{animate:Tr(!0),whileInView:Tr(),whileHover:Tr(),whileTap:Tr(),whileDrag:Tr(),whileFocus:Tr(),exit:Tr()}}function of(e,t){e.min=t.min,e.max=t.max}function Rt(e,t){of(e.x,t.x),of(e.y,t.y)}function Vg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const sb=1e-4,TM=1-sb,EM=1+sb,ob=.01,PM=0-ob,kM=0+ob;function Ge(e){return e.max-e.min}function jM(e,t,n){return Math.abs(e-t)<=n}function zg(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Ge(n)/Ge(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=TM&&e.scale<=EM||isNaN(e.scale))&&(e.scale=1),(e.translate>=PM&&e.translate<=kM||isNaN(e.translate))&&(e.translate=0)}function Ys(e,t,n,r){zg(e.x,t.x,n.x,r?r.originX:void 0),zg(e.y,t.y,n.y,r?r.originY:void 0)}function Bg(e,t,n,r=0){const i=r?ie(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Ge(t)}function AM(e,t,n,r){Bg(e.x,t.x,n.x,r==null?void 0:r.x),Bg(e.y,t.y,n.y,r==null?void 0:r.y)}function $g(e,t,n,r=0){const i=r?ie(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Ge(t)}function Ml(e,t,n,r){$g(e.x,t.x,n.x,r==null?void 0:r.x),$g(e.y,t.y,n.y,r==null?void 0:r.y)}function Ug(e,t,n,r,i){return e-=t,e=Nl(e,1/n,r),i!==void 0&&(e=Nl(e,1/i,r)),e}function RM(e,t=0,n=1,r=.5,i,s=e,o=e){if(on.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=Ug(e.min,t,n,a,i),e.max=Ug(e.max,t,n,a,i)}function Wg(e,t,[n,r,i],s,o){RM(e,t[n],t[r],t[i],t.scale,s,o)}const NM=["x","scaleX","originX"],MM=["y","scaleY","originY"];function Hg(e,t,n,r){Wg(e.x,t,NM,n?n.x:void 0,r?r.x:void 0),Wg(e.y,t,MM,n?n.y:void 0,r?r.y:void 0)}function Kg(e){return e.translate===0&&e.scale===1}function ab(e){return Kg(e.x)&&Kg(e.y)}function Gg(e,t){return e.min===t.min&&e.max===t.max}function OM(e,t){return Gg(e.x,t.x)&&Gg(e.y,t.y)}function Yg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lb(e,t){return Yg(e.x,t.x)&&Yg(e.y,t.y)}function Qg(e){return Ge(e.x)/Ge(e.y)}function qg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Qt(e){return[e("x"),e("y")]}function DM(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:p,skewX:x,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const cb=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],LM=cb.length,Xg=e=>typeof e=="string"?parseFloat(e):e,Zg=e=>typeof e=="number"||V.test(e);function IM(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,_M(r)),e.opacityExit=ie(t.opacity??1,0,FM(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(wo(e,t,r))}function VM(e,t,n){const r=Oe(e)?e:ns(e);return r.start(Vh("",r,t,n)),r.animation}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const zM=(e,t)=>e.depth-t.depth;class BM{constructor(){this.children=[],this.isDirty=!1}add(t){kh(this.children,t),this.isDirty=!0}remove(t){Tl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zM),this.isDirty=!1,this.children.forEach(t)}}function $M(e,t){const n=Ke.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(hr(r),e(s-t))};return se.setup(r,!0),()=>hr(r)}function Ha(e){return Oe(e)?e.get():e}class UM{constructor(){this.members=[]}add(t){kh(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Tl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Tl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hu=["","X","Y","Z"],WM=1e3;let HM=0;function pu(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function db(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=M1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",se,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&db(r)}function fb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=HM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(YM),this.nodes.forEach(eO),this.nodes.forEach(tO),this.nodes.forEach(QM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;se.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=$M(h,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(ny)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||oO,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),g=!this.targetLayout||!lb(this.targetLayout,p),m=!f&&h;if(this.options.layoutRoot||this.resumeFrom||m||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Fh(x,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,m,v.path)}else f||ny(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nO),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&db(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ge(this.snapshot.measuredBox.x)&&!Ge(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=E/1e3,P=C==null?void 0:C(T);P?(h.x.translate=P.x,h.x.scale=ie(o.x.scale,1,T),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=P.y,h.y.scale=ie(o.y.scale,1,T),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(ry(h.x,o.x,T),ry(h.y,o.y,T)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ml(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),iO(this.relativeTarget,this.relativeTargetOrigin,p,T),S&&OM(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ee()),Rt(S,this.relativeTarget)),w&&(this.animationValues=f,IM(f,d,this.latestValues,T,v,m)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{Ka.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ns(0)),this.motionValue.jump(0,!1),this.currentAnimation=VM(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(WM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&hb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ee();const f=Ge(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Ge(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Rt(a,l),Wa(a,d),Ys(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new UM),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&pu("z",o,c,this.animationValues);for(let d=0;d{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ey),this.root.sharedNodes.clear()}}}function KM(e){e.updateLayout()}function GM(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")Qt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Ge(h);h.min=r[f].min,h.max=h.min+p});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";of(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else hb(s,t.layoutBox,r)&&Qt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=Ge(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Pi();Ys(a,r,t.layoutBox);const l=Pi();o?Ys(l,e.applyTransform(i,!0),t.measuredBox):Ys(l,r,t.layoutBox);const c=!ab(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const x=e.options.layoutAnchor||void 0,y=Ee();Ml(y,t.layoutBox,h.layoutBox,x);const w=Ee();Ml(w,r,p.layoutBox,x),lb(y,w)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function YM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qM(e){e.clearSnapshot()}function ey(e){e.clearMeasurements()}function XM(e){e.isLayoutDirty=!0,e.updateLayout()}function ty(e){e.isLayoutDirty=!1}function ZM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function JM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ny(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eO(e){e.resolveTargetDelta()}function tO(e){e.calcProjection()}function nO(e){e.resetSkewAndRotation()}function rO(e){e.removeLeadSnapshot()}function ry(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iy(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function iO(e,t,n,r){iy(e.x,t.x,n.x,r),iy(e.y,t.y,n.y,r)}function sO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oO={duration:.45,ease:[.4,0,.1,1]},sy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oy=sy("applewebkit/")&&!sy("chrome/")?Math.round:St;function ay(e){e.min=oy(e.min),e.max=oy(e.max)}function aO(e){ay(e.x),ay(e.y)}function hb(e,t,n){return e==="position"||e==="preserve-aspect"&&!jM(Qg(t),Qg(n),.2)}function lO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const cO=fb({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),mu={current:void 0},pb=fb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mu.current){const e=new cO({});e.mount(window),e.setOptions({layoutScroll:!0}),mu.current=e}return mu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Qh=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ly(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uO(...e){return t=>{let n=!1;const r=e.map(i=>{const s=ly(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:p,height:x,top:y,left:w,right:g,bottom:m,direction:v}=l.current;if(t||s===!1||!a.current||!p||!x)return;const S=v==="rtl",C=n==="left"?S?`right: ${g}`:`left: ${w}`:S?`left: ${w}`:`right: ${g}`,E=r==="bottom"?`bottom: ${m}`:`top: ${y}`;a.current.dataset.motionPopId=o;const T=document.createElement("style");c&&(T.nonce=c);const P=i??document.head;return P.appendChild(T),T.sheet&&T.sheet.insertRule(` [data-motion-pop-id="${o}"] { position: absolute !important; width: ${p}px !important; height: ${x}px !important; ${C}px !important; ${E}px !important; } `),()=>{var N;(N=a.current)==null||N.removeAttribute("data-motion-pop-id"),P.contains(T)&&P.removeChild(T)}},[t]),u.jsx(fO,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:b.cloneElement(e,{ref:f})})}const pO=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:c})=>{const d=Ph(mO),f=b.useId();let h=!0,p=b.useMemo(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:x=>{d.set(x,!0);for(const y of d.values())if(!y)return;r&&r()},register:x=>(d.set(x,!1),()=>d.delete(x))}),[n,d,r]);return s&&h&&(p={...p}),b.useMemo(()=>{d.forEach((x,y)=>d.set(y,!1))},[n]),b.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=u.jsx(hO,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),u.jsx(cc.Provider,{value:p,children:e})};function mO(){return new Map}function mb(e=!0){const t=b.useContext(cc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=b.useId();b.useEffect(()=>{if(e)return i(s)},[e]);const o=b.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const ga=e=>e.key||"";function cy(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const gO=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[d,f]=mb(o),h=b.useMemo(()=>cy(e),[e]),p=o&&!d?[]:h.map(ga),x=b.useRef(!0),y=b.useRef(h),w=Ph(()=>new Map),g=b.useRef(new Set),[m,v]=b.useState(h),[S,C]=b.useState(h);Uw(()=>{x.current=!1,y.current=h;for(let P=0;P{const N=ga(P),j=o&&!d?!1:h===S||p.includes(N),_=()=>{if(g.current.has(N))return;if(w.has(N))g.current.add(N),w.set(N,!0);else return;let L=!0;w.forEach(U=>{U||(L=!1)}),L&&(T==null||T(),C(y.current),o&&(f==null||f()),r&&r())};return u.jsx(pO,{isPresent:j,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:j?void 0:_,anchorX:a,anchorY:l,children:P},N)})})},gb=b.createContext({strict:!1}),uy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let dy=!1;function yO(){if(dy)return;const e={};for(const t in uy)e[t]={isEnabled:n=>uy[t].some(r=>!!n[r])};H1(e),dy=!0}function yb(){return yO(),eM()}function vO(e){const t=yb();for(const n in e)t[n]={...t[n],...e[n]};H1(t)}const xO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ol(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xO.has(e)}let vb=e=>!Ol(e);function wO(e){typeof e=="function"&&(vb=t=>t.startsWith("on")?!Ol(t):e(t))}try{wO(require("@emotion/is-prop-valid").default)}catch{}function bO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Oe(e[i])||(vb(i)||n===!0&&Ol(i)||!t&&!Ol(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const pc=b.createContext({});function SO(e,t){if(hc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||So(n)?n:void 0,animate:So(r)?r:void 0}}return e.inherit!==!1?t:{}}function CO(e){const{initial:t,animate:n}=SO(e,b.useContext(pc));return b.useMemo(()=>({initial:t,animate:n}),[fy(t),fy(n)])}function fy(e){return Array.isArray(e)?e.join(" "):e}const qh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xb(e,t,n){for(const r in t)!Oe(t[r])&&!Z1(r,n)&&(e[r]=t[r])}function TO({transformTemplate:e},t){return b.useMemo(()=>{const n=qh();return Gh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EO(e,t){const n=e.style||{},r={};return xb(r,n,e),Object.assign(r,TO(e,t)),r}function PO(e,t){const n={},r=EO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const wb=()=>({...qh(),attrs:{}});function kO(e,t,n,r){const i=b.useMemo(()=>{const s=wb();return J1(s,t,tb(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};xb(s,e.style,e),i.style={...s,...i.style}}return i}const jO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xh(e){return typeof e!="string"||e.includes("-")?!1:!!(jO.indexOf(e)>-1||/[A-Z]/u.test(e))}function AO(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??Xh(e)?kO:PO)(t,r,i,e),c=bO(t,typeof e=="string",s),d=e!==b.Fragment?{...c,...l,ref:n}:{},{children:f}=t,h=b.useMemo(()=>Oe(f)?f.get():f,[f]);return b.createElement(e,{...d,children:h})}function RO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:NO(n,r,i,e),renderState:t()}}function NO(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ha(s[h]);let{initial:o,animate:a}=e;const l=hc(e),c=U1(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!fc(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p(t,n)=>{const r=b.useContext(pc),i=b.useContext(cc),s=()=>RO(e,t,r,i);return n?s():Ph(s)},MO=bb({scrapeMotionValuesFromProps:Yh,createRenderState:qh}),OO=bb({scrapeMotionValuesFromProps:nb,createRenderState:wb}),DO=Symbol.for("motionComponentSymbol");function LO(e,t,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const i=b.useRef(null);return b.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s)),t&&(s?t.mount(s):t.unmount());const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s)},[t])}const Sb=b.createContext({});function di(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IO(e,t,n,r,i,s){var v,S;const{visualElement:o}=b.useContext(pc),a=b.useContext(gb),l=b.useContext(cc),c=b.useContext(Qh),d=c.reducedMotion,f=c.skipAnimations,h=b.useRef(null),p=b.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:s}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const x=h.current,y=b.useContext(Sb);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&_O(h.current,n,i,y);const w=b.useRef(!1);b.useInsertionEffect(()=>{x&&w.current&&x.update(n,l)});const g=n[N1],m=b.useRef(!!g&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return Uw(()=>{p.current=!0,x&&(w.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),m.current&&x.animationState&&x.animationState.animateChanges())}),b.useEffect(()=>{x&&(!m.current&&x.animationState&&x.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,g)}),m.current=!1),x.enteringChildren=void 0)}),x}function _O(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cb(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&di(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}function Cb(e){if(e)return e.options.allowProjection!==!1?e.projection:Cb(e.parent)}function gu(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vO(r);const s=n?n==="svg":Xh(e),o=s?OO:MO;function a(c,d){let f;const h={...b.useContext(Qh),...c,layoutId:FO(c)},{isStatic:p}=h,x=CO(c),y=o(c,p);if(!p&&typeof window<"u"){VO();const w=zO(h);f=w.MeasureLayout,x.visualElement=IO(e,y,h,i,w.ProjectionNode,s)}return u.jsxs(pc.Provider,{value:x,children:[f&&x.visualElement?u.jsx(f,{visualElement:x.visualElement,...h}):null,AO(e,c,LO(y,x.visualElement,d),y,p,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=b.forwardRef(a);return l[DO]=e,l}function FO({layoutId:e}){const t=b.useContext(Eh).id;return t&&e!==void 0?t+"-"+e:e}function VO(e,t){b.useContext(gb).strict}function zO(e){const t=yb(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function BO(e,t){if(typeof Proxy>"u")return gu;const n=new Map,r=(s,o)=>gu(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,gu(o,void 0,e,t)),n.get(o))})}const $O=(e,t)=>t.isSVG??Xh(e)?new yM(t):new dM(t,{allowProjection:e!==b.Fragment});class UO extends vr{constructor(t){super(t),t.animationState||(t.animationState=SM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let WO=0;class HO extends vr{constructor(){super(...arguments),this.id=WO++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=Hr(this.node,o,a);if(l){const{transition:c,transitionEnd:d,...f}=l;for(const h in f)(s=this.node.getValue(h))==null||s.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const KO={animation:{Feature:UO},exit:{Feature:HO}};function Vo(e){return{point:{x:e.pageX,y:e.pageY}}}const GO=e=>t=>Uh(t)&&e(t,Vo(t));function Qs(e,t,n,r){return Co(e,t,GO(n),r)}const Tb=({current:e})=>e?e.ownerDocument.defaultView:null,hy=(e,t)=>Math.abs(e-t);function YO(e,t){const n=hy(e.x,t.x),r=hy(e.y,t.y);return Math.sqrt(n**2+r**2)}const py=new Set(["auto","scroll"]);class Eb{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ya(this.lastRawMoveEventInfo,this.transformPagePoint));const p=yu(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,y=YO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!y)return;const{point:w}=p,{timestamp:g}=Me;this.history.push({...w,timestamp:g});const{onStart:m,onMove:v}=this.handlers;x||(m&&m(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,x)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=ya(x,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(p,x)=>{this.end();const{onEnd:y,onSessionEnd:w,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=yu(p.type==="pointercancel"?this.lastMoveEventInfo:ya(x,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,m),w&&w(p,m)},!Uh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=Vo(t),c=ya(l,this.transformPagePoint),{point:d}=c,{timestamp:f}=Me;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,yu(c,this.history)),this.removeListeners=Io(Qs(this.contextWindow,"pointermove",this.handlePointerMove),Qs(this.contextWindow,"pointerup",this.handlePointerUp),Qs(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(py.has(r.overflowX)||py.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),se.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hr(this.updatePoint)}}function ya(e,t){return t?{point:t(e.point)}:e}function my(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yu({point:e},t){return{point:e,delta:my(e,Pb(t)),offset:my(e,QO(t)),velocity:qO(t,.1)}}function QO(e){return e[0]}function Pb(e){return e[e.length-1]}function qO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Pb(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>rt(t)*2&&(r=e[1]);const s=wt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function XO(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function gy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZO(e,{top:t,left:n,bottom:r,right:i}){return{x:gy(e.x,n,i),y:gy(e.y,t,r)}}function yy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=wo(t.min,t.max-r,e.min):r>i&&(n=wo(e.min,e.max-i,t.min)),ln(0,1,n)}function tD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const af=.35;function nD(e=af){return e===!1?e=0:e===!0&&(e=af),{x:vy(e,"left","right"),y:vy(e,"top","bottom")}}function vy(e,t,n){return{min:xy(e,t),max:xy(e,n)}}function xy(e,t){return typeof e=="number"?e:e[t]||0}const rD=new WeakMap;class iD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{n&&this.snapToCursor(Vo(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:x,onDragStart:y}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RN(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qt(g=>{let m=this.getAxisMotionValue(g).get()||0;if(on.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[g];S&&(m=Ge(S)*(parseFloat(m)/100))}}this.originPoint[g]=m}),y&&se.update(()=>y(f,h),!1,!0),qd(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:y,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(x&&this.currentDirection===null){this.currentDirection=oD(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),w&&se.update(()=>w(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Eb(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Tb(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&se.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!va(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=XO(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&di(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ZO(r.layoutBox,t):this.constraints=!1,this.elastic=nD(n),i!==this.constraints&&!di(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Qt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=tD(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!di(t))return!1;const r=t.current;es(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=sM(r,i.root,this.visualElement.getTransformPagePoint());let o=JO(i.layout.layoutBox,s);if(n){const a=n(nM(o));this.hasMutatedConstraints=!!a,a&&(o=G1(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Qt(d=>{if(!va(d,n,this.currentDirection))return;let f=l&&l[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qd(this.visualElement,t),r.start(Vh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Qt(n=>{const{drag:r}=this.getProps();if(!va(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!di(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=eD({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Qt(o=>{if(!va(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ie(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;rD.set(this.visualElement,this);const t=this.visualElement.current,n=Qs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&IN(h);d&&f&&!p&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();di(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=sD(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),se.read(i);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=af,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function wy(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function sD(e,t,n){const r=kg(e,wy(n)),i=kg(t,wy(n));return()=>{r(),i()}}function va(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class aD extends vr{constructor(t){super(t),this.removeGroupControls=St,this.removeListeners=St,this.controls=new iD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||St}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const vu=e=>(t,n)=>{e&&se.update(()=>e(t,n),!1,!0)};class lD extends vr{constructor(){super(...arguments),this.removePointerDownListener=St}onPointerDown(t){this.session=new Eb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vu(t),onStart:vu(n),onMove:vu(r),onEnd:(s,o)=>{delete this.session,i&&se.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let xu=!1;class cD extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),xu&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),xu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||se.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),$h.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;xu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kb(e){const[t,n]=mb(),r=b.useContext(Eh);return u.jsx(cD,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(Sb),isPresent:t,safeToRemove:n})}const uD={pan:{Feature:lD},drag:{Feature:aD,ProjectionNode:pb,MeasureLayout:kb}};function by(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&se.postRender(()=>s(t,Vo(t)))}class dD extends vr{mount(){const{current:t}=this.node;t&&(this.unmount=MN(t,(n,r)=>(by(this.node,r,"Start"),i=>by(this.node,i,"End"))))}unmount(){}}class fD extends vr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Io(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&se.postRender(()=>s(t,Vo(t)))}class hD extends vr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=FN(t,(i,s)=>(Sy(this.node,s,"Start"),(o,{success:a})=>Sy(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const lf=new WeakMap,wu=new WeakMap,pD=e=>{const t=lf.get(e.target);t&&t(e)},mD=e=>{e.forEach(pD)};function gD({root:e,...t}){const n=e||document;wu.has(n)||wu.set(n,{});const r=wu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(mD,{root:e,...t})),r[i]}function yD(e,t,n){const r=gD(t);return lf.set(e,n),r.observe(e),()=>{lf.delete(e),r.unobserve(e)}}const vD={some:0,all:1};class xD extends vr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:vD[i]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=d?f:h;p&&p(c)};this.stopObserver=yD(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wD(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function wD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bD={inView:{Feature:xD},tap:{Feature:hD},focus:{Feature:fD},hover:{Feature:dD}},SD={layout:{ProjectionNode:pb,MeasureLayout:kb}},CD={...KO,...bD,...uD,...SD},Y=BO(CD,$O),jb="/assets/logo-light-CxauFUUI.png",Cy=[{label:"Home",href:"/"},{label:"Services",href:"/services",children:[{label:"Customer Experience",href:"/services#cx"},{label:"Business Development",href:"/services#sdr"},{label:"Back-Office Support",href:"/services#backoffice"}]},{label:"About Us",href:"/about",children:[{label:"About Us",href:"/about"},{label:"Values",href:"/about#values"}]},{label:"Contact Us",href:"/contact"}],TD=[{Icon:Qx,href:"https://facebook.com/interfaceoutsourcing",label:"Facebook"},{Icon:qx,href:"https://instagram.com/interfaceoutsourcing",label:"Instagram"},{Icon:Xx,href:"https://linkedin.com/company/interfaceoutsourcing",label:"LinkedIn"},{Icon:tw,href:"https://x.com/interface_bpo",label:"X"}],ED=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),[i,s]=b.useState(null),o=ti();b.useEffect(()=>{const l=()=>r(window.scrollY>10);return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),b.useEffect(()=>{t(!1),s(null)},[o.pathname,o.hash]);const a=l=>l==="/"?o.pathname==="/":o.pathname.startsWith(l);return u.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50",children:[u.jsx("div",{className:"bg-background/80 border-b border-white/5",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8 h-9 flex items-center",children:u.jsx("div",{className:"flex items-center gap-3",children:TD.map(({Icon:l,href:c,label:d})=>u.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":d,className:"text-white/40 hover:text-primary transition-colors",children:u.jsx(l,{size:15})},d))})})}),u.jsxs("nav",{className:`transition-all duration-300 ${n?"glass border-b border-white/8 shadow-[0_2px_20px_rgba(0,0,0,0.3)]":"bg-background/50 backdrop-blur-md border-b border-white/5"}`,children:[u.jsxs("div",{className:"container mx-auto px-4 md:px-8 h-[72px] flex items-center justify-between",children:[u.jsx(pe,{to:"/",className:"flex items-center shrink-0",children:u.jsx("img",{src:jb,alt:"Interface Outsourcing",className:"h-8 md:h-9"})}),u.jsx("div",{className:"hidden lg:flex items-center gap-7",children:Cy.map(l=>u.jsxs("div",{className:"relative group",children:[u.jsxs(pe,{to:l.href,className:`flex items-center gap-1 text-[15px] font-medium transition-colors py-6 ${a(l.href)?"text-primary":"text-white/70 hover:text-white"}`,children:[l.label,l.children&&u.jsx(Hm,{size:14,className:"mt-0.5 opacity-60"})]}),l.children&&u.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full pt-1 opacity-0 invisible translate-y-1 group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 transition-all duration-200",children:u.jsx("ul",{className:"glass rounded-xl shadow-[0_12px_40px_rgba(0,0,0,0.4)] border border-white/10 py-2 min-w-[230px]",children:l.children.map((c,d)=>u.jsx("li",{children:u.jsx(pe,{to:c.href,className:"block px-5 py-2.5 text-sm text-white/65 hover:text-primary hover:bg-white/5 transition-colors whitespace-nowrap",children:c.label})},`${c.label}-${d}`))})})]},l.label))}),u.jsx("div",{className:"hidden lg:block",children:u.jsx(pe,{to:"/contact",className:"btn-primary text-sm !px-5 !py-2.5",children:"Get Started"})}),u.jsx("button",{onClick:()=>t(!e),className:"lg:hidden text-white/80","aria-label":"Toggle menu",children:e?u.jsx(nw,{size:26}):u.jsx(Jk,{size:26})})]}),u.jsx(gO,{children:e&&u.jsx(Y.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"lg:hidden overflow-hidden border-t border-white/8 glass",children:u.jsxs("div",{className:"container mx-auto px-4 py-3 flex flex-col",children:[Cy.map(l=>u.jsxs("div",{className:"border-b border-white/8 last:border-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(pe,{to:l.href,className:"flex-1 py-3 text-[15px] font-medium text-white/80",children:l.label}),l.children&&u.jsx("button",{onClick:()=>s(i===l.label?null:l.label),className:"p-3 text-white/40","aria-label":`Toggle ${l.label}`,children:u.jsx(Hm,{size:16,className:`transition-transform ${i===l.label?"rotate-180":""}`})})]}),l.children&&i===l.label&&u.jsx("ul",{className:"pb-2 pl-3",children:l.children.map((c,d)=>u.jsx("li",{children:u.jsx(pe,{to:c.href,className:"block py-2 text-sm text-white/50 hover:text-primary",children:c.label})},`${c.label}-${d}`))})]},l.label)),u.jsx(pe,{to:"/contact",className:"btn-primary text-sm mt-4",children:"Get Started"})]})})})]})]})},PD=[{label:"Home",href:"/"},{label:"Services",href:"/services"},{label:"About Us",href:"/about"},{label:"Contact Us",href:"/contact"}],kD=[{label:"Privacy Policy",href:"/privacy-policy"},{label:"Terms & Conditions",href:"/terms-conditions"}],jD=[{Icon:Qx,href:"https://facebook.com/interfaceoutsourcing",label:"Facebook"},{Icon:qx,href:"https://instagram.com/interfaceoutsourcing",label:"Instagram"},{Icon:Xx,href:"https://linkedin.com/company/interfaceoutsourcing",label:"LinkedIn"},{Icon:tw,href:"https://x.com/interface_bpo",label:"X"}],AD=()=>u.jsx("footer",{className:"bg-navy",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8 pt-16 pb-8",children:[u.jsxs("div",{className:"grid gap-10 md:grid-cols-2 lg:grid-cols-4 mb-12",children:[u.jsxs("div",{children:[u.jsx(pe,{to:"/",children:u.jsx("img",{src:jb,alt:"Interface Outsourcing",className:"h-9 mb-5"})}),u.jsx("p",{className:"text-sm text-white/55 leading-relaxed mb-5 max-w-xs",children:"Dedicated nearshore teams that deliver performance capacity for mid-market companies scaling beyond internal bandwidth."}),u.jsx("div",{className:"flex items-center gap-3",children:jD.map(({Icon:e,href:t,label:n})=>u.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":n,className:"w-9 h-9 rounded-full border border-white/15 flex items-center justify-center text-white/60 hover:text-primary hover:border-primary/50 transition-colors",children:u.jsx(e,{size:16})},n))})]}),u.jsxs("div",{className:"lg:pl-6",children:[u.jsx("h4",{className:"font-display font-bold text-sm text-white mb-4 uppercase tracking-wide",children:"Quick Links"}),u.jsx("ul",{className:"space-y-2.5 text-sm text-white/55",children:PD.map(e=>u.jsx("li",{children:u.jsx(pe,{to:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-display font-bold text-sm text-white mb-4 uppercase tracking-wide",children:"Legal"}),u.jsx("ul",{className:"space-y-2.5 text-sm text-white/55",children:kD.map(e=>u.jsx("li",{children:u.jsx(pe,{to:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-display font-bold text-sm text-white mb-4 uppercase tracking-wide",children:"Contact Us"}),u.jsxs("ul",{className:"space-y-3.5 text-sm text-white/55",children:[u.jsx("li",{children:u.jsxs("a",{href:"tel:+18772060870",className:"flex items-center gap-3 hover:text-primary transition-colors",children:[u.jsx(ew,{size:16,className:"text-primary shrink-0"}),"+1 (877) 206-0870"]})}),u.jsx("li",{children:u.jsxs("a",{href:"mailto:admin@interfaceoutsourcing.com",className:"flex items-center gap-3 hover:text-primary transition-colors break-all",children:[u.jsx(Zx,{size:16,className:"text-primary shrink-0"}),"admin@interfaceoutsourcing.com"]})}),u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx(Jx,{size:16,className:"text-primary shrink-0 mt-0.5"}),u.jsx("span",{children:"19109 West Catawba Avenue, Lake Norman, Suite 225, Cornelius, NC 28031"})]})]})]})]}),u.jsx("div",{className:"border-t border-white/10 pt-7",children:u.jsxs("p",{className:"text-xs text-white/45 text-center",children:["Copyright © ",new Date().getFullYear()," Interface Outsourcing Group, LLC. All Rights Reserved."]})})]})}),RD=()=>{const{pathname:e,hash:t}=ti();return b.useEffect(()=>{t||window.scrollTo(0,0)},[e,t]),u.jsxs("div",{className:"min-h-screen flex flex-col",children:[u.jsx(ED,{}),u.jsx("div",{className:"h-[108px]"}),u.jsx("main",{className:"flex-1",children:u.jsx(jE,{})}),u.jsx(AD,{})]})},cf="https://interfaceoutsourcing.com",ND=`${cf}/og-image.png`,xr=({title:e,description:t,canonical:n,ogImage:r=ND,ogType:i="website",noIndex:s=!1})=>{const o=e.includes("Interface")?e:`${e} | Interface Outsourcing Group`,a=n||(typeof window<"u"?`${cf}${window.location.pathname}`:cf);return u.jsxs(vx,{children:[u.jsx("title",{children:o}),u.jsx("meta",{name:"description",content:t}),u.jsx("link",{rel:"canonical",href:a}),s&&u.jsx("meta",{name:"robots",content:"noindex, nofollow"}),u.jsx("meta",{property:"og:title",content:o}),u.jsx("meta",{property:"og:description",content:t}),u.jsx("meta",{property:"og:type",content:i}),u.jsx("meta",{property:"og:url",content:a}),u.jsx("meta",{property:"og:image",content:r}),u.jsx("meta",{property:"og:site_name",content:"Interface Outsourcing Group"}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:o}),u.jsx("meta",{name:"twitter:description",content:t}),u.jsx("meta",{name:"twitter:image",content:r})]})},Dl="https://interfaceoutsourcing.com",MD={"@context":"https://schema.org","@type":"Organization",name:"Interface Outsourcing Group",url:Dl,logo:`${Dl}/assets/logo-light.png`,description:"Dedicated nearshore outsourcing teams for Customer Experience, Business Development, and Back-Office Support. SOC 2 guidelines, US-aligned operations from Central America.",contactPoint:{"@type":"ContactPoint",email:"admin@interfaceoutsourcing.com",contactType:"sales",availableLanguage:["English","Spanish"]},sameAs:["https://www.facebook.com/interfaceoutsourcing","https://www.instagram.com/interfaceoutsourcing","https://www.linkedin.com/company/interfaceoutsourcing","https://twitter.com/interfacebpo"],areaServed:{"@type":"Country",name:"United States"},knowsAbout:["Business Process Outsourcing","Customer Experience Management","Sales Development","Back-Office Operations","Nearshore Outsourcing"]},OD={"@context":"https://schema.org","@type":"ProfessionalService",name:"Interface Outsourcing Group",url:Dl,priceRange:"$$",address:{"@type":"PostalAddress",streetAddress:"19109 West Catawba Avenue, Suite 225",addressLocality:"Cornelius",addressRegion:"NC",postalCode:"28031",addressCountry:"US"},hasOfferCatalog:{"@type":"OfferCatalog",name:"Outsourcing Services",itemListElement:[{"@type":"Offer",itemOffered:{"@type":"Service",name:"Customer Experience Outsourcing",description:"Dedicated CX pods for voice, chat, email, escalation, QA, and proactive support."}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Business Development Outsourcing",description:"Nearshore SDR teams that execute your playbooks and drive qualified pipeline."}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Back-Office Support",description:"Payroll, AP/AR, data management, and admin functions built for accuracy."}}]}},zo=({breadcrumbs:e,page:t="inner"})=>{const n=e?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((r,i)=>({"@type":"ListItem",position:i+1,name:r.name,item:`${Dl}${r.href}`}))}:null;return u.jsxs(vx,{children:[t==="home"&&u.jsx("script",{type:"application/ld+json",children:JSON.stringify(MD)}),t==="home"&&u.jsx("script",{type:"application/ld+json",children:JSON.stringify(OD)}),n&&u.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]})},Ab="/assets/hero-globe-Djf6wzfj.jpg",pt={initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"}},DD=[{big:"SOC 2",title:"Guidelines",desc:"Security and compliance controls built for serious client operations."},{big:"US",title:"Business Hours",desc:"Nearshore coverage aligned to your teams and customers."},{big:"5 wks",title:"Onboarding",desc:"Production-ready pods in five to six weeks for most engagements."}],LD=[{title:"Customer Experience",desc:"Dedicated CX pods for voice, chat, email, escalation, QA, and proactive support.",stat:"72% to 88%",caption:"CSAT improvement example",href:"/services#cx"},{title:"Business Development",desc:"Nearshore SDR teams that execute your playbooks and drive qualified pipeline.",stat:"240",caption:"SQLs per month example",href:"/services#sdr"},{title:"Back-Office Support",desc:"Payroll, AP/AR, data management, and admin functions built for accuracy.",stat:"Zero",caption:"Payroll errors example",href:"/services#backoffice"}],ID=[{title:"Dedicated Pods",desc:"Your people, your workflows, your KPIs. No shared queues."},{title:"Performance-Based",desc:"We manage toward CSAT, conversion, accuracy, speed, and outcomes."},{title:"Nearshore Advantage",desc:"Central America teams aligned with US business hours and culture."},{title:"Full Transparency",desc:"Daily visibility, weekly reviews, and monthly business reviews."}],_D=[{quote:"Interface did not just add headcount. They added a fully functioning arm of our sales team.",author:"VP Sales",company:"$45M SaaS Company"},{quote:"We were convinced nearshore support would not work. Their dedicated pod proved us wrong fast.",author:"Head of Customer Success",company:"$30M MarketTech"},{quote:"Our operations team went from drowning to finally having room to improve the business.",author:"CFO",company:"$25M E-commerce"}],FD=[{num:"01",title:"Discovery",desc:"We document workflows, KPIs, tools, and success criteria."},{num:"02",title:"Recruitment",desc:"We source and train your dedicated pod around the blueprint."},{num:"03",title:"Ramp Up",desc:"We launch, coach, QA, and optimize during live volume."},{num:"04",title:"Ongoing",desc:"Dashboards, reviews, and improvements keep the pod moving."}],VD=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Interface Outsourcing Group | People-Powered Outsourcing Solutions",description:"Dedicated nearshore outsourcing teams for Customer Experience, Sales Development, and Back-Office Support. SOC 2 guidelines, US business hours, production-ready in 5 weeks. Get a custom team model today.",canonical:"https://interfaceoutsourcing.com/"}),u.jsx(zo,{page:"home",breadcrumbs:[{name:"Home",href:"/"}]}),u.jsxs("section",{className:"bg-hero relative overflow-hidden min-h-[70vh] flex flex-col",children:[u.jsxs("div",{className:"absolute inset-x-0 bottom-0 h-[75%] md:h-[80%] pointer-events-none",children:[u.jsx("img",{src:Ab,alt:"Globe representing Interface Outsourcing's worldwide nearshore operations",className:"w-full h-full object-cover object-top opacity-60"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[hsl(228_80%_3%)] via-[hsl(228_80%_3%/0.45)] to-transparent"}),u.jsx("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-[hsl(228_80%_4%)] to-transparent"})]}),u.jsx("div",{className:"absolute top-[30%] left-1/2 -translate-x-1/2 w-[50rem] h-[20rem] rounded-full bg-primary/15 blur-[120px] pointer-events-none"}),u.jsx("div",{className:"absolute top-0 right-0 w-[30rem] h-[30rem] rounded-full bg-accent/6 blur-[150px] -translate-y-1/4 translate-x-1/4 pointer-events-none"}),u.jsxs("div",{className:"container mx-auto px-4 md:px-8 relative z-10 flex-1 flex flex-col items-center justify-center text-center pt-20 md:pt-28 pb-16",children:[u.jsx(Y.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5},className:"inline-flex items-center rounded-full border border-white/15 bg-white/5 backdrop-blur-sm px-4 py-1.5 mb-8",children:u.jsx("span",{className:"text-xs font-bold text-primary tracking-[0.09em] uppercase",children:"People-Powered Outsourcing Solutions"})}),u.jsx(Y.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.05},className:"text-h1 text-white mb-6 max-w-4xl",children:"People-Powered Outsourcing Solutions"}),u.jsx(Y.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},className:"text-subheading text-white/55 max-w-2xl",children:"Dedicated teams that operate as extensions of your business, aligned to your workflows, KPIs, and growth targets. Not shared queues. Not labor arbitrage. Performance capacity."}),u.jsxs(Y.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.25},className:"flex flex-col sm:flex-row gap-4 mt-10",children:[u.jsxs(pe,{to:"/contact",className:"btn-primary",children:["Contact Us ",u.jsx(Ur,{size:18})]}),u.jsx(pe,{to:"/how-it-works",className:"btn-outline-light",children:"Explore How We Work"})]})]}),u.jsx("div",{className:"container mx-auto px-4 md:px-8 relative z-10 pb-12 md:pb-20",children:u.jsx("div",{className:"grid sm:grid-cols-3 gap-4 max-w-4xl mx-auto",children:DD.map((e,t)=>u.jsxs(Y.div,{...pt,transition:{duration:.5,delay:.3+t*.1},className:"glass-card rounded-2xl border border-white/10 p-6 text-center",children:[u.jsx("div",{className:"text-h4 text-gradient-blue mb-1",children:e.big}),u.jsx("div",{className:"text-sm font-bold text-white mb-1",children:e.title}),u.jsx("p",{className:"text-xs text-white/50 leading-relaxed",children:e.desc})]},e.title))})})]}),u.jsx("section",{className:"bg-muted py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...pt,transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"Services"}),u.jsx("h2",{className:"text-h2 mb-4",children:"Three Ways We Add Capacity"}),u.jsx("p",{className:"text-subheading text-muted-foreground",children:"Choose one, two, or all three. Each service is structured around dedicated teams, measurable outcomes, and accountable management."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:LD.map((e,t)=>u.jsxs(Y.div,{...pt,transition:{duration:.5,delay:t*.1},className:"glass-card rounded-2xl border border-white/10 p-8 flex flex-col",children:[u.jsx("h3",{className:"text-h5 text-foreground mb-3",children:e.title}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed mb-6 flex-1",children:e.desc}),u.jsx("div",{className:"text-[32px] font-bold text-gradient-blue leading-none mb-1",children:e.stat}),u.jsx("div",{className:"text-xs text-muted-foreground mb-6",children:e.caption}),u.jsxs(pe,{to:e.href,className:"inline-flex items-center gap-1 text-sm font-bold text-primary hover:gap-2 transition-all",children:["Learn more ",u.jsx(Ur,{size:14})]})]},e.title))})]})}),u.jsx("section",{className:"bg-background py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...pt,transition:{duration:.6},className:"max-w-3xl mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"Why Interface"}),u.jsx("h2",{className:"text-h2",children:"Why Mid-Market Companies Choose Interface"})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:ID.map((e,t)=>u.jsxs(Y.div,{...pt,transition:{duration:.5,delay:t*.08},className:"glass-card rounded-2xl border border-white/10 p-7",children:[u.jsx("h3",{className:"text-h6 text-foreground mb-3",children:e.title}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed",children:e.desc})]},e.title))})]})}),u.jsx("section",{className:"bg-muted py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...pt,transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"Client Results"}),u.jsx("h2",{className:"text-h2",children:"Built to Become Part of the Team"})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:_D.map((e,t)=>u.jsxs(Y.div,{...pt,transition:{duration:.5,delay:t*.1},className:"glass-card rounded-2xl border border-white/10 border-l-4 border-l-primary p-8 flex flex-col",children:[u.jsx("blockquote",{className:"text-p1 italic text-foreground/80 leading-relaxed mb-6 flex-1",children:e.quote}),u.jsxs("div",{children:[u.jsx("div",{className:"font-display font-bold text-sm text-foreground",children:e.author}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e.company})]})]},e.author))})]})}),u.jsx("section",{className:"bg-background py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...pt,transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"Process"}),u.jsx("h2",{className:"text-h2 mb-4",children:"Production-Ready in 5 to 6 Weeks"}),u.jsx("p",{className:"text-subheading text-muted-foreground",children:"Discovery, recruitment, ramp-up, and ongoing management give you capacity without losing control."})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:FD.map((e,t)=>u.jsxs(Y.div,{...pt,transition:{duration:.5,delay:t*.08},className:"glass-card rounded-2xl border border-white/10 p-7",children:[u.jsx("div",{className:"text-h4 text-gradient-blue mb-3",children:e.num}),u.jsx("h3",{className:"text-h6 text-foreground mb-2",children:e.title}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed",children:e.desc})]},e.num))})]})}),u.jsxs("section",{className:"bg-hero santr-bg relative overflow-hidden py-20 md:py-28",children:[u.jsx("div",{className:"absolute bottom-0 left-0 w-[35rem] h-[35rem] rounded-full bg-primary/8 blur-[150px] translate-y-1/3 -translate-x-1/4"}),u.jsx("div",{className:"absolute top-0 right-0 w-[25rem] h-[25rem] rounded-full bg-accent/6 blur-[120px] -translate-y-1/4 translate-x-1/4"}),u.jsxs("div",{className:"container mx-auto px-4 md:px-8 relative z-10 text-center",children:[u.jsx(Y.h2,{...pt,transition:{duration:.6},className:"text-h2 text-white mb-4",children:"Ready to Outsource the Right Way?"}),u.jsx(Y.p,{...pt,transition:{duration:.6,delay:.1},className:"text-subheading text-white/55 mb-9 max-w-xl mx-auto",children:"Let us map the right dedicated team model for your workflows, KPIs, and growth targets."}),u.jsxs(Y.div,{...pt,transition:{duration:.6,delay:.2},className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsxs(pe,{to:"/contact",className:"btn-primary",children:["Contact Us ",u.jsx(Ur,{size:18})]}),u.jsx(pe,{to:"/services",className:"btn-outline-light",children:"Explore Services"})]})]})]})]}),hs=({badge:e,title:t,titleAccent:n,subtitle:r,primaryCta:i,secondaryCta:s})=>u.jsxs("section",{className:"bg-hero relative overflow-hidden min-h-[70vh] flex flex-col",children:[u.jsxs("div",{className:"absolute inset-x-0 bottom-0 h-[75%] md:h-[80%] pointer-events-none",children:[u.jsx("img",{src:Ab,alt:"Globe representing Interface Outsourcing's nearshore operations coverage",className:"w-full h-full object-cover object-top opacity-60"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[hsl(228_80%_3%)] via-[hsl(228_80%_3%/0.45)] to-transparent"}),u.jsx("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-[hsl(228_80%_4%)] to-transparent"})]}),u.jsx("div",{className:"absolute top-[35%] left-1/2 -translate-x-1/2 w-[40rem] h-[16rem] rounded-full bg-primary/12 blur-[100px] pointer-events-none"}),u.jsx("div",{className:"absolute top-0 right-0 w-[30rem] h-[30rem] rounded-full bg-accent/6 blur-[150px] -translate-y-1/4 translate-x-1/4 pointer-events-none"}),u.jsx("div",{className:"container mx-auto px-4 md:px-8 relative z-10 flex-1 flex flex-col items-center justify-center text-center pt-20 md:pt-28 pb-16",children:u.jsxs("div",{className:"max-w-3xl mx-auto",children:[e&&u.jsx(Y.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5},className:"inline-flex items-center rounded-full border border-white/15 bg-white/5 backdrop-blur-sm px-4 py-1.5 mb-7",children:u.jsx("span",{className:"text-xs font-bold text-primary tracking-[0.09em] uppercase",children:e})}),u.jsxs(Y.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.05},className:"text-h1 text-white mb-6",children:[t,n&&u.jsxs(u.Fragment,{children:[" ",u.jsx("span",{className:"text-gradient-blue",children:n})]})]}),r&&u.jsx(Y.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},className:"text-subheading text-white/55 leading-relaxed max-w-2xl mx-auto",children:r}),(i||s)&&u.jsxs(Y.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.25},className:"flex flex-col sm:flex-row gap-4 mt-9 justify-center",children:[i&&u.jsxs(pe,{to:i.href,className:"btn-primary",children:[i.label,u.jsx(Ur,{size:18})]}),s&&u.jsx(pe,{to:s.href,className:"btn-outline-light",children:s.label})]})]})})]}),As={initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"}},zD=[{id:"cx",eyebrow:"Customer Experience",heading:"Dedicated CX Teams That Own Your Customer Outcomes",desc:"Inbound support, proactive outreach, and escalation management, fully aligned to your brand, workflows, and SLAs. Every customer gets the same quality, every time.",bullets:["Voice, chat, and email support with 24/5 coverage","Brand-aligned responses and escalation ownership","Real-time performance monitoring and quality assurance"],stats:[{value:"88%",label:"CSAT from 72%"},{value:"79%",label:"First contact resolution"},{value:"-40%",label:"Cost per ticket"}],quote:"Our 8-agent dedicated pod improved CSAT from 72% to 88%, first contact resolution went up 31%, and cost per ticket dropped 40%.",author:"VP Customer Success, B2B SaaS Platform ($40M ARR)"},{id:"sdr",eyebrow:"Business Development",heading:"Nearshore SDRs That Drive Your Pipeline",desc:"Outbound prospecting and inbound qualification teams that operate as extensions of your sales organization. Measured on meetings booked, SQL conversion, and revenue contribution.",bullets:["Outbound prospecting and inbound qualification","CRM management and pipeline integrity","Playbook execution with real-time coaching"],stats:[{value:"240",label:"SQLs per month"},{value:"34%",label:"Conversion quality"},{value:"35%",label:"Forecast contribution"}],quote:"The 4-person SDR pod hit 240 SQLs in month one, reached 34% conversion by month three, and contributed 35% of forecast.",author:"VP Sales, Mid-Market B2B SaaS ($35M ARR)"},{id:"backoffice",eyebrow:"Back-Office Support",heading:"Back-Office Teams That Remove Operational Drag",desc:"Payroll, AP/AR, data management, and administrative functions delivered with compliance-first processes and daily visibility.",bullets:["Payroll, AP/AR, and data entry management","Compliance monitoring and workflow optimization","Clear ownership over recurring operational work"],stats:[{value:"-35%",label:"Processing time"},{value:"0",label:"Payroll errors"},{value:"20",label:"Hours freed weekly"}],quote:"A 3-person back-office pod reduced processing time by 35%, eliminated payroll errors, and moved invoices in three days.",author:"CFO, Mid-Market Manufacturing ($32M ARR)"}],BD=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Outsourcing Services | CX, Sales Development & Back-Office Support",description:"Three dedicated outsourcing services: Customer Experience pods, nearshore SDR teams for pipeline growth, and back-office support for payroll, AP/AR, and data management. Performance-based, measurable outcomes.",canonical:"https://interfaceoutsourcing.com/services"}),u.jsx(zo,{breadcrumbs:[{name:"Home",href:"/"},{name:"Services",href:"/services"}]}),u.jsx(hs,{badge:"Our Services",title:"Three Ways We Add Capacity",subtitle:"Choose one, two, or all three. Each is structured for performance, not just labor. Dedicated pods. Measurable outcomes. Real accountability.",primaryCta:{label:"Contact Us",href:"/contact"}}),zD.map((e,t)=>u.jsx("section",{id:e.id,className:`scroll-mt-28 py-20 md:py-24 ${t%2===0?"bg-background":"bg-muted"}`,children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 max-w-6xl mx-auto items-start",children:[u.jsxs(Y.div,{...As,transition:{duration:.6},children:[u.jsx("div",{className:"eyebrow mb-3",children:e.eyebrow}),u.jsx("h2",{className:"text-h3 text-foreground mb-5",children:e.heading}),u.jsx("p",{className:"text-p1 text-muted-foreground leading-relaxed mb-8",children:e.desc}),u.jsx("ul",{className:"space-y-3.5",children:e.bullets.map(n=>u.jsxs("li",{className:"flex items-start gap-3 text-p2 text-foreground/85",children:[u.jsx("span",{className:"mt-0.5 w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:u.jsx(ph,{className:"w-3 h-3 text-primary"})}),n]},n))})]}),u.jsxs(Y.div,{...As,transition:{duration:.6,delay:.15},children:[u.jsx("div",{className:"grid grid-cols-3 gap-4 mb-6",children:e.stats.map(n=>u.jsxs("div",{className:"glass-card rounded-xl border border-white/10 p-5 text-center",children:[u.jsx("div",{className:"text-[28px] font-bold text-gradient-blue leading-none",children:n.value}),u.jsx("div",{className:"text-[11px] text-muted-foreground mt-2 leading-tight",children:n.label})]},n.label))}),u.jsxs("div",{className:"glass-card rounded-xl border border-white/10 border-l-4 border-l-primary p-7",children:[u.jsx("blockquote",{className:"text-p1 italic text-foreground/80 leading-relaxed mb-4",children:e.quote}),u.jsx("div",{className:"text-sm font-bold text-foreground",children:e.author})]})]})]})})},e.id)),u.jsxs("section",{className:"bg-hero santr-bg relative overflow-hidden py-20 md:py-28",children:[u.jsx("div",{className:"absolute bottom-0 right-0 w-[35rem] h-[35rem] rounded-full bg-primary/8 blur-[150px] translate-y-1/3 translate-x-1/4"}),u.jsx("div",{className:"absolute top-0 left-0 w-[25rem] h-[25rem] rounded-full bg-accent/5 blur-[120px] -translate-y-1/4 -translate-x-1/4"}),u.jsxs("div",{className:"container mx-auto px-4 md:px-8 relative z-10 text-center",children:[u.jsx(Y.h2,{...As,transition:{duration:.6},className:"text-h2 text-white mb-4",children:"Ready to Outsource the Right Way?"}),u.jsx(Y.p,{...As,transition:{duration:.6,delay:.1},className:"text-subheading text-white/55 mb-9 max-w-xl mx-auto",children:"Let us map the right dedicated team model for your workflows, KPIs, and growth targets."}),u.jsxs(Y.div,{...As,transition:{duration:.6,delay:.2},className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsxs(pe,{to:"/contact",className:"btn-primary",children:["Contact Us ",u.jsx(Ur,{size:18})]}),u.jsx(pe,{to:"/services",className:"btn-outline-light",children:"Explore Services"})]})]})]})]}),xa={initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"}},bu=[{icon:ej,phase:"Phase 1",title:"Discovery & Design",timeline:"Weeks 1–2",description:"We start by understanding your world: workflows, KPIs, tools, team dynamics, compliance requirements. This is the foundation—if we don't understand your business, we can't scale it.",deliverables:["Engagement blueprint (detailed operating model)","SLA agreement (clear performance targets)","Onboarding timeline (realistic milestones)","Tool & system requirements (what we need access to)"],effort:"1 kickoff meeting + 2–3 follow-up calls"},{icon:qk,phase:"Phase 2",title:"Recruitment & Training",timeline:"Weeks 2–4",description:"We source, vet, and hire pod members. They onboard to your tools, learn your process, and soft-launch with low volume to reduce ramp risk. Every team member is background-checked and skill-matched.",deliverables:["Vetted pod members (background-checked, skilled, aligned)","Tool onboarding (Salesforce, Zendesk, Asana, etc.)","Process training (playbooks, workflows, escalation paths)","Soft launch period (low volume, high coaching)"],effort:"Training sessions + feedback cycles"},{icon:rj,phase:"Phase 3",title:"Ramp & Optimization",timeline:"Weeks 4–8",description:"Volume scales. We monitor closely. Daily coaching happens. Quality assurance runs. Process refinement is continuous. By week 8, you're fully productive and hitting SLAs.",deliverables:["Production-ready team (hitting SLA targets)","Daily performance dashboards (live KPIs)","Weekly coaching & optimization (structured reviews)","Issue resolution playbook (how we handle problems)"],effort:"Daily stand-ups (15 min) + weekly reviews (1 hour)"},{icon:tj,phase:"Phase 4",title:"Ongoing Management & Growth",timeline:"Continuous",description:"This is the long-term partnership model. Daily stand-ups. Weekly performance reviews. Monthly business reviews. Continuous improvement cycles. Scaling as you grow.",deliverables:["Daily KPI dashboards (real-time visibility)","Weekly performance reviews (metrics + coaching)","Monthly business reviews (strategy + optimization)","Continuous improvement (playbook updates, tool optimization)"],effort:"15-min daily + 1-hr weekly + 2-hr monthly review"}],$D=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"How It Works | Outsourcing Onboarding Process in 5-6 Weeks",description:"From discovery to production-ready in 5-6 weeks. Learn our 4-phase onboarding process: Discovery, Recruitment, Ramp-Up, and Ongoing Management for dedicated outsourcing teams.",canonical:"https://interfaceoutsourcing.com/how-it-works"}),u.jsx(zo,{breadcrumbs:[{name:"Home",href:"/"},{name:"How It Works",href:"/how-it-works"}]}),u.jsx(hs,{badge:"Our Process",title:"From Discovery to Day 1",titleAccent:"and Beyond",subtitle:"Four phases. Clear milestones. Rapid onboarding. Most clients are production-ready in 5–6 weeks. Fully optimized by week 8.",primaryCta:{label:"Start Your Discovery",href:"/contact"},secondaryCta:{label:"View Services",href:"/services"}}),u.jsx("section",{className:"py-6 bg-background border-b border-border",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsx("div",{className:"flex items-center justify-center gap-2 md:gap-4 max-w-4xl mx-auto",children:bu.map((e,t)=>u.jsxs("div",{className:"flex items-center gap-2 md:gap-4",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-8 h-8 md:w-10 md:h-10 rounded-full bg-gradient-blue flex items-center justify-center text-primary-foreground text-xs md:text-sm font-bold",children:t+1}),u.jsx("span",{className:"hidden md:block text-xs font-medium text-foreground",children:e.title})]}),tu.jsx("section",{className:`py-20 md:py-24 ${t%2===0?"bg-background":"bg-muted"}`,children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsx("div",{className:"max-w-5xl mx-auto",children:u.jsxs(Y.div,{...xa,transition:{duration:.6},className:"grid md:grid-cols-[1fr_1.5fr] gap-10 items-start",children:[u.jsxs("div",{children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-blue flex items-center justify-center mb-6",children:u.jsx(e.icon,{className:"w-8 h-8 text-primary-foreground"})}),u.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-primary mb-1",children:e.phase}),u.jsx("h2",{className:"text-h3 text-foreground mb-2",children:e.title}),u.jsxs("div",{className:"inline-flex items-center gap-2 text-p2 text-muted-foreground mb-4",children:[u.jsx(Yx,{className:"w-4 h-4"})," ",e.timeline]}),u.jsx("p",{className:"text-p1 text-muted-foreground leading-relaxed",children:e.description})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"glass-card rounded-xl border border-white/10 p-6 md:p-8 mb-6",children:[u.jsx("h3",{className:"font-display font-bold text-sm text-foreground mb-4",children:"Deliverables"}),u.jsx("ul",{className:"space-y-3",children:e.deliverables.map(n=>u.jsxs("li",{className:"flex items-start gap-3 text-p2 text-foreground/80",children:[u.jsx(ph,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),n]},n))})]}),u.jsxs("div",{className:"bg-gradient-blue-subtle rounded-xl p-5 border border-primary/10",children:[u.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:"Your Effort"}),u.jsx("p",{className:"text-p2 text-foreground/70 mt-1",children:e.effort})]})]})]})})})},e.phase)),u.jsxs("section",{className:"bg-hero santr-bg relative overflow-hidden py-20 md:py-28",children:[u.jsx("div",{className:"absolute bottom-0 left-0 w-[35rem] h-[35rem] rounded-full bg-primary/8 blur-[150px] translate-y-1/3 -translate-x-1/4"}),u.jsx("div",{className:"absolute top-0 right-0 w-[25rem] h-[25rem] rounded-full bg-accent/5 blur-[120px] -translate-y-1/4 translate-x-1/4"}),u.jsxs("div",{className:"container mx-auto px-4 md:px-8 relative z-10 text-center",children:[u.jsxs(Y.h2,{...xa,transition:{duration:.6},className:"text-h2 text-white mb-4",children:["Ready to ",u.jsx("span",{className:"text-gradient-blue",children:"Get Started?"})]}),u.jsx(Y.p,{...xa,transition:{duration:.6,delay:.1},className:"text-subheading text-white/55 mb-9 max-w-xl mx-auto",children:"Most clients go from first conversation to production-ready team in 5–6 weeks."}),u.jsxs(Y.div,{...xa,transition:{duration:.6,delay:.2},className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsxs(pe,{to:"/contact",className:"btn-primary",children:["Schedule Your Discovery Call ",u.jsx(Ur,{size:18})]}),u.jsx(pe,{to:"/services",className:"btn-outline-light",children:"View Services"})]})]})]})]}),Er={initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"}},UD=["High-speed internet with 99.9% uptime","Backup power and redundant infrastructure","Compliance-ready environments","On-site monitoring and management"],WD=[{Icon:nj,title:"SOC 2 Guidelines",desc:"Controls aligned to security, availability, and confidentiality."},{Icon:Xk,title:"HIPAA-Ready Infrastructure",desc:"Healthcare-related engagements can operate with HIPAA-ready controls where required."},{Icon:Zk,title:"Data Encryption",desc:"Encryption in transit and at rest where applicable."}],HD=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"About Interface Outsourcing | Nearshore BPO Partner for Mid-Market Companies",description:"Interface Outsourcing builds dedicated nearshore teams from Central America, aligned to US business hours. SOC 2 guidelines, HIPAA-ready infrastructure, and full operational transparency.",canonical:"https://interfaceoutsourcing.com/about"}),u.jsx(zo,{breadcrumbs:[{name:"Home",href:"/"},{name:"About",href:"/about"}]}),u.jsx(hs,{badge:"About Interface",title:"We Are Not Another BPO. We Are Your Operational Extension.",subtitle:"Interface builds dedicated nearshore teams that deliver performance capacity for mid-market companies scaling beyond internal bandwidth."}),u.jsx("section",{className:"bg-muted py-20 md:py-28",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-16 max-w-6xl mx-auto items-center",children:[u.jsxs(Y.div,{...Er,transition:{duration:.6},children:[u.jsx("div",{className:"eyebrow mb-3",children:"Operations"}),u.jsx("h2",{className:"text-h3 mb-4",children:"Central America-Based, US-Aligned Operations"}),u.jsx("p",{className:"text-p1 text-muted-foreground leading-relaxed mb-8",children:"Our operations center is built for reliability, compliance, and real-time collaboration with client teams."}),u.jsx("ul",{className:"space-y-3.5",children:UD.map(e=>u.jsxs("li",{className:"flex items-start gap-3 text-p2 text-foreground/85",children:[u.jsx("span",{className:"mt-0.5 w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:u.jsx(ph,{className:"w-3 h-3 text-primary"})}),e]},e))})]}),u.jsxs(Y.div,{...Er,transition:{duration:.6,delay:.15},className:"bg-hero rounded-2xl p-8 md:p-10 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 rounded-full bg-primary/15 blur-[90px]"}),u.jsxs("div",{className:"relative z-10",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/15 flex items-center justify-center mb-5",children:u.jsx(Yx,{className:"w-6 h-6 text-primary"})}),u.jsx("h3",{className:"text-h5 text-white mb-3",children:"Time Zone Advantage"}),u.jsx("p",{className:"text-primary font-bold mb-4",children:"Coverage: 5am MST to 7pm MST / 7am EST to 9pm EST"}),u.jsx("p",{className:"text-p2 text-white/60 leading-relaxed",children:"That gives clients same-day issue resolution, Slack and Teams collaboration, morning huddles, and a team that works inside the normal rhythm of the business."})]})]})]})})}),u.jsx("section",{className:"bg-background py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...Er,transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"Security"}),u.jsx("h2",{className:"text-h2",children:"Security & Compliance Built In"})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:WD.map((e,t)=>u.jsxs(Y.div,{...Er,transition:{duration:.5,delay:t*.1},className:"glass-card rounded-2xl border border-white/10 p-8",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-blue flex items-center justify-center mb-5",children:u.jsx(e.Icon,{className:"w-6 h-6 text-white"})}),u.jsx("h3",{className:"text-h6 text-foreground mb-3",children:e.title}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed",children:e.desc})]},e.title))})]})}),u.jsxs("section",{className:"bg-hero santr-bg relative overflow-hidden py-20 md:py-28",children:[u.jsx("div",{className:"absolute bottom-0 left-0 w-[35rem] h-[35rem] rounded-full bg-primary/8 blur-[150px] translate-y-1/3 -translate-x-1/4"}),u.jsx("div",{className:"absolute top-0 right-0 w-[25rem] h-[25rem] rounded-full bg-accent/5 blur-[120px] -translate-y-1/4 translate-x-1/4"}),u.jsxs("div",{className:"container mx-auto px-4 md:px-8 relative z-10 text-center",children:[u.jsx(Y.h2,{...Er,transition:{duration:.6},className:"text-h2 text-white mb-4",children:"Ready to See the Difference?"}),u.jsx(Y.p,{...Er,transition:{duration:.6,delay:.1},className:"text-subheading text-white/55 mb-9 max-w-xl mx-auto",children:"Interface is designed for teams that need accountable operating capacity, not anonymous outsourcing."}),u.jsxs(Y.div,{...Er,transition:{duration:.6,delay:.2},className:"flex flex-col sm:flex-row gap-4 justify-center",children:[u.jsxs(pe,{to:"/contact",className:"btn-primary",children:["Contact Us ",u.jsx(Ur,{size:18})]}),u.jsx(pe,{to:"/services",className:"btn-outline-light",children:"Explore Services"})]})]})]})]}),Rs={initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"}},KD=[{num:"1",title:"Response",desc:"We respond within 24 hours."},{num:"2",title:"Discovery",desc:"We run a 30-minute discovery call."},{num:"3",title:"Proposal",desc:"You get a custom team model and ramp plan."},{num:"4",title:"Proof",desc:"We share relevant examples and case studies."}],GD=[{value:"88%",label:"Average CSAT example"},{value:"5 wks",label:"Average onboarding"},{value:"34%",label:"SQL conversion example"},{value:"0",label:"Payroll errors example"}],YD=()=>{const[e,t]=b.useState(!1),n=async r=>{r.preventDefault(),t(!0);const i=r.currentTarget,s=new FormData(i);try{(await fetch("/send-email.php",{method:"POST",body:s})).ok?(i.reset(),Zc.success("Thanks — we'll respond within 24 hours.")):Zc.error("Something went wrong. Please email us directly at admin@interfaceoutsourcing.com")}catch{Zc.error("Something went wrong. Please email us directly at admin@interfaceoutsourcing.com")}finally{t(!1)}};return u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Contact Interface Outsourcing | Get a Custom Team Model",description:"Schedule a consultation with Interface Outsourcing. We respond within 24 hours with a custom dedicated team model for your CX, sales development, or back-office needs.",canonical:"https://interfaceoutsourcing.com/contact"}),u.jsx(zo,{breadcrumbs:[{name:"Home",href:"/"},{name:"Contact",href:"/contact"}]}),u.jsx(hs,{badge:"Contact",title:"Ready to Outsource the Right Way?",subtitle:"Schedule a consultation and we will help map the right dedicated team structure for your workflows, KPIs, and growth targets."}),u.jsx("section",{className:"bg-background py-20 md:py-24",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 max-w-6xl mx-auto items-start",children:[u.jsxs(Y.div,{...Rs,transition:{duration:.6},className:"glass-card rounded-2xl border border-white/10 p-8",children:[u.jsx("h2",{className:"text-h4 text-foreground mb-3",children:"Start the Conversation"}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed mb-4",children:"Use the form on this page or contact us directly. We will respond within 24 hours, schedule a 30-minute discovery call, and prepare a custom proposal when there is a fit."}),u.jsxs("p",{className:"text-p2 text-muted-foreground leading-relaxed mb-2",children:[u.jsx("span",{className:"font-bold text-foreground",children:"Interested in:"})," Customer Experience, Business Development, Back-Office Support, or a blended dedicated pod."]}),u.jsxs("p",{className:"text-p2 text-muted-foreground leading-relaxed mb-7",children:[u.jsx("span",{className:"font-bold text-foreground",children:"Helpful details:"})," current volume, tools, team size, target KPIs, and timeline."]}),u.jsxs("form",{onSubmit:n,className:"space-y-4",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsx(wa,{label:"Name",name:"name",placeholder:"Your name",required:!0}),u.jsx(wa,{label:"Email",name:"email",type:"email",placeholder:"you@company.com",required:!0})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[u.jsx(wa,{label:"Company",name:"company",placeholder:"Company name"}),u.jsx(wa,{label:"Phone",name:"phone",placeholder:"+1 (555) 000-0000"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:"Interested in"}),u.jsxs("select",{name:"interest",className:"w-full rounded-lg border border-input bg-background px-4 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring/40",defaultValue:"",children:[u.jsx("option",{value:"",disabled:!0,children:"Select a service"}),u.jsx("option",{children:"Customer Experience"}),u.jsx("option",{children:"Business Development"}),u.jsx("option",{children:"Back-Office Support"}),u.jsx("option",{children:"Blended dedicated pod"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:"Message"}),u.jsx("textarea",{name:"message",rows:4,placeholder:"Tell us about current volume, tools, team size, target KPIs, and timeline.",className:"w-full rounded-lg border border-input bg-background px-4 py-2.5 text-sm text-foreground placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring/40 resize-none"})]}),u.jsx("button",{type:"submit",disabled:e,className:"btn-primary w-full disabled:opacity-70",children:e?"Sending...":"Send Message"})]})]}),u.jsxs(Y.div,{...Rs,transition:{duration:.6,delay:.15},className:"bg-hero rounded-2xl p-8 md:p-10 relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-72 h-72 rounded-full bg-primary/15 blur-[100px]"}),u.jsxs("div",{className:"relative z-10",children:[u.jsx("h2",{className:"text-h4 text-white mb-8",children:"Contact Information"}),u.jsxs("ul",{className:"space-y-7",children:[u.jsx(Su,{Icon:ew,label:"Phone",children:u.jsx("a",{href:"tel:+18772060870",className:"hover:text-primary transition-colors",children:"+1 (877) 206-0870"})}),u.jsx(Su,{Icon:Zx,label:"Email",children:u.jsx("a",{href:"mailto:admin@interfaceoutsourcing.com",className:"hover:text-primary transition-colors break-all",children:"admin@interfaceoutsourcing.com"})}),u.jsx(Su,{Icon:Jx,label:"Address",children:"19109 West Catawba Avenue, Lake Norman, Suite 225, Cornelius, NC 28031"})]})]})]})]})})}),u.jsx("section",{className:"bg-muted py-20 md:py-28",children:u.jsxs("div",{className:"container mx-auto px-4 md:px-8",children:[u.jsxs(Y.div,{...Rs,transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-14",children:[u.jsx("div",{className:"eyebrow mb-3",children:"What to Expect"}),u.jsx("h2",{className:"text-h2",children:"A Simple, Practical First Step"})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto mb-14",children:KD.map((r,i)=>u.jsxs(Y.div,{...Rs,transition:{duration:.5,delay:i*.08},className:"glass-card rounded-2xl border border-white/10 p-7",children:[u.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-blue flex items-center justify-center text-white font-bold mb-4",children:r.num}),u.jsx("h3",{className:"text-h6 text-foreground mb-2",children:r.title}),u.jsx("p",{className:"text-p2 text-muted-foreground leading-relaxed",children:r.desc})]},r.num))}),u.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 max-w-5xl mx-auto",children:GD.map((r,i)=>u.jsxs(Y.div,{...Rs,transition:{duration:.5,delay:i*.08},className:"text-center glass-card rounded-xl border border-white/10 p-6",children:[u.jsx("div",{className:"text-h4 text-gradient-blue leading-none mb-2",children:r.value}),u.jsx("div",{className:"text-xs text-muted-foreground",children:r.label})]},r.label))})]})})]})},wa=({label:e,name:t,type:n="text",placeholder:r,required:i})=>u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:e}),u.jsx("input",{type:n,name:t,placeholder:r,required:i,className:"w-full rounded-lg border border-input bg-background px-4 py-2.5 text-sm text-foreground placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring/40"})]}),Su=({Icon:e,label:t,children:n})=>u.jsxs("li",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-11 h-11 rounded-xl bg-primary/15 flex items-center justify-center shrink-0",children:u.jsx(e,{className:"w-5 h-5 text-primary"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-wide text-white/45 mb-1",children:t}),u.jsx("div",{className:"text-white/85 text-sm leading-relaxed",children:n})]})]}),QD=()=>{const e=ti();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Page Not Found | Interface Outsourcing Group",description:"The page you are looking for does not exist.",noIndex:!0}),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})]})},qD=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Privacy Policy | Interface Outsourcing Group",description:"Read the Interface Outsourcing Group privacy policy and SMS terms. Effective January 1st, 2026.",canonical:"https://interfaceoutsourcing.com/privacy-policy",noIndex:!0}),u.jsx(hs,{badge:"Legal",title:"Privacy Policy",titleAccent:"& SMS Terms",subtitle:"Interface Outsourcing Group, LLC — Effective Date: January 1st, 2026"}),u.jsx("section",{className:"py-20 md:py-28 bg-background",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsxs("div",{className:"max-w-3xl mx-auto prose prose-sm md:prose-base prose-headings:font-display prose-headings:text-foreground prose-p:text-muted-foreground prose-li:text-muted-foreground prose-strong:text-foreground prose-hr:border-border prose-a:text-primary hover:prose-a:text-accent prose-a:no-underline",children:[u.jsx("h2",{children:"1. Introduction"}),u.jsx("p",{children:'Interface Outsourcing ("Interface," "we," "our," or "us") is committed to protecting your privacy and ensuring transparency in how we collect, use, and safeguard your information.'}),u.jsx("p",{children:"This Privacy Policy explains how we collect, use, and share personal information when you interact with our website, services, and communications, including SMS messaging."}),u.jsx("hr",{}),u.jsx("h2",{children:"2. Information We Collect"}),u.jsx("p",{children:"We may collect the following types of information:"}),u.jsx("h3",{children:"A. Information You Provide"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Name, email address, phone number"}),u.jsx("li",{children:"Company name and job title"}),u.jsx("li",{children:"Billing or payment information"}),u.jsx("li",{children:"Information submitted through forms, contracts, or communications"})]}),u.jsx("h3",{children:"B. Automatically Collected Information"}),u.jsxs("ul",{children:[u.jsx("li",{children:"IP address and device information"}),u.jsx("li",{children:"Browser type and usage data"}),u.jsx("li",{children:"Cookies and tracking technologies"})]}),u.jsx("h3",{children:"C. Information Processed on Behalf of Clients"}),u.jsx("p",{children:"As part of our outsourcing services, we may process:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Customer support interactions (calls, chats, emails)"}),u.jsx("li",{children:"CRM and sales data"}),u.jsx("li",{children:"Payroll and financial information"})]}),u.jsx("p",{children:"This data is processed strictly under client instruction."}),u.jsx("hr",{}),u.jsx("h2",{children:"3. How We Use Information"}),u.jsx("p",{children:"We use collected information to:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Provide and manage our services"}),u.jsx("li",{children:"Communicate with clients and prospects"}),u.jsx("li",{children:"Process billing and operational workflows"}),u.jsx("li",{children:"Improve service performance and quality"}),u.jsx("li",{children:"Ensure compliance with legal obligations"}),u.jsx("li",{children:"Maintain system security and prevent fraud"})]}),u.jsx("p",{children:u.jsx("strong",{children:"We do not sell personal information."})}),u.jsx("hr",{}),u.jsx("h2",{children:"4. Information Sharing"}),u.jsx("p",{children:"We may share information with:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Clients (as required to deliver services)"}),u.jsx("li",{children:"Trusted service providers (e.g., hosting, CRM, analytics tools)"}),u.jsx("li",{children:"Legal authorities when required by law"})]}),u.jsx("h3",{children:"SMS-Specific Non-Sharing Clause (Required)"}),u.jsx("p",{children:"Mobile Opt-in, SMS consent, and phone numbers collected for SMS communication purposes will not be shared with any third party or affiliates for marketing purposes."}),u.jsx("hr",{}),u.jsx("h2",{children:"5. Data Security"}),u.jsx("p",{children:"We implement appropriate safeguards including:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Role-based access controls"}),u.jsx("li",{children:"Encryption (in transit and at rest)"}),u.jsx("li",{children:"Secure infrastructure and monitoring"}),u.jsx("li",{children:"Confidentiality agreements for employees"})]}),u.jsx("hr",{}),u.jsx("h2",{children:"6. Data Retention"}),u.jsx("p",{children:"We retain personal data only as long as necessary for:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Service delivery"}),u.jsx("li",{children:"Legal and compliance obligations"}),u.jsx("li",{children:"Legitimate business purposes"})]}),u.jsx("p",{children:"Client data is retained according to contractual agreements."}),u.jsx("hr",{}),u.jsx("h2",{children:"7. Your Rights"}),u.jsx("p",{children:"You may have the right to:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Access your personal data"}),u.jsx("li",{children:"Correct inaccurate data"}),u.jsx("li",{children:"Request deletion"}),u.jsx("li",{children:"Opt out of communications"})]}),u.jsx("p",{children:"To exercise your rights, contact us at the details below."}),u.jsx("hr",{}),u.jsx("h2",{children:"8. Cookies"}),u.jsx("p",{children:"We use cookies to improve user experience and analyze website performance. You may manage cookies through your browser settings."}),u.jsx("hr",{}),u.jsx("h2",{children:"9. Third-Party Services"}),u.jsx("p",{children:"We may integrate with third-party platforms (e.g., CRM, support tools). These platforms operate under their own privacy policies."}),u.jsx("hr",{}),u.jsx("h2",{children:"10. Contact Information"}),u.jsxs("p",{children:[u.jsx("strong",{children:"Interface Outsourcing Group, LLC"}),u.jsx("br",{}),"📍 Address: 19109 W Catawba Ave, Suite 225, Cornelius, NC 28031, USA",u.jsx("br",{}),"📧 Email: ",u.jsx("a",{href:"mailto:admin@interfaceoutsourcing.com",children:"admin@interfaceoutsourcing.com"}),u.jsx("br",{}),"📞 Phone: ",u.jsx("a",{href:"tel:+18772060870",children:"+1 (877) 206-0870"}),u.jsx("br",{}),"🌐 Website: ",u.jsx("a",{href:"https://interfaceoutsourcing.com",target:"_blank",rel:"noopener noreferrer",children:"interfaceoutsourcing.com"})]}),u.jsx("hr",{}),u.jsx("h2",{className:"mt-16",children:"SMS Terms & Conditions"}),u.jsx("h3",{children:"1. SMS Consent Communication"}),u.jsx("p",{children:"The information (phone numbers) obtained as part of the SMS consent process will not be shared with third parties for marketing purposes."}),u.jsx("hr",{}),u.jsx("h3",{children:"2. Types of SMS Communications"}),u.jsx("p",{children:"If you have consented to receive SMS messages from Interface Outsourcing, you may receive messages related to:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Appointment reminders"}),u.jsx("li",{children:"Follow-up communications"}),u.jsx("li",{children:"Billing inquiries"}),u.jsx("li",{children:"Service-related notifications"})]}),u.jsx("hr",{}),u.jsx("h3",{children:"3. Message Frequency"}),u.jsx("p",{children:"Message frequency may vary depending on the type of communication. For example, you may receive up to 2–5 SMS messages per week depending on your interaction with our services."}),u.jsx("hr",{}),u.jsx("h3",{children:"4. Potential Fees for SMS Messaging"}),u.jsx("p",{children:"Standard message and data rates may apply depending on your carrier's pricing plan. These fees may vary for domestic or international messages."}),u.jsx("hr",{}),u.jsx("h3",{children:"5. Opt-In Method"}),u.jsx("p",{children:"You may opt in to receive SMS messages from Interface Outsourcing through:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Verbal consent during a conversation"}),u.jsx("li",{children:"Submitting a form with SMS consent checkbox"})]}),u.jsx("hr",{}),u.jsx("h3",{children:"6. Opt-Out Method"}),u.jsx("p",{children:'You may opt out at any time by replying "STOP" to any SMS message.'}),u.jsx("p",{children:"Alternatively, contact us directly to be removed from our messaging list."}),u.jsx("hr",{}),u.jsx("h3",{children:"7. Help"}),u.jsx("p",{children:'If you are experiencing issues, reply "HELP" to any SMS message.'}),u.jsxs("p",{children:["You may also contact us directly at:"," ",u.jsx("a",{href:"https://interfaceoutsourcing.com",target:"_blank",rel:"noopener noreferrer",children:"interfaceoutsourcing.com"})]}),u.jsx("hr",{}),u.jsx("h3",{children:"8. Additional Options"}),u.jsx("p",{children:"You may choose not to receive SMS messages by not selecting the SMS consent option on our forms."}),u.jsx("hr",{}),u.jsx("h3",{children:"9. Standard Messaging Disclosures"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Message and data rates may apply"}),u.jsx("li",{children:'You can opt out at any time by texting "STOP"'}),u.jsx("li",{children:'For assistance, text "HELP" or visit our website'}),u.jsx("li",{children:"Message frequency may vary"})]})]})})})]}),XD=()=>u.jsxs(u.Fragment,{children:[u.jsx(xr,{title:"Terms & Conditions | Interface Outsourcing Group",description:"Read the Interface Outsourcing Group terms and conditions. Effective January 1st, 2026.",canonical:"https://interfaceoutsourcing.com/terms-conditions",noIndex:!0}),u.jsx(hs,{badge:"Legal",title:"Terms",titleAccent:"& Conditions",subtitle:"Interface Outsourcing Group, LLC — Effective Date: January 1st, 2026"}),u.jsx("section",{className:"py-20 md:py-28 bg-background",children:u.jsx("div",{className:"container mx-auto px-4 md:px-8",children:u.jsxs("div",{className:"max-w-3xl mx-auto prose prose-sm md:prose-base prose-headings:font-display prose-headings:text-foreground prose-p:text-muted-foreground prose-li:text-muted-foreground prose-strong:text-foreground prose-hr:border-border prose-a:text-primary hover:prose-a:text-accent prose-a:no-underline",children:[u.jsx("h2",{children:"1. Acceptance of Terms"}),u.jsx("p",{children:'By accessing or using the website and services of Interface Outsourcing ("Interface," "we," "our," or "us"), you agree to be bound by these Terms & Conditions.'}),u.jsx("p",{children:"If you do not agree, you should not use our website or services."}),u.jsx("hr",{}),u.jsx("h2",{children:"2. Services Overview"}),u.jsx("p",{children:"Interface Outsourcing provides nearshore business process outsourcing services, including but not limited to:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Customer experience (CX) support"}),u.jsx("li",{children:"Sales development (SDR / business development)"}),u.jsx("li",{children:"Back-office and payroll support"}),u.jsx("li",{children:"Employer-of-record (EOR) and administrative services"})]}),u.jsx("p",{children:"Services are delivered under separate client agreements, which may include additional terms."}),u.jsx("hr",{}),u.jsx("h2",{children:"3. Use of Website"}),u.jsx("p",{children:"You agree to use our website only for lawful purposes and in a manner that does not:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Violate applicable laws or regulations"}),u.jsx("li",{children:"Infringe on intellectual property rights"}),u.jsx("li",{children:"Disrupt or interfere with website functionality"}),u.jsx("li",{children:"Attempt unauthorized access to systems or data"})]}),u.jsx("p",{children:"We reserve the right to restrict or terminate access for misuse."}),u.jsx("hr",{}),u.jsx("h2",{children:"4. Intellectual Property"}),u.jsx("p",{children:"All content on this website, including text, branding, graphics, and materials, is the property of Interface Outsourcing unless otherwise stated."}),u.jsx("p",{children:"You may not copy, reproduce, distribute, or modify any content without prior written consent."}),u.jsx("hr",{}),u.jsx("h2",{children:"5. Client Services & Agreements"}),u.jsx("p",{children:"All service engagements are governed by separate contractual agreements between Interface and the client."}),u.jsx("p",{children:"These agreements define:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Scope of services"}),u.jsx("li",{children:"Pricing and payment terms"}),u.jsx("li",{children:"Service levels (SLAs)"}),u.jsx("li",{children:"Data processing responsibilities"})]}),u.jsx("p",{children:"In the event of conflict, the signed client agreement takes precedence over these Terms."}),u.jsx("hr",{}),u.jsx("h2",{children:"6. Data Protection & Privacy"}),u.jsxs("p",{children:["Your use of our services is also governed by our ",u.jsx("a",{href:"/privacy-policy",children:"Privacy Policy"}),", which outlines how we collect, use, and protect personal data."]}),u.jsx("p",{children:"Interface acts as a data processor when handling information on behalf of clients and processes data only under client instructions."}),u.jsx("hr",{}),u.jsx("h2",{children:"7. SMS Communications"}),u.jsx("p",{children:"By providing your phone number and consenting to SMS communications, you agree to receive service-related text messages from Interface Outsourcing."}),u.jsx("p",{children:u.jsx("strong",{children:"SMS Disclosures:"})}),u.jsxs("ul",{children:[u.jsx("li",{children:"Message frequency may vary"}),u.jsx("li",{children:"Message and data rates may apply"}),u.jsx("li",{children:'You may opt out at any time by replying "STOP"'}),u.jsx("li",{children:'For assistance, reply "HELP" or contact us'})]}),u.jsx("p",{children:"Mobile opt-in information and SMS consent will not be shared with third parties for marketing purposes."}),u.jsx("hr",{}),u.jsx("h2",{children:"8. Payments and Billing"}),u.jsx("p",{children:"Payment terms for services are defined in client agreements."}),u.jsx("p",{children:"Failure to meet payment obligations may result in:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Suspension of services"}),u.jsx("li",{children:"Late fees (if applicable)"}),u.jsx("li",{children:"Termination of agreement"})]}),u.jsx("hr",{}),u.jsx("h2",{children:"9. Confidentiality"}),u.jsx("p",{children:"Both Interface and its clients agree to maintain confidentiality of all non-public, proprietary, or sensitive information shared during the course of engagement."}),u.jsx("p",{children:"Employees and contractors are bound by confidentiality agreements."}),u.jsx("hr",{}),u.jsx("h2",{children:"10. Limitation of Liability"}),u.jsx("p",{children:"To the maximum extent permitted by law:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Interface Outsourcing shall not be liable for indirect, incidental, or consequential damages"}),u.jsx("li",{children:"Total liability shall not exceed the amount paid for services in the preceding 12 months"})]}),u.jsx("p",{children:"We do not guarantee uninterrupted or error-free service."}),u.jsx("hr",{}),u.jsx("h2",{children:"11. Disclaimer of Warranties"}),u.jsx("p",{children:'Services and website content are provided "as is" and "as available" without warranties of any kind, express or implied.'}),u.jsx("p",{children:"We do not guarantee specific business outcomes unless explicitly stated in a contractual agreement."}),u.jsx("hr",{}),u.jsx("h2",{children:"12. Indemnification"}),u.jsx("p",{children:"You agree to indemnify and hold harmless Interface Outsourcing from any claims, damages, or liabilities arising from:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Misuse of services"}),u.jsx("li",{children:"Violation of these Terms"}),u.jsx("li",{children:"Breach of applicable laws or regulations"})]}),u.jsx("hr",{}),u.jsx("h2",{children:"13. Termination"}),u.jsx("p",{children:"We reserve the right to:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Suspend or terminate access to services for violations of these Terms"}),u.jsx("li",{children:"Terminate agreements as outlined in client contracts"})]}),u.jsx("hr",{}),u.jsx("h2",{children:"14. Third-Party Services"}),u.jsx("p",{children:"Our services may integrate with third-party platforms (e.g., CRM systems, payment processors)."}),u.jsx("p",{children:"Interface is not responsible for the practices, policies, or performance of third-party providers."}),u.jsx("hr",{}),u.jsx("h2",{children:"15. Governing Law"}),u.jsx("p",{children:"These Terms & Conditions are governed by the laws of the State of North Carolina, United States, without regard to conflict of law principles."}),u.jsx("hr",{}),u.jsx("h2",{children:"16. Changes to Terms"}),u.jsx("p",{children:"We may update these Terms periodically. Updates will be posted with a revised effective date."}),u.jsx("p",{children:"Continued use of our services constitutes acceptance of updated Terms."}),u.jsx("hr",{}),u.jsx("h2",{children:"17. Contact Information"}),u.jsxs("p",{children:[u.jsx("strong",{children:"Interface Outsourcing Group, LLC"}),u.jsx("br",{}),"📍 Address: 19109 W Catawba Ave, Suite 225, Cornelius, NC 28031, USA",u.jsx("br",{}),"📧 Email: ",u.jsx("a",{href:"mailto:admin@interfaceoutsourcing.com",children:"admin@interfaceoutsourcing.com"}),u.jsx("br",{}),"📞 Phone: ",u.jsx("a",{href:"tel:+18772060870",children:"+1 (877) 206-0870"}),u.jsx("br",{}),"🌐 Website: ",u.jsx("a",{href:"https://interfaceoutsourcing.com",target:"_blank",rel:"noopener noreferrer",children:"interfaceoutsourcing.com"})]})]})})})]}),ZD=new LT,JD=()=>u.jsx(yx,{children:u.jsx(_T,{client:ZD,children:u.jsxs(TA,{children:[u.jsx(Vj,{}),u.jsx(GP,{}),u.jsx(_E,{children:u.jsxs(RE,{children:[u.jsxs(Gt,{element:u.jsx(RD,{}),children:[u.jsx(Gt,{path:"/",element:u.jsx(VD,{})}),u.jsx(Gt,{path:"/services",element:u.jsx(BD,{})}),u.jsx(Gt,{path:"/how-it-works",element:u.jsx($D,{})}),u.jsx(Gt,{path:"/about",element:u.jsx(HD,{})}),u.jsx(Gt,{path:"/contact",element:u.jsx(YD,{})}),u.jsx(Gt,{path:"/privacy-policy",element:u.jsx(qD,{})}),u.jsx(Gt,{path:"/terms-conditions",element:u.jsx(XD,{})})]}),u.jsx(Gt,{path:"*",element:u.jsx(QD,{})})]})})]})})});K0(document.getElementById("root")).render(u.jsx(JD,{}));