From b7d200edb74e6cd9baaea4c8f8d8c7c2939a85f9 Mon Sep 17 00:00:00 2001 From: kilee1230 Date: Fri, 27 Dec 2024 06:43:07 +0000 Subject: [PATCH] deploy: 056213e200b7f76a38a371883260a22af989fdee --- assets/index-Bznj0kbz.js | 350 --------------------------------------- assets/index-DPbQ1ZlT.js | 350 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 351 insertions(+), 351 deletions(-) delete mode 100644 assets/index-Bznj0kbz.js create mode 100644 assets/index-DPbQ1ZlT.js diff --git a/assets/index-Bznj0kbz.js b/assets/index-Bznj0kbz.js deleted file mode 100644 index b0fef56..0000000 --- a/assets/index-Bznj0kbz.js +++ /dev/null @@ -1,350 +0,0 @@ -function Lw(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wy={exports:{}},Dl={},ky={exports:{}},U={};/** - * @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 ks=Symbol.for("react.element"),Fw=Symbol.for("react.portal"),Bw=Symbol.for("react.fragment"),Vw=Symbol.for("react.strict_mode"),Ow=Symbol.for("react.profiler"),Nw=Symbol.for("react.provider"),Ww=Symbol.for("react.context"),Uw=Symbol.for("react.forward_ref"),Hw=Symbol.for("react.suspense"),Kw=Symbol.for("react.memo"),Gw=Symbol.for("react.lazy"),Kp=Symbol.iterator;function Yw(e){return e===null||typeof e!="object"?null:(e=Kp&&e[Kp]||e["@@iterator"],typeof e=="function"?e:null)}var Cy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ty=Object.assign,_y={};function Ho(e,t,n){this.props=e,this.context=t,this.refs=_y,this.updater=n||Cy}Ho.prototype.isReactComponent={};Ho.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")};Ho.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Py(){}Py.prototype=Ho.prototype;function Sf(e,t,n){this.props=e,this.context=t,this.refs=_y,this.updater=n||Cy}var bf=Sf.prototype=new Py;bf.constructor=Sf;Ty(bf,Ho.prototype);bf.isPureReactComponent=!0;var Gp=Array.isArray,Ey=Object.prototype.hasOwnProperty,xf={current:null},$y={key:!0,ref:!0,__self:!0,__source:!0};function Ay(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ey.call(t,r)&&!$y.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,_e=D[pe];if(0>>1;peo(Qo,N))dt<_e&&0>o(fr,Qo)?(D[pe]=fr,D[dt]=N,pe=dt):(D[pe]=Qo,D[Yt]=N,pe=Yt);else if(dt<_e&&0>o(fr,N))D[pe]=fr,D[dt]=N,pe=dt;else break e}}return V}function o(D,V){var N=D.sortIndex-V.sortIndex;return N!==0?N:D.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(D){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=D)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function b(D){if(S=!1,p(D),!v)if(n(l)!==null)v=!0,Wr(x);else{var V=n(u);V!==null&&we(b,V.startTime-D)}}function x(D,V){v=!1,S&&(S=!1,m($),$=-1),y=!0;var N=f;try{for(p(V),d=n(l);d!==null&&(!(d.expirationTime>V)||D&&!O());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var _e=pe(d.expirationTime<=V);V=e.unstable_now(),typeof _e=="function"?d.callback=_e:d===n(l)&&r(l),p(V)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var Yt=n(u);Yt!==null&&we(b,Yt.startTime-V),ee=!1}return ee}finally{d=null,f=N,y=!1}}var T=!1,C=null,$=-1,R=5,M=-1;function O(){return!(e.unstable_now()-MD||125pe?(D.sortIndex=N,t(u,D),n(l)===null&&D===n(u)&&(S?(m($),$=-1):S=!0,we(b,N-pe))):(D.sortIndex=_e,t(l,D),v||y||(v=!0,Wr(x))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var V=f;return function(){var N=f;f=V;try{return D.apply(this,arguments)}finally{f=N}}}})(jy);Iy.exports=jy;var ik=Iy.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 sk=_,St=ik;function z(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"),Nc=Object.prototype.hasOwnProperty,ak=/^[: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]*$/,qp={},Qp={};function lk(e){return Nc.call(Qp,e)?!0:Nc.call(qp,e)?!1:ak.test(e)?Qp[e]=!0:(qp[e]=!0,!1)}function uk(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 ck(e,t,n,r){if(t===null||typeof t>"u"||uk(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 rt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new rt(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){Ne[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var kf=/[\-:]([a-z])/g;function Cf(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(kf,Cf);Ne[t]=new rt(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(kf,Cf);Ne[t]=new rt(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(kf,Cf);Ne[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function dk(e){switch(e.tag){case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 2:case 15:return e=ju(e.type,!1),e;case 11:return e=ju(e.type.render,!1),e;case 1:return e=ju(e.type,!0),e;default:return""}}function Kc(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 qr:return"Fragment";case Xr:return"Portal";case Wc:return"Profiler";case _f:return"StrictMode";case Uc:return"Suspense";case Hc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case By:return(e.displayName||"Context")+".Consumer";case Fy:return(e._context.displayName||"Context")+".Provider";case Pf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ef:return t=e.displayName||null,t!==null?t:Kc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Kc(e(t))}catch{}}return null}function fk(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 Kc(t);case 8:return t===_f?"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 or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hk(e){var t=Oy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 Gs(e){e._valueTracker||(e._valueTracker=hk(e))}function Ny(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qa(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 Gc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=or(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 Wy(e,t){t=t.checked,t!=null&&Tf(e,"checked",t,!1)}function Yc(e,t){Wy(e,t);var n=or(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")?Xc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xc(e,t.type,or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function em(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 Xc(e,t,n){(t!=="number"||qa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},pk=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){pk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Gy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Yy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mk=ve({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 Zc(e,t){if(t){if(mk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Jc(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 ed=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var td=null,bo=null,xo=null;function rm(e){if(e=_s(e)){if(typeof td!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Bl(t),td(e.stateNode,e.type,t))}}function Xy(e){bo?xo?xo.push(e):xo=[e]:bo=e}function qy(){if(bo){var e=bo,t=xo;if(xo=bo=null,rm(e),t)for(e=0;e>>=0,e===0?32:31-(_k(e)/Pk|0)|0}var Xs=64,qs=4194304;function vi(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 el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=vi(a):(i&=s,i!==0&&(r=vi(i)))}else s=n&~o,s!==0?r=vi(s):i!==0&&(r=vi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function Rk(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=Ri),fm=" ",hm=!1;function gv(e,t){switch(e){case"keyup":return iC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qr=!1;function aC(e,t){switch(e){case"compositionend":return yv(t);case"keypress":return t.which!==32?null:(hm=!0,fm);case"textInput":return e=t.data,e===fm&&hm?null:e;default:return null}}function lC(e,t){if(Qr)return e==="compositionend"||!Lf&&gv(e,t)?(e=pv(),Ta=Df=Yn=null,Qr=!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=ym(n)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(){for(var e=window,t=qa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qa(e.document)}return t}function Ff(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 yC(e){var t=wv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xv(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=vm(n,i);var s=vm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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,Zr=null,ad=null,Mi=null,ld=!1;function Sm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ld||Zr==null||Zr!==qa(r)||(r=Zr,"selectionStart"in r&&Ff(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}),Mi&&ts(Mi,r)||(Mi=r,r=rl(ad,"onSelect"),0to||(e.current=pd[to],pd[to]=null,to--)}function oe(e,t){to++,pd[to]=e.current,e.current=t}var ir={},Xe=ur(ir),at=ur(!1),Mr=ir;function zo(e,t){var n=e.type.contextTypes;if(!n)return ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function il(){le(at),le(Xe)}function _m(e,t,n){if(Xe.current!==ir)throw Error(z(168));oe(Xe,t),oe(at,n)}function Rv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,fk(e)||"Unknown",o));return ve({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,Mr=Xe.current,oe(Xe,e),oe(at,at.current),!0}function Pm(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Rv(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,le(at),le(Xe),oe(Xe,e)):le(at),oe(at,n)}var gn=null,Vl=!1,qu=!1;function zv(e){gn===null?gn=[e]:gn.push(e)}function $C(e){Vl=!0,zv(e)}function cr(){if(!qu&&gn!==null){qu=!0;var e=0,t=te;try{var n=gn;for(te=1;e>=s,o-=s,bn=1<<32-Ht(t)+o|n<$?(R=C,C=null):R=C.sibling;var M=f(m,C,p[$],b);if(M===null){C===null&&(C=R);break}e&&C&&M.alternate===null&&t(m,C),h=i(M,h,$),T===null?x=M:T.sibling=M,T=M,C=R}if($===p.length)return n(m,C),he&&yr(m,$),x;if(C===null){for(;$$?(R=C,C=null):R=C.sibling;var O=f(m,C,M.value,b);if(O===null){C===null&&(C=R);break}e&&C&&O.alternate===null&&t(m,C),h=i(O,h,$),T===null?x=O:T.sibling=O,T=O,C=R}if(M.done)return n(m,C),he&&yr(m,$),x;if(C===null){for(;!M.done;$++,M=p.next())M=d(m,M.value,b),M!==null&&(h=i(M,h,$),T===null?x=M:T.sibling=M,T=M);return he&&yr(m,$),x}for(C=r(m,C);!M.done;$++,M=p.next())M=y(C,m,$,M.value,b),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?$:M.key),h=i(M,h,$),T===null?x=M:T.sibling=M,T=M);return e&&C.forEach(function(Se){return t(m,Se)}),he&&yr(m,$),x}function P(m,h,p,b){if(typeof p=="object"&&p!==null&&p.type===qr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ks:e:{for(var x=p.key,T=h;T!==null;){if(T.key===x){if(x=p.type,x===qr){if(T.tag===7){n(m,T.sibling),h=o(T,p.props.children),h.return=m,m=h;break e}}else if(T.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nn&&Am(x)===T.type){n(m,T.sibling),h=o(T,p.props),h.ref=ai(m,T,p),h.return=m,m=h;break e}n(m,T);break}else t(m,T);T=T.sibling}p.type===qr?(h=Er(p.props.children,m.mode,b,p.key),h.return=m,m=h):(b=Ma(p.type,p.key,p.props,null,m.mode,b),b.ref=ai(m,h,p),b.return=m,m=b)}return s(m);case Xr:e:{for(T=p.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(m,h.sibling),h=o(h,p.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=oc(p,m.mode,b),h.return=m,m=h}return s(m);case Nn:return T=p._init,P(m,h,T(p._payload),b)}if(yi(p))return v(m,h,p,b);if(ni(p))return S(m,h,p,b);ra(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,p),h.return=m,m=h):(n(m,h),h=rc(p,m.mode,b),h.return=m,m=h),s(m)):n(m,h)}return P}var Do=jv(!0),Lv=jv(!1),ul=ur(null),cl=null,oo=null,Nf=null;function Wf(){Nf=oo=cl=null}function Uf(e){var t=ul.current;le(ul),e._currentValue=t}function yd(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 ko(e,t){cl=e,Nf=oo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(Nf!==e)if(e={context:e,memoizedValue:t,next:null},oo===null){if(cl===null)throw Error(z(308));oo=e,cl.dependencies={lanes:0,firstContext:e}}else oo=oo.next=e;return t}var kr=null;function Hf(e){kr===null?kr=[e]:kr.push(e)}function Fv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Hf(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(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 Wn=!1;function Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bv(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 kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return o=r.interleaved,o===null?(t.next=t,Hf(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function Pa(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,Rf(e,n)}}function Rm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 dl(e,t,n,r){var o=e.updateQueue;Wn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(f=t,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=ve({},d,f);break e;case 2:Wn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);jr|=s,e.lanes=s,e.memoizedState=d}}function zm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zu.transition;Zu.transition={};try{e(!1),t()}finally{te=n,Zu.transition=r}}function n1(){return jt().memoizedState}function MC(e,t,n){var r=nr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r1(e))o1(t,n);else if(n=Fv(e,t,n,r),n!==null){var o=et();Kt(n,e,r,o),i1(n,t,r)}}function DC(e,t,n){var r=nr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r1(e))o1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Gt(a,s)){var l=t.interleaved;l===null?(o.next=o,Hf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Fv(e,t,o,r),n!==null&&(o=et(),Kt(n,e,r,o),i1(n,t,r))}}function r1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function o1(e,t){Di=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rf(e,n)}}var pl={readContext:It,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},IC={readContext:It,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Dm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$a(4194308,4,Qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $a(4194308,4,e,t)},useInsertionEffect:function(e,t){return $a(4,2,e,t)},useMemo:function(e,t){var n=Zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zt();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=MC.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:Mm,useDebugValue:eh,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Mm(!1),t=e[0];return e=zC.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=Zt();if(he){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Ie===null)throw Error(z(349));Ir&30||Wv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dm(Hv.bind(null,r,i,e),[e]),r.flags|=2048,us(9,Uv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zt(),t=Ie.identifierPrefix;if(he){var n=xn,r=bn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,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[rn]=t,e[os]=r,m1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Jc(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oLo&&(t.flags|=128,r=!0,li(i,!1),t.lanes=4194304)}else{if(!r)if(e=fl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Ue(t),null}else 2*Ce()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,li(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ce(),t.sibling=null,n=me.current,oe(me,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return sh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function WC(e,t){switch(Vf(t),t.tag){case 1:return lt(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),le(at),le(Xe),Xf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yf(t),null;case 13:if(le(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(me),null;case 4:return Io(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var ia=!1,Ge=!1,UC=typeof WeakSet=="function"?WeakSet:Set,I=null;function io(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function _d(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Hm=!1;function HC(e,t){if(ud=tl,e=wv(),Ff(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||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&&++u===o&&(a=s),f===i&&++c===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(cd={focusedElem:e,selectionRange:n},tl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,P=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ot(t.type,S),P);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(b){xe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Hm,Hm=!1,v}function Ii(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&_d(t,n,i)}o=o.next}while(o!==r)}}function Wl(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 Pd(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 v1(e){var t=e.alternate;t!==null&&(e.alternate=null,v1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[os],delete t[hd],delete t[PC],delete t[EC])),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 S1(e){return e.tag===5||e.tag===3||e.tag===4}function Km(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S1(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 Ed(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=ol));else if(r!==4&&(e=e.child,e!==null))for(Ed(e,t,n),e=e.sibling;e!==null;)Ed(e,t,n),e=e.sibling}function $d(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($d(e,t,n),e=e.sibling;e!==null;)$d(e,t,n),e=e.sibling}var Fe=null,Nt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)b1(e,t,n),n=n.sibling}function b1(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Ge||io(n,t);case 6:var r=Fe,o=Nt;Fe=null,Ln(e,t,n),Fe=r,Nt=o,Fe!==null&&(Nt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Nt?(e=Fe,n=n.stateNode,e.nodeType===8?Xu(e.parentNode,n):e.nodeType===1&&Xu(e,n),Ji(e)):Xu(Fe,n.stateNode));break;case 4:r=Fe,o=Nt,Fe=n.stateNode.containerInfo,Nt=!0,Ln(e,t,n),Fe=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&_d(n,t,s),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!Ge&&(io(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Ln(e,t,n),Ge=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UC),t.forEach(function(r){var o=e2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,yl=0,G&6)throw Error(z(331));var o=G;for(G|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lCe()-oh?Pr(e,0):rh|=n),ut(e,t)}function E1(e,t){t===0&&(e.mode&1?(t=qs,qs<<=1,!(qs&130023424)&&(qs=4194304)):t=1);var n=et();e=$n(e,t),e!==null&&(Cs(e,t,n),ut(e,n))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E1(e,n)}function e2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),E1(e,n)}var $1;$1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,OC(e,t,n);st=!!(e.flags&131072)}else st=!1,he&&t.flags&1048576&&Mv(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Aa(e,t),e=t.pendingProps;var o=zo(t,Xe.current);ko(t,n),o=Qf(null,t,r,e,o,n);var i=Zf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(i=!0,sl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Kf(t),o.updater=Nl,t.stateNode=o,o._reactInternals=t,Sd(t,r,e,n),t=wd(null,t,r,!0,i,n)):(t.tag=0,he&&i&&Bf(t),Ze(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Aa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=n2(r),e=Ot(r,e),o){case 0:t=xd(null,t,r,e,n);break e;case 1:t=Nm(null,t,r,e,n);break e;case 11:t=Vm(null,t,r,e,n);break e;case 14:t=Om(null,t,r,Ot(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),xd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Nm(e,t,r,o,n);case 3:e:{if(f1(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bv(e,t),dl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=jo(Error(z(423)),t),t=Wm(e,t,r,n,o);break e}else if(r!==o){o=jo(Error(z(424)),t),t=Wm(e,t,r,n,o);break e}else for(pt=Jn(t.stateNode.containerInfo.firstChild),mt=t,he=!0,Wt=null,n=Lv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mo(),r===o){t=An(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return Vv(t),e===null&&gd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,dd(r,o)?s=null:i!==null&&dd(r,i)&&(t.flags|=32),d1(e,t),Ze(e,t,s,n),t.child;case 6:return e===null&&gd(t),null;case 13:return h1(e,t,n);case 4:return Gf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Vm(e,t,r,o,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,oe(ul,r._currentValue),r._currentValue=s,i!==null)if(Gt(i.value,s)){if(i.children===o.children&&!at.current){t=An(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=kn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),yd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),yd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ze(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=It(o),r=r(o),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),Om(e,t,r,o,n);case 15:return u1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Aa(e,t),t.tag=1,lt(r)?(e=!0,sl(t)):e=!1,ko(t,n),s1(t,r,o),Sd(t,r,o,n),wd(null,t,r,!0,e,n);case 19:return p1(e,t,n);case 22:return c1(e,t,n)}throw Error(z(156,t.tag))};function A1(e,t){return rv(e,t)}function t2(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 Rt(e,t,n,r){return new t2(e,t,n,r)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n2(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pf)return 11;if(e===Ef)return 14}return 2}function rr(e,t){var n=e.alternate;return n===null?(n=Rt(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 Ma(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case qr:return Er(n.children,o,i,t);case _f:s=8,o|=8;break;case Wc:return e=Rt(12,n,t,o|2),e.elementType=Wc,e.lanes=i,e;case Uc:return e=Rt(13,n,t,o),e.elementType=Uc,e.lanes=i,e;case Hc:return e=Rt(19,n,t,o),e.elementType=Hc,e.lanes=i,e;case Vy:return Hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fy:s=10;break e;case By:s=9;break e;case Pf:s=11;break e;case Ef:s=14;break e;case Nn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function rc(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function oc(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2(e,t,n,r,o){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=Fu(0),this.expirationTimes=Fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,o,i,s,a,l){return e=new r2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kf(i),e}function o2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D1)}catch(e){console.error(e)}}D1(),Dy.exports=xt;var hh=Dy.exports,I1,tg=hh;I1=tg.createRoot,tg.hydrateRoot;const At={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let u2=0;function ql(e,t){const n=`atom${++u2}`,r={toString(){return(At?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=c2,r.write=d2),t&&(r.write=t),r}function c2(e){return e(this)}function d2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const ng=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,ic=e=>"init"in e,sc=e=>!!e.write,bl=new WeakMap,Dd=e=>{var t;return Id(e)&&!((t=bl.get(e))!=null&&t[1])},f2=(e,t)=>{const n=bl.get(e);if(n)n[1]=!0,n[0].forEach(r=>r(t));else if((At?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},h2=e=>{if(bl.has(e))return;const t=[new Set,!1];bl.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},Id=e=>typeof(e==null?void 0:e.then)=="function",rg=e=>"v"in e||"e"in e,la=e=>{if("e"in e)throw e.e;if((At?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},j1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},og=(e,t,n,r,o)=>{var i;if((At?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n),Dd(n.v)&&j1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&p2(e,r,t)},Gr=()=>[new Map,new Map,new Set],ac=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},p2=(e,t,n)=>{const r=e[0].get(t);r&&r.add(n)},m2=(e,t)=>e[0].get(t),ig=(e,t)=>{e[2].add(t)},Fn=e=>{let t,n=!1;const r=o=>{try{o()}catch(i){n||(t=i,n=!0)}};for(;e[1].size||e[2].size;){e[0].clear();const o=new Set(e[1].values());e[1].clear();const i=new Set(e[2]);e[2].clear(),o.forEach(s=>{var a;return(a=s.m)==null?void 0:a.l.forEach(r)}),i.forEach(r)}if(n)throw t},L1=(...[e,t,n,r])=>{let o;(At?"production":void 0)!=="production"&&(o=new Set);const i=(p,b,x)=>{const T="v"in b,C=b.v,$=Dd(b.v)?b.v:null;if(Id(x)){h2(x);for(const R of b.d.keys())j1(p,x,e(R));b.v=x,delete b.e}else b.v=x,delete b.e;(!T||!Object.is(C,b.v))&&(++b.n,$&&f2($,x))},s=(p,b,x)=>{var T;const C=e(b);if(rg(C)&&(C.m&&!(x!=null&&x.has(b))||Array.from(C.d).every(([W,$e])=>s(p,W,x).n===$e)))return C;C.d.clear();let $=!0;const R=W=>{if(ng(b,W)){const Qe=e(W);if(!rg(Qe))if(ic(W))i(W,Qe,W.init);else throw new Error("no atom init");return la(Qe)}const $e=s(p,W,x);try{return la($e)}finally{if($)og(p,b,C,W,$e);else{const Qe=Gr();og(Qe,b,C,W,$e),y(Qe,b,C),Fn(Qe)}}};let M,O;const Se={get signal(){return M||(M=new AbortController),M.signal},get setSelf(){return(At?"production":void 0)!=="production"&&!sc(b)&&console.warn("setSelf function cannot be used with read-only atom"),!O&&sc(b)&&(O=(...W)=>{if((At?"production":void 0)!=="production"&&$&&console.warn("setSelf function cannot be called in sync"),!$)return f(b,...W)}),O}};try{const W=t(b,R,Se);if(i(b,C,W),Id(W)){(T=W.onCancel)==null||T.call(W,()=>M==null?void 0:M.abort());const $e=()=>{if(C.m){const Qe=Gr();y(Qe,b,C),Fn(Qe)}};W.then($e,$e)}return C}catch(W){return delete C.v,C.e=W,++C.n,C}finally{$=!1}},a=p=>la(s(void 0,p)),l=(p,b,x)=>{var T,C;const $=new Map;for(const R of((T=x.m)==null?void 0:T.t)||[])$.set(R,e(R));for(const R of x.p)$.set(R,e(R));return(C=m2(p,b))==null||C.forEach(R=>{$.set(R,e(R))}),$};function u(p,b,x){const T=[],C=new Set,$=new Set,R=[[b,x]];for(;R.length>0;){const[M,O]=R[R.length-1];if($.has(M)){R.pop();continue}if(C.has(M)){T.push([M,O,O.n]),$.add(M),R.pop();continue}C.add(M);for(const[Se,W]of l(p,M,O))M!==Se&&!C.has(Se)&&R.push([Se,W])}return[T,$]}const c=(p,b,x)=>{const[T,C]=u(p,b,x),$=new Set([b]);for(let R=T.length-1;R>=0;--R){const[M,O,Se]=T[R];let W=!1;for(const $e of O.d.keys())if($e!==M&&$.has($e)){W=!0;break}W&&(s(p,M,C),y(p,M,O),Se!==O.n&&(ac(p,M,O),$.add(M))),C.delete(M)}},d=(p,b,...x)=>{let T=!0;const C=R=>la(s(p,R)),$=(R,...M)=>{const O=e(R);try{if(ng(b,R)){if(!ic(R))throw new Error("atom not writable");const Se=O.n,W=M[0];i(R,O,W),y(p,R,O),Se!==O.n&&(ac(p,R,O),c(p,R,O));return}else return d(p,R,...M)}finally{T||Fn(p)}};try{return n(b,C,$,...x)}finally{T=!1}},f=(p,...b)=>{const x=Gr();try{return d(x,p,...b)}finally{Fn(x)}},y=(p,b,x)=>{if(x.m&&!Dd(x.v)){for(const T of x.d.keys())x.m.d.has(T)||(v(p,T,e(T)).t.add(b),x.m.d.add(T));for(const T of x.m.d||[])if(!x.d.has(T)){x.m.d.delete(T);const C=S(p,T,e(T));C==null||C.t.delete(b)}}},v=(p,b,x)=>{if(!x.m){s(p,b);for(const T of x.d.keys())v(p,T,e(T)).t.add(b);if(x.m={l:new Set,d:new Set(x.d.keys()),t:new Set},(At?"production":void 0)!=="production"&&o.add(b),sc(b)){const T=x.m;let C;const $=(R,M)=>{let O=!0;C=(...Se)=>{try{return d(R,b,...Se)}finally{O||Fn(R)}};try{return M()}finally{O=!1}};ig(p,()=>{const R=$(p,()=>r(b,(...M)=>C(...M)));R&&(T.u=M=>$(M,R))})}}return x.m},S=(p,b,x)=>{if(x.m&&!x.m.l.size&&!Array.from(x.m.t).some(T=>{var C;return(C=e(T).m)==null?void 0:C.d.has(b)})){const T=x.m.u;T&&ig(p,()=>T(p)),delete x.m,(At?"production":void 0)!=="production"&&o.delete(b);for(const C of x.d.keys()){const $=S(p,C,e(C));$==null||$.t.delete(b)}return}return x.m},h={get:a,set:f,sub:(p,b)=>{const x=Gr(),T=e(p),$=v(x,p,T).l;return $.add(b),Fn(x),()=>{$.delete(b);const R=Gr();S(R,p,T),Fn(R)}},unstable_derive:p=>L1(...p(e,t,n,r))};return(At?"production":void 0)!=="production"&&Object.assign(h,{dev4_get_internal_weak_map:()=>({get:b=>{const x=e(b);if(x.n!==0)return x}}),dev4_get_mounted_atoms:()=>o,dev4_restore_atoms:b=>{const x=Gr();for(const[T,C]of b)if(ic(T)){const $=e(T),R=$.n;i(T,$,C),y(x,T,$),R!==$.n&&(ac(x,T,$),c(x,T,$))}Fn(x)}}),h},g2=()=>{const e=new WeakMap;return L1(n=>{if((At?"production":void 0)!=="production"&&!n)throw new Error("Atom is undefined or null");let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r},(n,...r)=>n.read(...r),(n,...r)=>n.write(...r),(n,...r)=>{var o;return(o=n.onMount)==null?void 0:o.call(n,...r)})};let ci;const y2=()=>(ci||(ci=g2(),(At?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ci),globalThis.__JOTAI_DEFAULT_STORE__!==ci&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ci),F1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},v2=_.createContext(void 0),B1=e=>_.useContext(v2)||y2(),V1=e=>typeof(e==null?void 0:e.then)=="function",S2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},b2=zy.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(S2(e),e)}),lc=new WeakMap,x2=e=>{let t=lc.get(e);return t||(t=new Promise((n,r)=>{let o=e;const i=l=>u=>{o===l&&n(u)},s=l=>u=>{o===l&&r(u)},a=l=>{"onCancel"in l&&typeof l.onCancel=="function"&&l.onCancel(u=>{if((F1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");V1(u)?(lc.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),lc.set(e,t)),t};function w2(e,t){const n=B1(),[[r,o,i],s]=_.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;if((o!==n||i!==e)&&(s(),a=n.get(e)),_.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),_.useDebugValue(a),V1(a)){const u=x2(a);return b2(u)}return a}function jd(e,t){const n=B1();return _.useCallback((...o)=>{if((F1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Ld(e,t){return[w2(e),jd(e)]}function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function C2(){return!!(globalThis!=null&&globalThis.document)}function T2(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Jt=e=>e?"":void 0,uc=e=>e?!0:void 0;function _2(e){return Array.isArray(e)}function Dt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!_2(e)}function P2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function E2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Fd(e){if(e==null)return e;const{unitless:t}=E2(e);return t||typeof e=="number"?`${e}px`:e}const O1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ph=e=>Object.fromEntries(Object.entries(e).sort(O1));function sg(e){const t=ph(e);return Object.assign(Object.values(t),t)}function $2(e){const t=Object.keys(ph(e));return new Set(t)}function ag(e){if(!e)return e;e=Fd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function bi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Fd(e)})`),t&&n.push("and",`(max-width: ${Fd(t)})`),n.join(" ")}function A2(e){if(!e)return null;e.base=e.base??"0px";const t=sg(e),n=Object.entries(e).sort(O1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?ag(u):void 0,{_minW:ag(s),breakpoint:i,minW:s,maxW:u,maxWQuery:bi(null,u),minWQuery:bi(s),minMaxQuery:bi(s,u)}}),r=$2(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:ph(e),asArray:sg(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>bi(i)).slice(1)],toArrayValue(i){if(!Dt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;P2(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function lg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function R2(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}function mh(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function z2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Dn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=_.createContext(s);a.displayName=t;function l(){var c;const u=_.useContext(a);if(!u&&n){const d=new Error(i??z2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const qe=(...e)=>e.filter(Boolean).join(" ");function M2(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},N1=D2(M2),I2=e=>e.default||e;function W1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function j2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function L2(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Dt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const F2=e=>typeof e=="function";function zt(e,...t){return F2(e)?e(...t):e}function B2(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function ug(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Dt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(o==null?void 0:o(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(c,f)}return l}return t(s,a)}return i(e)}var wl={exports:{}};wl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",v="[object GeneratorFunction]",S="[object Map]",P="[object Number]",m="[object Null]",h="[object Object]",p="[object Proxy]",b="[object RegExp]",x="[object Set]",T="[object String]",C="[object Undefined]",$="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",Se="[object Float64Array]",W="[object Int8Array]",$e="[object Int16Array]",Qe="[object Int32Array]",Wr="[object Uint8Array]",we="[object Uint8ClampedArray]",D="[object Uint16Array]",V="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ee={};ee[O]=ee[Se]=ee[W]=ee[$e]=ee[Qe]=ee[Wr]=ee[we]=ee[D]=ee[V]=!0,ee[a]=ee[l]=ee[R]=ee[c]=ee[M]=ee[d]=ee[f]=ee[y]=ee[S]=ee[P]=ee[h]=ee[b]=ee[x]=ee[T]=ee[$]=!1;var Yt=typeof Us=="object"&&Us&&Us.Object===Object&&Us,Qo=typeof self=="object"&&self&&self.Object===Object&&self,dt=Yt||Qo||Function("return this")(),fr=t&&!t.nodeType&&t,Zo=fr&&!0&&e&&!e.nodeType&&e,Tp=Zo&&Zo.exports===fr,xu=Tp&&Yt.process,_p=function(){try{var g=Zo&&Zo.require&&Zo.require("util").types;return g||xu&&xu.binding&&xu.binding("util")}catch{}}(),Pp=_p&&_p.isTypedArray;function Cx(g,k,A){switch(A.length){case 0:return g.call(k);case 1:return g.call(k,A[0]);case 2:return g.call(k,A[0],A[1]);case 3:return g.call(k,A[0],A[1],A[2])}return g.apply(k,A)}function Tx(g,k){for(var A=-1,j=Array(g);++A-1}function Gx(g,k){var A=this.__data__,j=Vs(A,g);return j<0?(++this.size,A.push([g,k])):A[j][1]=k,this}hn.prototype.clear=Wx,hn.prototype.delete=Ux,hn.prototype.get=Hx,hn.prototype.has=Kx,hn.prototype.set=Gx;function Ur(g){var k=-1,A=g==null?0:g.length;for(this.clear();++k1?A[K-1]:void 0,de=K>2?A[2]:void 0;for(re=g.length>3&&typeof re=="function"?(K--,re):void 0,de&&ww(A[0],A[1],de)&&(re=K<3?void 0:re,K=1),k=Object(k);++j-1&&g%1==0&&g0){if(++k>=o)return arguments[0]}else k=0;return g.apply(void 0,arguments)}}function Aw(g){if(g!=null){try{return Ls.call(g)}catch{}try{return g+""}catch{}}return""}function Ws(g,k){return g===k||g!==g&&k!==k}var Pu=jp(function(){return arguments}())?jp:function(g){return ei(g)&&jn.call(g,"callee")&&!Mx.call(g,"callee")},Eu=Array.isArray;function $u(g){return g!=null&&Op(g.length)&&!Au(g)}function Rw(g){return ei(g)&&$u(g)}var Vp=Ix||jw;function Au(g){if(!mr(g))return!1;var k=Os(g);return k==y||k==v||k==u||k==p}function Op(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function mr(g){var k=typeof g;return g!=null&&(k=="object"||k=="function")}function ei(g){return g!=null&&typeof g=="object"}function zw(g){if(!ei(g)||Os(g)!=h)return!1;var k=zp(g);if(k===null)return!0;var A=jn.call(k,"constructor")&&k.constructor;return typeof A=="function"&&A instanceof A&&Ls.call(A)==Rx}var Np=Pp?_x(Pp):lw;function Mw(g){return yw(g,Wp(g))}function Wp(g){return $u(g)?ow(g):uw(g)}var Dw=vw(function(g,k,A,j){Lp(g,k,A,j)});function Iw(g){return function(){return g}}function Up(g){return g}function jw(){return!1}e.exports=Dw})(wl,wl.exports);var V2=wl.exports;const sn=vf(V2);function O2(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Bd=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,cg=(e,t)=>{const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function N2(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Vd(...e){return t=>{e.forEach(n=>{N2(n,t)})}}function W2(...e){return _.useMemo(()=>Vd(...e),e)}function U2(e,t){const n=O2(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ae={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},qt=e=>U1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),pn=e=>U1(t=>e(t,"~ &"),"[data-peer]",".peer"),U1=(e,...t)=>t.map(e).join(", "),To={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:qt(Ae.open),_groupClosed:qt(Ae.closed),_groupHover:qt(Ae.hover),_peerHover:pn(Ae.hover),_groupFocus:qt(Ae.focus),_peerFocus:pn(Ae.focus),_groupFocusVisible:qt(Ae.focusVisible),_peerFocusVisible:pn(Ae.focusVisible),_groupActive:qt(Ae.active),_peerActive:pn(Ae.active),_groupDisabled:qt(Ae.disabled),_peerDisabled:pn(Ae.disabled),_groupInvalid:qt(Ae.invalid),_peerInvalid:pn(Ae.invalid),_groupChecked:qt(Ae.checked),_peerChecked:pn(Ae.checked),_groupFocusWithin:qt(Ae.focusWithin),_peerFocusWithin:pn(Ae.focusWithin),_peerPlaceholderShown:pn(Ae.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},H1=Object.keys(To),H2=e=>/!(important)?$/.test(e),dg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,K2=(e,t)=>n=>{const r=String(t),o=H2(r),i=dg(r),s=e?`${e}.${i}`:i;let a=Dt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=dg(a),o?`${a} !important`:a};function gh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=K2(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ua=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Ct(e,t){return n=>{const r={property:n,scale:e};return r.transform=gh({scale:e,transform:t}),r}}const G2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Y2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:G2(t),transform:n?gh({scale:n,compose:r}):r}}const K1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function X2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...K1].join(" ")}function q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...K1].join(" ")}const Q2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Z2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function J2(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const eT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Od={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},tT=new Set(Object.values(Od)),Nd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),nT=e=>e.trim();function rT(e,t){if(e==null||Nd.has(e))return e;if(!(Wd(e)||Nd.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(nT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Od?Od[l]:l;u.unshift(c);const d=u.map(f=>{if(tT.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],P=Wd(S)?S:S&&S.split(" "),m=`colors.${v}`,h=m in t.__cssMap?t.__cssMap[m].varRef:v;return P?[h,...Array.isArray(P)?P:[P]].join(" "):h});return`${a}(${d.join(", ")})`}const Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),oT=(e,t)=>rT(e,t??{});function iT(e){return/^var\(--.+\)$/.test(e)}const sT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Qt=e=>t=>`${e}(${t})`,H={filter(e){return e!=="auto"?e:Q2},backdropFilter(e){return e!=="auto"?e:Z2},ring(e){return J2(H.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?X2():e==="auto-gpu"?q2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=sT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(iT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:oT,blur:Qt("blur"),opacity:Qt("opacity"),brightness:Qt("brightness"),contrast:Qt("contrast"),dropShadow:Qt("drop-shadow"),grayscale:Qt("grayscale"),hueRotate:e=>Qt("hue-rotate")(H.degree(e)),invert:Qt("invert"),saturate:Qt("saturate"),sepia:Qt("sepia"),bgImage(e){return e==null||Wd(e)||Nd.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=eT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},w={borderWidths:Ct("borderWidths"),borderStyles:Ct("borderStyles"),colors:Ct("colors"),borders:Ct("borders"),gradients:Ct("gradients",H.gradient),radii:Ct("radii",H.px),space:Ct("space",ua(H.vh,H.px)),spaceT:Ct("space",ua(H.vh,H.px)),degreeT(e){return{property:e,transform:H.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:gh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Ct("sizes",ua(H.vh,H.px)),sizesT:Ct("sizes",ua(H.vh,H.fraction)),shadows:Ct("shadows"),logical:Y2,blur:Ct("blur",H.blur)},Da={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:H.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:H.bgClip}};Object.assign(Da,{bgImage:Da.backgroundImage,bgImg:Da.backgroundImage});const X={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(X,{rounded:X.borderRadius,roundedTop:X.borderTopRadius,roundedTopLeft:X.borderTopLeftRadius,roundedTopRight:X.borderTopRightRadius,roundedTopStart:X.borderStartStartRadius,roundedTopEnd:X.borderStartEndRadius,roundedBottom:X.borderBottomRadius,roundedBottomLeft:X.borderBottomLeftRadius,roundedBottomRight:X.borderBottomRightRadius,roundedBottomStart:X.borderEndStartRadius,roundedBottomEnd:X.borderEndEndRadius,roundedLeft:X.borderLeftRadius,roundedRight:X.borderRightRadius,roundedStart:X.borderInlineStartRadius,roundedEnd:X.borderInlineEndRadius,borderStart:X.borderInlineStart,borderEnd:X.borderInlineEnd,borderTopStartRadius:X.borderStartStartRadius,borderTopEndRadius:X.borderStartEndRadius,borderBottomStartRadius:X.borderEndStartRadius,borderBottomEndRadius:X.borderEndEndRadius,borderStartRadius:X.borderInlineStartRadius,borderEndRadius:X.borderInlineEndRadius,borderStartWidth:X.borderInlineStartWidth,borderEndWidth:X.borderInlineEndWidth,borderStartColor:X.borderInlineStartColor,borderEndColor:X.borderInlineEndColor,borderStartStyle:X.borderInlineStartStyle,borderEndStyle:X.borderInlineEndStyle});const aT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke"),accentColor:w.colors("accentColor"),textFillColor:w.colors("textFillColor")},kl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:H.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(kl,{flexDir:kl.flexDirection});const _t={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",H.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_t,{w:_t.width,h:_t.height,minW:_t.minWidth,maxW:_t.maxWidth,minH:_t.minHeight,maxH:_t.maxHeight,overscroll:_t.overscrollBehavior,overscrollX:_t.overscrollBehaviorX,overscrollY:_t.overscrollBehaviorY});const lT={filter:{transform:H.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",H.brightness),contrast:w.propT("--chakra-contrast",H.contrast),hueRotate:w.propT("--chakra-hue-rotate",H.hueRotate),invert:w.propT("--chakra-invert",H.invert),saturate:w.propT("--chakra-saturate",H.saturate),dropShadow:w.propT("--chakra-drop-shadow",H.dropShadow),backdropFilter:{transform:H.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",H.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",H.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",H.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",H.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",H.saturate)},uT={ring:{transform:H.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},cT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:H.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},G1={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function dT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},hT=fT(dT),pT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},mT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},cc=(e,t,n)=>{const r={},o=hT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},gT={srOnly:{transform(e){return e===!0?pT:e==="focusable"?mT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>cc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>cc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>cc(t,e,n)}},Fi={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Fi,{insetStart:Fi.insetInlineStart,insetEnd:Fi.insetInlineEnd});const Ud={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});const ae={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(ae,{m:ae.margin,mt:ae.marginTop,mr:ae.marginRight,me:ae.marginInlineEnd,marginEnd:ae.marginInlineEnd,mb:ae.marginBottom,ml:ae.marginLeft,ms:ae.marginInlineStart,marginStart:ae.marginInlineStart,mx:ae.marginX,my:ae.marginY,p:ae.padding,pt:ae.paddingTop,py:ae.paddingY,px:ae.paddingX,pb:ae.paddingBottom,pl:ae.paddingLeft,ps:ae.paddingInlineStart,paddingStart:ae.paddingInlineStart,pr:ae.paddingRight,pe:ae.paddingInlineEnd,paddingEnd:ae.paddingInlineEnd});const yT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},vT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",H.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},ST={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},bT={clipPath:!0,transform:w.propT("transform",H.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},xT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")},wT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},yh=sn({},Da,X,aT,kl,_t,lT,uT,cT,G1,gT,Fi,Ud,ae,yT,vT,ST,bT,xT,wT);Object.assign({},ae,_t,kl,G1,Fi);const kT=[...Object.keys(yh),...H1],CT={...yh,...To},TT=e=>e in CT,_T=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=zt(e[s],t);if(a==null)continue;if(a=Dt(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!ET(t),AT=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=PT(t);return t=n(o)??r(i)??r(t),t};function RT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=zt(i,r),l=_T(a)(r);let u={};for(let d in l){const f=l[d];let y=zt(f,r);d in n&&(d=n[d]),$T(d,y)&&(y=AT(r,y));let v=t[d];if(v===!0&&(v={property:d}),Dt(y)){u[d]=u[d]??{},u[d]=sn({},u[d],o(y,!0));continue}let S=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,y,r,a))??y;S=v!=null&&v.processResult?o(S,!0):S;const P=zt(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const m=zt(v.static,r);u=sn({},u,m)}if(P&&Array.isArray(P)){for(const m of P)u[m]=S;continue}if(P){P==="&"&&Dt(S)?u=sn({},u,S):u[P]=S;continue}if(Dt(S)){u=sn({},u,S);continue}u[d]=S}return u};return o}const Y1=e=>t=>RT({theme:t,pseudos:To,configs:yh})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function zT(e,t){if(Array.isArray(e))return e;if(Dt(e))return t(e);if(e!=null)return[e]}function MT(e,t){for(let n=t+1;n{sn(a,{[p]:c?h[p]:{[m]:h[p]}})});continue}if(!d){c?sn(a,h):a[m]=h;continue}a[m]=h}}return a}}function IT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=DT(o);return sn({},zt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function In(e){return W1(e,["styleConfig","size","variant","colorScheme"])}function X1(e){return Dt(e)&&e.reference?e.reference:String(e)}const Ql=(e,...t)=>t.map(X1).join(` ${e} `).replace(/calc/g,""),fg=(...e)=>`calc(${Ql("+",...e)})`,hg=(...e)=>`calc(${Ql("-",...e)})`,Hd=(...e)=>`calc(${Ql("*",...e)})`,pg=(...e)=>`calc(${Ql("/",...e)})`,mg=e=>{const t=X1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},yn=Object.assign(e=>({add:(...t)=>yn(fg(e,...t)),subtract:(...t)=>yn(hg(e,...t)),multiply:(...t)=>yn(Hd(e,...t)),divide:(...t)=>yn(pg(e,...t)),negate:()=>yn(mg(e)),toString:()=>e.toString()}),{add:fg,subtract:hg,multiply:Hd,divide:pg,negate:mg});function jT(e,t="-"){return e.replace(/\s+/g,t)}function LT(e){const t=jT(e.toString());return BT(FT(t))}function FT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function BT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function VT(e,t=""){return[t,e].filter(Boolean).join("-")}function OT(e,t){return`var(${e}${t?`, ${t}`:""})`}function NT(e,t=""){return LT(`--${VT(e,t)}`)}function F(e,t,n){const r=NT(e,n);return{variable:r,reference:OT(r,t)}}function WT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=F(`${e}-${o}`,i);continue}n[r]=F(`${e}-${r}`)}return n}const UT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function HT(e){return j2(e,UT)}function KT(e){return e.semanticTokens}function GT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function YT(e){const t=HT(e),n=KT(e),r=i=>H1.includes(i)||i==="default",o={};return ug(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),ug(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function gg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function XT(e){var s;const t=YT(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=gg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=gg(a,n);if(!u){if(a.startsWith("space")){const v=a.split("."),[S,...P]=v,m=`${S}.-${P.join(".")}`,h=yn.negate(c),p=yn.negate(f);o[m]={value:h,var:d,varRef:p}}r[d]=c,o[a]={value:c,var:d,varRef:f};continue}const y=Dt(c)?c:{default:c};r=sn(r,Object.entries(y).reduce((v,[S,P])=>{if(!P)return v;const m=i(a,`${P}`);if(S==="default")return v[d]=m,v;const h=(To==null?void 0:To[S])??S;return v[h]={[d]:m},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function qT(e){const t=GT(e),{cssMap:n,cssVars:r}=XT(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:A2(t.breakpoints)}),t}function J(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const QT=J("accordion").parts("root","container","button","panel","icon"),ZT=J("alert").parts("title","description","container","icon","spinner"),JT=J("avatar").parts("label","badge","container","excessLabel","group"),e_=J("breadcrumb").parts("link","item","container","separator");J("button").parts();const t_=J("checkbox").parts("control","icon","container","label");J("progress").parts("track","filledTrack","label");const n_=J("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r_=J("editable").parts("preview","input","textarea"),o_=J("form").parts("container","requiredIndicator","helperText"),i_=J("formError").parts("text","icon"),s_=J("input").parts("addon","field","element","group"),a_=J("list").parts("container","item","icon"),l_=J("menu").parts("button","list","item","groupTitle","icon","command","divider"),u_=J("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),c_=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");const d_=J("popover").parts("content","header","body","footer","popper","arrow","closeButton"),f_=J("progress").parts("label","filledTrack","track"),h_=J("radio").parts("container","control","label"),p_=J("select").parts("field","icon"),m_=J("slider").parts("container","track","thumb","filledTrack","mark"),g_=J("stat").parts("container","label","helpText","number","icon"),y_=J("switch").parts("container","track","thumb","label"),v_=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),S_=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),b_=J("tag").parts("container","label","closeButton"),x_=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:w_,defineMultiStyleConfig:k_}=ie(QT.keys),C_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},T_={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},__={pt:"2",px:"4",pb:"5"},P_={fontSize:"1.25em"},E_=w_({container:C_,button:T_,panel:__,icon:P_}),$_=k_({baseStyle:E_});function Tr(e,t,n){return Math.min(Math.max(e,n),t)}class A_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xi=A_;function vh(e){if(typeof e!="string")throw new xi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=F_.test(e)?M_(e):e;const n=D_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ds(a,2),16)),parseInt(ds(s[3]||"f",2),16)/255]}const r=I_.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=j_.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=L_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Tr(0,100,a)!==a)throw new xi(e);if(Tr(0,100,l)!==l)throw new xi(e);return[...B_(s,a,l),Number.isNaN(u)?1:u]}throw new xi(e)}function R_(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const yg=e=>parseInt(e.replace(/_/g,""),36),z_="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=yg(t.substring(0,3)),r=yg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function M_(e){const t=e.toLowerCase().trim(),n=z_[R_(t)];if(!n)throw new xi(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),D_=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),I_=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),j_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),L_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,F_=/^[a-z]+$/i,vg=e=>Math.round(e*255),B_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(vg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(vg)};function V_(e,t,n,r){return`rgba(${Tr(0,255,e).toFixed()}, ${Tr(0,255,t).toFixed()}, ${Tr(0,255,n).toFixed()}, ${parseFloat(Tr(0,1,r).toFixed(3))})`}function O_(e,t){const[n,r,o,i]=vh(e);return V_(n,r,o,i-t)}function N_(e){const[t,n,r,o]=vh(e);let i=s=>{const a=Tr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const W_=e=>Object.keys(e).length===0;function U_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=U_(e,`colors.${t}`,t);try{return N_(r),r}catch{return"#000000"}},H_=e=>{const[t,n,r]=vh(e);return(t*299+n*587+r*114)/1e3},K_=e=>t=>{const n=Je(t,e);return H_(n)<128?"dark":"light"},G_=e=>t=>K_(e)(t)==="dark",Fo=(e,t)=>n=>{const r=Je(n,e);return O_(r,1-t)};function Sg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}const Y_=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function X_(e){const t=Y_();return!e||W_(e)?t:e.string&&e.colors?Q_(e.string,e.colors):e.string&&!e.colors?q_(e.string):e.colors&&!e.string?Z_(e.colors):t}function q_(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function Q_(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Sh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function q1(e){return Dt(e)&&e.reference?e.reference:String(e)}const Zl=(e,...t)=>t.map(q1).join(` ${e} `).replace(/calc/g,""),bg=(...e)=>`calc(${Zl("+",...e)})`,xg=(...e)=>`calc(${Zl("-",...e)})`,Kd=(...e)=>`calc(${Zl("*",...e)})`,wg=(...e)=>`calc(${Zl("/",...e)})`,kg=e=>{const t=q1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Kd(t,-1)},vn=Object.assign(e=>({add:(...t)=>vn(bg(e,...t)),subtract:(...t)=>vn(xg(e,...t)),multiply:(...t)=>vn(Kd(e,...t)),divide:(...t)=>vn(wg(e,...t)),negate:()=>vn(kg(e)),toString:()=>e.toString()}),{add:bg,subtract:xg,multiply:Kd,divide:wg,negate:kg});function J_(e){return!Number.isInteger(parseFloat(e.toString()))}function eP(e,t="-"){return e.replace(/\s+/g,t)}function Q1(e){const t=eP(e.toString());return t.includes("\\.")?e:J_(e)?t.replace(".","\\."):e}function tP(e,t=""){return[t,Q1(e)].filter(Boolean).join("-")}function nP(e,t){return`var(${Q1(e)}${t?`, ${t}`:""})`}function rP(e,t=""){return`--${tP(e,t)}`}function Me(e,t){const n=rP(e,t==null?void 0:t.prefix);return{variable:n,reference:nP(n,oP(t==null?void 0:t.fallback))}}function oP(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:iP}=ie(ZT.keys),gt=F("alert-fg"),Rn=F("alert-bg"),sP=Es({container:{bg:Rn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:gt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:gt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function bh(e){const{theme:t,colorScheme:n}=e,r=Fo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const aP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[gt.variable]:`colors.${t}.600`,[Rn.variable]:n.light,_dark:{[gt.variable]:`colors.${t}.200`,[Rn.variable]:n.dark}}}}),lP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[gt.variable]:`colors.${t}.600`,[Rn.variable]:n.light,_dark:{[gt.variable]:`colors.${t}.200`,[Rn.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:gt.reference}}}),uP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[gt.variable]:`colors.${t}.600`,[Rn.variable]:n.light,_dark:{[gt.variable]:`colors.${t}.200`,[Rn.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:gt.reference}}}),cP=Es(e=>{const{colorScheme:t}=e;return{container:{[gt.variable]:"colors.white",[Rn.variable]:`colors.${t}.600`,_dark:{[gt.variable]:"colors.gray.900",[Rn.variable]:`colors.${t}.200`},color:gt.reference}}}),dP={subtle:aP,"left-accent":lP,"top-accent":uP,solid:cP},fP=iP({baseStyle:sP,variants:dP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Z1={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},hP={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},pP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},J1={...Z1,...hP,container:pP},mP=e=>typeof e=="function";function tt(e,...t){return mP(e)?e(...t):e}const{definePartsStyle:eS,defineMultiStyleConfig:gP}=ie(JT.keys),_o=F("avatar-border-color"),Bi=F("avatar-bg"),fs=F("avatar-font-size"),Bo=F("avatar-size"),yP={borderRadius:"full",border:"0.2em solid",borderColor:_o.reference,[_o.variable]:"white",_dark:{[_o.variable]:"colors.gray.800"}},vP={bg:Bi.reference,fontSize:fs.reference,width:Bo.reference,height:Bo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},SP=e=>{const{name:t,theme:n}=e,r=t?X_({string:t}):"colors.gray.400",o=G_(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:fs.reference,color:i,borderColor:_o.reference,verticalAlign:"top",width:Bo.reference,height:Bo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[_o.variable]:"colors.white",_dark:{[_o.variable]:"colors.gray.800"}}},bP={fontSize:fs.reference,lineHeight:"1"},xP=eS(e=>({badge:tt(yP,e),excessLabel:tt(vP,e),container:tt(SP,e),label:bP}));function Bn(e){const t=e!=="100%"?J1[e]:void 0;return eS({container:{[Bo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Bo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`}})}const wP={"2xs":Bn(4),xs:Bn(6),sm:Bn(8),md:Bn(12),lg:Bn(16),xl:Bn(24),"2xl":Bn(32),full:Bn("100%")},kP=gP({baseStyle:xP,sizes:wP,defaultProps:{size:"md"}}),Te=WT("badge",["bg","color","shadow"]),CP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Te.bg.reference,color:Te.color.reference,boxShadow:Te.shadow.reference},TP=e=>{const{colorScheme:t,theme:n}=e,r=Fo(`${t}.500`,.6)(n);return{[Te.bg.variable]:`colors.${t}.500`,[Te.color.variable]:"colors.white",_dark:{[Te.bg.variable]:r,[Te.color.variable]:"colors.whiteAlpha.800"}}},_P=e=>{const{colorScheme:t,theme:n}=e,r=Fo(`${t}.200`,.16)(n);return{[Te.bg.variable]:`colors.${t}.100`,[Te.color.variable]:`colors.${t}.800`,_dark:{[Te.bg.variable]:r,[Te.color.variable]:`colors.${t}.200`}}},PP=e=>{const{colorScheme:t,theme:n}=e,r=Fo(`${t}.200`,.8)(n);return{[Te.color.variable]:`colors.${t}.500`,_dark:{[Te.color.variable]:r},[Te.shadow.variable]:`inset 0 0 0px 1px ${Te.color.reference}`}},EP={solid:TP,subtle:_P,outline:PP},Vi={baseStyle:CP,variants:EP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:$P,definePartsStyle:AP}=ie(e_.keys),dc=F("breadcrumb-link-decor"),RP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:dc.reference,[dc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[dc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},zP=AP({link:RP}),MP=$P({baseStyle:zP}),DP={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},tS=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.100","whiteAlpha.200")(e)},_active:{bg:L("gray.200","whiteAlpha.300")(e)}};const r=Fo(`${t}.200`,.12)(n),o=Fo(`${t}.200`,.24)(n);return{color:L(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:L(`${t}.50`,r)(e)},_active:{bg:L(`${t}.100`,o)(e)}}},IP=e=>{const{colorScheme:t}=e,n=L("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tt(tS,e)}},jP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},LP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=L("gray.100","whiteAlpha.200")(e);return{bg:a,color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:L("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=jP[t]??{},s=L(n,`${t}.200`)(e);return{bg:s,color:L(r,"gray.800")(e),_hover:{bg:L(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:L(i,`${t}.400`)(e)}}},FP=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:L(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:L(`${t}.700`,`${t}.500`)(e)}}},BP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},VP={ghost:tS,outline:IP,solid:LP,link:FP,unstyled:BP},OP={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},NP={baseStyle:DP,variants:VP,sizes:OP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:$r,defineMultiStyleConfig:WP}=ie(x_.keys),Cl=F("card-bg"),Cn=F("card-padding"),nS=F("card-shadow"),Ia=F("card-radius"),rS=F("card-border-width","0"),oS=F("card-border-color"),UP=$r({container:{[Cl.variable]:"colors.chakra-body-bg",backgroundColor:Cl.reference,boxShadow:nS.reference,borderRadius:Ia.reference,color:"chakra-body-text",borderWidth:rS.reference,borderColor:oS.reference},body:{padding:Cn.reference,flex:"1 1 0%"},header:{padding:Cn.reference},footer:{padding:Cn.reference}}),HP={sm:$r({container:{[Ia.variable]:"radii.base",[Cn.variable]:"space.3"}}),md:$r({container:{[Ia.variable]:"radii.md",[Cn.variable]:"space.5"}}),lg:$r({container:{[Ia.variable]:"radii.xl",[Cn.variable]:"space.7"}})},KP={elevated:$r({container:{[nS.variable]:"shadows.base",_dark:{[Cl.variable]:"colors.gray.700"}}}),outline:$r({container:{[rS.variable]:"1px",[oS.variable]:"colors.chakra-border-color"}}),filled:$r({container:{[Cl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Cn.variable]:0},header:{[Cn.variable]:0},footer:{[Cn.variable]:0}}},GP=WP({baseStyle:UP,variants:KP,sizes:HP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ja,defineMultiStyleConfig:YP}=ie(t_.keys),Oi=F("checkbox-size"),XP=e=>{const{colorScheme:t}=e;return{w:Oi.reference,h:Oi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e),_hover:{bg:L(`${t}.600`,`${t}.300`)(e),borderColor:L(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:L("gray.200","transparent")(e),bg:L("gray.200","whiteAlpha.300")(e),color:L("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e)},_disabled:{bg:L("gray.100","whiteAlpha.100")(e),borderColor:L("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:L("red.500","red.300")(e)}}},qP={_disabled:{cursor:"not-allowed"}},QP={userSelect:"none",_disabled:{opacity:.4}},ZP={transitionProperty:"transform",transitionDuration:"normal"},JP=ja(e=>({icon:ZP,container:qP,control:tt(XP,e),label:QP})),eE={sm:ja({control:{[Oi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ja({control:{[Oi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ja({control:{[Oi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Un=YP({baseStyle:JP,sizes:eE,defaultProps:{size:"md",colorScheme:"blue"}}),Ni=Me("close-button-size"),di=Me("close-button-bg"),tE={w:[Ni.reference],h:[Ni.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[di.variable]:"colors.blackAlpha.100",_dark:{[di.variable]:"colors.whiteAlpha.100"}},_active:{[di.variable]:"colors.blackAlpha.200",_dark:{[di.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:di.reference},nE={lg:{[Ni.variable]:"sizes.10",fontSize:"md"},md:{[Ni.variable]:"sizes.8",fontSize:"xs"},sm:{[Ni.variable]:"sizes.6",fontSize:"2xs"}},rE={baseStyle:tE,sizes:nE,defaultProps:{size:"md"}},{variants:oE,defaultProps:iE}=Vi,sE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Te.bg.reference,color:Te.color.reference,boxShadow:Te.shadow.reference},aE={baseStyle:sE,variants:oE,defaultProps:iE},lE={w:"100%",mx:"auto",maxW:"prose",px:"4"},uE={baseStyle:lE},cE={opacity:.6,borderColor:"inherit"},dE={borderStyle:"solid"},fE={borderStyle:"dashed"},hE={solid:dE,dashed:fE},pE={baseStyle:cE,variants:hE,defaultProps:{variant:"solid"}},{definePartsStyle:Gd,defineMultiStyleConfig:mE}=ie(n_.keys),fc=F("drawer-bg"),hc=F("drawer-box-shadow");function Yr(e){return Gd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const gE={bg:"blackAlpha.600",zIndex:"modal"},yE={display:"flex",zIndex:"modal",justifyContent:"center"},vE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[fc.variable]:"colors.white",[hc.variable]:"shadows.lg",_dark:{[fc.variable]:"colors.gray.700",[hc.variable]:"shadows.dark-lg"},bg:fc.reference,boxShadow:hc.reference}},SE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},bE={position:"absolute",top:"2",insetEnd:"3"},xE={px:"6",py:"2",flex:"1",overflow:"auto"},wE={px:"6",py:"4"},kE=Gd(e=>({overlay:gE,dialogContainer:yE,dialog:tt(vE,e),header:SE,closeButton:bE,body:xE,footer:wE})),CE={xs:Yr("xs"),sm:Yr("md"),md:Yr("lg"),lg:Yr("2xl"),xl:Yr("4xl"),full:Yr("full")},TE=mE({baseStyle:kE,sizes:CE,defaultProps:{size:"xs"}}),{definePartsStyle:_E,defineMultiStyleConfig:PE}=ie(r_.keys),EE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},$E={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},AE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},RE=_E({preview:EE,input:$E,textarea:AE}),zE=PE({baseStyle:RE}),{definePartsStyle:ME,defineMultiStyleConfig:DE}=ie(o_.keys),Po=F("form-control-color"),IE={marginStart:"1",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},jE={mt:"2",[Po.variable]:"colors.gray.600",_dark:{[Po.variable]:"colors.whiteAlpha.600"},color:Po.reference,lineHeight:"normal",fontSize:"sm"},LE=ME({container:{width:"100%",position:"relative"},requiredIndicator:IE,helperText:jE}),FE=DE({baseStyle:LE}),{definePartsStyle:BE,defineMultiStyleConfig:VE}=ie(i_.keys),Eo=F("form-error-color"),OE={[Eo.variable]:"colors.red.500",_dark:{[Eo.variable]:"colors.red.300"},color:Eo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},NE={marginEnd:"0.5em",[Eo.variable]:"colors.red.500",_dark:{[Eo.variable]:"colors.red.300"},color:Eo.reference},WE=BE({text:OE,icon:NE}),UE=VE({baseStyle:WE}),HE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},KE={baseStyle:HE},GE={fontFamily:"heading",fontWeight:"bold"},YE={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},XE={baseStyle:GE,sizes:YE,defaultProps:{size:"xl"}},{definePartsStyle:wn,defineMultiStyleConfig:qE}=ie(s_.keys),ao=F("input-height"),lo=F("input-font-size"),uo=F("input-padding"),co=F("input-border-radius"),QE=wn({addon:{height:ao.reference,fontSize:lo.reference,px:uo.reference,borderRadius:co.reference},field:{width:"100%",height:ao.reference,fontSize:lo.reference,px:uo.reference,borderRadius:co.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Vn={lg:{[lo.variable]:"fontSizes.lg",[uo.variable]:"space.4",[co.variable]:"radii.md",[ao.variable]:"sizes.12"},md:{[lo.variable]:"fontSizes.md",[uo.variable]:"space.4",[co.variable]:"radii.md",[ao.variable]:"sizes.10"},sm:{[lo.variable]:"fontSizes.sm",[uo.variable]:"space.3",[co.variable]:"radii.sm",[ao.variable]:"sizes.8"},xs:{[lo.variable]:"fontSizes.xs",[uo.variable]:"space.2",[co.variable]:"radii.sm",[ao.variable]:"sizes.6"}},ZE={lg:wn({field:Vn.lg,group:Vn.lg}),md:wn({field:Vn.md,group:Vn.md}),sm:wn({field:Vn.sm,group:Vn.sm}),xs:wn({field:Vn.xs,group:Vn.xs})};function xh(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||L("blue.500","blue.300")(e),errorBorderColor:n||L("red.500","red.300")(e)}}const JE=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:L("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,r),boxShadow:`0 0 0 1px ${Je(t,r)}`},_focusVisible:{zIndex:1,borderColor:Je(t,n),boxShadow:`0 0 0 1px ${Je(t,n)}`}},addon:{border:"1px solid",borderColor:L("inherit","whiteAlpha.50")(e),bg:L("gray.100","whiteAlpha.300")(e)}}}),e5=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e),_hover:{bg:L("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,r)},_focusVisible:{bg:"transparent",borderColor:Je(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e)}}}),t5=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Je(t,r),boxShadow:`0px 1px 0px 0px ${Je(t,r)}`},_focusVisible:{borderColor:Je(t,n),boxShadow:`0px 1px 0px 0px ${Je(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),n5=wn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),r5={outline:JE,filled:e5,flushed:t5,unstyled:n5},Z=qE({baseStyle:QE,sizes:ZE,variants:r5,defaultProps:{size:"md",variant:"outline"}}),pc=F("kbd-bg"),o5={[pc.variable]:"colors.gray.100",_dark:{[pc.variable]:"colors.whiteAlpha.100"},bg:pc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},i5={baseStyle:o5},s5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},a5={baseStyle:s5},{defineMultiStyleConfig:l5,definePartsStyle:u5}=ie(a_.keys),c5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},d5=u5({icon:c5}),f5=l5({baseStyle:d5}),{defineMultiStyleConfig:h5,definePartsStyle:p5}=ie(l_.keys),en=F("menu-bg"),mc=F("menu-shadow"),m5={[en.variable]:"#fff",[mc.variable]:"shadows.sm",_dark:{[en.variable]:"colors.gray.700",[mc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:en.reference,boxShadow:mc.reference},g5={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[en.variable]:"colors.gray.100",_dark:{[en.variable]:"colors.whiteAlpha.100"}},_active:{[en.variable]:"colors.gray.200",_dark:{[en.variable]:"colors.whiteAlpha.200"}},_expanded:{[en.variable]:"colors.gray.100",_dark:{[en.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:en.reference},y5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},v5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},S5={opacity:.6},b5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},x5={transitionProperty:"common",transitionDuration:"normal"},w5=p5({button:x5,list:m5,item:g5,groupTitle:y5,icon:v5,command:S5,divider:b5}),k5=h5({baseStyle:w5}),{defineMultiStyleConfig:C5,definePartsStyle:Yd}=ie(u_.keys),gc=F("modal-bg"),yc=F("modal-shadow"),T5={bg:"blackAlpha.600",zIndex:"modal"},_5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},P5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[gc.variable]:"colors.white",[yc.variable]:"shadows.lg",_dark:{[gc.variable]:"colors.gray.700",[yc.variable]:"shadows.dark-lg"},bg:gc.reference,boxShadow:yc.reference}},E5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},$5={position:"absolute",top:"2",insetEnd:"3"},A5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},R5={px:"6",py:"4"},z5=Yd(e=>({overlay:T5,dialogContainer:tt(_5,e),dialog:tt(P5,e),header:E5,closeButton:$5,body:tt(A5,e),footer:R5}));function Bt(e){return Yd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const M5={xs:Bt("xs"),sm:Bt("sm"),md:Bt("md"),lg:Bt("lg"),xl:Bt("xl"),"2xl":Bt("2xl"),"3xl":Bt("3xl"),"4xl":Bt("4xl"),"5xl":Bt("5xl"),"6xl":Bt("6xl"),full:Bt("full")},D5=C5({baseStyle:z5,sizes:M5,defaultProps:{size:"md"}}),iS={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:I5,definePartsStyle:sS}=ie(c_.keys),wh=Me("number-input-stepper-width"),aS=Me("number-input-input-padding"),j5=vn(wh).add("0.5rem").toString(),vc=Me("number-input-bg"),Sc=Me("number-input-color"),bc=Me("number-input-border-color"),L5={[wh.variable]:"sizes.6",[aS.variable]:j5},F5=e=>{var t;return((t=tt(Z.baseStyle,e))==null?void 0:t.field)??{}},B5={width:wh.reference},V5={borderStart:"1px solid",borderStartColor:bc.reference,color:Sc.reference,bg:vc.reference,[Sc.variable]:"colors.chakra-body-text",[bc.variable]:"colors.chakra-border-color",_dark:{[Sc.variable]:"colors.whiteAlpha.800",[bc.variable]:"colors.whiteAlpha.300"},_active:{[vc.variable]:"colors.gray.200",_dark:{[vc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},O5=sS(e=>({root:L5,field:tt(F5,e)??{},stepperGroup:B5,stepper:V5}));function ca(e){var i,s;const t=(i=Z.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=iS.fontSizes[r];return sS({field:{...t.field,paddingInlineEnd:aS.reference,verticalAlign:"top"},stepper:{fontSize:vn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const N5={xs:ca("xs"),sm:ca("sm"),md:ca("md"),lg:ca("lg")},W5=I5({baseStyle:O5,sizes:N5,variants:Z.variants,defaultProps:Z.defaultProps});var iy;const U5={...(iy=Z.baseStyle)==null?void 0:iy.field,textAlign:"center"},H5={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var sy;const K5={outline:e=>{var t,n;return((n=tt((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=tt((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=tt((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((sy=Z.variants)==null?void 0:sy.unstyled.field)??{}},G5={baseStyle:U5,sizes:H5,variants:K5,defaultProps:Z.defaultProps},{defineMultiStyleConfig:Y5,definePartsStyle:X5}=ie(d_.keys),da=Me("popper-bg"),q5=Me("popper-arrow-bg"),Cg=Me("popper-arrow-shadow-color"),Q5={zIndex:"popover"},Z5={[da.variable]:"colors.white",bg:da.reference,[q5.variable]:da.reference,[Cg.variable]:"colors.gray.200",_dark:{[da.variable]:"colors.gray.700",[Cg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},J5={px:3,py:2,borderBottomWidth:"1px"},e$={px:3,py:2},t$={px:3,py:2,borderTopWidth:"1px"},n$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},r$=X5({popper:Q5,content:Z5,header:J5,body:e$,footer:t$,closeButton:n$}),o$=Y5({baseStyle:r$}),{defineMultiStyleConfig:i$,definePartsStyle:wi}=ie(f_.keys),s$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=L(Sg(),Sg("1rem","rgba(0,0,0,0.1)"))(e),s=L(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${Je(n,s)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},a$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},l$=e=>({bg:L("gray.100","whiteAlpha.300")(e)}),u$=e=>({transitionProperty:"common",transitionDuration:"slow",...s$(e)}),c$=wi(e=>({label:a$,filledTrack:u$(e),track:l$(e)})),d$={xs:wi({track:{h:"1"}}),sm:wi({track:{h:"2"}}),md:wi({track:{h:"3"}}),lg:wi({track:{h:"4"}})},f$=i$({sizes:d$,baseStyle:c$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:h$,definePartsStyle:La}=ie(h_.keys),p$=e=>{var n;const t=(n=tt(Un.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},m$=La(e=>{var t,n;return{label:(t=Un.baseStyle)==null?void 0:t.call(Un,e).label,container:(n=Un.baseStyle)==null?void 0:n.call(Un,e).container,control:p$(e)}}),g$={md:La({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:La({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:La({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},y$=h$({baseStyle:m$,sizes:g$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:v$,definePartsStyle:S$}=ie(p_.keys),fa=F("select-bg");var ay;const b$={...(ay=Z.baseStyle)==null?void 0:ay.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:fa.reference,[fa.variable]:"colors.white",_dark:{[fa.variable]:"colors.gray.700"},"> option, > optgroup":{bg:fa.reference}},x$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},w$=S$({field:b$,icon:x$}),ha={paddingInlineEnd:"8"};var ly,uy,cy,dy,fy,hy,py,my;const k$={lg:{...(ly=Z.sizes)==null?void 0:ly.lg,field:{...(uy=Z.sizes)==null?void 0:uy.lg.field,...ha}},md:{...(cy=Z.sizes)==null?void 0:cy.md,field:{...(dy=Z.sizes)==null?void 0:dy.md.field,...ha}},sm:{...(fy=Z.sizes)==null?void 0:fy.sm,field:{...(hy=Z.sizes)==null?void 0:hy.sm.field,...ha}},xs:{...(py=Z.sizes)==null?void 0:py.xs,field:{...(my=Z.sizes)==null?void 0:my.xs.field,...ha},icon:{insetEnd:"1"}}},C$=v$({baseStyle:w$,sizes:k$,variants:Z.variants,defaultProps:Z.defaultProps}),xc=F("skeleton-start-color"),wc=F("skeleton-end-color"),T$={[xc.variable]:"colors.gray.100",[wc.variable]:"colors.gray.400",_dark:{[xc.variable]:"colors.gray.800",[wc.variable]:"colors.gray.600"},background:xc.reference,borderColor:wc.reference,opacity:.7,borderRadius:"sm"},_$={baseStyle:T$},kc=F("skip-link-bg"),P$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[kc.variable]:"colors.white",_dark:{[kc.variable]:"colors.gray.700"},bg:kc.reference}},E$={baseStyle:P$},{defineMultiStyleConfig:$$,definePartsStyle:Jl}=ie(m_.keys),Fr=F("slider-thumb-size"),hs=F("slider-track-size"),Gn=F("slider-bg"),A$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Sh({orientation:t,vertical:{h:"100%",px:yn(Fr.reference).divide(2).toString()},horizontal:{w:"100%",py:yn(Fr.reference).divide(2).toString()}})}},R$=e=>({...Sh({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Gn.variable]:"colors.gray.200",_dark:{[Gn.variable]:"colors.whiteAlpha.200"},_disabled:{[Gn.variable]:"colors.gray.300",_dark:{[Gn.variable]:"colors.whiteAlpha.300"}},bg:Gn.reference}),z$=e=>{const{orientation:t}=e;return{...Sh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fr.reference,h:Fr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},M$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Gn.variable]:`colors.${t}.500`,_dark:{[Gn.variable]:`colors.${t}.200`},bg:Gn.reference}},D$=Jl(e=>({container:A$(e),track:R$(e),thumb:z$(e),filledTrack:M$(e)})),I$=Jl({container:{[Fr.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),j$=Jl({container:{[Fr.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),L$=Jl({container:{[Fr.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),F$={lg:I$,md:j$,sm:L$},B$=$$({baseStyle:D$,sizes:F$,defaultProps:{size:"md",colorScheme:"blue"}}),xr=Me("spinner-size"),V$={width:[xr.reference],height:[xr.reference]},O$={xs:{[xr.variable]:"sizes.3"},sm:{[xr.variable]:"sizes.4"},md:{[xr.variable]:"sizes.6"},lg:{[xr.variable]:"sizes.8"},xl:{[xr.variable]:"sizes.12"}},N$={baseStyle:V$,sizes:O$,defaultProps:{size:"md"}},{defineMultiStyleConfig:W$,definePartsStyle:lS}=ie(g_.keys),U$={fontWeight:"medium"},H$={opacity:.8,marginBottom:"2"},K$={verticalAlign:"baseline",fontWeight:"semibold"},G$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Y$=lS({container:{},label:U$,helpText:H$,number:K$,icon:G$}),X$={md:lS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},q$=W$({baseStyle:Y$,sizes:X$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Q$,definePartsStyle:ki}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),Sn=F("stepper-indicator-size"),fo=F("stepper-icon-size"),ho=F("stepper-title-font-size"),Ci=F("stepper-description-font-size"),fi=F("stepper-accent-color"),Z$=ki(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[fi.variable]:`colors.${e}.500`,_dark:{[fi.variable]:`colors.${e}.200`}},title:{fontSize:ho.reference,fontWeight:"medium"},description:{fontSize:Ci.reference,color:"chakra-subtle-text"},number:{fontSize:ho.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:fo.reference,height:fo.reference},indicator:{flexShrink:0,borderRadius:"full",width:Sn.reference,height:Sn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fi.reference},"&[data-status=complete]":{bg:fi.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fi.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Sn.reference} - 8px)`,top:`calc(${Sn.reference} + 4px)`,insetStart:`calc(${Sn.reference} / 2 - 1px)`}}})),J$=Q$({baseStyle:Z$,sizes:{xs:ki({stepper:{[Sn.variable]:"sizes.4",[fo.variable]:"sizes.3",[ho.variable]:"fontSizes.xs",[Ci.variable]:"fontSizes.xs"}}),sm:ki({stepper:{[Sn.variable]:"sizes.6",[fo.variable]:"sizes.4",[ho.variable]:"fontSizes.sm",[Ci.variable]:"fontSizes.xs"}}),md:ki({stepper:{[Sn.variable]:"sizes.8",[fo.variable]:"sizes.5",[ho.variable]:"fontSizes.md",[Ci.variable]:"fontSizes.sm"}}),lg:ki({stepper:{[Sn.variable]:"sizes.10",[fo.variable]:"sizes.6",[ho.variable]:"fontSizes.lg",[Ci.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eA,definePartsStyle:Fa}=ie(y_.keys),Wi=Me("switch-track-width"),Ar=Me("switch-track-height"),Cc=Me("switch-track-diff"),tA=vn.subtract(Wi,Ar),Xd=Me("switch-thumb-x"),hi=Me("switch-bg"),nA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Wi.reference],height:[Ar.reference],transitionProperty:"common",transitionDuration:"fast",[hi.variable]:"colors.gray.300",_dark:{[hi.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hi.variable]:`colors.${t}.500`,_dark:{[hi.variable]:`colors.${t}.200`}},bg:hi.reference}},rA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ar.reference],height:[Ar.reference],_checked:{transform:`translateX(${Xd.reference})`}},oA=Fa(e=>({container:{[Cc.variable]:tA,[Xd.variable]:Cc.reference,_rtl:{[Xd.variable]:vn(Cc).negate().toString()}},track:nA(e),thumb:rA})),iA={sm:Fa({container:{[Wi.variable]:"1.375rem",[Ar.variable]:"sizes.3"}}),md:Fa({container:{[Wi.variable]:"1.875rem",[Ar.variable]:"sizes.4"}}),lg:Fa({container:{[Wi.variable]:"2.875rem",[Ar.variable]:"sizes.6"}})},sA=eA({baseStyle:oA,sizes:iA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aA,definePartsStyle:$o}=ie(v_.keys),lA=$o({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Tl={"&[data-is-numeric=true]":{textAlign:"end"}},uA=$o(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Tl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Tl},caption:{color:L("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),cA=$o(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Tl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Tl},caption:{color:L("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e)},td:{background:L(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dA={simple:uA,striped:cA,unstyled:{}},fA={sm:$o({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:$o({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:$o({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},hA=aA({baseStyle:lA,variants:dA,sizes:fA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),it=F("tabs-color"),Ut=F("tabs-bg"),pa=F("tabs-border-color"),{defineMultiStyleConfig:pA,definePartsStyle:un}=ie(S_.keys),mA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},yA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},vA={p:4},SA=un(e=>({root:mA(e),tab:gA(e),tablist:yA(e),tabpanel:vA})),bA={sm:un({tab:{py:1,px:4,fontSize:"sm"}}),md:un({tab:{fontSize:"md",py:2,px:4}}),lg:un({tab:{fontSize:"lg",py:3,px:4}})},xA=un(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[it.variable]:`colors.${t}.600`,_dark:{[it.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ut.variable]:"colors.gray.200",_dark:{[Ut.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:it.reference,bg:Ut.reference}}}),wA=un(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[pa.variable]:"transparent",_selected:{[it.variable]:`colors.${t}.600`,[pa.variable]:"colors.white",_dark:{[it.variable]:`colors.${t}.300`,[pa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:pa.reference},color:it.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),kA=un(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ut.variable]:"colors.gray.50",_dark:{[Ut.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ut.variable]:"colors.white",[it.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[it.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:it.reference,bg:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CA=un(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Je(n,`${t}.700`),bg:Je(n,`${t}.100`)}}}}),TA=un(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[it.variable]:"colors.gray.600",_dark:{[it.variable]:"inherit"},_selected:{[it.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[it.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`}},color:it.reference,bg:Ut.reference}}}),_A=un({}),PA={line:xA,enclosed:wA,"enclosed-colored":kA,"soft-rounded":CA,"solid-rounded":TA,unstyled:_A},EA=pA({baseStyle:SA,sizes:bA,variants:PA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:$A,definePartsStyle:Rr}=ie(b_.keys),Tg=F("tag-bg"),_g=F("tag-color"),Tc=F("tag-shadow"),Ba=F("tag-min-height"),Va=F("tag-min-width"),Oa=F("tag-font-size"),Na=F("tag-padding-inline"),AA={fontWeight:"medium",lineHeight:1.2,outline:0,[_g.variable]:Te.color.reference,[Tg.variable]:Te.bg.reference,[Tc.variable]:Te.shadow.reference,color:_g.reference,bg:Tg.reference,boxShadow:Tc.reference,borderRadius:"md",minH:Ba.reference,minW:Va.reference,fontSize:Oa.reference,px:Na.reference,_focusVisible:{[Tc.variable]:"shadows.outline"}},RA={lineHeight:1.2,overflow:"visible"},zA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},MA=Rr({container:AA,label:RA,closeButton:zA}),DA={sm:Rr({container:{[Ba.variable]:"sizes.5",[Va.variable]:"sizes.5",[Oa.variable]:"fontSizes.xs",[Na.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Rr({container:{[Ba.variable]:"sizes.6",[Va.variable]:"sizes.6",[Oa.variable]:"fontSizes.sm",[Na.variable]:"space.2"}}),lg:Rr({container:{[Ba.variable]:"sizes.8",[Va.variable]:"sizes.8",[Oa.variable]:"fontSizes.md",[Na.variable]:"space.3"}})},IA={subtle:Rr(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.subtle(e)}}),solid:Rr(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.solid(e)}}),outline:Rr(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.outline(e)}})},jA=$A({variants:IA,baseStyle:MA,sizes:DA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var gy;const LA={...(gy=Z.baseStyle)==null?void 0:gy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var yy;const FA={outline:e=>{var t;return((t=Z.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Z.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Z.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((yy=Z.variants)==null?void 0:yy.unstyled.field)??{}};var vy,Sy,by,xy;const BA={xs:((vy=Z.sizes)==null?void 0:vy.xs.field)??{},sm:((Sy=Z.sizes)==null?void 0:Sy.sm.field)??{},md:((by=Z.sizes)==null?void 0:by.md.field)??{},lg:((xy=Z.sizes)==null?void 0:xy.lg.field)??{}},VA={baseStyle:LA,sizes:BA,variants:FA,defaultProps:{size:"md",variant:"outline"}},ma=Me("tooltip-bg"),_c=Me("tooltip-fg"),OA=Me("popper-arrow-bg"),NA={bg:ma.reference,color:_c.reference,[ma.variable]:"colors.gray.700",[_c.variable]:"colors.whiteAlpha.900",_dark:{[ma.variable]:"colors.gray.300",[_c.variable]:"colors.gray.900"},[OA.variable]:ma.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},WA={baseStyle:NA},UA={Accordion:$_,Alert:fP,Avatar:kP,Badge:Vi,Breadcrumb:MP,Button:NP,Checkbox:Un,CloseButton:rE,Code:aE,Container:uE,Divider:pE,Drawer:TE,Editable:zE,Form:FE,FormError:UE,FormLabel:KE,Heading:XE,Input:Z,Kbd:i5,Link:a5,List:f5,Menu:k5,Modal:D5,NumberInput:W5,PinInput:G5,Popover:o$,Progress:f$,Radio:y$,Select:C$,Skeleton:_$,SkipLink:E$,Slider:B$,Spinner:N$,Stat:q$,Switch:sA,Table:hA,Tabs:EA,Tag:jA,Textarea:VA,Tooltip:WA,Card:GP,Stepper:J$},HA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},KA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},GA={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},YA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},XA={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},qA={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},QA={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},ZA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},JA={property:qA,easing:QA,duration:ZA},eR={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},tR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},nR={breakpoints:KA,zIndices:eR,radii:YA,blur:tR,colors:GA,...iS,sizes:J1,shadows:XA,space:Z1,borders:HA,transition:JA},rR={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},oR={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iR="ltr",sR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},aR={semanticTokens:rR,direction:iR,...nR,components:UA,styles:oR,config:sR};var lR=!1;function uR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ve(Yo,--ct):0,Vo--,Pe===10&&(Vo=1,tu--),Pe}function yt(){return Pe=ct2||ms(Pe)>3?"":" "}function wR(e,t){for(;--t&&yt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return $s(e,Wa()+(t<6&&cn()==32&&yt()==32))}function Qd(e){for(;yt();)switch(Pe){case e:return ct;case 34:case 39:e!==34&&e!==39&&Qd(Pe);break;case 40:e===41&&Qd(e);break;case 92:yt();break}return ct}function kR(e,t){for(;yt()&&e+Pe!==57;)if(e+Pe===84&&cn()===47)break;return"/*"+$s(t,ct-1)+"*"+eu(e===47?e:yt())}function CR(e){for(;!ms(cn());)yt();return $s(e,ct)}function TR(e){return pS(Ha("",null,null,null,[""],e=hS(e),0,[0],e))}function Ha(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,v=0,S=1,P=1,m=1,h=0,p="",b=o,x=i,T=r,C=p;P;)switch(v=h,h=yt()){case 40:if(v!=108&&Ve(C,d-1)==58){qd(C+=Q(Ua(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Ua(h);break;case 9:case 10:case 13:case 32:C+=xR(v);break;case 92:C+=wR(Wa()-1,7);continue;case 47:switch(cn()){case 42:case 47:ga(_R(kR(yt(),Wa()),t,n),l);break;default:C+="/"}break;case 123*S:a[u++]=tn(C)*m;case 125*S:case 59:case 0:switch(h){case 0:case 125:P=0;case 59+c:m==-1&&(C=Q(C,/\f/g,"")),y>0&&tn(C)-d&&ga(y>32?Eg(C+";",r,n,d-1):Eg(Q(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(ga(T=Pg(C,t,n,u,c,o,a,p,b=[],x=[],d),i),h===123)if(c===0)Ha(C,t,T,T,b,i,d,a,x);else switch(f===99&&Ve(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ha(e,T,T,r&&ga(Pg(e,T,T,0,0,o,a,p,o,b=[],d),x),o,x,d,a,r?b:x);break;default:Ha(C,T,T,T,[""],x,0,a,x)}}u=c=y=0,S=m=1,p=C="",d=s;break;case 58:d=1+tn(C),y=v;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&bR()==125)continue}switch(C+=eu(h),h*S){case 38:m=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(tn(C)-1)*m,m=1;break;case 64:cn()===45&&(C+=Ua(yt())),f=cn(),c=d=tn(p=C+=CR(Wa())),h++;break;case 45:v===45&&tn(C)==2&&(S=0)}}return i}function Pg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Th(f),v=0,S=0,P=0;v0?f[m]+" "+h:Q(h,/&\f/g,f[m])))&&(l[P++]=p);return nu(e,t,n,o===0?kh:a,l,u,c)}function _R(e,t,n){return nu(e,t,n,uS,eu(SR()),ps(e,2,-2),0)}function Eg(e,t,n,r){return nu(e,t,n,Ch,ps(e,0,r),ps(e,r+1,-1),r)}function Ao(e,t){for(var n="",r=Th(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+_l+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qd(e,"stretch")?gS(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,tn(e)-3-(~qd(e,"!important")&&10))){case 107:return Q(e,":",":"+q)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(Ve(e,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return q+e+He+e+e}return e}var IR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ch:t.return=gS(t.value,t.length);break;case cS:return Ao([pi(t,{value:Q(t.value,"@","@"+q)})],o);case kh:if(t.length)return vR(t.props,function(i){switch(yR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ao([pi(t,{props:[Q(i,/:(read-\w+)/,":"+_l+"$1")]})],o);case"::placeholder":return Ao([pi(t,{props:[Q(i,/:(plac\w+)/,":"+q+"input-$1")]}),pi(t,{props:[Q(i,/:(plac\w+)/,":"+_l+"$1")]}),pi(t,{props:[Q(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},jR=[IR],LR=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var P=S.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||jR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var P=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qR=!1,QR=/[A-Z]|^ms/g,ZR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kS=function(t){return t.charCodeAt(1)===45},Rg=function(t){return t!=null&&typeof t!="boolean"},Pc=mS(function(e){return kS(e)?e:e.replace(QR,"-$&").toLowerCase()}),zg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZR,function(r,o,i){return nn={name:o,styles:i,next:nn},o})}return XR[t]!==1&&!kS(t)&&typeof n=="number"&&n!==0?n+"px":n},JR="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return nn={name:o.name,styles:o.styles,next:nn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)nn={name:s.name,styles:s.styles,next:nn},s=s.next;var a=i.styles+";";return a}return ez(e,t,n)}case"function":{if(e!==void 0){var l=nn,u=n(e);return nn=l,gs(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function ez(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?ya.dark:ya.light),document.body.classList.remove(o?ya.light:ya.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const uz="chakra-ui-color-mode";function cz(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const dz=cz(uz),Ig=()=>{},fz=C2()?_.useLayoutEffect:_.useEffect;function jg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const _S=Ah(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=dz}=t,u=s==="dark"?"dark":"light",[c,d]=_.useState(()=>jg(l,u)),[f,y]=_.useState(()=>jg(l)),{getSystemTheme:v,setClassName:S,setDataset:P,addListener:m}=_.useMemo(()=>lz({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,p=_.useCallback(T=>{const C=T==="system"?v():T;d(C),S(C==="dark"),P(C),l.set(C)},[l,v,S,P]);fz(()=>{s==="system"&&y(v())},[]),_.useEffect(()=>{const T=l.get();if(T){p(T);return}if(s==="system"){p("system");return}p(u)},[l,u,s,p]);const b=_.useCallback(()=>{p(h==="dark"?"light":"dark")},[h,p]);_.useEffect(()=>{if(i)return m(p)},[i,m,p]);const x=_.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Ig:b,setColorMode:r?Ig:p,forced:r!==void 0}),[h,b,p,r]);return E.jsx(Rh.Provider,{value:x,children:o})});_S.displayName="ColorModeProvider";const PS=String.raw,ES=PS` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`,hz=()=>E.jsx(hu,{styles:ES}),pz=({scope:e=""})=>E.jsx(hu,{styles:PS` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${ES} - `});function mz(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.useMemo(()=>qT(n),[n]);return E.jsxs(iz,{theme:o,children:[E.jsx(gz,{root:t}),r]})}function gz({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E.jsx(hu,{styles:n=>({[t]:n.__cssVars})})}Dn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function yz(){const{colorMode:e}=pu();return E.jsx(hu,{styles:t=>{const n=N1(t,"styles.global"),r=zt(n,{theme:t,colorMode:e});return r?Y1(r)(t):void 0}})}const[vz,Sz]=Dn({strict:!1,name:"PortalManagerContext"});function $S(e){const{children:t,zIndex:n}=e;return E.jsx(vz,{value:{zIndex:n},children:t})}$S.displayName="PortalManager";const AS=_.createContext({getDocument(){return document},getWindow(){return window}});AS.displayName="EnvironmentContext";function RS(e){const{children:t,environment:n,disabled:r}=e,o=_.useRef(null),i=_.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return E.jsxs(AS.Provider,{value:i,children:[t,s&&E.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}RS.displayName="EnvironmentProvider";const bz=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=E.jsx(RS,{environment:a,disabled:u,children:t});return E.jsx(mz,{theme:s,cssVarsRoot:l,children:E.jsxs(_S,{colorModeManager:n,options:s.config,children:[i?E.jsx(pz,{scope:o}):E.jsx(hz,{}),!c&&E.jsx(yz,{}),r?E.jsx($S,{zIndex:r,children:d}):d]})})};function xz(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function mu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zd=e=>Array.isArray(e);function zS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zh(e,t,n,r){if(typeof t=="function"){const[o,i]=Lg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Lg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function gu(e,t,n){const r=e.getProps();return zh(r,t,n!==void 0?n:r.custom,e)}const Mh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dh=["initial",...Mh],As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Or=new Set(As),Tn=e=>e*1e3,_n=e=>e/1e3,wz={type:"spring",stiffness:500,damping:25,restSpeed:10},kz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Cz={type:"keyframes",duration:.8},Tz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_z=(e,{keyframes:t})=>t.length>2?Cz:Or.has(e)?e.startsWith("scale")?kz(t[1]):wz:Tz;function Ih(e,t){return e?e[t]||e.default||e:void 0}const Pz={skipAnimations:!1,useManualTiming:!1},Ez=e=>e!==null;function yu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Ez),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const vt=e=>e;let Jd=vt;function $z(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const va=["read","resolveKeyframes","update","preRender","render","postRender"],Az=40;function MS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=va.reduce((m,h)=>(m[h]=$z(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,Az),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:va.reduce((m,h)=>{const p=s[h];return m[h]=(b,x=!1,T=!1)=>(n||v(),p.schedule(b,x,T)),m},{}),cancel:m=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rz=1e-7,zz=12;function Mz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=DS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Rz&&++aMz(i,0,1,e,n);return i=>i===0||i===1?i:DS(o(i),t,r)}const IS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jS=e=>t=>1-e(1-t),LS=Rs(.33,1.53,.69,.99),jh=jS(LS),FS=IS(jh),BS=e=>(e*=2)<1?.5*jh(e):.5*(2-Math.pow(2,-10*(e-1))),Lh=e=>1-Math.sin(Math.acos(e)),VS=jS(Lh),OS=IS(Lh),NS=e=>/^0[^.\s]+$/u.test(e);function Dz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NS(e):!0}const WS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),US=e=>t=>typeof t=="string"&&t.startsWith(e),HS=US("--"),Iz=US("var(--"),Fh=e=>Iz(e)?jz.test(e.split("/*")[0].trim()):!1,jz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Lz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fz(e){const t=Lz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function KS(e,t,n=1){const[r,o]=Fz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return WS(s)?parseFloat(s):s}return Fh(o)?KS(o,t,n+1):o}const zn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ss={...Xo,transform:e=>zn(0,1,e)},Sa={...Xo,default:1},zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),On=zs("deg"),dn=zs("%"),B=zs("px"),Bz=zs("vh"),Vz=zs("vw"),Fg={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},Oz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bg=e=>e===Xo||e===B,Vg=(e,t)=>parseFloat(e.split(", ")[t]),Og=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Vg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Vg(i[1],e):0}},Nz=new Set(["x","y","z"]),Wz=As.filter(e=>!Nz.has(e));function Uz(e){const t=[];return Wz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oo={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:Og(4,13),y:Og(5,14)};Oo.translateX=Oo.x;Oo.translateY=Oo.y;const GS=e=>t=>t.test(e),Hz={test:e=>e==="auto",parse:e=>e},YS=[Xo,B,dn,On,Vz,Bz,Hz],Ng=e=>YS.find(GS(e)),zr=new Set;let ef=!1,tf=!1;function XS(){if(tf){const e=Array.from(zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Uz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tf=!1,ef=!1,zr.forEach(e=>e.complete()),zr.clear()}function qS(){zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tf=!0)})}function Kz(){qS(),XS()}class Bh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(zr.add(this),ef||(ef=!0,ue.read(qS),ue.resolveKeyframes(XS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Vh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gz(e){return e==null}const Yz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oh=(e,t)=>n=>!!(typeof n=="string"&&Yz.test(n)&&n.startsWith(e)||t&&!Gz(n)&&Object.prototype.hasOwnProperty.call(n,t)),QS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Vh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Xz=e=>zn(0,255,e),$c={...Xo,transform:e=>Math.round(Xz(e))},_r={test:Oh("rgb","red"),parse:QS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$c.transform(e)+", "+$c.transform(t)+", "+$c.transform(n)+", "+Ui(Ss.transform(r))+")"};function qz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const nf={test:Oh("#"),parse:qz,transform:_r.transform},po={test:Oh("hsl","hue"),parse:QS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Ui(t))+", "+dn.transform(Ui(n))+", "+Ui(Ss.transform(r))+")"},Ke={test:e=>_r.test(e)||nf.test(e)||po.test(e),parse:e=>_r.test(e)?_r.parse(e):po.test(e)?po.parse(e):nf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_r.transform(e):po.transform(e)},Qz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zz(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Qz))===null||n===void 0?void 0:n.length)||0)>0}const ZS="number",JS="color",Jz="var",eM="var(",Wg="${}",tM=/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 bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(tM,l=>(Ke.test(l)?(r.color.push(i),o.push(JS),n.push(Ke.parse(l))):l.startsWith(eM)?(r.var.push(i),o.push(Jz),n.push(l)):(r.number.push(i),o.push(ZS),n.push(parseFloat(l))),++i,Wg)).split(Wg);return{values:n,split:a,indexes:r,types:o}}function eb(e){return bs(e).values}function tb(e){const{split:t,types:n}=bs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function rM(e){const t=eb(e);return tb(e)(t.map(nM))}const ar={test:Zz,parse:eb,createTransformer:tb,getAnimatableNone:rM},oM=new Set(["brightness","contrast","saturate","opacity"]);function iM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vh)||[];if(!r)return e;const o=n.replace(r,"");let i=oM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const sM=/\b([a-z-]*)\(.*?\)/gu,rf={...ar,getAnimatableNone:e=>{const t=e.match(sM);return t?t.map(iM).join(" "):e}},aM={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},lM={rotate:On,rotateX:On,rotateY:On,rotateZ:On,scale:Sa,scaleX:Sa,scaleY:Sa,scaleZ:Sa,skew:On,skewX:On,skewY:On,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Ss,originX:Fg,originY:Fg,originZ:B},Ug={...Xo,transform:Math.round},Nh={...aM,...lM,zIndex:Ug,size:B,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Ug},uM={...Nh,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:rf,WebkitFilter:rf},Wh=e=>uM[e];function nb(e,t){let n=Wh(e);return n!==rf&&(n=ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cM=new Set(["auto","none","0"]);function dM(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Uh(e){return typeof e=="function"}let Ka;function fM(){Ka=void 0}const fn={now:()=>(Ka===void 0&&fn.set(Be.isProcessing||Pz.useManualTiming?Be.timestamp:performance.now()),Ka),set:e=>{Ka=e,queueMicrotask(fM)}},Hg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ar.test(e)||e==="0")&&!e.startsWith("url("));function hM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nmM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Kz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=fn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!pM(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(yu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const No=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ib=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=of(u,s),v=Math.exp(-d);return Ac-f/y*v},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),S=of(Math.pow(u,2),s);return(-o(u)+Ac>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ac+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=SM(o,i,a);if(e=Tn(e),isNaN(l))return{stiffness:be.stiffness,damping:be.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const vM=12;function SM(e,t,n){let r=n;for(let o=1;o=sf?1/0:t}const bM=["duration","bounce"],xM=["stiffness","damping","mass"];function Kg(e,t){return t.some(n=>e[n]!==void 0)}function wM(e){let t={velocity:be.velocity,stiffness:be.stiffness,damping:be.damping,mass:be.mass,isResolvedFromDuration:!1,...e};if(!Kg(e,xM)&&Kg(e,bM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*zn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:be.mass,stiffness:o,damping:i}}else{const n=yM(e);t={...t,...n,mass:be.mass},t.isResolvedFromDuration=!0}return t}function ub(e=be.visualDuration,t=be.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=wM({...n,velocity:-_n(n.velocity||0)}),v=f||0,S=u/(2*Math.sqrt(l*c)),P=s-i,m=_n(Math.sqrt(l/c)),h=Math.abs(P)<5;r||(r=h?be.restSpeed.granular:be.restSpeed.default),o||(o=h?be.restDelta.granular:be.restDelta.default);let p;if(S<1){const x=of(m,S);p=T=>{const C=Math.exp(-S*m*T);return s-C*((v+S*m*P)/x*Math.sin(x*T)+P*Math.cos(x*T))}}else if(S===1)p=x=>s-Math.exp(-m*x)*(P+(v+m*P)*x);else{const x=m*Math.sqrt(S*S-1);p=T=>{const C=Math.exp(-S*m*T),$=Math.min(x*T,300);return s-C*((v+S*m*P)*Math.sinh($)+x*P*Math.cosh($))/x}}const b={calculatedDuration:y&&d||null,next:x=>{const T=p(x);if(y)a.done=x>=d;else{let C=0;S<1&&(C=x===0?Tn(v):ab(p,x,T));const $=Math.abs(C)<=r,R=Math.abs(s-T)<=o;a.done=$&&R}return a.value=a.done?s:T,a},toString:()=>{const x=Math.min(lb(b),sf),T=ib(C=>b.next(x*C).value,x,30);return x+"ms "+T}};return b}function Gg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=$=>a!==void 0&&$l,v=$=>a===void 0?l:l===void 0||Math.abs(a-$)-S*Math.exp(-$/r),p=$=>m+h($),b=$=>{const R=h($),M=p($);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let x,T;const C=$=>{y(f.value)&&(x=$,T=ub({keyframes:[f.value,v(f.value)],velocity:ab(p,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:$=>{let R=!1;return!T&&x===void 0&&(R=!0,b($),C($)),x!==void 0&&$>=x?T.next($-x):(!R&&b($),f)}}}const kM=Rs(.42,0,1,1),CM=Rs(0,0,.58,1),cb=Rs(.42,0,.58,1),TM=e=>Array.isArray(e)&&typeof e[0]!="number",Hh=e=>Array.isArray(e)&&typeof e[0]=="number",Yg={linear:vt,easeIn:kM,easeInOut:cb,easeOut:CM,circIn:Lh,circInOut:OS,circOut:VS,backIn:jh,backInOut:FS,backOut:LS,anticipate:BS},Xg=e=>{if(Hh(e)){Jd(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return Jd(Yg[e]!==void 0),Yg[e];return e},_M=(e,t)=>n=>t(e(n)),Ms=(...e)=>e.reduce(_M),ge=(e,t,n)=>e+(t-e)*n;function Rc(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 PM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Rc(l,a,e+1/3),i=Rc(l,a,e),s=Rc(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Pl(e,t){return n=>n>0?t:e}const zc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},EM=[nf,_r,po],$M=e=>EM.find(t=>t.test(e));function qg(e){const t=$M(e);if(!t)return!1;let n=t.parse(e);return t===po&&(n=PM(n)),n}const Qg=(e,t)=>{const n=qg(e),r=qg(t);if(!n||!r)return Pl(e,t);const o={...n};return i=>(o.red=zc(n.red,r.red,i),o.green=zc(n.green,r.green,i),o.blue=zc(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),_r.transform(o))},af=new Set(["none","hidden"]);function AM(e,t){return af.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function RM(e,t){return n=>ge(e,t,n)}function Kh(e){return typeof e=="number"?RM:typeof e=="string"?Fh(e)?Pl:Ke.test(e)?Qg:DM:Array.isArray(e)?db:typeof e=="object"?Ke.test(e)?Qg:zM:Pl}function db(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Kh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function MM(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ar.createTransformer(t),r=bs(e),o=bs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?af.has(e)&&!o.values.length||af.has(t)&&!r.values.length?AM(e,t):Ms(db(MM(r,o),o.values),n):Pl(e,t)};function fb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):Kh(e)(e,t)}function IM(e,t,n){const r=[],o=n||fb,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=IM(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(zn(e[0],e[i-1],u)):l}function LM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=No(0,t,r);e.push(ge(n,1,o))}}function FM(e){const t=[0];return LM(t,e.length-1),t}function BM(e,t){return e.map(n=>n*t)}function VM(e,t){return e.map(()=>t||cb).splice(0,e.length-1)}function El({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=TM(r)?r.map(Xg):Xg(r),i={done:!1,value:t[0]},s=BM(n&&n.length===t.length?n:FM(t),e),a=jM(s,t,{ease:Array.isArray(o)?o:VM(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const OM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ue.update(t,!0),stop:()=>sr(t),now:()=>Be.isProcessing?Be.timestamp:fn.now()}},NM={decay:Gg,inertia:Gg,tween:El,keyframes:El,spring:ub},WM=e=>e/100;class Gh extends ob{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Bh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Uh(n)?n:NM[n]||El;let l,u;a!==El&&typeof t[0]!="number"&&(l=Ms(WM,fb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=lb(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:v,repeatDelay:S,onUpdate:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let p=this.currentTime,b=i;if(y){const $=Math.min(this.currentTime,c)/d;let R=Math.floor($),M=$%1;!M&&$>=1&&(M=1),M===1&&R--,R=Math.min(R,y+1),!!(R%2)&&(v==="reverse"?(M=1-M,S&&(M-=S/d)):v==="mirror"&&(b=s)),p=zn(0,1,M)*d}const x=h?{done:!1,value:l[0]}:b.next(p);a&&(x.value=a(x.value));let{done:T}=x;!h&&u!==null&&(T=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return C&&o!==void 0&&(x.value=yu(l,this.options,o)),P&&P(x.value),C&&this.finish(),x}get duration(){const{resolved:t}=this;return t?_n(t.calculatedDuration):0}get time(){return _n(this.currentTime)}set time(t){t=Tn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_n(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=OM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const UM=new Set(["opacity","clipPath","filter","transform"]);function Yh(e){let t;return()=>(t===void 0&&(t=e()),t)}const HM={linearEasing:void 0};function KM(e,t){const n=Yh(e);return()=>{var r;return(r=HM[t])!==null&&r!==void 0?r:n()}}const $l=KM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function hb(e){return!!(typeof e=="function"&&$l()||!e||typeof e=="string"&&(e in lf||$l())||Hh(e)||Array.isArray(e)&&e.every(hb))}const Ti=([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:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function pb(e,t){if(e)return typeof e=="function"&&$l()?ib(e,t):Hh(e)?Ti(e):Array.isArray(e)?e.map(n=>pb(n,t)||lf.easeOut):lf[e]}function GM(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pb(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Zg(e,t){e.timeline=t,e.onfinish=null}const YM=Yh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Al=10,XM=2e4;function qM(e){return Uh(e.type)||e.type==="spring"||!hb(e.ease)}function QM(e,t){const n=new Gh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&$l()&&ZM(s)&&(s=mb[s]),qM(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,...P}=this.options,m=QM(t,P);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,a="keyframes"}const d=GM(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Zg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(yu(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return _n(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return _n(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Tn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return vt;const{animation:r}=n;Zg(r,t)}return vt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,v=new Gh({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),S=Tn(this.time);u.setWithVelocity(v.sample(S-Al).value,v.sample(S).value,Al)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return YM()&&r&&UM.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const JM=Yh(()=>window.ScrollTimeline!==void 0);class e3{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rJM()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function t3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Xh=(e,t,n,r={},o,i)=>s=>{const a=Ih(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Tn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};t3(a)||(c={...c,..._z(e,c)}),c.duration&&(c.duration=Tn(c.duration)),c.repeatDelay&&(c.repeatDelay=Tn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=yu(c.keyframes,a);if(f!==void 0)return ue.update(()=>{c.onUpdate(f),c.onComplete()}),new e3([])}return!i&&Jg.supports(c)?new Jg(c):new Gh(c)},n3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),r3=e=>Zd(e)?e[e.length-1]||0:e;function qh(e,t){e.indexOf(t)===-1&&e.push(t)}function Qh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zh{constructor(){this.subscriptions=[]}add(t){return qh(this.subscriptions,t),()=>Qh(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class i3{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=fn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=o3(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 Zh);const r=this.events[t].add(n);return t==="change"?()=>{r(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>e0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,e0);return sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xs(e,t){return new i3(e,t)}function s3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function a3(e,t){const n=gu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=r3(i[s]);s3(e,s,a)}}const Jh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),l3="framerAppearId",gb="data-"+Jh(l3);function yb(e){return e.props[gb]}const Ye=e=>!!(e&&e.getVelocity);function u3(e){return!!(Ye(e)&&e.add)}function uf(e,t){const n=e.getValue("willChange");if(u3(n))return n.add(t)}function c3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&c3(c,d))continue;const v={delay:n,...Ih(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const m=yb(e);if(m){const h=window.MotionHandoffAnimation(m,d,ue);h!==null&&(v.startTime=h,S=!0)}}uf(e,d),f.start(Xh(d,f,y,e.shouldReduceMotion&&Or.has(d)?{type:!1}:v,e,S));const P=f.animation;P&&u.push(P)}return a&&Promise.all(u).then(()=>{ue.update(()=>{a&&a3(e,a)})}),u}function cf(e,t,n={}){var r;const o=gu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(vb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return d3(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function d3(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(f3).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(cf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function f3(e,t){return e.sortNodePosition(t)}function h3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>cf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=cf(e,t,n);else{const o=typeof t=="function"?gu(e,t,n.custom):t;r=Promise.all(vb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const p3=Dh.length;function Sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>h3(e,n,r)))}function v3(e){let t=y3(e),n=t0(),r=!0;const o=l=>(u,c)=>{var d;const f=gu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:v,...S}=f;u={...u,...S,...v}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Sb(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let P=0;Pv&&b,R=!1;const M=Array.isArray(p)?p:[p];let O=M.reduce(o(m),{});x===!1&&(O={});const{prevResolvedValues:Se={}}=h,W={...Se,...O},$e=we=>{$=!0,f.has(we)&&(R=!0,f.delete(we)),h.needsAnimating[we]=!0;const D=e.getValue(we);D&&(D.liveStyle=!1)};for(const we in W){const D=O[we],V=Se[we];if(y.hasOwnProperty(we))continue;let N=!1;Zd(D)&&Zd(V)?N=!zS(D,V):N=D!==V,N?D!=null?$e(we):f.add(we):D!==void 0&&f.has(we)?$e(we):h.protectedKeys[we]=!0}h.prevProp=p,h.prevResolvedValues=O,h.isActive&&(y={...y,...O}),r&&e.blockInitialAnimation&&($=!1),$&&(!(T&&C)||R)&&d.push(...M.map(we=>({animation:we,options:{type:m}})))}if(f.size){const P={};f.forEach(m=>{const h=e.getBaseTarget(m),p=e.getValue(m);p&&(p.liveStyle=!0),P[m]=h??null}),d.push({animation:P})}let S=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=t0(),r=!0}}}function S3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zS(t,e):!1}function gr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t0(){return{animate:gr(!0),whileInView:gr(),whileHover:gr(),whileTap:gr(),whileDrag:gr(),whileFocus:gr(),exit:gr()}}class dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class b3 extends dr{constructor(t){super(t),t.animationState||(t.animationState=v3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let x3=0;class w3 extends dr{constructor(){super(...arguments),this.id=x3++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const k3={animation:{Feature:b3},exit:{Feature:w3}},Vt={x:!1,y:!1};function bb(){return Vt.x||Vt.y}function C3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function xb(e,t){const n=C3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function n0(e){return t=>{t.pointerType==="touch"||bb()||e(t)}}function T3(e,t,n={}){const[r,o,i]=xb(e,n),s=n0(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=n0(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ep=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_i=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function Mc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=r0(()=>{if(_i.has(n))return;Mc(n,"down");const o=r0(()=>{Mc(n,"up")}),i=()=>Mc(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},P3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function E3(e){return P3.has(e.tagName)||e.tabIndex!==-1}const wb=(e,t)=>t?e===t?!0:wb(e,t.parentElement):!1;function o0(e){return ep(e)&&!bb()}function $3(e,t,n={}){const[r,o,i]=xb(e,n),s=a=>{const l=a.currentTarget;if(!o0(a)||_i.has(l))return;_i.add(l);const u=t(a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!o0(y)||!_i.has(l))&&(_i.delete(l),u&&u(y,{success:v}))},d=y=>{c(y,n.useGlobalTarget||wb(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{E3(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>_3(u,o),o)}),i}function A3(e){return e==="x"||e==="y"?Vt[e]?null:(Vt[e]=!0,()=>{Vt[e]=!1}):Vt.x||Vt.y?null:(Vt.x=Vt.y=!0,()=>{Vt.x=Vt.y=!1})}function Ds(e){return{point:{x:e.pageX,y:e.pageY}}}const R3=e=>t=>ep(t)&&e(t,Ds(t));function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hi(e,t,n,r){return ws(e,t,R3(n),r)}const i0=(e,t)=>Math.abs(e-t);function z3(e,t){const n=i0(e.x,t.x),r=i0(e.y,t.y);return Math.sqrt(n**2+r**2)}class kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ic(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=z3(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:v}=d,{timestamp:S}=Be;this.history.push({...v,timestamp:S});const{onStart:P,onMove:m}=this.handlers;f||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Dc(f,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Ic(d.type==="pointercancel"?this.lastMoveEventInfo:Dc(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,P),v&&v(d,P)},!ep(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ds(t),a=Dc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Be;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ic(a,this.history)),this.removeListeners=Ms(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sr(this.updatePoint)}}function Dc(e,t){return t?{point:t(e.point)}:e}function s0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ic({point:e},t){return{point:e,delta:s0(e,Cb(t)),offset:s0(e,M3(t)),velocity:D3(t,.1)}}function M3(e){return e[0]}function Cb(e){return e[e.length-1]}function D3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Cb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Tn(t)));)n--;if(!r)return{x:0,y:0};const i=_n(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function mo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Tb=1e-4,I3=1-Tb,j3=1+Tb,_b=.01,L3=0-_b,F3=0+_b;function bt(e){return e.max-e.min}function B3(e,t,n){return Math.abs(e-t)<=n}function a0(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=bt(n)/bt(t),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(e.scale>=I3&&e.scale<=j3||isNaN(e.scale))&&(e.scale=1),(e.translate>=L3&&e.translate<=F3||isNaN(e.translate))&&(e.translate=0)}function Ki(e,t,n,r){a0(e.x,t.x,n.x,r?r.originX:void 0),a0(e.y,t.y,n.y,r?r.originY:void 0)}function l0(e,t,n){e.min=n.min+t.min,e.max=e.min+bt(t)}function V3(e,t,n){l0(e.x,t.x,n.x),l0(e.y,t.y,n.y)}function u0(e,t,n){e.min=t.min-n.min,e.max=e.min+bt(t)}function Gi(e,t,n){u0(e.x,t.x,n.x),u0(e.y,t.y,n.y)}function O3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function c0(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 N3(e,{top:t,left:n,bottom:r,right:o}){return{x:c0(e.x,n,o),y:c0(e.y,t,r)}}function d0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=No(t.min,t.max-r,e.min):r>o&&(n=No(e.min,e.max-o,t.min)),zn(0,1,n)}function H3(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 df=.35;function K3(e=df){return e===!1?e=0:e===!0&&(e=df),{x:f0(e,"left","right"),y:f0(e,"top","bottom")}}function f0(e,t,n){return{min:h0(e,t),max:h0(e,n)}}function h0(e,t){return typeof e=="number"?e:e[t]||0}const p0=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:p0(),y:p0()}),m0=()=>({min:0,max:0}),ke=()=>({x:m0(),y:m0()});function Pt(e){return[e("x"),e("y")]}function Pb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function G3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Y3(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 jc(e){return e===void 0||e===1}function ff({scale:e,scaleX:t,scaleY:n}){return!jc(e)||!jc(t)||!jc(n)}function Sr(e){return ff(e)||Eb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eb(e){return g0(e.x)||g0(e.y)}function g0(e){return e&&e!=="0%"}function Rl(e,t,n){const r=e-n,o=t*r;return n+o}function y0(e,t,n,r,o){return o!==void 0&&(e=Rl(e,o,r)),Rl(e,n,r)+t}function hf(e,t=0,n=1,r,o){e.min=y0(e.min,t,n,r,o),e.max=y0(e.max,t,n,r,o)}function $b(e,{x:t,y:n}){hf(e.x,t.translate,t.scale,t.originPoint),hf(e.y,n.translate,n.scale,n.originPoint)}const v0=.999999999999,S0=1.0000000000001;function X3(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;av0&&(t.x=1),t.yv0&&(t.y=1)}function yo(e,t){e.min=e.min+t,e.max=e.max+t}function b0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);hf(e,t,n,i,r)}function vo(e,t){b0(e.x,t.x,t.scaleX,t.scale,t.originX),b0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ab(e,t){return Pb(Y3(e.getBoundingClientRect(),t))}function q3(e,t,n){const r=Ab(e,n),{scroll:o}=t;return o&&(yo(r.x,o.offset.x),yo(r.y,o.offset.y)),r}const Rb=({current:e})=>e?e.ownerDocument.defaultView:null,Q3=new WeakMap;class Z3{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=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ds(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:v}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=A3(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pt(P=>{let m=this.getAxisMotionValue(P).get()||0;if(dn.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const p=h.layout.layoutBox[P];p&&(m=bt(p)*(parseFloat(m)/100))}}this.originPoint[P]=m}),v&&ue.postRender(()=>v(c,d)),uf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:v,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:P}=d;if(y&&this.currentDirection===null){this.currentDirection=J3(P),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,P),this.updateAxis("y",d.point,P),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Pt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new kb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Rb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ue.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ba(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=O3(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&mo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=N3(o.layoutBox,n):this.constraints=!1,this.elastic=K3(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Pt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=H3(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=q3(r,o.root,this.visualElement.getTransformPagePoint());let s=W3(o.layout.layoutBox,i);if(n){const a=n(G3(s));this.hasMutatedConstraints=!!a,a&&(s=Pb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pt(c=>{if(!ba(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return uf(this.visualElement,t),r.start(Xh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Pt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pt(n=>{const{drag:r}=this.getProps();if(!ba(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Pt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=U3({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pt(s=>{if(!ba(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Q3.set(this.visualElement,this);const t=this.visualElement.current,n=Hi(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();mo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ue.read(r);const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=df,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function J3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class e4 extends dr{constructor(t){super(t),this.removeGroupControls=vt,this.removeListeners=vt,this.controls=new Z3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vt}unmount(){this.removeGroupControls(),this.removeListeners()}}const x0=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))};class t4 extends dr{constructor(){super(...arguments),this.removePointerDownListener=vt}onPointerDown(t){this.session=new kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:x0(t),onStart:x0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ue.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Hi(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 Is=_.createContext(null);function n4(){const e=_.useContext(Is);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.useId();_.useEffect(()=>r(o),[]);const i=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function r4(){return o4(_.useContext(Is))}function o4(e){return e===null?!0:e.isPresent}const tp=_.createContext({}),zb=_.createContext({}),Ga={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=w0(e,t.target.x),r=w0(e,t.target.y);return`${n}% ${r}%`}},i4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ar.parse(e);if(o.length>5)return r;const i=ar.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ge(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},zl={};function s4(e){Object.assign(zl,e)}const{schedule:np,cancel:vj}=MS(queueMicrotask,!1);class a4 extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;s4(l4),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ga.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ue.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),np.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Mb(e){const[t,n]=n4(),r=_.useContext(tp);return E.jsx(a4,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(zb),isPresent:t,safeToRemove:n})}const l4={borderRadius:{...mi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:i4},Db=["TopLeft","TopRight","BottomLeft","BottomRight"],u4=Db.length,k0=e=>typeof e=="string"?parseFloat(e):e,C0=e=>typeof e=="number"||B.test(e);function c4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,d4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,f4(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(No(e,t,r))}function _0(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){_0(e.x,t.x),_0(e.y,t.y)}function P0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E0(e,t,n,r,o){return e-=t,e=Rl(e,1/n,r),o!==void 0&&(e=Rl(e,1/o,r)),e}function h4(e,t=0,n=1,r=.5,o,i=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=E0(e.min,t,n,a,o),e.max=E0(e.max,t,n,a,o)}function $0(e,t,[n,r,o],i,s){h4(e,t[n],t[r],t[o],t.scale,i,s)}const p4=["x","scaleX","originX"],m4=["y","scaleY","originY"];function A0(e,t,n,r){$0(e.x,t,p4,n?n.x:void 0,r?r.x:void 0),$0(e.y,t,m4,n?n.y:void 0,r?r.y:void 0)}function R0(e){return e.translate===0&&e.scale===1}function jb(e){return R0(e.x)&&R0(e.y)}function z0(e,t){return e.min===t.min&&e.max===t.max}function g4(e,t){return z0(e.x,t.x)&&z0(e.y,t.y)}function M0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lb(e,t){return M0(e.x,t.x)&&M0(e.y,t.y)}function D0(e){return bt(e.x)/bt(e.y)}function I0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class y4{constructor(){this.members=[]}add(t){qh(this.members,t),t.scheduleRender()}remove(t){if(Qh(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 v4(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const S4=(e,t)=>e.depth-t.depth;class b4{constructor(){this.children=[],this.isDirty=!1}add(t){qh(this.children,t),this.isDirty=!0}remove(t){Qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(S4),this.isDirty=!1,this.children.forEach(t)}}function Ya(e){const t=Ye(e)?e.get():e;return n3(t)?t.toValue():t}function x4(e,t){const n=fn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(sr(r),e(i-t))};return ue.read(r,!0),()=>sr(r)}function w4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function k4(e,t,n){const r=Ye(e)?e:xs(e);return r.start(Xh("",r,t,n)),r.animation}const br={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pi=typeof window<"u"&&window.MotionDebug!==void 0,Lc=["","X","Y","Z"],C4={visibility:"hidden"},j0=1e3;let T4=0;function Fc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fb(r)}function Bb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=T4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pi&&(br.totalNodes=br.resolvedTargetDeltas=br.recalculatedProjection=0),this.nodes.forEach(E4),this.nodes.forEach(M4),this.nodes.forEach(D4),this.nodes.forEach($4),Pi&&window.MotionDebug.record(br)},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;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=x4(f,250),Ga.hasAnimatedSinceResize&&(Ga.hasAnimatedSinceResize=!1,this.nodes.forEach(F0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||B4,{onLayoutAnimationStart:P,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!Lb(this.targetLayout,v)||y,p=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,p);const b={...Ih(S,"layout"),onPlay:P,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||F0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,sr(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(I4),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&&Fb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const x=b/1e3;B0(d.x,s.x,x),B0(d.y,s.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),L4(this.relativeTarget,this.relativeTargetOrigin,f,x),p&&g4(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=ke()),Tt(p,this.relativeTarget)),S&&(this.animationValues=c,c4(c,u,this.latestValues,x,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{Ga.hasAnimatedSinceResize=!0,this.currentAnimation=k4(0,j0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(j0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Vb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const d=bt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=bt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Tt(a,l),vo(a,c),Ki(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new y4),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.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 u={};l.z&&Fc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(L0),this.root.sharedNodes.clear()}}}function _4(e){e.updateLayout()}function P4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Pt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=bt(f);f.min=r[d].min,f.max=f.min+y}):Vb(i,n.layoutBox,r)&&Pt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=bt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=go();Ki(a,r,n.layoutBox);const l=go();s?Ki(l,e.applyTransform(o,!0),n.measuredBox):Ki(l,r,n.layoutBox);const u=!jb(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=ke();Gi(v,n.layoutBox,f.layoutBox);const S=ke();Gi(S,r,y.layoutBox),Lb(v,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function E4(e){Pi&&br.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function A4(e){e.clearSnapshot()}function L0(e){e.clearMeasurements()}function R4(e){e.isLayoutDirty=!1}function z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function M4(e){e.resolveTargetDelta()}function D4(e){e.calcProjection()}function I4(e){e.resetSkewAndRotation()}function j4(e){e.removeLeadSnapshot()}function B0(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function V0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function L4(e,t,n,r){V0(e.x,t.x,n.x,r),V0(e.y,t.y,n.y,r)}function F4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const B4={duration:.45,ease:[.4,0,.1,1]},O0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),N0=O0("applewebkit/")&&!O0("chrome/")?Math.round:vt;function W0(e){e.min=N0(e.min),e.max=N0(e.max)}function V4(e){W0(e.x),W0(e.y)}function Vb(e,t,n){return e==="position"||e==="preserve-aspect"&&!B3(D0(t),D0(n),.2)}function O4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const N4=Bb({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bc={current:void 0},Ob=Bb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bc.current){const e=new N4({});e.mount(window),e.setOptions({layoutScroll:!0}),Bc.current=e}return Bc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W4={pan:{Feature:t4},drag:{Feature:e4,ProjectionNode:Ob,MeasureLayout:Mb}};function U0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ue.postRender(()=>i(t,Ds(t)))}class U4 extends dr{mount(){const{current:t}=this.node;t&&(this.unmount=T3(t,n=>(U0(this.node,n,"Start"),r=>U0(this.node,r,"End"))))}unmount(){}}class H4 extends dr{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=Ms(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ue.postRender(()=>i(t,Ds(t)))}class K4 extends dr{mount(){const{current:t}=this.node;t&&(this.unmount=$3(t,n=>(H0(this.node,n,"Start"),(r,{success:o})=>H0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pf=new WeakMap,Vc=new WeakMap,G4=e=>{const t=pf.get(e.target);t&&t(e)},Y4=e=>{e.forEach(G4)};function X4({root:e,...t}){const n=e||document;Vc.has(n)||Vc.set(n,{});const r=Vc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Y4,{root:e,...t})),r[o]}function q4(e,t,n){const r=X4(t);return pf.set(e,n),r.observe(e),()=>{pf.delete(e),r.unobserve(e)}}const Q4={some:0,all:1};class Z4 extends dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Q4[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return q4(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(J4(t,n))&&this.startObserver()}unmount(){}}function J4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eD={inView:{Feature:Z4},tap:{Feature:K4},focus:{Feature:H4},hover:{Feature:U4}},tD={layout:{ProjectionNode:Ob,MeasureLayout:Mb}},rp=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),vu=_.createContext({}),op=typeof window<"u",Nb=op?_.useLayoutEffect:_.useEffect,Wb=_.createContext({strict:!1});function nD(e,t,n,r,o){var i,s;const{visualElement:a}=_.useContext(vu),l=_.useContext(Wb),u=_.useContext(Is),c=_.useContext(rp).reducedMotion,d=_.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=_.useContext(zb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&rD(d.current,n,o,y);const v=_.useRef(!1);_.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[gb],P=_.useRef(!!S&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,S))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,S)));return Nb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),np.render(f.render),P.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!P.current&&f.animationState&&f.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,S)}),P.current=!1))}),f}function rD(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ub(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&mo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Ub(e){if(e)return e.options.allowProjection!==!1?e.projection:Ub(e.parent)}function oD(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mo(n)&&(n.current=r))},[t])}function Su(e){return mu(e.animate)||Dh.some(t=>vs(e[t]))}function Hb(e){return!!(Su(e)||e.variants)}function iD(e,t){if(Su(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vs(n)?n:void 0,animate:vs(r)?r:void 0}}return e.inherit!==!1?t:{}}function sD(e){const{initial:t,animate:n}=iD(e,_.useContext(vu));return _.useMemo(()=>({initial:t,animate:n}),[K0(t),K0(n)])}function K0(e){return Array.isArray(e)?e.join(" "):e}const G0={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"]},Wo={};for(const e in G0)Wo[e]={isEnabled:t=>G0[e].some(n=>!!t[n])};function aD(e){for(const t in e)Wo[t]={...Wo[t],...e[t]}}const lD=Symbol.for("motionComponentSymbol");function uD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&aD(e);function i(a,l){let u;const c={..._.useContext(rp),...a,layoutId:cD(a)},{isStatic:d}=c,f=sD(a),y=r(a,d);if(!d&&op){dD();const v=fD(c);u=v.MeasureLayout,f.visualElement=nD(o,y,c,t,v.ProjectionNode)}return E.jsxs(vu.Provider,{value:f,children:[u&&f.visualElement?E.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,oD(y,f.visualElement,l),y,d,f.visualElement)]})}const s=_.forwardRef(i);return s[lD]=o,s}function cD({layoutId:e}){const t=_.useContext(tp).id;return t&&e!==void 0?t+"-"+e:e}function dD(e,t){_.useContext(Wb).strict}function fD(e){const{drag:t,layout:n}=Wo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const hD=["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 ip(e){return typeof e!="string"||e.includes("-")?!1:!!(hD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Gb=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 Yb(e,t,n,r){Kb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Gb.has(o)?o:Jh(o),t.attrs[o])}function Xb(e,{layout:t,layoutId:n}){return Or.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function sp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ye(o[s])||t.style&&Ye(t.style[s])||Xb(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function qb(e,t,n){const r=sp(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ap(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function pD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:mD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Qb=e=>(t,n)=>{const r=_.useContext(vu),o=_.useContext(Is),i=()=>pD(e,t,r,o);return n?i():ap(i)};function mD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ya(i[f]);let{initial:s,animate:a}=e;const l=Su(e),u=Hb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!mu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),Zb=()=>({...lp(),attrs:{}}),Jb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yD=As.length;function vD(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",kD={useVisualState:Qb({scrapeMotionValuesFromProps:qb,createRenderState:Zb,onMount:(e,t,{renderState:n,latestValues:r})=>{ue.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ue.render(()=>{cp(n,r,dp(t.tagName),e.transformTemplate),Yb(t,n)})}})},CD={useVisualState:Qb({scrapeMotionValuesFromProps:sp,createRenderState:lp})};function ex(e,t,n){for(const r in t)!Ye(t[r])&&!Xb(r,n)&&(e[r]=t[r])}function TD({transformTemplate:e},t){return _.useMemo(()=>{const n=lp();return up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _D(e,t){const n=e.style||{},r={};return ex(r,n,e),Object.assign(r,TD(e,t)),r}function PD(e,t){const n={},r=_D(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 ED=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 Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ED.has(e)}let tx=e=>!Ml(e);function $D(e){e&&(tx=t=>t.startsWith("on")?!Ml(t):e(t))}try{$D(require("@emotion/is-prop-valid").default)}catch{}function AD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(tx(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function RD(e,t,n,r){const o=_.useMemo(()=>{const i=Zb();return cp(i,t,dp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ex(i,e.style,e),o.style={...i,...o.style}}return o}function zD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(ip(n)?RD:PD)(r,i,s,n),u=AD(r,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=_.useMemo(()=>Ye(d)?d.get():d,[d]);return _.createElement(n,{...c,children:f})}}function MD(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...ip(r)?kD:CD,preloadedFeatures:e,useRender:zD(o),createVisualElement:t,Component:r};return uD(s)}}const mf={current:null},nx={current:!1};function DD(){if(nx.current=!0,!!op)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}function ID(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ye(o))e.addValue(r,o);else if(Ye(i))e.addValue(r,xs(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,xs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const X0=new WeakMap,jD=[...YS,Ke,ar],LD=e=>jD.find(GS(e)),q0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,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=Bh,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=fn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),nx.current||DD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){X0.delete(this.current),this.projection&&this.projection.unmount(),sr(this.notifyUpdate),sr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Or.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wo){const n=Wo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}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=xs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(WS(o)||NS(o))?o=parseFloat(o):!LD(o)&&ar.test(n)&&(o=nb(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=zh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rx extends FD{constructor(){super(...arguments),this.KeyframeResolver=rb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function BD(e){return window.getComputedStyle(e)}class VD extends rx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kb}readValueFromInstance(t,n){if(Or.has(n)){const r=Wh(n);return r&&r.default||0}else{const r=BD(t),o=(HS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ab(t,n)}build(t,n,r){up(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sp(t,n,r)}}class OD extends rx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ke}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Or.has(n)){const r=Wh(n);return r&&r.default||0}return n=Gb.has(n)?n:Jh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qb(t,n,r)}build(t,n,r){cp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Yb(t,n,r,o)}mount(t){this.isSVGTag=dp(t.tagName),super.mount(t)}}const ND=(e,t)=>ip(e)?new OD(t):new VD(t,{allowProjection:e!==_.Fragment}),WD=MD({...k3,...eD,...W4,...tD},ND),ox=xz(WD);class UD extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function HD({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=_.useContext(rp);return _.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${s}px !important; - height: ${a}px !important; - top: ${l}px !important; - left: ${u}px !important; - } - `),()=>{document.head.removeChild(c)}},[t]),E.jsx(UD,{isPresent:t,childRef:r,sizeRef:o,children:_.cloneElement(e,{ref:r})})}const KD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ap(GD),l=_.useId(),u=_.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return _.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=E.jsx(HD,{isPresent:n,children:e})),E.jsx(Is.Provider,{value:c,children:e})};function GD(){return new Map}const xa=e=>e.key||"";function Q0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const YD=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useMemo(()=>Q0(e),[e]),l=a.map(xa),u=_.useRef(!0),c=_.useRef(a),d=ap(()=>new Map),[f,y]=_.useState(a),[v,S]=_.useState(a);Nb(()=>{u.current=!1,c.current=a;for(let h=0;h{const p=xa(h),b=a===v||l.includes(p),x=()=>{if(d.has(p))d.set(p,!0);else return;let T=!0;d.forEach(C=>{C||(T=!1)}),T&&(m==null||m(),S(c.current),o&&o())};return E.jsx(KD,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:x,children:h},p)})})},XD=(e,t)=>e.find(n=>n.id===t);function Z0(e,t){const n=ix(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function ix(e,t){for(const[n,r]of Object.entries(e))if(XD(r,t))return n}function qD(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function QD(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var ZD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,JD=mS(function(e){return ZD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eI=JD,tI=function(t){return t!=="theme"},J0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eI:tI},ey=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},nI=!1,rI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return xS(n,r,o),nz(function(){return wS(n,r,o)}),null},oI=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=ey(t,n,r),l=a||J0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=B2(s,TT),l=zt(e,t),u=T2({},o,l,mh(a),i),c=Y1(u)(t.theme);return r?[c,r]:c};function Oc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=lI);const o=cI({baseStyle:n}),i=uI(e,r)(o);return _.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=pu(),v=y?f:void 0;return _.createElement(i,{ref:u,"data-theme":v,...d},c)})}function dI(){const e=new Map;return new Proxy(Oc,{apply(t,n,r){return Oc(...r)},get(t,n){return e.has(n)||e.set(n,Oc(n)),e.get(n)}})}const ce=dI(),fI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},sx=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=fI,toastSpacing:c="0.5rem"}=e,[d,f]=_.useState(a),y=r4();cg(()=>{y||r==null||r()},[y]),cg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),P=()=>{y&&o()};_.useEffect(()=>{y&&i&&o()},[y,i,o]),U2(P,d);const m=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>qD(s),[s]);return E.jsx(ox.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:S,custom:{position:s},style:h,children:E.jsx(ce.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:zt(n,{id:t,onClose:P})})})});sx.displayName="ToastComponent";function Le(e){return _.forwardRef(e)}var hI=typeof Element<"u",pI=typeof Map=="function",mI=typeof Set=="function",gI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Xa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Xa(e[r],t[r]))return!1;return!0}var i;if(pI&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Xa(r.value[1],t.get(r.value[0])))return!1;return!0}if(mI&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(gI&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(hI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Xa(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var yI=function(t,n){try{return Xa(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const vI=vf(yI);function SI(){const e=_.useContext(ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function ax(){const e=pu(),t=SI();return{...e,theme:t}}function lx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=ax(),s=e?N1(o,`components.${e}`):void 0,a=n||s,l=sn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},mh(W1(r,["children"])),(c,d)=>c?void 0:d),u=_.useRef({});if(a){const d=IT(a)(l);vI(u.current,d)||(u.current=d)}return u.current}function Nr(e,t={}){return lx(e,t)}function fp(e,t={}){return lx(e,t)}const ty={path:E.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),E.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),E.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},qo=Le((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=qe("chakra-icon",a),d=Nr("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},y={ref:t,focusable:i,className:c,__css:f},v=r??ty.viewBox;if(n&&typeof n!="string")return E.jsx(ce.svg,{as:n,...y,...u});const S=s??ty.path;return E.jsx(ce.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});qo.displayName="Icon";function bI(e){return E.jsx(qo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function xI(e){return E.jsx(qo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function ny(e){return E.jsx(qo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const wI=az({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),hp=Le((e,t)=>{const n=Nr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=In(e),u=qe("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${wI} ${i} linear infinite`,...n};return E.jsx(ce.div,{ref:t,__css:c,className:u,...l,children:r&&E.jsx(ce.span,{srOnly:!0,children:r})})});hp.displayName="Spinner";const[kI,pp]=Dn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[CI,mp]=Dn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ux={info:{icon:xI,colorScheme:"blue"},warning:{icon:ny,colorScheme:"orange"},success:{icon:bI,colorScheme:"green"},error:{icon:ny,colorScheme:"red"},loading:{icon:hp,colorScheme:"blue"}};function TI(e){return ux[e].colorScheme}function _I(e){return ux[e].icon}const cx=Le(function(t,n){const{status:r="info",addRole:o=!0,...i}=In(t),s=t.colorScheme??TI(r),a=fp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return E.jsx(kI,{value:{status:r},children:E.jsx(CI,{value:a,children:E.jsx(ce.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:qe("chakra-alert",t.className),__css:l})})})});cx.displayName="Alert";function dx(e){const{status:t}=pp(),n=_I(t),r=mp(),o=t==="loading"?r.spinner:r.icon;return E.jsx(ce.span,{display:"inherit","data-status":t,...e,className:qe("chakra-alert__icon",e.className),__css:o,children:e.children||E.jsx(n,{h:"100%",w:"100%"})})}dx.displayName="AlertIcon";const fx=Le(function(t,n){const r=mp(),{status:o}=pp();return E.jsx(ce.div,{ref:n,"data-status":o,...t,className:qe("chakra-alert__title",t.className),__css:r.title})});fx.displayName="AlertTitle";const hx=Le(function(t,n){const{status:r}=pp(),o=mp(),i={display:"inline",...o.description};return E.jsx(ce.div,{ref:n,"data-status":r,...t,className:qe("chakra-alert__desc",t.className),__css:i})});hx.displayName="AlertDescription";function PI(e){return E.jsx(qo,{focusable:"false","aria-hidden":!0,...e,children:E.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const px=Le(function(t,n){const r=Nr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=In(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return E.jsx(ce.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||E.jsx(PI,{width:"1em",height:"1em"})})});px.displayName="CloseButton";const EI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return E.jsxs(cx,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[E.jsx(dx,{children:u}),E.jsxs(ce.div,{flex:"1",maxWidth:"100%",children:[o&&E.jsx(fx,{id:c==null?void 0:c.title,children:o}),a&&E.jsx(hx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&E.jsx(px,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function mx(e={}){const{render:t,toastComponent:n=EI}=e;return o=>typeof t=="function"?t({...o,...e}):E.jsx(n,{...o,...e})}const $I={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},on=AI($I);function AI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=RI(o,i),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=Z0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:mx(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=ix(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Z0(on.getState(),o).position}}let ry=0;function RI(e,t={}){ry+=1;const n=t.id??ry,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>on.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[gx,zI]=Dn({strict:!1,name:"PortalContext"}),gp="chakra-portal",MI=".chakra-portal",DI=e=>E.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),II=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=zI(),l=Sz();Bd(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=gp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?E.jsx(DI,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?hh.createPortal(E.jsx(gx,{value:i.current,children:u}),i.current):E.jsx("span",{ref:c=>{c&&o(c)}})},jI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=gp),l},[o]),[,a]=_.useState({});return Bd(()=>a({}),[]),Bd(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?hh.createPortal(E.jsx(gx,{value:r?s:null,children:t}),s):null};function bu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?E.jsx(jI,{containerRef:n,...r}):E.jsx(II,{...r})}bu.className=gp;bu.selector=MI;bu.displayName="Portal";const[LI,FI]=Dn({name:"ToastOptionsContext",strict:!1}),BI=e=>{const t=_.useSyncExternalStore(on.subscribe,on.getState,on.getState),{motionVariants:n,component:r=sx,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return E.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:QD(l),children:E.jsx(YD,{...i,initial:!1,children:u.map(c=>E.jsx(r,{motionVariants:n,...c},c.id))})},l)});return E.jsx(bu,{...o,children:a})},VI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return E.jsxs(bz,{theme:r,...i,children:[E.jsx(LI,{value:o==null?void 0:o.defaultOptions,children:n}),E.jsx(BI,{...o})]})},OI=VI(aR),yx=Le(function(t,n){const r=Nr("Badge",t),{className:o,...i}=In(t);return E.jsx(ce.span,{ref:n,className:qe("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});yx.displayName="Badge";const[bj,NI]=Dn({strict:!1,name:"ButtonGroupContext"});function Ei(e){const{children:t,className:n,...r}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=qe("chakra-button__icon",n);return E.jsx(ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Ei.displayName="ButtonIcon";function yf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=E.jsx(hp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=qe("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return E.jsx(ce.div,{className:l,...a,__css:c,children:o})}yf.displayName="ButtonSpinner";function WI(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const yp=Le((e,t)=>{const n=NI(),r=Nr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:v="start",className:S,as:P,shouldWrapChildren:m,...h}=In(e),p=_.useMemo(()=>{const C={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:C}}},[r,n]),{ref:b,type:x}=WI(P),T={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:m};return E.jsxs(ce.button,{disabled:o||i,ref:W2(t,b),as:P,type:f??x,"data-active":Jt(s),"data-loading":Jt(i),__css:p,className:qe("chakra-button",S),...h,children:[i&&v==="start"&&E.jsx(yf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||E.jsx(ce.span,{opacity:0,children:E.jsx(oy,{...T})}):E.jsx(oy,{...T}),i&&v==="end"&&E.jsx(yf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});yp.displayName="Button";function oy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?E.jsxs("span",{style:{display:"contents"},children:[t&&E.jsx(Ei,{marginEnd:o,children:t}),r,n&&E.jsx(Ei,{marginStart:o,children:n})]}):E.jsxs(E.Fragment,{children:[t&&E.jsx(Ei,{marginEnd:o,children:t}),r,n&&E.jsx(Ei,{marginStart:o,children:n})]})}const vp=Le((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return E.jsx(yp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});vp.displayName="IconButton";const[UI,HI]=Dn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[KI,vx]=Dn({strict:!1,name:"FormControlContext"});function GI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=_.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=_.useState(!1),[v,S]=_.useState(!1),[P,m]=_.useState(!1),h=_.useCallback((C={},$=null)=>({id:d,...C,ref:Vd($,R=>{R&&S(!0)})}),[d]),p=_.useCallback((C={},$=null)=>({...C,ref:$,"data-focus":Jt(P),"data-disabled":Jt(o),"data-invalid":Jt(r),"data-readonly":Jt(i),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,P,r,i,u]),b=_.useCallback((C={},$=null)=>({id:c,...C,ref:Vd($,R=>{R&&y(!0)}),"aria-live":"polite"}),[c]),x=_.useCallback((C={},$=null)=>({...C,...s,ref:$,role:"group","data-focus":Jt(P),"data-disabled":Jt(o),"data-invalid":Jt(r),"data-readonly":Jt(i)}),[s,o,P,r,i]),T=_.useCallback((C={},$=null)=>({...C,ref:$,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!P,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:v,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:b,getRootProps:x,getLabelProps:p,getRequiredIndicatorProps:T}}const YI=Le(function(t,n){const r=fp("Form",t),o=In(t),{getRootProps:i,htmlProps:s,...a}=GI(o),l=qe("chakra-form-control",t.className);return E.jsx(KI,{value:a,children:E.jsx(UI,{value:r,children:E.jsx(ce.div,{...i({},n),className:l,__css:r.container})})})});YI.displayName="FormControl";const XI=Le(function(t,n){const r=vx(),o=HI(),i=qe("chakra-form__helper-text",t.className);return E.jsx(ce.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});XI.displayName="FormHelperText";function qI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=QI(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":uc(n),"aria-required":uc(o),"aria-readonly":uc(r)}}function QI(e){const t=vx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&y.push(t.feedbackId),t!=null&&t.hasHelpText&&y.push(t.helpTextId),{...f,"aria-describedby":y.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:lg(t==null?void 0:t.onFocus,c),onBlur:lg(t==null?void 0:t.onBlur,d)}}const ZI=new Set(["dark","light","system"]);function JI(e){let t=e;return ZI.has(t)||(t="light"),t}function ej(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=JI(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function tj(e={}){const{nonce:t}=e;return E.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:ej(e)}})}function Sp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.Children.toArray(e.path),s=Le((a,l)=>E.jsx(qo,{ref:l,viewBox:t,...o,...a,children:i.length?i:E.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const bp=Le(function(t,n){const{htmlSize:r,...o}=t,i=fp("Input",o),s=In(o),a=qI(s),l=qe("chakra-input",t.className);return E.jsx(ce.input,{size:r,...a,__css:i.field,ref:n,className:l})});bp.displayName="Input";bp.id="Input";const Sx=ce("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Sx.displayName="Spacer";const bx=e=>E.jsx(ce.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bx.displayName="StackItem";function nj(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":L2(n,o=>r[o])}}const xp=Le((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,y=n?"row":r??"column",v=_.useMemo(()=>nj({spacing:s,direction:y}),[s,y]),S=!!u,P=!d&&!S,m=_.useMemo(()=>{const p=R2(l);return P?p:p.map((b,x)=>{const T=typeof b.key<"u"?b.key:x,C=x+1===p.length,R=d?E.jsx(bx,{children:b},T):b;if(!S)return R;const M=_.cloneElement(u,{__css:v}),O=C?null:M;return E.jsxs(_.Fragment,{children:[R,O]},T)})},[u,v,S,P,d,l]),h=qe("chakra-stack",c);return E.jsx(ce.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y,flexWrap:a,gap:S?void 0:s,className:h,...f,children:m})});xp.displayName="Stack";const wp=Le((e,t)=>E.jsx(xp,{align:"center",...e,direction:"row",ref:t}));wp.displayName="HStack";const xx=e=>E.jsx(ce.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});xx.displayName="StackDivider";const kp=Le((e,t)=>E.jsx(xp,{align:"center",...e,direction:"column",ref:t}));kp.displayName="VStack";function rj(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function oj(e,t){const n=o=>({...t,...o,position:rj((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=mx(i);return on.notify(s,i)};return r.update=(o,i)=>{on.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...zt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...zt(i.error,a)}))},r.closeAll=on.closeAll,r.close=on.close,r.isActive=on.isActive,r}function ij(e){const{theme:t}=ax(),n=FI();return _.useMemo(()=>oj(t.direction,{...n,...e}),[e,t.direction,n])}const wx=Le(function(t,n){const r=Nr("Heading",t),{className:o,...i}=In(t);return E.jsx(ce.h2,{ref:n,className:qe("chakra-heading",t.className),...i,__css:r})});wx.displayName="Heading";const kx=Le(function(t,n){const r=Nr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=In(t),u=mh({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return E.jsx(ce.p,{ref:n,className:qe("chakra-text",t.className),...u,...l,__css:r})});kx.displayName="Text";const sj=({addTodo:e})=>{const t=_.useRef(null),n=ij(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return E.jsx("form",{onSubmit:o,children:E.jsxs(wp,{m:"8",children:[E.jsx(bp,{variant:"filled",placeholder:"Add new todo",ref:t}),E.jsx(yp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},aj=Sp({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),lj=Sp({displayName:"SunIcon",path:E.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[E.jsx("circle",{cx:"12",cy:"12",r:"5"}),E.jsx("path",{d:"M12 1v2"}),E.jsx("path",{d:"M12 21v2"}),E.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),E.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),E.jsx("path",{d:"M1 12h2"}),E.jsx("path",{d:"M21 12h2"}),E.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),E.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),uj=Sp({displayName:"DeleteIcon",path:E.jsx("g",{fill:"currentColor",children:E.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),cj=({todos:e,deleteTodo:t})=>{if(e.length===0)return E.jsx(yx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:E.jsx(xx,{})};return E.jsx(kp,{...n,children:e.map(r=>E.jsxs(wp,{children:[E.jsx(kx,{children:r.body}),E.jsx(Sx,{}),E.jsx(vp,{"aria-label":"Delete todo",icon:E.jsx(uj,{}),onClick:()=>t(r.id)})]},r.id))})},dj=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?E.jsx(aj,{}):E.jsx(lj,{}),"aria-label":"Switch DarkMode"};return E.jsx(ox.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:E.jsx(vp,{onClick:e,...n})})},Cp=ql("light");Cp.debugLabel="themeAtom";const fj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let hj=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=fj[n[e]&63];return t};const Uo=ql([]);Uo.debugLabel="todosAtom";const pj=ql(null,(e,t,n)=>{const r={id:hj(),body:n};t(Uo,[...e(Uo),r])}),mj=ql(null,(e,t,n)=>{const o=e(Uo).filter(i=>i.id!==n);t(Uo,o)});function gj(){const{colorMode:e,toggleColorMode:t}=pu(),[n,r]=Ld(Cp),[o]=Ld(Uo),i=jd(pj),s=jd(mj);_.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return E.jsxs(kp,{p:4,children:[E.jsx(dj,{toggleTheme:a,theme:n}),E.jsx(wx,{size:"2xl",children:"Jotai-Todos App"}),E.jsx(sj,{addTodo:i}),E.jsx(cj,{todos:o,deleteTodo:s})]})}const yj=()=>{const[e]=Ld(Cp);return E.jsxs(OI,{children:[E.jsx(tj,{initialColorMode:e}),E.jsx(gj,{})]})};I1(document.getElementById("root")).render(E.jsxs(_.StrictMode,{children:[E.jsx(k2,{}),E.jsx(yj,{})]})); diff --git a/assets/index-DPbQ1ZlT.js b/assets/index-DPbQ1ZlT.js new file mode 100644 index 0000000..7777d20 --- /dev/null +++ b/assets/index-DPbQ1ZlT.js @@ -0,0 +1,350 @@ +function jw(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wy={exports:{}},Il={},ky={exports:{}},W={};/** + * @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 ks=Symbol.for("react.element"),Fw=Symbol.for("react.portal"),Bw=Symbol.for("react.fragment"),Vw=Symbol.for("react.strict_mode"),Ow=Symbol.for("react.profiler"),Nw=Symbol.for("react.provider"),Ww=Symbol.for("react.context"),Uw=Symbol.for("react.forward_ref"),Hw=Symbol.for("react.suspense"),Kw=Symbol.for("react.memo"),Gw=Symbol.for("react.lazy"),Kp=Symbol.iterator;function Yw(e){return e===null||typeof e!="object"?null:(e=Kp&&e[Kp]||e["@@iterator"],typeof e=="function"?e:null)}var Cy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ty=Object.assign,_y={};function Wo(e,t,n){this.props=e,this.context=t,this.refs=_y,this.updater=n||Cy}Wo.prototype.isReactComponent={};Wo.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")};Wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Py(){}Py.prototype=Wo.prototype;function Sf(e,t,n){this.props=e,this.context=t,this.refs=_y,this.updater=n||Cy}var bf=Sf.prototype=new Py;bf.constructor=Sf;Ty(bf,Wo.prototype);bf.isPureReactComponent=!0;var Gp=Array.isArray,Ey=Object.prototype.hasOwnProperty,xf={current:null},$y={key:!0,ref:!0,__self:!0,__source:!0};function Ay(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ey.call(t,r)&&!$y.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,Te=z[pe];if(0>>1;peo(Xo,O))lto(cr,Xo)?(z[pe]=cr,z[lt]=O,pe=lt):(z[pe]=Xo,z[Kt]=O,pe=Kt);else if(lto(cr,O))z[pe]=cr,z[lt]=O,pe=lt;else break e}}return V}function o(z,V){var O=z.sortIndex-V.sortIndex;return O!==0?O:z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function b(z){if(S=!1,m(z),!v)if(n(l)!==null)v=!0,Nr(C);else{var V=n(u);V!==null&&xe(b,V.startTime-z)}}function C(z,V){v=!1,S&&(S=!1,p(A),A=-1),y=!0;var O=f;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||z&&!N());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var Te=pe(d.expirationTime<=V);V=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var Kt=n(u);Kt!==null&&xe(b,Kt.startTime-V),J=!1}return J}finally{d=null,f=O,y=!1}}var E=!1,k=null,A=-1,D=5,M=-1;function N(){return!(e.unstable_now()-Mz||125pe?(z.sortIndex=O,t(u,z),n(l)===null&&z===n(u)&&(S?(p(A),A=-1):S=!0,xe(b,O-pe))):(z.sortIndex=Te,t(l,z),v||y||(v=!0,Nr(C))),z},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(z){var V=f;return function(){var O=f;f=V;try{return z.apply(this,arguments)}finally{f=O}}}})(Ly);Iy.exports=Ly;var ik=Iy.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 sk=T,gt=ik;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=Object.prototype.hasOwnProperty,ak=/^[: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]*$/,qp={},Qp={};function lk(e){return Oc.call(Qp,e)?!0:Oc.call(qp,e)?!1:ak.test(e)?Qp[e]=!0:(qp[e]=!0,!1)}function uk(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 ck(e,t,n,r){if(t===null||typeof t>"u"||uk(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 et(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new et(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){Ve[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var kf=/[\-:]([a-z])/g;function Cf(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(kf,Cf);Ve[t]=new et(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(kf,Cf);Ve[t]=new et(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(kf,Cf);Ve[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Lu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mi(e):""}function dk(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi("Lazy");case 13:return mi("Suspense");case 19:return mi("SuspenseList");case 0:case 2:case 15:return e=ju(e.type,!1),e;case 11:return e=ju(e.type.render,!1),e;case 1:return e=ju(e.type,!0),e;default:return""}}function Hc(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 Yr:return"Fragment";case Gr:return"Portal";case Nc:return"Profiler";case _f:return"StrictMode";case Wc:return"Suspense";case Uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case By:return(e.displayName||"Context")+".Consumer";case Fy:return(e._context.displayName||"Context")+".Provider";case Pf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ef:return t=e.displayName||null,t!==null?t:Hc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Hc(e(t))}catch{}}return null}function fk(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 Hc(t);case 8:return t===_f?"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 nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hk(e){var t=Oy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 Ys(e){e._valueTracker||(e._valueTracker=hk(e))}function Ny(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qa(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 Kc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(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 Wy(e,t){t=t.checked,t!=null&&Tf(e,"checked",t,!1)}function Gc(e,t){Wy(e,t);var n=nr(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")?Yc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yc(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function em(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 Yc(e,t,n){(t!=="number"||Qa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={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},pk=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){pk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function Gy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function Yy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mk=ve({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 Qc(e,t){if(t){if(mk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Zc(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 Jc=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ed=null,vo=null,So=null;function rm(e){if(e=_s(e)){if(typeof ed!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Vl(t),ed(e.stateNode,e.type,t))}}function Xy(e){vo?So?So.push(e):So=[e]:vo=e}function qy(){if(vo){var e=vo,t=So;if(So=vo=null,rm(e),t)for(e=0;e>>=0,e===0?32:31-(_k(e)/Pk|0)|0}var qs=64,Qs=4194304;function yi(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 tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=yi(a):(i&=s,i!==0&&(r=yi(i)))}else s=n&~o,s!==0?r=yi(s):i!==0&&(r=yi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Rk(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=Ai),fm=" ",hm=!1;function gv(e,t){switch(e){case"keyup":return iC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function aC(e,t){switch(e){case"compositionend":return yv(t);case"keypress":return t.which!==32?null:(hm=!0,fm);case"textInput":return e=t.data,e===fm&&hm?null:e;default:return null}}function lC(e,t){if(Xr)return e==="compositionend"||!jf&&gv(e,t)?(e=pv(),_a=Df=Kn=null,Xr=!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=ym(n)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qa(e.document)}return t}function Ff(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 yC(e){var t=wv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xv(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=vm(n,i);var s=vm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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,qr=null,sd=null,Mi=null,ad=!1;function Sm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ad||qr==null||qr!==Qa(r)||(r=qr,"selectionStart"in r&&Ff(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}),Mi&&ts(Mi,r)||(Mi=r,r=ol(sd,"onSelect"),0Jr||(e.current=hd[Jr],hd[Jr]=null,Jr--)}function re(e,t){Jr++,hd[Jr]=e.current,e.current=t}var rr={},Ge=ar(rr),ot=ar(!1),Mr=rr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function it(e){return e=e.childContextTypes,e!=null}function sl(){ae(ot),ae(Ge)}function _m(e,t,n){if(Ge.current!==rr)throw Error(R(168));re(Ge,t),re(ot,n)}function Rv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,fk(e)||"Unknown",o));return ve({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Mr=Ge.current,re(Ge,e),re(ot,ot.current),!0}function Pm(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Rv(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,ae(ot),ae(Ge),re(Ge,e)):ae(ot),re(ot,n)}var pn=null,Ol=!1,Qu=!1;function Mv(e){pn===null?pn=[e]:pn.push(e)}function $C(e){Ol=!0,Mv(e)}function lr(){if(!Qu&&pn!==null){Qu=!0;var e=0,t=ee;try{var n=pn;for(ee=1;e>=s,o-=s,vn=1<<32-Nt(t)+o|n<A?(D=k,k=null):D=k.sibling;var M=f(p,k,m[A],b);if(M===null){k===null&&(k=D);break}e&&k&&M.alternate===null&&t(p,k),h=i(M,h,A),E===null?C=M:E.sibling=M,E=M,k=D}if(A===m.length)return n(p,k),fe&&gr(p,A),C;if(k===null){for(;AA?(D=k,k=null):D=k.sibling;var N=f(p,k,M.value,b);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(p,k),h=i(N,h,A),E===null?C=N:E.sibling=N,E=N,k=D}if(M.done)return n(p,k),fe&&gr(p,A),C;if(k===null){for(;!M.done;A++,M=m.next())M=d(p,M.value,b),M!==null&&(h=i(M,h,A),E===null?C=M:E.sibling=M,E=M);return fe&&gr(p,A),C}for(k=r(p,k);!M.done;A++,M=m.next())M=y(k,p,A,M.value,b),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?A:M.key),h=i(M,h,A),E===null?C=M:E.sibling=M,E=M);return e&&k.forEach(function(he){return t(p,he)}),fe&&gr(p,A),C}function _(p,h,m,b){if(typeof m=="object"&&m!==null&&m.type===Yr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Gs:e:{for(var C=m.key,E=h;E!==null;){if(E.key===C){if(C=m.type,C===Yr){if(E.tag===7){n(p,E.sibling),h=o(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vn&&Am(C)===E.type){n(p,E.sibling),h=o(E,m.props),h.ref=ii(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===Yr?(h=Pr(m.props.children,p.mode,b,m.key),h.return=p,p=h):(b=Da(m.type,m.key,m.props,null,p.mode,b),b.ref=ii(p,h,m),b.return=p,p=b)}return s(p);case Gr:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=o(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ic(m,p.mode,b),h.return=p,p=h}return s(p);case Vn:return E=m._init,_(p,h,E(m._payload),b)}if(gi(m))return v(p,h,m,b);if(ei(m))return S(p,h,m,b);oa(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,m),h.return=p,p=h):(n(p,h),h=oc(m,p.mode,b),h.return=p,p=h),s(p)):n(p,h)}return _}var Mo=Lv(!0),jv=Lv(!1),cl=ar(null),dl=null,no=null,Nf=null;function Wf(){Nf=no=dl=null}function Uf(e){var t=cl.current;ae(cl),e._currentValue=t}function gd(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 xo(e,t){dl=e,Nf=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Nf!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(dl===null)throw Error(R(308));no=e,dl.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var wr=null;function Hf(e){wr===null?wr=[e]:wr.push(e)}function Fv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Hf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pn(e,r)}function Pn(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 On=!1;function Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bv(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Hf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pn(e,n)}function Ea(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,Rf(e,n)}}function Rm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 fl(e,t,n,r){var o=e.updateQueue;On=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(f=t,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=ve({},d,f);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ir|=s,e.lanes=s,e.memoizedState=d}}function Mm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ju.transition;Ju.transition={};try{e(!1),t()}finally{ee=n,Ju.transition=r}}function n1(){return zt().memoizedState}function zC(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r1(e))o1(t,n);else if(n=Fv(e,t,n,r),n!==null){var o=Qe();Wt(n,e,r,o),i1(n,t,r)}}function DC(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r1(e))o1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Ut(a,s)){var l=t.interleaved;l===null?(o.next=o,Hf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Fv(e,t,o,r),n!==null&&(o=Qe(),Wt(n,e,r,o),i1(n,t,r))}}function r1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function o1(e,t){zi=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rf(e,n)}}var ml={readContext:Mt,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},IC={readContext:Mt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Dm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,Qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();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=zC.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:zm,useDebugValue:eh,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=zm(!1),t=e[0];return e=MC.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=qt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ze===null)throw Error(R(349));Dr&30||Wv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dm(Hv.bind(null,r,i,e),[e]),r.flags|=2048,us(9,Uv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=ze.identifierPrefix;if(fe){var n=Sn,r=vn;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,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[tn]=t,e[os]=r,m1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zc(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,si(i,!1),t.lanes=4194304)}else{if(!r)if(e=hl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ne(t),null}else 2*ke()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,si(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=me.current,re(me,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return sh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function WC(e,t){switch(Vf(t),t.tag){case 1:return it(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zo(),ae(ot),ae(Ge),Xf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yf(t),null;case 13:if(ae(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(me),null;case 4:return zo(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var sa=!1,He=!1,UC=typeof WeakSet=="function"?WeakSet:Set,I=null;function ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Td(e,t,n){try{n()}catch(r){be(e,t,r)}}var Hm=!1;function HC(e,t){if(ld=nl,e=wv(),Ff(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||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&&++u===o&&(a=s),f===i&&++c===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(ud={focusedElem:e,selectionRange:n},nl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ft(t.type,S),_);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(b){be(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Hm,Hm=!1,v}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Td(t,n,i)}o=o.next}while(o!==r)}}function Ul(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 _d(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 v1(e){var t=e.alternate;t!==null&&(e.alternate=null,v1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tn],delete t[os],delete t[fd],delete t[PC],delete t[EC])),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 S1(e){return e.tag===5||e.tag===3||e.tag===4}function Km(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S1(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 Pd(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=il));else if(r!==4&&(e=e.child,e!==null))for(Pd(e,t,n),e=e.sibling;e!==null;)Pd(e,t,n),e=e.sibling}function Ed(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(Ed(e,t,n),e=e.sibling;e!==null;)Ed(e,t,n),e=e.sibling}var Le=null,Bt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)b1(e,t,n),n=n.sibling}function b1(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:He||ro(n,t);case 6:var r=Le,o=Bt;Le=null,Ln(e,t,n),Le=r,Bt=o,Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?qu(e.parentNode,n):e.nodeType===1&&qu(e,n),Ji(e)):qu(Le,n.stateNode));break;case 4:r=Le,o=Bt,Le=n.stateNode.containerInfo,Bt=!0,Ln(e,t,n),Le=r,Bt=o;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Td(n,t,s),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!He&&(ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Ln(e,t,n),He=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UC),t.forEach(function(r){var o=e2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,vl=0,K&6)throw Error(R(331));var o=K;for(K|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lke()-oh?_r(e,0):rh|=n),st(e,t)}function E1(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Qe();e=Pn(e,t),e!==null&&(Cs(e,t,n),st(e,n))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E1(e,n)}function e2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),E1(e,n)}var $1;$1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,OC(e,t,n);rt=!!(e.flags&131072)}else rt=!1,fe&&t.flags&1048576&&zv(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ra(e,t),e=t.pendingProps;var o=Ao(t,Ge.current);xo(t,n),o=Qf(null,t,r,e,o,n);var i=Zf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Kf(t),o.updater=Wl,t.stateNode=o,o._reactInternals=t,vd(t,r,e,n),t=xd(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Bf(t),Xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ra(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=n2(r),e=Ft(r,e),o){case 0:t=bd(null,t,r,e,n);break e;case 1:t=Nm(null,t,r,e,n);break e;case 11:t=Vm(null,t,r,e,n);break e;case 14:t=Om(null,t,r,Ft(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),bd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Nm(e,t,r,o,n);case 3:e:{if(f1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bv(e,t),fl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Do(Error(R(423)),t),t=Wm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Wm(e,t,r,n,o);break e}else for(dt=Qn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,Vt=null,n=jv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=En(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return Vv(t),e===null&&md(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,cd(r,o)?s=null:i!==null&&cd(r,i)&&(t.flags|=32),d1(e,t),Xe(e,t,s,n),t.child;case 6:return e===null&&md(t),null;case 13:return h1(e,t,n);case 4:return Gf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Vm(e,t,r,o,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,re(cl,r._currentValue),r._currentValue=s,i!==null)if(Ut(i.value,s)){if(i.children===o.children&&!ot.current){t=En(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),gd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),gd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,xo(t,n),o=Mt(o),r=r(o),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Om(e,t,r,o,n);case 15:return u1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ra(e,t),t.tag=1,it(r)?(e=!0,al(t)):e=!1,xo(t,n),s1(t,r,o),vd(t,r,o,n),xd(null,t,r,!0,e,n);case 19:return p1(e,t,n);case 22:return c1(e,t,n)}throw Error(R(156,t.tag))};function A1(e,t){return rv(e,t)}function t2(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 Et(e,t,n,r){return new t2(e,t,n,r)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n2(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pf)return 11;if(e===Ef)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=Et(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 Da(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yr:return Pr(n.children,o,i,t);case _f:s=8,o|=8;break;case Nc:return e=Et(12,n,t,o|2),e.elementType=Nc,e.lanes=i,e;case Wc:return e=Et(13,n,t,o),e.elementType=Wc,e.lanes=i,e;case Uc:return e=Et(19,n,t,o),e.elementType=Uc,e.lanes=i,e;case Vy:return Kl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fy:s=10;break e;case By:s=9;break e;case Pf:s=11;break e;case Ef:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function Kl(e,t,n,r){return e=Et(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function oc(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ic(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2(e,t,n,r,o){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=Bu(0),this.expirationTimes=Bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,o,i,s,a,l){return e=new r2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kf(i),e}function o2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D1)}catch(e){console.error(e)}}D1(),Dy.exports=vt;var hh=Dy.exports,I1,tg=hh;I1=tg.createRoot,tg.hydrateRoot;const $n={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let u2=0;function Ql(e,t){const n=`atom${++u2}`,r={toString(){return($n?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=c2,r.write=d2),t&&(r.write=t),r}function c2(e){return e(this)}function d2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const ng=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,zd=e=>"init"in e,sc=e=>!!e.write,xl=new WeakMap,Dd=e=>{var t;return Id(e)&&!((t=xl.get(e))!=null&&t[1])},f2=(e,t)=>{const n=xl.get(e);if(n)n[1]=!0,n[0].forEach(r=>r(t));else if(($n?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},h2=e=>{if(xl.has(e))return;const t=[new Set,!1];xl.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},Id=e=>typeof(e==null?void 0:e.then)=="function",rg=e=>"v"in e||"e"in e,ua=e=>{if("e"in e)throw e.e;if(($n?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},L1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},og=(e,t,n,r,o)=>{var i;if(($n?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n),Dd(n.v)&&L1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&p2(e,r,t)},li=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),ji=(e,t,n)=>{e[t].add(n)},ig=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),ji(e,"M",()=>{var r;(r=n.m)==null||r.l.forEach(o=>ji(e,"M",o))}))},p2=(e,t,n)=>{const r=e.D.get(t);r&&r.add(n)},m2=(e,t)=>e.D.get(t),pr=e=>{let t,n=!1;const r=o=>{try{o()}catch(i){n||(t=i,n=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},j1=(...[e,t,n,r])=>{const o=(p,h,m)=>{const b="v"in h,C=h.v,E=Dd(h.v)?h.v:null;if(Id(m)){h2(m);for(const k of h.d.keys())L1(p,m,e(k));h.v=m}else h.v=m;delete h.e,delete h.x,(!b||!Object.is(C,h.v))&&(++h.n,E&&f2(E,m))},i=(p,h)=>{var m;const b=e(h);if(rg(b)&&(b.m&&!b.x||Array.from(b.d).every(([M,N])=>i(p,M).n===N)))return b;b.d.clear();let C=!0;const E=M=>{if(ng(h,M)){const he=e(M);if(!rg(he))if(zd(M))o(M,he,M.init);else throw new Error("no atom init");return ua(he)}const N=i(p,M);try{return ua(N)}finally{if(C)og(p,h,b,M,N);else{const he=li();og(he,h,b,M,N),d(he,h,b),pr(he)}}};let k,A;const D={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return($n?"production":void 0)!=="production"&&!sc(h)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&sc(h)&&(A=(...M)=>{if(($n?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)return c(h,...M)}),A}};try{const M=t(h,E,D);if(o(h,b,M),Id(M)){(m=M.onCancel)==null||m.call(M,()=>k==null?void 0:k.abort());const N=()=>{if(b.m){const he=li();d(he,h,b),pr(he)}};M.then(N,N)}return b}catch(M){return delete b.v,b.e=M,delete b.x,++b.n,b}finally{C=!1}},s=p=>ua(i(void 0,p)),a=(p,h,m)=>{var b,C;const E=new Map;for(const k of((b=m.m)==null?void 0:b.t)||[]){const A=e(k);A.m&&E.set(k,A)}for(const k of m.p)E.set(k,e(k));return(C=m2(p,h))==null||C.forEach(k=>{E.set(k,e(k))}),E},l=(p,h,m)=>{const b=[],C=new Set,E=new Set,k=[[h,m]];for(;k.length>0;){const[A,D]=k[k.length-1];if(E.has(A)){k.pop();continue}if(C.has(A)){b.push([A,D,D.n]),E.add(A),D.x=!0,k.pop();continue}C.add(A);for(const[M,N]of a(p,A,D))A!==M&&!C.has(M)&&k.push([M,N])}ji(p,"H",()=>{const A=new Set([h]);for(let D=b.length-1;D>=0;--D){const[M,N,he]=b[D];let xt=!1;for(const Ht of N.d.keys())if(Ht!==M&&A.has(Ht)){xt=!0;break}xt&&(i(p,M),d(p,M,N),he!==N.n&&(ig(p,M,N),A.add(M))),delete N.x}})},u=(p,h,...m)=>{let b=!0;const C=k=>ua(i(p,k)),E=(k,...A)=>{const D=e(k);try{if(ng(h,k)){if(!zd(k))throw new Error("atom not writable");const M=D.n,N=A[0];o(k,D,N),d(p,k,D),M!==D.n&&(ig(p,k,D),l(p,k,D));return}else return u(p,k,...A)}finally{b||pr(p)}};try{return n(h,C,E,...m)}finally{b=!1}},c=(p,...h)=>{const m=li();try{return u(m,p,...h)}finally{pr(m)}},d=(p,h,m)=>{if(m.m&&!Dd(m.v)){for(const b of m.d.keys())m.m.d.has(b)||(f(p,b,e(b)).t.add(h),m.m.d.add(b));for(const b of m.m.d||[])if(!m.d.has(b)){m.m.d.delete(b);const C=y(p,b,e(b));C==null||C.t.delete(h)}}},f=(p,h,m)=>{if(!m.m){i(p,h);for(const b of m.d.keys())f(p,b,e(b)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},sc(h)){const b=m.m;let C;const E=(k,A)=>{let D=!0;C=(...M)=>{try{return u(k,h,...M)}finally{D||pr(k)}};try{return A()}finally{D=!1}};ji(p,"L",()=>{const k=E(p,()=>r(h,(...A)=>C(...A)));k&&(b.u=A=>E(A,k))})}}return m.m},y=(p,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(b=>{var C;return(C=e(b).m)==null?void 0:C.d.has(h)})){const b=m.m.u;b&&ji(p,"L",()=>b(p)),delete m.m;for(const C of m.d.keys()){const E=y(p,C,e(C));E==null||E.t.delete(h)}return}return m.m};return{get:s,set:c,sub:(p,h)=>{const m=li(),b=e(p),E=f(m,p,b).l;return E.add(h),pr(m),()=>{E.delete(h);const k=li();y(k,p,b),pr(k)}},unstable_derive:p=>j1(...p(e,t,n,r))}},g2=e=>{const t=new WeakMap,n=new Set;let r,o=0;const i=e.unstable_derive((l,u,c,d)=>(r=l,[f=>{let y=t.get(f);if(!y){const v=l(f);y=new Proxy(v,{set(S,_,p){return _==="m"&&n.add(f),Reflect.set(S,_,p)},deleteProperty(S,_){return _==="m"&&n.delete(f),Reflect.deleteProperty(S,_)}}),t.set(f,y)}return y},u,(f,y,v,...S)=>o?v(f,...S):c(f,y,v,...S),d])),s=i.set;return Object.assign(i,{dev4_get_internal_weak_map:()=>({get:l=>{const u=r(l);if(u.n!==0)return u}}),dev4_get_mounted_atoms:()=>n,dev4_restore_atoms:l=>{s({read:()=>null,write:(c,d)=>{++o;try{for(const[f,y]of l)zd(f)&&d(f,y)}finally{--o}}})}})},y2=()=>{const e=new WeakMap,n=j1(r=>{if(($n?"production":void 0)!=="production"&&!r)throw new Error("Atom is undefined or null");let o=e.get(r);return o||(o={d:new Map,p:new Set,n:0},e.set(r,o)),o},(r,...o)=>r.read(...o),(r,...o)=>r.write(...o),(r,...o)=>{var i;return(i=r.onMount)==null?void 0:i.call(r,...o)});return($n?"production":void 0)!=="production"?g2(n):n};let ui;const v2=()=>(ui||(ui=y2(),($n?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ui),globalThis.__JOTAI_DEFAULT_STORE__!==ui&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ui),F1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},S2=T.createContext(void 0),B1=e=>T.useContext(S2)||v2(),V1=e=>typeof(e==null?void 0:e.then)=="function",b2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},x2=My.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(b2(e),e)}),ac=new WeakMap,w2=e=>{let t=ac.get(e);return t||(t=new Promise((n,r)=>{let o=e;const i=l=>u=>{o===l&&n(u)},s=l=>u=>{o===l&&r(u)},a=l=>{"onCancel"in l&&typeof l.onCancel=="function"&&l.onCancel(u=>{if((F1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");V1(u)?(ac.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),ac.set(e,t)),t};function k2(e,t){const n=B1(),[[r,o,i],s]=T.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;if((o!==n||i!==e)&&(s(),a=n.get(e)),T.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),T.useDebugValue(a),V1(a)){const u=w2(a);return x2(u)}return a}function Ld(e,t){const n=B1();return T.useCallback((...o)=>{if((F1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function jd(e,t){return[k2(e),Ld(e)]}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function T2(){return!!(globalThis!=null&&globalThis.document)}function _2(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Qt=e=>e?"":void 0,lc=e=>e?!0:void 0;function P2(e){return Array.isArray(e)}function Rt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!P2(e)}function E2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function $2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Fd(e){if(e==null)return e;const{unitless:t}=$2(e);return t||typeof e=="number"?`${e}px`:e}const O1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ph=e=>Object.fromEntries(Object.entries(e).sort(O1));function sg(e){const t=ph(e);return Object.assign(Object.values(t),t)}function A2(e){const t=Object.keys(ph(e));return new Set(t)}function ag(e){if(!e)return e;e=Fd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Si(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Fd(e)})`),t&&n.push("and",`(max-width: ${Fd(t)})`),n.join(" ")}function R2(e){if(!e)return null;e.base=e.base??"0px";const t=sg(e),n=Object.entries(e).sort(O1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?ag(u):void 0,{_minW:ag(s),breakpoint:i,minW:s,maxW:u,maxWQuery:Si(null,u),minWQuery:Si(s),minMaxQuery:Si(s,u)}}),r=A2(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:ph(e),asArray:sg(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Si(i)).slice(1)],toArrayValue(i){if(!Rt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;E2(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function lg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function M2(e){return T.Children.toArray(e).filter(t=>T.isValidElement(t))}function mh(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function z2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=T.createContext(s);a.displayName=t;function l(){var c;const u=T.useContext(a);if(!u&&n){const d=new Error(i??z2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Ye=(...e)=>e.filter(Boolean).join(" ");function D2(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},N1=I2(D2),L2=e=>e.default||e;function W1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function j2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function F2(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Rt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const B2=e=>typeof e=="function";function $t(e,...t){return B2(e)?e(...t):e}function V2(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function ug(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Rt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(o==null?void 0:o(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(c,f)}return l}return t(s,a)}return i(e)}var kl={exports:{}};kl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",v="[object GeneratorFunction]",S="[object Map]",_="[object Number]",p="[object Null]",h="[object Object]",m="[object Proxy]",b="[object RegExp]",C="[object Set]",E="[object String]",k="[object Undefined]",A="[object WeakMap]",D="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",he="[object Float64Array]",xt="[object Int8Array]",Ht="[object Int16Array]",Ls="[object Int32Array]",Nr="[object Uint8Array]",xe="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,J={};J[N]=J[he]=J[xt]=J[Ht]=J[Ls]=J[Nr]=J[xe]=J[z]=J[V]=!0,J[a]=J[l]=J[D]=J[c]=J[M]=J[d]=J[f]=J[y]=J[S]=J[_]=J[h]=J[b]=J[C]=J[E]=J[A]=!1;var Kt=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,Xo=typeof self=="object"&&self&&self.Object===Object&&self,lt=Kt||Xo||Function("return this")(),cr=t&&!t.nodeType&&t,qo=cr&&!0&&e&&!e.nodeType&&e,Tp=qo&&qo.exports===cr,wu=Tp&&Kt.process,_p=function(){try{var g=qo&&qo.require&&qo.require("util").types;return g||wu&&wu.binding&&wu.binding("util")}catch{}}(),Pp=_p&&_p.isTypedArray;function Cx(g,w,$){switch($.length){case 0:return g.call(w);case 1:return g.call(w,$[0]);case 2:return g.call(w,$[0],$[1]);case 3:return g.call(w,$[0],$[1],$[2])}return g.apply(w,$)}function Tx(g,w){for(var $=-1,L=Array(g);++$-1}function Gx(g,w){var $=this.__data__,L=Os($,g);return L<0?(++this.size,$.push([g,w])):$[L][1]=w,this}dn.prototype.clear=Wx,dn.prototype.delete=Ux,dn.prototype.get=Hx,dn.prototype.has=Kx,dn.prototype.set=Gx;function Wr(g){var w=-1,$=g==null?0:g.length;for(this.clear();++w<$;){var L=g[w];this.set(L[0],L[1])}}function Yx(){this.size=0,this.__data__={hash:new fr,map:new(Ip||dn),string:new fr}}function Xx(g){var w=Ws(this,g).delete(g);return this.size-=w?1:0,w}function qx(g){return Ws(this,g).get(g)}function Qx(g){return Ws(this,g).has(g)}function Zx(g,w){var $=Ws(this,g),L=$.size;return $.set(g,w),this.size+=$.size==L?0:1,this}Wr.prototype.clear=Yx,Wr.prototype.delete=Xx,Wr.prototype.get=qx,Wr.prototype.has=Qx,Wr.prototype.set=Zx;function Ur(g){var w=this.__data__=new dn(g);this.size=w.size}function Jx(){this.__data__=new dn,this.size=0}function ew(g){var w=this.__data__,$=w.delete(g);return this.size=w.size,$}function tw(g){return this.__data__.get(g)}function nw(g){return this.__data__.has(g)}function rw(g,w){var $=this.__data__;if($ instanceof dn){var L=$.__data__;if(!Ip||L.length1?$[H-1]:void 0,ce=H>2?$[2]:void 0;for(ne=g.length>3&&typeof ne=="function"?(H--,ne):void 0,ce&&ww($[0],$[1],ce)&&(ne=H<3?void 0:ne,H=1),w=Object(w);++L-1&&g%1==0&&g0){if(++w>=o)return arguments[0]}else w=0;return g.apply(void 0,arguments)}}function Aw(g){if(g!=null){try{return Fs.call(g)}catch{}try{return g+""}catch{}}return""}function Us(g,w){return g===w||g!==g&&w!==w}var Eu=Lp(function(){return arguments}())?Lp:function(g){return Zo(g)&&In.call(g,"callee")&&!zx.call(g,"callee")},$u=Array.isArray;function Au(g){return g!=null&&Op(g.length)&&!Ru(g)}function Rw(g){return Zo(g)&&Au(g)}var Vp=Ix||Lw;function Ru(g){if(!hr(g))return!1;var w=Ns(g);return w==y||w==v||w==u||w==m}function Op(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function hr(g){var w=typeof g;return g!=null&&(w=="object"||w=="function")}function Zo(g){return g!=null&&typeof g=="object"}function Mw(g){if(!Zo(g)||Ns(g)!=h)return!1;var w=Mp(g);if(w===null)return!0;var $=In.call(w,"constructor")&&w.constructor;return typeof $=="function"&&$ instanceof $&&Fs.call($)==Rx}var Np=Pp?_x(Pp):lw;function zw(g){return yw(g,Wp(g))}function Wp(g){return Au(g)?ow(g):uw(g)}var Dw=vw(function(g,w,$,L){jp(g,w,$,L)});function Iw(g){return function(){return g}}function Up(g){return g}function Lw(){return!1}e.exports=Dw})(kl,kl.exports);var O2=kl.exports;const rn=vf(O2);function N2(e,t=[]){const n=T.useRef(e);return T.useEffect(()=>{n.current=e}),T.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Bd=globalThis!=null&&globalThis.document?T.useLayoutEffect:T.useEffect,cg=(e,t)=>{const n=T.useRef(!1),r=T.useRef(!1);T.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function W2(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Vd(...e){return t=>{e.forEach(n=>{W2(n,t)})}}function U2(...e){return T.useMemo(()=>Vd(...e),e)}function H2(e,t){const n=N2(e);T.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ee={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Yt=e=>U1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),fn=e=>U1(t=>e(t,"~ &"),"[data-peer]",".peer"),U1=(e,...t)=>t.map(e).join(", "),ko={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Yt(Ee.open),_groupClosed:Yt(Ee.closed),_groupHover:Yt(Ee.hover),_peerHover:fn(Ee.hover),_groupFocus:Yt(Ee.focus),_peerFocus:fn(Ee.focus),_groupFocusVisible:Yt(Ee.focusVisible),_peerFocusVisible:fn(Ee.focusVisible),_groupActive:Yt(Ee.active),_peerActive:fn(Ee.active),_groupDisabled:Yt(Ee.disabled),_peerDisabled:fn(Ee.disabled),_groupInvalid:Yt(Ee.invalid),_peerInvalid:fn(Ee.invalid),_groupChecked:Yt(Ee.checked),_peerChecked:fn(Ee.checked),_groupFocusWithin:Yt(Ee.focusWithin),_peerFocusWithin:fn(Ee.focusWithin),_peerPlaceholderShown:fn(Ee.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},H1=Object.keys(ko),K2=e=>/!(important)?$/.test(e),dg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,G2=(e,t)=>n=>{const r=String(t),o=K2(r),i=dg(r),s=e?`${e}.${i}`:i;let a=Rt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=dg(a),o?`${a} !important`:a};function gh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=G2(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ca=(...e)=>t=>e.reduce((n,r)=>r(n),t);function wt(e,t){return n=>{const r={property:n,scale:e};return r.transform=gh({scale:e,transform:t}),r}}const Y2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function X2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Y2(t),transform:n?gh({scale:n,compose:r}):r}}const K1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function q2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...K1].join(" ")}function Q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...K1].join(" ")}const Z2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},J2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function eT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const tT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Od={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},nT=new Set(Object.values(Od)),Nd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),rT=e=>e.trim();function oT(e,t){if(e==null||Nd.has(e))return e;if(!(Wd(e)||Nd.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(rT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Od?Od[l]:l;u.unshift(c);const d=u.map(f=>{if(nT.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],_=Wd(S)?S:S&&S.split(" "),p=`colors.${v}`,h=p in t.__cssMap?t.__cssMap[p].varRef:v;return _?[h,...Array.isArray(_)?_:[_]].join(" "):h});return`${a}(${d.join(", ")})`}const Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),iT=(e,t)=>oT(e,t??{});function sT(e){return/^var\(--.+\)$/.test(e)}const aT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Xt=e=>t=>`${e}(${t})`,U={filter(e){return e!=="auto"?e:Z2},backdropFilter(e){return e!=="auto"?e:J2},ring(e){return eT(U.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?q2():e==="auto-gpu"?Q2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=aT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(sT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:iT,blur:Xt("blur"),opacity:Xt("opacity"),brightness:Xt("brightness"),contrast:Xt("contrast"),dropShadow:Xt("drop-shadow"),grayscale:Xt("grayscale"),hueRotate:e=>Xt("hue-rotate")(U.degree(e)),invert:Xt("invert"),saturate:Xt("saturate"),sepia:Xt("sepia"),bgImage(e){return e==null||Wd(e)||Nd.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=tT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},x={borderWidths:wt("borderWidths"),borderStyles:wt("borderStyles"),colors:wt("colors"),borders:wt("borders"),gradients:wt("gradients",U.gradient),radii:wt("radii",U.px),space:wt("space",ca(U.vh,U.px)),spaceT:wt("space",ca(U.vh,U.px)),degreeT(e){return{property:e,transform:U.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:gh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:wt("sizes",ca(U.vh,U.px)),sizesT:wt("sizes",ca(U.vh,U.fraction)),shadows:wt("shadows"),logical:X2,blur:wt("blur",U.blur)},Ia={background:x.colors("background"),backgroundColor:x.colors("backgroundColor"),backgroundImage:x.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:U.bgClip},bgSize:x.prop("backgroundSize"),bgPosition:x.prop("backgroundPosition"),bg:x.colors("background"),bgColor:x.colors("backgroundColor"),bgPos:x.prop("backgroundPosition"),bgRepeat:x.prop("backgroundRepeat"),bgAttachment:x.prop("backgroundAttachment"),bgGradient:x.gradients("backgroundImage"),bgClip:{transform:U.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});const Y={border:x.borders("border"),borderWidth:x.borderWidths("borderWidth"),borderStyle:x.borderStyles("borderStyle"),borderColor:x.colors("borderColor"),borderRadius:x.radii("borderRadius"),borderTop:x.borders("borderTop"),borderBlockStart:x.borders("borderBlockStart"),borderTopLeftRadius:x.radii("borderTopLeftRadius"),borderStartStartRadius:x.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:x.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:x.radii("borderTopRightRadius"),borderStartEndRadius:x.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:x.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:x.borders("borderRight"),borderInlineEnd:x.borders("borderInlineEnd"),borderBottom:x.borders("borderBottom"),borderBlockEnd:x.borders("borderBlockEnd"),borderBottomLeftRadius:x.radii("borderBottomLeftRadius"),borderBottomRightRadius:x.radii("borderBottomRightRadius"),borderLeft:x.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:x.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:x.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:x.borders(["borderLeft","borderRight"]),borderInline:x.borders("borderInline"),borderY:x.borders(["borderTop","borderBottom"]),borderBlock:x.borders("borderBlock"),borderTopWidth:x.borderWidths("borderTopWidth"),borderBlockStartWidth:x.borderWidths("borderBlockStartWidth"),borderTopColor:x.colors("borderTopColor"),borderBlockStartColor:x.colors("borderBlockStartColor"),borderTopStyle:x.borderStyles("borderTopStyle"),borderBlockStartStyle:x.borderStyles("borderBlockStartStyle"),borderBottomWidth:x.borderWidths("borderBottomWidth"),borderBlockEndWidth:x.borderWidths("borderBlockEndWidth"),borderBottomColor:x.colors("borderBottomColor"),borderBlockEndColor:x.colors("borderBlockEndColor"),borderBottomStyle:x.borderStyles("borderBottomStyle"),borderBlockEndStyle:x.borderStyles("borderBlockEndStyle"),borderLeftWidth:x.borderWidths("borderLeftWidth"),borderInlineStartWidth:x.borderWidths("borderInlineStartWidth"),borderLeftColor:x.colors("borderLeftColor"),borderInlineStartColor:x.colors("borderInlineStartColor"),borderLeftStyle:x.borderStyles("borderLeftStyle"),borderInlineStartStyle:x.borderStyles("borderInlineStartStyle"),borderRightWidth:x.borderWidths("borderRightWidth"),borderInlineEndWidth:x.borderWidths("borderInlineEndWidth"),borderRightColor:x.colors("borderRightColor"),borderInlineEndColor:x.colors("borderInlineEndColor"),borderRightStyle:x.borderStyles("borderRightStyle"),borderInlineEndStyle:x.borderStyles("borderInlineEndStyle"),borderTopRadius:x.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:x.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:x.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:x.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});const lT={color:x.colors("color"),textColor:x.colors("color"),fill:x.colors("fill"),stroke:x.colors("stroke"),accentColor:x.colors("accentColor"),textFillColor:x.colors("textFillColor")},Cl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:U.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:x.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:x.space("gap"),rowGap:x.space("rowGap"),columnGap:x.space("columnGap")};Object.assign(Cl,{flexDir:Cl.flexDirection});const Ct={width:x.sizesT("width"),inlineSize:x.sizesT("inlineSize"),height:x.sizes("height"),blockSize:x.sizes("blockSize"),boxSize:x.sizes(["width","height"]),minWidth:x.sizes("minWidth"),minInlineSize:x.sizes("minInlineSize"),minHeight:x.sizes("minHeight"),minBlockSize:x.sizes("minBlockSize"),maxWidth:x.sizes("maxWidth"),maxInlineSize:x.sizes("maxInlineSize"),maxHeight:x.sizes("maxHeight"),maxBlockSize:x.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:x.propT("float",U.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ct,{w:Ct.width,h:Ct.height,minW:Ct.minWidth,maxW:Ct.maxWidth,minH:Ct.minHeight,maxH:Ct.maxHeight,overscroll:Ct.overscrollBehavior,overscrollX:Ct.overscrollBehaviorX,overscrollY:Ct.overscrollBehaviorY});const uT={filter:{transform:U.filter},blur:x.blur("--chakra-blur"),brightness:x.propT("--chakra-brightness",U.brightness),contrast:x.propT("--chakra-contrast",U.contrast),hueRotate:x.propT("--chakra-hue-rotate",U.hueRotate),invert:x.propT("--chakra-invert",U.invert),saturate:x.propT("--chakra-saturate",U.saturate),dropShadow:x.propT("--chakra-drop-shadow",U.dropShadow),backdropFilter:{transform:U.backdropFilter},backdropBlur:x.blur("--chakra-backdrop-blur"),backdropBrightness:x.propT("--chakra-backdrop-brightness",U.brightness),backdropContrast:x.propT("--chakra-backdrop-contrast",U.contrast),backdropHueRotate:x.propT("--chakra-backdrop-hue-rotate",U.hueRotate),backdropInvert:x.propT("--chakra-backdrop-invert",U.invert),backdropSaturate:x.propT("--chakra-backdrop-saturate",U.saturate)},cT={ring:{transform:U.ring},ringColor:x.colors("--chakra-ring-color"),ringOffset:x.prop("--chakra-ring-offset-width"),ringOffsetColor:x.colors("--chakra-ring-offset-color"),ringInset:x.prop("--chakra-ring-inset")},dT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:U.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},G1={gridGap:x.space("gridGap"),gridColumnGap:x.space("gridColumnGap"),gridRowGap:x.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function fT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},pT=hT(fT),mT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},uc=(e,t,n)=>{const r={},o=pT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},yT={srOnly:{transform(e){return e===!0?mT:e==="focusable"?gT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>uc(t,e,n)}},Fi={position:!0,pos:x.prop("position"),zIndex:x.prop("zIndex","zIndices"),inset:x.spaceT("inset"),insetX:x.spaceT(["left","right"]),insetInline:x.spaceT("insetInline"),insetY:x.spaceT(["top","bottom"]),insetBlock:x.spaceT("insetBlock"),top:x.spaceT("top"),insetBlockStart:x.spaceT("insetBlockStart"),bottom:x.spaceT("bottom"),insetBlockEnd:x.spaceT("insetBlockEnd"),left:x.spaceT("left"),insetInlineStart:x.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:x.spaceT("right"),insetInlineEnd:x.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Fi,{insetStart:Fi.insetInlineStart,insetEnd:Fi.insetInlineEnd});const Ud={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});const se={margin:x.spaceT("margin"),marginTop:x.spaceT("marginTop"),marginBlockStart:x.spaceT("marginBlockStart"),marginRight:x.spaceT("marginRight"),marginInlineEnd:x.spaceT("marginInlineEnd"),marginBottom:x.spaceT("marginBottom"),marginBlockEnd:x.spaceT("marginBlockEnd"),marginLeft:x.spaceT("marginLeft"),marginInlineStart:x.spaceT("marginInlineStart"),marginX:x.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:x.spaceT("marginInline"),marginY:x.spaceT(["marginTop","marginBottom"]),marginBlock:x.spaceT("marginBlock"),padding:x.space("padding"),paddingTop:x.space("paddingTop"),paddingBlockStart:x.space("paddingBlockStart"),paddingRight:x.space("paddingRight"),paddingBottom:x.space("paddingBottom"),paddingBlockEnd:x.space("paddingBlockEnd"),paddingLeft:x.space("paddingLeft"),paddingInlineStart:x.space("paddingInlineStart"),paddingInlineEnd:x.space("paddingInlineEnd"),paddingX:x.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:x.space("paddingInline"),paddingY:x.space(["paddingTop","paddingBottom"]),paddingBlock:x.space("paddingBlock")};Object.assign(se,{m:se.margin,mt:se.marginTop,mr:se.marginRight,me:se.marginInlineEnd,marginEnd:se.marginInlineEnd,mb:se.marginBottom,ml:se.marginLeft,ms:se.marginInlineStart,marginStart:se.marginInlineStart,mx:se.marginX,my:se.marginY,p:se.padding,pt:se.paddingTop,py:se.paddingY,px:se.paddingX,pb:se.paddingBottom,pl:se.paddingLeft,ps:se.paddingInlineStart,paddingStart:se.paddingInlineStart,pr:se.paddingRight,pe:se.paddingInlineEnd,paddingEnd:se.paddingInlineEnd});const vT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:x.spaceT("scrollMargin"),scrollMarginTop:x.spaceT("scrollMarginTop"),scrollMarginBottom:x.spaceT("scrollMarginBottom"),scrollMarginLeft:x.spaceT("scrollMarginLeft"),scrollMarginRight:x.spaceT("scrollMarginRight"),scrollMarginX:x.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:x.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:x.spaceT("scrollPadding"),scrollPaddingTop:x.spaceT("scrollPaddingTop"),scrollPaddingBottom:x.spaceT("scrollPaddingBottom"),scrollPaddingLeft:x.spaceT("scrollPaddingLeft"),scrollPaddingRight:x.spaceT("scrollPaddingRight"),scrollPaddingX:x.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:x.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},ST={fontFamily:x.prop("fontFamily","fonts"),fontSize:x.prop("fontSize","fontSizes",U.px),fontWeight:x.prop("fontWeight","fontWeights"),lineHeight:x.prop("lineHeight","lineHeights"),letterSpacing:x.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},bT={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},xT={clipPath:!0,transform:x.propT("transform",U.transform),transformOrigin:!0,translateX:x.spaceT("--chakra-translate-x"),translateY:x.spaceT("--chakra-translate-y"),skewX:x.degreeT("--chakra-skew-x"),skewY:x.degreeT("--chakra-skew-y"),scaleX:x.prop("--chakra-scale-x"),scaleY:x.prop("--chakra-scale-y"),scale:x.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:x.degreeT("--chakra-rotate")},wT={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")},kT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:x.prop("transitionDuration","transition.duration"),transitionProperty:x.prop("transitionProperty","transition.property"),transitionTimingFunction:x.prop("transitionTimingFunction","transition.easing")},yh=rn({},Ia,Y,lT,Cl,Ct,uT,cT,dT,G1,yT,Fi,Ud,se,vT,ST,bT,xT,wT,kT);Object.assign({},se,Ct,Cl,G1,Fi);const CT=[...Object.keys(yh),...H1],TT={...yh,...ko},_T=e=>e in TT,PT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=$t(e[s],t);if(a==null)continue;if(a=Rt(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!$T(t),RT=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=ET(t);return t=n(o)??r(i)??r(t),t};function MT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=$t(i,r),l=PT(a)(r);let u={};for(let d in l){const f=l[d];let y=$t(f,r);d in n&&(d=n[d]),AT(d,y)&&(y=RT(r,y));let v=t[d];if(v===!0&&(v={property:d}),Rt(y)){u[d]=u[d]??{},u[d]=rn({},u[d],o(y,!0));continue}let S=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,y,r,a))??y;S=v!=null&&v.processResult?o(S,!0):S;const _=$t(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const p=$t(v.static,r);u=rn({},u,p)}if(_&&Array.isArray(_)){for(const p of _)u[p]=S;continue}if(_){_==="&"&&Rt(S)?u=rn({},u,S):u[_]=S;continue}if(Rt(S)){u=rn({},u,S);continue}u[d]=S}return u};return o}const Y1=e=>t=>MT({theme:t,pseudos:ko,configs:yh})(e);function oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function zT(e,t){if(Array.isArray(e))return e;if(Rt(e))return t(e);if(e!=null)return[e]}function DT(e,t){for(let n=t+1;n{rn(a,{[m]:c?h[m]:{[p]:h[m]}})});continue}if(!d){c?rn(a,h):a[p]=h;continue}a[p]=h}}return a}}function LT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=IT(o);return rn({},$t(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Dn(e){return W1(e,["styleConfig","size","variant","colorScheme"])}function X1(e){return Rt(e)&&e.reference?e.reference:String(e)}const Zl=(e,...t)=>t.map(X1).join(` ${e} `).replace(/calc/g,""),fg=(...e)=>`calc(${Zl("+",...e)})`,hg=(...e)=>`calc(${Zl("-",...e)})`,Hd=(...e)=>`calc(${Zl("*",...e)})`,pg=(...e)=>`calc(${Zl("/",...e)})`,mg=e=>{const t=X1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},mn=Object.assign(e=>({add:(...t)=>mn(fg(e,...t)),subtract:(...t)=>mn(hg(e,...t)),multiply:(...t)=>mn(Hd(e,...t)),divide:(...t)=>mn(pg(e,...t)),negate:()=>mn(mg(e)),toString:()=>e.toString()}),{add:fg,subtract:hg,multiply:Hd,divide:pg,negate:mg});function jT(e,t="-"){return e.replace(/\s+/g,t)}function FT(e){const t=jT(e.toString());return VT(BT(t))}function BT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function VT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function OT(e,t=""){return[t,e].filter(Boolean).join("-")}function NT(e,t){return`var(${e}${t?`, ${t}`:""})`}function WT(e,t=""){return FT(`--${OT(e,t)}`)}function F(e,t,n){const r=WT(e,n);return{variable:r,reference:NT(r,t)}}function UT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=F(`${e}-${o}`,i);continue}n[r]=F(`${e}-${r}`)}return n}const HT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function KT(e){return j2(e,HT)}function GT(e){return e.semanticTokens}function YT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function XT(e){const t=KT(e),n=GT(e),r=i=>H1.includes(i)||i==="default",o={};return ug(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),ug(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function gg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function qT(e){var s;const t=XT(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=gg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=gg(a,n);if(!u){if(a.startsWith("space")){const v=a.split("."),[S,..._]=v,p=`${S}.-${_.join(".")}`,h=mn.negate(c),m=mn.negate(f);o[p]={value:h,var:d,varRef:m}}r[d]=c,o[a]={value:c,var:d,varRef:f};continue}const y=Rt(c)?c:{default:c};r=rn(r,Object.entries(y).reduce((v,[S,_])=>{if(!_)return v;const p=i(a,`${_}`);if(S==="default")return v[d]=p,v;const h=(ko==null?void 0:ko[S])??S;return v[h]={[d]:p},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function QT(e){const t=YT(e),{cssMap:n,cssVars:r}=qT(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:R2(t.breakpoints)}),t}function Z(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return Z(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Z(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const ZT=Z("accordion").parts("root","container","button","panel","icon"),JT=Z("alert").parts("title","description","container","icon","spinner"),e_=Z("avatar").parts("label","badge","container","excessLabel","group"),t_=Z("breadcrumb").parts("link","item","container","separator");Z("button").parts();const n_=Z("checkbox").parts("control","icon","container","label");Z("progress").parts("track","filledTrack","label");const r_=Z("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),o_=Z("editable").parts("preview","input","textarea"),i_=Z("form").parts("container","requiredIndicator","helperText"),s_=Z("formError").parts("text","icon"),a_=Z("input").parts("addon","field","element","group"),l_=Z("list").parts("container","item","icon"),u_=Z("menu").parts("button","list","item","groupTitle","icon","command","divider"),c_=Z("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),d_=Z("numberinput").parts("root","field","stepperGroup","stepper");Z("pininput").parts("field");const f_=Z("popover").parts("content","header","body","footer","popper","arrow","closeButton"),h_=Z("progress").parts("label","filledTrack","track"),p_=Z("radio").parts("container","control","label"),m_=Z("select").parts("field","icon"),g_=Z("slider").parts("container","track","thumb","filledTrack","mark"),y_=Z("stat").parts("container","label","helpText","number","icon"),v_=Z("switch").parts("container","track","thumb","label"),S_=Z("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),b_=Z("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),x_=Z("tag").parts("container","label","closeButton"),w_=Z("card").parts("container","header","body","footer");Z("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:k_,defineMultiStyleConfig:C_}=oe(ZT.keys),T_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},__={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},P_={pt:"2",px:"4",pb:"5"},E_={fontSize:"1.25em"},$_=k_({container:T_,button:__,panel:P_,icon:E_}),A_=C_({baseStyle:$_});function Cr(e,t,n){return Math.min(Math.max(e,n),t)}class R_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var bi=R_;function vh(e){if(typeof e!="string")throw new bi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=B_.test(e)?D_(e):e;const n=I_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ds(a,2),16)),parseInt(ds(s[3]||"f",2),16)/255]}const r=L_.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=j_.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=F_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Cr(0,100,a)!==a)throw new bi(e);if(Cr(0,100,l)!==l)throw new bi(e);return[...V_(s,a,l),Number.isNaN(u)?1:u]}throw new bi(e)}function M_(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const yg=e=>parseInt(e.replace(/_/g,""),36),z_="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=yg(t.substring(0,3)),r=yg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function D_(e){const t=e.toLowerCase().trim(),n=z_[M_(t)];if(!n)throw new bi(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),I_=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),L_=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),j_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),F_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,B_=/^[a-z]+$/i,vg=e=>Math.round(e*255),V_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(vg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(vg)};function O_(e,t,n,r){return`rgba(${Cr(0,255,e).toFixed()}, ${Cr(0,255,t).toFixed()}, ${Cr(0,255,n).toFixed()}, ${parseFloat(Cr(0,1,r).toFixed(3))})`}function N_(e,t){const[n,r,o,i]=vh(e);return O_(n,r,o,i-t)}function W_(e){const[t,n,r,o]=vh(e);let i=s=>{const a=Cr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const U_=e=>Object.keys(e).length===0;function H_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=H_(e,`colors.${t}`,t);try{return W_(r),r}catch{return"#000000"}},K_=e=>{const[t,n,r]=vh(e);return(t*299+n*587+r*114)/1e3},G_=e=>t=>{const n=qe(t,e);return K_(n)<128?"dark":"light"},Y_=e=>t=>G_(e)(t)==="dark",Lo=(e,t)=>n=>{const r=qe(n,e);return N_(r,1-t)};function Sg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const X_=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function q_(e){const t=X_();return!e||U_(e)?t:e.string&&e.colors?Z_(e.string,e.colors):e.string&&!e.colors?Q_(e.string):e.colors&&!e.string?J_(e.colors):t}function Q_(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function Z_(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Sh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function q1(e){return Rt(e)&&e.reference?e.reference:String(e)}const Jl=(e,...t)=>t.map(q1).join(` ${e} `).replace(/calc/g,""),bg=(...e)=>`calc(${Jl("+",...e)})`,xg=(...e)=>`calc(${Jl("-",...e)})`,Kd=(...e)=>`calc(${Jl("*",...e)})`,wg=(...e)=>`calc(${Jl("/",...e)})`,kg=e=>{const t=q1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Kd(t,-1)},gn=Object.assign(e=>({add:(...t)=>gn(bg(e,...t)),subtract:(...t)=>gn(xg(e,...t)),multiply:(...t)=>gn(Kd(e,...t)),divide:(...t)=>gn(wg(e,...t)),negate:()=>gn(kg(e)),toString:()=>e.toString()}),{add:bg,subtract:xg,multiply:Kd,divide:wg,negate:kg});function eP(e){return!Number.isInteger(parseFloat(e.toString()))}function tP(e,t="-"){return e.replace(/\s+/g,t)}function Q1(e){const t=tP(e.toString());return t.includes("\\.")?e:eP(e)?t.replace(".","\\."):e}function nP(e,t=""){return[t,Q1(e)].filter(Boolean).join("-")}function rP(e,t){return`var(${Q1(e)}${t?`, ${t}`:""})`}function oP(e,t=""){return`--${nP(e,t)}`}function Re(e,t){const n=oP(e,t==null?void 0:t.prefix);return{variable:n,reference:rP(n,iP(t==null?void 0:t.fallback))}}function iP(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:sP}=oe(JT.keys),ht=F("alert-fg"),An=F("alert-bg"),aP=Es({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function bh(e){const{theme:t,colorScheme:n}=e,r=Lo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const lP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),uP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ht.reference}}}),cP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ht.reference}}}),dP=Es(e=>{const{colorScheme:t}=e;return{container:{[ht.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[ht.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:ht.reference}}}),fP={subtle:lP,"left-accent":uP,"top-accent":cP,solid:dP},hP=sP({baseStyle:aP,variants:fP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Z1={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},pP={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},mP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},J1={...Z1,...pP,container:mP},gP=e=>typeof e=="function";function Ze(e,...t){return gP(e)?e(...t):e}const{definePartsStyle:eS,defineMultiStyleConfig:yP}=oe(e_.keys),Co=F("avatar-border-color"),Bi=F("avatar-bg"),fs=F("avatar-font-size"),jo=F("avatar-size"),vP={borderRadius:"full",border:"0.2em solid",borderColor:Co.reference,[Co.variable]:"white",_dark:{[Co.variable]:"colors.gray.800"}},SP={bg:Bi.reference,fontSize:fs.reference,width:jo.reference,height:jo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},bP=e=>{const{name:t,theme:n}=e,r=t?q_({string:t}):"colors.gray.400",o=Y_(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:fs.reference,color:i,borderColor:Co.reference,verticalAlign:"top",width:jo.reference,height:jo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[Co.variable]:"colors.white",_dark:{[Co.variable]:"colors.gray.800"}}},xP={fontSize:fs.reference,lineHeight:"1"},wP=eS(e=>({badge:Ze(vP,e),excessLabel:Ze(SP,e),container:Ze(bP,e),label:xP}));function jn(e){const t=e!=="100%"?J1[e]:void 0;return eS({container:{[jo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[jo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`}})}const kP={"2xs":jn(4),xs:jn(6),sm:jn(8),md:jn(12),lg:jn(16),xl:jn(24),"2xl":jn(32),full:jn("100%")},CP=yP({baseStyle:wP,sizes:kP,defaultProps:{size:"md"}}),Ce=UT("badge",["bg","color","shadow"]),TP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},_P=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.500`,.6)(n);return{[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:"colors.whiteAlpha.800"}}},PP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.16)(n);return{[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:`colors.${t}.200`}}},EP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.8)(n);return{[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:r},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},$P={solid:_P,subtle:PP,outline:EP},Vi={baseStyle:TP,variants:$P,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:AP,definePartsStyle:RP}=oe(t_.keys),cc=F("breadcrumb-link-decor"),MP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:cc.reference,[cc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[cc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},zP=RP({link:MP}),DP=AP({baseStyle:zP}),IP={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},tS=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=Lo(`${t}.200`,.12)(n),o=Lo(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},LP=e=>{const{colorScheme:t}=e,n=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ze(tS,e)}},jP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},FP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=jP[t]??{},s=j(n,`${t}.200`)(e);return{bg:s,color:j(r,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},BP=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},VP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},OP={ghost:tS,outline:LP,solid:FP,link:BP,unstyled:VP},NP={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},WP={baseStyle:IP,variants:OP,sizes:NP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Er,defineMultiStyleConfig:UP}=oe(w_.keys),Tl=F("card-bg"),wn=F("card-padding"),nS=F("card-shadow"),La=F("card-radius"),rS=F("card-border-width","0"),oS=F("card-border-color"),HP=Er({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:nS.reference,borderRadius:La.reference,color:"chakra-body-text",borderWidth:rS.reference,borderColor:oS.reference},body:{padding:wn.reference,flex:"1 1 0%"},header:{padding:wn.reference},footer:{padding:wn.reference}}),KP={sm:Er({container:{[La.variable]:"radii.base",[wn.variable]:"space.3"}}),md:Er({container:{[La.variable]:"radii.md",[wn.variable]:"space.5"}}),lg:Er({container:{[La.variable]:"radii.xl",[wn.variable]:"space.7"}})},GP={elevated:Er({container:{[nS.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Er({container:{[rS.variable]:"1px",[oS.variable]:"colors.chakra-border-color"}}),filled:Er({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[wn.variable]:0},header:{[wn.variable]:0},footer:{[wn.variable]:0}}},YP=UP({baseStyle:HP,variants:GP,sizes:KP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ja,defineMultiStyleConfig:XP}=oe(n_.keys),Oi=F("checkbox-size"),qP=e=>{const{colorScheme:t}=e;return{w:Oi.reference,h:Oi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},QP={_disabled:{cursor:"not-allowed"}},ZP={userSelect:"none",_disabled:{opacity:.4}},JP={transitionProperty:"transform",transitionDuration:"normal"},eE=ja(e=>({icon:JP,container:QP,control:Ze(qP,e),label:ZP})),tE={sm:ja({control:{[Oi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ja({control:{[Oi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ja({control:{[Oi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Nn=XP({baseStyle:eE,sizes:tE,defaultProps:{size:"md",colorScheme:"blue"}}),Ni=Re("close-button-size"),ci=Re("close-button-bg"),nE={w:[Ni.reference],h:[Ni.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ci.variable]:"colors.blackAlpha.100",_dark:{[ci.variable]:"colors.whiteAlpha.100"}},_active:{[ci.variable]:"colors.blackAlpha.200",_dark:{[ci.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ci.reference},rE={lg:{[Ni.variable]:"sizes.10",fontSize:"md"},md:{[Ni.variable]:"sizes.8",fontSize:"xs"},sm:{[Ni.variable]:"sizes.6",fontSize:"2xs"}},oE={baseStyle:nE,sizes:rE,defaultProps:{size:"md"}},{variants:iE,defaultProps:sE}=Vi,aE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},lE={baseStyle:aE,variants:iE,defaultProps:sE},uE={w:"100%",mx:"auto",maxW:"prose",px:"4"},cE={baseStyle:uE},dE={opacity:.6,borderColor:"inherit"},fE={borderStyle:"solid"},hE={borderStyle:"dashed"},pE={solid:fE,dashed:hE},mE={baseStyle:dE,variants:pE,defaultProps:{variant:"solid"}},{definePartsStyle:Gd,defineMultiStyleConfig:gE}=oe(r_.keys),dc=F("drawer-bg"),fc=F("drawer-box-shadow");function Kr(e){return Gd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const yE={bg:"blackAlpha.600",zIndex:"modal"},vE={display:"flex",zIndex:"modal",justifyContent:"center"},SE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[dc.variable]:"colors.white",[fc.variable]:"shadows.lg",_dark:{[dc.variable]:"colors.gray.700",[fc.variable]:"shadows.dark-lg"},bg:dc.reference,boxShadow:fc.reference}},bE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xE={position:"absolute",top:"2",insetEnd:"3"},wE={px:"6",py:"2",flex:"1",overflow:"auto"},kE={px:"6",py:"4"},CE=Gd(e=>({overlay:yE,dialogContainer:vE,dialog:Ze(SE,e),header:bE,closeButton:xE,body:wE,footer:kE})),TE={xs:Kr("xs"),sm:Kr("md"),md:Kr("lg"),lg:Kr("2xl"),xl:Kr("4xl"),full:Kr("full")},_E=gE({baseStyle:CE,sizes:TE,defaultProps:{size:"xs"}}),{definePartsStyle:PE,defineMultiStyleConfig:EE}=oe(o_.keys),$E={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},AE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},RE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ME=PE({preview:$E,input:AE,textarea:RE}),zE=EE({baseStyle:ME}),{definePartsStyle:DE,defineMultiStyleConfig:IE}=oe(i_.keys),To=F("form-control-color"),LE={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},jE={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},FE=DE({container:{width:"100%",position:"relative"},requiredIndicator:LE,helperText:jE}),BE=IE({baseStyle:FE}),{definePartsStyle:VE,defineMultiStyleConfig:OE}=oe(s_.keys),_o=F("form-error-color"),NE={[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},WE={marginEnd:"0.5em",[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference},UE=VE({text:NE,icon:WE}),HE=OE({baseStyle:UE}),KE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},GE={baseStyle:KE},YE={fontFamily:"heading",fontWeight:"bold"},XE={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},qE={baseStyle:YE,sizes:XE,defaultProps:{size:"xl"}},{definePartsStyle:bn,defineMultiStyleConfig:QE}=oe(a_.keys),io=F("input-height"),so=F("input-font-size"),ao=F("input-padding"),lo=F("input-border-radius"),ZE=bn({addon:{height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference},field:{width:"100%",height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Fn={lg:{[so.variable]:"fontSizes.lg",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.12"},md:{[so.variable]:"fontSizes.md",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.10"},sm:{[so.variable]:"fontSizes.sm",[ao.variable]:"space.3",[lo.variable]:"radii.sm",[io.variable]:"sizes.8"},xs:{[so.variable]:"fontSizes.xs",[ao.variable]:"space.2",[lo.variable]:"radii.sm",[io.variable]:"sizes.6"}},JE={lg:bn({field:Fn.lg,group:Fn.lg}),md:bn({field:Fn.md,group:Fn.md}),sm:bn({field:Fn.sm,group:Fn.sm}),xs:bn({field:Fn.xs,group:Fn.xs})};function xh(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}const e5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qe(t,r),boxShadow:`0 0 0 1px ${qe(t,r)}`},_focusVisible:{zIndex:1,borderColor:qe(t,n),boxShadow:`0 0 0 1px ${qe(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),t5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qe(t,r)},_focusVisible:{bg:"transparent",borderColor:qe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),n5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:qe(t,r),boxShadow:`0px 1px 0px 0px ${qe(t,r)}`},_focusVisible:{borderColor:qe(t,n),boxShadow:`0px 1px 0px 0px ${qe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),r5=bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),o5={outline:e5,filled:t5,flushed:n5,unstyled:r5},Q=QE({baseStyle:ZE,sizes:JE,variants:o5,defaultProps:{size:"md",variant:"outline"}}),hc=F("kbd-bg"),i5={[hc.variable]:"colors.gray.100",_dark:{[hc.variable]:"colors.whiteAlpha.100"},bg:hc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},s5={baseStyle:i5},a5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},l5={baseStyle:a5},{defineMultiStyleConfig:u5,definePartsStyle:c5}=oe(l_.keys),d5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},f5=c5({icon:d5}),h5=u5({baseStyle:f5}),{defineMultiStyleConfig:p5,definePartsStyle:m5}=oe(u_.keys),Zt=F("menu-bg"),pc=F("menu-shadow"),g5={[Zt.variable]:"#fff",[pc.variable]:"shadows.sm",_dark:{[Zt.variable]:"colors.gray.700",[pc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Zt.reference,boxShadow:pc.reference},y5={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_active:{[Zt.variable]:"colors.gray.200",_dark:{[Zt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Zt.reference},v5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},S5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},b5={opacity:.6},x5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},w5={transitionProperty:"common",transitionDuration:"normal"},k5=m5({button:w5,list:g5,item:y5,groupTitle:v5,icon:S5,command:b5,divider:x5}),C5=p5({baseStyle:k5}),{defineMultiStyleConfig:T5,definePartsStyle:Yd}=oe(c_.keys),mc=F("modal-bg"),gc=F("modal-shadow"),_5={bg:"blackAlpha.600",zIndex:"modal"},P5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},E5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[mc.variable]:"colors.white",[gc.variable]:"shadows.lg",_dark:{[mc.variable]:"colors.gray.700",[gc.variable]:"shadows.dark-lg"},bg:mc.reference,boxShadow:gc.reference}},$5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},A5={position:"absolute",top:"2",insetEnd:"3"},R5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},M5={px:"6",py:"4"},z5=Yd(e=>({overlay:_5,dialogContainer:Ze(P5,e),dialog:Ze(E5,e),header:$5,closeButton:A5,body:Ze(R5,e),footer:M5}));function Lt(e){return Yd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const D5={xs:Lt("xs"),sm:Lt("sm"),md:Lt("md"),lg:Lt("lg"),xl:Lt("xl"),"2xl":Lt("2xl"),"3xl":Lt("3xl"),"4xl":Lt("4xl"),"5xl":Lt("5xl"),"6xl":Lt("6xl"),full:Lt("full")},I5=T5({baseStyle:z5,sizes:D5,defaultProps:{size:"md"}}),iS={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:L5,definePartsStyle:sS}=oe(d_.keys),wh=Re("number-input-stepper-width"),aS=Re("number-input-input-padding"),j5=gn(wh).add("0.5rem").toString(),yc=Re("number-input-bg"),vc=Re("number-input-color"),Sc=Re("number-input-border-color"),F5={[wh.variable]:"sizes.6",[aS.variable]:j5},B5=e=>{var t;return((t=Ze(Q.baseStyle,e))==null?void 0:t.field)??{}},V5={width:wh.reference},O5={borderStart:"1px solid",borderStartColor:Sc.reference,color:vc.reference,bg:yc.reference,[vc.variable]:"colors.chakra-body-text",[Sc.variable]:"colors.chakra-border-color",_dark:{[vc.variable]:"colors.whiteAlpha.800",[Sc.variable]:"colors.whiteAlpha.300"},_active:{[yc.variable]:"colors.gray.200",_dark:{[yc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},N5=sS(e=>({root:F5,field:Ze(B5,e)??{},stepperGroup:V5,stepper:O5}));function da(e){var i,s;const t=(i=Q.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=iS.fontSizes[r];return sS({field:{...t.field,paddingInlineEnd:aS.reference,verticalAlign:"top"},stepper:{fontSize:gn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const W5={xs:da("xs"),sm:da("sm"),md:da("md"),lg:da("lg")},U5=L5({baseStyle:N5,sizes:W5,variants:Q.variants,defaultProps:Q.defaultProps});var iy;const H5={...(iy=Q.baseStyle)==null?void 0:iy.field,textAlign:"center"},K5={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var sy;const G5={outline:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((sy=Q.variants)==null?void 0:sy.unstyled.field)??{}},Y5={baseStyle:H5,sizes:K5,variants:G5,defaultProps:Q.defaultProps},{defineMultiStyleConfig:X5,definePartsStyle:q5}=oe(f_.keys),fa=Re("popper-bg"),Q5=Re("popper-arrow-bg"),Cg=Re("popper-arrow-shadow-color"),Z5={zIndex:"popover"},J5={[fa.variable]:"colors.white",bg:fa.reference,[Q5.variable]:fa.reference,[Cg.variable]:"colors.gray.200",_dark:{[fa.variable]:"colors.gray.700",[Cg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},e$={px:3,py:2,borderBottomWidth:"1px"},t$={px:3,py:2},n$={px:3,py:2,borderTopWidth:"1px"},r$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},o$=q5({popper:Z5,content:J5,header:e$,body:t$,footer:n$,closeButton:r$}),i$=X5({baseStyle:o$}),{defineMultiStyleConfig:s$,definePartsStyle:xi}=oe(h_.keys),a$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(Sg(),Sg("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${qe(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},l$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},u$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),c$=e=>({transitionProperty:"common",transitionDuration:"slow",...a$(e)}),d$=xi(e=>({label:l$,filledTrack:c$(e),track:u$(e)})),f$={xs:xi({track:{h:"1"}}),sm:xi({track:{h:"2"}}),md:xi({track:{h:"3"}}),lg:xi({track:{h:"4"}})},h$=s$({sizes:f$,baseStyle:d$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:p$,definePartsStyle:Fa}=oe(p_.keys),m$=e=>{var n;const t=(n=Ze(Nn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},g$=Fa(e=>{var t,n;return{label:(t=Nn.baseStyle)==null?void 0:t.call(Nn,e).label,container:(n=Nn.baseStyle)==null?void 0:n.call(Nn,e).container,control:m$(e)}}),y$={md:Fa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Fa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Fa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},v$=p$({baseStyle:g$,sizes:y$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S$,definePartsStyle:b$}=oe(m_.keys),ha=F("select-bg");var ay;const x$={...(ay=Q.baseStyle)==null?void 0:ay.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ha.reference,[ha.variable]:"colors.white",_dark:{[ha.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ha.reference}},w$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},k$=b$({field:x$,icon:w$}),pa={paddingInlineEnd:"8"};var ly,uy,cy,dy,fy,hy,py,my;const C$={lg:{...(ly=Q.sizes)==null?void 0:ly.lg,field:{...(uy=Q.sizes)==null?void 0:uy.lg.field,...pa}},md:{...(cy=Q.sizes)==null?void 0:cy.md,field:{...(dy=Q.sizes)==null?void 0:dy.md.field,...pa}},sm:{...(fy=Q.sizes)==null?void 0:fy.sm,field:{...(hy=Q.sizes)==null?void 0:hy.sm.field,...pa}},xs:{...(py=Q.sizes)==null?void 0:py.xs,field:{...(my=Q.sizes)==null?void 0:my.xs.field,...pa},icon:{insetEnd:"1"}}},T$=S$({baseStyle:k$,sizes:C$,variants:Q.variants,defaultProps:Q.defaultProps}),bc=F("skeleton-start-color"),xc=F("skeleton-end-color"),_$={[bc.variable]:"colors.gray.100",[xc.variable]:"colors.gray.400",_dark:{[bc.variable]:"colors.gray.800",[xc.variable]:"colors.gray.600"},background:bc.reference,borderColor:xc.reference,opacity:.7,borderRadius:"sm"},P$={baseStyle:_$},wc=F("skip-link-bg"),E$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[wc.variable]:"colors.white",_dark:{[wc.variable]:"colors.gray.700"},bg:wc.reference}},$$={baseStyle:E$},{defineMultiStyleConfig:A$,definePartsStyle:eu}=oe(g_.keys),jr=F("slider-thumb-size"),hs=F("slider-track-size"),Hn=F("slider-bg"),R$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Sh({orientation:t,vertical:{h:"100%",px:mn(jr.reference).divide(2).toString()},horizontal:{w:"100%",py:mn(jr.reference).divide(2).toString()}})}},M$=e=>({...Sh({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.200"},_disabled:{[Hn.variable]:"colors.gray.300",_dark:{[Hn.variable]:"colors.whiteAlpha.300"}},bg:Hn.reference}),z$=e=>{const{orientation:t}=e;return{...Sh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:jr.reference,h:jr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},D$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hn.variable]:`colors.${t}.500`,_dark:{[Hn.variable]:`colors.${t}.200`},bg:Hn.reference}},I$=eu(e=>({container:R$(e),track:M$(e),thumb:z$(e),filledTrack:D$(e)})),L$=eu({container:{[jr.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),j$=eu({container:{[jr.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),F$=eu({container:{[jr.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),B$={lg:L$,md:j$,sm:F$},V$=A$({baseStyle:I$,sizes:B$,defaultProps:{size:"md",colorScheme:"blue"}}),br=Re("spinner-size"),O$={width:[br.reference],height:[br.reference]},N$={xs:{[br.variable]:"sizes.3"},sm:{[br.variable]:"sizes.4"},md:{[br.variable]:"sizes.6"},lg:{[br.variable]:"sizes.8"},xl:{[br.variable]:"sizes.12"}},W$={baseStyle:O$,sizes:N$,defaultProps:{size:"md"}},{defineMultiStyleConfig:U$,definePartsStyle:lS}=oe(y_.keys),H$={fontWeight:"medium"},K$={opacity:.8,marginBottom:"2"},G$={verticalAlign:"baseline",fontWeight:"semibold"},Y$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},X$=lS({container:{},label:H$,helpText:K$,number:G$,icon:Y$}),q$={md:lS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Q$=U$({baseStyle:X$,sizes:q$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Z$,definePartsStyle:wi}=oe(["stepper","step","title","description","indicator","separator","icon","number"]),yn=F("stepper-indicator-size"),uo=F("stepper-icon-size"),co=F("stepper-title-font-size"),ki=F("stepper-description-font-size"),di=F("stepper-accent-color"),J$=wi(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[di.variable]:`colors.${e}.500`,_dark:{[di.variable]:`colors.${e}.200`}},title:{fontSize:co.reference,fontWeight:"medium"},description:{fontSize:ki.reference,color:"chakra-subtle-text"},number:{fontSize:co.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:uo.reference,height:uo.reference},indicator:{flexShrink:0,borderRadius:"full",width:yn.reference,height:yn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:di.reference},"&[data-status=complete]":{bg:di.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:di.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${yn.reference} - 8px)`,top:`calc(${yn.reference} + 4px)`,insetStart:`calc(${yn.reference} / 2 - 1px)`}}})),eA=Z$({baseStyle:J$,sizes:{xs:wi({stepper:{[yn.variable]:"sizes.4",[uo.variable]:"sizes.3",[co.variable]:"fontSizes.xs",[ki.variable]:"fontSizes.xs"}}),sm:wi({stepper:{[yn.variable]:"sizes.6",[uo.variable]:"sizes.4",[co.variable]:"fontSizes.sm",[ki.variable]:"fontSizes.xs"}}),md:wi({stepper:{[yn.variable]:"sizes.8",[uo.variable]:"sizes.5",[co.variable]:"fontSizes.md",[ki.variable]:"fontSizes.sm"}}),lg:wi({stepper:{[yn.variable]:"sizes.10",[uo.variable]:"sizes.6",[co.variable]:"fontSizes.lg",[ki.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tA,definePartsStyle:Ba}=oe(v_.keys),Wi=Re("switch-track-width"),$r=Re("switch-track-height"),kc=Re("switch-track-diff"),nA=gn.subtract(Wi,$r),Xd=Re("switch-thumb-x"),fi=Re("switch-bg"),rA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Wi.reference],height:[$r.reference],transitionProperty:"common",transitionDuration:"fast",[fi.variable]:"colors.gray.300",_dark:{[fi.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[fi.variable]:`colors.${t}.500`,_dark:{[fi.variable]:`colors.${t}.200`}},bg:fi.reference}},oA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$r.reference],height:[$r.reference],_checked:{transform:`translateX(${Xd.reference})`}},iA=Ba(e=>({container:{[kc.variable]:nA,[Xd.variable]:kc.reference,_rtl:{[Xd.variable]:gn(kc).negate().toString()}},track:rA(e),thumb:oA})),sA={sm:Ba({container:{[Wi.variable]:"1.375rem",[$r.variable]:"sizes.3"}}),md:Ba({container:{[Wi.variable]:"1.875rem",[$r.variable]:"sizes.4"}}),lg:Ba({container:{[Wi.variable]:"2.875rem",[$r.variable]:"sizes.6"}})},aA=tA({baseStyle:iA,sizes:sA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lA,definePartsStyle:Po}=oe(S_.keys),uA=Po({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),_l={"&[data-is-numeric=true]":{textAlign:"end"}},cA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fA={simple:cA,striped:dA,unstyled:{}},hA={sm:Po({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Po({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Po({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},pA=lA({baseStyle:uA,variants:fA,sizes:hA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),nt=F("tabs-color"),Ot=F("tabs-bg"),ma=F("tabs-border-color"),{defineMultiStyleConfig:mA,definePartsStyle:an}=oe(b_.keys),gA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},yA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},vA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},SA={p:4},bA=an(e=>({root:gA(e),tab:yA(e),tablist:vA(e),tabpanel:SA})),xA={sm:an({tab:{py:1,px:4,fontSize:"sm"}}),md:an({tab:{fontSize:"md",py:2,px:4}}),lg:an({tab:{fontSize:"lg",py:3,px:4}})},wA=an(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[nt.variable]:`colors.${t}.600`,_dark:{[nt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ot.variable]:"colors.gray.200",_dark:{[Ot.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:nt.reference,bg:Ot.reference}}}),kA=an(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ma.variable]:"transparent",_selected:{[nt.variable]:`colors.${t}.600`,[ma.variable]:"colors.white",_dark:{[nt.variable]:`colors.${t}.300`,[ma.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ma.reference},color:nt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CA=an(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ot.variable]:"colors.gray.50",_dark:{[Ot.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ot.variable]:"colors.white",[nt.variable]:`colors.${t}.600`,_dark:{[Ot.variable]:"colors.gray.800",[nt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:nt.reference,bg:Ot.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),TA=an(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:qe(n,`${t}.700`),bg:qe(n,`${t}.100`)}}}}),_A=an(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[nt.variable]:"colors.gray.600",_dark:{[nt.variable]:"inherit"},_selected:{[nt.variable]:"colors.white",[Ot.variable]:`colors.${t}.600`,_dark:{[nt.variable]:"colors.gray.800",[Ot.variable]:`colors.${t}.300`}},color:nt.reference,bg:Ot.reference}}}),PA=an({}),EA={line:wA,enclosed:kA,"enclosed-colored":CA,"soft-rounded":TA,"solid-rounded":_A,unstyled:PA},$A=mA({baseStyle:bA,sizes:xA,variants:EA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:AA,definePartsStyle:Ar}=oe(x_.keys),Tg=F("tag-bg"),_g=F("tag-color"),Cc=F("tag-shadow"),Va=F("tag-min-height"),Oa=F("tag-min-width"),Na=F("tag-font-size"),Wa=F("tag-padding-inline"),RA={fontWeight:"medium",lineHeight:1.2,outline:0,[_g.variable]:Ce.color.reference,[Tg.variable]:Ce.bg.reference,[Cc.variable]:Ce.shadow.reference,color:_g.reference,bg:Tg.reference,boxShadow:Cc.reference,borderRadius:"md",minH:Va.reference,minW:Oa.reference,fontSize:Na.reference,px:Wa.reference,_focusVisible:{[Cc.variable]:"shadows.outline"}},MA={lineHeight:1.2,overflow:"visible"},zA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},DA=Ar({container:RA,label:MA,closeButton:zA}),IA={sm:Ar({container:{[Va.variable]:"sizes.5",[Oa.variable]:"sizes.5",[Na.variable]:"fontSizes.xs",[Wa.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ar({container:{[Va.variable]:"sizes.6",[Oa.variable]:"sizes.6",[Na.variable]:"fontSizes.sm",[Wa.variable]:"space.2"}}),lg:Ar({container:{[Va.variable]:"sizes.8",[Oa.variable]:"sizes.8",[Na.variable]:"fontSizes.md",[Wa.variable]:"space.3"}})},LA={subtle:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.subtle(e)}}),solid:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.solid(e)}}),outline:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.outline(e)}})},jA=AA({variants:LA,baseStyle:DA,sizes:IA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var gy;const FA={...(gy=Q.baseStyle)==null?void 0:gy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var yy;const BA={outline:e=>{var t;return((t=Q.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Q.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Q.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((yy=Q.variants)==null?void 0:yy.unstyled.field)??{}};var vy,Sy,by,xy;const VA={xs:((vy=Q.sizes)==null?void 0:vy.xs.field)??{},sm:((Sy=Q.sizes)==null?void 0:Sy.sm.field)??{},md:((by=Q.sizes)==null?void 0:by.md.field)??{},lg:((xy=Q.sizes)==null?void 0:xy.lg.field)??{}},OA={baseStyle:FA,sizes:VA,variants:BA,defaultProps:{size:"md",variant:"outline"}},ga=Re("tooltip-bg"),Tc=Re("tooltip-fg"),NA=Re("popper-arrow-bg"),WA={bg:ga.reference,color:Tc.reference,[ga.variable]:"colors.gray.700",[Tc.variable]:"colors.whiteAlpha.900",_dark:{[ga.variable]:"colors.gray.300",[Tc.variable]:"colors.gray.900"},[NA.variable]:ga.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},UA={baseStyle:WA},HA={Accordion:A_,Alert:hP,Avatar:CP,Badge:Vi,Breadcrumb:DP,Button:WP,Checkbox:Nn,CloseButton:oE,Code:lE,Container:cE,Divider:mE,Drawer:_E,Editable:zE,Form:BE,FormError:HE,FormLabel:GE,Heading:qE,Input:Q,Kbd:s5,Link:l5,List:h5,Menu:C5,Modal:I5,NumberInput:U5,PinInput:Y5,Popover:i$,Progress:h$,Radio:v$,Select:T$,Skeleton:P$,SkipLink:$$,Slider:V$,Spinner:W$,Stat:Q$,Switch:aA,Table:pA,Tabs:$A,Tag:jA,Textarea:OA,Tooltip:UA,Card:YP,Stepper:eA},KA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},GA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},YA={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},XA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qA={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},QA={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},ZA={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},JA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},eR={property:QA,easing:ZA,duration:JA},tR={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},nR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rR={breakpoints:GA,zIndices:tR,radii:XA,blur:nR,colors:YA,...iS,sizes:J1,shadows:qA,space:Z1,borders:KA,transition:eR},oR={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iR={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},sR="ltr",aR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},lR={semanticTokens:oR,direction:sR,...rR,components:HA,styles:iR,config:aR};var uR=!1;function cR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Ko,--at):0,Fo--,_e===10&&(Fo=1,nu--),_e}function pt(){return _e=at2||ms(_e)>3?"":" "}function kR(e,t){for(;--t&&pt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return $s(e,Ua()+(t<6&&ln()==32&&pt()==32))}function Qd(e){for(;pt();)switch(_e){case e:return at;case 34:case 39:e!==34&&e!==39&&Qd(_e);break;case 40:e===41&&Qd(e);break;case 92:pt();break}return at}function CR(e,t){for(;pt()&&e+_e!==57;)if(e+_e===84&&ln()===47)break;return"/*"+$s(t,at-1)+"*"+tu(e===47?e:pt())}function TR(e){for(;!ms(ln());)pt();return $s(e,at)}function _R(e){return pS(Ka("",null,null,null,[""],e=hS(e),0,[0],e))}function Ka(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,v=0,S=1,_=1,p=1,h=0,m="",b=o,C=i,E=r,k=m;_;)switch(v=h,h=pt()){case 40:if(v!=108&&Fe(k,d-1)==58){qd(k+=q(Ha(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:k+=Ha(h);break;case 9:case 10:case 13:case 32:k+=wR(v);break;case 92:k+=kR(Ua()-1,7);continue;case 47:switch(ln()){case 42:case 47:ya(PR(CR(pt(),Ua()),t,n),l);break;default:k+="/"}break;case 123*S:a[u++]=Jt(k)*p;case 125*S:case 59:case 0:switch(h){case 0:case 125:_=0;case 59+c:p==-1&&(k=q(k,/\f/g,"")),y>0&&Jt(k)-d&&ya(y>32?Eg(k+";",r,n,d-1):Eg(q(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ya(E=Pg(k,t,n,u,c,o,a,m,b=[],C=[],d),i),h===123)if(c===0)Ka(k,t,E,E,b,i,d,a,C);else switch(f===99&&Fe(k,3)===110?100:f){case 100:case 108:case 109:case 115:Ka(e,E,E,r&&ya(Pg(e,E,E,0,0,o,a,m,o,b=[],d),C),o,C,d,a,r?b:C);break;default:Ka(k,E,E,E,[""],C,0,a,C)}}u=c=y=0,S=p=1,m=k="",d=s;break;case 58:d=1+Jt(k),y=v;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&xR()==125)continue}switch(k+=tu(h),h*S){case 38:p=c>0?1:(k+="\f",-1);break;case 44:a[u++]=(Jt(k)-1)*p,p=1;break;case 64:ln()===45&&(k+=Ha(pt())),f=ln(),c=d=Jt(m=k+=TR(Ua())),h++;break;case 45:v===45&&Jt(k)==2&&(S=0)}}return i}function Pg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Th(f),v=0,S=0,_=0;v0?f[p]+" "+h:q(h,/&\f/g,f[p])))&&(l[_++]=m);return ru(e,t,n,o===0?kh:a,l,u,c)}function PR(e,t,n){return ru(e,t,n,uS,tu(bR()),ps(e,2,-2),0)}function Eg(e,t,n,r){return ru(e,t,n,Ch,ps(e,0,r),ps(e,r+1,-1),r)}function Eo(e,t){for(var n="",r=Th(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Pl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qd(e,"stretch")?gS(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Jt(e)-3-(~qd(e,"!important")&&10))){case 107:return q(e,":",":"+X)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Fe(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+We+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+We+e+e}return e}var LR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ch:t.return=gS(t.value,t.length);break;case cS:return Eo([hi(t,{value:q(t.value,"@","@"+X)})],o);case kh:if(t.length)return SR(t.props,function(i){switch(vR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([hi(t,{props:[q(i,/:(read-\w+)/,":"+Pl+"$1")]})],o);case"::placeholder":return Eo([hi(t,{props:[q(i,/:(plac\w+)/,":"+X+"input-$1")]}),hi(t,{props:[q(i,/:(plac\w+)/,":"+Pl+"$1")]}),hi(t,{props:[q(i,/:(plac\w+)/,We+"input-$1")]})],o)}return""})}},jR=[LR],FR=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||jR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),p=1;p<_.length;p++)i[_[p]]=!0;a.push(S)});var l,u=[DR,IR];{var c,d=[ER,AR(function(S){c.insert(S)})],f=$R(u.concat(o,d)),y=function(_){return Eo(_R(_),f)};l=function(_,p,h,m){c=h,y(_?_+"{"+p.styles+"}":p.styles),m&&(v.inserted[p.name]=!0)}}var v={key:n,sheet:new fR({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v},yS={exports:{}},te={};/** @license React v16.13.1 + * react-is.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 De=typeof Symbol=="function"&&Symbol.for,_h=De?Symbol.for("react.element"):60103,Ph=De?Symbol.for("react.portal"):60106,ou=De?Symbol.for("react.fragment"):60107,iu=De?Symbol.for("react.strict_mode"):60108,su=De?Symbol.for("react.profiler"):60114,au=De?Symbol.for("react.provider"):60109,lu=De?Symbol.for("react.context"):60110,Eh=De?Symbol.for("react.async_mode"):60111,uu=De?Symbol.for("react.concurrent_mode"):60111,cu=De?Symbol.for("react.forward_ref"):60112,du=De?Symbol.for("react.suspense"):60113,BR=De?Symbol.for("react.suspense_list"):60120,fu=De?Symbol.for("react.memo"):60115,hu=De?Symbol.for("react.lazy"):60116,VR=De?Symbol.for("react.block"):60121,OR=De?Symbol.for("react.fundamental"):60117,NR=De?Symbol.for("react.responder"):60118,WR=De?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _h:switch(e=e.type,e){case Eh:case uu:case ou:case su:case iu:case du:return e;default:switch(e=e&&e.$$typeof,e){case lu:case cu:case hu:case fu:case au:return e;default:return t}}case Ph:return t}}}function vS(e){return bt(e)===uu}te.AsyncMode=Eh;te.ConcurrentMode=uu;te.ContextConsumer=lu;te.ContextProvider=au;te.Element=_h;te.ForwardRef=cu;te.Fragment=ou;te.Lazy=hu;te.Memo=fu;te.Portal=Ph;te.Profiler=su;te.StrictMode=iu;te.Suspense=du;te.isAsyncMode=function(e){return vS(e)||bt(e)===Eh};te.isConcurrentMode=vS;te.isContextConsumer=function(e){return bt(e)===lu};te.isContextProvider=function(e){return bt(e)===au};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_h};te.isForwardRef=function(e){return bt(e)===cu};te.isFragment=function(e){return bt(e)===ou};te.isLazy=function(e){return bt(e)===hu};te.isMemo=function(e){return bt(e)===fu};te.isPortal=function(e){return bt(e)===Ph};te.isProfiler=function(e){return bt(e)===su};te.isStrictMode=function(e){return bt(e)===iu};te.isSuspense=function(e){return bt(e)===du};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ou||e===uu||e===su||e===iu||e===du||e===BR||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===fu||e.$$typeof===au||e.$$typeof===lu||e.$$typeof===cu||e.$$typeof===OR||e.$$typeof===NR||e.$$typeof===WR||e.$$typeof===VR)};te.typeOf=bt;yS.exports=te;var UR=yS.exports,SS=UR,HR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bS={};bS[SS.ForwardRef]=HR;bS[SS.Memo]=KR;var GR=!0;function YR(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var xS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||GR===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},wS=function(t,n,r){xS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function XR(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QR=!1,ZR=/[A-Z]|^ms/g,JR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kS=function(t){return t.charCodeAt(1)===45},Rg=function(t){return t!=null&&typeof t!="boolean"},_c=mS(function(e){return kS(e)?e:e.replace(ZR,"-$&").toLowerCase()}),Mg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JR,function(r,o,i){return en={name:o,styles:i,next:en},o})}return qR[t]!==1&&!kS(t)&&typeof n=="number"&&n!==0?n+"px":n},eM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return en={name:o.name,styles:o.styles,next:en},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)en={name:s.name,styles:s.styles,next:en},s=s.next;var a=i.styles+";";return a}return tM(e,t,n)}case"function":{if(e!==void 0){var l=en,u=n(e);return en=l,gs(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function tM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?va.dark:va.light),document.body.classList.remove(o?va.light:va.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const cM="chakra-ui-color-mode";function dM(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const fM=dM(cM),Ig=()=>{},hM=T2()?T.useLayoutEffect:T.useEffect;function Lg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const _S=Ah(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=fM}=t,u=s==="dark"?"dark":"light",[c,d]=T.useState(()=>Lg(l,u)),[f,y]=T.useState(()=>Lg(l)),{getSystemTheme:v,setClassName:S,setDataset:_,addListener:p}=T.useMemo(()=>uM({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,m=T.useCallback(E=>{const k=E==="system"?v():E;d(k),S(k==="dark"),_(k),l.set(k)},[l,v,S,_]);hM(()=>{s==="system"&&y(v())},[]),T.useEffect(()=>{const E=l.get();if(E){m(E);return}if(s==="system"){m("system");return}m(u)},[l,u,s,m]);const b=T.useCallback(()=>{m(h==="dark"?"light":"dark")},[h,m]);T.useEffect(()=>{if(i)return p(m)},[i,p,m]);const C=T.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Ig:b,setColorMode:r?Ig:m,forced:r!==void 0}),[h,b,m,r]);return P.jsx(Rh.Provider,{value:C,children:o})});_S.displayName="ColorModeProvider";const PS=String.raw,ES=PS` + :root, + :host { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root, + :host { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root, + :host { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root, + :host { + --chakra-vh: 100dvh; + } + } +`,pM=()=>P.jsx(pu,{styles:ES}),mM=({scope:e=""})=>P.jsx(pu,{styles:PS` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${ES} + `});function gM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=T.useMemo(()=>QT(n),[n]);return P.jsxs(sM,{theme:o,children:[P.jsx(yM,{root:t}),r]})}function yM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P.jsx(pu,{styles:n=>({[t]:n.__cssVars})})}zn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function vM(){const{colorMode:e}=mu();return P.jsx(pu,{styles:t=>{const n=N1(t,"styles.global"),r=$t(n,{theme:t,colorMode:e});return r?Y1(r)(t):void 0}})}const[SM,bM]=zn({strict:!1,name:"PortalManagerContext"});function $S(e){const{children:t,zIndex:n}=e;return P.jsx(SM,{value:{zIndex:n},children:t})}$S.displayName="PortalManager";const AS=T.createContext({getDocument(){return document},getWindow(){return window}});AS.displayName="EnvironmentContext";function RS(e){const{children:t,environment:n,disabled:r}=e,o=T.useRef(null),i=T.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return P.jsxs(AS.Provider,{value:i,children:[t,s&&P.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}RS.displayName="EnvironmentProvider";const xM=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=P.jsx(RS,{environment:a,disabled:u,children:t});return P.jsx(gM,{theme:s,cssVarsRoot:l,children:P.jsxs(_S,{colorModeManager:n,options:s.config,children:[i?P.jsx(mM,{scope:o}):P.jsx(pM,{}),!c&&P.jsx(vM,{}),r?P.jsx($S,{zIndex:r,children:d}):d]})})};function wM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function gu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zd=e=>Array.isArray(e);function MS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mh(e,t,n,r){if(typeof t=="function"){const[o,i]=jg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=jg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function yu(e,t,n){const r=e.getProps();return Mh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dh=["initial",...zh],As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vr=new Set(As),kn=e=>e*1e3,Cn=e=>e/1e3,kM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TM={type:"keyframes",duration:.8},_M={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PM=(e,{keyframes:t})=>t.length>2?TM:Vr.has(e)?e.startsWith("scale")?CM(t[1]):kM:_M;function Ih(e,t){return e?e[t]||e.default||e:void 0}const EM={skipAnimations:!1,useManualTiming:!1},$M=e=>e!==null;function vu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter($M),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const mt=e=>e;let Jd=mt;function AM(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const Sa=["read","resolveKeyframes","update","preRender","render","postRender"],RM=40;function zS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Sa.reduce((p,h)=>(p[h]=AM(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const p=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(p-o.timestamp,RM),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Sa.reduce((p,h)=>{const m=s[h];return p[h]=(b,C=!1,E=!1)=>(n||v(),m.schedule(b,C,E)),p},{}),cancel:p=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MM=1e-7,zM=12;function DM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=DS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>MM&&++aDM(i,0,1,e,n);return i=>i===0||i===1?i:DS(o(i),t,r)}const IS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LS=e=>t=>1-e(1-t),jS=Rs(.33,1.53,.69,.99),Lh=LS(jS),FS=IS(Lh),BS=e=>(e*=2)<1?.5*Lh(e):.5*(2-Math.pow(2,-10*(e-1))),jh=e=>1-Math.sin(Math.acos(e)),VS=LS(jh),OS=IS(jh),NS=e=>/^0[^.\s]+$/u.test(e);function IM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NS(e):!0}const WS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),US=e=>t=>typeof t=="string"&&t.startsWith(e),HS=US("--"),LM=US("var(--"),Fh=e=>LM(e)?jM.test(e.split("/*")[0].trim()):!1,jM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,FM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BM(e){const t=FM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function KS(e,t,n=1){const[r,o]=BM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return WS(s)?parseFloat(s):s}return Fh(o)?KS(o,t,n+1):o}const Rn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ss={...Go,transform:e=>Rn(0,1,e)},ba={...Go,default:1},Ms=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=Ms("deg"),un=Ms("%"),B=Ms("px"),VM=Ms("vh"),OM=Ms("vw"),Fg={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},NM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bg=e=>e===Go||e===B,Vg=(e,t)=>parseFloat(e.split(", ")[t]),Og=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Vg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Vg(i[1],e):0}},WM=new Set(["x","y","z"]),UM=As.filter(e=>!WM.has(e));function HM(e){const t=[];return UM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bo={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:Og(4,13),y:Og(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const GS=e=>t=>t.test(e),KM={test:e=>e==="auto",parse:e=>e},YS=[Go,B,un,Bn,OM,VM,KM],Ng=e=>YS.find(GS(e)),Rr=new Set;let ef=!1,tf=!1;function XS(){if(tf){const e=Array.from(Rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=HM(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tf=!1,ef=!1,Rr.forEach(e=>e.complete()),Rr.clear()}function qS(){Rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tf=!0)})}function GM(){qS(),XS()}class Bh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Rr.add(this),ef||(ef=!0,le.read(qS),le.resolveKeyframes(XS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Vh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YM(e){return e==null}const XM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oh=(e,t)=>n=>!!(typeof n=="string"&&XM.test(n)&&n.startsWith(e)||t&&!YM(n)&&Object.prototype.hasOwnProperty.call(n,t)),QS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Vh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},qM=e=>Rn(0,255,e),Ec={...Go,transform:e=>Math.round(qM(e))},Tr={test:Oh("rgb","red"),parse:QS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ec.transform(e)+", "+Ec.transform(t)+", "+Ec.transform(n)+", "+Ui(Ss.transform(r))+")"};function QM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const nf={test:Oh("#"),parse:QM,transform:Tr.transform},fo={test:Oh("hsl","hue"),parse:QS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(Ui(t))+", "+un.transform(Ui(n))+", "+Ui(Ss.transform(r))+")"},Ue={test:e=>Tr.test(e)||nf.test(e)||fo.test(e),parse:e=>Tr.test(e)?Tr.parse(e):fo.test(e)?fo.parse(e):nf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Tr.transform(e):fo.transform(e)},ZM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function JM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ZM))===null||n===void 0?void 0:n.length)||0)>0}const ZS="number",JS="color",ez="var",tz="var(",Wg="${}",nz=/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 bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(nz,l=>(Ue.test(l)?(r.color.push(i),o.push(JS),n.push(Ue.parse(l))):l.startsWith(tz)?(r.var.push(i),o.push(ez),n.push(l)):(r.number.push(i),o.push(ZS),n.push(parseFloat(l))),++i,Wg)).split(Wg);return{values:n,split:a,indexes:r,types:o}}function eb(e){return bs(e).values}function tb(e){const{split:t,types:n}=bs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function oz(e){const t=eb(e);return tb(e)(t.map(rz))}const ir={test:JM,parse:eb,createTransformer:tb,getAnimatableNone:oz},iz=new Set(["brightness","contrast","saturate","opacity"]);function sz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vh)||[];if(!r)return e;const o=n.replace(r,"");let i=iz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const az=/\b([a-z-]*)\(.*?\)/gu,rf={...ir,getAnimatableNone:e=>{const t=e.match(az);return t?t.map(sz).join(" "):e}},lz={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},uz={rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ba,scaleX:ba,scaleY:ba,scaleZ:ba,skew:Bn,skewX:Bn,skewY:Bn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Ss,originX:Fg,originY:Fg,originZ:B},Ug={...Go,transform:Math.round},Nh={...lz,...uz,zIndex:Ug,size:B,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Ug},cz={...Nh,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:rf,WebkitFilter:rf},Wh=e=>cz[e];function nb(e,t){let n=Wh(e);return n!==rf&&(n=ir),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dz=new Set(["auto","none","0"]);function fz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Uh(e){return typeof e=="function"}let Ga;function hz(){Ga=void 0}const cn={now:()=>(Ga===void 0&&cn.set(je.isProcessing||EM.useManualTiming?je.timestamp:performance.now()),Ga),set:e=>{Ga=e,queueMicrotask(hz)}},Hg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ir.test(e)||e==="0")&&!e.startsWith("url("));function pz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ngz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&GM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=cn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!mz(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(vu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Vo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ib=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=of(u,s),v=Math.exp(-d);return $c-f/y*v},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),S=of(Math.pow(u,2),s);return(-o(u)+$c>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-$c+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=bz(o,i,a);if(e=kn(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Sz=12;function bz(e,t,n){let r=n;for(let o=1;o=sf?1/0:t}const xz=["duration","bounce"],wz=["stiffness","damping","mass"];function Kg(e,t){return t.some(n=>e[n]!==void 0)}function kz(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Kg(e,wz)&&Kg(e,xz))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Rn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:i}}else{const n=vz(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function ub(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=kz({...n,velocity:-Cn(n.velocity||0)}),v=f||0,S=u/(2*Math.sqrt(l*c)),_=s-i,p=Cn(Math.sqrt(l/c)),h=Math.abs(_)<5;r||(r=h?Se.restSpeed.granular:Se.restSpeed.default),o||(o=h?Se.restDelta.granular:Se.restDelta.default);let m;if(S<1){const C=of(p,S);m=E=>{const k=Math.exp(-S*p*E);return s-k*((v+S*p*_)/C*Math.sin(C*E)+_*Math.cos(C*E))}}else if(S===1)m=C=>s-Math.exp(-p*C)*(_+(v+p*_)*C);else{const C=p*Math.sqrt(S*S-1);m=E=>{const k=Math.exp(-S*p*E),A=Math.min(C*E,300);return s-k*((v+S*p*_)*Math.sinh(A)+C*_*Math.cosh(A))/C}}const b={calculatedDuration:y&&d||null,next:C=>{const E=m(C);if(y)a.done=C>=d;else{let k=0;S<1&&(k=C===0?kn(v):ab(m,C,E));const A=Math.abs(k)<=r,D=Math.abs(s-E)<=o;a.done=A&&D}return a.value=a.done?s:E,a},toString:()=>{const C=Math.min(lb(b),sf),E=ib(k=>b.next(C*k).value,C,30);return C+"ms "+E}};return b}function Gg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=A=>a!==void 0&&Al,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)-S*Math.exp(-A/r),m=A=>p+h(A),b=A=>{const D=h(A),M=m(A);f.done=Math.abs(D)<=u,f.value=f.done?p:M};let C,E;const k=A=>{y(f.value)&&(C=A,E=ub({keyframes:[f.value,v(f.value)],velocity:ab(m,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:A=>{let D=!1;return!E&&C===void 0&&(D=!0,b(A),k(A)),C!==void 0&&A>=C?E.next(A-C):(!D&&b(A),f)}}}const Cz=Rs(.42,0,1,1),Tz=Rs(0,0,.58,1),cb=Rs(.42,0,.58,1),_z=e=>Array.isArray(e)&&typeof e[0]!="number",Hh=e=>Array.isArray(e)&&typeof e[0]=="number",Yg={linear:mt,easeIn:Cz,easeInOut:cb,easeOut:Tz,circIn:jh,circInOut:OS,circOut:VS,backIn:Lh,backInOut:FS,backOut:jS,anticipate:BS},Xg=e=>{if(Hh(e)){Jd(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return Jd(Yg[e]!==void 0),Yg[e];return e},Pz=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Pz),ge=(e,t,n)=>e+(t-e)*n;function Ac(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 Ez({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ac(l,a,e+1/3),i=Ac(l,a,e),s=Ac(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function El(e,t){return n=>n>0?t:e}const Rc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},$z=[nf,Tr,fo],Az=e=>$z.find(t=>t.test(e));function qg(e){const t=Az(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=Ez(n)),n}const Qg=(e,t)=>{const n=qg(e),r=qg(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=Rc(n.red,r.red,i),o.green=Rc(n.green,r.green,i),o.blue=Rc(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),Tr.transform(o))},af=new Set(["none","hidden"]);function Rz(e,t){return af.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mz(e,t){return n=>ge(e,t,n)}function Kh(e){return typeof e=="number"?Mz:typeof e=="string"?Fh(e)?El:Ue.test(e)?Qg:Iz:Array.isArray(e)?db:typeof e=="object"?Ue.test(e)?Qg:zz:El}function db(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Kh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Dz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ir.createTransformer(t),r=bs(e),o=bs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?af.has(e)&&!o.values.length||af.has(t)&&!r.values.length?Rz(e,t):zs(db(Dz(r,o),o.values),n):El(e,t)};function fb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):Kh(e)(e,t)}function Lz(e,t,n){const r=[],o=n||fb,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Lz(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Rn(e[0],e[i-1],u)):l}function Fz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Vo(0,t,r);e.push(ge(n,1,o))}}function Bz(e){const t=[0];return Fz(t,e.length-1),t}function Vz(e,t){return e.map(n=>n*t)}function Oz(e,t){return e.map(()=>t||cb).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=_z(r)?r.map(Xg):Xg(r),i={done:!1,value:t[0]},s=Vz(n&&n.length===t.length?n:Bz(t),e),a=jz(s,t,{ease:Array.isArray(o)?o:Oz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Nz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>or(t),now:()=>je.isProcessing?je.timestamp:cn.now()}},Wz={decay:Gg,inertia:Gg,tween:$l,keyframes:$l,spring:ub},Uz=e=>e/100;class Gh extends ob{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Bh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Uh(n)?n:Wz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=zs(Uz,fb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=lb(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:v,repeatDelay:S,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,b=i;if(y){const A=Math.min(this.currentTime,c)/d;let D=Math.floor(A),M=A%1;!M&&A>=1&&(M=1),M===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(v==="reverse"?(M=1-M,S&&(M-=S/d)):v==="mirror"&&(b=s)),m=Rn(0,1,M)*d}const C=h?{done:!1,value:l[0]}:b.next(m);a&&(C.value=a(C.value));let{done:E}=C;!h&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return k&&o!==void 0&&(C.value=vu(l,this.options,o)),_&&_(C.value),k&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Cn(t.calculatedDuration):0}get time(){return Cn(this.currentTime)}set time(t){t=kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Cn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Nz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Hz=new Set(["opacity","clipPath","filter","transform"]);function Yh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kz={linearEasing:void 0};function Gz(e,t){const n=Yh(e);return()=>{var r;return(r=Kz[t])!==null&&r!==void 0?r:n()}}const Al=Gz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function hb(e){return!!(typeof e=="function"&&Al()||!e||typeof e=="string"&&(e in lf||Al())||Hh(e)||Array.isArray(e)&&e.every(hb))}const Ci=([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:Ci([0,.65,.55,1]),circOut:Ci([.55,0,1,.45]),backIn:Ci([.31,.01,.66,-.59]),backOut:Ci([.33,1.53,.69,.99])};function pb(e,t){if(e)return typeof e=="function"&&Al()?ib(e,t):Hh(e)?Ci(e):Array.isArray(e)?e.map(n=>pb(n,t)||lf.easeOut):lf[e]}function Yz(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pb(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Zg(e,t){e.timeline=t,e.onfinish=null}const Xz=Yh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rl=10,qz=2e4;function Qz(e){return Uh(e.type)||e.type==="spring"||!hb(e.ease)}function Zz(e,t){const n=new Gh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Al()&&Jz(s)&&(s=mb[s]),Qz(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,..._}=this.options,p=Zz(t,_);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=Yz(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Zg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(vu(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Cn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Cn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return mt;const{animation:r}=n;Zg(r,t)}return mt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,v=new Gh({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),S=kn(this.time);u.setWithVelocity(v.sample(S-Rl).value,v.sample(S).value,Rl)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return Xz()&&r&&Hz.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const e3=Yh(()=>window.ScrollTimeline!==void 0);class t3{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;re3()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function n3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Xh=(e,t,n,r={},o,i)=>s=>{const a=Ih(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-kn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};n3(a)||(c={...c,...PM(e,c)}),c.duration&&(c.duration=kn(c.duration)),c.repeatDelay&&(c.repeatDelay=kn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=vu(c.keyframes,a);if(f!==void 0)return le.update(()=>{c.onUpdate(f),c.onComplete()}),new t3([])}return!i&&Jg.supports(c)?new Jg(c):new Gh(c)},r3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),o3=e=>Zd(e)?e[e.length-1]||0:e;function qh(e,t){e.indexOf(t)===-1&&e.push(t)}function Qh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zh{constructor(){this.subscriptions=[]}add(t){return qh(this.subscriptions,t),()=>Qh(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class s3{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=cn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=cn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=i3(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 Zh);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=cn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>e0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,e0);return sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xs(e,t){return new s3(e,t)}function a3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function l3(e,t){const n=yu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=o3(i[s]);a3(e,s,a)}}const Jh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),u3="framerAppearId",gb="data-"+Jh(u3);function yb(e){return e.props[gb]}const Ke=e=>!!(e&&e.getVelocity);function c3(e){return!!(Ke(e)&&e.add)}function uf(e,t){const n=e.getValue("willChange");if(c3(n))return n.add(t)}function d3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&d3(c,d))continue;const v={delay:n,...Ih(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const p=yb(e);if(p){const h=window.MotionHandoffAnimation(p,d,le);h!==null&&(v.startTime=h,S=!0)}}uf(e,d),f.start(Xh(d,f,y,e.shouldReduceMotion&&Vr.has(d)?{type:!1}:v,e,S));const _=f.animation;_&&u.push(_)}return a&&Promise.all(u).then(()=>{le.update(()=>{a&&l3(e,a)})}),u}function cf(e,t,n={}){var r;const o=yu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(vb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return f3(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function f3(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(h3).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(cf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function h3(e,t){return e.sortNodePosition(t)}function p3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>cf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=cf(e,t,n);else{const o=typeof t=="function"?yu(e,t,n.custom):t;r=Promise.all(vb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const m3=Dh.length;function Sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>p3(e,n,r)))}function S3(e){let t=v3(e),n=t0(),r=!0;const o=l=>(u,c)=>{var d;const f=yu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:v,...S}=f;u={...u,...S,...v}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Sb(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let _=0;_v&&b,D=!1;const M=Array.isArray(m)?m:[m];let N=M.reduce(o(p),{});C===!1&&(N={});const{prevResolvedValues:he={}}=h,xt={...he,...N},Ht=xe=>{A=!0,f.has(xe)&&(D=!0,f.delete(xe)),h.needsAnimating[xe]=!0;const z=e.getValue(xe);z&&(z.liveStyle=!1)};for(const xe in xt){const z=N[xe],V=he[xe];if(y.hasOwnProperty(xe))continue;let O=!1;Zd(z)&&Zd(V)?O=!MS(z,V):O=z!==V,O?z!=null?Ht(xe):f.add(xe):z!==void 0&&f.has(xe)?Ht(xe):h.protectedKeys[xe]=!0}h.prevProp=m,h.prevResolvedValues=N,h.isActive&&(y={...y,...N}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(E&&k)||D)&&d.push(...M.map(xe=>({animation:xe,options:{type:p}})))}if(f.size){const _={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),_[p]=h??null}),d.push({animation:_})}let S=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=t0(),r=!0}}}function b3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!MS(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t0(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class ur{constructor(t){this.isMounted=!1,this.node=t}update(){}}class x3 extends ur{constructor(t){super(t),t.animationState||(t.animationState=S3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let w3=0;class k3 extends ur{constructor(){super(...arguments),this.id=w3++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const C3={animation:{Feature:x3},exit:{Feature:k3}},jt={x:!1,y:!1};function bb(){return jt.x||jt.y}function T3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function xb(e,t){const n=T3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function n0(e){return t=>{t.pointerType==="touch"||bb()||e(t)}}function _3(e,t,n={}){const[r,o,i]=xb(e,n),s=n0(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=n0(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ep=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ti=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function Mc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const P3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=r0(()=>{if(Ti.has(n))return;Mc(n,"down");const o=r0(()=>{Mc(n,"up")}),i=()=>Mc(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},E3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $3(e){return E3.has(e.tagName)||e.tabIndex!==-1}const wb=(e,t)=>t?e===t?!0:wb(e,t.parentElement):!1;function o0(e){return ep(e)&&!bb()}function A3(e,t,n={}){const[r,o,i]=xb(e,n),s=a=>{const l=a.currentTarget;if(!o0(a)||Ti.has(l))return;Ti.add(l);const u=t(a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!o0(y)||!Ti.has(l))&&(Ti.delete(l),u&&u(y,{success:v}))},d=y=>{c(y,n.useGlobalTarget||wb(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{$3(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>P3(u,o),o)}),i}function R3(e){return e==="x"||e==="y"?jt[e]?null:(jt[e]=!0,()=>{jt[e]=!1}):jt.x||jt.y?null:(jt.x=jt.y=!0,()=>{jt.x=jt.y=!1})}function Ds(e){return{point:{x:e.pageX,y:e.pageY}}}const M3=e=>t=>ep(t)&&e(t,Ds(t));function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hi(e,t,n,r){return ws(e,t,M3(n),r)}const i0=(e,t)=>Math.abs(e-t);function z3(e,t){const n=i0(e.x,t.x),r=i0(e.y,t.y);return Math.sqrt(n**2+r**2)}class kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Dc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=z3(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:v}=d,{timestamp:S}=je;this.history.push({...v,timestamp:S});const{onStart:_,onMove:p}=this.handlers;f||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=zc(f,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Dc(d.type==="pointercancel"?this.lastMoveEventInfo:zc(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,_),v&&v(d,_)},!ep(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ds(t),a=zc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=je;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Dc(a,this.history)),this.removeListeners=zs(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),or(this.updatePoint)}}function zc(e,t){return t?{point:t(e.point)}:e}function s0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dc({point:e},t){return{point:e,delta:s0(e,Cb(t)),offset:s0(e,D3(t)),velocity:I3(t,.1)}}function D3(e){return e[0]}function Cb(e){return e[e.length-1]}function I3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Cb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const i=Cn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Tb=1e-4,L3=1-Tb,j3=1+Tb,_b=.01,F3=0-_b,B3=0+_b;function yt(e){return e.max-e.min}function V3(e,t,n){return Math.abs(e-t)<=n}function a0(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=yt(n)/yt(t),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L3&&e.scale<=j3||isNaN(e.scale))&&(e.scale=1),(e.translate>=F3&&e.translate<=B3||isNaN(e.translate))&&(e.translate=0)}function Ki(e,t,n,r){a0(e.x,t.x,n.x,r?r.originX:void 0),a0(e.y,t.y,n.y,r?r.originY:void 0)}function l0(e,t,n){e.min=n.min+t.min,e.max=e.min+yt(t)}function O3(e,t,n){l0(e.x,t.x,n.x),l0(e.y,t.y,n.y)}function u0(e,t,n){e.min=t.min-n.min,e.max=e.min+yt(t)}function Gi(e,t,n){u0(e.x,t.x,n.x),u0(e.y,t.y,n.y)}function N3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function c0(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 W3(e,{top:t,left:n,bottom:r,right:o}){return{x:c0(e.x,n,o),y:c0(e.y,t,r)}}function d0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Vo(t.min,t.max-r,e.min):r>o&&(n=Vo(e.min,e.max-o,t.min)),Rn(0,1,n)}function K3(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 df=.35;function G3(e=df){return e===!1?e=0:e===!0&&(e=df),{x:f0(e,"left","right"),y:f0(e,"top","bottom")}}function f0(e,t,n){return{min:h0(e,t),max:h0(e,n)}}function h0(e,t){return typeof e=="number"?e:e[t]||0}const p0=()=>({translate:0,scale:1,origin:0,originPoint:0}),po=()=>({x:p0(),y:p0()}),m0=()=>({min:0,max:0}),we=()=>({x:m0(),y:m0()});function Tt(e){return[e("x"),e("y")]}function Pb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Y3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function X3(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 Ic(e){return e===void 0||e===1}function ff({scale:e,scaleX:t,scaleY:n}){return!Ic(e)||!Ic(t)||!Ic(n)}function vr(e){return ff(e)||Eb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eb(e){return g0(e.x)||g0(e.y)}function g0(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,o=t*r;return n+o}function y0(e,t,n,r,o){return o!==void 0&&(e=Ml(e,o,r)),Ml(e,n,r)+t}function hf(e,t=0,n=1,r,o){e.min=y0(e.min,t,n,r,o),e.max=y0(e.max,t,n,r,o)}function $b(e,{x:t,y:n}){hf(e.x,t.translate,t.scale,t.originPoint),hf(e.y,n.translate,n.scale,n.originPoint)}const v0=.999999999999,S0=1.0000000000001;function q3(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;av0&&(t.x=1),t.yv0&&(t.y=1)}function mo(e,t){e.min=e.min+t,e.max=e.max+t}function b0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);hf(e,t,n,i,r)}function go(e,t){b0(e.x,t.x,t.scaleX,t.scale,t.originX),b0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ab(e,t){return Pb(X3(e.getBoundingClientRect(),t))}function Q3(e,t,n){const r=Ab(e,n),{scroll:o}=t;return o&&(mo(r.x,o.offset.x),mo(r.y,o.offset.y)),r}const Rb=({current:e})=>e?e.ownerDocument.defaultView:null,Z3=new WeakMap;class J3{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=we(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ds(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:v}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=R3(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tt(_=>{let p=this.getAxisMotionValue(_).get()||0;if(un.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[_];m&&(p=yt(m)*(parseFloat(p)/100))}}this.originPoint[_]=p}),v&&le.postRender(()=>v(c,d)),uf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:v,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=d;if(y&&this.currentDirection===null){this.currentDirection=e4(_),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Tt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new kb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Rb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!xa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=N3(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ho(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=W3(o.layoutBox,n):this.constraints=!1,this.elastic=G3(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=K3(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q3(r,o.root,this.visualElement.getTransformPagePoint());let s=U3(o.layout.layoutBox,i);if(n){const a=n(Y3(s));this.hasMutatedConstraints=!!a,a&&(s=Pb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Tt(c=>{if(!xa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return uf(this.visualElement,t),r.start(Xh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tt(n=>{const{drag:r}=this.getProps();if(!xa(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ho(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Tt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=H3({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tt(s=>{if(!xa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Z3.set(this.visualElement,this);const t=this.visualElement.current,n=Hi(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ho(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),le.read(r);const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=df,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function xa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t4 extends ur{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new J3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mt}unmount(){this.removeGroupControls(),this.removeListeners()}}const x0=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class n4 extends ur{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:x0(t),onStart:x0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Hi(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 Is=T.createContext(null);function r4(){const e=T.useContext(Is);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=T.useId();T.useEffect(()=>r(o),[]);const i=T.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function o4(){return i4(T.useContext(Is))}function i4(e){return e===null?!0:e.isPresent}const tp=T.createContext({}),Mb=T.createContext({}),Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=w0(e,t.target.x),r=w0(e,t.target.y);return`${n}% ${r}%`}},s4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ir.parse(e);if(o.length>5)return r;const i=ir.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ge(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},zl={};function a4(e){Object.assign(zl,e)}const{schedule:np,cancel:SL}=zS(queueMicrotask,!1);class l4 extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;a4(u4),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),np.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zb(e){const[t,n]=r4(),r=T.useContext(tp);return P.jsx(l4,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(Mb),isPresent:t,safeToRemove:n})}const u4={borderRadius:{...pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pi,borderTopRightRadius:pi,borderBottomLeftRadius:pi,borderBottomRightRadius:pi,boxShadow:s4},Db=["TopLeft","TopRight","BottomLeft","BottomRight"],c4=Db.length,k0=e=>typeof e=="string"?parseFloat(e):e,C0=e=>typeof e=="number"||B.test(e);function d4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,f4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,h4(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Vo(e,t,r))}function _0(e,t){e.min=t.min,e.max=t.max}function kt(e,t){_0(e.x,t.x),_0(e.y,t.y)}function P0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E0(e,t,n,r,o){return e-=t,e=Ml(e,1/n,r),o!==void 0&&(e=Ml(e,1/o,r)),e}function p4(e,t=0,n=1,r=.5,o,i=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=E0(e.min,t,n,a,o),e.max=E0(e.max,t,n,a,o)}function $0(e,t,[n,r,o],i,s){p4(e,t[n],t[r],t[o],t.scale,i,s)}const m4=["x","scaleX","originX"],g4=["y","scaleY","originY"];function A0(e,t,n,r){$0(e.x,t,m4,n?n.x:void 0,r?r.x:void 0),$0(e.y,t,g4,n?n.y:void 0,r?r.y:void 0)}function R0(e){return e.translate===0&&e.scale===1}function Lb(e){return R0(e.x)&&R0(e.y)}function M0(e,t){return e.min===t.min&&e.max===t.max}function y4(e,t){return M0(e.x,t.x)&&M0(e.y,t.y)}function z0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jb(e,t){return z0(e.x,t.x)&&z0(e.y,t.y)}function D0(e){return yt(e.x)/yt(e.y)}function I0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class v4{constructor(){this.members=[]}add(t){qh(this.members,t),t.scheduleRender()}remove(t){if(Qh(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 S4(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const b4=(e,t)=>e.depth-t.depth;class x4{constructor(){this.children=[],this.isDirty=!1}add(t){qh(this.children,t),this.isDirty=!0}remove(t){Qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b4),this.isDirty=!1,this.children.forEach(t)}}function Xa(e){const t=Ke(e)?e.get():e;return r3(t)?t.toValue():t}function w4(e,t){const n=cn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(or(r),e(i-t))};return le.read(r,!0),()=>or(r)}function k4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C4(e,t,n){const r=Ke(e)?e:xs(e);return r.start(Xh("",r,t,n)),r.animation}const Sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_i=typeof window<"u"&&window.MotionDebug!==void 0,Lc=["","X","Y","Z"],T4={visibility:"hidden"},L0=1e3;let _4=0;function jc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fb(r)}function Bb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=_4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,_i&&(Sr.totalNodes=Sr.resolvedTargetDeltas=Sr.recalculatedProjection=0),this.nodes.forEach($4),this.nodes.forEach(D4),this.nodes.forEach(I4),this.nodes.forEach(A4),_i&&window.MotionDebug.record(Sr)},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;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=w4(f,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(F0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||V4,{onLayoutAnimationStart:_,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!jb(this.targetLayout,v)||y,m=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const b={...Ih(S,"layout"),onPlay:_,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||F0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,or(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(L4),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&&Fb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=b/1e3;B0(d.x,s.x,C),B0(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F4(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&y4(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=we()),kt(m,this.relativeTarget)),S&&(this.animationValues=c,d4(c,u,this.latestValues,C,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=C4(0,L0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(L0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Vb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||we();const d=yt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=yt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}kt(a,l),go(a,c),Ki(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new v4),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.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 u={};l.z&&jc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(j0),this.root.sharedNodes.clear()}}}function P4(e){e.updateLayout()}function E4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(f);f.min=r[d].min,f.max=f.min+y}):Vb(i,n.layoutBox,r)&&Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=po();Ki(a,r,n.layoutBox);const l=po();s?Ki(l,e.applyTransform(o,!0),n.measuredBox):Ki(l,r,n.layoutBox);const u=!Lb(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=we();Gi(v,n.layoutBox,f.layoutBox);const S=we();Gi(S,r,y.layoutBox),jb(v,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $4(e){_i&&Sr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function A4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R4(e){e.clearSnapshot()}function j0(e){e.clearMeasurements()}function M4(e){e.isLayoutDirty=!1}function z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function D4(e){e.resolveTargetDelta()}function I4(e){e.calcProjection()}function L4(e){e.resetSkewAndRotation()}function j4(e){e.removeLeadSnapshot()}function B0(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function V0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function F4(e,t,n,r){V0(e.x,t.x,n.x,r),V0(e.y,t.y,n.y,r)}function B4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V4={duration:.45,ease:[.4,0,.1,1]},O0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),N0=O0("applewebkit/")&&!O0("chrome/")?Math.round:mt;function W0(e){e.min=N0(e.min),e.max=N0(e.max)}function O4(e){W0(e.x),W0(e.y)}function Vb(e,t,n){return e==="position"||e==="preserve-aspect"&&!V3(D0(t),D0(n),.2)}function N4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W4=Bb({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fc={current:void 0},Ob=Bb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fc.current){const e=new W4({});e.mount(window),e.setOptions({layoutScroll:!0}),Fc.current=e}return Fc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),U4={pan:{Feature:n4},drag:{Feature:t4,ProjectionNode:Ob,MeasureLayout:zb}};function U0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class H4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=_3(t,n=>(U0(this.node,n,"Start"),r=>U0(this.node,r,"End"))))}unmount(){}}class K4 extends ur{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=zs(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class G4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=A3(t,n=>(H0(this.node,n,"Start"),(r,{success:o})=>H0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pf=new WeakMap,Bc=new WeakMap,Y4=e=>{const t=pf.get(e.target);t&&t(e)},X4=e=>{e.forEach(Y4)};function q4({root:e,...t}){const n=e||document;Bc.has(n)||Bc.set(n,{});const r=Bc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X4,{root:e,...t})),r[o]}function Q4(e,t,n){const r=q4(t);return pf.set(e,n),r.observe(e),()=>{pf.delete(e),r.unobserve(e)}}const Z4={some:0,all:1};class J4 extends ur{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Z4[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Q4(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(eD(t,n))&&this.startObserver()}unmount(){}}function eD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tD={inView:{Feature:J4},tap:{Feature:G4},focus:{Feature:K4},hover:{Feature:H4}},nD={layout:{ProjectionNode:Ob,MeasureLayout:zb}},rp=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Su=T.createContext({}),op=typeof window<"u",Nb=op?T.useLayoutEffect:T.useEffect,Wb=T.createContext({strict:!1});function rD(e,t,n,r,o){var i,s;const{visualElement:a}=T.useContext(Su),l=T.useContext(Wb),u=T.useContext(Is),c=T.useContext(rp).reducedMotion,d=T.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=T.useContext(Mb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&oD(d.current,n,o,y);const v=T.useRef(!1);T.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[gb],_=T.useRef(!!S&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,S))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,S)));return Nb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),np.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),T.useEffect(()=>{f&&(!_.current&&f.animationState&&f.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,S)}),_.current=!1))}),f}function oD(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ub(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ho(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Ub(e){if(e)return e.options.allowProjection!==!1?e.projection:Ub(e.parent)}function iD(e,t,n){return T.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ho(n)&&(n.current=r))},[t])}function bu(e){return gu(e.animate)||Dh.some(t=>vs(e[t]))}function Hb(e){return!!(bu(e)||e.variants)}function sD(e,t){if(bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vs(n)?n:void 0,animate:vs(r)?r:void 0}}return e.inherit!==!1?t:{}}function aD(e){const{initial:t,animate:n}=sD(e,T.useContext(Su));return T.useMemo(()=>({initial:t,animate:n}),[K0(t),K0(n)])}function K0(e){return Array.isArray(e)?e.join(" "):e}const G0={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"]},Oo={};for(const e in G0)Oo[e]={isEnabled:t=>G0[e].some(n=>!!t[n])};function lD(e){for(const t in e)Oo[t]={...Oo[t],...e[t]}}const uD=Symbol.for("motionComponentSymbol");function cD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&lD(e);function i(a,l){let u;const c={...T.useContext(rp),...a,layoutId:dD(a)},{isStatic:d}=c,f=aD(a),y=r(a,d);if(!d&&op){fD();const v=hD(c);u=v.MeasureLayout,f.visualElement=rD(o,y,c,t,v.ProjectionNode)}return P.jsxs(Su.Provider,{value:f,children:[u&&f.visualElement?P.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,iD(y,f.visualElement,l),y,d,f.visualElement)]})}const s=T.forwardRef(i);return s[uD]=o,s}function dD({layoutId:e}){const t=T.useContext(tp).id;return t&&e!==void 0?t+"-"+e:e}function fD(e,t){T.useContext(Wb).strict}function hD(e){const{drag:t,layout:n}=Oo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const pD=["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 ip(e){return typeof e!="string"||e.includes("-")?!1:!!(pD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Gb=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 Yb(e,t,n,r){Kb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Gb.has(o)?o:Jh(o),t.attrs[o])}function Xb(e,{layout:t,layoutId:n}){return Vr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function sp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ke(o[s])||t.style&&Ke(t.style[s])||Xb(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function qb(e,t,n){const r=sp(e,t,n);for(const o in e)if(Ke(e[o])||Ke(t[o])){const i=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ap(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}function mD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:gD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Qb=e=>(t,n)=>{const r=T.useContext(Su),o=T.useContext(Is),i=()=>mD(e,t,r,o);return n?i():ap(i)};function gD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Xa(i[f]);let{initial:s,animate:a}=e;const l=bu(e),u=Hb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!gu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),Zb=()=>({...lp(),attrs:{}}),Jb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,yD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vD=As.length;function SD(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",CD={useVisualState:Qb({scrapeMotionValuesFromProps:qb,createRenderState:Zb,onMount:(e,t,{renderState:n,latestValues:r})=>{le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{cp(n,r,dp(t.tagName),e.transformTemplate),Yb(t,n)})}})},TD={useVisualState:Qb({scrapeMotionValuesFromProps:sp,createRenderState:lp})};function ex(e,t,n){for(const r in t)!Ke(t[r])&&!Xb(r,n)&&(e[r]=t[r])}function _D({transformTemplate:e},t){return T.useMemo(()=>{const n=lp();return up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function PD(e,t){const n=e.style||{},r={};return ex(r,n,e),Object.assign(r,_D(e,t)),r}function ED(e,t){const n={},r=PD(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 $D=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 Dl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$D.has(e)}let tx=e=>!Dl(e);function AD(e){e&&(tx=t=>t.startsWith("on")?!Dl(t):e(t))}try{AD(require("@emotion/is-prop-valid").default)}catch{}function RD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(tx(o)||n===!0&&Dl(o)||!t&&!Dl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function MD(e,t,n,r){const o=T.useMemo(()=>{const i=Zb();return cp(i,t,dp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ex(i,e.style,e),o.style={...i,...o.style}}return o}function zD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(ip(n)?MD:ED)(r,i,s,n),u=RD(r,typeof n=="string",e),c=n!==T.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=T.useMemo(()=>Ke(d)?d.get():d,[d]);return T.createElement(n,{...c,children:f})}}function DD(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...ip(r)?CD:TD,preloadedFeatures:e,useRender:zD(o),createVisualElement:t,Component:r};return cD(s)}}const mf={current:null},nx={current:!1};function ID(){if(nx.current=!0,!!op)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}function LD(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ke(o))e.addValue(r,o);else if(Ke(i))e.addValue(r,xs(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,xs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const X0=new WeakMap,jD=[...YS,Ue,ir],FD=e=>jD.find(GS(e)),q0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,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=Bh,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=cn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),nx.current||ID(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){X0.delete(this.current),this.projection&&this.projection.unmount(),or(this.notifyUpdate),or(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Vr.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Oo){const n=Oo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):we()}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=xs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(WS(o)||NS(o))?o=parseFloat(o):!FD(o)&&ir.test(n)&&(o=nb(t,n)),this.setBaseTarget(t,Ke(o)?o.get():o)),Ke(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Mh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ke(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rx extends BD{constructor(){super(...arguments),this.KeyframeResolver=rb}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;Ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function VD(e){return window.getComputedStyle(e)}class OD extends rx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kb}readValueFromInstance(t,n){if(Vr.has(n)){const r=Wh(n);return r&&r.default||0}else{const r=VD(t),o=(HS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ab(t,n)}build(t,n,r){up(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sp(t,n,r)}}class ND extends rx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vr.has(n)){const r=Wh(n);return r&&r.default||0}return n=Gb.has(n)?n:Jh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qb(t,n,r)}build(t,n,r){cp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Yb(t,n,r,o)}mount(t){this.isSVGTag=dp(t.tagName),super.mount(t)}}const WD=(e,t)=>ip(e)?new ND(t):new OD(t,{allowProjection:e!==T.Fragment}),UD=DD({...C3,...tD,...U4,...nD},WD),ox=wM(UD);class HD extends T.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function KD({children:e,isPresent:t}){const n=T.useId(),r=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=T.useContext(rp);return T.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${s}px !important; + height: ${a}px !important; + top: ${l}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(c)}},[t]),P.jsx(HD,{isPresent:t,childRef:r,sizeRef:o,children:T.cloneElement(e,{ref:r})})}const GD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ap(YD),l=T.useId(),u=T.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=T.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return T.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),T.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(KD,{isPresent:n,children:e})),P.jsx(Is.Provider,{value:c,children:e})};function YD(){return new Map}const wa=e=>e.key||"";function Q0(e){const t=[];return T.Children.forEach(e,n=>{T.isValidElement(n)&&t.push(n)}),t}const XD=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=T.useMemo(()=>Q0(e),[e]),l=a.map(wa),u=T.useRef(!0),c=T.useRef(a),d=ap(()=>new Map),[f,y]=T.useState(a),[v,S]=T.useState(a);Nb(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=wa(h),b=a===v||l.includes(m),C=()=>{if(d.has(m))d.set(m,!0);else return;let E=!0;d.forEach(k=>{k||(E=!1)}),E&&(p==null||p(),S(c.current),o&&o())};return P.jsx(GD,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:C,children:h},m)})})},qD=(e,t)=>e.find(n=>n.id===t);function Z0(e,t){const n=ix(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function ix(e,t){for(const[n,r]of Object.entries(e))if(qD(r,t))return n}function QD(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ZD(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var JD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eI=mS(function(e){return JD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tI=eI,nI=function(t){return t!=="theme"},J0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?tI:nI},ey=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},rI=!1,oI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return xS(n,r,o),rM(function(){return wS(n,r,o)}),null},iI=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=ey(t,n,r),l=a||J0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=V2(s,_T),l=$t(e,t),u=_2({},o,l,mh(a),i),c=Y1(u)(t.theme);return r?[c,r]:c};function Vc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=uI);const o=dI({baseStyle:n}),i=cI(e,r)(o);return T.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=mu(),v=y?f:void 0;return T.createElement(i,{ref:u,"data-theme":v,...d},c)})}function fI(){const e=new Map;return new Proxy(Vc,{apply(t,n,r){return Vc(...r)},get(t,n){return e.has(n)||e.set(n,Vc(n)),e.get(n)}})}const ue=fI(),hI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},sx=T.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=hI,toastSpacing:c="0.5rem"}=e,[d,f]=T.useState(a),y=o4();cg(()=>{y||r==null||r()},[y]),cg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),_=()=>{y&&o()};T.useEffect(()=>{y&&i&&o()},[y,i,o]),H2(_,d);const p=T.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=T.useMemo(()=>QD(s),[s]);return P.jsx(ox.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:S,custom:{position:s},style:h,children:P.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:$t(n,{id:t,onClose:_})})})});sx.displayName="ToastComponent";function Ie(e){return T.forwardRef(e)}var pI=typeof Element<"u",mI=typeof Map=="function",gI=typeof Set=="function",yI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!qa(e[r],t[r]))return!1;return!0}var i;if(mI&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!qa(r.value[1],t.get(r.value[0])))return!1;return!0}if(gI&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(yI&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(pI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!qa(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var vI=function(t,n){try{return qa(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const SI=vf(vI);function bI(){const e=T.useContext(ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function ax(){const e=mu(),t=bI();return{...e,theme:t}}function lx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=ax(),s=e?N1(o,`components.${e}`):void 0,a=n||s,l=rn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},mh(W1(r,["children"])),(c,d)=>c?void 0:d),u=T.useRef({});if(a){const d=LT(a)(l);SI(u.current,d)||(u.current=d)}return u.current}function Or(e,t={}){return lx(e,t)}function fp(e,t={}){return lx(e,t)}const ty={path:P.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[P.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),P.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),P.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Yo=Ie((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ye("chakra-icon",a),d=Or("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},y={ref:t,focusable:i,className:c,__css:f},v=r??ty.viewBox;if(n&&typeof n!="string")return P.jsx(ue.svg,{as:n,...y,...u});const S=s??ty.path;return P.jsx(ue.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});Yo.displayName="Icon";function xI(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function wI(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function ny(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const kI=lM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),hp=Ie((e,t)=>{const n=Or("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Dn(e),u=Ye("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${kI} ${i} linear infinite`,...n};return P.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&P.jsx(ue.span,{srOnly:!0,children:r})})});hp.displayName="Spinner";const[CI,pp]=zn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TI,mp]=zn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ux={info:{icon:wI,colorScheme:"blue"},warning:{icon:ny,colorScheme:"orange"},success:{icon:xI,colorScheme:"green"},error:{icon:ny,colorScheme:"red"},loading:{icon:hp,colorScheme:"blue"}};function _I(e){return ux[e].colorScheme}function PI(e){return ux[e].icon}const cx=Ie(function(t,n){const{status:r="info",addRole:o=!0,...i}=Dn(t),s=t.colorScheme??_I(r),a=fp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return P.jsx(CI,{value:{status:r},children:P.jsx(TI,{value:a,children:P.jsx(ue.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:Ye("chakra-alert",t.className),__css:l})})})});cx.displayName="Alert";function dx(e){const{status:t}=pp(),n=PI(t),r=mp(),o=t==="loading"?r.spinner:r.icon;return P.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Ye("chakra-alert__icon",e.className),__css:o,children:e.children||P.jsx(n,{h:"100%",w:"100%"})})}dx.displayName="AlertIcon";const fx=Ie(function(t,n){const r=mp(),{status:o}=pp();return P.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ye("chakra-alert__title",t.className),__css:r.title})});fx.displayName="AlertTitle";const hx=Ie(function(t,n){const{status:r}=pp(),o=mp(),i={display:"inline",...o.description};return P.jsx(ue.div,{ref:n,"data-status":r,...t,className:Ye("chakra-alert__desc",t.className),__css:i})});hx.displayName="AlertDescription";function EI(e){return P.jsx(Yo,{focusable:"false","aria-hidden":!0,...e,children:P.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const px=Ie(function(t,n){const r=Or("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Dn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return P.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||P.jsx(EI,{width:"1em",height:"1em"})})});px.displayName="CloseButton";const $I=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return P.jsxs(cx,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[P.jsx(dx,{children:u}),P.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&P.jsx(fx,{id:c==null?void 0:c.title,children:o}),a&&P.jsx(hx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&P.jsx(px,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function mx(e={}){const{render:t,toastComponent:n=$I}=e;return o=>typeof t=="function"?t({...o,...e}):P.jsx(n,{...o,...e})}const AI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nn=RI(AI);function RI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=MI(o,i),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=Z0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:mx(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=ix(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Z0(nn.getState(),o).position}}let ry=0;function MI(e,t={}){ry+=1;const n=t.id??ry,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>nn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[gx,zI]=zn({strict:!1,name:"PortalContext"}),gp="chakra-portal",DI=".chakra-portal",II=e=>P.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),LI=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=T.useState(null),i=T.useRef(null),[,s]=T.useState({});T.useEffect(()=>s({}),[]);const a=zI(),l=bM();Bd(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=gp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?P.jsx(II,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?hh.createPortal(P.jsx(gx,{value:i.current,children:u}),i.current):P.jsx("span",{ref:c=>{c&&o(c)}})},jI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=T.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=gp),l},[o]),[,a]=T.useState({});return Bd(()=>a({}),[]),Bd(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?hh.createPortal(P.jsx(gx,{value:r?s:null,children:t}),s):null};function xu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?P.jsx(jI,{containerRef:n,...r}):P.jsx(LI,{...r})}xu.className=gp;xu.selector=DI;xu.displayName="Portal";const[FI,BI]=zn({name:"ToastOptionsContext",strict:!1}),VI=e=>{const t=T.useSyncExternalStore(nn.subscribe,nn.getState,nn.getState),{motionVariants:n,component:r=sx,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return P.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:ZD(l),children:P.jsx(XD,{...i,initial:!1,children:u.map(c=>P.jsx(r,{motionVariants:n,...c},c.id))})},l)});return P.jsx(xu,{...o,children:a})},OI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return P.jsxs(xM,{theme:r,...i,children:[P.jsx(FI,{value:o==null?void 0:o.defaultOptions,children:n}),P.jsx(VI,{...o})]})},NI=OI(lR),yx=Ie(function(t,n){const r=Or("Badge",t),{className:o,...i}=Dn(t);return P.jsx(ue.span,{ref:n,className:Ye("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});yx.displayName="Badge";const[xL,WI]=zn({strict:!1,name:"ButtonGroupContext"});function Pi(e){const{children:t,className:n,...r}=e,o=T.isValidElement(t)?T.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ye("chakra-button__icon",n);return P.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Pi.displayName="ButtonIcon";function yf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=P.jsx(hp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ye("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=T.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return P.jsx(ue.div,{className:l,...a,__css:c,children:o})}yf.displayName="ButtonSpinner";function UI(e){const[t,n]=T.useState(!e);return{ref:T.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const yp=Ie((e,t)=>{const n=WI(),r=Or("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:v="start",className:S,as:_,shouldWrapChildren:p,...h}=Dn(e),m=T.useMemo(()=>{const k={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:k}}},[r,n]),{ref:b,type:C}=UI(_),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:p};return P.jsxs(ue.button,{disabled:o||i,ref:U2(t,b),as:_,type:f??C,"data-active":Qt(s),"data-loading":Qt(i),__css:m,className:Ye("chakra-button",S),...h,children:[i&&v==="start"&&P.jsx(yf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||P.jsx(ue.span,{opacity:0,children:P.jsx(oy,{...E})}):P.jsx(oy,{...E}),i&&v==="end"&&P.jsx(yf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});yp.displayName="Button";function oy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?P.jsxs("span",{style:{display:"contents"},children:[t&&P.jsx(Pi,{marginEnd:o,children:t}),r,n&&P.jsx(Pi,{marginStart:o,children:n})]}):P.jsxs(P.Fragment,{children:[t&&P.jsx(Pi,{marginEnd:o,children:t}),r,n&&P.jsx(Pi,{marginStart:o,children:n})]})}const vp=Ie((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=T.isValidElement(a)?T.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return P.jsx(yp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});vp.displayName="IconButton";const[HI,KI]=zn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[GI,vx]=zn({strict:!1,name:"FormControlContext"});function YI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=T.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=T.useState(!1),[v,S]=T.useState(!1),[_,p]=T.useState(!1),h=T.useCallback((k={},A=null)=>({id:d,...k,ref:Vd(A,D=>{D&&S(!0)})}),[d]),m=T.useCallback((k={},A=null)=>({...k,ref:A,"data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i),id:k.id!==void 0?k.id:u,htmlFor:k.htmlFor!==void 0?k.htmlFor:l}),[l,o,_,r,i,u]),b=T.useCallback((k={},A=null)=>({id:c,...k,ref:Vd(A,D=>{D&&y(!0)}),"aria-live":"polite"}),[c]),C=T.useCallback((k={},A=null)=>({...k,...s,ref:A,role:"group","data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i)}),[s,o,_,r,i]),E=T.useCallback((k={},A=null)=>({...k,ref:A,role:"presentation","aria-hidden":!0,children:k.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!_,onFocus:()=>p(!0),onBlur:()=>p(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:v,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:b,getRootProps:C,getLabelProps:m,getRequiredIndicatorProps:E}}const XI=Ie(function(t,n){const r=fp("Form",t),o=Dn(t),{getRootProps:i,htmlProps:s,...a}=YI(o),l=Ye("chakra-form-control",t.className);return P.jsx(GI,{value:a,children:P.jsx(HI,{value:r,children:P.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});XI.displayName="FormControl";const qI=Ie(function(t,n){const r=vx(),o=KI(),i=Ye("chakra-form__helper-text",t.className);return P.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});qI.displayName="FormHelperText";function QI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=ZI(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":lc(n),"aria-required":lc(o),"aria-readonly":lc(r)}}function ZI(e){const t=vx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&y.push(t.feedbackId),t!=null&&t.hasHelpText&&y.push(t.helpTextId),{...f,"aria-describedby":y.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:lg(t==null?void 0:t.onFocus,c),onBlur:lg(t==null?void 0:t.onBlur,d)}}const JI=new Set(["dark","light","system"]);function eL(e){let t=e;return JI.has(t)||(t="light"),t}function tL(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=eL(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:a}`.trim()}function nL(e={}){const{nonce:t}=e;return P.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:tL(e)}})}function Sp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=T.Children.toArray(e.path),s=Ie((a,l)=>P.jsx(Yo,{ref:l,viewBox:t,...o,...a,children:i.length?i:P.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const bp=Ie(function(t,n){const{htmlSize:r,...o}=t,i=fp("Input",o),s=Dn(o),a=QI(s),l=Ye("chakra-input",t.className);return P.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});bp.displayName="Input";bp.id="Input";const Sx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Sx.displayName="Spacer";const bx=e=>P.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bx.displayName="StackItem";function rL(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":F2(n,o=>r[o])}}const xp=Ie((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,y=n?"row":r??"column",v=T.useMemo(()=>rL({spacing:s,direction:y}),[s,y]),S=!!u,_=!d&&!S,p=T.useMemo(()=>{const m=M2(l);return _?m:m.map((b,C)=>{const E=typeof b.key<"u"?b.key:C,k=C+1===m.length,D=d?P.jsx(bx,{children:b},E):b;if(!S)return D;const M=T.cloneElement(u,{__css:v}),N=k?null:M;return P.jsxs(T.Fragment,{children:[D,N]},E)})},[u,v,S,_,d,l]),h=Ye("chakra-stack",c);return P.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y,flexWrap:a,gap:S?void 0:s,className:h,...f,children:p})});xp.displayName="Stack";const wp=Ie((e,t)=>P.jsx(xp,{align:"center",...e,direction:"row",ref:t}));wp.displayName="HStack";const xx=e=>P.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});xx.displayName="StackDivider";const kp=Ie((e,t)=>P.jsx(xp,{align:"center",...e,direction:"column",ref:t}));kp.displayName="VStack";function oL(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function iL(e,t){const n=o=>({...t,...o,position:oL((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=mx(i);return nn.notify(s,i)};return r.update=(o,i)=>{nn.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...$t(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...$t(i.error,a)}))},r.closeAll=nn.closeAll,r.close=nn.close,r.isActive=nn.isActive,r}function sL(e){const{theme:t}=ax(),n=BI();return T.useMemo(()=>iL(t.direction,{...n,...e}),[e,t.direction,n])}const wx=Ie(function(t,n){const r=Or("Heading",t),{className:o,...i}=Dn(t);return P.jsx(ue.h2,{ref:n,className:Ye("chakra-heading",t.className),...i,__css:r})});wx.displayName="Heading";const kx=Ie(function(t,n){const r=Or("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Dn(t),u=mh({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return P.jsx(ue.p,{ref:n,className:Ye("chakra-text",t.className),...u,...l,__css:r})});kx.displayName="Text";const aL=({addTodo:e})=>{const t=T.useRef(null),n=sL(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return P.jsx("form",{onSubmit:o,children:P.jsxs(wp,{m:"8",children:[P.jsx(bp,{variant:"filled",placeholder:"Add new todo",ref:t}),P.jsx(yp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},lL=Sp({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),uL=Sp({displayName:"SunIcon",path:P.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[P.jsx("circle",{cx:"12",cy:"12",r:"5"}),P.jsx("path",{d:"M12 1v2"}),P.jsx("path",{d:"M12 21v2"}),P.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),P.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),P.jsx("path",{d:"M1 12h2"}),P.jsx("path",{d:"M21 12h2"}),P.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),P.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),cL=Sp({displayName:"DeleteIcon",path:P.jsx("g",{fill:"currentColor",children:P.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),dL=({todos:e,deleteTodo:t})=>{if(e.length===0)return P.jsx(yx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:P.jsx(xx,{})};return P.jsx(kp,{...n,children:e.map(r=>P.jsxs(wp,{children:[P.jsx(kx,{children:r.body}),P.jsx(Sx,{}),P.jsx(vp,{"aria-label":"Delete todo",icon:P.jsx(cL,{}),onClick:()=>t(r.id)})]},r.id))})},fL=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?P.jsx(lL,{}):P.jsx(uL,{}),"aria-label":"Switch DarkMode"};return P.jsx(ox.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:P.jsx(vp,{onClick:e,...n})})},Cp=Ql("light");Cp.debugLabel="themeAtom";const hL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let pL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=hL[n[e]&63];return t};const No=Ql([]);No.debugLabel="todosAtom";const mL=Ql(null,(e,t,n)=>{const r={id:pL(),body:n};t(No,[...e(No),r])}),gL=Ql(null,(e,t,n)=>{const o=e(No).filter(i=>i.id!==n);t(No,o)});function yL(){const{colorMode:e,toggleColorMode:t}=mu(),[n,r]=jd(Cp),[o]=jd(No),i=Ld(mL),s=Ld(gL);T.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return P.jsxs(kp,{p:4,children:[P.jsx(fL,{toggleTheme:a,theme:n}),P.jsx(wx,{size:"2xl",children:"Jotai-Todos App"}),P.jsx(aL,{addTodo:i}),P.jsx(dL,{todos:o,deleteTodo:s})]})}const vL=()=>{const[e]=jd(Cp);return P.jsxs(NI,{children:[P.jsx(nL,{initialColorMode:e}),P.jsx(yL,{})]})};I1(document.getElementById("root")).render(P.jsxs(T.StrictMode,{children:[P.jsx(C2,{}),P.jsx(vL,{})]})); diff --git a/index.html b/index.html index 215d528..8a72f78 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Todos - +