function nv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var up={exports:{}},Ss={},cp={exports:{}},z={};/** * @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 _o=Symbol.for("react.element"),rv=Symbol.for("react.portal"),ov=Symbol.for("react.fragment"),iv=Symbol.for("react.strict_mode"),sv=Symbol.for("react.profiler"),av=Symbol.for("react.provider"),lv=Symbol.for("react.context"),uv=Symbol.for("react.forward_ref"),cv=Symbol.for("react.suspense"),dv=Symbol.for("react.memo"),fv=Symbol.for("react.lazy"),Ec=Symbol.iterator;function pv(e){return e===null||typeof e!="object"?null:(e=Ec&&e[Ec]||e["@@iterator"],typeof e=="function"?e:null)}var dp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fp=Object.assign,pp={};function Rr(e,t,n){this.props=e,this.context=t,this.refs=pp,this.updater=n||dp}Rr.prototype.isReactComponent={};Rr.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")};Rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Rr.prototype;function tu(e,t,n){this.props=e,this.context=t,this.refs=pp,this.updater=n||dp}var nu=tu.prototype=new hp;nu.constructor=tu;fp(nu,Rr.prototype);nu.isPureReactComponent=!0;var jc=Array.isArray,mp=Object.prototype.hasOwnProperty,ru={current:null},gp={key:!0,ref:!0,__self:!0,__source:!0};function yp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)mp.call(t,r)&&!gp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,$=k[O];if(0>>1;Oo(Yn,D))He<$&&0>o(vn,Yn)?(k[O]=vn,k[He]=D,O=He):(k[O]=Yn,k[We]=D,O=We);else if(He<$&&0>o(vn,D))k[O]=vn,k[He]=D,O=He;else break e}}return R}function o(k,R){var D=k.sortIndex-R.sortIndex;return D!==0?D:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,f=null,p=3,h=!1,x=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function T(k){if(v=!1,g(k),!x)if(n(l)!==null)x=!0,U(C);else{var R=n(u);R!==null&&fe(T,R.startTime-k)}}function C(k,R){x=!1,v&&(v=!1,y(j),j=-1),h=!0;var D=p;try{for(g(R),f=n(l);f!==null&&(!(f.expirationTime>R)||k&&!H());){var O=f.callback;if(typeof O=="function"){f.callback=null,p=f.priorityLevel;var $=O(f.expirationTime<=R);R=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),g(R)}else r(l);f=n(l)}if(f!==null)var Y=!0;else{var We=n(u);We!==null&&fe(T,We.startTime-R),Y=!1}return Y}finally{f=null,p=D,h=!1}}var E=!1,P=null,j=-1,M=5,L=-1;function H(){return!(e.unstable_now()-Lk||125O?(k.sortIndex=D,t(u,k),n(l)===null&&k===n(u)&&(v?(y(j),j=-1):v=!0,fe(T,D-O))):(k.sortIndex=$,t(l,k),x||h||(x=!0,U(C))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var R=p;return function(){var D=p;p=R;try{return k.apply(this,arguments)}finally{p=D}}}})(Cp);Tp.exports=Cp;var Pv=Tp.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 Ev=w,Xe=Pv;function N(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"),Da=Object.prototype.hasOwnProperty,jv=/^[: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]*$/,kc={},bc={};function Nv(e){return Da.call(bc,e)?!0:Da.call(kc,e)?!1:jv.test(e)?bc[e]=!0:(kc[e]=!0,!1)}function kv(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 bv(e,t,n,r){if(t===null||typeof t>"u"||kv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function su(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(iu,su);Pe[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iu,su);Pe[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iu,su);Pe[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function au(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function Av(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=Zs(e.type,!1),e;case 11:return e=Zs(e.type.render,!1),e;case 1:return e=Zs(e.type,!0),e;default:return""}}function Ba(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 Jn:return"Fragment";case qn:return"Portal";case _a:return"Profiler";case lu:return"StrictMode";case Fa:return"Suspense";case za:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jp:return(e.displayName||"Context")+".Consumer";case Ep:return(e._context.displayName||"Context")+".Provider";case uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:Ba(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return Ba(e(t))}catch{}}return null}function Rv(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 Ba(t);case 8:return t===lu?"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 cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mv(e){var t=kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){e._valueTracker||(e._valueTracker=Mv(e))}function bp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _i(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 Ua(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cn(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 Ap(e,t){t=t.checked,t!=null&&au(e,"checked",t,!1)}function $a(e,t){Ap(e,t);var n=cn(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")?Wa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wa(e,t.type,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mc(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 Wa(e,t,n){(t!=="number"||_i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xr=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eo={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},Lv=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(e){Lv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eo[t]=eo[e]})});function Op(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eo.hasOwnProperty(e)&&eo[e]?(""+t).trim():t+"px"}function Vp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Op(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ov=ue({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 Ka(e,t){if(t){if(Ov[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Ya(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 Qa=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xa=null,mr=null,gr=null;function Vc(e){if(e=Bo(e)){if(typeof Xa!="function")throw Error(N(280));var t=e.stateNode;t&&(t=js(t),Xa(e.stateNode,e.type,t))}}function Ip(e){mr?gr?gr.push(e):gr=[e]:mr=e}function Dp(){if(mr){var e=mr,t=gr;if(gr=mr=null,Vc(e),t)for(e=0;e>>=0,e===0?32:31-(Hv(e)/Gv|0)|0}var ti=64,ni=4194304;function Zr(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 Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Zr(a):(i&=s,i!==0&&(r=Zr(i)))}else s=n&~o,s!==0?r=Zr(s):i!==0&&(r=Zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Xv(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=no),Wc=String.fromCharCode(32),Hc=!1;function rh(e,t){switch(e){case"keyup":return P0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function j0(e,t){switch(e){case"compositionend":return oh(t);case"keypress":return t.which!==32?null:(Hc=!0,Wc);case"textInput":return e=t.data,e===Wc&&Hc?null:e;default:return null}}function N0(e,t){if(er)return e==="compositionend"||!xu&&rh(e,t)?(e=th(),Pi=gu=Qt=null,er=!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=Qc(n)}}function lh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uh(){for(var e=window,t=_i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_i(e.document)}return t}function wu(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 I0(e){var t=uh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lh(n.ownerDocument.documentElement,n)){if(r!==null&&wu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Xc(n,i);var s=Xc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tr=null,nl=null,oo=null,rl=!1;function Zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rl||tr==null||tr!==_i(r)||(r=tr,"selectionStart"in r&&wu(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}),oo&&So(oo,r)||(oo=r,r=Hi(nl,"onSelect"),0or||(e.current=ul[or],ul[or]=null,or--)}function Q(e,t){or++,ul[or]=e.current,e.current=t}var dn={},be=mn(dn),ze=mn(!1),Ln=dn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function Ki(){q(ze),q(be)}function od(e,t,n){if(be.current!==dn)throw Error(N(168));Q(be,t),Q(ze,n)}function vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,Rv(e)||"Unknown",o));return ue({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,Ln=be.current,Q(be,e),Q(ze,ze.current),!0}function id(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=vh(e,t,Ln),r.__reactInternalMemoizedMergedChildContext=e,q(ze),q(be),Q(be,e)):q(ze),Q(ze,n)}var jt=null,Ns=!1,da=!1;function xh(e){jt===null?jt=[e]:jt.push(e)}function Y0(e){Ns=!0,xh(e)}function gn(){if(!da&&jt!==null){da=!0;var e=0,t=G;try{var n=jt;for(G=1;e>=s,o-=s,Nt=1<<32-ht(t)+o|n<j?(M=P,P=null):M=P.sibling;var L=p(y,P,g[j],T);if(L===null){P===null&&(P=M);break}e&&P&&L.alternate===null&&t(y,P),m=i(L,m,j),E===null?C=L:E.sibling=L,E=L,P=M}if(j===g.length)return n(y,P),re&&Sn(y,j),C;if(P===null){for(;jj?(M=P,P=null):M=P.sibling;var H=p(y,P,L.value,T);if(H===null){P===null&&(P=M);break}e&&P&&H.alternate===null&&t(y,P),m=i(H,m,j),E===null?C=H:E.sibling=H,E=H,P=M}if(L.done)return n(y,P),re&&Sn(y,j),C;if(P===null){for(;!L.done;j++,L=g.next())L=f(y,L.value,T),L!==null&&(m=i(L,m,j),E===null?C=L:E.sibling=L,E=L);return re&&Sn(y,j),C}for(P=r(y,P);!L.done;j++,L=g.next())L=h(P,y,j,L.value,T),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?j:L.key),m=i(L,m,j),E===null?C=L:E.sibling=L,E=L);return e&&P.forEach(function(V){return t(y,V)}),re&&Sn(y,j),C}function S(y,m,g,T){if(typeof g=="object"&&g!==null&&g.type===Jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qo:e:{for(var C=g.key,E=m;E!==null;){if(E.key===C){if(C=g.type,C===Jn){if(E.tag===7){n(y,E.sibling),m=o(E,g.props.children),m.return=y,y=m;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Wt&&ld(C)===E.type){n(y,E.sibling),m=o(E,g.props),m.ref=zr(y,E,g),m.return=y,y=m;break e}n(y,E);break}else t(y,E);E=E.sibling}g.type===Jn?(m=Rn(g.props.children,y.mode,T,g.key),m.return=y,y=m):(T=Mi(g.type,g.key,g.props,null,y.mode,T),T.ref=zr(y,m,g),T.return=y,y=T)}return s(y);case qn:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(y,m.sibling),m=o(m,g.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=xa(g,y.mode,T),m.return=y,y=m}return s(y);case Wt:return E=g._init,S(y,m,E(g._payload),T)}if(Xr(g))return x(y,m,g,T);if(Vr(g))return v(y,m,g,T);ui(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,g),m.return=y,y=m):(n(y,m),m=va(g,y.mode,T),m.return=y,y=m),s(y)):n(y,m)}return S}var Pr=Ch(!0),Ph=Ch(!1),Zi=mn(null),qi=null,ar=null,Pu=null;function Eu(){Pu=ar=qi=null}function ju(e){var t=Zi.current;q(Zi),e._currentValue=t}function fl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function vr(e,t){qi=e,Pu=ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Pu!==e)if(e={context:e,memoizedValue:t,next:null},ar===null){if(qi===null)throw Error(N(308));ar=e,qi.dependencies={lanes:0,firstContext:e}}else ar=ar.next=e;return t}var jn=null;function Nu(e){jn===null?jn=[e]:jn.push(e)}function Eh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,It(e,r)}function It(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 Ht=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,It(e,n)}return o=r.interleaved,o===null?(t.next=t,Nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,It(e,n)}function ji(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,pu(e,n)}}function ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ji(e,t,n,r){var o=e.updateQueue;Ht=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,d=u=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(p=t,h=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(h,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,p=typeof x=="function"?x.call(h,f,p):x,p==null)break e;f=ue({},f,p);break e;case 2:Ht=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,l=f):d=d.next=h,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(1);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);In|=s,e.lanes=s,e.memoizedState=f}}function cd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{G=n,pa.transition=r}}function $h(){return at().memoizedState}function q0(e,t,n){var r=on(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wh(e))Hh(t,n);else if(n=Eh(e,t,n,r),n!==null){var o=Oe();mt(n,e,r,o),Gh(n,t,r)}}function J0(e,t,n){var r=on(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wh(e))Hh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,gt(a,s)){var l=t.interleaved;l===null?(o.next=o,Nu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Eh(e,t,o,r),n!==null&&(o=Oe(),mt(n,e,r,o),Gh(n,t,r))}}function Wh(e){var t=e.alternate;return e===le||t!==null&&t===le}function Hh(e,t){io=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}var ns={readContext:st,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},ex={readContext:st,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ki(4194308,4,_h.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return ki(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();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=q0.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:dd,useDebugValue:Iu,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=dd(!1),t=e[0];return e=Z0.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,o=vt();if(re){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Se===null)throw Error(N(349));Vn&30||Ah(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,fd(Mh.bind(null,r,i,e),[e]),r.flags|=2048,bo(9,Rh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vt(),t=Se.identifierPrefix;if(re){var n=kt,r=Nt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=No++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[xt]=t,e[Po]=r,nm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ya(n,r),n){case"dialog":Z("cancel",e),Z("close",e),o=r;break;case"iframe":case"object":case"embed":Z("load",e),o=r;break;case"video":case"audio":for(o=0;oNr&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=es(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!re)return je(t),null}else 2*he()-i.renderingStartTime>Nr&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ie.current,Q(ie,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function lx(e,t){switch(Tu(t),t.tag){case 1:return Be(t.type)&&Ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),q(ze),q(be),Ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Au(t),null;case 13:if(q(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ie),null;case 4:return Er(),null;case 10:return ju(t.type._context),null;case 22:case 23:return Uu(),null;case 24:return null;default:return null}}var di=!1,ke=!1,ux=typeof WeakSet=="function"?WeakSet:Set,b=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function Sl(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Cd=!1;function cx(e,t){if(ol=$i,e=uh(),wu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++d===r&&(l=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(il={focusedElem:e,selectionRange:n},$i=!1,b=t;b!==null;)if(t=b,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,b=e;else for(;b!==null;){t=b;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,S=x.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ct(t.type,v),S);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(T){ce(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return x=Cd,Cd=!1,x}function so(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Sl(t,n,i)}o=o.next}while(o!==r)}}function As(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 Tl(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 im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[Po],delete t[ll],delete t[G0],delete t[K0])),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 sm(e){return e.tag===5||e.tag===3||e.tag===4}function Pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sm(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 Cl(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=Gi));else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}function Pl(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(Pl(e,t,n),e=e.sibling;e!==null;)Pl(e,t,n),e=e.sibling}var Te=null,dt=!1;function Bt(e,t,n){for(n=n.child;n!==null;)am(e,t,n),n=n.sibling}function am(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Ts,n)}catch{}switch(n.tag){case 5:ke||lr(n,t);case 6:var r=Te,o=dt;Te=null,Bt(e,t,n),Te=r,dt=o,Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(dt?(e=Te,n=n.stateNode,e.nodeType===8?ca(e.parentNode,n):e.nodeType===1&&ca(e,n),xo(e)):ca(Te,n.stateNode));break;case 4:r=Te,o=dt,Te=n.stateNode.containerInfo,dt=!0,Bt(e,t,n),Te=r,dt=o;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Sl(n,t,s),o=o.next}while(o!==r)}Bt(e,t,n);break;case 1:if(!ke&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,Bt(e,t,n),ke=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function Ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ux),t.forEach(function(r){var o=xx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fx(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,is=0,W&6)throw Error(N(331));var o=W;for(W|=4,b=e.current;b!==null;){var i=b,s=i.child;if(b.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lhe()-zu?An(e,0):Fu|=n),Ue(e,t)}function mm(e,t){t===0&&(e.mode&1?(t=ni,ni<<=1,!(ni&130023424)&&(ni=4194304)):t=1);var n=Oe();e=It(e,t),e!==null&&(Fo(e,t,n),Ue(e,n))}function vx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mm(e,n)}function xx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),mm(e,n)}var gm;gm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,sx(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,re&&t.flags&1048576&&wh(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bi(e,t),e=t.pendingProps;var o=Tr(t,be.current);vr(t,n),o=Lu(null,t,r,e,o,n);var i=Ou();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ku(t),o.updater=bs,t.stateNode=o,o._reactInternals=t,hl(t,r,e,n),t=yl(null,t,r,!0,i,n)):(t.tag=0,re&&i&&Su(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Sx(r),e=ct(r,e),o){case 0:t=gl(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=vd(null,t,r,e,n);break e;case 14:t=xd(null,t,r,ct(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),gl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),wd(e,t,r,o,n);case 3:e:{if(Jh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,jh(e,t),Ji(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=jr(Error(N(423)),t),t=Sd(e,t,r,n,o);break e}else if(r!==o){o=jr(Error(N(424)),t),t=Sd(e,t,r,n,o);break e}else for(Ye=tn(t.stateNode.containerInfo.firstChild),Qe=t,re=!0,ft=null,n=Ph(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cr(),r===o){t=Dt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Nh(t),e===null&&dl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,sl(r,o)?s=null:i!==null&&sl(r,i)&&(t.flags|=32),qh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&dl(t),null;case 13:return em(e,t,n);case 4:return bu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),vd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Q(Zi,r._currentValue),r._currentValue=s,i!==null)if(gt(i.value,s)){if(i.children===o.children&&!ze.current){t=Dt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Rt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),fl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),fl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=st(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=ct(r,t.pendingProps),o=ct(r.type,o),xd(e,t,r,o,n);case 15:return Xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),bi(e,t),t.tag=1,Be(r)?(e=!0,Yi(t)):e=!1,vr(t,n),Kh(t,r,o),hl(t,r,o,n),yl(null,t,r,!0,e,n);case 19:return tm(e,t,n);case 22:return Zh(e,t,n)}throw Error(N(156,t.tag))};function ym(e,t){return Wp(e,t)}function wx(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 ot(e,t,n,r){return new wx(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sx(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uu)return 11;if(e===cu)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=ot(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 Mi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Wu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jn:return Rn(n.children,o,i,t);case lu:s=8,o|=8;break;case _a:return e=ot(12,n,t,o|2),e.elementType=_a,e.lanes=i,e;case Fa:return e=ot(13,n,t,o),e.elementType=Fa,e.lanes=i,e;case za:return e=ot(19,n,t,o),e.elementType=za,e.lanes=i,e;case Np:return Ms(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ep:s=10;break e;case jp:s=9;break e;case uu:s=11;break e;case cu:s=14;break e;case Wt:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rn(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Ms(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Np,e.lanes=n,e.stateNode={isHidden:!1},e}function va(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function xa(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Js(0),this.expirationTimes=Js(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,i,s,a,l){return e=new Tx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(i),e}function Cx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sm)}catch(e){console.error(e)}}Sm(),Sp.exports=qe;var Ds=Sp.exports;const kx=Ar(Ds);var Ld=Ds;Ia.createRoot=Ld.createRoot,Ia.hydrateRoot=Ld.hydrateRoot;/** * @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 Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ax(){return Math.random().toString(36).substr(2,8)}function Vd(e,t){return{usr:e.state,key:e.key,idx:t}}function bl(e,t,n,r){return n===void 0&&(n=null),Ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Or(t):t,{state:n,key:t&&t.key||r||Ax()})}function ls(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 Or(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 Rx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Zt.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(Ro({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=Zt.Pop;let S=d(),y=S==null?null:S-u;u=S,l&&l({action:a,location:v.location,delta:y})}function p(S,y){a=Zt.Push;let m=bl(v.location,S,y);n&&n(m,S),u=d()+1;let g=Vd(m,u),T=v.createHref(m);try{s.pushState(g,"",T)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(T)}i&&l&&l({action:a,location:v.location,delta:1})}function h(S,y){a=Zt.Replace;let m=bl(v.location,S,y);n&&n(m,S),u=d();let g=Vd(m,u),T=v.createHref(m);s.replaceState(g,"",T),i&&l&&l({action:a,location:v.location,delta:0})}function x(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof S=="string"?S:ls(S);return m=m.replace(/ $/,"%20"),ye(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let v={get action(){return a},get location(){return e(o,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Od,f),l=S,()=>{o.removeEventListener(Od,f),l=null}},createHref(S){return t(o,S)},createURL:x,encodeLocation(S){let y=x(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(S){return s.go(S)}};return v}var Id;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Id||(Id={}));function Mx(e,t,n){return n===void 0&&(n="/"),Lx(e,t,n,!1)}function Lx(e,t,n,r){let o=typeof t=="string"?Or(t):t,i=Qu(o.pathname||"/",n);if(i==null)return null;let s=Cm(e);Ox(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ye(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=an([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cm(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Bx(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Pm(i.path))o(i,s,l)}),t}function Pm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Pm(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ox(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ux(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vx=/^:[\w-]+$/,Ix=3,Dx=2,_x=1,Fx=10,zx=-2,Dd=e=>e==="*";function Bx(e,t){let n=e.split("/"),r=n.length;return n.some(Dd)&&(r+=zx),t&&(r+=Dx),n.filter(o=>!Dd(o)).reduce((o,i)=>o+(Vx.test(i)?Ix:i===""?_x:Fx),r)}function Ux(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function $x(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:p,isOptional:h}=d;if(p==="*"){let v=a[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=a[f];return h&&!x?u[p]=void 0:u[p]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function Wx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Hx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tm(!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 Qu(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 Gx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Or(e):e;return{pathname:n?n.startsWith("/")?n:Kx(n,t):t,search:Xx(r),hash:Zx(o)}}function Kx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function wa(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 Yx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Em(e,t){let n=Yx(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Or(e):(o=Ro({},e),ye(!o.pathname||!o.pathname.includes("?"),wa("?","pathname","search",o)),ye(!o.pathname||!o.pathname.includes("#"),wa("#","pathname","hash",o)),ye(!o.search||!o.search.includes("#"),wa("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=Gx(o,a),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const an=e=>e.join("/").replace(/\/\/+/g,"/"),Qx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nm=["post","put","patch","delete"];new Set(Nm);const Jx=["get",...Nm];new Set(Jx);/** * 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 Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=jm(u,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:an([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,i,e])}function Am(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Un),{matches:o}=w.useContext($n),{pathname:i}=Wo(),s=JSON.stringify(Em(o,r.v7_relativeSplatPath));return w.useMemo(()=>jm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function o1(e,t){return i1(e,t)}function i1(e,t,n,r){$o()||ye(!1);let{navigator:o}=w.useContext(Un),{matches:i}=w.useContext($n),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Wo(),d;if(t){var f;let S=typeof t=="string"?Or(t):t;l==="/"||(f=S.pathname)!=null&&f.startsWith(l)||ye(!1),d=S}else d=u;let p=d.pathname||"/",h=p;if(l!=="/"){let S=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=Mx(e,{pathname:h}),v=c1(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:an([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:an([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?w.createElement(_s.Provider,{value:{location:Mo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},v):v}function s1(){let e=h1(),t=qx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,i)}const a1=w.createElement(s1,null);class l1 extends w.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?w.createElement($n.Provider,{value:this.props.routeContext},w.createElement(km.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u1(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(Xu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement($n.Provider,{value:t},r)}function c1(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ye(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let h,x=!1,v=null,S=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||a1,l&&(u<0&&p===0?(g1("route-fallback",!1),x=!0,S=null):u===p&&(x=!0,S=f.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,p+1)),m=()=>{let g;return h?g=v:x?g=S:f.route.Component?g=w.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=d,w.createElement(u1,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?w.createElement(l1,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var Rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rm||{}),us=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}(us||{});function d1(e){let t=w.useContext(Xu);return t||ye(!1),t}function f1(e){let t=w.useContext(e1);return t||ye(!1),t}function p1(e){let t=w.useContext($n);return t||ye(!1),t}function Mm(e){let t=p1(),n=t.matches[t.matches.length-1];return n.route.id||ye(!1),n.route.id}function h1(){var e;let t=w.useContext(km),n=f1(us.UseRouteError),r=Mm(us.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function m1(){let{router:e}=d1(Rm.UseNavigateStable),t=Mm(us.UseNavigateStable),n=w.useRef(!1);return bm(()=>{n.current=!0}),w.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mo({fromRouteId:t},i)))},[e,t])}const Fd={};function g1(e,t,n){!t&&!Fd[e]&&(Fd[e]=!0)}function y1(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Zn(e){ye(!1)}function v1(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Zt.Pop,navigator:i,static:s=!1,future:a}=e;$o()&&ye(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:i,static:s,future:Mo({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Or(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:x="default"}=r,v=w.useMemo(()=>{let S=Qu(d,l);return S==null?null:{location:{pathname:S,search:f,hash:p,state:h,key:x},navigationType:o}},[l,d,f,p,h,x,o]);return v==null?null:w.createElement(Un.Provider,{value:u},w.createElement(_s.Provider,{children:n,value:v}))}function x1(e){let{children:t,location:n}=e;return o1(Al(t),n)}new Promise(()=>{});function Al(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let i=[...t,o];if(r.type===w.Fragment){n.push.apply(n,Al(r.props.children,i));return}r.type!==Zn&&ye(!1),!r.props.index||!r.props.children||ye(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Al(r.props.children,i)),n.push(s)}),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 Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function S1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function T1(e,t){return e.button===0&&(!t||t==="_self")&&!S1(e)}const C1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],P1="6";try{window.__reactRouterVersion=P1}catch{}const E1="startTransition",zd=xp[E1];function j1(e){let{basename:t,children:n,future:r,window:o}=e,i=w.useRef();i.current==null&&(i.current=bx({window:o,v5Compat:!0}));let s=i.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=w.useCallback(f=>{u&&zd?zd(()=>l(f)):l(f)},[l,u]);return w.useLayoutEffect(()=>s.listen(d),[s,d]),w.useEffect(()=>y1(r),[r]),w.createElement(v1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const N1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Le=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,p=w1(t,C1),{basename:h}=w.useContext(Un),x,v=!1;if(typeof u=="string"&&k1.test(u)&&(x=u,N1))try{let g=new URL(window.location.href),T=u.startsWith("//")?new URL(g.protocol+u):new URL(u),C=Qu(T.pathname,h);T.origin===g.origin&&C!=null?u=C+T.search+T.hash:v=!0}catch{}let S=t1(u,{relative:o}),y=b1(u,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:f});function m(g){r&&r(g),g.defaultPrevented||y(g)}return w.createElement("a",Rl({},p,{href:x||S,onClick:v||i?r:m,ref:n,target:l}))});var Bd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bd||(Bd={}));var Ud;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ud||(Ud={}));function b1(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=n1(),u=Wo(),d=Am(e,{relative:s});return w.useCallback(f=>{if(T1(f,n)){f.preventDefault();let p=r!==void 0?r:ls(u)===ls(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,d,r,o,n,e,i,s,a])}var Lm={exports:{}},A1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",R1=A1,M1=R1;function Om(){}function Vm(){}Vm.resetWarningCache=Om;var L1=function(){function e(r,o,i,s,a,l){if(l!==M1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Vm,resetWarningCache:Om};return n.PropTypes=n,n};Lm.exports=L1();var O1=Lm.exports;const te=Ar(O1);function V1(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Im=w,I1=V1(Im);function $d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var _1=!!(typeof window<"u"&&window.document&&window.document.createElement);function F1(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(d){return d.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(d){D1(f,d);function f(){return d.apply(this,arguments)||this}f.peek=function(){return a},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var x=a;return a=void 0,s=[],x};var p=f.prototype;return p.UNSAFE_componentWillMount=function(){s.push(this),l()},p.componentDidUpdate=function(){l()},p.componentWillUnmount=function(){var x=s.indexOf(this);s.splice(x,1),l()},p.render=function(){return I1.createElement(i,this.props)},f}(Im.PureComponent);return $d(u,"displayName","SideEffect("+r(i)+")"),$d(u,"canUseDOM",_1),u}}var z1=F1;const B1=Ar(z1);var U1=typeof Element<"u",$1=typeof Map=="function",W1=typeof Set=="function",H1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Li(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,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Li(e[r],t[r]))return!1;return!0}var i;if($1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Li(r.value[1],t.get(r.value[0])))return!1;return!0}if(W1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(H1&&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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(U1&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Li(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var G1=function(t,n){try{return Li(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 K1=Ar(G1);/* object-assign (c) Sindre Sorhus @license MIT */var Wd=Object.getOwnPropertySymbols,Y1=Object.prototype.hasOwnProperty,Q1=Object.prototype.propertyIsEnumerable;function X1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Z1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var q1=Z1()?Object.assign:function(e,t){for(var n,r=X1(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},sw=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Ml=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},aw=function(t){var n=wr(t,F.TITLE),r=wr(t,Lo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=wr(t,Lo.DEFAULT_TITLE);return n||o||void 0},lw=function(t){return wr(t,Lo.ON_CHANGE_CLIENT_STATE)||function(){}},Sa=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return De({},r,o)},{})},uw=function(t,n){return n.filter(function(r){return typeof r[F.BASE]<"u"}).map(function(r){return r[F.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},cw=function(t){return{baseTag:uw([ne.HREF,ne.TARGET],t),bodyAttributes:Sa(Mn.BODY,t),defer:wr(t,Lo.DEFER),encode:wr(t,Lo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Sa(Mn.HTML,t),linkTags:$r(F.LINK,[ne.REL,ne.HREF],t),metaTags:$r(F.META,[ne.NAME,ne.CHARSET,ne.HTTPEQUIV,ne.PROPERTY,ne.ITEM_PROP],t),noscriptTags:$r(F.NOSCRIPT,[ne.INNER_HTML],t),onChangeClientState:lw(t),scriptTags:$r(F.SCRIPT,[ne.SRC,ne.INNER_HTML],t),styleTags:$r(F.STYLE,[ne.CSS_TEXT],t),title:aw(t),titleAttributes:Sa(Mn.TITLE,t)}},Ll=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Ll(t)},0)}}(),Gd=function(t){return clearTimeout(t)},dw=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ll:global.requestAnimationFrame||Ll,fw=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Gd:global.cancelAnimationFrame||Gd,pw=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Wr=null,hw=function(t){Wr&&fw(Wr),t.defer?Wr=dw(function(){Kd(t,function(){Wr=null})}):(Kd(t),Wr=null)},Kd=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,d=t.scriptTags,f=t.styleTags,p=t.title,h=t.titleAttributes;Ol(F.BODY,o),Ol(F.HTML,i),mw(p,h);var x={baseTag:Xn(F.BASE,r),linkTags:Xn(F.LINK,s),metaTags:Xn(F.META,a),noscriptTags:Xn(F.NOSCRIPT,l),scriptTags:Xn(F.SCRIPT,d),styleTags:Xn(F.STYLE,f)},v={},S={};Object.keys(x).forEach(function(y){var m=x[y],g=m.newTags,T=m.oldTags;g.length&&(v[y]=g),T.length&&(S[y]=x[y].oldTags)}),n&&n(),u(t,v,S)},Dm=function(t){return Array.isArray(t)?t.join(""):t},mw=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Dm(t)),Ol(F.TITLE,n)},Ol=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(pt),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;p--)r.removeAttribute(s[p]);i.length===s.length?r.removeAttribute(pt):r.getAttribute(pt)!==a.join(",")&&r.setAttribute(pt,a.join(","))}},Xn=function(t,n){var r=document.head||document.querySelector(F.HEAD),o=r.querySelectorAll(t+"["+pt+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var d in l)if(l.hasOwnProperty(d))if(d===ne.INNER_HTML)u.innerHTML=l.innerHTML;else if(d===ne.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var f=typeof l[d]>"u"?"":l[d];u.setAttribute(d,f)}u.setAttribute(pt,"true"),i.some(function(p,h){return a=h,u.isEqualNode(p)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},_m=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},gw=function(t,n,r,o){var i=_m(r),s=Dm(n);return i?"<"+t+" "+pt+'="true" '+i+">"+Ml(s,o)+"":"<"+t+" "+pt+'="true">'+Ml(s,o)+""},yw=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===ne.INNER_HTML||u===ne.CSS_TEXT)}).reduce(function(u,d){var f=typeof i[d]>"u"?d:d+'="'+Ml(i[d],r)+'"';return u?u+" "+f:f},""),a=i.innerHTML||i.cssText||"",l=tw.indexOf(t)===-1;return o+"<"+t+" "+pt+'="true" '+s+(l?"/>":">"+a+"")},"")},Fm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[cs[o]||o]=t[o],r},n)},vw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[ew[o]||o]=t[o],r},n)},xw=function(t,n,r){var o,i=(o={key:n},o[pt]=!0,o),s=Fm(r,i);return[se.createElement(F.TITLE,s,n)]},ww=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[pt]=!0,i);return Object.keys(r).forEach(function(a){var l=cs[a]||a;if(l===ne.INNER_HTML||l===ne.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),se.createElement(t,s)})},Pt=function(t,n,r){switch(t){case F.TITLE:return{toComponent:function(){return xw(t,n.title,n.titleAttributes)},toString:function(){return gw(t,n.title,n.titleAttributes,r)}};case Mn.BODY:case Mn.HTML:return{toComponent:function(){return Fm(n)},toString:function(){return _m(n)}};default:return{toComponent:function(){return ww(t,n)},toString:function(){return yw(t,n,r)}}}},zm=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,d=t.styleTags,f=t.title,p=f===void 0?"":f,h=t.titleAttributes;return{base:Pt(F.BASE,n,o),bodyAttributes:Pt(Mn.BODY,r,o),htmlAttributes:Pt(Mn.HTML,i,o),link:Pt(F.LINK,s,o),meta:Pt(F.META,a,o),noscript:Pt(F.NOSCRIPT,l,o),script:Pt(F.SCRIPT,u,o),style:Pt(F.STYLE,d,o),title:Pt(F.TITLE,{title:p,titleAttributes:h},o)}},Sw=function(t){var n,r;return r=n=function(o){iw(i,o);function i(){return rw(this,i),sw(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!K1(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case F.SCRIPT:case F.NOSCRIPT:return{innerHTML:l};case F.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,d=a.arrayTypeChildren,f=a.newChildProps,p=a.nestedChildren;return De({},d,(l={},l[u.type]=[].concat(d[u.type]||[],[De({},f,this.mapNestedChildrenToProps(u,p))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,d=a.child,f=a.newProps,p=a.newChildProps,h=a.nestedChildren;switch(d.type){case F.TITLE:return De({},f,(l={},l[d.type]=h,l.titleAttributes=De({},p),l));case F.BODY:return De({},f,{bodyAttributes:De({},p)});case F.HTML:return De({},f,{htmlAttributes:De({},p)})}return De({},f,(u={},u[d.type]=De({},p),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=De({},l);return Object.keys(a).forEach(function(d){var f;u=De({},u,(f={},f[d]=a[d],f))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,d={};return se.Children.forEach(a,function(f){if(!(!f||!f.props)){var p=f.props,h=p.children,x=Hd(p,["children"]),v=vw(x);switch(u.warnOnInvalidChildren(f,h),f.type){case F.LINK:case F.META:case F.NOSCRIPT:case F.SCRIPT:case F.STYLE:d=u.flattenArrayTypeChildren({child:f,arrayTypeChildren:d,newChildProps:v,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:f,newProps:l,newChildProps:v,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(d,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=Hd(a,["children"]),d=De({},u);return l&&(d=this.mapChildrenToProps(l,d)),se.createElement(t,d)},ow(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(se.Component),n.propTypes={base:te.object,bodyAttributes:te.object,children:te.oneOfType([te.arrayOf(te.node),te.node]),defaultTitle:te.string,defer:te.bool,encodeSpecialCharacters:te.bool,htmlAttributes:te.object,link:te.arrayOf(te.object),meta:te.arrayOf(te.object),noscript:te.arrayOf(te.object),onChangeClientState:te.func,script:te.arrayOf(te.object),style:te.arrayOf(te.object),title:te.string,titleAttributes:te.object,titleTemplate:te.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=zm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},Tw=function(){return null},Cw=B1(cw,hw,zm)(Tw),_t=Sw(Cw);_t.renderStatic=_t.rewind;function Bm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var Hm="!";function Rw(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,d,f=0;fu?d-u:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:S}}}function Mw(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Lw(e){return{cache:Aw(e.cacheSize),splitModifiers:Rw(e),...Ew(e)}}var Ow=/\s+/;function Vw(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Ow).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,d=a.baseClassName,f=a.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:s};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:s};h=!1}var x=Mw(l).join(":"),v=u?x+Hm:x;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,d=a+l;return i.has(d)?!1:(i.add(d),o(l,u).forEach(function(f){return i.add(a+f)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Iw(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Zd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var y;const{scope:p,children:h,...x}=f,v=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,S=w.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:S,children:h})};u.displayName=i+"Provider";function d(f,p){var v;const h=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,x=w.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,qw(o,...t)]}function qw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ds(e){const t=eS(e),n=w.forwardRef((r,o)=>{const{children:i,...s}=r,a=w.Children.toArray(i),l=a.find(nS);if(l){const u=l.props.children,d=a.map(f=>f===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:f);return c.jsx(t,{...s,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Jw=ds("Slot");function eS(e){const t=w.forwardRef((n,r)=>{const{children:o,...i}=n;if(w.isValidElement(o)){const s=oS(o),a=rS(i,o.props);return o.type!==w.Fragment&&(a.ref=r?Ym(r,s):s),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tS=Symbol("radix.slottable");function nS(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tS}function rS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function oS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function iS(e){const t=e+"CollectionProvider",[n,r]=Qm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:S,children:y}=v,m=se.useRef(null),g=se.useRef(new Map).current;return c.jsx(o,{scope:S,itemMap:g,collectionRef:m,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=ds(a),u=se.forwardRef((v,S)=>{const{scope:y,children:m}=v,g=i(a,y),T=_n(S,g.collectionRef);return c.jsx(l,{ref:T,children:m})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=ds(d),h=se.forwardRef((v,S)=>{const{scope:y,children:m,...g}=v,T=se.useRef(null),C=_n(S,T),E=i(d,y);return se.useEffect(()=>(E.itemMap.set(T,{ref:T,...g}),()=>void E.itemMap.delete(T))),c.jsx(p,{[f]:"",ref:C,children:m})});h.displayName=d;function x(v){const S=i(e+"CollectionConsumer",v);return se.useCallback(()=>{const m=S.collectionRef.current;if(!m)return[];const g=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(S.itemMap.values()).sort((E,P)=>g.indexOf(E.ref.current)-g.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},x,r]}var sS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ct=sS.reduce((e,t)=>{const n=ds(`Primitive.${t}`),r=w.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xm(e,t){e&&Ds.flushSync(()=>e.dispatchEvent(t))}function Fn(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function aS(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var lS="DismissableLayer",Dl="dismissableLayer.update",uS="dismissableLayer.pointerDownOutside",cS="dismissableLayer.focusOutside",qd,Zm=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qm=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(Zm),[d,f]=w.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=w.useState({}),x=_n(t,P=>f(P)),v=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(S),m=d?v.indexOf(d):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,T=m>=y,C=fS(P=>{const j=P.target,M=[...u.branches].some(L=>L.contains(j));!T||M||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},p),E=pS(P=>{const j=P.target;[...u.branches].some(L=>L.contains(j))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},p);return aS(P=>{m===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},p),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qd)}},[d,p,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jd())},[d,u]),w.useEffect(()=>{const P=()=>h({});return document.addEventListener(Dl,P),()=>document.removeEventListener(Dl,P)},[]),c.jsx(Ct.div,{...l,ref:x,style:{pointerEvents:g?T?"auto":"none":void 0,...e.style},onFocusCapture:Ke(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ke(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ke(e.onPointerDownCapture,C.onPointerDownCapture)})});qm.displayName=lS;var dS="DismissableLayerBranch",Jm=w.forwardRef((e,t)=>{const n=w.useContext(Zm),r=w.useRef(null),o=_n(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(Ct.div,{...e,ref:o})});Jm.displayName=dS;function fS(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){eg(uS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pS(e,t=globalThis==null?void 0:globalThis.document){const n=Fn(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&eg(cS,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jd(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function eg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xm(o,i):o.dispatchEvent(i)}var hS=qm,mS=Jm,Oo=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},gS="Portal",tg=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);Oo(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?kx.createPortal(c.jsx(Ct.div,{...r,ref:t}),s):null});tg.displayName=gS;function yS(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var ng=e=>{const{present:t,children:n}=e,r=vS(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=_n(r.ref,xS(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};ng.displayName="Presence";function vS(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=yS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=mi(r.current);i.current=a==="mounted"?u:"none"},[a]),Oo(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,h=mi(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oo(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const v=mi(r.current).includes(h.animationName);if(h.target===t&&v&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},p=h=>{h.target===t&&(i.current=mi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function mi(e){return(e==null?void 0:e.animationName)||"none"}function xS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wS=xp[" useInsertionEffect ".trim().toString()]||Oo;function SS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=TS({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=w.useRef(e!==void 0);w.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 u=w.useCallback(d=>{var f;if(a){const p=CS(d)?d(e):d;p!==e&&((f=s.current)==null||f.call(s,p))}else i(d)},[a,e,i,s]);return[l,u]}function TS({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),i=w.useRef(t);return wS(()=>{i.current=t},[t]),w.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function CS(e){return typeof e=="function"}var PS=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"}),ES="VisuallyHidden",qu=w.forwardRef((e,t)=>c.jsx(Ct.span,{...e,ref:t,style:{...PS,...e.style}}));qu.displayName=ES;var Ju="ToastProvider",[ec,jS,NS]=iS("Toast"),[rg,Dj]=Qm("Toast",[NS]),[kS,Fs]=rg(Ju),og=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=w.useState(null),[u,d]=w.useState(0),f=w.useRef(!1),p=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ju}\`. Expected non-empty \`string\`.`),c.jsx(ec.Provider,{scope:t,children:c.jsx(kS,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>d(h=>h+1),[]),onToastRemove:w.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:s})})};og.displayName=Ju;var ig="ToastViewport",bS=["F8"],_l="toast.viewportPause",Fl="toast.viewportResume",sg=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=bS,label:o="Notifications ({hotkey})",...i}=e,s=Fs(ig,n),a=jS(n),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),p=_n(t,f,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;w.useEffect(()=>{const S=y=>{var g;r.length!==0&&r.every(T=>y[T]||y.code===T)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),w.useEffect(()=>{const S=l.current,y=f.current;if(x&&S&&y){const m=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent(_l);y.dispatchEvent(E),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Fl);y.dispatchEvent(E),s.isClosePausedRef.current=!1}},T=E=>{!S.contains(E.relatedTarget)&&g()},C=()=>{S.contains(document.activeElement)||g()};return S.addEventListener("focusin",m),S.addEventListener("focusout",T),S.addEventListener("pointermove",m),S.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",g),()=>{S.removeEventListener("focusin",m),S.removeEventListener("focusout",T),S.removeEventListener("pointermove",m),S.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",g)}}},[x,s.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:S})=>{const m=a().map(g=>{const T=g.ref.current,C=[T,...US(T)];return S==="forwards"?C:C.reverse()});return(S==="forwards"?m.reverse():m).flat()},[a]);return w.useEffect(()=>{const S=f.current;if(S){const y=m=>{var C,E,P;const g=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!g){const j=document.activeElement,M=m.shiftKey;if(m.target===S&&M){(C=u.current)==null||C.focus();return}const V=v({tabbingDirection:M?"backwards":"forwards"}),oe=V.findIndex(A=>A===j);Ta(V.slice(oe+1))?m.preventDefault():M?(E=u.current)==null||E.focus():(P=d.current)==null||P.focus()}};return S.addEventListener("keydown",y),()=>S.removeEventListener("keydown",y)}},[a,v]),c.jsxs(mS,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(zl,{ref:u,onFocusFromOutsideViewport:()=>{const S=v({tabbingDirection:"forwards"});Ta(S)}}),c.jsx(ec.Slot,{scope:n,children:c.jsx(Ct.ol,{tabIndex:-1,...i,ref:p})}),x&&c.jsx(zl,{ref:d,onFocusFromOutsideViewport:()=>{const S=v({tabbingDirection:"backwards"});Ta(S)}})]})});sg.displayName=ig;var ag="ToastFocusProxy",zl=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Fs(ag,n);return c.jsx(qu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});zl.displayName=ag;var Ho="Toast",AS="toast.swipeStart",RS="toast.swipeMove",MS="toast.swipeCancel",LS="toast.swipeEnd",lg=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=SS({prop:r,defaultProp:o??!0,onChange:i,caller:Ho});return c.jsx(ng,{present:n||a,children:c.jsx(IS,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Fn(e.onPause),onResume:Fn(e.onResume),onSwipeStart:Ke(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ke(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ke(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ke(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});lg.displayName=Ho;var[OS,VS]=rg(Ho,{onClose(){}}),IS=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...x}=e,v=Fs(Ho,n),[S,y]=w.useState(null),m=_n(t,A=>y(A)),g=w.useRef(null),T=w.useRef(null),C=o||v.duration,E=w.useRef(0),P=w.useRef(C),j=w.useRef(0),{onToastAdd:M,onToastRemove:L}=v,H=Fn(()=>{var ee;(S==null?void 0:S.contains(document.activeElement))&&((ee=v.viewport)==null||ee.focus()),s()}),V=w.useCallback(A=>{!A||A===1/0||(window.clearTimeout(j.current),E.current=new Date().getTime(),j.current=window.setTimeout(H,A))},[H]);w.useEffect(()=>{const A=v.viewport;if(A){const ee=()=>{V(P.current),u==null||u()},U=()=>{const fe=new Date().getTime()-E.current;P.current=P.current-fe,window.clearTimeout(j.current),l==null||l()};return A.addEventListener(_l,U),A.addEventListener(Fl,ee),()=>{A.removeEventListener(_l,U),A.removeEventListener(Fl,ee)}}},[v.viewport,C,l,u,V]),w.useEffect(()=>{i&&!v.isClosePausedRef.current&&V(C)},[i,C,v.isClosePausedRef,V]),w.useEffect(()=>(M(),()=>L()),[M,L]);const oe=w.useMemo(()=>S?mg(S):null,[S]);return v.viewport?c.jsxs(c.Fragment,{children:[oe&&c.jsx(DS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c.jsx(OS,{scope:n,onClose:H,children:Ds.createPortal(c.jsx(ec.ItemSlot,{scope:n,children:c.jsx(hS,{asChild:!0,onEscapeKeyDown:Ke(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||H(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Ct.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ke(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:Ke(e.onPointerDown,A=>{A.button===0&&(g.current={x:A.clientX,y:A.clientY})}),onPointerMove:Ke(e.onPointerMove,A=>{if(!g.current)return;const ee=A.clientX-g.current.x,U=A.clientY-g.current.y,fe=!!T.current,k=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=k?R(0,ee):0,O=k?0:R(0,U),$=A.pointerType==="touch"?10:2,Y={x:D,y:O},We={originalEvent:A,delta:Y};fe?(T.current=Y,gi(RS,f,We,{discrete:!1})):ef(Y,v.swipeDirection,$)?(T.current=Y,gi(AS,d,We,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(ee)>$||Math.abs(U)>$)&&(g.current=null)}),onPointerUp:Ke(e.onPointerUp,A=>{const ee=T.current,U=A.target;if(U.hasPointerCapture(A.pointerId)&&U.releasePointerCapture(A.pointerId),T.current=null,g.current=null,ee){const fe=A.currentTarget,k={originalEvent:A,delta:ee};ef(ee,v.swipeDirection,v.swipeThreshold)?gi(LS,h,k,{discrete:!0}):gi(MS,p,k,{discrete:!0}),fe.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),DS=e=>{const{__scopeToast:t,children:n,...r}=e,o=Fs(Ho,t),[i,s]=w.useState(!1),[a,l]=w.useState(!1);return zS(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(tg,{asChild:!0,children:c.jsx(qu,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},_S="ToastTitle",ug=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Ct.div,{...r,ref:t})});ug.displayName=_S;var FS="ToastDescription",cg=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Ct.div,{...r,ref:t})});cg.displayName=FS;var dg="ToastAction",fg=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(hg,{altText:n,asChild:!0,children:c.jsx(tc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dg}\`. Expected non-empty \`string\`.`),null)});fg.displayName=dg;var pg="ToastClose",tc=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=VS(pg,n);return c.jsx(hg,{asChild:!0,children:c.jsx(Ct.button,{type:"button",...r,ref:t,onClick:Ke(e.onClick,o.onClose)})})});tc.displayName=pg;var hg=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(Ct.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function mg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),BS(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...mg(r))}}),t}function gi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xm(o,i):o.dispatchEvent(i)}var ef=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function zS(e=()=>{}){const t=Fn(e);Oo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function BS(e){return e.nodeType===e.ELEMENT_NODE}function US(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ta(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var $S=og,gg=sg,yg=lg,vg=ug,xg=cg,wg=fg,Sg=tc;const tf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nf=Um,Tg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return nf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const p=tf(d)||tf(f);return o[u][p]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(x=>{let[v,S]=x;return Array.isArray(S)?S.includes({...i,...a}[v]):{...i,...a}[v]===S})?[...u,f,p]:u},[]);return nf(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var WS={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"};const HS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>w.createElement("svg",{ref:u,...WS,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${HS(e)}`,...l},[...t.map(([d,f])=>w.createElement(d,f)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},GS=K("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),KS=K("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Cg=K("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),Pg=K("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),YS=K("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),QS=K("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),XS=K("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),ZS=K("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),qS=K("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"}]]),Oi=K("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"}]]),Bl=K("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),JS=K("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"}]]),eT=K("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]]),tT=K("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Vi=K("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"}]]),nT=K("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),rT=K("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),oT=K("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),nc=K("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),Eg=K("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]),iT=K("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),rf=K("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),sT=K("Truck",[["path",{d:"M5 18H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h10c.6 0 1 .4 1 1v11",key:"hs4xqm"}],["path",{d:"M14 9h4l4 4v4c0 .6-.4 1-1 1h-2",key:"11fp61"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}]]),aT=K("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),jg=K("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),Ng=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),fs=K("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),lT=$S,kg=se.forwardRef(({className:e,...t},n)=>c.jsx(gg,{ref:n,className:Hn("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}));kg.displayName=gg.displayName;const uT=Tg("data-[swipe=move]:transition-none group relative pointer-events-auto 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=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),bg=se.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(yg,{ref:r,className:Hn(uT({variant:t}),e),...n}));bg.displayName=yg.displayName;const cT=se.forwardRef(({className:e,...t},n)=>c.jsx(wg,{ref:n,className:Hn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));cT.displayName=wg.displayName;const Ag=se.forwardRef(({className:e,...t},n)=>c.jsx(Sg,{ref:n,className:Hn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Ng,{className:"h-4 w-4"})}));Ag.displayName=Sg.displayName;const Rg=se.forwardRef(({className:e,...t},n)=>c.jsx(vg,{ref:n,className:Hn("text-sm font-semibold",e),...t}));Rg.displayName=vg.displayName;const Mg=se.forwardRef(({className:e,...t},n)=>c.jsx(xg,{ref:n,className:Hn("text-sm opacity-90",e),...t}));Mg.displayName=xg.displayName;const dT=1;let Ca=0;function fT(){return Ca=(Ca+1)%Number.MAX_VALUE,Ca.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},bt=({...e})=>{const t=fT(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,dT)})),{id:t,dismiss:r,update:n}};function pT(){const[e,t]=w.useState(Ae.getState());return w.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),w.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:bt,toasts:e.toasts}}function hT(){const{toasts:e}=pT();return c.jsxs(lT,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>c.jsxs(bg,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Rg,{children:n}),r&&c.jsx(Mg,{children:r})]}),o,c.jsx(Ag,{})]},t)),c.jsx(kg,{})]})}const Lg=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),zs=w.createContext({}),rc=w.createContext(null),Bs=typeof document<"u",mT=Bs?w.useLayoutEffect:w.useEffect,Og=w.createContext({strict:!1}),oc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),gT="framerAppearId",Vg="data-"+oc(gT);function yT(e,t,n,r){const{visualElement:o}=w.useContext(zs),i=w.useContext(Og),s=w.useContext(rc),a=w.useContext(Lg).reducedMotion,l=w.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,s)});const d=w.useRef(!!(n[Vg]&&!window.HandoffComplete));return mT(()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function cr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vT(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):cr(n)&&(n.current=r))},[t])}function Vo(e){return typeof e=="string"||Array.isArray(e)}function Us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ic=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sc=["initial",...ic];function $s(e){return Us(e.animate)||sc.some(t=>Vo(e[t]))}function Ig(e){return!!($s(e)||e.variants)}function xT(e,t){if($s(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Vo(n)?n:void 0,animate:Vo(r)?r:void 0}}return e.inherit!==!1?t:{}}function wT(e){const{initial:t,animate:n}=xT(e,w.useContext(zs));return w.useMemo(()=>({initial:t,animate:n}),[of(t),of(n)])}function of(e){return Array.isArray(e)?e.join(" "):e}const sf={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"]},Io={};for(const e in sf)Io[e]={isEnabled:t=>sf[e].some(n=>!!t[n])};function ST(e){for(const t in e)Io[t]={...Io[t],...e[t]}}const Dg=w.createContext({}),_g=w.createContext({}),TT=Symbol.for("motionComponentSymbol");function CT({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&ST(e);function i(a,l){let u;const d={...w.useContext(Lg),...a,layoutId:PT(a)},{isStatic:f}=d,p=wT(a),h=r(a,f);if(!f&&Bs){p.visualElement=yT(o,h,d,t);const x=w.useContext(_g),v=w.useContext(Og).strict;p.visualElement&&(u=p.visualElement.loadFeatures(d,v,e,x))}return w.createElement(zs.Provider,{value:p},u&&p.visualElement?w.createElement(u,{visualElement:p.visualElement,...d}):null,n(o,a,vT(h,p.visualElement,l),h,f,p.visualElement))}const s=w.forwardRef(i);return s[TT]=o,s}function PT({layoutId:e}){const t=w.useContext(Dg).id;return t&&e!==void 0?t+"-"+e:e}function ET(e){function t(r,o={}){return CT(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const jT=["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 ac(e){return typeof e!="string"||e.includes("-")?!1:!!(jT.indexOf(e)>-1||/[A-Z]/.test(e))}const ps={};function NT(e){Object.assign(ps,e)}const Go=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gn=new Set(Go);function Fg(e,{layout:t,layoutId:n}){return Gn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ps[e]||e==="opacity")}const $e=e=>!!(e&&e.getVelocity),kT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bT=Go.length;function AT(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Bg=zg("--"),Ul=zg("var(--"),RT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,MT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fn=(e,t,n)=>Math.min(Math.max(n,e),t),Kn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uo={...Kn,transform:e=>fn(0,1,e)},yi={...Kn,default:1},co=e=>Math.round(e*1e5)/1e5,Ws=/(-)?([\d]*\.?[\d])+/g,Ug=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,LT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ko(e){return typeof e=="string"}const Yo=e=>({test:t=>Ko(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$t=Yo("deg"),Tt=Yo("%"),I=Yo("px"),OT=Yo("vh"),VT=Yo("vw"),af={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},lf={...Kn,transform:Math.round},$g={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:$t,rotateX:$t,rotateY:$t,rotateZ:$t,scale:yi,scaleX:yi,scaleY:yi,scaleZ:yi,skew:$t,skewX:$t,skewY:$t,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:uo,originX:af,originY:af,originZ:I,zIndex:lf,fillOpacity:uo,strokeOpacity:uo,numOctaves:lf};function lc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const p=t[f];if(Bg(f)){i[f]=p;continue}const h=$g[f],x=MT(p,h);if(Gn.has(f)){if(l=!0,s[f]=x,!d)continue;p!==(h.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=x):o[f]=x}if(t.transform||(l||r?o.transform=AT(e.transform,n,d,r):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:p="50%",originZ:h=0}=a;o.transformOrigin=`${f} ${p} ${h}`}}const uc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wg(e,t,n){for(const r in t)!$e(t[r])&&!Fg(r,n)&&(e[r]=t[r])}function IT({transformTemplate:e},t,n){return w.useMemo(()=>{const r=uc();return lc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function DT(e,t,n){const r=e.style||{},o={};return Wg(o,r,e),Object.assign(o,IT(e,t,n)),e.transformValues?e.transformValues(o):o}function _T(e,t,n){const r={},o=DT(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const FT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||FT.has(e)}let Hg=e=>!hs(e);function zT(e){e&&(Hg=t=>t.startsWith("on")?!hs(t):e(t))}try{zT(require("@emotion/is-prop-valid").default)}catch{}function BT(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Hg(o)||n===!0&&hs(o)||!t&&!hs(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function uf(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function UT(e,t,n){const r=uf(t,e.x,e.width),o=uf(n,e.y,e.height);return`${r} ${o}`}const $T={offset:"stroke-dashoffset",array:"stroke-dasharray"},WT={offset:"strokeDashoffset",array:"strokeDasharray"};function HT(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?$T:WT;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}function cc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,p){if(lc(e,u,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:x,dimensions:v}=e;h.transform&&(v&&(x.transform=h.transform),delete h.transform),v&&(o!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=UT(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&HT(h,s,a,l,!1)}const Gg=()=>({...uc(),attrs:{}}),dc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function GT(e,t,n,r){const o=w.useMemo(()=>{const i=Gg();return cc(i,t,{enableHardwareAcceleration:!1},dc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wg(i,e.style,e),o.style={...i,...o.style}}return o}function KT(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(ac(n)?GT:_T)(r,i,s,n),d={...BT(r,typeof n=="string",e),...l,ref:o},{children:f}=r,p=w.useMemo(()=>$e(f)?f.get():f,[f]);return w.createElement(n,{...d,children:p})}}function Kg(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Yg=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"]);function Qg(e,t,n,r){Kg(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Yg.has(o)?o:oc(o),t.attrs[o])}function fc(e,t){const{style:n}=e,r={};for(const o in n)($e(n[o])||t.style&&$e(t.style[o])||Fg(o,e))&&(r[o]=n[o]);return r}function Xg(e,t){const n=fc(e,t);for(const r in e)if($e(e[r])||$e(t[r])){const o=Go.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function pc(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function YT(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const ms=e=>Array.isArray(e),QT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),XT=e=>ms(e)?e[e.length-1]||0:e;function Ii(e){const t=$e(e)?e.get():e;return QT(t)?t.toValue():t}function ZT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:qT(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Zg=e=>(t,n)=>{const r=w.useContext(zs),o=w.useContext(rc),i=()=>ZT(e,t,r,o);return n?i():YT(i)};function qT(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Ii(i[p]);let{initial:s,animate:a}=e;const l=$s(e),u=Ig(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!Us(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const x=pc(e,h);if(!x)return;const{transitionEnd:v,transition:S,...y}=x;for(const m in y){let g=y[m];if(Array.isArray(g)){const T=d?g.length-1:0;g=g[T]}g!==null&&(o[m]=g)}for(const m in v)o[m]=v[m]}),o}const de=e=>e;class cf{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function JT(e){let t=new cf,n=new cf,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&o,p=f?t:n;return u&&s.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[p]=JT(()=>n=!0),f),{}),s=f=>i[f].process(o),a=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,eC),1),o.timestamp=f,o.isProcessing=!0,vi.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:vi.reduce((f,p)=>{const h=i[p];return f[p]=(x,v=!1,S=!1)=>(n||l(),h.schedule(x,v,S)),f},{}),cancel:f=>vi.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:J,cancel:Ft,state:Ne,steps:Pa}=tC(typeof requestAnimationFrame<"u"?requestAnimationFrame:de,!0),nC={useVisualState:Zg({scrapeMotionValuesFromProps:Xg,createRenderState:Gg,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{cc(n,r,{enableHardwareAcceleration:!1},dc(t.tagName),e.transformTemplate),Qg(t,n)})}})},rC={useVisualState:Zg({scrapeMotionValuesFromProps:fc,createRenderState:uc})};function oC(e,{forwardMotionProps:t=!1},n,r){return{...ac(e)?nC:rC,preloadedFeatures:n,useRender:KT(t),createVisualElement:r,Component:e}}function At(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const iC=e=>t=>qg(t)&&e(t,Hs(t));function Mt(e,t,n,r){return At(e,t,iC(n),r)}const sC=(e,t)=>n=>t(e(n)),ln=(...e)=>e.reduce(sC);function Jg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const df=Jg("dragHorizontal"),ff=Jg("dragVertical");function ey(e){let t=!1;if(e==="y")t=ff();else if(e==="x")t=df();else{const n=df(),r=ff();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ty(){const e=ey(!0);return e?(e(),!1):!0}class yn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function pf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||ty())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&J.update(()=>a[r](i,s))};return Mt(e.current,n,o,{passive:!e.getProps()[r]})}class aC extends yn{mount(){this.unmount=ln(pf(this.node,!0),pf(this.node,!1))}unmount(){}}class lC extends yn{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=ln(At(this.node.current,"focus",()=>this.onFocus()),At(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ny=(e,t)=>t?e===t?!0:ny(e,t.parentElement):!1;function Ea(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hs(n))}class uC extends yn{constructor(){super(...arguments),this.removeStartListeners=de,this.removeEndListeners=de,this.removeAccessibleListeners=de,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Mt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();J.update(()=>{!f&&!ny(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Mt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ln(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ea("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&J.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=At(this.node.current,"keyup",s),Ea("down",(a,l)=>{this.startPress(a,l)})},n=At(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ea("cancel",(i,s)=>this.cancelPress(i,s))},o=At(this.node.current,"blur",r);this.removeAccessibleListeners=ln(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&J.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ty()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Mt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=At(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ln(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $l=new WeakMap,ja=new WeakMap,cC=e=>{const t=$l.get(e.target);t&&t(e)},dC=e=>{e.forEach(cC)};function fC({root:e,...t}){const n=e||document;ja.has(n)||ja.set(n,{});const r=ja.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(dC,{root:e,...t})),r[o]}function pC(e,t,n){const r=fC(t);return $l.set(e,n),r.observe(e),()=>{$l.delete(e),r.unobserve(e)}}const hC={some:0,all:1};class mC extends yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:hC[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(l)};return pC(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(gC(t,n))&&this.startObserver()}unmount(){}}function gC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const yC={inView:{Feature:mC},tap:{Feature:uC},focus:{Feature:lC},hover:{Feature:aC}};function ry(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function xC(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Gs(e,t,n){const r=e.getProps();return pc(r,t,n!==void 0?n:r.custom,vC(e),xC(e))}let wC=de,hc=de;const un=e=>e*1e3,Lt=e=>e/1e3,SC={current:!1},oy=e=>Array.isArray(e)&&typeof e[0]=="number";function iy(e){return!!(!e||typeof e=="string"&&sy[e]||oy(e)||Array.isArray(e)&&e.every(iy))}const Jr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jr([0,.65,.55,1]),circOut:Jr([.55,0,1,.45]),backIn:Jr([.31,.01,.66,-.59]),backOut:Jr([.33,1.53,.69,.99])};function ay(e){if(e)return oy(e)?Jr(e):Array.isArray(e)?e.map(ay):sy[e]}function TC(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=ay(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function CC(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ly=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PC=1e-7,EC=12;function jC(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ly(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>PC&&++ajC(i,0,1,e,n);return i=>i===0||i===1?i:ly(o(i),t,r)}const NC=Qo(.42,0,1,1),kC=Qo(0,0,.58,1),uy=Qo(.42,0,.58,1),bC=e=>Array.isArray(e)&&typeof e[0]!="number",cy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dy=e=>t=>1-e(1-t),mc=e=>1-Math.sin(Math.acos(e)),fy=dy(mc),AC=cy(mc),py=Qo(.33,1.53,.69,.99),gc=dy(py),RC=cy(gc),MC=e=>(e*=2)<1?.5*gc(e):.5*(2-Math.pow(2,-10*(e-1))),LC={linear:de,easeIn:NC,easeInOut:uy,easeOut:kC,circIn:mc,circInOut:AC,circOut:fy,backIn:gc,backInOut:RC,backOut:py,anticipate:MC},hf=e=>{if(Array.isArray(e)){hc(e.length===4);const[t,n,r,o]=e;return Qo(t,n,r,o)}else if(typeof e=="string")return LC[e];return e},yc=(e,t)=>n=>!!(Ko(n)&<.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),hy=(e,t,n)=>r=>{if(!Ko(r))return r;const[o,i,s,a]=r.match(Ws);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},OC=e=>fn(0,255,e),Na={...Kn,transform:e=>Math.round(OC(e))},bn={test:yc("rgb","red"),parse:hy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Na.transform(e)+", "+Na.transform(t)+", "+Na.transform(n)+", "+co(uo.transform(r))+")"};function VC(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Wl={test:yc("#"),parse:VC,transform:bn.transform},dr={test:yc("hsl","hue"),parse:hy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tt.transform(co(t))+", "+Tt.transform(co(n))+", "+co(uo.transform(r))+")"},Re={test:e=>bn.test(e)||Wl.test(e)||dr.test(e),parse:e=>bn.test(e)?bn.parse(e):dr.test(e)?dr.parse(e):Wl.parse(e),transform:e=>Ko(e)?e:e.hasOwnProperty("red")?bn.transform(e):dr.transform(e)},ae=(e,t,n)=>-n*e+n*t+e;function ka(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 IC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ka(l,a,e+1/3),i=ka(l,a,e),s=ka(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ba=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},DC=[Wl,bn,dr],_C=e=>DC.find(t=>t.test(e));function mf(e){const t=_C(e);let n=t.parse(e);return t===dr&&(n=IC(n)),n}const my=(e,t)=>{const n=mf(e),r=mf(t),o={...n};return i=>(o.red=ba(n.red,r.red,i),o.green=ba(n.green,r.green,i),o.blue=ba(n.blue,r.blue,i),o.alpha=ae(n.alpha,r.alpha,i),bn.transform(o))};function FC(e){var t,n;return isNaN(e)&&Ko(e)&&(((t=e.match(Ws))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ug))===null||n===void 0?void 0:n.length)||0)>0}const gy={regex:RT,countKey:"Vars",token:"${v}",parse:de},yy={regex:Ug,countKey:"Colors",token:"${c}",parse:Re.parse},vy={regex:Ws,countKey:"Numbers",token:"${n}",parse:Kn.parse};function Aa(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function gs(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Aa(n,gy),Aa(n,yy),Aa(n,vy),n}function xy(e){return gs(e).values}function wy(e){const{values:t,numColors:n,numVars:r,tokenised:o}=gs(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function BC(e){const t=xy(e);return wy(e)(t.map(zC))}const pn={test:FC,parse:xy,createTransformer:wy,getAnimatableNone:BC},Sy=(e,t)=>n=>`${n>0?t:e}`;function Ty(e,t){return typeof e=="number"?n=>ae(e,t,n):Re.test(e)?my(e,t):e.startsWith("var(")?Sy(e,t):Py(e,t)}const Cy=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Ty(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ty(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Py=(e,t)=>{const n=pn.createTransformer(t),r=gs(e),o=gs(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?ln(Cy(r.values,o.values),n):Sy(e,t)},Do=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},gf=(e,t)=>n=>ae(e,t,n);function $C(e){return typeof e=="number"?gf:typeof e=="string"?Re.test(e)?my:Py:Array.isArray(e)?Cy:typeof e=="object"?UC:gf}function WC(e,t,n){const r=[],o=n||$C(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=WC(t,r,o),a=s.length,l=u=>{let d=0;if(a>1)for(;dl(fn(e[0],e[i-1],u)):l}function HC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Do(0,t,r);e.push(ae(n,1,o))}}function GC(e){const t=[0];return HC(t,e.length-1),t}function KC(e,t){return e.map(n=>n*t)}function YC(e,t){return e.map(()=>t||uy).splice(0,e.length-1)}function ys({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=bC(r)?r.map(hf):hf(r),i={done:!1,value:t[0]},s=KC(n&&n.length===t.length?n:GC(t),e),a=Ey(s,t,{ease:Array.isArray(o)?o:YC(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function jy(e,t){return t?e*(1e3/t):0}const QC=5;function Ny(e,t,n){const r=Math.max(t-QC,0);return jy(n-e(r),t-r)}const Ra=.001,XC=.01,yf=10,ZC=.05,qC=1;function JC({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wC(e<=un(yf));let s=1-t;s=fn(ZC,qC,s),e=fn(XC,yf,Lt(e)),s<1?(o=u=>{const d=u*s,f=d*e,p=d-n,h=Hl(u,s),x=Math.exp(-f);return Ra-p/h*x},i=u=>{const f=u*s*e,p=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-f),v=Hl(Math.pow(u,2),s);return(-o(u)+Ra>0?-1:1)*((p-h)*x)/v}):(o=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ra+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=tP(o,i,a);if(e=un(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const eP=12;function tP(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function oP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vf(e,rP)&&vf(e,nP)){const n=JC(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function ky({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=oP({...r,velocity:-Lt(r.velocity||0)}),h=f||0,x=l/(2*Math.sqrt(a*u)),v=i-o,S=Lt(Math.sqrt(a/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let m;if(x<1){const g=Hl(S,x);m=T=>{const C=Math.exp(-x*S*T);return i-C*((h+x*S*v)/g*Math.sin(g*T)+v*Math.cos(g*T))}}else if(x===1)m=g=>i-Math.exp(-S*g)*(v+(h+S*v)*g);else{const g=S*Math.sqrt(x*x-1);m=T=>{const C=Math.exp(-x*S*T),E=Math.min(g*T,300);return i-C*((h+x*S*v)*Math.sinh(E)+g*v*Math.cosh(E))/g}}return{calculatedDuration:p&&d||null,next:g=>{const T=m(g);if(p)s.done=g>=d;else{let C=h;g!==0&&(x<1?C=Ny(m,g,T):C=0);const E=Math.abs(C)<=n,P=Math.abs(i-T)<=t;s.done=E&&P}return s.value=s.done?i:T,s}}}function xf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=j=>a!==void 0&&jl,x=j=>a===void 0?l:l===void 0||Math.abs(a-j)-v*Math.exp(-j/r),g=j=>y+m(j),T=j=>{const M=m(j),L=g(j);p.done=Math.abs(M)<=u,p.value=p.done?y:L};let C,E;const P=j=>{h(p.value)&&(C=j,E=ky({keyframes:[p.value,x(p.value)],velocity:Ny(g,j,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:j=>{let M=!1;return!E&&C===void 0&&(M=!0,T(j),P(j)),C!==void 0&&j>C?E.next(j-C):(!M&&T(j),p)}}}const iP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>Ft(t),now:()=>Ne.isProcessing?Ne.timestamp:performance.now()}},wf=2e4;function Sf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=wf?1/0:t}const sP={decay:xf,inertia:xf,tween:ys,keyframes:ys,spring:ky};function vs({autoplay:e=!0,delay:t=0,driver:n=iP,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...p}){let h=1,x=!1,v,S;const y=()=>{S=new Promise(O=>{v=O})};y();let m;const g=sP[o]||ys;let T;g!==ys&&typeof r[0]!="number"&&(T=Ey([0,100],r,{clamp:!1}),r=[0,100]);const C=g({...p,keyframes:r});let E;a==="mirror"&&(E=g({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let P="idle",j=null,M=null,L=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=Sf(C));const{calculatedDuration:H}=C;let V=1/0,oe=1/0;H!==null&&(V=H+s,oe=V*(i+1)-s);let A=0;const ee=O=>{if(M===null)return;h>0&&(M=Math.min(M,O)),h<0&&(M=Math.min(O-oe/h,M)),j!==null?A=j:A=Math.round(O-M)*h;const $=A-t*(h>=0?1:-1),Y=h>=0?$<0:$>oe;A=Math.max($,0),P==="finished"&&j===null&&(A=oe);let We=A,Yn=C;if(i){const Ks=Math.min(A,oe)/V;let Xo=Math.floor(Ks),xn=Ks%1;!xn&&Ks>=1&&(xn=1),xn===1&&Xo--,Xo=Math.min(Xo,i+1),!!(Xo%2)&&(a==="reverse"?(xn=1-xn,s&&(xn-=s/V)):a==="mirror"&&(Yn=E)),We=fn(0,1,xn)*V}const He=Y?{done:!1,value:r[0]}:Yn.next(We);T&&(He.value=T(He.value));let{done:vn}=He;!Y&&H!==null&&(vn=h>=0?A>=oe:A<=0);const tv=j===null&&(P==="finished"||P==="running"&&vn);return f&&f(He.value),tv&&k(),He},U=()=>{m&&m.stop(),m=void 0},fe=()=>{P="idle",U(),v(),y(),M=L=null},k=()=>{P="finished",d&&d(),U(),v()},R=()=>{if(x)return;m||(m=n(ee));const O=m.now();l&&l(),j!==null?M=O-j:(!M||P==="finished")&&(M=O),P==="finished"&&y(),L=M,j=null,P="running",m.start()};e&&R();const D={then(O,$){return S.then(O,$)},get time(){return Lt(A)},set time(O){O=un(O),A=O,j!==null||!m||h===0?j=O:M=m.now()-O/h},get duration(){const O=C.calculatedDuration===null?Sf(C):C.calculatedDuration;return Lt(O)},get speed(){return h},set speed(O){O===h||!m||(h=O,D.time=Lt(A))},get state(){return P},play:R,pause:()=>{P="paused",j=A},stop:()=>{x=!0,P!=="idle"&&(P="idle",u&&u(),fe())},cancel:()=>{L!==null&&ee(L),fe()},complete:()=>{P="finished"},sample:O=>(M=0,ee(O))};return D}function aP(e){let t;return()=>(t===void 0&&(t=e()),t)}const lP=aP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),uP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),xi=10,cP=2e4,dP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!iy(t.ease);function fP(e,t,{onUpdate:n,onComplete:r,...o}){if(!(lP()&&uP.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(g=>{a=g})};d();let{keyframes:f,duration:p=300,ease:h,times:x}=o;if(dP(t,o)){const g=vs({...o,repeat:0,delay:0});let T={done:!1,value:f[0]};const C=[];let E=0;for(;!T.done&&E{u=!1,v.cancel()},y=()=>{u=!0,J.update(S),a(),d()};return v.onfinish=()=>{u||(e.set(CC(f,o)),r&&r(),y())},{then(g,T){return l.then(g,T)},attachTimeline(g){return v.timeline=g,v.onfinish=null,de},get time(){return Lt(v.currentTime||0)},set time(g){v.currentTime=un(g)},get speed(){return v.playbackRate},set speed(g){v.playbackRate=g},get duration(){return Lt(p)},play:()=>{s||(v.play(),Ft(S))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:g}=v;if(g){const T=vs({...o,autoplay:!1});e.setWithVelocity(T.sample(g-xi).value,T.sample(g).value,xi)}y()},complete:()=>{u||v.finish()},cancel:y}}function pP({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:de,pause:de,stop:de,then:i=>(i(),Promise.resolve()),cancel:de,complete:de});return t?vs({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const hP={type:"spring",stiffness:500,damping:25,restSpeed:10},mP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gP={type:"keyframes",duration:.8},yP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vP=(e,{keyframes:t})=>t.length>2?gP:Gn.has(e)?e.startsWith("scale")?mP(t[1]):hP:yP,Gl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(pn.test(t)||t==="0")&&!t.startsWith("url(")),xP=new Set(["brightness","contrast","saturate","opacity"]);function wP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ws)||[];if(!r)return e;const o=n.replace(r,"");let i=xP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const SP=/([a-z-]*)\(.*?\)/g,Kl={...pn,getAnimatableNone:e=>{const t=e.match(SP);return t?t.map(wP).join(" "):e}},TP={...$g,color:Re,backgroundColor:Re,outlineColor:Re,fill:Re,stroke:Re,borderColor:Re,borderTopColor:Re,borderRightColor:Re,borderBottomColor:Re,borderLeftColor:Re,filter:Kl,WebkitFilter:Kl},vc=e=>TP[e];function by(e,t){let n=vc(e);return n!==Kl&&(n=pn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ay=e=>/^0[^.\s]+$/.test(e);function CP(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ay(e)}function PP(e,t,n,r){const o=Gl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=xc(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-un(s);const l=PP(t,e,n,i),u=l[0],d=l[l.length-1],f=Gl(e,u),p=Gl(e,d);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:x=>{t.set(x),i.onUpdate&&i.onUpdate(x)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(EP(i)||(h={...h,...vP(e,h)}),h.duration&&(h.duration=un(h.duration)),h.repeatDelay&&(h.repeatDelay=un(h.repeatDelay)),!f||!p||SC.current||i.type===!1||jP.skipAnimations)return pP(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=fP(t,e,h);if(x)return x}return vs(h)};function xs(e){return!!($e(e)&&e.add)}const Ry=e=>/^\-?\d*\.?\d+$/.test(e);function Sc(e,t){e.indexOf(t)===-1&&e.push(t)}function Tc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Cc{constructor(){this.subscriptions=[]}add(t){return Sc(this.subscriptions,t),()=>Tc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class kP{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ne;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,J.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>J.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=NP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Cc);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?jy(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kr(e,t){return new kP(e,t)}const My=e=>t=>t.test(e),bP={test:e=>e==="auto",parse:e=>e},Ly=[Kn,I,Tt,$t,VT,OT,bP],Kr=e=>Ly.find(My(e)),AP=[...Ly,Re,pn],RP=e=>AP.find(My(e));function MP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kr(n))}function LP(e,t){const n=Gs(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=XT(i[s]);MP(e,s,a)}}function OP(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(f))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&LP(e,s)}),u}function Yl(e,t,n={}){const r=Gs(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Oy(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return FP(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function FP(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(zP).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Yl(u,t,{...i,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function zP(e,t){return e.sortNodePosition(t)}function BP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yl(e,t,n);else{const o=typeof t=="function"?Gs(e,t,n.custom):t;r=Promise.all(Oy(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const UP=[...ic].reverse(),$P=ic.length;function WP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BP(e,n,r)))}function HP(e){let t=WP(e);const n=KP();let r=!0;const o=(l,u)=>{const d=Gs(e,u);if(d){const{transition:f,transitionEnd:p,...h}=d;l={...l,...h,...p}}return l};function i(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],h=new Set;let x={},v=1/0;for(let y=0;y<$P;y++){const m=UP[y],g=n[m],T=d[m]!==void 0?d[m]:f[m],C=Vo(T),E=m===u?g.isActive:null;E===!1&&(v=y);let P=T===f[m]&&T!==d[m]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...x},!g.isActive&&E===null||!T&&!g.prevProp||Us(T)||typeof T=="boolean")continue;let M=GP(g.prevProp,T)||m===u&&g.isActive&&!P&&C||y>v&&C,L=!1;const H=Array.isArray(T)?T:[T];let V=H.reduce(o,{});E===!1&&(V={});const{prevResolvedValues:oe={}}=g,A={...oe,...V},ee=U=>{M=!0,h.has(U)&&(L=!0,h.delete(U)),g.needsAnimating[U]=!0};for(const U in A){const fe=V[U],k=oe[U];if(x.hasOwnProperty(U))continue;let R=!1;ms(fe)&&ms(k)?R=!ry(fe,k):R=fe!==k,R?fe!==void 0?ee(U):h.add(U):fe!==void 0&&h.has(U)?ee(U):g.protectedKeys[U]=!0}g.prevProp=T,g.prevResolvedValues=V,g.isActive&&(x={...x,...V}),r&&e.blockInitialAnimation&&(M=!1),M&&(!P||L)&&p.push(...H.map(U=>({animation:U,options:{type:m,...l}})))}if(h.size){const y={};h.forEach(m=>{const g=e.getBaseTarget(m);g!==void 0&&(y[m]=g)}),p.push({animation:y})}let S=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(p):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var x;return(x=h.animationState)===null||x===void 0?void 0:x.setActive(l,u)}),n[l].isActive=u;const p=s(d,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function GP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ry(t,e):!1}function wn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function KP(){return{animate:wn(!0),whileInView:wn(),whileHover:wn(),whileTap:wn(),whileDrag:wn(),whileFocus:wn(),exit:wn()}}class YP extends yn{constructor(t){super(t),t.animationState||(t.animationState=HP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Us(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let QP=0;class XP extends yn{constructor(){super(...arguments),this.id=QP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ZP={animation:{Feature:YP},exit:{Feature:XP}},Tf=(e,t)=>Math.abs(e-t);function qP(e,t){const n=Tf(e.x,t.x),r=Tf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vy{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=La(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=qP(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:x}=f,{timestamp:v}=Ne;this.history.push({...x,timestamp:v});const{onStart:S,onMove:y}=this.handlers;p||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ma(p,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=La(f.type==="pointercancel"?this.lastMoveEventInfo:Ma(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,S),x&&x(f,S)},!qg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Hs(t),a=Ma(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ne;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,La(a,this.history)),this.removeListeners=ln(Mt(this.contextWindow,"pointermove",this.handlePointerMove),Mt(this.contextWindow,"pointerup",this.handlePointerUp),Mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function Ma(e,t){return t?{point:t(e.point)}:e}function Cf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function La({point:e},t){return{point:e,delta:Cf(e,Iy(t)),offset:Cf(e,JP(t)),velocity:eE(t,.1)}}function JP(e){return e[0]}function Iy(e){return e[e.length-1]}function eE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Iy(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>un(t)));)n--;if(!r)return{x:0,y:0};const i=Lt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ze(e){return e.max-e.min}function Ql(e,t=0,n=.01){return Math.abs(e-t)<=n}function Pf(e,t,n,r=.5){e.origin=r,e.originPoint=ae(t.min,t.max,e.origin),e.scale=Ze(n)/Ze(t),(Ql(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ae(n.min,n.max,e.origin)-e.originPoint,(Ql(e.translate)||isNaN(e.translate))&&(e.translate=0)}function fo(e,t,n,r){Pf(e.x,t.x,n.x,r?r.originX:void 0),Pf(e.y,t.y,n.y,r?r.originY:void 0)}function Ef(e,t,n){e.min=n.min+t.min,e.max=e.min+Ze(t)}function tE(e,t,n){Ef(e.x,t.x,n.x),Ef(e.y,t.y,n.y)}function jf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ze(t)}function po(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function nE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ae(n,e,r.max):Math.min(e,n)),e}function Nf(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 rE(e,{top:t,left:n,bottom:r,right:o}){return{x:Nf(e.x,n,o),y:Nf(e.y,t,r)}}function kf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Do(t.min,t.max-r,e.min):r>o&&(n=Do(e.min,e.max-o,t.min)),fn(0,1,n)}function sE(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 Xl=.35;function aE(e=Xl){return e===!1?e=0:e===!0&&(e=Xl),{x:bf(e,"left","right"),y:bf(e,"top","bottom")}}function bf(e,t,n){return{min:Af(e,t),max:Af(e,n)}}function Af(e,t){return typeof e=="number"?e:e[t]||0}const Rf=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Rf(),y:Rf()}),Mf=()=>({min:0,max:0}),me=()=>({x:Mf(),y:Mf()});function tt(e){return[e("x"),e("y")]}function Dy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uE(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 Oa(e){return e===void 0||e===1}function Zl({scale:e,scaleX:t,scaleY:n}){return!Oa(e)||!Oa(t)||!Oa(n)}function Cn(e){return Zl(e)||_y(e)||e.z||e.rotate||e.rotateX||e.rotateY}function _y(e){return Lf(e.x)||Lf(e.y)}function Lf(e){return e&&e!=="0%"}function ws(e,t,n){const r=e-n,o=t*r;return n+o}function Of(e,t,n,r,o){return o!==void 0&&(e=ws(e,o,r)),ws(e,n,r)+t}function ql(e,t=0,n=1,r,o){e.min=Of(e.min,t,n,r,o),e.max=Of(e.max,t,n,r,o)}function Fy(e,{x:t,y:n}){ql(e.x,t.translate,t.scale,t.originPoint),ql(e.y,n.translate,n.scale,n.originPoint)}function cE(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Gt(e,t){e.min=e.min+t,e.max=e.max+t}function If(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ae(e.min,e.max,i);ql(e,t[n],t[r],s,t.scale)}const dE=["x","scaleX","originX"],fE=["y","scaleY","originY"];function pr(e,t){If(e.x,t,dE),If(e.y,t,fE)}function zy(e,t){return Dy(uE(e.getBoundingClientRect(),t))}function pE(e,t,n){const r=zy(e,n),{scroll:o}=t;return o&&(Gt(r.x,o.offset.x),Gt(r.y,o.offset.y)),r}const By=({current:e})=>e?e.ownerDocument.defaultView:null,hE=new WeakMap;class mE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hs(d,"page").point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:x}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ey(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tt(S=>{let y=this.getAxisMotionValue(S).get()||0;if(Tt.test(y)){const{projection:m}=this.visualElement;if(m&&m.layout){const g=m.layout.layoutBox[S];g&&(y=Ze(g)*(parseFloat(y)/100))}}this.originPoint[S]=y}),x&&J.update(()=>x(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:x,onDrag:v}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=f;if(h&&this.currentDirection===null){this.currentDirection=gE(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>tt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Vy(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:By(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&J.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!wi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nE(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&cr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=rE(o.layoutBox,n):this.constraints=!1,this.elastic=aE(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&tt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=sE(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!cr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=pE(r,o.root,this.visualElement.getTransformPagePoint());let s=oE(o.layout.layoutBox,i);if(n){const a=n(lE(s));this.hasMutatedConstraints=!!a,a&&(s=Dy(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=tt(d=>{if(!wi(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(wc(t,r,0,n))}stopAnimation(){tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tt(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ae(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!cr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};tt(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=iE({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tt(s=>{if(!wi(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ae(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;hE.set(this.visualElement,this);const t=this.visualElement.current,n=Mt(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();cr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=At(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(tt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Xl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yE extends yn{constructor(t){super(t),this.removeGroupControls=de,this.removeListeners=de,this.controls=new mE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||de}unmount(){this.removeGroupControls(),this.removeListeners()}}const Df=e=>(t,n)=>{e&&J.update(()=>e(t,n))};class vE extends yn{constructor(){super(...arguments),this.removePointerDownListener=de}onPointerDown(t){this.session=new Vy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:By(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Df(t),onStart:Df(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&J.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Mt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function xE(){const e=w.useContext(rc);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=w.useId();return w.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Di={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _f(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=_f(e,t.target.x),r=_f(e,t.target.y);return`${n}% ${r}%`}},wE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=pn.parse(e);if(o.length>5)return r;const i=pn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ae(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class SE extends se.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;NT(TE),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Di.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Uy(e){const[t,n]=xE(),r=w.useContext(Dg);return se.createElement(SE,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(_g),isPresent:t,safeToRemove:n})}const TE={borderRadius:{...Yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yr,borderTopRightRadius:Yr,borderBottomLeftRadius:Yr,borderBottomRightRadius:Yr,boxShadow:wE},$y=["TopLeft","TopRight","BottomLeft","BottomRight"],CE=$y.length,Ff=e=>typeof e=="string"?parseFloat(e):e,zf=e=>typeof e=="number"||I.test(e);function PE(e,t,n,r,o,i){o?(e.opacity=ae(0,n.opacity!==void 0?n.opacity:1,EE(r)),e.opacityExit=ae(t.opacity!==void 0?t.opacity:1,0,jE(r))):i&&(e.opacity=ae(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Do(e,t,r))}function Uf(e,t){e.min=t.min,e.max=t.max}function et(e,t){Uf(e.x,t.x),Uf(e.y,t.y)}function $f(e,t,n,r,o){return e-=t,e=ws(e,1/n,r),o!==void 0&&(e=ws(e,1/o,r)),e}function NE(e,t=0,n=1,r=.5,o,i=e,s=e){if(Tt.test(t)&&(t=parseFloat(t),t=ae(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ae(i.min,i.max,r);e===i&&(a-=t),e.min=$f(e.min,t,n,a,o),e.max=$f(e.max,t,n,a,o)}function Wf(e,t,[n,r,o],i,s){NE(e,t[n],t[r],t[o],t.scale,i,s)}const kE=["x","scaleX","originX"],bE=["y","scaleY","originY"];function Hf(e,t,n,r){Wf(e.x,t,kE,n?n.x:void 0,r?r.x:void 0),Wf(e.y,t,bE,n?n.y:void 0,r?r.y:void 0)}function Gf(e){return e.translate===0&&e.scale===1}function Hy(e){return Gf(e.x)&&Gf(e.y)}function AE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Gy(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Kf(e){return Ze(e.x)/Ze(e.y)}class RE{constructor(){this.members=[]}add(t){Sc(this.members,t),t.scheduleRender()}remove(t){if(Tc(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const ME=(e,t)=>e.depth-t.depth;class LE{constructor(){this.children=[],this.isDirty=!1}add(t){Sc(this.children,t),this.isDirty=!0}remove(t){Tc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ME),this.isDirty=!1,this.children.forEach(t)}}function OE(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ft(r),e(i-t))};return J.read(r,!0),()=>Ft(r)}function VE(e){window.MotionDebug&&window.MotionDebug.record(e)}function IE(e){return e instanceof SVGElement&&e.tagName!=="svg"}function DE(e,t,n){const r=$e(e)?e:kr(e);return r.start(wc("",r,t,n)),r.animation}const Qf=["","X","Y","Z"],_E={visibility:"hidden"},Xf=1e3;let FE=0;const Pn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ky({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=FE++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pn.totalNodes=Pn.resolvedTargetDeltas=Pn.recalculatedProjection=0,this.nodes.forEach(UE),this.nodes.forEach(KE),this.nodes.forEach(YE),this.nodes.forEach($E),VE(Pn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=OE(p,250),Di.hasAnimatedSinceResize&&(Di.hasAnimatedSinceResize=!1,this.nodes.forEach(qf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||JE,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=d.getProps(),m=!this.targetLayout||!Gy(this.targetLayout,x)||h,g=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);const T={...xc(v,"layout"),onPlay:S,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else p||qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(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(QE),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;dthis.update()))}clearAllSnapshots(){this.nodes.forEach(WE),this.sharedNodes.forEach(XE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}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 C=T/1e3;Jf(f.x,s.x,C),Jf(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(po(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZE(this.relativeTarget,this.relativeTargetOrigin,p,C),g&&AE(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=me()),et(g,this.relativeTarget)),v&&(this.animationValues=d,PE(d,u,this.latestValues,C,m,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Di.hasAnimatedSinceResize=!0,this.currentAnimation=DE(0,Xf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Yy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||me();const f=Ze(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const p=Ze(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}et(a,l),pr(a,d),fo(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RE),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Zf),this.root.sharedNodes.clear()}}}function zE(e){e.updateLayout()}function BE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?tt(f=>{const p=s?n.measuredBox[f]:n.layoutBox[f],h=Ze(p);p.min=r[f].min,p.max=p.min+h}):Yy(i,n.layoutBox,r)&&tt(f=>{const p=s?n.measuredBox[f]:n.layoutBox[f],h=Ze(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=fr();fo(a,r,n.layoutBox);const l=fr();s?fo(l,e.applyTransform(o,!0),n.measuredBox):fo(l,r,n.layoutBox);const u=!Hy(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const x=me();po(x,n.layoutBox,p.layoutBox);const v=me();po(v,r,h.layoutBox),Gy(x,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function UE(e){Pn.totalNodes++,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 $E(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function WE(e){e.clearSnapshot()}function Zf(e){e.clearMeasurements()}function HE(e){e.isLayoutDirty=!1}function GE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KE(e){e.resolveTargetDelta()}function YE(e){e.calcProjection()}function QE(e){e.resetRotation()}function XE(e){e.removeLeadSnapshot()}function Jf(e,t,n){e.translate=ae(t.translate,0,n),e.scale=ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ep(e,t,n,r){e.min=ae(t.min,n.min,r),e.max=ae(t.max,n.max,r)}function ZE(e,t,n,r){ep(e.x,t.x,n.x,r),ep(e.y,t.y,n.y,r)}function qE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JE={duration:.45,ease:[.4,0,.1,1]},tp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),np=tp("applewebkit/")&&!tp("chrome/")?Math.round:de;function rp(e){e.min=np(e.min),e.max=np(e.max)}function ej(e){rp(e.x),rp(e.y)}function Yy(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ql(Kf(t),Kf(n),.2)}const tj=Ky({attachResizeListener:(e,t)=>At(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Va={current:void 0},Qy=Ky({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Va.current){const e=new tj({});e.mount(window),e.setOptions({layoutScroll:!0}),Va.current=e}return Va.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nj={pan:{Feature:vE},drag:{Feature:yE,ProjectionNode:Qy,MeasureLayout:Uy}},rj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function oj(e){const t=rj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Jl(e,t,n=1){const[r,o]=oj(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ry(s)?parseFloat(s):s}else return Ul(o)?Jl(o,t,n+1):o}function ij(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ul(i))return;const s=Jl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ul(i))continue;const s=Jl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const sj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Xy=e=>sj.has(e),aj=e=>Object.keys(e).some(Xy),op=e=>e===Kn||e===I,ip=(e,t)=>parseFloat(e.split(", ")[t]),sp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return ip(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?ip(i[1],e):0}},lj=new Set(["x","y","z"]),uj=Go.filter(e=>!lj.has(e));function cj(e){const t=[];return uj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const br={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:sp(4,13),y:sp(5,14)};br.translateX=br.x;br.translateY=br.y;const dj=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=br[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=br[u](l,i)}),e},fj=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Xy);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Kr(d);const p=t[l];let h;if(ms(p)){const x=p.length,v=p[0]===null?1:0;d=p[v],f=Kr(d);for(let S=v;S=0?window.pageYOffset:null,u=dj(t,e,a);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Bs&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function pj(e,t,n,r){return aj(t)?fj(e,t,n,r):{target:t,transitionEnd:r}}const hj=(e,t,n,r)=>{const o=ij(e,t,r);return t=o.target,r=o.transitionEnd,pj(e,t,n,r)},eu={current:null},Zy={current:!1};function mj(){if(Zy.current=!0,!!Bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eu.current=e.matches;e.addListener(t),t()}else eu.current=!1}function gj(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if($e(i))e.addValue(o,i),xs(r)&&r.add(o);else if($e(s))e.addValue(o,kr(i,{owner:e})),xs(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,kr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const ap=new WeakMap,qy=Object.keys(Io),yj=qy.length,lp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vj=sc.length;class xj{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>J.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=$s(n),this.isVariantNode=Ig(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const p=d[f];a[f]!==void 0&&$e(p)&&(p.set(a[f],!1),xs(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,ap.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Zy.current||mj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:eu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ap.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Gn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&J.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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){n!==this.values.get(t)&&(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=kr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=pc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!$e(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Cc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Jy extends xj{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=IP(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){OP(this,r,s);const a=hj(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function wj(e){return window.getComputedStyle(e)}class Sj extends Jy{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Gn.has(n)){const r=vc(n);return r&&r.default||0}else{const r=wj(t),o=(Bg(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zy(t,n)}build(t,n,r,o){lc(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return fc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Kg(t,n,r,o)}}class Tj extends Jy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gn.has(n)){const r=vc(n);return r&&r.default||0}return n=Yg.has(n)?n:oc(n),t.getAttribute(n)}measureInstanceViewportBox(){return me()}scrapeMotionValuesFromProps(t,n){return Xg(t,n)}build(t,n,r,o){cc(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Qg(t,n,r,o)}mount(t){this.isSVGTag=dc(t.tagName),super.mount(t)}}const Cj=(e,t)=>ac(e)?new Tj(t,{enableHardwareAcceleration:!1}):new Sj(t,{enableHardwareAcceleration:!0}),Pj={layout:{ProjectionNode:Qy,MeasureLayout:Uy}},Ej={...ZP,...yC,...nj,...Pj},_=ET((e,t)=>oC(e,t,Ej,Cj)),jj=Tg("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pe=se.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Jw:"button";return c.jsx(s,{className:Hn(jj({variant:t,size:n,className:e})),ref:i,...o})});pe.displayName="Button";const ev=w.createContext(),Pc=()=>{const e=w.useContext(ev);if(!e)throw new Error("useCart debe ser usado dentro de CartProvider");return e},Nj=({children:e})=>{const[t,n]=w.useState([]);w.useEffect(()=>{const d=localStorage.getItem("yz-cart");d&&n(JSON.parse(d))},[]),w.useEffect(()=>{localStorage.setItem("yz-cart",JSON.stringify(t))},[t]);const r=d=>{n(f=>f.find(h=>h.id===d.id)?(bt({title:"¡Producto actualizado!",description:`Se aumentó la cantidad de ${d.name}`}),f.map(h=>h.id===d.id?{...h,quantity:h.quantity+1}:h)):(bt({title:"¡Producto agregado!",description:`${d.name} se agregó al carrito`}),[...f,{...d,quantity:1}]))},o=d=>{n(f=>f.filter(p=>p.id!==d)),bt({title:"Producto eliminado",description:"El producto se eliminó del carrito"})},u={cartItems:t,addToCart:r,removeFromCart:o,updateQuantity:(d,f)=>{if(f<=0){o(d);return}n(p=>p.map(h=>h.id===d?{...h,quantity:f}:h))},clearCart:()=>{n([]),bt({title:"Carrito vaciado",description:"Se eliminaron todos los productos del carrito"})},getTotalItems:()=>t.reduce((d,f)=>d+f.quantity,0),getTotalPrice:()=>t.reduce((d,f)=>d+f.price*f.quantity,0)};return c.jsx(ev.Provider,{value:u,children:e})},kj=()=>{const[e,t]=w.useState(!1),n=Wo(),{getTotalItems:r}=Pc(),o=[{name:"Inicio",href:"/"},{name:"Productos",href:"/productos"},{name:"Nosotros",href:"/nosotros"},{name:"Contacto",href:"/contacto"}],i=s=>n.pathname===s;return c.jsx("header",{className:"fixed top-0 w-full z-50 glass-effect",children:c.jsxs("nav",{className:"container mx-auto px-4 py-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs(Le,{to:"/",className:"flex items-center space-x-2",children:[c.jsx(_.div,{whileHover:{rotate:360},transition:{duration:.5},className:"w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center",children:c.jsx(fs,{className:"w-6 h-6 text-white"})}),c.jsx("span",{className:"font-orbitron font-bold text-xl gradient-text",children:"YZ MOTOS"})]}),c.jsx("div",{className:"hidden md:flex items-center space-x-8",children:o.map(s=>c.jsxs(Le,{to:s.href,className:`relative px-3 py-2 text-sm font-medium transition-colors ${i(s.href)?"text-blue-400":"text-gray-300 hover:text-white"}`,children:[s.name,i(s.href)&&c.jsx(_.div,{layoutId:"activeTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-blue-400"})]},s.name))}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsx(Le,{to:"/carrito",children:c.jsxs(pe,{variant:"ghost",size:"icon",className:"relative",children:[c.jsx(nc,{className:"w-5 h-5"}),r()>0&&c.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center cart-badge",children:r()})]})}),c.jsx(pe,{variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>t(!e),children:e?c.jsx(Ng,{className:"w-5 h-5"}):c.jsx(JS,{className:"w-5 h-5"})})]})]}),e&&c.jsx(_.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"md:hidden mt-4 pb-4 border-t border-gray-700",children:c.jsx("div",{className:"flex flex-col space-y-2 pt-4",children:o.map(s=>c.jsx(Le,{to:s.href,className:`px-3 py-2 text-sm font-medium transition-colors ${i(s.href)?"text-blue-400 bg-blue-400/10":"text-gray-300 hover:text-white hover:bg-white/5"} rounded-md`,onClick:()=>t(!1),children:s.name},s.name))})})]})})},bj=()=>c.jsx("footer",{className:"bg-gray-900/50 backdrop-blur-sm border-t border-gray-800",children:c.jsxs("div",{className:"container mx-auto px-4 py-12",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("div",{className:"w-8 h-8 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center",children:c.jsx(fs,{className:"w-5 h-5 text-white"})}),c.jsx("span",{className:"font-orbitron font-bold text-lg gradient-text",children:"YZ MOTOS"})]}),c.jsx("p",{className:"text-gray-400 text-sm",children:"Especialistas en motocross desde 2015. Tu pasión por las motos cross es nuestra misión."}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsx(_.a,{href:"#",whileHover:{scale:1.1},className:"w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center hover:bg-blue-700 transition-colors",children:c.jsx(QS,{className:"w-4 h-4 text-white"})}),c.jsx(_.a,{href:"#",whileHover:{scale:1.1},className:"w-8 h-8 bg-pink-600 rounded-full flex items-center justify-center hover:bg-pink-700 transition-colors",children:c.jsx(qS,{className:"w-4 h-4 text-white"})})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("span",{className:"text-white font-semibold text-lg",children:"Enlaces Rápidos"}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Le,{to:"/",className:"block text-gray-400 hover:text-white transition-colors",children:"Inicio"}),c.jsx(Le,{to:"/productos",className:"block text-gray-400 hover:text-white transition-colors",children:"Productos"}),c.jsx(Le,{to:"/nosotros",className:"block text-gray-400 hover:text-white transition-colors",children:"Nosotros"}),c.jsx(Le,{to:"/contacto",className:"block text-gray-400 hover:text-white transition-colors",children:"Contacto"})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("span",{className:"text-white font-semibold text-lg",children:"Contacto"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-start space-x-3",children:[c.jsx(Bl,{className:"w-5 h-5 text-blue-400 mt-0.5 flex-shrink-0"}),c.jsxs("span",{className:"text-gray-400 text-sm",children:["Lecherías, Estado Anzoátegui",c.jsx("br",{}),"Venezuela"]})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(Vi,{className:"w-5 h-5 text-blue-400 flex-shrink-0"}),c.jsx("span",{className:"text-gray-400 text-sm",children:"+58 424-123-4567"})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(Oi,{className:"w-5 h-5 text-blue-400 flex-shrink-0"}),c.jsx("span",{className:"text-gray-400 text-sm",children:"info@yzmotos.com"})]})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("span",{className:"text-white font-semibold text-lg",children:"Horarios"}),c.jsx("div",{className:"space-y-2",children:c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(Pg,{className:"w-5 h-5 text-blue-400 flex-shrink-0"}),c.jsxs("div",{className:"text-gray-400 text-sm",children:[c.jsx("p",{children:"Lun - Vie: 8:00 AM - 6:00 PM"}),c.jsx("p",{children:"Sáb: 8:00 AM - 4:00 PM"}),c.jsx("p",{children:"Dom: Cerrado"})]})]})})]})]}),c.jsx("div",{className:"border-t border-gray-800 mt-8 pt-8 text-center",children:c.jsx("p",{className:"text-gray-400 text-sm",children:"© 2024 YZ Motos Cross. Todos los derechos reservados. | Lecherías, Anzoátegui, Venezuela"})})]})}),Aj=()=>{const e=[{icon:oT,title:"Garantía Total",description:"Todos nuestros productos cuentan con garantía completa"},{icon:jg,title:"Servicio Técnico",description:"Taller especializado con técnicos certificados"},{icon:sT,title:"Envío Nacional",description:"Enviamos a todo el territorio venezolano"},{icon:Cg,title:"Calidad Premium",description:"Solo trabajamos con las mejores marcas del mercado"}],t=[{name:"Carlos Rodríguez",location:"Barcelona, Anzoátegui",text:"Excelente servicio y productos de calidad. Mi YZ250 nunca había funcionado mejor.",rating:5},{name:"María González",location:"Puerto La Cruz",text:"Atención personalizada y precios justos. Totalmente recomendados.",rating:5},{name:"José Martínez",location:"El Tigre, Anzoátegui",text:"Los mejores en motocross de la región. Profesionales y confiables.",rating:5}];return c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"YZ Motos Cross - Inicio | Especialistas en Motocross Anzoátegui"}),c.jsx("meta",{name:"description",content:"Bienvenido a YZ Motos Cross, tu tienda especializada en motocross en Lecherías, Anzoátegui. Motos, repuestos, accesorios y servicio técnico de calidad."})]}),c.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden hero-pattern",children:[c.jsx("div",{className:"absolute inset-0 bg-black/30"}),c.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:c.jsxs(_.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-4xl mx-auto",children:[c.jsx(_.h1,{className:"text-4xl md:text-6xl lg:text-7xl font-orbitron font-black mb-6",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:1,delay:.2},children:c.jsx("span",{className:"gradient-text",children:"YZ MOTOS CROSS"})}),c.jsx(_.p,{className:"text-xl md:text-2xl text-gray-300 mb-8 max-w-2xl mx-auto",initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.5},children:"¡Bienvenidos a la adrenalina pura! Especialistas en motocross desde 2015 en Lecherías, Anzoátegui"}),c.jsxs(_.div,{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:[c.jsx(Le,{to:"/productos",children:c.jsxs(pe,{size:"lg",className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-8 py-3 text-lg neon-glow",children:["Ver Productos",c.jsx(KS,{className:"ml-2 w-5 h-5"})]})}),c.jsx(Le,{to:"/contacto",children:c.jsx(pe,{variant:"outline",size:"lg",className:"border-white/30 text-white hover:bg-white/10 px-8 py-3 text-lg",children:"Contáctanos"})})]})]})}),c.jsx("div",{className:"absolute top-20 left-10 floating",children:c.jsx("div",{className:"w-20 h-20 bg-blue-500/20 rounded-full blur-xl"})}),c.jsx("div",{className:"absolute bottom-20 right-10 floating",style:{animationDelay:"2s"},children:c.jsx("div",{className:"w-32 h-32 bg-purple-500/20 rounded-full blur-xl"})})]}),c.jsx("section",{className:"py-20 bg-gray-900/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-4 gradient-text",children:"¿Por Qué Elegirnos?"}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Somos más que una tienda, somos tu aliado en el mundo del motocross"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((n,r)=>c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},className:"glass-effect rounded-xl p-6 text-center hover:scale-105 transition-transform",children:[c.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx(n.icon,{className:"w-8 h-8 text-white"})}),c.jsx("h3",{className:"text-xl font-semibold mb-2 text-white",children:n.title}),c.jsx("p",{className:"text-gray-400",children:n.description})]},r))})]})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[c.jsxs(_.div,{initial:{opacity:0,scale:.5},whileInView:{opacity:1,scale:1},transition:{duration:.6},className:"glass-effect rounded-xl p-8",children:[c.jsx("div",{className:"text-4xl font-orbitron font-bold gradient-text mb-2",children:"500+"}),c.jsx("p",{className:"text-gray-400",children:"Clientes Satisfechos"})]}),c.jsxs(_.div,{initial:{opacity:0,scale:.5},whileInView:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"glass-effect rounded-xl p-8",children:[c.jsx("div",{className:"text-4xl font-orbitron font-bold gradient-text mb-2",children:"9+"}),c.jsx("p",{className:"text-gray-400",children:"Años de Experiencia"})]}),c.jsxs(_.div,{initial:{opacity:0,scale:.5},whileInView:{opacity:1,scale:1},transition:{duration:.6,delay:.4},className:"glass-effect rounded-xl p-8",children:[c.jsx("div",{className:"text-4xl font-orbitron font-bold gradient-text mb-2",children:"1000+"}),c.jsx("p",{className:"text-gray-400",children:"Productos Vendidos"})]})]})})}),c.jsx("section",{className:"py-20 bg-gray-900/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-4 gradient-text",children:"Lo Que Dicen Nuestros Clientes"}),c.jsx("p",{className:"text-gray-400 text-lg",children:"La satisfacción de nuestros clientes es nuestra mejor carta de presentación"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map((n,r)=>c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.2},className:"glass-effect rounded-xl p-6",children:[c.jsx("div",{className:"flex mb-4",children:[...Array(n.rating)].map((o,i)=>c.jsx(Eg,{className:"w-5 h-5 text-yellow-400 fill-current"},i))}),c.jsxs("p",{className:"text-gray-300 mb-4 italic",children:['"',n.text,'"']}),c.jsxs("div",{children:[c.jsx("p",{className:"font-semibold text-white",children:n.name}),c.jsx("p",{className:"text-sm text-gray-400",children:n.location})]})]},r))})]})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4 text-center",children:c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl mx-auto glass-effect rounded-2xl p-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-6 gradient-text",children:"¿Listo para la Aventura?"}),c.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Visítanos en Lecherías, Anzoátegui y descubre todo lo que tenemos para ti"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsx(Le,{to:"/productos",children:c.jsx(pe,{size:"lg",className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-8 py-3 text-lg neon-glow",children:"Explorar Productos"})}),c.jsx(Le,{to:"/contacto",children:c.jsx(pe,{variant:"outline",size:"lg",className:"border-white/30 text-white hover:bg-white/10 px-8 py-3 text-lg",children:"Ubicación y Contacto"})})]})]})})})]})},Rj=()=>{const{addToCart:e}=Pc(),[t,n]=w.useState("todos"),r=[{id:"todos",name:"Todos los Productos"},{id:"motos",name:"Motos Cross"},{id:"repuestos",name:"Repuestos"},{id:"accesorios",name:"Accesorios"},{id:"equipos",name:"Equipos de Protección"}],o=[{id:1,name:"Yamaha YZ250F 2024",category:"motos",price:45e3,originalPrice:48e3,image:"Yamaha YZ250F motocross bike in blue and white colors",rating:5,reviews:12,description:"Moto de motocross profesional con motor de 4 tiempos, suspensión ajustable y tecnología de punta."},{id:2,name:"Kit de Pistones YZ250",category:"repuestos",price:850,originalPrice:950,image:"High-performance piston kit for motorcycle engine",rating:5,reviews:8,description:"Kit completo de pistones de alta calidad para motores YZ250. Incluye anillos y pines."},{id:3,name:"Casco Fox V1 Przm",category:"equipos",price:320,originalPrice:380,image:"Fox V1 motocross helmet in orange and black design",rating:4,reviews:15,description:"Casco de motocross con certificación DOT y ECE. Ventilación optimizada y ajuste cómodo."},{id:4,name:"Filtro de Aire K&N",category:"repuestos",price:125,originalPrice:150,image:"K&N high-flow air filter for motorcycle",rating:5,reviews:20,description:"Filtro de aire de alto flujo, lavable y reutilizable. Mejora el rendimiento del motor."},{id:5,name:"Botas Alpinestars Tech 7",category:"equipos",price:680,originalPrice:750,image:"Alpinestars Tech 7 motocross boots in white and blue",rating:5,reviews:18,description:"Botas profesionales de motocross con protección integral y sistema de cierre microajustable."},{id:6,name:"Manillar Pro Taper",category:"accesorios",price:180,originalPrice:220,image:"Pro Taper handlebar for motocross bike",rating:4,reviews:10,description:"Manillar de aluminio 7075-T6 con curva ergonómica para máximo control y comodidad."},{id:7,name:"Kawasaki KX450F 2024",category:"motos",price:42e3,originalPrice:45e3,image:"Kawasaki KX450F motocross bike in green and black colors",rating:5,reviews:9,description:"Potente moto de 450cc con chasis de aluminio y suspensión Showa de alta gama."},{id:8,name:"Guantes Fox Dirtpaw",category:"equipos",price:85,originalPrice:100,image:"Fox Dirtpaw motocross gloves in black and orange",rating:4,reviews:25,description:"Guantes de motocross con palma sintética y dedos táctiles para smartphone."}],i=t==="todos"?o:o.filter(l=>l.category===t),s=l=>new Intl.NumberFormat("es-VE",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(l),a=l=>{e(l)};return c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"Productos - YZ Motos Cross | Motos, Repuestos y Accesorios"}),c.jsx("meta",{name:"description",content:"Descubre nuestra amplia gama de motos cross, repuestos, accesorios y equipos de protección. Precios competitivos y calidad garantizada en Anzoátegui."})]}),c.jsx("div",{className:"min-h-screen pt-24 pb-12",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-12",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-orbitron font-bold mb-4 gradient-text",children:"Nuestros Productos"}),c.jsx("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto",children:"Descubre nuestra selección de motos, repuestos y accesorios de las mejores marcas"})]}),c.jsx(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"flex flex-wrap justify-center gap-4 mb-12",children:r.map(l=>c.jsxs(pe,{variant:t===l.id?"default":"outline",onClick:()=>n(l.id),className:`${t===l.id?"bg-gradient-to-r from-blue-600 to-purple-600 text-white":"border-white/30 text-white hover:bg-white/10"}`,children:[c.jsx(XS,{className:"w-4 h-4 mr-2"}),l.name]},l.id))}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8",children:i.map((l,u)=>c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:u*.1},className:"glass-effect rounded-xl overflow-hidden hover:scale-105 transition-transform group",children:[c.jsxs("div",{className:"relative overflow-hidden",children:[c.jsx("img",{className:"w-full h-48 object-cover group-hover:scale-110 transition-transform duration-300",alt:l.name,src:"https://images.unsplash.com/photo-1635865165118-917ed9e20936"}),l.originalPrice>l.price&&c.jsxs("div",{className:"absolute top-4 left-4 bg-red-500 text-white px-2 py-1 rounded-full text-sm font-semibold",children:["-",Math.round((l.originalPrice-l.price)/l.originalPrice*100),"%"]})]}),c.jsxs("div",{className:"p-6",children:[c.jsx("h3",{className:"text-lg font-semibold text-white mb-2 line-clamp-2",children:l.name}),c.jsxs("div",{className:"flex items-center mb-2",children:[c.jsx("div",{className:"flex",children:[...Array(5)].map((d,f)=>c.jsx(Eg,{className:`w-4 h-4 ${fl.price&&c.jsx("span",{className:"text-sm text-gray-400 line-through ml-2",children:s(l.originalPrice)})]})}),c.jsxs(pe,{onClick:()=>a(l),className:"w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white",children:[c.jsx(nc,{className:"w-4 h-4 mr-2"}),"Agregar al Carrito"]})]})]},l.id))}),i.length===0&&c.jsx(_.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center py-12",children:c.jsx("p",{className:"text-gray-400 text-lg",children:"No se encontraron productos en esta categoría."})})]})})]})},Mj=()=>{const e=[{icon:ZS,title:"Pasión",description:"Vivimos y respiramos motocross. Es más que un negocio, es nuestra pasión."},{icon:Cg,title:"Calidad",description:"Solo ofrecemos productos de las mejores marcas con garantía total."},{icon:aT,title:"Comunidad",description:"Somos parte de la familia del motocross venezolano."},{icon:jg,title:"Experiencia",description:"Más de 9 años brindando el mejor servicio técnico especializado."}],t=[{name:"Carlos Mendoza",position:"Fundador y Gerente General",image:"Professional motorcycle mechanic in workshop with tools",description:"Piloto profesional con más de 15 años de experiencia en motocross."},{name:"Luis Rodríguez",position:"Jefe de Taller",image:"Expert motorcycle technician working on motocross bike",description:"Técnico certificado especializado en motores de 2 y 4 tiempos."},{name:"Ana Martínez",position:"Atención al Cliente",image:"Friendly customer service representative in motorcycle store",description:"Especialista en atención al cliente y asesoría técnica."}];return c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"Nosotros - YZ Motos Cross | Quiénes Somos"}),c.jsx("meta",{name:"description",content:"Conoce la historia de YZ Motos Cross, empresa especializada en motocross desde 2015 en Lecherías, Anzoátegui. Pasión, calidad y experiencia al servicio del motocross."})]}),c.jsxs("div",{className:"min-h-screen pt-24 pb-12",children:[c.jsx("section",{className:"py-20 hero-pattern",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-orbitron font-bold mb-6 gradient-text",children:"Quiénes Somos"}),c.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Somos YZ Motos Cross, una empresa venezolana dedicada al mundo del motocross desde 2015"})]})})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[c.jsxs(_.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-6 gradient-text",children:"Nuestra Historia"}),c.jsxs("div",{className:"space-y-4 text-gray-300",children:[c.jsx("p",{children:"Fundada en 2015 en Lecherías, Estado Anzoátegui, YZ Motos Cross nació de la pasión por el motocross y el deseo de brindar a los pilotos venezolanos acceso a productos y servicios de la más alta calidad."}),c.jsx("p",{children:"Comenzamos como un pequeño taller especializado y hemos crecido hasta convertirnos en una de las tiendas de motocross más reconocidas de la región oriental del país."}),c.jsx("p",{children:"Nuestro compromiso siempre ha sido el mismo: ofrecer productos auténticos, servicio técnico especializado y asesoría personalizada para cada cliente."})]})]}),c.jsx(_.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8},className:"relative",children:c.jsxs("div",{className:"glass-effect rounded-2xl p-8",children:[c.jsx("img",{className:"w-full h-64 object-cover rounded-xl mb-6",alt:"YZ Motos Cross workshop and store",src:"https://images.unsplash.com/photo-1682531046005-f0d8ec4d7af9"}),c.jsxs("div",{className:"text-center",children:[c.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-2",children:[c.jsx(fs,{className:"w-6 h-6 text-blue-400"}),c.jsx("span",{className:"font-orbitron font-bold text-xl gradient-text",children:"YZ MOTOS CROSS"})]}),c.jsx("p",{className:"text-gray-400",children:"Lecherías, Anzoátegui - Venezuela"})]})]})})]})})}),c.jsx("section",{className:"py-20 bg-gray-900/30",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"glass-effect rounded-xl p-8",children:[c.jsxs("div",{className:"flex items-center mb-6",children:[c.jsx(iT,{className:"w-8 h-8 text-blue-400 mr-3"}),c.jsx("h3",{className:"text-2xl font-orbitron font-bold text-white",children:"Misión"})]}),c.jsx("p",{className:"text-gray-300",children:"Ser el aliado principal de los pilotos de motocross en Venezuela, ofreciendo productos de calidad, servicio técnico especializado y asesoría personalizada para que cada cliente pueda vivir su pasión por el motocross de manera segura y emocionante."})]}),c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"glass-effect rounded-xl p-8",children:[c.jsxs("div",{className:"flex items-center mb-6",children:[c.jsx(fs,{className:"w-8 h-8 text-purple-400 mr-3"}),c.jsx("h3",{className:"text-2xl font-orbitron font-bold text-white",children:"Visión"})]}),c.jsx("p",{className:"text-gray-300",children:"Convertirnos en la empresa líder del motocross en Venezuela, expandiendo nuestra presencia a nivel nacional y siendo reconocidos por nuestra excelencia en productos, servicios y compromiso con la comunidad del motocross."})]})]})})}),c.jsx("section",{className:"py-20",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-4 gradient-text",children:"Nuestros Valores"}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Los principios que guían nuestro trabajo y definen nuestra identidad"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((n,r)=>c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},className:"glass-effect rounded-xl p-6 text-center hover:scale-105 transition-transform",children:[c.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx(n.icon,{className:"w-8 h-8 text-white"})}),c.jsx("h3",{className:"text-xl font-semibold mb-3 text-white",children:n.title}),c.jsx("p",{className:"text-gray-400",children:n.description})]},r))})]})}),c.jsx("section",{className:"py-20 bg-gray-900/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-4 gradient-text",children:"Nuestro Equipo"}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Profesionales apasionados por el motocross, comprometidos con la excelencia"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:t.map((n,r)=>c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.2},className:"glass-effect rounded-xl overflow-hidden hover:scale-105 transition-transform",children:[c.jsx("img",{className:"w-full h-48 object-cover",alt:`${n.name} - ${n.position}`,src:"https://images.unsplash.com/photo-1644424235476-295f24d503d9"}),c.jsxs("div",{className:"p-6",children:[c.jsx("h3",{className:"text-xl font-semibold text-white mb-1",children:n.name}),c.jsx("p",{className:"text-blue-400 mb-3",children:n.position}),c.jsx("p",{className:"text-gray-400 text-sm",children:n.description})]})]},r))})]})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto glass-effect rounded-2xl p-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-6 gradient-text",children:"Nos Encontramos en Anzoátegui"}),c.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Ubicados estratégicamente en Lecherías, Estado Anzoátegui, para servir a toda la región oriental de Venezuela"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-orbitron font-bold gradient-text mb-2",children:"2015"}),c.jsx("p",{className:"text-gray-400",children:"Año de Fundación"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-orbitron font-bold gradient-text mb-2",children:"500+"}),c.jsx("p",{className:"text-gray-400",children:"Clientes Atendidos"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-orbitron font-bold gradient-text mb-2",children:"9+"}),c.jsx("p",{className:"text-gray-400",children:"Años de Experiencia"})]})]})]})})})]})]})},Lj=()=>{const[e,t]=w.useState({name:"",email:"",phone:"",subject:"",message:""}),n=i=>{const{name:s,value:a}=i.target;t(l=>({...l,[s]:a}))},r=i=>{if(i.preventDefault(),!e.name||!e.email||!e.message){bt({title:"Error",description:"Por favor completa todos los campos obligatorios",variant:"destructive"});return}bt({title:"¡Mensaje enviado!",description:"Nos pondremos en contacto contigo pronto. ¡Gracias por escribirnos!"}),t({name:"",email:"",phone:"",subject:"",message:""})},o=[{icon:Bl,title:"Ubicación",details:["Lecherías, Estado Anzoátegui","Venezuela"],color:"text-blue-400"},{icon:Vi,title:"Teléfonos",details:["+58 424-123-4567","+58 416-987-6543"],color:"text-green-400"},{icon:Oi,title:"Email",details:["info@yzmotos.com","ventas@yzmotos.com"],color:"text-purple-400"},{icon:Pg,title:"Horarios",details:["Lun - Vie: 8:00 AM - 6:00 PM","Sáb: 8:00 AM - 4:00 PM","Dom: Cerrado"],color:"text-orange-400"}];return c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"Contacto - YZ Motos Cross | Contáctanos en Anzoátegui"}),c.jsx("meta",{name:"description",content:"Contáctanos en YZ Motos Cross. Ubicados en Lecherías, Anzoátegui. Teléfono, email, horarios y ubicación. ¡Estamos aquí para ayudarte!"})]}),c.jsxs("div",{className:"min-h-screen pt-24 pb-12",children:[c.jsx("section",{className:"py-20 hero-pattern",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-4xl mx-auto",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-orbitron font-bold mb-6 gradient-text",children:"Contáctanos"}),c.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Estamos aquí para ayudarte. Visítanos, llámanos o escríbenos"})]})})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-16",children:o.map((i,s)=>c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:s*.1},className:"glass-effect rounded-xl p-6 text-center hover:scale-105 transition-transform",children:[c.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx(i.icon,{className:"w-8 h-8 text-white"})}),c.jsx("h3",{className:"text-xl font-semibold mb-3 text-white",children:i.title}),c.jsx("div",{className:"space-y-1",children:i.details.map((a,l)=>c.jsx("p",{className:"text-gray-400 text-sm",children:a},l))})]},s))})})}),c.jsx("section",{className:"py-20 bg-gray-900/30",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[c.jsxs(_.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},className:"glass-effect rounded-xl p-8",children:[c.jsxs("div",{className:"flex items-center mb-6",children:[c.jsx(eT,{className:"w-8 h-8 text-blue-400 mr-3"}),c.jsx("h2",{className:"text-2xl font-orbitron font-bold text-white",children:"Envíanos un Mensaje"})]}),c.jsxs("form",{onSubmit:r,className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Nombre *"}),c.jsx("input",{type:"text",name:"name",value:e.name,onChange:n,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Tu nombre completo",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Email *"}),c.jsx("input",{type:"email",name:"email",value:e.email,onChange:n,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"tu@email.com",required:!0})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Teléfono"}),c.jsx("input",{type:"tel",name:"phone",value:e.phone,onChange:n,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"+58 424-123-4567"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Asunto"}),c.jsxs("select",{name:"subject",value:e.subject,onChange:n,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[c.jsx("option",{value:"",children:"Selecciona un asunto"}),c.jsx("option",{value:"consulta-producto",children:"Consulta sobre producto"}),c.jsx("option",{value:"servicio-tecnico",children:"Servicio técnico"}),c.jsx("option",{value:"garantia",children:"Garantía"}),c.jsx("option",{value:"cotizacion",children:"Cotización"}),c.jsx("option",{value:"otro",children:"Otro"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Mensaje *"}),c.jsx("textarea",{name:"message",value:e.message,onChange:n,rows:5,className:"w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Cuéntanos en qué podemos ayudarte...",required:!0})]}),c.jsxs(pe,{type:"submit",className:"w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white py-3 text-lg neon-glow",children:[c.jsx(rT,{className:"w-5 h-5 mr-2"}),"Enviar Mensaje"]})]})]}),c.jsxs(_.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8},className:"space-y-8",children:[c.jsxs("div",{className:"glass-effect rounded-xl p-8",children:[c.jsx("h3",{className:"text-2xl font-orbitron font-bold text-white mb-6",children:"Nuestra Ubicación"}),c.jsx("div",{className:"bg-gray-800 rounded-lg h-64 flex items-center justify-center mb-6",children:c.jsxs("div",{className:"text-center",children:[c.jsx(Bl,{className:"w-12 h-12 text-blue-400 mx-auto mb-4"}),c.jsx("p",{className:"text-gray-400",children:"Mapa de ubicación"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Lecherías, Estado Anzoátegui"})]})}),c.jsxs("div",{className:"space-y-2 text-gray-300",children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Dirección:"})," Lecherías, Estado Anzoátegui, Venezuela"]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Referencia:"})," Cerca del centro comercial principal"]})]})]}),c.jsxs("div",{className:"glass-effect rounded-xl p-8",children:[c.jsx("h3",{className:"text-2xl font-orbitron font-bold text-white mb-6",children:"Contacto Rápido"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:"w-10 h-10 bg-green-500 rounded-full flex items-center justify-center",children:c.jsx(Vi,{className:"w-5 h-5 text-white"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-semibold",children:"Llámanos Ahora"}),c.jsx("p",{className:"text-gray-400",children:"+58 424-123-4567"})]})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:"w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center",children:c.jsx(Oi,{className:"w-5 h-5 text-white"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-semibold",children:"Escríbenos"}),c.jsx("p",{className:"text-gray-400",children:"info@yzmotos.com"})]})]})]})]}),c.jsxs("div",{className:"glass-effect rounded-xl p-8",children:[c.jsx("h3",{className:"text-2xl font-orbitron font-bold text-white mb-6",children:"Horarios de Atención"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-300",children:"Lunes - Viernes"}),c.jsx("span",{className:"text-white font-semibold",children:"8:00 AM - 6:00 PM"})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-300",children:"Sábados"}),c.jsx("span",{className:"text-white font-semibold",children:"8:00 AM - 4:00 PM"})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-300",children:"Domingos"}),c.jsx("span",{className:"text-red-400 font-semibold",children:"Cerrado"})]})]})]})]})]})})}),c.jsx("section",{className:"py-20",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-3xl mx-auto glass-effect rounded-2xl p-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-orbitron font-bold mb-6 gradient-text",children:"¿Tienes Alguna Pregunta?"}),c.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"No dudes en contactarnos. Estamos aquí para ayudarte con todo lo relacionado al motocross"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsxs(pe,{onClick:()=>window.location.href="tel:+584241234567",className:"bg-green-600 hover:bg-green-700 text-white px-8 py-3 text-lg",children:[c.jsx(Vi,{className:"w-5 h-5 mr-2"}),"Llamar Ahora"]}),c.jsxs(pe,{onClick:()=>window.location.href="mailto:info@yzmotos.com",variant:"outline",className:"border-white/30 text-white hover:bg-white/10 px-8 py-3 text-lg",children:[c.jsx(Oi,{className:"w-5 h-5 mr-2"}),"Enviar Email"]})]})]})})})]})]})},Oj=()=>{const{cartItems:e,updateQuantity:t,removeFromCart:n,clearCart:r,getTotalPrice:o}=Pc(),[i,s]=w.useState(!1),[a,l]=w.useState(""),u=h=>new Intl.NumberFormat("es-VE",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(h),d=(h,x)=>{x<1||t(h,x)},f=()=>{if(!a){bt({title:"Selecciona un método de pago",description:"Por favor elige cómo deseas pagar tu pedido",variant:"destructive"});return}bt({title:"🚧 Esta función no está implementada aún—¡pero no te preocupes! ¡Puedes solicitarla en tu próximo prompt! 🚀",description:`Método seleccionado: ${a}. Pronto podrás completar tu compra.`})},p=[{id:"zelle",name:"Zelle",description:"Pago en USD via Zelle"},{id:"paypal",name:"PayPal",description:"Pago seguro con PayPal"},{id:"binance",name:"Binance Pay",description:"Pago con criptomonedas"},{id:"transferencia",name:"Transferencia Bancaria",description:"Banco venezolano en Bolívares"},{id:"efectivo",name:"Efectivo",description:"Pago en tienda física"}];return e.length===0?c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"Carrito de Compras - YZ Motos Cross"}),c.jsx("meta",{name:"description",content:"Tu carrito de compras en YZ Motos Cross. Revisa tus productos y procede al pago."})]}),c.jsx("div",{className:"min-h-screen pt-24 pb-12 flex items-center justify-center",children:c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-md mx-auto",children:[c.jsx("div",{className:"w-24 h-24 bg-gray-700 rounded-full flex items-center justify-center mx-auto mb-6",children:c.jsx(nc,{className:"w-12 h-12 text-gray-400"})}),c.jsx("h1",{className:"text-3xl font-orbitron font-bold mb-4 text-white",children:"Tu carrito está vacío"}),c.jsx("p",{className:"text-gray-400 mb-8",children:"¡Agrega algunos productos increíbles a tu carrito!"}),c.jsx(Le,{to:"/productos",children:c.jsx(pe,{className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-8 py-3",children:"Ver Productos"})})]})})]}):c.jsxs(c.Fragment,{children:[c.jsxs(_t,{children:[c.jsx("title",{children:"Carrito de Compras - YZ Motos Cross"}),c.jsx("meta",{name:"description",content:"Revisa tu carrito de compras y procede al pago. Métodos de pago disponibles para Venezuela."})]}),c.jsx("div",{className:"min-h-screen pt-24 pb-12",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl md:text-4xl font-orbitron font-bold gradient-text",children:"Tu Carrito"}),c.jsxs("p",{className:"text-gray-400 mt-2",children:[e.length," ",e.length===1?"producto":"productos"," en tu carrito"]})]}),c.jsx(Le,{to:"/productos",children:c.jsxs(pe,{variant:"outline",className:"border-white/30 text-white hover:bg-white/10",children:[c.jsx(GS,{className:"w-4 h-4 mr-2"}),"Seguir Comprando"]})})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.map((h,x)=>c.jsxs(_.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.6,delay:x*.1},className:"glass-effect rounded-xl p-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center space-y-4 md:space-y-0 md:space-x-6",children:[c.jsx("img",{className:"w-24 h-24 object-cover rounded-lg flex-shrink-0",alt:h.name,src:"https://images.unsplash.com/photo-1595872018818-97555653a011"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h3",{className:"text-lg font-semibold text-white mb-2 truncate",children:h.name}),c.jsx("p",{className:"text-2xl font-bold text-blue-400",children:u(h.price)})]}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(pe,{variant:"outline",size:"icon",onClick:()=>d(h.id,h.quantity-1),className:"w-8 h-8 border-white/30 text-white hover:bg-white/10",children:c.jsx(tT,{className:"w-4 h-4"})}),c.jsx("span",{className:"w-12 text-center text-white font-semibold",children:h.quantity}),c.jsx(pe,{variant:"outline",size:"icon",onClick:()=>d(h.id,h.quantity+1),className:"w-8 h-8 border-white/30 text-white hover:bg-white/10",children:c.jsx(nT,{className:"w-4 h-4"})})]}),c.jsx(pe,{variant:"outline",size:"icon",onClick:()=>n(h.id),className:"w-8 h-8 border-red-500/30 text-red-400 hover:bg-red-500/10",children:c.jsx(rf,{className:"w-4 h-4"})})]})]}),c.jsxs("div",{className:"mt-4 pt-4 border-t border-white/10 flex justify-between items-center",children:[c.jsx("span",{className:"text-gray-400",children:"Subtotal:"}),c.jsx("span",{className:"text-xl font-bold text-white",children:u(h.price*h.quantity)})]})]},h.id)),c.jsx(_.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.3},className:"text-center",children:c.jsxs(pe,{variant:"outline",onClick:r,className:"border-red-500/30 text-red-400 hover:bg-red-500/10",children:[c.jsx(rf,{className:"w-4 h-4 mr-2"}),"Vaciar Carrito"]})})]}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs(_.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.8},className:"glass-effect rounded-xl p-6",children:[c.jsx("h2",{className:"text-2xl font-orbitron font-bold text-white mb-6",children:"Resumen del Pedido"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-400",children:"Subtotal:"}),c.jsx("span",{className:"text-white",children:u(o())})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-400",children:"Envío:"}),c.jsx("span",{className:"text-green-400",children:"Gratis"})]}),c.jsx("div",{className:"border-t border-white/10 pt-4",children:c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-xl font-semibold text-white",children:"Total:"}),c.jsx("span",{className:"text-2xl font-bold gradient-text",children:u(o())})]})})]}),c.jsxs(pe,{onClick:()=>s(!i),className:"w-full mt-6 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white py-3 text-lg neon-glow",children:[c.jsx(YS,{className:"w-5 h-5 mr-2"}),"Proceder al Pago"]})]}),i&&c.jsxs(_.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"glass-effect rounded-xl p-6",children:[c.jsx("h3",{className:"text-xl font-orbitron font-bold text-white mb-6",children:"Métodos de Pago"}),c.jsx("div",{className:"space-y-3",children:p.map(h=>c.jsxs("label",{className:`flex items-center p-4 rounded-lg border cursor-pointer transition-colors ${a===h.id?"border-blue-500 bg-blue-500/10":"border-white/20 hover:border-white/40"}`,children:[c.jsx("input",{type:"radio",name:"paymentMethod",value:h.id,checked:a===h.id,onChange:x=>l(x.target.value),className:"sr-only"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"font-semibold text-white",children:h.name}),c.jsx("div",{className:"text-sm text-gray-400",children:h.description})]}),c.jsx("div",{className:`w-4 h-4 rounded-full border-2 ${a===h.id?"border-blue-500 bg-blue-500":"border-gray-400"}`,children:a===h.id&&c.jsx("div",{className:"w-full h-full rounded-full bg-white scale-50"})})]},h.id))}),c.jsx(pe,{onClick:f,className:"w-full mt-6 bg-green-600 hover:bg-green-700 text-white py-3 text-lg",children:"Confirmar Pedido"})]}),c.jsxs(_.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},className:"glass-effect rounded-xl p-6",children:[c.jsx("h3",{className:"text-xl font-orbitron font-bold text-white mb-4",children:"¿Necesitas Ayuda?"}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("p",{className:"text-gray-400",children:[c.jsx("strong",{className:"text-white",children:"Teléfono:"})," +58 424-123-4567"]}),c.jsxs("p",{className:"text-gray-400",children:[c.jsx("strong",{className:"text-white",children:"Email:"})," ventas@yzmotos.com"]}),c.jsxs("p",{className:"text-gray-400",children:[c.jsx("strong",{className:"text-white",children:"Ubicación:"})," Lecherías, Anzoátegui"]})]}),c.jsx(Le,{to:"/contacto",children:c.jsx(pe,{variant:"outline",className:"w-full mt-4 border-white/30 text-white hover:bg-white/10",children:"Contáctanos"})})]})]})]})]})})]})};function Vj(){return c.jsx(Nj,{children:c.jsx(j1,{children:c.jsxs("div",{className:"min-h-screen flex flex-col",children:[c.jsxs(_t,{children:[c.jsx("title",{children:"YZ Motos Cross - Especialistas en Motocross | Anzoátegui, Venezuela"}),c.jsx("meta",{name:"description",content:"YZ Motos Cross - Tu tienda especializada en motocross en Lecherías, Anzoátegui. Motos, repuestos, accesorios y servicio técnico especializado. ¡Vive la adrenalina del motocross!"}),c.jsx("meta",{name:"keywords",content:"motocross, motos cross, YZ, Yamaha, repuestos, accesorios, Lecherías, Anzoátegui, Venezuela"}),c.jsx("meta",{name:"author",content:"YZ Motos Cross"}),c.jsx("meta",{property:"og:title",content:"YZ Motos Cross - Especialistas en Motocross"}),c.jsx("meta",{property:"og:description",content:"Tu tienda especializada en motocross en Lecherías, Anzoátegui. Motos, repuestos y accesorios de calidad."}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("link",{rel:"canonical",href:"https://yzmotos.com"})]}),c.jsx(kj,{}),c.jsx("main",{className:"flex-1",children:c.jsxs(x1,{children:[c.jsx(Zn,{path:"/",element:c.jsx(Aj,{})}),c.jsx(Zn,{path:"/productos",element:c.jsx(Rj,{})}),c.jsx(Zn,{path:"/nosotros",element:c.jsx(Mj,{})}),c.jsx(Zn,{path:"/contacto",element:c.jsx(Lj,{})}),c.jsx(Zn,{path:"/carrito",element:c.jsx(Oj,{})})]})}),c.jsx(bj,{}),c.jsx(hT,{})]})})})}Ia.createRoot(document.getElementById("root")).render(c.jsx(se.StrictMode,{children:c.jsx(Vj,{})}));