diff --git "a/assets/index-vyGG44Ss.js" "b/assets/index-vyGG44Ss.js" new file mode 100644--- /dev/null +++ "b/assets/index-vyGG44Ss.js" @@ -0,0 +1,41 @@ +(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function a(c){if(c.ep)return;c.ep=!0;const h=o(c);fetch(c.href,h)}})();var Ul={exports:{}},ri={},Wl={exports:{}},ie={};/** + * @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 Qf;function Ug(){if(Qf)return ie;Qf=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function P(k){return k===null||typeof k!="object"?null:(k=S&&k[S]||k["@@iterator"],typeof k=="function"?k:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,V={};function L(k,D,ne){this.props=k,this.context=D,this.refs=V,this.updater=ne||R}L.prototype.isReactComponent={},L.prototype.setState=function(k,D){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,D,"setState")},L.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function N(){}N.prototype=L.prototype;function I(k,D,ne){this.props=k,this.context=D,this.refs=V,this.updater=ne||R}var $=I.prototype=new N;$.constructor=I,j($,L.prototype),$.isPureReactComponent=!0;var b=Array.isArray,G=Object.prototype.hasOwnProperty,te={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function q(k,D,ne){var se,ue={},ce=null,me=null;if(D!=null)for(se in D.ref!==void 0&&(me=D.ref),D.key!==void 0&&(ce=""+D.key),D)G.call(D,se)&&!ae.hasOwnProperty(se)&&(ue[se]=D[se]);var de=arguments.length-2;if(de===1)ue.children=ne;else if(1>>1,D=O[k];if(0>>1;kc(ue,B))cec(me,ue)?(O[k]=me,O[ce]=B,k=ce):(O[k]=ue,O[se]=B,k=se);else if(cec(me,B))O[k]=me,O[ce]=B,k=ce;else break e}}return Q}function c(O,Q){var B=O.sortIndex-Q.sortIndex;return B!==0?B:O.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,S=null,P=3,R=!1,j=!1,V=!1,L=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(O){for(var Q=o(g);Q!==null;){if(Q.callback===null)a(g);else if(Q.startTime<=O)a(g),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=o(g)}}function b(O){if(V=!1,$(O),!j)if(o(m)!==null)j=!0,Ye(G);else{var Q=o(g);Q!==null&&re(b,Q.startTime-O)}}function G(O,Q){j=!1,V&&(V=!1,N(q),q=-1),R=!0;var B=P;try{for($(Q),S=o(m);S!==null&&(!(S.expirationTime>Q)||O&&!qe());){var k=S.callback;if(typeof k=="function"){S.callback=null,P=S.priorityLevel;var D=k(S.expirationTime<=Q);Q=r.unstable_now(),typeof D=="function"?S.callback=D:S===o(m)&&a(m),$(Q)}else a(m);S=o(m)}if(S!==null)var ne=!0;else{var se=o(g);se!==null&&re(b,se.startTime-Q),ne=!1}return ne}finally{S=null,P=B,R=!1}}var te=!1,ae=null,q=-1,xe=5,Ce=-1;function qe(){return!(r.unstable_now()-CeO||125k?(O.sortIndex=B,i(g,O),o(m)===null&&O===o(g)&&(V?(N(q),q=-1):V=!0,re(b,B-k))):(O.sortIndex=D,i(m,O),j||R||(j=!0,Ye(G))),O},r.unstable_shouldYield=qe,r.unstable_wrapCallback=function(O){var Q=P;return function(){var B=P;P=Q;try{return O.apply(this,arguments)}finally{P=B}}}}(Kl)),Kl}var Jf;function Kg(){return Jf||(Jf=1,Hl.exports=Hg()),Hl.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 bf;function Gg(){if(bf)return it;bf=1;var r=Sa(),i=Kg();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},S={};function P(e){return m.call(S,e)?!0:m.call(v,e)?!1:g.test(e)?S[e]=!0:(v[e]=!0,!1)}function R(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,s){if(t===null||typeof t>"u"||R(e,t,n,s))return!0;if(s)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 V(e,t,n,s,l,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];L[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){L[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L[e]=new V(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){L[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){L[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){L[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){L[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){L[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function I(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(N,I);L[t]=new V(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(N,I);L[t]=new V(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(N,I);L[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){L[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),L.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){L[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,n,s){var l=L.hasOwnProperty(t)?L[t]:null;(l!==null?l.type!==0:s||!(2y||l[d]!==u[y]){var w=` +`+l[d].replace(" at new "," at ");return e.displayName&&w.includes("")&&(w=w.replace("",e.displayName)),w}while(1<=d&&0<=y);break}}}finally{ne=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function ue(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function ce(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 ae:return"Fragment";case te:return"Portal";case xe:return"Profiler";case q:return"StrictMode";case Qe:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case St:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Ye:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function me(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 ce(t);case 8:return t===q?"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 de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=we(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){s=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(d){s=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=ot(e))}function Ja(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=we(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function vi(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 Qs(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ba(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=de(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eu(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function Ys(e,t){eu(e,t);var n=de(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xs(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 Xs(e,t,n){(t!=="number"||vi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vr=Array.isArray;function In(e,t,n,s){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sr={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},Kp=["Webkit","ms","Moz","O"];Object.keys(Sr).forEach(function(e){Kp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sr[t]=Sr[e]})});function lu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sr.hasOwnProperty(e)&&Sr[e]?(""+t).trim():t+"px"}function au(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,l=lu(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,l):e[n]=l}}var Gp=B({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 Js(e,t){if(t){if(Gp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function bs(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 eo=null;function to(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var no=null,zn=null,Bn=null;function uu(e){if(e=Wr(e)){if(typeof no!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Wi(t),no(e.stateNode,e.type,t))}}function cu(e){zn?Bn?Bn.push(e):Bn=[e]:zn=e}function fu(){if(zn){var e=zn,t=Bn;if(Bn=zn=null,uu(e),t)for(e=0;e>>=0,e===0?32:31-(rm(e)/im|0)|0}var Ti=64,Ci=4194304;function Tr(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 Ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,l=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var y=d&~l;y!==0?s=Tr(y):(u&=d,u!==0&&(s=Tr(u)))}else d=n&~l,d!==0?s=Tr(d):u!==0&&(s=Tr(u));if(s===0)return 0;if(t!==0&&t!==s&&!(t&l)&&(l=s&-s,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function Cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function am(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 s=e.eventTimes;for(e=e.expirationTimes;0=_r),zu=" ",Bu=!1;function Uu(e,t){switch(e){case"keyup":return jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Im(e,t){switch(e){case"compositionend":return Wu(t);case"keypress":return t.which!==32?null:(Bu=!0,zu);case"textInput":return e=t.data,e===zu&&Bu?null:e;default:return null}}function zm(e,t){if($n)return e==="compositionend"||!xo&&Uu(e,t)?(e=_u(),Li=mo=bt=null,$n=!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=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xu(n)}}function qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ju(){for(var e=window,t=vi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vi(e.document)}return t}function To(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 Ym(e){var t=Ju(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qu(n.ownerDocument.documentElement,n)){if(s!==null&&To(n)){if(t=s.start,e=s.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 l=n.textContent.length,u=Math.min(s.start,l);s=s.end===void 0?u:Math.min(s.end,l),!e.extend&&u>s&&(l=s,s=u,u=l),l=Zu(n,u);var d=Zu(n,s);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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,Hn=null,Co=null,Or=null,Eo=!1;function bu(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eo||Hn==null||Hn!==vi(s)||(s=Hn,"selectionStart"in s&&To(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Or&&jr(Or,s)||(Or=s,s=zi(Co,"onSelect"),0Xn||(e.current=Io[Xn],Io[Xn]=null,Xn--)}function ge(e,t){Xn++,Io[Xn]=e.current,e.current=t}var rn={},Be=nn(rn),be=nn(!1),xn=rn;function Zn(e,t){var n=e.type.contextTypes;if(!n)return rn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function $i(){ve(be),ve(Be)}function pc(e,t,n){if(Be.current!==rn)throw Error(o(168));ge(Be,t),ge(be,n)}function mc(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var l in s)if(!(l in t))throw Error(o(108,me(e)||"Unknown",l));return B({},n,s)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,xn=Be.current,ge(Be,e),ge(be,be.current),!0}function gc(e,t,n){var s=e.stateNode;if(!s)throw Error(o(169));n?(e=mc(e,t,xn),s.__reactInternalMemoizedMergedChildContext=e,ve(be),ve(Be),ge(Be,e)):ve(be),ge(be,n)}var jt=null,Ki=!1,zo=!1;function yc(e){jt===null?jt=[e]:jt.push(e)}function og(e){Ki=!0,yc(e)}function sn(){if(!zo&&jt!==null){zo=!0;var e=0,t=he;try{var n=jt;for(he=1;e>=d,l-=d,Ot=1<<32-xt(t)+l|n<ee?(je=X,X=null):je=X.sibling;var fe=A(T,X,C[ee],F);if(fe===null){X===null&&(X=je);break}e&&X&&fe.alternate===null&&t(T,X),x=u(fe,x,ee),Y===null?K=fe:Y.sibling=fe,Y=fe,X=je}if(ee===C.length)return n(T,X),Se&&kn(T,ee),K;if(X===null){for(;eeee?(je=X,X=null):je=X.sibling;var pn=A(T,X,fe.value,F);if(pn===null){X===null&&(X=je);break}e&&X&&pn.alternate===null&&t(T,X),x=u(pn,x,ee),Y===null?K=pn:Y.sibling=pn,Y=pn,X=je}if(fe.done)return n(T,X),Se&&kn(T,ee),K;if(X===null){for(;!fe.done;ee++,fe=C.next())fe=_(T,fe.value,F),fe!==null&&(x=u(fe,x,ee),Y===null?K=fe:Y.sibling=fe,Y=fe);return Se&&kn(T,ee),K}for(X=s(T,X);!fe.done;ee++,fe=C.next())fe=z(X,T,ee,fe.value,F),fe!==null&&(e&&fe.alternate!==null&&X.delete(fe.key===null?ee:fe.key),x=u(fe,x,ee),Y===null?K=fe:Y.sibling=fe,Y=fe);return e&&X.forEach(function(Bg){return t(T,Bg)}),Se&&kn(T,ee),K}function De(T,x,C,F){if(typeof C=="object"&&C!==null&&C.type===ae&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case G:e:{for(var K=C.key,Y=x;Y!==null;){if(Y.key===K){if(K=C.type,K===ae){if(Y.tag===7){n(T,Y.sibling),x=l(Y,C.props.children),x.return=T,T=x;break e}}else if(Y.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Ye&&kc(K)===Y.type){n(T,Y.sibling),x=l(Y,C.props),x.ref=$r(T,Y,C),x.return=T,T=x;break e}n(T,Y);break}else t(T,Y);Y=Y.sibling}C.type===ae?(x=Ln(C.props.children,T.mode,F,C.key),x.return=T,T=x):(F=ws(C.type,C.key,C.props,null,T.mode,F),F.ref=$r(T,x,C),F.return=T,T=F)}return d(T);case te:e:{for(Y=C.key;x!==null;){if(x.key===Y)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(T,x.sibling),x=l(x,C.children||[]),x.return=T,T=x;break e}else{n(T,x);break}else t(T,x);x=x.sibling}x=jl(C,T.mode,F),x.return=T,T=x}return d(T);case Ye:return Y=C._init,De(T,x,Y(C._payload),F)}if(vr(C))return W(T,x,C,F);if(Q(C))return H(T,x,C,F);Xi(T,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(T,x.sibling),x=l(x,C),x.return=T,T=x):(n(T,x),x=Fl(C,T.mode,F),x.return=T,T=x),d(T)):n(T,x)}return De}var er=Tc(!0),Cc=Tc(!1),Zi=nn(null),qi=null,tr=null,Ko=null;function Go(){Ko=tr=qi=null}function Qo(e){var t=Zi.current;ve(Zi),e._currentValue=t}function Yo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function nr(e,t){qi=e,Ko=tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},tr===null){if(qi===null)throw Error(o(308));tr=e,qi.dependencies={lanes:0,firstContext:e}}else tr=tr.next=e;return t}var Tn=null;function Xo(e){Tn===null?Tn=[e]:Tn.push(e)}function Ec(e,t,n,s){var l=t.interleaved;return l===null?(n.next=n,Xo(t)):(n.next=l.next,l.next=n),t.interleaved=n,zt(e,s)}function zt(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 on=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rc(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 ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,oe&2){var l=s.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),s.pending=t,zt(e,n)}return l=s.interleaved,l===null?(t.next=t,Xo(s)):(t.next=l.next,l.next=t),s.interleaved=t,zt(e,n)}function Ji(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,uo(e,n)}}function Ac(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bi(e,t,n,s){var l=e.updateQueue;on=!1;var u=l.firstBaseUpdate,d=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var w=y,E=w.next;w.next=null,d===null?u=E:d.next=E,d=w;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==d&&(y===null?M.firstBaseUpdate=E:y.next=E,M.lastBaseUpdate=w))}if(u!==null){var _=l.baseState;d=0,M=E=w=null,y=u;do{var A=y.lane,z=y.eventTime;if((s&A)===A){M!==null&&(M=M.next={eventTime:z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var W=e,H=y;switch(A=t,z=n,H.tag){case 1:if(W=H.payload,typeof W=="function"){_=W.call(z,_,A);break e}_=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=H.payload,A=typeof W=="function"?W.call(z,_,A):W,A==null)break e;_=B({},_,A);break e;case 2:on=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=l.effects,A===null?l.effects=[y]:A.push(y))}else z={eventTime:z,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(E=M=z,w=_):M=M.next=z,d|=A;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;A=y,y=A.next,A.next=null,l.lastBaseUpdate=A,l.shared.pending=null}}while(!0);if(M===null&&(w=_),l.baseState=w,l.firstBaseUpdate=E,l.lastBaseUpdate=M,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Rn|=d,e.lanes=d,e.memoizedState=_}}function Dc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=tl.transition;tl.transition={};try{e(!1),t()}finally{he=n,tl.transition=s}}function Yc(){return mt().memoizedState}function cg(e,t,n){var s=fn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Xc(e))Zc(t,n);else if(n=Ec(e,t,n,s),n!==null){var l=Ze();Rt(n,e,s,l),qc(n,t,s)}}function fg(e,t,n){var s=fn(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xc(e))Zc(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,y=u(d,n);if(l.hasEagerState=!0,l.eagerState=y,Pt(y,d)){var w=t.interleaved;w===null?(l.next=l,Xo(t)):(l.next=w.next,w.next=l),t.interleaved=l;return}}catch{}finally{}n=Ec(e,t,l,s),n!==null&&(l=Ze(),Rt(n,e,s,l),qc(n,t,s))}}function Xc(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Zc(e,t){Qr=ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qc(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,uo(e,n)}}var ss={readContext:pt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},dg={readContext:pt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Bc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rs(4194308,4,$c.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return rs(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Lt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=cg.bind(null,ke,e),[s.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Ic,useDebugValue:al,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Ic(!1),t=e[0];return e=ug.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=ke,l=Lt();if(Se){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Fe===null)throw Error(o(349));En&30||_c(s,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Bc(Fc.bind(null,s,u,e),[e]),s.flags|=2048,Zr(9,Nc.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(Se){var n=It,s=Ot;n=(s&~(1<<32-xt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=d.createElement(n,{is:s.is}):(e=d.createElement(n),n==="select"&&(d=e,s.multiple?d.multiple=!0:s.size&&(d.size=s.size))):e=d.createElementNS(e,n),e[Dt]=t,e[Ur]=s,vf(e,t,!1,!1),t.stateNode=e;e:{switch(d=bs(n,s),n){case"dialog":ye("cancel",e),ye("close",e),l=s;break;case"iframe":case"object":case"embed":ye("load",e),l=s;break;case"video":case"audio":for(l=0;llr&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304)}else{if(!s)if(e=es(d),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Se)return We(t),null}else 2*Ae()-u.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ae(),t.sibling=null,n=Pe.current,ge(Pe,s?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Vl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?ct&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Sg(e,t){switch(Uo(t),t.tag){case 1:return et(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),ve(be),ve(Be),el(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jo(t),null;case 13:if(ve(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Pe),null;case 4:return rr(),null;case 10:return Qo(t.type._context),null;case 22:case 23:return Vl(),null;case 24:return null;default:return null}}var us=!1,$e=!1,xg=typeof WeakSet=="function"?WeakSet:Set,U=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ee(e,t,s)}else n.current=null}function Sl(e,t,n){try{n()}catch(s){Ee(e,t,s)}}var xf=!1;function Pg(e,t){if(Vo=Di,e=Ju(),To(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,y=-1,w=-1,E=0,M=0,_=e,A=null;t:for(;;){for(var z;_!==n||l!==0&&_.nodeType!==3||(y=d+l),_!==u||s!==0&&_.nodeType!==3||(w=d+s),_.nodeType===3&&(d+=_.nodeValue.length),(z=_.firstChild)!==null;)A=_,_=z;for(;;){if(_===e)break t;if(A===n&&++E===l&&(y=d),A===u&&++M===s&&(w=d),(z=_.nextSibling)!==null)break;_=A,A=_.parentNode}_=z}n=y===-1||w===-1?null:{start:y,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(_o={focusedElem:e,selectionRange:n},Di=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var W=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var H=W.memoizedProps,De=W.memoizedState,T=t.stateNode,x=T.getSnapshotBeforeUpdate(t.elementType===t.type?H:Tt(t.type,H),De);T.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(F){Ee(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return W=xf,xf=!1,W}function Jr(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Sl(t,n,u)}l=l.next}while(l!==s)}}function cs(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 s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function xl(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 Pf(e){var t=e.alternate;t!==null&&(e.alternate=null,Pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dt],delete t[Ur],delete t[Oo],delete t[ig],delete t[sg])),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 kf(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kf(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 Pl(e,t,n){var s=e.tag;if(s===5||s===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=Ui));else if(s!==4&&(e=e.child,e!==null))for(Pl(e,t,n),e=e.sibling;e!==null;)Pl(e,t,n),e=e.sibling}function kl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var Oe=null,Ct=!1;function an(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(ki,n)}catch{}switch(n.tag){case 5:$e||sr(n,t);case 6:var s=Oe,l=Ct;Oe=null,an(e,t,n),Oe=s,Ct=l,Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?jo(e.parentNode,n):e.nodeType===1&&jo(e,n),Mr(e)):jo(Oe,n.stateNode));break;case 4:s=Oe,l=Ct,Oe=n.stateNode.containerInfo,Ct=!0,an(e,t,n),Oe=s,Ct=l;break;case 0:case 11:case 14:case 15:if(!$e&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var u=l,d=u.destroy;u=u.tag,d!==void 0&&(u&2||u&4)&&Sl(n,t,d),l=l.next}while(l!==s)}an(e,t,n);break;case 1:if(!$e&&(sr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){Ee(n,t,y)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?($e=(s=$e)||n.memoizedState!==null,an(e,t,n),$e=s):an(e,t,n);break;default:an(e,t,n)}}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xg),t.forEach(function(s){var l=Lg.bind(null,e,s);n.has(s)||(n.add(s),s.then(l,l))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var s=0;sl&&(l=d),s&=~u}if(s=l,s=Ae()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Tg(s/1960))-s,10e?16:e,cn===null)var s=!1;else{if(e=cn,cn=null,ms=0,oe&6)throw Error(o(331));var l=oe;for(oe|=4,U=e.current;U!==null;){var u=U,d=u.child;if(U.flags&16){var y=u.deletions;if(y!==null){for(var w=0;wAe()-El?Dn(e,0):Cl|=n),rt(e,t)}function zf(e,t){t===0&&(e.mode&1?(t=Ci,Ci<<=1,!(Ci&130023424)&&(Ci=4194304)):t=1);var n=Ze();e=zt(e,t),e!==null&&(Cr(e,t,n),rt(e,n))}function Mg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zf(e,n)}function Lg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),zf(e,n)}var Bf;Bf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,vg(e,t,n);tt=!!(e.flags&131072)}else tt=!1,Se&&t.flags&1048576&&vc(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;as(e,t),e=t.pendingProps;var l=Zn(t,Be.current);nr(t,n),l=rl(null,t,s,e,l,n);var u=il();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(s)?(u=!0,Hi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zo(t),l.updater=os,t.stateNode=l,l._reactInternals=t,cl(t,s,e,n),t=pl(null,t,s,!0,u,n)):(t.tag=0,Se&&u&&Bo(t),Xe(null,t,l,n),t=t.child),t;case 16:s=t.elementType;e:{switch(as(e,t),e=t.pendingProps,l=s._init,s=l(s._payload),t.type=s,l=t.tag=_g(s),e=Tt(s,e),l){case 0:t=hl(null,t,s,e,n);break e;case 1:t=df(null,t,s,e,n);break e;case 11:t=lf(null,t,s,e,n);break e;case 14:t=af(null,t,s,Tt(s.type,e),n);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Tt(s,l),hl(e,t,s,l,n);case 1:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Tt(s,l),df(e,t,s,l,n);case 3:e:{if(hf(t),e===null)throw Error(o(387));s=t.pendingProps,u=t.memoizedState,l=u.element,Rc(e,t),bi(t,s,null,n);var d=t.memoizedState;if(s=d.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=ir(Error(o(423)),t),t=pf(e,t,s,n,l);break e}else if(s!==l){l=ir(Error(o(424)),t),t=pf(e,t,s,n,l);break e}else for(ut=tn(t.stateNode.containerInfo.firstChild),at=t,Se=!0,kt=null,n=Cc(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),s===l){t=Ut(e,t,n);break e}Xe(e,t,s,n)}t=t.child}return t;case 5:return Mc(t),e===null&&$o(t),s=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,d=l.children,No(s,l)?d=null:u!==null&&No(s,u)&&(t.flags|=32),ff(e,t),Xe(e,t,d,n),t.child;case 6:return e===null&&$o(t),null;case 13:return mf(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=er(t,null,s,n):Xe(e,t,s,n),t.child;case 11:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Tt(s,l),lf(e,t,s,l,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,l=t.pendingProps,u=t.memoizedProps,d=l.value,ge(Zi,s._currentValue),s._currentValue=d,u!==null)if(Pt(u.value,d)){if(u.children===l.children&&!be.current){t=Ut(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){d=u.child;for(var w=y.firstContext;w!==null;){if(w.context===s){if(u.tag===1){w=Bt(-1,n&-n),w.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var M=E.pending;M===null?w.next=w:(w.next=M.next,M.next=w),E.pending=w}}u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),Yo(u.return,n,t),y.lanes|=n;break}w=w.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=n,y=d.alternate,y!==null&&(y.lanes|=n),Yo(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}Xe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,s=t.pendingProps.children,nr(t,n),l=pt(l),s=s(l),t.flags|=1,Xe(e,t,s,n),t.child;case 14:return s=t.type,l=Tt(s,t.pendingProps),l=Tt(s.type,l),af(e,t,s,l,n);case 15:return uf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Tt(s,l),as(e,t),t.tag=1,et(s)?(e=!0,Hi(t)):e=!1,nr(t,n),bc(t,s,l),cl(t,s,l,n),pl(null,t,s,!0,e,n);case 19:return yf(e,t,n);case 22:return cf(e,t,n)}throw Error(o(156,t.tag))};function Uf(e,t){return wu(e,t)}function Vg(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,s){return new Vg(e,t,n,s)}function Nl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _g(e){if(typeof e=="function")return Nl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===St)return 14}return 2}function hn(e,t){var n=e.alternate;return n===null?(n=yt(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 ws(e,t,n,s,l,u){var d=2;if(s=e,typeof e=="function")Nl(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ae:return Ln(n.children,l,u,t);case q:d=8,l|=8;break;case xe:return e=yt(12,n,t,l|2),e.elementType=xe,e.lanes=u,e;case Qe:return e=yt(13,n,t,l),e.elementType=Qe,e.lanes=u,e;case Je:return e=yt(19,n,t,l),e.elementType=Je,e.lanes=u,e;case re:return Ss(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ce:d=10;break e;case qe:d=9;break e;case st:d=11;break e;case St:d=14;break e;case Ye:d=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=yt(d,n,t,l),t.elementType=e,t.type=s,t.lanes=u,t}function Ln(e,t,n,s){return e=yt(7,e,s,t),e.lanes=n,e}function Ss(e,t,n,s){return e=yt(22,e,s,t),e.elementType=re,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function jl(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ng(e,t,n,s,l){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=ao(0),this.expirationTimes=ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ol(e,t,n,s,l,u,d,y,w){return e=new Ng(e,t,n,y,w),t===1?(t=1,u===!0&&(t|=8)):t=0,u=yt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zo(u),e}function Fg(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),$l.exports=Gg(),$l.exports}var td;function Yg(){if(td)return Rs;td=1;var r=Qg();return Rs.createRoot=r.createRoot,Rs.hydrateRoot=r.hydrateRoot,Rs}var Xg=Yg();function Zg(r){if(typeof Proxy>"u")return r;const i=new Map,o=(...a)=>r(...a);return new Proxy(o,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}function Us(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const ia=r=>Array.isArray(r);function mh(r,i){if(!Array.isArray(i))return!1;const o=i.length;if(o!==r.length)return!1;for(let a=0;a{i[0][a]=o.get(),i[1][a]=o.getVelocity()}),i}function xa(r,i,o,a){if(typeof i=="function"){const[c,h]=nd(a);i=i(o!==void 0?o:r.custom,c,h)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,h]=nd(a);i=i(o!==void 0?o:r.custom,c,h)}return i}function Ws(r,i,o){const a=r.getProps();return xa(a,i,o!==void 0?o:a.custom,r)}const Pa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ka=["initial",...Pa],pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],On=new Set(pi),Ht=r=>r*1e3,Kt=r=>r/1e3,qg={type:"spring",stiffness:500,damping:25,restSpeed:10},Jg=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),bg={type:"keyframes",duration:.8},ey={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ty=(r,{keyframes:i})=>i.length>2?bg:On.has(r)?r.startsWith("scale")?Jg(i[1]):qg:ey;function Ta(r,i){return r?r[i]||r.default||r:void 0}const ny={useManualTiming:!1},ry=r=>r!==null;function $s(r,{repeat:i,repeatType:o="loop"},a){const c=r.filter(ry),h=i&&o!=="loop"&&i%2===1?0:c.length-1;return!h||a===void 0?c[h]:a}const Ge=r=>r;function iy(r){let i=new Set,o=new Set,a=!1,c=!1;const h=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){h.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,S=!1)=>{const R=S&&a?i:o;return v&&h.add(g),R.has(g)||R.add(g),g},cancel:g=>{o.delete(g),h.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,o]=[o,i],o.clear(),i.forEach(p),a=!1,c&&(c=!1,m.process(g))}};return m}const As=["read","resolveKeyframes","update","preRender","render","postRender"],sy=40;function gh(r,i){let o=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>o=!0,f=As.reduce((N,I)=>(N[I]=iy(h),N),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:S,postRender:P}=f,R=()=>{const N=performance.now();o=!1,c.delta=a?1e3/60:Math.max(Math.min(N-c.timestamp,sy),1),c.timestamp=N,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),S.process(c),P.process(c),c.isProcessing=!1,o&&i&&(a=!1,r(R))},j=()=>{o=!0,a=!0,c.isProcessing||r(R)};return{schedule:As.reduce((N,I)=>{const $=f[I];return N[I]=(b,G=!1,te=!1)=>(o||j(),$.schedule(b,G,te)),N},{}),cancel:N=>{for(let I=0;I(((1-3*o+3*i)*r+(3*o-6*i))*r+3*i)*r,oy=1e-7,ly=12;function ay(r,i,o,a,c){let h,f,p=0;do f=i+(o-i)/2,h=yh(f,a,c)-r,h>0?o=f:i=f;while(Math.abs(h)>oy&&++pay(h,0,1,r,o);return h=>h===0||h===1?h:yh(c(h),i,a)}const vh=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,wh=r=>i=>1-r(1-i),Sh=mi(.33,1.53,.69,.99),Ca=wh(Sh),xh=vh(Ca),Ph=r=>(r*=2)<1?.5*Ca(r):.5*(2-Math.pow(2,-10*(r-1))),Ea=r=>1-Math.sin(Math.acos(r)),kh=wh(Ea),Th=vh(Ea),Ch=r=>/^0[^.\s]+$/u.test(r);function uy(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||Ch(r):!0}let Eh=Ge;const Rh=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),Ah=r=>i=>typeof i=="string"&&i.startsWith(r),Dh=Ah("--"),cy=Ah("var(--"),Ra=r=>cy(r)?fy.test(r.split("/*")[0].trim()):!1,fy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hy(r){const i=dy.exec(r);if(!i)return[,];const[,o,a,c]=i;return[`--${o??a}`,c]}function Mh(r,i,o=1){const[a,c]=hy(r);if(!a)return;const h=window.getComputedStyle(i).getPropertyValue(a);if(h){const f=h.trim();return Rh(f)?parseFloat(f):f}return Ra(c)?Mh(c,i,o+1):c}const Yt=(r,i,o)=>o>i?i:otypeof r=="number",parse:parseFloat,transform:r=>r},fi={...yr,transform:r=>Yt(0,1,r)},Ds={...yr,default:1},gi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),mn=gi("deg"),_t=gi("%"),J=gi("px"),py=gi("vh"),my=gi("vw"),rd={..._t,parse:r=>_t.parse(r)/100,transform:r=>_t.transform(r*100)},gy=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),id=r=>r===yr||r===J,sd=(r,i)=>parseFloat(r.split(", ")[i]),od=(r,i)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return sd(c[1],i);{const h=a.match(/^matrix\((.+)\)$/u);return h?sd(h[1],r):0}},yy=new Set(["x","y","z"]),vy=pi.filter(r=>!yy.has(r));function wy(r){const i=[];return vy.forEach(o=>{const a=r.getValue(o);a!==void 0&&(i.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),i}const pr={width:({x:r},{paddingLeft:i="0",paddingRight:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),height:({y:r},{paddingTop:i="0",paddingBottom:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),top:(r,{top:i})=>parseFloat(i),left:(r,{left:i})=>parseFloat(i),bottom:({y:r},{top:i})=>parseFloat(i)+(r.max-r.min),right:({x:r},{left:i})=>parseFloat(i)+(r.max-r.min),x:od(4,13),y:od(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const Lh=r=>i=>i.test(r),Sy={test:r=>r==="auto",parse:r=>r},Vh=[yr,J,_t,mn,my,py,Sy],ld=r=>Vh.find(Lh(r)),jn=new Set;let sa=!1,oa=!1;function _h(){if(oa){const r=Array.from(jn).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),o=new Map;i.forEach(a=>{const c=wy(a);c.length&&(o.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=o.get(a);c&&c.forEach(([h,f])=>{var p;(p=a.getValue(h))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}oa=!1,sa=!1,jn.forEach(r=>r.complete()),jn.clear()}function Nh(){jn.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(oa=!0)})}function xy(){Nh(),_h()}class Aa{constructor(i,o,a,c,h,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=o,this.name=a,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jn.add(this),sa||(sa=!0,pe.read(Nh),pe.resolveKeyframes(_h))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:o,element:a,motionValue:c}=this;for(let h=0;hMath.round(r*1e5)/1e5,Da=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Py(r){return r==null}const ky=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ma=(r,i)=>o=>!!(typeof o=="string"&&ky.test(o)&&o.startsWith(r)||i&&!Py(o)&&Object.prototype.hasOwnProperty.call(o,i)),Fh=(r,i,o)=>a=>{if(typeof a!="string")return a;const[c,h,f,p]=a.match(Da);return{[r]:parseFloat(c),[i]:parseFloat(h),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Ty=r=>Yt(0,255,r),Ql={...yr,transform:r=>Math.round(Ty(r))},Fn={test:Ma("rgb","red"),parse:Fh("red","green","blue"),transform:({red:r,green:i,blue:o,alpha:a=1})=>"rgba("+Ql.transform(r)+", "+Ql.transform(i)+", "+Ql.transform(o)+", "+li(fi.transform(a))+")"};function Cy(r){let i="",o="",a="",c="";return r.length>5?(i=r.substring(1,3),o=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),o=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,o+=o,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const la={test:Ma("#"),parse:Cy,transform:Fn.transform},ur={test:Ma("hsl","hue"),parse:Fh("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:o,alpha:a=1})=>"hsla("+Math.round(r)+", "+_t.transform(li(i))+", "+_t.transform(li(o))+", "+li(fi.transform(a))+")"},He={test:r=>Fn.test(r)||la.test(r)||ur.test(r),parse:r=>Fn.test(r)?Fn.parse(r):ur.test(r)?ur.parse(r):la.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Fn.transform(r):ur.transform(r)},Ey=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ry(r){var i,o;return isNaN(r)&&typeof r=="string"&&(((i=r.match(Da))===null||i===void 0?void 0:i.length)||0)+(((o=r.match(Ey))===null||o===void 0?void 0:o.length)||0)>0}const jh="number",Oh="color",Ay="var",Dy="var(",ad="${}",My=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function di(r){const i=r.toString(),o=[],a={color:[],number:[],var:[]},c=[];let h=0;const p=i.replace(My,m=>(He.test(m)?(a.color.push(h),c.push(Oh),o.push(He.parse(m))):m.startsWith(Dy)?(a.var.push(h),c.push(Ay),o.push(m)):(a.number.push(h),c.push(jh),o.push(parseFloat(m))),++h,ad)).split(ad);return{values:o,split:p,indexes:a,types:c}}function Ih(r){return di(r).values}function zh(r){const{split:i,types:o}=di(r),a=i.length;return c=>{let h="";for(let f=0;ftypeof r=="number"?0:r;function Vy(r){const i=Ih(r);return zh(r)(i.map(Ly))}const yn={test:Ry,parse:Ih,createTransformer:zh,getAnimatableNone:Vy},_y=new Set(["brightness","contrast","saturate","opacity"]);function Ny(r){const[i,o]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=o.match(Da)||[];if(!a)return r;const c=o.replace(a,"");let h=_y.has(i)?1:0;return a!==o&&(h*=100),i+"("+h+c+")"}const Fy=/\b([a-z-]*)\(.*?\)/gu,aa={...yn,getAnimatableNone:r=>{const i=r.match(Fy);return i?i.map(Ny).join(" "):r}},jy={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,backgroundPositionX:J,backgroundPositionY:J},Oy={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:Ds,scaleX:Ds,scaleY:Ds,scaleZ:Ds,skew:mn,skewX:mn,skewY:mn,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:fi,originX:rd,originY:rd,originZ:J},ud={...yr,transform:Math.round},La={...jy,...Oy,zIndex:ud,size:J,fillOpacity:fi,strokeOpacity:fi,numOctaves:ud},Iy={...La,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:aa,WebkitFilter:aa},Va=r=>Iy[r];function Bh(r,i){let o=Va(r);return o!==aa&&(o=yn),o.getAnimatableNone?o.getAnimatableNone(i):void 0}const zy=new Set(["auto","none","0"]);function By(r,i,o){let a=0,c;for(;a{o.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function _a(r){return typeof r=="function"}let Ls;function Uy(){Ls=void 0}const Nt={now:()=>(Ls===void 0&&Nt.set(ze.isProcessing||ny.useManualTiming?ze.timestamp:performance.now()),Ls),set:r=>{Ls=r,queueMicrotask(Uy)}},cd=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(yn.test(r)||r==="0")&&!r.startsWith("url("));function Wy(r){const i=r[0];if(r.length===1)return!0;for(let o=0;oHy?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&xy(),this._resolved}onKeyframesResolved(i,o){this.resolvedAt=Nt.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:h,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!$y(i,a,c,h))if(f)this.options.duration=0;else{m?.($s(i,this.options,o)),p?.(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,o);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:o,...v},this.onPostResolved())}onPostResolved(){}then(i,o){return this.currentFinishedPromise.then(i,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const mr=(r,i,o)=>{const a=i-r;return a===0?1:(o-r)/a},$h=(r,i,o=10)=>{let a="";const c=Math.max(Math.round(i/o),2);for(let h=0;h{const v=g*f,S=v*r,P=v-o,R=ua(g,f),j=Math.exp(-S);return fd-P/R*j},h=g=>{const S=g*f*r,P=S*o+o,R=Math.pow(f,2)*Math.pow(g,2)*r,j=Math.exp(-S),V=ua(Math.pow(g,2),f);return(-c(g)+fd>0?-1:1)*((P-R)*j)/V}):(c=g=>{const v=Math.exp(-g*r),S=(g-o)*r+1;return-.001+v*S},h=g=>{const v=Math.exp(-g*r),S=(o-g)*(r*r);return v*S});const p=5/r,m=Yy(c,h,p);if(r=Ht(r),isNaN(m))return{stiffness:Re.stiffness,damping:Re.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const Qy=12;function Yy(r,i,o){let a=o;for(let c=1;c=ca?1/0:i}const Xy=["duration","bounce"],Zy=["stiffness","damping","mass"];function dd(r,i){return i.some(o=>r[o]!==void 0)}function qy(r){let i={velocity:Re.velocity,stiffness:Re.stiffness,damping:Re.damping,mass:Re.mass,isResolvedFromDuration:!1,...r};if(!dd(r,Zy)&&dd(r,Xy))if(r.visualDuration){const o=r.visualDuration,a=2*Math.PI/(o*1.2),c=a*a,h=2*Yt(.05,1,1-r.bounce)*Math.sqrt(c);i={...i,mass:Re.mass,stiffness:c,damping:h}}else{const o=Gy(r);i={...i,...o,mass:Re.mass},i.isResolvedFromDuration=!0}return i}function Qh(r=Re.visualDuration,i=Re.bounce){const o=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=o;const h=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:h},{stiffness:m,damping:g,mass:v,duration:S,velocity:P,isResolvedFromDuration:R}=qy({...o,velocity:-Kt(o.velocity||0)}),j=P||0,V=g/(2*Math.sqrt(m*v)),L=f-h,N=Kt(Math.sqrt(m/v)),I=Math.abs(L)<5;a||(a=I?Re.restSpeed.granular:Re.restSpeed.default),c||(c=I?Re.restDelta.granular:Re.restDelta.default);let $;if(V<1){const G=ua(N,V);$=te=>{const ae=Math.exp(-V*N*te);return f-ae*((j+V*N*L)/G*Math.sin(G*te)+L*Math.cos(G*te))}}else if(V===1)$=G=>f-Math.exp(-N*G)*(L+(j+N*L)*G);else{const G=N*Math.sqrt(V*V-1);$=te=>{const ae=Math.exp(-V*N*te),q=Math.min(G*te,300);return f-ae*((j+V*N*L)*Math.sinh(q)+G*L*Math.cosh(q))/G}}const b={calculatedDuration:R&&S||null,next:G=>{const te=$(G);if(R)p.done=G>=S;else{let ae=0;V<1&&(ae=G===0?Ht(j):Kh($,G,te));const q=Math.abs(ae)<=a,xe=Math.abs(f-te)<=c;p.done=q&&xe}return p.value=p.done?f:te,p},toString:()=>{const G=Math.min(Gh(b),ca),te=$h(ae=>b.next(G*ae).value,G,30);return G+"ms "+te}};return b}function hd({keyframes:r,velocity:i=0,power:o=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const S=r[0],P={done:!1,value:S},R=q=>p!==void 0&&qm,j=q=>p===void 0?m:m===void 0||Math.abs(p-q)-V*Math.exp(-q/a),$=q=>N+I(q),b=q=>{const xe=I(q),Ce=$(q);P.done=Math.abs(xe)<=g,P.value=P.done?N:Ce};let G,te;const ae=q=>{R(P.value)&&(G=q,te=Qh({keyframes:[P.value,j(P.value)],velocity:Kh($,q,P.value),damping:c,stiffness:h,restDelta:g,restSpeed:v}))};return ae(0),{calculatedDuration:null,next:q=>{let xe=!1;return!te&&G===void 0&&(xe=!0,b(q),ae(q)),G!==void 0&&q>=G?te.next(q-G):(!xe&&b(q),P)}}}const Jy=mi(.42,0,1,1),by=mi(0,0,.58,1),Yh=mi(.42,0,.58,1),ev=r=>Array.isArray(r)&&typeof r[0]!="number",Na=r=>Array.isArray(r)&&typeof r[0]=="number",tv={linear:Ge,easeIn:Jy,easeInOut:Yh,easeOut:by,circIn:Ea,circInOut:Th,circOut:kh,backIn:Ca,backInOut:xh,backOut:Sh,anticipate:Ph},pd=r=>{if(Na(r)){Eh(r.length===4);const[i,o,a,c]=r;return mi(i,o,a,c)}else if(typeof r=="string")return tv[r];return r},nv=(r,i)=>o=>i(r(o)),Gt=(...r)=>r.reduce(nv),Te=(r,i,o)=>r+(i-r)*o;function Yl(r,i,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r}function rv({hue:r,saturation:i,lightness:o,alpha:a}){r/=360,i/=100,o/=100;let c=0,h=0,f=0;if(!i)c=h=f=o;else{const p=o<.5?o*(1+i):o+i-o*i,m=2*o-p;c=Yl(m,p,r+1/3),h=Yl(m,p,r),f=Yl(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:a}}function Ns(r,i){return o=>o>0?i:r}const Xl=(r,i,o)=>{const a=r*r,c=o*(i*i-a)+a;return c<0?0:Math.sqrt(c)},iv=[la,Fn,ur],sv=r=>iv.find(i=>i.test(r));function md(r){const i=sv(r);if(!i)return!1;let o=i.parse(r);return i===ur&&(o=rv(o)),o}const gd=(r,i)=>{const o=md(r),a=md(i);if(!o||!a)return Ns(r,i);const c={...o};return h=>(c.red=Xl(o.red,a.red,h),c.green=Xl(o.green,a.green,h),c.blue=Xl(o.blue,a.blue,h),c.alpha=Te(o.alpha,a.alpha,h),Fn.transform(c))},fa=new Set(["none","hidden"]);function ov(r,i){return fa.has(r)?o=>o<=0?r:i:o=>o>=1?i:r}function lv(r,i){return o=>Te(r,i,o)}function Fa(r){return typeof r=="number"?lv:typeof r=="string"?Ra(r)?Ns:He.test(r)?gd:cv:Array.isArray(r)?Xh:typeof r=="object"?He.test(r)?gd:av:Ns}function Xh(r,i){const o=[...r],a=o.length,c=r.map((h,f)=>Fa(h)(h,i[f]));return h=>{for(let f=0;f{for(const h in a)o[h]=a[h](c);return o}}function uv(r,i){var o;const a=[],c={color:0,var:0,number:0};for(let h=0;h{const o=yn.createTransformer(i),a=di(r),c=di(i);return a.indexes.var.length===c.indexes.var.length&&a.indexes.color.length===c.indexes.color.length&&a.indexes.number.length>=c.indexes.number.length?fa.has(r)&&!c.values.length||fa.has(i)&&!a.values.length?ov(r,i):Gt(Xh(uv(a,c),c.values),o):Ns(r,i)};function Zh(r,i,o){return typeof r=="number"&&typeof i=="number"&&typeof o=="number"?Te(r,i,o):Fa(r)(r,i)}function fv(r,i,o){const a=[],c=o||Zh,h=r.length-1;for(let f=0;fi[0];if(h===2&&r[0]===r[1])return()=>i[1];r[0]>r[h-1]&&(r=[...r].reverse(),i=[...i].reverse());const f=fv(i,a,c),p=f.length,m=g=>{let v=0;if(p>1)for(;vm(Yt(r[0],r[h-1],g)):m}function hv(r,i){const o=r[r.length-1];for(let a=1;a<=i;a++){const c=mr(0,i,a);r.push(Te(o,1,c))}}function pv(r){const i=[0];return hv(i,r.length-1),i}function mv(r,i){return r.map(o=>o*i)}function gv(r,i){return r.map(()=>i||Yh).splice(0,r.length-1)}function Fs({duration:r=300,keyframes:i,times:o,ease:a="easeInOut"}){const c=ev(a)?a.map(pd):pd(a),h={done:!1,value:i[0]},f=mv(o&&o.length===i.length?o:pv(i),r),p=dv(f,i,{ease:Array.isArray(c)?c:gv(i,c)});return{calculatedDuration:r,next:m=>(h.value=p(m),h.done=m>=r,h)}}const yv=r=>{const i=({timestamp:o})=>r(o);return{start:()=>pe.update(i,!0),stop:()=>gn(i),now:()=>ze.isProcessing?ze.timestamp:Nt.now()}},vv={decay:hd,inertia:hd,tween:Fs,keyframes:Fs,spring:Qh},wv=r=>r/100;class ja extends Wh{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:o,motionValue:a,element:c,keyframes:h}=this.options,f=c?.KeyframeResolver||Aa,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(h,p,o,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:o="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=this.options,p=_a(o)?o:vv[o]||Fs;let m,g;p!==Fs&&typeof i[0]!="number"&&(m=Gt(wv,Zh(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});h==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Gh(v));const{calculatedDuration:S}=v,P=S+c,R=P*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:S,resolvedDuration:P,totalDuration:R}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,o=!1){const{resolved:a}=this;if(!a){const{keyframes:q}=this.options;return{done:!0,value:q[q.length-1]}}const{finalKeyframe:c,generator:h,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:S}=a;if(this.startTime===null)return h.next(0);const{delay:P,repeat:R,repeatType:j,repeatDelay:V,onUpdate:L}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),o?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const N=this.currentTime-P*(this.speed>=0?1:-1),I=this.speed>=0?N<0:N>v;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let $=this.currentTime,b=h;if(R){const q=Math.min(this.currentTime,v)/S;let xe=Math.floor(q),Ce=q%1;!Ce&&q>=1&&(Ce=1),Ce===1&&xe--,xe=Math.min(xe,R+1),!!(xe%2)&&(j==="reverse"?(Ce=1-Ce,V&&(Ce-=V/S)):j==="mirror"&&(b=f)),$=Yt(0,1,Ce)*S}const G=I?{done:!1,value:m[0]}:b.next($);p&&(G.value=p(G.value));let{done:te}=G;!I&&g!==null&&(te=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ae=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&te);return ae&&c!==void 0&&(G.value=$s(m,this.options,c)),L&&L(G.value),ae&&this.finish(),G}get duration(){const{resolved:i}=this;return i?Kt(i.calculatedDuration):0}get time(){return Kt(this.currentTime)}set time(i){i=Ht(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const o=this.playbackSpeed!==i;this.playbackSpeed=i,o&&(this.time=Kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=yv,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=i(h=>this.tick(h))),o&&o();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const Sv=new Set(["opacity","clipPath","filter","transform"]);function Oa(r){let i;return()=>(i===void 0&&(i=r()),i)}const xv={linearEasing:void 0};function Pv(r,i){const o=Oa(r);return()=>{var a;return(a=xv[i])!==null&&a!==void 0?a:o()}}const js=Pv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function qh(r){return!!(typeof r=="function"&&js()||!r||typeof r=="string"&&(r in da||js())||Na(r)||Array.isArray(r)&&r.every(qh))}const si=([r,i,o,a])=>`cubic-bezier(${r}, ${i}, ${o}, ${a})`,da={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:si([0,.65,.55,1]),circOut:si([.55,0,1,.45]),backIn:si([.31,.01,.66,-.59]),backOut:si([.33,1.53,.69,.99])};function Jh(r,i){if(r)return typeof r=="function"&&js()?$h(r,i):Na(r)?si(r):Array.isArray(r)?r.map(o=>Jh(o,i)||da.easeOut):da[r]}function kv(r,i,o,{delay:a=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:o};m&&(g.offset=m);const v=Jh(p,c);return Array.isArray(v)&&(g.easing=v),r.animate(g,{delay:a,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"})}function yd(r,i){r.timeline=i,r.onfinish=null}const Tv=Oa(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Os=10,Cv=2e4;function Ev(r){return _a(r.type)||r.type==="spring"||!qh(r.ease)}function Rv(r,i){const o=new ja({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let h=0;for(;!a.done&&hthis.onKeyframesResolved(f,p),o,a,c),this.resolver.scheduleResolve()}initPlayback(i,o){var a;let{duration:c=300,times:h,ease:f,type:p,motionValue:m,name:g,startTime:v}=this.options;if(!(!((a=m.owner)===null||a===void 0)&&a.current))return!1;if(typeof f=="string"&&js()&&Av(f)&&(f=bh[f]),Ev(this.options)){const{onComplete:P,onUpdate:R,motionValue:j,element:V,...L}=this.options,N=Rv(i,L);i=N.keyframes,i.length===1&&(i[1]=i[0]),c=N.duration,h=N.times,f=N.ease,p="keyframes"}const S=kv(m.owner.current,g,i,{...this.options,duration:c,times:h,ease:f});return S.startTime=v??this.calcStartTime(),this.pendingTimeline?(yd(S,this.pendingTimeline),this.pendingTimeline=void 0):S.onfinish=()=>{const{onComplete:P}=this.options;m.set($s(i,this.options,o)),P&&P(),this.cancel(),this.resolveFinishedPromise()},{animation:S,duration:c,times:h,type:p,ease:f,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:o}=i;return Kt(o)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:o}=i;return Kt(o.currentTime||0)}set time(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=Ht(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:o}=i;return o.playbackRate}set speed(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:o}=i;return o.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:o}=i;return o.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:o}=this;if(!o)return Ge;const{animation:a}=o;yd(a,i)}return Ge}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:o,keyframes:a,duration:c,type:h,ease:f,times:p}=i;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:S,element:P,...R}=this.options,j=new ja({...R,keyframes:a,duration:c,type:h,ease:f,times:p,isGenerator:!0}),V=Ht(this.time);g.setWithVelocity(j.sample(V-Os).value,j.sample(V).value,Os)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:o,name:a,repeatDelay:c,repeatType:h,damping:f,type:p}=i;return Tv()&&a&&Sv.has(a)&&o&&o.owner&&o.owner.current instanceof HTMLElement&&!o.owner.getProps().onUpdate&&!c&&h!=="mirror"&&f!==0&&p!=="inertia"}}const Dv=Oa(()=>window.ScrollTimeline!==void 0);class Mv{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}then(i,o){return Promise.all(this.animations).then(i).catch(o)}getAll(i){return this.animations[0][i]}setAll(i,o){for(let a=0;aDv()&&c.attachTimeline?c.attachTimeline(i):o(c));return()=>{a.forEach((c,h)=>{c&&c(),this.animations[h].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let o=0;oo[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Lv({when:r,delay:i,delayChildren:o,staggerChildren:a,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const Ia=(r,i,o,a={},c,h)=>f=>{const p=Ta(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Ht(m);let v={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:P=>{i.set(P),p.onUpdate&&p.onUpdate(P)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:h?void 0:c};Lv(p)||(v={...v,...ty(r,v)}),v.duration&&(v.duration=Ht(v.duration)),v.repeatDelay&&(v.repeatDelay=Ht(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(S=!0)),S&&!h&&i.get()!==void 0){const P=$s(v.keyframes,p);if(P!==void 0)return pe.update(()=>{v.onUpdate(P),v.onComplete()}),new Mv([])}return!h&&vd.supports(v)?new vd(v):new ja(v)},Vv=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),_v=r=>ia(r)?r[r.length-1]||0:r;function za(r,i){r.indexOf(i)===-1&&r.push(i)}function Ba(r,i){const o=r.indexOf(i);o>-1&&r.splice(o,1)}class Ua{constructor(){this.subscriptions=[]}add(i){return za(this.subscriptions,i),()=>Ba(this.subscriptions,i)}notify(i,o,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,o,a);else for(let h=0;h!isNaN(parseFloat(r));class Fv{constructor(i,o={}){this.version="11.12.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const h=Nt.now();this.updatedAt!==h&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=o.owner}setCurrent(i){this.current=i,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Nv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,o){this.events[i]||(this.events[i]=new Ua);const a=this.events[i].add(o);return i==="change"?()=>{a(),pe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,o){this.passiveEffect=i,this.stopPassiveEffect=o}set(i,o=!0){!o||!this.passiveEffect?this.updateAndNotify(i,o):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,o=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>wd)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,wd);return Hh(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(i){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=i(o),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 hi(r,i){return new Fv(r,i)}function jv(r,i,o){r.hasValue(i)?r.getValue(i).set(o):r.addValue(i,hi(o))}function Ov(r,i){const o=Ws(r,i);let{transitionEnd:a={},transition:c={},...h}=o||{};h={...h,...a};for(const f in h){const p=_v(h[f]);jv(r,f,p)}}const Wa=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Iv="framerAppearId",ep="data-"+Wa(Iv);function tp(r){return r.props[ep]}const Ke=r=>!!(r&&r.getVelocity);function zv(r){return!!(Ke(r)&&r.add)}function ha(r,i){const o=r.getValue("willChange");if(zv(o))return o.add(i)}function Bv({protectedKeys:r,needsAnimating:i},o){const a=r.hasOwnProperty(o)&&i[o]!==!0;return i[o]=!1,a}function np(r,i,{delay:o=0,transitionOverride:a,type:c}={}){var h;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const S in m){const P=r.getValue(S,(h=r.latestValues[S])!==null&&h!==void 0?h:null),R=m[S];if(R===void 0||v&&Bv(v,S))continue;const j={delay:o,...Ta(f||{},S)};let V=!1;if(window.MotionHandoffAnimation){const N=tp(r);if(N){const I=window.MotionHandoffAnimation(N,S,pe);I!==null&&(j.startTime=I,V=!0)}}ha(r,S),P.start(Ia(S,P,R,r.shouldReduceMotion&&On.has(S)?{type:!1}:j,r,V));const L=P.animation;L&&g.push(L)}return p&&Promise.all(g).then(()=>{pe.update(()=>{p&&Ov(r,p)})}),g}function pa(r,i,o={}){var a;const c=Ws(r,i,o.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:h=r.getDefaultTransition()||{}}=c||{};o.transitionOverride&&(h=o.transitionOverride);const f=c?()=>Promise.all(np(r,c,o)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:S,staggerDirection:P}=h;return Uv(r,i,v+g,S,P,o)}:()=>Promise.resolve(),{when:m}=h;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(o.delay)])}function Uv(r,i,o=0,a=0,c=1,h){const f=[],p=(r.variantChildren.size-1)*a,m=c===1?(g=0)=>g*a:(g=0)=>p-g*a;return Array.from(r.variantChildren).sort(Wv).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(pa(g,i,{...h,delay:o+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function Wv(r,i){return r.sortNodePosition(i)}function $v(r,i,o={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(h=>pa(r,h,o));a=Promise.all(c)}else if(typeof i=="string")a=pa(r,i,o);else{const c=typeof i=="function"?Ws(r,i,o.custom):i;a=Promise.all(np(r,c,o))}return a.then(()=>{r.notify("AnimationComplete",i)})}const Hv=ka.length;function rp(r){if(!r)return;if(!r.isControllingVariants){const o=r.parent?rp(r.parent)||{}:{};return r.props.initial!==void 0&&(o.initial=r.props.initial),o}const i={};for(let o=0;oPromise.all(i.map(({animation:o,options:a})=>$v(r,o,a)))}function Yv(r){let i=Qv(r),o=Sd(),a=!0;const c=m=>(g,v)=>{var S;const P=Ws(r,v,m==="exit"?(S=r.presenceContext)===null||S===void 0?void 0:S.custom:void 0);if(P){const{transition:R,transitionEnd:j,...V}=P;g={...g,...V,...j}}return g};function h(m){i=m(r)}function f(m){const{props:g}=r,v=rp(r.parent)||{},S=[],P=new Set;let R={},j=1/0;for(let L=0;Lj&&b,xe=!1;const Ce=Array.isArray($)?$:[$];let qe=Ce.reduce(c(N),{});G===!1&&(qe={});const{prevResolvedValues:st={}}=I,Qe={...st,...qe},Je=re=>{q=!0,P.has(re)&&(xe=!0,P.delete(re)),I.needsAnimating[re]=!0;const O=r.getValue(re);O&&(O.liveStyle=!1)};for(const re in Qe){const O=qe[re],Q=st[re];if(R.hasOwnProperty(re))continue;let B=!1;ia(O)&&ia(Q)?B=!mh(O,Q):B=O!==Q,B?O!=null?Je(re):P.add(re):O!==void 0&&P.has(re)?Je(re):I.protectedKeys[re]=!0}I.prevProp=$,I.prevResolvedValues=qe,I.isActive&&(R={...R,...qe}),a&&r.blockInitialAnimation&&(q=!1),q&&(!(te&&ae)||xe)&&S.push(...Ce.map(re=>({animation:re,options:{type:N}})))}if(P.size){const L={};P.forEach(N=>{const I=r.getBaseTarget(N),$=r.getValue(N);$&&($.liveStyle=!0),L[N]=I??null}),S.push({animation:L})}let V=!!S.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(V=!1),a=!1,V?i(S):Promise.resolve()}function p(m,g){var v;if(o[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(P=>{var R;return(R=P.animationState)===null||R===void 0?void 0:R.setActive(m,g)}),o[m].isActive=g;const S=f(m);for(const P in o)o[P].protectedKeys={};return S}return{animateChanges:f,setActive:p,setAnimateFunction:h,getState:()=>o,reset:()=>{o=Sd(),a=!0}}}function Xv(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!mh(i,r):!1}function Vn(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sd(){return{animate:Vn(!0),whileInView:Vn(),whileHover:Vn(),whileTap:Vn(),whileDrag:Vn(),whileFocus:Vn(),exit:Vn()}}class vn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class Zv extends vn{constructor(i){super(i),i.animationState||(i.animationState=Yv(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Us(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:o}=this.node.prevProps||{};i!==o&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let qv=0;class Jv extends vn{constructor(){super(...arguments),this.id=qv++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);o&&!i&&c.then(()=>o(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const bv={animation:{Feature:Zv},exit:{Feature:Jv}},ip=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1;function Hs(r,i="page"){return{point:{x:r[`${i}X`],y:r[`${i}Y`]}}}const e0=r=>i=>ip(i)&&r(i,Hs(i));function $t(r,i,o,a={passive:!0}){return r.addEventListener(i,o,a),()=>r.removeEventListener(i,o)}function Qt(r,i,o,a){return $t(r,i,e0(o),a)}const xd=(r,i)=>Math.abs(r-i);function t0(r,i){const o=xd(r.x,i.x),a=xd(r.y,i.y);return Math.sqrt(o**2+a**2)}class sp{constructor(i,o,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:h=!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 S=ql(this.lastMoveEventInfo,this.history),P=this.startEvent!==null,R=t0(S.offset,{x:0,y:0})>=3;if(!P&&!R)return;const{point:j}=S,{timestamp:V}=ze;this.history.push({...j,timestamp:V});const{onStart:L,onMove:N}=this.handlers;P||(L&&L(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,S)},this.handlePointerMove=(S,P)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Zl(P,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(S,P)=>{this.end();const{onEnd:R,onSessionEnd:j,resumeAnimation:V}=this.handlers;if(this.dragSnapToOrigin&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=ql(S.type==="pointercancel"?this.lastMoveEventInfo:Zl(P,this.transformPagePoint),this.history);this.startEvent&&R&&R(S,L),j&&j(S,L)},!ip(i))return;this.dragSnapToOrigin=h,this.handlers=o,this.transformPagePoint=a,this.contextWindow=c||window;const f=Hs(i),p=Zl(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=ze;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=o;v&&v(i,ql(p,this.history)),this.removeListeners=Gt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),gn(this.updatePoint)}}function Zl(r,i){return i?{point:i(r.point)}:r}function Pd(r,i){return{x:r.x-i.x,y:r.y-i.y}}function ql({point:r},i){return{point:r,delta:Pd(r,op(i)),offset:Pd(r,n0(i)),velocity:r0(i,.1)}}function n0(r){return r[0]}function op(r){return r[r.length-1]}function r0(r,i){if(r.length<2)return{x:0,y:0};let o=r.length-1,a=null;const c=op(r);for(;o>=0&&(a=r[o],!(c.timestamp-a.timestamp>Ht(i)));)o--;if(!a)return{x:0,y:0};const h=Kt(c.timestamp-a.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-a.x)/h,y:(c.y-a.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function lp(r){let i=null;return()=>{const o=()=>{i=null};return i===null?(i=r,o):!1}}const kd=lp("dragHorizontal"),Td=lp("dragVertical");function ap(r){let i=!1;if(r==="y")i=Td();else if(r==="x")i=kd();else{const o=kd(),a=Td();o&&a?i=()=>{o(),a()}:(o&&o(),a&&a())}return i}function up(){const r=ap(!0);return r?(r(),!1):!0}function cr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}const cp=1e-4,i0=1-cp,s0=1+cp,fp=.01,o0=0-fp,l0=0+fp;function ft(r){return r.max-r.min}function a0(r,i,o){return Math.abs(r-i)<=o}function Cd(r,i,o,a=.5){r.origin=a,r.originPoint=Te(i.min,i.max,r.origin),r.scale=ft(o)/ft(i),r.translate=Te(o.min,o.max,r.origin)-r.originPoint,(r.scale>=i0&&r.scale<=s0||isNaN(r.scale))&&(r.scale=1),(r.translate>=o0&&r.translate<=l0||isNaN(r.translate))&&(r.translate=0)}function ai(r,i,o,a){Cd(r.x,i.x,o.x,a?a.originX:void 0),Cd(r.y,i.y,o.y,a?a.originY:void 0)}function Ed(r,i,o){r.min=o.min+i.min,r.max=r.min+ft(i)}function u0(r,i,o){Ed(r.x,i.x,o.x),Ed(r.y,i.y,o.y)}function Rd(r,i,o){r.min=i.min-o.min,r.max=r.min+ft(i)}function ui(r,i,o){Rd(r.x,i.x,o.x),Rd(r.y,i.y,o.y)}function c0(r,{min:i,max:o},a){return i!==void 0&&ro&&(r=a?Te(o,r,a.max):Math.min(r,o)),r}function Ad(r,i,o){return{min:i!==void 0?r.min+i:void 0,max:o!==void 0?r.max+o-(r.max-r.min):void 0}}function f0(r,{top:i,left:o,bottom:a,right:c}){return{x:Ad(r.x,o,c),y:Ad(r.y,i,a)}}function Dd(r,i){let o=i.min-r.min,a=i.max-r.max;return i.max-i.mina?o=mr(i.min,i.max-a,r.min):a>c&&(o=mr(r.min,r.max-c,i.min)),Yt(0,1,o)}function p0(r,i){const o={};return i.min!==void 0&&(o.min=i.min-r.min),i.max!==void 0&&(o.max=i.max-r.min),o}const ma=.35;function m0(r=ma){return r===!1?r=0:r===!0&&(r=ma),{x:Md(r,"left","right"),y:Md(r,"top","bottom")}}function Md(r,i,o){return{min:Ld(r,i),max:Ld(r,o)}}function Ld(r,i){return typeof r=="number"?r:r[i]||0}const Vd=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Vd(),y:Vd()}),_d=()=>({min:0,max:0}),Me=()=>({x:_d(),y:_d()});function wt(r){return[r("x"),r("y")]}function dp({top:r,left:i,right:o,bottom:a}){return{x:{min:i,max:o},y:{min:r,max:a}}}function g0({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function y0(r,i){if(!i)return r;const o=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function Jl(r){return r===void 0||r===1}function ga({scale:r,scaleX:i,scaleY:o}){return!Jl(r)||!Jl(i)||!Jl(o)}function _n(r){return ga(r)||hp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function hp(r){return Nd(r.x)||Nd(r.y)}function Nd(r){return r&&r!=="0%"}function Is(r,i,o){const a=r-o,c=i*a;return o+c}function Fd(r,i,o,a,c){return c!==void 0&&(r=Is(r,c,a)),Is(r,o,a)+i}function ya(r,i=0,o=1,a,c){r.min=Fd(r.min,i,o,a,c),r.max=Fd(r.max,i,o,a,c)}function pp(r,{x:i,y:o}){ya(r.x,i.translate,i.scale,i.originPoint),ya(r.y,o.translate,o.scale,o.originPoint)}const jd=.999999999999,Od=1.0000000000001;function v0(r,i,o,a=!1){const c=o.length;if(!c)return;i.x=i.y=1;let h,f;for(let p=0;pjd&&(i.x=1),i.yjd&&(i.y=1)}function dr(r,i){r.min=r.min+i,r.max=r.max+i}function Id(r,i,o,a,c=.5){const h=Te(r.min,r.max,c);ya(r,i,o,h,a)}function hr(r,i){Id(r.x,i.x,i.scaleX,i.scale,i.originX),Id(r.y,i.y,i.scaleY,i.scale,i.originY)}function mp(r,i){return dp(y0(r.getBoundingClientRect(),i))}function w0(r,i,o){const a=mp(r,o),{scroll:c}=i;return c&&(dr(a.x,c.offset.x),dr(a.y,c.offset.y)),a}const gp=({current:r})=>r?r.ownerDocument.defaultView:null,S0=new WeakMap;class x0{constructor(i){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Me(),this.visualElement=i}start(i,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(Hs(v,"page").point)},h=(v,S)=>{const{drag:P,dragPropagation:R,onDragStart:j}=this.getProps();if(P&&!R&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ap(P),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(L=>{let N=this.getAxisMotionValue(L).get()||0;if(_t.test(N)){const{projection:I}=this.visualElement;if(I&&I.layout){const $=I.layout.layoutBox[L];$&&(N=ft($)*(parseFloat(N)/100))}}this.originPoint[L]=N}),j&&pe.postRender(()=>j(v,S)),ha(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},f=(v,S)=>{const{dragPropagation:P,dragDirectionLock:R,onDirectionLock:j,onDrag:V}=this.getProps();if(!P&&!this.openGlobalLock)return;const{offset:L}=S;if(R&&this.currentDirection===null){this.currentDirection=P0(L),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",S.point,L),this.updateAxis("y",S.point,L),this.visualElement.render(),V&&V(v,S)},p=(v,S)=>this.stop(v,S),m=()=>wt(v=>{var S;return this.getAnimationState(v)==="paused"&&((S=this.getAxisMotionValue(v).animation)===null||S===void 0?void 0:S.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new sp(i,{onSessionStart:c,onStart:h,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:gp(this.visualElement)})}stop(i,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&pe.postRender(()=>h(i,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:o}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(i,o,a){const{drag:c}=this.getProps();if(!a||!Ms(i,c,this.currentDirection))return;const h=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=c0(f,this.constraints[i],this.elastic[i])),h.set(f)}resolveConstraints(){var i;const{dragConstraints:o,dragElastic:a}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,h=this.constraints;o&&cr(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&c?this.constraints=f0(c.layoutBox,o):this.constraints=!1,this.elastic=m0(a),h!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&wt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=p0(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:o}=this.getProps();if(!i||!cr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=w0(a,c.root,this.visualElement.getTransformPagePoint());let f=d0(c.layout.layoutBox,h);if(o){const p=o(g0(f));this.hasMutatedConstraints=!!p,p&&(f=dp(p))}return f}startAnimation(i){const{drag:o,dragMomentum:a,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=wt(v=>{if(!Ms(v,o,this.currentDirection))return;let S=m&&m[v]||{};f&&(S={min:0,max:0});const P=c?200:1e6,R=c?40:1e7,j={type:"inertia",velocity:a?i[v]:0,bounceStiffness:P,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...h,...S};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(p)}startAxisValueAnimation(i,o){const a=this.getAxisMotionValue(i);return ha(this.visualElement,i),a.start(Ia(i,a,0,o,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(i){var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(i){const o=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[o];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){wt(o=>{const{drag:a}=this.getProps();if(!Ms(o,a,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o];h.set(i[o]-Te(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!cr(o)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};wt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=h0({min:m,max:m},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),wt(f=>{if(!Ms(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Te(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;S0.set(this.visualElement,this);const i=this.visualElement.current,o=Qt(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();cr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),pe.read(a);const f=$t(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(v=>{const S=this.getAxisMotionValue(v);S&&(this.originPoint[v]+=m[v].translate,S.set(S.get()+m[v].translate))}),this.visualElement.render())});return()=>{f(),o(),h(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=ma,dragMomentum:p=!0}=i;return{...i,drag:o,dragDirectionLock:a,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:p}}}function Ms(r,i,o){return(i===!0||i===r)&&(o===null||o===r)}function P0(r,i=10){let o=null;return Math.abs(r.y)>i?o="y":Math.abs(r.x)>i&&(o="x"),o}class k0 extends vn{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new x0(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}unmount(){this.removeGroupControls(),this.removeListeners()}}const zd=r=>(i,o)=>{r&&pe.postRender(()=>r(i,o))};class T0 extends vn{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new sp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:o,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:zd(i),onStart:zd(o),onMove:a,onEnd:(h,f)=>{delete this.session,c&&pe.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const $a=Z.createContext(null);function C0(){const r=Z.useContext($a);if(r===null)return[!0,null];const{isPresent:i,onExitComplete:o,register:a}=r,c=Z.useId();Z.useEffect(()=>a(c),[]);const h=Z.useCallback(()=>o&&o(c),[c,o]);return!i&&o?[!1,h]:[!0]}const yp=Z.createContext({}),vp=Z.createContext({}),Vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bd(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const ii={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(J.test(r))r=parseFloat(r);else return r;const o=Bd(r,i.target.x),a=Bd(r,i.target.y);return`${o}% ${a}%`}},E0={correct:(r,{treeScale:i,projectionDelta:o})=>{const a=r,c=yn.parse(r);if(c.length>5)return a;const h=yn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=o.x.scale*i.x,m=o.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=Te(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),h(c)}},zs={};function R0(r){Object.assign(zs,r)}const{schedule:Ha}=gh(queueMicrotask,!1);class A0 extends Z.Component{componentDidMount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a,layoutId:c}=this.props,{projection:h}=i;R0(D0),h&&(o.group&&o.group.add(h),a&&a.register&&c&&a.register(h),h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:o,visualElement:a,drag:c,isPresent:h}=this.props,f=a.projection;return f&&(f.isPresent=h,c||i.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?f.promote():f.relegate()||pe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ha.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function wp(r){const[i,o]=C0(),a=Z.useContext(yp);return le.jsx(A0,{...r,layoutGroup:a,switchLayoutGroup:Z.useContext(vp),isPresent:i,safeToRemove:o})}const D0={borderRadius:{...ii,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomLeftRadius:ii,borderBottomRightRadius:ii,boxShadow:E0},Sp=["TopLeft","TopRight","BottomLeft","BottomRight"],M0=Sp.length,Ud=r=>typeof r=="string"?parseFloat(r):r,Wd=r=>typeof r=="number"||J.test(r);function L0(r,i,o,a,c,h){c?(r.opacity=Te(0,o.opacity!==void 0?o.opacity:1,V0(a)),r.opacityExit=Te(i.opacity!==void 0?i.opacity:1,0,_0(a))):h&&(r.opacity=Te(i.opacity!==void 0?i.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let f=0;fai?1:o(mr(r,i,a))}function Hd(r,i){r.min=i.min,r.max=i.max}function vt(r,i){Hd(r.x,i.x),Hd(r.y,i.y)}function Kd(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function Gd(r,i,o,a,c){return r-=i,r=Is(r,1/o,a),c!==void 0&&(r=Is(r,1/c,a)),r}function N0(r,i=0,o=1,a=.5,c,h=r,f=r){if(_t.test(i)&&(i=parseFloat(i),i=Te(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Te(h.min,h.max,a);r===h&&(p-=i),r.min=Gd(r.min,i,o,p,c),r.max=Gd(r.max,i,o,p,c)}function Qd(r,i,[o,a,c],h,f){N0(r,i[o],i[a],i[c],i.scale,h,f)}const F0=["x","scaleX","originX"],j0=["y","scaleY","originY"];function Yd(r,i,o,a){Qd(r.x,i,F0,o?o.x:void 0,a?a.x:void 0),Qd(r.y,i,j0,o?o.y:void 0,a?a.y:void 0)}function Xd(r){return r.translate===0&&r.scale===1}function Pp(r){return Xd(r.x)&&Xd(r.y)}function Zd(r,i){return r.min===i.min&&r.max===i.max}function O0(r,i){return Zd(r.x,i.x)&&Zd(r.y,i.y)}function qd(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function kp(r,i){return qd(r.x,i.x)&&qd(r.y,i.y)}function Jd(r){return ft(r.x)/ft(r.y)}function bd(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class I0{constructor(){this.members=[]}add(i){za(this.members,i),i.scheduleRender()}remove(i){if(Ba(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(i){const o=this.members.findIndex(c=>i===c);if(o===0)return!1;let a;for(let c=o;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){a=h;break}}return a?(this.promote(a),!0):!1}promote(i,o){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,o&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:o,resumingFrom:a}=i;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(r,i,o){let a="";const c=r.x.translate/i.x,h=r.y.translate/i.y,f=o?.z||0;if((c||h||f)&&(a=`translate3d(${c}px, ${h}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),o){const{transformPerspective:g,rotate:v,rotateX:S,rotateY:P,skewX:R,skewY:j}=o;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),S&&(a+=`rotateX(${S}deg) `),P&&(a+=`rotateY(${P}deg) `),R&&(a+=`skewX(${R}deg) `),j&&(a+=`skewY(${j}deg) `)}const p=r.x.scale*i.x,m=r.y.scale*i.y;return(p!==1||m!==1)&&(a+=`scale(${p}, ${m})`),a||"none"}const B0=(r,i)=>r.depth-i.depth;class U0{constructor(){this.children=[],this.isDirty=!1}add(i){za(this.children,i),this.isDirty=!0}remove(i){Ba(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(B0),this.isDirty=!1,this.children.forEach(i)}}function _s(r){const i=Ke(r)?r.get():r;return Vv(i)?i.toValue():i}function W0(r,i){const o=Nt.now(),a=({timestamp:c})=>{const h=c-o;h>=i&&(gn(a),r(h-i))};return pe.read(a,!0),()=>gn(a)}function $0(r){return r instanceof SVGElement&&r.tagName!=="svg"}function H0(r,i,o){const a=Ke(r)?r:hi(r);return a.start(Ia("",a,i,o)),a.animation}const Nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},oi=typeof window<"u"&&window.MotionDebug!==void 0,bl=["","X","Y","Z"],K0={visibility:"hidden"},eh=1e3;let G0=0;function ea(r,i,o,a){const{latestValues:c}=i;c[r]&&(o[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function Tp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const o=tp(i);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:h}=r.options;window.MotionCancelOptimisedAnimation(o,"transform",pe,!(c||h))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&Tp(a)}function Cp({attachResizeListener:r,defaultParent:i,measureScroll:o,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i?.()){this.id=G0++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,oi&&(Nn.totalNodes=Nn.resolvedTargetDeltas=Nn.recalculatedProjection=0),this.nodes.forEach(X0),this.nodes.forEach(e1),this.nodes.forEach(t1),this.nodes.forEach(Z0),oi&&window.MotionDebug.record(Nn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,S&&S(),S=W0(P,250),Vs.hasAnimatedSinceResize&&(Vs.hasAnimatedSinceResize=!1,this.nodes.forEach(nh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:S,hasLayoutChanged:P,hasRelativeTargetChanged:R,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||v.getDefaultTransition()||o1,{onLayoutAnimationStart:L,onLayoutAnimationComplete:N}=v.getProps(),I=!this.targetLayout||!kp(this.targetLayout,j)||R,$=!P&&R;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||P&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(S,$);const b={...Ta(V,"layout"),onPlay:L,onComplete:N};(v.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else P||nh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gn(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(n1),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{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 m=0;m{const G=b/1e3;rh(S.x,f.x,G),rh(S.y,f.y,G),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ui(P,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i1(this.relativeTarget,this.relativeTargetOrigin,P,G),$&&O0(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=Me()),vt($,this.relativeTarget)),V&&(this.animationValues=v,L0(v,g,this.latestValues,G,I,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{Vs.hasAnimatedSinceResize=!0,this.currentAnimation=H0(0,eh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&Ep(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Me();const S=ft(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+S;const P=ft(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+P}vt(p,m),hr(p,v),ai(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new I0),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&ea("z",f,g,this.animationValues);for(let v=0;v{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(th),this.root.sharedNodes.clear()}}}function Q0(r){r.updateLayout()}function Y0(r){var i;const o=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&o&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:h}=r.options,f=o.source!==r.layout.source;h==="size"?wt(S=>{const P=f?o.measuredBox[S]:o.layoutBox[S],R=ft(P);P.min=a[S].min,P.max=P.min+R}):Ep(h,o.layoutBox,a)&&wt(S=>{const P=f?o.measuredBox[S]:o.layoutBox[S],R=ft(a[S]);P.max=P.min+R,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[S].max=r.relativeTarget[S].min+R)});const p=fr();ai(p,a,o.layoutBox);const m=fr();f?ai(m,r.applyTransform(c,!0),o.measuredBox):ai(m,a,o.layoutBox);const g=!Pp(p);let v=!1;if(!r.resumeFrom){const S=r.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:P,layout:R}=S;if(P&&R){const j=Me();ui(j,o.layoutBox,P.layoutBox);const V=Me();ui(V,a,R.layoutBox),kp(j,V)||(v=!0),S.options.layoutRoot&&(r.relativeTarget=V,r.relativeTargetOrigin=j,r.relativeParent=S)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(r.isLead()){const{onExitComplete:a}=r.options;a&&a()}r.options.transition=void 0}function X0(r){oi&&Nn.totalNodes++,r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function Z0(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function q0(r){r.clearSnapshot()}function th(r){r.clearMeasurements()}function J0(r){r.isLayoutDirty=!1}function b0(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function nh(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function e1(r){r.resolveTargetDelta()}function t1(r){r.calcProjection()}function n1(r){r.resetSkewAndRotation()}function r1(r){r.removeLeadSnapshot()}function rh(r,i,o){r.translate=Te(i.translate,0,o),r.scale=Te(i.scale,1,o),r.origin=i.origin,r.originPoint=i.originPoint}function ih(r,i,o,a){r.min=Te(i.min,o.min,a),r.max=Te(i.max,o.max,a)}function i1(r,i,o,a){ih(r.x,i.x,o.x,a),ih(r.y,i.y,o.y,a)}function s1(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const o1={duration:.45,ease:[.4,0,.1,1]},sh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),oh=sh("applewebkit/")&&!sh("chrome/")?Math.round:Ge;function lh(r){r.min=oh(r.min),r.max=oh(r.max)}function l1(r){lh(r.x),lh(r.y)}function Ep(r,i,o){return r==="position"||r==="preserve-aspect"&&!a0(Jd(i),Jd(o),.2)}function a1(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const u1=Cp({attachResizeListener:(r,i)=>$t(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ta={current:void 0},Rp=Cp({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!ta.current){const r=new u1({});r.mount(window),r.setOptions({layoutScroll:!0}),ta.current=r}return ta.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),c1={pan:{Feature:T0},drag:{Feature:k0,ProjectionNode:Rp,MeasureLayout:wp}};function ah(r,i){const o=i?"pointerenter":"pointerleave",a=i?"onHoverStart":"onHoverEnd",c=(h,f)=>{if(h.pointerType==="touch"||up())return;const p=r.getProps();r.animationState&&p.whileHover&&r.animationState.setActive("whileHover",i);const m=p[a];m&&pe.postRender(()=>m(h,f))};return Qt(r.current,o,c,{passive:!r.getProps()[a]})}class f1 extends vn{mount(){this.unmount=Gt(ah(this.node,!0),ah(this.node,!1))}unmount(){}}class d1 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Gt($t(this.node.current,"focus",()=>this.onFocus()),$t(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ap=(r,i)=>i?r===i?!0:Ap(r,i.parentElement):!1;function na(r,i){if(!i)return;const o=new PointerEvent("pointer"+r);i(o,Hs(o))}class h1 extends vn{constructor(){super(...arguments),this.removeStartListeners=Ge,this.removeEndListeners=Ge,this.removeAccessibleListeners=Ge,this.startPointerPress=(i,o)=>{if(this.isPressing)return;this.removeEndListeners();const a=this.node.getProps(),h=Qt(window,"pointerup",(p,m)=>{if(!this.checkPressEnd())return;const{onTap:g,onTapCancel:v,globalTapTarget:S}=this.node.getProps(),P=!S&&!Ap(this.node.current,p.target)?v:g;P&&pe.update(()=>P(p,m))},{passive:!(a.onTap||a.onPointerUp)}),f=Qt(window,"pointercancel",(p,m)=>this.cancelPress(p,m),{passive:!(a.onTapCancel||a.onPointerCancel)});this.removeEndListeners=Gt(h,f),this.startPress(i,o)},this.startAccessiblePress=()=>{const i=h=>{if(h.key!=="Enter"||this.isPressing)return;const f=p=>{p.key!=="Enter"||!this.checkPressEnd()||na("up",(m,g)=>{const{onTap:v}=this.node.getProps();v&&pe.postRender(()=>v(m,g))})};this.removeEndListeners(),this.removeEndListeners=$t(this.node.current,"keyup",f),na("down",(p,m)=>{this.startPress(p,m)})},o=$t(this.node.current,"keydown",i),a=()=>{this.isPressing&&na("cancel",(h,f)=>this.cancelPress(h,f))},c=$t(this.node.current,"blur",a);this.removeAccessibleListeners=Gt(o,c)}}startPress(i,o){this.isPressing=!0;const{onTapStart:a,whileTap:c}=this.node.getProps();c&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),a&&pe.postRender(()=>a(i,o))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!up()}cancelPress(i,o){if(!this.checkPressEnd())return;const{onTapCancel:a}=this.node.getProps();a&&pe.postRender(()=>a(i,o))}mount(){const i=this.node.getProps(),o=Qt(i.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(i.onTapStart||i.onPointerStart)}),a=$t(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Gt(o,a)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const va=new WeakMap,ra=new WeakMap,p1=r=>{const i=va.get(r.target);i&&i(r)},m1=r=>{r.forEach(p1)};function g1({root:r,...i}){const o=r||document;ra.has(o)||ra.set(o,{});const a=ra.get(o),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(m1,{root:r,...i})),a[c]}function y1(r,i,o){const a=g1(i);return va.set(r,o),a.observe(r),()=>{va.delete(r),a.unobserve(r)}}const v1={some:0,all:1};class w1 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:o,margin:a,amount:c="some",once:h}=i,f={root:o?o.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:v1[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:S}=this.node.getProps(),P=g?v:S;P&&P(m)};return y1(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:o}=this.node;["amount","margin","root"].some(S1(i,o))&&this.startObserver()}unmount(){}}function S1({viewport:r={}},{viewport:i={}}={}){return o=>r[o]!==i[o]}const x1={inView:{Feature:w1},tap:{Feature:h1},focus:{Feature:d1},hover:{Feature:f1}},P1={layout:{ProjectionNode:Rp,MeasureLayout:wp}},Dp=Z.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"}),Ks=Z.createContext({}),Ka=typeof window<"u",k1=Ka?Z.useLayoutEffect:Z.useEffect,Mp=Z.createContext({strict:!1});function T1(r,i,o,a,c){var h,f;const{visualElement:p}=Z.useContext(Ks),m=Z.useContext(Mp),g=Z.useContext($a),v=Z.useContext(Dp).reducedMotion,S=Z.useRef();a=a||m.renderer,!S.current&&a&&(S.current=a(r,{visualState:i,parent:p,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const P=S.current,R=Z.useContext(vp);P&&!P.projection&&c&&(P.type==="html"||P.type==="svg")&&C1(S.current,o,c,R);const j=Z.useRef(!1);Z.useInsertionEffect(()=>{P&&j.current&&P.update(o,g)});const V=o[ep],L=Z.useRef(!!V&&!(!((h=window.MotionHandoffIsComplete)===null||h===void 0)&&h.call(window,V))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,V)));return k1(()=>{P&&(j.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),Ha.render(P.render),L.current&&P.animationState&&P.animationState.animateChanges())}),Z.useEffect(()=>{P&&(!L.current&&P.animationState&&P.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)===null||N===void 0||N.call(window,V)}),L.current=!1))}),P}function C1(r,i,o,a){const{layoutId:c,layout:h,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new o(r.latestValues,i["data-framer-portal-id"]?void 0:Lp(r.parent)),r.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||p&&cr(p),visualElement:r,animationType:typeof h=="string"?h:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Lp(r){if(r)return r.options.allowProjection!==!1?r.projection:Lp(r.parent)}function E1(r,i,o){return Z.useCallback(a=>{a&&r.mount&&r.mount(a),i&&(a?i.mount(a):i.unmount()),o&&(typeof o=="function"?o(a):cr(o)&&(o.current=a))},[i])}function Gs(r){return Us(r.animate)||ka.some(i=>ci(r[i]))}function Vp(r){return!!(Gs(r)||r.variants)}function R1(r,i){if(Gs(r)){const{initial:o,animate:a}=r;return{initial:o===!1||ci(o)?o:void 0,animate:ci(a)?a:void 0}}return r.inherit!==!1?i:{}}function A1(r){const{initial:i,animate:o}=R1(r,Z.useContext(Ks));return Z.useMemo(()=>({initial:i,animate:o}),[uh(i),uh(o)])}function uh(r){return Array.isArray(r)?r.join(" "):r}const ch={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"]},gr={};for(const r in ch)gr[r]={isEnabled:i=>ch[r].some(o=>!!i[o])};function D1(r){for(const i in r)gr[i]={...gr[i],...r[i]}}const M1=Symbol.for("motionComponentSymbol");function L1({preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:c}){r&&D1(r);function h(p,m){let g;const v={...Z.useContext(Dp),...p,layoutId:V1(p)},{isStatic:S}=v,P=A1(p),R=a(p,S);if(!S&&Ka){_1();const j=N1(v);g=j.MeasureLayout,P.visualElement=T1(c,R,v,i,j.ProjectionNode)}return le.jsxs(Ks.Provider,{value:P,children:[g&&P.visualElement?le.jsx(g,{visualElement:P.visualElement,...v}):null,o(c,p,E1(R,P.visualElement,m),R,S,P.visualElement)]})}const f=Z.forwardRef(h);return f[M1]=c,f}function V1({layoutId:r}){const i=Z.useContext(yp).id;return i&&r!==void 0?i+"-"+r:r}function _1(r,i){Z.useContext(Mp).strict}function N1(r){const{drag:i,layout:o}=gr;if(!i&&!o)return{};const a={...i,...o};return{MeasureLayout:i?.isEnabled(r)||o?.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const F1=["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 Ga(r){return typeof r!="string"||r.includes("-")?!1:!!(F1.indexOf(r)>-1||/[A-Z]/u.test(r))}function _p(r,{style:i,vars:o},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const h in o)r.style.setProperty(h,o[h])}const Np=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 Fp(r,i,o,a){_p(r,i,void 0,a);for(const c in i.attrs)r.setAttribute(Np.has(c)?c:Wa(c),i.attrs[c])}function jp(r,{layout:i,layoutId:o}){return On.has(r)||r.startsWith("origin")||(i||o!==void 0)&&(!!zs[r]||r==="opacity")}function Qa(r,i,o){var a;const{style:c}=r,h={};for(const f in c)(Ke(c[f])||i.style&&Ke(i.style[f])||jp(f,r)||((a=o?.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(h[f]=c[f]);return h}function Op(r,i,o){const a=Qa(r,i,o);for(const c in r)if(Ke(r[c])||Ke(i[c])){const h=pi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[h]=r[c]}return a}function j1(r){const i=Z.useRef(null);return i.current===null&&(i.current=r()),i.current}function O1({scrapeMotionValuesFromProps:r,createRenderState:i,onMount:o},a,c,h){const f={latestValues:I1(a,c,h,r),renderState:i()};return o&&(f.mount=p=>o(a,p,f)),f}const Ip=r=>(i,o)=>{const a=Z.useContext(Ks),c=Z.useContext($a),h=()=>O1(r,i,a,c);return o?h():j1(h)};function I1(r,i,o,a){const c={},h=a(r,{});for(const P in h)c[P]=_s(h[P]);let{initial:f,animate:p}=r;const m=Gs(r),g=Vp(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=o?o.initial===!1:!1;v=v||f===!1;const S=v?p:f;if(S&&typeof S!="boolean"&&!Us(S)){const P=Array.isArray(S)?S:[S];for(let R=0;R({style:{},transform:{},transformOrigin:{},vars:{}}),zp=()=>({...Ya(),attrs:{}}),Bp=(r,i)=>i&&typeof r=="number"?i.transform(r):r,z1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B1=pi.length;function U1(r,i,o){let a="",c=!0;for(let h=0;htypeof r=="string"&&r.toLowerCase()==="svg",G1={useVisualState:Ip({scrapeMotionValuesFromProps:Op,createRenderState:zp,onMount:(r,i,{renderState:o,latestValues:a})=>{pe.read(()=>{try{o.dimensions=typeof i.getBBox=="function"?i.getBBox():i.getBoundingClientRect()}catch{o.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{Za(o,a,qa(i.tagName),r.transformTemplate),Fp(i,o)})}})},Q1={useVisualState:Ip({scrapeMotionValuesFromProps:Qa,createRenderState:Ya})};function Up(r,i,o){for(const a in i)!Ke(i[a])&&!jp(a,o)&&(r[a]=i[a])}function Y1({transformTemplate:r},i){return Z.useMemo(()=>{const o=Ya();return Xa(o,i,r),Object.assign({},o.vars,o.style)},[i])}function X1(r,i){const o=r.style||{},a={};return Up(a,o,r),Object.assign(a,Y1(r,i)),a}function Z1(r,i){const o={},a=X1(r,i);return r.drag&&r.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(o.tabIndex=0),o.style=a,o}const q1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bs(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||q1.has(r)}let Wp=r=>!Bs(r);function J1(r){r&&(Wp=i=>i.startsWith("on")?!Bs(i):r(i))}try{J1(require("@emotion/is-prop-valid").default)}catch{}function b1(r,i,o){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||(Wp(c)||o===!0&&Bs(c)||!i&&!Bs(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function ew(r,i,o,a){const c=Z.useMemo(()=>{const h=zp();return Za(h,i,qa(a),r.transformTemplate),{...h.attrs,style:{...h.style}}},[i]);if(r.style){const h={};Up(h,r.style,r),c.style={...h,...c.style}}return c}function tw(r=!1){return(o,a,c,{latestValues:h},f)=>{const m=(Ga(o)?ew:Z1)(a,h,f,o),g=b1(a,typeof o=="string",r),v=o!==Z.Fragment?{...g,...m,ref:c}:{},{children:S}=a,P=Z.useMemo(()=>Ke(S)?S.get():S,[S]);return Z.createElement(o,{...v,children:P})}}function nw(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...Ga(a)?G1:Q1,preloadedFeatures:r,useRender:tw(c),createVisualElement:i,Component:a};return L1(f)}}const wa={current:null},$p={current:!1};function rw(){if($p.current=!0,!!Ka)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>wa.current=r.matches;r.addListener(i),i()}else wa.current=!1}function iw(r,i,o){for(const a in i){const c=i[a],h=o[a];if(Ke(c))r.addValue(a,c);else if(Ke(h))r.addValue(a,hi(c,{owner:r}));else if(h!==c)if(r.hasValue(a)){const f=r.getValue(a);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=r.getStaticValue(a);r.addValue(a,hi(f!==void 0?f:c,{owner:r}))}}for(const a in o)i[a]===void 0&&r.removeValue(a);return i}const dh=new WeakMap,sw=[...Vh,He,yn],ow=r=>sw.find(Lh(r)),hh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lw{scrapeMotionValuesFromProps(i,o,a){return{}}constructor({parent:i,props:o,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Aa,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.renderScheduledAt=0,this.scheduleRender=()=>{const P=Nt.now();this.renderScheduledAtthis.bindToMotionValue(a,o)),$p.current||rw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dh.delete(this.current),this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(i,o){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=On.has(i),c=o.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&pe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),h=o.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,o)),this.valueSubscriptions.set(i,()=>{c(),h(),f&&f(),o.owner&&o.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in gr){const o=gr[i];if(!o)continue;const{isEnabled:a,Feature:c}=o;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Me()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,o){this.latestValues[i]=o}update(i,o){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;ao.variantChildren.delete(i)}addValue(i,o){const a=this.values.get(i);o!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,o),this.values.set(i,o),this.latestValues[i]=o.get())}removeValue(i){this.values.delete(i);const o=this.valueSubscriptions.get(i);o&&(o(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,o){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&o!==void 0&&(a=hi(o===null?void 0:o,{owner:this}),this.addValue(i,a)),a}readValue(i,o){var a;let c=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(a=this.getBaseTargetFromProps(this.props,i))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,i,this.options);return c!=null&&(typeof c=="string"&&(Rh(c)||Ch(c))?c=parseFloat(c):!ow(c)&&yn.test(o)&&(c=Bh(i,o)),this.setBaseTarget(i,Ke(c)?c.get():c)),Ke(c)?c.get():c}setBaseTarget(i,o){this.baseTarget[i]=o}getBaseTarget(i){var o;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=xa(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const h=this.getBaseTargetFromProps(this.props,i);return h!==void 0&&!Ke(h)?h:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,o){return this.events[i]||(this.events[i]=new Ua),this.events[i].add(o)}notify(i,...o){this.events[i]&&this.events[i].notify(...o)}}class Hp extends lw{constructor(){super(...arguments),this.KeyframeResolver=Uh}sortInstanceNodePosition(i,o){return i.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(i,o){return i.style?i.style[o]:void 0}removeValueFromRenderState(i,{vars:o,style:a}){delete o[i],delete a[i]}}function aw(r){return window.getComputedStyle(r)}class uw extends Hp{constructor(){super(...arguments),this.type="html",this.renderInstance=_p}readValueFromInstance(i,o){if(On.has(o)){const a=Va(o);return a&&a.default||0}else{const a=aw(i),c=(Dh(o)?a.getPropertyValue(o):a[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:o}){return mp(i,o)}build(i,o,a){Xa(i,o,a.transformTemplate)}scrapeMotionValuesFromProps(i,o,a){return Qa(i,o,a)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ke(i)&&(this.childSubscription=i.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class cw extends Hp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(i,o){return i[o]}readValueFromInstance(i,o){if(On.has(o)){const a=Va(o);return a&&a.default||0}return o=Np.has(o)?o:Wa(o),i.getAttribute(o)}scrapeMotionValuesFromProps(i,o,a){return Op(i,o,a)}build(i,o,a){Za(i,o,this.isSVGTag,a.transformTemplate)}renderInstance(i,o,a,c){Fp(i,o,a,c)}mount(i){this.isSVGTag=qa(i.tagName),super.mount(i)}}const fw=(r,i)=>Ga(r)?new cw(i):new uw(i,{allowProjection:r!==Z.Fragment}),dw=nw({...bv,...x1,...c1,...P1},fw),ph=Zg(dw);function hw(){const r=Z.useRef(null),[i,o]=Z.useState("Life is like a box of chocolates. You never know what you're gonna get."),[a,c]=Z.useState("af_heart"),[h,f]=Z.useState([]),[p,m]=Z.useState(null),[g,v]=Z.useState(null),[S,P]=Z.useState("Loading..."),[R,j]=Z.useState([]);Z.useEffect(()=>{r.current??=new Worker(new URL("/assets/worker-VCY3KUSd.js",import.meta.url),{type:"module"});const L=I=>{switch(I.data.status){case"device":P(`Loading model (device="${I.data.device}")`);break;case"ready":m("ready"),f(I.data.voices);break;case"error":v(I.data.data);break;case"complete":const{audio:$,text:b}=I.data;j(G=>[{text:b,src:$},...G]),m("ready");break}},N=I=>{console.error("Worker error:",I),v(I.message)};return r.current.addEventListener("message",L),r.current.addEventListener("error",N),()=>{r.current.removeEventListener("message",L),r.current.removeEventListener("error",N)}},[]);const V=L=>{L.preventDefault(),m("running"),r.current.postMessage({type:"generate",text:i.trim(),voice:a})};return le.jsxs("div",{className:"relative w-full min-h-screen bg-gradient-to-br from-gray-900 to-gray-700 flex flex-col items-center justify-center p-4 relative overflow-hidden font-sans",children:[le.jsxs(ph.div,{initial:{opacity:1},animate:{opacity:p===null?1:0},transition:{duration:.5},className:"absolute w-screen h-screen justify-center flex flex-col items-center z-10 bg-gray-800/95 backdrop-blur-md",style:{pointerEvents:p===null?"auto":"none"},children:[le.jsx("div",{className:"w-[250px] h-[250px] border-4 border-white shadow-[0_0_0_5px_#4973ff] rounded-full overflow-hidden",children:le.jsx("div",{className:"loading-wave"})}),le.jsx("p",{className:`text-3xl my-5 text-center ${g?"text-red-500":"text-white"}`,children:g??S})]}),le.jsxs("div",{className:"max-w-3xl w-full space-y-8 relative z-[2]",children:[le.jsxs("div",{className:"text-center",children:[le.jsx("h1",{className:"text-5xl font-extrabold text-gray-100 mb-2 drop-shadow-lg font-heading",children:"Kokoro Text-to-Speech"}),le.jsxs("p",{className:"text-2xl text-gray-300 font-semibold font-subheading",children:["Powered by ",le.jsx("a",{href:"https://github.com/hexgrad/kokoro",target:"_blank",rel:"noreferrer",className:"underline",children:"Kokoro"})," and ",le.jsxs("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:[le.jsx("img",{width:"40",src:"hf-logo.svg",className:"inline translate-y-[-2px] me-1"}),"Transformers.js"]})]})]}),le.jsx("div",{className:"bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-lg p-6",children:le.jsxs("form",{onSubmit:V,className:"space-y-4",children:[le.jsx("textarea",{placeholder:"Enter text...",value:i,onChange:L=>o(L.target.value),className:"w-full min-h-[100px] max-h-[300px] bg-gray-700/50 backdrop-blur-sm border-2 border-gray-600 rounded-xl resize-y text-gray-100 placeholder-gray-400 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",rows:Math.min(8,i.split(` +`).length)}),le.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[le.jsx("select",{value:a,onChange:L=>c(L.target.value),className:"w-full bg-gray-700/50 backdrop-blur-sm border-2 border-gray-600 rounded-xl text-gray-100 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:Object.entries(h).map(([L,N])=>le.jsxs("option",{value:L,children:[N.name," (",N.language==="en-us"?"American":"British"," ",N.gender,")"]},L))}),le.jsx("button",{type:"submit",className:"inline-flex justify-center items-center px-6 py-2 text-lg font-semibold bg-gradient-to-t from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 transition-colors duration-300 rounded-xl text-white disabled:opacity-50",disabled:p==="running"||i.trim()==="",children:p==="running"?"Generating...":"Generate"})]})]})}),R.length>0&&le.jsx(ph.div,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5},className:"max-h-[250px] overflow-y-auto px-2 mt-4 space-y-6 relative z-[2]",children:R.map((L,N)=>le.jsx("div",{children:le.jsxs("div",{className:"text-white bg-gray-800/70 backdrop-blur-sm border border-gray-700 rounded-lg p-4 z-10",children:[le.jsxs("span",{className:"absolute right-5 font-bold",children:["#",R.length-N]}),le.jsx("p",{className:"mb-3 max-w-[95%]",children:L.text}),le.jsx("audio",{controls:!0,src:L.src,className:"w-full",children:"Your browser does not support the audio element."})]})},N))})]}),le.jsxs("div",{className:"bg-[#015871] pointer-events-none absolute left-0 w-full h-[5%] bottom-[-50px]",children:[le.jsx("div",{className:"wave"}),le.jsx("div",{className:"wave"})]})]})}Xg.createRoot(document.getElementById("root")).render(le.jsx(Z.StrictMode,{children:le.jsx(hw,{})}));