From a6042d2708b58e61b294288103bdca5cc3d474b5 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 15 Dec 2025 21:39:40 +1100 Subject: [PATCH] fix(setup): simplify complete page with direct docs link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove terminal-style command display from complete page - Remove "Read the documentation" link - Change "Start Building" button to link to first-app quickstart guide - Remove unused CopyableCommand component and handleClose function 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../frontend/dist/assets/index-BEsMGVNY.js | 48 +++++++ .../frontend/dist/assets/index-aGFUz6Rg.js | 48 ------- .../frontend/dist/assets/index-dcTD-mpY.css | 1 + .../frontend/dist/assets/index-sn0oTu7c.css | 1 - .../setupwizard/frontend/dist/index.html | 4 +- v3/internal/setupwizard/frontend/src/App.tsx | 120 +++--------------- 6 files changed, 71 insertions(+), 151 deletions(-) create mode 100644 v3/internal/setupwizard/frontend/dist/assets/index-BEsMGVNY.js delete mode 100644 v3/internal/setupwizard/frontend/dist/assets/index-aGFUz6Rg.js create mode 100644 v3/internal/setupwizard/frontend/dist/assets/index-dcTD-mpY.css delete mode 100644 v3/internal/setupwizard/frontend/dist/assets/index-sn0oTu7c.css diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-BEsMGVNY.js b/v3/internal/setupwizard/frontend/dist/assets/index-BEsMGVNY.js new file mode 100644 index 000000000..9e2c3d1f5 --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-BEsMGVNY.js @@ -0,0 +1,48 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},Ps={},Qf={exports:{}},I={};/** + * @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 ti=Symbol.for("react.element"),$m=Symbol.for("react.portal"),Hm=Symbol.for("react.fragment"),Km=Symbol.for("react.strict_mode"),bm=Symbol.for("react.profiler"),Ym=Symbol.for("react.provider"),Gm=Symbol.for("react.context"),Qm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),Xm=Symbol.for("react.memo"),qm=Symbol.for("react.lazy"),Cu=Symbol.iterator;function Jm(e){return e===null||typeof e!="object"?null:(e=Cu&&e[Cu]||e["@@iterator"],typeof e=="function"?e:null)}var Zf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xf=Object.assign,qf={};function qn(e,t,n){this.props=e,this.context=t,this.refs=qf,this.updater=n||Zf}qn.prototype.isReactComponent={};qn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jf(){}Jf.prototype=qn.prototype;function Ga(e,t,n){this.props=e,this.context=t,this.refs=qf,this.updater=n||Zf}var Qa=Ga.prototype=new Jf;Qa.constructor=Ga;Xf(Qa,qn.prototype);Qa.isPureReactComponent=!0;var Tu=Array.isArray,ed=Object.prototype.hasOwnProperty,Za={current:null},td={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ed.call(t,r)&&!td.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,te=M[B];if(0>>1;B<_;){var ie=2*(B+1)-1,Ie=M[ie],Gt=ie+1,ci=M[Gt];if(0>i(Ie,V))Gti(ci,Ie)?(M[B]=ci,M[Gt]=V,B=Gt):(M[B]=Ie,M[ie]=V,B=ie);else if(Gti(ci,V))M[B]=ci,M[Gt]=V,B=Gt;else break e}}return L}function i(M,L){var V=M.sortIndex-L.sortIndex;return V!==0?V:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=M)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(M){if(x=!1,g(M),!v)if(n(l)!==null)v=!0,yn(S);else{var L=n(u);L!==null&&K(w,L.startTime-M)}}function S(M,L){v=!1,x&&(x=!1,p(k),k=-1),y=!0;var V=f;try{for(g(L),d=n(l);d!==null&&(!(d.expirationTime>L)||M&&!Z());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var te=B(d.expirationTime<=L);L=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),g(L)}else r(l);d=n(l)}if(d!==null)var _=!0;else{var ie=n(u);ie!==null&&K(w,ie.startTime-L),_=!1}return _}finally{d=null,f=V,y=!1}}var C=!1,P=null,k=-1,R=5,D=-1;function Z(){return!(e.unstable_now()-DM||125B?(M.sortIndex=V,t(u,M),n(l)===null&&M===n(u)&&(x?(p(k),k=-1):x=!0,K(w,V-B))):(M.sortIndex=te,t(l,M),v||y||(v=!0,yn(S))),M},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(M){var L=f;return function(){var V=f;f=L;try{return M.apply(this,arguments)}finally{f=V}}}})(ad);od.exports=ad;var f0=od.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var d0=j,Ve=f0;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=Object.prototype.hasOwnProperty,h0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Eu={},ju={};function p0(e){return _o.call(ju,e)?!0:_o.call(Eu,e)?!1:h0.test(e)?ju[e]=!0:(Eu[e]=!0,!1)}function m0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function g0(e,t,n,r){if(t===null||typeof t>"u"||m0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var qa=/[\-:]([a-z])/g;function Ja(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qa,Ja);he[t]=new Ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qa,Ja);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qa,Ja);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function el(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function y0(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=Gs(e.type,!1),e;case 11:return e=Gs(e.type.render,!1),e;case 1:return e=Gs(e.type,!0),e;default:return""}}function zo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wn:return"Fragment";case xn:return"Portal";case Io:return"Profiler";case tl:return"StrictMode";case Fo:return"Suspense";case Oo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cd:return(e.displayName||"Context")+".Consumer";case ud:return(e._context.displayName||"Context")+".Provider";case nl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rl:return t=e.displayName||null,t!==null?t:zo(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return zo(e(t))}catch{}}return null}function v0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zo(t);case 8:return t===tl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e){var t=dd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){e._valueTracker||(e._valueTracker=x0(e))}function hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qi(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 Bo(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pd(e,t){t=t.checked,t!=null&&el(e,"checked",t,!1)}function Uo(e,t){pd(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Du(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wo(e,t,n){(t!=="number"||Qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w0=["Webkit","ms","Moz","O"];Object.keys(xr).forEach(function(e){w0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xr[t]=xr[e]})});function vd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xr.hasOwnProperty(e)&&xr[e]?(""+t).trim():t+"px"}function xd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var S0=Q({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 Ko(e,t){if(t){if(S0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function bo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yo=null;function il(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Go=null,Fn=null,On=null;function Vu(e){if(e=ii(e)){if(typeof Go!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ds(t),Go(e.stateNode,e.type,t))}}function wd(e){Fn?On?On.push(e):On=[e]:Fn=e}function Sd(){if(Fn){var e=Fn,t=On;if(On=Fn=null,Vu(e),t)for(e=0;e>>=0,e===0?32:31-(A0(e)/V0|0)|0}var mi=64,gi=4194304;function gr(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 Ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=gr(a):(s&=o,s!==0&&(r=gr(s)))}else o=n&~i,o!==0?r=gr(o):s!==0&&(r=gr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Je(t),e[t]=n}function F0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Sr),Wu=" ",$u=!1;function Ud(e,t){switch(e){case"keyup":return f1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sn=!1;function h1(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:($u=!0,Wu);case"textInput":return e=t.data,e===Wu&&$u?null:e;default:return null}}function p1(e,t){if(Sn)return e==="compositionend"||!dl&&Ud(e,t)?(e=zd(),Ii=ul=Nt=null,Sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yu(n)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yd(){for(var e=window,t=Qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function hl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function C1(e){var t=Yd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bd(n.ownerDocument.documentElement,n)){if(r!==null&&hl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gu(n,s);var o=Gu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,kn=null,ea=null,Cr=null,ta=!1;function Qu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ta||kn==null||kn!==Qi(r)||(r=kn,"selectionStart"in r&&hl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&zr(Cr,r)||(Cr=r,r=ns(ea,"onSelect"),0Pn||(e.current=aa[Pn],aa[Pn]=null,Pn--)}function z(e,t){Pn++,aa[Pn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),je=Ht(!1),un=Bt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function is(){W(je),W(ve)}function nc(e,t,n){if(ve.current!==Bt)throw Error(E(168));z(ve,t),z(je,n)}function nh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,v0(e)||"Unknown",i));return Q({},n,r)}function ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,un=ve.current,z(ve,e),z(je,je.current),!0}function rc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=nh(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,W(je),W(ve),z(ve,e)):W(je),z(je,n)}var dt=null,Ls=!1,lo=!1;function rh(e){dt===null?dt=[e]:dt.push(e)}function _1(e){Ls=!0,rh(e)}function Kt(){if(!lo&&dt!==null){lo=!0;var e=0,t=O;try{var n=dt;for(O=1;e>=o,i-=o,ht=1<<32-Je(t)+i|n<k?(R=P,P=null):R=P.sibling;var D=f(p,P,g[k],w);if(D===null){P===null&&(P=R);break}e&&P&&D.alternate===null&&t(p,P),h=s(D,h,k),C===null?S=D:C.sibling=D,C=D,P=R}if(k===g.length)return n(p,P),$&&Zt(p,k),S;if(P===null){for(;kk?(R=P,P=null):R=P.sibling;var Z=f(p,P,D.value,w);if(Z===null){P===null&&(P=R);break}e&&P&&Z.alternate===null&&t(p,P),h=s(Z,h,k),C===null?S=Z:C.sibling=Z,C=Z,P=R}if(D.done)return n(p,P),$&&Zt(p,k),S;if(P===null){for(;!D.done;k++,D=g.next())D=d(p,D.value,w),D!==null&&(h=s(D,h,k),C===null?S=D:C.sibling=D,C=D);return $&&Zt(p,k),S}for(P=r(p,P);!D.done;k++,D=g.next())D=y(P,p,k,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),h=s(D,h,k),C===null?S=D:C.sibling=D,C=D);return e&&P.forEach(function(nt){return t(p,nt)}),$&&Zt(p,k),S}function T(p,h,g,w){if(typeof g=="object"&&g!==null&&g.type===wn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case di:e:{for(var S=g.key,C=h;C!==null;){if(C.key===S){if(S=g.type,S===wn){if(C.tag===7){n(p,C.sibling),h=i(C,g.props.children),h.return=p,p=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pt&&oc(S)===C.type){n(p,C.sibling),h=i(C,g.props),h.ref=cr(p,C,g),h.return=p,p=h;break e}n(p,C);break}else t(p,C);C=C.sibling}g.type===wn?(h=on(g.props.children,p.mode,w,g.key),h.return=p,p=h):(w=Hi(g.type,g.key,g.props,null,p.mode,w),w.ref=cr(p,h,g),w.return=p,p=w)}return o(p);case xn:e:{for(C=g.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=yo(g,p.mode,w),h.return=p,p=h}return o(p);case Pt:return C=g._init,T(p,h,C(g._payload),w)}if(mr(g))return v(p,h,g,w);if(sr(g))return x(p,h,g,w);Ci(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=go(g,p.mode,w),h.return=p,p=h),o(p)):n(p,h)}return T}var bn=ah(!0),lh=ah(!1),ls=Ht(null),us=null,Mn=null,yl=null;function vl(){yl=Mn=us=null}function xl(e){var t=ls.current;W(ls),e._currentValue=t}function ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bn(e,t){us=e,yl=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(yl!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(us===null)throw Error(E(308));Mn=e,us.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var en=null;function wl(e){en===null?en=[e]:en.push(e)}function uh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,wl(t)):(n.next=i.next,i.next=n),t.interleaved=n,vt(e,r)}function vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Et=!1;function Sl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ch(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vt(e,n)}return i=r.interleaved,i===null?(t.next=t,wl(r)):(t.next=i.next,i.next=t),r.interleaved=t,vt(e,n)}function Oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ol(e,n)}}function ac(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cs(e,t,n,r){var i=e.updateQueue;Et=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(f=t,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=Q({},d,f);break e;case 2:Et=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);dn|=o,e.lanes=o,e.memoizedState=d}}function lc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{O=n,co.transition=r}}function jh(){return be().memoizedState}function z1(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))Nh(t,n);else if(n=uh(e,t,n,r),n!==null){var i=Se();et(n,e,r,i),Dh(n,t,r)}}function B1(e,t,n){var r=Ft(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))Nh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,tt(a,o)){var l=t.interleaved;l===null?(i.next=i,wl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=uh(e,t,i,r),n!==null&&(i=Se(),et(n,e,r,i),Dh(n,t,r))}}function Mh(e){var t=e.alternate;return e===G||t!==null&&t===G}function Nh(e,t){Tr=ds=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ol(e,n)}}var hs={readContext:Ke,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},U1={readContext:Ke,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:cc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bi(4194308,4,kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var n=it();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=it();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=z1.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:uc,useDebugValue:Nl,useDeferredValue:function(e){return it().memoizedState=e},useTransition:function(){var e=uc(!1),t=e[0];return e=O1.bind(null,e[1]),it().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=it();if($){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ue===null)throw Error(E(349));fn&30||ph(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,cc(gh.bind(null,r,s,e),[e]),r.flags|=2048,Yr(9,mh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=it(),t=ue.identifierPrefix;if($){var n=pt,r=ht;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[st]=t,e[Wr]=r,Bh(e,t,!1,!1),t.stateNode=e;e:{switch(o=bo(n,r),n){case"dialog":U("cancel",e),U("close",e),i=r;break;case"iframe":case"object":case"embed":U("load",e),i=r;break;case"video":case"audio":for(i=0;iQn&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304)}else{if(!r)if(e=fs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!$)return me(t),null}else 2*ee()-s.renderingStartTime>Qn&&n!==1073741824&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ee(),t.sibling=null,n=b.current,z(b,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return _l(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Q1(e,t){switch(ml(t),t.tag){case 1:return Me(t.type)&&is(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),W(je),W(ve),Tl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cl(t),null;case 13:if(W(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(b),null;case 4:return Yn(),null;case 10:return xl(t.type._context),null;case 22:case 23:return _l(),null;case 24:return null;default:return null}}var Pi=!1,ge=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,N=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function xa(e,t,n){try{n()}catch(r){q(e,t,r)}}var Sc=!1;function X1(e,t){if(na=es,e=Yd(),hl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ra={focusedElem:e,selectionRange:n},es=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,T=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ze(t.type,x),T);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){q(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=Sc,Sc=!1,v}function Pr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&xa(t,n,s)}i=i.next}while(i!==r)}}function Rs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $h(e){var t=e.alternate;t!==null&&(e.alternate=null,$h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[st],delete t[Wr],delete t[oa],delete t[V1],delete t[R1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hh(e){return e.tag===5||e.tag===3||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rs));else if(r!==4&&(e=e.child,e!==null))for(Sa(e,t,n),e=e.sibling;e!==null;)Sa(e,t,n),e=e.sibling}function ka(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ka(e,t,n),e=e.sibling;e!==null;)ka(e,t,n),e=e.sibling}var ce=null,Xe=!1;function Ct(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Es,n)}catch{}switch(n.tag){case 5:ge||Nn(n,t);case 6:var r=ce,i=Xe;ce=null,Ct(e,t,n),ce=r,Xe=i,ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?ao(e.parentNode,n):e.nodeType===1&&ao(e,n),Fr(e)):ao(ce,n.stateNode));break;case 4:r=ce,i=Xe,ce=n.stateNode.containerInfo,Xe=!0,Ct(e,t,n),ce=r,Xe=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&xa(n,t,o),i=i.next}while(i!==r)}Ct(e,t,n);break;case 1:if(!ge&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){q(n,t,a)}Ct(e,t,n);break;case 21:Ct(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Ct(e,t,n),ge=r):Ct(e,t,n);break;default:Ct(e,t,n)}}function Cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z1),t.forEach(function(r){var i=og.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*J1(r/1960))-r,10e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,gs=0,F&6)throw Error(E(331));var i=F;for(F|=4,N=e.current;N!==null;){var s=N,o=s.child;if(N.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lee()-Vl?sn(e,0):Al|=n),Ne(e,t)}function Jh(e,t){t===0&&(e.mode&1?(t=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):t=1);var n=Se();e=vt(e,t),e!==null&&(ni(e,t,n),Ne(e,n))}function sg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function og(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Jh(e,n)}var ep;ep=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Y1(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,$&&t.flags&1048576&&ih(t,as,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ui(e,t),e=t.pendingProps;var i=Hn(t,ve.current);Bn(t,n),i=El(null,t,r,e,i,n);var s=jl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(s=!0,ss(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Sl(t),i.updater=Vs,t.stateNode=i,i._reactInternals=t,da(t,r,e,n),t=ma(null,t,r,!0,s,n)):(t.tag=0,$&&s&&pl(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ui(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lg(r),e=Ze(r,e),i){case 0:t=pa(null,t,r,e,n);break e;case 1:t=vc(null,t,r,e,n);break e;case 11:t=gc(null,t,r,e,n);break e;case 14:t=yc(null,t,r,Ze(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),pa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),vc(e,t,r,i,n);case 3:e:{if(Fh(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,ch(e,t),cs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Gn(Error(E(423)),t),t=xc(e,t,r,n,i);break e}else if(r!==i){i=Gn(Error(E(424)),t),t=xc(e,t,r,n,i);break e}else for(Le=Rt(t.stateNode.containerInfo.firstChild),Ae=t,$=!0,qe=null,n=lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=xt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return fh(t),e===null&&ua(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ia(r,i)?o=null:s!==null&&ia(r,s)&&(t.flags|=32),Ih(e,t),xe(e,t,o,n),t.child;case 6:return e===null&&ua(t),null;case 13:return Oh(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),gc(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,z(ls,r._currentValue),r._currentValue=o,s!==null)if(tt(s.value,o)){if(s.children===i.children&&!je.current){t=xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=mt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ca(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ca(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bn(t,n),i=Ke(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),yc(e,t,r,i,n);case 15:return Rh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ui(e,t),t.tag=1,Me(r)?(e=!0,ss(t)):e=!1,Bn(t,n),Lh(t,r,i),da(t,r,i,n),ma(null,t,r,!0,e,n);case 19:return zh(e,t,n);case 22:return _h(e,t,n)}throw Error(E(156,t.tag))};function tp(e,t){return Md(e,t)}function ag(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new ag(e,t,n,r)}function Fl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lg(e){if(typeof e=="function")return Fl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nl)return 11;if(e===rl)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Fl(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case wn:return on(n.children,i,s,t);case tl:o=8,i|=8;break;case Io:return e=Ue(12,n,t,i|2),e.elementType=Io,e.lanes=s,e;case Fo:return e=Ue(13,n,t,i),e.elementType=Fo,e.lanes=s,e;case Oo:return e=Ue(19,n,t,i),e.elementType=Oo,e.lanes=s,e;case fd:return Is(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ud:o=10;break e;case cd:o=9;break e;case nl:o=11;break e;case rl:o=14;break e;case Pt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function on(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Is(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=fd,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ug(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ol(e,t,n,r,i,s,o,a,l){return e=new ug(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ue(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(s),e}function cg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),sd.exports=Re;var mg=sd.exports,Lc=mg;Ro.createRoot=Lc.createRoot,Ro.hydrateRoot=Lc.hydrateRoot;const Wl=j.createContext({});function $l(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hl=typeof window<"u",op=Hl?j.useLayoutEffect:j.useEffect,Us=j.createContext(null);function Kl(e,t){e.indexOf(t)===-1&&e.push(t)}function bl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const wt=(e,t,n)=>n>t?t:n{};const St={},ap=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function lp(e){return typeof e=="object"&&e!==null}const up=e=>/^0[^.\s]+$/u.test(e);function Gl(e){let t;return()=>(t===void 0&&(t=e()),t)}const He=e=>e,gg=(e,t)=>n=>t(e(n)),oi=(...e)=>e.reduce(gg),Qr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ql{constructor(){this.subscriptions=[]}add(t){return Kl(this.subscriptions,t),()=>bl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,We=e=>e/1e3;function cp(e,t){return t?e*(1e3/t):0}const fp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yg=1e-7,vg=12;function xg(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=fp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>yg&&++axg(s,0,1,e,n);return s=>s===0||s===1?s:fp(i(s),t,r)}const dp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hp=e=>t=>1-e(1-t),pp=ai(.33,1.53,.69,.99),Zl=hp(pp),mp=dp(Zl),gp=e=>(e*=2)<1?.5*Zl(e):.5*(2-Math.pow(2,-10*(e-1))),Xl=e=>1-Math.sin(Math.acos(e)),yp=hp(Xl),vp=dp(Xl),wg=ai(.42,0,1,1),Sg=ai(0,0,.58,1),xp=ai(.42,0,.58,1),kg=e=>Array.isArray(e)&&typeof e[0]!="number",wp=e=>Array.isArray(e)&&typeof e[0]=="number",Cg={linear:He,easeIn:wg,easeInOut:xp,easeOut:Sg,circIn:Xl,circInOut:vp,circOut:yp,backIn:Zl,backInOut:mp,backOut:pp,anticipate:gp},Tg=e=>typeof e=="string",Ac=e=>{if(wp(e)){Yl(e.length===4);const[t,n,r,i]=e;return ai(t,n,r,i)}else if(Tg(e))return Cg[e];return e},Mi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Pg(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&i?n:r;return d&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const Eg=40;function Sp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Mi.reduce((g,w)=>(g[w]=Pg(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:y,postRender:v}=o,x=()=>{const g=St.useManualTiming?i.timestamp:performance.now();n=!1,St.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,Eg),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),y.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},T=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Mi.reduce((g,w)=>{const S=o[w];return g[w]=(C,P=!1,k=!1)=>(n||T(),S.schedule(C,P,k)),g},{}),cancel:g=>{for(let w=0;w(Ki===void 0&&Ee.set(fe.isProcessing||St.useManualTiming?fe.timestamp:performance.now()),Ki),set:e=>{Ki=e,queueMicrotask(jg)}},kp=e=>t=>typeof t=="string"&&t.startsWith(e),ql=kp("--"),Mg=kp("var(--"),Jl=e=>Mg(e)?Ng.test(e.split("/*")[0].trim()):!1,Ng=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zr={...tr,transform:e=>wt(0,1,e)},Ni={...tr,default:1},Mr=e=>Math.round(e*1e5)/1e5,eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Dg(e){return e==null}const Lg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(e,t)=>n=>!!(typeof n=="string"&&Lg.test(n)&&n.startsWith(e)||t&&!Dg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Cp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(eu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ag=e=>wt(0,255,e),xo={...tr,transform:e=>Math.round(Ag(e))},nn={test:tu("rgb","red"),parse:Cp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xo.transform(e)+", "+xo.transform(t)+", "+xo.transform(n)+", "+Mr(Zr.transform(r))+")"};function Vg(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ja={test:tu("#"),parse:Vg,transform:nn.transform},li=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tt=li("deg"),ut=li("%"),A=li("px"),Rg=li("vh"),_g=li("vw"),Vc={...ut,parse:e=>ut.parse(e)/100,transform:e=>ut.transform(e*100)},Ln={test:tu("hsl","hue"),parse:Cp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ut.transform(Mr(t))+", "+ut.transform(Mr(n))+", "+Mr(Zr.transform(r))+")"},ne={test:e=>nn.test(e)||ja.test(e)||Ln.test(e),parse:e=>nn.test(e)?nn.parse(e):Ln.test(e)?Ln.parse(e):ja.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nn.transform(e):Ln.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},Ig=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fg(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eu))==null?void 0:t.length)||0)+(((n=e.match(Ig))==null?void 0:n.length)||0)>0}const Tp="number",Pp="color",Og="var",zg="var(",Rc="${}",Bg=/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 Xr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(Bg,l=>(ne.test(l)?(r.color.push(s),i.push(Pp),n.push(ne.parse(l))):l.startsWith(zg)?(r.var.push(s),i.push(Og),n.push(l)):(r.number.push(s),i.push(Tp),n.push(parseFloat(l))),++s,Rc)).split(Rc);return{values:n,split:a,indexes:r,types:i}}function Ep(e){return Xr(e).values}function jp(e){const{split:t,types:n}=Xr(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function Wg(e){const t=Ep(e);return jp(e)(t.map(Ug))}const Wt={test:Fg,parse:Ep,createTransformer:jp,getAnimatableNone:Wg};function wo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $g({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=wo(l,a,e+1/3),s=wo(l,a,e),o=wo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function xs(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,So=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Hg=[ja,nn,Ln],Kg=e=>Hg.find(t=>t.test(e));function _c(e){const t=Kg(e);if(!t)return!1;let n=t.parse(e);return t===Ln&&(n=$g(n)),n}const Ic=(e,t)=>{const n=_c(e),r=_c(t);if(!n||!r)return xs(e,t);const i={...n};return s=>(i.red=So(n.red,r.red,s),i.green=So(n.green,r.green,s),i.blue=So(n.blue,r.blue,s),i.alpha=Y(n.alpha,r.alpha,s),nn.transform(i))},Ma=new Set(["none","hidden"]);function bg(e,t){return Ma.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yg(e,t){return n=>Y(e,t,n)}function nu(e){return typeof e=="number"?Yg:typeof e=="string"?Jl(e)?xs:ne.test(e)?Ic:Zg:Array.isArray(e)?Mp:typeof e=="object"?ne.test(e)?Ic:Gg:xs}function Mp(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>nu(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function Qg(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Wt.createTransformer(t),r=Xr(e),i=Xr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ma.has(e)&&!i.values.length||Ma.has(t)&&!r.values.length?bg(e,t):oi(Mp(Qg(r,i),i.values),n):xs(e,t)};function Np(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):nu(e)(e,t)}const Xg=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>Ut(t),now:()=>fe.isProcessing?fe.timestamp:Ee.now()}},Dp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=ws?1/0:t}function qg(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ru(r),ws);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:We(i)}}const Jg=5;function Lp(e,t,n){const r=Math.max(t-Jg,0);return cp(n-e(r),t-r)}const X={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},ko=.001;function ey({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let i,s,o=1-t;o=wt(X.minDamping,X.maxDamping,o),e=wt(X.minDuration,X.maxDuration,We(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,y=Na(u,o),v=Math.exp(-d);return ko-f/y*v},s=u=>{const d=u*o*e,f=d*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Na(Math.pow(u,2),o);return(-i(u)+ko>0?-1:1)*((f-y)*v)/x}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ko+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=ny(i,s,a);if(e=lt(e),isNaN(l))return{stiffness:X.stiffness,damping:X.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const ty=12;function ny(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function sy(e){let t={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...e};if(!Fc(e,iy)&&Fc(e,ry))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:X.mass,stiffness:i,damping:s}}else{const n=ey(e);t={...t,...n,mass:X.mass},t.isResolvedFromDuration=!0}return t}function Ss(e=X.visualDuration,t=X.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=sy({...n,velocity:-We(n.velocity||0)}),v=f||0,x=u/(2*Math.sqrt(l*c)),T=o-s,p=We(Math.sqrt(l/c)),h=Math.abs(T)<5;r||(r=h?X.restSpeed.granular:X.restSpeed.default),i||(i=h?X.restDelta.granular:X.restDelta.default);let g;if(x<1){const S=Na(p,x);g=C=>{const P=Math.exp(-x*p*C);return o-P*((v+x*p*T)/S*Math.sin(S*C)+T*Math.cos(S*C))}}else if(x===1)g=S=>o-Math.exp(-p*S)*(T+(v+p*T)*S);else{const S=p*Math.sqrt(x*x-1);g=C=>{const P=Math.exp(-x*p*C),k=Math.min(S*C,300);return o-P*((v+x*p*T)*Math.sinh(k)+S*T*Math.cosh(k))/S}}const w={calculatedDuration:y&&d||null,next:S=>{const C=g(S);if(y)a.done=S>=d;else{let P=S===0?v:0;x<1&&(P=S===0?lt(v):Lp(g,S,C));const k=Math.abs(P)<=r,R=Math.abs(o-C)<=i;a.done=k&&R}return a.value=a.done?o:C,a},toString:()=>{const S=Math.min(ru(w),ws),C=Dp(P=>w.next(S*P).value,S,30);return S+"ms "+C},toTransition:()=>{}};return w}Ss.applyToOptions=e=>{const t=qg(e,100,Ss);return e.ease=t.ease,e.duration=lt(t.duration),e.type="keyframes",e};function Da({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=k=>a!==void 0&&kl,v=k=>a===void 0?l:l===void 0||Math.abs(a-k)-x*Math.exp(-k/r),g=k=>p+h(k),w=k=>{const R=h(k),D=g(k);f.done=Math.abs(R)<=u,f.value=f.done?p:D};let S,C;const P=k=>{y(f.value)&&(S=k,C=Ss({keyframes:[f.value,v(f.value)],velocity:Lp(g,k,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:k=>{let R=!1;return!C&&S===void 0&&(R=!0,w(k),P(k)),S!==void 0&&k>=S?C.next(k-S):(!R&&w(k),f)}}}function oy(e,t,n){const r=[],i=n||St.mix||Np,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=oy(t,r,i),l=a.length,u=c=>{if(o&&c1)for(;du(wt(e[0],e[s-1],c)):u}function ly(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qr(0,t,r);e.push(Y(n,1,i))}}function uy(e){const t=[0];return ly(t,e.length-1),t}function cy(e,t){return e.map(n=>n*t)}function fy(e,t){return e.map(()=>t||xp).splice(0,e.length-1)}function Nr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kg(r)?r.map(Ac):Ac(r),s={done:!1,value:t[0]},o=cy(n&&n.length===t.length?n:uy(t),e),a=ay(o,t,{ease:Array.isArray(i)?i:fy(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const dy=e=>e!==null;function iu(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(dy),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const hy={decay:Da,inertia:Da,tween:Nr,keyframes:Nr,spring:Ss};function Ap(e){typeof e.type=="string"&&(e.type=hy[e.type])}class su{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const py=e=>e/100;class ou extends su{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ee.now()&&this.tick(Ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ap(t);const{type:n=Nr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Nr;l!==Nr&&typeof a[0]!="number"&&(this.mixKeyframes=oi(py,Np(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ru(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:y,type:v,onUpdate:x,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(d){const k=Math.min(this.currentTime,i)/a;let R=Math.floor(k),D=k%1;!D&&k>=1&&(D=1),D===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?(D=1-D,y&&(D-=y/a)):f==="mirror"&&(w=o)),g=wt(0,1,D)*a}const S=h?{done:!1,value:c[0]}:w.next(g);s&&(S.value=s(S.value));let{done:C}=S;!h&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&v!==Da&&(S.value=iu(c,this.options,T,this.speed)),x&&x(S.value),P&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return We(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+We(t)}get time(){return We(this.currentTime)}set time(t){var n;t=lt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ee.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=We(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=Xg,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(Ee.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function my(e){for(let t=1;te*180/Math.PI,La=e=>{const t=rn(Math.atan2(e[1],e[0]));return Aa(t)},gy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:La,rotateZ:La,skewX:e=>rn(Math.atan(e[1])),skewY:e=>rn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Aa=e=>(e=e%360,e<0&&(e+=360),e),Oc=La,zc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zc,scaleY:Bc,scale:e=>(zc(e)+Bc(e))/2,rotateX:e=>Aa(rn(Math.atan2(e[6],e[5]))),rotateY:e=>Aa(rn(Math.atan2(-e[2],e[0]))),rotateZ:Oc,rotate:Oc,skewX:e=>rn(Math.atan(e[4])),skewY:e=>rn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Va(e){return e.includes("scale")?1:0}function Ra(e,t){if(!e||e==="none")return Va(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=yy,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=gy,i=a}if(!i)return Va(t);const s=r[t],o=i[1].split(",").map(xy);return typeof s=="function"?s(o):o[s]}const vy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ra(n,t)};function xy(e){return parseFloat(e.trim())}const nr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rr=new Set(nr),Uc=e=>e===tr||e===A,wy=new Set(["x","y","z"]),Sy=nr.filter(e=>!wy.has(e));function ky(e){const t=[];return Sy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const an={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ra(t,"x"),y:(e,{transform:t})=>Ra(t,"y")};an.translateX=an.x;an.translateY=an.y;const ln=new Set;let _a=!1,Ia=!1,Fa=!1;function Vp(){if(Ia){const e=Array.from(ln).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ky(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ia=!1,_a=!1,ln.forEach(e=>e.complete(Fa)),ln.clear()}function Rp(){ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ia=!0)})}function Cy(){Fa=!0,Rp(),Vp(),Fa=!1}class au{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ln.add(this),_a||(_a=!0,H.read(Rp),H.resolveKeyframes(Vp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}my(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ln.delete(this)}cancel(){this.state==="scheduled"&&(ln.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ty=e=>e.startsWith("--");function Py(e,t,n){Ty(t)?e.style.setProperty(t,n):e.style[t]=n}const Ey=Gl(()=>window.ScrollTimeline!==void 0),jy={};function My(e,t){const n=Gl(e);return()=>jy[t]??n()}const _p=My(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vr([0,.65,.55,1]),circOut:vr([.55,0,1,.45]),backIn:vr([.31,.01,.66,-.59]),backOut:vr([.33,1.53,.69,.99])};function Ip(e,t){if(e)return typeof e=="function"?_p()?Dp(e,t):"ease-out":wp(e)?vr(e):Array.isArray(e)?e.map(n=>Ip(n,t)||Wc.easeOut):Wc[e]}function Ny(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Ip(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Fp(e){return typeof e=="function"&&"applyToOptions"in e}function Dy({type:e,...t}){return Fp(e)&&_p()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ly extends su{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Yl(typeof t.type!="string");const u=Dy(t);this.animation=Ny(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=iu(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Py(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return We(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+We(t)}get time(){return We(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=lt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ey()?(this.animation.timeline=t,He):n(this)}}const Op={anticipate:gp,backInOut:mp,circInOut:vp};function Ay(e){return e in Op}function Vy(e){typeof e.ease=="string"&&Ay(e.ease)&&(e.ease=Op[e.ease])}const $c=10;class Ry extends Ly{constructor(t){Vy(t),Ap(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ou({...o,autoplay:!1}),l=lt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-$c).value,a.sample(l).value,$c),a.stop()}}const Hc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wt.test(e)||e==="0")&&!e.startsWith("url("));function _y(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function zy(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Oy()&&n&&Fy.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const By=40;class Uy extends su{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var x,T;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Ee.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},y=(c==null?void 0:c.KeyframeResolver)||au;this.keyframeResolver=new y(a,(x,T,p)=>this.onKeyframesResolved(x,T,f,!p),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ee.now(),Iy(t,s,o,a)||((St.instantAnimations||!l)&&(c==null||c(iu(t,r,n))),t[0]=t[t.length-1],Oa(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>By?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!u&&zy(f)?new Ry({...f,element:f.motionValue.owner.current}):new ou(f);y.finished.then(()=>this.notifyFinished()).catch(He),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Cy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Wy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $y(e){const t=Wy.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function zp(e,t,n=1){const[r,i]=$y(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return ap(o)?parseFloat(o):o}return Jl(i)?zp(i,t,n+1):i}function lu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Bp=new Set(["width","height","top","left","right","bottom",...nr]),Hy={test:e=>e==="auto",parse:e=>e},Up=e=>t=>t.test(e),Wp=[tr,A,ut,Tt,_g,Rg,Hy],Kc=e=>Wp.find(Up(e));function Ky(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||up(e):!0}const by=new Set(["brightness","contrast","saturate","opacity"]);function Yy(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eu)||[];if(!r)return e;const i=n.replace(r,"");let s=by.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Gy=/\b([a-z-]*)\(.*?\)/gu,za={...Wt,getAnimatableNone:e=>{const t=e.match(Gy);return t?t.map(Yy).join(" "):e}},bc={...tr,transform:Math.round},Qy={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:Ni,scaleX:Ni,scaleY:Ni,scaleZ:Ni,skew:Tt,skewX:Tt,skewY:Tt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Zr,originX:Vc,originY:Vc,originZ:A},uu={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...Qy,zIndex:bc,fillOpacity:Zr,strokeOpacity:Zr,numOctaves:bc},Zy={...uu,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:za,WebkitFilter:za},$p=e=>Zy[e];function Hp(e,t){let n=$p(e);return n!==za&&(n=Wt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xy=new Set(["auto","none","0"]);function qy(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function ev(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Kp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function bp(e){return lp(e)&&"offsetHeight"in e}const Yc=30,tv=e=>!isNaN(parseFloat(e));class nv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ee.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ee.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=tv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ql);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Yc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yc);return cp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zn(e,t){return new nv(e,t)}const{schedule:cu}=Sp(queueMicrotask,!1),Qe={x:!1,y:!1};function Yp(){return Qe.x||Qe.y}function rv(e){return e==="x"||e==="y"?Qe[e]?null:(Qe[e]=!0,()=>{Qe[e]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function Gp(e,t){const n=ev(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Gc(e){return!(e.pointerType==="touch"||Yp())}function iv(e,t,n={}){const[r,i,s]=Gp(e,n),o=a=>{if(!Gc(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Gc(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Qp=(e,t)=>t?e===t?!0:Qp(e,t.parentElement):!1,fu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ov(e){return sv.has(e.tagName)||e.tabIndex!==-1}const bi=new WeakSet;function Qc(e){return t=>{t.key==="Enter"&&e(t)}}function Co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const av=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Qc(()=>{if(bi.has(n))return;Co(n,"down");const i=Qc(()=>{Co(n,"up")}),s=()=>Co(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Zc(e){return fu(e)&&!Yp()}function lv(e,t,n={}){const[r,i,s]=Gp(e,n),o=a=>{const l=a.currentTarget;if(!Zc(a))return;bi.add(l);const u=t(l,a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),bi.has(l)&&bi.delete(l),Zc(y)&&typeof u=="function"&&u(y,{success:v})},d=y=>{c(y,l===window||l===document||n.useGlobalTarget||Qp(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),bp(a)&&(a.addEventListener("focus",u=>av(u,i)),!ov(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Zp(e){return lp(e)&&"ownerSVGElement"in e}function uv(e){return Zp(e)&&e.tagName==="svg"}const ye=e=>!!(e&&e.getVelocity),cv=[...Wp,ne,Wt],fv=e=>cv.find(Up(e)),du=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Xc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Xc(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:u,height:c,top:d,left:f,right:y}=o.current;if(t||!s.current||!u||!c)return;const v=n==="left"?`left: ${f}`:`right: ${y}`;s.current.dataset.motionPopId=i;const x=document.createElement("style");a&&(x.nonce=a);const T=r??document.head;return T.appendChild(x),x.sheet&&x.sheet.insertRule(` + [data-motion-pop-id="${i}"] { + position: absolute !important; + width: ${u}px !important; + height: ${c}px !important; + ${v}px !important; + top: ${d}px !important; + } + `),()=>{T.contains(x)&&T.removeChild(x)}},[t]),m.jsx(pv,{isPresent:t,childRef:s,sizeRef:o,children:j.cloneElement(e,{ref:l})})}const gv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=$l(yv),c=j.useId();let d=!0,f=j.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const v of u.values())if(!v)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&d&&(f={...f}),j.useMemo(()=>{u.forEach((y,v)=>u.set(v,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=m.jsx(mv,{isPresent:n,anchorX:a,root:l,children:e})),m.jsx(Us.Provider,{value:f,children:e})};function yv(){return new Map}function Xp(e=!0){const t=j.useContext(Us);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{if(e)return i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Di=e=>e.key||"";function qc(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const vv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=Xp(o),d=j.useMemo(()=>qc(e),[e]),f=o&&!u?[]:d.map(Di),y=j.useRef(!0),v=j.useRef(d),x=$l(()=>new Map),[T,p]=j.useState(d),[h,g]=j.useState(d);op(()=>{y.current=!1,v.current=d;for(let C=0;C{const P=Di(C),k=o&&!u?!1:d===h||f.includes(P),R=()=>{if(x.has(P))x.set(P,!0);else return;let D=!0;x.forEach(Z=>{Z||(D=!1)}),D&&(S==null||S(),g(v.current),o&&(c==null||c()),r&&r())};return m.jsx(gv,{isPresent:k,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:k?void 0:R,anchorX:a,children:C},P)})})},qp=j.createContext({strict:!1}),Jc={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"]},Xn={};for(const e in Jc)Xn[e]={isEnabled:t=>Jc[e].some(n=>!!t[n])};function xv(e){for(const t in e)Xn[t]={...Xn[t],...e[t]}}const wv=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 ks(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wv.has(e)}let Jp=e=>!ks(e);function Sv(e){typeof e=="function"&&(Jp=t=>t.startsWith("on")?!ks(t):e(t))}try{Sv(require("@emotion/is-prop-valid").default)}catch{}function kv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Jp(i)||n===!0&&ks(i)||!t&&!ks(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ws=j.createContext({});function $s(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qr(e){return typeof e=="string"||Array.isArray(e)}const hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...hu];function Hs(e){return $s(e.animate)||pu.some(t=>qr(e[t]))}function em(e){return!!(Hs(e)||e.variants)}function Cv(e,t){if(Hs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qr(n)?n:void 0,animate:qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Tv(e){const{initial:t,animate:n}=Cv(e,j.useContext(Ws));return j.useMemo(()=>({initial:t,animate:n}),[ef(t),ef(n)])}function ef(e){return Array.isArray(e)?e.join(" "):e}const Jr={};function Pv(e){for(const t in e)Jr[t]=e[t],ql(t)&&(Jr[t].isCSSVariable=!0)}function tm(e,{layout:t,layoutId:n}){return rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jr[e]||e==="opacity")}const Ev={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jv=nr.length;function Mv(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function nm(e,t,n){for(const r in t)!ye(t[r])&&!tm(r,n)&&(e[r]=t[r])}function Nv({transformTemplate:e},t){return j.useMemo(()=>{const n=gu();return mu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dv(e,t){const n=e.style||{},r={};return nm(r,n,e),Object.assign(r,Nv(e,t)),r}function Lv(e,t){const n={},r=Dv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Av={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vv={offset:"strokeDashoffset",array:"strokeDasharray"};function Rv(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Av:Vv;e[s.offset]=A.transform(-r);const o=A.transform(t),a=A.transform(n);e[s.array]=`${o} ${a}`}function rm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(mu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Rv(d,i,s,o,!1)}const im=()=>({...gu(),attrs:{}}),sm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _v(e,t,n,r){const i=j.useMemo(()=>{const s=im();return rm(s,t,sm(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};nm(s,e.style,e),i.style={...s,...i.style}}return i}const Iv=["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 yu(e){return typeof e!="string"||e.includes("-")?!1:!!(Iv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Fv(e,t,n,{latestValues:r},i,s=!1){const a=(yu(e)?_v:Lv)(t,r,i,e),l=kv(t,typeof e=="string",s),u=e!==j.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=j.useMemo(()=>ye(c)?c.get():c,[c]);return j.createElement(e,{...u,children:d})}function tf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function vu(e,t,n,r){if(typeof t=="function"){const[i,s]=tf(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=tf(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Yi(e){return ye(e)?e.get():e}function Ov({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zv(n,r,i,e),renderState:t()}}function zv(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Yi(s[f]);let{initial:o,animate:a}=e;const l=Hs(e),u=em(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!$s(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y(t,n)=>{const r=j.useContext(Ws),i=j.useContext(Us),s=()=>Ov(e,t,r,i);return n?s():$l(s)};function xu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ye(r[o])||t.style&&ye(t.style[o])||tm(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Bv=om({scrapeMotionValuesFromProps:xu,createRenderState:gu});function am(e,t,n){const r=xu(e,t,n);for(const i in e)if(ye(e[i])||ye(t[i])){const s=nr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Uv=om({scrapeMotionValuesFromProps:am,createRenderState:im}),Wv=Symbol.for("motionComponentSymbol");function An(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $v(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):An(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hv="framerAppearId",lm="data-"+wu(Hv),um=j.createContext({});function Kv(e,t,n,r,i){var x,T;const{visualElement:s}=j.useContext(Ws),o=j.useContext(qp),a=j.useContext(Us),l=j.useContext(du).reducedMotion,u=j.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=j.useContext(um);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&bv(u.current,n,i,d);const f=j.useRef(!1);j.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const y=n[lm],v=j.useRef(!!y&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,y))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,y)));return op(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),j.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,y)}),v.current=!1),c.enteringChildren=void 0)}),c}function bv(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:cm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&An(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function cm(e){if(e)return e.options.allowProjection!==!1?e.projection:cm(e.parent)}function To(e,{forwardMotionProps:t=!1}={},n,r){n&&xv(n);const i=yu(e)?Uv:Bv;function s(a,l){let u;const c={...j.useContext(du),...a,layoutId:Yv(a)},{isStatic:d}=c,f=Tv(a),y=i(a,d);if(!d&&Hl){Gv();const v=Qv(c);u=v.MeasureLayout,f.visualElement=Kv(e,y,c,r,v.ProjectionNode)}return m.jsxs(Ws.Provider,{value:f,children:[u&&f.visualElement?m.jsx(u,{visualElement:f.visualElement,...c}):null,Fv(e,a,$v(y,f.visualElement,l),y,d,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=j.forwardRef(s);return o[Wv]=e,o}function Yv({layoutId:e}){const t=j.useContext(Wl).id;return t&&e!==void 0?t+"-"+e:e}function Gv(e,t){j.useContext(qp).strict}function Qv(e){const{drag:t,layout:n}=Xn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zv(e,t){if(typeof Proxy>"u")return To;const n=new Map,r=(s,o)=>To(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,To(o,void 0,e,t)),n.get(o))})}function fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Xv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Po(e){return e===void 0||e===1}function Ba({scale:e,scaleX:t,scaleY:n}){return!Po(e)||!Po(t)||!Po(n)}function qt(e){return Ba(e)||dm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dm(e){return nf(e.x)||nf(e.y)}function nf(e){return e&&e!=="0%"}function Cs(e,t,n){const r=e-n,i=t*r;return n+i}function rf(e,t,n,r,i){return i!==void 0&&(e=Cs(e,i,r)),Cs(e,n,r)+t}function Ua(e,t=0,n=1,r,i){e.min=rf(e.min,t,n,r,i),e.max=rf(e.max,t,n,r,i)}function hm(e,{x:t,y:n}){Ua(e.x,t.translate,t.scale,t.originPoint),Ua(e.y,n.translate,n.scale,n.originPoint)}const sf=.999999999999,of=1.0000000000001;function Jv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;asf&&(t.x=1),t.ysf&&(t.y=1)}function Vn(e,t){e.min=e.min+t,e.max=e.max+t}function af(e,t,n,r,i=.5){const s=Y(e.min,e.max,i);Ua(e,t,n,s,r)}function Rn(e,t){af(e.x,t.x,t.scaleX,t.scale,t.originX),af(e.y,t.y,t.scaleY,t.scale,t.originY)}function pm(e,t){return fm(qv(e.getBoundingClientRect(),t))}function e2(e,t,n){const r=pm(e,n),{scroll:i}=t;return i&&(Vn(r.x,i.offset.x),Vn(r.y,i.offset.y)),r}const lf=()=>({translate:0,scale:1,origin:0,originPoint:0}),_n=()=>({x:lf(),y:lf()}),uf=()=>({min:0,max:0}),se=()=>({x:uf(),y:uf()}),Wa={current:null},mm={current:!1};function t2(){if(mm.current=!0,!!Hl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Wa.current=e.matches;e.addEventListener("change",t),t()}else Wa.current=!1}const n2=new WeakMap;function r2(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ye(i))e.addValue(r,i);else if(ye(s))e.addValue(r,Zn(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Zn(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const cf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i2{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=au,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 f=Ee.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),mm.current||t2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Wa.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ut(this.notifyUpdate),Ut(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=rr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xn){const n=Xn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Zn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(ap(r)||up(r))?r=parseFloat(r):!fv(r)&&Wt.test(n)&&(r=Hp(t,n)),this.setBaseTarget(t,ye(r)?r.get():r)),ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=vu(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ql),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){cu.render(this.render)}}class gm extends i2{constructor(){super(...arguments),this.KeyframeResolver=Jy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ym(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function s2(e){return window.getComputedStyle(e)}class o2 extends gm{constructor(){super(...arguments),this.type="html",this.renderInstance=ym}readValueFromInstance(t,n){var r;if(rr.has(n))return(r=this.projection)!=null&&r.isProjecting?Va(n):vy(t,n);{const i=s2(t),s=(ql(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pm(t,n)}build(t,n,r){mu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xu(t,n,r)}}const vm=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 a2(e,t,n,r){ym(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(vm.has(i)?i:wu(i),t.attrs[i])}class l2 extends gm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(rr.has(n)){const r=$p(n);return r&&r.default||0}return n=vm.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return am(t,n,r)}build(t,n,r){rm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){a2(t,n,r,i)}mount(t){this.isSVGTag=sm(t.tagName),super.mount(t)}}const u2=(e,t)=>yu(e)?new l2(t):new o2(t,{allowProjection:e!==j.Fragment});function Wn(e,t,n){const r=e.getProps();return vu(r,t,n!==void 0?n:r.custom,e)}const $a=e=>Array.isArray(e);function c2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zn(n))}function f2(e){return $a(e)?e[e.length-1]||0:e}function d2(e,t){const n=Wn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=f2(s[o]);c2(e,o,a)}}function h2(e){return!!(ye(e)&&e.add)}function Ha(e,t){const n=e.getValue("willChange");if(h2(n))return n.add(t);if(!n&&St.WillChange){const r=new St.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function xm(e){return e.props[lm]}const p2=e=>e!==null;function m2(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(p2),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const g2={type:"spring",stiffness:500,damping:25,restSpeed:10},y2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),v2={type:"keyframes",duration:.8},x2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},w2=(e,{keyframes:t})=>t.length>2?v2:rr.has(e)?e.startsWith("scale")?y2(t[1]):g2:x2;function S2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Su=(e,t,n,r={},i,s)=>o=>{const a=lu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-lt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};S2(a)||Object.assign(c,w2(e,c)),c.duration&&(c.duration=lt(c.duration)),c.repeatDelay&&(c.repeatDelay=lt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Oa(c),c.delay===0&&(d=!0)),(St.instantAnimations||St.skipAnimations)&&(d=!0,Oa(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=m2(c.keyframes,a);if(f!==void 0){H.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new ou(c):new Uy(c)};function k2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&k2(u,c))continue;const y={delay:n,...lu(s||{},c)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const p=xm(e);if(p){const h=window.MotionHandoffAnimation(p,c,H);h!==null&&(y.startTime=h,x=!0)}}Ha(e,c),d.start(Su(c,d,f,e.shouldReduceMotion&&Bp.has(c)?{type:!1}:y,e,x));const T=d.animation;T&&l.push(T)}return o&&Promise.all(l).then(()=>{H.update(()=>{o&&d2(e,o)})}),l}function Sm(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Ka(e,t,n={}){var l;const r=Wn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(wm(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return C2(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function C2(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ka(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function T2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Ka(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Ka(e,t,n);else{const i=typeof t=="function"?Wn(e,t,n.custom):t;r=Promise.all(wm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function km(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>T2(e,n,r)))}function N2(e){let t=M2(e),n=ff(),r=!0;const i=l=>(u,c)=>{var f;const d=Wn(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:y,transitionEnd:v,...x}=d;u={...u,...x,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Cm(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let T=0;Tv&&w,R=!1;const D=Array.isArray(g)?g:[g];let Z=D.reduce(i(p),{});S===!1&&(Z={});const{prevResolvedValues:nt={}}=h,ct={...nt,...Z},Yt=K=>{k=!0,f.has(K)&&(R=!0,f.delete(K)),h.needsAnimating[K]=!0;const M=e.getValue(K);M&&(M.liveStyle=!1)};for(const K in ct){const M=Z[K],L=nt[K];if(y.hasOwnProperty(K))continue;let V=!1;$a(M)&&$a(L)?V=!km(M,L):V=M!==L,V?M!=null?Yt(K):f.add(K):M!==void 0&&f.has(K)?Yt(K):h.protectedKeys[K]=!0}h.prevProp=g,h.prevResolvedValues=Z,h.isActive&&(y={...y,...Z}),r&&e.blockInitialAnimation&&(k=!1);const gn=C&&P;k&&(!gn||R)&&d.push(...D.map(K=>{const M={type:p};if(typeof K=="string"&&r&&!gn&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,V=Wn(L,K);if(L.enteringChildren&&V){const{delayChildren:B}=V.transition||{};M.delay=Sm(L.enteringChildren,e,B)}}return{animation:K,options:M}}))}if(f.size){const T={};if(typeof u.initial!="boolean"){const p=Wn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(T.transition=p.transition)}f.forEach(p=>{const h=e.getBaseTarget(p),g=e.getValue(p);g&&(g.liveStyle=!0),T[p]=h??null}),d.push({animation:T})}let x=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ff()}}}function D2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!km(t,e):!1}function Qt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ff(){return{animate:Qt(!0),whileInView:Qt(),whileHover:Qt(),whileTap:Qt(),whileDrag:Qt(),whileFocus:Qt(),exit:Qt()}}class bt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class L2 extends bt{constructor(t){super(t),t.animationState||(t.animationState=N2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let A2=0;class V2 extends bt{constructor(){super(...arguments),this.id=A2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const R2={animation:{Feature:L2},exit:{Feature:V2}};function ei(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ui(e){return{point:{x:e.pageX,y:e.pageY}}}const _2=e=>t=>fu(t)&&e(t,ui(t));function Dr(e,t,n,r){return ei(e,t,_2(n),r)}const Tm=1e-4,I2=1-Tm,F2=1+Tm,Pm=.01,O2=0-Pm,z2=0+Pm;function we(e){return e.max-e.min}function B2(e,t,n){return Math.abs(e-t)<=n}function df(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=we(n)/we(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=I2&&e.scale<=F2||isNaN(e.scale))&&(e.scale=1),(e.translate>=O2&&e.translate<=z2||isNaN(e.translate))&&(e.translate=0)}function Lr(e,t,n,r){df(e.x,t.x,n.x,r?r.originX:void 0),df(e.y,t.y,n.y,r?r.originY:void 0)}function hf(e,t,n){e.min=n.min+t.min,e.max=e.min+we(t)}function U2(e,t,n){hf(e.x,t.x,n.x),hf(e.y,t.y,n.y)}function pf(e,t,n){e.min=t.min-n.min,e.max=e.min+we(t)}function Ts(e,t,n){pf(e.x,t.x,n.x),pf(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const Em=({current:e})=>e?e.ownerDocument.defaultView:null,mf=(e,t)=>Math.abs(e-t);function W2(e,t){const n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class jm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=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 f=jo(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=W2(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:x}=f,{timestamp:T}=fe;this.history.push({...x,timestamp:T});const{onStart:p,onMove:h}=this.handlers;y||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Eo(y,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=jo(f.type==="pointercancel"?this.lastMoveEventInfo:Eo(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,p),x&&x(f,p)},!fu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=ui(t),l=Eo(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=fe;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,jo(l,this.history)),this.removeListeners=oi(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ut(this.updatePoint)}}function Eo(e,t){return t?{point:t(e.point)}:e}function gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jo({point:e},t){return{point:e,delta:gf(e,Mm(t)),offset:gf(e,$2(t)),velocity:H2(t,.1)}}function $2(e){return e[0]}function Mm(e){return e[e.length-1]}function H2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>lt(t)));)n--;if(!r)return{x:0,y:0};const s=We(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function K2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function b2(e,{top:t,left:n,bottom:r,right:i}){return{x:yf(e.x,n,i),y:yf(e.y,t,r)}}function vf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qr(t.min,t.max-r,e.min):r>i&&(n=Qr(e.min,e.max-i,t.min)),wt(0,1,n)}function Q2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ba=.35;function Z2(e=ba){return e===!1?e=0:e===!0&&(e=ba),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const X2=new WeakMap;class q2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ui(d).point)},o=(d,f)=>{const{drag:y,dragPropagation:v,onDragStart:x}=this.getProps();if(y&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rv(y),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(p=>{let h=this.getAxisMotionValue(p).get()||0;if(ut.test(h)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[p];w&&(h=we(w)*(parseFloat(h)/100))}}this.originPoint[p]=h}),x&&H.postRender(()=>x(d,f)),Ha(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:v,onDirectionLock:x,onDrag:T}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:p}=f;if(v&&this.currentDirection===null){this.currentDirection=J2(p),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),T&&T(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Fe(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new jm(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Em(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&H.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Li(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=K2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&An(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=b2(r.layoutBox,t):this.constraints=!1,this.elastic=Z2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Q2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!An(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=e2(r,i.root,this.visualElement.getTransformPagePoint());let o=Y2(i.layout.layoutBox,s);if(n){const a=n(Xv(o));this.hasMutatedConstraints=!!a,a&&(o=fm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Fe(c=>{if(!Li(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ha(this.visualElement,t),r.start(Su(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!Li(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Y(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!An(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=G2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Li(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Y(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;X2.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();An(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const o=ei(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=ba,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Li(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function J2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ex extends bt{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new q2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sf=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class tx extends bt{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new jm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Em(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sf(t),onStart:Sf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&H.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Dr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=kf(e,t.target.x),r=kf(e,t.target.y);return`${n}% ${r}%`}},nx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wt.parse(e);if(i.length>5)return r;const s=Wt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Y(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Mo=!1;class rx extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Pv(ix),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Mo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Gi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Mo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||H.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Mo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Nm(e){const[t,n]=Xp(),r=j.useContext(Wl);return m.jsx(rx,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(um),isPresent:t,safeToRemove:n})}const ix={borderRadius:{...hr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hr,borderTopRightRadius:hr,borderBottomLeftRadius:hr,borderBottomRightRadius:hr,boxShadow:nx};function sx(e,t,n){const r=ye(e)?e:Zn(e);return r.start(Su("",r,t,n)),r.animation}const ox=(e,t)=>e.depth-t.depth;class ax{constructor(){this.children=[],this.isDirty=!1}add(t){Kl(this.children,t),this.isDirty=!0}remove(t){bl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ox),this.isDirty=!1,this.children.forEach(t)}}function lx(e,t){const n=Ee.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ut(r),e(s-t))};return H.setup(r,!0),()=>Ut(r)}const Dm=["TopLeft","TopRight","BottomLeft","BottomRight"],ux=Dm.length,Cf=e=>typeof e=="string"?parseFloat(e):e,Tf=e=>typeof e=="number"||A.test(e);function cx(e,t,n,r,i,s){i?(e.opacity=Y(0,n.opacity??1,fx(r)),e.opacityExit=Y(t.opacity??1,0,dx(r))):s&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(Qr(e,t,r))}function Ef(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){Ef(e.x,t.x),Ef(e.y,t.y)}function jf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Mf(e,t,n,r,i){return e-=t,e=Cs(e,1/n,r),i!==void 0&&(e=Cs(e,1/i,r)),e}function hx(e,t=0,n=1,r=.5,i,s=e,o=e){if(ut.test(t)&&(t=parseFloat(t),t=Y(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Y(s.min,s.max,r);e===s&&(a-=t),e.min=Mf(e.min,t,n,a,i),e.max=Mf(e.max,t,n,a,i)}function Nf(e,t,[n,r,i],s,o){hx(e,t[n],t[r],t[i],t.scale,s,o)}const px=["x","scaleX","originX"],mx=["y","scaleY","originY"];function Df(e,t,n,r){Nf(e.x,t,px,n?n.x:void 0,r?r.x:void 0),Nf(e.y,t,mx,n?n.y:void 0,r?r.y:void 0)}function Lf(e){return e.translate===0&&e.scale===1}function Am(e){return Lf(e.x)&&Lf(e.y)}function Af(e,t){return e.min===t.min&&e.max===t.max}function gx(e,t){return Af(e.x,t.x)&&Af(e.y,t.y)}function Vf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vm(e,t){return Vf(e.x,t.x)&&Vf(e.y,t.y)}function Rf(e){return we(e.x)/we(e.y)}function _f(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yx{constructor(){this.members=[]}add(t){Kl(this.members,t),t.scheduleRender()}remove(t){if(bl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function vx(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const No=["","X","Y","Z"],xx=1e3;let wx=0;function Do(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rm(r)}function _m({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=wx++,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(Cx),this.nodes.forEach(jx),this.nodes.forEach(Mx),this.nodes.forEach(Tx)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;H.read(()=>{d=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==d&&(d=y,this.root.updateBlockedByResize=!0,c&&c(),c=lx(f,250),Gi.hasAnimatedSinceResize&&(Gi.hasAnimatedSinceResize=!1,this.nodes.forEach(Of)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||Vx,{onLayoutAnimationStart:x,onLayoutAnimationComplete:T}=u.getProps(),p=!this.targetLayout||!Vm(this.targetLayout,y),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...lu(v,"layout"),onPlay:x,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,h)}else d||Of(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ut(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(Nx),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!we(this.snapshot.measuredBox.x)&&!we(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 l=0;l{const S=w/1e3;zf(d.x,o.x,S),zf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lx(this.relativeTarget,this.relativeTargetOrigin,f,S),g&&gx(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=se()),Ge(g,this.relativeTarget)),x&&(this.animationValues=c,cx(c,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Gi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zn(0)),this.currentAnimation=sx(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Im(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();const d=we(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=we(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Ge(a,l),Rn(a,c),Lr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yx),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Do("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(If),this.root.sharedNodes.clear()}}}function Sx(e){e.updateLayout()}function kx(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=we(f);f.min=r[d].min,f.max=f.min+y}):Im(s,t.layoutBox,r)&&Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=we(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=_n();Lr(a,r,t.layoutBox);const l=_n();o?Lr(l,e.applyTransform(i,!0),t.measuredBox):Lr(l,r,t.layoutBox);const u=!Am(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=se();Ts(v,t.layoutBox,f.layoutBox);const x=se();Ts(x,r,y.layoutBox),Vm(v,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Cx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Tx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Px(e){e.clearSnapshot()}function If(e){e.clearMeasurements()}function Ff(e){e.isLayoutDirty=!1}function Ex(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Of(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jx(e){e.resolveTargetDelta()}function Mx(e){e.calcProjection()}function Nx(e){e.resetSkewAndRotation()}function Dx(e){e.removeLeadSnapshot()}function zf(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bf(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function Lx(e,t,n,r){Bf(e.x,t.x,n.x,r),Bf(e.y,t.y,n.y,r)}function Ax(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vx={duration:.45,ease:[.4,0,.1,1]},Uf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Uf("applewebkit/")&&!Uf("chrome/")?Math.round:He;function $f(e){e.min=Wf(e.min),e.max=Wf(e.max)}function Rx(e){$f(e.x),$f(e.y)}function Im(e,t,n){return e==="position"||e==="preserve-aspect"&&!B2(Rf(t),Rf(n),.2)}function _x(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Ix=_m({attachResizeListener:(e,t)=>ei(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lo={current:void 0},Fm=_m({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lo.current){const e=new Ix({});e.mount(window),e.setOptions({layoutScroll:!0}),Lo.current=e}return Lo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fx={pan:{Feature:tx},drag:{Feature:ex,ProjectionNode:Fm,MeasureLayout:Nm}};function Hf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&H.postRender(()=>s(t,ui(t)))}class Ox extends bt{mount(){const{current:t}=this.node;t&&(this.unmount=iv(t,(n,r)=>(Hf(this.node,r,"Start"),i=>Hf(this.node,i,"End"))))}unmount(){}}class zx extends bt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=oi(ei(this.node.current,"focus",()=>this.onFocus()),ei(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Kf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&H.postRender(()=>s(t,ui(t)))}class Bx extends bt{mount(){const{current:t}=this.node;t&&(this.unmount=lv(t,(n,r)=>(Kf(this.node,r,"Start"),(i,{success:s})=>Kf(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ya=new WeakMap,Ao=new WeakMap,Ux=e=>{const t=Ya.get(e.target);t&&t(e)},Wx=e=>{e.forEach(Ux)};function $x({root:e,...t}){const n=e||document;Ao.has(n)||Ao.set(n,{});const r=Ao.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Wx,{root:e,...t})),r[i]}function Hx(e,t,n){const r=$x(t);return Ya.set(e,n),r.observe(e),()=>{Ya.delete(e),r.unobserve(e)}}const Kx={some:0,all:1};class bx extends bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Kx[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Hx(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Yx(t,n))&&this.startObserver()}unmount(){}}function Yx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Gx={inView:{Feature:bx},tap:{Feature:Bx},focus:{Feature:zx},hover:{Feature:Ox}},Qx={layout:{ProjectionNode:Fm,MeasureLayout:Nm}},Zx={...R2,...Gx,...Fx,...Qx},J=Zv(Zx,u2),ir="/api";async function Xx(){return(await fetch(`${ir}/state`)).json()}async function bf(){return(await fetch(`${ir}/dependencies/check`)).json()}async function Ai(){return(await fetch(`${ir}/docker/status`)).json()}async function qx(){return(await fetch(`${ir}/docker/build`,{method:"POST"})).json()}async function Vo(){return(await fetch(`${ir}/defaults`)).json()}async function Yf(e){return(await fetch(`${ir}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}const Om="/assets/wails-logo-white-text-B284k7fX.svg",zm="/assets/wails-logo-black-text-Cx-vsZ4W.svg";function Jx(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":return"identity";case"language-select":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function e3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const Bm=j.createContext({theme:"dark",toggleTheme:()=>{}}),Um=()=>j.useContext(Bm),Be={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function t3({currentStep:e}){const{theme:t,toggleTheme:n}=Um(),r=Jx(e),i=e3(r),s=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],o=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")};return m.jsxs("div",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col",children:[m.jsx("div",{className:"p-6 flex justify-center",children:m.jsx("img",{src:t==="dark"?Om:zm,alt:"Wails",className:"h-24 object-contain"})}),m.jsx("nav",{className:"flex-1 px-4 py-2",children:m.jsx("ul",{className:"space-y-1",children:s.map((a,l)=>{const u=l+1,c=a.key===r,d=u!l.installed&&l.required),o=(()=>{const l=s.filter(f=>{var y;return(y=f.installCommand)==null?void 0:y.startsWith("sudo ")}).map(f=>f.installCommand);if(l.length===0)return null;const u=[],c=[],d=[];for(const f of l)if(f.includes("pacman -S")){const y=f.match(/pacman -S\s+(.+)/);y&&u.push(...y[1].split(/\s+/))}else if(f.includes("apt install")){const y=f.match(/apt install\s+(.+)/);y&&c.push(...y[1].split(/\s+/))}else if(f.includes("dnf install")){const y=f.match(/dnf install\s+(.+)/);y&&d.push(...y[1].split(/\s+/))}return u.length>0?`sudo pacman -S ${u.join(" ")}`:c.length>0?`sudo apt install ${c.join(" ")}`:d.length>0?`sudo dnf install ${d.join(" ")}`:null})(),a=()=>{o&&(navigator.clipboard.writeText(o),i(!0),setTimeout(()=>i(!1),2e3))};return m.jsxs(ku,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",children:[m.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:s.map(l=>m.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[m.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:m.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),m.jsxs("div",{children:[m.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:l.name}),l.message&&m.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:l.message}),l.helpUrl&&m.jsxs("a",{href:l.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",m.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},l.name))}),o&&m.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[m.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:o}),m.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:r?m.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):m.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function o3({dockerDep:e,onYes:t,onSkip:n}){const r=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return m.jsx(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:r?m.jsxs(m.Fragment,{children:[m.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:m.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),m.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[m.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),m.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),m.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),m.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),m.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[m.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),m.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),m.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:m.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),m.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),m.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),m.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"}),m.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function a3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onSkip:s}){if(!e||!e.installed)return m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:m.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:m.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),m.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",m.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),m.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),m.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[m.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"}),m.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:m.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:m.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),m.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[m.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"}),m.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const o=e.pullProgress||0;return m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:m.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:m.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Building cross-compiler image"}),m.jsxs("div",{className:"w-64 mb-4",children:[m.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[m.jsx("span",{children:"Progress"}),m.jsxs("span",{children:[o,"%"]})]}),m.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:m.jsx(J.div,{className:"h-full bg-blue-500",animate:{width:`${o}%`}})})]}),m.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),m.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.imageBuilt?m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:m.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),m.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:m.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:m.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Build the cross-compilation image to enable building for all platforms"}),m.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),m.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Build Image"}),m.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const l3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function u3({preferTypeScript:e,onSelect:t,onNext:n}){return m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col",children:[m.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center",children:[m.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Language Preference"}),m.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),m.jsxs("div",{className:"flex gap-4",children:[m.jsxs("button",{onClick:()=>t(!1),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[m.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:m.jsx("img",{src:"/logos/javascript.svg",alt:"JavaScript",className:"w-14 h-14"})}),m.jsx("span",{className:"text-lg font-semibold text-white",children:"JavaScript"}),m.jsx("span",{className:"text-xs text-white/50",children:"Dynamic typing"})]}),m.jsxs("button",{onClick:()=>t(!0),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[m.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:m.jsx("img",{src:"/logos/typescript.svg",alt:"TypeScript",className:"w-14 h-14"})}),m.jsx("span",{className:"text-lg font-semibold text-white",children:"TypeScript"}),m.jsx("span",{className:"text-xs text-white/50",children:"Type safety"})]})]})]}),m.jsx("div",{className:"flex justify-center pb-6",children:m.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})})]})}function c3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i}){return m.jsxs(ku,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",children:[m.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto",children:l3.map(s=>m.jsxs("button",{onClick:()=>n(s.id),className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 ${e===s.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[m.jsx("img",{src:`/logos/${s.id==="vanilla"?t?"typescript":"javascript":s.icon}.svg`,alt:s.name,className:"w-12 h-12"}),m.jsx("span",{className:"text-sm font-medium text-white",children:s.name})]},s.id))}),m.jsx("p",{className:"text-xs text-white/40 mt-4 text-center",children:"This sets the default template for new projects"})]})}function f3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i}){const[s,o]=j.useState(null),[a,l]=j.useState(""),u=f=>{f==="company"?l(e.author.company):f==="bundleId"&&l(e.project.productIdentifierPrefix),o(f)},c=()=>{s==="company"?t({...e,author:{...e.author,company:a}}):s==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:a}}),o(null)},d=f=>{f.key==="Enter"?c():f.key==="Escape"&&o(null)};return m.jsx(ku,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",children:m.jsxs("div",{className:"max-w-xl mx-auto",children:[m.jsxs("div",{className:"settings-group",children:[s==="company"?m.jsx("div",{className:"settings-row",children:m.jsx("div",{className:"flex-1",children:m.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"Acme Corp",className:"w-full bg-transparent border-none text-sm text-white placeholder-gray-500 focus:outline-none"})})}):m.jsxs("div",{className:"settings-row",onClick:()=>u("company"),children:[m.jsx("span",{className:"text-sm font-medium text-white/90",children:"Company"}),m.jsxs("div",{className:"flex items-center gap-2 text-sm text-white/65",children:[m.jsx("span",{children:e.author.company||"Not set"}),m.jsx("span",{className:"text-white/40 text-xs",children:"▸"})]})]}),s==="bundleId"?m.jsx("div",{className:"settings-row",children:m.jsx("div",{className:"flex-1",children:m.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"com.example",className:"w-full bg-transparent border-none text-sm text-white placeholder-gray-500 focus:outline-none font-mono"})})}):m.jsxs("div",{className:"settings-row",onClick:()=>u("bundleId"),children:[m.jsx("span",{className:"text-sm font-medium text-white/90",children:"Bundle identifier"}),m.jsxs("div",{className:"flex items-center gap-2 text-sm text-white/65",children:[m.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),m.jsx("span",{className:"text-white/40 text-xs",children:"▸"})]})]})]}),m.jsx("p",{className:"text-xs text-white/40 mt-3 text-center",children:"These defaults are used when creating new projects"})]})})}function d3(){return m.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-8",children:[m.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center mb-4",children:m.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),m.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-6",children:"You're ready to build!"}),m.jsx("a",{href:"https://v3alpha.wails.io/quick-start/first-app/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Start Building"})]})}function h3(){const[e,t]=j.useState("splash"),[n,r]=j.useState([]),[i,s]=j.useState(null),[o,a]=j.useState(null),[l,u]=j.useState(!1),[c,d]=j.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0"}}),[f,y]=j.useState(!1),[v,x]=j.useState(!1),[T,p]=j.useState(!0),[h,g]=j.useState("vanilla"),[w,S]=j.useState(()=>{if(typeof window<"u"){const _=localStorage.getItem("wails-setup-theme");if(_==="light"||_==="dark")return _;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),C=()=>{S(_=>{const ie=_==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",ie),ie})};j.useEffect(()=>{w==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[w]),j.useEffect(()=>{P()},[]);const P=async()=>{const _=await Xx();s(_.system)},k=async()=>{t("checking");const _=await bf();r(_),_.filter(Ie=>Ie.required&&!Ie.installed).length===0?t("deps-ready"):t("deps-missing")},R=async()=>{t("cross-platform")},D=async()=>{t("checking");const _=await bf();r(_),_.filter(Ie=>Ie.required&&!Ie.installed).length===0?t("deps-ready"):t("deps-missing")},Z=async()=>{t("cross-platform")},nt=async()=>{const _=await Ai();a(_),t("docker-setup")},ct=async()=>{const _=await Vo();d(_),t("projects")},Yt=async()=>{const _=await Ai();a(_)},gn=async()=>{u(!0),await qx();const _=async()=>{const ie=await Ai();a(ie),ie.pullStatus==="pulling"?setTimeout(_,1e3):u(!1)};_()},yn=async()=>{(l||o&&o.pullStatus==="pulling")&&x(!0);const _=await Vo();d(_),t("projects")},K=async()=>{const _=await Vo();d(_),t("projects")},M=()=>{t("language-select")},L=()=>{t("language-select")},V=()=>{t("template-select")},B=async()=>{const _=T&&h!=="vanilla"?`${h}-ts`:T&&h==="vanilla"?"vanilla-ts":h,ie={...c,project:{...c.project,defaultTemplate:_}};y(!0),await Yf(ie),y(!1),t("complete")},te=async()=>{y(!0),await Yf(c),y(!1),t("complete")};return j.useEffect(()=>{if(v&&(l||o&&o.pullStatus==="pulling")){const _=async()=>{const Ie=await Ai();a(Ie),Ie.pullStatus==="pulling"?setTimeout(_,2e3):u(!1)},ie=setTimeout(_,2e3);return()=>clearTimeout(ie)}},[v,l,o==null?void 0:o.pullStatus]),m.jsx(Bm.Provider,{value:{theme:w,toggleTheme:C},children:m.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[m.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:m.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[m.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),m.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),m.jsxs("div",{className:"w-[75vw] max-w-[75vw] h-[75vh] max-h-[75vh] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[m.jsx(t3,{currentStep:e}),m.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03]",children:m.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:m.jsxs(vv,{mode:"wait",children:[e==="splash"&&m.jsx(n3,{onNext:k},"splash"),e==="checking"&&m.jsx(r3,{},"checking"),e==="deps-ready"&&m.jsx(i3,{onNext:R},"deps-ready"),e==="deps-missing"&&m.jsx(s3,{dependencies:n,onRetry:D,onContinue:Z},"deps-missing"),e==="cross-platform"&&m.jsx(o3,{dockerDep:n.find(_=>_.name==="docker"),onYes:nt,onSkip:ct},"cross-platform"),e==="docker-setup"&&m.jsx(a3,{dockerStatus:o,buildingImage:l,onBuildImage:gn,onCheckAgain:Yt,onContinueBackground:yn,onSkip:K},"docker-setup"),e==="projects"&&m.jsx(f3,{defaults:c,onDefaultsChange:d,onNext:M,onSkip:L,saving:f},"projects"),e==="language-select"&&m.jsx(u3,{preferTypeScript:T,onSelect:p,onNext:V},"language-select"),e==="template-select"&&m.jsx(c3,{selectedFramework:h,preferTypeScript:T,onSelect:g,onNext:B,onSkip:te},"template-select"),e==="complete"&&m.jsx(d3,{},"complete")]})})})]})]})})}Ro.createRoot(document.getElementById("root")).render(m.jsx(i0.StrictMode,{children:m.jsx(h3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-aGFUz6Rg.js b/v3/internal/setupwizard/frontend/dist/assets/index-aGFUz6Rg.js deleted file mode 100644 index cac51197f..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-aGFUz6Rg.js +++ /dev/null @@ -1,48 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qf={exports:{}},Ps={},Zf={exports:{}},I={};/** - * @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 ti=Symbol.for("react.element"),Hm=Symbol.for("react.portal"),Km=Symbol.for("react.fragment"),bm=Symbol.for("react.strict_mode"),Ym=Symbol.for("react.profiler"),Gm=Symbol.for("react.provider"),Qm=Symbol.for("react.context"),Zm=Symbol.for("react.forward_ref"),Xm=Symbol.for("react.suspense"),qm=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Tu=Symbol.iterator;function e0(e){return e===null||typeof e!="object"?null:(e=Tu&&e[Tu]||e["@@iterator"],typeof e=="function"?e:null)}var Xf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qf=Object.assign,Jf={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}Jn.prototype.isReactComponent={};Jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ed(){}ed.prototype=Jn.prototype;function Qa(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}var Za=Qa.prototype=new ed;Za.constructor=Qa;qf(Za,Jn.prototype);Za.isPureReactComponent=!0;var Pu=Array.isArray,td=Object.prototype.hasOwnProperty,Xa={current:null},nd={key:!0,ref:!0,__self:!0,__source:!0};function rd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)td.call(t,r)&&!nd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,te=N[B];if(0>>1;Bi(xe,V))hei(ci,xe)?(N[B]=ci,N[he]=V,B=he):(N[B]=xe,N[_]=V,B=_);else if(hei(ci,V))N[B]=ci,N[he]=V,B=he;else break e}}return L}function i(N,L){var V=N.sortIndex-L.sortIndex;return V!==0?V:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=N)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(N){if(x=!1,g(N),!v)if(n(l)!==null)v=!0,yn(S);else{var L=n(u);L!==null&&K(w,L.startTime-N)}}function S(N,L){v=!1,x&&(x=!1,m(k),k=-1),y=!0;var V=f;try{for(g(L),d=n(l);d!==null&&(!(d.expirationTime>L)||N&&!Z());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var te=B(d.expirationTime<=L);L=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),g(L)}else r(l);d=n(l)}if(d!==null)var vn=!0;else{var _=n(u);_!==null&&K(w,_.startTime-L),vn=!1}return vn}finally{d=null,f=V,y=!1}}var C=!1,P=null,k=-1,R=5,D=-1;function Z(){return!(e.unstable_now()-DN||125B?(N.sortIndex=V,t(u,N),n(l)===null&&N===n(u)&&(x?(m(k),k=-1):x=!0,K(w,V-B))):(N.sortIndex=te,t(l,N),v||y||(v=!0,yn(S))),N},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(N){var L=f;return function(){var V=f;f=L;try{return N.apply(this,arguments)}finally{f=V}}}})(ld);ad.exports=ld;var d0=ad.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 h0=j,Re=d0;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=Object.prototype.hasOwnProperty,p0=/^[: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]*$/,ju={},Nu={};function m0(e){return Io.call(Nu,e)?!0:Io.call(ju,e)?!1:p0.test(e)?Nu[e]=!0:(ju[e]=!0,!1)}function g0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function y0(e,t,n,r){if(t===null||typeof t>"u"||g0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new Te(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){de[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ja=/[\-:]([a-z])/g;function el(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ja,el);de[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ja,el);de[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ja,el);de[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function tl(e,t,n,r){var i=de.hasOwnProperty(t)?de[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function v0(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=Gs(e.type,!1),e;case 11:return e=Gs(e.type.render,!1),e;case 1:return e=Gs(e.type,!0),e;default:return""}}function Bo(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 Sn:return"Fragment";case wn:return"Portal";case Fo:return"Profiler";case nl:return"StrictMode";case Oo:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fd:return(e.displayName||"Context")+".Consumer";case cd:return(e._context.displayName||"Context")+".Provider";case rl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case il:return t=e.displayName||null,t!==null?t:Bo(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return Bo(e(t))}catch{}}return null}function x0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bo(t);case 8:return t===nl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w0(e){var t=hd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){e._valueTracker||(e._valueTracker=w0(e))}function pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qi(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 Uo(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function md(e,t){t=t.checked,t!=null&&tl(e,"checked",t,!1)}function Wo(e,t){md(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$o(e,t.type,n):t.hasOwnProperty("defaultValue")&&$o(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $o(e,t,n){(t!=="number"||Qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xr={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},S0=["Webkit","ms","Moz","O"];Object.keys(xr).forEach(function(e){S0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xr[t]=xr[e]})});function xd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xr.hasOwnProperty(e)&&xr[e]?(""+t).trim():t+"px"}function wd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=xd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var k0=Q({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 bo(e,t){if(t){if(k0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Go=null;function sl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,On=null,zn=null;function Ru(e){if(e=ii(e)){if(typeof Qo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ds(t),Qo(e.stateNode,e.type,t))}}function Sd(e){On?zn?zn.push(e):zn=[e]:On=e}function kd(){if(On){var e=On,t=zn;if(zn=On=null,Ru(e),t)for(e=0;e>>=0,e===0?32:31-(V0(e)/R0|0)|0}var mi=64,gi=4194304;function gr(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 Ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=gr(a):(s&=o,s!==0&&(r=gr(s)))}else o=n&~i,o!==0?r=gr(o):s!==0&&(r=gr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Je(t),e[t]=n}function O0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Sr),$u=" ",Hu=!1;function Wd(e,t){switch(e){case"keyup":return d1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function p1(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(Hu=!0,$u);case"textInput":return e=t.data,e===$u&&Hu?null:e;default:return null}}function m1(e,t){if(kn)return e==="compositionend"||!hl&&Wd(e,t)?(e=Bd(),Ii=cl=Mt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gu(n)}}function Yd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gd(){for(var e=window,t=Qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function pl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function T1(e){var t=Gd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yd(n.ownerDocument.documentElement,n)){if(r!==null&&pl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Qu(n,s);var o=Qu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cn=null,ta=null,Cr=null,na=!1;function Zu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;na||Cn==null||Cn!==Qi(r)||(r=Cn,"selectionStart"in r&&pl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&zr(Cr,r)||(Cr=r,r=ns(ta,"onSelect"),0En||(e.current=la[En],la[En]=null,En--)}function z(e,t){En++,la[En]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ne=Ht(!1),ln=Bt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function is(){W(Ne),W(ve)}function rc(e,t,n){if(ve.current!==Bt)throw Error(E(168));z(ve,t),z(Ne,n)}function rh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,x0(e)||"Unknown",i));return Q({},n,r)}function ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,ln=ve.current,z(ve,e),z(Ne,Ne.current),!0}function ic(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=rh(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,W(Ne),W(ve),z(ve,e)):W(Ne),z(Ne,n)}var dt=null,Ls=!1,lo=!1;function ih(e){dt===null?dt=[e]:dt.push(e)}function I1(e){Ls=!0,ih(e)}function Kt(){if(!lo&&dt!==null){lo=!0;var e=0,t=O;try{var n=dt;for(O=1;e>=o,i-=o,ht=1<<32-Je(t)+i|n<k?(R=P,P=null):R=P.sibling;var D=f(m,P,g[k],w);if(D===null){P===null&&(P=R);break}e&&P&&D.alternate===null&&t(m,P),h=s(D,h,k),C===null?S=D:C.sibling=D,C=D,P=R}if(k===g.length)return n(m,P),$&&Qt(m,k),S;if(P===null){for(;kk?(R=P,P=null):R=P.sibling;var Z=f(m,P,D.value,w);if(Z===null){P===null&&(P=R);break}e&&P&&Z.alternate===null&&t(m,P),h=s(Z,h,k),C===null?S=Z:C.sibling=Z,C=Z,P=R}if(D.done)return n(m,P),$&&Qt(m,k),S;if(P===null){for(;!D.done;k++,D=g.next())D=d(m,D.value,w),D!==null&&(h=s(D,h,k),C===null?S=D:C.sibling=D,C=D);return $&&Qt(m,k),S}for(P=r(m,P);!D.done;k++,D=g.next())D=y(P,m,k,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),h=s(D,h,k),C===null?S=D:C.sibling=D,C=D);return e&&P.forEach(function(nt){return t(m,nt)}),$&&Qt(m,k),S}function T(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===Sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case di:e:{for(var S=g.key,C=h;C!==null;){if(C.key===S){if(S=g.type,S===Sn){if(C.tag===7){n(m,C.sibling),h=i(C,g.props.children),h.return=m,m=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pt&&ac(S)===C.type){n(m,C.sibling),h=i(C,g.props),h.ref=cr(m,C,g),h.return=m,m=h;break e}n(m,C);break}else t(m,C);C=C.sibling}g.type===Sn?(h=sn(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=Hi(g.type,g.key,g.props,null,m.mode,w),w.ref=cr(m,h,g),w.return=m,m=w)}return o(m);case wn:e:{for(C=g.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=yo(g,m.mode,w),h.return=m,m=h}return o(m);case Pt:return C=g._init,T(m,h,C(g._payload),w)}if(mr(g))return v(m,h,g,w);if(sr(g))return x(m,h,g,w);Ci(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=go(g,m.mode,w),h.return=m,m=h),o(m)):n(m,h)}return T}var Yn=lh(!0),uh=lh(!1),ls=Ht(null),us=null,Mn=null,vl=null;function xl(){vl=Mn=us=null}function wl(e){var t=ls.current;W(ls),e._currentValue=t}function fa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){us=e,vl=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(vl!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(us===null)throw Error(E(308));Mn=e,us.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var Jt=null;function Sl(e){Jt===null?Jt=[e]:Jt.push(e)}function ch(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Sl(t)):(n.next=i.next,i.next=n),t.interleaved=n,vt(e,r)}function vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Et=!1;function kl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vt(e,n)}return i=r.interleaved,i===null?(t.next=t,Sl(r)):(t.next=i.next,i.next=t),r.interleaved=t,vt(e,n)}function Oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,al(e,n)}}function lc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cs(e,t,n,r){var i=e.updateQueue;Et=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(f=t,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=Q({},d,f);break e;case 2:Et=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);fn|=o,e.lanes=o,e.memoizedState=d}}function uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{O=n,co.transition=r}}function Nh(){return be().memoizedState}function B1(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))Dh(t,n);else if(n=ch(e,t,n,r),n!==null){var i=ke();et(n,e,r,i),Lh(n,t,r)}}function U1(e,t,n){var r=Ft(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))Dh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,tt(a,o)){var l=t.interleaved;l===null?(i.next=i,Sl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ch(e,t,i,r),n!==null&&(i=ke(),et(n,e,r,i),Lh(n,t,r))}}function Mh(e){var t=e.alternate;return e===G||t!==null&&t===G}function Dh(e,t){Tr=ds=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,al(e,n)}}var hs={readContext:Ke,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},W1={readContext:Ke,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:fc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bi(4194308,4,Ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var n=it();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=it();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B1.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:cc,useDebugValue:Dl,useDeferredValue:function(e){return it().memoizedState=e},useTransition:function(){var e=cc(!1),t=e[0];return e=z1.bind(null,e[1]),it().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=it();if($){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),le===null)throw Error(E(349));cn&30||mh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,fc(yh.bind(null,r,s,e),[e]),r.flags|=2048,Yr(9,gh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=it(),t=le.identifierPrefix;if($){var n=pt,r=ht;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[st]=t,e[Wr]=r,Uh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Yo(n,r),n){case"dialog":U("cancel",e),U("close",e),i=r;break;case"iframe":case"object":case"embed":U("load",e),i=r;break;case"video":case"audio":for(i=0;iZn&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304)}else{if(!r)if(e=fs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!$)return me(t),null}else 2*ee()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ee(),t.sibling=null,n=b.current,z(b,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return Il(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Le&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Z1(e,t){switch(gl(t),t.tag){case 1:return Me(t.type)&&is(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),W(Ne),W(ve),Pl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tl(t),null;case 13:if(W(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(b),null;case 4:return Gn(),null;case 10:return wl(t.type._context),null;case 22:case 23:return Il(),null;case 24:return null;default:return null}}var Pi=!1,ge=!1,X1=typeof WeakSet=="function"?WeakSet:Set,M=null;function Dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function wa(e,t,n){try{n()}catch(r){q(e,t,r)}}var kc=!1;function q1(e,t){if(ra=es,e=Gd(),pl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ia={focusedElem:e,selectionRange:n},es=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,T=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ze(t.type,x),T);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){q(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=kc,kc=!1,v}function Pr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&wa(t,n,s)}i=i.next}while(i!==r)}}function Rs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hh(e){var t=e.alternate;t!==null&&(e.alternate=null,Hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[st],delete t[Wr],delete t[aa],delete t[R1],delete t[_1])),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 Kh(e){return e.tag===5||e.tag===3||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kh(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 ka(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rs));else if(r!==4&&(e=e.child,e!==null))for(ka(e,t,n),e=e.sibling;e!==null;)ka(e,t,n),e=e.sibling}function Ca(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ca(e,t,n),e=e.sibling;e!==null;)Ca(e,t,n),e=e.sibling}var ue=null,Xe=!1;function Ct(e,t,n){for(n=n.child;n!==null;)bh(e,t,n),n=n.sibling}function bh(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Es,n)}catch{}switch(n.tag){case 5:ge||Dn(n,t);case 6:var r=ue,i=Xe;ue=null,Ct(e,t,n),ue=r,Xe=i,ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?ao(e.parentNode,n):e.nodeType===1&&ao(e,n),Fr(e)):ao(ue,n.stateNode));break;case 4:r=ue,i=Xe,ue=n.stateNode.containerInfo,Xe=!0,Ct(e,t,n),ue=r,Xe=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&wa(n,t,o),i=i.next}while(i!==r)}Ct(e,t,n);break;case 1:if(!ge&&(Dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){q(n,t,a)}Ct(e,t,n);break;case 21:Ct(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Ct(e,t,n),ge=r):Ct(e,t,n);break;default:Ct(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new X1),t.forEach(function(r){var i=ag.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eg(r/1960))-r,10e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,gs=0,F&6)throw Error(E(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lee()-Rl?rn(e,0):Vl|=n),De(e,t)}function ep(e,t){t===0&&(e.mode&1?(t=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):t=1);var n=ke();e=vt(e,t),e!==null&&(ni(e,t,n),De(e,n))}function og(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ep(e,n)}function ag(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),ep(e,n)}var tp;tp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,G1(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,$&&t.flags&1048576&&sh(t,as,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ui(e,t),e=t.pendingProps;var i=Kn(t,ve.current);Un(t,n),i=jl(null,t,r,e,i,n);var s=Nl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(s=!0,ss(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kl(t),i.updater=Vs,t.stateNode=i,i._reactInternals=t,ha(t,r,e,n),t=ga(null,t,r,!0,s,n)):(t.tag=0,$&&s&&ml(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ui(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ug(r),e=Ze(r,e),i){case 0:t=ma(null,t,r,e,n);break e;case 1:t=xc(null,t,r,e,n);break e;case 11:t=yc(null,t,r,e,n);break e;case 14:t=vc(null,t,r,Ze(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),ma(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),xc(e,t,r,i,n);case 3:e:{if(Oh(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,fh(e,t),cs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Qn(Error(E(423)),t),t=wc(e,t,r,n,i);break e}else if(r!==i){i=Qn(Error(E(424)),t),t=wc(e,t,r,n,i);break e}else for(Ae=Rt(t.stateNode.containerInfo.firstChild),Ve=t,$=!0,qe=null,n=uh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=xt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return dh(t),e===null&&ca(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,sa(r,i)?o=null:s!==null&&sa(r,s)&&(t.flags|=32),Fh(e,t),we(e,t,o,n),t.child;case 6:return e===null&&ca(t),null;case 13:return zh(e,t,n);case 4:return Cl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),yc(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,z(ls,r._currentValue),r._currentValue=o,s!==null)if(tt(s.value,o)){if(s.children===i.children&&!Ne.current){t=xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=mt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fa(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fa(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ke(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),vc(e,t,r,i,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ui(e,t),t.tag=1,Me(r)?(e=!0,ss(t)):e=!1,Un(t,n),Ah(t,r,i),ha(t,r,i,n),ga(null,t,r,!0,e,n);case 19:return Bh(e,t,n);case 22:return Ih(e,t,n)}throw Error(E(156,t.tag))};function np(e,t){return Md(e,t)}function lg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new lg(e,t,n,r)}function Ol(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ug(e){if(typeof e=="function")return Ol(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rl)return 11;if(e===il)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Ol(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Sn:return sn(n.children,i,s,t);case nl:o=8,i|=8;break;case Fo:return e=Ue(12,n,t,i|2),e.elementType=Fo,e.lanes=s,e;case Oo:return e=Ue(13,n,t,i),e.elementType=Oo,e.lanes=s,e;case zo:return e=Ue(19,n,t,i),e.elementType=zo,e.lanes=s,e;case dd:return Is(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cd:o=10;break e;case fd:o=9;break e;case rl:o=11;break e;case il:o=14;break e;case Pt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function sn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Is(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=dd,e.lanes=n,e.stateNode={isHidden:!1},e}function go(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,i,s,o,a,l){return e=new cg(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ue(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kl(s),e}function fg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(op)}catch(e){console.error(e)}}op(),od.exports=_e;var gg=od.exports,Ac=gg;_o.createRoot=Ac.createRoot,_o.hydrateRoot=Ac.hydrateRoot;const $l=j.createContext({});function Hl(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Kl=typeof window<"u",ap=Kl?j.useLayoutEffect:j.useEffect,Us=j.createContext(null);function bl(e,t){e.indexOf(t)===-1&&e.push(t)}function Yl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const wt=(e,t,n)=>n>t?t:n{};const St={},lp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function up(e){return typeof e=="object"&&e!==null}const cp=e=>/^0[^.\s]+$/u.test(e);function Ql(e){let t;return()=>(t===void 0&&(t=e()),t)}const He=e=>e,yg=(e,t)=>n=>t(e(n)),oi=(...e)=>e.reduce(yg),Qr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zl{constructor(){this.subscriptions=[]}add(t){return bl(this.subscriptions,t),()=>Yl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,We=e=>e/1e3;function fp(e,t){return t?e*(1e3/t):0}const dp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vg=1e-7,xg=12;function wg(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=dp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>vg&&++awg(s,0,1,e,n);return s=>s===0||s===1?s:dp(i(s),t,r)}const hp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pp=e=>t=>1-e(1-t),mp=ai(.33,1.53,.69,.99),Xl=pp(mp),gp=hp(Xl),yp=e=>(e*=2)<1?.5*Xl(e):.5*(2-Math.pow(2,-10*(e-1))),ql=e=>1-Math.sin(Math.acos(e)),vp=pp(ql),xp=hp(ql),Sg=ai(.42,0,1,1),kg=ai(0,0,.58,1),wp=ai(.42,0,.58,1),Cg=e=>Array.isArray(e)&&typeof e[0]!="number",Sp=e=>Array.isArray(e)&&typeof e[0]=="number",Tg={linear:He,easeIn:Sg,easeInOut:wp,easeOut:kg,circIn:ql,circInOut:xp,circOut:vp,backIn:Xl,backInOut:gp,backOut:mp,anticipate:yp},Pg=e=>typeof e=="string",Vc=e=>{if(Sp(e)){Gl(e.length===4);const[t,n,r,i]=e;return ai(t,n,r,i)}else if(Pg(e))return Tg[e];return e},Ni=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Eg(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&i?n:r;return d&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const jg=40;function kp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ni.reduce((g,w)=>(g[w]=Eg(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:y,postRender:v}=o,x=()=>{const g=St.useManualTiming?i.timestamp:performance.now();n=!1,St.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,jg),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),y.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},T=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Ni.reduce((g,w)=>{const S=o[w];return g[w]=(C,P=!1,k=!1)=>(n||T(),S.schedule(C,P,k)),g},{}),cancel:g=>{for(let w=0;w(Ki===void 0&&je.set(ce.isProcessing||St.useManualTiming?ce.timestamp:performance.now()),Ki),set:e=>{Ki=e,queueMicrotask(Ng)}},Cp=e=>t=>typeof t=="string"&&t.startsWith(e),Jl=Cp("--"),Mg=Cp("var(--"),eu=e=>Mg(e)?Dg.test(e.split("/*")[0].trim()):!1,Dg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zr={...nr,transform:e=>wt(0,1,e)},Mi={...nr,default:1},Nr=e=>Math.round(e*1e5)/1e5,tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lg(e){return e==null}const Ag=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nu=(e,t)=>n=>!!(typeof n=="string"&&Ag.test(n)&&n.startsWith(e)||t&&!Lg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(tu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Vg=e=>wt(0,255,e),xo={...nr,transform:e=>Math.round(Vg(e))},tn={test:nu("rgb","red"),parse:Tp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xo.transform(e)+", "+xo.transform(t)+", "+xo.transform(n)+", "+Nr(Zr.transform(r))+")"};function Rg(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Na={test:nu("#"),parse:Rg,transform:tn.transform},li=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tt=li("deg"),ut=li("%"),A=li("px"),_g=li("vh"),Ig=li("vw"),Rc={...ut,parse:e=>ut.parse(e)/100,transform:e=>ut.transform(e*100)},An={test:nu("hsl","hue"),parse:Tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ut.transform(Nr(t))+", "+ut.transform(Nr(n))+", "+Nr(Zr.transform(r))+")"},ne={test:e=>tn.test(e)||Na.test(e)||An.test(e),parse:e=>tn.test(e)?tn.parse(e):An.test(e)?An.parse(e):Na.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tn.transform(e):An.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},Fg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Og(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tu))==null?void 0:t.length)||0)+(((n=e.match(Fg))==null?void 0:n.length)||0)>0}const Pp="number",Ep="color",zg="var",Bg="var(",_c="${}",Ug=/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 Xr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(Ug,l=>(ne.test(l)?(r.color.push(s),i.push(Ep),n.push(ne.parse(l))):l.startsWith(Bg)?(r.var.push(s),i.push(zg),n.push(l)):(r.number.push(s),i.push(Pp),n.push(parseFloat(l))),++s,_c)).split(_c);return{values:n,split:a,indexes:r,types:i}}function jp(e){return Xr(e).values}function Np(e){const{split:t,types:n}=Xr(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function $g(e){const t=jp(e);return Np(e)(t.map(Wg))}const Wt={test:Og,parse:jp,createTransformer:Np,getAnimatableNone:$g};function wo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=wo(l,a,e+1/3),s=wo(l,a,e),o=wo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function xs(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,So=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kg=[Na,tn,An],bg=e=>Kg.find(t=>t.test(e));function Ic(e){const t=bg(e);if(!t)return!1;let n=t.parse(e);return t===An&&(n=Hg(n)),n}const Fc=(e,t)=>{const n=Ic(e),r=Ic(t);if(!n||!r)return xs(e,t);const i={...n};return s=>(i.red=So(n.red,r.red,s),i.green=So(n.green,r.green,s),i.blue=So(n.blue,r.blue,s),i.alpha=Y(n.alpha,r.alpha,s),tn.transform(i))},Ma=new Set(["none","hidden"]);function Yg(e,t){return Ma.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Gg(e,t){return n=>Y(e,t,n)}function ru(e){return typeof e=="number"?Gg:typeof e=="string"?eu(e)?xs:ne.test(e)?Fc:Xg:Array.isArray(e)?Mp:typeof e=="object"?ne.test(e)?Fc:Qg:xs}function Mp(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>ru(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function Zg(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Wt.createTransformer(t),r=Xr(e),i=Xr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ma.has(e)&&!i.values.length||Ma.has(t)&&!r.values.length?Yg(e,t):oi(Mp(Zg(r,i),i.values),n):xs(e,t)};function Dp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):ru(e)(e,t)}const qg=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>Ut(t),now:()=>ce.isProcessing?ce.timestamp:je.now()}},Lp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=ws?1/0:t}function Jg(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(iu(r),ws);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:We(i)}}const ey=5;function Ap(e,t,n){const r=Math.max(t-ey,0);return fp(n-e(r),t-r)}const X={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},ko=.001;function ty({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let i,s,o=1-t;o=wt(X.minDamping,X.maxDamping,o),e=wt(X.minDuration,X.maxDuration,We(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,y=Da(u,o),v=Math.exp(-d);return ko-f/y*v},s=u=>{const d=u*o*e,f=d*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Da(Math.pow(u,2),o);return(-i(u)+ko>0?-1:1)*((f-y)*v)/x}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ko+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=ry(i,s,a);if(e=lt(e),isNaN(l))return{stiffness:X.stiffness,damping:X.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const ny=12;function ry(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function oy(e){let t={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...e};if(!Oc(e,sy)&&Oc(e,iy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:X.mass,stiffness:i,damping:s}}else{const n=ty(e);t={...t,...n,mass:X.mass},t.isResolvedFromDuration=!0}return t}function Ss(e=X.visualDuration,t=X.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=oy({...n,velocity:-We(n.velocity||0)}),v=f||0,x=u/(2*Math.sqrt(l*c)),T=o-s,m=We(Math.sqrt(l/c)),h=Math.abs(T)<5;r||(r=h?X.restSpeed.granular:X.restSpeed.default),i||(i=h?X.restDelta.granular:X.restDelta.default);let g;if(x<1){const S=Da(m,x);g=C=>{const P=Math.exp(-x*m*C);return o-P*((v+x*m*T)/S*Math.sin(S*C)+T*Math.cos(S*C))}}else if(x===1)g=S=>o-Math.exp(-m*S)*(T+(v+m*T)*S);else{const S=m*Math.sqrt(x*x-1);g=C=>{const P=Math.exp(-x*m*C),k=Math.min(S*C,300);return o-P*((v+x*m*T)*Math.sinh(k)+S*T*Math.cosh(k))/S}}const w={calculatedDuration:y&&d||null,next:S=>{const C=g(S);if(y)a.done=S>=d;else{let P=S===0?v:0;x<1&&(P=S===0?lt(v):Ap(g,S,C));const k=Math.abs(P)<=r,R=Math.abs(o-C)<=i;a.done=k&&R}return a.value=a.done?o:C,a},toString:()=>{const S=Math.min(iu(w),ws),C=Lp(P=>w.next(S*P).value,S,30);return S+"ms "+C},toTransition:()=>{}};return w}Ss.applyToOptions=e=>{const t=Jg(e,100,Ss);return e.ease=t.ease,e.duration=lt(t.duration),e.type="keyframes",e};function La({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=k=>a!==void 0&&kl,v=k=>a===void 0?l:l===void 0||Math.abs(a-k)-x*Math.exp(-k/r),g=k=>m+h(k),w=k=>{const R=h(k),D=g(k);f.done=Math.abs(R)<=u,f.value=f.done?m:D};let S,C;const P=k=>{y(f.value)&&(S=k,C=Ss({keyframes:[f.value,v(f.value)],velocity:Ap(g,k,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:k=>{let R=!1;return!C&&S===void 0&&(R=!0,w(k),P(k)),S!==void 0&&k>=S?C.next(k-S):(!R&&w(k),f)}}}function ay(e,t,n){const r=[],i=n||St.mix||Dp,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ay(t,r,i),l=a.length,u=c=>{if(o&&c1)for(;du(wt(e[0],e[s-1],c)):u}function uy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qr(0,t,r);e.push(Y(n,1,i))}}function cy(e){const t=[0];return uy(t,e.length-1),t}function fy(e,t){return e.map(n=>n*t)}function dy(e,t){return e.map(()=>t||wp).splice(0,e.length-1)}function Mr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Cg(r)?r.map(Vc):Vc(r),s={done:!1,value:t[0]},o=fy(n&&n.length===t.length?n:cy(t),e),a=ly(o,t,{ease:Array.isArray(i)?i:dy(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const hy=e=>e!==null;function su(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(hy),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const py={decay:La,inertia:La,tween:Mr,keyframes:Mr,spring:Ss};function Vp(e){typeof e.type=="string"&&(e.type=py[e.type])}class ou{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const my=e=>e/100;class au extends ou{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==je.now()&&this.tick(je.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vp(t);const{type:n=Mr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Mr;l!==Mr&&typeof a[0]!="number"&&(this.mixKeyframes=oi(my,Dp(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=iu(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:y,type:v,onUpdate:x,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(d){const k=Math.min(this.currentTime,i)/a;let R=Math.floor(k),D=k%1;!D&&k>=1&&(D=1),D===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?(D=1-D,y&&(D-=y/a)):f==="mirror"&&(w=o)),g=wt(0,1,D)*a}const S=h?{done:!1,value:c[0]}:w.next(g);s&&(S.value=s(S.value));let{done:C}=S;!h&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&v!==La&&(S.value=su(c,this.options,T,this.speed)),x&&x(S.value),P&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return We(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+We(t)}get time(){return We(this.currentTime)}set time(t){var n;t=lt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(je.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=We(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=qg,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(je.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function gy(e){for(let t=1;te*180/Math.PI,Aa=e=>{const t=nn(Math.atan2(e[1],e[0]));return Va(t)},yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aa,rotateZ:Aa,skewX:e=>nn(Math.atan(e[1])),skewY:e=>nn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Va=e=>(e=e%360,e<0&&(e+=360),e),zc=Aa,Bc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Uc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bc,scaleY:Uc,scale:e=>(Bc(e)+Uc(e))/2,rotateX:e=>Va(nn(Math.atan2(e[6],e[5]))),rotateY:e=>Va(nn(Math.atan2(-e[2],e[0]))),rotateZ:zc,rotate:zc,skewX:e=>nn(Math.atan(e[4])),skewY:e=>nn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ra(e){return e.includes("scale")?1:0}function _a(e,t){if(!e||e==="none")return Ra(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=vy,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yy,i=a}if(!i)return Ra(t);const s=r[t],o=i[1].split(",").map(wy);return typeof s=="function"?s(o):o[s]}const xy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _a(n,t)};function wy(e){return parseFloat(e.trim())}const rr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ir=new Set(rr),Wc=e=>e===nr||e===A,Sy=new Set(["x","y","z"]),ky=rr.filter(e=>!Sy.has(e));function Cy(e){const t=[];return ky.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_a(t,"x"),y:(e,{transform:t})=>_a(t,"y")};on.translateX=on.x;on.translateY=on.y;const an=new Set;let Ia=!1,Fa=!1,Oa=!1;function Rp(){if(Fa){const e=Array.from(an).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Cy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Fa=!1,Ia=!1,an.forEach(e=>e.complete(Oa)),an.clear()}function _p(){an.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fa=!0)})}function Ty(){Oa=!0,_p(),Rp(),Oa=!1}class lu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(an.add(this),Ia||(Ia=!0,H.read(_p),H.resolveKeyframes(Rp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),an.delete(this)}cancel(){this.state==="scheduled"&&(an.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Py=e=>e.startsWith("--");function Ey(e,t,n){Py(t)?e.style.setProperty(t,n):e.style[t]=n}const jy=Ql(()=>window.ScrollTimeline!==void 0),Ny={};function My(e,t){const n=Ql(e);return()=>Ny[t]??n()}const Ip=My(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vr([0,.65,.55,1]),circOut:vr([.55,0,1,.45]),backIn:vr([.31,.01,.66,-.59]),backOut:vr([.33,1.53,.69,.99])};function Fp(e,t){if(e)return typeof e=="function"?Ip()?Lp(e,t):"ease-out":Sp(e)?vr(e):Array.isArray(e)?e.map(n=>Fp(n,t)||$c.easeOut):$c[e]}function Dy(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Fp(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Op(e){return typeof e=="function"&&"applyToOptions"in e}function Ly({type:e,...t}){return Op(e)&&Ip()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ay extends ou{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Gl(typeof t.type!="string");const u=Ly(t);this.animation=Dy(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=su(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ey(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return We(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+We(t)}get time(){return We(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=lt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jy()?(this.animation.timeline=t,He):n(this)}}const zp={anticipate:yp,backInOut:gp,circInOut:xp};function Vy(e){return e in zp}function Ry(e){typeof e.ease=="string"&&Vy(e.ease)&&(e.ease=zp[e.ease])}const Hc=10;class _y extends Ay{constructor(t){Ry(t),Vp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new au({...o,autoplay:!1}),l=lt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Hc).value,a.sample(l).value,Hc),a.stop()}}const Kc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wt.test(e)||e==="0")&&!e.startsWith("url("));function Iy(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function By(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return zy()&&n&&Oy.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Uy=40;class Wy extends ou{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var x,T;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=je.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},y=(c==null?void 0:c.KeyframeResolver)||lu;this.keyframeResolver=new y(a,(x,T,m)=>this.onKeyframesResolved(x,T,f,!m),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=je.now(),Fy(t,s,o,a)||((St.instantAnimations||!l)&&(c==null||c(su(t,r,n))),t[0]=t[t.length-1],za(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Uy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!u&&By(f)?new _y({...f,element:f.motionValue.owner.current}):new au(f);y.finished.then(()=>this.notifyFinished()).catch(He),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ty()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const $y=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Hy(e){const t=$y.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Bp(e,t,n=1){const[r,i]=Hy(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return lp(o)?parseFloat(o):o}return eu(i)?Bp(i,t,n+1):i}function uu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Up=new Set(["width","height","top","left","right","bottom",...rr]),Ky={test:e=>e==="auto",parse:e=>e},Wp=e=>t=>t.test(e),$p=[nr,A,ut,Tt,Ig,_g,Ky],bc=e=>$p.find(Wp(e));function by(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cp(e):!0}const Yy=new Set(["brightness","contrast","saturate","opacity"]);function Gy(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tu)||[];if(!r)return e;const i=n.replace(r,"");let s=Yy.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qy=/\b([a-z-]*)\(.*?\)/gu,Ba={...Wt,getAnimatableNone:e=>{const t=e.match(Qy);return t?t.map(Gy).join(" "):e}},Yc={...nr,transform:Math.round},Zy={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:Mi,scaleX:Mi,scaleY:Mi,scaleZ:Mi,skew:Tt,skewX:Tt,skewY:Tt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Zr,originX:Rc,originY:Rc,originZ:A},cu={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...Zy,zIndex:Yc,fillOpacity:Zr,strokeOpacity:Zr,numOctaves:Yc},Xy={...cu,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:Ba,WebkitFilter:Ba},Hp=e=>Xy[e];function Kp(e,t){let n=Hp(e);return n!==Ba&&(n=Wt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qy=new Set(["auto","none","0"]);function Jy(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function tv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const bp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Yp(e){return up(e)&&"offsetHeight"in e}const Gc=30,nv=e=>!isNaN(parseFloat(e));class rv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=je.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zl);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gc);return fp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xn(e,t){return new rv(e,t)}const{schedule:fu}=kp(queueMicrotask,!1),Qe={x:!1,y:!1};function Gp(){return Qe.x||Qe.y}function iv(e){return e==="x"||e==="y"?Qe[e]?null:(Qe[e]=!0,()=>{Qe[e]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function Qp(e,t){const n=tv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Qc(e){return!(e.pointerType==="touch"||Gp())}function sv(e,t,n={}){const[r,i,s]=Qp(e,n),o=a=>{if(!Qc(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Qc(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Zp=(e,t)=>t?e===t?!0:Zp(e,t.parentElement):!1,du=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ov=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function av(e){return ov.has(e.tagName)||e.tabIndex!==-1}const bi=new WeakSet;function Zc(e){return t=>{t.key==="Enter"&&e(t)}}function Co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const lv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Zc(()=>{if(bi.has(n))return;Co(n,"down");const i=Zc(()=>{Co(n,"up")}),s=()=>Co(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Xc(e){return du(e)&&!Gp()}function uv(e,t,n={}){const[r,i,s]=Qp(e,n),o=a=>{const l=a.currentTarget;if(!Xc(a))return;bi.add(l);const u=t(l,a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),bi.has(l)&&bi.delete(l),Xc(y)&&typeof u=="function"&&u(y,{success:v})},d=y=>{c(y,l===window||l===document||n.useGlobalTarget||Zp(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Yp(a)&&(a.addEventListener("focus",u=>lv(u,i)),!av(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Xp(e){return up(e)&&"ownerSVGElement"in e}function cv(e){return Xp(e)&&e.tagName==="svg"}const ye=e=>!!(e&&e.getVelocity),fv=[...$p,ne,Wt],dv=e=>fv.find(Wp(e)),hu=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function qc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=qc(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:u,height:c,top:d,left:f,right:y}=o.current;if(t||!s.current||!u||!c)return;const v=n==="left"?`left: ${f}`:`right: ${y}`;s.current.dataset.motionPopId=i;const x=document.createElement("style");a&&(x.nonce=a);const T=r??document.head;return T.appendChild(x),x.sheet&&x.sheet.insertRule(` - [data-motion-pop-id="${i}"] { - position: absolute !important; - width: ${u}px !important; - height: ${c}px !important; - ${v}px !important; - top: ${d}px !important; - } - `),()=>{T.contains(x)&&T.removeChild(x)}},[t]),p.jsx(mv,{isPresent:t,childRef:s,sizeRef:o,children:j.cloneElement(e,{ref:l})})}const yv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=Hl(vv),c=j.useId();let d=!0,f=j.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const v of u.values())if(!v)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&d&&(f={...f}),j.useMemo(()=>{u.forEach((y,v)=>u.set(v,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(gv,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Us.Provider,{value:f,children:e})};function vv(){return new Map}function qp(e=!0){const t=j.useContext(Us);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{if(e)return i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Di=e=>e.key||"";function Jc(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const xv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=qp(o),d=j.useMemo(()=>Jc(e),[e]),f=o&&!u?[]:d.map(Di),y=j.useRef(!0),v=j.useRef(d),x=Hl(()=>new Map),[T,m]=j.useState(d),[h,g]=j.useState(d);ap(()=>{y.current=!1,v.current=d;for(let C=0;C{const P=Di(C),k=o&&!u?!1:d===h||f.includes(P),R=()=>{if(x.has(P))x.set(P,!0);else return;let D=!0;x.forEach(Z=>{Z||(D=!1)}),D&&(S==null||S(),g(v.current),o&&(c==null||c()),r&&r())};return p.jsx(yv,{isPresent:k,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:k?void 0:R,anchorX:a,children:C},P)})})},Jp=j.createContext({strict:!1}),ef={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"]},qn={};for(const e in ef)qn[e]={isEnabled:t=>ef[e].some(n=>!!t[n])};function wv(e){for(const t in e)qn[t]={...qn[t],...e[t]}}const Sv=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 ks(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Sv.has(e)}let em=e=>!ks(e);function kv(e){typeof e=="function"&&(em=t=>t.startsWith("on")?!ks(t):e(t))}try{kv(require("@emotion/is-prop-valid").default)}catch{}function Cv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(em(i)||n===!0&&ks(i)||!t&&!ks(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ws=j.createContext({});function $s(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qr(e){return typeof e=="string"||Array.isArray(e)}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...pu];function Hs(e){return $s(e.animate)||mu.some(t=>qr(e[t]))}function tm(e){return!!(Hs(e)||e.variants)}function Tv(e,t){if(Hs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qr(n)?n:void 0,animate:qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pv(e){const{initial:t,animate:n}=Tv(e,j.useContext(Ws));return j.useMemo(()=>({initial:t,animate:n}),[tf(t),tf(n)])}function tf(e){return Array.isArray(e)?e.join(" "):e}const Jr={};function Ev(e){for(const t in e)Jr[t]=e[t],Jl(t)&&(Jr[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return ir.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jr[e]||e==="opacity")}const jv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nv=rr.length;function Mv(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!ye(t[r])&&!nm(r,n)&&(e[r]=t[r])}function Dv({transformTemplate:e},t){return j.useMemo(()=>{const n=yu();return gu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Lv(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,Dv(e,t)),r}function Av(e,t){const n={},r=Lv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Vv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rv={offset:"strokeDashoffset",array:"strokeDasharray"};function _v(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Vv:Rv;e[s.offset]=A.transform(-r);const o=A.transform(t),a=A.transform(n);e[s.array]=`${o} ${a}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(gu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&_v(d,i,s,o,!1)}const sm=()=>({...yu(),attrs:{}}),om=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Iv(e,t,n,r){const i=j.useMemo(()=>{const s=sm();return im(s,t,om(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};rm(s,e.style,e),i.style={...s,...i.style}}return i}const Fv=["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 vu(e){return typeof e!="string"||e.includes("-")?!1:!!(Fv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ov(e,t,n,{latestValues:r},i,s=!1){const a=(vu(e)?Iv:Av)(t,r,i,e),l=Cv(t,typeof e=="string",s),u=e!==j.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=j.useMemo(()=>ye(c)?c.get():c,[c]);return j.createElement(e,{...u,children:d})}function nf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xu(e,t,n,r){if(typeof t=="function"){const[i,s]=nf(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=nf(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Yi(e){return ye(e)?e.get():e}function zv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Bv(n,r,i,e),renderState:t()}}function Bv(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Yi(s[f]);let{initial:o,animate:a}=e;const l=Hs(e),u=tm(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!$s(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y(t,n)=>{const r=j.useContext(Ws),i=j.useContext(Us),s=()=>zv(e,t,r,i);return n?s():Hl(s)};function wu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ye(r[o])||t.style&&ye(t.style[o])||nm(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Uv=am({scrapeMotionValuesFromProps:wu,createRenderState:yu});function lm(e,t,n){const r=wu(e,t,n);for(const i in e)if(ye(e[i])||ye(t[i])){const s=rr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Wv=am({scrapeMotionValuesFromProps:lm,createRenderState:sm}),$v=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Hv(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Kv="framerAppearId",um="data-"+Su(Kv),cm=j.createContext({});function bv(e,t,n,r,i){var x,T;const{visualElement:s}=j.useContext(Ws),o=j.useContext(Jp),a=j.useContext(Us),l=j.useContext(hu).reducedMotion,u=j.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=j.useContext(cm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Yv(u.current,n,i,d);const f=j.useRef(!1);j.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const y=n[um],v=j.useRef(!!y&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,y))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,y)));return ap(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),j.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,y)}),v.current=!1),c.enteringChildren=void 0)}),c}function Yv(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function fm(e){if(e)return e.options.allowProjection!==!1?e.projection:fm(e.parent)}function To(e,{forwardMotionProps:t=!1}={},n,r){n&&wv(n);const i=vu(e)?Wv:Uv;function s(a,l){let u;const c={...j.useContext(hu),...a,layoutId:Gv(a)},{isStatic:d}=c,f=Pv(a),y=i(a,d);if(!d&&Kl){Qv();const v=Zv(c);u=v.MeasureLayout,f.visualElement=bv(e,y,c,r,v.ProjectionNode)}return p.jsxs(Ws.Provider,{value:f,children:[u&&f.visualElement?p.jsx(u,{visualElement:f.visualElement,...c}):null,Ov(e,a,Hv(y,f.visualElement,l),y,d,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=j.forwardRef(s);return o[$v]=e,o}function Gv({layoutId:e}){const t=j.useContext($l).id;return t&&e!==void 0?t+"-"+e:e}function Qv(e,t){j.useContext(Jp).strict}function Zv(e){const{drag:t,layout:n}=qn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Xv(e,t){if(typeof Proxy>"u")return To;const n=new Map,r=(s,o)=>To(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,To(o,void 0,e,t)),n.get(o))})}function dm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function qv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Po(e){return e===void 0||e===1}function Ua({scale:e,scaleX:t,scaleY:n}){return!Po(e)||!Po(t)||!Po(n)}function Xt(e){return Ua(e)||hm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hm(e){return rf(e.x)||rf(e.y)}function rf(e){return e&&e!=="0%"}function Cs(e,t,n){const r=e-n,i=t*r;return n+i}function sf(e,t,n,r,i){return i!==void 0&&(e=Cs(e,i,r)),Cs(e,n,r)+t}function Wa(e,t=0,n=1,r,i){e.min=sf(e.min,t,n,r,i),e.max=sf(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){Wa(e.x,t.translate,t.scale,t.originPoint),Wa(e.y,n.translate,n.scale,n.originPoint)}const of=.999999999999,af=1.0000000000001;function e2(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;aof&&(t.x=1),t.yof&&(t.y=1)}function Rn(e,t){e.min=e.min+t,e.max=e.max+t}function lf(e,t,n,r,i=.5){const s=Y(e.min,e.max,i);Wa(e,t,n,s,r)}function _n(e,t){lf(e.x,t.x,t.scaleX,t.scale,t.originX),lf(e.y,t.y,t.scaleY,t.scale,t.originY)}function mm(e,t){return dm(Jv(e.getBoundingClientRect(),t))}function t2(e,t,n){const r=mm(e,n),{scroll:i}=t;return i&&(Rn(r.x,i.offset.x),Rn(r.y,i.offset.y)),r}const uf=()=>({translate:0,scale:1,origin:0,originPoint:0}),In=()=>({x:uf(),y:uf()}),cf=()=>({min:0,max:0}),ie=()=>({x:cf(),y:cf()}),$a={current:null},gm={current:!1};function n2(){if(gm.current=!0,!!Kl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$a.current=e.matches;e.addEventListener("change",t),t()}else $a.current=!1}const r2=new WeakMap;function i2(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ye(i))e.addValue(r,i);else if(ye(s))e.addValue(r,Xn(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Xn(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ff=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s2{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lu,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 f=je.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),gm.current||n2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$a.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ut(this.notifyUpdate),Ut(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ir.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qn){const n=qn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lp(r)||cp(r))?r=parseFloat(r):!dv(r)&&Wt.test(n)&&(r=Kp(t,n)),this.setBaseTarget(t,ye(r)?r.get():r)),ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=xu(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fu.render(this.render)}}class ym extends s2{constructor(){super(...arguments),this.KeyframeResolver=ev}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vm(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function o2(e){return window.getComputedStyle(e)}class a2 extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=vm}readValueFromInstance(t,n){var r;if(ir.has(n))return(r=this.projection)!=null&&r.isProjecting?Ra(n):xy(t,n);{const i=o2(t),s=(Jl(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mm(t,n)}build(t,n,r){gu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}}const xm=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 l2(e,t,n,r){vm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xm.has(i)?i:Su(i),t.attrs[i])}class u2 extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ir.has(n)){const r=Hp(n);return r&&r.default||0}return n=xm.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){l2(t,n,r,i)}mount(t){this.isSVGTag=om(t.tagName),super.mount(t)}}const c2=(e,t)=>vu(e)?new u2(t):new a2(t,{allowProjection:e!==j.Fragment});function $n(e,t,n){const r=e.getProps();return xu(r,t,n!==void 0?n:r.custom,e)}const Ha=e=>Array.isArray(e);function f2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xn(n))}function d2(e){return Ha(e)?e[e.length-1]||0:e}function h2(e,t){const n=$n(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=d2(s[o]);f2(e,o,a)}}function p2(e){return!!(ye(e)&&e.add)}function Ka(e,t){const n=e.getValue("willChange");if(p2(n))return n.add(t);if(!n&&St.WillChange){const r=new St.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function wm(e){return e.props[um]}const m2=e=>e!==null;function g2(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(m2),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const y2={type:"spring",stiffness:500,damping:25,restSpeed:10},v2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x2={type:"keyframes",duration:.8},w2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S2=(e,{keyframes:t})=>t.length>2?x2:ir.has(e)?e.startsWith("scale")?v2(t[1]):y2:w2;function k2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ku=(e,t,n,r={},i,s)=>o=>{const a=uu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-lt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};k2(a)||Object.assign(c,S2(e,c)),c.duration&&(c.duration=lt(c.duration)),c.repeatDelay&&(c.repeatDelay=lt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(za(c),c.delay===0&&(d=!0)),(St.instantAnimations||St.skipAnimations)&&(d=!0,za(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=g2(c.keyframes,a);if(f!==void 0){H.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new au(c):new Wy(c)};function C2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Sm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&C2(u,c))continue;const y={delay:n,...uu(s||{},c)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const m=wm(e);if(m){const h=window.MotionHandoffAnimation(m,c,H);h!==null&&(y.startTime=h,x=!0)}}Ka(e,c),d.start(ku(c,d,f,e.shouldReduceMotion&&Up.has(c)?{type:!1}:y,e,x));const T=d.animation;T&&l.push(T)}return o&&Promise.all(l).then(()=>{H.update(()=>{o&&h2(e,o)})}),l}function km(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function ba(e,t,n={}){var l;const r=$n(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Sm(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return T2(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function T2(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ba(l,t,{...o,delay:n+(typeof r=="function"?0:r)+km(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function P2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ba(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ba(e,t,n);else{const i=typeof t=="function"?$n(e,t,n.custom):t;r=Promise.all(Sm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Cm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>P2(e,n,r)))}function D2(e){let t=M2(e),n=df(),r=!0;const i=l=>(u,c)=>{var f;const d=$n(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:y,transitionEnd:v,...x}=d;u={...u,...x,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Tm(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let T=0;Tv&&w,R=!1;const D=Array.isArray(g)?g:[g];let Z=D.reduce(i(m),{});S===!1&&(Z={});const{prevResolvedValues:nt={}}=h,ct={...nt,...Z},Yt=K=>{k=!0,f.has(K)&&(R=!0,f.delete(K)),h.needsAnimating[K]=!0;const N=e.getValue(K);N&&(N.liveStyle=!1)};for(const K in ct){const N=Z[K],L=nt[K];if(y.hasOwnProperty(K))continue;let V=!1;Ha(N)&&Ha(L)?V=!Cm(N,L):V=N!==L,V?N!=null?Yt(K):f.add(K):N!==void 0&&f.has(K)?Yt(K):h.protectedKeys[K]=!0}h.prevProp=g,h.prevResolvedValues=Z,h.isActive&&(y={...y,...Z}),r&&e.blockInitialAnimation&&(k=!1);const gn=C&&P;k&&(!gn||R)&&d.push(...D.map(K=>{const N={type:m};if(typeof K=="string"&&r&&!gn&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,V=$n(L,K);if(L.enteringChildren&&V){const{delayChildren:B}=V.transition||{};N.delay=km(L.enteringChildren,e,B)}}return{animation:K,options:N}}))}if(f.size){const T={};if(typeof u.initial!="boolean"){const m=$n(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(T.transition=m.transition)}f.forEach(m=>{const h=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),T[m]=h??null}),d.push({animation:T})}let x=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=df()}}}function L2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cm(t,e):!1}function Gt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function df(){return{animate:Gt(!0),whileInView:Gt(),whileHover:Gt(),whileTap:Gt(),whileDrag:Gt(),whileFocus:Gt(),exit:Gt()}}class bt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class A2 extends bt{constructor(t){super(t),t.animationState||(t.animationState=D2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let V2=0;class R2 extends bt{constructor(){super(...arguments),this.id=V2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _2={animation:{Feature:A2},exit:{Feature:R2}};function ei(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ui(e){return{point:{x:e.pageX,y:e.pageY}}}const I2=e=>t=>du(t)&&e(t,ui(t));function Dr(e,t,n,r){return ei(e,t,I2(n),r)}const Pm=1e-4,F2=1-Pm,O2=1+Pm,Em=.01,z2=0-Em,B2=0+Em;function Se(e){return e.max-e.min}function U2(e,t,n){return Math.abs(e-t)<=n}function hf(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=Se(n)/Se(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=F2&&e.scale<=O2||isNaN(e.scale))&&(e.scale=1),(e.translate>=z2&&e.translate<=B2||isNaN(e.translate))&&(e.translate=0)}function Lr(e,t,n,r){hf(e.x,t.x,n.x,r?r.originX:void 0),hf(e.y,t.y,n.y,r?r.originY:void 0)}function pf(e,t,n){e.min=n.min+t.min,e.max=e.min+Se(t)}function W2(e,t,n){pf(e.x,t.x,n.x),pf(e.y,t.y,n.y)}function mf(e,t,n){e.min=t.min-n.min,e.max=e.min+Se(t)}function Ts(e,t,n){mf(e.x,t.x,n.x),mf(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const jm=({current:e})=>e?e.ownerDocument.defaultView:null,gf=(e,t)=>Math.abs(e-t);function $2(e,t){const n=gf(e.x,t.x),r=gf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=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 f=jo(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=$2(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:x}=f,{timestamp:T}=ce;this.history.push({...x,timestamp:T});const{onStart:m,onMove:h}=this.handlers;y||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Eo(y,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=jo(f.type==="pointercancel"?this.lastMoveEventInfo:Eo(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,m),x&&x(f,m)},!du(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=ui(t),l=Eo(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,jo(l,this.history)),this.removeListeners=oi(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ut(this.updatePoint)}}function Eo(e,t){return t?{point:t(e.point)}:e}function yf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jo({point:e},t){return{point:e,delta:yf(e,Mm(t)),offset:yf(e,H2(t)),velocity:K2(t,.1)}}function H2(e){return e[0]}function Mm(e){return e[e.length-1]}function K2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>lt(t)));)n--;if(!r)return{x:0,y:0};const s=We(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function b2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function vf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Y2(e,{top:t,left:n,bottom:r,right:i}){return{x:vf(e.x,n,i),y:vf(e.y,t,r)}}function xf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qr(t.min,t.max-r,e.min):r>i&&(n=Qr(e.min,e.max-i,t.min)),wt(0,1,n)}function Z2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ya=.35;function X2(e=Ya){return e===!1?e=0:e===!0&&(e=Ya),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}function wf(e,t,n){return{min:Sf(e,t),max:Sf(e,n)}}function Sf(e,t){return typeof e=="number"?e:e[t]||0}const q2=new WeakMap;class J2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ui(d).point)},o=(d,f)=>{const{drag:y,dragPropagation:v,onDragStart:x}=this.getProps();if(y&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iv(y),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(m=>{let h=this.getAxisMotionValue(m).get()||0;if(ut.test(h)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[m];w&&(h=Se(w)*(parseFloat(h)/100))}}this.originPoint[m]=h}),x&&H.postRender(()=>x(d,f)),Ka(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:v,onDirectionLock:x,onDrag:T}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:m}=f;if(v&&this.currentDirection===null){this.currentDirection=ex(m),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),T&&T(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Fe(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:jm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&H.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Li(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=b2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Vn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Y2(r.layoutBox,t):this.constraints=!1,this.elastic=X2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Z2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=t2(r,i.root,this.visualElement.getTransformPagePoint());let o=G2(i.layout.layoutBox,s);if(n){const a=n(qv(o));this.hasMutatedConstraints=!!a,a&&(o=dm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Fe(c=>{if(!Li(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ka(this.visualElement,t),r.start(ku(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!Li(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Y(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Q2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Li(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Y(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;q2.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const o=ei(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ya,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Li(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ex(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class tx extends bt{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new J2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const kf=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class nx extends bt{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kf(t),onStart:kf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&H.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Dr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Cf(e,t.target.x),r=Cf(e,t.target.y);return`${n}% ${r}%`}},rx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wt.parse(e);if(i.length>5)return r;const s=Wt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Y(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let No=!1;class ix extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Ev(sx),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),No&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Gi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,No=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||H.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;No=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Dm(e){const[t,n]=qp(),r=j.useContext($l);return p.jsx(ix,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(cm),isPresent:t,safeToRemove:n})}const sx={borderRadius:{...hr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hr,borderTopRightRadius:hr,borderBottomLeftRadius:hr,borderBottomRightRadius:hr,boxShadow:rx};function ox(e,t,n){const r=ye(e)?e:Xn(e);return r.start(ku("",r,t,n)),r.animation}const ax=(e,t)=>e.depth-t.depth;class lx{constructor(){this.children=[],this.isDirty=!1}add(t){bl(this.children,t),this.isDirty=!0}remove(t){Yl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ax),this.isDirty=!1,this.children.forEach(t)}}function ux(e,t){const n=je.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ut(r),e(s-t))};return H.setup(r,!0),()=>Ut(r)}const Lm=["TopLeft","TopRight","BottomLeft","BottomRight"],cx=Lm.length,Tf=e=>typeof e=="string"?parseFloat(e):e,Pf=e=>typeof e=="number"||A.test(e);function fx(e,t,n,r,i,s){i?(e.opacity=Y(0,n.opacity??1,dx(r)),e.opacityExit=Y(t.opacity??1,0,hx(r))):s&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(Qr(e,t,r))}function jf(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){jf(e.x,t.x),jf(e.y,t.y)}function Nf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Mf(e,t,n,r,i){return e-=t,e=Cs(e,1/n,r),i!==void 0&&(e=Cs(e,1/i,r)),e}function px(e,t=0,n=1,r=.5,i,s=e,o=e){if(ut.test(t)&&(t=parseFloat(t),t=Y(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Y(s.min,s.max,r);e===s&&(a-=t),e.min=Mf(e.min,t,n,a,i),e.max=Mf(e.max,t,n,a,i)}function Df(e,t,[n,r,i],s,o){px(e,t[n],t[r],t[i],t.scale,s,o)}const mx=["x","scaleX","originX"],gx=["y","scaleY","originY"];function Lf(e,t,n,r){Df(e.x,t,mx,n?n.x:void 0,r?r.x:void 0),Df(e.y,t,gx,n?n.y:void 0,r?r.y:void 0)}function Af(e){return e.translate===0&&e.scale===1}function Vm(e){return Af(e.x)&&Af(e.y)}function Vf(e,t){return e.min===t.min&&e.max===t.max}function yx(e,t){return Vf(e.x,t.x)&&Vf(e.y,t.y)}function Rf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rm(e,t){return Rf(e.x,t.x)&&Rf(e.y,t.y)}function _f(e){return Se(e.x)/Se(e.y)}function If(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vx{constructor(){this.members=[]}add(t){bl(this.members,t),t.scheduleRender()}remove(t){if(Yl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xx(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Mo=["","X","Y","Z"],wx=1e3;let Sx=0;function Do(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _m(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_m(r)}function Im({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Sx++,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(Tx),this.nodes.forEach(Nx),this.nodes.forEach(Mx),this.nodes.forEach(Px)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;H.read(()=>{d=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==d&&(d=y,this.root.updateBlockedByResize=!0,c&&c(),c=ux(f,250),Gi.hasAnimatedSinceResize&&(Gi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||Rx,{onLayoutAnimationStart:x,onLayoutAnimationComplete:T}=u.getProps(),m=!this.targetLayout||!Rm(this.targetLayout,y),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...uu(v,"layout"),onPlay:x,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,h)}else d||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ut(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(Dx),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_m(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(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 l=0;l{const S=w/1e3;Bf(d.x,o.x,S),Bf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ax(this.relativeTarget,this.relativeTargetOrigin,f,S),g&&yx(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ie()),Ge(g,this.relativeTarget)),x&&(this.animationValues=c,fx(c,u,this.latestValues,S,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Gi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xn(0)),this.currentAnimation=ox(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ie();const d=Se(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Se(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Ge(a,l),_n(a,c),Lr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new vx),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Do("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ff),this.root.sharedNodes.clear()}}}function kx(e){e.updateLayout()}function Cx(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=Se(f);f.min=r[d].min,f.max=f.min+y}):Fm(s,t.layoutBox,r)&&Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=Se(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=In();Lr(a,r,t.layoutBox);const l=In();o?Lr(l,e.applyTransform(i,!0),t.measuredBox):Lr(l,r,t.layoutBox);const u=!Vm(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=ie();Ts(v,t.layoutBox,f.layoutBox);const x=ie();Ts(x,r,y.layoutBox),Rm(v,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Tx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Px(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ex(e){e.clearSnapshot()}function Ff(e){e.clearMeasurements()}function Of(e){e.isLayoutDirty=!1}function jx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nx(e){e.resolveTargetDelta()}function Mx(e){e.calcProjection()}function Dx(e){e.resetSkewAndRotation()}function Lx(e){e.removeLeadSnapshot()}function Bf(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uf(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function Ax(e,t,n,r){Uf(e.x,t.x,n.x,r),Uf(e.y,t.y,n.y,r)}function Vx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Rx={duration:.45,ease:[.4,0,.1,1]},Wf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$f=Wf("applewebkit/")&&!Wf("chrome/")?Math.round:He;function Hf(e){e.min=$f(e.min),e.max=$f(e.max)}function _x(e){Hf(e.x),Hf(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!U2(_f(t),_f(n),.2)}function Ix(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Fx=Im({attachResizeListener:(e,t)=>ei(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lo={current:void 0},Om=Im({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lo.current){const e=new Fx({});e.mount(window),e.setOptions({layoutScroll:!0}),Lo.current=e}return Lo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ox={pan:{Feature:nx},drag:{Feature:tx,ProjectionNode:Om,MeasureLayout:Dm}};function Kf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&H.postRender(()=>s(t,ui(t)))}class zx extends bt{mount(){const{current:t}=this.node;t&&(this.unmount=sv(t,(n,r)=>(Kf(this.node,r,"Start"),i=>Kf(this.node,i,"End"))))}unmount(){}}class Bx extends bt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=oi(ei(this.node.current,"focus",()=>this.onFocus()),ei(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&H.postRender(()=>s(t,ui(t)))}class Ux extends bt{mount(){const{current:t}=this.node;t&&(this.unmount=uv(t,(n,r)=>(bf(this.node,r,"Start"),(i,{success:s})=>bf(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ga=new WeakMap,Ao=new WeakMap,Wx=e=>{const t=Ga.get(e.target);t&&t(e)},$x=e=>{e.forEach(Wx)};function Hx({root:e,...t}){const n=e||document;Ao.has(n)||Ao.set(n,{});const r=Ao.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($x,{root:e,...t})),r[i]}function Kx(e,t,n){const r=Hx(t);return Ga.set(e,n),r.observe(e),()=>{Ga.delete(e),r.unobserve(e)}}const bx={some:0,all:1};class Yx extends bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:bx[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Kx(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Gx(t,n))&&this.startObserver()}unmount(){}}function Gx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qx={inView:{Feature:Yx},tap:{Feature:Ux},focus:{Feature:Bx},hover:{Feature:zx}},Zx={layout:{ProjectionNode:Om,MeasureLayout:Dm}},Xx={..._2,...Qx,...Ox,...Zx},J=Xv(Xx,c2),mn="/api";async function qx(){return(await fetch(`${mn}/state`)).json()}async function Yf(){return(await fetch(`${mn}/dependencies/check`)).json()}async function Ai(){return(await fetch(`${mn}/docker/status`)).json()}async function Jx(){return(await fetch(`${mn}/docker/build`,{method:"POST"})).json()}async function e3(){return(await fetch(`${mn}/close`)).json()}async function Vo(){return(await fetch(`${mn}/defaults`)).json()}async function Gf(e){return(await fetch(`${mn}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}const zm="/assets/wails-logo-white-text-B284k7fX.svg",Bm="/assets/wails-logo-black-text-Cx-vsZ4W.svg";function t3(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":return"identity";case"language-select":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function n3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const Um=j.createContext({theme:"dark",toggleTheme:()=>{}}),Wm=()=>j.useContext(Um),Be={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function r3({currentStep:e}){const{theme:t,toggleTheme:n}=Wm(),r=t3(e),i=n3(r),s=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],o=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")};return p.jsxs("div",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col",children:[p.jsx("div",{className:"p-6 flex justify-center",children:p.jsx("img",{src:t==="dark"?zm:Bm,alt:"Wails",className:"h-24 object-contain"})}),p.jsx("nav",{className:"flex-1 px-4 py-2",children:p.jsx("ul",{className:"space-y-1",children:s.map((a,l)=>{const u=l+1,c=a.key===r,d=u!l.installed&&l.required),o=(()=>{const l=s.filter(f=>{var y;return(y=f.installCommand)==null?void 0:y.startsWith("sudo ")}).map(f=>f.installCommand);if(l.length===0)return null;const u=[],c=[],d=[];for(const f of l)if(f.includes("pacman -S")){const y=f.match(/pacman -S\s+(.+)/);y&&u.push(...y[1].split(/\s+/))}else if(f.includes("apt install")){const y=f.match(/apt install\s+(.+)/);y&&c.push(...y[1].split(/\s+/))}else if(f.includes("dnf install")){const y=f.match(/dnf install\s+(.+)/);y&&d.push(...y[1].split(/\s+/))}return u.length>0?`sudo pacman -S ${u.join(" ")}`:c.length>0?`sudo apt install ${c.join(" ")}`:d.length>0?`sudo dnf install ${d.join(" ")}`:null})(),a=()=>{o&&(navigator.clipboard.writeText(o),i(!0),setTimeout(()=>i(!1),2e3))};return p.jsxs(Cu,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",children:[p.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:s.map(l=>p.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[p.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:p.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:l.name}),l.message&&p.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:l.message}),l.helpUrl&&p.jsxs("a",{href:l.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",p.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},l.name))}),o&&p.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[p.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:o}),p.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:r?p.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):p.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function l3({dockerDep:e,onYes:t,onSkip:n}){const r=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return p.jsx(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:r?p.jsxs(p.Fragment,{children:[p.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),p.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"}),p.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function u3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onSkip:s}){if(!e||!e.installed)return p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),p.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",p.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const o=e.pullProgress||0;return p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Building cross-compiler image"}),p.jsxs("div",{className:"w-64 mb-4",children:[p.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[p.jsx("span",{children:"Progress"}),p.jsxs("span",{children:[o,"%"]})]}),p.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:p.jsx(J.div,{className:"h-full bg-blue-500",animate:{width:`${o}%`}})})]}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),p.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.imageBuilt?p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),p.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Build the cross-compilation image to enable building for all platforms"}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Build Image"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const c3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function f3({preferTypeScript:e,onSelect:t,onNext:n}){return p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col",children:[p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Language Preference"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsxs("button",{onClick:()=>t(!1),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[p.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:p.jsx("img",{src:"/logos/javascript.svg",alt:"JavaScript",className:"w-14 h-14"})}),p.jsx("span",{className:"text-lg font-semibold text-white",children:"JavaScript"}),p.jsx("span",{className:"text-xs text-white/50",children:"Dynamic typing"})]}),p.jsxs("button",{onClick:()=>t(!0),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[p.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:p.jsx("img",{src:"/logos/typescript.svg",alt:"TypeScript",className:"w-14 h-14"})}),p.jsx("span",{className:"text-lg font-semibold text-white",children:"TypeScript"}),p.jsx("span",{className:"text-xs text-white/50",children:"Type safety"})]})]})]}),p.jsx("div",{className:"flex justify-center pb-6",children:p.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})})]})}function d3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i}){return p.jsxs(Cu,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",children:[p.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto",children:c3.map(s=>p.jsxs("button",{onClick:()=>n(s.id),className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 ${e===s.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[p.jsx("img",{src:`/logos/${s.id==="vanilla"?t?"typescript":"javascript":s.icon}.svg`,alt:s.name,className:"w-12 h-12"}),p.jsx("span",{className:"text-sm font-medium text-white",children:s.name})]},s.id))}),p.jsx("p",{className:"text-xs text-white/40 mt-4 text-center",children:"This sets the default template for new projects"})]})}function h3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i}){const[s,o]=j.useState(null),[a,l]=j.useState(""),u=f=>{f==="company"?l(e.author.company):f==="bundleId"&&l(e.project.productIdentifierPrefix),o(f)},c=()=>{s==="company"?t({...e,author:{...e.author,company:a}}):s==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:a}}),o(null)},d=f=>{f.key==="Enter"?c():f.key==="Escape"&&o(null)};return p.jsx(Cu,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",children:p.jsxs("div",{className:"max-w-xl mx-auto",children:[p.jsxs("div",{className:"settings-group",children:[s==="company"?p.jsx("div",{className:"settings-row",children:p.jsx("div",{className:"flex-1",children:p.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"Acme Corp",className:"w-full bg-transparent border-none text-sm text-white placeholder-gray-500 focus:outline-none"})})}):p.jsxs("div",{className:"settings-row",onClick:()=>u("company"),children:[p.jsx("span",{className:"text-sm font-medium text-white/90",children:"Company"}),p.jsxs("div",{className:"flex items-center gap-2 text-sm text-white/65",children:[p.jsx("span",{children:e.author.company||"Not set"}),p.jsx("span",{className:"text-white/40 text-xs",children:"▸"})]})]}),s==="bundleId"?p.jsx("div",{className:"settings-row",children:p.jsx("div",{className:"flex-1",children:p.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"com.example",className:"w-full bg-transparent border-none text-sm text-white placeholder-gray-500 focus:outline-none font-mono"})})}):p.jsxs("div",{className:"settings-row",onClick:()=>u("bundleId"),children:[p.jsx("span",{className:"text-sm font-medium text-white/90",children:"Bundle identifier"}),p.jsxs("div",{className:"flex items-center gap-2 text-sm text-white/65",children:[p.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),p.jsx("span",{className:"text-white/40 text-xs",children:"▸"})]})]})]}),p.jsx("p",{className:"text-xs text-white/40 mt-3 text-center",children:"These defaults are used when creating new projects"})]})})}function Ro({command:e,label:t}){const[n,r]=j.useState(!1),i=()=>{navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)};return p.jsxs("div",{children:[p.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-1 text-sm",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("code",{className:"flex-1 text-green-600 dark:text-green-400 font-mono text-xs bg-gray-100 dark:bg-gray-900 px-3 py-2 rounded-lg",children:e}),p.jsx("button",{onClick:i,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-1",title:"Copy command",children:n?p.jsx("svg",{className:"w-4 h-4 text-green-600 dark:text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):p.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})}function p3({onClose:e}){return p.jsxs(J.div,{variants:Be,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx(J.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2",children:"You're ready to build!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Your development environment is all set up"}),p.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-xl p-5 mb-8 w-full max-w-sm",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Ro,{command:"wails3 init -n myapp",label:"Create your first app:"}),p.jsx(Ro,{command:"cd myapp && wails3 dev",label:"Start developing:"}),p.jsx(Ro,{command:"wails3 build",label:"Build for production:"})]})}),p.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Start Building"}),p.jsx("a",{href:"https://wails.io/docs",target:"_blank",rel:"noopener noreferrer",className:"mt-3 text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Read the documentation"})]})}function m3(){const[e,t]=j.useState("splash"),[n,r]=j.useState([]),[i,s]=j.useState(null),[o,a]=j.useState(null),[l,u]=j.useState(!1),[c,d]=j.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0"}}),[f,y]=j.useState(!1),[v,x]=j.useState(!1),[T,m]=j.useState(!0),[h,g]=j.useState("vanilla"),[w,S]=j.useState(()=>{if(typeof window<"u"){const _=localStorage.getItem("wails-setup-theme");if(_==="light"||_==="dark")return _;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),C=()=>{S(_=>{const xe=_==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",xe),xe})};j.useEffect(()=>{w==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[w]),j.useEffect(()=>{P()},[]);const P=async()=>{const _=await qx();s(_.system)},k=async()=>{t("checking");const _=await Yf();r(_),_.filter(he=>he.required&&!he.installed).length===0?t("deps-ready"):t("deps-missing")},R=async()=>{t("cross-platform")},D=async()=>{t("checking");const _=await Yf();r(_),_.filter(he=>he.required&&!he.installed).length===0?t("deps-ready"):t("deps-missing")},Z=async()=>{t("cross-platform")},nt=async()=>{const _=await Ai();a(_),t("docker-setup")},ct=async()=>{const _=await Vo();d(_),t("projects")},Yt=async()=>{const _=await Ai();a(_)},gn=async()=>{u(!0),await Jx();const _=async()=>{const xe=await Ai();a(xe),xe.pullStatus==="pulling"?setTimeout(_,1e3):u(!1)};_()},yn=async()=>{(l||o&&o.pullStatus==="pulling")&&x(!0);const _=await Vo();d(_),t("projects")},K=async()=>{const _=await Vo();d(_),t("projects")},N=()=>{t("language-select")},L=()=>{t("language-select")},V=()=>{t("template-select")},B=async()=>{const _=T&&h!=="vanilla"?`${h}-ts`:T&&h==="vanilla"?"vanilla-ts":h,xe={...c,project:{...c.project,defaultTemplate:_}};y(!0),await Gf(xe),y(!1),t("complete")},te=async()=>{y(!0),await Gf(c),y(!1),t("complete")},vn=async()=>{await e3(),window.close()};return j.useEffect(()=>{if(v&&(l||o&&o.pullStatus==="pulling")){const _=async()=>{const he=await Ai();a(he),he.pullStatus==="pulling"?setTimeout(_,2e3):u(!1)},xe=setTimeout(_,2e3);return()=>clearTimeout(xe)}},[v,l,o==null?void 0:o.pullStatus]),p.jsx(Um.Provider,{value:{theme:w,toggleTheme:C},children:p.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:p.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[p.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),p.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),p.jsxs("div",{className:"w-[75vw] max-w-[75vw] h-[75vh] max-h-[75vh] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[p.jsx(r3,{currentStep:e}),p.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03]",children:p.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:p.jsxs(xv,{mode:"wait",children:[e==="splash"&&p.jsx(i3,{onNext:k},"splash"),e==="checking"&&p.jsx(s3,{},"checking"),e==="deps-ready"&&p.jsx(o3,{onNext:R},"deps-ready"),e==="deps-missing"&&p.jsx(a3,{dependencies:n,onRetry:D,onContinue:Z},"deps-missing"),e==="cross-platform"&&p.jsx(l3,{dockerDep:n.find(_=>_.name==="docker"),onYes:nt,onSkip:ct},"cross-platform"),e==="docker-setup"&&p.jsx(u3,{dockerStatus:o,buildingImage:l,onBuildImage:gn,onCheckAgain:Yt,onContinueBackground:yn,onSkip:K},"docker-setup"),e==="projects"&&p.jsx(h3,{defaults:c,onDefaultsChange:d,onNext:N,onSkip:L,saving:f},"projects"),e==="language-select"&&p.jsx(f3,{preferTypeScript:T,onSelect:m,onNext:V},"language-select"),e==="template-select"&&p.jsx(d3,{selectedFramework:h,preferTypeScript:T,onSelect:g,onNext:B,onSkip:te},"template-select"),e==="complete"&&p.jsx(p3,{onClose:vn},"complete")]})})})]})]})})}_o.createRoot(document.getElementById("root")).render(p.jsx(s0.StrictMode,{children:p.jsx(m3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-dcTD-mpY.css b/v3/internal/setupwizard/frontend/dist/assets/index-dcTD-mpY.css new file mode 100644 index 000000000..2241360f6 --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-dcTD-mpY.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[75vh\]{max-height:75vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-\[75vw\]{max-width:75vw}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-none{border-style:none}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[30\%\]{padding-top:30%}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/40{color:#fff6}.text-white\/50{color:#ffffff80}.text-white\/65{color:#ffffffa6}.text-white\/90{color:#ffffffe6}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow:hidden}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))} diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-sn0oTu7c.css b/v3/internal/setupwizard/frontend/dist/assets/index-sn0oTu7c.css deleted file mode 100644 index ab0195134..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-sn0oTu7c.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[75vh\]{max-height:75vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-\[75vw\]{max-width:75vw}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-none{border-style:none}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[30\%\]{padding-top:30%}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/40{color:#fff6}.text-white\/50{color:#ffffff80}.text-white\/65{color:#ffffffa6}.text-white\/90{color:#ffffffe6}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow:hidden}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))} diff --git a/v3/internal/setupwizard/frontend/dist/index.html b/v3/internal/setupwizard/frontend/dist/index.html index 6acb84f22..82cb9d24a 100644 --- a/v3/internal/setupwizard/frontend/dist/index.html +++ b/v3/internal/setupwizard/frontend/dist/index.html @@ -7,8 +7,8 @@ - - + +
diff --git a/v3/internal/setupwizard/frontend/src/App.tsx b/v3/internal/setupwizard/frontend/src/App.tsx index 4791af319..4be91d9b3 100644 --- a/v3/internal/setupwizard/frontend/src/App.tsx +++ b/v3/internal/setupwizard/frontend/src/App.tsx @@ -1,7 +1,7 @@ import { useState, useEffect, createContext, useContext, ReactNode } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import type { DependencyStatus, SystemInfo, DockerStatus, GlobalDefaults } from './types'; -import { checkDependencies, getState, getDockerStatus, buildDockerImage, close, getDefaults, saveDefaults } from './api'; +import { checkDependencies, getState, getDockerStatus, buildDockerImage, getDefaults, saveDefaults } from './api'; import wailsLogoWhite from './assets/wails-logo-white-text.svg'; import wailsLogoBlack from './assets/wails-logo-black-text.svg'; @@ -1131,46 +1131,8 @@ function ProjectsPage({ ); } - -// Copyable command component -function CopyableCommand({ command, label }: { command: string; label: string }) { - const [copied, setCopied] = useState(false); - - const copyCommand = () => { - navigator.clipboard.writeText(command); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }; - - return ( -
-

{label}

-
- - {command} - - -
-
- ); -} - // Complete Page -function CompletePage({ onClose }: { onClose: () => void }) { +function CompletePage() { return ( void }) { transition={{ duration: 0.3 }} className="flex-1 flex flex-col items-center justify-center px-8" > - {/* Header with check and title - compact */} -
- - - - - -

- You're ready to build! -

-
+ + + + + +

+ You're ready to build! +

- {/* Terminal-style command display */} -
-
-
-
-
- terminal -
-
-
- $ - wails3 init -n myapp - # create app -
-
- $ - cd myapp && wails3 dev - # develop -
-
- $ - wails3 build - # build -
-
-
- - - - - Read the documentation ); @@ -1433,11 +1358,6 @@ export default function App() { setStep('complete'); }; - const handleClose = async () => { - await close(); - window.close(); - }; - // Poll Docker status in background useEffect(() => { if (backgroundDockerStarted && (buildingImage || (dockerStatus && dockerStatus.pullStatus === 'pulling'))) { @@ -1540,7 +1460,7 @@ export default function App() { /> )} {step === 'complete' && ( - + )}