(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},Ss={},Xf={exports:{}},_={};/** * @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 Zr=Symbol.for("react.element"),Wm=Symbol.for("react.portal"),Hm=Symbol.for("react.fragment"),Km=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Qm=Symbol.for("react.provider"),Ym=Symbol.for("react.context"),Xm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),qm=Symbol.for("react.memo"),bm=Symbol.for("react.lazy"),yu=Symbol.iterator;function Jm(e){return e===null||typeof e!="object"?null:(e=yu&&e[yu]||e["@@iterator"],typeof e=="function"?e:null)}var Zf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qf=Object.assign,bf={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Zf}Qn.prototype.isReactComponent={};Qn.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")};Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jf(){}Jf.prototype=Qn.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Zf}var $l=Ul.prototype=new Jf;$l.constructor=Ul;qf($l,Qn.prototype);$l.isPureReactComponent=!0;var vu=Array.isArray,ed=Object.prototype.hasOwnProperty,Wl={current:null},td={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ed.call(t,r)&&!td.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,re=A[X];if(0>>1;Xi(Hs,L))Hti(li,Hs)?(A[X]=li,A[Ht]=L,X=Ht):(A[X]=Hs,A[Wt]=L,X=Wt);else if(Hti(li,L))A[X]=li,A[Ht]=L,X=Ht;else break e}}return j}function i(A,j){var L=A.sortIndex-j.sortIndex;return L!==0?L:A.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(A){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=A)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function v(A){if(x=!1,m(A),!y)if(n(a)!==null)y=!0,si(S);else{var j=n(u);j!==null&&J(v,j.startTime-A)}}function S(A,j){y=!1,x&&(x=!1,p(T),T=-1),g=!0;var L=d;try{for(m(j),f=n(a);f!==null&&(!(f.expirationTime>j)||A&&!ne());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var re=X(f.expirationTime<=j);j=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),m(j)}else r(a);f=n(a)}if(f!==null)var oi=!0;else{var Wt=n(u);Wt!==null&&J(v,Wt.startTime-j),oi=!1}return oi}finally{f=null,d=L,g=!1}}var P=!1,E=null,T=-1,V=5,N=-1;function ne(){return!(e.unstable_now()-NA||125X?(A.sortIndex=L,t(u,A),n(a)===null&&A===n(u)&&(x?(p(T),T=-1):x=!0,J(v,L-X))):(A.sortIndex=re,t(a,A),y||g||(y=!0,si(S))),A},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(A){var j=d;return function(){var L=d;d=j;try{return A.apply(this,arguments)}finally{d=L}}}})(ld);od.exports=ld;var cg=od.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 fg=D,Ne=cg;function C(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"),Lo=Object.prototype.hasOwnProperty,dg=/^[: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]*$/,wu={},Su={};function hg(e){return Lo.call(Su,e)?!0:Lo.call(wu,e)?!1:dg.test(e)?Su[e]=!0:(wu[e]=!0,!1)}function pg(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 mg(e,t,n,r){if(t===null||typeof t>"u"||pg(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 we(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new we(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Ql(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(Gl,Ql);ce[t]=new we(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(Gl,Ql);ce[t]=new we(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(Gl,Ql);ce[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yl(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ar(e):""}function gg(e){switch(e.tag){case 5:return ar(e.type);case 16:return ar("Lazy");case 13:return ar("Suspense");case 19:return ar("SuspenseList");case 0:case 2:case 15:return e=Ys(e.type,!1),e;case 11:return e=Ys(e.type.render,!1),e;case 1:return e=Ys(e.type,!0),e;default:return""}}function Oo(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 pn:return"Fragment";case hn:return"Portal";case Vo:return"Profiler";case Xl:return"StrictMode";case _o:return"Suspense";case Fo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cd:return(e.displayName||"Context")+".Consumer";case ud:return(e._context.displayName||"Context")+".Provider";case Zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ql:return t=e.displayName||null,t!==null?t:Oo(e.type)||"Memo";case wt:t=e._payload,e=e._init;try{return Oo(e(t))}catch{}}return null}function yg(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 Oo(t);case 8:return t===Xl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vg(e){var t=dd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){e._valueTracker||(e._valueTracker=vg(e))}function hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hi(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 Io(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vt(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 pd(e,t){t=t.checked,t!=null&&Yl(e,"checked",t,!1)}function zo(e,t){pd(e,t);var n=Vt(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")?Bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bo(e,t.type,Vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var 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 Bo(e,t,n){(t!=="number"||Hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mr={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},xg=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){xg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function vd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function xd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wg=G({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 Wo(e,t){if(t){if(wg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ho(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 Ko=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Go=null,Nn=null,jn=null;function Du(e){if(e=Jr(e)){if(typeof Go!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Es(t),Go(e.stateNode,e.type,t))}}function wd(e){Nn?jn?jn.push(e):jn=[e]:Nn=e}function Sd(){if(Nn){var e=Nn,t=jn;if(jn=Nn=null,Du(e),t)for(e=0;e>>=0,e===0?32:31-(Ng(e)/jg|0)|0}var di=64,hi=4194304;function cr(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 Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=cr(l):(s&=o,s!==0&&(r=cr(s)))}else o=n&~i,o!==0?r=cr(o):s!==0&&(r=cr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Fg(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=yr),Fu=" ",Ou=!1;function Ud(e,t){switch(e){case"keyup":return c0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function d0(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(Ou=!0,Fu);case"textInput":return e=t.data,e===Fu&&Ou?null:e;default:return null}}function h0(e,t){if(mn)return e==="compositionend"||!oa&&Ud(e,t)?(e=zd(),ji=ra=Tt=null,mn=!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=Uu(n)}}function Gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qd(){for(var e=window,t=Hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hi(e.document)}return t}function la(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 k0(e){var t=Qd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gd(n.ownerDocument.documentElement,n)){if(r!==null&&la(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=$u(n,s);var o=$u(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,gn=null,bo=null,xr=null,Jo=!1;function Wu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jo||gn==null||gn!==Hi(r)||(r=gn,"selectionStart"in r&&la(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}),xr&&_r(xr,r)||(xr=r,r=qi(bo,"onSelect"),0xn||(e.current=sl[xn],sl[xn]=null,xn--)}function I(e,t){xn++,sl[xn]=e.current,e.current=t}var _t={},ge=zt(_t),Pe=zt(!1),rn=_t;function On(e,t){var n=e.type.contextTypes;if(!n)return _t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function Ji(){B(Pe),B(ge)}function Zu(e,t,n){if(ge.current!==_t)throw Error(C(168));I(ge,t),I(Pe,n)}function nh(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(C(108,yg(e)||"Unknown",i));return G({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,rn=ge.current,I(ge,e),I(Pe,Pe.current),!0}function qu(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=nh(e,t,rn),r.__reactInternalMemoizedMergedChildContext=e,B(Pe),B(ge),I(ge,e)):B(Pe),I(Pe,n)}var st=null,Ds=!1,ao=!1;function rh(e){st===null?st=[e]:st.push(e)}function V0(e){Ds=!0,rh(e)}function Bt(){if(!ao&&st!==null){ao=!0;var e=0,t=O;try{var n=st;for(O=1;e>=o,i-=o,ot=1<<32-Ye(t)+i|n<T?(V=E,E=null):V=E.sibling;var N=d(p,E,m[T],v);if(N===null){E===null&&(E=V);break}e&&E&&N.alternate===null&&t(p,E),h=s(N,h,T),P===null?S=N:P.sibling=N,P=N,E=V}if(T===m.length)return n(p,E),$&&Gt(p,T),S;if(E===null){for(;TT?(V=E,E=null):V=E.sibling;var ne=d(p,E,N.value,v);if(ne===null){E===null&&(E=V);break}e&&E&&ne.alternate===null&&t(p,E),h=s(ne,h,T),P===null?S=ne:P.sibling=ne,P=ne,E=V}if(N.done)return n(p,E),$&&Gt(p,T),S;if(E===null){for(;!N.done;T++,N=m.next())N=f(p,N.value,v),N!==null&&(h=s(N,h,T),P===null?S=N:P.sibling=N,P=N);return $&&Gt(p,T),S}for(E=r(p,E);!N.done;T++,N=m.next())N=g(E,p,T,N.value,v),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?T:N.key),h=s(N,h,T),P===null?S=N:P.sibling=N,P=N);return e&&E.forEach(function(yt){return t(p,yt)}),$&&Gt(p,T),S}function k(p,h,m,v){if(typeof m=="object"&&m!==null&&m.type===pn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ui:e:{for(var S=m.key,P=h;P!==null;){if(P.key===S){if(S=m.type,S===pn){if(P.tag===7){n(p,P.sibling),h=i(P,m.props.children),h.return=p,p=h;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wt&&ec(S)===P.type){n(p,P.sibling),h=i(P,m.props),h.ref=ir(p,P,m),h.return=p,p=h;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===pn?(h=tn(m.props.children,p.mode,v,m.key),h.return=p,p=h):(v=Bi(m.type,m.key,m.props,null,p.mode,v),v.ref=ir(p,h,m),v.return=p,p=v)}return o(p);case hn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=yo(m,p.mode,v),h.return=p,p=h}return o(p);case wt:return P=m._init,k(p,h,P(m._payload),v)}if(ur(m))return y(p,h,m,v);if(Jn(m))return x(p,h,m,v);wi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=go(m,p.mode,v),h.return=p,p=h),o(p)):n(p,h)}return k}var zn=lh(!0),ah=lh(!1),rs=zt(null),is=null,kn=null,fa=null;function da(){fa=kn=is=null}function ha(e){var t=rs.current;B(rs),e._currentValue=t}function al(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 Vn(e,t){is=e,fa=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(fa!==e)if(e={context:e,memoizedValue:t,next:null},kn===null){if(is===null)throw Error(C(308));kn=e,is.dependencies={lanes:0,firstContext:e}}else kn=kn.next=e;return t}var qt=null;function pa(e){qt===null?qt=[e]:qt.push(e)}function uh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pa(t)):(n.next=i.next,i.next=n),t.interleaved=n,ht(e,r)}function ht(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 St=!1;function ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ch(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 at(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ht(e,n)}return i=r.interleaved,i===null?(t.next=t,pa(r)):(t.next=i.next,i.next=t),r.interleaved=t,ht(e,n)}function Vi(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,ea(e,n)}}function tc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ss(e,t,n,r){var i=e.updateQueue;St=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(d=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(g,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,d=typeof y=="function"?y.call(g,f,d):y,d==null)break e;f=G({},f,d);break e;case 2:St=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=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 o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ln|=o,e.lanes=o,e.memoizedState=f}}function nc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{O=n,co.transition=r}}function Dh(){return $e().memoizedState}function I0(e,t,n){var r=jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ah(e))Mh(t,n);else if(n=uh(e,t,n,r),n!==null){var i=ve();Xe(n,e,r,i),Rh(n,t,r)}}function z0(e,t,n){var r=jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ah(e))Mh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ze(l,o)){var a=t.interleaved;a===null?(i.next=i,pa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=uh(e,t,i,r),n!==null&&(i=ve(),Xe(n,e,r,i),Rh(n,t,r))}}function Ah(e){var t=e.alternate;return e===K||t!==null&&t===K}function Mh(e,t){wr=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ea(e,n)}}var as={readContext:Ue,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},B0={readContext:Ue,useCallback:function(e,t){return be().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:ic,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=be();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=I0.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=be();return e={current:e},t.memoizedState=e},useState:rc,useDebugValue:Pa,useDeferredValue:function(e){return be().memoizedState=e},useTransition:function(){var e=rc(!1),t=e[0];return e=O0.bind(null,e[1]),be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,i=be();if($){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),se===null)throw Error(C(349));on&30||ph(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ic(gh.bind(null,r,s,e),[e]),r.flags|=2048,Wr(9,mh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=be(),t=se.identifierPrefix;if($){var n=lt,r=ot;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Je]=t,e[Ir]=r,Bh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ho(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i$n&&(t.flags|=128,r=!0,sr(s,!1),t.lanes=4194304)}else{if(!r)if(e=os(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!$)return de(t),null}else 2*q()-s.renderingStartTime>$n&&n!==1073741824&&(t.flags|=128,r=!0,sr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=q(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return Ma(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Y0(e,t){switch(ua(t),t.tag){case 1:return Te(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),B(Pe),B(ge),va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ya(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Bn(),null;case 10:return ha(t.type._context),null;case 22:case 23:return Ma(),null;case 24:return null;default:return null}}var ki=!1,pe=!1,X0=typeof WeakSet=="function"?WeakSet:Set,M=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function yl(e,t,n){try{n()}catch(r){Y(e,t,r)}}var mc=!1;function Z0(e,t){if(el=Xi,e=Qd(),la(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},Xi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,k=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ke(t.type,x),k);p.__reactInternalSnapshotBeforeUpdate=h}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(C(163))}}catch(v){Y(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=mc,mc=!1,y}function Sr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&yl(t,n,s)}i=i.next}while(i!==r)}}function Rs(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 vl(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 Wh(e){var t=e.alternate;t!==null&&(e.alternate=null,Wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[Ir],delete t[il],delete t[j0],delete t[L0])),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 Hh(e){return e.tag===5||e.tag===3||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(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 xl(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=bi));else if(r!==4&&(e=e.child,e!==null))for(xl(e,t,n),e=e.sibling;e!==null;)xl(e,t,n),e=e.sibling}function wl(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(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}var le=null,Ge=!1;function vt(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(et&&typeof et.onCommitFiberUnmount=="function")try{et.onCommitFiberUnmount(ks,n)}catch{}switch(n.tag){case 5:pe||Pn(n,t);case 6:var r=le,i=Ge;le=null,vt(e,t,n),le=r,Ge=i,le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),Lr(e)):lo(le,n.stateNode));break;case 4:r=le,i=Ge,le=n.stateNode.containerInfo,Ge=!0,vt(e,t,n),le=r,Ge=i;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&yl(n,t,o),i=i.next}while(i!==r)}vt(e,t,n);break;case 1:if(!pe&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Y(n,t,l)}vt(e,t,n);break;case 21:vt(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,vt(e,t,n),pe=r):vt(e,t,n);break;default:vt(e,t,n)}}function yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new X0),t.forEach(function(r){var i=sy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*b0(r/1960))-r,10e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,fs=0,F&6)throw Error(C(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aq()-Da?en(e,0):Ea|=n),Ce(e,t)}function Jh(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=ve();e=ht(e,t),e!==null&&(qr(e,t,n),Ce(e,n))}function iy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function sy(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(C(314))}r!==null&&r.delete(t),Jh(e,n)}var ep;ep=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,G0(e,t,n);ke=!!(e.flags&131072)}else ke=!1,$&&t.flags&1048576&&ih(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var i=On(t,ge.current);Vn(t,n),i=wa(null,t,r,e,i,n);var s=Sa();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,Te(r)?(s=!0,es(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ma(t),i.updater=Ms,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=hl(null,t,r,!0,s,n)):(t.tag=0,$&&s&&aa(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ly(r),e=Ke(r,e),i){case 0:t=dl(null,t,r,e,n);break e;case 1:t=dc(null,t,r,e,n);break e;case 11:t=cc(null,t,r,e,n);break e;case 14:t=fc(null,t,r,Ke(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),dl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),dc(e,t,r,i,n);case 3:e:{if(Oh(t),e===null)throw Error(C(387));r=t.pendingProps,s=t.memoizedState,i=s.element,ch(e,t),ss(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Un(Error(C(423)),t),t=hc(e,t,r,n,i);break e}else if(r!==i){i=Un(Error(C(424)),t),t=hc(e,t,r,n,i);break e}else for(Ae=Mt(t.stateNode.containerInfo.firstChild),Me=t,$=!0,Qe=null,n=ah(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===i){t=pt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return fh(t),e===null&&ll(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,nl(r,i)?o=null:s!==null&&nl(r,s)&&(t.flags|=32),Fh(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&ll(t),null;case 13:return Ih(e,t,n);case 4:return ga(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),cc(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,I(rs,r._currentValue),r._currentValue=o,s!==null)if(Ze(s.value,o)){if(s.children===i.children&&!Pe.current){t=pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=at(-1,n&-n),a.tag=2;var u=s.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}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),al(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(C(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),al(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vn(t,n),i=Ue(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=Ke(r,t.pendingProps),i=Ke(r.type,i),fc(e,t,r,i,n);case 15:return Vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Oi(e,t),t.tag=1,Te(r)?(e=!0,es(t)):e=!1,Vn(t,n),Nh(t,r,i),cl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return zh(e,t,n);case 22:return _h(e,t,n)}throw Error(C(156,t.tag))};function tp(e,t){return Ad(e,t)}function oy(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 ze(e,t,n,r){return new oy(e,t,n,r)}function Na(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ly(e){if(typeof e=="function")return Na(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zl)return 11;if(e===ql)return 14}return 2}function Lt(e,t){var n=e.alternate;return n===null?(n=ze(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 Bi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Na(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case pn:return tn(n.children,i,s,t);case Xl:o=8,i|=8;break;case Vo:return e=ze(12,n,t,i|2),e.elementType=Vo,e.lanes=s,e;case _o:return e=ze(13,n,t,i),e.elementType=_o,e.lanes=s,e;case Fo:return e=ze(19,n,t,i),e.elementType=Fo,e.lanes=s,e;case fd:return js(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ud:o=10;break e;case cd:o=9;break e;case Zl:o=11;break e;case ql:o=14;break e;case wt:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=ze(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function tn(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=ze(22,e,r,t),e.elementType=fd,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ay(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=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ja(e,t,n,r,i,s,o,l,a){return e=new ay(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ze(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ma(s),e}function uy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),sd.exports=Le;var py=sd.exports,Cc=py;jo.createRoot=Cc.createRoot,jo.hydrateRoot=Cc.hydrateRoot;const Fa=D.createContext({});function Oa(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const Os=D.createContext(null),Ia=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class my extends D.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 gy({children:e,isPresent:t}){const n=D.useId(),r=D.useRef(null),i=D.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=D.useContext(Ia);return D.useInsertionEffect(()=>{const{width:o,height:l,top:a,left:u}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${l}px !important; top: ${a}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),w.jsx(my,{isPresent:t,childRef:r,sizeRef:i,children:D.cloneElement(e,{ref:r})})}const yy=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Oa(vy),a=D.useId(),u=D.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=D.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),u]:[n,u]);return D.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),D.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(gy,{isPresent:n,children:e})),w.jsx(Os.Provider,{value:c,children:e})};function vy(){return new Map}function op(e=!0){const t=D.useContext(Os);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=D.useId();D.useEffect(()=>{e&&i(s)},[e]);const o=D.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ci=e=>e.key||"";function Ec(e){const t=[];return D.Children.forEach(e,n=>{D.isValidElement(n)&&t.push(n)}),t}const za=typeof window<"u",lp=za?D.useLayoutEffect:D.useEffect,ap=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,a]=op(o),u=D.useMemo(()=>Ec(e),[e]),c=o&&!l?[]:u.map(Ci),f=D.useRef(!0),d=D.useRef(u),g=Oa(()=>new Map),[y,x]=D.useState(u),[k,p]=D.useState(u);lp(()=>{f.current=!1,d.current=u;for(let v=0;v{const S=Ci(v),P=o&&!l?!1:u===k||c.includes(S),E=()=>{if(g.has(S))g.set(S,!0);else return;let T=!0;g.forEach(V=>{V||(T=!1)}),T&&(m==null||m(),p(d.current),o&&(a==null||a()),r&&r())};return w.jsx(yy,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:P?void 0:E,children:v},S)})})},Re=e=>e;let up=Re;function Ba(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ut=e=>e*1e3,ct=e=>e/1e3,xy={useManualTiming:!1};function wy(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(a.schedule(u),e()),u(o)}const a={schedule:(u,c=!1,f=!1)=>{const g=f&&r?t:n;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=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 Ei=["read","resolveKeyframes","update","preRender","render","postRender"],Sy=40;function cp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ei.reduce((p,h)=>(p[h]=wy(s),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=o,g=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,Sy),1),i.timestamp=p,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(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Ei.reduce((p,h)=>{const m=o[h];return p[h]=(v,S=!1,P=!1)=>(n||y(),m.schedule(v,S,P)),p},{}),cancel:p=>{for(let h=0;hDc[e].some(n=>!!t[n])};function ky(e){for(const t in e)Hn[t]={...Hn[t],...e[t]}}const Py=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 ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Py.has(e)}let dp=e=>!ps(e);function Ty(e){e&&(dp=t=>t.startsWith("on")?!ps(t):e(t))}try{Ty(require("@emotion/is-prop-valid").default)}catch{}function Cy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(dp(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ey(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 Is=D.createContext({});function Kr(e){return typeof e=="string"||Array.isArray(e)}function zs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ua=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$a=["initial",...Ua];function Bs(e){return zs(e.animate)||$a.some(t=>Kr(e[t]))}function hp(e){return!!(Bs(e)||e.variants)}function Dy(e,t){if(Bs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kr(n)?n:void 0,animate:Kr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ay(e){const{initial:t,animate:n}=Dy(e,D.useContext(Is));return D.useMemo(()=>({initial:t,animate:n}),[Ac(t),Ac(n)])}function Ac(e){return Array.isArray(e)?e.join(" "):e}const My=Symbol.for("motionComponentSymbol");function Cn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ry(e,t,n){return D.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cn(n)&&(n.current=r))},[t])}const Wa=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ny="framerAppearId",pp="data-"+Wa(Ny),{schedule:Ha}=cp(queueMicrotask,!1),mp=D.createContext({});function jy(e,t,n,r,i){var s,o;const{visualElement:l}=D.useContext(Is),a=D.useContext(fp),u=D.useContext(Os),c=D.useContext(Ia).reducedMotion,f=D.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,g=D.useContext(mp);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ly(f.current,n,i,g);const y=D.useRef(!1);D.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const x=n[pp],k=D.useRef(!!x&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,x))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,x)));return lp(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ha.render(d.render),k.current&&d.animationState&&d.animationState.animateChanges())}),D.useEffect(()=>{d&&(!k.current&&d.animationState&&d.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,x)}),k.current=!1))}),d}function Ly(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Cn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function gp(e){if(e)return e.options.allowProjection!==!1?e.projection:gp(e.parent)}function Vy({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&ky(e);function l(u,c){let f;const d={...D.useContext(Ia),...u,layoutId:_y(u)},{isStatic:g}=d,y=Ay(u),x=r(u,g);if(!g&&za){Fy();const k=Oy(d);f=k.MeasureLayout,y.visualElement=jy(i,x,d,t,k.ProjectionNode)}return w.jsxs(Is.Provider,{value:y,children:[f&&y.visualElement?w.jsx(f,{visualElement:y.visualElement,...d}):null,n(i,u,Ry(x,y.visualElement,c),x,g,y.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=D.forwardRef(l);return a[My]=i,a}function _y({layoutId:e}){const t=D.useContext(Fa).id;return t&&e!==void 0?t+"-"+e:e}function Fy(e,t){D.useContext(fp).strict}function Oy(e){const{drag:t,layout:n}=Hn;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 Iy=["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 Ka(e){return typeof e!="string"||e.includes("-")?!1:!!(Iy.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ga(e,t,n,r){if(typeof t=="function"){const[i,s]=Mc(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Mc(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Cl=e=>Array.isArray(e),zy=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),By=e=>Cl(e)?e[e.length-1]||0:e,me=e=>!!(e&&e.getVelocity);function Ui(e){const t=me(e)?e.get():e;return zy(t)?t.toValue():t}function Uy({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:$y(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const yp=e=>(t,n)=>{const r=D.useContext(Is),i=D.useContext(Os),s=()=>Uy(e,t,r,i);return n?s():Oa(s)};function $y(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Ui(s[d]);let{initial:o,animate:l}=e;const a=Bs(e),u=hp(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?l:o;if(f&&typeof f!="boolean"&&!zs(f)){const d=Array.isArray(f)?f:[f];for(let g=0;gt=>typeof t=="string"&&t.startsWith(e),xp=vp("--"),Wy=vp("var(--"),Qa=e=>Wy(e)?Hy.test(e.split("/*")[0].trim()):!1,Hy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,mt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Gr={...qn,transform:e=>mt(0,1,e)},Di={...qn,default:1},ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=ti("deg"),nt=ti("%"),R=ti("px"),Ky=ti("vh"),Gy=ti("vw"),Rc={...nt,parse:e=>nt.parse(e)/100,transform:e=>nt.transform(e*100)},Qy={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R},Yy={rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Di,scaleX:Di,scaleY:Di,scaleZ:Di,skew:xt,skewX:xt,skewY:xt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Gr,originX:Rc,originY:Rc,originZ:R},Nc={...qn,transform:Math.round},Ya={...Qy,...Yy,zIndex:Nc,size:R,fillOpacity:Gr,strokeOpacity:Gr,numOctaves:Nc},Xy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zy=Zn.length;function qy(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}}),Sp=()=>({...qa(),attrs:{}}),ba=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kp(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Pp=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 Tp(e,t,n,r){kp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Pp.has(i)?i:Wa(i),t.attrs[i])}const ms={};function nv(e){Object.assign(ms,e)}function Cp(e,{layout:t,layoutId:n}){return fn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ms[e]||e==="opacity")}function Ja(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(me(i[o])||t.style&&me(t.style[o])||Cp(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Ep(e,t,n){const r=Ja(e,t,n);for(const i in e)if(me(e[i])||me(t[i])){const s=Zn.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function rv(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 Lc=["x","y","width","height","cx","cy","r"],iv={useVisualState:yp({scrapeMotionValuesFromProps:Ep,createRenderState:Sp,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(fn.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l{rv(n,r),U.render(()=>{Za(r,i,ba(n.tagName),e.transformTemplate),Tp(n,r)})})}})},sv={useVisualState:yp({scrapeMotionValuesFromProps:Ja,createRenderState:qa})};function Dp(e,t,n){for(const r in t)!me(t[r])&&!Cp(r,n)&&(e[r]=t[r])}function ov({transformTemplate:e},t){return D.useMemo(()=>{const n=qa();return Xa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lv(e,t){const n=e.style||{},r={};return Dp(r,n,e),Object.assign(r,ov(e,t)),r}function av(e,t){const n={},r=lv(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 uv(e,t,n,r){const i=D.useMemo(()=>{const s=Sp();return Za(s,t,ba(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Dp(s,e.style,e),i.style={...s,...i.style}}return i}function cv(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Ka(n)?uv:av)(r,s,o,n),u=Cy(r,typeof n=="string",e),c=n!==D.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=D.useMemo(()=>me(f)?f.get():f,[f]);return D.createElement(n,{...c,children:d})}}function fv(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ka(r)?iv:sv,preloadedFeatures:e,useRender:cv(i),createVisualElement:t,Component:r};return Vy(o)}}function Ap(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 hv{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(dv()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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 pv extends hv{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function eu(e,t){return e?e[t]||e.default||e:void 0}const El=2e4;function Mp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=El?1/0:t}function tu(e){return typeof e=="function"}function Vc(e,t){e.timeline=t,e.onfinish=null}const nu=e=>Array.isArray(e)&&typeof e[0]=="number",mv={linearEasing:void 0};function gv(e,t){const n=Ba(e);return()=>{var r;return(r=mv[t])!==null&&r!==void 0?r:n()}}const gs=gv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dr([0,.65,.55,1]),circOut:dr([.55,0,1,.45]),backIn:dr([.31,.01,.66,-.59]),backOut:dr([.33,1.53,.69,.99])};function jp(e,t){if(e)return typeof e=="function"&&gs()?Rp(e,t):nu(e)?dr(e):Array.isArray(e)?e.map(n=>jp(n,t)||Dl.easeOut):Dl[e]}const He={x:!1,y:!1};function Lp(){return He.x||He.y}function yv(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Vp(e,t){const n=yv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _c(e){return t=>{t.pointerType==="touch"||Lp()||e(t)}}function vv(e,t,n={}){const[r,i,s]=Vp(e,n),o=_c(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=_c(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const _p=(e,t)=>t?e===t?!0:_p(e,t.parentElement):!1,ru=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wv(e){return xv.has(e.tagName)||e.tabIndex!==-1}const hr=new WeakSet;function Fc(e){return t=>{t.key==="Enter"&&e(t)}}function xo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Fc(()=>{if(hr.has(n))return;xo(n,"down");const i=Fc(()=>{xo(n,"up")}),s=()=>xo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return ru(e)&&!Lp()}function kv(e,t,n={}){const[r,i,s]=Vp(e,n),o=l=>{const a=l.currentTarget;if(!Oc(l)||hr.has(a))return;hr.add(a);const u=t(l),c=(g,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!Oc(g)||!hr.has(a))&&(hr.delete(a),typeof u=="function"&&u(g,{success:y}))},f=g=>{c(g,n.useGlobalTarget||_p(a,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!wv(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>Sv(u,i),i)}),s}function Pv(e){return e==="x"||e==="y"?He[e]?null:(He[e]=!0,()=>{He[e]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}const Fp=new Set(["width","height","top","left","right","bottom",...Zn]);let $i;function Tv(){$i=void 0}const rt={now:()=>($i===void 0&&rt.set(ae.isProcessing||xy.useManualTiming?ae.timestamp:performance.now()),$i),set:e=>{$i=e,queueMicrotask(Tv)}};function iu(e,t){e.indexOf(t)===-1&&e.push(t)}function su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(t){return iu(this.subscriptions,t),()=>su(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class Ev{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=rt.now();this.updatedAt!==s&&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=rt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cv(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 ou);const r=this.events[t].add(n);return t==="change"?()=>{r(),U.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=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ic)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ic);return Op(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 Qr(e,t){return new Ev(e,t)}function Dv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qr(n))}function Av(e,t){const n=Us(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=By(s[o]);Dv(e,o,l)}}function Mv(e){return!!(me(e)&&e.add)}function Al(e,t){const n=e.getValue("willChange");if(Mv(n))return n.add(t)}function Ip(e){return e.props[pp]}const zp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rv=1e-7,Nv=12;function jv(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=zp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Rv&&++ljv(s,0,1,e,n);return s=>s===0||s===1?s:zp(i(s),t,r)}const Bp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Up=e=>t=>1-e(1-t),$p=ni(.33,1.53,.69,.99),lu=Up($p),Wp=Bp(lu),Hp=e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1))),au=e=>1-Math.sin(Math.acos(e)),Kp=Up(au),Gp=Bp(au),Qp=e=>/^0[^.\s]+$/u.test(e);function Lv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qp(e):!0}const Tr=e=>Math.round(e*1e5)/1e5,uu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vv(e){return e==null}const _v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cu=(e,t)=>n=>!!(typeof n=="string"&&_v.test(n)&&n.startsWith(e)||t&&!Vv(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(uu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Fv=e=>mt(0,255,e),wo={...qn,transform:e=>Math.round(Fv(e))},Jt={test:cu("rgb","red"),parse:Yp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wo.transform(e)+", "+wo.transform(t)+", "+wo.transform(n)+", "+Tr(Gr.transform(r))+")"};function Ov(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 Ml={test:cu("#"),parse:Ov,transform:Jt.transform},En={test:cu("hsl","hue"),parse:Yp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nt.transform(Tr(t))+", "+nt.transform(Tr(n))+", "+Tr(Gr.transform(r))+")"},he={test:e=>Jt.test(e)||Ml.test(e)||En.test(e),parse:e=>Jt.test(e)?Jt.parse(e):En.test(e)?En.parse(e):Ml.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jt.transform(e):En.transform(e)},Iv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(uu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Iv))===null||n===void 0?void 0:n.length)||0)>0}const Xp="number",Zp="color",Bv="var",Uv="var(",zc="${}",$v=/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 Yr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace($v,a=>(he.test(a)?(r.color.push(s),i.push(Zp),n.push(he.parse(a))):a.startsWith(Uv)?(r.var.push(s),i.push(Bv),n.push(a)):(r.number.push(s),i.push(Xp),n.push(parseFloat(a))),++s,zc)).split(zc);return{values:n,split:l,indexes:r,types:i}}function qp(e){return Yr(e).values}function bp(e){const{split:t,types:n}=Yr(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function Hv(e){const t=qp(e);return bp(e)(t.map(Wv))}const Ot={test:zv,parse:qp,createTransformer:bp,getAnimatableNone:Hv},Kv=new Set(["brightness","contrast","saturate","opacity"]);function Gv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uu)||[];if(!r)return e;const i=n.replace(r,"");let s=Kv.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qv=/\b([a-z-]*)\(.*?\)/gu,Rl={...Ot,getAnimatableNone:e=>{const t=e.match(Qv);return t?t.map(Gv).join(" "):e}},Yv={...Ya,color:he,backgroundColor:he,outlineColor:he,fill:he,stroke:he,borderColor:he,borderTopColor:he,borderRightColor:he,borderBottomColor:he,borderLeftColor:he,filter:Rl,WebkitFilter:Rl},fu=e=>Yv[e];function Jp(e,t){let n=fu(e);return n!==Rl&&(n=Ot),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xv=new Set(["auto","none","0"]);function Zv(e,t,n){let r=0,i;for(;re===qn||e===R,Uc=(e,t)=>parseFloat(e.split(", ")[t]),$c=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Uc(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Uc(s[1],e):0}},qv=new Set(["x","y","z"]),bv=Zn.filter(e=>!qv.has(e));function Jv(e){const t=[];return bv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Kn={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:$c(4,13),y:$c(5,14)};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const nn=new Set;let Nl=!1,jl=!1;function em(){if(jl){const e=Array.from(nn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Jv(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jl=!1,Nl=!1,nn.forEach(e=>e.complete()),nn.clear()}function tm(){nn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jl=!0)})}function e1(){tm(),em()}class du{constructor(t,n,r,i,s,o=!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=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nn.add(this),Nl||(Nl=!0,U.read(tm),U.resolveKeyframes(em))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n1(e){const t=t1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function rm(e,t,n=1){const[r,i]=n1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return nm(o)?parseFloat(o):o}return Qa(i)?rm(i,t,n+1):i}const im=e=>t=>t.test(e),r1={test:e=>e==="auto",parse:e=>e},sm=[qn,R,nt,xt,Gy,Ky,r1],Wc=e=>sm.find(im(e));class om extends du{constructor(t,n,r,i,s){super(t,n,r,i,s,!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 Hc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ot.test(e)||e==="0")&&!e.startsWith("url("));function i1(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function $s(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(o1),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const l1=40;class lm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>l1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!s1(t,r,i,s))if(o)this.options.duration=0;else{a&&a($s(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 H=(e,t,n)=>e+(t-e)*n;function So(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 a1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=So(a,l,e+1/3),s=So(a,l,e),o=So(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ys(e,t){return n=>n>0?t:e}const ko=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},u1=[Ml,Jt,En],c1=e=>u1.find(t=>t.test(e));function Kc(e){const t=c1(e);if(!t)return!1;let n=t.parse(e);return t===En&&(n=a1(n)),n}const Gc=(e,t)=>{const n=Kc(e),r=Kc(t);if(!n||!r)return ys(e,t);const i={...n};return s=>(i.red=ko(n.red,r.red,s),i.green=ko(n.green,r.green,s),i.blue=ko(n.blue,r.blue,s),i.alpha=H(n.alpha,r.alpha,s),Jt.transform(i))},f1=(e,t)=>n=>t(e(n)),ri=(...e)=>e.reduce(f1),Ll=new Set(["none","hidden"]);function d1(e,t){return Ll.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h1(e,t){return n=>H(e,t,n)}function hu(e){return typeof e=="number"?h1:typeof e=="string"?Qa(e)?ys:he.test(e)?Gc:g1:Array.isArray(e)?am:typeof e=="object"?he.test(e)?Gc:p1:ys}function am(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>hu(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function m1(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=Ot.createTransformer(t),r=Yr(e),i=Yr(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?Ll.has(e)&&!i.values.length||Ll.has(t)&&!r.values.length?d1(e,t):ri(am(m1(r,i),i.values),n):ys(e,t)};function um(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?H(e,t,n):hu(e)(e,t)}const y1=5;function cm(e,t,n){const r=Math.max(t-y1,0);return Op(n-e(r),t-r)}const Q={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},Po=.001;function v1({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let i,s,o=1-t;o=mt(Q.minDamping,Q.maxDamping,o),e=mt(Q.minDuration,Q.maxDuration,ct(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,g=Vl(u,o),y=Math.exp(-f);return Po-d/g*y},s=u=>{const f=u*o*e,d=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=Vl(Math.pow(u,2),o);return(-i(u)+Po>0?-1:1)*((d-g)*y)/x}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Po+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=w1(i,s,l);if(e=ut(e),isNaN(a))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const x1=12;function w1(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function P1(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Qc(e,k1)&&Qc(e,S1))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*mt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Q.mass,stiffness:i,damping:s}}else{const n=v1(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function fm(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=P1({...n,velocity:-ct(n.velocity||0)}),y=d||0,x=u/(2*Math.sqrt(a*c)),k=o-s,p=ct(Math.sqrt(a/c)),h=Math.abs(k)<5;r||(r=h?Q.restSpeed.granular:Q.restSpeed.default),i||(i=h?Q.restDelta.granular:Q.restDelta.default);let m;if(x<1){const S=Vl(p,x);m=P=>{const E=Math.exp(-x*p*P);return o-E*((y+x*p*k)/S*Math.sin(S*P)+k*Math.cos(S*P))}}else if(x===1)m=S=>o-Math.exp(-p*S)*(k+(y+p*k)*S);else{const S=p*Math.sqrt(x*x-1);m=P=>{const E=Math.exp(-x*p*P),T=Math.min(S*P,300);return o-E*((y+x*p*k)*Math.sinh(T)+S*k*Math.cosh(T))/S}}const v={calculatedDuration:g&&f||null,next:S=>{const P=m(S);if(g)l.done=S>=f;else{let E=0;x<1&&(E=S===0?ut(y):cm(m,S,P));const T=Math.abs(E)<=r,V=Math.abs(o-P)<=i;l.done=T&&V}return l.value=l.done?o:P,l},toString:()=>{const S=Math.min(Mp(v),El),P=Rp(E=>v.next(S*E).value,S,30);return S+"ms "+P}};return v}function Yc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=T=>l!==void 0&&Ta,y=T=>l===void 0?a:a===void 0||Math.abs(l-T)-x*Math.exp(-T/r),m=T=>p+h(T),v=T=>{const V=h(T),N=m(T);d.done=Math.abs(V)<=u,d.value=d.done?p:N};let S,P;const E=T=>{g(d.value)&&(S=T,P=fm({keyframes:[d.value,y(d.value)],velocity:cm(m,T,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:T=>{let V=!1;return!P&&S===void 0&&(V=!0,v(T),E(T)),S!==void 0&&T>=S?P.next(T-S):(!V&&v(T),d)}}}const T1=ni(.42,0,1,1),C1=ni(0,0,.58,1),dm=ni(.42,0,.58,1),E1=e=>Array.isArray(e)&&typeof e[0]!="number",D1={linear:Re,easeIn:T1,easeInOut:dm,easeOut:C1,circIn:au,circInOut:Gp,circOut:Kp,backIn:lu,backInOut:Wp,backOut:$p,anticipate:Hp},Xc=e=>{if(nu(e)){up(e.length===4);const[t,n,r,i]=e;return ni(t,n,r,i)}else if(typeof e=="string")return D1[e];return e};function A1(e,t,n){const r=[],i=n||um,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=A1(t,r,i),a=l.length,u=c=>{if(o&&c1)for(;fu(mt(e[0],e[s-1],c)):u}function R1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wn(0,t,r);e.push(H(n,1,i))}}function N1(e){const t=[0];return R1(t,e.length-1),t}function j1(e,t){return e.map(n=>n*t)}function L1(e,t){return e.map(()=>t||dm).splice(0,e.length-1)}function vs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=E1(r)?r.map(Xc):Xc(r),s={done:!1,value:t[0]},o=j1(n&&n.length===t.length?n:N1(t),e),l=M1(o,t,{ease:Array.isArray(i)?i:L1(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const V1=e=>{const t=({timestamp:n})=>e(n);return{start:()=>U.update(t,!0),stop:()=>Ft(t),now:()=>ae.isProcessing?ae.timestamp:rt.now()}},_1={decay:Yc,inertia:Yc,tween:vs,keyframes:vs,spring:fm},F1=e=>e/100;class pu extends lm{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:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||du,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new o(s,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:s,velocity:o=0}=this.options,l=tu(n)?n:_1[n]||vs;let a,u;l!==vs&&typeof t[0]!="number"&&(a=ri(F1,um(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Mp(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}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:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:d,repeat:g,repeatType:y,repeatDelay:x,onUpdate:k}=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 p=this.currentTime-d*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,v=s;if(g){const T=Math.min(this.currentTime,c)/f;let V=Math.floor(T),N=T%1;!N&&T>=1&&(N=1),N===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(y==="reverse"?(N=1-N,x&&(N-=x/f)):y==="mirror"&&(v=o)),m=mt(0,1,N)*f}const S=h?{done:!1,value:a[0]}:v.next(m);l&&(S.value=l(S.value));let{done:P}=S;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&i!==void 0&&(S.value=$s(a,this.options,i)),k&&k(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?ct(t.calculatedDuration):0}get time(){return ct(this.currentTime)}set time(t){t=ut(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=ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=V1,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),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 O1=new Set(["opacity","clipPath","filter","transform"]);function I1(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=jp(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:s+1,direction:o==="reverse"?"alternate":"normal"})}const z1=Ba(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xs=10,B1=2e4;function U1(e){return tu(e.type)||e.type==="spring"||!Np(e.ease)}function $1(e,t){const n=new pu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&gs()&&W1(s)&&(s=hm[s]),U1(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,element:y,...x}=this.options,k=$1(t,x);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,i=k.times,s=k.ease,o="keyframes"}const c=I1(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Vc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set($s(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ct(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ct(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ut(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 Re;const{animation:r}=n;Vc(r,t)}return Re}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:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,y=new pu({...g,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),x=ut(this.time);u.setWithVelocity(y.sample(x-xs).value,y.sample(x).value,xs)}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:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return z1()&&r&&O1.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const H1={type:"spring",stiffness:500,damping:25,restSpeed:10},K1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G1={type:"keyframes",duration:.8},Q1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y1=(e,{keyframes:t})=>t.length>2?G1:fn.has(e)?e.startsWith("scale")?K1(t[1]):H1:Q1;function X1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const mu=(e,t,n,r={},i,s)=>o=>{const l=eu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ut(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:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};X1(l)||(c={...c,...Y1(e,c)}),c.duration&&(c.duration=ut(c.duration)),c.repeatDelay&&(c.repeatDelay=ut(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&&!s&&t.get()!==void 0){const d=$s(c.keyframes,l);if(d!==void 0)return U.update(()=>{c.onUpdate(d),c.onComplete()}),new pv([])}return!s&&Zc.supports(c)?new Zc(c):new pu(c)};function Z1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=a[f];if(g===void 0||c&&Z1(c,f))continue;const y={delay:n,...eu(o||{},f)};let x=!1;if(window.MotionHandoffAnimation){const p=Ip(e);if(p){const h=window.MotionHandoffAnimation(p,f,U);h!==null&&(y.startTime=h,x=!0)}}Al(e,f),d.start(mu(f,d,g,e.shouldReduceMotion&&Fp.has(f)?{type:!1}:y,e,x));const k=d.animation;k&&u.push(k)}return l&&Promise.all(u).then(()=>{U.update(()=>{l&&Av(e,l)})}),u}function _l(e,t,n={}){var r;const i=Us(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(pm(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=s;return q1(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[o,l]:[l,o];return u().then(()=>c())}else return Promise.all([o(),l(n.delay)])}function q1(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(b1).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(_l(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function b1(e,t){return e.sortNodePosition(t)}function J1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>_l(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=_l(e,t,n);else{const i=typeof t=="function"?Us(e,t,n.custom):t;r=Promise.all(pm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ex=$a.length;function mm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mm(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})=>J1(e,n,r)))}function ix(e){let t=rx(e),n=qc(),r=!0;const i=a=>(u,c)=>{var f;const d=Us(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:y,...x}=d;u={...u,...x,...y}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=mm(e.parent)||{},f=[],d=new Set;let g={},y=1/0;for(let k=0;ky&&v,V=!1;const N=Array.isArray(m)?m:[m];let ne=N.reduce(i(p),{});S===!1&&(ne={});const{prevResolvedValues:yt={}}=h,$t={...yt,...ne},bn=J=>{T=!0,d.has(J)&&(V=!0,d.delete(J)),h.needsAnimating[J]=!0;const A=e.getValue(J);A&&(A.liveStyle=!1)};for(const J in $t){const A=ne[J],j=yt[J];if(g.hasOwnProperty(J))continue;let L=!1;Cl(A)&&Cl(j)?L=!Ap(A,j):L=A!==j,L?A!=null?bn(J):d.add(J):A!==void 0&&d.has(J)?bn(J):h.protectedKeys[J]=!0}h.prevProp=m,h.prevResolvedValues=ne,h.isActive&&(g={...g,...ne}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(P&&E)||V)&&f.push(...N.map(J=>({animation:J,options:{type:p}})))}if(d.size){const k={};d.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),k[p]=h??null}),f.push({animation:k})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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 g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const f=o(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qc(),r=!0}}}function sx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ap(t,e):!1}function Kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qc(){return{animate:Kt(!0),whileInView:Kt(),whileHover:Kt(),whileTap:Kt(),whileDrag:Kt(),whileFocus:Kt(),exit:Kt()}}class Ut{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ox extends Ut{constructor(t){super(t),t.animationState||(t.animationState=ix(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zs(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 lx=0;class ax extends Ut{constructor(){super(...arguments),this.id=lx++}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 ux={animation:{Feature:ox},exit:{Feature:ax}};function Xr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ii(e){return{point:{x:e.pageX,y:e.pageY}}}const cx=e=>t=>ru(t)&&e(t,ii(t));function Cr(e,t,n,r){return Xr(e,t,cx(n),r)}const bc=(e,t)=>Math.abs(e-t);function fx(e,t){const n=bc(e.x,t.x),r=bc(e.y,t.y);return Math.sqrt(n**2+r**2)}class gm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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=Co(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=fx(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:y}=f,{timestamp:x}=ae;this.history.push({...y,timestamp:x});const{onStart:k,onMove:p}=this.handlers;d||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=To(d,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Co(f.type==="pointercancel"?this.lastMoveEventInfo:To(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,k),y&&y(f,k)},!ru(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=ii(t),l=To(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=ae;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Co(l,this.history)),this.removeListeners=ri(Cr(this.contextWindow,"pointermove",this.handlePointerMove),Cr(this.contextWindow,"pointerup",this.handlePointerUp),Cr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function To(e,t){return t?{point:t(e.point)}:e}function Jc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Co({point:e},t){return{point:e,delta:Jc(e,ym(t)),offset:Jc(e,dx(t)),velocity:hx(t,.1)}}function dx(e){return e[0]}function ym(e){return e[e.length-1]}function hx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ym(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ut(t)));)n--;if(!r)return{x:0,y:0};const s=ct(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const vm=1e-4,px=1-vm,mx=1+vm,xm=.01,gx=0-xm,yx=0+xm;function je(e){return e.max-e.min}function vx(e,t,n){return Math.abs(e-t)<=n}function ef(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=je(n)/je(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=px&&e.scale<=mx||isNaN(e.scale))&&(e.scale=1),(e.translate>=gx&&e.translate<=yx||isNaN(e.translate))&&(e.translate=0)}function Er(e,t,n,r){ef(e.x,t.x,n.x,r?r.originX:void 0),ef(e.y,t.y,n.y,r?r.originY:void 0)}function tf(e,t,n){e.min=n.min+t.min,e.max=e.min+je(t)}function xx(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function nf(e,t,n){e.min=t.min-n.min,e.max=e.min+je(t)}function Dr(e,t,n){nf(e.x,t.x,n.x),nf(e.y,t.y,n.y)}function wx(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function rf(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 Sx(e,{top:t,left:n,bottom:r,right:i}){return{x:rf(e.x,n,i),y:rf(e.y,t,r)}}function sf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Wn(t.min,t.max-r,e.min):r>i&&(n=Wn(e.min,e.max-i,t.min)),mt(0,1,n)}function Tx(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 Fl=.35;function Cx(e=Fl){return e===!1?e=0:e===!0&&(e=Fl),{x:of(e,"left","right"),y:of(e,"top","bottom")}}function of(e,t,n){return{min:lf(e,t),max:lf(e,n)}}function lf(e,t){return typeof e=="number"?e:e[t]||0}const af=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dn=()=>({x:af(),y:af()}),uf=()=>({min:0,max:0}),Z=()=>({x:uf(),y:uf()});function Fe(e){return[e("x"),e("y")]}function wm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ex({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dx(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 Eo(e){return e===void 0||e===1}function Ol({scale:e,scaleX:t,scaleY:n}){return!Eo(e)||!Eo(t)||!Eo(n)}function Yt(e){return Ol(e)||Sm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sm(e){return cf(e.x)||cf(e.y)}function cf(e){return e&&e!=="0%"}function ws(e,t,n){const r=e-n,i=t*r;return n+i}function ff(e,t,n,r,i){return i!==void 0&&(e=ws(e,i,r)),ws(e,n,r)+t}function Il(e,t=0,n=1,r,i){e.min=ff(e.min,t,n,r,i),e.max=ff(e.max,t,n,r,i)}function km(e,{x:t,y:n}){Il(e.x,t.translate,t.scale,t.originPoint),Il(e.y,n.translate,n.scale,n.originPoint)}const df=.999999999999,hf=1.0000000000001;function Ax(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;ldf&&(t.x=1),t.ydf&&(t.y=1)}function An(e,t){e.min=e.min+t,e.max=e.max+t}function pf(e,t,n,r,i=.5){const s=H(e.min,e.max,i);Il(e,t,n,s,r)}function Mn(e,t){pf(e.x,t.x,t.scaleX,t.scale,t.originX),pf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Pm(e,t){return wm(Dx(e.getBoundingClientRect(),t))}function Mx(e,t,n){const r=Pm(e,n),{scroll:i}=t;return i&&(An(r.x,i.offset.x),An(r.y,i.offset.y)),r}const Tm=({current:e})=>e?e.ownerDocument.defaultView:null,Rx=new WeakMap;class Nx{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=Z(),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(ii(c).point)},s=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:y}=this.getProps();if(d&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Pv(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),Fe(k=>{let p=this.getAxisMotionValue(k).get()||0;if(nt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[k];m&&(p=je(m)*(parseFloat(p)/100))}}this.originPoint[k]=p}),y&&U.postRender(()=>y(c,f)),Al(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:k}=f;if(g&&this.currentDirection===null){this.currentDirection=jx(k),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),x&&x(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Fe(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 gm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Tm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&U.postRender(()=>s(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||!Ai(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=wx(o,this.constraints[t],this.elastic[t])),s.set(o)}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,s=this.constraints;n&&Cn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Sx(i.layoutBox,n):this.constraints=!1,this.elastic=Cx(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Tx(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Mx(r,i.root,this.visualElement.getTransformPagePoint());let o=kx(i.layout.layoutBox,s);if(n){const l=n(Ex(o));this.hasMutatedConstraints=!!l,l&&(o=wm(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Fe(c=>{if(!Ai(c,n,this.currentDirection))return;let f=a&&a[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Al(this.visualElement,t),r.start(mu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(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){Fe(n=>{const{drag:r}=this.getProps();if(!Ai(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-H(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=Px({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Ai(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(H(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Rx.set(this.visualElement,this);const t=this.visualElement.current,n=Cr(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Cn(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.read(r);const o=Xr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Fl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Ai(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Lx extends Ut{constructor(t){super(t),this.removeGroupControls=Re,this.removeListeners=Re,this.controls=new Nx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Re}unmount(){this.removeGroupControls(),this.removeListeners()}}const mf=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};class Vx extends Ut{constructor(){super(...arguments),this.removePointerDownListener=Re}onPointerDown(t){this.session=new gm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:mf(t),onStart:mf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&U.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Cr(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 Wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=gf(e,t.target.x),r=gf(e,t.target.y);return`${n}% ${r}%`}},_x={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ot.parse(e);if(i.length>5)return r;const s=Ot.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=H(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Fx extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;nv(Ox),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||U.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ha.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 Cm(e){const[t,n]=op(),r=D.useContext(Fa);return w.jsx(Fx,{...e,layoutGroup:r,switchLayoutGroup:D.useContext(mp),isPresent:t,safeToRemove:n})}const Ox={borderRadius:{...lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lr,borderTopRightRadius:lr,borderBottomLeftRadius:lr,borderBottomRightRadius:lr,boxShadow:_x};function Ix(e,t,n){const r=me(e)?e:Qr(e);return r.start(mu("",r,t,n)),r.animation}function zx(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Bx=(e,t)=>e.depth-t.depth;class Ux{constructor(){this.children=[],this.isDirty=!1}add(t){iu(this.children,t),this.isDirty=!0}remove(t){su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Bx),this.isDirty=!1,this.children.forEach(t)}}function $x(e,t){const n=rt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ft(r),e(s-t))};return U.read(r,!0),()=>Ft(r)}const Em=["TopLeft","TopRight","BottomLeft","BottomRight"],Wx=Em.length,yf=e=>typeof e=="string"?parseFloat(e):e,vf=e=>typeof e=="number"||R.test(e);function Hx(e,t,n,r,i,s){i?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,Kx(r)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,Gx(r))):s&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Wn(e,t,r))}function wf(e,t){e.min=t.min,e.max=t.max}function _e(e,t){wf(e.x,t.x),wf(e.y,t.y)}function Sf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kf(e,t,n,r,i){return e-=t,e=ws(e,1/n,r),i!==void 0&&(e=ws(e,1/i,r)),e}function Qx(e,t=0,n=1,r=.5,i,s=e,o=e){if(nt.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=H(s.min,s.max,r);e===s&&(l-=t),e.min=kf(e.min,t,n,l,i),e.max=kf(e.max,t,n,l,i)}function Pf(e,t,[n,r,i],s,o){Qx(e,t[n],t[r],t[i],t.scale,s,o)}const Yx=["x","scaleX","originX"],Xx=["y","scaleY","originY"];function Tf(e,t,n,r){Pf(e.x,t,Yx,n?n.x:void 0,r?r.x:void 0),Pf(e.y,t,Xx,n?n.y:void 0,r?r.y:void 0)}function Cf(e){return e.translate===0&&e.scale===1}function Am(e){return Cf(e.x)&&Cf(e.y)}function Ef(e,t){return e.min===t.min&&e.max===t.max}function Zx(e,t){return Ef(e.x,t.x)&&Ef(e.y,t.y)}function Df(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mm(e,t){return Df(e.x,t.x)&&Df(e.y,t.y)}function Af(e){return je(e.x)/je(e.y)}function Mf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class qx{constructor(){this.members=[]}add(t){iu(this.members,t),t.scheduleRender()}remove(t){if(su(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 bx(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}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 Xt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},pr=typeof window<"u"&&window.MotionDebug!==void 0,Do=["","X","Y","Z"],Jx={visibility:"hidden"},Rf=1e3;let ew=0;function Ao(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ip(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rm(r)}function Nm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=ew++,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,pr&&(Xt.totalNodes=Xt.resolvedTargetDeltas=Xt.recalculatedProjection=0),this.nodes.forEach(rw),this.nodes.forEach(aw),this.nodes.forEach(uw),this.nodes.forEach(iw),pr&&window.MotionDebug.record(Xt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$x(d,250),Wi.hasAnimatedSinceResize&&(Wi.hasAnimatedSinceResize=!1,this.nodes.forEach(jf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||pw,{onLayoutAnimationStart:k,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Mm(this.targetLayout,y)||g,m=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const v={...eu(x,"layout"),onPlay:k,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v)}else d||jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cw),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rm(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 S=v/1e3;Lf(f.x,o.x,S),Lf(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dw(this.relativeTarget,this.relativeTargetOrigin,d,S),m&&Zx(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=Z()),_e(m,this.relativeTarget)),x&&(this.animationValues=c,Hx(c,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Wi.hasAnimatedSinceResize=!0,this.currentAnimation=Ix(0,Rf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Rf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&jm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||Z();const f=je(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+f;const d=je(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+d}_e(l,a),Mn(l,c),Er(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new qx),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Ao("z",o,u,this.animationValues);for(let c=0;c{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function tw(e){e.updateLayout()}function nw(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:s}=e.options,o=n.source!==e.layout.source;s==="size"?Fe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=je(d);d.min=r[f].min,d.max=d.min+g}):jm(s,n.layoutBox,r)&&Fe(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=je(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Dn();Er(l,r,n.layoutBox);const a=Dn();o?Er(a,e.applyTransform(i,!0),n.measuredBox):Er(a,r,n.layoutBox);const u=!Am(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const y=Z();Dr(y,n.layoutBox,d.layoutBox);const x=Z();Dr(x,r,g.layoutBox),Mm(y,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,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 rw(e){pr&&Xt.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 iw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sw(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function ow(e){e.isLayoutDirty=!1}function lw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aw(e){e.resolveTargetDelta()}function uw(e){e.calcProjection()}function cw(e){e.resetSkewAndRotation()}function fw(e){e.removeLeadSnapshot()}function Lf(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vf(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function dw(e,t,n,r){Vf(e.x,t.x,n.x,r),Vf(e.y,t.y,n.y,r)}function hw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pw={duration:.45,ease:[.4,0,.1,1]},_f=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ff=_f("applewebkit/")&&!_f("chrome/")?Math.round:Re;function Of(e){e.min=Ff(e.min),e.max=Ff(e.max)}function mw(e){Of(e.x),Of(e.y)}function jm(e,t,n){return e==="position"||e==="preserve-aspect"&&!vx(Af(t),Af(n),.2)}function gw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yw=Nm({attachResizeListener:(e,t)=>Xr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mo={current:void 0},Lm=Nm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mo.current){const e=new yw({});e.mount(window),e.setOptions({layoutScroll:!0}),Mo.current=e}return Mo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vw={pan:{Feature:Vx},drag:{Feature:Lx,ProjectionNode:Lm,MeasureLayout:Cm}};function If(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&U.postRender(()=>s(t,ii(t)))}class xw extends Ut{mount(){const{current:t}=this.node;t&&(this.unmount=vv(t,n=>(If(this.node,n,"Start"),r=>If(this.node,r,"End"))))}unmount(){}}class ww extends Ut{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=ri(Xr(this.node.current,"focus",()=>this.onFocus()),Xr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&U.postRender(()=>s(t,ii(t)))}class Sw extends Ut{mount(){const{current:t}=this.node;t&&(this.unmount=kv(t,n=>(zf(this.node,n,"Start"),(r,{success:i})=>zf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zl=new WeakMap,Ro=new WeakMap,kw=e=>{const t=zl.get(e.target);t&&t(e)},Pw=e=>{e.forEach(kw)};function Tw({root:e,...t}){const n=e||document;Ro.has(n)||Ro.set(n,{});const r=Ro.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Pw,{root:e,...t})),r[i]}function Cw(e,t,n){const r=Tw(t);return zl.set(e,n),r.observe(e),()=>{zl.delete(e),r.unobserve(e)}}const Ew={some:0,all:1};class Dw extends Ut{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:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ew[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!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 Cw(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Aw(t,n))&&this.startObserver()}unmount(){}}function Aw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mw={inView:{Feature:Dw},tap:{Feature:Sw},focus:{Feature:ww},hover:{Feature:xw}},Rw={layout:{ProjectionNode:Lm,MeasureLayout:Cm}},Bl={current:null},Vm={current:!1};function Nw(){if(Vm.current=!0,!!za)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bl.current=e.matches;e.addListener(t),t()}else Bl.current=!1}const jw=[...sm,he,Ot],Lw=e=>jw.find(im(e)),Bf=new WeakMap;function Vw(e,t,n){for(const r in t){const i=t[r],s=n[r];if(me(i))e.addValue(r,i);else if(me(s))e.addValue(r,Qr(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Qr(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Uf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _w{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=du,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 g=rt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Vm.current||Nw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bf.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(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=fn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&U.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),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 Hn){const n=Hn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}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=Qr(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"&&(nm(i)||Qp(i))?i=parseFloat(i):!Lw(i)&&Ot.test(n)&&(i=Jp(t,n)),this.setBaseTarget(t,me(i)?i.get():i)),me(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 o=Ga(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!me(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _m extends _w{constructor(){super(...arguments),this.KeyframeResolver=om}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;me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fw(e){return window.getComputedStyle(e)}class Ow extends _m{constructor(){super(...arguments),this.type="html",this.renderInstance=kp}readValueFromInstance(t,n){if(fn.has(n)){const r=fu(n);return r&&r.default||0}else{const r=Fw(t),i=(xp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pm(t,n)}build(t,n,r){Xa(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ja(t,n,r)}}class Iw extends _m{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fn.has(n)){const r=fu(n);return r&&r.default||0}return n=Pp.has(n)?n:Wa(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ep(t,n,r)}build(t,n,r){Za(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Tp(t,n,r,i)}mount(t){this.isSVGTag=ba(t.tagName),super.mount(t)}}const zw=(e,t)=>Ka(e)?new Iw(t):new Ow(t,{allowProjection:e!==D.Fragment}),Bw=fv({...ux,...Mw,...vw,...Rw},zw),De=Ey(Bw);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Uw={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.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $w=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),oe=(e,t)=>{const n=D.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:a,...u},c)=>D.createElement("svg",{ref:c,...Uw,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${$w(e)}`,l].join(" "),...u},[...t.map(([f,d])=>D.createElement(f,d)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ww=oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hw=oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kw=oe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gw=oe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qw=oe("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yw=oe("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.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fm=oe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xw=oe("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zw=oe("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qw=oe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bw=oe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jw=oe("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $f=oe("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** * @license lucide-react v0.300.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=oe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tS=oe("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.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nS=oe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rS=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.300.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iS=oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),sS=({onStart:e})=>w.jsx("div",{className:"min-h-screen flex items-center justify-center p-8",children:w.jsx("div",{className:"max-w-4xl w-full",children:w.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center space-y-8",children:[w.jsx(De.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"inline-flex items-center justify-center w-24 h-24 rounded-3xl bg-gradient-to-br from-blue-500 to-purple-500 shadow-2xl",children:w.jsx($f,{className:"w-12 h-12 text-white"})}),w.jsxs(De.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:[w.jsx("h1",{className:"text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"AI 会展策划系统"}),w.jsx("p",{className:"mt-4 text-xl text-neutral-600 dark:text-neutral-400",children:"多Agent协同 · 智能生成 · 专业方案"})]}),w.jsxs(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"grid grid-cols-3 gap-6 mt-12",children:[w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx(Yw,{className:"w-8 h-8 text-blue-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"7个专业Agent"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"覆盖策划全流程"})]}),w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx(iS,{className:"w-8 h-8 text-purple-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"实时协作"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"智能工作流编排"})]}),w.jsxs("div",{className:"glass-morphism rounded-2xl p-6 hover:scale-105 transition-transform",children:[w.jsx($f,{className:"w-8 h-8 text-green-500 mb-4"}),w.jsx("h3",{className:"font-semibold text-lg mb-2",children:"专业输出"}),w.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:"完整策划方案"})]})]}),w.jsxs(De.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},className:"glass-morphism rounded-2xl p-8 text-left",children:[w.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"演示案例"}),w.jsxs("div",{className:"space-y-2 text-neutral-600 dark:text-neutral-400",children:[w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"项目:"}),"2024长三角国际新能源汽车与智能交通产业博览会"]}),w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"规模:"}),"50,000平方米展览面积,350家参展商,预计50,000人次参观"]}),w.jsxs("p",{children:[w.jsx("span",{className:"font-medium text-neutral-900 dark:text-neutral-100",children:"时长:"}),"约3分钟完整演示"]})]})]}),w.jsxs(De.button,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:1},whileHover:{scale:1.05},whileTap:{scale:.95},onClick:e,className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-blue-500 to-purple-500 text-white font-semibold text-lg rounded-2xl shadow-xl hover:shadow-2xl transition-all",children:[w.jsx("span",{children:"开始演示"}),w.jsx(Ww,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"}),w.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-500 to-purple-500 blur-xl opacity-50 group-hover:opacity-70 transition-opacity"})]}),w.jsx(De.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2},className:"text-sm text-neutral-500 dark:text-neutral-500 mt-8",children:"Powered by n8n Workflow · DeepSeek · Google Gemini"})]})})}),oS={},Wf=e=>{let t;const n=new Set,r=(c,f)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const g=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,g))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(oS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,a);return a},lS=e=>e?Wf(e):Wf;var Om={exports:{}},Im={},zm={exports:{}},Bm={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Gn=D;function aS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uS=typeof Object.is=="function"?Object.is:aS,cS=Gn.useState,fS=Gn.useEffect,dS=Gn.useLayoutEffect,hS=Gn.useDebugValue;function pS(e,t){var n=t(),r=cS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return dS(function(){i.value=n,i.getSnapshot=t,No(i)&&s({inst:i})},[e,n,t]),fS(function(){return No(i)&&s({inst:i}),e(function(){No(i)&&s({inst:i})})},[e]),hS(n),n}function No(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uS(e,n)}catch{return!0}}function mS(e,t){return t()}var gS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?mS:pS;Bm.useSyncExternalStore=Gn.useSyncExternalStore!==void 0?Gn.useSyncExternalStore:gS;zm.exports=Bm;var yS=zm.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ws=D,vS=yS;function xS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:xS,SS=vS.useSyncExternalStore,kS=Ws.useRef,PS=Ws.useEffect,TS=Ws.useMemo,CS=Ws.useDebugValue;Im.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=kS(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=TS(function(){function a(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var y=o.value;if(i(y,g))return f=y}return f=g}if(y=f,wS(c,g))return y;var x=r(g);return i!==void 0&&i(y,x)?(c=g,y):(c=g,f=x)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return a(t())},d===null?void 0:function(){return a(d())}]},[t,n,r,i]);var l=SS(e,s[0],s[1]);return PS(function(){o.hasValue=!0,o.value=l},[l]),CS(l),l};Om.exports=Im;var ES=Om.exports;const DS=Qf(ES),Um={},{useDebugValue:AS}=Kl,{useSyncExternalStoreWithSelector:MS}=DS;let Hf=!1;const RS=e=>e;function NS(e,t=RS,n){(Um?"production":void 0)!=="production"&&n&&!Hf&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Hf=!0);const r=MS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return AS(r),r}const Kf=e=>{(Um?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?lS(e):e,n=(r,i)=>NS(t,r,i);return Object.assign(n,t),n},jS=e=>e?Kf(e):Kf,Gf=[{id:"retrieval",name:"信息检索专家",icon:"🔍",model:"DeepSeek Chat Model5",role:"市场调研、数据收集、竞品分析",status:"waiting"},{id:"design",name:"设计专家",icon:"🎨",model:"Google Gemini Chat Model2",role:"视觉设计、空间布局、品牌形象",status:"waiting"},{id:"budget",name:"财务预算专家",icon:"💰",model:"DeepSeek Chat Model2",role:"成本核算、预算规划、ROI分析",status:"waiting"},{id:"format",name:"格式编辑专家",icon:"📝",model:"DeepSeek Chat Model4",role:"文档格式化、内容结构优化",status:"waiting"},{id:"execution",name:"活动执行专家",icon:"⚡",model:"DeepSeek Chat Model1",role:"执行计划、时间线管理、任务分配",status:"waiting"},{id:"marketing",name:"营销宣传专家",icon:"📢",model:"DeepSeek Chat Model3",role:"推广策略、媒体规划、品牌传播",status:"waiting"},{id:"coordinator",name:"会展策划专家",icon:"🎯",model:"Chat Models + Memories",role:"中央协调、方案整合、决策支持",status:"waiting"}],$m=jS(e=>({status:"idle",currentPhase:0,currentAgent:null,progress:0,agents:Gf,generatedContent:{},controls:{speed:1,autoAdvance:!0,showDetails:!0},startDemo:()=>e({status:"running",progress:0}),pauseDemo:()=>e({status:"paused"}),resumeDemo:()=>e({status:"running"}),setCurrentAgent:t=>e({currentAgent:t}),updateAgentStatus:(t,n)=>e(r=>({agents:r.agents.map(i=>i.id===t?{...i,status:n}:i)})),updateAgentOutput:(t,n)=>e(r=>({agents:r.agents.map(i=>i.id===t?{...i,output:n}:i)})),addGeneratedContent:(t,n)=>e(r=>({generatedContent:{...r.generatedContent,[t]:n}})),setProgress:t=>e({progress:t}),reset:()=>e({status:"idle",currentPhase:0,currentAgent:null,progress:0,agents:Gf,generatedContent:{}})})),LS=()=>{var h;const{agents:e,startDemo:t,pauseDemo:n,reset:r,status:i}=$m(),[s,o]=D.useState([]),[l,a]=D.useState(0),[u,c]=D.useState(0),f=D.useRef(null),d=D.useRef(null),g=[{agent:e[0],duration:12e3,output:[">>> 初始化信息检索系统...","[INFO] 连接数据库: mongodb://data-server:27017","[INFO] 加载索引: automotive_industry_2024.idx","正在执行查询...",'SELECT * FROM exhibitions WHERE region="长三角" AND industry="新能源汽车"',"> 查询耗时: 342ms","> 返回记录: 2,847 条","","=== 数据分析开始 ===","[1/5] 产业规模分析..."," └─ 2023年产值: 3.2万亿元 (↑32% YoY)"," └─ 企业数量: 5,832家"," └─ 从业人员: 186万人","[2/5] 主要企业扫描..."," └─ 特斯拉(上海): 年产能75万辆"," └─ 蔚来汽车: 累计交付38万辆"," └─ 理想汽车: 月销量突破5万"," └─ 小鹏汽车: 智能化领先","[3/5] 展会历史数据..."," └─ 2023年展会: 126场"," └─ 平均规模: 3.2万平方米"," └─ 平均观众: 4.5万人次","[4/5] 竞品分析..."," └─ 北京车展: 影响力指数92"," └─ 广州车展: 影响力指数88"," └─ 成都车展: 影响力指数76","[5/5] 趋势预测..."," └─ 2024年增长预期: 28%"," └─ 热点技术: 固态电池、自动驾驶L4","","✓ 市场调研报告已生成 (15.3MB)","✓ 数据已同步至共享空间"]},{agent:e[1],duration:12e3,output:[">>> 启动设计引擎 v3.2.1...","[LOAD] 加载品牌识别系统...","[LOAD] 加载空间规划算法...","","=== 视觉识别设计 ===","Analyzing brand requirements...","> 主题关键词: [科技, 创新, 绿色, 智能]","> 色彩心理学分析中..."," Primary: #0EA5E9 (Trust & Technology)"," Secondary: #10B981 (Growth & Sustainability)"," Accent: #F59E0B (Energy & Innovation)","","=== 空间布局优化 ===","Running layout optimization algorithm...","Iteration 1/100: Score=72.3","Iteration 50/100: Score=86.7","Iteration 100/100: Score=94.2","","最优布局方案:","┌─────────────────────────┐","│ A区: 整车展示 (15,000㎡) │","│ ├─ 豪华品牌: 5,000㎡ │","│ ├─ 新势力: 6,000㎡ │","│ └─ 传统转型: 4,000㎡ │","├─────────────────────────┤","│ B区: 核心零部件 (10,000㎡)│","│ ├─ 动力电池: 4,000㎡ │","│ ├─ 电机电控: 3,000㎡ │","│ └─ 智能座舱: 3,000㎡ │","└─────────────────────────┘","","Generating 3D preview...","> Rendering: ████████████ 100%","","✓ 设计方案已完成","✓ 导出文件: design_plan_v1.pdf (48.2MB)"]},{agent:e[2],duration:1e4,output:[">>> 财务分析系统 v2.0","Loading financial models...","","=== 成本核算 ===","Calculating venue costs...","> 场地租赁: ¥3,000,000"," └─ 展馆: ¥2,500,000"," └─ 会议室: ¥500,000","Calculating construction costs...","> 展台搭建: ¥4,500,000"," └─ 特装展位: ¥3,000,000"," └─ 标准展位: ¥1,500,000","Calculating operational costs...","> 运营费用: ¥2,000,000"," └─ 人员: ¥800,000"," └─ 营销: ¥1,200,000","","=== 收入预测 ===","Revenue projection model running...","> 展位销售: ¥8,500,000"," └─ 特装: 100个×¥100,000"," └─ 标准: 500个×¥15,000","> 赞助收入: ¥3,000,000","> 门票收入: ¥1,500,000","","Financial metrics:","> Total Cost: ¥10,000,000","> Total Revenue: ¥13,000,000","> Net Profit: ¥3,000,000","> ROI: 30%","> Break-even: Day 2","","✓ 财务模型构建完成","✓ 风险评估: 低风险"]},{agent:e[3],duration:8e3,output:[">>> 文档处理引擎启动...","[FORMAT] 检查文档结构...","> 章节数量: 6","> 总字数: 12,847","> 图表数量: 24","","=== 格式优化 ===","Applying style guide...","> 标题层级: H1-H4","> 字体规范: 思源黑体","> 行间距: 1.5倍","","Checking consistency...","> 术语统一: 187处修正","> 数字格式: 92处标准化","> 标点符号: 45处优化","","Generating TOC...","> 一级标题: 6个","> 二级标题: 18个","> 三级标题: 42个","","✓ 文档格式优化完成"]},{agent:e[4],duration:1e4,output:[">>> 执行计划生成器 v1.5","","=== 时间轴规划 ===","D-180: 项目启动","D-150: 招展启动","D-120: 媒体发布","D-90: 展位确认","D-60: 搭建方案确定","D-30: 现场勘察","D-7: 搭建开始","D-1: 最终检查","D+0: 展会开幕","","=== 人员部署 ===","Total staff: 126人","> 管理团队: 6人","> 展务团队: 30人","> 接待团队: 40人","> 技术团队: 20人","> 安保团队: 30人","","=== 物料清单 ===","Generating BOM...","> 展台物料: 2,847项","> 宣传物料: 523项","> 办公用品: 189项","","✓ 执行方案已生成"]},{agent:e[5],duration:1e4,output:[">>> 营销策略引擎 v4.0","","=== 渠道分析 ===","Analyzing marketing channels...","> 社交媒体覆盖: 500万+","> 行业媒体: 126家","> KOL资源: 89位","","=== 推广计划 ===","Phase 1: 预热期 (D-90 to D-60)","> 软文发布: 30篇","> 视频内容: 15条","> 直播预告: 5场","","Phase 2: 高峰期 (D-60 to D-30)","> 广告投放: ¥800,000","> 媒体专访: 10次","> 路演活动: 8场","","Phase 3: 冲刺期 (D-30 to D-0)","> 倒计时海报: 每日更新","> 展商专访: 20家","> 观众互动: 10个活动","","Expected reach:","> 曝光量: 2000万+","> 互动量: 50万+","> 转化率: 2.5%","","✓ 营销方案制定完成"]},{agent:e[6],duration:8e3,output:[">>> 协调控制中心 v3.0","","=== 数据汇总 ===","Collecting agent outputs...","> 市场分析: ✓ Complete","> 设计方案: ✓ Complete","> 财务预算: ✓ Complete","> 文档格式: ✓ Complete","> 执行计划: ✓ Complete","> 营销策略: ✓ Complete","","=== 协同优化 ===","Cross-validating data...","> 预算-设计匹配度: 96%","> 营销-市场匹配度: 92%","> 执行可行性评分: 94%","","Resolving conflicts...","> 时间冲突: 0","> 资源冲突: 0","> 逻辑冲突: 0","","=== 最终输出 ===","Generating final document...","> 合并章节: 6个","> 总页数: 68页","> 附件数: 12个","","✓ 策划方案生成完成","✓ 所有系统已同步"]}],y=m=>{const v=new Date,S=`${v.getHours().toString().padStart(2,"0")}:${v.getMinutes().toString().padStart(2,"0")}:${v.getSeconds().toString().padStart(2,"0")}`;o(P=>[...P,{...m,id:Math.random().toString(36).substr(2,9),timestamp:S}]),setTimeout(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},50)},x=async()=>{if(l>=g.length){y({type:"system",content:"========== 所有Agent执行完成 =========="});return}const m=g[l],v=m.agent;y({type:"system",content:`[Agent启动] ${v.name} (${v.model})`});for(let S=0;SsetTimeout(P,m.duration/m.output.length)),i!=="running")return;y({type:m.output[S].startsWith("✓")?"success":m.output[S].startsWith(">")?"output":"info",agent:v.name,content:m.output[S]})}a(S=>S+1)};D.useEffect(()=>{i==="running"&&l(i==="running"?d.current=setInterval(()=>{c(m=>m+100)},100):d.current&&clearInterval(d.current),()=>{d.current&&clearInterval(d.current)}),[i]);const k=()=>{r(),o([]),a(0),c(0)},p=m=>{const v=Math.floor(m/1e3),S=Math.floor(v/60),P=v%60;return`${S.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`};return w.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[w.jsxs("div",{className:"bg-white border-b border-gray-200 px-6 py-3 flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("h1",{className:"text-lg font-semibold text-gray-900",children:"AI会展策划系统 - 多Agent协同演示"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("button",{onClick:i==="idle"?t:n,className:"px-3 py-1.5 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors flex items-center gap-1.5",children:i==="idle"||i==="paused"?w.jsxs(w.Fragment,{children:[w.jsx(qw,{className:"w-4 h-4"}),w.jsx("span",{children:"开始"})]}):w.jsxs(w.Fragment,{children:[w.jsx(Zw,{className:"w-4 h-4"}),w.jsx("span",{children:"暂停"})]})}),w.jsxs("button",{onClick:k,className:"px-3 py-1.5 bg-gray-600 text-white rounded-md hover:bg-gray-700 transition-colors flex items-center gap-1.5",children:[w.jsx(bw,{className:"w-4 h-4"}),w.jsx("span",{children:"重置"})]})]})]}),w.jsxs("div",{className:"text-sm text-gray-600",children:["运行时间: ",p(u)," / 03:00"]})]}),w.jsxs("div",{className:"flex-1 flex",children:[w.jsx("div",{className:"w-1/2 border-r border-gray-200 bg-white",children:w.jsxs("div",{className:"h-full flex flex-col",children:[w.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between bg-gray-50",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"}),w.jsx("span",{className:"text-sm font-medium text-gray-700",children:"工作流可视化"})]}),w.jsx("button",{className:"p-1 hover:bg-gray-200 rounded transition-colors",children:w.jsx(Fm,{className:"w-4 h-4 text-gray-600"})})]}),w.jsx("div",{className:"flex-1 relative",children:w.jsx("iframe",{src:"http://localhost:5678/workflow/XbfF8iRI4a69hmYS",className:"w-full h-full border-0",title:"n8n Workflow"})})]})}),w.jsx("div",{className:"w-1/2 bg-gray-900",children:w.jsxs("div",{className:"h-full flex flex-col",children:[w.jsxs("div",{className:"px-4 py-2 bg-gray-800 flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(tS,{className:"w-4 h-4 text-green-400"}),w.jsx("span",{className:"text-sm font-mono text-green-400",children:"Agent Execution Terminal"})]}),w.jsxs("div",{className:"flex gap-1",children:[w.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),w.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),w.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]})]}),w.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-4 font-mono text-sm",style:{backgroundColor:"#0a0a0a"},children:[w.jsx(ap,{children:s.map(m=>w.jsxs(De.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2},className:"mb-1",children:[w.jsxs("span",{className:"text-gray-500",children:["[",m.timestamp,"]"]}),m.agent&&w.jsxs("span",{className:"text-cyan-400 ml-2",children:[m.agent,":"]}),w.jsx("span",{className:`ml-2 ${m.type==="success"?"text-green-400":m.type==="error"?"text-red-400":m.type==="warning"?"text-yellow-400":m.type==="system"?"text-purple-400":m.type==="output"?"text-blue-400":"text-gray-300"}`,children:m.content})]},m.id))}),i==="running"&&w.jsx(De.span,{animate:{opacity:[1,0]},transition:{duration:.5,repeat:1/0},className:"inline-block w-2 h-4 bg-green-400"})]}),w.jsxs("div",{className:"px-4 py-3 bg-gray-800 border-t border-gray-700",children:[w.jsx("div",{className:"grid grid-cols-7 gap-2",children:e.map((m,v)=>w.jsxs("div",{className:`flex flex-col items-center gap-1 px-2 py-2 rounded-lg transition-all ${v{const[e,t]=D.useState("overview"),[n,r]=D.useState(!1),i=[{id:"overview",title:"策划案概述",icon:w.jsx(Qw,{className:"w-4 h-4"}),content:[{title:"展会背景",description:"在全球碳中和目标推动下,新能源汽车产业迎来前所未有的发展机遇。长三角地区作为中国经济最发达、产业链最完善的区域之一,已成为新能源汽车产业的核心聚集地。"},{title:"展会定位",description:'打造长三角地区最具影响力的新能源汽车产业交流平台,聚焦"双碳"目标下的产业创新与发展,推动产业链上下游深度合作。'},{title:"核心价值",items:["展示最新技术成果和产品创新","促进产业链上下游深度对接","推动国际技术交流与合作","引领行业发展趋势"]}]},{id:"exhibition",title:"展会介绍",icon:w.jsx(eS,{className:"w-4 h-4"}),content:[{title:"基本信息",items:["展会名称:2024长三角国际新能源汽车与智能交通产业博览会","举办时间:2024年10月18日-20日","举办地点:上海国家会展中心","展览面积:50,000平方米","预计展商:350家","预计观众:50,000人次"]},{title:"展区规划",items:["A区 - 整车展示区(15,000㎡):新能源乘用车、商用车展示","B区 - 零部件展区(10,000㎡):电池、电机、电控系统","C区 - 充电设施展区(8,000㎡):充电桩、换电站、储能系统","D区 - 智能交通展区(12,000㎡):自动驾驶、车联网、智慧交通","E区 - 论坛会议区(5,000㎡):主论坛、分论坛、商务洽谈"]}]},{id:"marketing",title:"营销方案",icon:w.jsx(Xw,{className:"w-4 h-4"}),content:[{title:"线上推广",items:["官方网站:建设响应式展会官网,提供在线注册、展位预订功能","社交媒体:微信、微博、抖音、LinkedIn多平台运营","KOL合作:邀请行业大V、汽车测评博主参与宣传","搜索引擎:SEM投放、SEO优化,提升展会曝光度"]},{title:"线下推广",items:["行业展会:参加相关展会进行推介","路演活动:在长三角主要城市举办巡回推介会","户外广告:高速公路、地铁、机场广告投放","定向邀请:精准邀请目标客户群体"]},{title:"媒体合作",items:["主流媒体:央视、新华社、人民日报等","行业媒体:汽车之家、易车网、电车资源网等","国际媒体:路透社、彭博社驻华机构"]}]},{id:"operation",title:"现场运营",icon:w.jsx(nS,{className:"w-4 h-4"}),content:[{title:"人员配置",items:["总指挥中心:1名总指挥 + 3名副总指挥","展务组:20人负责展位管理和现场协调","接待组:30人负责VIP接待和观众服务","安保组:50人负责现场安全保障","技术组:15人负责设备调试和技术支持","媒体组:10人负责媒体接待和新闻发布"]},{title:"服务设施",items:["智能导览系统:AR导航、展位查询、活动提醒","商务配套:商务洽谈室、VIP休息室、餐饮服务","交通接驳:地铁站、机场、高铁站免费班车","停车服务:5000个车位,新能源车免费充电"]}]},{id:"budget",title:"预算分析",icon:w.jsx(Kw,{className:"w-4 h-4"}),content:[{title:"支出预算",items:["场地租赁:300万元","展台搭建:450万元","营销推广:120万元","人员费用:80万元","应急储备:50万元","总计:1,000万元"]},{title:"收入预测",items:["展位销售:850万元(标准展位500个×1.5万,特装100个×10万)","门票收入:150万元(专业观众票3万张×50元)","赞助收入:300万元(钻石赞助1家、金牌赞助3家、银牌赞助5家)","总计:1,300万元"]},{title:"盈利分析",description:"预计净利润300万元,投资回报率30%,达到预期收益目标。"}]},{id:"risk",title:"风险评估",icon:w.jsx(Jw,{className:"w-4 h-4"}),content:[{title:"潜在风险",items:["疫情风险:可能导致展会延期或取消","市场风险:行业波动影响展商参展意愿","竞争风险:同期其他展会分流","天气风险:极端天气影响观众出行"]},{title:"应对措施",items:["制定完善的疫情防控方案,购买展会取消险","提前锁定核心展商,签订参展协议","差异化定位,突出展会特色优势","制定恶劣天气应急预案,提供线上参展选项"]}]}],s=i.find(o=>o.id===e);return w.jsxs("div",{className:`${n?"fixed inset-0 z-50":"min-h-screen"} bg-gray-50 flex flex-col`,children:[w.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-4",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{children:[w.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"2024长三角新能源汽车展 - 策划方案"}),w.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"AI多Agent协同生成 | 生成时间:3分钟"})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("button",{className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors flex items-center gap-2",children:[w.jsx(Gw,{className:"w-4 h-4"}),w.jsx("span",{children:"导出PDF"})]}),w.jsx("button",{onClick:()=>r(!n),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:n?w.jsx(rS,{className:"w-5 h-5"}):w.jsx(Fm,{className:"w-5 h-5"})})]})]})}),w.jsx("div",{className:"bg-white border-b border-gray-200",children:w.jsx("div",{className:"flex overflow-x-auto",children:i.map(o=>w.jsxs("button",{onClick:()=>t(o.id),className:`flex items-center gap-2 px-6 py-3 border-b-2 transition-all whitespace-nowrap ${e===o.id?"border-blue-600 text-blue-600 bg-blue-50":"border-transparent text-gray-600 hover:text-gray-900 hover:bg-gray-50"}`,children:[o.icon,w.jsx("span",{className:"font-medium",children:o.title})]},o.id))})}),w.jsx("div",{className:"flex-1 overflow-y-auto",children:w.jsx("div",{className:"max-w-5xl mx-auto p-8",children:w.jsx(De.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:s==null?void 0:s.content.map((o,l)=>w.jsxs("div",{className:"mb-8 bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[w.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4 flex items-center gap-2",children:[w.jsx(Hw,{className:"w-5 h-5 text-blue-600"}),o.title]}),o.subtitle&&w.jsx("p",{className:"text-gray-600 mb-4",children:o.subtitle}),o.description&&w.jsx("p",{className:"text-gray-700 leading-relaxed",children:o.description}),o.items&&w.jsx("ul",{className:"space-y-2",children:o.items.map((a,u)=>w.jsxs("li",{className:"flex items-start gap-2",children:[w.jsx("span",{className:"text-blue-600 mt-1",children:"•"}),w.jsx("span",{className:"text-gray-700",children:a})]},u))})]},l))},e)})}),w.jsx("div",{className:"bg-white border-t border-gray-200 px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("span",{children:"文档完整度: 100%"}),w.jsx("span",{children:"总字数: 12,847"}),w.jsx("span",{children:"生成用时: 2分48秒"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500"}),w.jsx("span",{children:"所有内容已生成完成"})]})]})})]})};function _S(){const[e,t]=D.useState("landing"),{status:n}=$m();Kl.useEffect(()=>{n==="completed"&&t("result")},[n]);const r=()=>{t("workflow")};return w.jsx("div",{className:"min-h-screen",children:w.jsxs(ap,{mode:"wait",children:[e==="landing"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(sS,{onStart:r})},"landing"),e==="workflow"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(LS,{})},"workflow"),e==="result"&&w.jsx(De.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:w.jsx(VS,{})},"result")]})})}jo.createRoot(document.getElementById("root")).render(w.jsx(Kl.StrictMode,{children:w.jsx(_S,{})}));