function Ug(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function zg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yh={exports:{}},rs={},gh={exports:{}},F={};/** * @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 wi=Symbol.for("react.element"),bg=Symbol.for("react.portal"),$g=Symbol.for("react.fragment"),Hg=Symbol.for("react.strict_mode"),Wg=Symbol.for("react.profiler"),Kg=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),qg=Symbol.for("react.forward_ref"),Qg=Symbol.for("react.suspense"),Xg=Symbol.for("react.memo"),Yg=Symbol.for("react.lazy"),Pc=Symbol.iterator;function Jg(e){return e===null||typeof e!="object"?null:(e=Pc&&e[Pc]||e["@@iterator"],typeof e=="function"?e:null)}var vh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xh=Object.assign,wh={};function ur(e,t,n){this.props=e,this.context=t,this.refs=wh,this.updater=n||vh}ur.prototype.isReactComponent={};ur.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ur.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sh(){}Sh.prototype=ur.prototype;function ba(e,t,n){this.props=e,this.context=t,this.refs=wh,this.updater=n||vh}var $a=ba.prototype=new Sh;$a.constructor=ba;xh($a,ur.prototype);$a.isPureReactComponent=!0;var Tc=Array.isArray,Eh=Object.prototype.hasOwnProperty,Ha={current:null},Ph={key:!0,ref:!0,__self:!0,__source:!0};function Th(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Eh.call(t,r)&&!Ph.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,ue=A[Z];if(0>>1;Zi(Os,O))nni(Oi,Os)?(A[Z]=Oi,A[nn]=O,Z=nn):(A[Z]=Os,A[tn]=O,Z=tn);else if(nni(Oi,O))A[Z]=Oi,A[nn]=O,Z=nn;else break e}}return M}function i(A,M){var O=A.sortIndex-M.sortIndex;return O!==0?O:A.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,y=!1,g=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(A){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=A)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function S(A){if(v=!1,m(A),!g)if(n(a)!==null)g=!0,Di(E);else{var M=n(u);M!==null&&ie(S,M.startTime-A)}}function E(A,M){g=!1,v&&(v=!1,h(C),C=-1),y=!0;var O=d;try{for(m(M),f=n(a);f!==null&&(!(f.expirationTime>M)||A&&!ae());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,d=f.priorityLevel;var ue=Z(f.expirationTime<=M);M=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===n(a)&&r(a),m(M)}else r(a);f=n(a)}if(f!==null)var Mi=!0;else{var tn=n(u);tn!==null&&ie(S,tn.startTime-M),Mi=!1}return Mi}finally{f=null,d=O,y=!1}}var k=!1,N=null,C=-1,V=5,D=-1;function ae(){return!(e.unstable_now()-DA||125Z?(A.sortIndex=O,t(u,A),n(a)===null&&A===n(u)&&(v?(h(C),C=-1):v=!0,ie(S,O-Z))):(A.sortIndex=ue,t(a,A),g||y||(g=!0,Di(E))),A},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(A){var M=d;return function(){var O=d;d=M;try{return A.apply(this,arguments)}finally{d=O}}}})(Ah);Nh.exports=Ah;var f0=Nh.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 d0=P,Ie=f0;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tl=Object.prototype.hasOwnProperty,h0=/^[: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]*$/,Cc={},Rc={};function p0(e){return Tl.call(Rc,e)?!0:Tl.call(Cc,e)?!1:h0.test(e)?Rc[e]=!0:(Cc[e]=!0,!1)}function m0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function y0(e,t,n,r){if(t===null||typeof t>"u"||m0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ce(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){me[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ka=/[\-:]([a-z])/g;function Ga(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(Ka,Ga);me[t]=new Ce(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(Ka,Ga);me[t]=new Ce(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(Ka,Ga);me[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function qa(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Fs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function g0(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Is(e.type,!1),e;case 11:return e=Is(e.type.render,!1),e;case 1:return e=Is(e.type,!0),e;default:return""}}function Nl(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 Ln:return"Fragment";case jn:return"Portal";case kl:return"Profiler";case Qa:return"StrictMode";case Cl:return"Suspense";case Rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dh:return(e.displayName||"Context")+".Consumer";case Lh:return(e._context.displayName||"Context")+".Provider";case Xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ya:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function v0(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 Nl(t);case 8:return t===Qa?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e){var t=Oh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fi(e){e._valueTracker||(e._valueTracker=x0(e))}function _h(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function So(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 Al(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vh(e,t){t=t.checked,t!=null&&qa(e,"checked",t,!1)}function jl(e,t){Vh(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ll(e,t,n){(t!=="number"||So(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vr={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},w0=["Webkit","ms","Moz","O"];Object.keys(Vr).forEach(function(e){w0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vr[t]=Vr[e]})});function Uh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vr.hasOwnProperty(e)&&Vr[e]?(""+t).trim():t+"px"}function zh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Uh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var S0=X({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 Ol(e,t){if(t){if(S0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function _l(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 Vl=null;function Ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,qn=null,Qn=null;function Mc(e){if(e=Pi(e)){if(typeof Fl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=as(t),Fl(e.stateNode,e.type,t))}}function bh(e){qn?Qn?Qn.push(e):Qn=[e]:qn=e}function $h(){if(qn){var e=qn,t=Qn;if(Qn=qn=null,Mc(e),t)for(e=0;e>>=0,e===0?32:31-(D0(e)/M0|0)|0}var Bi=64,Ui=4194304;function jr(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 ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=jr(l):(o&=s,o!==0&&(r=jr(o)))}else s=n&~i,s!==0?r=jr(s):o!==0&&(r=jr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tt(t),e[t]=n}function F0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ir),bc=" ",$c=!1;function up(e,t){switch(e){case"keyup":return fv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function hv(e,t){switch(e){case"compositionend":return cp(t);case"keypress":return t.which!==32?null:($c=!0,bc);case"textInput":return e=t.data,e===bc&&$c?null:e;default:return null}}function pv(e,t){if(Dn)return e==="compositionend"||!su&&up(e,t)?(e=lp(),oo=ru=Ot=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function pp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mp(){for(var e=window,t=So();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=So(e.document)}return t}function lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pv(e){var t=mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pp(n.ownerDocument.documentElement,n)){if(r!==null&&lu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qc(n,o);var s=qc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mn=null,$l=null,Ur=null,Hl=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hl||Mn==null||Mn!==So(r)||(r=Mn,"selectionStart"in r&&lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&ni(Ur,r)||(Ur=r,r=No($l,"onSelect"),0Vn||(e.current=Xl[Vn],Xl[Vn]=null,Vn--)}function z(e,t){Vn++,Xl[Vn]=e.current,e.current=t}var Gt={},Ee=Yt(Gt),Ae=Yt(!1),vn=Gt;function er(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function je(e){return e=e.childContextTypes,e!=null}function jo(){$(Ae),$(Ee)}function nf(e,t,n){if(Ee.current!==Gt)throw Error(R(168));z(Ee,t),z(Ae,n)}function Tp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,v0(e)||"Unknown",i));return X({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,vn=Ee.current,z(Ee,e),z(Ae,Ae.current),!0}function rf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Tp(e,t,vn),r.__reactInternalMemoizedMergedChildContext=e,$(Ae),$(Ee),z(Ee,e)):$(Ae),z(Ae,n)}var pt=null,us=!1,Js=!1;function kp(e){pt===null?pt=[e]:pt.push(e)}function _v(e){us=!0,kp(e)}function Jt(){if(!Js&&pt!==null){Js=!0;var e=0,t=U;try{var n=pt;for(U=1;e>=s,i-=s,mt=1<<32-tt(t)+i|n<C?(V=N,N=null):V=N.sibling;var D=d(h,N,m[C],S);if(D===null){N===null&&(N=V);break}e&&N&&D.alternate===null&&t(h,N),p=o(D,p,C),k===null?E=D:k.sibling=D,k=D,N=V}if(C===m.length)return n(h,N),K&&on(h,C),E;if(N===null){for(;CC?(V=N,N=null):V=N.sibling;var ae=d(h,N,D.value,S);if(ae===null){N===null&&(N=V);break}e&&N&&ae.alternate===null&&t(h,N),p=o(ae,p,C),k===null?E=ae:k.sibling=ae,k=ae,N=V}if(D.done)return n(h,N),K&&on(h,C),E;if(N===null){for(;!D.done;C++,D=m.next())D=f(h,D.value,S),D!==null&&(p=o(D,p,C),k===null?E=D:k.sibling=D,k=D);return K&&on(h,C),E}for(N=r(h,N);!D.done;C++,D=m.next())D=y(N,h,C,D.value,S),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?C:D.key),p=o(D,p,C),k===null?E=D:k.sibling=D,k=D);return e&&N.forEach(function(Rt){return t(h,Rt)}),K&&on(h,C),E}function x(h,p,m,S){if(typeof m=="object"&&m!==null&&m.type===Ln&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Vi:e:{for(var E=m.key,k=p;k!==null;){if(k.key===E){if(E=m.type,E===Ln){if(k.tag===7){n(h,k.sibling),p=i(k,m.props.children),p.return=h,h=p;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jt&&lf(E)===k.type){n(h,k.sibling),p=i(k,m.props),p.ref=Pr(h,k,m),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===Ln?(p=mn(m.props.children,h.mode,S,m.key),p.return=h,h=p):(S=po(m.type,m.key,m.props,null,h.mode,S),S.ref=Pr(h,p,m),S.return=h,h=S)}return s(h);case jn:e:{for(k=m.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=sl(m,h.mode,S),p.return=h,h=p}return s(h);case jt:return k=m._init,x(h,p,k(m._payload),S)}if(Ar(m))return g(h,p,m,S);if(vr(m))return v(h,p,m,S);Gi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=ol(m,h.mode,S),p.return=h,h=p),s(h)):n(h,p)}return x}var nr=Ap(!0),jp=Ap(!1),Oo=Yt(null),_o=null,Bn=null,fu=null;function du(){fu=Bn=_o=null}function hu(e){var t=Oo.current;$(Oo),e._currentValue=t}function Zl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yn(e,t){_o=e,fu=Bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function qe(e){var t=e._currentValue;if(fu!==e)if(e={context:e,memoizedValue:t,next:null},Bn===null){if(_o===null)throw Error(R(308));Bn=e,_o.dependencies={lanes:0,firstContext:e}}else Bn=Bn.next=e;return t}var cn=null;function pu(e){cn===null?cn=[e]:cn.push(e)}function Lp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 Lt=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dp(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 vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}function af(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;Lt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,y=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,v=l;switch(d=t,y=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(y,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(y,f,d):g,d==null)break e;f=X({},f,d);break e;case 2:Lt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else y={eventTime:y,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Sn|=s,e.lanes=s,e.memoizedState=f}}function uf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=el.transition;el.transition={};try{e(!1),t()}finally{U=n,el.transition=r}}function Qp(){return Qe().memoizedState}function Bv(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xp(e))Yp(t,n);else if(n=Lp(e,t,n,r),n!==null){var i=Te();nt(n,e,r,i),Jp(n,t,r)}}function Uv(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xp(e))Yp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,rt(l,s)){var a=t.interleaved;a===null?(i.next=i,pu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Lp(e,t,i,r),n!==null&&(i=Te(),nt(n,e,r,i),Jp(n,t,r))}}function Xp(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Yp(e,t){zr=Io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}var Bo={readContext:qe,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},zv={readContext:qe,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:qe,useEffect:ff,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uo(4194308,4,Hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return uo(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 r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bv.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:cf,useDebugValue:Pu,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=cf(!1),t=e[0];return e=Iv.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=lt();if(K){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),fe===null)throw Error(R(349));wn&30||Vp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ff(Ip.bind(null,r,o,e),[e]),r.flags|=2048,ci(9,Fp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=lt(),t=fe.identifierPrefix;if(K){var n=yt,r=mt;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ai++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[at]=t,e[oi]=r,am(e,t,!1,!1),t.stateNode=e;e:{switch(s=_l(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;ior&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Fo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!K)return ge(t),null}else 2*te()-o.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=te(),t.sibling=null,n=G.current,z(G,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Au(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Qv(e,t){switch(uu(t),t.tag){case 1:return je(t.type)&&jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),$(Ae),$(Ee),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gu(t),null;case 13:if($(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(G),null;case 4:return rr(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Au(),null;case 24:return null;default:return null}}var Qi=!1,xe=!1,Xv=typeof WeakSet=="function"?WeakSet:Set,j=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function aa(e,t,n){try{n()}catch(r){J(e,t,r)}}var Ef=!1;function Yv(e,t){if(Wl=Co,e=mp(),lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},Co=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,x=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Je(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){J(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Ef,Ef=!1,g}function br(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&aa(t,n,o)}i=i.next}while(i!==r)}}function ds(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ua(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 fm(e){var t=e.alternate;t!==null&&(e.alternate=null,fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[oi],delete t[Ql],delete t[Mv],delete t[Ov])),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 dm(e){return e.tag===5||e.tag===3||e.tag===4}function Pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(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 ca(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ao));else if(r!==4&&(e=e.child,e!==null))for(ca(e,t,n),e=e.sibling;e!==null;)ca(e,t,n),e=e.sibling}function fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fa(e,t,n),e=e.sibling;e!==null;)fa(e,t,n),e=e.sibling}var de=null,Ze=!1;function Nt(e,t,n){for(n=n.child;n!==null;)hm(e,t,n),n=n.sibling}function hm(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(is,n)}catch{}switch(n.tag){case 5:xe||Un(n,t);case 6:var r=de,i=Ze;de=null,Nt(e,t,n),de=r,Ze=i,de!==null&&(Ze?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Ze?(e=de,n=n.stateNode,e.nodeType===8?Ys(e.parentNode,n):e.nodeType===1&&Ys(e,n),ei(e)):Ys(de,n.stateNode));break;case 4:r=de,i=Ze,de=n.stateNode.containerInfo,Ze=!0,Nt(e,t,n),de=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&aa(n,t,s),i=i.next}while(i!==r)}Nt(e,t,n);break;case 1:if(!xe&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Nt(e,t,n),xe=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xv),t.forEach(function(r){var i=s1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zv(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,bo=0,I&6)throw Error(R(331));var i=I;for(I|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;ate()-Ru?pn(e,0):Cu|=n),Le(e,t)}function Sm(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=Te();e=Pt(e,t),e!==null&&(Si(e,t,n),Le(e,n))}function o1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sm(e,n)}function s1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Sm(e,n)}var Em;Em=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,Gv(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,K&&t.flags&1048576&&Cp(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;co(e,t),e=t.pendingProps;var i=er(t,Ee.current);Yn(t,n),i=wu(null,t,r,e,i,n);var o=Su();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,je(r)?(o=!0,Lo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mu(t),i.updater=fs,t.stateNode=i,i._reactInternals=t,ta(t,r,e,n),t=ia(null,t,r,!0,o,n)):(t.tag=0,K&&o&&au(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(co(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=a1(r),e=Je(r,e),i){case 0:t=ra(null,t,r,e,n);break e;case 1:t=xf(null,t,r,e,n);break e;case 11:t=gf(null,t,r,e,n);break e;case 14:t=vf(null,t,r,Je(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),ra(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),xf(e,t,r,i,n);case 3:e:{if(om(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Dp(e,t),Vo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ir(Error(R(423)),t),t=wf(e,t,r,n,i);break e}else if(r!==i){i=ir(Error(R(424)),t),t=wf(e,t,r,n,i);break e}else for(Oe=Ut(t.stateNode.containerInfo.firstChild),_e=t,K=!0,et=null,n=jp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Tt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Mp(t),e===null&&Jl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Gl(r,i)?s=null:o!==null&&Gl(r,o)&&(t.flags|=32),im(e,t),Pe(e,t,s,n),t.child;case 6:return e===null&&Jl(t),null;case 13:return sm(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),gf(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,z(Oo,r._currentValue),r._currentValue=s,o!==null)if(rt(o.value,s)){if(o.children===i.children&&!Ae.current){t=Tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=vt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Zl(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(R(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Zl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yn(t,n),i=qe(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=Je(r,t.pendingProps),i=Je(r.type,i),vf(e,t,r,i,n);case 15:return nm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),co(e,t),t.tag=1,je(r)?(e=!0,Lo(t)):e=!1,Yn(t,n),Zp(t,r,i),ta(t,r,i,n),ia(null,t,r,!0,e,n);case 19:return lm(e,t,n);case 22:return rm(e,t,n)}throw Error(R(156,t.tag))};function Pm(e,t){return Xh(e,t)}function l1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new l1(e,t,n,r)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a1(e){if(typeof e=="function")return Lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xa)return 11;if(e===Ya)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ke(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 po(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Lu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ln:return mn(n.children,i,o,t);case Qa:s=8,i|=8;break;case kl:return e=Ke(12,n,t,i|2),e.elementType=kl,e.lanes=o,e;case Cl:return e=Ke(13,n,t,i),e.elementType=Cl,e.lanes=o,e;case Rl:return e=Ke(19,n,t,i),e.elementType=Rl,e.lanes=o,e;case Mh:return ps(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lh:s=10;break e;case Dh:s=9;break e;case Xa:s=11;break e;case Ya:s=14;break e;case jt:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function mn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function ps(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Mh,e.lanes=n,e.stateNode={isHidden:!1},e}function ol(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function sl(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function u1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Us(0),this.expirationTimes=Us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Us(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,i,o,s,l,a){return e=new u1(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ke(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(o),e}function c1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rm)}catch(e){console.error(e)}}Rm(),Rh.exports=Ue;var m1=Rh.exports,Nm,Df=m1;Nm=Df.createRoot,Df.hydrateRoot;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Am(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g1(){return Math.random().toString(36).substr(2,8)}function Of(e,t){return{usr:e.state,key:e.key,idx:t}}function ya(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dr(t):t,{state:n,key:t&&t.key||r||g1()})}function Wo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function dr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function v1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Vt.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(di({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=Vt.Pop;let x=c(),h=x==null?null:x-u;u=x,a&&a({action:l,location:v.location,delta:h})}function d(x,h){l=Vt.Push;let p=ya(v.location,x,h);u=c()+1;let m=Of(p,u),S=v.createHref(p);try{s.pushState(m,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}o&&a&&a({action:l,location:v.location,delta:1})}function y(x,h){l=Vt.Replace;let p=ya(v.location,x,h);u=c();let m=Of(p,u),S=v.createHref(p);s.replaceState(m,"",S),o&&a&&a({action:l,location:v.location,delta:0})}function g(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:Wo(x);return p=p.replace(/ $/,"%20"),re(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let v={get action(){return l},get location(){return e(i,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Mf,f),a=x,()=>{i.removeEventListener(Mf,f),a=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let h=g(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:y,go(x){return s.go(x)}};return v}var _f;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_f||(_f={}));function x1(e,t,n){return n===void 0&&(n="/"),w1(e,t,n,!1)}function w1(e,t,n,r){let i=typeof t=="string"?dr(t):t,o=Vu(i.pathname||"/",n);if(o==null)return null;let s=jm(e);S1(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(re(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Wt([r,a.relativePath]),c=n.concat(a);o.children&&o.children.length>0&&(re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jm(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:N1(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of Lm(o.path))i(o,s,a)}),t}function Lm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Lm(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function S1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const E1=/^:[\w-]+$/,P1=3,T1=2,k1=1,C1=10,R1=-2,Vf=e=>e==="*";function N1(e,t){let n=e.split("/"),r=n.length;return n.some(Vf)&&(r+=R1),t&&(r+=T1),n.filter(i=>!Vf(i)).reduce((i,o)=>i+(E1.test(o)?P1:o===""?k1:C1),r)}function A1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function j1(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let l=0;l{let{paramName:d,isOptional:y}=c;if(d==="*"){let v=l[f]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return y&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function L1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Am(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function D1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Am(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function M1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?dr(e):e;return{pathname:n?n.startsWith("/")?n:O1(n,t):t,search:F1(r),hash:I1(i)}}function O1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ll(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dm(e,t){let n=_1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Mm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=dr(e):(i=di({},e),re(!i.pathname||!i.pathname.includes("?"),ll("?","pathname","search",i)),re(!i.pathname||!i.pathname.includes("#"),ll("#","pathname","hash",i)),re(!i.search||!i.search.includes("#"),ll("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=M1(i,l),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),V1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function B1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Om=["post","put","patch","delete"];new Set(Om);const U1=["get",...Om];new Set(U1);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=Mm(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Wt([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}function Fm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(Cn),{matches:i}=P.useContext(Rn),{pathname:o}=ws(),s=JSON.stringify(Dm(i,r.v7_relativeSplatPath));return P.useMemo(()=>Mm(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function H1(e,t){return W1(e,t)}function W1(e,t,n,r){ki()||re(!1);let{navigator:i,static:o}=P.useContext(Cn),{matches:s}=P.useContext(Rn),l=s[s.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=ws(),f;if(t){var d;let h=typeof t=="string"?dr(t):t;u==="/"||(d=h.pathname)!=null&&d.startsWith(u)||re(!1),f=h}else f=c;let y=f.pathname||"/",g=y;if(u!=="/"){let h=u.replace(/^\//,"").split("/");g="/"+y.replace(/^\//,"").split("/").slice(h.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:x1(e,{pathname:g}),x=X1(v&&v.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:Wt([u,i.encodeLocation?i.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?u:Wt([u,i.encodeLocation?i.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),s,n,r);return t&&x?P.createElement(xs.Provider,{value:{location:hi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Vt.Pop}},x):x}function K1(){let e=ex(),t=B1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const G1=P.createElement(K1,null);class q1 extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Rn.Provider,{value:this.props.routeContext},P.createElement(_m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Q1(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Fu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Rn.Provider,{value:t},r)}function X1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||re(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let y,g=!1,v=null,x=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||G1,a&&(u<0&&d===0?(g=!0,x=null):u===d&&(g=!0,x=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,d+1)),p=()=>{let m;return y?m=v:g?m=x:f.route.Component?m=P.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,P.createElement(Q1,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?P.createElement(q1,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Im=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Im||{}),Ko=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ko||{});function Y1(e){let t=P.useContext(Fu);return t||re(!1),t}function J1(e){let t=P.useContext(z1);return t||re(!1),t}function Z1(e){let t=P.useContext(Rn);return t||re(!1),t}function Bm(e){let t=Z1(),n=t.matches[t.matches.length-1];return n.route.id||re(!1),n.route.id}function ex(){var e;let t=P.useContext(_m),n=J1(Ko.UseRouteError),r=Bm(Ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function tx(){let{router:e}=Y1(Im.UseNavigateStable),t=Bm(Ko.UseNavigateStable),n=P.useRef(!1);return Vm(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hi({fromRouteId:t},o)))},[e,t])}function nx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Dr(e){re(!1)}function rx(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vt.Pop,navigator:o,static:s=!1,future:l}=e;ki()&&re(!1);let a=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:a,navigator:o,static:s,future:hi({v7_relativeSplatPath:!1},l)}),[a,l,o,s]);typeof r=="string"&&(r=dr(r));let{pathname:c="/",search:f="",hash:d="",state:y=null,key:g="default"}=r,v=P.useMemo(()=>{let x=Vu(c,a);return x==null?null:{location:{pathname:x,search:f,hash:d,state:y,key:g},navigationType:i}},[a,c,f,d,y,g,i]);return v==null?null:P.createElement(Cn.Provider,{value:u},P.createElement(xs.Provider,{children:n,value:v}))}function ix(e){let{children:t,location:n}=e;return H1(ga(t),n)}new Promise(()=>{});function ga(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,ga(r.props.children,o));return}r.type!==Dr&&re(!1),!r.props.index||!r.props.children||re(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ga(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function sx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lx(e,t){return e.button===0&&(!t||t==="_self")&&!sx(e)}const ax=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ux="6";try{window.__reactRouterVersion=ux}catch{}const cx="startTransition",If=i0[cx];function fx(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=y1({window:i,v5Compat:!0}));let s=o.current,[l,a]=P.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=P.useCallback(f=>{u&&If?If(()=>a(f)):a(f)},[a,u]);return P.useLayoutEffect(()=>s.listen(c),[s,c]),P.useEffect(()=>nx(r),[r]),P.createElement(rx,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const dx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gt=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:a,to:u,preventScrollReset:c,viewTransition:f}=t,d=ox(t,ax),{basename:y}=P.useContext(Cn),g,v=!1;if(typeof u=="string"&&hx.test(u)&&(g=u,dx))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),E=Vu(S.pathname,y);S.origin===m.origin&&E!=null?u=E+S.search+S.hash:v=!0}catch{}let x=b1(u,{relative:i}),h=px(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:i,viewTransition:f});function p(m){r&&r(m),m.defaultPrevented||h(m)}return P.createElement("a",va({},d,{href:g||x,onClick:v||o?r:p,ref:n,target:a}))});var Bf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bf||(Bf={}));var Uf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Uf||(Uf={}));function px(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,a=Ss(),u=ws(),c=Fm(e,{relative:s});return P.useCallback(f=>{if(lx(f,n)){f.preventDefault();let d=r!==void 0?r:Wo(u)===Wo(c);a(e,{replace:d,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[u,a,c,r,i,n,e,o,s,l])}const Iu=P.createContext({});function Bu(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Es=P.createContext(null),Uu=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class mx extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yx({children:e,isPresent:t}){const n=P.useId(),r=P.useRef(null),i=P.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=P.useContext(Uu);return P.useInsertionEffect(()=>{const{width:s,height:l,top:a,left:u}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; height: ${l}px !important; top: ${a}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),w.jsx(mx,{isPresent:t,childRef:r,sizeRef:i,children:P.cloneElement(e,{ref:r})})}const gx=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=Bu(vx),a=P.useId(),u=P.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=P.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return P.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),P.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=w.jsx(yx,{isPresent:n,children:e})),w.jsx(Es.Provider,{value:c,children:e})};function vx(){return new Map}function Um(e=!0){const t=P.useContext(Es);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=P.useId();P.useEffect(()=>{e&&i(o)},[e]);const s=P.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Ji=e=>e.key||"";function zf(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const zu=typeof window<"u",zm=zu?P.useLayoutEffect:P.useEffect,xx=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,a]=Um(s),u=P.useMemo(()=>zf(e),[e]),c=s&&!l?[]:u.map(Ji),f=P.useRef(!0),d=P.useRef(u),y=Bu(()=>new Map),[g,v]=P.useState(u),[x,h]=P.useState(u);zm(()=>{f.current=!1,d.current=u;for(let S=0;S{const E=Ji(S),k=s&&!l?!1:u===x||c.includes(E),N=()=>{if(y.has(E))y.set(E,!0);else return;let C=!0;y.forEach(V=>{V||(C=!1)}),C&&(m==null||m(),h(d.current),s&&(a==null||a()),r&&r())};return w.jsx(gx,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:N,children:S},E)})})},Ve=e=>e;let xa=Ve;function bu(e){let t;return()=>(t===void 0&&(t=e()),t)}const sr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xt=e=>e*1e3,wt=e=>e/1e3,wx={skipAnimations:!1,useManualTiming:!1};function Sx(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(a.schedule(u),e()),u(s)}const a={schedule:(u,c=!1,f=!1)=>{const y=f&&r?t:n;return c&&o.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const Zi=["read","resolveKeyframes","update","preRender","render","postRender"],Ex=40;function bm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Zi.reduce((h,p)=>(h[p]=Sx(o),h),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=s,y=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,Ex),1),i.timestamp=h,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},g=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Zi.reduce((h,p)=>{const m=s[p];return h[p]=(S,E=!1,k=!1)=>(n||g(),m.schedule(S,E,k)),h},{}),cancel:h=>{for(let p=0;pbf[e].some(n=>!!t[n])};function Px(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const Tx=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 Go(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Tx.has(e)}let Hm=e=>!Go(e);function kx(e){e&&(Hm=t=>t.startsWith("on")?!Go(t):e(t))}try{kx(require("@emotion/is-prop-valid").default)}catch{}function Cx(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Hm(i)||n===!0&&Go(i)||!t&&!Go(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Rx(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ps=P.createContext({});function pi(e){return typeof e=="string"||Array.isArray(e)}function Ts(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const $u=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hu=["initial",...$u];function ks(e){return Ts(e.animate)||Hu.some(t=>pi(e[t]))}function Wm(e){return!!(ks(e)||e.variants)}function Nx(e,t){if(ks(e)){const{initial:n,animate:r}=e;return{initial:n===!1||pi(n)?n:void 0,animate:pi(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ax(e){const{initial:t,animate:n}=Nx(e,P.useContext(Ps));return P.useMemo(()=>({initial:t,animate:n}),[$f(t),$f(n)])}function $f(e){return Array.isArray(e)?e.join(" "):e}const jx=Symbol.for("motionComponentSymbol");function bn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lx(e,t,n){return P.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):bn(n)&&(n.current=r))},[t])}const Wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Dx="framerAppearId",Km="data-"+Wu(Dx),{schedule:Ku,cancel:Ik}=bm(queueMicrotask,!1),Gm=P.createContext({});function Mx(e,t,n,r,i){var o,s;const{visualElement:l}=P.useContext(Ps),a=P.useContext($m),u=P.useContext(Es),c=P.useContext(Uu).reducedMotion,f=P.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,y=P.useContext(Gm);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ox(f.current,n,i,y);const g=P.useRef(!1);P.useInsertionEffect(()=>{d&&g.current&&d.update(n,u)});const v=n[Km],x=P.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return zm(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ku.render(d.render),x.current&&d.animationState&&d.animationState.animateChanges())}),P.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),x.current=!1))}),d}function Ox(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qm(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&bn(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function qm(e){if(e)return e.options.allowProjection!==!1?e.projection:qm(e.parent)}function _x({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&Px(e);function l(u,c){let f;const d={...P.useContext(Uu),...u,layoutId:Vx(u)},{isStatic:y}=d,g=Ax(u),v=r(u,y);if(!y&&zu){Fx();const x=Ix(d);f=x.MeasureLayout,g.visualElement=Mx(i,v,d,t,x.ProjectionNode)}return w.jsxs(Ps.Provider,{value:g,children:[f&&g.visualElement?w.jsx(f,{visualElement:g.visualElement,...d}):null,n(i,u,Lx(v,g.visualElement,c),v,y,g.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const a=P.forwardRef(l);return a[jx]=i,a}function Vx({layoutId:e}){const t=P.useContext(Iu).id;return t&&e!==void 0?t+"-"+e:e}function Fx(e,t){P.useContext($m).strict}function Ix(e){const{drag:t,layout:n}=lr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Bx=["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 Gu(e){return typeof e!="string"||e.includes("-")?!1:!!(Bx.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qu(e,t,n,r){if(typeof t=="function"){const[i,o]=Hf(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Hf(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const wa=e=>Array.isArray(e),Ux=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),zx=e=>wa(e)?e[e.length-1]||0:e,Se=e=>!!(e&&e.getVelocity);function mo(e){const t=Se(e)?e.get():e;return Ux(t)?t.toValue():t}function bx({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:$x(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const Qm=e=>(t,n)=>{const r=P.useContext(Ps),i=P.useContext(Es),o=()=>bx(e,t,r,i);return n?o():Bu(o)};function $x(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=mo(o[d]);let{initial:s,animate:l}=e;const a=ks(e),u=Wm(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;if(f&&typeof f!="boolean"&&!Ts(f)){const d=Array.isArray(f)?f:[f];for(let y=0;yt=>typeof t=="string"&&t.startsWith(e),Ym=Xm("--"),Hx=Xm("var(--"),Qu=e=>Hx(e)?Wx.test(e.split("/*")[0].trim()):!1,Wx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Jm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,kt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},mi={...pr,transform:e=>kt(0,1,e)},eo={...pr,default:1},Ci=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),At=Ci("deg"),ft=Ci("%"),L=Ci("px"),Kx=Ci("vh"),Gx=Ci("vw"),Wf={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},qx={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L},Qx={rotate:At,rotateX:At,rotateY:At,rotateZ:At,scale:eo,scaleX:eo,scaleY:eo,scaleZ:eo,skew:At,skewX:At,skewY:At,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:mi,originX:Wf,originY:Wf,originZ:L},Kf={...pr,transform:Math.round},Xu={...qx,...Qx,zIndex:Kf,size:L,fillOpacity:mi,strokeOpacity:mi,numOctaves:Kf},Xx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yx=hr.length;function Jx(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}}),Zm=()=>({...Zu(),attrs:{}}),ec=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ey(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const ty=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 ny(e,t,n,r){ey(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ty.has(i)?i:Wu(i),t.attrs[i])}const qo={};function rw(e){Object.assign(qo,e)}function ry(e,{layout:t,layoutId:n}){return Nn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qo[e]||e==="opacity")}function tc(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Se(i[s])||t.style&&Se(t.style[s])||ry(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function iy(e,t,n){const r=tc(e,t,n);for(const i in e)if(Se(e[i])||Se(t[i])){const o=hr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function iw(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const qf=["x","y","width","height","cx","cy","r"],ow={useVisualState:Qm({scrapeMotionValuesFromProps:iy,createRenderState:Zm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Nn.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l{iw(n,r),H.render(()=>{Ju(r,i,ec(n.tagName),e.transformTemplate),ny(n,r)})})}})},sw={useVisualState:Qm({scrapeMotionValuesFromProps:tc,createRenderState:Zu})};function oy(e,t,n){for(const r in t)!Se(t[r])&&!ry(r,n)&&(e[r]=t[r])}function lw({transformTemplate:e},t){return P.useMemo(()=>{const n=Zu();return Yu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function aw(e,t){const n=e.style||{},r={};return oy(r,n,e),Object.assign(r,lw(e,t)),r}function uw(e,t){const n={},r=aw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function cw(e,t,n,r){const i=P.useMemo(()=>{const o=Zm();return Ju(o,t,ec(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};oy(o,e.style,e),i.style={...o,...i.style}}return i}function fw(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Gu(n)?cw:uw)(r,o,s,n),u=Cx(r,typeof n=="string",e),c=n!==P.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=P.useMemo(()=>Se(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}function dw(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Gu(r)?ow:sw,preloadedFeatures:e,useRender:fw(i),createVisualElement:t,Component:r};return _x(s)}}function sy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class pw{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(hw()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class mw extends pw{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function nc(e,t){return e?e[t]||e.default||e:void 0}const Sa=2e4;function ly(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Sa?1/0:t}function rc(e){return typeof e=="function"}function Qf(e,t){e.timeline=t,e.onfinish=null}const ic=e=>Array.isArray(e)&&typeof e[0]=="number",yw={linearEasing:void 0};function gw(e,t){const n=bu(e);return()=>{var r;return(r=yw[t])!==null&&r!==void 0?r:n()}}const Qo=gw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ay=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ea={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function cy(e,t){if(e)return typeof e=="function"&&Qo()?ay(e,t):ic(e)?Mr(e):Array.isArray(e)?e.map(n=>cy(n,t)||Ea.easeOut):Ea[e]}const Ye={x:!1,y:!1};function fy(){return Ye.x||Ye.y}function vw(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function dy(e,t){const n=vw(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Xf(e){return t=>{t.pointerType==="touch"||fy()||e(t)}}function xw(e,t,n={}){const[r,i,o]=dy(e,n),s=Xf(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=Xf(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const hy=(e,t)=>t?e===t?!0:hy(e,t.parentElement):!1,oc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ww=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sw(e){return ww.has(e.tagName)||e.tabIndex!==-1}const Or=new WeakSet;function Yf(e){return t=>{t.key==="Enter"&&e(t)}}function ul(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ew=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yf(()=>{if(Or.has(n))return;ul(n,"down");const i=Yf(()=>{ul(n,"up")}),o=()=>ul(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Jf(e){return oc(e)&&!fy()}function Pw(e,t,n={}){const[r,i,o]=dy(e,n),s=l=>{const a=l.currentTarget;if(!Jf(l)||Or.has(a))return;Or.add(a);const u=t(l),c=(y,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Jf(y)||!Or.has(a))&&(Or.delete(a),typeof u=="function"&&u(y,{success:g}))},f=y=>{c(y,n.useGlobalTarget||hy(a,y.target))},d=y=>{c(y,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!Sw(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",u=>Ew(u,i),i)}),o}function Tw(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}const py=new Set(["width","height","top","left","right","bottom",...hr]);let yo;function kw(){yo=void 0}const dt={now:()=>(yo===void 0&&dt.set(he.isProcessing||wx.useManualTiming?he.timestamp:performance.now()),yo),set:e=>{yo=e,queueMicrotask(kw)}};function sc(e,t){e.indexOf(t)===-1&&e.push(t)}function lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ac{constructor(){this.subscriptions=[]}add(t){return sc(this.subscriptions,t),()=>lc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class Rw{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=dt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ac);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zf);return my(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yi(e,t){return new Rw(e,t)}function Nw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yi(n))}function Aw(e,t){const n=Cs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=zx(o[s]);Nw(e,s,l)}}function jw(e){return!!(Se(e)&&e.add)}function Pa(e,t){const n=e.getValue("willChange");if(jw(n))return n.add(t)}function yy(e){return e.props[Km]}const gy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Lw=1e-7,Dw=12;function Mw(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=gy(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Lw&&++lMw(o,0,1,e,n);return o=>o===0||o===1?o:gy(i(o),t,r)}const vy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xy=e=>t=>1-e(1-t),wy=Ri(.33,1.53,.69,.99),uc=xy(wy),Sy=vy(uc),Ey=e=>(e*=2)<1?.5*uc(e):.5*(2-Math.pow(2,-10*(e-1))),cc=e=>1-Math.sin(Math.acos(e)),Py=xy(cc),Ty=vy(cc),ky=e=>/^0[^.\s]+$/u.test(e);function Ow(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ky(e):!0}const Wr=e=>Math.round(e*1e5)/1e5,fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _w(e){return e==null}const Vw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dc=(e,t)=>n=>!!(typeof n=="string"&&Vw.test(n)&&n.startsWith(e)||t&&!_w(n)&&Object.prototype.hasOwnProperty.call(n,t)),Cy=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(fc);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Fw=e=>kt(0,255,e),cl={...pr,transform:e=>Math.round(Fw(e))},dn={test:dc("rgb","red"),parse:Cy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cl.transform(e)+", "+cl.transform(t)+", "+cl.transform(n)+", "+Wr(mi.transform(r))+")"};function Iw(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ta={test:dc("#"),parse:Iw,transform:dn.transform},$n={test:dc("hsl","hue"),parse:Cy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Wr(t))+", "+ft.transform(Wr(n))+", "+Wr(mi.transform(r))+")"},ve={test:e=>dn.test(e)||Ta.test(e)||$n.test(e),parse:e=>dn.test(e)?dn.parse(e):$n.test(e)?$n.parse(e):Ta.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dn.transform(e):$n.transform(e)},Bw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Bw))===null||n===void 0?void 0:n.length)||0)>0}const Ry="number",Ny="color",zw="var",bw="var(",ed="${}",$w=/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 gi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace($w,a=>(ve.test(a)?(r.color.push(o),i.push(Ny),n.push(ve.parse(a))):a.startsWith(bw)?(r.var.push(o),i.push(zw),n.push(a)):(r.number.push(o),i.push(Ry),n.push(parseFloat(a))),++o,ed)).split(ed);return{values:n,split:l,indexes:r,types:i}}function Ay(e){return gi(e).values}function jy(e){const{split:t,types:n}=gi(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function Ww(e){const t=Ay(e);return jy(e)(t.map(Hw))}const Qt={test:Uw,parse:Ay,createTransformer:jy,getAnimatableNone:Ww},Kw=new Set(["brightness","contrast","saturate","opacity"]);function Gw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fc)||[];if(!r)return e;const i=n.replace(r,"");let o=Kw.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qw=/\b([a-z-]*)\(.*?\)/gu,ka={...Qt,getAnimatableNone:e=>{const t=e.match(qw);return t?t.map(Gw).join(" "):e}},Qw={...Xu,color:ve,backgroundColor:ve,outlineColor:ve,fill:ve,stroke:ve,borderColor:ve,borderTopColor:ve,borderRightColor:ve,borderBottomColor:ve,borderLeftColor:ve,filter:ka,WebkitFilter:ka},hc=e=>Qw[e];function Ly(e,t){let n=hc(e);return n!==ka&&(n=Qt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xw=new Set(["auto","none","0"]);function Yw(e,t,n){let r=0,i;for(;re===pr||e===L,nd=(e,t)=>parseFloat(e.split(", ")[t]),rd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return nd(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?nd(o[1],e):0}},Jw=new Set(["x","y","z"]),Zw=hr.filter(e=>!Jw.has(e));function eS(e){const t=[];return Zw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ar={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rd(4,13),y:rd(5,14)};ar.translateX=ar.x;ar.translateY=ar.y;const yn=new Set;let Ca=!1,Ra=!1;function Dy(){if(Ra){const e=Array.from(yn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=eS(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ra=!1,Ca=!1,yn.forEach(e=>e.complete()),yn.clear()}function My(){yn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ra=!0)})}function tS(){My(),Dy()}class pc{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yn.add(this),Ca||(Ca=!0,H.read(My),H.resolveKeyframes(Dy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rS(e){const t=nS.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function _y(e,t,n=1){const[r,i]=rS(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Oy(s)?parseFloat(s):s}return Qu(i)?_y(i,t,n+1):i}const Vy=e=>t=>t.test(e),iS={test:e=>e==="auto",parse:e=>e},Fy=[pr,L,ft,At,Gx,Kx,iS],id=e=>Fy.find(Vy(e));class Iy extends pc{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const od=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qt.test(e)||e==="0")&&!e.startsWith("url("));function oS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Rs(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(lS),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const aS=40;class By{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=dt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>aS?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tS(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=dt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!sS(t,r,i,o))if(s)this.options.duration=0;else{a&&a(Rs(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const q=(e,t,n)=>e+(t-e)*n;function fl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=fl(a,l,e+1/3),o=fl(a,l,e),s=fl(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Xo(e,t){return n=>n>0?t:e}const dl=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cS=[Ta,dn,$n],fS=e=>cS.find(t=>t.test(e));function sd(e){const t=fS(e);if(!t)return!1;let n=t.parse(e);return t===$n&&(n=uS(n)),n}const ld=(e,t)=>{const n=sd(e),r=sd(t);if(!n||!r)return Xo(e,t);const i={...n};return o=>(i.red=dl(n.red,r.red,o),i.green=dl(n.green,r.green,o),i.blue=dl(n.blue,r.blue,o),i.alpha=q(n.alpha,r.alpha,o),dn.transform(i))},dS=(e,t)=>n=>t(e(n)),Ni=(...e)=>e.reduce(dS),Na=new Set(["none","hidden"]);function hS(e,t){return Na.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pS(e,t){return n=>q(e,t,n)}function mc(e){return typeof e=="number"?pS:typeof e=="string"?Qu(e)?Xo:ve.test(e)?ld:gS:Array.isArray(e)?Uy:typeof e=="object"?ve.test(e)?ld:mS:Xo}function Uy(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>mc(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function yS(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Qt.createTransformer(t),r=gi(e),i=gi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Na.has(e)&&!i.values.length||Na.has(t)&&!r.values.length?hS(e,t):Ni(Uy(yS(r,i),i.values),n):Xo(e,t)};function zy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?q(e,t,n):mc(e)(e,t)}const vS=5;function by(e,t,n){const r=Math.max(t-vS,0);return my(n-e(r),t-r)}const Y={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hl=.001;function xS({duration:e=Y.duration,bounce:t=Y.bounce,velocity:n=Y.velocity,mass:r=Y.mass}){let i,o,s=1-t;s=kt(Y.minDamping,Y.maxDamping,s),e=kt(Y.minDuration,Y.maxDuration,wt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,y=Aa(u,s),g=Math.exp(-f);return hl-d/y*g},o=u=>{const f=u*s*e,d=f*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=Aa(Math.pow(u,2),s);return(-i(u)+hl>0?-1:1)*((d-y)*g)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-hl+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=SS(i,o,l);if(e=xt(e),isNaN(a))return{stiffness:Y.stiffness,damping:Y.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const wS=12;function SS(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function TS(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!ad(e,PS)&&ad(e,ES))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*kt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Y.mass,stiffness:i,damping:o}}else{const n=xS(e);t={...t,...n,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function $y(e=Y.visualDuration,t=Y.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:y}=TS({...n,velocity:-wt(n.velocity||0)}),g=d||0,v=u/(2*Math.sqrt(a*c)),x=s-o,h=wt(Math.sqrt(a/c)),p=Math.abs(x)<5;r||(r=p?Y.restSpeed.granular:Y.restSpeed.default),i||(i=p?Y.restDelta.granular:Y.restDelta.default);let m;if(v<1){const E=Aa(h,v);m=k=>{const N=Math.exp(-v*h*k);return s-N*((g+v*h*x)/E*Math.sin(E*k)+x*Math.cos(E*k))}}else if(v===1)m=E=>s-Math.exp(-h*E)*(x+(g+h*x)*E);else{const E=h*Math.sqrt(v*v-1);m=k=>{const N=Math.exp(-v*h*k),C=Math.min(E*k,300);return s-N*((g+v*h*x)*Math.sinh(C)+E*x*Math.cosh(C))/E}}const S={calculatedDuration:y&&f||null,next:E=>{const k=m(E);if(y)l.done=E>=f;else{let N=0;v<1&&(N=E===0?xt(g):by(m,E,k));const C=Math.abs(N)<=r,V=Math.abs(s-k)<=i;l.done=C&&V}return l.value=l.done?s:k,l},toString:()=>{const E=Math.min(ly(S),Sa),k=ay(N=>S.next(E*N).value,E,30);return E+"ms "+k}};return S}function ud({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},y=C=>l!==void 0&&Ca,g=C=>l===void 0?a:a===void 0||Math.abs(l-C)-v*Math.exp(-C/r),m=C=>h+p(C),S=C=>{const V=p(C),D=m(C);d.done=Math.abs(V)<=u,d.value=d.done?h:D};let E,k;const N=C=>{y(d.value)&&(E=C,k=$y({keyframes:[d.value,g(d.value)],velocity:by(m,C,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:C=>{let V=!1;return!k&&E===void 0&&(V=!0,S(C),N(C)),E!==void 0&&C>=E?k.next(C-E):(!V&&S(C),d)}}}const kS=Ri(.42,0,1,1),CS=Ri(0,0,.58,1),Hy=Ri(.42,0,.58,1),RS=e=>Array.isArray(e)&&typeof e[0]!="number",cd={linear:Ve,easeIn:kS,easeInOut:Hy,easeOut:CS,circIn:cc,circInOut:Ty,circOut:Py,backIn:uc,backInOut:Sy,backOut:wy,anticipate:Ey},fd=e=>{if(ic(e)){xa(e.length===4);const[t,n,r,i]=e;return Ri(t,n,r,i)}else if(typeof e=="string")return xa(cd[e]!==void 0),cd[e];return e};function NS(e,t,n){const r=[],i=n||zy,o=e.length-1;for(let s=0;st[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=NS(t,r,i),a=l.length,u=c=>{if(s&&c1)for(;fu(kt(e[0],e[o-1],c)):u}function jS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sr(0,t,r);e.push(q(n,1,i))}}function LS(e){const t=[0];return jS(t,e.length-1),t}function DS(e,t){return e.map(n=>n*t)}function MS(e,t){return e.map(()=>t||Hy).splice(0,e.length-1)}function Yo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=RS(r)?r.map(fd):fd(r),o={done:!1,value:t[0]},s=DS(n&&n.length===t.length?n:LS(t),e),l=AS(s,t,{ease:Array.isArray(i)?i:MS(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}const OS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>H.update(t,!0),stop:()=>qt(t),now:()=>he.isProcessing?he.timestamp:dt.now()}},_S={decay:ud,inertia:ud,tween:Yo,keyframes:Yo,spring:$y},VS=e=>e/100;class yc extends By{constructor(t){super(t),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:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||pc,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=rc(n)?n:_S[n]||Yo;let a,u;l!==Yo&&typeof t[0]!="number"&&(a=Ni(VS,zy(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ly(c));const{calculatedDuration:f}=c,d=f+i,y=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:y,repeatType:g,repeatDelay:v,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,S=o;if(y){const C=Math.min(this.currentTime,c)/f;let V=Math.floor(C),D=C%1;!D&&C>=1&&(D=1),D===1&&V--,V=Math.min(V,y+1),!!(V%2)&&(g==="reverse"?(D=1-D,v&&(D-=v/f)):g==="mirror"&&(S=s)),m=kt(0,1,D)*f}const E=p?{done:!1,value:a[0]}:S.next(m);l&&(E.value=l(E.value));let{done:k}=E;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(E.value=Rs(a,this.options,i)),x&&x(E.value),N&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wt(t.calculatedDuration):0}get time(){return wt(this.currentTime)}set time(t){t=xt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=OS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const FS=new Set(["opacity","clipPath","filter","transform"]);function IS(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=cy(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const BS=bu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Jo=10,US=2e4;function zS(e){return rc(e.type)||e.type==="spring"||!uy(e.ease)}function bS(e,t){const n=new yc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Qo()&&$S(o)&&(o=Wy[o]),zS(this.options)){const{onComplete:f,onUpdate:d,motionValue:y,element:g,...v}=this.options,x=bS(t,v);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,s="keyframes"}const c=IS(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Qf(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Rs(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ve;const{animation:r}=n;Qf(r,t)}return Ve}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...y}=this.options,g=new yc({...y,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),v=xt(this.time);u.setWithVelocity(g.sample(v-Jo).value,g.sample(v).value,Jo)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return BS()&&r&&FS.has(r)&&!a&&!u&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const HS={type:"spring",stiffness:500,damping:25,restSpeed:10},WS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KS={type:"keyframes",duration:.8},GS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qS=(e,{keyframes:t})=>t.length>2?KS:Nn.has(e)?e.startsWith("scale")?WS(t[1]):HS:GS;function QS({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const gc=(e,t,n,r={},i,o)=>s=>{const l=nc(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-xt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};QS(l)||(c={...c,...qS(e,c)}),c.duration&&(c.duration=xt(c.duration)),c.repeatDelay&&(c.repeatDelay=xt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Rs(c.keyframes,l);if(d!==void 0)return H.update(()=>{c.onUpdate(d),c.onComplete()}),new mw([])}return!o&&dd.supports(c)?new dd(c):new yc(c)};function XS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ky(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),y=a[f];if(y===void 0||c&&XS(c,f))continue;const g={delay:n,...nc(s||{},f)};let v=!1;if(window.MotionHandoffAnimation){const h=yy(e);if(h){const p=window.MotionHandoffAnimation(h,f,H);p!==null&&(g.startTime=p,v=!0)}}Pa(e,f),d.start(gc(f,d,y,e.shouldReduceMotion&&py.has(f)?{type:!1}:g,e,v));const x=d.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{H.update(()=>{l&&Aw(e,l)})}),u}function ja(e,t,n={}){var r;const i=Cs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Ky(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return YS(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[s,l]:[l,s];return u().then(()=>c())}else return Promise.all([s(),l(n.delay)])}function YS(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(JS).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(ja(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function JS(e,t){return e.sortNodePosition(t)}function ZS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ja(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ja(e,t,n);else{const i=typeof t=="function"?Cs(e,t,n.custom):t;r=Promise.all(Ky(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eE=Hu.length;function Gy(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Gy(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>ZS(e,n,r)))}function iE(e){let t=rE(e),n=hd(),r=!0;const i=a=>(u,c)=>{var f;const d=Cs(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:y,transitionEnd:g,...v}=d;u={...u,...v,...g}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,c=Gy(e.parent)||{},f=[],d=new Set;let y={},g=1/0;for(let x=0;xg&&S,V=!1;const D=Array.isArray(m)?m:[m];let ae=D.reduce(i(h),{});E===!1&&(ae={});const{prevResolvedValues:Rt={}}=p,en={...Rt,...ae},gr=ie=>{C=!0,d.has(ie)&&(V=!0,d.delete(ie)),p.needsAnimating[ie]=!0;const A=e.getValue(ie);A&&(A.liveStyle=!1)};for(const ie in en){const A=ae[ie],M=Rt[ie];if(y.hasOwnProperty(ie))continue;let O=!1;wa(A)&&wa(M)?O=!sy(A,M):O=A!==M,O?A!=null?gr(ie):d.add(ie):A!==void 0&&d.has(ie)?gr(ie):p.protectedKeys[ie]=!0}p.prevProp=m,p.prevResolvedValues=ae,p.isActive&&(y={...y,...ae}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(k&&N)||V)&&f.push(...D.map(ie=>({animation:ie,options:{type:h}})))}if(d.size){const x={};d.forEach(h=>{const p=e.getBaseTarget(h),m=e.getValue(h);m&&(m.liveStyle=!0),x[h]=p??null}),f.push({animation:x})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var y;return(y=d.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const f=s(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=hd(),r=!0}}}function oE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sy(t,e):!1}function rn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hd(){return{animate:rn(!0),whileInView:rn(),whileHover:rn(),whileTap:rn(),whileDrag:rn(),whileFocus:rn(),exit:rn()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sE extends Zt{constructor(t){super(t),t.animationState||(t.animationState=iE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ts(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let lE=0;class aE extends Zt{constructor(){super(...arguments),this.id=lE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const uE={animation:{Feature:sE},exit:{Feature:aE}};function vi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ai(e){return{point:{x:e.pageX,y:e.pageY}}}const cE=e=>t=>oc(t)&&e(t,Ai(t));function Kr(e,t,n,r){return vi(e,t,cE(n),r)}const pd=(e,t)=>Math.abs(e-t);function fE(e,t){const n=pd(e.x,t.x),r=pd(e.y,t.y);return Math.sqrt(n**2+r**2)}class qy{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ml(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=fE(f.offset,{x:0,y:0})>=3;if(!d&&!y)return;const{point:g}=f,{timestamp:v}=he;this.history.push({...g,timestamp:v});const{onStart:x,onMove:h}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=pl(d,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ml(f.type==="pointercancel"?this.lastMoveEventInfo:pl(d,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,x),g&&g(f,x)},!oc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Ai(t),l=pl(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=he;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ml(l,this.history)),this.removeListeners=Ni(Kr(this.contextWindow,"pointermove",this.handlePointerMove),Kr(this.contextWindow,"pointerup",this.handlePointerUp),Kr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qt(this.updatePoint)}}function pl(e,t){return t?{point:t(e.point)}:e}function md(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ml({point:e},t){return{point:e,delta:md(e,Qy(t)),offset:md(e,dE(t)),velocity:hE(t,.1)}}function dE(e){return e[0]}function Qy(e){return e[e.length-1]}function hE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Qy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>xt(t)));)n--;if(!r)return{x:0,y:0};const o=wt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Xy=1e-4,pE=1-Xy,mE=1+Xy,Yy=.01,yE=0-Yy,gE=0+Yy;function Be(e){return e.max-e.min}function vE(e,t,n){return Math.abs(e-t)<=n}function yd(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=Be(n)/Be(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=pE&&e.scale<=mE||isNaN(e.scale))&&(e.scale=1),(e.translate>=yE&&e.translate<=gE||isNaN(e.translate))&&(e.translate=0)}function Gr(e,t,n,r){yd(e.x,t.x,n.x,r?r.originX:void 0),yd(e.y,t.y,n.y,r?r.originY:void 0)}function gd(e,t,n){e.min=n.min+t.min,e.max=e.min+Be(t)}function xE(e,t,n){gd(e.x,t.x,n.x),gd(e.y,t.y,n.y)}function vd(e,t,n){e.min=t.min-n.min,e.max=e.min+Be(t)}function qr(e,t,n){vd(e.x,t.x,n.x),vd(e.y,t.y,n.y)}function wE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?q(n,e,r.max):Math.min(e,n)),e}function xd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function SE(e,{top:t,left:n,bottom:r,right:i}){return{x:xd(e.x,n,i),y:xd(e.y,t,r)}}function wd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sr(t.min,t.max-r,e.min):r>i&&(n=sr(e.min,e.max-i,t.min)),kt(0,1,n)}function TE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const La=.35;function kE(e=La){return e===!1?e=0:e===!0&&(e=La),{x:Sd(e,"left","right"),y:Sd(e,"top","bottom")}}function Sd(e,t,n){return{min:Ed(e,t),max:Ed(e,n)}}function Ed(e,t){return typeof e=="number"?e:e[t]||0}const Pd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hn=()=>({x:Pd(),y:Pd()}),Td=()=>({min:0,max:0}),ee=()=>({x:Td(),y:Td()});function $e(e){return[e("x"),e("y")]}function Jy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yl(e){return e===void 0||e===1}function Da({scale:e,scaleX:t,scaleY:n}){return!yl(e)||!yl(t)||!yl(n)}function ln(e){return Da(e)||Zy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zy(e){return kd(e.x)||kd(e.y)}function kd(e){return e&&e!=="0%"}function Zo(e,t,n){const r=e-n,i=t*r;return n+i}function Cd(e,t,n,r,i){return i!==void 0&&(e=Zo(e,i,r)),Zo(e,n,r)+t}function Ma(e,t=0,n=1,r,i){e.min=Cd(e.min,t,n,r,i),e.max=Cd(e.max,t,n,r,i)}function eg(e,{x:t,y:n}){Ma(e.x,t.translate,t.scale,t.originPoint),Ma(e.y,n.translate,n.scale,n.originPoint)}const Rd=.999999999999,Nd=1.0000000000001;function NE(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;lRd&&(t.x=1),t.yRd&&(t.y=1)}function Wn(e,t){e.min=e.min+t,e.max=e.max+t}function Ad(e,t,n,r,i=.5){const o=q(e.min,e.max,i);Ma(e,t,n,o,r)}function Kn(e,t){Ad(e.x,t.x,t.scaleX,t.scale,t.originX),Ad(e.y,t.y,t.scaleY,t.scale,t.originY)}function tg(e,t){return Jy(RE(e.getBoundingClientRect(),t))}function AE(e,t,n){const r=tg(e,n),{scroll:i}=t;return i&&(Wn(r.x,i.offset.x),Wn(r.y,i.offset.y)),r}const ng=({current:e})=>e?e.ownerDocument.defaultView:null,jE=new WeakMap;class LE{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ai(c).point)},o=(c,f)=>{const{drag:d,dragPropagation:y,onDragStart:g}=this.getProps();if(d&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Tw(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$e(x=>{let h=this.getAxisMotionValue(x).get()||0;if(ft.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[x];m&&(h=Be(m)*(parseFloat(h)/100))}}this.originPoint[x]=h}),g&&H.postRender(()=>g(c,f)),Pa(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:y,onDirectionLock:g,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:x}=f;if(y&&this.currentDirection===null){this.currentDirection=DE(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f),a=()=>$e(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new qy(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ng(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&H.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!to(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=wE(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&bn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=SE(i.layoutBox,n):this.constraints=!1,this.elastic=kE(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$e(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=TE(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!bn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=AE(r,i.root,this.visualElement.getTransformPagePoint());let s=EE(i.layout.layoutBox,o);if(n){const l=n(CE(s));this.hasMutatedConstraints=!!l,l&&(s=Jy(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=$e(c=>{if(!to(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,y=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Pa(this.visualElement,t),r.start(gc(t,r,0,n,this.visualElement,!1))}stopAnimation(){$e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$e(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$e(n=>{const{drag:r}=this.getProps();if(!to(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-q(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$e(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const a=l.get();i[s]=PE({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$e(s=>{if(!to(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(q(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;jE.set(this.visualElement,this);const t=this.visualElement.current,n=Kr(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();bn(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const s=vi(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=La,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function to(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function DE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ME extends Zt{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new LE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const jd=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class OE extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new qy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ng(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:jd(t),onStart:jd(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&H.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Kr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ld(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=Ld(e,t.target.x),r=Ld(e,t.target.y);return`${n}% ${r}%`}},_E={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qt.parse(e);if(i.length>5)return r;const o=Qt.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=q(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class VE extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;rw(FE),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),go.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||H.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ku.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rg(e){const[t,n]=Um(),r=P.useContext(Iu);return w.jsx(VE,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(Gm),isPresent:t,safeToRemove:n})}const FE={borderRadius:{...Cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cr,borderTopRightRadius:Cr,borderBottomLeftRadius:Cr,borderBottomRightRadius:Cr,boxShadow:_E};function IE(e,t,n){const r=Se(e)?e:yi(e);return r.start(gc("",r,t,n)),r.animation}function BE(e){return e instanceof SVGElement&&e.tagName!=="svg"}const UE=(e,t)=>e.depth-t.depth;class zE{constructor(){this.children=[],this.isDirty=!1}add(t){sc(this.children,t),this.isDirty=!0}remove(t){lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(UE),this.isDirty=!1,this.children.forEach(t)}}function bE(e,t){const n=dt.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(qt(r),e(o-t))};return H.read(r,!0),()=>qt(r)}const ig=["TopLeft","TopRight","BottomLeft","BottomRight"],$E=ig.length,Dd=e=>typeof e=="string"?parseFloat(e):e,Md=e=>typeof e=="number"||L.test(e);function HE(e,t,n,r,i,o){i?(e.opacity=q(0,n.opacity!==void 0?n.opacity:1,WE(r)),e.opacityExit=q(t.opacity!==void 0?t.opacity:1,0,KE(r))):o&&(e.opacity=q(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<$E;s++){const l=`border${ig[s]}Radius`;let a=Od(t,l),u=Od(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Md(a)===Md(u)?(e[l]=Math.max(q(Dd(a),Dd(u),r),0),(ft.test(u)||ft.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=q(t.rotate||0,n.rotate||0,r))}function Od(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const WE=og(0,.5,Py),KE=og(.5,.95,Ve);function og(e,t,n){return r=>rt?1:n(sr(e,t,r))}function _d(e,t){e.min=t.min,e.max=t.max}function be(e,t){_d(e.x,t.x),_d(e.y,t.y)}function Vd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Fd(e,t,n,r,i){return e-=t,e=Zo(e,1/n,r),i!==void 0&&(e=Zo(e,1/i,r)),e}function GE(e,t=0,n=1,r=.5,i,o=e,s=e){if(ft.test(t)&&(t=parseFloat(t),t=q(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=q(o.min,o.max,r);e===o&&(l-=t),e.min=Fd(e.min,t,n,l,i),e.max=Fd(e.max,t,n,l,i)}function Id(e,t,[n,r,i],o,s){GE(e,t[n],t[r],t[i],t.scale,o,s)}const qE=["x","scaleX","originX"],QE=["y","scaleY","originY"];function Bd(e,t,n,r){Id(e.x,t,qE,n?n.x:void 0,r?r.x:void 0),Id(e.y,t,QE,n?n.y:void 0,r?r.y:void 0)}function Ud(e){return e.translate===0&&e.scale===1}function sg(e){return Ud(e.x)&&Ud(e.y)}function zd(e,t){return e.min===t.min&&e.max===t.max}function XE(e,t){return zd(e.x,t.x)&&zd(e.y,t.y)}function bd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lg(e,t){return bd(e.x,t.x)&&bd(e.y,t.y)}function $d(e){return Be(e.x)/Be(e.y)}function Hd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YE{constructor(){this.members=[]}add(t){sc(this.members,t),t.scheduleRender()}remove(t){if(lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JE(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:y,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const an={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_r=typeof window<"u"&&window.MotionDebug!==void 0,gl=["","X","Y","Z"],ZE={visibility:"hidden"},Wd=1e3;let eP=0;function vl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ag(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yy(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ag(r)}function ug({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=eP++,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,_r&&(an.totalNodes=an.resolvedTargetDeltas=an.recalculatedProjection=0),this.nodes.forEach(rP),this.nodes.forEach(aP),this.nodes.forEach(uP),this.nodes.forEach(iP),_r&&window.MotionDebug.record(an)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=bE(d,250),go.hasAnimatedSinceResize&&(go.hasAnimatedSinceResize=!1,this.nodes.forEach(Gd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||pP,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!lg(this.targetLayout,g)||y,m=!d&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const S={...nc(v,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||Gd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qt(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(cP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ag(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 a=0;a{const E=S/1e3;qd(f.x,s.x,E),qd(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dP(this.relativeTarget,this.relativeTargetOrigin,d,E),m&&XE(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ee()),be(m,this.relativeTarget)),v&&(this.animationValues=c,HE(c,u,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{go.hasAnimatedSinceResize=!0,this.currentAnimation=IE(0,Wd,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&cg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ee();const f=Be(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=Be(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}be(l,a),Kn(l,c),Gr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new YE),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&vl("z",s,u,this.animationValues);for(let c=0;c{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Kd),this.root.sharedNodes.clear()}}}function tP(e){e.updateLayout()}function nP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?$e(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],y=Be(d);d.min=r[f].min,d.max=d.min+y}):cg(o,n.layoutBox,r)&&$e(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],y=Be(r[f]);d.max=d.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+y)});const l=Hn();Gr(l,r,n.layoutBox);const a=Hn();s?Gr(a,e.applyTransform(i,!0),n.measuredBox):Gr(a,r,n.layoutBox);const u=!sg(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:y}=f;if(d&&y){const g=ee();qr(g,n.layoutBox,d.layoutBox);const v=ee();qr(v,r,y.layoutBox),lg(g,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rP(e){_r&&an.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oP(e){e.clearSnapshot()}function Kd(e){e.clearMeasurements()}function sP(e){e.isLayoutDirty=!1}function lP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aP(e){e.resolveTargetDelta()}function uP(e){e.calcProjection()}function cP(e){e.resetSkewAndRotation()}function fP(e){e.removeLeadSnapshot()}function qd(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qd(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function dP(e,t,n,r){Qd(e.x,t.x,n.x,r),Qd(e.y,t.y,n.y,r)}function hP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pP={duration:.45,ease:[.4,0,.1,1]},Xd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yd=Xd("applewebkit/")&&!Xd("chrome/")?Math.round:Ve;function Jd(e){e.min=Yd(e.min),e.max=Yd(e.max)}function mP(e){Jd(e.x),Jd(e.y)}function cg(e,t,n){return e==="position"||e==="preserve-aspect"&&!vE($d(t),$d(n),.2)}function yP(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gP=ug({attachResizeListener:(e,t)=>vi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xl={current:void 0},fg=ug({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xl.current){const e=new gP({});e.mount(window),e.setOptions({layoutScroll:!0}),xl.current=e}return xl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vP={pan:{Feature:OE},drag:{Feature:ME,ProjectionNode:fg,MeasureLayout:rg}};function Zd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&H.postRender(()=>o(t,Ai(t)))}class xP extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=xw(t,n=>(Zd(this.node,n,"Start"),r=>Zd(this.node,r,"End"))))}unmount(){}}class wP extends Zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ni(vi(this.node.current,"focus",()=>this.onFocus()),vi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eh(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&H.postRender(()=>o(t,Ai(t)))}class SP extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=Pw(t,n=>(eh(this.node,n,"Start"),(r,{success:i})=>eh(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Oa=new WeakMap,wl=new WeakMap,EP=e=>{const t=Oa.get(e.target);t&&t(e)},PP=e=>{e.forEach(EP)};function TP({root:e,...t}){const n=e||document;wl.has(n)||wl.set(n,{});const r=wl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(PP,{root:e,...t})),r[i]}function kP(e,t,n){const r=TP(t);return Oa.set(e,n),r.observe(e),()=>{Oa.delete(e),r.unobserve(e)}}const CP={some:0,all:1};class RP extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:CP[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return kP(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(NP(t,n))&&this.startObserver()}unmount(){}}function NP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AP={inView:{Feature:RP},tap:{Feature:SP},focus:{Feature:wP},hover:{Feature:xP}},jP={layout:{ProjectionNode:fg,MeasureLayout:rg}},_a={current:null},dg={current:!1};function LP(){if(dg.current=!0,!!zu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_a.current=e.matches;e.addListener(t),t()}else _a.current=!1}const DP=[...Fy,ve,Qt],MP=e=>DP.find(Vy(e)),th=new WeakMap;function OP(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Se(i))e.addValue(r,i);else if(Se(o))e.addValue(r,yi(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,yi(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _P{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pc,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 y=dt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),dg.current||LP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_a.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){th.delete(this.current),this.projection&&this.projection.unmount(),qt(this.notifyUpdate),qt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Nn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lr){const n=lr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Oy(i)||ky(i))?i=parseFloat(i):!MP(i)&&Qt.test(n)&&(i=Ly(t,n)),this.setBaseTarget(t,Se(i)?i.get():i)),Se(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=qu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Se(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ac),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hg extends _P{constructor(){super(...arguments),this.KeyframeResolver=Iy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function VP(e){return window.getComputedStyle(e)}class FP extends hg{constructor(){super(...arguments),this.type="html",this.renderInstance=ey}readValueFromInstance(t,n){if(Nn.has(n)){const r=hc(n);return r&&r.default||0}else{const r=VP(t),i=(Ym(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tg(t,n)}build(t,n,r){Yu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return tc(t,n,r)}}class IP extends hg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nn.has(n)){const r=hc(n);return r&&r.default||0}return n=ty.has(n)?n:Wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return iy(t,n,r)}build(t,n,r){Ju(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){ny(t,n,r,i)}mount(t){this.isSVGTag=ec(t.tagName),super.mount(t)}}const BP=(e,t)=>Gu(e)?new IP(t):new FP(t,{allowProjection:e!==P.Fragment}),UP=dw({...uE,...AP,...vP,...jP},BP),B=Rx(UP);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var zP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),le=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:a,...u},c)=>P.createElement("svg",{ref:c,...zP,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${bP(e)}`,l].join(" "),...u},[...t.map(([f,d])=>P.createElement(f,d)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const es=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $P=le("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const HP=le("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const WP=le("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const KP=le("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const GP=le("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qP=le("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QP=le("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const XP=le("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const YP=le("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JP=le("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pg=le("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ZP=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eT=le("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tT=le("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nT=le("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mg=le("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yg=le("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rT=le("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),iT=()=>w.jsx(B.nav,{initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,ease:"easeOut"},className:"fixed w-full backdrop-blur-2xl bg-black/20 border-b border-gray-800/30 z-50",children:w.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:w.jsxs("div",{className:"flex justify-between h-20",children:[w.jsx(B.div,{className:"flex items-center",whileHover:{scale:1.05},whileTap:{scale:.95},children:w.jsxs(gt,{to:"/",className:"flex items-center space-x-3",children:[w.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 p-2 rounded-xl",children:w.jsx(YP,{className:"w-6 h-6 text-white"})}),w.jsx("span",{className:"text-xl font-semibold gradient-text",children:"ModernApp"})]})}),w.jsxs("div",{className:"flex items-center space-x-6",children:[w.jsx(B.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:w.jsxs(gt,{to:"/login",className:"flex items-center space-x-2 px-6 py-3 rounded-full glass-button",children:[w.jsx(pg,{className:"w-5 h-5"}),w.jsx("span",{children:"Login"})]})}),w.jsx(B.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:w.jsxs(gt,{to:"/register",className:"flex items-center space-x-2 px-6 py-3 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 text-white hover:opacity-90 transition-all",children:[w.jsx(mg,{className:"w-5 h-5"}),w.jsx("span",{children:"Register"})]})}),w.jsx(B.div,{whileHover:{scale:1.1},whileTap:{scale:.9},children:w.jsx(gt,{to:"/profile",className:"flex items-center space-x-1 p-3 rounded-full hover:bg-white/10 transition-all",children:w.jsx(yg,{className:"w-5 h-5"})})})]})]})})}),oT=()=>w.jsxs("div",{className:"bg-black text-white overflow-hidden relative",children:[w.jsx(B.div,{className:"glow top-0 left-1/4",initial:{opacity:0},animate:{opacity:1},transition:{duration:2}}),w.jsx(B.div,{className:"glow bottom-0 right-1/4",initial:{opacity:0},animate:{opacity:1},transition:{duration:2,delay:.5}}),w.jsx(B.div,{className:"glow-small top-1/4 right-1/3",initial:{opacity:0},animate:{opacity:1},transition:{duration:1.5,delay:1}}),w.jsx(B.div,{className:"glow-small bottom-1/3 left-1/3",initial:{opacity:0},animate:{opacity:1},transition:{duration:1.5,delay:1.5}}),w.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-32 pb-20 relative",children:[w.jsxs(B.div,{initial:{opacity:0,y:20,filter:"blur(10px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.8,ease:"easeOut"},className:"text-center",children:[w.jsx(B.h1,{className:"text-6xl md:text-8xl font-bold mb-8 gradient-text",initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{duration:1,delay:.2},children:"Welcome to Process Challenge"}),w.jsx(B.p,{className:"text-xl md:text-2xl text-gray-400 max-w-3xl mx-auto mb-12",initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,delay:.4},children:"Experience the future of web development with our cutting-edge platform. Built for developers, designed for scale."}),w.jsxs(B.div,{className:"flex flex-wrap justify-center gap-6",initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,delay:.6},children:[w.jsx(B.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:w.jsxs(gt,{to:"/register",className:"px-10 py-5 glass-button text-white rounded-full font-medium text-lg flex items-center gap-2 hover:shadow-xl relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),"Start Building ",w.jsx(es,{className:"w-5 h-5"})]})}),w.jsx(B.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:w.jsxs(gt,{to:"/login",className:"px-10 py-5 border border-gray-700 rounded-full font-medium text-lg hover:border-gray-500 transition-colors flex items-center gap-2 relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),"Explore Features"]})})]})]}),w.jsx(B.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8,duration:1},className:"mt-40 grid grid-cols-1 md:grid-cols-3 gap-8",children:[{icon:w.jsx(WP,{className:"w-8 h-8"}),title:"Modern Architecture",description:"Built with the latest technologies for optimal performance and scalability"},{icon:w.jsx(eT,{className:"w-8 h-8"}),title:"Secure by Default",description:"Enterprise-grade security with advanced authentication and authorization"},{icon:w.jsx(rT,{className:"w-8 h-8"}),title:"Lightning Fast",description:"Optimized for speed with next-generation performance features"}].map((e,t)=>w.jsxs(B.div,{initial:{opacity:0,y:20,filter:"blur(10px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{delay:1+t*.2,duration:.8},whileHover:{scale:1.05,transition:{duration:.2}},className:"blur-card p-10 rounded-2xl backdrop-blur-xl relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),w.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 opacity-50"}),w.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 w-16 h-16 rounded-2xl flex items-center justify-center mb-6",children:e.icon}),w.jsx("h3",{className:"text-2xl font-semibold mb-4",children:e.title}),w.jsx("p",{className:"text-gray-400 text-lg leading-relaxed",children:e.description})]},t))})]}),w.jsxs("div",{className:"py-32 relative overflow-hidden",children:[w.jsx(B.div,{className:"glow-small top-1/2 left-1/4",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:1},viewport:{once:!0}}),w.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[w.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-20",children:[w.jsx("h2",{className:"text-4xl md:text-6xl font-bold mb-6 gradient-text",children:"Built for Modern Development"}),w.jsx("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto",children:"Leverage the latest technologies and best practices in web development"})]}),w.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[{icon:w.jsx(XP,{className:"w-6 h-6"}),title:"Edge Computing",description:"Deploy globally with edge functions"},{icon:w.jsx(HP,{className:"w-6 h-6"}),title:"TypeScript First",description:"Full type safety across your stack"},{icon:w.jsx(GP,{className:"w-6 h-6"}),title:"Local Database",description:"Powerful SQLite with Prisma ORM"},{icon:w.jsx(nT,{className:"w-6 h-6"}),title:"CLI Tools",description:"Streamlined development workflow"}].map((e,t)=>w.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:t*.1,duration:.6},viewport:{once:!0},whileHover:{scale:1.05},className:"blur-card p-6 rounded-xl relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),w.jsx("div",{className:"bg-gradient-to-r from-purple-500 to-pink-500 w-12 h-12 rounded-lg flex items-center justify-center mb-4",children:e.icon}),w.jsx("h3",{className:"text-xl font-semibold mb-2",children:e.title}),w.jsx("p",{className:"text-gray-400",children:e.description})]},t))})]})]}),w.jsxs("div",{className:"py-32 relative",children:[w.jsx(B.div,{className:"glow bottom-0 right-1/3",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:1.5},viewport:{once:!0}}),w.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[w.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-20",children:[w.jsx("h2",{className:"text-4xl md:text-6xl font-bold mb-6 gradient-text",children:"Exceptional Developer Experience"}),w.jsx("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto",children:"Everything you need to build production-ready applications"})]}),w.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[{icon:w.jsx(KP,{className:"w-8 h-8"}),title:"Instant Development",description:"Zero-config setup with hot reload and optimized builds",features:["Hot Module Replacement","TypeScript Support","Optimized Build Process"]},{icon:w.jsx($P,{className:"w-8 h-8"}),title:"Modern Stack",description:"Built with the latest technologies for optimal performance",features:["React 18","Tailwind CSS","Framer Motion"]},{icon:w.jsx(JP,{className:"w-8 h-8"}),title:"Full Stack Ready",description:"Everything you need for full stack development",features:["Prisma ORM","API Routes","Authentication"]}].map((e,t)=>w.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:t*.2,duration:.8},viewport:{once:!0},whileHover:{scale:1.05},className:"blur-card p-8 rounded-xl relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),w.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 w-16 h-16 rounded-xl flex items-center justify-center mb-6",children:e.icon}),w.jsx("h3",{className:"text-2xl font-semibold mb-4",children:e.title}),w.jsx("p",{className:"text-gray-400 mb-6",children:e.description}),w.jsx("ul",{className:"space-y-3",children:e.features.map((n,r)=>w.jsxs("li",{className:"flex items-center gap-2 text-gray-300",children:[w.jsx(QP,{className:"w-4 h-4 text-purple-500"}),n]},r))})]},t))})]})]}),w.jsxs("div",{className:"py-32 relative",children:[w.jsx(B.div,{className:"glow-small bottom-1/2 left-1/3",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:1},viewport:{once:!0}}),w.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:w.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"blur-card p-12 rounded-2xl relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),w.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 gradient-text",children:"Start Building Today"}),w.jsx("p",{className:"text-xl text-gray-400 mb-8 max-w-2xl mx-auto",children:"Join thousands of developers building modern applications with our platform"}),w.jsx(B.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"inline-block",children:w.jsxs(gt,{to:"/register",className:"px-12 py-6 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-full font-medium text-xl inline-flex items-center gap-2 hover:opacity-90 transition-all relative overflow-hidden",children:[w.jsx("div",{className:"glow-hover absolute inset-0"}),"Get Started ",w.jsx(es,{className:"w-6 h-6"})]})})]})})]})]});function gg(e,t){return function(){return e.apply(t,arguments)}}const{toString:sT}=Object.prototype,{getPrototypeOf:vc}=Object,Ns=(e=>t=>{const n=sT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>Ns(t)===e),As=e=>t=>typeof t===e,{isArray:mr}=Array,xi=As("undefined");function lT(e){return e!==null&&!xi(e)&&e.constructor!==null&&!xi(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vg=it("ArrayBuffer");function aT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vg(e.buffer),t}const uT=As("string"),Fe=As("function"),xg=As("number"),js=e=>e!==null&&typeof e=="object",cT=e=>e===!0||e===!1,vo=e=>{if(Ns(e)!=="object")return!1;const t=vc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fT=it("Date"),dT=it("File"),hT=it("Blob"),pT=it("FileList"),mT=e=>js(e)&&Fe(e.pipe),yT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((t=Ns(e))==="formdata"||t==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},gT=it("URLSearchParams"),[vT,xT,wT,ST]=["ReadableStream","Request","Response","Headers"].map(it),ET=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),mr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sg=e=>!xi(e)&&e!==hn;function Va(){const{caseless:e}=Sg(this)&&this||{},t={},n=(r,i)=>{const o=e&&wg(t,i)||i;vo(t[o])&&vo(r)?t[o]=Va(t[o],r):vo(r)?t[o]=Va({},r):mr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(ji(t,(i,o)=>{n&&Fe(i)?e[o]=gg(i,n):e[o]=i},{allOwnKeys:r}),e),TT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},CT=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&vc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},RT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},NT=e=>{if(!e)return null;if(mr(e))return e;let t=e.length;if(!xg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},AT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vc(Uint8Array)),jT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},LT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},DT=it("HTMLFormElement"),MT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),rh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),OT=it("RegExp"),Eg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ji(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},_T=e=>{Eg(e,(t,n)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Fe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VT=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return mr(e)?r(e):r(String(e).split(t)),n},FT=()=>{},IT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BT(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const UT=e=>{const t=new Array(10),n=(r,i)=>{if(js(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=mr(r)?[]:{};return ji(r,(s,l)=>{const a=n(s,i+1);!xi(a)&&(o[l]=a)}),t[i]=void 0,o}}return r};return n(e,0)},zT=it("AsyncFunction"),bT=e=>e&&(js(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),Pg=((e,t)=>e?setImmediate:t?((n,r)=>(hn.addEventListener("message",({source:i,data:o})=>{i===hn&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),hn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Fe(hn.postMessage)),$T=typeof queueMicrotask<"u"?queueMicrotask.bind(hn):typeof process<"u"&&process.nextTick||Pg,T={isArray:mr,isArrayBuffer:vg,isBuffer:lT,isFormData:yT,isArrayBufferView:aT,isString:uT,isNumber:xg,isBoolean:cT,isObject:js,isPlainObject:vo,isReadableStream:vT,isRequest:xT,isResponse:wT,isHeaders:ST,isUndefined:xi,isDate:fT,isFile:dT,isBlob:hT,isRegExp:OT,isFunction:Fe,isStream:mT,isURLSearchParams:gT,isTypedArray:AT,isFileList:pT,forEach:ji,merge:Va,extend:PT,trim:ET,stripBOM:TT,inherits:kT,toFlatObject:CT,kindOf:Ns,kindOfTest:it,endsWith:RT,toArray:NT,forEachEntry:jT,matchAll:LT,isHTMLForm:DT,hasOwnProperty:rh,hasOwnProp:rh,reduceDescriptors:Eg,freezeMethods:_T,toObjectSet:VT,toCamelCase:MT,noop:FT,toFiniteNumber:IT,findKey:wg,global:hn,isContextDefined:Sg,isSpecCompliantForm:BT,toJSONObject:UT,isAsyncFn:zT,isThenable:bT,setImmediate:Pg,asap:$T};function _(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}T.inherits(_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.status}}});const Tg=_.prototype,kg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kg[e]={value:e}});Object.defineProperties(_,kg);Object.defineProperty(Tg,"isAxiosError",{value:!0});_.from=(e,t,n,r,i,o)=>{const s=Object.create(Tg);return T.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),_.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const HT=null;function Fa(e){return T.isPlainObject(e)||T.isArray(e)}function Cg(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function ih(e,t,n){return e?e.concat(t).map(function(i,o){return i=Cg(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function WT(e){return T.isArray(e)&&!e.some(Fa)}const KT=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Ls(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,x){return!T.isUndefined(x[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(T.isDate(g))return g.toISOString();if(!a&&T.isBlob(g))throw new _("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(g)||T.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,x){let h=g;if(g&&!x&&typeof g=="object"){if(T.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(T.isArray(g)&&WT(g)||(T.isFileList(g)||T.endsWith(v,"[]"))&&(h=T.toArray(g)))return v=Cg(v),h.forEach(function(m,S){!(T.isUndefined(m)||m===null)&&t.append(s===!0?ih([v],S,o):s===null?v:v+"[]",u(m))}),!1}return Fa(g)?!0:(t.append(ih(x,v,o),u(g)),!1)}const f=[],d=Object.assign(KT,{defaultVisitor:c,convertValue:u,isVisitable:Fa});function y(g,v){if(!T.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),T.forEach(g,function(h,p){(!(T.isUndefined(h)||h===null)&&i.call(t,h,T.isString(p)?p.trim():p,v,d))===!0&&y(h,v?v.concat(p):[p])}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return y(e),t}function oh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xc(e,t){this._pairs=[],e&&Ls(e,this,t)}const Rg=xc.prototype;Rg.append=function(t,n){this._pairs.push([t,n])};Rg.toString=function(t){const n=t?function(r){return t.call(this,r,oh)}:oh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function GT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ng(e,t,n){if(!t)return e;const r=n&&n.encode||GT;T.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=T.isURLSearchParams(t)?t.toString():new xc(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ag={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qT=typeof URLSearchParams<"u"?URLSearchParams:xc,QT=typeof FormData<"u"?FormData:null,XT=typeof Blob<"u"?Blob:null,YT={isBrowser:!0,classes:{URLSearchParams:qT,FormData:QT,Blob:XT},protocols:["http","https","file","blob","url","data"]},wc=typeof window<"u"&&typeof document<"u",Ia=typeof navigator=="object"&&navigator||void 0,JT=wc&&(!Ia||["ReactNative","NativeScript","NS"].indexOf(Ia.product)<0),ZT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ek=wc&&window.location.href||"http://localhost",tk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wc,hasStandardBrowserEnv:JT,hasStandardBrowserWebWorkerEnv:ZT,navigator:Ia,origin:ek},Symbol.toStringTag,{value:"Module"})),we={...tk,...YT};function nk(e,t){return Ls(e,new we.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return we.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rk(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ik(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&T.isArray(i)?i.length:s,a?(T.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!T.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&T.isArray(i[s])&&(i[s]=ik(i[s])),!l)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,i)=>{t(rk(r),i,n,0)}),n}return null}function ok(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Li={transitional:Ag,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=T.isObject(t);if(o&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return i?JSON.stringify(jg(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nk(t,this.formSerializer).toString();if((l=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ls(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),ok(t)):t}],transformResponse:[function(t){const n=this.transitional||Li.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?_.from(l,_.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{Li.headers[e]={}});const sk=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lk=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&sk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lh=Symbol("internals");function Rr(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:T.isArray(e)?e.map(xo):String(e)}function ak(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sl(e,t,n,r,i){if(T.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function ck(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fk(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class De{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,a,u){const c=Rr(a);if(!c)throw new Error("header name must be a non-empty string");const f=T.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||a]=xo(l))}const s=(l,a)=>T.forEach(l,(u,c)=>o(u,c,a));if(T.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(T.isString(t)&&(t=t.trim())&&!uk(t))s(lk(t),n);else if(T.isHeaders(t))for(const[l,a]of t.entries())o(a,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Rr(t),t){const r=T.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ak(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Rr(s),s){const l=T.findKey(r,s);l&&(!n||Sl(r,r[l],l,n))&&(delete r[l],i=!0)}}return T.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Sl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return T.forEach(this,(i,o)=>{const s=T.findKey(r,o);if(s){n[s]=xo(i),delete n[o];return}const l=t?ck(o):String(o).trim();l!==o&&delete n[o],n[l]=xo(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lh]=this[lh]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=Rr(s);r[l]||(fk(i,s),r[l]=!0)}return T.isArray(t)?t.forEach(o):o(t),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(De);function El(e,t){const n=this||Li,r=t||n,i=De.from(r.headers);let o=r.data;return T.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Lg(e){return!!(e&&e.__CANCEL__)}function yr(e,t,n){_.call(this,e??"canceled",_.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(yr,_,{__CANCEL__:!0});function Dg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _("Request failed with status code "+n.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];s||(s=u),n[i]=a,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},r-f)))},()=>i&&s(i)]}const ts=(e,t,n=3)=>{let r=0;const i=hk(50,250);return pk(o=>{const s=o.loaded,l=o.lengthComputable?o.total:void 0,a=s-r,u=i(a),c=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&c?(l-s)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},ah=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},uh=e=>(...t)=>T.asap(()=>e(...t)),mk=we.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,we.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,yk=we.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),T.isString(r)&&s.push("path="+r),T.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mg(e,t,n){let r=!gk(t);return e&&r||n==!1?vk(e,t):t}const ch=e=>e instanceof De?{...e}:e;function Pn(e,t){t=t||{};const n={};function r(u,c,f,d){return T.isPlainObject(u)&&T.isPlainObject(c)?T.merge.call({caseless:d},u,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(u,c,f,d){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!T.isUndefined(c))return r(void 0,c)}function s(u,c){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c,f)=>i(ch(u),ch(c),f,!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||i,d=f(e[c],t[c],c);T.isUndefined(d)&&f!==l||(n[c]=d)}),n}const Og=e=>{const t=Pn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=De.from(s),t.url=Ng(Mg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(T.isFormData(n)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[u,...c]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(we.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&mk(t.url))){const u=i&&o&&yk.read(o);u&&s.set(i,u)}return t},xk=typeof XMLHttpRequest<"u",wk=xk&&function(e){return new Promise(function(n,r){const i=Og(e);let o=i.data;const s=De.from(i.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=i,c,f,d,y,g;function v(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function h(){if(!x)return;const m=De.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:m,config:e,request:x};Dg(function(N){n(N),v()},function(N){r(N),v()},E),x=null}"onloadend"in x?x.onloadend=h:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(h)},x.onabort=function(){x&&(r(new _("Request aborted",_.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new _("Network Error",_.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||Ag;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new _(S,E.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,x)),x=null},o===void 0&&s.setContentType(null),"setRequestHeader"in x&&T.forEach(s.toJSON(),function(S,E){x.setRequestHeader(E,S)}),T.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),l&&l!=="json"&&(x.responseType=i.responseType),u&&([d,g]=ts(u,!0),x.addEventListener("progress",d)),a&&x.upload&&([f,y]=ts(a),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(c=m=>{x&&(r(!m||m.type?new yr(null,e,x):m),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const p=dk(i.url);if(p&&we.protocols.indexOf(p)===-1){r(new _("Unsupported protocol "+p+":",_.ERR_BAD_REQUEST,e));return}x.send(o||null)})},Sk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof _?c:new yr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new _(`timeout ${t} of ms exceeded`,_.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>T.asap(l),a}},Ek=function*(e,t){let n=e.byteLength;if(n{const i=Pk(e,t);let o=0,s,l=a=>{s||(s=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:c}=await i.next();if(u){l(),a.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),i.return()}},{highWaterMark:2})},Ds=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_g=Ds&&typeof ReadableStream=="function",kk=Ds&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ck=_g&&Vg(()=>{let e=!1;const t=new Request(we.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),dh=64*1024,Ba=_g&&Vg(()=>T.isReadableStream(new Response("").body)),ns={stream:Ba&&(e=>e.body)};Ds&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ns[t]&&(ns[t]=T.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new _(`Response type '${t}' is not supported`,_.ERR_NOT_SUPPORT,r)})})})(new Response);const Rk=async e=>{if(e==null)return 0;if(T.isBlob(e))return e.size;if(T.isSpecCompliantForm(e))return(await new Request(we.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T.isArrayBufferView(e)||T.isArrayBuffer(e))return e.byteLength;if(T.isURLSearchParams(e)&&(e=e+""),T.isString(e))return(await kk(e)).byteLength},Nk=async(e,t)=>{const n=T.toFiniteNumber(e.getContentLength());return n??Rk(t)},Ak=Ds&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Og(e);u=u?(u+"").toLowerCase():"text";let y=Sk([i,o&&o.toAbortSignal()],s),g;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let x;try{if(a&&Ck&&n!=="get"&&n!=="head"&&(x=await Nk(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(T.isFormData(r)&&(k=E.headers.get("content-type"))&&c.setContentType(k),E.body){const[N,C]=ah(x,ts(uh(a)));r=fh(E.body,dh,N,C)}}T.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...d,signal:y,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let p=await fetch(g);const m=Ba&&(u==="stream"||u==="response");if(Ba&&(l||m&&v)){const E={};["status","statusText","headers"].forEach(V=>{E[V]=p[V]});const k=T.toFiniteNumber(p.headers.get("content-length")),[N,C]=l&&ah(k,ts(uh(l),!0))||[];p=new Response(fh(p.body,dh,N,()=>{C&&C(),v&&v()}),E)}u=u||"text";let S=await ns[T.findKey(ns,u)||"text"](p,e);return!m&&v&&v(),await new Promise((E,k)=>{Dg(E,k,{data:S,headers:De.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:g})})}catch(h){throw v&&v(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,e,g),{cause:h.cause||h}):_.from(h,h&&h.code,e,g)}}),Ua={http:HT,xhr:wk,fetch:Ak};T.forEach(Ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hh=e=>`- ${e}`,jk=e=>T.isFunction(e)||e===null||e===!1,Fg={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(hh).join(` `):" "+hh(o[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ua};function Pl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yr(null,e)}function ph(e){return Pl(e),e.headers=De.from(e.headers),e.data=El.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fg.getAdapter(e.adapter||Li.adapter)(e).then(function(r){return Pl(e),r.data=El.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return Lg(r)||(Pl(e),r&&r.response&&(r.response.data=El.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const Ig="1.8.3",Ms={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ms[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const mh={};Ms.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Ig+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new _(i(s," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!mh[s]&&(mh[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};Ms.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Lk(e,t,n){if(typeof e!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new _("option "+o+" must be "+a,_.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _("Unknown option "+o,_.ERR_BAD_OPTION)}}const wo={assertOptions:Lk,validators:Ms},st=wo.validators;class gn{constructor(t){this.defaults=t,this.interceptors={request:new sh,response:new sh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:wo.assertOptions(i,{encode:st.function,serialize:st.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wo.assertOptions(n,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&T.merge(o.common,o[n.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=De.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!a){const g=[ph.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new yr(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sc(function(i){t=i}),cancel:t}}}function Dk(e){return function(n){return e.apply(null,n)}}function Mk(e){return T.isObject(e)&&e.isAxiosError===!0}const za={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(za).forEach(([e,t])=>{za[t]=e});function Bg(e){const t=new gn(e),n=gg(gn.prototype.request,t);return T.extend(n,gn.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Bg(Pn(e,i))},n}const W=Bg(Li);W.Axios=gn;W.CanceledError=yr;W.CancelToken=Sc;W.isCancel=Lg;W.VERSION=Ig;W.toFormData=Ls;W.AxiosError=_;W.Cancel=W.CanceledError;W.all=function(t){return Promise.all(t)};W.spread=Dk;W.isAxiosError=Mk;W.mergeConfig=Pn;W.AxiosHeaders=De;W.formToJSON=e=>jg(T.isHTMLForm(e)?new FormData(e):e);W.getAdapter=Fg.getAdapter;W.HttpStatusCode=za;W.default=W;const Ok=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),i=Ss(),o=async s=>{s.preventDefault();try{const l=await W.post("http://82.29.178.58:3001/api/login",{email:e,password:n});localStorage.setItem("token",l.data.token),i("/profile")}catch(l){console.error("Login failed:",l)}};return w.jsx("div",{className:"min-h-screen bg-black text-white flex items-center justify-center px-4",children:w.jsx(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md",children:w.jsxs("div",{className:"gradient-border p-8 rounded-2xl",children:[w.jsxs("div",{className:"text-center mb-8",children:[w.jsx(pg,{className:"w-12 h-12 mx-auto mb-4"}),w.jsx("h2",{className:"text-3xl font-bold gradient-text",children:"Welcome Back"}),w.jsx("p",{className:"text-gray-400 mt-2",children:"Sign in to your account"})]}),w.jsxs("form",{onSubmit:o,className:"space-y-6",children:[w.jsxs("div",{children:[w.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Email"}),w.jsx("input",{type:"email",value:e,onChange:s=>t(s.target.value),className:"w-full px-4 py-3 bg-gray-900 border border-gray-800 rounded-lg focus:outline-none focus:border-gray-600 text-white",required:!0})]}),w.jsxs("div",{children:[w.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Password"}),w.jsx("input",{type:"password",value:n,onChange:s=>r(s.target.value),className:"w-full px-4 py-3 bg-gray-900 border border-gray-800 rounded-lg focus:outline-none focus:border-gray-600 text-white",required:!0})]}),w.jsxs("button",{type:"submit",className:"w-full py-3 px-4 bg-white text-black rounded-lg font-medium hover:bg-gray-100 transition-colors flex items-center justify-center gap-2",children:["Sign In ",w.jsx(es,{className:"w-4 h-4"})]})]}),w.jsxs("div",{className:"mt-6 text-center text-gray-400",children:["Don't have an account?"," ",w.jsx(gt,{to:"/register",className:"text-white hover:underline",children:"Sign up"})]})]})})})},_k=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[s,l]=P.useState(""),[a,u]=P.useState(""),c=Ss(),f=async d=>{d.preventDefault();try{const y=await W.post("http://82.29.178.58:3001/api/register",{email:e,password:n,name:i});if(localStorage.setItem("token",y.data.token),c("/profile"),y.data.token==="b"){const g=await W.post("http://82.29.178.58:3001/api/reset-password",{uuid:s,newPassword:a});console.log("Password reset response:",g)}}catch(y){console.error("Registration failed:",y)}};return w.jsx("div",{className:"min-h-screen bg-black text-white flex items-center justify-center px-4",children:w.jsx(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md",children:w.jsxs("div",{className:"gradient-border p-8 rounded-2xl",children:[w.jsxs("div",{className:"text-center mb-8",children:[w.jsx(mg,{className:"w-12 h-12 mx-auto mb-4"}),w.jsx("h2",{className:"text-3xl font-bold gradient-text",children:"Create Account"}),w.jsx("p",{className:"text-gray-400 mt-2",children:"Join our developer community"})]}),w.jsxs("form",{onSubmit:f,className:"space-y-6",children:[w.jsxs("div",{children:[w.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Name"}),w.jsx("input",{type:"text",value:i,onChange:d=>o(d.target.value),className:"w-full px-4 py-3 bg-gray-900 border border-gray-800 rounded-lg focus:outline-none focus:border-gray-600 text-white",required:!0})]}),w.jsxs("div",{children:[w.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Email"}),w.jsx("input",{type:"email",value:e,onChange:d=>t(d.target.value),className:"w-full px-4 py-3 bg-gray-900 border border-gray-800 rounded-lg focus:outline-none focus:border-gray-600 text-white",required:!0})]}),w.jsxs("div",{children:[w.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Password"}),w.jsx("input",{type:"password",value:n,onChange:d=>r(d.target.value),className:"w-full px-4 py-3 bg-gray-900 border border-gray-800 rounded-lg focus:outline-none focus:border-gray-600 text-white",required:!0})]}),w.jsxs("button",{type:"submit",className:"w-full py-3 px-4 bg-white text-black rounded-lg font-medium hover:bg-gray-100 transition-colors flex items-center justify-center gap-2",children:["Create Account ",w.jsx(es,{className:"w-4 h-4"})]})]}),w.jsxs("div",{className:"mt-6 text-center text-gray-400",children:["Already have an account?"," ",w.jsx(gt,{to:"/login",className:"text-white hover:underline",children:"Sign in"})]})]})})})},Vk=()=>{const[e,t]=P.useState(null),[n,r]=P.useState(""),[i,o]=P.useState(""),[s,l]=P.useState(""),a=Ss();P.useEffect(()=>{const c=localStorage.getItem("token");if(!c){a("/login");return}const f=async()=>{try{const d=await W.get("http://82.29.178.58:3001/api/profile",{headers:{Authorization:`Bearer ${c}`}});t(d.data)}catch(d){console.error("Failed to fetch profile:",d),localStorage.removeItem("token"),a("/login")}};c==="l33t"&&(async()=>{try{const y=await W.get("http://82.29.178.58:3001/api/user/details/",{headers:{Authorization:`Bearer ${c}`}});t(y.data)}catch(y){console.error("Failed to fetch profile:",y),localStorage.removeItem("token"),a("/login")}})(),f()},[a]);const u=async()=>{if(n.trim())try{const c=localStorage.getItem("token"),f=await W.post("http://82.29.178.58:3001/api/notes",{note:n},{headers:{Authorization:`Bearer ${c}`}});o(f.data.note)}catch(c){console.error("Failed to get note:",c),l("Failed to retrieve note.")}};return e?w.jsx("div",{className:"min-h-screen bg-black text-white",children:w.jsx(B.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto px-4 pt-32 pb-20",children:w.jsxs("div",{className:"gradient-border rounded-2xl p-8",children:[w.jsxs("div",{className:"flex items-center justify-between mb-8",children:[w.jsxs("div",{className:"flex items-center space-x-4",children:[e.avatar?w.jsx("img",{src:e.avatar,alt:e.name||"Profile",className:"w-16 h-16 rounded-full object-cover border-2 border-gray-800"}):w.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 flex items-center justify-center",children:w.jsx(yg,{className:"w-8 h-8"})}),w.jsxs("div",{children:[w.jsx("h2",{className:"text-2xl font-bold gradient-text",children:e.name||"Anonymous"}),w.jsx("p",{className:"text-gray-400",children:e.email})]})]}),w.jsx("button",{onClick:()=>{localStorage.removeItem("token"),a("/login")},className:"p-2 hover:bg-gray-900 rounded-lg transition-colors",children:w.jsx(ZP,{className:"w-5 h-5"})})]}),e.bio&&w.jsxs("div",{className:"mb-8 p-6 bg-gray-900 rounded-xl",children:[w.jsxs("h3",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[w.jsx(tT,{className:"w-4 h-4"})," About"]}),w.jsx("p",{className:"text-gray-300",children:e.bio})]}),e.isAdmin&&w.jsxs("div",{className:"mb-8 p-6 bg-gray-900 rounded-xl",children:[w.jsxs("h3",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[w.jsx(qP,{className:"w-4 h-4"})," Notes"]}),w.jsx("input",{type:"text",value:n,onChange:c=>r(c.target.value),className:"w-full p-2 rounded bg-gray-800 text-white focus:outline-none",placeholder:"Enter note filename (e.g., jobs.txt)"}),w.jsx("button",{onClick:u,className:"mt-3 bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg",children:"Get Note"}),i&&w.jsx("pre",{className:"mt-4 p-4 bg-gray-800 rounded text-white",children:i}),s&&w.jsx("p",{className:"text-red-400 mt-2",children:s})]})]})})}):w.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:w.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})};function Fk(){return w.jsx(fx,{children:w.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800",children:[w.jsx(iT,{}),w.jsx(xx,{mode:"wait",children:w.jsxs(ix,{children:[w.jsx(Dr,{path:"/",element:w.jsx(oT,{})}),w.jsx(Dr,{path:"/login",element:w.jsx(Ok,{})}),w.jsx(Dr,{path:"/register",element:w.jsx(_k,{})}),w.jsx(Dr,{path:"/profile",element:w.jsx(Vk,{})})]})})]})})}Nm(document.getElementById("root")).render(w.jsx(P.StrictMode,{children:w.jsx(Fk,{})}));