diff --git "a/dist/assets/index-CDgeTiZO.js" "b/dist/assets/index-CDgeTiZO.js" new file mode 100644--- /dev/null +++ "b/dist/assets/index-CDgeTiZO.js" @@ -0,0 +1,217 @@ +function my(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Np={exports:{}},ps={},Mp={exports:{}},F={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ri=Symbol.for("react.element"),gy=Symbol.for("react.portal"),yy=Symbol.for("react.fragment"),vy=Symbol.for("react.strict_mode"),xy=Symbol.for("react.profiler"),wy=Symbol.for("react.provider"),ky=Symbol.for("react.context"),Sy=Symbol.for("react.forward_ref"),Cy=Symbol.for("react.suspense"),Ey=Symbol.for("react.memo"),Ty=Symbol.for("react.lazy"),Lc=Symbol.iterator;function Py(e){return e===null||typeof e!="object"?null:(e=Lc&&e[Lc]||e["@@iterator"],typeof e=="function"?e:null)}var Rp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ap=Object.assign,jp={};function kr(e,t,n){this.props=e,this.context=t,this.refs=jp,this.updater=n||Rp}kr.prototype.isReactComponent={};kr.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")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dp(){}Dp.prototype=kr.prototype;function Jl(e,t,n){this.props=e,this.context=t,this.refs=jp,this.updater=n||Rp}var eu=Jl.prototype=new Dp;eu.constructor=Jl;Ap(eu,kr.prototype);eu.isPureReactComponent=!0;var _c=Array.isArray,Lp=Object.prototype.hasOwnProperty,tu={current:null},_p={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Lp.call(t,r)&&!_p.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,X=P[U];if(0>>1;Ui(Ke,_))Gei(H,Ke)?(P[U]=H,P[Ge]=_,U=Ge):(P[U]=Ke,P[$]=_,U=$);else if(Gei(H,_))P[U]=H,P[Ge]=_,U=Ge;else break e}}return L}function i(P,L){var _=P.sortIndex-L.sortIndex;return _!==0?_:P.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,y=!1,w=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=P)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function k(P){if(x=!1,m(P),!w)if(n(l)!==null)w=!0,ke(C);else{var L=n(c);L!==null&&B(k,L.startTime-P)}}function C(P,L){w=!1,x&&(x=!1,h(S),S=-1),y=!0;var _=f;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||P&&!Y());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var X=U(d.expirationTime<=L);L=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var O=!0;else{var $=n(c);$!==null&&B(k,$.startTime-L),O=!1}return O}finally{d=null,f=_,y=!1}}var b=!1,T=null,S=-1,D=5,j=-1;function Y(){return!(e.unstable_now()-jP||125U?(P.sortIndex=_,t(c,P),n(l)===null&&P===n(c)&&(x?(h(S),S=-1):x=!0,B(k,_-U))):(P.sortIndex=X,t(l,P),w||y||(w=!0,ke(C))),P},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(P){var L=f;return function(){var _=f;f=L;try{return P.apply(this,arguments)}finally{f=_}}}})($p);Bp.exports=$p;var Iy=Bp.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 Fy=v,$e=Iy;function N(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"),La=Object.prototype.hasOwnProperty,zy=/^[: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]*$/,Oc={},Ic={};function By(e){return La.call(Ic,e)?!0:La.call(Oc,e)?!1:zy.test(e)?Ic[e]=!0:(Oc[e]=!0,!1)}function $y(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 Uy(e,t,n,r){if(t===null||typeof t>"u"||$y(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 Ae(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ae(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){xe[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var ru=/[\-:]([a-z])/g;function iu(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(ru,iu);xe[t]=new Ae(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(ru,iu);xe[t]=new Ae(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(ru,iu);xe[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function ou(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Fs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function Wy(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=zs(e.type,!1),e;case 11:return e=zs(e.type.render,!1),e;case 1:return e=zs(e.type,!0),e;default:return""}}function Ia(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 $n:return"Fragment";case Bn:return"Portal";case _a:return"Profiler";case su:return"StrictMode";case Va:return"Suspense";case Oa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lu:return t=e.displayName||null,t!==null?t:Ia(e.type)||"Memo";case $t:t=e._payload,e=e._init;try{return Ia(e(t))}catch{}}return null}function Hy(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 Ia(t);case 8:return t===su?"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 rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ky(e){var t=Gp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=Ky(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(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 Fa(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(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 Xp(e,t){t=t.checked,t!=null&&ou(e,"checked",t,!1)}function za(e,t){Xp(e,t);var n=rn(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")?Ba(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ba(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bc(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 Ba(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function ir(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function si(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={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},Gy=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){Gy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function Jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function eh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yy=re({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 Wa(e,t){if(t){if(Yy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Ha(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 Ka=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ga=null,or=null,sr=null;function Wc(e){if(e=Di(e)){if(typeof Ga!="function")throw Error(N(280));var t=e.stateNode;t&&(t=vs(t),Ga(e.stateNode,e.type,t))}}function th(e){or?sr?sr.push(e):sr=[e]:or=e}function nh(){if(or){var e=or,t=sr;if(sr=or=null,Wc(e),t)for(e=0;e>>=0,e===0?32:31-(ov(e)/sv|0)|0}var Gi=64,Yi=4194304;function Br(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 Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Br(a):(o&=s,o!==0&&(r=Br(o)))}else s=n&~i,s!==0?r=Br(s):o!==0&&(r=Br(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ai(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function cv(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=Kr),Jc=" ",ed=!1;function Sh(e,t){switch(e){case"keyup":return Iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zv(e,t){switch(e){case"compositionend":return Ch(t);case"keypress":return t.which!==32?null:(ed=!0,Jc);case"textInput":return e=t.data,e===Jc&&ed?null:e;default:return null}}function Bv(e,t){if(Un)return e==="compositionend"||!yu&&Sh(e,t)?(e=wh(),ko=hu=Kt=null,Un=!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=id(n)}}function bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function vu(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 Qv(e){var t=Nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bh(n.ownerDocument.documentElement,n)){if(r!==null&&vu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=od(n,o);var s=od(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wn=null,Ja=null,Yr=null,el=!1;function sd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;el||Wn==null||Wn!==Oo(r)||(r=Wn,"selectionStart"in r&&vu(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}),Yr&&fi(Yr,r)||(Yr=r,r=Wo(Ja,"onSelect"),0Gn||(e.current=sl[Gn],sl[Gn]=null,Gn--)}function G(e,t){Gn++,sl[Gn]=e.current,e.current=t}var on={},Pe=un(on),_e=un(!1),Pn=on;function pr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ve(e){return e=e.childContextTypes,e!=null}function Ko(){Z(_e),Z(Pe)}function pd(e,t,n){if(Pe.current!==on)throw Error(N(168));G(Pe,t),G(_e,n)}function Oh(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(N(108,Hy(e)||"Unknown",i));return re({},n,r)}function Go(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Pn=Pe.current,G(Pe,e),G(_e,_e.current),!0}function hd(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Oh(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,Z(_e),Z(Pe),G(Pe,e)):Z(_e),G(_e,n)}var Tt=null,xs=!1,ea=!1;function Ih(e){Tt===null?Tt=[e]:Tt.push(e)}function lx(e){xs=!0,Ih(e)}function cn(){if(!ea&&Tt!==null){ea=!0;var e=0,t=W;try{var n=Tt;for(W=1;e>=s,i-=s,bt=1<<32-ct(t)+i|n<S?(D=T,T=null):D=T.sibling;var j=f(h,T,m[S],k);if(j===null){T===null&&(T=D);break}e&&T&&j.alternate===null&&t(h,T),p=o(j,p,S),b===null?C=j:b.sibling=j,b=j,T=D}if(S===m.length)return n(h,T),q&&hn(h,S),C;if(T===null){for(;SS?(D=T,T=null):D=T.sibling;var Y=f(h,T,j.value,k);if(Y===null){T===null&&(T=D);break}e&&T&&Y.alternate===null&&t(h,T),p=o(Y,p,S),b===null?C=Y:b.sibling=Y,b=Y,T=D}if(j.done)return n(h,T),q&&hn(h,S),C;if(T===null){for(;!j.done;S++,j=m.next())j=d(h,j.value,k),j!==null&&(p=o(j,p,S),b===null?C=j:b.sibling=j,b=j);return q&&hn(h,S),C}for(T=r(h,T);!j.done;S++,j=m.next())j=y(T,h,S,j.value,k),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?S:j.key),p=o(j,p,S),b===null?C=j:b.sibling=j,b=j);return e&&T.forEach(function(we){return t(h,we)}),q&&hn(h,S),C}function E(h,p,m,k){if(typeof m=="object"&&m!==null&&m.type===$n&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Wi:e:{for(var C=m.key,b=p;b!==null;){if(b.key===C){if(C=m.type,C===$n){if(b.tag===7){n(h,b.sibling),p=i(b,m.props.children),p.return=h,h=p;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===$t&&yd(C)===b.type){n(h,b.sibling),p=i(b,m.props),p.ref=Lr(h,b,m),p.return=h,h=p;break e}n(h,b);break}else t(h,b);b=b.sibling}m.type===$n?(p=Cn(m.props.children,h.mode,k,m.key),p.return=h,h=p):(k=Mo(m.type,m.key,m.props,null,h.mode,k),k.ref=Lr(h,p,m),k.return=h,h=k)}return s(h);case Bn:e:{for(b=m.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=la(m,h.mode,k),p.return=h,h=p}return s(h);case $t:return b=m._init,E(h,p,b(m._payload),k)}if(zr(m))return w(h,p,m,k);if(Mr(m))return x(h,p,m,k);to(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=aa(m,h.mode,k),p.return=h,h=p),s(h)):n(h,p)}return E}var mr=$h(!0),Uh=$h(!1),Qo=un(null),Zo=null,Qn=null,Su=null;function Cu(){Su=Qn=Zo=null}function Eu(e){var t=Qo.current;Z(Qo),e._currentValue=t}function ul(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 lr(e,t){Zo=e,Su=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(De=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(Su!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Zo===null)throw Error(N(308));Qn=e,Zo.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var vn=null;function Tu(e){vn===null?vn=[e]:vn.push(e)}function Wh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Tu(t)):(n.next=i.next,i.next=n),t.interleaved=n,jt(e,r)}function jt(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 Ut=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hh(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 qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jt(e,n)}return i=r.interleaved,i===null?(t.next=t,Tu(r)):(t.next=i.next,i.next=t),r.interleaved=t,jt(e,n)}function Co(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,du(e,n)}}function vd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var i=e.updateQueue;Ut=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,u=c=l=null,a=o;do{var f=a.lane,y=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,x=a;switch(f=t,y=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){d=w.call(y,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,f=typeof w=="function"?w.call(y,d,f):w,f==null)break e;d=re({},d,f);break e;case 2:Ut=!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},u===null?(c=u=y,l=d):u=u.next=y,s|=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(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Mn|=s,e.lanes=s,e.memoizedState=d}}function xd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{W=n,na.transition=r}}function lm(){return nt().memoizedState}function fx(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},um(e))cm(t,n);else if(n=Wh(e,t,n,r),n!==null){var i=Me();dt(n,e,r,i),dm(n,t,r)}}function px(e,t,n){var r=en(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(um(e))cm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ft(a,s)){var l=t.interleaved;l===null?(i.next=i,Tu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Wh(e,t,i,r),n!==null&&(i=Me(),dt(n,e,r,i),dm(n,t,r))}}function um(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function cm(e,t){Xr=es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}var ts={readContext:tt,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},hx={readContext:tt,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:kd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,rm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();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=fx.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:wd,useDebugValue:Lu,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=wd(!1),t=e[0];return e=dx.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,i=mt();if(q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),he===null)throw Error(N(349));Nn&30||Xh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,kd(Zh.bind(null,r,o,e),[e]),r.flags|=2048,wi(9,Qh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=mt(),t=he.identifierPrefix;if(q){var n=Nt,r=bt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gt]=t,e[mi]=r,km(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ha(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)Q($r[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":zc(e,r),i=Fa(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=re({},r,{value:void 0}),Q("invalid",e);break;case"textarea":$c(e,r),i=$a(e,r),Q("invalid",e);break;default:i=r}Wa(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?eh(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&si(e,l):typeof l=="number"&&si(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(oi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Q("scroll",e):l!=null&&ou(e,o,l,s))}switch(n){case"input":Hi(e),Bc(e,r,!1);break;case"textarea":Hi(e),Uc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ir(e,!!r.multiple,o,!1):r.defaultValue!=null&&ir(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ho)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ce(t),null;case 6:if(e&&t.stateNode!=null)Cm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=xn(yi.current),xn(xt.current),eo(t)){if(r=t.stateNode,n=t.memoizedProps,r[gt]=t,(o=r.nodeValue!==n)&&(e=Be,e!==null))switch(e.tag){case 3:Ji(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ji(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gt]=t,t.stateNode=r}return Ce(t),null;case 13:if(Z(ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(q&&ze!==null&&t.mode&1&&!(t.flags&128))Bh(),hr(),t.flags|=98560,o=!1;else if(o=eo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[gt]=t}else hr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(t),o=!1}else lt!==null&&(Tl(lt),lt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ee.current&1?fe===0&&(fe=3):Bu())),t.updateQueue!==null&&(t.flags|=4),Ce(t),null);case 4:return gr(),yl(e,t),e===null&&pi(t.stateNode.containerInfo),Ce(t),null;case 10:return Eu(t.type._context),Ce(t),null;case 17:return Ve(t.type)&&Ko(),Ce(t),null;case 19:if(Z(ee),o=t.memoizedState,o===null)return Ce(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)_r(o,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Jo(e),s!==null){for(t.flags|=128,_r(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(ee,ee.current&1|2),t.child}e=e.sibling}o.tail!==null&&ae()>vr&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_r(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!q)return Ce(t),null}else 2*ae()-o.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,_r(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ae(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Sx(e,t){switch(wu(t),t.tag){case 1:return Ve(t.type)&&Ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(),Z(_e),Z(Pe),Mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nu(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return gr(),null;case 10:return Eu(t.type._context),null;case 22:case 23:return zu(),null;case 24:return null;default:return null}}var ro=!1,Ee=!1,Cx=typeof WeakSet=="function"?WeakSet:Set,M=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function vl(e,t,n){try{n()}catch(r){oe(e,t,r)}}var jd=!1;function Ex(e,t){if(tl=$o,e=Nh(),vu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===i&&(a=s),f===o&&++u===r&&(l=s),(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(nl={focusedElem:e,selectionRange:n},$o=!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 w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,E=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:st(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(k){oe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=jd,jd=!1,w}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vl(t,n,o)}i=i.next}while(i!==r)}}function Ss(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 xl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Em(e){var t=e.alternate;t!==null&&(e.alternate=null,Em(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[mi],delete t[ol],delete t[sx],delete t[ax])),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 Tm(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tm(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 wl(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=Ho));else if(r!==4&&(e=e.child,e!==null))for(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}function kl(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(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var ge=null,at=!1;function It(e,t,n){for(n=n.child;n!==null;)Pm(e,t,n),n=n.sibling}function Pm(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(hs,n)}catch{}switch(n.tag){case 5:Ee||Zn(n,t);case 6:var r=ge,i=at;ge=null,It(e,t,n),ge=r,at=i,ge!==null&&(at?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(at?(e=ge,n=n.stateNode,e.nodeType===8?Js(e.parentNode,n):e.nodeType===1&&Js(e,n),ci(e)):Js(ge,n.stateNode));break;case 4:r=ge,i=at,ge=n.stateNode.containerInfo,at=!0,It(e,t,n),ge=r,at=i;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&vl(n,t,s),i=i.next}while(i!==r)}It(e,t,n);break;case 1:if(!Ee&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}It(e,t,n);break;case 21:It(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,It(e,t,n),Ee=r):It(e,t,n);break;default:It(e,t,n)}}function Ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cx),t.forEach(function(r){var i=Dx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Px(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,is=0,z&6)throw Error(N(331));var i=z;for(z|=4,M=e.current;M!==null;){var o=M,s=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lae()-Iu?Sn(e,0):Ou|=n),Oe(e,t)}function Lm(e,t){t===0&&(e.mode&1?(t=Yi,Yi<<=1,!(Yi&130023424)&&(Yi=4194304)):t=1);var n=Me();e=jt(e,t),e!==null&&(Ai(e,t,n),Oe(e,n))}function jx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lm(e,n)}function Dx(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(N(314))}r!==null&&r.delete(t),Lm(e,n)}var _m;_m=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)De=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return De=!1,wx(e,t,n);De=!!(e.flags&131072)}else De=!1,q&&t.flags&1048576&&Fh(t,Xo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Po(e,t),e=t.pendingProps;var i=pr(t,Pe.current);lr(t,n),i=Au(null,t,r,e,i,n);var o=ju();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,Ve(r)?(o=!0,Go(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pu(t),i.updater=ks,t.stateNode=i,i._reactInternals=t,dl(t,r,e,n),t=hl(null,t,r,!0,o,n)):(t.tag=0,q&&o&&xu(t),be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Po(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_x(r),e=st(r,e),i){case 0:t=pl(null,t,r,e,n);break e;case 1:t=Md(null,t,r,e,n);break e;case 11:t=bd(null,t,r,e,n);break e;case 14:t=Nd(null,t,r,st(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),pl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Md(e,t,r,i,n);case 3:e:{if(vm(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Hh(e,t),qo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=yr(Error(N(423)),t),t=Rd(e,t,r,n,i);break e}else if(r!==i){i=yr(Error(N(424)),t),t=Rd(e,t,r,n,i);break e}else for(ze=Zt(t.stateNode.containerInfo.firstChild),Be=t,q=!0,lt=null,n=Uh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hr(),r===i){t=Dt(e,t,n);break e}be(e,t,r,n)}t=t.child}return t;case 5:return Kh(t),e===null&&ll(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,rl(r,i)?s=null:o!==null&&rl(r,o)&&(t.flags|=32),ym(e,t),be(e,t,s,n),t.child;case 6:return e===null&&ll(t),null;case 13:return xm(e,t,n);case 4:return bu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(t,null,r,n):be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),bd(e,t,r,i,n);case 7:return be(e,t,t.pendingProps,n),t.child;case 8:return be(e,t,t.pendingProps.children,n),t.child;case 12:return be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,G(Qo,r._currentValue),r._currentValue=s,o!==null)if(ft(o.value,s)){if(o.children===i.children&&!_e.current){t=Dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Mt(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ul(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(N(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ul(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,lr(t,n),i=tt(i),r=r(i),t.flags|=1,be(e,t,r,n),t.child;case 14:return r=t.type,i=st(r,t.pendingProps),i=st(r.type,i),Nd(e,t,r,i,n);case 15:return mm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Po(e,t),t.tag=1,Ve(r)?(e=!0,Go(t)):e=!1,lr(t,n),fm(t,r,i),dl(t,r,i,n),hl(null,t,r,!0,e,n);case 19:return wm(e,t,n);case 22:return gm(e,t,n)}throw Error(N(156,t.tag))};function Vm(e,t){return uh(e,t)}function Lx(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 qe(e,t,n,r){return new Lx(e,t,n,r)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _x(e){if(typeof e=="function")return $u(e)?1:0;if(e!=null){if(e=e.$$typeof,e===au)return 11;if(e===lu)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=qe(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 Mo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")$u(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $n:return Cn(n.children,i,o,t);case su:s=8,i|=8;break;case _a:return e=qe(12,n,t,i|2),e.elementType=_a,e.lanes=o,e;case Va:return e=qe(13,n,t,i),e.elementType=Va,e.lanes=o,e;case Oa:return e=qe(19,n,t,i),e.elementType=Oa,e.lanes=o,e;case Kp:return Es(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:s=10;break e;case Hp:s=9;break e;case au:s=11;break e;case lu:s=14;break e;case $t:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=qe(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Es(e,t,n,r){return e=qe(22,e,r,t),e.elementType=Kp,e.lanes=n,e.stateNode={isHidden:!1},e}function aa(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function la(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vx(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=$s(0),this.expirationTimes=$s(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,i,o,s,a,l){return e=new Vx(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pu(o),e}function Ox(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zm)}catch(e){console.error(e)}}zm(),zp.exports=Ue;var Gu=zp.exports;const $x=bp(Gu);var Bm,$d=Gu;Bm=$d.createRoot,$d.hydrateRoot;/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ux=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ud=e=>{const t=Wx(e);return t.charAt(0).toUpperCase()+t.slice(1)},$m=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kx=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...Hx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$m("lucide",i),...a},[...s.map(([c,u])=>v.createElement(c,u)),...Array.isArray(o)?o:[o]]));/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const me=(e,t)=>{const n=v.forwardRef(({className:r,...i},o)=>v.createElement(Kx,{ref:o,iconNode:t,className:$m(`lucide-${Ux(Ud(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ud(e),n};/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gx=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Jr=me("bot",Gx);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yx=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Xx=me("chart-column",Yx);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Zx=me("chevron-left",Qx);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jx=me("chevron-right",qx);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ew=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],tw=me("circle-help",ew);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nw=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Pt=me("crown",nw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rw=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],iw=me("message-circle",rw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ow=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Yu=me("message-square",ow);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sw=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],aw=me("moon",sw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lw=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],uw=me("search",lw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cw=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],dw=me("send",cw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fw=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pw=me("settings",fw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hw=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],mw=me("sparkles",hw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gw=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],yw=me("sun",gw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vw=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],Um=me("thumbs-down",vw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xw=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],Pl=me("thumbs-up",xw);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ww=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Wm=me("user",ww);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hm=me("x",kw);function Wd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Km(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Wd(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{const{children:o,...s}=r,a=v.Children.toArray(o),l=a.find(Tw);if(l){const c=l.props.children,u=a.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return g.jsx(t,{...s,ref:i,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return g.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var Sw=Xu("Slot");function Cw(e){const t=v.forwardRef((n,r)=>{const{children:i,...o}=n;if(v.isValidElement(i)){const s=bw(i),a=Pw(o,i.props);return i.type!==v.Fragment&&(a.ref=r?Km(r,s):s),v.cloneElement(i,a)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ew=Symbol("radix.slottable");function Tw(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ew}function Pw(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function bw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Kd=Ym,Nw=(e,t)=>n=>{var r;if(t?.variants==null)return Kd(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(c=>{const u=n?.[c],d=o?.[c];if(u===null)return null;const f=Hd(u)||Hd(d);return i[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...y}=u;return Object.entries(y).every(w=>{let[x,E]=w;return Array.isArray(E)?E.includes({...o,...a}[x]):{...o,...a}[x]===E})?[...c,d,f]:c},[]);return Kd(e,s,l,n?.class,n?.className)},Qu="-",Mw=e=>{const t=Aw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Qu);return a[0]===""&&a.length!==1&&a.shift(),Xm(a,t)||Rw(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Xm=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Xm(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Qu);return t.validators.find(({validator:s})=>s(o))?.classGroupId},Gd=/^\[(.+)\]$/,Rw=e=>{if(Gd.test(e)){const t=Gd.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Aw=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)bl(n[i],r,i,t);return r},bl=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Yd(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(jw(i)){bl(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{bl(s,Yd(t,o),n,r)})})},Yd=(e,t)=>{let n=e;return t.split(Qu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},jw=e=>e.isThemeGetter,Dw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},Nl="!",Ml=":",Lw=Ml.length,_w=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,c;for(let w=0;wl?c-l:void 0;return{modifiers:o,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:y}};if(t){const i=t+Ml,o=r;r=s=>s.startsWith(i)?o(s.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Vw=e=>e.endsWith(Nl)?e.substring(0,e.length-1):e.startsWith(Nl)?e.substring(1):e,Ow=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(s=>{s[0]==="["||t[s]?(i.push(...o.sort(),s),o=[]):o.push(s)}),i.push(...o.sort()),i}},Iw=e=>({cache:Dw(e.cacheSize),parseClassName:_w(e),sortModifiers:Ow(e),...Mw(e)}),Fw=/\s+/,zw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(Fw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let E=!!x,h=r(E?w.substring(0,x):w);if(!h){if(!E){l=u+(l.length>0?" "+l:l);continue}if(h=r(w),!h){l=u+(l.length>0?" "+l:l);continue}E=!1}const p=o(f).join(":"),m=y?p+Nl:p,k=m+h;if(s.includes(k))continue;s.push(k);const C=i(h,E);for(let b=0;b0?" "+l:l)}return l};function Bw(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=Iw(c),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=zw(l,n);return i(l,u),u}return function(){return o(Bw.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Zm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Uw=/^\d+\/\d+$/,Ww=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,On=e=>Uw.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),Ft=e=>!!e&&Number.isInteger(Number(e)),ua=e=>e.endsWith("%")&&I(e.slice(0,-1)),Ct=e=>Ww.test(e),Xw=()=>!0,Qw=e=>Hw.test(e)&&!Kw.test(e),Jm=()=>!1,Zw=e=>Gw.test(e),qw=e=>Yw.test(e),Jw=e=>!R(e)&&!A(e),e1=e=>Er(e,n0,Jm),R=e=>Zm.test(e),fn=e=>Er(e,r0,Qw),ca=e=>Er(e,o1,I),Xd=e=>Er(e,e0,Jm),t1=e=>Er(e,t0,qw),so=e=>Er(e,i0,Zw),A=e=>qm.test(e),Or=e=>Tr(e,r0),n1=e=>Tr(e,s1),Qd=e=>Tr(e,e0),r1=e=>Tr(e,n0),i1=e=>Tr(e,t0),ao=e=>Tr(e,i0,!0),Er=(e,t,n)=>{const r=Zm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tr=(e,t,n=!1)=>{const r=qm.exec(e);return r?r[1]?t(r[1]):n:!1},e0=e=>e==="position"||e==="percentage",t0=e=>e==="image"||e==="url",n0=e=>e==="length"||e==="size"||e==="bg-size",r0=e=>e==="length",o1=e=>e==="number",s1=e=>e==="family-name",i0=e=>e==="shadow",a1=()=>{const e=ce("color"),t=ce("font"),n=ce("text"),r=ce("font-weight"),i=ce("tracking"),o=ce("leading"),s=ce("breakpoint"),a=ce("container"),l=ce("spacing"),c=ce("radius"),u=ce("shadow"),d=ce("inset-shadow"),f=ce("text-shadow"),y=ce("drop-shadow"),w=ce("blur"),x=ce("perspective"),E=ce("aspect"),h=ce("ease"),p=ce("animate"),m=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...k(),A,R],b=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[A,R,l],D=()=>[On,"full","auto",...S()],j=()=>[Ft,"none","subgrid",A,R],Y=()=>["auto",{span:["full",Ft,A,R]},Ft,A,R],we=()=>[Ft,"auto",A,R],He=()=>["auto","min","max","fr",A,R],rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ie=()=>["start","end","center","stretch","center-safe","end-safe"],ke=()=>["auto",...S()],B=()=>[On,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],P=()=>[e,A,R],L=()=>[...k(),Qd,Xd,{position:[A,R]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",r1,e1,{size:[A,R]}],X=()=>[ua,Or,fn],O=()=>["","none","full",c,A,R],$=()=>["",I,Or,fn],Ke=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[I,ua,Qd,Xd],Fi=()=>["","none",w,A,R],zi=()=>["none",I,A,R],Bi=()=>["none",I,A,R],Vs=()=>[I,A,R],$i=()=>[On,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ct],breakpoint:[Ct],color:[Xw],container:[Ct],"drop-shadow":[Ct],ease:["in","out","in-out"],font:[Jw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ct],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ct],shadow:[Ct],spacing:["px",I],text:[Ct],"text-shadow":[Ct],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",On,R,A,E]}],container:["container"],columns:[{columns:[I,R,A,a]}],"break-after":[{"break-after":m()}],"break-before":[{"break-before":m()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ft,"auto",A,R]}],basis:[{basis:[On,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,On,"auto","initial","none",R]}],grow:[{grow:["",I,A,R]}],shrink:[{shrink:["",I,A,R]}],order:[{order:[Ft,"first","last","none",A,R]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":He()}],"auto-rows":[{"auto-rows":He()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...rt(),"normal"]}],"justify-items":[{"justify-items":[...Ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ie()]}],"align-content":[{content:["normal",...rt()]}],"align-items":[{items:[...Ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":rt()}],"place-items":[{"place-items":[...Ie(),"baseline"]}],"place-self":[{"place-self":["auto",...Ie()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ke()}],mx:[{mx:ke()}],my:[{my:ke()}],ms:[{ms:ke()}],me:[{me:ke()}],mt:[{mt:ke()}],mr:[{mr:ke()}],mb:[{mb:ke()}],ml:[{ml:ke()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[a,"screen",...B()]}],"min-w":[{"min-w":[a,"screen","none",...B()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,Or,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,A,ca]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ua,R]}],"font-family":[{font:[n1,R,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,A,R]}],"line-clamp":[{"line-clamp":[I,"none",A,ca]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",A,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",A,fn]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[I,"auto",A,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ft,A,R],radial:["",A,R],conic:[Ft,A,R]},i1,t1]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ke(),"hidden","none"]}],"divide-style":[{divide:[...Ke(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,A,R]}],"outline-w":[{outline:["",I,Or,fn]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,ao,so]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,ao,so]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[I,fn]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,ao,so]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[I,A,R]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[A,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,R]}],filter:[{filter:["","none",A,R]}],blur:[{blur:Fi()}],brightness:[{brightness:[I,A,R]}],contrast:[{contrast:[I,A,R]}],"drop-shadow":[{"drop-shadow":["","none",y,ao,so]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",I,A,R]}],"hue-rotate":[{"hue-rotate":[I,A,R]}],invert:[{invert:["",I,A,R]}],saturate:[{saturate:[I,A,R]}],sepia:[{sepia:["",I,A,R]}],"backdrop-filter":[{"backdrop-filter":["","none",A,R]}],"backdrop-blur":[{"backdrop-blur":Fi()}],"backdrop-brightness":[{"backdrop-brightness":[I,A,R]}],"backdrop-contrast":[{"backdrop-contrast":[I,A,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,A,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,A,R]}],"backdrop-invert":[{"backdrop-invert":["",I,A,R]}],"backdrop-opacity":[{"backdrop-opacity":[I,A,R]}],"backdrop-saturate":[{"backdrop-saturate":[I,A,R]}],"backdrop-sepia":[{"backdrop-sepia":["",I,A,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",A,R]}],ease:[{ease:["linear","initial",h,A,R]}],delay:[{delay:[I,A,R]}],animate:[{animate:["none",p,A,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,A,R]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:zi()}],"rotate-x":[{"rotate-x":zi()}],"rotate-y":[{"rotate-y":zi()}],"rotate-z":[{"rotate-z":zi()}],scale:[{scale:Bi()}],"scale-x":[{"scale-x":Bi()}],"scale-y":[{"scale-y":Bi()}],"scale-z":[{"scale-z":Bi()}],"scale-3d":["scale-3d"],skew:[{skew:Vs()}],"skew-x":[{"skew-x":Vs()}],"skew-y":[{"skew-y":Vs()}],transform:[{transform:[A,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$i()}],"translate-x":[{"translate-x":$i()}],"translate-y":[{"translate-y":$i()}],"translate-z":[{"translate-z":$i()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",A,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A,R]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[I,Or,fn,ca]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l1=$w(a1);function _n(...e){return l1(Ym(e))}const u1=Nw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function ut({className:e,variant:t,size:n,asChild:r=!1,...i}){const o=r?Sw:"button";return g.jsx(o,{"data-slot":"button",className:_n(u1({variant:t,size:n,className:e})),...i})}function c1({className:e,type:t,...n}){return g.jsx("input",{type:t,"data-slot":"input",className:_n("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}const Zu=v.createContext({});function qu(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ju=typeof window<"u",o0=Ju?v.useLayoutEffect:v.useEffect,Ms=v.createContext(null);function ec(e,t){e.indexOf(t)===-1&&e.push(t)}function tc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Lt=(e,t,n)=>n>t?t:n{};const _t={},s0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function a0(e){return typeof e=="object"&&e!==null}const l0=e=>/^0[^.\s]+$/u.test(e);function rc(e){let t;return()=>(t===void 0&&(t=e()),t)}const et=e=>e,d1=(e,t)=>n=>t(e(n)),_i=(...e)=>e.reduce(d1),Si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ic{constructor(){this.subscriptions=[]}add(t){return ec(this.subscriptions,t),()=>tc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;oe*1e3,kt=e=>e/1e3;function u0(e,t){return t?e*(1e3/t):0}const c0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f1=1e-7,p1=12;function h1(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=c0(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>f1&&++ah1(o,0,1,e,n);return o=>o===0||o===1?o:c0(i(o),t,r)}const d0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f0=e=>t=>1-e(1-t),p0=Vi(.33,1.53,.69,.99),oc=f0(p0),h0=d0(oc),m0=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),sc=e=>1-Math.sin(Math.acos(e)),g0=f0(sc),y0=d0(sc),m1=Vi(.42,0,1,1),g1=Vi(0,0,.58,1),v0=Vi(.42,0,.58,1),y1=e=>Array.isArray(e)&&typeof e[0]!="number",x0=e=>Array.isArray(e)&&typeof e[0]=="number",v1={linear:et,easeIn:m1,easeInOut:v0,easeOut:g1,circIn:sc,circInOut:y0,circOut:g0,backIn:oc,backInOut:h0,backOut:p0,anticipate:m0},x1=e=>typeof e=="string",Zd=e=>{if(x0(e)){nc(e.length===4);const[t,n,r,i]=e;return Vi(t,n,r,i)}else if(x1(e))return v1[e];return e},lo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w1(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const w=f&&i?n:r;return d&&s.add(u),w.has(u)||w.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const k1=40;function w0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=lo.reduce((m,k)=>(m[k]=w1(o),m),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:y,postRender:w}=s,x=()=>{const m=_t.useManualTiming?i.timestamp:performance.now();n=!1,_t.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,k1),1)),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),y.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},E=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:lo.reduce((m,k)=>{const C=s[k];return m[k]=(b,T=!1,S=!1)=>(n||E(),C.schedule(b,T,S)),m},{}),cancel:m=>{for(let k=0;k(Ro===void 0&&Le.set(ye.isProcessing||_t.useManualTiming?ye.timestamp:performance.now()),Ro),set:e=>{Ro=e,queueMicrotask(S1)}},k0=e=>t=>typeof t=="string"&&t.startsWith(e),ac=k0("--"),C1=k0("var(--"),lc=e=>C1(e)?E1.test(e.split("/*")[0].trim()):!1,E1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ci={...Pr,transform:e=>Lt(0,1,e)},uo={...Pr,default:1},ei=e=>Math.round(e*1e5)/1e5,uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T1(e){return e==null}const P1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cc=(e,t)=>n=>!!(typeof n=="string"&&P1.test(n)&&n.startsWith(e)||t&&!T1(n)&&Object.prototype.hasOwnProperty.call(n,t)),S0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(uc);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},b1=e=>Lt(0,255,e),fa={...Pr,transform:e=>Math.round(b1(e))},wn={test:cc("rgb","red"),parse:S0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fa.transform(e)+", "+fa.transform(t)+", "+fa.transform(n)+", "+ei(Ci.transform(r))+")"};function N1(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 Rl={test:cc("#"),parse:N1,transform:wn.transform},Oi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zt=Oi("deg"),St=Oi("%"),V=Oi("px"),M1=Oi("vh"),R1=Oi("vw"),qd={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Jn={test:cc("hsl","hue"),parse:S0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(ei(t))+", "+St.transform(ei(n))+", "+ei(Ci.transform(r))+")"},le={test:e=>wn.test(e)||Rl.test(e)||Jn.test(e),parse:e=>wn.test(e)?wn.parse(e):Jn.test(e)?Jn.parse(e):Rl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wn.transform(e):Jn.transform(e),getAnimatableNone:e=>{const t=le.parse(e);return t.alpha=0,le.transform(t)}},A1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function j1(e){return isNaN(e)&&typeof e=="string"&&(e.match(uc)?.length||0)+(e.match(A1)?.length||0)>0}const C0="number",E0="color",D1="var",L1="var(",Jd="${}",_1=/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 Ei(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(_1,l=>(le.test(l)?(r.color.push(o),i.push(E0),n.push(le.parse(l))):l.startsWith(L1)?(r.var.push(o),i.push(D1),n.push(l)):(r.number.push(o),i.push(C0),n.push(parseFloat(l))),++o,Jd)).split(Jd);return{values:n,split:a,indexes:r,types:i}}function T0(e){return Ei(e).values}function P0(e){const{split:t,types:n}=Ei(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:le.test(e)?le.getAnimatableNone(e):e;function O1(e){const t=T0(e);return P0(e)(t.map(V1))}const an={test:j1,parse:T0,createTransformer:P0,getAnimatableNone:O1};function pa(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 I1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=pa(l,a,e+1/3),o=pa(l,a,e),s=pa(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function as(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,ha=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},F1=[Rl,wn,Jn],z1=e=>F1.find(t=>t.test(e));function ef(e){const t=z1(e);if(!t)return!1;let n=t.parse(e);return t===Jn&&(n=I1(n)),n}const tf=(e,t)=>{const n=ef(e),r=ef(t);if(!n||!r)return as(e,t);const i={...n};return o=>(i.red=ha(n.red,r.red,o),i.green=ha(n.green,r.green,o),i.blue=ha(n.blue,r.blue,o),i.alpha=te(n.alpha,r.alpha,o),wn.transform(i))},Al=new Set(["none","hidden"]);function B1(e,t){return Al.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $1(e,t){return n=>te(e,t,n)}function dc(e){return typeof e=="number"?$1:typeof e=="string"?lc(e)?as:le.test(e)?tf:H1:Array.isArray(e)?b0:typeof e=="object"?le.test(e)?tf:U1:as}function b0(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>dc(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function W1(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=an.createTransformer(t),r=Ei(e),i=Ei(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?Al.has(e)&&!i.values.length||Al.has(t)&&!r.values.length?B1(e,t):_i(b0(W1(r,i),i.values),n):as(e,t)};function N0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):dc(e)(e,t)}const K1=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>sn(t),now:()=>ye.isProcessing?ye.timestamp:Le.now()}},M0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o=ls?1/0:t}function G1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fc(r),ls);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:kt(i)}}const Y1=5;function R0(e,t,n){const r=Math.max(t-Y1,0);return u0(n-e(r),t-r)}const ie={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},ma=.001;function X1({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let i,o,s=1-t;s=Lt(ie.minDamping,ie.maxDamping,s),e=Lt(ie.minDuration,ie.maxDuration,kt(e)),s<1?(i=c=>{const u=c*s,d=u*e,f=u-n,y=jl(c,s),w=Math.exp(-d);return ma-f/y*w},o=c=>{const d=c*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(c,2)*e,w=Math.exp(-d),x=jl(Math.pow(c,2),s);return(-i(c)+ma>0?-1:1)*((f-y)*w)/x}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-ma+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Z1(i,o,a);if(e=wt(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const Q1=12;function Z1(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function ek(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!nf(e,J1)&&nf(e,q1))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Lt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=X1(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function us(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:y}=ek({...n,velocity:-kt(n.velocity||0)}),w=f||0,x=c/(2*Math.sqrt(l*u)),E=s-o,h=kt(Math.sqrt(l/u)),p=Math.abs(E)<5;r||(r=p?ie.restSpeed.granular:ie.restSpeed.default),i||(i=p?ie.restDelta.granular:ie.restDelta.default);let m;if(x<1){const C=jl(h,x);m=b=>{const T=Math.exp(-x*h*b);return s-T*((w+x*h*E)/C*Math.sin(C*b)+E*Math.cos(C*b))}}else if(x===1)m=C=>s-Math.exp(-h*C)*(E+(w+h*E)*C);else{const C=h*Math.sqrt(x*x-1);m=b=>{const T=Math.exp(-x*h*b),S=Math.min(C*b,300);return s-T*((w+x*h*E)*Math.sinh(S)+C*E*Math.cosh(S))/C}}const k={calculatedDuration:y&&d||null,next:C=>{const b=m(C);if(y)a.done=C>=d;else{let T=C===0?w:0;x<1&&(T=C===0?wt(w):R0(m,C,b));const S=Math.abs(T)<=r,D=Math.abs(s-b)<=i;a.done=S&&D}return a.value=a.done?s:b,a},toString:()=>{const C=Math.min(fc(k),ls),b=M0(T=>k.next(C*T).value,C,30);return C+"ms "+b},toTransition:()=>{}};return k}us.applyToOptions=e=>{const t=G1(e,100,us);return e.ease=t.ease,e.duration=wt(t.duration),e.type="keyframes",e};function Dl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},y=S=>a!==void 0&&Sl,w=S=>a===void 0?l:l===void 0||Math.abs(a-S)-x*Math.exp(-S/r),m=S=>h+p(S),k=S=>{const D=p(S),j=m(S);f.done=Math.abs(D)<=c,f.value=f.done?h:j};let C,b;const T=S=>{y(f.value)&&(C=S,b=us({keyframes:[f.value,w(f.value)],velocity:R0(m,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:S=>{let D=!1;return!b&&C===void 0&&(D=!0,k(S),T(S)),C!==void 0&&S>=C?b.next(S-C):(!D&&k(S),f)}}}function tk(e,t,n){const r=[],i=n||_t.mix||N0,o=e.length-1;for(let s=0;st[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tk(t,r,i),l=a.length,c=u=>{if(s&&u1)for(;dc(Lt(e[0],e[o-1],u)):c}function rk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Si(0,t,r);e.push(te(n,1,i))}}function ik(e){const t=[0];return rk(t,e.length-1),t}function ok(e,t){return e.map(n=>n*t)}function sk(e,t){return e.map(()=>t||v0).splice(0,e.length-1)}function ti({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=y1(r)?r.map(Zd):Zd(r),o={done:!1,value:t[0]},s=ok(n&&n.length===t.length?n:ik(t),e),a=nk(s,t,{ease:Array.isArray(i)?i:sk(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ak=e=>e!==null;function pc(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(ak),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const lk={decay:Dl,inertia:Dl,tween:ti,keyframes:ti,spring:us};function A0(e){typeof e.type=="string"&&(e.type=lk[e.type])}class hc{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 uk=e=>e/100;class mc extends hc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Le.now()&&this.tick(Le.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;A0(t);const{type:n=ti,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||ti;l!==ti&&typeof a[0]!="number"&&(this.mixKeyframes=_i(uk,N0(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=fc(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}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:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:y,type:w,onUpdate:x,finalKeyframe:E}=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 h=this.currentTime-c*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?h<0:h>i;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let m=this.currentTime,k=r;if(d){const S=Math.min(this.currentTime,i)/a;let D=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(f==="reverse"?(j=1-j,y&&(j-=y/a)):f==="mirror"&&(k=s)),m=Lt(0,1,j)*a}const C=p?{done:!1,value:u[0]}:k.next(m);o&&(C.value=o(C.value));let{done:b}=C;!p&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return T&&w!==Dl&&(C.value=pc(u,this.options,E,this.speed)),x&&x(C.value),T&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return kt(this.calculatedDuration)}get time(){return kt(this.currentTime)}set time(t){t=wt(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),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Le.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=kt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=K1,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();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(Le.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function ck(e){for(let t=1;te*180/Math.PI,Ll=e=>{const t=kn(Math.atan2(e[1],e[0]));return _l(t)},dk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ll,rotateZ:Ll,skewX:e=>kn(Math.atan(e[1])),skewY:e=>kn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_l=e=>(e=e%360,e<0&&(e+=360),e),rf=Ll,of=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:of,scaleY:sf,scale:e=>(of(e)+sf(e))/2,rotateX:e=>_l(kn(Math.atan2(e[6],e[5]))),rotateY:e=>_l(kn(Math.atan2(-e[2],e[0]))),rotateZ:rf,rotate:rf,skewX:e=>kn(Math.atan(e[4])),skewY:e=>kn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vl(e){return e.includes("scale")?1:0}function Ol(e,t){if(!e||e==="none")return Vl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=fk,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=dk,i=a}if(!i)return Vl(t);const o=r[t],s=i[1].split(",").map(hk);return typeof o=="function"?o(s):s[o]}const pk=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ol(n,t)};function hk(e){return parseFloat(e.trim())}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nr=new Set(br),af=e=>e===Pr||e===V,mk=new Set(["x","y","z"]),gk=br.filter(e=>!mk.has(e));function yk(e){const t=[];return gk.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const En={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})=>Ol(t,"x"),y:(e,{transform:t})=>Ol(t,"y")};En.translateX=En.x;En.translateY=En.y;const Tn=new Set;let Il=!1,Fl=!1,zl=!1;function j0(){if(Fl){const e=Array.from(Tn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=yk(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{r.getValue(o)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Fl=!1,Il=!1,Tn.forEach(e=>e.complete(zl)),Tn.clear()}function D0(){Tn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fl=!0)})}function vk(){zl=!0,D0(),j0(),zl=!1}class gc{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Tn.add(this),Il||(Il=!0,J.read(D0),J.resolveKeyframes(j0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}ck(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Tn.delete(this)}cancel(){this.state==="scheduled"&&(Tn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xk=e=>e.startsWith("--");function wk(e,t,n){xk(t)?e.style.setProperty(t,n):e.style[t]=n}const kk=rc(()=>window.ScrollTimeline!==void 0),Sk={};function Ck(e,t){const n=rc(e);return()=>Sk[t]??n()}const L0=Ck(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ur=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ur([0,.65,.55,1]),circOut:Ur([.55,0,1,.45]),backIn:Ur([.31,.01,.66,-.59]),backOut:Ur([.33,1.53,.69,.99])};function _0(e,t){if(e)return typeof e=="function"?L0()?M0(e,t):"ease-out":x0(e)?Ur(e):Array.isArray(e)?e.map(n=>_0(n,t)||lf.easeOut):lf[e]}function Ek(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=_0(a,i);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function V0(e){return typeof e=="function"&&"applyToOptions"in e}function Tk({type:e,...t}){return V0(e)&&L0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Pk extends hc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,nc(typeof t.type!="string");const c=Tk(t);this.animation=Ek(n,r,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=pc(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):wk(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return kt(Number(t))}get time(){return kt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=wt(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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&kk()?(this.animation.timeline=t,et):n(this)}}const O0={anticipate:m0,backInOut:h0,circInOut:y0};function bk(e){return e in O0}function Nk(e){typeof e.ease=="string"&&bk(e.ease)&&(e.ease=O0[e.ease])}const uf=10;class Mk extends Pk{constructor(t){Nk(t),A0(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new mc({...s,autoplay:!1}),l=wt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-uf).value,a.sample(l).value,uf),a.stop()}}const cf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(an.test(e)||e==="0")&&!e.startsWith("url("));function Rk(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function Lk(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Dk()&&n&&jk.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const _k=40;class Vk extends hc{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Le.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:c,element:u,...d},y=u?.KeyframeResolver||gc;this.keyframeResolver=new y(a,(w,x,E)=>this.onKeyframesResolved(w,x,f,!E),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Le.now(),Ak(t,o,s,a)||((_t.instantAnimations||!l)&&u?.(pc(t,r,n)),t[0]=t[t.length-1],Bl(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>_k?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!c&&Lk(f)?new Mk({...f,element:f.motionValue.owner.current}):new mc(f);y.finished.then(()=>this.notifyFinished()).catch(et),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(){return this._animation||(this.keyframeResolver?.resume(),vk()),this._animation}get duration(){return this.animation.duration}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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Ok=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ik(e){const t=Ok.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function I0(e,t,n=1){const[r,i]=Ik(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return s0(s)?parseFloat(s):s}return lc(i)?I0(i,t,n+1):i}function yc(e,t){return e?.[t]??e?.default??e}const F0=new Set(["width","height","top","left","right","bottom",...br]),Fk={test:e=>e==="auto",parse:e=>e},z0=e=>t=>t.test(e),B0=[Pr,V,St,zt,R1,M1,Fk],df=e=>B0.find(z0(e));function zk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||l0(e):!0}const Bk=new Set(["brightness","contrast","saturate","opacity"]);function $k(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uc)||[];if(!r)return e;const i=n.replace(r,"");let o=Bk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Uk=/\b([a-z-]*)\(.*?\)/gu,$l={...an,getAnimatableNone:e=>{const t=e.match(Uk);return t?t.map($k).join(" "):e}},ff={...Pr,transform:Math.round},Wk={rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:uo,scaleX:uo,scaleY:uo,scaleZ:uo,skew:zt,skewX:zt,skewY:zt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Ci,originX:qd,originY:qd,originZ:V},vc={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...Wk,zIndex:ff,fillOpacity:Ci,strokeOpacity:Ci,numOctaves:ff},Hk={...vc,color:le,backgroundColor:le,outlineColor:le,fill:le,stroke:le,borderColor:le,borderTopColor:le,borderRightColor:le,borderBottomColor:le,borderLeftColor:le,filter:$l,WebkitFilter:$l},$0=e=>Hk[e];function U0(e,t){let n=$0(e);return n!==$l&&(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Kk=new Set(["auto","none","0"]);function Gk(e,t,n){let r=0,i;for(;r{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Xk(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const W0=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function H0(e){return a0(e)&&"offsetHeight"in e}const pf=30,Qk=e=>!isNaN(parseFloat(e));class Zk{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Le.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.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=Le.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Qk(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 ic);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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(){this.events.change?.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=Le.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return u0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xr(e,t){return new Zk(e,t)}const{schedule:xc}=w0(queueMicrotask,!1),ot={x:!1,y:!1};function K0(){return ot.x||ot.y}function qk(e){return e==="x"||e==="y"?ot[e]?null:(ot[e]=!0,()=>{ot[e]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}function G0(e,t){const n=Xk(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function hf(e){return!(e.pointerType==="touch"||K0())}function Jk(e,t,n={}){const[r,i,o]=G0(e,n),s=a=>{if(!hf(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{hf(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Y0=(e,t)=>t?e===t?!0:Y0(e,t.parentElement):!1,wc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,eS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tS(e){return eS.has(e.tagName)||e.tabIndex!==-1}const Ao=new WeakSet;function mf(e){return t=>{t.key==="Enter"&&e(t)}}function ga(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mf(()=>{if(Ao.has(n))return;ga(n,"down");const i=mf(()=>{ga(n,"up")}),o=()=>ga(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gf(e){return wc(e)&&!K0()}function rS(e,t,n={}){const[r,i,o]=G0(e,n),s=a=>{const l=a.currentTarget;if(!gf(a))return;Ao.add(l);const c=t(l,a),u=(y,w)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Ao.has(l)&&Ao.delete(l),gf(y)&&typeof c=="function"&&c(y,{success:w})},d=y=>{u(y,l===window||l===document||n.useGlobalTarget||Y0(l,y.target))},f=y=>{u(y,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),H0(a)&&(a.addEventListener("focus",c=>nS(c,i)),!tS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function X0(e){return a0(e)&&"ownerSVGElement"in e}function iS(e){return X0(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),oS=[...B0,le,an],sS=e=>oS.find(z0(e)),kc=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class aS extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=H0(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function lS({children:e,isPresent:t,anchorX:n,root:r}){const i=v.useId(),o=v.useRef(null),s=v.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=v.useContext(kc);return v.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:f}=s.current;if(t||!o.current||!l||!c)return;const y=n==="left"?`left: ${d}`:`right: ${f}`;o.current.dataset.motionPopId=i;const w=document.createElement("style");a&&(w.nonce=a);const x=r??document.head;return x.appendChild(w),w.sheet&&w.sheet.insertRule(` + [data-motion-pop-id="${i}"] { + position: absolute !important; + width: ${l}px !important; + height: ${c}px !important; + ${y}px !important; + top: ${u}px !important; + } + `),()=>{x.contains(w)&&x.removeChild(w)}},[t]),g.jsx(aS,{isPresent:t,childRef:o,sizeRef:s,children:v.cloneElement(e,{ref:o})})}const uS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const c=qu(cS),u=v.useId();let d=!0,f=v.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:y=>{c.set(y,!0);for(const w of c.values())if(!w)return;r&&r()},register:y=>(c.set(y,!1),()=>c.delete(y))}),[n,c,r]);return o&&d&&(f={...f}),v.useMemo(()=>{c.forEach((y,w)=>c.set(w,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(lS,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(Ms.Provider,{value:f,children:e})};function cS(){return new Map}function Q0(e=!0){const t=v.useContext(Ms);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=v.useId();v.useEffect(()=>{if(e)return i(o)},[e]);const s=v.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const co=e=>e.key||"";function yf(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const jo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=Q0(s),d=v.useMemo(()=>yf(e),[e]),f=s&&!c?[]:d.map(co),y=v.useRef(!0),w=v.useRef(d),x=qu(()=>new Map),[E,h]=v.useState(d),[p,m]=v.useState(d);o0(()=>{y.current=!1,w.current=d;for(let b=0;b{const T=co(b),S=s&&!c?!1:d===p||f.includes(T),D=()=>{if(x.has(T))x.set(T,!0);else return;let j=!0;x.forEach(Y=>{Y||(j=!1)}),j&&(C?.(),m(w.current),s&&u?.(),r&&r())};return g.jsx(uS,{isPresent:S,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:S?void 0:D,anchorX:a,children:b},T)})})},Z0=v.createContext({strict:!1}),vf={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"]},wr={};for(const e in vf)wr[e]={isEnabled:t=>vf[e].some(n=>!!t[n])};function dS(e){for(const t in e)wr[t]={...wr[t],...e[t]}}const fS=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 cs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fS.has(e)}let q0=e=>!cs(e);function pS(e){typeof e=="function"&&(q0=t=>t.startsWith("on")?!cs(t):e(t))}try{pS(require("@emotion/is-prop-valid").default)}catch{}function hS(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(q0(i)||n===!0&&cs(i)||!t&&!cs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Rs=v.createContext({});function As(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ti(e){return typeof e=="string"||Array.isArray(e)}const Sc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cc=["initial",...Sc];function js(e){return As(e.animate)||Cc.some(t=>Ti(e[t]))}function J0(e){return!!(js(e)||e.variants)}function mS(e,t){if(js(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ti(n)?n:void 0,animate:Ti(r)?r:void 0}}return e.inherit!==!1?t:{}}function gS(e){const{initial:t,animate:n}=mS(e,v.useContext(Rs));return v.useMemo(()=>({initial:t,animate:n}),[xf(t),xf(n)])}function xf(e){return Array.isArray(e)?e.join(" "):e}const Pi={};function yS(e){for(const t in e)Pi[t]=e[t],ac(t)&&(Pi[t].isCSSVariable=!0)}function eg(e,{layout:t,layoutId:n}){return Nr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Pi[e]||e==="opacity")}const vS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xS=br.length;function wS(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function tg(e,t,n){for(const r in t)!Te(t[r])&&!eg(r,n)&&(e[r]=t[r])}function kS({transformTemplate:e},t){return v.useMemo(()=>{const n=Tc();return Ec(n,t,e),Object.assign({},n.vars,n.style)},[t])}function SS(e,t){const n=e.style||{},r={};return tg(r,n,e),Object.assign(r,kS(e,t)),r}function CS(e,t){const n={},r=SS(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 ES={offset:"stroke-dashoffset",array:"stroke-dasharray"},TS={offset:"strokeDashoffset",array:"strokeDasharray"};function PS(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ES:TS;e[o.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[o.array]=`${s} ${a}`}function ng(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,c,u){if(Ec(e,a,c),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=u?.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&&PS(d,i,o,s,!1)}const rg=()=>({...Tc(),attrs:{}}),ig=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bS(e,t,n,r){const i=v.useMemo(()=>{const o=rg();return ng(o,t,ig(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tg(o,e.style,e),i.style={...o,...i.style}}return i}const NS=["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 Pc(e){return typeof e!="string"||e.includes("-")?!1:!!(NS.indexOf(e)>-1||/[A-Z]/u.test(e))}function MS(e,t,n,{latestValues:r},i,o=!1){const a=(Pc(e)?bS:CS)(t,r,i,e),l=hS(t,typeof e=="string",o),c=e!==v.Fragment?{...l,...a,ref:n}:{},{children:u}=t,d=v.useMemo(()=>Te(u)?u.get():u,[u]);return v.createElement(e,{...c,children:d})}function wf(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function bc(e,t,n,r){if(typeof t=="function"){const[i,o]=wf(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=wf(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Do(e){return Te(e)?e.get():e}function RS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:AS(n,r,i,e),renderState:t()}}function AS(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Do(o[f]);let{initial:s,animate:a}=e;const l=js(e),c=J0(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!As(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y(t,n)=>{const r=v.useContext(Rs),i=v.useContext(Ms),o=()=>RS(e,t,r,i);return n?o():qu(o)};function Nc(e,t,n){const{style:r}=e,i={};for(const o in r)(Te(r[o])||t.style&&Te(t.style[o])||eg(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const jS=og({scrapeMotionValuesFromProps:Nc,createRenderState:Tc});function sg(e,t,n){const r=Nc(e,t,n);for(const i in e)if(Te(e[i])||Te(t[i])){const o=br.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const DS=og({scrapeMotionValuesFromProps:sg,createRenderState:rg}),LS=Symbol.for("motionComponentSymbol");function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _S(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}const Mc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),VS="framerAppearId",ag="data-"+Mc(VS),lg=v.createContext({});function OS(e,t,n,r,i){const{visualElement:o}=v.useContext(Rs),s=v.useContext(Z0),a=v.useContext(Ms),l=v.useContext(kc).reducedMotion,c=v.useRef(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=v.useContext(lg);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&IS(c.current,n,i,d);const f=v.useRef(!1);v.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const y=n[ag],w=v.useRef(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return o0(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),w.current&&u.animationState&&u.animationState.animateChanges())}),v.useEffect(()=>{u&&(!w.current&&u.animationState&&u.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),w.current=!1),u.enteringChildren=void 0)}),u}function IS(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ug(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&er(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function ug(e){if(e)return e.options.allowProjection!==!1?e.projection:ug(e.parent)}function ya(e,{forwardMotionProps:t=!1}={},n,r){n&&dS(n);const i=Pc(e)?DS:jS;function o(a,l){let c;const u={...v.useContext(kc),...a,layoutId:FS(a)},{isStatic:d}=u,f=gS(a),y=i(a,d);if(!d&&Ju){zS();const w=BS(u);c=w.MeasureLayout,f.visualElement=OS(e,y,u,r,w.ProjectionNode)}return g.jsxs(Rs.Provider,{value:f,children:[c&&f.visualElement?g.jsx(c,{visualElement:f.visualElement,...u}):null,MS(e,a,_S(y,f.visualElement,l),y,d,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=v.forwardRef(o);return s[LS]=e,s}function FS({layoutId:e}){const t=v.useContext(Zu).id;return t&&e!==void 0?t+"-"+e:e}function zS(e,t){v.useContext(Z0).strict}function BS(e){const{drag:t,layout:n}=wr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $S(e,t){if(typeof Proxy>"u")return ya;const n=new Map,r=(o,s)=>ya(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,ya(s,void 0,e,t)),n.get(s))})}function cg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function US({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WS(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 va(e){return e===void 0||e===1}function Ul({scale:e,scaleX:t,scaleY:n}){return!va(e)||!va(t)||!va(n)}function gn(e){return Ul(e)||dg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dg(e){return kf(e.x)||kf(e.y)}function kf(e){return e&&e!=="0%"}function ds(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=ds(e,i,r)),ds(e,n,r)+t}function Wl(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 fg(e,{x:t,y:n}){Wl(e.x,t.translate,t.scale,t.originPoint),Wl(e.y,n.translate,n.scale,n.originPoint)}const Cf=.999999999999,Ef=1.0000000000001;function HS(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;aCf&&(t.x=1),t.yCf&&(t.y=1)}function tr(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,n,r,i=.5){const o=te(e.min,e.max,i);Wl(e,t,n,o,r)}function nr(e,t){Tf(e.x,t.x,t.scaleX,t.scale,t.originX),Tf(e.y,t.y,t.scaleY,t.scale,t.originY)}function pg(e,t){return cg(WS(e.getBoundingClientRect(),t))}function KS(e,t,n){const r=pg(e,n),{scroll:i}=t;return i&&(tr(r.x,i.offset.x),tr(r.y,i.offset.y)),r}const Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),rr=()=>({x:Pf(),y:Pf()}),bf=()=>({min:0,max:0}),se=()=>({x:bf(),y:bf()}),Hl={current:null},hg={current:!1};function GS(){if(hg.current=!0,!!Ju)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hl.current=e.matches;e.addEventListener("change",t),t()}else Hl.current=!1}const YS=new WeakMap;function XS(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Te(i))e.addValue(r,i);else if(Te(o))e.addValue(r,xr(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,xr(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Nf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class QS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gc,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=Le.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),hg.current||GS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Hl.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),sn(this.notifyUpdate),sn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}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=Nr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wr){const n=wr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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=xr(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"&&(s0(r)||l0(r))?r=parseFloat(r):!sS(r)&&an.test(n)&&(r=U0(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=bc(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Te(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 ic),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xc.render(this.render)}}class mg extends QS{constructor(){super(...arguments),this.KeyframeResolver=Yk}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;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gg(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i?.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function ZS(e){return window.getComputedStyle(e)}class qS extends mg{constructor(){super(...arguments),this.type="html",this.renderInstance=gg}readValueFromInstance(t,n){if(Nr.has(n))return this.projection?.isProjecting?Vl(n):pk(t,n);{const r=ZS(t),i=(ac(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pg(t,n)}build(t,n,r){Ec(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nc(t,n,r)}}const yg=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 JS(e,t,n,r){gg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yg.has(i)?i:Mc(i),t.attrs[i])}class eC extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nr.has(n)){const r=$0(n);return r&&r.default||0}return n=yg.has(n)?n:Mc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return sg(t,n,r)}build(t,n,r){ng(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){JS(t,n,r,i)}mount(t){this.isSVGTag=ig(t.tagName),super.mount(t)}}const tC=(e,t)=>Pc(e)?new eC(t):new qS(t,{allowProjection:e!==v.Fragment});function cr(e,t,n){const r=e.getProps();return bc(r,t,n!==void 0?n:r.custom,e)}const Kl=e=>Array.isArray(e);function nC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xr(n))}function rC(e){return Kl(e)?e[e.length-1]||0:e}function iC(e,t){const n=cr(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=rC(o[s]);nC(e,s,a)}}function oC(e){return!!(Te(e)&&e.add)}function Gl(e,t){const n=e.getValue("willChange");if(oC(n))return n.add(t);if(!n&&_t.WillChange){const r=new _t.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function vg(e){return e.props[ag]}const sC=e=>e!==null;function aC(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(sC),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const lC={type:"spring",stiffness:500,damping:25,restSpeed:10},uC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cC={type:"keyframes",duration:.8},dC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fC=(e,{keyframes:t})=>t.length>2?cC:Nr.has(e)?e.startsWith("scale")?uC(t[1]):lC:dC;function pC({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Rc=(e,t,n,r={},i,o)=>s=>{const a=yc(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-wt(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};pC(a)||Object.assign(u,fC(e,u)),u.duration&&(u.duration=wt(u.duration)),u.repeatDelay&&(u.repeatDelay=wt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bl(u),u.delay===0&&(d=!0)),(_t.instantAnimations||_t.skipAnimations)&&(d=!0,Bl(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const f=aC(u.keyframes,a);if(f!==void 0){J.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new mc(u):new Vk(u)};function hC({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||c&&hC(c,u))continue;const y={delay:n,...yc(o||{},u)},w=d.get();if(w!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===w&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const h=vg(e);if(h){const p=window.MotionHandoffAnimation(h,u,J);p!==null&&(y.startTime=p,x=!0)}}Gl(e,u),d.start(Rc(u,d,f,e.shouldReduceMotion&&F0.has(u)?{type:!1}:y,e,x));const E=d.animation;E&&l.push(E)}return s&&Promise.all(l).then(()=>{J.update(()=>{s&&iC(e,s)})}),l}function wg(e,t,n,r=0,i=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function Yl(e,t,n={}){const r=cr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(xg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=i;return mC(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function mC(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Yl(l,t,{...s,delay:n+(typeof r=="function"?0:r)+wg(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function gC(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Yl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Yl(e,t,n);else{const i=typeof t=="function"?cr(e,t,n.custom):t;r=Promise.all(xg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function kg(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})=>gC(e,n,r)))}function kC(e){let t=wC(e),n=Mf(),r=!0;const i=l=>(c,u)=>{const d=cr(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:y,...w}=d;c={...c,...w,...y}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=Sg(e.parent)||{},d=[],f=new Set;let y={},w=1/0;for(let E=0;Ew&&k,D=!1;const j=Array.isArray(m)?m:[m];let Y=j.reduce(i(h),{});C===!1&&(Y={});const{prevResolvedValues:we={}}=p,He={...we,...Y},rt=B=>{S=!0,f.has(B)&&(D=!0,f.delete(B)),p.needsAnimating[B]=!0;const P=e.getValue(B);P&&(P.liveStyle=!1)};for(const B in He){const P=Y[B],L=we[B];if(y.hasOwnProperty(B))continue;let _=!1;Kl(P)&&Kl(L)?_=!kg(P,L):_=P!==L,_?P!=null?rt(B):f.add(B):P!==void 0&&f.has(B)?rt(B):p.protectedKeys[B]=!0}p.prevProp=m,p.prevResolvedValues=Y,p.isActive&&(y={...y,...Y}),r&&e.blockInitialAnimation&&(S=!1);const Ie=b&&T;S&&(!Ie||D)&&d.push(...j.map(B=>{const P={type:h};if(typeof B=="string"&&r&&!Ie&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,_=cr(L,B);if(L.enteringChildren&&_){const{delayChildren:U}=_.transition||{};P.delay=wg(L.enteringChildren,e,U)}}return{animation:B,options:P}}))}if(f.size){const E={};if(typeof c.initial!="boolean"){const h=cr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(E.transition=h.transition)}f.forEach(h=>{const p=e.getBaseTarget(h),m=e.getValue(h);m&&(m.liveStyle=!0),E[h]=p??null}),d.push({animation:E})}let x=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Mf(),r=!0}}}function SC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kg(t,e):!1}function pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mf(){return{animate:pn(!0),whileInView:pn(),whileHover:pn(),whileTap:pn(),whileDrag:pn(),whileFocus:pn(),exit:pn()}}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class CC extends dn{constructor(t){super(t),t.animationState||(t.animationState=kC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();As(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(){this.node.animationState.reset(),this.unmountControls?.()}}let EC=0;class TC extends dn{constructor(){super(...arguments),this.id=EC++}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 PC={animation:{Feature:CC},exit:{Feature:TC}};function bi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ii(e){return{point:{x:e.pageX,y:e.pageY}}}const bC=e=>t=>wc(t)&&e(t,Ii(t));function ni(e,t,n,r){return bi(e,t,bC(n),r)}const Cg=1e-4,NC=1-Cg,MC=1+Cg,Eg=.01,RC=0-Eg,AC=0+Eg;function Ne(e){return e.max-e.min}function jC(e,t,n){return Math.abs(e-t)<=n}function Rf(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=Ne(n)/Ne(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=NC&&e.scale<=MC||isNaN(e.scale))&&(e.scale=1),(e.translate>=RC&&e.translate<=AC||isNaN(e.translate))&&(e.translate=0)}function ri(e,t,n,r){Rf(e.x,t.x,n.x,r?r.originX:void 0),Rf(e.y,t.y,n.y,r?r.originY:void 0)}function Af(e,t,n){e.min=n.min+t.min,e.max=e.min+Ne(t)}function DC(e,t,n){Af(e.x,t.x,n.x),Af(e.y,t.y,n.y)}function jf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ne(t)}function ii(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function Xe(e){return[e("x"),e("y")]}const Tg=({current:e})=>e?e.ownerDocument.defaultView:null,Df=(e,t)=>Math.abs(e-t);function LC(e,t){const n=Df(e.x,t.x),r=Df(e.y,t.y);return Math.sqrt(n**2+r**2)}class Pg{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=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=wa(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,w=LC(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!w)return;const{point:x}=f,{timestamp:E}=ye;this.history.push({...x,timestamp:E});const{onStart:h,onMove:p}=this.handlers;y||(h&&h(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=xa(y,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=wa(f.type==="pointercancel"?this.lastMoveEventInfo:xa(y,this.transformPagePoint),this.history);this.startEvent&&w&&w(f,h),x&&x(f,h)},!wc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ii(t),l=xa(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=ye;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,wa(l,this.history)),this.removeListeners=_i(ni(this.contextWindow,"pointermove",this.handlePointerMove),ni(this.contextWindow,"pointerup",this.handlePointerUp),ni(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sn(this.updatePoint)}}function xa(e,t){return t?{point:t(e.point)}:e}function Lf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wa({point:e},t){return{point:e,delta:Lf(e,bg(t)),offset:Lf(e,_C(t)),velocity:VC(t,.1)}}function _C(e){return e[0]}function bg(e){return e[e.length-1]}function VC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=bg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const o=kt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function OC(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function _f(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 IC(e,{top:t,left:n,bottom:r,right:i}){return{x:_f(e.x,n,i),y:_f(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=Si(t.min,t.max-r,e.min):r>i&&(n=Si(e.min,e.max-i,t.min)),Lt(0,1,n)}function BC(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 Xl=.35;function $C(e=Xl){return e===!1?e=0:e===!0&&(e=Xl),{x:Of(e,"left","right"),y:Of(e,"top","bottom")}}function Of(e,t,n){return{min:If(e,t),max:If(e,n)}}function If(e,t){return typeof e=="number"?e:e[t]||0}const UC=new WeakMap;class WC{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 o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ii(d).point)},s=(d,f)=>{const{drag:y,dragPropagation:w,onDragStart:x}=this.getProps();if(y&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qk(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),Xe(h=>{let p=this.getAxisMotionValue(h).get()||0;if(St.test(p)){const{projection:m}=this.visualElement;if(m&&m.layout){const k=m.layout.layoutBox[h];k&&(p=Ne(k)*(parseFloat(p)/100))}}this.originPoint[h]=p}),x&&J.postRender(()=>x(d,f)),Gl(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:w,onDirectionLock:x,onDrag:E}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:h}=f;if(w&&this.currentDirection===null){this.currentDirection=HC(h),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,h),this.updateAxis("y",f.point,h),this.visualElement.render(),E&&E(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Xe(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Pg(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Tg(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&J.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||!fo(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=OC(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&er(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=IC(r.layoutBox,t):this.constraints=!1,this.elastic=$C(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=BC(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=KS(r,i.root,this.visualElement.getTransformPagePoint());let s=FC(i.layout.layoutBox,o);if(n){const a=n(US(s));this.hasMutatedConstraints=!!a,a&&(s=cg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Xe(u=>{if(!fo(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,w={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Gl(this.visualElement,t),r.start(Rc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.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){Xe(n=>{const{drag:r}=this.getProps();if(!fo(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-te(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=zC({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(s=>{if(!fo(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(te(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;UC.set(this.visualElement,this);const t=this.visualElement.current,n=ni(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),J.read(r);const s=bi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xe(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Xl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function fo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class KC extends dn{constructor(t){super(t),this.removeGroupControls=et,this.removeListeners=et,this.controls=new WC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ff=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class GC extends dn{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(t){this.session=new Pg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ff(t),onStart:Ff(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&J.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=ni(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 Lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ir={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=zf(e,t.target.x),r=zf(e,t.target.y);return`${n}% ${r}%`}},YC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=an.parse(e);if(i.length>5)return r;const o=an.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=te(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};let ka=!1;class XC extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;yS(QC),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),ka&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,ka=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ka=!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 Ng(e){const[t,n]=Q0(),r=v.useContext(Zu);return g.jsx(XC,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(lg),isPresent:t,safeToRemove:n})}const QC={borderRadius:{...Ir,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:Ir,borderBottomRightRadius:Ir,boxShadow:YC};function ZC(e,t,n){const r=Te(e)?e:xr(e);return r.start(Rc("",r,t,n)),r.animation}const qC=(e,t)=>e.depth-t.depth;class JC{constructor(){this.children=[],this.isDirty=!1}add(t){ec(this.children,t),this.isDirty=!0}remove(t){tc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qC),this.isDirty=!1,this.children.forEach(t)}}function e2(e,t){const n=Le.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(sn(r),e(o-t))};return J.setup(r,!0),()=>sn(r)}const Mg=["TopLeft","TopRight","BottomLeft","BottomRight"],t2=Mg.length,Bf=e=>typeof e=="string"?parseFloat(e):e,$f=e=>typeof e=="number"||V.test(e);function n2(e,t,n,r,i,o){i?(e.opacity=te(0,n.opacity??1,r2(r)),e.opacityExit=te(t.opacity??1,0,i2(r))):o&&(e.opacity=te(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Si(e,t,r))}function Wf(e,t){e.min=t.min,e.max=t.max}function Ye(e,t){Wf(e.x,t.x),Wf(e.y,t.y)}function Hf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Kf(e,t,n,r,i){return e-=t,e=ds(e,1/n,r),i!==void 0&&(e=ds(e,1/i,r)),e}function o2(e,t=0,n=1,r=.5,i,o=e,s=e){if(St.test(t)&&(t=parseFloat(t),t=te(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=te(o.min,o.max,r);e===o&&(a-=t),e.min=Kf(e.min,t,n,a,i),e.max=Kf(e.max,t,n,a,i)}function Gf(e,t,[n,r,i],o,s){o2(e,t[n],t[r],t[i],t.scale,o,s)}const s2=["x","scaleX","originX"],a2=["y","scaleY","originY"];function Yf(e,t,n,r){Gf(e.x,t,s2,n?n.x:void 0,r?r.x:void 0),Gf(e.y,t,a2,n?n.y:void 0,r?r.y:void 0)}function Xf(e){return e.translate===0&&e.scale===1}function Ag(e){return Xf(e.x)&&Xf(e.y)}function Qf(e,t){return e.min===t.min&&e.max===t.max}function l2(e,t){return Qf(e.x,t.x)&&Qf(e.y,t.y)}function Zf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jg(e,t){return Zf(e.x,t.x)&&Zf(e.y,t.y)}function qf(e){return Ne(e.x)/Ne(e.y)}function Jf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class u2{constructor(){this.members=[]}add(t){ec(this.members,t),t.scheduleRender()}remove(t){if(tc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function c2(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:y,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}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 Sa=["","X","Y","Z"],d2=1e3;let f2=0;function Ca(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Dg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=vg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Dg(r)}function Lg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=f2++,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.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(m2),this.nodes.forEach(x2),this.nodes.forEach(w2),this.nodes.forEach(g2)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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;J.read(()=>{d=window.innerWidth}),e(s,()=>{const y=window.innerWidth;y!==d&&(d=y,this.root.updateBlockedByResize=!0,u&&u(),u=e2(f,250),Lo.hasAnimatedSinceResize&&(Lo.hasAnimatedSinceResize=!1,this.nodes.forEach(np)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||T2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:E}=c.getProps(),h=!this.targetLayout||!jg(this.targetLayout,y),p=!d&&f;if(this.options.layoutRoot||this.resumeFrom||p||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const m={...yc(w,"layout"),onPlay:x,onComplete:E};(c.shouldReduceMotion||this.options.layoutRoot)&&(m.delay=0,m.type=!1),this.startAnimation(m),this.setAnimationOrigin(u,p)}else d||np(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),sn(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(k2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ne(this.snapshot.measuredBox.x)&&!Ne(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 C=k/1e3;rp(d.x,s.x,C),rp(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ii(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),C2(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&l2(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=se()),Ye(m,this.relativeTarget)),x&&(this.animationValues=u,n2(u,c,this.latestValues,C,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(sn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Lo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xr(0)),this.currentAnimation=ZC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(d2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&_g(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||se();const d=Ne(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ne(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ye(a,l),nr(a,u),ri(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new u2),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ca("z",s,c,this.animationValues);for(let u=0;us.currentAnimation?.stop()),this.root.nodes.forEach(ep),this.root.sharedNodes.clear()}}}function p2(e){e.updateLayout()}function h2(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Xe(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],f=Ne(d);d.min=n[u].min,d.max=d.min+f}):_g(i,t.layoutBox,n)&&Xe(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],f=Ne(n[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const s=rr();ri(s,n,t.layoutBox);const a=rr();o?ri(a,e.applyTransform(r,!0),t.measuredBox):ri(a,n,t.layoutBox);const l=!Ag(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const y=se();ii(y,t.layoutBox,d.layoutBox);const w=se();ii(w,n,f.layoutBox),jg(y,w)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function m2(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 g2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function y2(e){e.clearSnapshot()}function ep(e){e.clearMeasurements()}function tp(e){e.isLayoutDirty=!1}function v2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function np(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function x2(e){e.resolveTargetDelta()}function w2(e){e.calcProjection()}function k2(e){e.resetSkewAndRotation()}function S2(e){e.removeLeadSnapshot()}function rp(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ip(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function C2(e,t,n,r){ip(e.x,t.x,n.x,r),ip(e.y,t.y,n.y,r)}function E2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T2={duration:.45,ease:[.4,0,.1,1]},op=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sp=op("applewebkit/")&&!op("chrome/")?Math.round:et;function ap(e){e.min=sp(e.min),e.max=sp(e.max)}function P2(e){ap(e.x),ap(e.y)}function _g(e,t,n){return e==="position"||e==="preserve-aspect"&&!jC(qf(t),qf(n),.2)}function b2(e){return e!==e.root&&e.scroll?.wasRoot}const N2=Lg({attachResizeListener:(e,t)=>bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ea={current:void 0},Vg=Lg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ea.current){const e=new N2({});e.mount(window),e.setOptions({layoutScroll:!0}),Ea.current=e}return Ea.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),M2={pan:{Feature:GC},drag:{Feature:KC,ProjectionNode:Vg,MeasureLayout:Ng}};function lp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&J.postRender(()=>o(t,Ii(t)))}class R2 extends dn{mount(){const{current:t}=this.node;t&&(this.unmount=Jk(t,(n,r)=>(lp(this.node,r,"Start"),i=>lp(this.node,i,"End"))))}unmount(){}}class A2 extends dn{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=_i(bi(this.node.current,"focus",()=>this.onFocus()),bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function up(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),o=r[i];o&&J.postRender(()=>o(t,Ii(t)))}class j2 extends dn{mount(){const{current:t}=this.node;t&&(this.unmount=rS(t,(n,r)=>(up(this.node,r,"Start"),(i,{success:o})=>up(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ql=new WeakMap,Ta=new WeakMap,D2=e=>{const t=Ql.get(e.target);t&&t(e)},L2=e=>{e.forEach(D2)};function _2({root:e,...t}){const n=e||document;Ta.has(n)||Ta.set(n,{});const r=Ta.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(L2,{root:e,...t})),r[i]}function V2(e,t,n){const r=_2(t);return Ql.set(e,n),r.observe(e),()=>{Ql.delete(e),r.unobserve(e)}}const O2={some:0,all:1};class I2 extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:O2[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return V2(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(F2(t,n))&&this.startObserver()}unmount(){}}function F2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const z2={inView:{Feature:I2},tap:{Feature:j2},focus:{Feature:A2},hover:{Feature:R2}},B2={layout:{ProjectionNode:Vg,MeasureLayout:Ng}},$2={...PC,...z2,...M2,...B2},K=$S($2,tC);function Og({className:e,...t}){return g.jsx("textarea",{"data-slot":"textarea",className:_n("resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-input-background px-3 py-2 text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function U2({isOpen:e,onClose:t,messageId:n,isUnivAiPlusMode:r}){const[i,o]=v.useState(null),[s,a]=v.useState(""),[l,c]=v.useState(!1),u=()=>{console.log("Feedback submitted:",{messageId:n,feedbackType:i,comment:s}),c(!0),setTimeout(()=>{c(!1),o(null),a(""),t()},1500)},d=()=>{o(null),a(""),c(!1),t()};return g.jsx(jo,{children:e&&g.jsxs(g.Fragment,{children:[g.jsx(K.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50",onClick:d}),g.jsxs(K.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:`fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50 w-96 rounded-2xl border backdrop-blur-sm shadow-2xl transition-all duration-300 ${r?"bg-gradient-to-br from-white/95 to-purple-50/95 border-purple-200/50 shadow-purple-500/20":"bg-gradient-to-br from-white/95 to-red-50/95 border-red-200/50 shadow-red-500/20"}`,children:[g.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-current/10",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center transition-all duration-300 ${r?"bg-gradient-to-r from-purple-500 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 shadow-red-500/30"}`,children:g.jsx(Yu,{className:"text-white",size:20})}),g.jsxs("div",{children:[g.jsx("h3",{className:`transition-all duration-300 ${r?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:"Share Feedback"}),g.jsx("p",{className:`text-sm transition-all duration-300 ${r?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"Help us improve our responses"})]})]}),g.jsx(ut,{variant:"ghost",size:"sm",onClick:d,className:`transition-all duration-300 ${r?"hover:bg-purple-100 text-purple-600 dark:hover:bg-purple-900/30 dark:text-purple-400":"hover:bg-red-100 text-red-600 dark:hover:bg-red-900/30 dark:text-red-400"}`,children:g.jsx(Hm,{size:18})})]}),g.jsx("div",{className:"p-6",children:l?g.jsxs(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"text-center py-4",children:[g.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 transition-all duration-300 ${r?"bg-gradient-to-r from-purple-400 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-green-400 to-green-500 shadow-green-500/30"}`,children:g.jsx(Pl,{className:"text-white",size:24})}),g.jsx("h4",{className:`mb-2 transition-all duration-300 ${r?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:"Thank you!"}),g.jsx("p",{className:`text-sm transition-all duration-300 ${r?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"Your feedback helps us improve"})]}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("p",{className:`text-sm mb-3 transition-all duration-300 ${r?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"How was this response?"}),g.jsxs("div",{className:"flex gap-3",children:[g.jsxs(ut,{variant:i==="positive"?"default":"outline",size:"sm",onClick:()=>o("positive"),className:`flex items-center gap-2 transition-all duration-300 ${i==="positive"?r?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-red-500/30":r?"border-purple-200 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300 dark:hover:bg-purple-900/30":"border-red-200 text-red-700 hover:bg-red-50 dark:border-red-600 dark:text-red-300 dark:hover:bg-red-900/30"}`,children:[g.jsx(Pl,{size:16}),"Helpful"]}),g.jsxs(ut,{variant:i==="negative"?"default":"outline",size:"sm",onClick:()=>o("negative"),className:`flex items-center gap-2 transition-all duration-300 ${i==="negative"?r?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-red-500/30":r?"border-purple-200 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300 dark:hover:bg-purple-900/30":"border-red-200 text-red-700 hover:bg-red-50 dark:border-red-600 dark:text-red-300 dark:hover:bg-red-900/30"}`,children:[g.jsx(Um,{size:16}),"Not helpful"]})]})]}),g.jsxs("div",{className:"mb-4",children:[g.jsx("p",{className:`text-sm mb-2 transition-all duration-300 ${r?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"Additional comments (optional)"}),g.jsx(Og,{value:s,onChange:f=>a(f.target.value),placeholder:"Tell us more about your experience...",className:`transition-all duration-300 ${r?"border-purple-200 focus:border-purple-400 dark:border-purple-600":"border-red-200 focus:border-red-400 dark:border-red-600"}`,rows:3})]}),g.jsxs("div",{className:"flex gap-3 justify-end",children:[g.jsx(ut,{variant:"outline",size:"sm",onClick:d,className:`transition-all duration-300 ${r?"border-purple-200 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300 dark:hover:bg-purple-900/30":"border-red-200 text-red-700 hover:bg-red-50 dark:border-red-600 dark:text-red-300 dark:hover:bg-red-900/30"}`,children:"Cancel"}),g.jsx(ut,{size:"sm",onClick:u,disabled:!i,className:`transition-all duration-300 ${r?"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 hover:from-red-600 hover:to-orange-600 text-white shadow-red-500/30"}`,children:"Submit Feedback"})]})]})})]})]})})}function W2({content:e,isUser:t,timestamp:n,isPlusResponse:r,isUnivAiPlusMode:i}){const[o,s]=v.useState(!1);return g.jsxs(g.Fragment,{children:[g.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:`flex items-start gap-3 mb-4 ${t?"flex-row-reverse":"flex-row"}`,children:[g.jsxs("div",{className:` + flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center relative transition-all duration-300 + ${t?i?"bg-gradient-to-r from-purple-500 to-purple-600 text-white shadow-lg shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-red-600 text-white shadow-lg shadow-red-500/30":r||i?"bg-gradient-to-r from-purple-400 to-pink-500 text-white shadow-lg shadow-purple-500/30":"bg-gradient-to-r from-yellow-400 to-orange-500 text-white shadow-lg shadow-yellow-500/30"} + `,children:[t?g.jsx(Wm,{size:20}):r?g.jsx(Pt,{size:20}):i?g.jsx(Pt,{size:20}):g.jsx(Jr,{size:20}),r&&g.jsx(K.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},className:"absolute -top-1 -right-1 w-4 h-4 bg-gradient-to-r from-amber-400 to-yellow-500 rounded-full flex items-center justify-center",children:g.jsx(mw,{size:10,className:"text-white"})})]}),g.jsxs("div",{className:`flex flex-col max-w-[70%] ${t?"items-end":"items-start"}`,children:[r&&g.jsxs(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"flex items-center gap-1 px-3 py-1 mb-2 bg-gradient-to-r from-purple-500 to-pink-500 text-white text-xs rounded-full shadow-lg mr-4",children:[g.jsx(Pt,{size:12}),g.jsx("span",{children:"Premium Response"})]}),g.jsx("div",{className:` + px-4 py-3 rounded-2xl backdrop-blur-sm border shadow-sm transition-all duration-300 relative + ${t?i?"bg-gradient-to-r from-purple-50 to-purple-100 border-purple-200 text-purple-900 ml-4":"bg-gradient-to-r from-red-50 to-red-100 border-red-200 text-red-900 ml-4":r?"bg-gradient-to-r from-purple-50 via-pink-50 to-amber-50 border-purple-300 text-purple-900 mr-4 shadow-lg shadow-purple-200/50":i?"bg-gradient-to-r from-white to-purple-50 border-purple-200 text-purple-900 mr-4":"bg-gradient-to-r from-white to-yellow-50 border-yellow-200 text-red-900 mr-4"} + `,children:g.jsx("p",{className:"whitespace-pre-wrap",children:e})}),g.jsxs("div",{className:`flex items-center gap-2 mt-1 px-2 ${t?"flex-row-reverse":"flex-row"}`,children:[g.jsxs("span",{className:`text-xs transition-all duration-300 ${i?"text-purple-600/60":"text-red-600/60"}`,children:[n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),r&&g.jsx("span",{className:"ml-2 text-purple-600/80",children:"• Premium"})]}),!t&&g.jsx(ut,{variant:"ghost",size:"sm",onClick:()=>s(!0),className:`text-xs p-1 h-6 transition-all duration-300 opacity-60 hover:opacity-100 ${i?"hover:bg-purple-100 text-purple-600 dark:hover:bg-purple-900/30 dark:text-purple-400":"hover:bg-red-100 text-red-600 dark:hover:bg-red-900/30 dark:text-red-400"}`,children:g.jsx(Yu,{size:12})})]})]})]}),g.jsx(U2,{isOpen:o,onClose:()=>s(!1),messageId:`msg-${n.getTime()}`,isUnivAiPlusMode:i})]})}function H2({isUnivAiPlusMode:e}){return g.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex items-start gap-3 mb-4",children:[g.jsx("div",{className:` + flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center transition-all duration-300 + ${e?"bg-gradient-to-r from-purple-400 to-pink-500 text-white shadow-lg shadow-purple-500/30":"bg-gradient-to-r from-yellow-400 to-orange-500 text-white shadow-lg shadow-yellow-500/30"} + `,children:e?g.jsx(Pt,{size:20}):g.jsx(Jr,{size:20})}),g.jsx("div",{className:` + px-4 py-3 rounded-2xl backdrop-blur-sm border shadow-sm mr-4 transition-all duration-300 + ${e?"border-purple-200 bg-gradient-to-r from-white to-purple-50 text-purple-900":"border-yellow-200 bg-gradient-to-r from-white to-yellow-50 text-red-900"} + `,children:g.jsxs("div",{className:"flex space-x-1",children:[g.jsx(K.div,{className:`w-2 h-2 rounded-full ${e?"bg-purple-500/80":"bg-red-500/80"}`,animate:{y:[0,-5,0]},transition:{duration:.6,repeat:1/0,delay:0}}),g.jsx(K.div,{className:`w-2 h-2 rounded-full ${e?"bg-pink-500/80":"bg-orange-500/80"}`,animate:{y:[0,-5,0]},transition:{duration:.6,repeat:1/0,delay:.1}}),g.jsx(K.div,{className:`w-2 h-2 rounded-full ${e?"bg-amber-500/80":"bg-yellow-500/80"}`,animate:{y:[0,-5,0]},transition:{duration:.6,repeat:1/0,delay:.2}})]})})]})}function nn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function K2(e,t){const n=v.createContext(t),r=o=>{const{children:s,...a}=o,l=v.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(o){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function G2(e,t=[]){let n=[];function r(o,s){const a=v.createContext(s),l=n.length;n=[...n,s];const c=d=>{const{scope:f,children:y,...w}=d,x=f?.[e]?.[l]||a,E=v.useMemo(()=>w,Object.values(w));return g.jsx(x.Provider,{value:E,children:y})};c.displayName=o+"Provider";function u(d,f){const y=f?.[e]?.[l]||a,w=v.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const i=()=>{const o=n.map(s=>v.createContext(s));return function(a){const l=a?.[e]||o;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Y2(i,...t)]}function Y2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(o)[`__scope${c}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ni=globalThis?.document?v.useLayoutEffect:()=>{},X2=Ip[" useId ".trim().toString()]||(()=>{}),Q2=0;function Pa(e){const[t,n]=v.useState(X2());return Ni(()=>{n(r=>r??String(Q2++))},[e]),e||(t?`radix-${t}`:"")}var Z2=Ip[" useInsertionEffect ".trim().toString()]||Ni;function q2({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=J2({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const u=v.useRef(e!==void 0);v.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=v.useCallback(u=>{if(a){const d=eE(u)?u(e):u;d!==e&&s.current?.(d)}else o(u)},[a,e,o,s]);return[l,c]}function J2({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),o=v.useRef(t);return Z2(()=>{o.current=t},[t]),v.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function eE(e){return typeof e=="function"}var tE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ot=tE.reduce((e,t)=>{const n=Xu(`Primitive.${t}`),r=v.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nE(e,t){e&&Gu.flushSync(()=>e.dispatchEvent(t))}function Mi(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current?.(...n),[])}function rE(e,t=globalThis?.document){const n=Mi(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var iE="DismissableLayer",Zl="dismissableLayer.update",oE="dismissableLayer.pointerDownOutside",sE="dismissableLayer.focusOutside",cp,Ig=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fg=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=v.useContext(Ig),[u,d]=v.useState(null),f=u?.ownerDocument??globalThis?.document,[,y]=v.useState({}),w=Ln(t,T=>d(T)),x=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),h=x.indexOf(E),p=u?x.indexOf(u):-1,m=c.layersWithOutsidePointerEventsDisabled.size>0,k=p>=h,C=uE(T=>{const S=T.target,D=[...c.branches].some(j=>j.contains(S));!k||D||(i?.(T),s?.(T),T.defaultPrevented||a?.())},f),b=cE(T=>{const S=T.target;[...c.branches].some(j=>j.contains(S))||(o?.(T),s?.(T),T.defaultPrevented||a?.())},f);return rE(T=>{p===c.layers.size-1&&(r?.(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),dp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=cp)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),dp())},[u,c]),v.useEffect(()=>{const T=()=>y({});return document.addEventListener(Zl,T),()=>document.removeEventListener(Zl,T)},[]),g.jsx(Ot.div,{...l,ref:w,style:{pointerEvents:m?k?"auto":"none":void 0,...e.style},onFocusCapture:nn(e.onFocusCapture,b.onFocusCapture),onBlurCapture:nn(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:nn(e.onPointerDownCapture,C.onPointerDownCapture)})});Fg.displayName=iE;var aE="DismissableLayerBranch",lE=v.forwardRef((e,t)=>{const n=v.useContext(Ig),r=v.useRef(null),i=Ln(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),g.jsx(Ot.div,{...e,ref:i})});lE.displayName=aE;function uE(e,t=globalThis?.document){const n=Mi(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){zg(oE,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cE(e,t=globalThis?.document){const n=Mi(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&zg(sE,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dp(){const e=new CustomEvent(Zl);document.dispatchEvent(e)}function zg(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?nE(i,o):i.dispatchEvent(o)}var ba="focusScope.autoFocusOnMount",Na="focusScope.autoFocusOnUnmount",fp={bubbles:!1,cancelable:!0},dE="FocusScope",Bg=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=v.useState(null),c=Mi(i),u=Mi(o),d=v.useRef(null),f=Ln(t,x=>l(x)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let x=function(m){if(y.paused||!a)return;const k=m.target;a.contains(k)?d.current=k:Bt(d.current,{select:!0})},E=function(m){if(y.paused||!a)return;const k=m.relatedTarget;k!==null&&(a.contains(k)||Bt(d.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const C of m)C.removedNodes.length>0&&Bt(a)};document.addEventListener("focusin",x),document.addEventListener("focusout",E);const p=new MutationObserver(h);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",E),p.disconnect()}}},[r,a,y.paused]),v.useEffect(()=>{if(a){hp.add(y);const x=document.activeElement;if(!a.contains(x)){const h=new CustomEvent(ba,fp);a.addEventListener(ba,c),a.dispatchEvent(h),h.defaultPrevented||(fE(yE($g(a)),{select:!0}),document.activeElement===x&&Bt(a))}return()=>{a.removeEventListener(ba,c),setTimeout(()=>{const h=new CustomEvent(Na,fp);a.addEventListener(Na,u),a.dispatchEvent(h),h.defaultPrevented||Bt(x??document.body,{select:!0}),a.removeEventListener(Na,u),hp.remove(y)},0)}}},[a,c,u,y]);const w=v.useCallback(x=>{if(!n&&!r||y.paused)return;const E=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,h=document.activeElement;if(E&&h){const p=x.currentTarget,[m,k]=pE(p);m&&k?!x.shiftKey&&h===k?(x.preventDefault(),n&&Bt(m,{select:!0})):x.shiftKey&&h===m&&(x.preventDefault(),n&&Bt(k,{select:!0})):h===p&&x.preventDefault()}},[n,r,y.paused]);return g.jsx(Ot.div,{tabIndex:-1,...s,ref:f,onKeyDown:w})});Bg.displayName=dE;function fE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Bt(r,{select:t}),document.activeElement!==n)return}function pE(e){const t=$g(e),n=pp(t,e),r=pp(t.reverse(),e);return[n,r]}function $g(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pp(e,t){for(const n of e)if(!hE(n,{upTo:t}))return n}function hE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mE(e){return e instanceof HTMLInputElement&&"select"in e}function Bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mE(e)&&t&&e.select()}}var hp=gE();function gE(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=mp(e,t),e.unshift(t)},remove(t){e=mp(e,t),e[0]?.resume()}}}function mp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yE(e){return e.filter(t=>t.tagName!=="A")}var vE="Portal",Ug=v.forwardRef((e,t)=>{const{container:n,...r}=e,[i,o]=v.useState(!1);Ni(()=>o(!0),[]);const s=n||i&&globalThis?.document?.body;return s?$x.createPortal(g.jsx(Ot.div,{...r,ref:t}),s):null});Ug.displayName=vE;function xE(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Ds=e=>{const{present:t,children:n}=e,r=wE(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Ln(r.ref,kE(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};Ds.displayName="Presence";function wE(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),o=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=xE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=po(r.current);o.current=a==="mounted"?c:"none"},[a]),Ni(()=>{const c=r.current,u=i.current;if(u!==e){const f=o.current,y=po(c);e?l("MOUNT"):y==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&f!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ni(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const x=po(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&x&&(l("ANIMATION_END"),!i.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},f=y=>{y.target===t&&(o.current=po(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function po(e){return e?.animationName||"none"}function kE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ma=0;function SE(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gp()),document.body.insertAdjacentElement("beforeend",e[1]??gp()),Ma++,()=>{Ma===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ma--}},[])}function gp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var yt=function(){return yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return FE;var t=zE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$E=Gg(),dr="data-scroll-locked",UE=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(EE,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(dr,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(_o,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(Vo,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(_o," .").concat(_o,` { + right: 0 `).concat(r,`; + } + + .`).concat(Vo," .").concat(Vo,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(dr,`] { + `).concat(TE,": ").concat(a,`px; + } +`)},vp=function(){var e=parseInt(document.body.getAttribute(dr)||"0",10);return isFinite(e)?e:0},WE=function(){v.useEffect(function(){return document.body.setAttribute(dr,(vp()+1).toString()),function(){var e=vp()-1;e<=0?document.body.removeAttribute(dr):document.body.setAttribute(dr,e.toString())}},[])},HE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;WE();var o=v.useMemo(function(){return BE(i)},[i]);return v.createElement($E,{styles:UE(o,!t,i,n?"":"!important")})},ql=!1;if(typeof window<"u")try{var ho=Object.defineProperty({},"passive",{get:function(){return ql=!0,!0}});window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{ql=!1}var In=ql?{passive:!1}:!1,KE=function(e){return e.tagName==="TEXTAREA"},Yg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KE(e)&&n[t]==="visible")},GE=function(e){return Yg(e,"overflowY")},YE=function(e){return Yg(e,"overflowX")},xp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Xg(e,r);if(i){var o=Qg(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},XE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},QE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Xg=function(e,t){return e==="v"?GE(t):YE(t)},Qg=function(e,t){return e==="v"?XE(t):QE(t)},ZE=function(e,t){return e==="h"&&t==="rtl"?-1:1},qE=function(e,t,n,r,i){var o=ZE(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,f=0;do{if(!a)break;var y=Qg(e,a),w=y[0],x=y[1],E=y[2],h=x-E-o*w;(w||h)&&Xg(e,a)&&(d+=h,f+=w);var p=a.parentNode;a=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},mo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wp=function(e){return[e.deltaX,e.deltaY]},kp=function(e){return e&&"current"in e?e.current:e},JE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eT=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},tT=0,Fn=[];function nT(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(tT++)[0],o=v.useState(Gg)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=CE([e.lockRef.current],(e.shards||[]).map(kp),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(x,E){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var h=mo(x),p=n.current,m="deltaX"in x?x.deltaX:p[0]-h[0],k="deltaY"in x?x.deltaY:p[1]-h[1],C,b=x.target,T=Math.abs(m)>Math.abs(k)?"h":"v";if("touches"in x&&T==="h"&&b.type==="range")return!1;var S=xp(T,b);if(!S)return!0;if(S?C=T:(C=T==="v"?"h":"v",S=xp(T,b)),!S)return!1;if(!r.current&&"changedTouches"in x&&(m||k)&&(r.current=C),!C)return!0;var D=r.current||C;return qE(D,E,x,D==="h"?m:k)},[]),l=v.useCallback(function(x){var E=x;if(!(!Fn.length||Fn[Fn.length-1]!==o)){var h="deltaY"in E?wp(E):mo(E),p=t.current.filter(function(C){return C.name===E.type&&(C.target===E.target||E.target===C.shadowParent)&&JE(C.delta,h)})[0];if(p&&p.should){E.cancelable&&E.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(kp).filter(Boolean).filter(function(C){return C.contains(E.target)}),k=m.length>0?a(E,m[0]):!s.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),c=v.useCallback(function(x,E,h,p){var m={name:x,delta:E,target:h,should:p,shadowParent:rT(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(k){return k!==m})},1)},[]),u=v.useCallback(function(x){n.current=mo(x),r.current=void 0},[]),d=v.useCallback(function(x){c(x.type,wp(x),x.target,a(x,e.lockRef.current))},[]),f=v.useCallback(function(x){c(x.type,mo(x),x.target,a(x,e.lockRef.current))},[]);v.useEffect(function(){return Fn.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,In),document.addEventListener("touchmove",l,In),document.addEventListener("touchstart",u,In),function(){Fn=Fn.filter(function(x){return x!==o}),document.removeEventListener("wheel",l,In),document.removeEventListener("touchmove",l,In),document.removeEventListener("touchstart",u,In)}},[]);var y=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(o,{styles:eT(i)}):null,y?v.createElement(HE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iT=jE(Kg,nT);var Zg=v.forwardRef(function(e,t){return v.createElement(Ls,yt({},e,{ref:t,sideCar:iT}))});Zg.classNames=Ls.classNames;var oT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,go=new WeakMap,yo={},Da=0,qg=function(e){return e&&(e.host||qg(e.parentNode))},sT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},aT=function(e,t,n,r){var i=sT(t,Array.isArray(e)?e:[e]);yo[n]||(yo[n]=new WeakMap);var o=yo[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var y=f.getAttribute(r),w=y!==null&&y!=="false",x=(zn.get(f)||0)+1,E=(o.get(f)||0)+1;zn.set(f,x),o.set(f,E),s.push(f),x===1&&w&&go.set(f,!0),E===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",f,h)}})};return u(t),a.clear(),Da++,function(){s.forEach(function(d){var f=zn.get(d)-1,y=o.get(d)-1;zn.set(d,f),o.set(d,y),f||(go.has(d)||d.removeAttribute(r),go.delete(d)),y||d.removeAttribute(n)}),Da--,Da||(zn=new WeakMap,zn=new WeakMap,go=new WeakMap,yo={})}},lT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=oT(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),aT(r,i,n,"aria-hidden")):function(){return null}},_s="Dialog",[Jg,AT]=G2(_s),[uT,pt]=Jg(_s),ey=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[c,u]=q2({prop:r,defaultProp:i??!1,onChange:o,caller:_s});return g.jsx(uT,{scope:t,triggerRef:a,contentRef:l,contentId:Pa(),titleId:Pa(),descriptionId:Pa(),open:c,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};ey.displayName=_s;var ty="DialogTrigger",ny=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pt(ty,n),o=Ln(t,i.triggerRef);return g.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Dc(i.open),...r,ref:o,onClick:nn(e.onClick,i.onOpenToggle)})});ny.displayName=ty;var Ac="DialogPortal",[cT,ry]=Jg(Ac,{forceMount:void 0}),iy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=pt(Ac,t);return g.jsx(cT,{scope:t,forceMount:n,children:v.Children.map(r,s=>g.jsx(Ds,{present:n||o.open,children:g.jsx(Ug,{asChild:!0,container:i,children:s})}))})};iy.displayName=Ac;var fs="DialogOverlay",oy=v.forwardRef((e,t)=>{const n=ry(fs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=pt(fs,e.__scopeDialog);return o.modal?g.jsx(Ds,{present:r||o.open,children:g.jsx(fT,{...i,ref:t})}):null});oy.displayName=fs;var dT=Xu("DialogOverlay.RemoveScroll"),fT=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pt(fs,n);return g.jsx(Zg,{as:dT,allowPinchZoom:!0,shards:[i.contentRef],children:g.jsx(Ot.div,{"data-state":Dc(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),An="DialogContent",sy=v.forwardRef((e,t)=>{const n=ry(An,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=pt(An,e.__scopeDialog);return g.jsx(Ds,{present:r||o.open,children:o.modal?g.jsx(pT,{...i,ref:t}):g.jsx(hT,{...i,ref:t})})});sy.displayName=An;var pT=v.forwardRef((e,t)=>{const n=pt(An,e.__scopeDialog),r=v.useRef(null),i=Ln(t,n.contentRef,r);return v.useEffect(()=>{const o=r.current;if(o)return lT(o)},[]),g.jsx(ay,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:nn(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:nn(e.onFocusOutside,o=>o.preventDefault())})}),hT=v.forwardRef((e,t)=>{const n=pt(An,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return g.jsx(ay,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;n.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),ay=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=pt(An,n),l=v.useRef(null),c=Ln(t,l);return SE(),g.jsxs(g.Fragment,{children:[g.jsx(Bg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:g.jsx(Fg,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Dc(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(mT,{titleId:a.titleId}),g.jsx(yT,{contentRef:l,descriptionId:a.descriptionId})]})]})}),jc="DialogTitle",ly=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pt(jc,n);return g.jsx(Ot.h2,{id:i.titleId,...r,ref:t})});ly.displayName=jc;var uy="DialogDescription",cy=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pt(uy,n);return g.jsx(Ot.p,{id:i.descriptionId,...r,ref:t})});cy.displayName=uy;var dy="DialogClose",fy=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=pt(dy,n);return g.jsx(Ot.button,{type:"button",...r,ref:t,onClick:nn(e.onClick,()=>i.onOpenChange(!1))})});fy.displayName=dy;function Dc(e){return e?"open":"closed"}var py="DialogTitleWarning",[jT,hy]=K2(py,{contentName:An,titleName:jc,docsSlug:"dialog"}),mT=({titleId:e})=>{const t=hy(py),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gT="DialogDescriptionWarning",yT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hy(gT).contentName}}.`;return v.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vT=ey,xT=ny,wT=iy,kT=oy,ST=sy,CT=ly,ET=cy,TT=fy;function Sp({...e}){return g.jsx(vT,{"data-slot":"sheet",...e})}function Cp({...e}){return g.jsx(xT,{"data-slot":"sheet-trigger",...e})}function PT({...e}){return g.jsx(wT,{"data-slot":"sheet-portal",...e})}function bT({className:e,...t}){return g.jsx(kT,{"data-slot":"sheet-overlay",className:_n("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ep({className:e,children:t,side:n="right",...r}){return g.jsxs(PT,{children:[g.jsx(bT,{}),g.jsxs(ST,{"data-slot":"sheet-content",className:_n("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,g.jsxs(TT,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[g.jsx(Hm,{className:"size-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Tp({className:e,...t}){return g.jsx(CT,{"data-slot":"sheet-title",className:_n("text-foreground font-semibold",e),...t})}function Pp({className:e,...t}){return g.jsx(ET,{"data-slot":"sheet-description",className:_n("text-muted-foreground text-sm",e),...t})}function NT(){const[e,t]=v.useState([]),[n,r]=v.useState(""),[i,o]=v.useState(!1),[s,a]=v.useState(!1),[l,c]=v.useState(!1),[u,d]=v.useState(!1),[f,y]=v.useState(!1),[w,x]=v.useState([]),[E,h]=v.useState(!1),[p,m]=v.useState(null),[k,C]=v.useState(""),[b,T]=v.useState(null),[S,D]=v.useState(!1),[j,Y]=v.useState(!1),we=v.useRef(null);v.useEffect(()=>{t([{id:"1",content:u?"Feel free to explore UnivAi+++ for a richer, more responsive conversation experience. Please note: due to limited computational resources, the AI can provide only one response per session. Make it count!":"Hello! I'm your AI assistant. How can I help you today? Feel free to ask me anything!",isUser:!1,timestamp:new Date,isPlusResponse:u}]),y(!1),x([]),h(!1),m(null),C("")},[u]);const He=()=>{we.current?.scrollIntoView({behavior:"smooth"})};v.useEffect(()=>{He()},[e,i]),v.useEffect(()=>{l?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[l]);const rt=async O=>{if(O.preventDefault(),!n.trim()||u&&f)return;const $={id:Date.now().toString(),content:n,isUser:!0,timestamp:new Date};t(Ke=>[...Ke,$]),r(""),o(!0);try{const Ge=await(await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n,dev_mode:u})})).json(),H={id:(Date.now()+1).toString(),content:Ge.response,isUser:!1,timestamp:new Date,isPlusResponse:u,sources:[]};t(Fi=>[...Fi,H]),x([]),o(!1),T(H.id),h(!0),m(null),C(""),u&&y(!0)}catch{o(!1)}},Ie=async()=>{if(console.log("Feedback submitted:",{messageId:b,feedbackType:p,feedbackComment:k}),!b)return;const O=e.find($=>$.id===b);if(O)try{await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:O.content,response:O.content,feedback:p})}),m(null),C("")}catch{}},ke=()=>{a(!0),setTimeout(()=>{a(!1)},2e3)},B=()=>{c(!l)},P=()=>{d(!u)},L=[{icon:g.jsx(iw,{size:20}),active:!0},{icon:g.jsx(Xx,{size:20}),active:!1},{icon:g.jsx(uw,{size:20}),active:!1},{icon:g.jsx(Wm,{size:20}),active:!1},{icon:g.jsx(pw,{size:20}),active:!1}],_=i||u&&f,U=()=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center mb-6 shadow-lg transition-all duration-300 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 shadow-red-500/30"}`,children:u?g.jsx(Pt,{className:"text-white",size:20}):g.jsx(Jr,{className:"text-white",size:20})}),g.jsx("div",{className:"flex flex-col gap-3",children:L.map((O,$)=>g.jsx(K.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:O.active?void 0:ke,className:` + w-9 h-9 rounded-lg flex items-center justify-center transition-all duration-200 + ${O.active?u?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-lg shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-lg shadow-red-500/30":"bg-white/80 text-red-600 hover:bg-white hover:text-red-700 shadow-sm cursor-pointer dark:bg-gray-800/80 dark:text-red-400 dark:hover:bg-gray-700"} + `,children:O.active?O.icon:g.jsx(tw,{size:18})},$))})]}),X=()=>g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:`rounded-xl p-4 border backdrop-blur-sm shadow-lg transition-all duration-300 min-h-[200px] ${u?"bg-gradient-to-br from-white/90 to-purple-50/90 border-purple-200/50 shadow-purple-100/30 dark:from-gray-800/90 dark:to-purple-900/90 dark:border-purple-600/50 dark:shadow-purple-900/30":"bg-gradient-to-br from-white/90 to-red-50/90 border-red-200/50 shadow-red-100/30 dark:from-gray-800/90 dark:to-gray-700/90 dark:border-gray-600/50 dark:shadow-gray-900/30"}`,children:[g.jsx("div",{className:"flex items-center justify-center mb-3",children:g.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 ${u?"bg-gradient-to-r from-purple-400 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-yellow-400 to-orange-500 shadow-yellow-500/30"}`,children:u?g.jsx(Pt,{className:"text-white",size:24}):g.jsx(Jr,{className:"text-white",size:24})})}),g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"h-6 overflow-hidden flex items-center justify-center mb-1",children:g.jsxs(K.h3,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:`text-sm transition-all duration-300 whitespace-nowrap flex items-center ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:[u?"UnivAi+++":"UnivAi",u&&g.jsx(Pt,{className:"ml-1",size:12})]},u?"plus":"regular")}),g.jsx("div",{className:"h-5 overflow-hidden flex items-center justify-center mb-3",children:g.jsx(K.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:`text-xs text-center transition-all duration-300 ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:u?"Smarter with human-like responses":"Any PUP-Related Queries?"},u?"plus-desc":"regular-desc")}),g.jsx("div",{className:"flex justify-center",children:g.jsx(ut,{size:"sm",onClick:P,className:`text-white border-0 shadow-lg transition-all duration-300 text-xs px-3 py-1 w-40 h-7 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 shadow-purple-500/20":"bg-gradient-to-r from-red-500 to-orange-500 hover:from-red-600 hover:to-orange-600 shadow-red-500/20"}`,children:g.jsx("span",{className:"truncate",children:u?"Switch to UnivAi":"Try the New UnivAi+++"})})})]})]}),g.jsxs("div",{className:`rounded-xl p-3 border backdrop-blur-sm shadow-lg transition-all duration-300 ${u?"bg-gradient-to-br from-white/90 to-pink-50/90 border-pink-200/50 shadow-pink-100/30 dark:from-gray-800/90 dark:to-pink-900/90 dark:border-pink-600/50 dark:shadow-pink-900/30":"bg-gradient-to-br from-white/90 to-orange-50/90 border-orange-200/50 shadow-orange-100/30 dark:from-gray-800/90 dark:to-gray-700/90 dark:border-gray-600/50 dark:shadow-gray-900/30"}`,children:[g.jsx("h4",{className:`mb-2 text-sm transition-all duration-300 ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:"Chat Statistics"}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex justify-between",children:[g.jsx("span",{className:`text-xs transition-all duration-300 ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"Response Time"}),g.jsx("span",{className:`text-xs transition-all duration-300 ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:u?"2.5s":"1.2s"})]}),g.jsxs("div",{className:"flex justify-between",children:[g.jsx("span",{className:`text-xs transition-all duration-300 ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:"Status"}),g.jsx("span",{className:"text-green-600 text-xs",children:u?"Premium":"Online"})]}),g.jsxs("div",{className:"flex justify-between",children:[g.jsx("span",{className:`text-xs transition-all duration-300 ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:u?"Responses Left":"Queries Processed"}),g.jsx("span",{className:`text-xs transition-all duration-300 ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:u?f?"0":"1":"∞"})]})]})]}),g.jsxs("div",{className:`rounded-xl p-3 border backdrop-blur-sm shadow-lg transition-all duration-300 ${u?"bg-gradient-to-br from-white/90 to-amber-50/90 border-amber-200/50 shadow-amber-100/30 dark:from-gray-800/90 dark:to-amber-900/90 dark:border-amber-600/50 dark:shadow-amber-900/30":"bg-gradient-to-br from-white/90 to-yellow-50/90 border-yellow-200/50 shadow-yellow-100/30 dark:from-gray-800/90 dark:to-gray-700/90 dark:border-gray-600/50 dark:shadow-gray-900/30"}`,children:[g.jsx("h4",{className:`mb-2 text-sm transition-all duration-300 ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:"Sources"}),g.jsx("div",{className:"space-y-2 min-h-[40px]",children:w.length===0?g.jsx("div",{className:"flex items-center justify-center py-2",children:g.jsx("p",{className:`text-xs text-center transition-all duration-300 ${u?"text-purple-600/60 dark:text-purple-400/60":"text-red-600/60 dark:text-red-400/60"}`,children:"Sources will appear here after AI responses"})}):w.map((O,$)=>g.jsxs(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:$*.1},className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[g.jsx("div",{className:`transition-all duration-300 flex-shrink-0 ${u?"text-purple-600 dark:text-purple-400":"text-red-600 dark:text-red-400"}`,children:O.icon}),g.jsx("span",{className:`text-xs transition-all duration-300 truncate ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:O.name})]}),O.url&&g.jsx("button",{onClick:()=>window.open(O.url,"_blank"),className:`text-xs px-2 py-1 rounded-full transition-all duration-300 flex-shrink-0 hover:opacity-80 ${u?"bg-gradient-to-r from-purple-100 to-pink-100 text-purple-700 dark:from-purple-900/30 dark:to-pink-900/30 dark:text-purple-400":"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400"}`,children:"View"})]},$))})]})]});return g.jsxs("div",{className:`h-screen flex p-1 md:p-2 transition-all duration-500 ${u?"bg-gradient-to-br from-purple-100 via-pink-50 to-amber-50 dark:from-purple-900 dark:via-indigo-900 dark:to-amber-900":"bg-gradient-to-br from-orange-100 via-red-50 to-yellow-50 dark:from-gray-900 dark:via-gray-800 dark:to-gray-900"}`,children:[g.jsx(jo,{children:s&&g.jsx(K.div,{initial:{opacity:0,y:-50,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:-50,x:"-50%"},className:"fixed top-4 left-1/2 z-50 bg-gradient-to-r from-red-500 to-orange-500 text-white px-6 py-3 rounded-lg shadow-lg shadow-red-500/30",children:g.jsx("p",{className:"text-sm",children:"Coming soon!"})})}),g.jsx(jo,{children:u&&f&&g.jsx(K.div,{initial:{opacity:0,y:-50,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:-50,x:"-50%"},className:"fixed top-16 left-1/2 z-50 bg-gradient-to-r from-purple-500 to-pink-500 text-white px-6 py-3 rounded-lg shadow-lg shadow-purple-500/30",children:g.jsx("p",{className:"text-sm",children:"UnivAi+++ limit reached. Switch to UnivAi to continue."})})}),g.jsx(K.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},onClick:B,className:`fixed top-2 right-2 md:top-3 md:right-3 z-40 w-8 h-8 md:w-10 md:h-10 rounded-full text-white flex items-center justify-center shadow-lg transition-all duration-200 hover:scale-110 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 shadow-purple-500/30 hover:shadow-purple-500/50":"bg-gradient-to-r from-red-500 to-orange-500 shadow-red-500/30 hover:shadow-red-500/50"}`,children:g.jsx(K.div,{initial:{rotate:-180,opacity:0},animate:{rotate:0,opacity:1},transition:{duration:.3},children:l?g.jsx(yw,{size:16,className:"md:w-[18px] md:h-[18px]"}):g.jsx(aw,{size:16,className:"md:w-[18px] md:h-[18px]"})},l?"dark":"light")}),g.jsxs(Sp,{open:S,onOpenChange:D,children:[g.jsx(Cp,{asChild:!0,children:g.jsx(K.button,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:`md:hidden fixed left-0 top-1/2 -translate-y-1/2 z-30 w-8 h-16 rounded-r-lg flex items-center justify-center shadow-lg transition-all duration-200 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 shadow-red-500/30"}`,children:g.jsx(Jx,{className:"text-white",size:20})})}),g.jsxs(Ep,{side:"left",className:`w-20 p-3 transition-all duration-300 ${u?"bg-gradient-to-br from-white/95 to-purple-50/95 border-purple-200/50":"bg-gradient-to-br from-white/95 to-red-50/95 border-red-200/50"}`,children:[g.jsx(Tp,{className:"sr-only",children:"Navigation Menu"}),g.jsx(Pp,{className:"sr-only",children:"Access chat navigation, statistics, search, profile, and settings"}),g.jsx("div",{className:"flex flex-col items-center py-3",children:g.jsx(U,{})})]})]}),g.jsx(K.div,{initial:{x:-20,opacity:0},animate:{x:0,opacity:1},className:"hidden md:flex w-14 flex-col items-center py-3 px-1 mr-2",children:g.jsx(U,{})}),g.jsxs("div",{className:`flex-1 flex flex-col rounded-2xl backdrop-blur-sm border overflow-hidden shadow-xl transition-all duration-300 ${u?"bg-white/95 border-purple-200/50 shadow-purple-100/50 dark:bg-gray-900/95 dark:border-purple-700/50 dark:shadow-purple-900/50":"bg-white/90 border-red-200/50 shadow-red-100/50 dark:bg-gray-900/90 dark:border-gray-700/50 dark:shadow-gray-900/50"}`,children:[g.jsx(K.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},className:`p-3 md:p-4 border-b backdrop-blur-sm transition-all duration-300 flex-shrink-0 ${u?"border-purple-200/50 bg-gradient-to-r from-white/95 to-purple-50/95 dark:from-gray-900/95 dark:to-purple-900/95 dark:border-purple-700/50":"border-red-200/50 bg-gradient-to-r from-white/95 to-red-50/95 dark:from-gray-900/95 dark:to-gray-800/95 dark:border-gray-700/50"}`,children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex items-center gap-2 md:gap-3 min-w-0 flex-1",children:g.jsxs("div",{className:"flex items-center gap-2 md:gap-3 min-w-0 flex-1",children:[g.jsx("div",{className:`w-8 h-8 md:w-10 md:h-10 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 flex-shrink-0 ${u?"bg-gradient-to-r from-purple-400 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-yellow-400 to-orange-500 shadow-yellow-500/30"}`,children:u?g.jsx(Pt,{className:"text-white",size:16}):g.jsx(Jr,{className:"text-white",size:16})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:"overflow-hidden",children:g.jsxs(K.h1,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:`transition-all duration-300 truncate whitespace-nowrap ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:[u?"UnivAi+++":"UnivAi",u&&g.jsx(Pt,{className:"inline ml-1 md:ml-2",size:12})]},u?"plus-header":"regular-header")}),g.jsx("p",{className:`text-xs md:text-sm transition-all duration-300 truncate ${u?"text-purple-700/80 dark:text-purple-300/80":"text-red-700/80 dark:text-red-300/80"}`,children:u?"Premium AI Experience":"Always ready to help"})]})]})}),g.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:g.jsx("div",{className:`w-5 h-5 md:w-6 md:h-6 rounded-full shadow-lg transition-all duration-300 ${u?"bg-gradient-to-r from-purple-400 to-pink-500 shadow-purple-500/20":"bg-gradient-to-r from-yellow-400 to-orange-500 shadow-yellow-500/20"}`})})]})}),g.jsxs("div",{className:"flex-1 flex min-h-0",children:[g.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[g.jsx("div",{className:`flex-1 overflow-y-auto p-2 md:p-4 transition-all duration-300 ${u?"bg-gradient-to-br from-white to-purple-50/30 dark:from-gray-900 dark:to-purple-900/30":"bg-gradient-to-br from-white to-red-50/30 dark:from-gray-900 dark:to-gray-800/30"}`,children:g.jsxs("div",{className:"max-w-4xl mx-auto space-y-3 md:space-y-4",children:[e.map(O=>g.jsx(W2,{content:O.content,isUser:O.isUser,timestamp:O.timestamp,isPlusResponse:O.isPlusResponse,isUnivAiPlusMode:u},O.id)),i&&g.jsx(H2,{isUnivAiPlusMode:u}),g.jsx("div",{ref:we})]})}),g.jsx(jo,{children:E&&e.length>1&&g.jsx(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:`px-2 md:px-4 pb-2 md:pb-3 transition-all duration-300 flex-shrink-0 ${u?"bg-gradient-to-r from-white to-purple-50/30 dark:from-gray-900 dark:to-purple-900/30":"bg-gradient-to-r from-white to-red-50/30 dark:from-gray-900 dark:to-gray-800/30"}`,children:g.jsxs("div",{className:`max-w-4xl mx-auto rounded-xl p-3 md:p-4 border backdrop-blur-sm shadow-lg transition-all duration-300 ${u?"bg-gradient-to-br from-white/95 to-purple-50/95 border-purple-200/50 shadow-purple-100/30 dark:from-gray-800/95 dark:to-purple-900/95 dark:border-purple-600/50":"bg-gradient-to-br from-white/95 to-red-50/95 border-red-200/50 shadow-red-100/30 dark:from-gray-800/95 dark:to-gray-700/95 dark:border-gray-600/50"}`,children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(Yu,{className:`${u?"text-purple-600 dark:text-purple-400":"text-red-600 dark:text-red-400"}`,size:18}),g.jsx("h4",{className:`text-sm transition-all duration-300 ${u?"text-purple-900 dark:text-purple-100":"text-red-900 dark:text-red-100"}`,children:"How was this response?"})]}),g.jsxs("div",{className:"flex gap-2 mb-3",children:[g.jsxs(ut,{variant:p==="positive"?"default":"outline",size:"sm",onClick:()=>m("positive"),className:`flex items-center gap-1.5 transition-all duration-300 text-xs ${p==="positive"?u?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-red-500/30":u?"border-purple-200 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300":"border-red-200 text-red-700 hover:bg-red-50 dark:border-red-600 dark:text-red-300"}`,children:[g.jsx(Pl,{size:14}),"Helpful"]}),g.jsxs(ut,{variant:p==="negative"?"default":"outline",size:"sm",onClick:()=>m("negative"),className:`flex items-center gap-1.5 transition-all duration-300 text-xs ${p==="negative"?u?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 text-white shadow-red-500/30":u?"border-purple-200 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300":"border-red-200 text-red-700 hover:bg-red-50 dark:border-red-600 dark:text-red-300"}`,children:[g.jsx(Um,{size:14}),"Not helpful"]})]}),g.jsx(Og,{value:k,onChange:O=>C(O.target.value),placeholder:"Additional comments (optional)...",className:`mb-2 text-sm transition-all duration-300 ${u?"border-purple-200 focus:border-purple-400 dark:border-purple-600":"border-red-200 focus:border-red-400 dark:border-red-600"}`,rows:2}),g.jsx("div",{className:"flex justify-end",children:g.jsx(ut,{size:"sm",onClick:Ie,disabled:!p,className:`text-xs transition-all duration-300 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 hover:from-red-600 hover:to-orange-600 text-white shadow-red-500/30"}`,children:"Submit Feedback"})})]})})}),g.jsx(K.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},className:`p-2 md:p-4 border-t backdrop-blur-sm transition-all duration-300 flex-shrink-0 ${u?"border-purple-200/50 bg-gradient-to-r from-white/95 to-purple-50/95 dark:from-gray-900/95 dark:to-purple-900/95 dark:border-purple-700/50":"border-red-200/50 bg-gradient-to-r from-white/95 to-red-50/95 dark:from-gray-900/95 dark:to-gray-800/95 dark:border-gray-700/50"}`,children:g.jsx("div",{className:"max-w-4xl mx-auto",children:g.jsxs("form",{onSubmit:rt,className:"flex gap-2 md:gap-3",children:[g.jsx("div",{className:"flex-1 relative",children:g.jsx(c1,{value:n,onChange:O=>r(O.target.value),placeholder:u&&f?"Switch to UnivAi to continue...":"Type your message...",className:`backdrop-blur-sm transition-all duration-200 shadow-sm text-sm ${u?"bg-white/90 border-purple-200 text-purple-900 placeholder:text-purple-500/60 focus:bg-white focus:border-purple-400 dark:bg-gray-800/90 dark:border-purple-600 dark:text-purple-100 dark:placeholder:text-purple-400/60 dark:focus:bg-gray-800":"bg-white/90 border-red-200 text-red-900 placeholder:text-red-500/60 focus:bg-white focus:border-red-400 dark:bg-gray-800/90 dark:border-gray-600 dark:text-red-100 dark:placeholder:text-red-400/60 dark:focus:bg-gray-800"}`,disabled:_})}),g.jsx(ut,{type:"submit",disabled:!n.trim()||_,className:`text-white border-0 shadow-lg transition-all duration-300 px-3 md:px-4 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 hover:from-red-600 hover:to-orange-600 shadow-red-500/30"}`,children:g.jsx(dw,{size:16,className:"md:w-[18px] md:h-[18px]"})})]})})})]}),g.jsx(K.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},className:`hidden md:flex w-72 flex-shrink-0 border-l p-4 space-y-4 transition-all duration-300 overflow-y-auto flex-col ${u?"border-purple-200/50 bg-gradient-to-br from-white/50 to-purple-50/50 dark:from-gray-900/50 dark:to-purple-900/50 dark:border-purple-700/50":"border-red-200/50 bg-gradient-to-br from-white/50 to-yellow-50/50 dark:from-gray-900/50 dark:to-gray-800/50 dark:border-gray-700/50"}`,children:g.jsx(X,{})})]})]}),g.jsxs(Sp,{open:j,onOpenChange:Y,children:[g.jsx(Cp,{asChild:!0,children:g.jsx(K.button,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:`md:hidden fixed right-0 top-1/2 -translate-y-1/2 z-30 w-8 h-16 rounded-l-lg flex items-center justify-center shadow-lg transition-all duration-200 ${u?"bg-gradient-to-r from-purple-500 to-pink-500 shadow-purple-500/30":"bg-gradient-to-r from-red-500 to-orange-500 shadow-red-500/30"}`,children:g.jsx(Zx,{className:"text-white",size:20})})}),g.jsxs(Ep,{side:"right",className:`w-80 p-4 transition-all duration-300 overflow-y-auto ${u?"bg-gradient-to-br from-white/95 to-purple-50/95 border-purple-200/50":"bg-gradient-to-br from-white/95 to-red-50/95 border-red-200/50"}`,children:[g.jsx(Tp,{className:"sr-only",children:"Chat Information Panel"}),g.jsx(Pp,{className:"sr-only",children:"View AI status, chat statistics, and source references"}),g.jsx("div",{className:"space-y-4",children:g.jsx(X,{})})]})]})]})}function MT(){return g.jsx(NT,{})}Bm(document.getElementById("root")).render(g.jsx(MT,{}));