function Py(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 Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},cs={},Gf={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 Mo=Symbol.for("react.element"),Ey=Symbol.for("react.portal"),ky=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),jy=Symbol.for("react.profiler"),by=Symbol.for("react.provider"),Ay=Symbol.for("react.context"),Ry=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Ly=Symbol.for("react.memo"),Oy=Symbol.for("react.lazy"),mc=Symbol.iterator;function Vy(e){return e===null||typeof e!="object"?null:(e=mc&&e[mc]||e["@@iterator"],typeof e=="function"?e:null)}var Kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yf=Object.assign,Qf={};function Cr(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Kf}Cr.prototype.isReactComponent={};Cr.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")};Cr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xf(){}Xf.prototype=Cr.prototype;function $l(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Kf}var Hl=$l.prototype=new Xf;Hl.constructor=$l;Yf(Hl,Cr.prototype);Hl.isPureReactComponent=!0;var gc=Array.isArray,qf=Object.prototype.hasOwnProperty,Wl={current:null},Zf={key:!0,ref:!0,__self:!0,__source:!0};function Jf(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)qf.call(t,r)&&!Zf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,$=j[O];if(0>>1;Oo(Bn,D))He<$&&0>o(pn,Bn)?(j[O]=pn,j[He]=D,O=He):(j[O]=Bn,j[$e]=D,O=$e);else if(He<$&&0>o(pn,D))j[O]=pn,j[He]=D,O=He;else break e}}return L}function o(j,L){var D=j.sortIndex-L.sortIndex;return D!==0?D:j.id-L.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=[],c=1,d=null,f=3,m=!1,x=!1,v=!1,T=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=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(j){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=j)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(j){if(v=!1,g(j),!x)if(n(l)!==null)x=!0,U(C);else{var L=n(u);L!==null&&de(S,L.startTime-j)}}function C(j,L){x=!1,v&&(v=!1,y(k),k=-1),m=!0;var D=f;try{for(g(L),d=n(l);d!==null&&(!(d.expirationTime>L)||j&&!G());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var $=O(d.expirationTime<=L);L=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),g(L)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var $e=n(u);$e!==null&&de(S,$e.startTime-L),Y=!1}return Y}finally{d=null,f=D,m=!1}}var E=!1,P=null,k=-1,A=5,R=-1;function G(){return!(e.unstable_now()-Rj||125O?(j.sortIndex=D,t(u,j),n(l)===null&&j===n(u)&&(v?(y(k),k=-1):v=!0,de(S,D-O))):(j.sortIndex=$,t(l,j),x||m||(x=!0,U(C))),j},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(j){var L=f;return function(){var D=f;f=L;try{return j.apply(this,arguments)}finally{f=D}}}})(op);rp.exports=op;var Ky=rp.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 Yy=w,Qe=Ky;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"),ka=Object.prototype.hasOwnProperty,Qy=/^[: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]*$/,vc={},xc={};function Xy(e){return ka.call(xc,e)?!0:ka.call(vc,e)?!1:Qy.test(e)?xc[e]=!0:(vc[e]=!0,!1)}function qy(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 Zy(e,t,n,r){if(t===null||typeof t>"u"||qy(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 Ve(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 Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Ve(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){Ce[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kl=/[\-:]([a-z])/g;function Yl(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(Kl,Yl);Ce[t]=new Ve(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(Kl,Yl);Ce[t]=new Ve(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(Kl,Yl);Ce[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ql(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[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{Fs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Jy(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("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 Aa(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 Wn:return"Fragment";case Hn:return"Portal";case Na:return"Profiler";case Xl:return"StrictMode";case ja:return"Suspense";case ba:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ap:return(e.displayName||"Context")+".Consumer";case sp:return(e._context.displayName||"Context")+".Provider";case ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zl:return t=e.displayName||null,t!==null?t:Aa(e.type)||"Memo";case Bt:t=e._payload,e=e._init;try{return Aa(e(t))}catch{}}return null}function ev(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 Aa(t);case 8:return t===Xl?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function up(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tv(e){var t=up(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 Go(e){e._valueTracker||(e._valueTracker=tv(e))}function cp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=up(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bi(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 Ra(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(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 dp(e,t){t=t.checked,t!=null&&Ql(e,"checked",t,!1)}function Ma(e,t){dp(e,t);var n=on(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")?La(e,t.type,n):t.hasOwnProperty("defaultValue")&&La(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(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 La(e,t,n){(t!=="number"||bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Br=Array.isArray;function sr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={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},nv=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){nv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function mp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function gp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rv=le({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 Ia(e,t){if(t){if(rv[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 Da(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 _a=null;function Jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fa=null,ar=null,lr=null;function Ec(e){if(e=Vo(e)){if(typeof Fa!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ms(t),Fa(e.stateNode,e.type,t))}}function yp(e){ar?lr?lr.push(e):lr=[e]:ar=e}function vp(){if(ar){var e=ar,t=lr;if(lr=ar=null,Ec(e),t)for(e=0;e>>=0,e===0?32:31-(hv(e)/mv|0)|0}var Yo=64,Qo=4194304;function Ur(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 Li(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=Ur(a):(i&=s,i!==0&&(r=Ur(i)))}else s=n&~o,s!==0?r=Ur(s):i!==0&&(r=Ur(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 Lo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function 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=Kr),Oc=String.fromCharCode(32),Vc=!1;function _p(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gn=!1;function Qv(e,t){switch(e){case"compositionend":return Fp(t);case"keypress":return t.which!==32?null:(Vc=!0,Oc);case"textInput":return e=t.data,e===Oc&&Vc?null:e;default:return null}}function Xv(e,t){if(Gn)return e==="compositionend"||!au&&_p(e,t)?(e=Ip(),yi=ou=Gt=null,Gn=!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=Fc(n)}}function $p(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$p(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hp(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bi(e.document)}return t}function lu(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=Hp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$p(n.ownerDocument.documentElement,n)){if(r!==null&&lu(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=zc(n,i);var s=zc(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,Kn=null,Wa=null,Qr=null,Ga=!1;function Bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ga||Kn==null||Kn!==bi(r)||(r=Kn,"selectionStart"in r&&lu(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}),Qr&&po(Qr,r)||(Qr=r,r=Ii(Wa,"onSelect"),0Xn||(e.current=Za[Xn],Za[Xn]=null,Xn--)}function Q(e,t){Xn++,Za[Xn]=e.current,e.current=t}var sn={},je=cn(sn),Fe=cn(!1),bn=sn;function hr(e,t){var n=e.type.contextTypes;if(!n)return sn;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 ze(e){return e=e.childContextTypes,e!=null}function _i(){J(Fe),J(je)}function Yc(e,t,n){if(je.current!==sn)throw Error(N(168));Q(je,t),Q(Fe,n)}function Jp(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,ev(e)||"Unknown",o));return le({},n,r)}function Fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,bn=je.current,Q(je,e),Q(Fe,Fe.current),!0}function Qc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Jp(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,J(Fe),J(je),Q(je,e)):J(Fe),Q(Fe,n)}var Et=null,gs=!1,ea=!1;function eh(e){Et===null?Et=[e]:Et.push(e)}function y0(e){gs=!0,eh(e)}function dn(){if(!ea&&Et!==null){ea=!0;var e=0,t=K;try{var n=Et;for(K=1;e>=s,o-=s,kt=1<<32-pt(t)+o|n<k?(A=P,P=null):A=P.sibling;var R=f(y,P,g[k],S);if(R===null){P===null&&(P=A);break}e&&P&&R.alternate===null&&t(y,P),h=i(R,h,k),E===null?C=R:E.sibling=R,E=R,P=A}if(k===g.length)return n(y,P),re&&gn(y,k),C;if(P===null){for(;kk?(A=P,P=null):A=P.sibling;var G=f(y,P,R.value,S);if(G===null){P===null&&(P=A);break}e&&P&&G.alternate===null&&t(y,P),h=i(G,h,k),E===null?C=G:E.sibling=G,E=G,P=A}if(R.done)return n(y,P),re&&gn(y,k),C;if(P===null){for(;!R.done;k++,R=g.next())R=d(y,R.value,S),R!==null&&(h=i(R,h,k),E===null?C=R:E.sibling=R,E=R);return re&&gn(y,k),C}for(P=r(y,P);!R.done;k++,R=g.next())R=m(P,y,k,R.value,S),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?k:R.key),h=i(R,h,k),E===null?C=R:E.sibling=R,E=R);return e&&P.forEach(function(V){return t(y,V)}),re&&gn(y,k),C}function T(y,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Wn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Wo:e:{for(var C=g.key,E=h;E!==null;){if(E.key===C){if(C=g.type,C===Wn){if(E.tag===7){n(y,E.sibling),h=o(E,g.props.children),h.return=y,y=h;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Bt&&Zc(C)===E.type){n(y,E.sibling),h=o(E,g.props),h.ref=Rr(y,E,g),h.return=y,y=h;break e}n(y,E);break}else t(y,E);E=E.sibling}g.type===Wn?(h=Nn(g.props.children,y.mode,S,g.key),h.return=y,y=h):(S=Ei(g.type,g.key,g.props,null,y.mode,S),S.ref=Rr(y,h,g),S.return=y,y=S)}return s(y);case Hn:e:{for(E=g.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(y,h.sibling),h=o(h,g.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=la(g,y.mode,S),h.return=y,y=h}return s(y);case Bt:return E=g._init,T(y,h,E(g._payload),S)}if(Br(g))return x(y,h,g,S);if(kr(g))return v(y,h,g,S);ni(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(y,h.sibling),h=o(h,g),h.return=y,y=h):(n(y,h),h=aa(g,y.mode,S),h.return=y,y=h),s(y)):n(y,h)}return T}var gr=oh(!0),ih=oh(!1),Ui=cn(null),$i=null,Jn=null,fu=null;function pu(){fu=Jn=$i=null}function hu(e){var t=Ui.current;J(Ui),e._currentValue=t}function tl(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 cr(e,t){$i=e,fu=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if($i===null)throw Error(N(308));Jn=e,$i.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var Tn=null;function mu(e){Tn===null?Tn=[e]:Tn.push(e)}function sh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ot(e,r)}function Ot(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 Ut=!1;function gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ah(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 bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ot(e,n)}return o=r.interleaved,o===null?(t.next=t,mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ot(e,n)}function xi(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,tu(e,n)}}function Jc(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 Hi(e,t,n,r){var o=e.updateQueue;Ut=!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 c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,m=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(f=t,m=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){d=x.call(m,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,f=typeof x=="function"?x.call(m,d,f):x,f==null)break e;d=le({},d,f);break e;case 2:Ut=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,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);Mn|=s,e.lanes=s,e.memoizedState=d}}function ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{K=n,na.transition=r}}function Ph(){return st().memoizedState}function S0(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eh(e))kh(t,n);else if(n=sh(e,t,n,r),n!==null){var o=Le();ht(n,e,r,o),Nh(n,t,r)}}function T0(e,t,n){var r=en(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eh(e))kh(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,mt(a,s)){var l=t.interleaved;l===null?(o.next=o,mu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=sh(e,t,o,r),n!==null&&(o=Le(),ht(n,e,r,o),Nh(n,t,r))}}function Eh(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function kh(e,t){Xr=Gi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tu(e,n)}}var Ki={readContext:it,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},C0={readContext:it,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Si(4194308,4,xh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){return Si(4,2,e,t)},useMemo:function(e,t){var n=yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=S0.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:td,useDebugValue:Pu,useDeferredValue:function(e){return yt().memoizedState=e},useTransition:function(){var e=td(!1),t=e[0];return e=w0.bind(null,e[1]),yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,o=yt();if(re){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),we===null)throw Error(N(349));Rn&30||dh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nd(ph.bind(null,r,i,e),[e]),r.flags|=2048,So(9,fh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=yt(),t=we.identifierPrefix;if(re){var n=Nt,r=kt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xo++,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[vt]=t,e[go]=r,Dh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Da(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;o<$r.length;o++)Z($r[o],e);o=r;break;case"source":Z("error",e),o=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),o=r;break;case"details":Z("toggle",e),o=r;break;case"input":Sc(e,r),o=Ra(e,r),Z("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=le({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Cc(e,r),o=Oa(e,r),Z("invalid",e);break;default:o=r}Ia(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?gp(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&hp(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&so(e,l):typeof l=="number"&&so(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(io.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Z("scroll",e):l!=null&&Ql(e,i,l,s))}switch(n){case"input":Go(e),Tc(e,r,!1);break;case"textarea":Go(e),Pc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?sr(e,!!r.multiple,i,!1):r.defaultValue!=null&&sr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Di)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ee(t),null;case 6:if(e&&t.stateNode!=null)Fh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Cn(vo.current),Cn(wt.current),ti(t)){if(r=t.stateNode,n=t.memoizedProps,r[vt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:ei(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ei(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vt]=t,t.stateNode=r}return Ee(t),null;case 13:if(J(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&Ke!==null&&t.mode&1&&!(t.flags&128))rh(),mr(),t.flags|=98560,i=!1;else if(i=ti(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[vt]=t}else mr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),i=!1}else dt!==null&&(yl(dt),dt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?ve===0&&(ve=3):Ru())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return yr(),ul(e,t),e===null&&ho(t.stateNode.containerInfo),Ee(t),null;case 10:return hu(t.type._context),Ee(t),null;case 17:return ze(t.type)&&_i(),Ee(t),null;case 19:if(J(ie),i=t.memoizedState,i===null)return Ee(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Mr(i,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Wi(e),s!==null){for(t.flags|=128,Mr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&fe()>xr&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Wi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!re)return Ee(t),null}else 2*fe()-i.renderingStartTime>xr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(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=fe(),t.sibling=null,n=ie.current,Q(ie,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Au(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function R0(e,t){switch(cu(t),t.tag){case 1:return ze(t.type)&&_i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yr(),J(Fe),J(je),xu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vu(t),null;case 13:if(J(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(ie),null;case 4:return yr(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Au(),null;case 24:return null;default:return null}}var oi=!1,Ne=!1,M0=typeof WeakSet=="function"?WeakSet:Set,b=null;function er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function cl(e,t,n){try{n()}catch(r){ue(e,t,r)}}var pd=!1;function L0(e,t){if(Ka=Oi,e=Hp(),lu(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,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ya={focusedElem:e,selectionRange:n},Oi=!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,T=x.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ut(t.type,v),T);y.__reactInternalSnapshotBeforeUpdate=h}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(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return x=pd,pd=!1,x}function qr(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&&cl(t,n,i)}o=o.next}while(o!==r)}}function xs(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 dl(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 zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vt],delete t[go],delete t[qa],delete t[m0],delete t[g0])),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 Bh(e){return e.tag===5||e.tag===3||e.tag===4}function hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bh(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 fl(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=Di));else if(r!==4&&(e=e.child,e!==null))for(fl(e,t,n),e=e.sibling;e!==null;)fl(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 Se=null,ct=!1;function _t(e,t,n){for(n=n.child;n!==null;)Uh(e,t,n),n=n.sibling}function Uh(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:Ne||er(n,t);case 6:var r=Se,o=ct;Se=null,_t(e,t,n),Se=r,ct=o,Se!==null&&(ct?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(ct?(e=Se,n=n.stateNode,e.nodeType===8?Js(e.parentNode,n):e.nodeType===1&&Js(e,n),co(e)):Js(Se,n.stateNode));break;case 4:r=Se,o=ct,Se=n.stateNode.containerInfo,ct=!0,_t(e,t,n),Se=r,ct=o;break;case 0:case 11:case 14:case 15:if(!Ne&&(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)&&cl(n,t,s),o=o.next}while(o!==r)}_t(e,t,n);break;case 1:if(!Ne&&(er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}_t(e,t,n);break;case 21:_t(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,_t(e,t,n),Ne=r):_t(e,t,n);break;default:_t(e,t,n)}}function md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new M0),t.forEach(function(r){var o=U0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V0(r/1960))-r,10e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,Xi=0,H&6)throw Error(N(331));var o=H;for(H|=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;lfe()-ju?kn(e,0):Nu|=n),Be(e,t)}function Xh(e,t){t===0&&(e.mode&1?(t=Qo,Qo<<=1,!(Qo&130023424)&&(Qo=4194304)):t=1);var n=Le();e=Ot(e,t),e!==null&&(Lo(e,t,n),Be(e,n))}function B0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xh(e,n)}function U0(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),Xh(e,n)}var qh;qh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,b0(e,t,n);_e=!!(e.flags&131072)}else _e=!1,re&&t.flags&1048576&&th(t,Bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ti(e,t),e=t.pendingProps;var o=hr(t,je.current);cr(t,n),o=Su(null,t,r,e,o,n);var i=Tu();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,ze(r)?(i=!0,Fi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gu(t),o.updater=vs,t.stateNode=o,o._reactInternals=t,rl(t,r,e,n),t=sl(null,t,r,!0,i,n)):(t.tag=0,re&&i&&uu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ti(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=H0(r),e=ut(r,e),o){case 0:t=il(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ld(null,t,r,e,n);break e;case 14:t=ud(null,t,r,ut(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:ut(r,o),il(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),cd(e,t,r,o,n);case 3:e:{if(Oh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ah(e,t),Hi(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=vr(Error(N(423)),t),t=dd(e,t,r,n,o);break e}else if(r!==o){o=vr(Error(N(424)),t),t=dd(e,t,r,n,o);break e}else for(Ke=qt(t.stateNode.containerInfo.firstChild),Ye=t,re=!0,dt=null,n=ih(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mr(),r===o){t=Vt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return lh(t),e===null&&el(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Qa(r,o)?s=null:i!==null&&Qa(r,i)&&(t.flags|=32),Lh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&el(t),null;case 13:return Vh(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),ld(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(Ui,r._currentValue),r._currentValue=s,i!==null)if(mt(i.value,s)){if(i.children===o.children&&!Fe.current){t=Vt(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=bt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),tl(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),tl(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,cr(t,n),o=it(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=ut(r,t.pendingProps),o=ut(r.type,o),ud(e,t,r,o,n);case 15:return Rh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Ti(e,t),t.tag=1,ze(r)?(e=!0,Fi(t)):e=!1,cr(t,n),jh(t,r,o),rl(t,r,o,n),sl(null,t,r,!0,e,n);case 19:return Ih(e,t,n);case 22:return Mh(e,t,n)}throw Error(N(156,t.tag))};function Zh(e,t){return Ep(e,t)}function $0(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 rt(e,t,n,r){return new $0(e,t,n,r)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function H0(e){if(typeof e=="function")return Mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ql)return 11;if(e===Zl)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=rt(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 Ei(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Mu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wn:return Nn(n.children,o,i,t);case Xl:s=8,o|=8;break;case Na:return e=rt(12,n,t,o|2),e.elementType=Na,e.lanes=i,e;case ja:return e=rt(13,n,t,o),e.elementType=ja,e.lanes=i,e;case ba:return e=rt(19,n,t,o),e.elementType=ba,e.lanes=i,e;case lp:return Ss(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sp:s=10;break e;case ap:s=9;break e;case ql:s=11;break e;case Zl:s=14;break e;case Bt:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Nn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Ss(e,t,n,r){return e=rt(22,e,r,t),e.elementType=lp,e.lanes=n,e.stateNode={isHidden:!1},e}function aa(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function la(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function W0(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=Us(0),this.expirationTimes=Us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Us(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,o,i,s,a,l){return e=new W0(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gu(i),e}function G0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nm)}catch(e){console.error(e)}}nm(),np.exports=qe;var ks=np.exports;const q0=Tr(ks);var Cd=ks;Ea.createRoot=Cd.createRoot,Ea.hydrateRoot=Cd.hydrateRoot;var rm={exports:{}},Z0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",J0=Z0,ex=J0;function om(){}function im(){}im.resetWarningCache=om;var tx=function(){function e(r,o,i,s,a,l){if(l!==ex){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:im,resetWarningCache:om};return n.PropTypes=n,n};rm.exports=tx();var nx=rm.exports;const te=Tr(nx);function rx(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var sm=w,ox=rx(sm);function Pd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ix(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var sx=!!(typeof window<"u"&&window.document&&window.document.createElement);function ax(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(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){ix(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.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 f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var x=s.indexOf(this);s.splice(x,1),l()},f.render=function(){return ox.createElement(i,this.props)},d}(sm.PureComponent);return Pd(u,"displayName","SideEffect("+r(i)+")"),Pd(u,"canUseDOM",sx),u}}var lx=ax;const ux=Tr(lx);var cx=typeof Element<"u",dx=typeof Map=="function",fx=typeof Set=="function",px=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ki(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(!ki(e[r],t[r]))return!1;return!0}var i;if(dx&&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(!ki(r.value[1],t.get(r.value[0])))return!1;return!0}if(fx&&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(px&&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(cx&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ki(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var hx=function(t,n){try{return ki(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 mx=Tr(hx);/* object-assign (c) Sindre Sorhus @license MIT */var Ed=Object.getOwnPropertySymbols,gx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable;function vx(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function xx(){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 wx=xx()?Object.assign:function(e,t){for(var n,r=vx(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},jx=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},vl=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,"'")},bx=function(t){var n=fr(t,_.TITLE),r=fr(t,Co.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=fr(t,Co.DEFAULT_TITLE);return n||o||void 0},Ax=function(t){return fr(t,Co.ON_CHANGE_CLIENT_STATE)||function(){}},ua=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Ie({},r,o)},{})},Rx=function(t,n){return n.filter(function(r){return typeof r[_.BASE]<"u"}).map(function(r){return r[_.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},Mx=function(t){return{baseTag:Rx([ne.HREF,ne.TARGET],t),bodyAttributes:ua(jn.BODY,t),defer:fr(t,Co.DEFER),encode:fr(t,Co.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ua(jn.HTML,t),linkTags:Or(_.LINK,[ne.REL,ne.HREF],t),metaTags:Or(_.META,[ne.NAME,ne.CHARSET,ne.HTTPEQUIV,ne.PROPERTY,ne.ITEM_PROP],t),noscriptTags:Or(_.NOSCRIPT,[ne.INNER_HTML],t),onChangeClientState:Ax(t),scriptTags:Or(_.SCRIPT,[ne.SRC,ne.INNER_HTML],t),styleTags:Or(_.STYLE,[ne.CSS_TEXT],t),title:bx(t),titleAttributes:ua(jn.TITLE,t)}},xl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){xl(t)},0)}}(),Nd=function(t){return clearTimeout(t)},Lx=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||xl:global.requestAnimationFrame||xl,Ox=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Nd:global.cancelAnimationFrame||Nd,Vx=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Vr=null,Ix=function(t){Vr&&Ox(Vr),t.defer?Vr=Lx(function(){jd(t,function(){Vr=null})}):(jd(t),Vr=null)},jd=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,c=t.scriptTags,d=t.styleTags,f=t.title,m=t.titleAttributes;wl(_.BODY,o),wl(_.HTML,i),Dx(f,m);var x={baseTag:$n(_.BASE,r),linkTags:$n(_.LINK,s),metaTags:$n(_.META,a),noscriptTags:$n(_.NOSCRIPT,l),scriptTags:$n(_.SCRIPT,c),styleTags:$n(_.STYLE,d)},v={},T={};Object.keys(x).forEach(function(y){var h=x[y],g=h.newTags,S=h.oldTags;g.length&&(v[y]=g),S.length&&(T[y]=x[y].oldTags)}),n&&n(),u(t,v,T)},am=function(t){return Array.isArray(t)?t.join(""):t},Dx=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=am(t)),wl(_.TITLE,n)},wl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ft),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(ft):r.getAttribute(ft)!==a.join(",")&&r.setAttribute(ft,a.join(","))}},$n=function(t,n){var r=document.head||document.querySelector(_.HEAD),o=r.querySelectorAll(t+"["+ft+"]"),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 c in l)if(l.hasOwnProperty(c))if(c===ne.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===ne.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(ft,"true"),i.some(function(f,m){return a=m,u.isEqualNode(f)})?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}},lm=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},"")},_x=function(t,n,r,o){var i=lm(r),s=am(n);return i?"<"+t+" "+ft+'="true" '+i+">"+vl(s,o)+"":"<"+t+" "+ft+'="true">'+vl(s,o)+""},Fx=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,c){var d=typeof i[c]>"u"?c:c+'="'+vl(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=Cx.indexOf(t)===-1;return o+"<"+t+" "+ft+'="true" '+s+(l?"/>":">"+a+"")},"")},um=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Ji[o]||o]=t[o],r},n)},zx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Tx[o]||o]=t[o],r},n)},Bx=function(t,n,r){var o,i=(o={key:n},o[ft]=!0,o),s=um(r,i);return[W.createElement(_.TITLE,s,n)]},Ux=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ft]=!0,i);return Object.keys(r).forEach(function(a){var l=Ji[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]}),W.createElement(t,s)})},Ct=function(t,n,r){switch(t){case _.TITLE:return{toComponent:function(){return Bx(t,n.title,n.titleAttributes)},toString:function(){return _x(t,n.title,n.titleAttributes,r)}};case jn.BODY:case jn.HTML:return{toComponent:function(){return um(n)},toString:function(){return lm(n)}};default:return{toComponent:function(){return Ux(t,n)},toString:function(){return Fx(t,n,r)}}}},cm=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,c=t.styleTags,d=t.title,f=d===void 0?"":d,m=t.titleAttributes;return{base:Ct(_.BASE,n,o),bodyAttributes:Ct(jn.BODY,r,o),htmlAttributes:Ct(jn.HTML,i,o),link:Ct(_.LINK,s,o),meta:Ct(_.META,a,o),noscript:Ct(_.NOSCRIPT,l,o),script:Ct(_.SCRIPT,u,o),style:Ct(_.STYLE,c,o),title:Ct(_.TITLE,{title:f,titleAttributes:m},o)}},$x=function(t){var n,r;return r=n=function(o){Nx(i,o);function i(){return Ex(this,i),jx(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!mx(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:l};case _.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,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Ie({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Ie({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,m=a.nestedChildren;switch(c.type){case _.TITLE:return Ie({},d,(l={},l[c.type]=m,l.titleAttributes=Ie({},f),l));case _.BODY:return Ie({},d,{bodyAttributes:Ie({},f)});case _.HTML:return Ie({},d,{htmlAttributes:Ie({},f)})}return Ie({},d,(u={},u[c.type]=Ie({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Ie({},l);return Object.keys(a).forEach(function(c){var d;u=Ie({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return W.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,m=f.children,x=kd(f,["children"]),v=zx(x);switch(u.warnOnInvalidChildren(d,m),d.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:v,nestedChildren:m});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:v,nestedChildren:m});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=kd(a,["children"]),c=Ie({},u);return l&&(c=this.mapChildrenToProps(l,c)),W.createElement(t,c)},kx(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(W.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=cm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},Hx=function(){return null},Wx=ux(Mx,Ix,cm)(Hx),Sl=$x(Wx);Sl.renderStatic=Sl.rewind;const dm=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ns=w.createContext({}),js=w.createContext(null),bs=typeof document<"u",Du=bs?w.useLayoutEffect:w.useEffect,fm=w.createContext({strict:!1}),_u=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Gx="framerAppearId",pm="data-"+_u(Gx);function Kx(e,t,n,r){const{visualElement:o}=w.useContext(Ns),i=w.useContext(fm),s=w.useContext(js),a=w.useContext(dm).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 c=w.useRef(!!(n[pm]&&!window.HandoffComplete));return Du(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function nr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Yx(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):nr(n)&&(n.current=r))},[t])}function Po(e){return typeof e=="string"||Array.isArray(e)}function As(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zu=["initial",...Fu];function Rs(e){return As(e.animate)||zu.some(t=>Po(e[t]))}function hm(e){return!!(Rs(e)||e.variants)}function Qx(e,t){if(Rs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Po(n)?n:void 0,animate:Po(r)?r:void 0}}return e.inherit!==!1?t:{}}function Xx(e){const{initial:t,animate:n}=Qx(e,w.useContext(Ns));return w.useMemo(()=>({initial:t,animate:n}),[bd(t),bd(n)])}function bd(e){return Array.isArray(e)?e.join(" "):e}const Ad={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"]},Eo={};for(const e in Ad)Eo[e]={isEnabled:t=>Ad[e].some(n=>!!t[n])};function qx(e){for(const t in e)Eo[t]={...Eo[t],...e[t]}}const Bu=w.createContext({}),mm=w.createContext({}),Zx=Symbol.for("motionComponentSymbol");function Jx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&qx(e);function i(a,l){let u;const c={...w.useContext(dm),...a,layoutId:e1(a)},{isStatic:d}=c,f=Xx(a),m=r(a,d);if(!d&&bs){f.visualElement=Kx(o,m,c,t);const x=w.useContext(mm),v=w.useContext(fm).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,x))}return w.createElement(Ns.Provider,{value:f},u&&f.visualElement?w.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,Yx(m,f.visualElement,l),m,d,f.visualElement))}const s=w.forwardRef(i);return s[Zx]=o,s}function e1({layoutId:e}){const t=w.useContext(Bu).id;return t&&e!==void 0?t+"-"+e:e}function t1(e){function t(r,o={}){return Jx(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 n1=["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 Uu(e){return typeof e!="string"||e.includes("-")?!1:!!(n1.indexOf(e)>-1||/[A-Z]/.test(e))}const es={};function r1(e){Object.assign(es,e)}const Do=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_n=new Set(Do);function gm(e,{layout:t,layoutId:n}){return _n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!es[e]||e==="opacity")}const Ue=e=>!!(e&&e.getVelocity),o1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i1=Do.length;function s1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),vm=ym("--"),Tl=ym("var(--"),a1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,l1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,an=(e,t,n)=>Math.min(Math.max(n,e),t),Fn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},eo={...Fn,transform:e=>an(0,1,e)},ai={...Fn,default:1},to=e=>Math.round(e*1e5)/1e5,Ms=/(-)?([\d]*\.?[\d])+/g,xm=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,u1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _o(e){return typeof e=="string"}const Fo=e=>({test:t=>_o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zt=Fo("deg"),St=Fo("%"),I=Fo("px"),c1=Fo("vh"),d1=Fo("vw"),Rd={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Md={...Fn,transform:Math.round},wm={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:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:ai,scaleX:ai,scaleY:ai,scaleZ:ai,skew:zt,skewX:zt,skewY:zt,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:eo,originX:Rd,originY:Rd,originZ:I,zIndex:Md,fillOpacity:eo,strokeOpacity:eo,numOctaves:Md};function $u(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(vm(d)){i[d]=f;continue}const m=wm[d],x=l1(f,m);if(_n.has(d)){if(l=!0,s[d]=x,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=x):o[d]=x}if(t.transform||(l||r?o.transform=s1(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=a;o.transformOrigin=`${d} ${f} ${m}`}}const Hu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sm(e,t,n){for(const r in t)!Ue(t[r])&&!gm(r,n)&&(e[r]=t[r])}function f1({transformTemplate:e},t,n){return w.useMemo(()=>{const r=Hu();return $u(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function p1(e,t,n){const r=e.style||{},o={};return Sm(o,r,e),Object.assign(o,f1(e,t,n)),e.transformValues?e.transformValues(o):o}function h1(e,t,n){const r={},o=p1(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 m1=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 ts(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||m1.has(e)}let Tm=e=>!ts(e);function g1(e){e&&(Tm=t=>t.startsWith("on")?!ts(t):e(t))}try{g1(require("@emotion/is-prop-valid").default)}catch{}function y1(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Tm(o)||n===!0&&ts(o)||!t&&!ts(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Ld(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function v1(e,t,n){const r=Ld(t,e.x,e.width),o=Ld(n,e.y,e.height);return`${r} ${o}`}const x1={offset:"stroke-dashoffset",array:"stroke-dasharray"},w1={offset:"strokeDashoffset",array:"strokeDasharray"};function S1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?x1:w1;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}function Wu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if($u(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:x,dimensions:v}=e;m.transform&&(v&&(x.transform=m.transform),delete m.transform),v&&(o!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=v1(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&S1(m,s,a,l,!1)}const Cm=()=>({...Hu(),attrs:{}}),Gu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function T1(e,t,n,r){const o=w.useMemo(()=>{const i=Cm();return Wu(i,t,{enableHardwareAcceleration:!1},Gu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Sm(i,e.style,e),o.style={...i,...o.style}}return o}function C1(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Uu(n)?T1:h1)(r,i,s,n),c={...y1(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=w.useMemo(()=>Ue(d)?d.get():d,[d]);return w.createElement(n,{...c,children:f})}}function Pm(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 Em=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 km(e,t,n,r){Pm(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Em.has(o)?o:_u(o),t.attrs[o])}function Ku(e,t){const{style:n}=e,r={};for(const o in n)(Ue(n[o])||t.style&&Ue(t.style[o])||gm(o,e))&&(r[o]=n[o]);return r}function Nm(e,t){const n=Ku(e,t);for(const r in e)if(Ue(e[r])||Ue(t[r])){const o=Do.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Yu(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 jm(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const ns=e=>Array.isArray(e),P1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),E1=e=>ns(e)?e[e.length-1]||0:e;function Ni(e){const t=Ue(e)?e.get():e;return P1(t)?t.toValue():t}function k1({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:N1(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const bm=e=>(t,n)=>{const r=w.useContext(Ns),o=w.useContext(js),i=()=>k1(e,t,r,o);return n?i():jm(i)};function N1(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ni(i[f]);let{initial:s,animate:a}=e;const l=Rs(e),u=hm(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!As(d)&&(Array.isArray(d)?d:[d]).forEach(m=>{const x=Yu(e,m);if(!x)return;const{transitionEnd:v,transition:T,...y}=x;for(const h in y){let g=y[h];if(Array.isArray(g)){const S=c?g.length-1:0;g=g[S]}g!==null&&(o[h]=g)}for(const h in v)o[h]=v[h]}),o}const ce=e=>e;class Od{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 j1(e){let t=new Od,n=new Od,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&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(d[f]=j1(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,b1),1),o.timestamp=d,o.isProcessing=!0,li.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:li.reduce((d,f)=>{const m=i[f];return d[f]=(x,v=!1,T=!1)=>(n||l(),m.schedule(x,v,T)),d},{}),cancel:d=>li.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:X,cancel:It,state:ke,steps:ca}=A1(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0),R1={useVisualState:bm({scrapeMotionValuesFromProps:Nm,createRenderState:Cm,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{Wu(n,r,{enableHardwareAcceleration:!1},Gu(t.tagName),e.transformTemplate),km(t,n)})}})},M1={useVisualState:bm({scrapeMotionValuesFromProps:Ku,createRenderState:Hu})};function L1(e,{forwardMotionProps:t=!1},n,r){return{...Uu(e)?R1:M1,preloadedFeatures:n,useRender:C1(t),createVisualElement:r,Component:e}}function jt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Am=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ls(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const O1=e=>t=>Am(t)&&e(t,Ls(t));function At(e,t,n,r){return jt(e,t,O1(n),r)}const V1=(e,t)=>n=>t(e(n)),nn=(...e)=>e.reduce(V1);function Rm(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Vd=Rm("dragHorizontal"),Id=Rm("dragVertical");function Mm(e){let t=!1;if(e==="y")t=Id();else if(e==="x")t=Vd();else{const n=Vd(),r=Id();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Lm(){const e=Mm(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Dd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||Lm())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&X.update(()=>a[r](i,s))};return At(e.current,n,o,{passive:!e.getProps()[r]})}class I1 extends fn{mount(){this.unmount=nn(Dd(this.node,!0),Dd(this.node,!1))}unmount(){}}class D1 extends fn{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=nn(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Om=(e,t)=>t?e===t?!0:Om(e,t.parentElement):!1;function da(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ls(n))}class _1 extends fn{constructor(){super(...arguments),this.removeStartListeners=ce,this.removeEndListeners=ce,this.removeAccessibleListeners=ce,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=At(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!Om(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=At(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=nn(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()||da("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=jt(this.node.current,"keyup",s),da("down",(a,l)=>{this.startPress(a,l)})},n=jt(this.node.current,"keydown",t),r=()=>{this.isPressing&&da("cancel",(i,s)=>this.cancelPress(i,s))},o=jt(this.node.current,"blur",r);this.removeAccessibleListeners=nn(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&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Lm()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=At(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=jt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=nn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cl=new WeakMap,fa=new WeakMap,F1=e=>{const t=Cl.get(e.target);t&&t(e)},z1=e=>{e.forEach(F1)};function B1({root:e,...t}){const n=e||document;fa.has(n)||fa.set(n,{});const r=fa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(z1,{root:e,...t})),r[o]}function U1(e,t,n){const r=B1(t);return Cl.set(e,n),r.observe(e),()=>{Cl.delete(e),r.unobserve(e)}}const $1={some:0,all:1};class H1 extends fn{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:$1[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:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return U1(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(W1(t,n))&&this.startObserver()}unmount(){}}function W1({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const G1={inView:{Feature:H1},tap:{Feature:_1},focus:{Feature:D1},hover:{Feature:I1}};function Vm(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 Y1(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Os(e,t,n){const r=e.getProps();return Yu(r,t,n!==void 0?n:r.custom,K1(e),Y1(e))}let Q1=ce,Qu=ce;const rn=e=>e*1e3,Rt=e=>e/1e3,X1={current:!1},Im=e=>Array.isArray(e)&&typeof e[0]=="number";function Dm(e){return!!(!e||typeof e=="string"&&_m[e]||Im(e)||Array.isArray(e)&&e.every(Dm))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Fm(e){if(e)return Im(e)?Hr(e):Array.isArray(e)?e.map(Fm):_m[e]}function q1(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 c=Fm(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Z1(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const zm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,J1=1e-7,ew=12;function tw(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=zm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>J1&&++atw(i,0,1,e,n);return i=>i===0||i===1?i:zm(o(i),t,r)}const nw=zo(.42,0,1,1),rw=zo(0,0,.58,1),Bm=zo(.42,0,.58,1),ow=e=>Array.isArray(e)&&typeof e[0]!="number",Um=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$m=e=>t=>1-e(1-t),Xu=e=>1-Math.sin(Math.acos(e)),Hm=$m(Xu),iw=Um(Xu),Wm=zo(.33,1.53,.69,.99),qu=$m(Wm),sw=Um(qu),aw=e=>(e*=2)<1?.5*qu(e):.5*(2-Math.pow(2,-10*(e-1))),lw={linear:ce,easeIn:nw,easeInOut:Bm,easeOut:rw,circIn:Xu,circInOut:iw,circOut:Hm,backIn:qu,backInOut:sw,backOut:Wm,anticipate:aw},_d=e=>{if(Array.isArray(e)){Qu(e.length===4);const[t,n,r,o]=e;return zo(t,n,r,o)}else if(typeof e=="string")return lw[e];return e},Zu=(e,t)=>n=>!!(_o(n)&&u1.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Gm=(e,t,n)=>r=>{if(!_o(r))return r;const[o,i,s,a]=r.match(Ms);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},uw=e=>an(0,255,e),pa={...Fn,transform:e=>Math.round(uw(e))},Pn={test:Zu("rgb","red"),parse:Gm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+pa.transform(e)+", "+pa.transform(t)+", "+pa.transform(n)+", "+to(eo.transform(r))+")"};function cw(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 Pl={test:Zu("#"),parse:cw,transform:Pn.transform},rr={test:Zu("hsl","hue"),parse:Gm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(to(t))+", "+St.transform(to(n))+", "+to(eo.transform(r))+")"},Ae={test:e=>Pn.test(e)||Pl.test(e)||rr.test(e),parse:e=>Pn.test(e)?Pn.parse(e):rr.test(e)?rr.parse(e):Pl.parse(e),transform:e=>_o(e)?e:e.hasOwnProperty("red")?Pn.transform(e):rr.transform(e)},se=(e,t,n)=>-n*e+n*t+e;function ha(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 dw({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=ha(l,a,e+1/3),i=ha(l,a,e),s=ha(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ma=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},fw=[Pl,Pn,rr],pw=e=>fw.find(t=>t.test(e));function Fd(e){const t=pw(e);let n=t.parse(e);return t===rr&&(n=dw(n)),n}const Km=(e,t)=>{const n=Fd(e),r=Fd(t),o={...n};return i=>(o.red=ma(n.red,r.red,i),o.green=ma(n.green,r.green,i),o.blue=ma(n.blue,r.blue,i),o.alpha=se(n.alpha,r.alpha,i),Pn.transform(o))};function hw(e){var t,n;return isNaN(e)&&_o(e)&&(((t=e.match(Ms))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(xm))===null||n===void 0?void 0:n.length)||0)>0}const Ym={regex:a1,countKey:"Vars",token:"${v}",parse:ce},Qm={regex:xm,countKey:"Colors",token:"${c}",parse:Ae.parse},Xm={regex:Ms,countKey:"Numbers",token:"${n}",parse:Fn.parse};function ga(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 rs(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ga(n,Ym),ga(n,Qm),ga(n,Xm),n}function qm(e){return rs(e).values}function Zm(e){const{values:t,numColors:n,numVars:r,tokenised:o}=rs(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function gw(e){const t=qm(e);return Zm(e)(t.map(mw))}const ln={test:hw,parse:qm,createTransformer:Zm,getAnimatableNone:gw},Jm=(e,t)=>n=>`${n>0?t:e}`;function eg(e,t){return typeof e=="number"?n=>se(e,t,n):Ae.test(e)?Km(e,t):e.startsWith("var(")?Jm(e,t):ng(e,t)}const tg=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>eg(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]=eg(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},ng=(e,t)=>{const n=ln.createTransformer(t),r=rs(e),o=rs(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?nn(tg(r.values,o.values),n):Jm(e,t)},ko=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zd=(e,t)=>n=>se(e,t,n);function vw(e){return typeof e=="number"?zd:typeof e=="string"?Ae.test(e)?Km:ng:Array.isArray(e)?tg:typeof e=="object"?yw:zd}function xw(e,t,n){const r=[],o=n||vw(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=xw(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(an(e[0],e[i-1],u)):l}function ww(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ko(0,t,r);e.push(se(n,1,o))}}function Sw(e){const t=[0];return ww(t,e.length-1),t}function Tw(e,t){return e.map(n=>n*t)}function Cw(e,t){return e.map(()=>t||Bm).splice(0,e.length-1)}function os({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ow(r)?r.map(_d):_d(r),i={done:!1,value:t[0]},s=Tw(n&&n.length===t.length?n:Sw(t),e),a=rg(s,t,{ease:Array.isArray(o)?o:Cw(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function og(e,t){return t?e*(1e3/t):0}const Pw=5;function ig(e,t,n){const r=Math.max(t-Pw,0);return og(n-e(r),t-r)}const ya=.001,Ew=.01,Bd=10,kw=.05,Nw=1;function jw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Q1(e<=rn(Bd));let s=1-t;s=an(kw,Nw,s),e=an(Ew,Bd,Rt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,m=El(u,s),x=Math.exp(-d);return ya-f/m*x},i=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),v=El(Math.pow(u,2),s);return(-o(u)+ya>0?-1:1)*((f-m)*x)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ya+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Aw(o,i,a);if(e=rn(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 bw=12;function Aw(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function Lw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ud(e,Mw)&&Ud(e,Rw)){const n=jw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function sg({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:c,velocity:d,isResolvedFromDuration:f}=Lw({...r,velocity:-Rt(r.velocity||0)}),m=d||0,x=l/(2*Math.sqrt(a*u)),v=i-o,T=Rt(Math.sqrt(a/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let h;if(x<1){const g=El(T,x);h=S=>{const C=Math.exp(-x*T*S);return i-C*((m+x*T*v)/g*Math.sin(g*S)+v*Math.cos(g*S))}}else if(x===1)h=g=>i-Math.exp(-T*g)*(v+(m+T*v)*g);else{const g=T*Math.sqrt(x*x-1);h=S=>{const C=Math.exp(-x*T*S),E=Math.min(g*S,300);return i-C*((m+x*T*v)*Math.sinh(E)+g*v*Math.cosh(E))/g}}return{calculatedDuration:f&&c||null,next:g=>{const S=h(g);if(f)s.done=g>=c;else{let C=m;g!==0&&(x<1?C=ig(h,g,S):C=0);const E=Math.abs(C)<=n,P=Math.abs(i-S)<=t;s.done=E&&P}return s.value=s.done?i:S,s}}}function $d({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:c}){const d=e[0],f={done:!1,value:d},m=k=>a!==void 0&&kl,x=k=>a===void 0?l:l===void 0||Math.abs(a-k)-v*Math.exp(-k/r),g=k=>y+h(k),S=k=>{const A=h(k),R=g(k);f.done=Math.abs(A)<=u,f.value=f.done?y:R};let C,E;const P=k=>{m(f.value)&&(C=k,E=sg({keyframes:[f.value,x(f.value)],velocity:ig(g,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:k=>{let A=!1;return!E&&C===void 0&&(A=!0,S(k),P(k)),C!==void 0&&k>C?E.next(k-C):(!A&&S(k),f)}}}const Ow=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>It(t),now:()=>ke.isProcessing?ke.timestamp:performance.now()}},Hd=2e4;function Wd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Hd?1/0:t}const Vw={decay:$d,inertia:$d,tween:os,keyframes:os,spring:sg};function is({autoplay:e=!0,delay:t=0,driver:n=Ow,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let m=1,x=!1,v,T;const y=()=>{T=new Promise(O=>{v=O})};y();let h;const g=Vw[o]||os;let S;g!==os&&typeof r[0]!="number"&&(S=rg([0,100],r,{clamp:!1}),r=[0,100]);const C=g({...f,keyframes:r});let E;a==="mirror"&&(E=g({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",k=null,A=null,R=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=Wd(C));const{calculatedDuration:G}=C;let V=1/0,oe=1/0;G!==null&&(V=G+s,oe=V*(i+1)-s);let M=0;const ee=O=>{if(A===null)return;m>0&&(A=Math.min(A,O)),m<0&&(A=Math.min(O-oe/m,A)),k!==null?M=k:M=Math.round(O-A)*m;const $=M-t*(m>=0?1:-1),Y=m>=0?$<0:$>oe;M=Math.max($,0),P==="finished"&&k===null&&(M=oe);let $e=M,Bn=C;if(i){const Is=Math.min(M,oe)/V;let $o=Math.floor(Is),hn=Is%1;!hn&&Is>=1&&(hn=1),hn===1&&$o--,$o=Math.min($o,i+1),!!($o%2)&&(a==="reverse"?(hn=1-hn,s&&(hn-=s/V)):a==="mirror"&&(Bn=E)),$e=an(0,1,hn)*V}const He=Y?{done:!1,value:r[0]}:Bn.next($e);S&&(He.value=S(He.value));let{done:pn}=He;!Y&&G!==null&&(pn=m>=0?M>=oe:M<=0);const Cy=k===null&&(P==="finished"||P==="running"&&pn);return d&&d(He.value),Cy&&j(),He},U=()=>{h&&h.stop(),h=void 0},de=()=>{P="idle",U(),v(),y(),A=R=null},j=()=>{P="finished",c&&c(),U(),v()},L=()=>{if(x)return;h||(h=n(ee));const O=h.now();l&&l(),k!==null?A=O-k:(!A||P==="finished")&&(A=O),P==="finished"&&y(),R=A,k=null,P="running",h.start()};e&&L();const D={then(O,$){return T.then(O,$)},get time(){return Rt(M)},set time(O){O=rn(O),M=O,k!==null||!h||m===0?k=O:A=h.now()-O/m},get duration(){const O=C.calculatedDuration===null?Wd(C):C.calculatedDuration;return Rt(O)},get speed(){return m},set speed(O){O===m||!h||(m=O,D.time=Rt(M))},get state(){return P},play:L,pause:()=>{P="paused",k=M},stop:()=>{x=!0,P!=="idle"&&(P="idle",u&&u(),de())},cancel:()=>{R!==null&&ee(R),de()},complete:()=>{P="finished"},sample:O=>(A=0,ee(O))};return D}function Iw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dw=Iw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_w=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ui=10,Fw=2e4,zw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Dm(t.ease);function Bw(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Dw()&&_w.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(g=>{a=g})};c();let{keyframes:d,duration:f=300,ease:m,times:x}=o;if(zw(t,o)){const g=is({...o,repeat:0,delay:0});let S={done:!1,value:d[0]};const C=[];let E=0;for(;!S.done&&E{u=!1,v.cancel()},y=()=>{u=!0,X.update(T),a(),c()};return v.onfinish=()=>{u||(e.set(Z1(d,o)),r&&r(),y())},{then(g,S){return l.then(g,S)},attachTimeline(g){return v.timeline=g,v.onfinish=null,ce},get time(){return Rt(v.currentTime||0)},set time(g){v.currentTime=rn(g)},get speed(){return v.playbackRate},set speed(g){v.playbackRate=g},get duration(){return Rt(f)},play:()=>{s||(v.play(),It(T))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:g}=v;if(g){const S=is({...o,autoplay:!1});e.setWithVelocity(S.sample(g-ui).value,S.sample(g).value,ui)}y()},complete:()=>{u||v.finish()},cancel:y}}function Uw({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:ce,pause:ce,stop:ce,then:i=>(i(),Promise.resolve()),cancel:ce,complete:ce});return t?is({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const $w={type:"spring",stiffness:500,damping:25,restSpeed:10},Hw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ww={type:"keyframes",duration:.8},Gw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kw=(e,{keyframes:t})=>t.length>2?Ww:_n.has(e)?e.startsWith("scale")?Hw(t[1]):$w:Gw,kl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ln.test(t)||t==="0")&&!t.startsWith("url(")),Yw=new Set(["brightness","contrast","saturate","opacity"]);function Qw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ms)||[];if(!r)return e;const o=n.replace(r,"");let i=Yw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xw=/([a-z-]*)\(.*?\)/g,Nl={...ln,getAnimatableNone:e=>{const t=e.match(Xw);return t?t.map(Qw).join(" "):e}},qw={...wm,color:Ae,backgroundColor:Ae,outlineColor:Ae,fill:Ae,stroke:Ae,borderColor:Ae,borderTopColor:Ae,borderRightColor:Ae,borderBottomColor:Ae,borderLeftColor:Ae,filter:Nl,WebkitFilter:Nl},Ju=e=>qw[e];function ag(e,t){let n=Ju(e);return n!==Nl&&(n=ln),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lg=e=>/^0[^.\s]+$/.test(e);function Zw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||lg(e)}function Jw(e,t,n,r){const o=kl(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=ec(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-rn(s);const l=Jw(t,e,n,i),u=l[0],c=l[l.length-1],d=kl(e,u),f=kl(e,c);let m={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(eS(i)||(m={...m,...Kw(e,m)}),m.duration&&(m.duration=rn(m.duration)),m.repeatDelay&&(m.repeatDelay=rn(m.repeatDelay)),!d||!f||X1.current||i.type===!1||tS.skipAnimations)return Uw(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=Bw(t,e,m);if(x)return x}return is(m)};function ss(e){return!!(Ue(e)&&e.add)}const ug=e=>/^\-?\d*\.?\d+$/.test(e);function nc(e,t){e.indexOf(t)===-1&&e.push(t)}function rc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oc{constructor(){this.subscriptions=[]}add(t){return nc(this.subscriptions,t),()=>rc(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 rS{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}=ke;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,X.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=()=>X.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=nS(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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?og(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 wr(e,t){return new rS(e,t)}const cg=e=>t=>t.test(e),oS={test:e=>e==="auto",parse:e=>e},dg=[Fn,I,St,zt,d1,c1,oS],Ir=e=>dg.find(cg(e)),iS=[...dg,Ae,ln],sS=e=>iS.find(cg(e));function aS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wr(n))}function lS(e,t){const n=Os(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=E1(i[s]);aS(e,s,a)}}function uS(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(d))),u.push(T)}return s&&Promise.all(u).then(()=>{s&&lS(e,s)}),u}function jl(e,t,n={}){const r=Os(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(fg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return hS(e,t,u+l,c,d,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 hS(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(mS).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(jl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function mS(e,t){return e.sortNodePosition(t)}function gS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>jl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=jl(e,t,n);else{const o=typeof t=="function"?Os(e,t,n.custom):t;r=Promise.all(fg(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const yS=[...Fu].reverse(),vS=Fu.length;function xS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>gS(e,n,r)))}function wS(e){let t=xS(e);const n=TS();let r=!0;const o=(l,u)=>{const c=Os(e,u);if(c){const{transition:d,transitionEnd:f,...m}=c;l={...l,...m,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let x={},v=1/0;for(let y=0;yv&&C,R=!1;const G=Array.isArray(S)?S:[S];let V=G.reduce(o,{});E===!1&&(V={});const{prevResolvedValues:oe={}}=g,M={...oe,...V},ee=U=>{A=!0,m.has(U)&&(R=!0,m.delete(U)),g.needsAnimating[U]=!0};for(const U in M){const de=V[U],j=oe[U];if(x.hasOwnProperty(U))continue;let L=!1;ns(de)&&ns(j)?L=!Vm(de,j):L=de!==j,L?de!==void 0?ee(U):m.add(U):de!==void 0&&m.has(U)?ee(U):g.protectedKeys[U]=!0}g.prevProp=S,g.prevResolvedValues=V,g.isActive&&(x={...x,...V}),r&&e.blockInitialAnimation&&(A=!1),A&&(!P||R)&&f.push(...G.map(U=>({animation:U,options:{type:h,...l}})))}if(m.size){const y={};m.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(y[h]=g)}),f.push({animation:y})}let T=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var x;return(x=m.animationState)===null||x===void 0?void 0:x.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function SS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vm(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TS(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class CS extends fn{constructor(t){super(t),t.animationState||(t.animationState=wS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),As(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 PS=0;class ES extends fn{constructor(){super(...arguments),this.id=PS++}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 kS={animation:{Feature:CS},exit:{Feature:ES}},Gd=(e,t)=>Math.abs(e-t);function NS(e,t){const n=Gd(e.x,t.x),r=Gd(e.y,t.y);return Math.sqrt(n**2+r**2)}class pg{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 d=xa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=NS(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:x}=d,{timestamp:v}=ke;this.history.push({...x,timestamp:v});const{onStart:T,onMove:y}=this.handlers;f||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=va(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=xa(d.type==="pointercancel"?this.lastMoveEventInfo:va(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,T),x&&x(d,T)},!Am(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ls(t),a=va(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ke;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,xa(a,this.history)),this.removeListeners=nn(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),It(this.updatePoint)}}function va(e,t){return t?{point:t(e.point)}:e}function Kd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xa({point:e},t){return{point:e,delta:Kd(e,hg(t)),offset:Kd(e,jS(t)),velocity:bS(t,.1)}}function jS(e){return e[0]}function hg(e){return e[e.length-1]}function bS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=hg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>rn(t)));)n--;if(!r)return{x:0,y:0};const i=Rt(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 Xe(e){return e.max-e.min}function bl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Yd(e,t,n,r=.5){e.origin=r,e.originPoint=se(t.min,t.max,e.origin),e.scale=Xe(n)/Xe(t),(bl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(bl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function no(e,t,n,r){Yd(e.x,t.x,n.x,r?r.originX:void 0),Yd(e.y,t.y,n.y,r?r.originY:void 0)}function Qd(e,t,n){e.min=n.min+t.min,e.max=e.min+Xe(t)}function AS(e,t,n){Qd(e.x,t.x,n.x),Qd(e.y,t.y,n.y)}function Xd(e,t,n){e.min=t.min-n.min,e.max=e.min+Xe(t)}function ro(e,t,n){Xd(e.x,t.x,n.x),Xd(e.y,t.y,n.y)}function RS(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?se(n,e,r.max):Math.min(e,n)),e}function qd(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 MS(e,{top:t,left:n,bottom:r,right:o}){return{x:qd(e.x,n,o),y:qd(e.y,t,r)}}function Zd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ko(t.min,t.max-r,e.min):r>o&&(n=ko(e.min,e.max-o,t.min)),an(0,1,n)}function VS(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 Al=.35;function IS(e=Al){return e===!1?e=0:e===!0&&(e=Al),{x:Jd(e,"left","right"),y:Jd(e,"top","bottom")}}function Jd(e,t,n){return{min:ef(e,t),max:ef(e,n)}}function ef(e,t){return typeof e=="number"?e:e[t]||0}const tf=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:tf(),y:tf()}),nf=()=>({min:0,max:0}),he=()=>({x:nf(),y:nf()});function et(e){return[e("x"),e("y")]}function mg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function DS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _S(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 wa(e){return e===void 0||e===1}function Rl({scale:e,scaleX:t,scaleY:n}){return!wa(e)||!wa(t)||!wa(n)}function vn(e){return Rl(e)||gg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function gg(e){return rf(e.x)||rf(e.y)}function rf(e){return e&&e!=="0%"}function as(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=as(e,o,r)),as(e,n,r)+t}function Ml(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 yg(e,{x:t,y:n}){Ml(e.x,t.translate,t.scale,t.originPoint),Ml(e.y,n.translate,n.scale,n.originPoint)}function FS(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 $t(e,t){e.min=e.min+t,e.max=e.max+t}function af(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=se(e.min,e.max,i);Ml(e,t[n],t[r],s,t.scale)}const zS=["x","scaleX","originX"],BS=["y","scaleY","originY"];function ir(e,t){af(e.x,t,zS),af(e.y,t,BS)}function vg(e,t){return mg(_S(e.getBoundingClientRect(),t))}function US(e,t,n){const r=vg(e,n),{scroll:o}=t;return o&&($t(r.x,o.offset.x),$t(r.y,o.offset.y)),r}const xg=({current:e})=>e?e.ownerDocument.defaultView:null,$S=new WeakMap;class HS{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=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ls(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:m,onDragStart:x}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Mm(f),!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),et(T=>{let y=this.getAxisMotionValue(T).get()||0;if(St.test(y)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[T];g&&(y=Xe(g)*(parseFloat(y)/100))}}this.originPoint[T]=y}),x&&X.update(()=>x(c,d),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:x,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:T}=d;if(m&&this.currentDirection===null){this.currentDirection=WS(T),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>et(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new pg(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:xg(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&&X.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||!ci(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=RS(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&&nr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=MS(o.layoutBox,n):this.constraints=!1,this.elastic=IS(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&et(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=VS(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=US(r,o.root,this.visualElement.getTransformPagePoint());let s=LS(o.layout.layoutBox,i);if(n){const a=n(DS(s));this.hasMutatedConstraints=!!a,a&&(s=mg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(c=>{if(!ci(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,m=o?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(tc(t,r,0,n))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(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){et(n=>{const{drag:r}=this.getProps();if(!ci(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]-se(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};et(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=OS({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(),et(s=>{if(!ci(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(se(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;$S.set(this.visualElement,this);const t=this.visualElement.current,n=At(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();nr(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=jt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].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=Al,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ci(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function WS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class GS extends fn{constructor(t){super(t),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new HS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const lf=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class KS extends fn{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(t){this.session=new pg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:lf(t),onStart:lf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&X.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=At(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 YS(){const e=w.useContext(js);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 ji={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Dr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=uf(e,t.target.x),r=uf(e,t.target.y);return`${n}% ${r}%`}},QS={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ln.parse(e);if(o.length>5)return r;const i=ln.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=se(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 XS extends W.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;r1(qS),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()})),ji.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()||X.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 wg(e){const[t,n]=YS(),r=w.useContext(Bu);return W.createElement(XS,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(mm),isPresent:t,safeToRemove:n})}const qS={borderRadius:{...Dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dr,borderTopRightRadius:Dr,borderBottomLeftRadius:Dr,borderBottomRightRadius:Dr,boxShadow:QS},Sg=["TopLeft","TopRight","BottomLeft","BottomRight"],ZS=Sg.length,cf=e=>typeof e=="string"?parseFloat(e):e,df=e=>typeof e=="number"||I.test(e);function JS(e,t,n,r,o,i){o?(e.opacity=se(0,n.opacity!==void 0?n.opacity:1,eT(r)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,tT(r))):i&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ko(e,t,r))}function pf(e,t){e.min=t.min,e.max=t.max}function Je(e,t){pf(e.x,t.x),pf(e.y,t.y)}function hf(e,t,n,r,o){return e-=t,e=as(e,1/n,r),o!==void 0&&(e=as(e,1/o,r)),e}function nT(e,t=0,n=1,r=.5,o,i=e,s=e){if(St.test(t)&&(t=parseFloat(t),t=se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=se(i.min,i.max,r);e===i&&(a-=t),e.min=hf(e.min,t,n,a,o),e.max=hf(e.max,t,n,a,o)}function mf(e,t,[n,r,o],i,s){nT(e,t[n],t[r],t[o],t.scale,i,s)}const rT=["x","scaleX","originX"],oT=["y","scaleY","originY"];function gf(e,t,n,r){mf(e.x,t,rT,n?n.x:void 0,r?r.x:void 0),mf(e.y,t,oT,n?n.y:void 0,r?r.y:void 0)}function yf(e){return e.translate===0&&e.scale===1}function Cg(e){return yf(e.x)&&yf(e.y)}function iT(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 Pg(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 vf(e){return Xe(e.x)/Xe(e.y)}class sT{constructor(){this.members=[]}add(t){nc(this.members,t),t.scheduleRender()}remove(t){if(rc(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 xf(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:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}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 aT=(e,t)=>e.depth-t.depth;class lT{constructor(){this.children=[],this.isDirty=!1}add(t){nc(this.children,t),this.isDirty=!0}remove(t){rc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aT),this.isDirty=!1,this.children.forEach(t)}}function uT(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(It(r),e(i-t))};return X.read(r,!0),()=>It(r)}function cT(e){window.MotionDebug&&window.MotionDebug.record(e)}function dT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function fT(e,t,n){const r=Ue(e)?e:wr(e);return r.start(tc("",r,t,n)),r.animation}const wf=["","X","Y","Z"],pT={visibility:"hidden"},Sf=1e3;let hT=0;const xn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Eg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=hT++,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,xn.totalNodes=xn.resolvedTargetDeltas=xn.recalculatedProjection=0,this.nodes.forEach(yT),this.nodes.forEach(TT),this.nodes.forEach(CT),this.nodes.forEach(vT),cT(xn)},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,d&&d(),d=uT(f,250),ji.hasAnimatedSinceResize&&(ji.hasAnimatedSinceResize=!1,this.nodes.forEach(Cf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||jT,{onLayoutAnimationStart:T,onLayoutAnimationComplete:y}=c.getProps(),h=!this.targetLayout||!Pg(this.targetLayout,x)||m,g=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const S={...ec(v,"layout"),onPlay:T,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Cf(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,It(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(PT),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 c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(xT),this.sharedNodes.forEach(ET)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.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=S/1e3;Pf(d.x,s.x,C),Pf(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ro(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kT(this.relativeTarget,this.relativeTargetOrigin,f,C),g&&iT(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=he()),Je(g,this.relativeTarget)),v&&(this.animationValues=c,JS(c,u,this.latestValues,C,h,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&&(It(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{ji.hasAnimatedSinceResize=!0,this.currentAnimation=fT(0,Sf,{...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(Sf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&kg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||he();const d=Xe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Xe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Je(a,l),ir(a,c),no(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new sT),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 c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Tf),this.root.sharedNodes.clear()}}}function mT(e){e.updateLayout()}function gT(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"?et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Xe(f);f.min=r[d].min,f.max=f.min+m}):kg(i,n.layoutBox,r)&&et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=Xe(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=or();no(a,r,n.layoutBox);const l=or();s?no(l,e.applyTransform(o,!0),n.measuredBox):no(l,r,n.layoutBox);const u=!Cg(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const x=he();ro(x,n.layoutBox,f.layoutBox);const v=he();ro(v,r,m.layoutBox),Pg(x,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yT(e){xn.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 vT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xT(e){e.clearSnapshot()}function Tf(e){e.clearMeasurements()}function wT(e){e.isLayoutDirty=!1}function ST(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function TT(e){e.resolveTargetDelta()}function CT(e){e.calcProjection()}function PT(e){e.resetRotation()}function ET(e){e.removeLeadSnapshot()}function Pf(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ef(e,t,n,r){e.min=se(t.min,n.min,r),e.max=se(t.max,n.max,r)}function kT(e,t,n,r){Ef(e.x,t.x,n.x,r),Ef(e.y,t.y,n.y,r)}function NT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jT={duration:.45,ease:[.4,0,.1,1]},kf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Nf=kf("applewebkit/")&&!kf("chrome/")?Math.round:ce;function jf(e){e.min=Nf(e.min),e.max=Nf(e.max)}function bT(e){jf(e.x),jf(e.y)}function kg(e,t,n){return e==="position"||e==="preserve-aspect"&&!bl(vf(t),vf(n),.2)}const AT=Eg({attachResizeListener:(e,t)=>jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sa={current:void 0},Ng=Eg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sa.current){const e=new AT({});e.mount(window),e.setOptions({layoutScroll:!0}),Sa.current=e}return Sa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RT={pan:{Feature:KS},drag:{Feature:GS,ProjectionNode:Ng,MeasureLayout:wg}},MT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function LT(e){const t=MT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ll(e,t,n=1){const[r,o]=LT(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return ug(s)?parseFloat(s):s}else return Tl(o)?Ll(o,t,n+1):o}function OT(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(!Tl(i))return;const s=Ll(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Tl(i))continue;const s=Ll(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const VT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jg=e=>VT.has(e),IT=e=>Object.keys(e).some(jg),bf=e=>e===Fn||e===I,Af=(e,t)=>parseFloat(e.split(", ")[t]),Rf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Af(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Af(i[1],e):0}},DT=new Set(["x","y","z"]),_T=Do.filter(e=>!DT.has(e));function FT(e){const t=[];return _T.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 Sr={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:Rf(4,13),y:Rf(5,14)};Sr.translateX=Sr.x;Sr.translateY=Sr.y;const zT=(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]=Sr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Sr[u](l,i)}),e},BT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(jg);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Ir(c);const f=t[l];let m;if(ns(f)){const x=f.length,v=f[0]===null?1:0;c=f[v],d=Ir(c);for(let T=v;T=0?window.pageYOffset:null,u=zT(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),bs&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function UT(e,t,n,r){return IT(t)?BT(e,t,n,r):{target:t,transitionEnd:r}}const $T=(e,t,n,r)=>{const o=OT(e,t,r);return t=o.target,r=o.transitionEnd,UT(e,t,n,r)},Ol={current:null},bg={current:!1};function HT(){if(bg.current=!0,!!bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ol.current=e.matches;e.addListener(t),t()}else Ol.current=!1}function WT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Ue(i))e.addValue(o,i),ss(r)&&r.add(o);else if(Ue(s))e.addValue(o,wr(i,{owner:e})),ss(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,wr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Mf=new WeakMap,Ag=Object.keys(Eo),GT=Ag.length,Lf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],KT=zu.length;class YT{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=()=>X.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=Rs(n),this.isVariantNode=hm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Ue(f)&&(f.set(a[d],!1),ss(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Mf.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)),bg.current||HT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ol.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Mf.delete(this.current),this.projection&&this.projection.unmount(),It(this.notifyUpdate),It(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=_n.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.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:f,layoutRoot:m})}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):he()}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=wr(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=Yu(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&&!Ue(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 oc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Rg extends YT{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=dS(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){uS(this,r,s);const a=$T(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function QT(e){return window.getComputedStyle(e)}class XT extends Rg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(_n.has(n)){const r=Ju(n);return r&&r.default||0}else{const r=QT(t),o=(vm(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vg(t,n)}build(t,n,r,o){$u(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ku(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Pm(t,n,r,o)}}class qT extends Rg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_n.has(n)){const r=Ju(n);return r&&r.default||0}return n=Em.has(n)?n:_u(n),t.getAttribute(n)}measureInstanceViewportBox(){return he()}scrapeMotionValuesFromProps(t,n){return Nm(t,n)}build(t,n,r,o){Wu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){km(t,n,r,o)}mount(t){this.isSVGTag=Gu(t.tagName),super.mount(t)}}const ZT=(e,t)=>Uu(e)?new qT(t,{enableHardwareAcceleration:!1}):new XT(t,{enableHardwareAcceleration:!0}),JT={layout:{ProjectionNode:Ng,MeasureLayout:wg}},eC={...kS,...G1,...RT,...JT},F=t1((e,t)=>L1(e,t,eC,ZT));function Mg(){const e=w.useRef(!1);return Du(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function tC(){const e=Mg(),[t,n]=w.useState(0),r=w.useCallback(()=>{e.current&&n(t+1)},[t]);return[w.useCallback(()=>X.postRender(r),[r]),t]}class nC extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rC({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0});return w.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${s}px !important; top: ${a}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),w.createElement(nC,{isPresent:t,childRef:r,sizeRef:o},w.cloneElement(e,{ref:r}))}const Ta=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=jm(oC),l=w.useId(),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return w.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=w.createElement(rC,{isPresent:n},e)),w.createElement(js.Provider,{value:u},e)};function oC(){return new Map}function iC(e){return w.useEffect(()=>()=>e(),[])}const wn=e=>e.key||"";function sC(e,t){e.forEach(n=>{const r=wn(n);t.set(r,n)})}function aC(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const lC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=w.useContext(Bu).forceRender||tC()[0],l=Mg(),u=aC(e);let c=u;const d=w.useRef(new Map).current,f=w.useRef(c),m=w.useRef(new Map).current,x=w.useRef(!0);if(Du(()=>{x.current=!1,sC(u,m),f.current=c}),iC(()=>{x.current=!0,m.clear(),d.clear()}),x.current)return w.createElement(w.Fragment,null,c.map(h=>w.createElement(Ta,{key:wn(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const v=f.current.map(wn),T=u.map(wn),y=v.length;for(let h=0;h{if(T.indexOf(g)!==-1)return;const S=m.get(g);if(!S)return;const C=v.indexOf(g);let E=h;if(!E){const P=()=>{d.delete(g);const k=Array.from(m.keys()).filter(A=>!T.includes(A));if(k.forEach(A=>m.delete(A)),f.current=u.filter(A=>{const R=wn(A);return R===g||k.includes(R)}),!d.size){if(l.current===!1)return;a(),r&&r()}};E=w.createElement(Ta,{key:wn(S),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(g,E)}c.splice(C,0,E)}),c=c.map(h=>{const g=h.key;return d.has(g)?h:w.createElement(Ta,{key:wn(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),w.createElement(w.Fragment,null,d.size?c:c.map(h=>w.cloneElement(h)))};var uC={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 cC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pe=(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,...uC,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${cC(e)}`,...l},[...t.map(([c,d])=>w.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},dC=pe("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"}]]),ic=pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),fC=pe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),Lg=pe("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"}]]),No=pe("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"}]]),ls=pe("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"}]]),pC=pe("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"}]]),hC=pe("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]]),mC=pe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),jo=pe("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"}]]),gC=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),yC=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),vC=pe("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),xC=pe("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),Of=pe("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),sc=pe("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"}]]),wC=pe("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"}]]),SC=pe("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"}]]),Og=pe("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"}]]),TC=pe("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"}]]),ac=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Vg(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 Fg="!";function AC(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,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:T}}}function RC(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 MC(e){return{cache:bC(e.cacheSize),splitModifiers:AC(e),...PC(e)}}var LC=/\s+/;function OC(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(LC).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),m=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};m=!1}var x=RC(l).join(":"),v=u?x+Fg:x;return{isTailwindClass:!0,modifierId:v,classGroupId:f,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function VC(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=_f(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:i,...s}=r,a=w.Children.toArray(i),l=a.find(eP);if(l){const u=l.props.children,c=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...s,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return p.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var qC=us("Slot");function ZC(e){const t=w.forwardRef((n,r)=>{const{children:o,...i}=n;if(w.isValidElement(o)){const s=nP(o),a=tP(i,o.props);return o.type!==w.Fragment&&(a.ref=r?Ug(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 JC=Symbol("radix.slottable");function eP(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JC}function tP(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 nP(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)}const Ff=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zf=Ig,uc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return zf(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 c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Ff(c)||Ff(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(x=>{let[v,T]=x;return Array.isArray(T)?T.includes({...i,...a}[v]):{...i,...a}[v]===T})?[...u,d,f]:u},[]);return zf(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},rP=uc("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"}}),me=W.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?qC:"button";return p.jsx(s,{className:be(rP({variant:t,size:n,className:e})),ref:i,...o})});me.displayName="Button";function cc(){const[e,t]=w.useState([]);w.useEffect(()=>{const l=localStorage.getItem("cart");l&&t(JSON.parse(l))},[]),w.useEffect(()=>{localStorage.setItem("cart",JSON.stringify(e))},[e]);const n=l=>{t(u=>u.find(d=>d.id===l.id)?u.map(d=>d.id===l.id?{...d,quantity:d.quantity+1}:d):[...u,{...l,quantity:1}])},r=l=>{t(u=>u.filter(c=>c.id!==l))};return{cart:e,addToCart:n,removeFromCart:r,updateQuantity:(l,u)=>{if(u<=0){r(l);return}t(c=>c.map(d=>d.id===l?{...d,quantity:u}:d))},clearCart:()=>{t([])},getTotalItems:()=>e.reduce((l,u)=>l+u.quantity,0),getTotalPrice:()=>e.reduce((l,u)=>l+u.price*u.quantity,0)}}const oP=1;let Ca=0;function iP(){return Ca=(Ca+1)%Number.MAX_VALUE,Ca.toString()}const Re={state:{toasts:[]},listeners:[],getState:()=>Re.state,setState:e=>{typeof e=="function"?Re.state=e(Re.state):Re.state={...Re.state,...e},Re.listeners.forEach(t=>t(Re.state))},subscribe:e=>(Re.listeners.push(e),()=>{Re.listeners=Re.listeners.filter(t=>t!==e)})},sP=({...e})=>{const t=iP(),n=o=>Re.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Re.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Re.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,oP)})),{id:t,dismiss:r,update:n}};function Bo(){const[e,t]=w.useState(Re.getState());return w.useEffect(()=>Re.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:sP,toasts:e.toasts}}function aP({onCartClick:e,onSectionClick:t}){const[n,r]=w.useState(!1),{getTotalItems:o}=cc(),{toast:i}=Bo(),s=[{label:"Inicio",section:"hero"},{label:"Productos",section:"products"},{label:"Quiénes Somos",section:"about"},{label:"Contacto",section:"contact"}],a=c=>{t(c),r(!1)},l=()=>{i({title:"📞 Llamada",description:"Redirigiendo a la aplicación de teléfono..."}),window.location.href="tel:+584146937412"},u=()=>{i({title:"📧 Email",description:"Abriendo cliente de correo..."}),window.location.href="mailto:comercializadoraalimentos02@yahoo.com"};return p.jsx(F.header,{initial:{y:-100},animate:{y:0},className:"fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md shadow-lg border-b",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs("div",{className:"flex items-center justify-between h-16",children:[p.jsxs(F.div,{whileHover:{scale:1.05},className:"flex items-center space-x-2 cursor-pointer",onClick:()=>t("hero"),children:[p.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-green-500 to-green-600 rounded-lg flex items-center justify-center",children:p.jsx("span",{className:"text-white font-bold text-lg",children:"CA"})}),p.jsxs("div",{children:[p.jsx("h1",{className:"font-bold text-lg text-gray-800",children:"Comercializadora"}),p.jsx("p",{className:"text-xs text-green-600 -mt-1",children:"de Alimentos"})]})]}),p.jsx("nav",{className:"hidden md:flex items-center space-x-8",children:s.map(c=>p.jsx("button",{onClick:()=>a(c.section),className:"text-gray-700 hover:text-green-600 font-medium transition-colors",children:c.label},c.section))}),p.jsxs("div",{className:"flex items-center space-x-4",children:[p.jsxs("div",{className:"hidden lg:flex items-center space-x-2",children:[p.jsxs(me,{variant:"ghost",size:"sm",onClick:l,className:"text-green-600 hover:text-green-700",children:[p.jsx(jo,{className:"w-4 h-4 mr-1"}),p.jsx("span",{className:"text-sm",children:"0414-693-7412"})]}),p.jsx(me,{variant:"ghost",size:"sm",onClick:u,className:"text-green-600 hover:text-green-700",children:p.jsx(No,{className:"w-4 h-4"})})]}),p.jsxs(me,{variant:"outline",size:"sm",onClick:e,className:"relative border-green-200 hover:bg-green-50",children:[p.jsx(sc,{className:"w-4 h-4"}),o()>0&&p.jsx(F.span,{initial:{scale:0},animate:{scale:1},className:"absolute -top-2 -right-2 bg-green-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center",children:o()})]}),p.jsx(me,{variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>r(!n),children:n?p.jsx(ac,{className:"w-5 h-5"}):p.jsx(pC,{className:"w-5 h-5"})})]})]}),n&&p.jsx(F.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden border-t bg-white/95 backdrop-blur-md",children:p.jsxs("div",{className:"py-4 space-y-2",children:[s.map(c=>p.jsx("button",{onClick:()=>a(c.section),className:"block w-full text-left px-4 py-2 text-gray-700 hover:text-green-600 hover:bg-green-50 transition-colors",children:c.label},c.section)),p.jsxs("div",{className:"px-4 py-2 border-t space-y-2",children:[p.jsxs(me,{variant:"ghost",size:"sm",onClick:l,className:"w-full justify-start text-green-600",children:[p.jsx(jo,{className:"w-4 h-4 mr-2"}),"0414-693-7412"]}),p.jsxs(me,{variant:"ghost",size:"sm",onClick:u,className:"w-full justify-start text-green-600",children:[p.jsx(No,{className:"w-4 h-4 mr-2"}),"Enviar Email"]})]})]})})]})})}function lP({onShopClick:e}){const t=[{icon:wC,title:"Calidad Premium",description:"Productos seleccionados de la más alta calidad"},{icon:Og,title:"Entrega Rápida",description:"Servicio de entrega en Valencia, Carabobo"},{icon:xC,title:"Garantía Total",description:"Satisfacción garantizada en cada compra"}];return p.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden gradient-bg food-pattern",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsx(F.div,{animate:{rotate:360},transition:{duration:20,repeat:1/0,ease:"linear"},className:"absolute top-20 left-10 w-20 h-20 bg-white/10 rounded-full"}),p.jsx(F.div,{animate:{y:[-20,20,-20]},transition:{duration:4,repeat:1/0},className:"absolute top-40 right-20 w-16 h-16 bg-white/10 rounded-lg"}),p.jsx(F.div,{animate:{x:[-30,30,-30]},transition:{duration:6,repeat:1/0},className:"absolute bottom-40 left-20 w-12 h-12 bg-white/10 rounded-full"})]}),p.jsx("div",{className:"container mx-auto px-4 relative z-10",children:p.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[p.jsxs(F.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},className:"text-center lg:text-left",children:[p.jsxs(F.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"text-4xl md:text-6xl font-bold text-white mb-6 text-shadow",children:["¡Bienvenidos a"," ",p.jsx("span",{className:"text-yellow-300",children:"Comercializadora de Alimentos!"})]}),p.jsx(F.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"text-xl text-white/90 mb-8 leading-relaxed",children:"Tu tienda de confianza en Valencia, Carabobo. Ofrecemos la más amplia variedad de alimentos de primera calidad para tu hogar y familia."}),p.jsxs(F.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start mb-12",children:[p.jsxs(me,{size:"lg",onClick:e,className:"bg-yellow-400 hover:bg-yellow-500 text-gray-900 font-semibold px-8 py-3 text-lg shadow-xl hover:shadow-2xl transition-all duration-300",children:[p.jsx(sc,{className:"w-5 h-5 mr-2"}),"Ver Productos"]}),p.jsx(me,{variant:"outline",size:"lg",className:"border-white text-white hover:bg-white hover:text-green-600 px-8 py-3 text-lg",onClick:()=>window.location.href="tel:+584146937412",children:"Contactar Ahora"})]}),p.jsx(F.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:t.map((n,r)=>p.jsxs(F.div,{whileHover:{scale:1.05},className:"glass-effect rounded-lg p-4 text-center",children:[p.jsx(n.icon,{className:"w-8 h-8 text-yellow-300 mx-auto mb-2"}),p.jsx("h3",{className:"font-semibold text-white mb-1",children:n.title}),p.jsx("p",{className:"text-sm text-white/80",children:n.description})]},r))})]}),p.jsxs(F.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.3},className:"relative",children:[p.jsx(F.div,{animate:{y:[-10,10,-10]},transition:{duration:4,repeat:1/0},className:"relative z-10",children:p.jsx("img",{className:"w-full max-w-lg mx-auto rounded-2xl shadow-2xl",alt:"Variedad de alimentos frescos y productos de calidad",src:"https://images.unsplash.com/photo-1674546478997-35af9d6b02d6"})}),p.jsx(F.div,{animate:{rotate:360},transition:{duration:15,repeat:1/0,ease:"linear"},className:"absolute -top-4 -right-4 w-24 h-24 bg-yellow-400/20 rounded-full"}),p.jsx(F.div,{animate:{rotate:-360},transition:{duration:12,repeat:1/0,ease:"linear"},className:"absolute -bottom-4 -left-4 w-32 h-32 bg-white/10 rounded-full"})]})]})})]})}const bo=W.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:be("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));bo.displayName="Card";const Dl=W.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:be("flex flex-col space-y-1.5 p-6",e),...t}));Dl.displayName="CardHeader";const _l=W.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:be("text-2xl font-semibold leading-none tracking-tight",e),...t}));_l.displayName="CardTitle";const uP=W.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:be("text-sm text-muted-foreground",e),...t}));uP.displayName="CardDescription";const Ao=W.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:be("p-6 pt-0",e),...t}));Ao.displayName="CardContent";const $g=W.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:be("flex items-center p-6 pt-0",e),...t}));$g.displayName="CardFooter";const cP=uc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Bf({className:e,variant:t,...n}){return p.jsx("div",{className:be(cP({variant:t}),e),...n})}const oo=W.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:be("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));oo.displayName="Input";const dP=[{id:1,name:"Arroz Premium Grano Largo",description:"Arroz de grano largo de primera calidad, ideal para preparar deliciosos platos familiares. Producto venezolano de excelente textura y sabor.",price:2.5,category:"Granos y Cereales",image:"Arroz premium de grano largo en empaque de 1kg",unit:"kg",inStock:!0},{id:2,name:"Aceite de Girasol Puro",description:"Aceite de girasol 100% puro, perfecto para cocinar y freír. Rico en vitamina E y libre de colesterol. Ideal para una alimentación saludable.",price:3.75,category:"Aceites y Grasas",image:"Botella de aceite de girasol puro de 1 litro",unit:"litro",inStock:!0},{id:3,name:"Pasta Espagueti Tradicional",description:"Espaguetis de trigo durum de alta calidad. Perfectos para preparar deliciosas comidas italianas. Cocción uniforme y excelente textura.",price:1.25,category:"Pastas",image:"Paquete de espaguetis tradicionales de 500g",unit:"paquete",inStock:!0},{id:4,name:"Azúcar Blanca Refinada",description:"Azúcar blanca refinada de primera calidad. Perfecta para endulzar bebidas, postres y preparaciones culinarias. Cristales finos y uniformes.",price:1.8,category:"Endulzantes",image:"Bolsa de azúcar blanca refinada de 1kg",unit:"kg",inStock:!0},{id:5,name:"Harina de Maíz Precocida",description:"Harina de maíz precocida tradicional venezolana. Ideal para preparar arepas, empanadas y otros platos típicos. Textura suave y sabor auténtico.",price:2.2,category:"Harinas",image:"Paquete de harina de maíz precocida de 1kg",unit:"kg",inStock:!0},{id:6,name:"Frijoles Negros Seleccionados",description:"Frijoles negros de primera calidad, cuidadosamente seleccionados. Ricos en proteínas y fibra. Perfectos para preparaciones tradicionales.",price:2.9,category:"Granos y Cereales",image:"Bolsa de frijoles negros seleccionados de 500g",unit:"bolsa",inStock:!0},{id:7,name:"Sal Marina Refinada",description:"Sal marina refinada de pureza excepcional. Ideal para sazonar y conservar alimentos. Cristales blancos y uniformes de excelente calidad.",price:.85,category:"Condimentos",image:"Paquete de sal marina refinada de 1kg",unit:"kg",inStock:!0},{id:8,name:"Leche en Polvo Entera",description:"Leche en polvo entera fortificada con vitaminas A y D. Perfecta para toda la familia. Fácil disolución y sabor cremoso natural.",price:4.5,category:"Lácteos",image:"Lata de leche en polvo entera de 400g",unit:"lata",inStock:!0},{id:9,name:"Atún en Aceite Premium",description:"Atún en aceite de primera calidad, rico en proteínas y omega-3. Perfecto para ensaladas, sándwiches y preparaciones rápidas.",price:2.75,category:"Conservas",image:"Lata de atún en aceite premium de 185g",unit:"lata",inStock:!0},{id:10,name:"Café Molido Tostado",description:"Café molido de granos seleccionados, tostado artesanalmente. Aroma intenso y sabor equilibrado. Perfecto para comenzar el día con energía.",price:5.25,category:"Bebidas",image:"Paquete de café molido tostado de 500g",unit:"paquete",inStock:!0},{id:11,name:"Sardinas en Salsa de Tomate",description:"Sardinas frescas en deliciosa salsa de tomate natural. Ricas en calcio y omega-3. Listas para consumir, ideales para comidas rápidas.",price:1.95,category:"Conservas",image:"Lata de sardinas en salsa de tomate de 125g",unit:"lata",inStock:!0},{id:12,name:"Mayonesa Cremosa Tradicional",description:"Mayonesa cremosa de sabor tradicional, elaborada con ingredientes frescos. Perfecta para sándwiches, ensaladas y acompañamientos.",price:2.4,category:"Salsas y Aderezos",image:"Frasco de mayonesa cremosa tradicional de 500g",unit:"frasco",inStock:!0}],fP=["Todos","Granos y Cereales","Aceites y Grasas","Pastas","Endulzantes","Harinas","Condimentos","Lácteos","Conservas","Bebidas","Salsas y Aderezos"];function pP(){const[e,t]=w.useState("Todos"),[n,r]=w.useState(""),{addToCart:o}=cc(),{toast:i}=Bo(),s=dP.filter(l=>{const u=e==="Todos"||l.category===e,c=l.name.toLowerCase().includes(n.toLowerCase())||l.description.toLowerCase().includes(n.toLowerCase());return u&&c}),a=l=>{o(l),i({title:"¡Producto agregado!",description:`${l.name} se agregó al carrito exitosamente.`})};return p.jsx("section",{id:"products",className:"py-20 bg-gray-50",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-12",children:[p.jsxs("h2",{className:"text-4xl font-bold text-gray-800 mb-4",children:["Nuestros ",p.jsx("span",{className:"text-green-600",children:"Productos"})]}),p.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Descubre nuestra amplia variedad de alimentos de primera calidad, cuidadosamente seleccionados para satisfacer todas tus necesidades culinarias."})]}),p.jsxs(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},className:"mb-8 space-y-4",children:[p.jsxs("div",{className:"relative max-w-md mx-auto",children:[p.jsx(yC,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"}),p.jsx(oo,{placeholder:"Buscar productos...",value:n,onChange:l=>r(l.target.value),className:"pl-10"})]}),p.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:fP.map(l=>p.jsxs(me,{variant:e===l?"default":"outline",size:"sm",onClick:()=>t(l),className:e===l?"bg-green-600 hover:bg-green-700":"border-green-200 text-green-700 hover:bg-green-50",children:[p.jsx(fC,{className:"w-3 h-3 mr-1"}),l]},l))})]}),p.jsx(F.div,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.8},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:s.map((l,u)=>p.jsx(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:u*.1},children:p.jsxs(bo,{className:"product-card h-full flex flex-col overflow-hidden",children:[p.jsxs("div",{className:"relative",children:[p.jsx("img",{className:"w-full h-48 object-cover",alt:`${l.name} - ${l.description}`,src:"https://images.unsplash.com/photo-1635865165118-917ed9e20936"}),p.jsx(Bf,{className:"absolute top-2 right-2 bg-green-600",children:l.category}),l.inStock&&p.jsx(Bf,{className:"absolute top-2 left-2 bg-blue-600",children:"Disponible"})]}),p.jsxs(Ao,{className:"flex-1 p-4",children:[p.jsx("h3",{className:"font-bold text-lg text-gray-800 mb-2",children:l.name}),p.jsx("p",{className:"text-gray-600 text-sm mb-3 line-clamp-3",children:l.description}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("span",{className:"text-2xl font-bold text-green-600",children:["$",l.price.toFixed(2)]}),p.jsxs("span",{className:"text-sm text-gray-500",children:["por ",l.unit]})]})]}),p.jsx($g,{className:"p-4 pt-0",children:p.jsxs(me,{onClick:()=>a(l),className:"w-full bg-green-600 hover:bg-green-700 text-white",disabled:!l.inStock,children:[p.jsx(sc,{className:"w-4 h-4 mr-2"}),l.inStock?"Agregar al Carrito":"Agotado"]})})]})},l.id))}),s.length===0&&p.jsx(F.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center py-12",children:p.jsx("p",{className:"text-xl text-gray-600",children:"No se encontraron productos que coincidan con tu búsqueda."})})]})})}function hP(){const e=[{icon:Lg,title:"Compromiso Familiar",description:"Entendemos la importancia de alimentar bien a tu familia con productos de confianza y calidad excepcional."},{icon:dC,title:"Calidad Garantizada",description:"Seleccionamos cuidadosamente cada producto para asegurar que recibas solo lo mejor para tu mesa."},{icon:TC,title:"Servicio Personalizado",description:"Nuestro equipo está comprometido en brindarte una atención personalizada y resolver todas tus necesidades."},{icon:Og,title:"Entrega Confiable",description:"Servicio de entrega puntual en toda Valencia, Carabobo, para que tengas tus productos cuando los necesites."}],t=[{number:"15+",label:"Años de Experiencia"},{number:"500+",label:"Productos Disponibles"},{number:"1000+",label:"Familias Satisfechas"},{number:"24/7",label:"Atención al Cliente"}];return p.jsx("section",{id:"about",className:"py-20 bg-white",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[p.jsxs("h2",{className:"text-4xl font-bold text-gray-800 mb-4",children:["¿Quiénes ",p.jsx("span",{className:"text-green-600",children:"Somos?"})]}),p.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Somos una empresa familiar venezolana dedicada a la comercialización de alimentos de primera calidad, comprometidos con brindar el mejor servicio a nuestros clientes en Valencia, Estado Carabobo."})]}),p.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center mb-16",children:[p.jsxs(F.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},children:[p.jsx("h3",{className:"text-3xl font-bold text-gray-800 mb-6",children:"Nuestra Historia y Misión"}),p.jsxs("div",{className:"space-y-4 text-gray-600",children:[p.jsx("p",{children:"Desde nuestros inicios, hemos trabajado incansablemente para convertirnos en la comercializadora de alimentos de confianza para las familias valencianas. Nuestra pasión por la calidad y el servicio excepcional nos ha permitido crecer y expandir nuestra oferta de productos."}),p.jsx("p",{children:"Nos especializamos en ofrecer una amplia variedad de alimentos básicos y productos gourmet, desde granos y cereales hasta conservas y productos lácteos, todos cuidadosamente seleccionados para garantizar frescura y calidad superior."}),p.jsx("p",{children:"Nuestro compromiso va más allá de la venta: queremos ser parte de tu familia, proporcionando los mejores ingredientes para que puedas crear momentos especiales alrededor de la mesa."})]}),p.jsxs("div",{className:"mt-8 flex items-center space-x-4",children:[p.jsxs("div",{className:"flex items-center text-green-600",children:[p.jsx(ls,{className:"w-5 h-5 mr-2"}),p.jsx("span",{className:"font-semibold",children:"Valencia, Estado Carabobo"})]}),p.jsxs("div",{className:"flex items-center text-green-600",children:[p.jsx(ic,{className:"w-5 h-5 mr-2"}),p.jsx("span",{className:"font-semibold",children:"Lun-Sáb 8AM-6PM"})]})]})]}),p.jsxs(F.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8},className:"relative",children:[p.jsx("img",{className:"w-full rounded-2xl shadow-xl",alt:"Equipo de Comercializadora de Alimentos trabajando en el almacén",src:"https://images.unsplash.com/photo-1679957842462-c48305e53598"}),p.jsxs(F.div,{animate:{y:[-5,5,-5]},transition:{duration:3,repeat:1/0},className:"absolute -bottom-4 -right-4 bg-green-600 text-white p-4 rounded-lg shadow-lg",children:[p.jsx("p",{className:"font-bold text-lg",children:"15+ Años"}),p.jsx("p",{className:"text-sm",children:"de Experiencia"})]})]})]}),p.jsxs(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"mb-16",children:[p.jsxs("h3",{className:"text-3xl font-bold text-center text-gray-800 mb-12",children:["Nuestros ",p.jsx("span",{className:"text-green-600",children:"Valores"})]}),p.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((n,r)=>p.jsxs(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},whileHover:{scale:1.05},className:"text-center p-6 rounded-lg bg-gray-50 hover:bg-green-50 transition-colors",children:[p.jsx("div",{className:"w-16 h-16 bg-green-600 rounded-full flex items-center justify-center mx-auto mb-4",children:p.jsx(n.icon,{className:"w-8 h-8 text-white"})}),p.jsx("h4",{className:"font-bold text-lg text-gray-800 mb-2",children:n.title}),p.jsx("p",{className:"text-gray-600 text-sm",children:n.description})]},r))})]}),p.jsx(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"bg-green-600 rounded-2xl p-8 text-white",children:p.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:t.map((n,r)=>p.jsxs(F.div,{initial:{opacity:0,scale:.5},whileInView:{opacity:1,scale:1},transition:{duration:.6,delay:r*.1},children:[p.jsx("div",{className:"text-4xl font-bold text-yellow-300 mb-2",children:n.number}),p.jsx("div",{className:"text-white/90",children:n.label})]},r))})})]})})}const Hg=W.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:be("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Hg.displayName="Textarea";function mP(){const[e,t]=w.useState({name:"",email:"",phone:"",message:""}),{toast:n}=Bo(),r=[{icon:jo,title:"Teléfono",info:"0414-693-7412",action:()=>window.location.href="tel:+584146937412"},{icon:No,title:"Email",info:"comercializadoraalimentos02@yahoo.com",action:()=>window.location.href="mailto:comercializadoraalimentos02@yahoo.com"},{icon:ls,title:"Ubicación",info:"Valencia, Estado Carabobo, Venezuela",action:()=>n({title:"📍 Ubicación",description:"Nos encontramos en Valencia, Estado Carabobo. ¡Contáctanos para más detalles!"})},{icon:ic,title:"Horarios",info:"Lun-Sáb: 8:00 AM - 6:00 PM",action:()=>n({title:"🕒 Horarios de Atención",description:"Estamos disponibles de Lunes a Sábado de 8:00 AM a 6:00 PM"})}],o=a=>{a.preventDefault(),n({title:"🚧 Formulario de Contacto",description:"¡Esta función no está implementada aún—pero no te preocupes! ¡Puedes solicitarla en tu próximo mensaje! 🚀"})},i=a=>{t({...e,[a.target.name]:a.target.value})},s=()=>{const a=encodeURIComponent("¡Hola! Me interesa conocer más sobre sus productos de Comercializadora de Alimentos.");window.open(`https://wa.me/584146937412?text=${a}`,"_blank")};return p.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:p.jsxs("div",{className:"container mx-auto px-4",children:[p.jsxs(F.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[p.jsx("h2",{className:"text-4xl font-bold text-gray-800 mb-4",children:p.jsx("span",{className:"text-green-600",children:"Contáctanos"})}),p.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Estamos aquí para atenderte. Ponte en contacto con nosotros para cualquier consulta, pedido especial o información sobre nuestros productos y servicios."})]}),p.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[p.jsxs(F.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},children:[p.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-8",children:"Información de Contacto"}),p.jsx("div",{className:"space-y-6 mb-8",children:r.map((a,l)=>p.jsxs(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:l*.1},whileHover:{scale:1.02},className:"flex items-center p-4 bg-white rounded-lg shadow-md hover:shadow-lg transition-all cursor-pointer",onClick:a.action,children:[p.jsx("div",{className:"w-12 h-12 bg-green-600 rounded-full flex items-center justify-center mr-4",children:p.jsx(a.icon,{className:"w-6 h-6 text-white"})}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold text-gray-800",children:a.title}),p.jsx("p",{className:"text-gray-600",children:a.info})]})]},l))}),p.jsx(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8},children:p.jsxs(me,{onClick:s,className:"w-full bg-green-500 hover:bg-green-600 text-white py-3 text-lg",size:"lg",children:[p.jsx(hC,{className:"w-5 h-5 mr-2"}),"Escribir por WhatsApp"]})}),p.jsx(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"mt-8",children:p.jsxs(bo,{className:"bg-gradient-to-br from-green-600 to-green-700 text-white",children:[p.jsx(Dl,{children:p.jsx(_l,{className:"text-center text-xl",children:"Comercializadora de Alimentos"})}),p.jsxs(Ao,{className:"text-center space-y-2",children:[p.jsxs("p",{className:"flex items-center justify-center",children:[p.jsx(jo,{className:"w-4 h-4 mr-2"}),"0414-693-7412"]}),p.jsxs("p",{className:"flex items-center justify-center text-sm",children:[p.jsx(No,{className:"w-4 h-4 mr-2"}),"comercializadoraalimentos02@yahoo.com"]}),p.jsxs("p",{className:"flex items-center justify-center text-sm",children:[p.jsx(ls,{className:"w-4 h-4 mr-2"}),"Valencia, Estado Carabobo, Venezuela"]})]})]})})]}),p.jsx(F.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8},children:p.jsxs(bo,{children:[p.jsx(Dl,{children:p.jsx(_l,{className:"text-2xl text-gray-800",children:"Envíanos un Mensaje"})}),p.jsx(Ao,{children:p.jsxs("form",{onSubmit:o,className:"space-y-6",children:[p.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Nombre Completo"}),p.jsx(oo,{name:"name",value:e.name,onChange:i,placeholder:"Tu nombre completo",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Teléfono"}),p.jsx(oo,{name:"phone",value:e.phone,onChange:i,placeholder:"Tu número de teléfono",required:!0})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email"}),p.jsx(oo,{name:"email",type:"email",value:e.email,onChange:i,placeholder:"tu@email.com",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Mensaje"}),p.jsx(Hg,{name:"message",value:e.message,onChange:i,placeholder:"Cuéntanos cómo podemos ayudarte...",rows:5,required:!0})]}),p.jsxs(me,{type:"submit",className:"w-full bg-green-600 hover:bg-green-700 text-white py-3",size:"lg",children:[p.jsx(vC,{className:"w-4 h-4 mr-2"}),"Enviar Mensaje"]})]})})]})})]})]})})}function gP(){const e=new Date().getFullYear(),t=[{title:"Contacto",items:[{icon:jo,text:"0414-693-7412",href:"tel:+584146937412"},{icon:No,text:"comercializadoraalimentos02@yahoo.com",href:"mailto:comercializadoraalimentos02@yahoo.com"},{icon:ls,text:"Valencia, Estado Carabobo"},{icon:ic,text:"Lun-Sáb: 8:00 AM - 6:00 PM"}]},{title:"Productos",items:[{text:"Granos y Cereales"},{text:"Aceites y Grasas"},{text:"Pastas y Harinas"},{text:"Conservas y Lácteos"},{text:"Condimentos y Salsas"}]},{title:"Servicios",items:[{text:"Entrega a Domicilio"},{text:"Pedidos por WhatsApp"},{text:"Atención Personalizada"},{text:"Productos de Calidad"},{text:"Precios Competitivos"}]}];return p.jsx("footer",{className:"bg-gray-900 text-white",children:p.jsxs("div",{className:"container mx-auto px-4 py-12",children:[p.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[p.jsxs(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},children:[p.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[p.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-green-500 to-green-600 rounded-lg flex items-center justify-center",children:p.jsx("span",{className:"text-white font-bold text-lg",children:"CA"})}),p.jsxs("div",{children:[p.jsx("span",{className:"font-bold text-lg",children:"Comercializadora"}),p.jsx("p",{className:"text-green-400 text-sm -mt-1",children:"de Alimentos"})]})]}),p.jsx("p",{className:"text-gray-300 text-sm leading-relaxed mb-4",children:"Tu tienda de confianza en Valencia, Carabobo. Ofrecemos productos alimenticios de primera calidad para satisfacer las necesidades de tu familia."}),p.jsxs("div",{className:"flex items-center text-green-400 text-sm",children:[p.jsx(Lg,{className:"w-4 h-4 mr-1"}),p.jsx("span",{children:"Alimentando familias desde 2008"})]})]}),t.map((n,r)=>p.jsxs(F.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},children:[p.jsx("span",{className:"font-semibold text-lg text-green-400 mb-4 block",children:n.title}),p.jsx("ul",{className:"space-y-2",children:n.items.map((o,i)=>p.jsx("li",{children:o.href?p.jsxs("a",{href:o.href,className:"text-gray-300 hover:text-green-400 transition-colors text-sm flex items-center",children:[o.icon&&p.jsx(o.icon,{className:"w-4 h-4 mr-2"}),o.text]}):p.jsxs("span",{className:"text-gray-300 text-sm flex items-center",children:[o.icon&&p.jsx(o.icon,{className:"w-4 h-4 mr-2"}),o.text]})},i))})]},n.title))]}),p.jsx(F.div,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.6,delay:.4},className:"border-t border-gray-800 mt-12 pt-8",children:p.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[p.jsxs("p",{className:"text-gray-400 text-sm text-center md:text-left",children:["© ",e," Comercializadora de Alimentos. Todos los derechos reservados."]}),p.jsxs("div",{className:"flex items-center space-x-6 text-sm text-gray-400",children:[p.jsx("span",{children:"Valencia, Estado Carabobo, Venezuela"}),p.jsx("span",{className:"hidden md:inline",children:"|"}),p.jsx("span",{children:"RIF: J-30542689"})]})]})})]})})}function yP({isOpen:e,onClose:t}){const{cart:n,updateQuantity:r,removeFromCart:o,getTotalPrice:i,clearCart:s}=cc(),{toast:a}=Bo(),l=()=>{if(n.length===0){a({title:"Carrito vacío",description:"Agrega algunos productos antes de proceder al checkout."});return}a({title:"🚧 Checkout",description:"¡Esta función no está implementada aún—pero no te preocupes! ¡Puedes solicitarla en tu próximo mensaje! 🚀"})},u=()=>{if(n.length===0){a({title:"Carrito vacío",description:"Agrega algunos productos antes de hacer el pedido."});return}const c=n.map(m=>`• ${m.name} - Cantidad: ${m.quantity} - $${(m.price*m.quantity).toFixed(2)}`).join(` `),d=i().toFixed(2),f=encodeURIComponent(`¡Hola! Me gustaría hacer el siguiente pedido: ${c} Total: $${d} ¡Gracias!`);window.open(`https://wa.me/584146937412?text=${f}`,"_blank")};return p.jsx(lC,{children:e&&p.jsxs(p.Fragment,{children:[p.jsx(F.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 z-50",onClick:t}),p.jsxs(F.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed right-0 top-0 h-full w-full max-w-md bg-white shadow-2xl z-50 flex flex-col",children:[p.jsxs("div",{className:"flex items-center justify-between p-6 border-b",children:[p.jsxs("h2",{className:"text-2xl font-bold text-gray-800 flex items-center",children:[p.jsx(Of,{className:"w-6 h-6 mr-2 text-green-600"}),"Carrito de Compras"]}),p.jsx(me,{variant:"ghost",size:"sm",onClick:t,children:p.jsx(ac,{className:"w-5 h-5"})})]}),p.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:n.length===0?p.jsxs("div",{className:"text-center py-12",children:[p.jsx(Of,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),p.jsx("p",{className:"text-gray-500 text-lg",children:"Tu carrito está vacío"}),p.jsx("p",{className:"text-gray-400 text-sm mt-2",children:"Agrega algunos productos para comenzar"})]}):p.jsx("div",{className:"space-y-4",children:n.map(c=>p.jsx(F.div,{layout:!0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:p.jsx(bo,{children:p.jsx(Ao,{className:"p-4",children:p.jsxs("div",{className:"flex items-start space-x-3",children:[p.jsx("img",{className:"w-16 h-16 object-cover rounded-lg",alt:c.name,src:"https://images.unsplash.com/photo-1595872018818-97555653a011"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("h3",{className:"font-semibold text-gray-800 text-sm",children:c.name}),p.jsxs("p",{className:"text-green-600 font-bold",children:["$",c.price.toFixed(2)," / ",c.unit]}),p.jsxs("div",{className:"flex items-center justify-between mt-2",children:[p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx(me,{variant:"outline",size:"sm",onClick:()=>r(c.id,c.quantity-1),className:"w-8 h-8 p-0",children:p.jsx(mC,{className:"w-3 h-3"})}),p.jsx("span",{className:"font-semibold min-w-[2rem] text-center",children:c.quantity}),p.jsx(me,{variant:"outline",size:"sm",onClick:()=>r(c.id,c.quantity+1),className:"w-8 h-8 p-0",children:p.jsx(gC,{className:"w-3 h-3"})})]}),p.jsx(me,{variant:"ghost",size:"sm",onClick:()=>o(c.id),className:"text-red-500 hover:text-red-700 p-1",children:p.jsx(SC,{className:"w-4 h-4"})})]}),p.jsxs("p",{className:"text-sm text-gray-600 mt-1",children:["Subtotal: $",(c.price*c.quantity).toFixed(2)]})]})]})})})},c.id))})}),n.length>0&&p.jsxs("div",{className:"border-t p-6 space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center text-xl font-bold",children:[p.jsx("span",{children:"Total:"}),p.jsxs("span",{className:"text-green-600",children:["$",i().toFixed(2)]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(me,{onClick:u,className:"w-full bg-green-500 hover:bg-green-600 text-white",size:"lg",children:"Pedir por WhatsApp"}),p.jsx(me,{onClick:l,variant:"outline",className:"w-full border-green-200 text-green-700 hover:bg-green-50",size:"lg",children:"Proceder al Checkout"}),p.jsx(me,{onClick:s,variant:"ghost",className:"w-full text-red-500 hover:text-red-700 hover:bg-red-50",children:"Vaciar Carrito"})]})]})]})]})})}function Ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Wg(e,t=[]){let n=[];function r(i,s){const a=w.createContext(s),l=n.length;n=[...n,s];const u=d=>{var y;const{scope:f,children:m,...x}=d,v=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,T=w.useMemo(()=>x,Object.values(x));return p.jsx(v.Provider,{value:T,children:m})};u.displayName=i+"Provider";function c(d,f){var v;const m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=w.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}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,vP(o,...t)]}function vP(...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 d=l(i)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function xP(e){const t=e+"CollectionProvider",[n,r]=Wg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:T,children:y}=v,h=W.useRef(null),g=W.useRef(new Map).current;return p.jsx(o,{scope:T,itemMap:g,collectionRef:h,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=us(a),u=W.forwardRef((v,T)=>{const{scope:y,children:h}=v,g=i(a,y),S=On(T,g.collectionRef);return p.jsx(l,{ref:S,children:h})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=us(c),m=W.forwardRef((v,T)=>{const{scope:y,children:h,...g}=v,S=W.useRef(null),C=On(T,S),E=i(c,y);return W.useEffect(()=>(E.itemMap.set(S,{ref:S,...g}),()=>void E.itemMap.delete(S))),p.jsx(f,{[d]:"",ref:C,children:h})});m.displayName=c;function x(v){const T=i(e+"CollectionConsumer",v);return W.useCallback(()=>{const h=T.collectionRef.current;if(!h)return[];const g=Array.from(h.querySelectorAll(`[${d}]`));return Array.from(T.itemMap.values()).sort((E,P)=>g.indexOf(E.ref.current)-g.indexOf(P.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},x,r]}var wP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tt=wP.reduce((e,t)=>{const n=us(`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),p.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gg(e,t){e&&ks.flushSync(()=>e.dispatchEvent(t))}function Vn(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 SP(e,t=globalThis==null?void 0:globalThis.document){const n=Vn(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 TP="DismissableLayer",Fl="dismissableLayer.update",CP="dismissableLayer.pointerDownOutside",PP="dismissableLayer.focusOutside",Uf,Kg=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yg=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(Kg),[c,d]=w.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=w.useState({}),x=On(t,P=>d(P)),v=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(T),h=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=y,C=kP(P=>{const k=P.target,A=[...u.branches].some(R=>R.contains(k));!S||A||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},f),E=NP(P=>{const k=P.target;[...u.branches].some(R=>R.contains(k))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},f);return SP(P=>{h===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Uf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),$f(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Uf)}},[c,f,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),$f())},[c,u]),w.useEffect(()=>{const P=()=>m({});return document.addEventListener(Fl,P),()=>document.removeEventListener(Fl,P)},[]),p.jsx(Tt.div,{...l,ref:x,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:Ge(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ge(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ge(e.onPointerDownCapture,C.onPointerDownCapture)})});Yg.displayName=TP;var EP="DismissableLayerBranch",Qg=w.forwardRef((e,t)=>{const n=w.useContext(Kg),r=w.useRef(null),o=On(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(Tt.div,{...e,ref:o})});Qg.displayName=EP;function kP(e,t=globalThis==null?void 0:globalThis.document){const n=Vn(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Xg(CP,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 NP(e,t=globalThis==null?void 0:globalThis.document){const n=Vn(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xg(PP,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 $f(){const e=new CustomEvent(Fl);document.dispatchEvent(e)}function Xg(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?Gg(o,i):o.dispatchEvent(i)}var jP=Yg,bP=Qg,Ro=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},AP="Portal",qg=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);Ro(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?q0.createPortal(p.jsx(Tt.div,{...r,ref:t}),s):null});qg.displayName=AP;function RP(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Zg=e=>{const{present:t,children:n}=e,r=MP(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=On(r.ref,LP(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};Zg.displayName="Presence";function MP(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=RP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=fi(r.current);i.current=a==="mounted"?u:"none"},[a]),Ro(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,m=fi(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ro(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const v=fi(r.current).includes(m.animationName);if(m.target===t&&v&&(l("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},f=m=>{m.target===t&&(i.current=fi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function fi(e){return(e==null?void 0:e.animationName)||"none"}function LP(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 OP=zy[" useInsertionEffect ".trim().toString()]||Ro;function VP({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=IP({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"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.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var d;if(a){const f=DP(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function IP({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),i=w.useRef(t);return OP(()=>{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 DP(e){return typeof e=="function"}var _P=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"}),FP="VisuallyHidden",dc=w.forwardRef((e,t)=>p.jsx(Tt.span,{...e,ref:t,style:{..._P,...e.style}}));dc.displayName=FP;var fc="ToastProvider",[pc,zP,BP]=xP("Toast"),[Jg,dE]=Wg("Toast",[BP]),[UP,Vs]=Jg(fc),ey=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,c]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${fc}\`. Expected non-empty \`string\`.`),p.jsx(pc.Provider,{scope:t,children:p.jsx(UP,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(m=>m+1),[]),onToastRemove:w.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};ey.displayName=fc;var ty="ToastViewport",$P=["F8"],zl="toast.viewportPause",Bl="toast.viewportResume",ny=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=$P,label:o="Notifications ({hotkey})",...i}=e,s=Vs(ty,n),a=zP(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=On(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;w.useEffect(()=>{const T=y=>{var g;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),w.useEffect(()=>{const T=l.current,y=d.current;if(x&&T&&y){const h=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent(zl);y.dispatchEvent(E),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Bl);y.dispatchEvent(E),s.isClosePausedRef.current=!1}},S=E=>{!T.contains(E.relatedTarget)&&g()},C=()=>{T.contains(document.activeElement)||g()};return T.addEventListener("focusin",h),T.addEventListener("focusout",S),T.addEventListener("pointermove",h),T.addEventListener("pointerleave",C),window.addEventListener("blur",h),window.addEventListener("focus",g),()=>{T.removeEventListener("focusin",h),T.removeEventListener("focusout",S),T.removeEventListener("pointermove",h),T.removeEventListener("pointerleave",C),window.removeEventListener("blur",h),window.removeEventListener("focus",g)}}},[x,s.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:T})=>{const h=a().map(g=>{const S=g.ref.current,C=[S,...nE(S)];return T==="forwards"?C:C.reverse()});return(T==="forwards"?h.reverse():h).flat()},[a]);return w.useEffect(()=>{const T=d.current;if(T){const y=h=>{var C,E,P;const g=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!g){const k=document.activeElement,A=h.shiftKey;if(h.target===T&&A){(C=u.current)==null||C.focus();return}const V=v({tabbingDirection:A?"backwards":"forwards"}),oe=V.findIndex(M=>M===k);Pa(V.slice(oe+1))?h.preventDefault():A?(E=u.current)==null||E.focus():(P=c.current)==null||P.focus()}};return T.addEventListener("keydown",y),()=>T.removeEventListener("keydown",y)}},[a,v]),p.jsxs(bP,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&p.jsx(Ul,{ref:u,onFocusFromOutsideViewport:()=>{const T=v({tabbingDirection:"forwards"});Pa(T)}}),p.jsx(pc.Slot,{scope:n,children:p.jsx(Tt.ol,{tabIndex:-1,...i,ref:f})}),x&&p.jsx(Ul,{ref:c,onFocusFromOutsideViewport:()=>{const T=v({tabbingDirection:"backwards"});Pa(T)}})]})});ny.displayName=ty;var ry="ToastFocusProxy",Ul=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Vs(ry,n);return p.jsx(dc,{"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()}})});Ul.displayName=ry;var Uo="Toast",HP="toast.swipeStart",WP="toast.swipeMove",GP="toast.swipeCancel",KP="toast.swipeEnd",oy=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=VP({prop:r,defaultProp:o??!0,onChange:i,caller:Uo});return p.jsx(Zg,{present:n||a,children:p.jsx(XP,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Vn(e.onPause),onResume:Vn(e.onResume),onSwipeStart:Ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ge(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ge(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:Ge(e.onSwipeEnd,u=>{const{x:c,y:d}=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",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});oy.displayName=Uo;var[YP,QP]=Jg(Uo,{onClose(){}}),XP=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:m,...x}=e,v=Vs(Uo,n),[T,y]=w.useState(null),h=On(t,M=>y(M)),g=w.useRef(null),S=w.useRef(null),C=o||v.duration,E=w.useRef(0),P=w.useRef(C),k=w.useRef(0),{onToastAdd:A,onToastRemove:R}=v,G=Vn(()=>{var ee;(T==null?void 0:T.contains(document.activeElement))&&((ee=v.viewport)==null||ee.focus()),s()}),V=w.useCallback(M=>{!M||M===1/0||(window.clearTimeout(k.current),E.current=new Date().getTime(),k.current=window.setTimeout(G,M))},[G]);w.useEffect(()=>{const M=v.viewport;if(M){const ee=()=>{V(P.current),u==null||u()},U=()=>{const de=new Date().getTime()-E.current;P.current=P.current-de,window.clearTimeout(k.current),l==null||l()};return M.addEventListener(zl,U),M.addEventListener(Bl,ee),()=>{M.removeEventListener(zl,U),M.removeEventListener(Bl,ee)}}},[v.viewport,C,l,u,V]),w.useEffect(()=>{i&&!v.isClosePausedRef.current&&V(C)},[i,C,v.isClosePausedRef,V]),w.useEffect(()=>(A(),()=>R()),[A,R]);const oe=w.useMemo(()=>T?dy(T):null,[T]);return v.viewport?p.jsxs(p.Fragment,{children:[oe&&p.jsx(qP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),p.jsx(YP,{scope:n,onClose:G,children:ks.createPortal(p.jsx(pc.ItemSlot,{scope:n,children:p.jsx(jP,{asChild:!0,onEscapeKeyDown:Ge(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||G(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(Tt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ge(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:Ge(e.onPointerDown,M=>{M.button===0&&(g.current={x:M.clientX,y:M.clientY})}),onPointerMove:Ge(e.onPointerMove,M=>{if(!g.current)return;const ee=M.clientX-g.current.x,U=M.clientY-g.current.y,de=!!S.current,j=["left","right"].includes(v.swipeDirection),L=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=j?L(0,ee):0,O=j?0:L(0,U),$=M.pointerType==="touch"?10:2,Y={x:D,y:O},$e={originalEvent:M,delta:Y};de?(S.current=Y,pi(WP,d,$e,{discrete:!1})):Hf(Y,v.swipeDirection,$)?(S.current=Y,pi(HP,c,$e,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(ee)>$||Math.abs(U)>$)&&(g.current=null)}),onPointerUp:Ge(e.onPointerUp,M=>{const ee=S.current,U=M.target;if(U.hasPointerCapture(M.pointerId)&&U.releasePointerCapture(M.pointerId),S.current=null,g.current=null,ee){const de=M.currentTarget,j={originalEvent:M,delta:ee};Hf(ee,v.swipeDirection,v.swipeThreshold)?pi(KP,m,j,{discrete:!0}):pi(GP,f,j,{discrete:!0}),de.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),qP=e=>{const{__scopeToast:t,children:n,...r}=e,o=Vs(Uo,t),[i,s]=w.useState(!1),[a,l]=w.useState(!1);return eE(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:p.jsx(qg,{asChild:!0,children:p.jsx(dc,{...r,children:i&&p.jsxs(p.Fragment,{children:[o.label," ",n]})})})},ZP="ToastTitle",iy=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Tt.div,{...r,ref:t})});iy.displayName=ZP;var JP="ToastDescription",sy=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(Tt.div,{...r,ref:t})});sy.displayName=JP;var ay="ToastAction",ly=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(cy,{altText:n,asChild:!0,children:p.jsx(hc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ay}\`. Expected non-empty \`string\`.`),null)});ly.displayName=ay;var uy="ToastClose",hc=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=QP(uy,n);return p.jsx(cy,{asChild:!0,children:p.jsx(Tt.button,{type:"button",...r,ref:t,onClick:Ge(e.onClick,o.onClose)})})});hc.displayName=uy;var cy=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return p.jsx(Tt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function dy(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),tE(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(...dy(r))}}),t}function pi(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?Gg(o,i):o.dispatchEvent(i)}var Hf=(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 eE(e=()=>{}){const t=Vn(e);Ro(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function tE(e){return e.nodeType===e.ELEMENT_NODE}function nE(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 Pa(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var rE=ey,fy=ny,py=oy,hy=iy,my=sy,gy=ly,yy=hc;const oE=rE,vy=W.forwardRef(({className:e,...t},n)=>p.jsx(fy,{ref:n,className:be("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}));vy.displayName=fy.displayName;const iE=uc("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"}}),xy=W.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(py,{ref:r,className:be(iE({variant:t}),e),...n}));xy.displayName=py.displayName;const sE=W.forwardRef(({className:e,...t},n)=>p.jsx(gy,{ref:n,className:be("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}));sE.displayName=gy.displayName;const wy=W.forwardRef(({className:e,...t},n)=>p.jsx(yy,{ref:n,className:be("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:p.jsx(ac,{className:"h-4 w-4"})}));wy.displayName=yy.displayName;const Sy=W.forwardRef(({className:e,...t},n)=>p.jsx(hy,{ref:n,className:be("text-sm font-semibold",e),...t}));Sy.displayName=hy.displayName;const Ty=W.forwardRef(({className:e,...t},n)=>p.jsx(my,{ref:n,className:be("text-sm opacity-90",e),...t}));Ty.displayName=my.displayName;function aE(){const{toasts:e}=Bo();return p.jsxs(oE,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>p.jsxs(xy,{...i,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(Sy,{children:n}),r&&p.jsx(Ty,{children:r})]}),o,p.jsx(wy,{})]},t)),p.jsx(vy,{})]})}function lE(){const[e,t]=w.useState(!1),n=s=>{const a=document.getElementById(s);a&&a.scrollIntoView({behavior:"smooth"})},r=()=>{n("products")},o=()=>{t(!0)},i=()=>{t(!1)};return p.jsxs(p.Fragment,{children:[p.jsxs(Sl,{children:[p.jsx("title",{children:"Comercializadora de Alimentos - Valencia, Carabobo | Productos de Calidad"}),p.jsx("meta",{name:"description",content:"Comercializadora de Alimentos en Valencia, Estado Carabobo. Amplia variedad de productos alimenticios de primera calidad: granos, cereales, aceites, pastas, conservas y más. Entrega a domicilio. Tel: 0414-693-7412"}),p.jsx("meta",{name:"keywords",content:"alimentos valencia, comercializadora alimentos carabobo, productos alimenticios venezuela, granos cereales valencia, aceites comestibles, pastas harinas, conservas lacteos, entrega domicilio valencia"}),p.jsx("meta",{name:"author",content:"Comercializadora de Alimentos"}),p.jsx("meta",{property:"og:title",content:"Comercializadora de Alimentos - Valencia, Carabobo"}),p.jsx("meta",{property:"og:description",content:"Tu tienda de confianza para productos alimenticios de calidad en Valencia, Estado Carabobo. Amplia variedad, precios competitivos y entrega a domicilio."}),p.jsx("meta",{property:"og:type",content:"website"}),p.jsx("meta",{name:"geo.region",content:"VE-G"}),p.jsx("meta",{name:"geo.placename",content:"Valencia, Carabobo"}),p.jsx("meta",{name:"geo.position",content:"10.1621;-68.0077"}),p.jsx("meta",{name:"ICBM",content:"10.1621, -68.0077"})]}),p.jsxs("div",{className:"min-h-screen",children:[p.jsx(aP,{onCartClick:o,onSectionClick:n}),p.jsxs("main",{children:[p.jsx(lP,{onShopClick:r}),p.jsx(pP,{}),p.jsx(hP,{}),p.jsx(mP,{})]}),p.jsx(gP,{}),p.jsx(yP,{isOpen:e,onClose:i}),p.jsx(aE,{})]})]})}Ea.createRoot(document.getElementById("root")).render(p.jsx(W.StrictMode,{children:p.jsx(lE,{})}));