(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function i(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=i(l);fetch(l.href,c)}})();var ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function jw(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var i=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:function(){return t[s]}})}),i}var Hu={exports:{}},Co={},qu={exports:{}},Te={};/** * @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 gm;function Dw(){if(gm)return Te;gm=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function S(A,U,ee){this.props=A,this.context=U,this.refs=T,this.updater=ee||P}S.prototype.isReactComponent={},S.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,U,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=S.prototype;function N(A,U,ee){this.props=A,this.context=U,this.refs=T,this.updater=ee||P}var b=N.prototype=new _;b.constructor=N,k(b,S.prototype),b.isPureReactComponent=!0;var I=Array.isArray,W=Object.prototype.hasOwnProperty,q={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function D(A,U,ee){var oe,Z={},fe=null,Ce=null;if(U!=null)for(oe in U.ref!==void 0&&(Ce=U.ref),U.key!==void 0&&(fe=""+U.key),U)W.call(U,oe)&&!H.hasOwnProperty(oe)&&(Z[oe]=U[oe]);var me=arguments.length-2;if(me===1)Z.children=ee;else if(1>>1,U=g[A];if(0>>1;Al(Z,M))fel(Ce,Z)?(g[A]=Ce,g[fe]=M,A=fe):(g[A]=Z,g[oe]=M,A=oe);else if(fel(Ce,M))g[A]=Ce,g[fe]=M,A=fe;else break e}}return O}function l(g,O){var M=g.sortIndex-O.sortIndex;return M!==0?M:g.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var m=[],y=[],h=1,x=null,w=3,P=!1,k=!1,T=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(g){for(var O=i(y);O!==null;){if(O.callback===null)s(y);else if(O.startTime<=g)s(y),O.sortIndex=O.expirationTime,n(m,O);else break;O=i(y)}}function I(g){if(T=!1,b(g),!k)if(i(m)!==null)k=!0,Pe(W);else{var O=i(y);O!==null&&le(I,O.startTime-g)}}function W(g,O){k=!1,T&&(T=!1,_(D),D=-1),P=!0;var M=w;try{for(b(O),x=i(m);x!==null&&(!(x.expirationTime>O)||g&&!he());){var A=x.callback;if(typeof A=="function"){x.callback=null,w=x.priorityLevel;var U=A(x.expirationTime<=O);O=t.unstable_now(),typeof U=="function"?x.callback=U:x===i(m)&&s(m),b(O)}else s(m);x=i(m)}if(x!==null)var ee=!0;else{var oe=i(y);oe!==null&&le(I,oe.startTime-O),ee=!1}return ee}finally{x=null,w=M,P=!1}}var q=!1,H=null,D=-1,ne=5,te=-1;function he(){return!(t.unstable_now()-teg||125A?(g.sortIndex=M,n(y,g),i(m)===null&&g===i(y)&&(T?(_(D),D=-1):T=!0,le(I,M-A))):(g.sortIndex=U,n(m,g),k||P||(k=!0,Pe(W))),g},t.unstable_shouldYield=he,t.unstable_wrapCallback=function(g){var O=w;return function(){var M=w;w=O;try{return g.apply(this,arguments)}finally{w=M}}}})(Qu)),Qu}var Em;function Bw(){return Em||(Em=1,Gu.exports=Vw()),Gu.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 km;function zw(){if(km)return Mt;km=1;var t=Yf(),n=Bw();function i(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,y=/^[: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]*$/,h={},x={};function w(e){return m.call(x,e)?!0:m.call(h,e)?!1:y.test(e)?x[e]=!0:(h[e]=!0,!1)}function P(e,r,o,a){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k(e,r,o,a){if(r===null||typeof r>"u"||P(e,r,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function T(e,r,o,a,f,p,v){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=e,this.type=r,this.sanitizeURL=p,this.removeEmptyString=v}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];S[r]=new T(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new T(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){S[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function N(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 r=e.replace(_,N);S[r]=new T(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(_,N);S[r]=new T(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(_,N);S[r]=new T(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,r,o,a){var f=S.hasOwnProperty(r)?S[r]:null;(f!==null?f.type!==0:a||!(2C||f[v]!==p[C]){var R=` `+f[v].replace(" at new "," at ");return e.displayName&&R.includes("")&&(R=R.replace("",e.displayName)),R}while(1<=v&&0<=C);break}}}finally{ee=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?U(e):""}function Z(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function fe(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 H:return"Fragment";case q:return"Portal";case ne:return"Profiler";case D:return"StrictMode";case Se:return"Suspense";case ge:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case te:return(e._context.displayName||"Context")+".Provider";case re:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return r=e.displayName||null,r!==null?r:fe(e.type)||"Memo";case Pe:r=e._payload,e=e._init;try{return fe(e(r))}catch{}}return null}function Ce(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(r);case 8:return r===D?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function me(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ee(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function xe(e){var r=Ee(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,p=o.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return f.call(this)},set:function(v){a=""+v,p.call(this,v)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function je(e){e._valueTracker||(e._valueTracker=xe(e))}function be(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var o=r.getValue(),a="";return e&&(a=Ee(e)?e.checked?"true":"false":e.value),e=a,e!==o?(r.setValue(e),!0):!1}function Ve(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 Xe(e,r){var o=r.checked;return M({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function wt(e,r){var o=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;o=me(r.value!=null?r.value:o),e._wrapperState={initialChecked:a,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function et(e,r){r=r.checked,r!=null&&b(e,"checked",r,!1)}function ot(e,r){et(e,r);var o=me(r.value),a=r.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?hn(e,r.type,o):r.hasOwnProperty("defaultValue")&&hn(e,r.type,me(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function St(e,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,o||r===e.value||(e.value=r),e.defaultValue=r}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function hn(e,r,o){(r!=="number"||Ve(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var _t=Array.isArray;function st(e,r,o,a){if(e=e.options,r){r={};for(var f=0;f"+r.valueOf().toString()+"",r=qr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Nn(e,r){if(r){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=r;return}}e.textContent=r}var Kn={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},cl=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){cl.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),Kn[r]=Kn[e]})});function ns(e,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+r).trim():r+"px"}function Kr(e,r){e=e.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,f=ns(o,r[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,f):e[o]=f}}var Gr=M({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 V(e,r){if(r){if(Gr[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function z(e,r){if(e.indexOf("-")===-1)return typeof r.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 Ae=null;function Fe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oe=null,we=null,Et=null;function yn(e){if(e=co(e)){if(typeof Oe!="function")throw Error(i(280));var r=e.stateNode;r&&(r=As(r),Oe(e.stateNode,e.type,r))}}function pt(e){we?Et?Et.push(e):Et=[e]:we=e}function Jt(){if(we){var e=we,r=Et;if(Et=we=null,yn(e),r)for(e=0;e>>=0,e===0?32:31-(X1(e)/Y1|0)|0}var us=64,cs=4194304;function qi(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 fs(e,r){var o=e.pendingLanes;if(o===0)return 0;var a=0,f=e.suspendedLanes,p=e.pingedLanes,v=o&268435455;if(v!==0){var C=v&~f;C!==0?a=qi(C):(p&=v,p!==0&&(a=qi(p)))}else v=o&~f,v!==0?a=qi(v):p!==0&&(a=qi(p));if(a===0)return 0;if(r!==0&&r!==a&&(r&f)===0&&(f=a&-a,p=r&-r,f>=p||f===16&&(p&4194240)!==0))return r;if((a&4)!==0&&(a|=o&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=a;0o;o++)r.push(e);return r}function Ki(e,r,o){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-tn(r),e[r]=o}function tx(e,r){var o=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0=to),up=" ",cp=!1;function fp(e,r){switch(e){case"keyup":return Rx.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function bx(e,r){switch(e){case"compositionend":return dp(r);case"keypress":return r.which!==32?null:(cp=!0,up);case"textInput":return e=r.data,e===up&&cp?null:e;default:return null}}function Ox(e,r){if(ei)return e==="compositionend"||!Tl&&fp(e,r)?(e=rp(),ys=xl=tr=null,ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=xp(o)}}function Sp(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?Sp(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function Ep(){for(var e=window,r=Ve();r instanceof e.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)e=r.contentWindow;else break;r=Ve(e.document)}return r}function _l(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function Ux(e){var r=Ep(),o=e.focusedElem,a=e.selectionRange;if(r!==o&&o&&o.ownerDocument&&Sp(o.ownerDocument.documentElement,o)){if(a!==null&&_l(o)){if(r=a.start,e=a.end,e===void 0&&(e=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(e,o.value.length);else if(e=(r=o.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var f=o.textContent.length,p=Math.min(a.start,f);a=a.end===void 0?p:Math.min(a.end,f),!e.extend&&p>a&&(f=a,a=p,p=f),f=wp(o,p);var v=wp(o,a);f&&v&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),e.removeAllRanges(),p>a?(e.addRange(r),e.extend(v.node,v.offset)):(r.setEnd(v.node,v.offset),e.addRange(r)))}}for(r=[],e=o;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,ti=null,Nl=null,oo=null,Rl=!1;function kp(e,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Rl||ti==null||ti!==Ve(a)||(a=ti,"selectionStart"in a&&_l(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),oo&&io(oo,a)||(oo=a,a=Ps(Nl,"onSelect"),0si||(e.current=Ul[si],Ul[si]=null,si--)}function De(e,r){si++,Ul[si]=e.current,e.current=r}var or={},ht=ir(or),Nt=ir(!1),Tr=or;function ai(e,r){var o=e.type.contextTypes;if(!o)return or;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in o)f[p]=r[p];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=f),f}function Rt(e){return e=e.childContextTypes,e!=null}function _s(){Le(Nt),Le(ht)}function Lp(e,r,o){if(ht.current!==or)throw Error(i(168));De(ht,r),De(Nt,o)}function Vp(e,r,o){var a=e.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var f in a)if(!(f in r))throw Error(i(108,Ce(e)||"Unknown",f));return M({},o,a)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Tr=ht.current,De(ht,e),De(Nt,Nt.current),!0}function Bp(e,r,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=Vp(e,r,Tr),a.__reactInternalMemoizedMergedChildContext=e,Le(Nt),Le(ht),De(ht,e)):Le(Nt),De(Nt,o)}var On=null,Rs=!1,$l=!1;function zp(e){On===null?On=[e]:On.push(e)}function ew(e){Rs=!0,zp(e)}function sr(){if(!$l&&On!==null){$l=!0;var e=0,r=Me;try{var o=On;for(Me=1;e>=v,f-=v,Mn=1<<32-tn(r)+f|o<ve?(ut=pe,pe=null):ut=pe.sibling;var Re=G(j,pe,L[ve],Y);if(Re===null){pe===null&&(pe=ut);break}e&&pe&&Re.alternate===null&&r(j,pe),F=p(Re,F,ve),de===null?ce=Re:de.sibling=Re,de=Re,pe=ut}if(ve===L.length)return o(j,pe),Be&&Ar(j,ve),ce;if(pe===null){for(;veve?(ut=pe,pe=null):ut=pe.sibling;var mr=G(j,pe,Re.value,Y);if(mr===null){pe===null&&(pe=ut);break}e&&pe&&mr.alternate===null&&r(j,pe),F=p(mr,F,ve),de===null?ce=mr:de.sibling=mr,de=mr,pe=ut}if(Re.done)return o(j,pe),Be&&Ar(j,ve),ce;if(pe===null){for(;!Re.done;ve++,Re=L.next())Re=X(j,Re.value,Y),Re!==null&&(F=p(Re,F,ve),de===null?ce=Re:de.sibling=Re,de=Re);return Be&&Ar(j,ve),ce}for(pe=a(j,pe);!Re.done;ve++,Re=L.next())Re=ie(pe,j,ve,Re.value,Y),Re!==null&&(e&&Re.alternate!==null&&pe.delete(Re.key===null?ve:Re.key),F=p(Re,F,ve),de===null?ce=Re:de.sibling=Re,de=Re);return e&&pe.forEach(function(Mw){return r(j,Mw)}),Be&&Ar(j,ve),ce}function Ge(j,F,L,Y){if(typeof L=="object"&&L!==null&&L.type===H&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case W:e:{for(var ce=L.key,de=F;de!==null;){if(de.key===ce){if(ce=L.type,ce===H){if(de.tag===7){o(j,de.sibling),F=f(de,L.props.children),F.return=j,j=F;break e}}else if(de.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Pe&&Kp(ce)===de.type){o(j,de.sibling),F=f(de,L.props),F.ref=fo(j,de,L),F.return=j,j=F;break e}o(j,de);break}else r(j,de);de=de.sibling}L.type===H?(F=jr(L.props.children,j.mode,Y,L.key),F.return=j,j=F):(Y=ia(L.type,L.key,L.props,null,j.mode,Y),Y.ref=fo(j,F,L),Y.return=j,j=Y)}return v(j);case q:e:{for(de=L.key;F!==null;){if(F.key===de)if(F.tag===4&&F.stateNode.containerInfo===L.containerInfo&&F.stateNode.implementation===L.implementation){o(j,F.sibling),F=f(F,L.children||[]),F.return=j,j=F;break e}else{o(j,F);break}else r(j,F);F=F.sibling}F=Bu(L,j.mode,Y),F.return=j,j=F}return v(j);case Pe:return de=L._init,Ge(j,F,de(L._payload),Y)}if(_t(L))return ae(j,F,L,Y);if(O(L))return ue(j,F,L,Y);Ms(j,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,F!==null&&F.tag===6?(o(j,F.sibling),F=f(F,L),F.return=j,j=F):(o(j,F),F=Vu(L,j.mode,Y),F.return=j,j=F),v(j)):o(j,F)}return Ge}var fi=Gp(!0),Qp=Gp(!1),js=ir(null),Ds=null,di=null,Ql=null;function Xl(){Ql=di=Ds=null}function Yl(e){var r=js.current;Le(js),e._currentValue=r}function Jl(e,r,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),e===o)break;e=e.return}}function pi(e,r){Ds=e,Ql=di=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&r)!==0&&(Ft=!0),e.firstContext=null)}function Ht(e){var r=e._currentValue;if(Ql!==e)if(e={context:e,memoizedValue:r,next:null},di===null){if(Ds===null)throw Error(i(308));di=e,Ds.dependencies={lanes:0,firstContext:e}}else di=di.next=e;return r}var _r=null;function Zl(e){_r===null?_r=[e]:_r.push(e)}function Xp(e,r,o,a){var f=r.interleaved;return f===null?(o.next=o,Zl(r)):(o.next=f.next,f.next=o),r.interleaved=o,Dn(e,a)}function Dn(e,r){e.lanes|=r;var o=e.alternate;for(o!==null&&(o.lanes|=r),o=e,e=e.return;e!==null;)e.childLanes|=r,o=e.alternate,o!==null&&(o.childLanes|=r),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ar=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yp(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function In(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function lr(e,r,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var f=a.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),a.pending=r,Dn(e,o)}return f=a.interleaved,f===null?(r.next=r,Zl(a)):(r.next=f.next,f.next=r),a.interleaved=r,Dn(e,o)}function Is(e,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var a=r.lanes;a&=e.pendingLanes,o|=a,r.lanes=o,hl(e,o)}}function Jp(e,r){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var f=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};p===null?f=p=v:p=p.next=v,o=o.next}while(o!==null);p===null?f=p=r:p=p.next=r}else f=p=r;o={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=r:e.next=r,o.lastBaseUpdate=r}function Ls(e,r,o,a){var f=e.updateQueue;ar=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var R=C,B=R.next;R.next=null,v===null?p=B:v.next=B,v=R;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,C=Q.lastBaseUpdate,C!==v&&(C===null?Q.firstBaseUpdate=B:C.next=B,Q.lastBaseUpdate=R))}if(p!==null){var X=f.baseState;v=0,Q=B=R=null,C=p;do{var G=C.lane,ie=C.eventTime;if((a&G)===G){Q!==null&&(Q=Q.next={eventTime:ie,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ae=e,ue=C;switch(G=r,ie=o,ue.tag){case 1:if(ae=ue.payload,typeof ae=="function"){X=ae.call(ie,X,G);break e}X=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ue.payload,G=typeof ae=="function"?ae.call(ie,X,G):ae,G==null)break e;X=M({},X,G);break e;case 2:ar=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,G=f.effects,G===null?f.effects=[C]:G.push(C))}else ie={eventTime:ie,lane:G,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Q===null?(B=Q=ie,R=X):Q=Q.next=ie,v|=G;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;G=C,C=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);if(Q===null&&(R=X),f.baseState=R,f.firstBaseUpdate=B,f.lastBaseUpdate=Q,r=f.shared.interleaved,r!==null){f=r;do v|=f.lane,f=f.next;while(f!==r)}else p===null&&(f.shared.lanes=0);Fr|=v,e.lanes=v,e.memoizedState=X}}function Zp(e,r,o){if(e=r.effects,r.effects=null,e!==null)for(r=0;ro?o:4,e(!0);var a=ou.transition;ou.transition={};try{e(!1),r()}finally{Me=o,ou.transition=a}}function vh(){return qt().memoizedState}function iw(e,r,o){var a=dr(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},xh(e))wh(r,o);else if(o=Xp(e,r,o,a),o!==null){var f=Tt();ln(o,e,a,f),Sh(o,r,a)}}function ow(e,r,o){var a=dr(e),f={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(xh(e))wh(r,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var v=r.lastRenderedState,C=p(v,o);if(f.hasEagerState=!0,f.eagerState=C,nn(C,v)){var R=r.interleaved;R===null?(f.next=f,Zl(r)):(f.next=R.next,R.next=f),r.interleaved=f;return}}catch{}finally{}o=Xp(e,r,f,a),o!==null&&(f=Tt(),ln(o,e,a,f),Sh(o,r,a))}}function xh(e){var r=e.alternate;return e===$e||r!==null&&r===$e}function wh(e,r){yo=zs=!0;var o=e.pending;o===null?r.next=r:(r.next=o.next,o.next=r),e.pending=r}function Sh(e,r,o){if((o&4194240)!==0){var a=r.lanes;a&=e.pendingLanes,o|=a,r.lanes=o,hl(e,o)}}var Ws={readContext:Ht,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},sw={readContext:Ht,useCallback:function(e,r){return Sn().memoizedState=[e,r===void 0?null:r],e},useContext:Ht,useEffect:ch,useImperativeHandle:function(e,r,o){return o=o!=null?o.concat([e]):null,Us(4194308,4,ph.bind(null,r,e),o)},useLayoutEffect:function(e,r){return Us(4194308,4,e,r)},useInsertionEffect:function(e,r){return Us(4,2,e,r)},useMemo:function(e,r){var o=Sn();return r=r===void 0?null:r,e=e(),o.memoizedState=[e,r],e},useReducer:function(e,r,o){var a=Sn();return r=o!==void 0?o(r):r,a.memoizedState=a.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=iw.bind(null,$e,e),[a.memoizedState,e]},useRef:function(e){var r=Sn();return e={current:e},r.memoizedState=e},useState:lh,useDebugValue:du,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=lh(!1),r=e[0];return e=rw.bind(null,e[1]),Sn().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,o){var a=$e,f=Sn();if(Be){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),lt===null)throw Error(i(349));(Rr&30)!==0||rh(a,r,o)}f.memoizedState=o;var p={value:o,getSnapshot:r};return f.queue=p,ch(oh.bind(null,a,p,e),[e]),a.flags|=2048,xo(9,ih.bind(null,a,p,o,r),void 0,null),o},useId:function(){var e=Sn(),r=lt.identifierPrefix;if(Be){var o=jn,a=Mn;o=(a&~(1<<32-tn(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=v.createElement(o,{is:a.is}):(e=v.createElement(o),o==="select"&&(v=e,a.multiple?v.multiple=!0:a.size&&(v.size=a.size))):e=v.createElementNS(e,o),e[xn]=r,e[uo]=a,zh(e,r,!1,!1),r.stateNode=e;e:{switch(v=z(o,a),o){case"dialog":Ie("cancel",e),Ie("close",e),f=a;break;case"iframe":case"object":case"embed":Ie("load",e),f=a;break;case"video":case"audio":for(f=0;fvi&&(r.flags|=128,a=!0,wo(p,!1),r.lanes=4194304)}else{if(!a)if(e=Vs(v),e!==null){if(r.flags|=128,a=!0,o=e.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),wo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Be)return yt(r),null}else 2*Ke()-p.renderingStartTime>vi&&o!==1073741824&&(r.flags|=128,a=!0,wo(p,!1),r.lanes=4194304);p.isBackwards?(v.sibling=r.child,r.child=v):(o=p.last,o!==null?o.sibling=v:r.child=v,p.last=v)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Ke(),r.sibling=null,o=Ue.current,De(Ue,a?o&1|2:o&1),r):(yt(r),null);case 22:case 23:return Du(),a=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(zt&1073741824)!==0&&(yt(r),r.subtreeFlags&6&&(r.flags|=8192)):yt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function hw(e,r){switch(Hl(r),r.tag){case 1:return Rt(r.type)&&_s(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return hi(),Le(Nt),Le(ht),iu(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 5:return nu(r),null;case 13:if(Le(Ue),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(i(340));ci()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Le(Ue),null;case 4:return hi(),null;case 10:return Yl(r.type._context),null;case 22:case 23:return Du(),null;case 24:return null;default:return null}}var Gs=!1,gt=!1,mw=typeof WeakSet=="function"?WeakSet:Set,se=null;function yi(e,r){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(e,r,a)}else o.current=null}function Pu(e,r,o){try{o()}catch(a){He(e,r,a)}}var Wh=!1;function yw(e,r){if(Dl=hs,e=Ep(),_l(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var f=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var v=0,C=-1,R=-1,B=0,Q=0,X=e,G=null;t:for(;;){for(var ie;X!==o||f!==0&&X.nodeType!==3||(C=v+f),X!==p||a!==0&&X.nodeType!==3||(R=v+a),X.nodeType===3&&(v+=X.nodeValue.length),(ie=X.firstChild)!==null;)G=X,X=ie;for(;;){if(X===e)break t;if(G===o&&++B===f&&(C=v),G===p&&++Q===a&&(R=v),(ie=X.nextSibling)!==null)break;X=G,G=X.parentNode}X=ie}o=C===-1||R===-1?null:{start:C,end:R}}else o=null}o=o||{start:0,end:0}}else o=null;for(Il={focusedElem:e,selectionRange:o},hs=!1,se=r;se!==null;)if(r=se,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,se=e;else for(;se!==null;){r=se;try{var ae=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ue=ae.memoizedProps,Ge=ae.memoizedState,j=r.stateNode,F=j.getSnapshotBeforeUpdate(r.elementType===r.type?ue:on(r.type,ue),Ge);j.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var L=r.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Y){He(r,r.return,Y)}if(e=r.sibling,e!==null){e.return=r.return,se=e;break}se=r.return}return ae=Wh,Wh=!1,ae}function So(e,r,o){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&Pu(r,o,p)}f=f.next}while(f!==a)}}function Qs(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==r)}}function Tu(e){var r=e.ref;if(r!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof r=="function"?r(e):r.current=e}}function Hh(e){var r=e.alternate;r!==null&&(e.alternate=null,Hh(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[xn],delete r[uo],delete r[zl],delete r[Jx],delete r[Zx])),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 qh(e){return e.tag===5||e.tag===3||e.tag===4}function Kh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qh(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 Cu(e,r,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(e,r):o.insertBefore(e,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(e,o)):(r=o,r.appendChild(e)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Cs));else if(a!==4&&(e=e.child,e!==null))for(Cu(e,r,o),e=e.sibling;e!==null;)Cu(e,r,o),e=e.sibling}function Au(e,r,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,r?o.insertBefore(e,r):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Au(e,r,o),e=e.sibling;e!==null;)Au(e,r,o),e=e.sibling}var ct=null,sn=!1;function ur(e,r,o){for(o=o.child;o!==null;)Gh(e,r,o),o=o.sibling}function Gh(e,r,o){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(ls,o)}catch{}switch(o.tag){case 5:gt||yi(o,r);case 6:var a=ct,f=sn;ct=null,ur(e,r,o),ct=a,sn=f,ct!==null&&(sn?(e=ct,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ct.removeChild(o.stateNode));break;case 18:ct!==null&&(sn?(e=ct,o=o.stateNode,e.nodeType===8?Bl(e.parentNode,o):e.nodeType===1&&Bl(e,o),Ji(e)):Bl(ct,o.stateNode));break;case 4:a=ct,f=sn,ct=o.stateNode.containerInfo,sn=!0,ur(e,r,o),ct=a,sn=f;break;case 0:case 11:case 14:case 15:if(!gt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){f=a=a.next;do{var p=f,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&Pu(o,r,v),f=f.next}while(f!==a)}ur(e,r,o);break;case 1:if(!gt&&(yi(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,r,C)}ur(e,r,o);break;case 21:ur(e,r,o);break;case 22:o.mode&1?(gt=(a=gt)||o.memoizedState!==null,ur(e,r,o),gt=a):ur(e,r,o);break;default:ur(e,r,o)}}function Qh(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new mw),r.forEach(function(a){var f=Tw.bind(null,e,a);o.has(a)||(o.add(a),a.then(f,f))})}}function an(e,r){var o=r.deletions;if(o!==null)for(var a=0;af&&(f=v),a&=~p}if(a=f,a=Ke()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*vw(a/1960))-a,10e?16:e,fr===null)var a=!1;else{if(e=fr,fr=null,ea=0,(Ne&6)!==0)throw Error(i(331));var f=Ne;for(Ne|=4,se=e.current;se!==null;){var p=se,v=p.child;if((se.flags&16)!==0){var C=p.deletions;if(C!==null){for(var R=0;RKe()-Ru?Or(e,0):Nu|=o),Ot(e,r)}function lm(e,r){r===0&&((e.mode&1)===0?r=1:(r=cs,cs<<=1,(cs&130023424)===0&&(cs=4194304)));var o=Tt();e=Dn(e,r),e!==null&&(Ki(e,r,o),Ot(e,o))}function Pw(e){var r=e.memoizedState,o=0;r!==null&&(o=r.retryLane),lm(e,o)}function Tw(e,r){var o=0;switch(e.tag){case 13:var a=e.stateNode,f=e.memoizedState;f!==null&&(o=f.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),lm(e,o)}var um;um=function(e,r,o){if(e!==null)if(e.memoizedProps!==r.pendingProps||Nt.current)Ft=!0;else{if((e.lanes&o)===0&&(r.flags&128)===0)return Ft=!1,dw(e,r,o);Ft=(e.flags&131072)!==0}else Ft=!1,Be&&(r.flags&1048576)!==0&&Up(r,bs,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Ks(e,r),e=r.pendingProps;var f=ai(r,ht.current);pi(r,o),f=au(null,r,a,e,f,o);var p=lu();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Rt(a)?(p=!0,Ns(r)):p=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,eu(r),f.updater=Hs,r.stateNode=f,f._reactInternals=r,hu(r,a,e,o),r=vu(null,r,a,!0,p,o)):(r.tag=0,Be&&p&&Wl(r),Pt(null,r,f,o),r=r.child),r;case 16:a=r.elementType;e:{switch(Ks(e,r),e=r.pendingProps,f=a._init,a=f(a._payload),r.type=a,f=r.tag=Aw(a),e=on(a,e),f){case 0:r=gu(null,r,a,e,o);break e;case 1:r=jh(null,r,a,e,o);break e;case 11:r=Rh(null,r,a,e,o);break e;case 14:r=Fh(null,r,a,on(a.type,e),o);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:on(a,f),gu(e,r,a,f,o);case 1:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:on(a,f),jh(e,r,a,f,o);case 3:e:{if(Dh(r),e===null)throw Error(i(387));a=r.pendingProps,p=r.memoizedState,f=p.element,Yp(e,r),Ls(r,a,null,o);var v=r.memoizedState;if(a=v.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){f=mi(Error(i(423)),r),r=Ih(e,r,a,o,f);break e}else if(a!==f){f=mi(Error(i(424)),r),r=Ih(e,r,a,o,f);break e}else for(Bt=rr(r.stateNode.containerInfo.firstChild),Vt=r,Be=!0,rn=null,o=Qp(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ci(),a===f){r=Ln(e,r,o);break e}Pt(e,r,a,o)}r=r.child}return r;case 5:return eh(r),e===null&&Kl(r),a=r.type,f=r.pendingProps,p=e!==null?e.memoizedProps:null,v=f.children,Ll(a,f)?v=null:p!==null&&Ll(a,p)&&(r.flags|=32),Mh(e,r),Pt(e,r,v,o),r.child;case 6:return e===null&&Kl(r),null;case 13:return Lh(e,r,o);case 4:return tu(r,r.stateNode.containerInfo),a=r.pendingProps,e===null?r.child=fi(r,null,a,o):Pt(e,r,a,o),r.child;case 11:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:on(a,f),Rh(e,r,a,f,o);case 7:return Pt(e,r,r.pendingProps,o),r.child;case 8:return Pt(e,r,r.pendingProps.children,o),r.child;case 12:return Pt(e,r,r.pendingProps.children,o),r.child;case 10:e:{if(a=r.type._context,f=r.pendingProps,p=r.memoizedProps,v=f.value,De(js,a._currentValue),a._currentValue=v,p!==null)if(nn(p.value,v)){if(p.children===f.children&&!Nt.current){r=Ln(e,r,o);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var C=p.dependencies;if(C!==null){v=p.child;for(var R=C.firstContext;R!==null;){if(R.context===a){if(p.tag===1){R=In(-1,o&-o),R.tag=2;var B=p.updateQueue;if(B!==null){B=B.shared;var Q=B.pending;Q===null?R.next=R:(R.next=Q.next,Q.next=R),B.pending=R}}p.lanes|=o,R=p.alternate,R!==null&&(R.lanes|=o),Jl(p.return,o,r),C.lanes|=o;break}R=R.next}}else if(p.tag===10)v=p.type===r.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(i(341));v.lanes|=o,C=v.alternate,C!==null&&(C.lanes|=o),Jl(v,o,r),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===r){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}Pt(e,r,f.children,o),r=r.child}return r;case 9:return f=r.type,a=r.pendingProps.children,pi(r,o),f=Ht(f),a=a(f),r.flags|=1,Pt(e,r,a,o),r.child;case 14:return a=r.type,f=on(a,r.pendingProps),f=on(a.type,f),Fh(e,r,a,f,o);case 15:return bh(e,r,r.type,r.pendingProps,o);case 17:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:on(a,f),Ks(e,r),r.tag=1,Rt(a)?(e=!0,Ns(r)):e=!1,pi(r,o),kh(r,a,f),hu(r,a,f,o),vu(null,r,a,!0,e,o);case 19:return Bh(e,r,o);case 22:return Oh(e,r,o)}throw Error(i(156,r.tag))};function cm(e,r){return ss(e,r)}function Cw(e,r,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,r,o,a){return new Cw(e,r,o,a)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Aw(e){if(typeof e=="function")return Lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===_e)return 14}return 2}function hr(e,r){var o=e.alternate;return o===null?(o=Gt(e.tag,r,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=r,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,r=e.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ia(e,r,o,a,f,p){var v=2;if(a=e,typeof e=="function")Lu(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case H:return jr(o.children,f,p,r);case D:v=8,f|=8;break;case ne:return e=Gt(12,o,r,f|2),e.elementType=ne,e.lanes=p,e;case Se:return e=Gt(13,o,r,f),e.elementType=Se,e.lanes=p,e;case ge:return e=Gt(19,o,r,f),e.elementType=ge,e.lanes=p,e;case le:return oa(o,f,p,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:v=10;break e;case he:v=9;break e;case re:v=11;break e;case _e:v=14;break e;case Pe:v=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return r=Gt(v,o,r,f),r.elementType=e,r.type=a,r.lanes=p,r}function jr(e,r,o,a){return e=Gt(7,e,a,r),e.lanes=o,e}function oa(e,r,o,a){return e=Gt(22,e,a,r),e.elementType=le,e.lanes=o,e.stateNode={isHidden:!1},e}function Vu(e,r,o){return e=Gt(6,e,null,r),e.lanes=o,e}function Bu(e,r,o){return r=Gt(4,e.children!==null?e.children:[],e.key,r),r.lanes=o,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function _w(e,r,o,a,f){this.tag=r,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=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.identifierPrefix=a,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function zu(e,r,o,a,f,p,v,C,R){return e=new _w(e,r,o,C,R),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Gt(3,null,null,r),e.current=p,p.stateNode=e,p.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(p),e}function Nw(e,r,o){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Ku.exports=zw(),Ku.exports}var Tm;function $w(){if(Tm)return da;Tm=1;var t=Uw();return da.createRoot=t.createRoot,da.hydrateRoot=t.hydrateRoot,da}var Ww=$w(),K=Yf();const pa=Xf(K),Jf=K.createContext({});function Zf(t){const n=K.useRef(null);return n.current===null&&(n.current=t()),n.current}const ed=typeof window<"u",f0=ed?K.useLayoutEffect:K.useEffect,Wa=K.createContext(null);function td(t,n){t.indexOf(n)===-1&&t.push(n)}function nd(t,n){const i=t.indexOf(n);i>-1&&t.splice(i,1)}const Un=(t,n,i)=>i>n?n:i{};const $n={},d0=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function p0(t){return typeof t=="object"&&t!==null}const h0=t=>/^0[^.\s]+$/u.test(t);function id(t){let n;return()=>(n===void 0&&(n=t()),n)}const Yt=t=>t,Hw=(t,n)=>i=>n(t(i)),$o=(...t)=>t.reduce(Hw),Mo=(t,n,i)=>{const s=n-t;return s===0?1:(i-t)/s};class od{constructor(){this.subscriptions=[]}add(n){return td(this.subscriptions,n),()=>nd(this.subscriptions,n)}notify(n,i,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](n,i,s);else for(let c=0;ct*1e3,Xt=t=>t/1e3;function m0(t,n){return n?t*(1e3/n):0}const y0=(t,n,i)=>(((1-3*i+3*n)*t+(3*i-6*n))*t+3*n)*t,qw=1e-7,Kw=12;function Gw(t,n,i,s,l){let c,u,d=0;do u=n+(i-n)/2,c=y0(u,s,l)-t,c>0?i=u:n=u;while(Math.abs(c)>qw&&++dGw(c,0,1,t,i);return c=>c===0||c===1?c:y0(l(c),n,s)}const g0=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,v0=t=>n=>1-t(1-n),x0=Wo(.33,1.53,.69,.99),sd=v0(x0),w0=g0(sd),S0=t=>(t*=2)<1?.5*sd(t):.5*(2-Math.pow(2,-10*(t-1))),ad=t=>1-Math.sin(Math.acos(t)),E0=v0(ad),k0=g0(ad),Qw=Wo(.42,0,1,1),Xw=Wo(0,0,.58,1),P0=Wo(.42,0,.58,1),Yw=t=>Array.isArray(t)&&typeof t[0]!="number",T0=t=>Array.isArray(t)&&typeof t[0]=="number",Jw={linear:Yt,easeIn:Qw,easeInOut:P0,easeOut:Xw,circIn:ad,circInOut:k0,circOut:E0,backIn:sd,backInOut:w0,backOut:x0,anticipate:S0},Zw=t=>typeof t=="string",Cm=t=>{if(T0(t)){rd(t.length===4);const[n,i,s,l]=t;return Wo(n,i,s,l)}else if(Zw(t))return Jw[t];return t},ha=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eS(t,n){let i=new Set,s=new Set,l=!1,c=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function m(h){u.has(h)&&(y.schedule(h),t()),h(d)}const y={schedule:(h,x=!1,w=!1)=>{const k=w&&l?i:s;return x&&u.add(h),k.has(h)||k.add(h),h},cancel:h=>{s.delete(h),u.delete(h)},process:h=>{if(d=h,l){c=!0;return}l=!0,[i,s]=[s,i],i.forEach(m),i.clear(),l=!1,c&&(c=!1,y.process(h))}};return y}const tS=40;function C0(t,n){let i=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,u=ha.reduce((b,I)=>(b[I]=eS(c),b),{}),{setup:d,read:m,resolveKeyframes:y,preUpdate:h,update:x,preRender:w,render:P,postRender:k}=u,T=()=>{const b=$n.useManualTiming?l.timestamp:performance.now();i=!1,$n.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(b-l.timestamp,tS),1)),l.timestamp=b,l.isProcessing=!0,d.process(l),m.process(l),y.process(l),h.process(l),x.process(l),w.process(l),P.process(l),k.process(l),l.isProcessing=!1,i&&n&&(s=!1,t(T))},S=()=>{i=!0,s=!0,l.isProcessing||t(T)};return{schedule:ha.reduce((b,I)=>{const W=u[I];return b[I]=(q,H=!1,D=!1)=>(i||S(),W.schedule(q,H,D)),b},{}),cancel:b=>{for(let I=0;I(Sa===void 0&&jt.set(dt.isProcessing||$n.useManualTiming?dt.timestamp:performance.now()),Sa),set:t=>{Sa=t,queueMicrotask(nS)}},A0=t=>n=>typeof n=="string"&&n.startsWith(t),_0=A0("--"),rS=A0("var(--"),ld=t=>rS(t)?iS.test(t.split("/*")[0].trim()):!1,iS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jo={...Oi,transform:t=>Un(0,1,t)},ma={...Oi,default:1},Ro=t=>Math.round(t*1e5)/1e5,ud=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oS(t){return t==null}const sS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cd=(t,n)=>i=>!!(typeof i=="string"&&sS.test(i)&&i.startsWith(t)||n&&!oS(i)&&Object.prototype.hasOwnProperty.call(i,n)),N0=(t,n,i)=>s=>{if(typeof s!="string")return s;const[l,c,u,d]=s.match(ud);return{[t]:parseFloat(l),[n]:parseFloat(c),[i]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},aS=t=>Un(0,255,t),Yu={...Oi,transform:t=>Math.round(aS(t))},Lr={test:cd("rgb","red"),parse:N0("red","green","blue"),transform:({red:t,green:n,blue:i,alpha:s=1})=>"rgba("+Yu.transform(t)+", "+Yu.transform(n)+", "+Yu.transform(i)+", "+Ro(jo.transform(s))+")"};function lS(t){let n="",i="",s="",l="";return t.length>5?(n=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),l=t.substring(7,9)):(n=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),l=t.substring(4,5),n+=n,i+=i,s+=s,l+=l),{red:parseInt(n,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const df={test:cd("#"),parse:lS,transform:Lr.transform},Ho=t=>({test:n=>typeof n=="string"&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),yr=Ho("deg"),Cn=Ho("%"),ye=Ho("px"),uS=Ho("vh"),cS=Ho("vw"),Am={...Cn,parse:t=>Cn.parse(t)/100,transform:t=>Cn.transform(t*100)},Si={test:cd("hsl","hue"),parse:N0("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+Cn.transform(Ro(n))+", "+Cn.transform(Ro(i))+", "+Ro(jo.transform(s))+")"},Je={test:t=>Lr.test(t)||df.test(t)||Si.test(t),parse:t=>Lr.test(t)?Lr.parse(t):Si.test(t)?Si.parse(t):df.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Lr.transform(t):Si.transform(t),getAnimatableNone:t=>{const n=Je.parse(t);return n.alpha=0,Je.transform(n)}},fS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dS(t){var n,i;return isNaN(t)&&typeof t=="string"&&(((n=t.match(ud))==null?void 0:n.length)||0)+(((i=t.match(fS))==null?void 0:i.length)||0)>0}const R0="number",F0="color",pS="var",hS="var(",_m="${}",mS=/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 Do(t){const n=t.toString(),i=[],s={color:[],number:[],var:[]},l=[];let c=0;const d=n.replace(mS,m=>(Je.test(m)?(s.color.push(c),l.push(F0),i.push(Je.parse(m))):m.startsWith(hS)?(s.var.push(c),l.push(pS),i.push(m)):(s.number.push(c),l.push(R0),i.push(parseFloat(m))),++c,_m)).split(_m);return{values:i,split:d,indexes:s,types:l}}function b0(t){return Do(t).values}function O0(t){const{split:n,types:i}=Do(t),s=n.length;return l=>{let c="";for(let u=0;utypeof t=="number"?0:Je.test(t)?Je.getAnimatableNone(t):t;function gS(t){const n=b0(t);return O0(t)(n.map(yS))}const xr={test:dS,parse:b0,createTransformer:O0,getAnimatableNone:gS};function Ju(t,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(n-t)*6*i:i<1/2?n:i<2/3?t+(n-t)*(2/3-i)*6:t}function vS({hue:t,saturation:n,lightness:i,alpha:s}){t/=360,n/=100,i/=100;let l=0,c=0,u=0;if(!n)l=c=u=i;else{const d=i<.5?i*(1+n):i+n-i*n,m=2*i-d;l=Ju(m,d,t+1/3),c=Ju(m,d,t),u=Ju(m,d,t-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Fa(t,n){return i=>i>0?n:t}const We=(t,n,i)=>t+(n-t)*i,Zu=(t,n,i)=>{const s=t*t,l=i*(n*n-s)+s;return l<0?0:Math.sqrt(l)},xS=[df,Lr,Si],wS=t=>xS.find(n=>n.test(t));function Nm(t){const n=wS(t);if(!n)return!1;let i=n.parse(t);return n===Si&&(i=vS(i)),i}const Rm=(t,n)=>{const i=Nm(t),s=Nm(n);if(!i||!s)return Fa(t,n);const l={...i};return c=>(l.red=Zu(i.red,s.red,c),l.green=Zu(i.green,s.green,c),l.blue=Zu(i.blue,s.blue,c),l.alpha=We(i.alpha,s.alpha,c),Lr.transform(l))},pf=new Set(["none","hidden"]);function SS(t,n){return pf.has(t)?i=>i<=0?t:n:i=>i>=1?n:t}function ES(t,n){return i=>We(t,n,i)}function fd(t){return typeof t=="number"?ES:typeof t=="string"?ld(t)?Fa:Je.test(t)?Rm:TS:Array.isArray(t)?M0:typeof t=="object"?Je.test(t)?Rm:kS:Fa}function M0(t,n){const i=[...t],s=i.length,l=t.map((c,u)=>fd(c)(c,n[u]));return c=>{for(let u=0;u{for(const c in s)i[c]=s[c](l);return i}}function PS(t,n){const i=[],s={color:0,var:0,number:0};for(let l=0;l{const i=xr.createTransformer(n),s=Do(t),l=Do(n);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?pf.has(t)&&!l.values.length||pf.has(n)&&!s.values.length?SS(t,n):$o(M0(PS(s,l),l.values),i):Fa(t,n)};function j0(t,n,i){return typeof t=="number"&&typeof n=="number"&&typeof i=="number"?We(t,n,i):fd(t)(t,n)}const CS=t=>{const n=({timestamp:i})=>t(i);return{start:(i=!0)=>ze.update(n,i),stop:()=>vr(n),now:()=>dt.isProcessing?dt.timestamp:jt.now()}},D0=(t,n,i=10)=>{let s="";const l=Math.max(Math.round(n/i),2);for(let c=0;c=ba?1/0:n}function AS(t,n=100,i){const s=i({...t,keyframes:[0,n]}),l=Math.min(dd(s),ba);return{type:"keyframes",ease:c=>s.next(l*c).value/n,duration:Xt(l)}}const _S=5;function I0(t,n,i){const s=Math.max(n-_S,0);return m0(i-t(s),n-s)}const qe={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},ec=.001;function NS({duration:t=qe.duration,bounce:n=qe.bounce,velocity:i=qe.velocity,mass:s=qe.mass}){let l,c,u=1-n;u=Un(qe.minDamping,qe.maxDamping,u),t=Un(qe.minDuration,qe.maxDuration,Xt(t)),u<1?(l=y=>{const h=y*u,x=h*t,w=h-i,P=hf(y,u),k=Math.exp(-x);return ec-w/P*k},c=y=>{const x=y*u*t,w=x*i+i,P=Math.pow(u,2)*Math.pow(y,2)*t,k=Math.exp(-x),T=hf(Math.pow(y,2),u);return(-l(y)+ec>0?-1:1)*((w-P)*k)/T}):(l=y=>{const h=Math.exp(-y*t),x=(y-i)*t+1;return-ec+h*x},c=y=>{const h=Math.exp(-y*t),x=(i-y)*(t*t);return h*x});const d=5/t,m=FS(l,c,d);if(t=Tn(t),isNaN(m))return{stiffness:qe.stiffness,damping:qe.damping,duration:t};{const y=Math.pow(m,2)*s;return{stiffness:y,damping:u*2*Math.sqrt(s*y),duration:t}}}const RS=12;function FS(t,n,i){let s=i;for(let l=1;lt[i]!==void 0)}function MS(t){let n={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...t};if(!Fm(t,OS)&&Fm(t,bS))if(t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),l=s*s,c=2*Un(.05,1,1-(t.bounce||0))*Math.sqrt(l);n={...n,mass:qe.mass,stiffness:l,damping:c}}else{const i=NS(t);n={...n,...i,mass:qe.mass},n.isResolvedFromDuration=!0}return n}function Oa(t=qe.visualDuration,n=qe.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:n}:t;let{restSpeed:s,restDelta:l}=i;const c=i.keyframes[0],u=i.keyframes[i.keyframes.length-1],d={done:!1,value:c},{stiffness:m,damping:y,mass:h,duration:x,velocity:w,isResolvedFromDuration:P}=MS({...i,velocity:-Xt(i.velocity||0)}),k=w||0,T=y/(2*Math.sqrt(m*h)),S=u-c,_=Xt(Math.sqrt(m/h)),N=Math.abs(S)<5;s||(s=N?qe.restSpeed.granular:qe.restSpeed.default),l||(l=N?qe.restDelta.granular:qe.restDelta.default);let b;if(T<1){const W=hf(_,T);b=q=>{const H=Math.exp(-T*_*q);return u-H*((k+T*_*S)/W*Math.sin(W*q)+S*Math.cos(W*q))}}else if(T===1)b=W=>u-Math.exp(-_*W)*(S+(k+_*S)*W);else{const W=_*Math.sqrt(T*T-1);b=q=>{const H=Math.exp(-T*_*q),D=Math.min(W*q,300);return u-H*((k+T*_*S)*Math.sinh(D)+W*S*Math.cosh(D))/W}}const I={calculatedDuration:P&&x||null,next:W=>{const q=b(W);if(P)d.done=W>=x;else{let H=W===0?k:0;T<1&&(H=W===0?Tn(k):I0(b,W,q));const D=Math.abs(H)<=s,ne=Math.abs(u-q)<=l;d.done=D&&ne}return d.value=d.done?u:q,d},toString:()=>{const W=Math.min(dd(I),ba),q=D0(H=>I.next(W*H).value,W,30);return W+"ms "+q},toTransition:()=>{}};return I}Oa.applyToOptions=t=>{const n=AS(t,100,Oa);return t.ease=n.ease,t.duration=Tn(n.duration),t.type="keyframes",t};function mf({keyframes:t,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:u,min:d,max:m,restDelta:y=.5,restSpeed:h}){const x=t[0],w={done:!1,value:x},P=D=>d!==void 0&&Dm,k=D=>d===void 0?m:m===void 0||Math.abs(d-D)-T*Math.exp(-D/s),b=D=>_+N(D),I=D=>{const ne=N(D),te=b(D);w.done=Math.abs(ne)<=y,w.value=w.done?_:te};let W,q;const H=D=>{P(w.value)&&(W=D,q=Oa({keyframes:[w.value,k(w.value)],velocity:I0(b,D,w.value),damping:l,stiffness:c,restDelta:y,restSpeed:h}))};return H(0),{calculatedDuration:null,next:D=>{let ne=!1;return!q&&W===void 0&&(ne=!0,I(D),H(D)),W!==void 0&&D>=W?q.next(D-W):(!ne&&I(D),w)}}}function jS(t,n,i){const s=[],l=i||$n.mix||j0,c=t.length-1;for(let u=0;un[0];if(c===2&&n[0]===n[1])return()=>n[1];const u=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),n=[...n].reverse());const d=jS(n,s,l),m=d.length,y=h=>{if(u&&h1)for(;xy(Un(t[0],t[c-1],h)):y}function IS(t,n){const i=t[t.length-1];for(let s=1;s<=n;s++){const l=Mo(0,n,s);t.push(We(i,1,l))}}function LS(t){const n=[0];return IS(n,t.length-1),n}function VS(t,n){return t.map(i=>i*n)}function BS(t,n){return t.map(()=>n||P0).splice(0,t.length-1)}function Fo({duration:t=300,keyframes:n,times:i,ease:s="easeInOut"}){const l=Yw(s)?s.map(Cm):Cm(s),c={done:!1,value:n[0]},u=VS(i&&i.length===n.length?i:LS(n),t),d=DS(u,n,{ease:Array.isArray(l)?l:BS(n,l)});return{calculatedDuration:t,next:m=>(c.value=d(m),c.done=m>=t,c)}}const zS=t=>t!==null;function pd(t,{repeat:n,repeatType:i="loop"},s,l=1){const c=t.filter(zS),d=l<0||n&&i!=="loop"&&n%2===1?0:c.length-1;return!d||s===void 0?c[d]:s}const US={decay:mf,inertia:mf,tween:Fo,keyframes:Fo,spring:Oa};function L0(t){typeof t.type=="string"&&(t.type=US[t.type])}class hd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,i){return this.finished.then(n,i)}}const $S=t=>t/100;class md extends hd{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,l;const{motionValue:i}=this.options;i&&i.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(l=(s=this.options).onStop)==null||l.call(s))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;L0(n);const{type:i=Fo,repeat:s=0,repeatDelay:l=0,repeatType:c,velocity:u=0}=n;let{keyframes:d}=n;const m=i||Fo;m!==Fo&&typeof d[0]!="number"&&(this.mixKeyframes=$o($S,j0(d[0],d[1])),d=[0,100]);const y=m({...n,keyframes:d});c==="mirror"&&(this.mirroredGenerator=m({...n,keyframes:[...d].reverse(),velocity:-u})),y.calculatedDuration===null&&(y.calculatedDuration=dd(y));const{calculatedDuration:h}=y;this.calculatedDuration=h,this.resolvedDuration=h+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=y}updateTime(n){const i=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(n,i=!1){const{generator:s,totalDuration:l,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:y=0,keyframes:h,repeat:x,repeatType:w,repeatDelay:P,type:k,onUpdate:T,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-l/this.speed,this.startTime)),i?this.currentTime=n:this.updateTime(n);const _=this.currentTime-y*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?_<0:_>l;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let b=this.currentTime,I=s;if(x){const D=Math.min(this.currentTime,l)/d;let ne=Math.floor(D),te=D%1;!te&&D>=1&&(te=1),te===1&&ne--,ne=Math.min(ne,x+1),!!(ne%2)&&(w==="reverse"?(te=1-te,P&&(te-=P/d)):w==="mirror"&&(I=u)),b=Un(0,1,te)*d}const W=N?{done:!1,value:h[0]}:I.next(b);c&&(W.value=c(W.value));let{done:q}=W;!N&&m!==null&&(q=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&q);return H&&k!==mf&&(W.value=pd(h,this.options,S,this.speed)),T&&T(W.value),H&&this.finish(),W}then(n,i){return this.finished.then(n,i)}get duration(){return Xt(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Xt(n)}get time(){return Xt(this.currentTime)}set time(n){var i;n=Tn(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(jt.now());const i=this.playbackSpeed!==n;this.playbackSpeed=n,i&&(this.time=Xt(this.currentTime))}play(){var l,c;if(this.isStopped)return;const{driver:n=CS,startTime:i}=this.options;this.driver||(this.driver=n(u=>this.tick(u))),(c=(l=this.options).onPlay)==null||c.call(l);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(jt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(n=this.options).onComplete)==null||i.call(n)}cancel(){var n,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(n=this.options).onCancel)==null||i.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),n.observe(this)}}function WS(t){for(let n=1;nt*180/Math.PI,yf=t=>{const n=Vr(Math.atan2(t[1],t[0]));return gf(n)},HS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:yf,rotateZ:yf,skewX:t=>Vr(Math.atan(t[1])),skewY:t=>Vr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},gf=t=>(t=t%360,t<0&&(t+=360),t),bm=yf,Om=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Mm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),qS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Om,scaleY:Mm,scale:t=>(Om(t)+Mm(t))/2,rotateX:t=>gf(Vr(Math.atan2(t[6],t[5]))),rotateY:t=>gf(Vr(Math.atan2(-t[2],t[0]))),rotateZ:bm,rotate:bm,skewX:t=>Vr(Math.atan(t[4])),skewY:t=>Vr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function vf(t){return t.includes("scale")?1:0}function xf(t,n){if(!t||t==="none")return vf(n);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(i)s=qS,l=i;else{const d=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=HS,l=d}if(!l)return vf(n);const c=s[n],u=l[1].split(",").map(GS);return typeof c=="function"?c(u):u[c]}const KS=(t,n)=>{const{transform:i="none"}=getComputedStyle(t);return xf(i,n)};function GS(t){return parseFloat(t.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ji=new Set(Mi),jm=t=>t===Oi||t===ye,QS=new Set(["x","y","z"]),XS=Mi.filter(t=>!QS.has(t));function YS(t){const n=[];return XS.forEach(i=>{const s=t.getValue(i);s!==void 0&&(n.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),n}const zr={width:({x:t},{paddingLeft:n="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(n)-parseFloat(i),height:({y:t},{paddingTop:n="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(n)-parseFloat(i),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:(t,{transform:n})=>xf(n,"x"),y:(t,{transform:n})=>xf(n,"y")};zr.translateX=zr.x;zr.translateY=zr.y;const Ur=new Set;let wf=!1,Sf=!1,Ef=!1;function V0(){if(Sf){const t=Array.from(Ur).filter(s=>s.needsMeasurement),n=new Set(t.map(s=>s.element)),i=new Map;n.forEach(s=>{const l=YS(s);l.length&&(i.set(s,l),s.render())}),t.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const l=i.get(s);l&&l.forEach(([c,u])=>{var d;(d=s.getValue(c))==null||d.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Sf=!1,wf=!1,Ur.forEach(t=>t.complete(Ef)),Ur.clear()}function B0(){Ur.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Sf=!0)})}function JS(){Ef=!0,B0(),V0(),Ef=!1}class yd{constructor(n,i,s,l,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=i,this.name=s,this.motionValue=l,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ur.add(this),wf||(wf=!0,ze.read(B0),ze.resolveKeyframes(V0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:i,element:s,motionValue:l}=this;if(n[0]===null){const c=l==null?void 0:l.get(),u=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&i){const d=s.readValue(i,u);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=u),l&&c===void 0&&l.set(n[0])}WS(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Ur.delete(this)}cancel(){this.state==="scheduled"&&(Ur.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ZS=t=>t.startsWith("--");function e2(t,n,i){ZS(n)?t.style.setProperty(n,i):t.style[n]=i}const t2=id(()=>window.ScrollTimeline!==void 0),n2={};function r2(t,n){const i=id(t);return()=>n2[n]??i()}const z0=r2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),No=([t,n,i,s])=>`cubic-bezier(${t}, ${n}, ${i}, ${s})`,Dm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:No([0,.65,.55,1]),circOut:No([.55,0,1,.45]),backIn:No([.31,.01,.66,-.59]),backOut:No([.33,1.53,.69,.99])};function U0(t,n){if(t)return typeof t=="function"?z0()?D0(t,n):"ease-out":T0(t)?No(t):Array.isArray(t)?t.map(i=>U0(i,n)||Dm.easeOut):Dm[t]}function i2(t,n,i,{delay:s=0,duration:l=300,repeat:c=0,repeatType:u="loop",ease:d="easeOut",times:m}={},y=void 0){const h={[n]:i};m&&(h.offset=m);const x=U0(d,l);Array.isArray(x)&&(h.easing=x);const w={delay:s,duration:l,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return y&&(w.pseudoElement=y),t.animate(h,w)}function $0(t){return typeof t=="function"&&"applyToOptions"in t}function o2({type:t,...n}){return $0(t)&&z0()?t.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class s2 extends hd{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:i,name:s,keyframes:l,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:d,onComplete:m}=n;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=n,rd(typeof n.type!="string");const y=o2(n);this.animation=i2(i,s,l,y,c),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const h=pd(l,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(h):e2(i,s,h),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,i;(i=(n=this.animation).finish)==null||i.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i;this.isPseudoElement||(i=(n=this.animation).commitStyles)==null||i.call(n)}get duration(){var i,s;const n=((s=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:s.call(i).duration)||0;return Xt(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Xt(n)}get time(){return Xt(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=Tn(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(n){this.animation.startTime=n}attachTimeline({timeline:n,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&t2()?(this.animation.timeline=n,Yt):i(this)}}const W0={anticipate:S0,backInOut:w0,circInOut:k0};function a2(t){return t in W0}function l2(t){typeof t.ease=="string"&&a2(t.ease)&&(t.ease=W0[t.ease])}const Im=10;class u2 extends s2{constructor(n){l2(n),L0(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:i,onUpdate:s,onComplete:l,element:c,...u}=this.options;if(!i)return;if(n!==void 0){i.set(n);return}const d=new md({...u,autoplay:!1}),m=Tn(this.finishedTime??this.time);i.setWithVelocity(d.sample(m-Im).value,d.sample(m).value,Im),d.stop()}}const Lm=(t,n)=>n==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(xr.test(t)||t==="0")&&!t.startsWith("url("));function c2(t){const n=t[0];if(t.length===1)return!0;for(let i=0;iObject.hasOwnProperty.call(Element.prototype,"animate"));function h2(t){var h;const{motionValue:n,name:i,repeatDelay:s,repeatType:l,damping:c,type:u}=t;if(!(((h=n==null?void 0:n.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:y}=n.owner.getProps();return p2()&&i&&d2.has(i)&&(i!=="transform"||!y)&&!m&&!s&&l!=="mirror"&&c!==0&&u!=="inertia"}const m2=40;class y2 extends hd{constructor({autoplay:n=!0,delay:i=0,type:s="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:u="loop",keyframes:d,name:m,motionValue:y,element:h,...x}){var k;super(),this.stop=()=>{var T,S;this._animation&&(this._animation.stop(),(T=this.stopTimeline)==null||T.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=jt.now();const w={autoplay:n,delay:i,type:s,repeat:l,repeatDelay:c,repeatType:u,name:m,motionValue:y,element:h,...x},P=(h==null?void 0:h.KeyframeResolver)||yd;this.keyframeResolver=new P(d,(T,S,_)=>this.onKeyframesResolved(T,S,w,!_),m,y,h),(k=this.keyframeResolver)==null||k.scheduleResolve()}onKeyframesResolved(n,i,s,l){this.keyframeResolver=void 0;const{name:c,type:u,velocity:d,delay:m,isHandoff:y,onUpdate:h}=s;this.resolvedAt=jt.now(),f2(n,c,u,d)||(($n.instantAnimations||!m)&&(h==null||h(pd(n,s,i))),n[0]=n[n.length-1],kf(s),s.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>m2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:n},P=!y&&h2(w)?new u2({...w,element:w.motionValue.owner.current}):new md(w);P.finished.then(()=>this.notifyFinished()).catch(Yt),this.pendingTimeline&&(this.stopTimeline=P.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=P}get finished(){return this._animation?this.animation.finished:this._finished}then(n,i){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),JS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}const g2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function v2(t){const n=g2.exec(t);if(!n)return[,];const[,i,s,l]=n;return[`--${i??s}`,l]}function H0(t,n,i=1){const[s,l]=v2(t);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const u=c.trim();return d0(u)?parseFloat(u):u}return ld(l)?H0(l,n,i+1):l}function gd(t,n){return(t==null?void 0:t[n])??(t==null?void 0:t.default)??t}const q0=new Set(["width","height","top","left","right","bottom",...Mi]),x2={test:t=>t==="auto",parse:t=>t},K0=t=>n=>n.test(t),G0=[Oi,ye,Cn,yr,cS,uS,x2],Vm=t=>G0.find(K0(t));function w2(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||h0(t):!0}const S2=new Set(["brightness","contrast","saturate","opacity"]);function E2(t){const[n,i]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[s]=i.match(ud)||[];if(!s)return t;const l=i.replace(s,"");let c=S2.has(n)?1:0;return s!==i&&(c*=100),n+"("+c+l+")"}const k2=/\b([a-z-]*)\(.*?\)/gu,Pf={...xr,getAnimatableNone:t=>{const n=t.match(k2);return n?n.map(E2).join(" "):t}},Bm={...Oi,transform:Math.round},P2={rotate:yr,rotateX:yr,rotateY:yr,rotateZ:yr,scale:ma,scaleX:ma,scaleY:ma,scaleZ:ma,skew:yr,skewX:yr,skewY:yr,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:jo,originX:Am,originY:Am,originZ:ye},vd={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye,...P2,zIndex:Bm,fillOpacity:jo,strokeOpacity:jo,numOctaves:Bm},T2={...vd,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Pf,WebkitFilter:Pf},Q0=t=>T2[t];function X0(t,n){let i=Q0(t);return i!==Pf&&(i=xr),i.getAnimatableNone?i.getAnimatableNone(n):void 0}const C2=new Set(["auto","none","0"]);function A2(t,n,i){let s=0,l;for(;s{n.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function N2(t,n,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const l=(i==null?void 0:i[t])??s.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}const Y0=(t,n)=>n&&typeof t=="number"?n.transform(t):t;function J0(t){return p0(t)&&"offsetHeight"in t}const zm=30,R2=t=>!isNaN(parseFloat(t));class F2{constructor(n,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var c;const l=jt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=i.owner}setCurrent(n){this.current=n,this.updatedAt=jt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=R2(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,i){this.events[n]||(this.events[n]=new od);const s=this.events[n].add(i);return n==="change"?()=>{s(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,i){this.passiveEffect=n,this.stopPassiveEffect=i}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,i=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>zm)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,zm);return m0(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(n){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=n(i),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(){var n,i;(n=this.dependents)==null||n.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ai(t,n){return new F2(t,n)}const{schedule:xd}=C0(queueMicrotask,!1),fn={x:!1,y:!1};function Z0(){return fn.x||fn.y}function b2(t){return t==="x"||t==="y"?fn[t]?null:(fn[t]=!0,()=>{fn[t]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}function ev(t,n){const i=N2(t),s=new AbortController,l={passive:!0,...n,signal:s.signal};return[i,l,()=>s.abort()]}function Um(t){return!(t.pointerType==="touch"||Z0())}function O2(t,n,i={}){const[s,l,c]=ev(t,i),u=d=>{if(!Um(d))return;const{target:m}=d,y=n(m,d);if(typeof y!="function"||!m)return;const h=x=>{Um(x)&&(y(x),m.removeEventListener("pointerleave",h))};m.addEventListener("pointerleave",h,l)};return s.forEach(d=>{d.addEventListener("pointerenter",u,l)}),c}const tv=(t,n)=>n?t===n?!0:tv(t,n.parentElement):!1,wd=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,M2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j2(t){return M2.has(t.tagName)||t.tabIndex!==-1}const Ea=new WeakSet;function $m(t){return n=>{n.key==="Enter"&&t(n)}}function tc(t,n){t.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const D2=(t,n)=>{const i=t.currentTarget;if(!i)return;const s=$m(()=>{if(Ea.has(i))return;tc(i,"down");const l=$m(()=>{tc(i,"up")}),c=()=>tc(i,"cancel");i.addEventListener("keyup",l,n),i.addEventListener("blur",c,n)});i.addEventListener("keydown",s,n),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),n)};function Wm(t){return wd(t)&&!Z0()}function I2(t,n,i={}){const[s,l,c]=ev(t,i),u=d=>{const m=d.currentTarget;if(!Wm(d))return;Ea.add(m);const y=n(m,d),h=(P,k)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",w),Ea.has(m)&&Ea.delete(m),Wm(P)&&typeof y=="function"&&y(P,{success:k})},x=P=>{h(P,m===window||m===document||i.useGlobalTarget||tv(m,P.target))},w=P=>{h(P,!1)};window.addEventListener("pointerup",x,l),window.addEventListener("pointercancel",w,l)};return s.forEach(d=>{(i.useGlobalTarget?window:d).addEventListener("pointerdown",u,l),J0(d)&&(d.addEventListener("focus",y=>D2(y,l)),!j2(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),c}function nv(t){return p0(t)&&"ownerSVGElement"in t}function L2(t){return nv(t)&&t.tagName==="svg"}const xt=t=>!!(t&&t.getVelocity),V2=[...G0,Je,xr],B2=t=>V2.find(K0(t)),Sd=K.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Hm(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function z2(...t){return n=>{let i=!1;const s=t.map(l=>{const c=Hm(l,n);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let l=0;l{const{width:y,height:h,top:x,left:w,right:P}=u.current;if(n||!c.current||!y||!h)return;const k=i==="left"?`left: ${w}`:`right: ${P}`;c.current.dataset.motionPopId=l;const T=document.createElement("style");d&&(T.nonce=d);const S=s??document.head;return S.appendChild(T),T.sheet&&T.sheet.insertRule(` [data-motion-pop-id="${l}"] { position: absolute !important; width: ${y}px !important; height: ${h}px !important; ${k}px !important; top: ${x}px !important; } `),()=>{S.contains(T)&&S.removeChild(T)}},[n]),E.jsx($2,{isPresent:n,childRef:c,sizeRef:u,children:K.cloneElement(t,{ref:m})})}const H2=({children:t,initial:n,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:u,anchorX:d,root:m})=>{const y=Zf(q2),h=K.useId();let x=!0,w=K.useMemo(()=>(x=!1,{id:h,initial:n,isPresent:i,custom:l,onExitComplete:P=>{y.set(P,!0);for(const k of y.values())if(!k)return;s&&s()},register:P=>(y.set(P,!1),()=>y.delete(P))}),[i,y,s]);return c&&x&&(w={...w}),K.useMemo(()=>{y.forEach((P,k)=>y.set(k,!1))},[i]),K.useEffect(()=>{!i&&!y.size&&s&&s()},[i]),u==="popLayout"&&(t=E.jsx(W2,{isPresent:i,anchorX:d,root:m,children:t})),E.jsx(Wa.Provider,{value:w,children:t})};function q2(){return new Map}function rv(t=!0){const n=K.useContext(Wa);if(n===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:l}=n,c=K.useId();K.useEffect(()=>{if(t)return l(c)},[t]);const u=K.useCallback(()=>t&&s&&s(c),[c,s,t]);return!i&&s?[!1,u]:[!0]}const ya=t=>t.key||"";function qm(t){const n=[];return K.Children.forEach(t,i=>{K.isValidElement(i)&&n.push(i)}),n}const K2=({children:t,custom:n,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:d="left",root:m})=>{const[y,h]=rv(u),x=K.useMemo(()=>qm(t),[t]),w=u&&!y?[]:x.map(ya),P=K.useRef(!0),k=K.useRef(x),T=Zf(()=>new Map),[S,_]=K.useState(x),[N,b]=K.useState(x);f0(()=>{P.current=!1,k.current=x;for(let q=0;q{const H=ya(q),D=u&&!y?!1:x===N||w.includes(H),ne=()=>{if(T.has(H))T.set(H,!0);else return;let te=!0;T.forEach(he=>{he||(te=!1)}),te&&(W==null||W(),b(k.current),u&&(h==null||h()),s&&s())};return E.jsx(H2,{isPresent:D,initial:!P.current||i?void 0:!1,custom:n,presenceAffectsLayout:l,mode:c,root:m,onExitComplete:D?void 0:ne,anchorX:d,children:q},H)})})},iv=K.createContext({strict:!1}),Km={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_i={};for(const t in Km)_i[t]={isEnabled:n=>Km[t].some(i=>!!n[i])};function G2(t){for(const n in t)_i[n]={..._i[n],...t[n]}}const Q2=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 Ma(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Q2.has(t)}let ov=t=>!Ma(t);function X2(t){typeof t=="function"&&(ov=n=>n.startsWith("on")?!Ma(n):t(n))}try{X2(require("@emotion/is-prop-valid").default)}catch{}function Y2(t,n,i){const s={};for(const l in t)l==="values"&&typeof t.values=="object"||(ov(l)||i===!0&&Ma(l)||!n&&!Ma(l)||t.draggable&&l.startsWith("onDrag"))&&(s[l]=t[l]);return s}const Ha=K.createContext({});function qa(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Io(t){return typeof t=="string"||Array.isArray(t)}const Ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kd=["initial",...Ed];function Ka(t){return qa(t.animate)||kd.some(n=>Io(t[n]))}function sv(t){return!!(Ka(t)||t.variants)}function J2(t,n){if(Ka(t)){const{initial:i,animate:s}=t;return{initial:i===!1||Io(i)?i:void 0,animate:Io(s)?s:void 0}}return t.inherit!==!1?n:{}}function Z2(t){const{initial:n,animate:i}=J2(t,K.useContext(Ha));return K.useMemo(()=>({initial:n,animate:i}),[Gm(n),Gm(i)])}function Gm(t){return Array.isArray(t)?t.join(" "):t}function Qm(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const Ao={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(ye.test(t))t=parseFloat(t);else return t;const i=Qm(t,n.target.x),s=Qm(t,n.target.y);return`${i}% ${s}%`}},eE={correct:(t,{treeScale:n,projectionDelta:i})=>{const s=t,l=xr.parse(t);if(l.length>5)return s;const c=xr.createTransformer(t),u=typeof l[0]!="number"?1:0,d=i.x.scale*n.x,m=i.y.scale*n.y;l[0+u]/=d,l[1+u]/=m;const y=We(d,m,.5);return typeof l[2+u]=="number"&&(l[2+u]/=y),typeof l[3+u]=="number"&&(l[3+u]/=y),c(l)}},Tf={borderRadius:{...Ao,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ao,borderTopRightRadius:Ao,borderBottomLeftRadius:Ao,borderBottomRightRadius:Ao,boxShadow:eE};function av(t,{layout:n,layoutId:i}){return ji.has(t)||t.startsWith("origin")||(n||i!==void 0)&&(!!Tf[t]||t==="opacity")}const tE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nE=Mi.length;function rE(t,n,i){let s="",l=!0;for(let c=0;c({style:{},transform:{},transformOrigin:{},vars:{}});function lv(t,n,i){for(const s in n)!xt(n[s])&&!av(s,i)&&(t[s]=n[s])}function iE({transformTemplate:t},n){return K.useMemo(()=>{const i=Td();return Pd(i,n,t),Object.assign({},i.vars,i.style)},[n])}function oE(t,n){const i=t.style||{},s={};return lv(s,i,t),Object.assign(s,iE(t,n)),s}function sE(t,n){const i={},s=oE(t,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const aE={offset:"stroke-dashoffset",array:"stroke-dasharray"},lE={offset:"strokeDashoffset",array:"strokeDasharray"};function uE(t,n,i=1,s=0,l=!0){t.pathLength=1;const c=l?aE:lE;t[c.offset]=ye.transform(-s);const u=ye.transform(n),d=ye.transform(i);t[c.array]=`${u} ${d}`}function uv(t,{attrX:n,attrY:i,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},m,y,h){if(Pd(t,d,y),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:x,style:w}=t;x.transform&&(w.transform=x.transform,delete x.transform),(w.transform||x.transformOrigin)&&(w.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),w.transform&&(w.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete x.transformBox),n!==void 0&&(x.x=n),i!==void 0&&(x.y=i),s!==void 0&&(x.scale=s),l!==void 0&&uE(x,l,c,u,!1)}const cv=()=>({...Td(),attrs:{}}),fv=t=>typeof t=="string"&&t.toLowerCase()==="svg";function cE(t,n,i,s){const l=K.useMemo(()=>{const c=cv();return uv(c,n,fv(s),t.transformTemplate,t.style),{...c.attrs,style:{...c.style}}},[n]);if(t.style){const c={};lv(c,t.style,t),l.style={...c,...l.style}}return l}const fE=["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 Cd(t){return typeof t!="string"||t.includes("-")?!1:!!(fE.indexOf(t)>-1||/[A-Z]/u.test(t))}function dE(t,n,i,{latestValues:s},l,c=!1){const d=(Cd(t)?cE:sE)(n,s,l,t),m=Y2(n,typeof t=="string",c),y=t!==K.Fragment?{...m,...d,ref:i}:{},{children:h}=n,x=K.useMemo(()=>xt(h)?h.get():h,[h]);return K.createElement(t,{...y,children:x})}function Xm(t){const n=[{},{}];return t==null||t.values.forEach((i,s)=>{n[0][s]=i.get(),n[1][s]=i.getVelocity()}),n}function Ad(t,n,i,s){if(typeof n=="function"){const[l,c]=Xm(s);n=n(i!==void 0?i:t.custom,l,c)}if(typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"){const[l,c]=Xm(s);n=n(i!==void 0?i:t.custom,l,c)}return n}function ka(t){return xt(t)?t.get():t}function pE({scrapeMotionValuesFromProps:t,createRenderState:n},i,s,l){return{latestValues:hE(i,s,l,t),renderState:n()}}function hE(t,n,i,s){const l={},c=s(t,{});for(const w in c)l[w]=ka(c[w]);let{initial:u,animate:d}=t;const m=Ka(t),y=sv(t);n&&y&&!m&&t.inherit!==!1&&(u===void 0&&(u=n.initial),d===void 0&&(d=n.animate));let h=i?i.initial===!1:!1;h=h||u===!1;const x=h?d:u;if(x&&typeof x!="boolean"&&!qa(x)){const w=Array.isArray(x)?x:[x];for(let P=0;P(n,i)=>{const s=K.useContext(Ha),l=K.useContext(Wa),c=()=>pE(t,n,s,l);return i?c():Zf(c)};function _d(t,n,i){var c;const{style:s}=t,l={};for(const u in s)(xt(s[u])||n.style&&xt(n.style[u])||av(u,t)||((c=i==null?void 0:i.getValue(u))==null?void 0:c.liveStyle)!==void 0)&&(l[u]=s[u]);return l}const mE=dv({scrapeMotionValuesFromProps:_d,createRenderState:Td});function pv(t,n,i){const s=_d(t,n,i);for(const l in t)if(xt(t[l])||xt(n[l])){const c=Mi.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[c]=t[l]}return s}const yE=dv({scrapeMotionValuesFromProps:pv,createRenderState:cv}),gE=Symbol.for("motionComponentSymbol");function Ei(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vE(t,n,i){return K.useCallback(s=>{s&&t.onMount&&t.onMount(s),n&&(s?n.mount(s):n.unmount()),i&&(typeof i=="function"?i(s):Ei(i)&&(i.current=s))},[n])}const Nd=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xE="framerAppearId",hv="data-"+Nd(xE),mv=K.createContext({});function wE(t,n,i,s,l){var T,S;const{visualElement:c}=K.useContext(Ha),u=K.useContext(iv),d=K.useContext(Wa),m=K.useContext(Sd).reducedMotion,y=K.useRef(null);s=s||u.renderer,!y.current&&s&&(y.current=s(t,{visualState:n,parent:c,props:i,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m}));const h=y.current,x=K.useContext(mv);h&&!h.projection&&l&&(h.type==="html"||h.type==="svg")&&SE(y.current,i,l,x);const w=K.useRef(!1);K.useInsertionEffect(()=>{h&&w.current&&h.update(i,d)});const P=i[hv],k=K.useRef(!!P&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,P))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,P)));return f0(()=>{h&&(w.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),k.current&&h.animationState&&h.animationState.animateChanges())}),K.useEffect(()=>{h&&(!k.current&&h.animationState&&h.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,P)}),k.current=!1),h.enteringChildren=void 0)}),h}function SE(t,n,i,s){const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:m,layoutRoot:y,layoutCrossfade:h}=n;t.projection=new i(t.latestValues,n["data-framer-portal-id"]?void 0:yv(t.parent)),t.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Ei(d),visualElement:t,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:m,layoutRoot:y})}function yv(t){if(t)return t.options.allowProjection!==!1?t.projection:yv(t.parent)}function nc(t,{forwardMotionProps:n=!1}={},i,s){i&&G2(i);const l=Cd(t)?yE:mE;function c(d,m){let y;const h={...K.useContext(Sd),...d,layoutId:EE(d)},{isStatic:x}=h,w=Z2(d),P=l(d,x);if(!x&&ed){kE();const k=PE(h);y=k.MeasureLayout,w.visualElement=wE(t,P,h,s,k.ProjectionNode)}return E.jsxs(Ha.Provider,{value:w,children:[y&&w.visualElement?E.jsx(y,{visualElement:w.visualElement,...h}):null,dE(t,d,vE(P,w.visualElement,m),P,x,n)]})}c.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=K.forwardRef(c);return u[gE]=t,u}function EE({layoutId:t}){const n=K.useContext(Jf).id;return n&&t!==void 0?n+"-"+t:t}function kE(t,n){K.useContext(iv).strict}function PE(t){const{drag:n,layout:i}=_i;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(t)||i!=null&&i.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function TE(t,n){if(typeof Proxy>"u")return nc;const i=new Map,s=(c,u)=>nc(c,u,t,n),l=(c,u)=>s(c,u);return new Proxy(l,{get:(c,u)=>u==="create"?s:(i.has(u)||i.set(u,nc(u,void 0,t,n)),i.get(u))})}function gv({top:t,left:n,right:i,bottom:s}){return{x:{min:n,max:i},y:{min:t,max:s}}}function CE({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function AE(t,n){if(!n)return t;const i=n({x:t.left,y:t.top}),s=n({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function rc(t){return t===void 0||t===1}function Cf({scale:t,scaleX:n,scaleY:i}){return!rc(t)||!rc(n)||!rc(i)}function Ir(t){return Cf(t)||vv(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function vv(t){return Ym(t.x)||Ym(t.y)}function Ym(t){return t&&t!=="0%"}function ja(t,n,i){const s=t-i,l=n*s;return i+l}function Jm(t,n,i,s,l){return l!==void 0&&(t=ja(t,l,s)),ja(t,i,s)+n}function Af(t,n=0,i=1,s,l){t.min=Jm(t.min,n,i,s,l),t.max=Jm(t.max,n,i,s,l)}function xv(t,{x:n,y:i}){Af(t.x,n.translate,n.scale,n.originPoint),Af(t.y,i.translate,i.scale,i.originPoint)}const Zm=.999999999999,ey=1.0000000000001;function _E(t,n,i,s=!1){const l=i.length;if(!l)return;n.x=n.y=1;let c,u;for(let d=0;dZm&&(n.x=1),n.yZm&&(n.y=1)}function ki(t,n){t.min=t.min+n,t.max=t.max+n}function ty(t,n,i,s,l=.5){const c=We(t.min,t.max,l);Af(t,n,i,c,s)}function Pi(t,n){ty(t.x,n.x,n.scaleX,n.scale,n.originX),ty(t.y,n.y,n.scaleY,n.scale,n.originY)}function wv(t,n){return gv(AE(t.getBoundingClientRect(),n))}function NE(t,n,i){const s=wv(t,i),{scroll:l}=n;return l&&(ki(s.x,l.offset.x),ki(s.y,l.offset.y)),s}const ny=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ti=()=>({x:ny(),y:ny()}),ry=()=>({min:0,max:0}),rt=()=>({x:ry(),y:ry()}),_f={current:null},Sv={current:!1};function RE(){if(Sv.current=!0,!!ed)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>_f.current=t.matches;t.addEventListener("change",n),n()}else _f.current=!1}const FE=new WeakMap;function bE(t,n,i){for(const s in n){const l=n[s],c=i[s];if(xt(l))t.addValue(s,l);else if(xt(c))t.addValue(s,Ai(l,{owner:t}));else if(c!==l)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=t.getStaticValue(s);t.addValue(s,Ai(u!==void 0?u:l,{owner:t}))}}for(const s in i)n[s]===void 0&&t.removeValue(s);return n}const iy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class OE{scrapeMotionValuesFromProps(n,i,s){return{}}constructor({parent:n,props:i,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:c,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yd,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 w=jt.now();this.renderScheduledAtthis.bindToMotionValue(l,s)),Sv.current||RE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_f.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var n;this.projection&&this.projection.unmount(),vr(this.notifyUpdate),vr(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,i){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=ji.has(n);s&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",u=>{this.latestValues[n]=u,this.props.onUpdate&&ze.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,i)),this.valueSubscriptions.set(n,()=>{l(),c&&c(),i.owner&&i.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in _i){const i=_i[n];if(!i)continue;const{isEnabled:s,Feature:l}=i;if(!this.features[n]&&l&&s(this.props)&&(this.features[n]=new l(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,i){this.latestValues[n]=i}update(n,i){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;si.variantChildren.delete(n)}addValue(n,i){const s=this.values.get(n);i!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,i),this.values.set(n,i),this.latestValues[n]=i.get())}removeValue(n){this.values.delete(n);const i=this.valueSubscriptions.get(n);i&&(i(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,i){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&i!==void 0&&(s=Ai(i===null?void 0:i,{owner:this}),this.addValue(n,s)),s}readValue(n,i){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(d0(s)||h0(s))?s=parseFloat(s):!B2(s)&&xr.test(i)&&(s=X0(n,i)),this.setBaseTarget(n,xt(s)?s.get():s)),xt(s)?s.get():s}setBaseTarget(n,i){this.baseTarget[n]=i}getBaseTarget(n){var c;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const u=Ad(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);u&&(s=u[n])}if(i&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,n);return l!==void 0&&!xt(l)?l:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,i){return this.events[n]||(this.events[n]=new od),this.events[n].add(i)}notify(n,...i){this.events[n]&&this.events[n].notify(...i)}scheduleRenderMicrotask(){xd.render(this.render)}}class Ev extends OE{constructor(){super(...arguments),this.KeyframeResolver=_2}sortInstanceNodePosition(n,i){return n.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(n,i){return n.style?n.style[i]:void 0}removeValueFromRenderState(n,{vars:i,style:s}){delete i[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;xt(n)&&(this.childSubscription=n.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function kv(t,{style:n,vars:i},s,l){const c=t.style;let u;for(u in n)c[u]=n[u];l==null||l.applyProjectionStyles(c,s);for(u in i)c.setProperty(u,i[u])}function ME(t){return window.getComputedStyle(t)}class jE extends Ev{constructor(){super(...arguments),this.type="html",this.renderInstance=kv}readValueFromInstance(n,i){var s;if(ji.has(i))return(s=this.projection)!=null&&s.isProjecting?vf(i):KS(n,i);{const l=ME(n),c=(_0(i)?l.getPropertyValue(i):l[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(n,{transformPagePoint:i}){return wv(n,i)}build(n,i,s){Pd(n,i,s.transformTemplate)}scrapeMotionValuesFromProps(n,i,s){return _d(n,i,s)}}const Pv=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 DE(t,n,i,s){kv(t,n,void 0,s);for(const l in n.attrs)t.setAttribute(Pv.has(l)?l:Nd(l),n.attrs[l])}class IE extends Ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(n,i){return n[i]}readValueFromInstance(n,i){if(ji.has(i)){const s=Q0(i);return s&&s.default||0}return i=Pv.has(i)?i:Nd(i),n.getAttribute(i)}scrapeMotionValuesFromProps(n,i,s){return pv(n,i,s)}build(n,i,s){uv(n,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,i,s,l){DE(n,i,s,l)}mount(n){this.isSVGTag=fv(n.tagName),super.mount(n)}}const LE=(t,n)=>Cd(t)?new IE(n):new jE(n,{allowProjection:t!==K.Fragment});function Ci(t,n,i){const s=t.getProps();return Ad(s,n,i!==void 0?i:s.custom,t)}const Nf=t=>Array.isArray(t);function VE(t,n,i){t.hasValue(n)?t.getValue(n).set(i):t.addValue(n,Ai(i))}function BE(t){return Nf(t)?t[t.length-1]||0:t}function zE(t,n){const i=Ci(t,n);let{transitionEnd:s={},transition:l={},...c}=i||{};c={...c,...s};for(const u in c){const d=BE(c[u]);VE(t,u,d)}}function UE(t){return!!(xt(t)&&t.add)}function Rf(t,n){const i=t.getValue("willChange");if(UE(i))return i.add(n);if(!i&&$n.WillChange){const s=new $n.WillChange("auto");t.addValue("willChange",s),s.add(n)}}function Tv(t){return t.props[hv]}const $E=t=>t!==null;function WE(t,{repeat:n,repeatType:i="loop"},s){const l=t.filter($E),c=n&&i!=="loop"&&n%2===1?0:l.length-1;return l[c]}const HE={type:"spring",stiffness:500,damping:25,restSpeed:10},qE=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),KE={type:"keyframes",duration:.8},GE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QE=(t,{keyframes:n})=>n.length>2?KE:ji.has(t)?t.startsWith("scale")?qE(n[1]):HE:GE;function XE({when:t,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:l,repeat:c,repeatType:u,repeatDelay:d,from:m,elapsed:y,...h}){return!!Object.keys(h).length}const Rd=(t,n,i,s={},l,c)=>u=>{const d=gd(s,t)||{},m=d.delay||s.delay||0;let{elapsed:y=0}=s;y=y-Tn(m);const h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:n.getVelocity(),...d,delay:-y,onUpdate:w=>{n.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:n,element:c?void 0:l};XE(d)||Object.assign(h,QE(t,h)),h.duration&&(h.duration=Tn(h.duration)),h.repeatDelay&&(h.repeatDelay=Tn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let x=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(kf(h),h.delay===0&&(x=!0)),($n.instantAnimations||$n.skipAnimations)&&(x=!0,kf(h),h.delay=0),h.allowFlatten=!d.type&&!d.ease,x&&!c&&n.get()!==void 0){const w=WE(h.keyframes,d);if(w!==void 0){ze.update(()=>{h.onUpdate(w),h.onComplete()});return}}return d.isSync?new md(h):new y2(h)};function YE({protectedKeys:t,needsAnimating:n},i){const s=t.hasOwnProperty(i)&&n[i]!==!0;return n[i]=!1,s}function Cv(t,n,{delay:i=0,transitionOverride:s,type:l}={}){let{transition:c=t.getDefaultTransition(),transitionEnd:u,...d}=n;s&&(c=s);const m=[],y=l&&t.animationState&&t.animationState.getState()[l];for(const h in d){const x=t.getValue(h,t.latestValues[h]??null),w=d[h];if(w===void 0||y&&YE(y,h))continue;const P={delay:i,...gd(c||{},h)},k=x.get();if(k!==void 0&&!x.isAnimating&&!Array.isArray(w)&&w===k&&!P.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const _=Tv(t);if(_){const N=window.MotionHandoffAnimation(_,h,ze);N!==null&&(P.startTime=N,T=!0)}}Rf(t,h),x.start(Rd(h,x,w,t.shouldReduceMotion&&q0.has(h)?{type:!1}:P,t,T));const S=x.animation;S&&m.push(S)}return u&&Promise.all(m).then(()=>{ze.update(()=>{u&&zE(t,u)})}),m}function Av(t,n,i,s=0,l=1){const c=Array.from(t).sort((y,h)=>y.sortNodePosition(h)).indexOf(n),u=t.size,d=(u-1)*s;return typeof i=="function"?i(c,u):l===1?c*s:d-c*s}function Ff(t,n,i={}){var m;const s=Ci(t,n,i.type==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(l=i.transitionOverride);const c=s?()=>Promise.all(Cv(t,s,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(y=0)=>{const{delayChildren:h=0,staggerChildren:x,staggerDirection:w}=l;return JE(t,n,y,h,x,w,i)}:()=>Promise.resolve(),{when:d}=l;if(d){const[y,h]=d==="beforeChildren"?[c,u]:[u,c];return y().then(()=>h())}else return Promise.all([c(),u(i.delay)])}function JE(t,n,i=0,s=0,l=0,c=1,u){const d=[];for(const m of t.variantChildren)m.notify("AnimationStart",n),d.push(Ff(m,n,{...u,delay:i+(typeof s=="function"?0:s)+Av(t.variantChildren,m,s,l,c)}).then(()=>m.notify("AnimationComplete",n)));return Promise.all(d)}function ZE(t,n,i={}){t.notify("AnimationStart",n);let s;if(Array.isArray(n)){const l=n.map(c=>Ff(t,c,i));s=Promise.all(l)}else if(typeof n=="string")s=Ff(t,n,i);else{const l=typeof n=="function"?Ci(t,n,i.custom):n;s=Promise.all(Cv(t,l,i))}return s.then(()=>{t.notify("AnimationComplete",n)})}function _v(t,n){if(!Array.isArray(n))return!1;const i=n.length;if(i!==t.length)return!1;for(let s=0;sPromise.all(n.map(({animation:i,options:s})=>ZE(t,i,s)))}function ik(t){let n=rk(t),i=oy(),s=!0;const l=m=>(y,h)=>{var w;const x=Ci(t,h,m==="exit"?(w=t.presenceContext)==null?void 0:w.custom:void 0);if(x){const{transition:P,transitionEnd:k,...T}=x;y={...y,...T,...k}}return y};function c(m){n=m(t)}function u(m){const{props:y}=t,h=Nv(t.parent)||{},x=[],w=new Set;let P={},k=1/0;for(let S=0;Sk&&I,ne=!1;const te=Array.isArray(b)?b:[b];let he=te.reduce(l(_),{});W===!1&&(he={});const{prevResolvedValues:re={}}=N,Se={...re,...he},ge=le=>{D=!0,w.has(le)&&(ne=!0,w.delete(le)),N.needsAnimating[le]=!0;const g=t.getValue(le);g&&(g.liveStyle=!1)};for(const le in Se){const g=he[le],O=re[le];if(P.hasOwnProperty(le))continue;let M=!1;Nf(g)&&Nf(O)?M=!_v(g,O):M=g!==O,M?g!=null?ge(le):w.add(le):g!==void 0&&w.has(le)?ge(le):N.protectedKeys[le]=!0}N.prevProp=b,N.prevResolvedValues=he,N.isActive&&(P={...P,...he}),s&&t.blockInitialAnimation&&(D=!1);const _e=q&&H;D&&(!_e||ne)&&x.push(...te.map(le=>{const g={type:_};if(typeof le=="string"&&s&&!_e&&t.manuallyAnimateOnMount&&t.parent){const{parent:O}=t,M=Ci(O,le);if(O.enteringChildren&&M){const{delayChildren:A}=M.transition||{};g.delay=Av(O.enteringChildren,t,A)}}return{animation:le,options:g}}))}if(w.size){const S={};if(typeof y.initial!="boolean"){const _=Ci(t,Array.isArray(y.initial)?y.initial[0]:y.initial);_&&_.transition&&(S.transition=_.transition)}w.forEach(_=>{const N=t.getBaseTarget(_),b=t.getValue(_);b&&(b.liveStyle=!0),S[_]=N??null}),x.push({animation:S})}let T=!!x.length;return s&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?n(x):Promise.resolve()}function d(m,y){var x;if(i[m].isActive===y)return Promise.resolve();(x=t.variantChildren)==null||x.forEach(w=>{var P;return(P=w.animationState)==null?void 0:P.setActive(m,y)}),i[m].isActive=y;const h=u(m);for(const w in i)i[w].protectedKeys={};return h}return{animateChanges:u,setActive:d,setAnimateFunction:c,getState:()=>i,reset:()=>{i=oy()}}}function ok(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!_v(n,t):!1}function Dr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oy(){return{animate:Dr(!0),whileInView:Dr(),whileHover:Dr(),whileTap:Dr(),whileDrag:Dr(),whileFocus:Dr(),exit:Dr()}}class Sr{constructor(n){this.isMounted=!1,this.node=n}update(){}}class sk extends Sr{constructor(n){super(n),n.animationState||(n.animationState=ik(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();qa(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:i}=this.node.prevProps||{};n!==i&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let ak=0;class lk extends Sr{constructor(){super(...arguments),this.id=ak++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const l=this.node.animationState.setActive("exit",!n);i&&!n&&l.then(()=>{i(this.id)})}mount(){const{register:n,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const uk={animation:{Feature:sk},exit:{Feature:lk}};function Lo(t,n,i,s={passive:!0}){return t.addEventListener(n,i,s),()=>t.removeEventListener(n,i)}function qo(t){return{point:{x:t.pageX,y:t.pageY}}}const ck=t=>n=>wd(n)&&t(n,qo(n));function bo(t,n,i,s){return Lo(t,n,ck(i),s)}const Rv=1e-4,fk=1-Rv,dk=1+Rv,Fv=.01,pk=0-Fv,hk=0+Fv;function Ct(t){return t.max-t.min}function mk(t,n,i){return Math.abs(t-n)<=i}function sy(t,n,i,s=.5){t.origin=s,t.originPoint=We(n.min,n.max,t.origin),t.scale=Ct(i)/Ct(n),t.translate=We(i.min,i.max,t.origin)-t.originPoint,(t.scale>=fk&&t.scale<=dk||isNaN(t.scale))&&(t.scale=1),(t.translate>=pk&&t.translate<=hk||isNaN(t.translate))&&(t.translate=0)}function Oo(t,n,i,s){sy(t.x,n.x,i.x,s?s.originX:void 0),sy(t.y,n.y,i.y,s?s.originY:void 0)}function ay(t,n,i){t.min=i.min+n.min,t.max=t.min+Ct(n)}function yk(t,n,i){ay(t.x,n.x,i.x),ay(t.y,n.y,i.y)}function ly(t,n,i){t.min=n.min-i.min,t.max=t.min+Ct(n)}function Da(t,n,i){ly(t.x,n.x,i.x),ly(t.y,n.y,i.y)}function Qt(t){return[t("x"),t("y")]}const bv=({current:t})=>t?t.ownerDocument.defaultView:null,uy=(t,n)=>Math.abs(t-n);function gk(t,n){const i=uy(t.x,n.x),s=uy(t.y,n.y);return Math.sqrt(i**2+s**2)}class Ov{constructor(n,i,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=oc(this.lastMoveEventInfo,this.history),P=this.startEvent!==null,k=gk(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!P&&!k)return;const{point:T}=w,{timestamp:S}=dt;this.history.push({...T,timestamp:S});const{onStart:_,onMove:N}=this.handlers;P||(_&&_(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,w)},this.handlePointerMove=(w,P)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=ic(P,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(w,P)=>{this.end();const{onEnd:k,onSessionEnd:T,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=oc(w.type==="pointercancel"?this.lastMoveEventInfo:ic(P,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,_),T&&T(w,_)},!wd(n))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=l||window;const d=qo(n),m=ic(d,this.transformPagePoint),{point:y}=m,{timestamp:h}=dt;this.history=[{...y,timestamp:h}];const{onSessionStart:x}=i;x&&x(n,oc(m,this.history)),this.removeListeners=$o(bo(this.contextWindow,"pointermove",this.handlePointerMove),bo(this.contextWindow,"pointerup",this.handlePointerUp),bo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),vr(this.updatePoint)}}function ic(t,n){return n?{point:n(t.point)}:t}function cy(t,n){return{x:t.x-n.x,y:t.y-n.y}}function oc({point:t},n){return{point:t,delta:cy(t,Mv(n)),offset:cy(t,vk(n)),velocity:xk(n,.1)}}function vk(t){return t[0]}function Mv(t){return t[t.length-1]}function xk(t,n){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const l=Mv(t);for(;i>=0&&(s=t[i],!(l.timestamp-s.timestamp>Tn(n)));)i--;if(!s)return{x:0,y:0};const c=Xt(l.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(l.x-s.x)/c,y:(l.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function wk(t,{min:n,max:i},s){return n!==void 0&&ti&&(t=s?We(i,t,s.max):Math.min(t,i)),t}function fy(t,n,i){return{min:n!==void 0?t.min+n:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function Sk(t,{top:n,left:i,bottom:s,right:l}){return{x:fy(t.x,i,l),y:fy(t.y,n,s)}}function dy(t,n){let i=n.min-t.min,s=n.max-t.max;return n.max-n.mins?i=Mo(n.min,n.max-s,t.min):s>l&&(i=Mo(t.min,t.max-l,n.min)),Un(0,1,i)}function Pk(t,n){const i={};return n.min!==void 0&&(i.min=n.min-t.min),n.max!==void 0&&(i.max=n.max-t.min),i}const bf=.35;function Tk(t=bf){return t===!1?t=0:t===!0&&(t=bf),{x:py(t,"left","right"),y:py(t,"top","bottom")}}function py(t,n,i){return{min:hy(t,n),max:hy(t,i)}}function hy(t,n){return typeof t=="number"?t:t[n]||0}const Ck=new WeakMap;class Ak{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=x=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(qo(x).point)},u=(x,w)=>{const{drag:P,dragPropagation:k,onDragStart:T}=this.getProps();if(P&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=b2(P),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qt(_=>{let N=this.getAxisMotionValue(_).get()||0;if(Cn.test(N)){const{projection:b}=this.visualElement;if(b&&b.layout){const I=b.layout.layoutBox[_];I&&(N=Ct(I)*(parseFloat(N)/100))}}this.originPoint[_]=N}),T&&ze.postRender(()=>T(x,w)),Rf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},d=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w;const{dragPropagation:P,dragDirectionLock:k,onDirectionLock:T,onDrag:S}=this.getProps();if(!P&&!this.openDragLock)return;const{offset:_}=w;if(k&&this.currentDirection===null){this.currentDirection=_k(_),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",w.point,_),this.updateAxis("y",w.point,_),this.visualElement.render(),S&&S(x,w)},m=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w,this.stop(x,w),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Qt(x=>{var w;return this.getAnimationState(x)==="paused"&&((w=this.getAxisMotionValue(x).animation)==null?void 0:w.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Ov(n,{onSessionStart:c,onStart:u,onMove:d,onSessionEnd:m,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:s,contextWindow:bv(this.visualElement)})}stop(n,i){const s=n||this.latestPointerEvent,l=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!s)return;const{velocity:u}=l;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&ze.postRender(()=>d(s,l))}cancel(){this.isDragging=!1;const{projection:n,animationState:i}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(n,i,s){const{drag:l}=this.getProps();if(!s||!ga(n,l,this.currentDirection))return;const c=this.getAxisMotionValue(n);let u=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(u=wk(u,this.constraints[n],this.elastic[n])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,l=this.constraints;n&&Ei(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Sk(s.layoutBox,n):this.constraints=!1,this.elastic=Tk(i),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Qt(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Pk(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:i}=this.getProps();if(!n||!Ei(n))return!1;const s=n.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=NE(s,l.root,this.visualElement.getTransformPagePoint());let u=Ek(l.layout.layoutBox,c);if(i){const d=i(CE(u));this.hasMutatedConstraints=!!d,d&&(u=gv(d))}return u}startAnimation(n){const{drag:i,dragMomentum:s,dragElastic:l,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),m=this.constraints||{},y=Qt(h=>{if(!ga(h,i,this.currentDirection))return;let x=m&&m[h]||{};u&&(x={min:0,max:0});const w=l?200:1e6,P=l?40:1e7,k={type:"inertia",velocity:s?n[h]:0,bounceStiffness:w,bounceDamping:P,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(h,k)});return Promise.all(y).then(d)}startAxisValueAnimation(n,i){const s=this.getAxisMotionValue(n);return Rf(this.visualElement,n),s.start(Rd(n,s,0,i,this.visualElement,!1))}stopAnimation(){Qt(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){Qt(n=>{var i;return(i=this.getAxisMotionValue(n).animation)==null?void 0:i.pause()})}getAnimationState(n){var i;return(i=this.getAxisMotionValue(n).animation)==null?void 0:i.state}getAxisMotionValue(n){const i=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),l=s[i];return l||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){Qt(i=>{const{drag:s}=this.getProps();if(!ga(i,s,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(i);if(l&&l.layout){const{min:u,max:d}=l.layout.layoutBox[i];c.set(n[i]-We(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Ei(i)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Qt(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const m=d.get();l[u]=kk({min:m,max:m},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Qt(u=>{if(!ga(u,n,null))return;const d=this.getAxisMotionValue(u),{min:m,max:y}=this.constraints[u];d.set(We(m,y,l[u]))})}addListeners(){if(!this.visualElement.current)return;Ck.set(this.visualElement,this);const n=this.visualElement.current,i=bo(n,"pointerdown",m=>{const{drag:y,dragListener:h=!0}=this.getProps();y&&h&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();Ei(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,c=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),ze.read(s);const u=Lo(window,"resize",()=>this.scalePositionWithinConstraints()),d=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(Qt(h=>{const x=this.getAxisMotionValue(h);x&&(this.originPoint[h]+=m[h].translate,x.set(x.get()+m[h].translate))}),this.visualElement.render())}));return()=>{u(),i(),c(),d&&d()}}getProps(){const n=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:u=bf,dragMomentum:d=!0}=n;return{...n,drag:i,dragDirectionLock:s,dragPropagation:l,dragConstraints:c,dragElastic:u,dragMomentum:d}}}function ga(t,n,i){return(n===!0||n===t)&&(i===null||i===t)}function _k(t,n=10){let i=null;return Math.abs(t.y)>n?i="y":Math.abs(t.x)>n&&(i="x"),i}class Nk extends Sr{constructor(n){super(n),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new Ak(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const my=t=>(n,i)=>{t&&ze.postRender(()=>t(n,i))};class Rk extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(n){this.session=new Ov(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bv(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:i,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:my(n),onStart:my(i),onMove:s,onEnd:(c,u)=>{delete this.session,l&&ze.postRender(()=>l(c,u))}}}mount(){this.removePointerDownListener=bo(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Pa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let sc=!1;class Fk extends K.Component{componentDidMount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s,layoutId:l}=this.props,{projection:c}=n;c&&(i.group&&i.group.add(c),s&&s.register&&l&&s.register(c),sc&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Pa.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:i,visualElement:s,drag:l,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,sc=!0,l||n.layoutDependency!==i||i===void 0||n.isPresent!==c?u.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?u.promote():u.relegate()||ze.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),xd.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:l}=n;sc=!0,l&&(l.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function jv(t){const[n,i]=rv(),s=K.useContext(Jf);return E.jsx(Fk,{...t,layoutGroup:s,switchLayoutGroup:K.useContext(mv),isPresent:n,safeToRemove:i})}function bk(t,n,i){const s=xt(t)?t:Ai(t);return s.start(Rd("",s,n,i)),s.animation}const Ok=(t,n)=>t.depth-n.depth;class Mk{constructor(){this.children=[],this.isDirty=!1}add(n){td(this.children,n),this.isDirty=!0}remove(n){nd(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(Ok),this.isDirty=!1,this.children.forEach(n)}}function jk(t,n){const i=jt.now(),s=({timestamp:l})=>{const c=l-i;c>=n&&(vr(s),t(c-n))};return ze.setup(s,!0),()=>vr(s)}const Dv=["TopLeft","TopRight","BottomLeft","BottomRight"],Dk=Dv.length,yy=t=>typeof t=="string"?parseFloat(t):t,gy=t=>typeof t=="number"||ye.test(t);function Ik(t,n,i,s,l,c){l?(t.opacity=We(0,i.opacity??1,Lk(s)),t.opacityExit=We(n.opacity??1,0,Vk(s))):c&&(t.opacity=We(n.opacity??1,i.opacity??1,s));for(let u=0;usn?1:i(Mo(t,n,s))}function xy(t,n){t.min=n.min,t.max=n.max}function un(t,n){xy(t.x,n.x),xy(t.y,n.y)}function wy(t,n){t.translate=n.translate,t.scale=n.scale,t.originPoint=n.originPoint,t.origin=n.origin}function Sy(t,n,i,s,l){return t-=n,t=ja(t,1/i,s),l!==void 0&&(t=ja(t,1/l,s)),t}function Bk(t,n=0,i=1,s=.5,l,c=t,u=t){if(Cn.test(n)&&(n=parseFloat(n),n=We(u.min,u.max,n/100)-u.min),typeof n!="number")return;let d=We(c.min,c.max,s);t===c&&(d-=n),t.min=Sy(t.min,n,i,d,l),t.max=Sy(t.max,n,i,d,l)}function Ey(t,n,[i,s,l],c,u){Bk(t,n[i],n[s],n[l],n.scale,c,u)}const zk=["x","scaleX","originX"],Uk=["y","scaleY","originY"];function ky(t,n,i,s){Ey(t.x,n,zk,i?i.x:void 0,s?s.x:void 0),Ey(t.y,n,Uk,i?i.y:void 0,s?s.y:void 0)}function Py(t){return t.translate===0&&t.scale===1}function Lv(t){return Py(t.x)&&Py(t.y)}function Ty(t,n){return t.min===n.min&&t.max===n.max}function $k(t,n){return Ty(t.x,n.x)&&Ty(t.y,n.y)}function Cy(t,n){return Math.round(t.min)===Math.round(n.min)&&Math.round(t.max)===Math.round(n.max)}function Vv(t,n){return Cy(t.x,n.x)&&Cy(t.y,n.y)}function Ay(t){return Ct(t.x)/Ct(t.y)}function _y(t,n){return t.translate===n.translate&&t.scale===n.scale&&t.originPoint===n.originPoint}class Wk{constructor(){this.members=[]}add(n){td(this.members,n),n.scheduleRender()}remove(n){if(nd(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(n){const i=this.members.findIndex(l=>n===l);if(i===0)return!1;let s;for(let l=i;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(n,i){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,i&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:l}=n.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:i,resumingFrom:s}=n;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Hk(t,n,i){let s="";const l=t.x.translate/n.x,c=t.y.translate/n.y,u=(i==null?void 0:i.z)||0;if((l||c||u)&&(s=`translate3d(${l}px, ${c}px, ${u}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),i){const{transformPerspective:y,rotate:h,rotateX:x,rotateY:w,skewX:P,skewY:k}=i;y&&(s=`perspective(${y}px) ${s}`),h&&(s+=`rotate(${h}deg) `),x&&(s+=`rotateX(${x}deg) `),w&&(s+=`rotateY(${w}deg) `),P&&(s+=`skewX(${P}deg) `),k&&(s+=`skewY(${k}deg) `)}const d=t.x.scale*n.x,m=t.y.scale*n.y;return(d!==1||m!==1)&&(s+=`scale(${d}, ${m})`),s||"none"}const ac=["","X","Y","Z"],qk=1e3;let Kk=0;function lc(t,n,i,s){const{latestValues:l}=n;l[t]&&(i[t]=l[t],n.setStaticValue(t,0),s&&(s[t]=0))}function Bv(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:n}=t.options;if(!n)return;const i=Tv(n);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:c}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",ze,!(l||c))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Bv(s)}function zv({attachResizeListener:t,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(u={},d=n==null?void 0:n()){this.id=Kk++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Xk),this.nodes.forEach(eP),this.nodes.forEach(tP),this.nodes.forEach(Yk)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;ze.read(()=>{x=window.innerWidth}),t(u,()=>{const P=window.innerWidth;P!==x&&(x=P,this.root.updateBlockedByResize=!0,h&&h(),h=jk(w,250),Pa.hasAnimatedSinceResize&&(Pa.hasAnimatedSinceResize=!1,this.nodes.forEach(Fy)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&y&&(d||m)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:x,hasRelativeLayoutChanged:w,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||y.getDefaultTransition()||sP,{onLayoutAnimationStart:T,onLayoutAnimationComplete:S}=y.getProps(),_=!this.targetLayout||!Vv(this.targetLayout,P),N=!x&&w;if(this.options.layoutRoot||this.resumeFrom||N||x&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...gd(k,"layout"),onPlay:T,onComplete:S};(y.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(h,N)}else x||Fy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vr(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(nP),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ct(this.snapshot.measuredBox.x)&&!Ct(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m{const W=I/1e3;by(x.x,u.x,W),by(x.y,u.y,W),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Da(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iP(this.relativeTarget,this.relativeTargetOrigin,w,W),b&&$k(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=rt()),un(b,this.relativeTarget)),T&&(this.animationValues=h,Ik(h,y,this.latestValues,W,N,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var d,m,y;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(y=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||y.stop(),this.pendingAnimation&&(vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{Pa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ai(0)),this.currentAnimation=bk(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:m,layout:y,latestValues:h}=u;if(!(!d||!m||!y)){if(this!==u&&this.layout&&y&&Uv(this.options.animationType,this.layout.layoutBox,y.layoutBox)){m=this.target||rt();const x=Ct(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+x;const w=Ct(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+w}un(d,m),Pi(d,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,d,h)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Wk),this.sharedNodes.get(u).add(d);const y=d.options.initialPromotionConfig;d.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var d;const{layoutId:u}=this.options;return u?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:u}=this.options;return u?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:m}={}){const y=this.getStack();y&&y.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(d=!0),!d)return;const y={};m.z&&lc("z",u,y,this.animationValues);for(let h=0;h{var d;return(d=u.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(Ny),this.root.sharedNodes.clear()}}}function Gk(t){t.updateLayout()}function Qk(t){var i;const n=((i=t.resumeFrom)==null?void 0:i.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:l}=t.layout,{animationType:c}=t.options,u=n.source!==t.layout.source;c==="size"?Qt(x=>{const w=u?n.measuredBox[x]:n.layoutBox[x],P=Ct(w);w.min=s[x].min,w.max=w.min+P}):Uv(c,n.layoutBox,s)&&Qt(x=>{const w=u?n.measuredBox[x]:n.layoutBox[x],P=Ct(s[x]);w.max=w.min+P,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[x].max=t.relativeTarget[x].min+P)});const d=Ti();Oo(d,s,n.layoutBox);const m=Ti();u?Oo(m,t.applyTransform(l,!0),n.measuredBox):Oo(m,s,n.layoutBox);const y=!Lv(d);let h=!1;if(!t.resumeFrom){const x=t.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:w,layout:P}=x;if(w&&P){const k=rt();Da(k,n.layoutBox,w.layoutBox);const T=rt();Da(T,s,P.layoutBox),Vv(k,T)||(h=!0),x.options.layoutRoot&&(t.relativeTarget=T,t.relativeTargetOrigin=k,t.relativeParent=x)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:m,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:h})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Xk(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Yk(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Jk(t){t.clearSnapshot()}function Ny(t){t.clearMeasurements()}function Ry(t){t.isLayoutDirty=!1}function Zk(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fy(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eP(t){t.resolveTargetDelta()}function tP(t){t.calcProjection()}function nP(t){t.resetSkewAndRotation()}function rP(t){t.removeLeadSnapshot()}function by(t,n,i){t.translate=We(n.translate,0,i),t.scale=We(n.scale,1,i),t.origin=n.origin,t.originPoint=n.originPoint}function Oy(t,n,i,s){t.min=We(n.min,i.min,s),t.max=We(n.max,i.max,s)}function iP(t,n,i,s){Oy(t.x,n.x,i.x,s),Oy(t.y,n.y,i.y,s)}function oP(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const sP={duration:.45,ease:[.4,0,.1,1]},My=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jy=My("applewebkit/")&&!My("chrome/")?Math.round:Yt;function Dy(t){t.min=jy(t.min),t.max=jy(t.max)}function aP(t){Dy(t.x),Dy(t.y)}function Uv(t,n,i){return t==="position"||t==="preserve-aspect"&&!mk(Ay(n),Ay(i),.2)}function lP(t){var n;return t!==t.root&&((n=t.scroll)==null?void 0:n.wasRoot)}const uP=zv({attachResizeListener:(t,n)=>Lo(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uc={current:void 0},$v=zv({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!uc.current){const t=new uP({});t.mount(window),t.setOptions({layoutScroll:!0}),uc.current=t}return uc.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),cP={pan:{Feature:Rk},drag:{Feature:Nk,ProjectionNode:$v,MeasureLayout:jv}};function Iy(t,n,i){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",i==="Start");const l="onHover"+i,c=s[l];c&&ze.postRender(()=>c(n,qo(n)))}class fP extends Sr{mount(){const{current:n}=this.node;n&&(this.unmount=O2(n,(i,s)=>(Iy(this.node,s,"Start"),l=>Iy(this.node,l,"End"))))}unmount(){}}class dP extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=$o(Lo(this.node.current,"focus",()=>this.onFocus()),Lo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ly(t,n,i){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",i==="Start");const l="onTap"+(i==="End"?"":i),c=s[l];c&&ze.postRender(()=>c(n,qo(n)))}class pP extends Sr{mount(){const{current:n}=this.node;n&&(this.unmount=I2(n,(i,s)=>(Ly(this.node,s,"Start"),(l,{success:c})=>Ly(this.node,l,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Of=new WeakMap,cc=new WeakMap,hP=t=>{const n=Of.get(t.target);n&&n(t)},mP=t=>{t.forEach(hP)};function yP({root:t,...n}){const i=t||document;cc.has(i)||cc.set(i,{});const s=cc.get(i),l=JSON.stringify(n);return s[l]||(s[l]=new IntersectionObserver(mP,{root:t,...n})),s[l]}function gP(t,n,i){const s=yP(n);return Of.set(t,i),s.observe(t),()=>{Of.delete(t),s.unobserve(t)}}const vP={some:0,all:1};class xP extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:i,margin:s,amount:l="some",once:c}=n,u={root:i?i.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:vP[l]},d=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,c&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:h,onViewportLeave:x}=this.node.getProps(),w=y?h:x;w&&w(m)};return gP(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:i}=this.node;["amount","margin","root"].some(wP(n,i))&&this.startObserver()}unmount(){}}function wP({viewport:t={}},{viewport:n={}}={}){return i=>t[i]!==n[i]}const SP={inView:{Feature:xP},tap:{Feature:pP},focus:{Feature:dP},hover:{Feature:fP}},EP={layout:{ProjectionNode:$v,MeasureLayout:jv}},kP={...uk,...SP,...cP,...EP},J=TE(kP,LE);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PP=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),TP=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,s)=>s?s.toUpperCase():i.toLowerCase()),Vy=t=>{const n=TP(t);return n.charAt(0).toUpperCase()+n.slice(1)},Wv=(...t)=>t.filter((n,i,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===i).join(" ").trim();/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var CP={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.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AP=K.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:u,...d},m)=>K.createElement("svg",{ref:m,...CP,width:n,height:n,stroke:t,strokeWidth:s?Number(i)*24/Number(n):i,className:Wv("lucide",l),...d},[...u.map(([y,h])=>K.createElement(y,h)),...Array.isArray(c)?c:[c]]));/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ze=(t,n)=>{const i=K.forwardRef(({className:s,...l},c)=>K.createElement(AP,{ref:c,iconNode:n,className:Wv(`lucide-${PP(Vy(t))}`,`lucide-${t}`,s),...l}));return i.displayName=Vy(t),i};/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _P=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],NP=Ze("arrow-right",_P);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RP=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Hv=Ze("brain",RP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],By=Ze("check",FP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],zy=Ze("circle-alert",bP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OP=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Uy=Ze("circle-check-big",OP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MP=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],qv=Ze("cpu",MP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jP=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],DP=Ze("database",jP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],$y=Ze("file-image",IP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],VP=Ze("file-text",LP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BP=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],zP=Ze("gift",BP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UP=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Wy=Ze("lock",UP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $P=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],fc=Ze("message-square",$P);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const WP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],HP=Ze("shield",WP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qP=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Fd=Ze("sparkles",qP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const KP=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],Kv=Ze("trending-down",KP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const GP=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],QP=Ze("trending-up",GP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const XP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],YP=Ze("upload",XP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JP=[["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"}]],Gv=Ze("users",JP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ZP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],eT=Ze("x",ZP);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ia=Ze("zap",tT);function nT({onNext:t}){const[n,i]=K.useState(1e3),[s,l]=K.useState(""),c="你的企业,正在为「低效」支付多少冤枉钱?";return K.useEffect(()=>{let u=0;const d=setInterval(()=>{u<=c.length?(l(c.slice(0,u)),u++):clearInterval(d)},80);return()=>clearInterval(d)},[]),K.useEffect(()=>{const u=setInterval(()=>{i(d=>d+Math.floor(Math.random()*3))},2e3);return()=>clearInterval(u)},[]),E.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative overflow-hidden",children:[E.jsx(J.div,{className:"absolute top-1/4 left-1/4 w-64 h-64 bg-[#7B61FF]/20 rounded-full blur-3xl",animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),E.jsx(J.div,{className:"absolute bottom-1/4 right-1/4 w-64 h-64 bg-[#00F0FF]/20 rounded-full blur-3xl",animate:{scale:[1.2,1,1.2],opacity:[.3,.5,.3]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),E.jsxs(J.div,{className:"mb-12 relative",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:1,type:"spring"},children:[E.jsxs(J.div,{className:"relative w-32 h-32 flex items-center justify-center",animate:{scale:[1,1.1,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},children:[E.jsx(J.div,{className:"absolute inset-0 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full blur-2xl",animate:{opacity:[.3,.8,.3],scale:[.8,1.2,.8]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}}),E.jsx("div",{className:"relative z-10 w-24 h-24 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",children:E.jsx(Hv,{className:"w-14 h-14 text-white"})}),[{Icon:Fd,delay:0,color:"#00F0FF"},{Icon:qv,delay:1,color:"#7B61FF"},{Icon:DP,delay:2,color:"#00F0FF"},{Icon:Ia,delay:3,color:"#7B61FF"}].map((u,d)=>E.jsx(J.div,{className:"absolute top-1/2 left-1/2 w-10 h-10 -ml-5 -mt-5",animate:{rotate:[0,360]},transition:{duration:8,repeat:1/0,ease:"linear",delay:u.delay*2},children:E.jsx(J.div,{className:"absolute",style:{transform:`translateX(70px) rotate(-${d*90}deg)`},animate:{rotate:[0,-360]},transition:{duration:8,repeat:1/0,ease:"linear",delay:u.delay*2},children:E.jsx(J.div,{className:"w-10 h-10 bg-[#0A0F24] border-2 rounded-full flex items-center justify-center",style:{borderColor:u.color},animate:{boxShadow:[`0 0 10px ${u.color}40`,`0 0 20px ${u.color}80`,`0 0 10px ${u.color}40`]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:E.jsx(u.Icon,{className:"w-5 h-5",style:{color:u.color}})})})},d))]}),Array.from({length:8}).map((u,d)=>E.jsx(J.div,{className:"absolute w-1 h-1 bg-[#00F0FF] rounded-full",style:{left:"50%",top:"50%"},animate:{x:[0,Math.cos(d*45*Math.PI/180)*100],y:[0,Math.sin(d*45*Math.PI/180)*100],opacity:[0,1,0],scale:[0,1,0]},transition:{duration:2,repeat:1/0,delay:d*.2,ease:"easeOut"}},d))]}),E.jsxs(J.h1,{className:"text-3xl md:text-4xl text-center mb-6 min-h-[6rem] px-4",initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5},children:[s,E.jsx(J.span,{className:"inline-block w-1 h-8 bg-[#00F0FF] ml-1 align-middle",animate:{opacity:[1,0,1]},transition:{duration:.8,repeat:1/0}})]}),E.jsxs(J.p,{className:"text-center text-gray-300 mb-8 px-4 max-w-xl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:2.5},children:["AI时代,1个懂AI的员工 > 5个传统员工",E.jsx("br",{}),"上传组织架构图,AI一键测算你的",E.jsx("span",{className:"text-[#00F0FF]",children:"隐形降本空间"})]}),E.jsxs(J.div,{className:"flex items-center gap-2 mb-12 bg-white/5 backdrop-blur-sm border border-[#00F0FF]/30 rounded-full px-6 py-3",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:3},children:[E.jsx(Ia,{className:"w-5 h-5 text-[#00F0FF]"}),E.jsx("span",{className:"text-gray-300",children:"今日已有"}),E.jsx(J.span,{className:"text-[#00F0FF] text-xl",initial:{y:-10,opacity:0},animate:{y:0,opacity:1},children:n.toLocaleString()},n),E.jsx("span",{className:"text-gray-300",children:"位老板获取了降本方案"})]}),E.jsxs(J.button,{className:"relative px-12 py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-full overflow-hidden group",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:3.5},onClick:t,children:[E.jsx(J.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent",animate:{x:["-100%","200%"]},transition:{duration:2,repeat:1/0,repeatDelay:1}}),E.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:["立即测算能省多少钱",E.jsx(Kv,{className:"w-5 h-5"})]})]}),E.jsxs(J.div,{className:"mt-12 flex gap-6 text-xs text-gray-400",initial:{opacity:0},animate:{opacity:1},transition:{delay:4},children:[E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),E.jsx("span",{children:"银行级加密"})]}),E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),E.jsx("span",{children:"3秒出结果"})]}),E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),E.jsx("span",{children:"数据即时销毁"})]})]})]})}function Qv(t,n){return function(){return t.apply(n,arguments)}}const{toString:rT}=Object.prototype,{getPrototypeOf:bd}=Object,{iterator:Ga,toStringTag:Xv}=Symbol,Qa=(t=>n=>{const i=rT.call(n);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),pn=t=>(t=t.toLowerCase(),n=>Qa(n)===t),Xa=t=>n=>typeof n===t,{isArray:Di}=Array,Ni=Xa("undefined");function Ko(t){return t!==null&&!Ni(t)&&t.constructor!==null&&!Ni(t.constructor)&&Dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Yv=pn("ArrayBuffer");function iT(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Yv(t.buffer),n}const oT=Xa("string"),Dt=Xa("function"),Jv=Xa("number"),Go=t=>t!==null&&typeof t=="object",sT=t=>t===!0||t===!1,Ta=t=>{if(Qa(t)!=="object")return!1;const n=bd(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Xv in t)&&!(Ga in t)},aT=t=>{if(!Go(t)||Ko(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},lT=pn("Date"),uT=pn("File"),cT=pn("Blob"),fT=pn("FileList"),dT=t=>Go(t)&&Dt(t.pipe),pT=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||Dt(t.append)&&((n=Qa(t))==="formdata"||n==="object"&&Dt(t.toString)&&t.toString()==="[object FormData]"))},hT=pn("URLSearchParams"),[mT,yT,gT,vT]=["ReadableStream","Request","Response","Headers"].map(pn),xT=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(t,n,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let s,l;if(typeof t!="object"&&(t=[t]),Di(t))for(s=0,l=t.length;s0;)if(l=i[s],n===l.toLowerCase())return l;return null}const Br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,e1=t=>!Ni(t)&&t!==Br;function Mf(){const{caseless:t,skipUndefined:n}=e1(this)&&this||{},i={},s=(l,c)=>{const u=t&&Zv(i,c)||c;Ta(i[u])&&Ta(l)?i[u]=Mf(i[u],l):Ta(l)?i[u]=Mf({},l):Di(l)?i[u]=l.slice():(!n||!Ni(l))&&(i[u]=l)};for(let l=0,c=arguments.length;l(Qo(n,(l,c)=>{i&&Dt(l)?t[c]=Qv(l,i):t[c]=l},{allOwnKeys:s}),t),ST=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ET=(t,n,i,s)=>{t.prototype=Object.create(n.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},kT=(t,n,i,s)=>{let l,c,u;const d={};if(n=n||{},t==null)return n;do{for(l=Object.getOwnPropertyNames(t),c=l.length;c-- >0;)u=l[c],(!s||s(u,t,n))&&!d[u]&&(n[u]=t[u],d[u]=!0);t=i!==!1&&bd(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},PT=(t,n,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=n.length;const s=t.indexOf(n,i);return s!==-1&&s===i},TT=t=>{if(!t)return null;if(Di(t))return t;let n=t.length;if(!Jv(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=t[n];return i},CT=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&bd(Uint8Array)),AT=(t,n)=>{const s=(t&&t[Ga]).call(t);let l;for(;(l=s.next())&&!l.done;){const c=l.value;n.call(t,c[0],c[1])}},_T=(t,n)=>{let i;const s=[];for(;(i=t.exec(n))!==null;)s.push(i);return s},NT=pn("HTMLFormElement"),RT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,l){return s.toUpperCase()+l}),Hy=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),FT=pn("RegExp"),t1=(t,n)=>{const i=Object.getOwnPropertyDescriptors(t),s={};Qo(i,(l,c)=>{let u;(u=n(l,c,t))!==!1&&(s[c]=u||l)}),Object.defineProperties(t,s)},bT=t=>{t1(t,(n,i)=>{if(Dt(t)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=t[i];if(Dt(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},OT=(t,n)=>{const i={},s=l=>{l.forEach(c=>{i[c]=!0})};return Di(t)?s(t):s(String(t).split(n)),i},MT=()=>{},jT=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function DT(t){return!!(t&&Dt(t.append)&&t[Xv]==="FormData"&&t[Ga])}const IT=t=>{const n=new Array(10),i=(s,l)=>{if(Go(s)){if(n.indexOf(s)>=0)return;if(Ko(s))return s;if(!("toJSON"in s)){n[l]=s;const c=Di(s)?[]:{};return Qo(s,(u,d)=>{const m=i(u,l+1);!Ni(m)&&(c[d]=m)}),n[l]=void 0,c}}return s};return i(t,0)},LT=pn("AsyncFunction"),VT=t=>t&&(Go(t)||Dt(t))&&Dt(t.then)&&Dt(t.catch),n1=((t,n)=>t?setImmediate:n?((i,s)=>(Br.addEventListener("message",({source:l,data:c})=>{l===Br&&c===i&&s.length&&s.shift()()},!1),l=>{s.push(l),Br.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Dt(Br.postMessage)),BT=typeof queueMicrotask<"u"?queueMicrotask.bind(Br):typeof process<"u"&&process.nextTick||n1,zT=t=>t!=null&&Dt(t[Ga]),$={isArray:Di,isArrayBuffer:Yv,isBuffer:Ko,isFormData:pT,isArrayBufferView:iT,isString:oT,isNumber:Jv,isBoolean:sT,isObject:Go,isPlainObject:Ta,isEmptyObject:aT,isReadableStream:mT,isRequest:yT,isResponse:gT,isHeaders:vT,isUndefined:Ni,isDate:lT,isFile:uT,isBlob:cT,isRegExp:FT,isFunction:Dt,isStream:dT,isURLSearchParams:hT,isTypedArray:CT,isFileList:fT,forEach:Qo,merge:Mf,extend:wT,trim:xT,stripBOM:ST,inherits:ET,toFlatObject:kT,kindOf:Qa,kindOfTest:pn,endsWith:PT,toArray:TT,forEachEntry:AT,matchAll:_T,isHTMLForm:NT,hasOwnProperty:Hy,hasOwnProp:Hy,reduceDescriptors:t1,freezeMethods:bT,toObjectSet:OT,toCamelCase:RT,noop:MT,toFiniteNumber:jT,findKey:Zv,global:Br,isContextDefined:e1,isSpecCompliantForm:DT,toJSONObject:IT,isAsyncFn:LT,isThenable:VT,setImmediate:n1,asap:BT,isIterable:zT};function ke(t,n,i,s,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),s&&(this.request=s),l&&(this.response=l,this.status=l.status?l.status:null)}$.inherits(ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const r1=ke.prototype,i1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{i1[t]={value:t}});Object.defineProperties(ke,i1);Object.defineProperty(r1,"isAxiosError",{value:!0});ke.from=(t,n,i,s,l,c)=>{const u=Object.create(r1);$.toFlatObject(t,u,function(h){return h!==Error.prototype},y=>y!=="isAxiosError");const d=t&&t.message?t.message:"Error",m=n==null&&t?t.code:n;return ke.call(u,d,m,i,s,l),t&&u.cause==null&&Object.defineProperty(u,"cause",{value:t,configurable:!0}),u.name=t&&t.name||"Error",c&&Object.assign(u,c),u};const UT=null;function jf(t){return $.isPlainObject(t)||$.isArray(t)}function o1(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function qy(t,n,i){return t?t.concat(n).map(function(l,c){return l=o1(l),!i&&c?"["+l+"]":l}).join(i?".":""):n}function $T(t){return $.isArray(t)&&!t.some(jf)}const WT=$.toFlatObject($,{},null,function(n){return/^is[A-Z]/.test(n)});function Ya(t,n,i){if(!$.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,i=$.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,S){return!$.isUndefined(S[T])});const s=i.metaTokens,l=i.visitor||h,c=i.dots,u=i.indexes,m=(i.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(n);if(!$.isFunction(l))throw new TypeError("visitor must be a function");function y(k){if(k===null)return"";if($.isDate(k))return k.toISOString();if($.isBoolean(k))return k.toString();if(!m&&$.isBlob(k))throw new ke("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(k)||$.isTypedArray(k)?m&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function h(k,T,S){let _=k;if(k&&!S&&typeof k=="object"){if($.endsWith(T,"{}"))T=s?T:T.slice(0,-2),k=JSON.stringify(k);else if($.isArray(k)&&$T(k)||($.isFileList(k)||$.endsWith(T,"[]"))&&(_=$.toArray(k)))return T=o1(T),_.forEach(function(b,I){!($.isUndefined(b)||b===null)&&n.append(u===!0?qy([T],I,c):u===null?T:T+"[]",y(b))}),!1}return jf(k)?!0:(n.append(qy(S,T,c),y(k)),!1)}const x=[],w=Object.assign(WT,{defaultVisitor:h,convertValue:y,isVisitable:jf});function P(k,T){if(!$.isUndefined(k)){if(x.indexOf(k)!==-1)throw Error("Circular reference detected in "+T.join("."));x.push(k),$.forEach(k,function(_,N){(!($.isUndefined(_)||_===null)&&l.call(n,_,$.isString(N)?N.trim():N,T,w))===!0&&P(_,T?T.concat(N):[N])}),x.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return P(t),n}function Ky(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function Od(t,n){this._pairs=[],t&&Ya(t,this,n)}const s1=Od.prototype;s1.append=function(n,i){this._pairs.push([n,i])};s1.toString=function(n){const i=n?function(s){return n.call(this,s,Ky)}:Ky;return this._pairs.map(function(l){return i(l[0])+"="+i(l[1])},"").join("&")};function HT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function a1(t,n,i){if(!n)return t;const s=i&&i.encode||HT;$.isFunction(i)&&(i={serialize:i});const l=i&&i.serialize;let c;if(l?c=l(n,i):c=$.isURLSearchParams(n)?n.toString():new Od(n,i).toString(s),c){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class Gy{constructor(){this.handlers=[]}use(n,i,s){return this.handlers.push({fulfilled:n,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){$.forEach(this.handlers,function(s){s!==null&&n(s)})}}const l1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qT=typeof URLSearchParams<"u"?URLSearchParams:Od,KT=typeof FormData<"u"?FormData:null,GT=typeof Blob<"u"?Blob:null,QT={isBrowser:!0,classes:{URLSearchParams:qT,FormData:KT,Blob:GT},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",Df=typeof navigator=="object"&&navigator||void 0,XT=Md&&(!Df||["ReactNative","NativeScript","NS"].indexOf(Df.product)<0),YT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JT=Md&&window.location.href||"http://localhost",ZT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:XT,hasStandardBrowserWebWorkerEnv:YT,navigator:Df,origin:JT},Symbol.toStringTag,{value:"Module"})),vt={...ZT,...QT};function eC(t,n){return Ya(t,new vt.classes.URLSearchParams,{visitor:function(i,s,l,c){return vt.isNode&&$.isBuffer(i)?(this.append(s,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...n})}function tC(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function nC(t){const n={},i=Object.keys(t);let s;const l=i.length;let c;for(s=0;s=i.length;return u=!u&&$.isArray(l)?l.length:u,m?($.hasOwnProp(l,u)?l[u]=[l[u],s]:l[u]=s,!d):((!l[u]||!$.isObject(l[u]))&&(l[u]=[]),n(i,s,l[u],c)&&$.isArray(l[u])&&(l[u]=nC(l[u])),!d)}if($.isFormData(t)&&$.isFunction(t.entries)){const i={};return $.forEachEntry(t,(s,l)=>{n(tC(s),l,i,0)}),i}return null}function rC(t,n,i){if($.isString(t))try{return(n||JSON.parse)(t),$.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(i||JSON.stringify)(t)}const Xo={transitional:l1,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const s=i.getContentType()||"",l=s.indexOf("application/json")>-1,c=$.isObject(n);if(c&&$.isHTMLForm(n)&&(n=new FormData(n)),$.isFormData(n))return l?JSON.stringify(u1(n)):n;if($.isArrayBuffer(n)||$.isBuffer(n)||$.isStream(n)||$.isFile(n)||$.isBlob(n)||$.isReadableStream(n))return n;if($.isArrayBufferView(n))return n.buffer;if($.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let d;if(c){if(s.indexOf("application/x-www-form-urlencoded")>-1)return eC(n,this.formSerializer).toString();if((d=$.isFileList(n))||s.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ya(d?{"files[]":n}:n,m&&new m,this.formSerializer)}}return c||l?(i.setContentType("application/json",!1),rC(n)):n}],transformResponse:[function(n){const i=this.transitional||Xo.transitional,s=i&&i.forcedJSONParsing,l=this.responseType==="json";if($.isResponse(n)||$.isReadableStream(n))return n;if(n&&$.isString(n)&&(s&&!this.responseType||l)){const u=!(i&&i.silentJSONParsing)&&l;try{return JSON.parse(n,this.parseReviver)}catch(d){if(u)throw d.name==="SyntaxError"?ke.from(d,ke.ERR_BAD_RESPONSE,this,null,this.response):d}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{Xo.headers[t]={}});const iC=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oC=t=>{const n={};let i,s,l;return t&&t.split(` `).forEach(function(u){l=u.indexOf(":"),i=u.substring(0,l).trim().toLowerCase(),s=u.substring(l+1).trim(),!(!i||n[i]&&iC[i])&&(i==="set-cookie"?n[i]?n[i].push(s):n[i]=[s]:n[i]=n[i]?n[i]+", "+s:s)}),n},Qy=Symbol("internals");function _o(t){return t&&String(t).trim().toLowerCase()}function Ca(t){return t===!1||t==null?t:$.isArray(t)?t.map(Ca):String(t)}function sC(t){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(t);)n[s[1]]=s[2];return n}const aC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function dc(t,n,i,s,l){if($.isFunction(s))return s.call(this,n,i);if(l&&(n=i),!!$.isString(n)){if($.isString(s))return n.indexOf(s)!==-1;if($.isRegExp(s))return s.test(n)}}function lC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,s)=>i.toUpperCase()+s)}function uC(t,n){const i=$.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+i,{value:function(l,c,u){return this[s].call(this,n,l,c,u)},configurable:!0})})}let It=class{constructor(n){n&&this.set(n)}set(n,i,s){const l=this;function c(d,m,y){const h=_o(m);if(!h)throw new Error("header name must be a non-empty string");const x=$.findKey(l,h);(!x||l[x]===void 0||y===!0||y===void 0&&l[x]!==!1)&&(l[x||m]=Ca(d))}const u=(d,m)=>$.forEach(d,(y,h)=>c(y,h,m));if($.isPlainObject(n)||n instanceof this.constructor)u(n,i);else if($.isString(n)&&(n=n.trim())&&!aC(n))u(oC(n),i);else if($.isObject(n)&&$.isIterable(n)){let d={},m,y;for(const h of n){if(!$.isArray(h))throw TypeError("Object iterator must return a key-value pair");d[y=h[0]]=(m=d[y])?$.isArray(m)?[...m,h[1]]:[m,h[1]]:h[1]}u(d,i)}else n!=null&&c(i,n,s);return this}get(n,i){if(n=_o(n),n){const s=$.findKey(this,n);if(s){const l=this[s];if(!i)return l;if(i===!0)return sC(l);if($.isFunction(i))return i.call(this,l,s);if($.isRegExp(i))return i.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=_o(n),n){const s=$.findKey(this,n);return!!(s&&this[s]!==void 0&&(!i||dc(this,this[s],s,i)))}return!1}delete(n,i){const s=this;let l=!1;function c(u){if(u=_o(u),u){const d=$.findKey(s,u);d&&(!i||dc(s,s[d],d,i))&&(delete s[d],l=!0)}}return $.isArray(n)?n.forEach(c):c(n),l}clear(n){const i=Object.keys(this);let s=i.length,l=!1;for(;s--;){const c=i[s];(!n||dc(this,this[c],c,n,!0))&&(delete this[c],l=!0)}return l}normalize(n){const i=this,s={};return $.forEach(this,(l,c)=>{const u=$.findKey(s,c);if(u){i[u]=Ca(l),delete i[c];return}const d=n?lC(c):String(c).trim();d!==c&&delete i[c],i[d]=Ca(l),s[d]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return $.forEach(this,(s,l)=>{s!=null&&s!==!1&&(i[l]=n&&$.isArray(s)?s.join(", "):s)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const s=new this(n);return i.forEach(l=>s.set(l)),s}static accessor(n){const s=(this[Qy]=this[Qy]={accessors:{}}).accessors,l=this.prototype;function c(u){const d=_o(u);s[d]||(uC(l,u),s[d]=!0)}return $.isArray(n)?n.forEach(c):c(n),this}};It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(It.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(s){this[i]=s}}});$.freezeMethods(It);function pc(t,n){const i=this||Xo,s=n||i,l=It.from(s.headers);let c=s.data;return $.forEach(t,function(d){c=d.call(i,c,l.normalize(),n?n.status:void 0)}),l.normalize(),c}function c1(t){return!!(t&&t.__CANCEL__)}function Ii(t,n,i){ke.call(this,t??"canceled",ke.ERR_CANCELED,n,i),this.name="CanceledError"}$.inherits(Ii,ke,{__CANCEL__:!0});function f1(t,n,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?t(i):n(new ke("Request failed with status code "+i.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function cC(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function fC(t,n){t=t||10;const i=new Array(t),s=new Array(t);let l=0,c=0,u;return n=n!==void 0?n:1e3,function(m){const y=Date.now(),h=s[c];u||(u=y),i[l]=m,s[l]=y;let x=c,w=0;for(;x!==l;)w+=i[x++],x=x%t;if(l=(l+1)%t,l===c&&(c=(c+1)%t),y-u{i=h,l=null,c&&(clearTimeout(c),c=null),t(...y)};return[(...y)=>{const h=Date.now(),x=h-i;x>=s?u(y,h):(l=y,c||(c=setTimeout(()=>{c=null,u(l)},s-x)))},()=>l&&u(l)]}const La=(t,n,i=3)=>{let s=0;const l=fC(50,250);return dC(c=>{const u=c.loaded,d=c.lengthComputable?c.total:void 0,m=u-s,y=l(m),h=u<=d;s=u;const x={loaded:u,total:d,progress:d?u/d:void 0,bytes:m,rate:y||void 0,estimated:y&&d&&h?(d-u)/y:void 0,event:c,lengthComputable:d!=null,[n?"download":"upload"]:!0};t(x)},i)},Xy=(t,n)=>{const i=t!=null;return[s=>n[0]({lengthComputable:i,total:t,loaded:s}),n[1]]},Yy=t=>(...n)=>$.asap(()=>t(...n)),pC=vt.hasStandardBrowserEnv?((t,n)=>i=>(i=new URL(i,vt.origin),t.protocol===i.protocol&&t.host===i.host&&(n||t.port===i.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,hC=vt.hasStandardBrowserEnv?{write(t,n,i,s,l,c,u){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(n)}`];$.isNumber(i)&&d.push(`expires=${new Date(i).toUTCString()}`),$.isString(s)&&d.push(`path=${s}`),$.isString(l)&&d.push(`domain=${l}`),c===!0&&d.push("secure"),$.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mC(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function yC(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function d1(t,n,i){let s=!mC(n);return t&&(s||i==!1)?yC(t,n):n}const Jy=t=>t instanceof It?{...t}:t;function Wr(t,n){n=n||{};const i={};function s(y,h,x,w){return $.isPlainObject(y)&&$.isPlainObject(h)?$.merge.call({caseless:w},y,h):$.isPlainObject(h)?$.merge({},h):$.isArray(h)?h.slice():h}function l(y,h,x,w){if($.isUndefined(h)){if(!$.isUndefined(y))return s(void 0,y,x,w)}else return s(y,h,x,w)}function c(y,h){if(!$.isUndefined(h))return s(void 0,h)}function u(y,h){if($.isUndefined(h)){if(!$.isUndefined(y))return s(void 0,y)}else return s(void 0,h)}function d(y,h,x){if(x in n)return s(y,h);if(x in t)return s(void 0,y)}const m={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(y,h,x)=>l(Jy(y),Jy(h),x,!0)};return $.forEach(Object.keys({...t,...n}),function(h){const x=m[h]||l,w=x(t[h],n[h],h);$.isUndefined(w)&&x!==d||(i[h]=w)}),i}const p1=t=>{const n=Wr({},t);let{data:i,withXSRFToken:s,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:d}=n;if(n.headers=u=It.from(u),n.url=a1(d1(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),$.isFormData(i)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if($.isFunction(i.getHeaders)){const m=i.getHeaders(),y=["content-type","content-length"];Object.entries(m).forEach(([h,x])=>{y.includes(h.toLowerCase())&&u.set(h,x)})}}if(vt.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(n)),s||s!==!1&&pC(n.url))){const m=l&&c&&hC.read(c);m&&u.set(l,m)}return n},gC=typeof XMLHttpRequest<"u",vC=gC&&function(t){return new Promise(function(i,s){const l=p1(t);let c=l.data;const u=It.from(l.headers).normalize();let{responseType:d,onUploadProgress:m,onDownloadProgress:y}=l,h,x,w,P,k;function T(){P&&P(),k&&k(),l.cancelToken&&l.cancelToken.unsubscribe(h),l.signal&&l.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(l.method.toUpperCase(),l.url,!0),S.timeout=l.timeout;function _(){if(!S)return;const b=It.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),W={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:b,config:t,request:S};f1(function(H){i(H),T()},function(H){s(H),T()},W),S=null}"onloadend"in S?S.onloadend=_:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(_)},S.onabort=function(){S&&(s(new ke("Request aborted",ke.ECONNABORTED,t,S)),S=null)},S.onerror=function(I){const W=I&&I.message?I.message:"Network Error",q=new ke(W,ke.ERR_NETWORK,t,S);q.event=I||null,s(q),S=null},S.ontimeout=function(){let I=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const W=l.transitional||l1;l.timeoutErrorMessage&&(I=l.timeoutErrorMessage),s(new ke(I,W.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,t,S)),S=null},c===void 0&&u.setContentType(null),"setRequestHeader"in S&&$.forEach(u.toJSON(),function(I,W){S.setRequestHeader(W,I)}),$.isUndefined(l.withCredentials)||(S.withCredentials=!!l.withCredentials),d&&d!=="json"&&(S.responseType=l.responseType),y&&([w,k]=La(y,!0),S.addEventListener("progress",w)),m&&S.upload&&([x,P]=La(m),S.upload.addEventListener("progress",x),S.upload.addEventListener("loadend",P)),(l.cancelToken||l.signal)&&(h=b=>{S&&(s(!b||b.type?new Ii(null,t,S):b),S.abort(),S=null)},l.cancelToken&&l.cancelToken.subscribe(h),l.signal&&(l.signal.aborted?h():l.signal.addEventListener("abort",h)));const N=cC(l.url);if(N&&vt.protocols.indexOf(N)===-1){s(new ke("Unsupported protocol "+N+":",ke.ERR_BAD_REQUEST,t));return}S.send(c||null)})},xC=(t,n)=>{const{length:i}=t=t?t.filter(Boolean):[];if(n||i){let s=new AbortController,l;const c=function(y){if(!l){l=!0,d();const h=y instanceof Error?y:this.reason;s.abort(h instanceof ke?h:new Ii(h instanceof Error?h.message:h))}};let u=n&&setTimeout(()=>{u=null,c(new ke(`timeout ${n} of ms exceeded`,ke.ETIMEDOUT))},n);const d=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach(y=>{y.unsubscribe?y.unsubscribe(c):y.removeEventListener("abort",c)}),t=null)};t.forEach(y=>y.addEventListener("abort",c));const{signal:m}=s;return m.unsubscribe=()=>$.asap(d),m}},wC=function*(t,n){let i=t.byteLength;if(i{const l=SC(t,n);let c=0,u,d=m=>{u||(u=!0,s&&s(m))};return new ReadableStream({async pull(m){try{const{done:y,value:h}=await l.next();if(y){d(),m.close();return}let x=h.byteLength;if(i){let w=c+=x;i(w)}m.enqueue(new Uint8Array(h))}catch(y){throw d(y),y}},cancel(m){return d(m),l.return()}},{highWaterMark:2})},eg=64*1024,{isFunction:va}=$,kC=(({Request:t,Response:n})=>({Request:t,Response:n}))($.global),{ReadableStream:tg,TextEncoder:ng}=$.global,rg=(t,...n)=>{try{return!!t(...n)}catch{return!1}},PC=t=>{t=$.merge.call({skipUndefined:!0},kC,t);const{fetch:n,Request:i,Response:s}=t,l=n?va(n):typeof fetch=="function",c=va(i),u=va(s);if(!l)return!1;const d=l&&va(tg),m=l&&(typeof ng=="function"?(k=>T=>k.encode(T))(new ng):async k=>new Uint8Array(await new i(k).arrayBuffer())),y=c&&d&&rg(()=>{let k=!1;const T=new i(vt.origin,{body:new tg,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!T}),h=u&&d&&rg(()=>$.isReadableStream(new s("").body)),x={stream:h&&(k=>k.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!x[k]&&(x[k]=(T,S)=>{let _=T&&T[k];if(_)return _.call(T);throw new ke(`Response type '${k}' is not supported`,ke.ERR_NOT_SUPPORT,S)})});const w=async k=>{if(k==null)return 0;if($.isBlob(k))return k.size;if($.isSpecCompliantForm(k))return(await new i(vt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if($.isArrayBufferView(k)||$.isArrayBuffer(k))return k.byteLength;if($.isURLSearchParams(k)&&(k=k+""),$.isString(k))return(await m(k)).byteLength},P=async(k,T)=>{const S=$.toFiniteNumber(k.getContentLength());return S??w(T)};return async k=>{let{url:T,method:S,data:_,signal:N,cancelToken:b,timeout:I,onDownloadProgress:W,onUploadProgress:q,responseType:H,headers:D,withCredentials:ne="same-origin",fetchOptions:te}=p1(k),he=n||fetch;H=H?(H+"").toLowerCase():"text";let re=xC([N,b&&b.toAbortSignal()],I),Se=null;const ge=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let _e;try{if(q&&y&&S!=="get"&&S!=="head"&&(_e=await P(D,_))!==0){let A=new i(T,{method:"POST",body:_,duplex:"half"}),U;if($.isFormData(_)&&(U=A.headers.get("content-type"))&&D.setContentType(U),A.body){const[ee,oe]=Xy(_e,La(Yy(q)));_=Zy(A.body,eg,ee,oe)}}$.isString(ne)||(ne=ne?"include":"omit");const Pe=c&&"credentials"in i.prototype,le={...te,signal:re,method:S.toUpperCase(),headers:D.normalize().toJSON(),body:_,duplex:"half",credentials:Pe?ne:void 0};Se=c&&new i(T,le);let g=await(c?he(Se,te):he(T,le));const O=h&&(H==="stream"||H==="response");if(h&&(W||O&&ge)){const A={};["status","statusText","headers"].forEach(Z=>{A[Z]=g[Z]});const U=$.toFiniteNumber(g.headers.get("content-length")),[ee,oe]=W&&Xy(U,La(Yy(W),!0))||[];g=new s(Zy(g.body,eg,ee,()=>{oe&&oe(),ge&&ge()}),A)}H=H||"text";let M=await x[$.findKey(x,H)||"text"](g,k);return!O&&ge&&ge(),await new Promise((A,U)=>{f1(A,U,{data:M,headers:It.from(g.headers),status:g.status,statusText:g.statusText,config:k,request:Se})})}catch(Pe){throw ge&&ge(),Pe&&Pe.name==="TypeError"&&/Load failed|fetch/i.test(Pe.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,k,Se),{cause:Pe.cause||Pe}):ke.from(Pe,Pe&&Pe.code,k,Se)}}},TC=new Map,h1=t=>{let n=t&&t.env||{};const{fetch:i,Request:s,Response:l}=n,c=[s,l,i];let u=c.length,d=u,m,y,h=TC;for(;d--;)m=c[d],y=h.get(m),y===void 0&&h.set(m,y=d?new Map:PC(n)),h=y;return y};h1();const jd={http:UT,xhr:vC,fetch:{get:h1}};$.forEach(jd,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const ig=t=>`- ${t}`,CC=t=>$.isFunction(t)||t===null||t===!1;function AC(t,n){t=$.isArray(t)?t:[t];const{length:i}=t;let s,l;const c={};for(let u=0;u`adapter ${m} `+(y===!1?"is not supported by the environment":"is not available in the build"));let d=i?u.length>1?`since : `+u.map(ig).join(` `):" "+ig(u[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return l}const m1={getAdapter:AC,adapters:jd};function hc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ii(null,t)}function og(t){return hc(t),t.headers=It.from(t.headers),t.data=pc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),m1.getAdapter(t.adapter||Xo.adapter,t)(t).then(function(s){return hc(t),s.data=pc.call(t,t.transformResponse,s),s.headers=It.from(s.headers),s},function(s){return c1(s)||(hc(t),s&&s.response&&(s.response.data=pc.call(t,t.transformResponse,s.response),s.response.headers=It.from(s.response.headers))),Promise.reject(s)})}const y1="1.13.2",Ja={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Ja[t]=function(s){return typeof s===t||"a"+(n<1?"n ":" ")+t}});const sg={};Ja.transitional=function(n,i,s){function l(c,u){return"[Axios v"+y1+"] Transitional option '"+c+"'"+u+(s?". "+s:"")}return(c,u,d)=>{if(n===!1)throw new ke(l(u," has been removed"+(i?" in "+i:"")),ke.ERR_DEPRECATED);return i&&!sg[u]&&(sg[u]=!0,console.warn(l(u," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(c,u,d):!0}};Ja.spelling=function(n){return(i,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function _C(t,n,i){if(typeof t!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let l=s.length;for(;l-- >0;){const c=s[l],u=n[c];if(u){const d=t[c],m=d===void 0||u(d,c,t);if(m!==!0)throw new ke("option "+c+" must be "+m,ke.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ke("Unknown option "+c,ke.ERR_BAD_OPTION)}}const Aa={assertOptions:_C,validators:Ja},kn=Aa.validators;let $r=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Gy,response:new Gy}}async request(n,i){try{return await this._request(n,i)}catch(s){if(s instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{s.stack?c&&!String(s.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(s.stack+=` `+c):s.stack=c}catch{}}throw s}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=Wr(this.defaults,i);const{transitional:s,paramsSerializer:l,headers:c}=i;s!==void 0&&Aa.assertOptions(s,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean)},!1),l!=null&&($.isFunction(l)?i.paramsSerializer={serialize:l}:Aa.assertOptions(l,{encode:kn.function,serialize:kn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Aa.assertOptions(i,{baseUrl:kn.spelling("baseURL"),withXsrfToken:kn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let u=c&&$.merge(c.common,c[i.method]);c&&$.forEach(["delete","get","head","post","put","patch","common"],k=>{delete c[k]}),i.headers=It.concat(u,c);const d=[];let m=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(i)===!1||(m=m&&T.synchronous,d.unshift(T.fulfilled,T.rejected))});const y=[];this.interceptors.response.forEach(function(T){y.push(T.fulfilled,T.rejected)});let h,x=0,w;if(!m){const k=[og.bind(this),void 0];for(k.unshift(...d),k.push(...y),w=k.length,h=Promise.resolve(i);x{if(!s._listeners)return;let c=s._listeners.length;for(;c-- >0;)s._listeners[c](l);s._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(d=>{s.subscribe(d),c=d}).then(l);return u.cancel=function(){s.unsubscribe(c)},u},n(function(c,u,d){s.reason||(s.reason=new Ii(c,u,d),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const n=new AbortController,i=s=>{n.abort(s)};return this.subscribe(i),n.signal.unsubscribe=()=>this.unsubscribe(i),n.signal}static source(){let n;return{token:new g1(function(l){n=l}),cancel:n}}};function RC(t){return function(i){return t.apply(null,i)}}function FC(t){return $.isObject(t)&&t.isAxiosError===!0}const If={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(If).forEach(([t,n])=>{If[n]=t});function v1(t){const n=new $r(t),i=Qv($r.prototype.request,n);return $.extend(i,$r.prototype,n,{allOwnKeys:!0}),$.extend(i,n,null,{allOwnKeys:!0}),i.create=function(l){return v1(Wr(t,l))},i}const Qe=v1(Xo);Qe.Axios=$r;Qe.CanceledError=Ii;Qe.CancelToken=NC;Qe.isCancel=c1;Qe.VERSION=y1;Qe.toFormData=Ya;Qe.AxiosError=ke;Qe.Cancel=Qe.CanceledError;Qe.all=function(n){return Promise.all(n)};Qe.spread=RC;Qe.isAxiosError=FC;Qe.mergeConfig=Wr;Qe.AxiosHeaders=It;Qe.formToJSON=t=>u1($.isHTMLForm(t)?new FormData(t):t);Qe.getAdapter=m1.getAdapter;Qe.HttpStatusCode=If;Qe.default=Qe;const{Axios:X_,AxiosError:Y_,CanceledError:J_,isCancel:Z_,CancelToken:eN,VERSION:tN,all:nN,Cancel:rN,isAxiosError:iN,spread:oN,toFormData:sN,AxiosHeaders:aN,HttpStatusCode:lN,formToJSON:uN,getAdapter:cN,mergeConfig:fN}=Qe;var mc,ag;function Li(){return ag||(ag=1,mc=TypeError),mc}const bC={},OC=Object.freeze(Object.defineProperty({__proto__:null,default:bC},Symbol.toStringTag,{value:"Module"})),MC=jw(OC);var yc,lg;function Za(){if(lg)return yc;lg=1;var t=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=t&&n&&typeof n.get=="function"?n.get:null,s=t&&Map.prototype.forEach,l=typeof Set=="function"&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&c&&typeof c.get=="function"?c.get:null,d=l&&Set.prototype.forEach,m=typeof WeakMap=="function"&&WeakMap.prototype,y=m?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,x=h?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,P=w?WeakRef.prototype.deref:null,k=Boolean.prototype.valueOf,T=Object.prototype.toString,S=Function.prototype.toString,_=String.prototype.match,N=String.prototype.slice,b=String.prototype.replace,I=String.prototype.toUpperCase,W=String.prototype.toLowerCase,q=RegExp.prototype.test,H=Array.prototype.concat,D=Array.prototype.join,ne=Array.prototype.slice,te=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_e=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge||!0)?Symbol.toStringTag:null,Pe=Object.prototype.propertyIsEnumerable,le=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(V){return V.__proto__}:null);function g(V,z){if(V===1/0||V===-1/0||V!==V||V&&V>-1e3&&V<1e3||q.call(/e/,z))return z;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof V=="number"){var Fe=V<0?-te(-V):te(V);if(Fe!==V){var Oe=String(Fe),we=N.call(z,Oe.length+1);return b.call(Oe,Ae,"$&_")+"."+b.call(b.call(we,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(z,Ae,"$&_")}var O=MC,M=O.custom,A=Xe(M)?M:null,U={__proto__:null,double:'"',single:"'"},ee={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};yc=function V(z,Ae,Fe,Oe){var we=Ae||{};if(ot(we,"quoteStyle")&&!ot(U,we.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ot(we,"maxStringLength")&&(typeof we.maxStringLength=="number"?we.maxStringLength<0&&we.maxStringLength!==1/0:we.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Et=ot(we,"customInspect")?we.customInspect:!0;if(typeof Et!="boolean"&&Et!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ot(we,"indent")&&we.indent!==null&&we.indent!==" "&&!(parseInt(we.indent,10)===we.indent&&we.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ot(we,"numericSeparator")&&typeof we.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var yn=we.numericSeparator;if(typeof z>"u")return"undefined";if(z===null)return"null";if(typeof z=="boolean")return z?"true":"false";if(typeof z=="string")return Hr(z,we);if(typeof z=="number"){if(z===0)return 1/0/z>0?"0":"-0";var pt=String(z);return yn?g(z,pt):pt}if(typeof z=="bigint"){var Jt=String(z)+"n";return yn?g(z,Jt):Jt}var Qr=typeof we.depth>"u"?5:we.depth;if(typeof Fe>"u"&&(Fe=0),Fe>=Qr&&Qr>0&&typeof z=="object")return Ce(z)?"[Array]":"[Object]";var Rn=ns(we,Fe);if(typeof Oe>"u")Oe=[];else if(_t(Oe,z)>=0)return"[Circular]";function kt(Fn,kr,ss){if(kr&&(Oe=ne.call(Oe),Oe.push(kr)),ss){var Hi={depth:we.depth};return ot(we,"quoteStyle")&&(Hi.quoteStyle=we.quoteStyle),V(Fn,Hi,Fe+1,Oe)}return V(Fn,we,Fe+1,Oe)}if(typeof z=="function"&&!Ee(z)){var Bi=hn(z),Gn=Gr(z,kt);return"[Function"+(Bi?": "+Bi:" (anonymous)")+"]"+(Gn.length>0?" { "+D.call(Gn,", ")+" }":"")}if(Xe(z)){var Xr=ge?b.call(String(z),/^(Symbol\(.*\))_[^)]*$/,"$1"):Se.call(z);return typeof z=="object"&&!ge?qn(Xr):Xr}if(ts(z)){for(var Zt="<"+W.call(String(z.nodeName)),zi=z.attributes||[],gn=0;gn",Zt}if(Ce(z)){if(z.length===0)return"[]";var Qn=Gr(z,kt);return Rn&&!cl(Qn)?"["+Kr(Qn,Rn)+"]":"[ "+D.call(Qn,", ")+" ]"}if(xe(z)){var Xn=Gr(z,kt);return!("cause"in Error.prototype)&&"cause"in z&&!Pe.call(z,"cause")?"{ ["+String(z)+"] "+D.call(H.call("[cause]: "+kt(z.cause),Xn),", ")+" }":Xn.length===0?"["+String(z)+"]":"{ ["+String(z)+"] "+D.call(Xn,", ")+" }"}if(typeof z=="object"&&Et){if(A&&typeof z[A]=="function"&&O)return O(z,{depth:Qr-Fe});if(Et!=="symbol"&&typeof z.inspect=="function")return z.inspect()}if(st(z)){var Yr=[];return s&&s.call(z,function(Fn,kr){Yr.push(kt(kr,z,!0)+" => "+kt(Fn,z))}),Kn("Map",i.call(z),Yr,Rn)}if(_n(z)){var rs=[];return d&&d.call(z,function(Fn){rs.push(kt(Fn,z))}),Kn("Set",u.call(z),rs,Rn)}if(mn(z))return Nn("WeakMap");if(es(z))return Nn("WeakSet");if(An(z))return Nn("WeakRef");if(be(z))return qn(kt(Number(z)));if(wt(z))return qn(kt(he.call(z)));if(Ve(z))return qn(k.call(z));if(je(z))return qn(kt(String(z)));if(typeof window<"u"&&z===window)return"{ [object Window] }";if(typeof globalThis<"u"&&z===globalThis||typeof ym<"u"&&z===ym)return"{ [object globalThis] }";if(!me(z)&&!Ee(z)){var Ui=Gr(z,kt),is=le?le(z)===Object.prototype:z instanceof Object||z.constructor===Object,en=z instanceof Object?"":"null prototype",$i=!is&&_e&&Object(z)===z&&_e in z?N.call(St(z),8,-1):en?"Object":"",os=is||typeof z.constructor!="function"?"":z.constructor.name?z.constructor.name+" ":"",Wi=os+($i||en?"["+D.call(H.call([],$i||[],en||[]),": ")+"] ":"");return Ui.length===0?Wi+"{}":Rn?Wi+"{"+Kr(Ui,Rn)+"}":Wi+"{ "+D.call(Ui,", ")+" }"}return String(z)};function oe(V,z,Ae){var Fe=Ae.quoteStyle||z,Oe=U[Fe];return Oe+V+Oe}function Z(V){return b.call(String(V),/"/g,""")}function fe(V){return!_e||!(typeof V=="object"&&(_e in V||typeof V[_e]<"u"))}function Ce(V){return St(V)==="[object Array]"&&fe(V)}function me(V){return St(V)==="[object Date]"&&fe(V)}function Ee(V){return St(V)==="[object RegExp]"&&fe(V)}function xe(V){return St(V)==="[object Error]"&&fe(V)}function je(V){return St(V)==="[object String]"&&fe(V)}function be(V){return St(V)==="[object Number]"&&fe(V)}function Ve(V){return St(V)==="[object Boolean]"&&fe(V)}function Xe(V){if(ge)return V&&typeof V=="object"&&V instanceof Symbol;if(typeof V=="symbol")return!0;if(!V||typeof V!="object"||!Se)return!1;try{return Se.call(V),!0}catch{}return!1}function wt(V){if(!V||typeof V!="object"||!he)return!1;try{return he.call(V),!0}catch{}return!1}var et=Object.prototype.hasOwnProperty||function(V){return V in this};function ot(V,z){return et.call(V,z)}function St(V){return T.call(V)}function hn(V){if(V.name)return V.name;var z=_.call(S.call(V),/^function\s*([\w$]+)/);return z?z[1]:null}function _t(V,z){if(V.indexOf)return V.indexOf(z);for(var Ae=0,Fe=V.length;Aez.maxStringLength){var Ae=V.length-z.maxStringLength,Fe="... "+Ae+" more character"+(Ae>1?"s":"");return Hr(N.call(V,0,z.maxStringLength),z)+Fe}var Oe=ee[z.quoteStyle||"single"];Oe.lastIndex=0;var we=b.call(b.call(V,Oe,"\\$1"),/[\x00-\x1f]/g,qr);return oe(we,"single",z)}function qr(V){var z=V.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[z];return Ae?"\\"+Ae:"\\x"+(z<16?"0":"")+I.call(z.toString(16))}function qn(V){return"Object("+V+")"}function Nn(V){return V+" { ? }"}function Kn(V,z,Ae,Fe){var Oe=Fe?Kr(Ae,Fe):D.call(Ae,", ");return V+" ("+z+") {"+Oe+"}"}function cl(V){for(var z=0;z=0)return!1;return!0}function ns(V,z){var Ae;if(V.indent===" ")Ae=" ";else if(typeof V.indent=="number"&&V.indent>0)Ae=D.call(Array(V.indent+1)," ");else return null;return{base:Ae,prev:D.call(Array(z+1),Ae)}}function Kr(V,z){if(V.length===0)return"";var Ae=` `+z.prev+z.base;return Ae+D.call(V,","+Ae)+` `+z.prev}function Gr(V,z){var Ae=Ce(V),Fe=[];if(Ae){Fe.length=V.length;for(var Oe=0;Oe"u"||!H?t:H(Uint8Array),ge={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":q&&H?H([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&H?H(H([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!H?t:H(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":l,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!H?t:H(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&H?H(""[Symbol.iterator]()):t,"%Symbol%":q?Symbol:t,"%SyntaxError%":u,"%ThrowTypeError%":W,"%TypedArray%":Se,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":he,"%Function.prototype.apply%":te,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":D,"%Math.abs%":y,"%Math.floor%":h,"%Math.max%":x,"%Math.min%":w,"%Math.pow%":P,"%Math.round%":k,"%Math.sign%":T,"%Reflect.getPrototypeOf%":ne};if(H)try{null.error}catch(Ee){var _e=H(H(Ee));ge["%Error.prototype%"]=_e}var Pe=function Ee(xe){var je;if(xe==="%AsyncFunction%")je=_("async function () {}");else if(xe==="%GeneratorFunction%")je=_("function* () {}");else if(xe==="%AsyncGeneratorFunction%")je=_("async function* () {}");else if(xe==="%AsyncGenerator%"){var be=Ee("%AsyncGeneratorFunction%");be&&(je=be.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var Ve=Ee("%AsyncGenerator%");Ve&&H&&(je=H(Ve.prototype))}return ge[xe]=je,je},le={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=el(),O=oA(),M=g.call(he,Array.prototype.concat),A=g.call(te,Array.prototype.splice),U=g.call(he,String.prototype.replace),ee=g.call(he,String.prototype.slice),oe=g.call(he,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,Ce=function(xe){var je=ee(xe,0,1),be=ee(xe,-1);if(je==="%"&&be!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(be==="%"&&je!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ve=[];return U(xe,Z,function(Xe,wt,et,ot){Ve[Ve.length]=et?U(ot,fe,"$1"):wt||Xe}),Ve},me=function(xe,je){var be=xe,Ve;if(O(le,be)&&(Ve=le[be],be="%"+Ve[0]+"%"),O(ge,be)){var Xe=ge[be];if(Xe===re&&(Xe=Pe(be)),typeof Xe>"u"&&!je)throw new d("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:Ve,name:be,value:Xe}}throw new u("intrinsic "+xe+" does not exist!")};return Xc=function(xe,je){if(typeof xe!="string"||xe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof je!="boolean")throw new d('"allowMissing" argument must be a boolean');if(oe(/^%?[^%]*%?$/,xe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var be=Ce(xe),Ve=be.length>0?be[0]:"",Xe=me("%"+Ve+"%",je),wt=Xe.name,et=Xe.value,ot=!1,St=Xe.alias;St&&(Ve=St[0],A(be,M([0,1],St)));for(var hn=1,_t=!0;hn=be.length){var _n=N(et,st);_t=!!_n,_t&&"get"in _n&&!("originalValue"in _n.get)?et=_n.get:et=et[st]}else _t=O(et,st),et=et[st];_t&&!ot&&(ge[wt]=et)}}return et},Xc}var Yc,$g;function T1(){if($g)return Yc;$g=1;var t=Id(),n=P1(),i=n([t("%String.prototype.indexOf%")]);return Yc=function(l,c){var u=t(l,!!c);return typeof u=="function"&&i(l,".prototype.")>-1?n([u]):u},Yc}var Jc,Wg;function C1(){if(Wg)return Jc;Wg=1;var t=Id(),n=T1(),i=Za(),s=Li(),l=t("%Map%",!0),c=n("Map.prototype.get",!0),u=n("Map.prototype.set",!0),d=n("Map.prototype.has",!0),m=n("Map.prototype.delete",!0),y=n("Map.prototype.size",!0);return Jc=!!l&&function(){var x,w={assert:function(P){if(!w.has(P))throw new s("Side channel does not contain "+i(P))},delete:function(P){if(x){var k=m(x,P);return y(x)===0&&(x=void 0),k}return!1},get:function(P){if(x)return c(x,P)},has:function(P){return x?d(x,P):!1},set:function(P,k){x||(x=new l),u(x,P,k)}};return w},Jc}var Zc,Hg;function sA(){if(Hg)return Zc;Hg=1;var t=Id(),n=T1(),i=Za(),s=C1(),l=Li(),c=t("%WeakMap%",!0),u=n("WeakMap.prototype.get",!0),d=n("WeakMap.prototype.set",!0),m=n("WeakMap.prototype.has",!0),y=n("WeakMap.prototype.delete",!0);return Zc=c?function(){var x,w,P={assert:function(k){if(!P.has(k))throw new l("Side channel does not contain "+i(k))},delete:function(k){if(c&&k&&(typeof k=="object"||typeof k=="function")){if(x)return y(x,k)}else if(s&&w)return w.delete(k);return!1},get:function(k){return c&&k&&(typeof k=="object"||typeof k=="function")&&x?u(x,k):w&&w.get(k)},has:function(k){return c&&k&&(typeof k=="object"||typeof k=="function")&&x?m(x,k):!!w&&w.has(k)},set:function(k,T){c&&k&&(typeof k=="object"||typeof k=="function")?(x||(x=new c),d(x,k,T)):s&&(w||(w=s()),w.set(k,T))}};return P}:s,Zc}var ef,qg;function aA(){if(qg)return ef;qg=1;var t=Li(),n=Za(),i=jC(),s=C1(),l=sA(),c=l||s||i;return ef=function(){var d,m={assert:function(y){if(!m.has(y))throw new t("Side channel does not contain "+n(y))},delete:function(y){return!!d&&d.delete(y)},get:function(y){return d&&d.get(y)},has:function(y){return!!d&&d.has(y)},set:function(y,h){d||(d=c()),d.set(y,h)}};return m},ef}var tf,Kg;function Ld(){if(Kg)return tf;Kg=1;var t=String.prototype.replace,n=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};return tf={default:i.RFC3986,formatters:{RFC1738:function(s){return t.call(s,n,"+")},RFC3986:function(s){return String(s)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986},tf}var nf,Gg;function A1(){if(Gg)return nf;Gg=1;var t=Ld(),n=Object.prototype.hasOwnProperty,i=Array.isArray,s=(function(){for(var S=[],_=0;_<256;++_)S.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return S})(),l=function(_){for(;_.length>1;){var N=_.pop(),b=N.obj[N.prop];if(i(b)){for(var I=[],W=0;W=y?q.slice(D,D+y):q,te=[],he=0;he=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||W===t.RFC1738&&(re===40||re===41)){te[te.length]=ne.charAt(he);continue}if(re<128){te[te.length]=s[re];continue}if(re<2048){te[te.length]=s[192|re>>6]+s[128|re&63];continue}if(re<55296||re>=57344){te[te.length]=s[224|re>>12]+s[128|re>>6&63]+s[128|re&63];continue}he+=1,re=65536+((re&1023)<<10|ne.charCodeAt(he)&1023),te[te.length]=s[240|re>>18]+s[128|re>>12&63]+s[128|re>>6&63]+s[128|re&63]}H+=te.join("")}return H},x=function(_){for(var N=[{obj:{o:_},prop:"o"}],b=[],I=0;I"u"&&(M=0)}if(typeof ne=="function"?g=ne(_,g):g instanceof Date?g=re(g):N==="comma"&&c(g)&&(g=n.maybeMap(g,function(wt){return wt instanceof Date?re(wt):wt})),g===null){if(W)return D&&!_e?D(_,h.encoder,Pe,"key",Se):_;g=""}if(x(g)||n.isBuffer(g)){if(D){var ee=_e?_:D(_,h.encoder,Pe,"key",Se);return[ge(ee)+"="+ge(D(g,h.encoder,Pe,"value",Se))]}return[ge(_)+"="+ge(String(g))]}var oe=[];if(typeof g>"u")return oe;var Z;if(N==="comma"&&c(g))_e&&D&&(g=n.maybeMap(g,D)),Z=[{value:g.length>0?g.join(",")||null:void 0}];else if(c(ne))Z=ne;else{var fe=Object.keys(g);Z=te?fe.sort(te):fe}var Ce=H?String(_).replace(/\./g,"%2E"):String(_),me=b&&c(g)&&g.length===1?Ce+"[]":Ce;if(I&&c(g)&&g.length===0)return me+"[]";for(var Ee=0;Ee"u"?S.encodeDotInKeys===!0?!0:h.allowDots:!!S.allowDots;return{addQueryPrefix:typeof S.addQueryPrefix=="boolean"?S.addQueryPrefix:h.addQueryPrefix,allowDots:q,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:W,charset:_,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!S.commaRoundTrip,delimiter:typeof S.delimiter>"u"?h.delimiter:S.delimiter,encode:typeof S.encode=="boolean"?S.encode:h.encode,encodeDotInKeys:typeof S.encodeDotInKeys=="boolean"?S.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof S.encoder=="function"?S.encoder:h.encoder,encodeValuesOnly:typeof S.encodeValuesOnly=="boolean"?S.encodeValuesOnly:h.encodeValuesOnly,filter:I,format:N,formatter:b,serializeDate:typeof S.serializeDate=="function"?S.serializeDate:h.serializeDate,skipNulls:typeof S.skipNulls=="boolean"?S.skipNulls:h.skipNulls,sort:typeof S.sort=="function"?S.sort:null,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:h.strictNullHandling}};return rf=function(T,S){var _=T,N=k(S),b,I;typeof N.filter=="function"?(I=N.filter,_=I("",_)):c(N.filter)&&(I=N.filter,b=I);var W=[];if(typeof _!="object"||_===null)return"";var q=l[N.arrayFormat],H=q==="comma"&&N.commaRoundTrip;b||(b=Object.keys(_)),N.sort&&b.sort(N.sort);for(var D=t(),ne=0;ne0?Se+re:""},rf}var of,Xg;function uA(){if(Xg)return of;Xg=1;var t=A1(),n=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(w){return w.replace(/&#(\d+);/g,function(P,k){return String.fromCharCode(parseInt(k,10))})},c=function(w,P,k){if(w&&typeof w=="string"&&P.comma&&w.indexOf(",")>-1)return w.split(",");if(P.throwOnLimitExceeded&&k>=P.arrayLimit)throw new RangeError("Array limit exceeded. Only "+P.arrayLimit+" element"+(P.arrayLimit===1?"":"s")+" allowed in an array.");return w},u="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",m=function(P,k){var T={__proto__:null},S=k.ignoreQueryPrefix?P.replace(/^\?/,""):P;S=S.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=k.parameterLimit===1/0?void 0:k.parameterLimit,N=S.split(k.delimiter,k.throwOnLimitExceeded?_+1:_);if(k.throwOnLimitExceeded&&N.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(_===1?"":"s")+" allowed.");var b=-1,I,W=k.charset;if(k.charsetSentinel)for(I=0;I-1&&(te=i(te)?[te]:te);var he=n.call(T,ne);he&&k.duplicates==="combine"?T[ne]=t.combine(T[ne],te):(!he||k.duplicates==="last")&&(T[ne]=te)}return T},y=function(w,P,k,T){var S=0;if(w.length>0&&w[w.length-1]==="[]"){var _=w.slice(0,-1).join("");S=Array.isArray(P)&&P[_]?P[_].length:0}for(var N=T?P:c(P,k,S),b=w.length-1;b>=0;--b){var I,W=w[b];if(W==="[]"&&k.parseArrays)I=k.allowEmptyArrays&&(N===""||k.strictNullHandling&&N===null)?[]:t.combine([],N);else{I=k.plainObjects?{__proto__:null}:{};var q=W.charAt(0)==="["&&W.charAt(W.length-1)==="]"?W.slice(1,-1):W,H=k.decodeDotInKeys?q.replace(/%2E/g,"."):q,D=parseInt(H,10);!k.parseArrays&&H===""?I={0:N}:!isNaN(D)&&W!==H&&String(D)===H&&D>=0&&k.parseArrays&&D<=k.arrayLimit?(I=[],I[D]=N):H!=="__proto__"&&(I[H]=N)}N=I}return N},h=function(P,k,T,S){if(P){var _=T.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,N=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,I=T.depth>0&&N.exec(_),W=I?_.slice(0,I.index):_,q=[];if(W){if(!T.plainObjects&&n.call(Object.prototype,W)&&!T.allowPrototypes)return;q.push(W)}for(var H=0;T.depth>0&&(I=b.exec(_))!==null&&H"u"?s.charset:P.charset,T=typeof P.duplicates>"u"?s.duplicates:P.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var S=typeof P.allowDots>"u"?P.decodeDotInKeys===!0?!0:s.allowDots:!!P.allowDots;return{allowDots:S,allowEmptyArrays:typeof P.allowEmptyArrays=="boolean"?!!P.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:s.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:s.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:s.arrayLimit,charset:k,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:s.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:s.comma,decodeDotInKeys:typeof P.decodeDotInKeys=="boolean"?P.decodeDotInKeys:s.decodeDotInKeys,decoder:typeof P.decoder=="function"?P.decoder:s.decoder,delimiter:typeof P.delimiter=="string"||t.isRegExp(P.delimiter)?P.delimiter:s.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:s.depth,duplicates:T,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:s.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:s.plainObjects,strictDepth:typeof P.strictDepth=="boolean"?!!P.strictDepth:s.strictDepth,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:typeof P.throwOnLimitExceeded=="boolean"?P.throwOnLimitExceeded:!1}};return of=function(w,P){var k=x(P);if(w===""||w===null||typeof w>"u")return k.plainObjects?{__proto__:null}:{};for(var T=typeof w=="string"?m(w,k):w,S=k.plainObjects?{__proto__:null}:{},_=Object.keys(T),N=0;N<_.length;++N){var b=_[N],I=h(b,T[b],k,typeof w=="string");S=t.merge(S,I,k)}return k.allowSparse===!0?S:t.compact(S)},of}var sf,Yg;function cA(){if(Yg)return sf;Yg=1;var t=lA(),n=uA(),i=Ld();return sf={formats:i,parse:n,stringify:t},sf}var fA=cA();const Vo=Xf(fA);function dA(){window.localStorage.removeItem("app-access");let t=window.location,n=Vo.parse(t.href.split("?")[1]);delete n.code;let i=Vo.stringify(n);window.location.href=t.origin+t.pathname+"?"+i}const Jg=t=>{let n;const i=new Set,s=(y,h)=>{const x=typeof y=="function"?y(n):y;if(!Object.is(x,n)){const w=n;n=h??(typeof x!="object"||x===null)?x:Object.assign({},n,x),i.forEach(P=>P(n,w))}},l=()=>n,d={setState:s,getState:l,getInitialState:()=>m,subscribe:y=>(i.add(y),()=>i.delete(y))},m=n=t(s,l,d);return d},pA=(t=>t?Jg(t):Jg),hA=t=>t;function mA(t,n=hA){const i=pa.useSyncExternalStore(t.subscribe,pa.useCallback(()=>n(t.getState()),[t,n]),pa.useCallback(()=>n(t.getInitialState()),[t,n]));return pa.useDebugValue(i),i}const yA=t=>{const n=pA(t),i=s=>mA(n,s);return Object.assign(i,n),i},gA=(t=>yA);function _1(t,n){let i;try{i=t()}catch{return}return{getItem:l=>{var c;const u=m=>m===null?null:JSON.parse(m,void 0),d=(c=i.getItem(l))!=null?c:null;return d instanceof Promise?d.then(u):u(d)},setItem:(l,c)=>i.setItem(l,JSON.stringify(c,void 0)),removeItem:l=>i.removeItem(l)}}const Lf=t=>n=>{try{const i=t(n);return i instanceof Promise?i:{then(s){return Lf(s)(i)},catch(s){return this}}}catch(i){return{then(s){return this},catch(s){return Lf(s)(i)}}}},vA=(t,n)=>(i,s,l)=>{let c={storage:_1(()=>localStorage),partialize:T=>T,version:0,merge:(T,S)=>({...S,...T}),...n},u=!1;const d=new Set,m=new Set;let y=c.storage;if(!y)return t((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),i(...T)},s,l);const h=()=>{const T=c.partialize({...s()});return y.setItem(c.name,{state:T,version:c.version})},x=l.setState;l.setState=(T,S)=>(x(T,S),h());const w=t((...T)=>(i(...T),h()),s,l);l.getInitialState=()=>w;let P;const k=()=>{var T,S;if(!y)return;u=!1,d.forEach(N=>{var b;return N((b=s())!=null?b:w)});const _=((S=c.onRehydrateStorage)==null?void 0:S.call(c,(T=s())!=null?T:w))||void 0;return Lf(y.getItem.bind(y))(c.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==c.version){if(c.migrate){const b=c.migrate(N.state,N.version);return b instanceof Promise?b.then(I=>[!0,I]):[!0,b]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,N.state];return[!1,void 0]}).then(N=>{var b;const[I,W]=N;if(P=c.merge(W,(b=s())!=null?b:w),i(P,!0),I)return h()}).then(()=>{_==null||_(P,void 0),P=s(),u=!0,m.forEach(N=>N(P))}).catch(N=>{_==null||_(void 0,N)})};return l.persist={setOptions:T=>{c={...c,...T},T.storage&&(y=T.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>k(),hasHydrated:()=>u,onHydrate:T=>(d.add(T),()=>{d.delete(T)}),onFinishHydration:T=>(m.add(T),()=>{m.delete(T)})},c.skipHydration||k(),P||w},xA=vA;var N1=Symbol.for("immer-nothing"),Zg=Symbol.for("immer-draftable"),At=Symbol.for("immer-state");function dn(t,...n){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ut=Object,Ri=Ut.getPrototypeOf,Va="constructor",tl="prototype",Vf="configurable",Ba="enumerable",_a="writable",Bo="value",wr=t=>!!t&&!!t[At];function Wn(t){var n;return t?R1(t)||nl(t)||!!t[Zg]||!!((n=t[Va])!=null&&n[Zg])||rl(t)||il(t):!1}var wA=Ut[tl][Va].toString(),e0=new WeakMap;function R1(t){if(!t||!Vd(t))return!1;const n=Ri(t);if(n===null||n===Ut[tl])return!0;const i=Ut.hasOwnProperty.call(n,Va)&&n[Va];if(i===Object)return!0;if(!wi(i))return!1;let s=e0.get(i);return s===void 0&&(s=Function.toString.call(i),e0.set(i,s)),s===wA}function Yo(t,n,i=!0){Jo(t)===0?(i?Reflect.ownKeys(t):Ut.keys(t)).forEach(l=>{n(l,t[l],t)}):t.forEach((s,l)=>n(l,s,t))}function Jo(t){const n=t[At];return n?n.type_:nl(t)?1:rl(t)?2:il(t)?3:0}var t0=(t,n,i=Jo(t))=>i===2?t.has(n):Ut[tl].hasOwnProperty.call(t,n),Bf=(t,n,i=Jo(t))=>i===2?t.get(n):t[n],za=(t,n,i,s=Jo(t))=>{s===2?t.set(n,i):s===3?t.add(i):t[n]=i};function SA(t,n){return t===n?t!==0||1/t===1/n:t!==t&&n!==n}var nl=Array.isArray,rl=t=>t instanceof Map,il=t=>t instanceof Set,Vd=t=>typeof t=="object",wi=t=>typeof t=="function",af=t=>typeof t=="boolean",zn=t=>t.copy_||t.base_,Bd=t=>t.modified_?t.copy_:t.base_;function zf(t,n){if(rl(t))return new Map(t);if(il(t))return new Set(t);if(nl(t))return Array[tl].slice.call(t);const i=R1(t);if(n===!0||n==="class_only"&&!i){const s=Ut.getOwnPropertyDescriptors(t);delete s[At];let l=Reflect.ownKeys(s);for(let c=0;c1&&Ut.defineProperties(t,{set:xa,add:xa,clear:xa,delete:xa}),Ut.freeze(t),n&&Yo(t,(i,s)=>{zd(s,!0)},!1)),t}function EA(){dn(2)}var xa={[Bo]:EA};function ol(t){return t===null||!Vd(t)?!0:Ut.isFrozen(t)}var Ua="MapSet",Uf="Patches",F1={};function Fi(t){const n=F1[t];return n||dn(0,t),n}var kA=t=>!!F1[t],zo,b1=()=>zo,PA=(t,n)=>({drafts_:[],parent_:t,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:kA(Ua)?Fi(Ua):void 0});function n0(t,n){n&&(t.patchPlugin_=Fi(Uf),t.patches_=[],t.inversePatches_=[],t.patchListener_=n)}function $f(t){Wf(t),t.drafts_.forEach(TA),t.drafts_=null}function Wf(t){t===zo&&(zo=t.parent_)}var r0=t=>zo=PA(zo,t);function TA(t){const n=t[At];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function i0(t,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];if(t!==void 0&&t!==i){i[At].modified_&&($f(n),dn(4)),Wn(t)&&(t=o0(n,t));const{patchPlugin_:l}=n;l&&l.generateReplacementPatches_(i[At].base_,t,n)}else t=o0(n,i);return CA(n,t,!0),$f(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),t!==N1?t:void 0}function o0(t,n){if(ol(n))return n;const i=n[At];if(!i)return Ud(n,t.handledSet_,t);if(!sl(i,t))return n;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:s}=i;if(s)for(;s.length>0;)s.pop()(t);j1(i,t)}return i.copy_}function CA(t,n,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&zd(n,i)}function O1(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var sl=(t,n)=>t.scope_===n,AA=[];function M1(t,n,i,s){const l=zn(t),c=t.type_;if(s!==void 0&&Bf(l,s,c)===n){za(l,s,i,c);return}if(!t.draftLocations_){const d=t.draftLocations_=new Map;Yo(l,(m,y)=>{if(wr(y)){const h=d.get(y)||[];h.push(m),d.set(y,h)}})}const u=t.draftLocations_.get(n)??AA;for(const d of u)za(l,d,i,c)}function _A(t,n,i){t.callbacks_.push(function(l){var d;const c=n;if(!c||!sl(c,l))return;(d=l.mapSetPlugin_)==null||d.fixSetContents(c);const u=Bd(c);M1(t,c.draft_??c,u,i),j1(c,l)})}function j1(t,n){var s;if(t.modified_&&!t.finalized_&&(t.type_===3||(((s=t.assigned_)==null?void 0:s.size)??0)>0)){const{patchPlugin_:l}=n;if(l){const c=l.getPath(t);c&&l.generatePatches_(t,c,n)}O1(t)}}function NA(t,n,i){const{scope_:s}=t;if(wr(i)){const l=i[At];sl(l,s)&&l.callbacks_.push(function(){Na(t);const u=Bd(l);M1(t,i,u,n)})}else Wn(i)&&t.callbacks_.push(function(){const c=zn(t);Bf(c,n,t.type_)===i&&s.drafts_.length>1&&(t.assigned_.get(n)??!1)===!0&&t.copy_&&Ud(Bf(t.copy_,n,t.type_),s.handledSet_,s)})}function Ud(t,n,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||wr(t)||n.has(t)||!Wn(t)||ol(t)||(n.add(t),Yo(t,(s,l)=>{if(wr(l)){const c=l[At];if(sl(c,i)){const u=Bd(c);za(t,s,u,t.type_),O1(c)}}else Wn(l)&&Ud(l,n,i)})),t}function RA(t,n){const i=nl(t),s={type_:i?1:0,scope_:n?n.scope_:b1(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:n,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let l=s,c=$d;i&&(l=[s],c=Uo);const{revoke:u,proxy:d}=Proxy.revocable(l,c);return s.draft_=d,s.revoke_=u,[d,s]}var $d={get(t,n){if(n===At)return t;const i=zn(t);if(!t0(i,n,t.type_))return FA(t,i,n);const s=i[n];if(t.finalized_||!Wn(s))return s;if(s===lf(t.base_,n)){Na(t);const l=t.type_===1?+n:n,c=qf(t.scope_,s,t,l);return t.copy_[l]=c}return s},has(t,n){return n in zn(t)},ownKeys(t){return Reflect.ownKeys(zn(t))},set(t,n,i){const s=D1(zn(t),n);if(s!=null&&s.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const l=lf(zn(t),n),c=l==null?void 0:l[At];if(c&&c.base_===i)return t.copy_[n]=i,t.assigned_.set(n,!1),!0;if(SA(i,l)&&(i!==void 0||t0(t.base_,n,t.type_)))return!0;Na(t),Hf(t)}return t.copy_[n]===i&&(i!==void 0||n in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[n])||(t.copy_[n]=i,t.assigned_.set(n,!0),NA(t,n,i)),!0},deleteProperty(t,n){return Na(t),lf(t.base_,n)!==void 0||n in t.base_?(t.assigned_.set(n,!1),Hf(t)):t.assigned_.delete(n),t.copy_&&delete t.copy_[n],!0},getOwnPropertyDescriptor(t,n){const i=zn(t),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{[_a]:!0,[Vf]:t.type_!==1||n!=="length",[Ba]:s[Ba],[Bo]:i[n]}},defineProperty(){dn(11)},getPrototypeOf(t){return Ri(t.base_)},setPrototypeOf(){dn(12)}},Uo={};Yo($d,(t,n)=>{Uo[t]=function(){const i=arguments;return i[0]=i[0][0],n.apply(this,i)}});Uo.deleteProperty=function(t,n){return Uo.set.call(this,t,n,void 0)};Uo.set=function(t,n,i){return $d.set.call(this,t[0],n,i,t[0])};function lf(t,n){const i=t[At];return(i?zn(i):t)[n]}function FA(t,n,i){var l;const s=D1(n,i);return s?Bo in s?s[Bo]:(l=s.get)==null?void 0:l.call(t.draft_):void 0}function D1(t,n){if(!(n in t))return;let i=Ri(t);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Ri(i)}}function Hf(t){t.modified_||(t.modified_=!0,t.parent_&&Hf(t.parent_))}function Na(t){t.copy_||(t.assigned_=new Map,t.copy_=zf(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var bA=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,i,s)=>{if(wi(n)&&!wi(i)){const c=i;i=n;const u=this;return function(m=c,...y){return u.produce(m,h=>i.call(this,h,...y))}}wi(i)||dn(6),s!==void 0&&!wi(s)&&dn(7);let l;if(Wn(n)){const c=r0(this),u=qf(c,n,void 0);let d=!0;try{l=i(u),d=!1}finally{d?$f(c):Wf(c)}return n0(c,s),i0(l,c)}else if(!n||!Vd(n)){if(l=i(n),l===void 0&&(l=n),l===N1&&(l=void 0),this.autoFreeze_&&zd(l,!0),s){const c=[],u=[];Fi(Uf).generateReplacementPatches_(n,l,{patches_:c,inversePatches_:u}),s(c,u)}return l}else dn(1,n)},this.produceWithPatches=(n,i)=>{if(wi(n))return(u,...d)=>this.produceWithPatches(u,m=>n(m,...d));let s,l;return[this.produce(n,i,(u,d)=>{s=u,l=d}),s,l]},af(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),af(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),af(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Wn(t)||dn(8),wr(t)&&(t=OA(t));const n=r0(this),i=qf(n,t,void 0);return i[At].isManual_=!0,Wf(n),i}finishDraft(t,n){const i=t&&t[At];(!i||!i.isManual_)&&dn(9);const{scope_:s}=i;return n0(s,n),i0(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let i;for(i=n.length-1;i>=0;i--){const l=n[i];if(l.path.length===0&&l.op==="replace"){t=l.value;break}}i>-1&&(n=n.slice(i+1));const s=Fi(Uf).applyPatches_;return wr(t)?s(t,n):this.produce(t,l=>s(l,n))}};function qf(t,n,i,s){const[l,c]=rl(n)?Fi(Ua).proxyMap_(n,i):il(n)?Fi(Ua).proxySet_(n,i):RA(n,i);return((i==null?void 0:i.scope_)??b1()).drafts_.push(l),c.callbacks_=(i==null?void 0:i.callbacks_)??[],c.key_=s,i&&s!==void 0?_A(i,c,s):c.callbacks_.push(function(m){var h;(h=m.mapSetPlugin_)==null||h.fixSetContents(c);const{patchPlugin_:y}=m;c.modified_&&y&&y.generatePatches_(c,[],m)}),l}function OA(t){return wr(t)||dn(10,t),I1(t)}function I1(t){if(!Wn(t)||ol(t))return t;const n=t[At];let i,s=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=zf(t,n.scope_.immer_.useStrictShallowCopy_),s=n.scope_.immer_.shouldUseStrictIteration()}else i=zf(t,!0);return Yo(i,(l,c)=>{za(i,l,I1(c))},s),n&&(n.finalized_=!1),i}var MA=new bA,jA=MA.produce;const DA=t=>(n,i,s)=>(s.setState=(l,c,...u)=>{const d=typeof l=="function"?jA(l):l;return n(d,c,...u)},t(s.setState,i,s)),IA=DA,bi=gA()(xA(IA(t=>({token:"",analysis:null,setToken(n){t(i=>{i.token=n})},setAnalysis(n){t(i=>{i.analysis=n})}})),{name:"zustand_storage",storage:_1(()=>localStorage)}));let LA={data:""},VA=t=>{if(typeof window=="object"){let n=(t?t.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return n.nonce=window.__nonce__,n.parentNode||(t||document.head).appendChild(n),n.firstChild}return t||LA},BA=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,zA=/\/\*[^]*?\*\/| +/g,s0=/\n+/g,gr=(t,n)=>{let i="",s="",l="";for(let c in t){let u=t[c];c[0]=="@"?c[1]=="i"?i=c+" "+u+";":s+=c[1]=="f"?gr(u,c):c+"{"+gr(u,c[1]=="k"?"":n)+"}":typeof u=="object"?s+=gr(u,n?n.replace(/([^,])+/g,d=>c.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,m=>/&/.test(m)?m.replace(/&/g,d):d?d+" "+m:m)):c):u!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=gr.p?gr.p(c,u):c+":"+u+";")}return i+(n&&l?n+"{"+l+"}":l)+s},Bn={},L1=t=>{if(typeof t=="object"){let n="";for(let i in t)n+=i+L1(t[i]);return n}return t},UA=(t,n,i,s,l)=>{let c=L1(t),u=Bn[c]||(Bn[c]=(m=>{let y=0,h=11;for(;y>>0;return"go"+h})(c));if(!Bn[u]){let m=c!==t?t:(y=>{let h,x,w=[{}];for(;h=BA.exec(y.replace(zA,""));)h[4]?w.shift():h[3]?(x=h[3].replace(s0," ").trim(),w.unshift(w[0][x]=w[0][x]||{})):w[0][h[1]]=h[2].replace(s0," ").trim();return w[0]})(t);Bn[u]=gr(l?{["@keyframes "+u]:m}:m,i?"":"."+u)}let d=i&&Bn.g?Bn.g:null;return i&&(Bn.g=Bn[u]),((m,y,h,x)=>{x?y.data=y.data.replace(x,m):y.data.indexOf(m)===-1&&(y.data=h?m+y.data:y.data+m)})(Bn[u],n,s,d),u},$A=(t,n,i)=>t.reduce((s,l,c)=>{let u=n[c];if(u&&u.call){let d=u(i),m=d&&d.props&&d.props.className||/^go/.test(d)&&d;u=m?"."+m:d&&typeof d=="object"?d.props?"":gr(d,""):d===!1?"":d}return s+l+(u??"")},"");function al(t){let n=this||{},i=t.call?t(n.p):t;return UA(i.unshift?i.raw?$A(i,[].slice.call(arguments,1),n.p):i.reduce((s,l)=>Object.assign(s,l&&l.call?l(n.p):l),{}):i,VA(n.target),n.g,n.o,n.k)}let V1,Kf,Gf;al.bind({g:1});let Hn=al.bind({k:1});function WA(t,n,i,s){gr.p=n,V1=t,Kf=i,Gf=s}function Er(t,n){let i=this||{};return function(){let s=arguments;function l(c,u){let d=Object.assign({},c),m=d.className||l.className;i.p=Object.assign({theme:Kf&&Kf()},d),i.o=/ *go\d+/.test(m),d.className=al.apply(i,s)+(m?" "+m:"");let y=t;return t[0]&&(y=d.as||t,delete d.as),Gf&&y[0]&&Gf(d),V1(y,d)}return l}}var HA=t=>typeof t=="function",$a=(t,n)=>HA(t)?t(n):t,qA=(()=>{let t=0;return()=>(++t).toString()})(),B1=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");t=!n||n.matches}return t}})(),KA=20,Wd="default",z1=(t,n)=>{let{toastLimit:i}=t.settings;switch(n.type){case 0:return{...t,toasts:[n.toast,...t.toasts].slice(0,i)};case 1:return{...t,toasts:t.toasts.map(u=>u.id===n.toast.id?{...u,...n.toast}:u)};case 2:let{toast:s}=n;return z1(t,{type:t.toasts.find(u=>u.id===s.id)?1:0,toast:s});case 3:let{toastId:l}=n;return{...t,toasts:t.toasts.map(u=>u.id===l||l===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return n.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(u=>u.id!==n.toastId)};case 5:return{...t,pausedAt:n.time};case 6:let c=n.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+c}))}}},Ra=[],U1={toasts:[],pausedAt:void 0,settings:{toastLimit:KA}},Pn={},$1=(t,n=Wd)=>{Pn[n]=z1(Pn[n]||U1,t),Ra.forEach(([i,s])=>{i===n&&s(Pn[n])})},W1=t=>Object.keys(Pn).forEach(n=>$1(t,n)),GA=t=>Object.keys(Pn).find(n=>Pn[n].toasts.some(i=>i.id===t)),ll=(t=Wd)=>n=>{$1(n,t)},QA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},XA=(t={},n=Wd)=>{let[i,s]=K.useState(Pn[n]||U1),l=K.useRef(Pn[n]);K.useEffect(()=>(l.current!==Pn[n]&&s(Pn[n]),Ra.push([n,s]),()=>{let u=Ra.findIndex(([d])=>d===n);u>-1&&Ra.splice(u,1)}),[n]);let c=i.toasts.map(u=>{var d,m,y;return{...t,...t[u.type],...u,removeDelay:u.removeDelay||((d=t[u.type])==null?void 0:d.removeDelay)||(t==null?void 0:t.removeDelay),duration:u.duration||((m=t[u.type])==null?void 0:m.duration)||(t==null?void 0:t.duration)||QA[u.type],style:{...t.style,...(y=t[u.type])==null?void 0:y.style,...u.style}}});return{...i,toasts:c}},YA=(t,n="blank",i)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...i,id:(i==null?void 0:i.id)||qA()}),Zo=t=>(n,i)=>{let s=YA(n,t,i);return ll(s.toasterId||GA(s.id))({type:2,toast:s}),s.id},it=(t,n)=>Zo("blank")(t,n);it.error=Zo("error");it.success=Zo("success");it.loading=Zo("loading");it.custom=Zo("custom");it.dismiss=(t,n)=>{let i={type:3,toastId:t};n?ll(n)(i):W1(i)};it.dismissAll=t=>it.dismiss(void 0,t);it.remove=(t,n)=>{let i={type:4,toastId:t};n?ll(n)(i):W1(i)};it.removeAll=t=>it.remove(void 0,t);it.promise=(t,n,i)=>{let s=it.loading(n.loading,{...i,...i==null?void 0:i.loading});return typeof t=="function"&&(t=t()),t.then(l=>{let c=n.success?$a(n.success,l):void 0;return c?it.success(c,{id:s,...i,...i==null?void 0:i.success}):it.dismiss(s),l}).catch(l=>{let c=n.error?$a(n.error,l):void 0;c?it.error(c,{id:s,...i,...i==null?void 0:i.error}):it.dismiss(s)}),t};var JA=1e3,ZA=(t,n="default")=>{let{toasts:i,pausedAt:s}=XA(t,n),l=K.useRef(new Map).current,c=K.useCallback((x,w=JA)=>{if(l.has(x))return;let P=setTimeout(()=>{l.delete(x),u({type:4,toastId:x})},w);l.set(x,P)},[]);K.useEffect(()=>{if(s)return;let x=Date.now(),w=i.map(P=>{if(P.duration===1/0)return;let k=(P.duration||0)+P.pauseDuration-(x-P.createdAt);if(k<0){P.visible&&it.dismiss(P.id);return}return setTimeout(()=>it.dismiss(P.id,n),k)});return()=>{w.forEach(P=>P&&clearTimeout(P))}},[i,s,n]);let u=K.useCallback(ll(n),[n]),d=K.useCallback(()=>{u({type:5,time:Date.now()})},[u]),m=K.useCallback((x,w)=>{u({type:1,toast:{id:x,height:w}})},[u]),y=K.useCallback(()=>{s&&u({type:6,time:Date.now()})},[s,u]),h=K.useCallback((x,w)=>{let{reverseOrder:P=!1,gutter:k=8,defaultPosition:T}=w||{},S=i.filter(b=>(b.position||T)===(x.position||T)&&b.height),_=S.findIndex(b=>b.id===x.id),N=S.filter((b,I)=>I<_&&b.visible).length;return S.filter(b=>b.visible).slice(...P?[N+1]:[0,N]).reduce((b,I)=>b+(I.height||0)+k,0)},[i]);return K.useEffect(()=>{i.forEach(x=>{if(x.dismissed)c(x.id,x.removeDelay);else{let w=l.get(x.id);w&&(clearTimeout(w),l.delete(x.id))}})},[i,c]),{toasts:i,handlers:{updateHeight:m,startPause:d,endPause:y,calculateOffset:h}}},e_=Hn` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,t_=Hn` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,n_=Hn` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,r_=Er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${t=>t.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${e_} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${t_} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${t=>t.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${n_} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,i_=Hn` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,o_=Er("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${t=>t.secondary||"#e0e0e0"}; border-right-color: ${t=>t.primary||"#616161"}; animation: ${i_} 1s linear infinite; `,s_=Hn` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,a_=Hn` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,l_=Er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${t=>t.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${s_} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${a_} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${t=>t.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,u_=Er("div")` position: absolute; `,c_=Er("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,f_=Hn` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,d_=Er("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${f_} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,p_=({toast:t})=>{let{icon:n,type:i,iconTheme:s}=t;return n!==void 0?typeof n=="string"?K.createElement(d_,null,n):n:i==="blank"?null:K.createElement(c_,null,K.createElement(o_,{...s}),i!=="loading"&&K.createElement(u_,null,i==="error"?K.createElement(r_,{...s}):K.createElement(l_,{...s})))},h_=t=>` 0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,m_=t=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} `,y_="0%{opacity:0;} 100%{opacity:1;}",g_="0%{opacity:1;} 100%{opacity:0;}",v_=Er("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,x_=Er("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,w_=(t,n)=>{let i=t.includes("top")?1:-1,[s,l]=B1()?[y_,g_]:[h_(i),m_(i)];return{animation:n?`${Hn(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Hn(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},S_=K.memo(({toast:t,position:n,style:i,children:s})=>{let l=t.height?w_(t.position||n||"top-center",t.visible):{opacity:0},c=K.createElement(p_,{toast:t}),u=K.createElement(x_,{...t.ariaProps},$a(t.message,t));return K.createElement(v_,{className:t.className,style:{...l,...i,...t.style}},typeof s=="function"?s({icon:c,message:u}):K.createElement(K.Fragment,null,c,u))});WA(K.createElement);var E_=({id:t,className:n,style:i,onHeightUpdate:s,children:l})=>{let c=K.useCallback(u=>{if(u){let d=()=>{let m=u.getBoundingClientRect().height;s(t,m)};d(),new MutationObserver(d).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[t,s]);return K.createElement("div",{ref:c,className:n,style:i},l)},k_=(t,n)=>{let i=t.includes("top"),s=i?{top:0}:{bottom:0},l=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:B1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...s,...l}},P_=al` z-index: 9999; > * { pointer-events: auto; } `,wa=16,T_=({reverseOrder:t,position:n="top-center",toastOptions:i,gutter:s,children:l,toasterId:c,containerStyle:u,containerClassName:d})=>{let{toasts:m,handlers:y}=ZA(i,c);return K.createElement("div",{"data-rht-toaster":c||"",style:{position:"fixed",zIndex:9999,top:wa,left:wa,right:wa,bottom:wa,pointerEvents:"none",...u},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},m.map(h=>{let x=h.position||n,w=y.calculateOffset(h,{reverseOrder:t,gutter:s,defaultPosition:n}),P=k_(x,w);return K.createElement(E_,{id:h.id,key:h.id,onHeightUpdate:y.updateHeight,className:h.visible?P_:"",style:P},h.type==="custom"?$a(h.message,h):l?l(h):K.createElement(S_,{toast:h,position:x}))}))},C_=it;const ul=Qe.create({baseURL:"https://ting.lifebanktech.com/api",timeout:6e4});ul.interceptors.request.use(t=>{t.data instanceof FormData&&(t.headers["Content-Type"]="multipart/form-data");let n=bi.getState().token;return n&&(t.headers.Authorization=`Bearer ${n}`),t});ul.interceptors.response.use(t=>{const{code:n,data:i,message:s}=t.data;if(n===1)return i;if(n===0)return C_.error(s),Promise.reject(new Error(s));(n===401||n===403)&&dA()},t=>{});function A_(t,n={}){return ul.post(t,n)}function __(t,n={}){return ul.get(t,{params:n})}const Vi={get:__,post:A_};function N_(t){let n=new FormData;return n.append("analys_image",t.analys_image),n.append("analys_type",t.analys_type),Vi.post("/enterprise/analyze",n)}function R_(t){return Vi.post("/enterprise/submit_contact_info",t)}function F_(t){return Vi.post("/analysis_order/create",t)}const a0=[{id:"ecommerce",name:"电商型",icon:"🛒"},{id:"traditional",name:"传统型",icon:"🏢"},{id:"tech",name:"科技型",icon:"💻"}];function b_(t){var d,m;const n=bi(),[i,s]=K.useState(!1),[l,c]=K.useState(null),u=async y=>{var x;const h=(x=y.target.files)==null?void 0:x[0];if(h){s(P=>!0);let w=await N_({analys_image:h,analys_type:l});s(P=>!1),console.log(w),n.setAnalysis(w),t.onSuccess()}};return E.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative",children:[E.jsx(J.h2,{className:"text-2xl md:text-3xl text-center mb-4",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},children:"上传您的组织架构图"}),E.jsx(J.p,{className:"text-gray-400 text-center mb-12",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:"AI将智能分析各岗位的优化潜力"}),E.jsxs(J.div,{className:`relative w-full max-w-md h-72 border-2 border-dashed rounded-2xl transition-all duration-300 border-[#7B61FF]/50 bg-white/5 ${i?"border-[#00F0FF] bg-[#00F0FF]/5 shadow-[0_0_30px_rgba(0,240,255,0.3)]":""}`,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:i?1.02:1},transition:{delay:.3},children:[i?E.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3",children:[E.jsx(J.div,{className:"absolute inset-0 bg-[#00F0FF]/10 rounded-2xl",animate:{opacity:[.1,.3,.1]},transition:{duration:1,repeat:1/0}}),E.jsx(J.div,{className:"absolute inset-x-0 h-1 bg-gradient-to-r from-transparent via-[#00F0FF] to-transparent shadow-[0_0_10px_rgba(0,240,255,0.8)]",animate:{top:["0%","100%"]},transition:{duration:1.5,repeat:1/0,ease:"linear"}}),E.jsxs(J.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.3},className:"relative z-10 flex flex-col items-center",children:[E.jsx($y,{className:"w-16 h-16 text-[#00F0FF] mb-4"}),E.jsx("p",{className:"text-[#00F0FF] text-lg",children:"正在扫描架构图..."}),l&&E.jsxs(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mt-4 flex items-center gap-2 bg-white/10 px-4 py-2 rounded-lg",children:[E.jsx("span",{className:"text-2xl",children:(d=a0.find(y=>y.id===l))==null?void 0:d.icon}),E.jsx("span",{className:"text-sm text-white",children:(m=a0.find(y=>y.id===l))==null?void 0:m.name})]})]})]}):E.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-6",children:[E.jsx(YP,{className:"w-12 h-12 text-[#7B61FF] mb-4"}),E.jsx("p",{className:"text-gray-300 text-center mb-2",children:"拖拽图片到此处"}),E.jsx("p",{className:"text-gray-500 text-sm text-center mb-6",children:"或"}),E.jsx("div",{className:"flex ",children:E.jsxs("label",{className:"cursor-pointer",children:[E.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:u}),E.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-[#7B61FF]/20 border border-[#7B61FF] rounded-lg hover:bg-[#7B61FF]/30 transition-colors",children:[E.jsx($y,{className:"w-4 h-4"}),E.jsx("span",{className:"text-sm",children:"选择文件"})]})]})})]}),E.jsx("div",{className:"absolute top-0 left-0 w-8 h-8 border-t-2 border-l-2 border-[#00F0FF]/50 rounded-tl-2xl"}),E.jsx("div",{className:"absolute top-0 right-0 w-8 h-8 border-t-2 border-r-2 border-[#00F0FF]/50 rounded-tr-2xl"}),E.jsx("div",{className:"absolute bottom-0 left-0 w-8 h-8 border-b-2 border-l-2 border-[#00F0FF]/50 rounded-bl-2xl"}),E.jsx("div",{className:"absolute bottom-0 right-0 w-8 h-8 border-b-2 border-r-2 border-[#00F0FF]/50 rounded-br-2xl"})]}),E.jsxs(J.div,{className:"flex items-center gap-2 text-xs text-gray-500 bg-white/5 backdrop-blur-sm px-4 py-2 rounded-full mt-12",initial:{opacity:0},animate:{opacity:1},transition:{delay:.9},children:[E.jsx(HP,{className:"w-4 h-4 text-green-400"}),E.jsx("span",{children:"银行级数据加密,仅用于测算,分析后立即销毁"})]})]})}const uf=[{dept:"设计部",message:"发现重复劳动节点...",icon:"🎨"},{dept:"文案岗",message:"AI替代率 85%...",icon:"✍️"},{dept:"客服部",message:"智能接入可节省 70%...",icon:"💬"},{dept:"市场部",message:"数据分析优化空间 60%...",icon:"📊"},{dept:"运营部",message:"自动化流程提升 75%...",icon:"⚙️"}];function O_({onComplete:t}){const[n,i]=K.useState(0),[s,l]=K.useState([]);return K.useEffect(()=>{const c=Array.from({length:15},(u,d)=>({x:Math.random()*100,y:Math.random()*100,id:d}));l(c)},[]),K.useEffect(()=>{const c=setInterval(()=>{i(u=>u{t()},1e3),u))},800);return()=>clearInterval(c)},[t]),E.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative overflow-hidden",children:[E.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[E.jsx(J.div,{className:"absolute w-96 h-96 border-2 border-[#00F0FF]/30 rounded-full",animate:{scale:[1,1.5,1],opacity:[.5,0,.5]},transition:{duration:2,repeat:1/0,ease:"easeOut"}}),E.jsx(J.div,{className:"absolute w-96 h-96 border-2 border-[#7B61FF]/30 rounded-full",animate:{scale:[1,1.5,1],opacity:[.5,0,.5]},transition:{duration:2,repeat:1/0,ease:"easeOut",delay:.5}}),E.jsx(J.div,{className:"absolute w-96 h-1 bg-gradient-to-r from-[#00F0FF]/0 via-[#00F0FF]/80 to-[#00F0FF]/0 origin-left",style:{left:"50%",top:"50%"},animate:{rotate:[0,360]},transition:{duration:3,repeat:1/0,ease:"linear"}})]}),E.jsx("div",{className:"absolute inset-0 pointer-events-none",children:s.map(c=>E.jsx(J.div,{className:"absolute w-3 h-3 bg-[#00F0FF] rounded-full",style:{left:`${c.x}%`,top:`${c.y}%`},initial:{scale:0,opacity:0},animate:{scale:[0,1,.8],opacity:[0,1,.6]},transition:{duration:1,delay:c.id*.1},children:E.jsx(J.div,{className:"absolute inset-0 bg-[#00F0FF] rounded-full",animate:{scale:[1,2,1],opacity:[.8,0,.8]},transition:{duration:2,repeat:1/0,delay:c.id*.1}})},c.id))}),E.jsx(J.div,{className:"relative z-10 mb-12",initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{duration:1,type:"spring"},children:E.jsxs("div",{className:"relative",children:[E.jsx(J.div,{className:"w-24 h-24 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",animate:{boxShadow:["0 0 20px rgba(123, 97, 255, 0.5)","0 0 40px rgba(0, 240, 255, 0.8)","0 0 20px rgba(123, 97, 255, 0.5)"]},transition:{duration:2,repeat:1/0},children:E.jsx(Hv,{className:"w-12 h-12 text-white"})}),[qv,Ia,QP].map((c,u)=>E.jsx(J.div,{className:"absolute top-1/2 left-1/2 w-8 h-8 -ml-4 -mt-4",animate:{rotate:[0,360]},transition:{duration:5,repeat:1/0,ease:"linear",delay:u*.6},children:E.jsx(J.div,{className:"absolute",style:{transform:`translateX(60px) rotate(-${u*120}deg)`},animate:{rotate:[0,-360]},transition:{duration:5,repeat:1/0,ease:"linear",delay:u*.6},children:E.jsx("div",{className:"w-8 h-8 bg-[#0A0F24] border-2 border-[#00F0FF] rounded-full flex items-center justify-center",children:E.jsx(c,{className:"w-4 h-4 text-[#00F0FF]"})})})},u))]})}),E.jsx("div",{className:"relative z-10 w-full max-w-md space-y-4",children:uf.map((c,u)=>E.jsxs(J.div,{className:`flex items-center gap-4 p-4 rounded-xl backdrop-blur-sm transition-all ${u===n?"bg-[#00F0FF]/20 border-2 border-[#00F0FF]":u{cn.chooseWXPay({timestamp:t.timestamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(){n(!0)},cancel:function(i){console.log(i),n(!1)}})})}const u0=["某杭州电商公司使用后,设计部成本降低60%","某深圳外贸公司使用后,客服响应速度提升5倍","某上海科技公司使用后,年度成本节省120万"];function I_({onPayment:t}){const n=bi(),[i,s]=K.useState(599),[l,c]=K.useState(0),u=async()=>{let y=await F_({record_id:n.analysis.record_id});D_(y).then(h=>{h?t():alert("支付失败")})};K.useEffect(()=>{const y=setInterval(()=>{s(h=>h>0?h-1:0)},1e3);return()=>clearInterval(y)},[]),K.useEffect(()=>{const y=setInterval(()=>{c(h=>(h+1)%u0.length)},3e3);return()=>clearInterval(y)},[]);const d=Math.floor(i/60),m=i%60;return E.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative",children:[E.jsx("div",{className:"absolute inset-0 opacity-30 blur-xl pointer-events-none",children:E.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-80 h-96 bg-gradient-to-br from-red-500 to-gray-800 rounded-2xl p-6",children:E.jsxs("div",{className:"space-y-4",children:[E.jsx("div",{className:"h-8 bg-white/20 rounded"}),E.jsx("div",{className:"h-32 bg-white/20 rounded"}),E.jsx("div",{className:"h-8 bg-white/20 rounded w-2/3"})]})})}),E.jsxs(J.div,{className:"relative z-10 w-full max-w-md",initial:{opacity:0,y:30},animate:{opacity:1,y:0},children:[E.jsxs(J.div,{className:"flex items-center justify-center gap-2 mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:[E.jsx(zy,{className:"w-8 h-8 text-[#00F0FF]"}),E.jsx("span",{className:"text-xl",children:"分析完成!"})]}),E.jsxs(J.div,{className:"bg-white/5 backdrop-blur-md border border-[#7B61FF]/30 rounded-2xl p-6 mb-6 relative overflow-hidden",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.3},children:[E.jsxs("div",{className:"absolute inset-0 backdrop-blur-sm bg-white/5 z-10 flex flex-col items-center justify-center gap-4",children:[E.jsx(Wy,{className:"w-16 h-16 text-[#00F0FF]/50"}),E.jsxs("div",{className:"text-center px-4",children:[E.jsxs(J.div,{className:"mb-2",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[E.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"预计年度节省"}),E.jsx("div",{className:"text-3xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:"¥520,000+"})]}),E.jsxs(J.div,{animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0,delay:.5},children:[E.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"效率提升"}),E.jsx("div",{className:"text-2xl text-[#00F0FF]",children:"65%"})]})]})]}),E.jsxs("div",{className:"space-y-4 blur-sm select-none",children:[E.jsxs("div",{className:"text-center",children:[E.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"经测算,您的企业每年由于员工不使用AI"}),E.jsx("p",{className:"text-2xl text-red-400 mb-1",children:"额外支出成本约为"}),E.jsxs("div",{className:"text-5xl bg-gradient-to-r from-red-400 to-orange-400 bg-clip-text text-transparent",children:["¥???",",","???"]})]}),E.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-600 to-transparent"}),E.jsxs("div",{className:"text-center",children:[E.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"优化后,预计每年可节省"}),E.jsxs("div",{className:"text-4xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:["¥???",",","???"]})]})]})]}),E.jsxs(J.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-md border-2 border-[#00F0FF] rounded-2xl p-6 mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[E.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[E.jsx(Fd,{className:"w-6 h-6 text-[#00F0FF]"}),E.jsx("h3",{className:"text-xl",children:"解锁完整报告"})]}),E.jsx("div",{className:"space-y-3 mb-6",children:["各部门AI替代率精准评估","具体的降本金额明细","推荐的AI工具组合清单"].map((y,h)=>E.jsxs(J.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6+h*.1},children:[E.jsx("div",{className:"w-5 h-5 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:E.jsx(By,{className:"w-3 h-3 text-[#00F0FF]"})}),E.jsx("span",{children:y})]},h))}),E.jsxs("div",{className:"text-center mb-6",children:[E.jsxs("div",{className:"flex items-center justify-center gap-3 mb-2",children:[E.jsx("span",{className:"text-gray-500 line-through text-lg",children:"¥999"}),E.jsx("span",{className:"bg-red-500 text-white text-xs px-2 py-1 rounded",children:"限时特惠"})]}),E.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[E.jsx("span",{className:"text-4xl",children:"¥"}),E.jsx("span",{className:"text-6xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:"9.9"})]})]}),E.jsxs(J.button,{className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl relative overflow-hidden group",whileHover:{scale:1.02},whileTap:{scale:.98},onClick:u,children:[E.jsx(J.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent",animate:{x:["-100%","200%"]},transition:{duration:2,repeat:1/0,repeatDelay:1}}),E.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[E.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"currentColor",children:E.jsx("path",{d:"M8.5 2C6.57 2 5 3.57 5 5.5V6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-1v-.5C19 3.57 17.43 2 15.5 2h-7zM7 6V5.5C7 4.67 7.67 4 8.5 4h7c.83 0 1.5.67 1.5 1.5V6H7zm5.99 6c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})}),"微信支付 ¥9.9 解锁报告"]})]}),E.jsxs(J.div,{className:"mt-4 text-center text-sm text-orange-400 flex items-center justify-center gap-2",animate:{opacity:[1,.5,1]},transition:{duration:1,repeat:1/0},children:[E.jsx(zy,{className:"w-4 h-4"}),E.jsxs("span",{children:["优惠将在"," ",E.jsxs("span",{className:"text-lg",children:[String(d).padStart(2,"0"),":",String(m).padStart(2,"0")]})," ","后失效"]})]})]}),E.jsx(J.div,{className:"bg-white/5 backdrop-blur-sm rounded-xl p-4 overflow-hidden",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:E.jsxs(J.div,{className:"text-center text-sm text-gray-400 flex items-center justify-center gap-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:[E.jsx(By,{className:"w-4 h-4 text-green-400 flex-shrink-0"}),E.jsx("span",{children:u0[l]})]},l)}),E.jsxs(J.div,{className:"mt-6 flex justify-center gap-6 text-xs text-gray-500",initial:{opacity:0},animate:{opacity:1},transition:{delay:1},children:[E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx(Wy,{className:"w-3 h-3"}),E.jsx("span",{children:"安全支付"})]}),E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx(Gv,{className:"w-3 h-3"}),E.jsx("span",{children:"1000+企业选择"})]}),E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx(Kv,{className:"w-3 h-3"}),E.jsx("span",{children:"平均节省40%"})]})]})]})]})}function L_(){const t=bi(),[n,i]=K.useState({name:"",phone:"",company:""}),[s,l]=K.useState(!1),[c,u]=K.useState(!1),d=async m=>{m.preventDefault(),await R_({contact_name:n.name,contact_phone:n.phone,enterprise_name:n.company,record_id:t.analysis.record_id}),l(!0)};return s?E.jsxs("div",{className:"min-h-screen px-6 py-12 pb-32",children:[E.jsxs(J.div,{className:"max-w-2xl mx-auto",initial:{opacity:0},animate:{opacity:1},children:[E.jsxs(J.div,{className:"text-center mb-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},children:[E.jsx("h1",{className:"text-3xl mb-2",children:"AI降本增效诊断报告"}),E.jsxs("p",{className:"text-gray-400",children:["为 ",n.company||n.name," 定制"]})]}),E.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[E.jsxs(J.div,{className:"bg-gradient-to-br from-red-500/20 to-red-500/5 border border-red-500/30 rounded-xl p-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[E.jsx("div",{className:"text-red-400 text-sm mb-2",children:"年度额外支出"}),E.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_original_cost]})]}),E.jsxs(J.div,{className:"bg-gradient-to-br from-[#00F0FF]/20 to-[#00F0FF]/5 border border-[#00F0FF]/30 rounded-xl p-6",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.3},children:[E.jsx("div",{className:"text-[#00F0FF] text-sm mb-2",children:"预计年节省"}),E.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_savings_cost]})]})]}),E.jsxs(J.div,{className:"bg-white/5 backdrop-blur-sm border border-gray-600 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:[E.jsxs("h3",{className:"text-xl mb-6 flex items-center gap-2",children:[E.jsx(Gv,{className:"w-6 h-6 text-[#00F0FF]"}),"各部门优化分析"]}),E.jsx("div",{className:"space-y-4",children:t.analysis.analysis_result.analyze_data.analyze_postion_detail.map((m,y)=>{let h=0;return m.replace_save_rate<30?h=0:m.replace_save_rate<70?h=1:h=2,E.jsxs(J.div,{className:`p-4 rounded-xl border ${h==2?"bg-red-500/10 border-red-500/30":h==1?"bg-orange-500/10 border-orange-500/30":"bg-yellow-500/10 border-yellow-500/30"}`,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5+y*.1},children:[E.jsxs("div",{className:"flex items-center justify-between mb-3",children:[E.jsxs("div",{children:[E.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[E.jsx("span",{className:"font-medium",children:m.position}),h==2&&E.jsx("span",{className:"text-xs bg-red-500 text-white px-2 py-0.5 rounded",children:"急需优化"})]}),E.jsxs("div",{className:"text-sm text-gray-400",children:[m.original_number,"人 → ",m.replace_with_ai_number,"人 + AI"]})]}),E.jsxs("div",{className:"text-right",children:[E.jsxs("div",{className:`text-2xl ${h==2?"text-red-400":h==1?"text-orange-400":"text-yellow-400"}`,children:["-",m.replace_save_rate,"%"]}),E.jsx("div",{className:"text-xs text-gray-500",children:"成本降低"})]})]}),E.jsx("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:E.jsx(J.div,{className:`h-full ${h==2?"bg-red-400":h==1?"bg-orange-400":"bg-yellow-400"}`,initial:{width:0},animate:{width:`${m.replace_save_rate}%`},transition:{delay:.7+y*.1,duration:1}})})]},m.position)})})]}),E.jsxs(J.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-sm border border-[#00F0FF]/30 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:[E.jsxs("h3",{className:"text-xl mb-4 flex items-center gap-2",children:[E.jsx(Ia,{className:"w-6 h-6 text-[#00F0FF]"}),"推荐AI工具组合"]}),E.jsx("div",{className:"grid grid-cols-2 gap-3",children:["文案生成AI","设计辅助AI","智能客服系统","数据分析AI","自动化运营工具","会议记录AI"].map((m,y)=>E.jsx(J.div,{className:"bg-white/5 border border-gray-600 rounded-lg px-4 py-3 text-sm text-center",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:1+y*.05},children:m},m))})]}),E.jsxs(J.div,{className:"relative bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-3xl p-8 text-center overflow-hidden",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.2},children:[E.jsx(J.div,{className:"absolute inset-0 opacity-20",animate:{backgroundPosition:["0% 0%","100% 100%"]},transition:{duration:20,repeat:1/0,repeatType:"reverse"},style:{backgroundImage:"radial-gradient(circle, white 1px, transparent 1px)",backgroundSize:"30px 30px"}}),E.jsxs("div",{className:"relative z-10",children:[E.jsxs(J.div,{className:"flex items-center justify-center gap-2 mb-4",animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0},children:[E.jsx(Fd,{className:"w-8 h-8 text-white"}),E.jsx("h3",{className:"text-2xl text-white",children:"知道问题了,不知道怎么落地?"})]}),E.jsxs("p",{className:"text-white/90 mb-6 text-lg",children:["专属AI顾问为您提供",E.jsx("br",{}),E.jsx("span",{className:"text-white",children:"行业定制版AI工具包 + 员工培训方案"})]}),E.jsxs(J.button,{className:"w-full max-w-sm mx-auto py-5 bg-white text-[#7B61FF] rounded-2xl flex items-center justify-center gap-3 shadow-2xl",whileHover:{scale:1.05,boxShadow:"0 20px 40px rgba(0,0,0,0.3)"},whileTap:{scale:.95},onClick:()=>u(!0),children:[E.jsx(fc,{className:"w-6 h-6"}),E.jsx("span",{className:"text-lg",children:"立即咨询专属AI顾问"}),E.jsx(NP,{className:"w-6 h-6"})]}),E.jsxs(J.div,{className:"mt-4 flex items-center justify-center gap-2 text-white/90",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[E.jsx(zP,{className:"w-5 h-5"}),E.jsx("span",{children:"限时赠送《2025企业AI工具白皮书》"})]})]})]})]}),E.jsxs(J.button,{className:"fixed bottom-6 left-1/2 -translate-x-1/2 px-8 py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-full shadow-2xl flex items-center justify-center gap-3 z-50 max-w-[90vw]",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{delay:1.5,type:"spring"},whileHover:{scale:1.05,y:-5},whileTap:{scale:.95},onClick:()=>u(!0),children:[E.jsx(fc,{className:"w-6 h-6 text-white"}),E.jsx("span",{className:"text-white whitespace-nowrap",children:"点击获取 1对1定制化AI落地方案"}),E.jsx(J.div,{className:"absolute inset-0 rounded-full border-2 border-white",animate:{scale:[1,1.2,1],opacity:[.6,0,.6]},transition:{duration:2,repeat:1/0}}),E.jsx(J.div,{className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] blur-xl opacity-50",animate:{opacity:[.3,.6,.3]},transition:{duration:2,repeat:1/0}})]}),E.jsx(K2,{children:c&&E.jsxs(J.div,{className:"fixed inset-0 z-50 flex items-center justify-center px-6",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[E.jsx(J.div,{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>u(!1)}),E.jsxs(J.div,{className:"relative bg-gradient-to-br from-[#0A0F24] to-[#1a1f3a] border-2 border-[#00F0FF] rounded-3xl p-8 max-w-md w-full",initial:{scale:.8,y:50},animate:{scale:1,y:0},exit:{scale:.8,y:50},transition:{type:"spring"},children:[E.jsx("button",{className:"absolute top-4 right-4 text-gray-400 hover:text-white transition-colors",onClick:()=>u(!1),children:E.jsx(eT,{className:"w-6 h-6"})}),E.jsx(J.div,{className:"flex justify-center mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:E.jsx(J.div,{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",animate:{boxShadow:["0 0 20px rgba(0, 240, 255, 0.5)","0 0 40px rgba(123, 97, 255, 0.8)","0 0 20px rgba(0, 240, 255, 0.5)"]},transition:{duration:2,repeat:1/0},children:E.jsx(fc,{className:"w-10 h-10 text-white"})})}),E.jsxs(J.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[E.jsx("h3",{className:"text-2xl mb-4",children:"添加专属AI顾问"}),E.jsx("p",{className:"text-gray-300 mb-6",children:"扫描下方二维码,即可获得:"}),E.jsx("div",{className:"space-y-3 mb-6 text-left",children:["1对1定制化AI落地方案","行业专属AI工具包推荐","全员AI技能培训指导","《2025企业AI工具白皮书》PDF"].map((m,y)=>E.jsxs(J.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+y*.1},children:[E.jsx("div",{className:"w-6 h-6 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:E.jsx(Uy,{className:"w-4 h-4 text-[#00F0FF]"})}),E.jsx("span",{children:m})]},y))}),E.jsx(J.div,{className:"bg-white rounded-2xl p-4 inline-block mb-4",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.6},children:E.jsx("div",{className:"w-48 h-48 bg-gray-300 rounded-xl flex items-center justify-center text-gray-600 text-xs text-center px-4",children:E.jsx("img",{src:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/kf.jpg"})})}),E.jsxs(J.p,{className:"text-sm text-gray-400",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:["顾问微信二维码,长按识别添加",E.jsx("br",{}),"添加后回复「",n.company||n.name,"」",E.jsx("br",{}),"立即获取专属方案"]})]})]})]})})]}):E.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12",children:E.jsxs(J.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[E.jsx(J.div,{className:"flex justify-center mb-8",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:E.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",children:E.jsx(Uy,{className:"w-12 h-12 text-white"})})}),E.jsx(J.h2,{className:"text-2xl text-center mb-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:"报告已生成!"}),E.jsx(J.p,{className:"text-gray-400 text-center mb-8",initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:"请输入接收人信息以存档"}),E.jsxs(J.form,{className:"space-y-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},onSubmit:d,children:[E.jsxs("div",{children:[E.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"姓名 *"}),E.jsx("input",{type:"text",required:!0,className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入您的姓名",value:n.name,onChange:m=>i({...n,name:m.target.value})})]}),E.jsxs("div",{children:[E.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"手机号 *"}),E.jsx("input",{type:"tel",required:!0,maxLength:11,pattern:"[0-9]{11}",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入手机号",value:n.phone,onChange:m=>i({...n,phone:m.target.value})})]}),E.jsxs("div",{children:[E.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"企业名称(选填)"}),E.jsx("input",{type:"text",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入企业名称",value:n.company,onChange:m=>i({...n,company:m.target.value})})]}),E.jsxs(J.button,{type:"submit",className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:[E.jsx(VP,{className:"w-5 h-5"}),"查看报告"]})]})]})})}function V_(t){return Vi.post("/login",t)}function B_(t){return Vi.get("/get_jssdk",t)}function z_(){return Vi.get("/get_share_config")}const U_=["snsapi_base","snsapi_userinfo"],$_="wxbc438492e3efab70";let Qf=window.location.href,ff=Qf.split("?")[0];function W_(){return new Promise(t=>{if(bi.getState().token){t(!0);return}let i=Vo.parse(Qf.split("?")[1]);i.code?V_({wx_code:i.code,...i}).then(s=>{if(!s.accessToken){delete i.code,delete i.state,ff=ff+Vo.stringify(i),c0(ff);return}bi.getState().setToken(s.accessToken),t(!0)}):c0(Qf)})}function c0(t){t=encodeURIComponent(t),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${$_}&redirect_uri=${t}&response_type=code&scope=${U_[1]}#wechat_redirect`}async function H_(){navigator.userAgent.toLowerCase().indexOf("micromessenger");let t=Vo.parse(window.location.search.split("?")[1]);delete t.code;let n=await B_({url:window.location.href}),i=await z_();const s={title:i.share_title,desc:i.share_sub_title,link:window.location.href,imgUrl:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/logo.jpg"};cn.config({debug:!1,appId:n.jssdk.appId,timestamp:n.jssdk.timestamp,nonceStr:n.jssdk.nonceStr,signature:n.jssdk.signature,jsApiList:n.jssdk.jsApiList,openTagList:["wx-open-launch-weapp"]}),cn.ready(function(){cn.updateAppMessageShareData&&cn.updateAppMessageShareData({title:s.title,desc:s.desc,link:s.link,imgUrl:s.imgUrl,success:()=>{console.log("分享朋友成功")}}),cn.updateTimelineShareData&&cn.updateTimelineShareData({title:s.title,link:s.link,imgUrl:s.imgUrl,success:()=>{console.log("分享朋友圈")}}),cn.onMenuShareAppMessage&&cn.onMenuShareAppMessage({title:s.title,desc:s.desc,link:s.link,imgUrl:s.imgUrl,success:()=>{console.log("旧版本分享朋友成功")},cancel:()=>{}}),cn.onMenuShareTimeline&&cn.onMenuShareTimeline({title:s.title,link:s.link,imgUrl:s.imgUrl,success:()=>{console.log("旧版本分享朋友圈")},cancel:()=>{}})})}function q_(){const[t,n]=K.useState(!1),[i,s]=K.useState(1),l=()=>{s(d=>Math.min(d+1,5))},c=()=>{console.log("成功"),l()},u=()=>{l()};return K.useEffect(()=>{W_().then(()=>{n(!0),H_().then()})},[]),t?E.jsxs(E.Fragment,{children:[E.jsx(T_,{position:"top-center"}),E.jsxs("div",{className:"min-h-screen bg-[#0A0F24] text-white overflow-x-hidden relative",children:[E.jsx("div",{className:"fixed inset-0 pointer-events-none",children:E.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#7B61FF]/10 via-transparent to-[#00F0FF]/10"})}),E.jsxs("div",{className:"relative z-10",children:[i===1&&E.jsx(nT,{onNext:l}),i===2&&E.jsx(b_,{onSuccess:c}),i===3&&E.jsx(O_,{onComplete:l}),i===4&&E.jsx(I_,{onPayment:u}),i===5&&E.jsx(L_,{})]})]})]}):E.jsx(E.Fragment,{})}Ww.createRoot(document.getElementById("root")).render(E.jsx(q_,{}));